1 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4 (Changes in GDB 7.8): ... here.
6 2014-08-04 Tom Tromey <tromey@redhat.com>
8 * target.c (set_targetdebug): New function.
9 (initialize_targets): Pass set_targetdebug when creating "set
12 2014-08-01 Joel Brobecker <brobecker@adacore.com>
14 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
15 if detecting a variable-sized field that is not the last field.
16 Fix struct type length computation.
18 2014-08-01 Joel Brobecker <brobecker@adacore.com>
20 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
23 2014-08-01 Joel Brobecker <brobecker@adacore.com>
25 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
26 Remove "+ 8" offset in computation of CHAIN_VMA.
28 2014-07-31 Doug Evans <dje@google.com>
30 * inflow.c (child_terminal_inferior): Add comment.
31 (child_terminal_ours_for_output): Add comment.
32 (child_terminal_ours): Add comment.
33 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
34 (linux_nat_terminal_ours): Add comment.
36 2014-07-31 Gary Benson <gbenson@redhat.com>
38 * common/btrace-common.h: Do not include defs.h or server.h.
39 * nat/mips-linux-watch.h: Likewise.
40 * gdb-dlfcn.h: Do not include defs.h.
41 * tracefile.h: Likewise.
43 2014-07-30 Roland McGrath <mcgrathr@google.com>
45 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
47 2014-07-30 Tom Tromey <tromey@redhat.com>
49 * bsd-kvm.c (bsd_kvm_open): Constify.
50 * corelow.c (core_open): Constify.
51 * ctf.c (ctf_open): Constify.
52 * dbug-rom.c (dbug_open): Constify.
53 * exec.c (exec_open): Constify.
54 * m32r-rom.c (m32r_open, mon2000_open): Constify.
55 * microblaze-rom.c (picobug_open): Constify.
56 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
58 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
59 * record-btrace.c (record_btrace_open): Constify.
60 * record-full.c (record_full_core_open_1, record_full_open_1)
61 (record_full_open): Constify.
62 * remote-m32r-sdi.c (m32r_open): Constify.
63 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
64 (rockhopper_open, lsi_open): Constify.
65 * remote-sim.c (gdbsim_open): Constify.
66 * remote.c (remote_open, extended_remote_open, remote_open_1):
68 * target.h (struct target_ops) <to_open>: Make "arg" const.
69 * tracefile-tfile.c (tfile_open): Constify.
71 2014-07-30 Tom Tromey <tromey@redhat.com>
73 * breakpoint.c (map_breakpoint_numbers): Update.
74 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
75 (get_number_const): New function.
76 (get_number): Rewrite using get_number_const.
77 (init_number_or_range): Make "string" const.
78 (number_is_in_list): Make "list" const.
79 * cli/cli-utils.h (get_number_const): Declare.
80 (struct get_number_or_range_state) <string, end_ptr>: Now const.
81 (init_number_or_range, number_is_in_list): Update.
82 * printcmd.c (map_display_numbers): Update.
83 * value.c (value_from_history_ref): Constify.
84 * value.h (value_from_history_ref): Update.
86 2014-07-30 Tom Tromey <tromey@redhat.com>
88 * corefile.c (hook_type, call_extra_exec_file_hooks)
89 (specify_exec_file_hook): Constify.
90 * exec.c (exec_file_attach): Make "filename" const.
91 * gdbcore.h (deprecated_exec_file_display_hook)
92 (specify_exec_file_hook, exec_file_attach): Constify.
93 * main.c (captured_main): Use catch_command_errors_const.
95 2014-07-30 Tom Tromey <tromey@redhat.com>
97 * target.c (open_target): New function.
98 (add_target_with_completer, add_deprecated_target_alias): Use
99 set_cmd_sfunc, set_cmd_context.
100 (debug_to_open): Remove.
101 (setup_target_debug): Update.
103 2014-07-30 Yao Qi <yao@codesourcery.com>
105 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
107 * parse.c (exp_iterate): Update comments.
109 2014-07-30 Gary Benson <gbenson@redhat.com>
111 * common/common-defs.h: New file.
112 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
113 * defs.h: Include common-defs.h.
114 Do not include config.h or build-gnulib/config.h.
116 2014-07-30 Gary Benson <gbenson@redhat.com>
118 * common/common-utils.h: Do not include config.h.
119 * nat/linux-btrace.h: Likewise.
121 2014-07-30 Gary Benson <gbenson@redhat.com>
123 * btrace.c: Include defs.h.
124 * common/ptid.c: Include defs.h or server.h as appropriate.
125 * nat/mips-linux-watch.c: Likewise.
127 2014-07-29 Tom Tromey <tromey@redhat.com>
129 * target.c (target_is_pushed): Simplify.
131 2014-07-29 Joel Brobecker <brobecker@adacore.com>
135 2014-07-29 Yao Qi <yao@codesourcery.com>
138 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
140 2014-07-28 Doug Evans <xdje42@gmail.com>
143 * guile/scm-param.c (pascm_parameter_defined_p): New function.
144 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
147 2014-07-28 Will Newton <will.newton@linaro.org>
149 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
150 (THUMB2_SET_R7_SIGRETURN2): Likewise.
151 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
152 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
153 (THUMB2_EABI_SYSCALL): Likewise.
154 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
156 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
157 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
159 2014-07-27 Doug Evans <xdje42@gmail.com>
161 * guile/scm-param.c (pascm_print_param_smob): Fix output.
163 2014-07-27 Doug Evans <xdje42@gmail.com>
165 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
167 2014-07-26 Ludovic Courtès <ludo@gnu.org>
168 Doug Evans <xdje42@gmail.com>
171 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
172 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
173 * configure.ac: Try to use guild to compile an scm file, if it fails
174 then disable guile support.
175 * configure: Regenerate.
176 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
178 (GUILE_COMPILED_FILES): New variable.
179 (GUILE_FILES) Update.
180 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
181 (stamp-guile): Compile scm files.
182 * guile/guile.c (boot_guile_support): New function.
183 (standard_throw_args_p): New function.
184 (print_standard_throw_error, print_throw_error): New functions.
185 (handle_boot_error): New function.
186 (initialize_scheme_side): Rewrite to call boot_guile_support.
187 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
188 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
190 2014-07-26 Ludovic Courtès <ludo@gnu.org>
191 Doug Evans <xdje42@gmail.com>
194 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
195 * guile/lib/gdb/support.scm: New file.
196 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
197 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
199 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
201 (%assert-type): Ditto, and renamed to assert-type.
202 (%exception-print-style): Delete.
204 2014-07-26 Doug Evans <xdje42@gmail.com>
207 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
208 * configure: Regenerate.
209 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
211 (PYTHON_FILES): New variable.
212 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
213 (GUILE_FILES): New variable.
214 (stamp-python, install-python, uninstall-python): Handle empty
216 (stamp-guile, install-guile, uninstall-guile): Ditto.
218 2014-07-26 Doug Evans <xdje42@gmail.com>
221 * guile/lib/gdb.scm (pretty-printers): Export.
222 (set-pretty-printers!): Export.
223 * guile/lib/gdb/printing.scm (gdb module): Update.
224 (prepend-pretty-printer!, append-pretty-printer!): Update.
225 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
226 (pretty_printer_list_var): Delete.
227 (pretty_printer_list): New static global.
228 (gdbscm_pretty_printers): New function.
229 (gdbscm_set_pretty_printers_x): New function.
230 (ppscm_find_pretty_printer_from_gdb): Update.
231 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
232 (gdbscm_initialize_pretty_printers): Update.
234 2014-07-26 Doug Evans <xdje42@gmail.com>
237 * configure.ac: Add check for header gc/gc.h.
238 Add check for function setenv.
239 * configure: Regenerate.
240 * config.in: Regenerate.
241 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
243 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
245 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
246 variation in gdbarch matching.
248 2014-07-25 Tom Tromey <tromey@redhat.com>
250 * exec.c (using_exec_ops): Remove.
251 (exec_close_1): Update. Remove extraneous block, reindent.
252 (add_target_sections): Use target_is_pushed.
254 2014-07-25 Pedro Alves <palves@redhat.com>
256 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
257 * monitor.c (monitor_create_inferior): Likewise.
258 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
259 * remote-sim.c (gdbsim_create_inferior): Likewise.
260 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
261 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
262 * windows-nat.c (do_initial_windows_stuff): Likewise.
264 2014-07-25 Pedro Alves <palves@redhat.com>
266 * NEWS: Mention signal passing and "signal" command changes.
267 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
269 * breakpoint.c (until_break_command): Adjust clear_proceed_status
271 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
272 * infcmd.c (proceed_thread_callback, continue_1, step_once)
273 (jump_command): Adjust clear_proceed_status call.
274 (signal_command): Warn if other thread that are resumed have
275 signals that will be delivered. Adjust clear_proceed_status call.
276 (until_next_command, finish_command)
277 (proceed_after_attach_callback, attach_command_post_wait)
278 (attach_command): Adjust clear_proceed_status call.
279 * infrun.c (proceed_after_vfork_done): Likewise.
280 (proceed_after_attach_callback): Adjust comment.
281 (clear_proceed_status_thread): Clear stop_signal if not in pass
283 (clear_proceed_status_callback): Delete.
284 (clear_proceed_status): New 'step' parameter. Only clear the
285 proceed status of threads the command being prepared is about to
287 (proceed): If passed in an explicit signal, override stop_signal
288 with it. Don't pass the last stop signal to the thread we're
290 (init_wait_for_inferior): Adjust clear_proceed_status call.
291 (switch_back_to_stepped_thread): Clear the signal if it should not
293 * infrun.h (clear_proceed_status): New 'step' parameter.
294 (user_visible_resume_ptid): Add comment.
295 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
296 signal is in pass state.
297 * remote.c (append_pending_thread_resumptions): Likewise.
298 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
300 2014-07-25 Tom Tromey <tromey@redhat.com>
302 * target.h (target_stopped_data_address)
303 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
306 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
308 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
310 (avr_pointer_to_address): Likewise.
312 2014-07-24 Tom Tromey <tromey@redhat.com>
314 * monitor.c (compile_pattern): Update.
315 * target.h (struct target_ops) <to_shortname, to_longname,
318 2014-07-24 Tom Tromey <tromey@redhat.com>
320 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
321 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
322 (add_info_alias, add_com): Make "doc" const.
323 (print_doc_line): Make "str" const.
324 (delete_cmd): Update.
325 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
326 (print_doc_line): Update.
327 * cli/cli-script.c (document_command): Update.
328 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
329 (add_com, add_info, add_info_alias): Update.
330 * guile/scm-cmd.c (cmdscm_destroyer): Update.
331 * python/py-cmd.c (cmdpy_destroyer): Update.
333 2014-07-24 Tom Tromey <tromey@redhat.com>
335 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
336 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
337 (help_cmd_list): Constify.
338 (lookup_cmd): Update.
339 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
341 (help_cmd_list, apropos_cmd): Update.
342 * cli/cli-script.c (show_user): Update.
343 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
344 * cli/cli-setshow.h (cmd_show_list): Update.
345 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
346 (cmd_show_list): Update.
347 * guile/scm-cmd.c (cmdscm_destroyer): Update.
348 * python/py-cmd.c (cmdpy_destroyer): Update.
350 2014-07-24 Tom Tromey <tromey@redhat.com>
352 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
353 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
355 * command.h (deprecate_cmd): Update.
356 * maint.c (maintenance_do_deprecate): Add casts.
358 2014-07-24 Tom Tromey <tromey@redhat.com>
360 * cli/cli-decode.c (help_cmd): Make parameter "const".
361 * cli/cli-decode.h (help_cmd): Update.
363 2014-07-24 Tom Tromey <tromey@redhat.com>
365 * stack.c (up_silently_base, down_silently_base): Make argument
368 2014-07-24 Tom Tromey <tromey@redhat.com>
370 * solib.c (solib_add): Make "pattern" const.
371 * solib.h (solib_add): Update.
373 2014-07-24 Tom Tromey <tromey@redhat.com>
375 * remote.c (remote_serial_open, print_packet, putpkt)
376 (putpkt_binary): Constify.
377 * remote.h (putpkt): Update.
379 2014-07-24 Tom Tromey <tromey@redhat.com>
381 * monitor.c (monitor_open): Make "args" const.
382 * monitor.h (monitor_open): Update.
384 2014-07-24 Tom Tromey <tromey@redhat.com>
386 * maint.c (match_bfd_flags): Make "string" const.
387 (print_bfd_section_info): Remove casts.
388 (print_objfile_section_info): Make "string" const.
390 2014-07-24 Tom Tromey <tromey@redhat.com>
392 * inf-child.c (inf_child_open_target): Make "arg" const.
393 * inf-child.h (inf_child_open_target): Update.
395 2014-07-24 Tom Tromey <tromey@redhat.com>
397 * environ.c (unset_in_environ): Make "var" const.
398 * environ.h (unset_in_environ): Update.
400 2014-07-24 Tom Tromey <tromey@redhat.com>
402 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
404 (scan_filename_with_cleanup): Likewise.
405 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
406 Make arguments const.
407 (restore_command): Update.
409 2014-07-24 Pedro Alves <palves@redhat.com>
411 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
413 2014-07-24 Tom Tromey <tromey@redhat.com>
414 Gary Benson <gbenson@redhat.com>
416 * nat/linux-ptrace.c (additional_flags): New global.
417 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
418 additional_flags; don't check GDBSERVER.
419 (linux_ptrace_set_additional_flags): New function.
420 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
422 * linux-nat.c (_initialize_linux_nat): Call
423 linux_ptrace_set_additional_flags.
425 2014-07-24 Tom Tromey <tromey@redhat.com>
427 * make-target-delegates (munge_type, write_debugmethod): New
429 (debug_names): New global.
430 ($TARGET_DEBUG_PRINTER): New global.
431 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
433 Write debug methods. Generate init_debug_target.
434 * target-debug.h: New file.
435 * target-delegates.c: Rebuild.
436 * target.c: Include target-debug.h.
437 (debug_target): Hoist definition.
438 (target_kill, target_get_section_table, target_memory_map)
439 (target_flash_erase, target_flash_done, target_detach)
440 (target_disconnect, target_wait, target_resume)
441 (target_pass_signals, target_program_signals, target_follow_fork)
442 (target_mourn_inferior, target_search_memory)
443 (target_thread_address_space, target_close)
444 (target_find_new_threads, target_core_of_thread)
445 (target_verify_memory, target_insert_mask_watchpoint)
446 (target_remove_mask_watchpoint): Remove targetdebug code.
447 (debug_to_post_attach, debug_to_prepare_to_store)
448 (debug_to_files_info, debug_to_insert_breakpoint)
449 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
450 (debug_to_region_ok_for_hw_watchpoint)
451 (debug_to_can_accel_watchpoint_condition)
452 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
453 (debug_to_watchpoint_addr_within_range)
454 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
455 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
456 (debug_to_terminal_init, debug_to_terminal_inferior)
457 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
458 (debug_to_terminal_save_ours, debug_to_terminal_info)
459 (debug_to_load, debug_to_post_startup_inferior)
460 (debug_to_insert_fork_catchpoint)
461 (debug_to_remove_fork_catchpoint)
462 (debug_to_insert_vfork_catchpoint)
463 (debug_to_remove_vfork_catchpoint)
464 (debug_to_insert_exec_catchpoint)
465 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
466 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
467 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
468 (setup_target_debug): Call init_debug_target.
469 * target.h (TARGET_DEBUG_PRINTER): New macro.
470 (struct target_ops) <to_resume, to_wait, to_pass_signals,
471 to_program_signals>: Use TARGET_DEBUG_PRINTER.
473 2014-07-24 Gary Benson <gbenson@redhat.com>
475 * exceptions.h (throw_vfatal): Renamed to...
476 (throw_vquit): New declaration.
477 (throw_quit): Likewise.
478 * exceptions.c (throw_vfatal): Renamed to...
479 (throw_vquit): New function.
480 (throw_quit): Likewise.
481 (throw_error): Call throw_verror rather than throw_it.
482 * utils.h (vfatal): Removed.
484 * utils.c (vfatal): Removed.
486 (internal_verror): Replaced call to fatal with call to throw_quit.
487 (quit): Replaced calls to fatal with calls to throw_quit.
489 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
491 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
494 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
496 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
497 less than zero in conditional expression.
499 2014-07-23 Tom Tromey <tromey@redhat.com>
501 * make-target-delegates ($ARGS_PART): Match trailing close paren.
502 ($INTRO_PART): Don't match whitespace.
503 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
505 ($METHOD): Add $METHOD_TRAILER.
507 (scan_target_h): New sub.
508 Change main loop not to collect state.
509 * target-delegates.c: Rebuild.
511 2014-07-23 Gary Benson <gbenson@redhat.com>
513 * cp-support.c (gdb_demangle): Fix build on systems without
516 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
518 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
519 for reference entry value target data value.
521 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
523 * stack.c (read_frame_arg): Verify value_optimized_out before calling
524 value_available_contents_eq.
526 2014-07-22 Pedro Alves <palves@redhat.com>
528 * value.c (allocate_optimized_out_value): Don't mark value as
531 2014-07-22 Jiong Wang <jiong.wang@arm.com>
533 * MAINTAINERS (Write After Approval): Update my email address.
535 2014-07-20 Doug Evans <dje@google.com>
538 * remote.c (putpkt_binary): Add text to error message.
540 2014-07-20 Yao Qi <yao@codesourcery.com>
542 * eval.c: Remove "Chill" from comments.
543 * gdbtypes.h: Likewise.
544 * symtab.h: Likewise.
546 2014-07-20 Yao Qi <yao@codesourcery.com>
548 * std-operator.def: Update comments to TERNOP_SLICE.
550 2014-07-20 Yao Qi <yao@codesourcery.com>
552 * std-operator.def: Remove BINOP_RANGE.
553 * breakpoint.c (watchpoint_exp_is_const): Update.
554 * expprint.c (dump_subexp_body_standard): Likewise.
555 * eval.c (init_array_element): Remove dead code.
556 (evaluate_subexp_standard): Likewise.
558 2014-07-20 Yao Qi <yao@codesourcery.com>
560 * std-operator.def: Remove BINOP_IN.
561 * breakpoint.c (watchpoint_exp_is_const): Update.
562 * eval.c (evaluate_subexp_standard): Likewise.
563 * expprint.c (dump_subexp_body_standard): Likewise.
565 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
567 * microblaze-tdep.c (microblaze_register_names): Add
568 the rshr and rslr register names.
569 (microblaze_gdbarch_init): Use of tdesc_has_registers.
570 Use of tdesc_find_feature. Use of tdesc_data_alloc.
571 Use of tdesc_numbered_register. Use of
572 microblaze_register_g_packet_guesses. Use of
573 tdesc_use_registers. Use of set_gdbarch_register_type.
574 (microblaze_register_g_packet_guesses): New.
575 * microblaze-tdep.h (microblaze_reg_num): Add
576 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
577 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
578 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
579 * features/microblaze-core.xml: New file.
580 * features/microblaze-stack-protect.xml: New file.
581 * features/microblaze-with-stack-protect.c: New file.
582 * features/microblaze-with-stack-protect.xml: New file.
583 * features/microblaze.xml: New file.
584 * features/microblaze.c: New file.
585 * features/Makefile (microblaze-with-stack-protect): Add
586 microblaze-with-stack-protect microblaze and microblaze-expedite.
587 * regformats/microblaze-with-stack-protect.dat: New file.
588 * regformats/microblaze.dat: New file.
589 * doc/gdb.texinfo (MicroBlaze Features): Added.
591 2014-07-18 Tom Tromey <tromey@redhat.com>
593 * exec.c (exec_ops): Now static.
594 * exec.h (exec_ops): Don't declare.
596 2014-07-18 Tom Tromey <tromey@redhat.com>
598 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
599 to find_target_beneath.
600 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
602 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
604 2014-07-18 Tom Tromey <tromey@redhat.com>
607 * utils.c (quit): Use target_supports_terminal_ours.
608 * target.h (target_supports_terminal_ours): Declare.
609 * target.c (target_supports_delete_record): Don't check
610 to_delete_record against NULL.
611 (target_supports_terminal_ours): New function.
613 2014-07-18 Tom Tromey <tromey@redhat.com>
616 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
617 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
618 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
619 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
620 * windows-nat.c (windows_xfer_partial): Always delegate.
621 * record-btrace.c (record_btrace_xfer_partial): Simplify
623 (record_btrace_fetch_registers, record_btrace_store_registers)
624 (record_btrace_prepare_to_store, record_btrace_resume)
625 (record_btrace_wait, record_btrace_find_new_threads)
626 (record_btrace_thread_alive): Likewise.
627 * procfs.c (procfs_xfer_partial): Always delegate.
628 * corelow.c (core_xfer_partial): Always delegate.
629 * sol-thread.c (sol_find_new_threads): Simplify delegation.
631 2014-07-18 Tom Tromey <tromey@redhat.com>
633 * exec.c (exec_make_note_section): Move earlier.
635 2014-07-17 Doug Evans <dje@google.com>
638 * maint.c (count_symtabs_and_blocks): Handle NULL
639 current_program_space.
640 (report_command_stats): Check global enabled flag in addition to
641 recorded enabled flag.
642 (make_command_stats_cleanup): Handle msg_type == 0, startup.
644 2014-07-16 Pedro Alves <palves@redhat.com>
646 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
648 2014-07-16 Tom Tromey <tromey@redhat.com>
650 * target.h (struct target_ops) <to_delete_record>: Reformat
653 2014-07-16 Tom Tromey <tromey@redhat.com>
655 * target-delegates.c: Rebuild.
657 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
659 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
660 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
661 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
662 (avr_pointer_to_address): Likewise.
663 (avr_address_class_type_flags): New function.
664 (avr_address_class_type_flags_to_name): Likewise.
665 (avr_address_class_name_to_type_flags): Likewise.
666 (avr_gdbarch_init): Set address_class_type_flags,
667 address_class_type_flags_to_name and
668 address_class_name_to_type_flags.
670 2014-07-15 Pedro Alves <palves@redhat.com>
672 * linux-nat.c (kill_callback): Save errno and work with saved
675 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
677 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
679 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
681 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
682 breakpoint support correctly.
684 2014-07-14 Pedro Alves <palves@redhat.com>
686 * utils.c (prompt_for_continue): Call target_terminal_ours.
688 2014-07-14 Pedro Alves <palves@redhat.com>
690 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
691 catch_errors. Don't re-enable stdin or notify observers where,
693 (fetch_inferior_event_wrapper): Delete.
695 2014-07-14 Pedro Alves <palves@redhat.com>
698 * top.c: Include "inf-loop.h".
699 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
701 (gdb_readline_wrapper_cleanup): Make the target async again, if it
703 (gdb_readline_wrapper): Store whether the target is async, and
706 2014-07-14 Pedro Alves <palves@redhat.com>
709 * top.c (gdb_readline_wrapper_line): Tweak comment.
710 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
711 the input handler callback.
713 2014-07-14 Pedro Alves <palves@redhat.com>
716 * main.c: Include event-top.h.
717 (handle_command_errors): New function.
718 (catch_command_errors, catch_command_errors_const): Use it.
720 2014-07-14 Pedro Alves <palves@redhat.com>
722 * exceptions.c (catch_command_errors, catch_command_errors_const):
724 * exceptions.h (catch_command_errors_ftype)
725 (catch_command_errors_const_ftype): Moved to main.c.
726 (catch_command_errors, catch_command_errors_const): Delete
728 * main.c (catch_command_errors_ftype)
729 (catch_command_errors_const_ftype): Moved here from exceptions.h.
730 (catch_command_errors, catch_command_errors_const)): Moved here
731 from exceptions.c and make static.
733 2014-07-14 Pedro Alves <palves@redhat.com>
735 * exceptions.c (print_any_exception): Delete.
736 (catch_exceptions_with_msg): Use exception_print instead of
738 (catch_errors): Use exception_fprintf instead of
740 (catch_command_errors, catch_command_errors_const): Use
741 exception_print instead of print_any_exception.
743 2014-07-14 Pedro Alves <palves@redhat.com>
745 * infcall.c (run_inferior_call): Set 'sync_execution' while
746 running the inferior call.
748 2014-07-14 Pedro Alves <palves@redhat.com>
750 * value.c (value_contents_equal): Delete function.
751 * value.h (value_contents_equal): Delete declaration.
753 2014-07-14 Tom Tromey <tromey@redhat.com>
756 * gdbtypes.c (is_dynamic_type_internal): New function, from
758 (is_dynamic_type): Rewrite.
759 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
760 (resolve_dynamic_struct): Likewise.
761 (resolve_dynamic_type_internal): New function, from
762 resolve_dynamic_type.
763 (resolve_dynamic_type): Rewrite.
765 2014-07-14 Tom Tromey <tromey@redhat.com>
767 * target.c (target_require_runnable): Also check record_stratum.
770 2014-07-11 Yao Qi <yao@codesourcery.com>
772 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
773 thumb_instruction_restores_sp return true.
775 2014-07-11 Yao Qi <yao@codesourcery.com>
777 * arm-tdep.c (thumb_instruction_restores_sp): New function.
778 (thumb_in_function_epilogue_p): Call
779 thumb_instruction_restores_sp.
781 2014-07-11 Yao Qi <yao@codesourcery.com>
783 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
785 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
787 2014-07-11 Gary Benson <gbenson@redhat.com>
789 * amd64-linux-nat.c (gdbcore.h): Remove include.
790 (regset.h): Likewise.
791 (nat/linux-btrace.h): Likewise.
792 (btrace.h): Likewise.
793 (gdb_assert.h): Likewise.
794 (string.h): Likewise.
795 (sys/uio.h): Likewise.
796 (sys/debugreg.h): Likewise.
797 (sys/syscall.h): Likewise.
798 (sys/procfs.h): Likewise.
799 (sys/user.h): Likewise.
800 (asm/ptrace.h): Likewise.
801 (i386-nat.h): Likewise.
802 * i386-linux-nat.c (i386-nat.h): Likewise.
803 (regset.h): Likewise.
804 (target.h): Likewise.
805 (linux-nat.h): Likewise.
806 (nat/linux-btrace.h): Likewise.
807 (btrace.h): Likewise.
808 (gdb_assert.h): Likewise.
809 (string.h): Likewise.
810 (sys/uio.h): Likewise.
811 (sys/user.h): Likewise.
812 (sys/procfs.h): Likewise.
813 (sys/reg.h): Likewise.
814 (sys/debugreg.h): Likewise.
815 (ORIG_EAX): Remove definition.
817 2014-07-11 Gary Benson <gbenson@redhat.com>
819 * i386-linux-nat.h: New file.
820 * x86-linux-nat.h: Likewise.
821 * x86-linux-nat.c: Likewise.
822 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
823 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
824 * config/i386/linux64.mh (NATDEPFILES): Likewise.
825 * amd64-linux-nat.c (x86-linux-nat.h): New include.
826 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
827 (PTRACE_SETREGSET): Likewise.
828 (arch_lwp_info): Now in x86-linux-nat.c.
829 (have_ptrace_getregset): Now in x86-linux-nat.h.
830 (x86_linux_dr_get): Now in x86-linux-nat.c.
831 (x86_linux_dr_set): Likewise.
832 (x86_linux_dr_get_addr): Likewise.
833 (x86_linux_dr_get_control): Likewise.
834 (x86_linux_dr_get_status): Likewise.
835 (update_debug_registers_callback): Likewise.
836 (x86_linux_dr_set_control): Likewise.
837 (x86_linux_dr_set_addr): Likewise.
838 (x86_linux_prepare_to_resume): Likewise.
839 (x86_linux_new_thread): Likewise.
840 (x86_linux_new_fork): Likewise.
841 (x86_linux_get_thread_area): Likewise.
842 (super_post_startup_inferior): Likewise.
843 (x86_linux_child_post_startup_inferior): Likewise.
844 (AMD64_LINUX_USER64_CS): Likewise.
845 (AMD64_LINUX_X32_DS): Likewise.
846 (x86_linux_read_description): Likewise.
847 (x86_linux_enable_btrace): Likewise.
848 (x86_linux_disable_btrace): Likewise.
849 (x86_linux_teardown_btrace): Likewise.
850 (x86_linux_read_btrace): Likewise.
851 (x86_linux_create_target): Likewise.
852 (x86_linux_add_target): Likewise.
853 * i386-linux-nat.c (x86-linux-nat.h): New include.
854 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
855 (PTRACE_SETREGSET): Likewise.
856 (arch_lwp_info): Now in x86-linux-nat.c.
857 (have_ptrace_getregset): Now in x86-linux-nat.h.
858 (x86_linux_dr_get): Now in x86-linux-nat.c.
859 (x86_linux_dr_set): Likewise.
860 (x86_linux_dr_get_addr): Likewise.
861 (x86_linux_dr_get_control): Likewise.
862 (x86_linux_dr_get_status): Likewise.
863 (update_debug_registers_callback): Likewise.
864 (x86_linux_dr_set_control): Likewise.
865 (x86_linux_dr_set_addr): Likewise.
866 (x86_linux_prepare_to_resume): Likewise.
867 (x86_linux_new_thread): Likewise.
868 (x86_linux_new_fork): Likewise.
869 (x86_linux_get_thread_area): Likewise.
870 (super_post_startup_inferior): Likewise.
871 (x86_linux_child_post_startup_inferior): Likewise.
872 (AMD64_LINUX_USER64_CS): Likewise.
873 (AMD64_LINUX_X32_DS): Likewise.
874 (x86_linux_read_description): Likewise.
875 (x86_linux_enable_btrace): Likewise.
876 (x86_linux_disable_btrace): Likewise.
877 (x86_linux_teardown_btrace): Likewise.
878 (x86_linux_read_btrace): Likewise.
879 (x86_linux_create_target): Likewise.
880 (x86_linux_add_target): Likewise.
882 2014-07-11 Gary Benson <gbenson@redhat.com>
884 * amd64-linux-nat.c: Comment and whitespace changes.
885 * i386-linux-nat.c: Comment and whitespace changes.
887 2014-07-11 Gary Benson <gbenson@redhat.com>
889 * amd64-linux-nat.c (x86_linux_create_target): New function.
890 (x86_linux_add_target): Likewise.
891 (_initialize_amd64_linux_nat): Delegate to the above new functions.
892 * i386-linux-nat.c (x86_linux_create_target): New function.
893 (x86_linux_add_target): Likewise.
894 (_initialize_i386_linux_nat): Delegate to the above new functions.
896 2014-07-11 Gary Benson <gbenson@redhat.com>
898 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
899 (ps_get_thread_area): Delegate to the above in 32-bit mode.
900 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
901 (ps_get_thread_area): Delegate to the above.
903 2014-07-11 Gary Benson <gbenson@redhat.com>
905 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
906 x86_linux_read_description. All uses updated. amd64-specific
907 code conditionalized. Conditionalized i386-specific code added.
908 Redundant cast removed.
909 * i386-linux-nat.c (i386_linux_read_description): Renamed to
910 x86_linux_read_description. All uses updated. i386-specific
911 code conditionalized. Conditionalized amd64-specific code added.
912 One sizeof replaced with the actual type it is describing.
914 2014-07-11 Gary Benson <gbenson@redhat.com>
916 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
917 x86_linux_dr_get. All uses updated.
918 (amd64_linux_dr_set): Renamed to
919 x86_linux_dr_set. All uses updated.
920 (amd64_linux_dr_get_addr): Renamed to
921 x86_linux_dr_get_addr. All uses updated.
922 (amd64_linux_dr_get_control): Renamed to
923 x86_linux_dr_get_control. All uses updated.
924 (amd64_linux_dr_get_status): Renamed to
925 x86_linux_dr_get_status. All uses updated.
926 (amd64_linux_dr_set_control): Renamed to
927 x86_linux_dr_set_control. All uses updated.
928 (amd64_linux_dr_set_addr): Renamed to
929 x86_linux_dr_set_addr. All uses updated.
930 (amd64_linux_prepare_to_resume): Renamed to
931 x86_linux_prepare_to_resume. All uses updated.
932 (amd64_linux_new_thread): Renamed to
933 x86_linux_new_thread. All uses updated.
934 (amd64_linux_new_fork): Renamed to
935 x86_linux_new_fork. All uses updated.
936 (amd64_linux_child_post_startup_inferior): Renamed to
937 x86_linux_child_post_startup_inferior. All uses updated.
938 (amd64_linux_enable_btrace): Renamed to
939 x86_linux_enable_btrace. All uses updated.
940 (amd64_linux_disable_btrace): Renamed to
941 x86_linux_disable_btrace. All uses updated.
942 (amd64_linux_teardown_btrace): Renamed to
943 x86_linux_teardown_btrace. All uses updated.
944 (amd64_linux_read_btrace): Renamed to
945 x86_linux_read_btrace. All uses updated.
946 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
947 x86_linux_dr_get. All uses updated.
948 (i386_linux_dr_set): Renamed to
949 x86_linux_dr_set. All uses updated.
950 (i386_linux_dr_get_addr): Renamed to
951 x86_linux_dr_get_addr. All uses updated.
952 (i386_linux_dr_get_control): Renamed to
953 x86_linux_dr_get_control. All uses updated.
954 (i386_linux_dr_get_status): Renamed to
955 x86_linux_dr_get_status. All uses updated.
956 (i386_linux_dr_set_control): Renamed to
957 x86_linux_dr_set_control. All uses updated.
958 (i386_linux_dr_set_addr): Renamed to
959 x86_linux_dr_set_addr. All uses updated.
960 (i386_linux_prepare_to_resume): Renamed to
961 x86_linux_prepare_to_resume. All uses updated.
962 (i386_linux_new_thread): Renamed to
963 x86_linux_new_thread. All uses updated.
964 (i386_linux_new_fork): Renamed to
965 x86_linux_new_fork. All uses updated.
966 (i386_linux_child_post_startup_inferior): Renamed to
967 x86_linux_child_post_startup_inferior. All uses updated.
968 (i386_linux_enable_btrace): Renamed to
969 x86_linux_enable_btrace. All uses updated.
970 (i386_linux_disable_btrace): Renamed to
971 x86_linux_disable_btrace. All uses updated.
972 (i386_linux_teardown_btrace): Renamed to
973 x86_linux_teardown_btrace. All uses updated.
974 (i386_linux_read_btrace): Renamed to
975 x86_linux_read_btrace. All uses updated.
977 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
979 * remote.c (extended_remote_post_attach): New function.
980 (init_extended_remote_ops): Install it as to_post_attach method.
982 2014-07-09 Pedro Alves <palves@redhat.com>
984 * infcmd.c (attach_command_post_wait): Don't call
985 target_terminal_inferior here.
986 (attach_command): Call it here instead.
988 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
990 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
992 * c-varobj.c (c_is_path_expr_parent): New function, moved core
993 from varobj.c, with additional checks.
994 (c_varobj_ops): Fill in is_path_expr_parent field.
995 (cplus_varobj_ops): Fill in is_path_expr_parent field.
996 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
998 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1000 (varobj_default_is_path_expr_parent): New function.
1001 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1002 (varobj_default_is_path_expr_parent): Declare new function.
1004 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1006 * infcmd.c (finish_backward): Turn internal error into normal error.
1008 2014-07-07 Pedro Alves <palves@redhat.com>
1011 * remote.c (async_handle_remote_sigint)
1012 (async_handle_remote_sigint_twice): Call
1013 gdb_call_async_signal_handler instead of
1014 mark_async_signal_handler.
1016 2014-07-07 Tom Tromey <tromey@redhat.com>
1018 * target-delegates.c: Rebuild.
1019 * target.c (target_info_record): Remove.
1020 * record.c (info_record_command): Unconditionally call
1022 * target.h (struct target_ops) <to_info_record>: Use
1023 TARGET_DEFAULT_IGNORE.
1024 (target_info_record): Remove.
1026 2014-07-07 Tom Tromey <tromey@redhat.com>
1028 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1029 TARGET_DEFAULT_NORETURN.
1030 * target.c (generic_tls_error): New function.
1031 (target_translate_tls_address): Don't search target stack.
1032 * target-delegates.c: Rebuild.
1033 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1035 * linux-thread-db.c (thread_db_get_thread_local_address):
1036 Unconditionally call beneath target.
1038 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1040 * cli/cli-logging.c (pop_output_files): Assign targerr to
1043 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1045 * MAINTAINERS (Write After Approval): Update my email address.
1047 2014-07-02 Gary Benson <gbenson@redhat.com>
1049 * proc-service.c (ps_xfer_memory): Update comment.
1050 (ps_pstop): Remove unused function.
1051 (ps_pcontinue): Likewise.
1052 (ps_lstop): Likewise.
1053 (ps_lcontinue): Likewise.
1054 (ps_lgetxregsize): Likewise.
1055 (ps_lgetxregs): Likewise.
1056 (ps_lsetxregs): Likewise.
1057 (ps_plog): Likewise.
1058 (ps_ptread): Likewise.
1059 (ps_ptwrite): Likewise.
1061 2014-07-01 Mark Wielaard <mjw@redhat.com>
1063 * dwarf2read.c (add_array_cv_type): New function.
1064 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1065 (read_tag_volatile_type): Likewise.
1067 2014-07-01 Tom Tromey <tromey@redhat.com>
1069 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1070 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1071 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1072 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1073 * command.h (cmd_cfunc_ftype): Move earlier.
1074 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1075 (add_com, add_info): Use cmd_cfunc_ftype.
1077 2014-06-30 Tom Tromey <tromey@redhat.com>
1079 * symtab.c (operator_chars): Make parameters and return type
1081 (file_matches): Make "files" const.
1082 (struct search_symbols_data) <files>: Now const.
1083 (search_symbols): Make "regexp" and "files" parameters const.
1085 (symtab_symbol_info): Remove cast.
1086 (rbreak_command): Update.
1087 * symtab.h (search_symbols): Update.
1089 2014-06-27 Yao Qi <yao@codesourcery.com>
1091 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1092 Change parameter type to 'struct thread_info *'. Caller
1094 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1096 * dummy-frame.c (struct dummy_frame_id): New.
1097 (dummy_frame_id_eq): New function.
1098 (struct dummy_frame) <id>: Change its type to 'struct
1100 (dummy_frame_push): Add parameter ptid and save it in
1102 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1104 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1106 (lookup_dummy_frame): Change parameter type to 'struct
1107 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1108 instead of frame_id_eq.
1109 (dummy_frame_pop): Add parameter ptid. Callers updated.
1110 Update comments. Compose dummy_frame_id and pass it to
1112 (dummy_frame_discard): Add parameter ptid.
1113 (dummy_frame_sniffer): Compose dummy_frame_id and call
1114 dummy_frame_id_eq instead of frame_id_eq.
1115 (fprint_dummy_frames): Print ptid.
1116 * dummy-frame.h: Remove comments.
1117 (dummy_frame_push): Add ptid in declaration.
1118 (dummy_frame_pop, dummy_frame_discard): Likewise.
1120 2014-06-26 Tom Tromey <tromey@redhat.com>
1122 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1123 * command.h (error_no_arg): Update.
1125 2014-06-26 Tom Tromey <tromey@redhat.com>
1127 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1128 (do_show_command): Make "arg" const.
1129 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1131 2014-06-26 Tom Tromey <tromey@redhat.com>
1133 * record-full.c (record_full_get_bookmark): Make "args" const.
1134 (record_full_goto_bookmark): Make "raw_bookmark" const.
1135 * record.c (record_goto): New function.
1136 (cmd_record_goto): Use it. Now static.
1137 * record.h (record_goto): Declare.
1138 (cmd_record_goto): Remove declaration.
1139 * target-delegates.c: Rebuild.
1140 * target.h (struct target_ops) <to_get_bookmark,
1141 to_goto_bookmark>: Make parameter const.
1143 2014-06-26 Tom Tromey <tromey@redhat.com>
1145 * defs.h (generic_load): Update.
1146 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1147 * monitor.c (monitor_load): Make "args" const.
1148 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1149 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1151 (mips_load): Make "file" const.
1152 * remote-sim.c (gdbsim_load): Make "args" const.
1153 * remote.c (remote_load): Make "name" const.
1154 * symfile.c (generic_load): Make "args" const.
1155 * target-delegates.c: Rebuild.
1156 * target.c (target_load): Make "arg" const.
1157 (debug_to_load): Make "args" const.
1158 * target.h (struct target_ops) <to_load>: Make parameter const.
1159 (target_load): Update.
1161 2014-06-26 Tom Tromey <tromey@redhat.com>
1164 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1165 (dwarf2_physname, read_partial_die)
1166 (guess_partial_die_structure_name, fixup_partial_die)
1167 (guess_full_die_structure_name, anonymous_struct_prefix)
1168 (dwarf2_name): Use per-BFD obstack.
1170 2014-06-26 Yao Qi <yao@codesourcery.com>
1172 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1173 dummyframe and this_id into inner block below.
1175 2014-06-26 Yao Qi <yao@codesourcery.com>
1177 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1178 with "signal_pass[0]" in the initialization of signal_pass.
1180 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1182 * record-btrace.c (record_btrace_generating_corefile)
1183 (record_btrace_prepare_to_generate_core)
1184 (record_btrace_done_generating_core): New.
1185 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1186 (record_btrace_store_registers, record_btrace_prepare_to_store):
1187 Forward request when generating a core file.
1188 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1189 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1190 to_done_generating_core.
1192 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1194 * target.h (target_ops) <to_prepare_to_generate_core>
1195 <to_done_generating_core>: New.
1196 (target_prepare_to_generate_core, target_done_generating_core): New.
1197 * target.c (target_prepare_to_generate_core)
1198 (target_done_generating_core): New.
1199 * target-delegates.c: Regenerate.
1200 * gcore.c: (write_gcore_file): Rename to ...
1201 (write_gcore_file_1): ...this.
1202 (write_gcore_file): Call target_prepare_to_generate_core
1203 and target_done_generating_core.
1205 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1207 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1208 * gcore.c (write_gcore_file): Free memory returned from
1209 make_corefile_notes.
1210 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1211 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1213 2014-06-24 Yao Qi <yao@codesourcery.com>
1215 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1216 (arm_linux_init_abi): Set skip_trampoline_code with
1217 gdbarch_skip_trampoline_code instead of
1218 find_solib_trampoline_target.
1220 2014-06-24 Yao Qi <yao@codesourcery.com>
1222 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1223 arm_skip_bx_reg returns non-zero.
1225 2014-06-24 Yao Qi <yao@codesourcery.com>
1227 * arm-tdep.c (arm_skip_bx_reg): New function.
1228 (arm_skip_stub): Call arm_skip_bx_reg.
1230 2014-06-23 Don Breazeal <donb@codesourcery.com>
1232 * MAINTAINERS: Add myself as write-after-approval maintainer.
1234 2014-06-23 Pedro Alves <palves@redhat.com>
1236 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1237 DR_CONTROL before setting DR0..DR3.
1238 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1239 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1240 bits of DR_CONTROL related to the debug register slot being
1241 disabled. If all slots are vacant, clear local slowdown as well,
1242 and assert DR_CONTROL is 0.
1244 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1246 * python/lib/gdb/command/xmethods.py
1247 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1248 current progspace only if the string "progspace" matches LOCUS_RE.
1250 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1252 Fix --with-system-readline with readline-6.3 patch 5.
1253 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1254 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1257 2014-06-20 Tom Tromey <tromey@redhat.com>
1259 * dwarf2read.c (dw2_get_real_path): Use correct type in
1261 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1263 2014-06-20 Gary Benson <gbenson@redhat.com>
1265 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1266 * common/glibc_thread_db.h: Likewise.
1267 * common/i386-cpuid.h: Likewise.
1268 * common/i386-gcc-cpuid.h: Likewise.
1269 * common/linux-btrace.h: Likewise.
1270 * common/linux-osdata.h: Likewise.
1271 * common/linux-procfs.h: Likewise.
1272 * common/linux-ptrace.h: Likewise.
1273 * common/mips-linux-watch.h: Likewise.
1274 * common/linux-btrace.c: Moved to nat.
1275 * common/linux-osdata.c: Likewise.
1276 * common/linux-procfs.c: Likewise.
1277 * common/linux-ptrace.c: Likewise.
1278 * common/mips-linux-watch.c: Likewise.
1279 * nat/gdb_thread_db.h: Moved from common.
1280 * nat/glibc_thread_db.h: Likewise.
1281 * nat/i386-cpuid.h: Likewise.
1282 * nat/i386-gcc-cpuid.h: Likewise.
1283 * nat/linux-btrace.c: Likewise.
1284 * nat/linux-btrace.h: Likewise.
1285 * nat/linux-osdata.c: Likewise.
1286 * nat/linux-osdata.h: Likewise.
1287 * nat/linux-procfs.c: Likewise.
1288 * nat/linux-procfs.h: Likewise.
1289 * nat/linux-ptrace.c: Likewise.
1290 * nat/linux-ptrace.h: Likewise.
1291 * nat/mips-linux-watch.c: Likewise.
1292 * nat/mips-linux-watch.h: Likewise.
1293 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1294 (object file files): Reordered.
1295 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1296 of glibc_thread_db.h.
1298 2014-06-20 Gary Benson <gbenson@redhat.com>
1300 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1301 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1302 (i386_dr_low): Likewise.
1303 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1304 (i386_dr_low_set_addr): Likewise.
1305 (i386_dr_low_get_addr): Likewise.
1306 (i386_dr_low_can_set_control): Likewise.
1307 (i386_dr_low_set_control): Likewise.
1308 (i386_dr_low_get_control): Likewise.
1309 (i386_dr_low_get_status): Likewise.
1310 (i386_get_debug_register_length): Likewise.
1311 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1312 (i386_dr_low): Likewise.
1313 * nat/i386-dregs.c (i386-low.h): Remove include.
1314 (i386-nat.h): Likewise.
1315 (nat/i386-dregs.h): New include.
1316 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1317 (i386_dr_low_set_addr): Likewise.
1318 (i386_dr_low_get_addr): Likewise.
1319 (i386_dr_low_can_set_control): Likewise.
1320 (i386_dr_low_set_control): Likewise.
1321 (i386_dr_low_get_control): Likewise.
1322 (i386_dr_low_get_status): Likewise.
1323 (i386_get_debug_register_length): Likewise.
1324 (debug_hw_points): Likewise.
1326 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1328 * Makefile.in (SFILES): Add d-exp.y.
1329 (YYFILES): Add d-exp.c.
1330 (YYOBJ): Add d-exp.o.
1331 (local-maintainer-clean): Delete d-exp.c.
1332 * d-exp.y: New file.
1333 * d-lang.h (d_parse): New declaration.
1334 (d_error): New declaration.
1335 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1336 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1337 PREC_ORDER operators.
1338 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1340 2014-06-19 Yao Qi <yao@codesourcery.com>
1342 * gdbthread.h (any_running): Remove the declaration.
1343 * thread.c (any_running): Remove.
1345 2014-06-19 Yao Qi <yao@codesourcery.com>
1347 * gdbthread.h (struct thread_info) <state>: Change its type to
1348 'enum thread_state'. Update comments.
1350 2014-06-19 Pedro Alves <palves@redhat.com>
1352 * gdbthread.h (ALL_THREADS): Delete.
1353 (ALL_NON_EXITED_THREADS): New macro.
1354 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1355 instead of ALL_THREADS.
1356 * infrun.c (find_thread_needs_step_over)
1357 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1358 instead of ALL_THREADS.
1359 * record-btrace.c (record_btrace_open)
1360 (record_btrace_stop_recording, record_btrace_close)
1361 (record_btrace_is_replaying, record_btrace_resume)
1362 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1363 * remote.c (append_pending_thread_resumptions): Likewise.
1364 * thread.c (thread_apply_all_command): Likewise.
1366 2014-06-19 Gary Benson <gbenson@redhat.com>
1368 * i386-nat.c (i386_stopped_by_watchpoint):
1369 Use i386_dr_stopped_by_watchpoint.
1370 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1371 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1373 2014-06-19 Gary Benson <gbenson@redhat.com>
1375 * nat/i386-dregs.c: New file.
1376 * Makefile.in (i386-dregs.o): New rule.
1377 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1378 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1379 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1380 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1381 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1382 * config/i386/go32.mh (NATDEPFILES): Likewise.
1383 * config/i386/linux.mh (NATDEPFILES): Likewise.
1384 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1385 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1386 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1387 * i386-nat.h (debug_hw_points): New declaration.
1388 * i386-nat.c (breakpoint.h): Remove include.
1389 (command.h): Likewise.
1390 (target.h): Likewise.
1391 (gdb_assert.h): Likewise.
1392 (debug_hw_points): Made nonstatic.
1393 (debug_printf): Now in i386-dregs.c.
1394 (TARGET_HAS_DR_LEN_8): Likewise.
1395 (DR_CONTROL_SHIFT): Likewise.
1396 (DR_CONTROL_SIZE): Likewise.
1397 (DR_RW_EXECUTE): Likewise.
1398 (DR_RW_WRITE): Likewise.
1399 (DR_RW_READ): Likewise.
1400 (DR_RW_IORW): Likewise.
1401 (DR_LEN_1): Likewise.
1402 (DR_LEN_2): Likewise.
1403 (DR_LEN_4): Likewise.
1404 (DR_LEN_8): Likewise.
1405 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1406 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1407 (DR_ENABLE_SIZE): Likewise.
1408 (DR_LOCAL_SLOWDOWN): Likewise.
1409 (DR_GLOBAL_SLOWDOWN): Likewise.
1410 (DR_CONTROL_RESERVED): Likewise.
1411 (I386_DR_CONTROL_MASK): Likewise.
1412 (I386_DR_VACANT): Likewise.
1413 (I386_DR_LOCAL_ENABLE): Likewise.
1414 (I386_DR_GLOBAL_ENABLE): Likewise.
1415 (I386_DR_DISABLE): Likewise.
1416 (I386_DR_SET_RW_LEN): Likewise.
1417 (I386_DR_GET_RW_LEN): Likewise.
1418 (I386_DR_WATCH_HIT): Likewise.
1419 (i386_wp_op_t): Likewise.
1420 (i386_show_dr): Likewise.
1421 (i386_length_and_rw_bits): Likewise.
1422 (i386_insert_aligned_watchpoint): Likewise.
1423 (i386_remove_aligned_watchpoint): Likewise.
1424 (i386_handle_nonaligned_watchpoint): Likewise.
1425 (i386_update_inferior_debug_regs): Likewise.
1426 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1427 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1428 (i386_region_ok_for_watchpoint):
1429 Use i386_dr_region_ok_for_watchpoint.
1430 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1432 2014-06-19 Gary Benson <gbenson@redhat.com>
1434 * i386-nat.c (i386_insert_hw_breakpoint): Use
1435 i386_insert_watchpoint.
1436 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1438 2014-06-19 Gary Benson <gbenson@redhat.com>
1440 * i386-nat.c (i386_dr_show): Renamed to
1441 i386_show_dr and made static. All uses updated.
1442 (i386_dr_length_and_rw_bits): Renamed to
1443 i386_length_and_rw_bits and made static.
1445 (i386_dr_insert_aligned_watchpoint): Renamed to
1446 i386_insert_aligned_watchpoint and made static.
1448 (i386_dr_remove_aligned_watchpoint): Renamed to
1449 i386_remove_aligned_watchpoint and made static.
1451 (i386_dr_update_inferior_debug_regs): Renamed to
1452 i386_update_inferior_debug_regs and made static.
1454 * nat/i386-dregs.h (i386_dr_show): Removed.
1455 (i386_dr_length_and_rw_bits): Likewise.
1456 (i386_dr_insert_aligned_watchpoint): Likewise.
1457 (i386_dr_remove_aligned_watchpoint): Likewise.
1458 (i386_dr_update_inferior_debug_regs): Likewise.
1460 2014-06-19 Gary Benson <gbenson@redhat.com>
1462 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1463 * configure: Regenerate.
1464 * config.in: Likewise.
1465 * main.c (signal.h): New include.
1466 (setup_alternate_signal_stack): New function.
1467 (captured_main): Call the above.
1468 * cp-support.c (signal.h): New include.
1469 (catch_demangler_crashes): New flag.
1470 (SIGJMP_BUF): New define.
1471 (SIGSETJMP): Likewise.
1472 (SIGLONGJMP): Likewise.
1473 (gdb_demangle_jmp_buf): New static global.
1474 (gdb_demangle_attempt_core_dump): Likewise.
1475 (gdb_demangle_signal_handler): New function.
1476 (gdb_demangle): If catch_demangler_crashes is set, install the
1477 above signal handler before calling bfd_demangle, and restore
1478 the original signal handler afterwards. Display the offending
1479 symbol and call demangler_warning the first time a segmentation
1481 (_initialize_cp_support): New maint set/show command.
1483 2014-06-19 Gary Benson <gbenson@redhat.com>
1485 * utils.h (resource_limit_kind): New enum.
1486 (can_dump_core): New declaration.
1487 (warn_cant_dump_core): Likewise.
1488 (dump_core): Likewise.
1489 * utils.c (dump_core): Made nonstatic. Added new
1490 parameter "limit_kind".
1491 (can_dump_core): Made nonstatic. Moved printing code to...
1492 (warn_cant_dump_core): New function.
1493 (can_dump_core_warn): Likewise.
1494 (internal_vproblem): Replace calls to can_dump_core with
1495 calls to can_dump_core_warn. Supply new argument to each.
1497 2014-06-19 Gary Benson <gbenson@redhat.com>
1499 * utils.h (demangler_vwarning): New declaration.
1500 (demangler_warning): Likewise.
1501 * utils.c (struct internal_problem)
1502 <user_settable_should_quit>: New field.
1503 <user_settable_should_dump_core>: Likewise
1504 (internal_error_problem): Add values for above new fields.
1505 (internal_warning_problem): Likewise.
1506 (demangler_warning_problem): New static global.
1507 (demangler_vwarning): New function.
1508 (demangler_warning): Likewise.
1509 (add_internal_problem_command): Selectively add commands.
1510 (_initialize_utils): New internal problem command.
1511 * maint.c (maintenance_demangler_warning): New function.
1512 (_initialize_maint_cmds): New command.
1514 2014-06-18 Tom Tromey <tromey@redhat.com>
1516 * f-valprint.c (info_common_command_for_block): Update.
1517 * symtab.h (struct general_symbol_info) <common_block>: Now
1520 2014-06-18 Tom Tromey <tromey@redhat.com>
1522 * symtab.h (struct symtab) <blockvector>: Now const.
1523 * ada-lang.c (ada_add_global_exceptions): Update.
1524 * buildsym.c (augment_type_symtab): Update.
1525 * dwarf2read.c (dw2_lookup_symbol): Update.
1526 * jit.c (finalize_symtab): Update.
1527 * jv-lang.c (add_class_symtab_symbol): Update.
1528 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1530 * objfiles.c (objfile_relocate1): Update.
1531 * psymtab.c (lookup_symbol_aux_psymtabs)
1532 (maintenance_check_psymtabs): Update.
1533 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1535 * spu-tdep.c (spu_catch_start): Update.
1536 * symmisc.c (dump_symtab_1): Update.
1537 * symtab.c (lookup_global_symbol_from_objfile)
1538 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1539 (basic_lookup_transparent_type_quick)
1540 (basic_lookup_transparent_type, find_pc_sect_symtab)
1541 (find_pc_sect_line, search_symbols): Update.
1542 * block.c (find_block_in_blockvector): Make "bl" const.
1543 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1545 (blockvector_contains_pc): Make "bv" const.
1546 (block_for_pc_sect): Update.
1547 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1548 (blockvector_contains_pc): Update.
1549 * breakpoint.c (resolve_sal_pc): Update.
1550 * inline-frame.c (block_starting_point_at): Update.
1552 2014-06-18 Tom Tromey <tromey@redhat.com>
1554 * completer.c (complete_line): Make "line_buffer" const.
1555 * completer.h (complete_line): Update.
1557 2014-06-18 Tom Tromey <tromey@redhat.com>
1559 * symtab.c (add_macro_name): Remove unneeded cast.
1561 2014-06-18 Tom Tromey <tromey@redhat.com>
1563 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1564 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1566 2014-06-18 Tom Tromey <tromey@redhat.com>
1568 * probe.c (info_probes_for_ops): Make "arg" const.
1569 * probe.h (info_probes_for_ops): Update.
1571 2014-06-18 Tom Tromey <tromey@redhat.com>
1573 * varobj.c (varobj_create): Update.
1574 * valops.c (value_of_this): Update.
1575 * tracepoint.c (add_local_symbols, scope_info): Update.
1576 * symtab.h (struct general_symbol_info) <block>: Now const.
1577 * symtab.c (skip_prologue_sal)
1578 (default_make_symbol_completion_list_break_on)
1579 (skip_prologue_using_sal): Update.
1580 * stack.h (iterate_over_block_locals)
1581 (iterate_over_block_local_vars): Update.
1582 * stack.c (print_frame_args): Update.
1583 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1585 (get_selected_block): Make return type const.
1586 * python/py-frame.c (frapy_block): Update.
1587 * python/py-block.c (gdbpy_block_for_pc): Update.
1588 * p-exp.y (%union) <bval>: Now const.
1589 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1590 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1591 * m2-exp.y (%union) <bval>: Now const.
1592 * linespec.c (get_current_search_block): Make return type const.
1593 (create_sals_line_offset, find_label_symbols): Update.
1594 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1596 (block_starting_point_at): Make "block" const.
1597 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1598 (check_exception_resume): Update.
1599 * guile/scm-frame.c (gdbscm_frame_block): Update.
1600 * guile/scm-block.c (gdbscm_lookup_block): Update.
1601 * frame.h (get_frame_block): Update.
1602 (get_selected_block): Make return type const.
1603 * frame.c (frame_id_inner): Update.
1604 * f-valprint.c (info_common_command_for_block)
1605 (info_common_command): Update.
1606 * dwarf2loc.c (dwarf2_find_location_expression)
1607 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1608 (locexpr_describe_location_piece): Update.
1609 * c-exp.y (%union) <bval>: Now const.
1610 * breakpoint.c (resolve_sal_pc): Update.
1611 * blockframe.c (get_frame_block):Make return type const.
1612 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1613 (block_innermost_frame): Update.
1614 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1615 (block_for_pc, block_for_pc_sect): Update.
1616 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1618 (block_for_pc_sect, block_for_pc): Make return type const.
1619 * ax-gdb.c (gen_expr): Update.
1620 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1621 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1622 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1623 (ada_read_var_value): Update.
1624 * ada-exp.y (struct name_info) <block>: Now const.
1626 (block_lookup): Constify.
1628 2014-06-18 Gary Benson <gbenson@redhat.com>
1630 * nat/i386-dregs.h: New file.
1631 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1632 * i386-nat.h (i386-dregs.h): New include.
1633 (DR_FIRSTADDR): Now in i386-dregs.h.
1634 (DR_LASTADDR): Likewise.
1635 (DR_NADDR): Likewise.
1636 (DR_STATUS): Likewise.
1637 (DR_CONTROL): Likewise.
1638 (i386_debug_reg_state): Likewise.
1639 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1641 2014-06-18 Don Breazeal <donb@codesourcery.com>
1643 * breakpoint.c (set_longjmp_breakpoint): Call
1644 momentary_breakpoint_from_master with additional argument.
1645 (set_longjmp_breakpoint_for_call_dummy): Call
1646 momentary_breakpoint_from_master with additional argument.
1647 (set_std_terminate_breakpoint): Call
1648 momentary_breakpoint_from_master with additional argument.
1649 (momentary_breakpoint_from_master): Add argument to function
1650 definition and use it to initialize structure member flag.
1651 (clone_momentary_breakpoint): Call
1652 momentary_breakpoint_from_master with additional argument.
1653 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1654 member flags set in momentary_breakpoint_from_master.
1656 2014-06-18 Gary Benson <gbenson@redhat.com>
1658 * i386-nat.c (i386_show_dr): Renamed to
1659 i386_dr_show and made nonstatic. All uses updated.
1660 (i386_length_and_rw_bits): Renamed to
1661 i386_dr_length_and_rw_bits and made nonstatic.
1663 (i386_insert_aligned_watchpoint): Renamed to
1664 i386_dr_insert_aligned_watchpoint and made nonstatic.
1666 (i386_remove_aligned_watchpoint): Renamed to
1667 i386_dr_remove_aligned_watchpoint and made nonstatic.
1669 (i386_update_inferior_debug_regs): Renamed to
1670 i386_dr_update_inferior_debug_regs and made nonstatic.
1673 2014-06-18 Gary Benson <gbenson@redhat.com>
1675 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1676 (i386_dr_low_can_set_control): Likewise.
1677 (i386_dr_low_set_addr): Likewise.
1678 (i386_dr_low_set_control): Likewise.
1679 (i386_dr_low_get_addr): Likewise.
1680 (i386_dr_low_get_status): Likewise.
1681 (i386_dr_low_get_control): Likewise.
1682 (i386_insert_aligned_watchpoint): Use new macros.
1683 (i386_update_inferior_debug_regs): Likewise.
1684 (i386_stopped_data_address): Likewise.
1686 2014-06-18 Gary Benson <gbenson@redhat.com>
1688 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1689 New parameter. All uses updated.
1691 2014-06-18 Gary Benson <gbenson@redhat.com>
1693 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1696 2014-06-18 Gary Benson <gbenson@redhat.com>
1698 * i386-nat.c (debug_printf): New macro.
1699 (i386_get_debug_register_length): Likewise.
1700 (TARGET_HAS_DR_LEN_8): Use above macro.
1701 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1702 and printf_unfiltered. Use phex to format values.
1704 2014-06-18 Gary Benson <gbenson@redhat.com>
1706 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1709 2014-06-18 Gary Benson <gbenson@redhat.com>
1711 * i386-nat.c: Comment changes.
1713 2014-06-18 Gary Benson <gbenson@redhat.com>
1715 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1717 2014-06-18 Gary Benson <gbenson@redhat.com>
1719 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1720 (i386_insert_aligned_watchpoint): Likewise.
1721 (i386_remove_aligned_watchpoint): Likewise.
1722 (i386_handle_nonaligned_watchpoint): Likewise.
1724 2014-06-18 Gary Benson <gbenson@redhat.com>
1726 * i386-nat.c: Whitespace changes.
1728 2014-06-17 Samuel Bronson <naesten@gmail.com>
1730 * MAINTAINERS: Update Roland McGrath's email address.
1731 Thanks to Sergio Durigan Junior for pointing out that he left
1732 Red Hat a while ago, and giving me a current address.
1734 2014-06-17 Tom Tromey <tromey@redhat.com>
1736 * utils.h (savestring): Remove declaration.
1738 2014-06-17 Tom Tromey <tromey@redhat.com>
1740 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1742 2014-06-16 Keith Seitz <keiths@redhat.com>
1745 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1746 to update the varobj if inferior_ptid is null_ptid.
1748 2014-06-16 Tom Tromey <tromey@redhat.com>
1750 * target.h (struct target_ops) <to_info_proc>: Make parameter
1752 (target_info_proc): Update.
1753 * target.c (target_info_proc): Make "args" const.
1754 * procfs.c (procfs_info_proc): Update.
1755 * linux-tdep.c (linux_info_proc): Update.
1756 (linux_core_info_proc_mappings): Make "args" const.
1757 (linux_core_info_proc): Update.
1758 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1759 * gdbarch.c: Rebuild.
1760 * gdbarch.h: Rebuild.
1761 * corelow.c (core_info_proc): Update.
1763 2014-06-16 Tom Tromey <tromey@redhat.com>
1765 * target.h (struct target_ops) <to_disconnect>: Make parameter
1767 (target_disconnect): Update.
1768 * target.c (target_disconnect): Make "args" const.
1769 * target-delegates.c: Rebuild.
1770 * remote.c (remote_disconnect): Update.
1771 * record.h (record_disconnect): Update.
1772 * record.c (record_disconnect): Update.
1773 * inf-child.c (inf_child_disconnect): Update.
1775 2014-06-16 Tom Tromey <tromey@redhat.com>
1777 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1778 * target.c (debug_to_rcmd, default_rcmd): Update.
1779 * target-delegates.c: Rebuild.
1780 * remote.c (remote_rcmd): Update.
1781 * monitor.c (monitor_rcmd): Update.
1783 2014-06-16 Pedro Alves <palves@redhat.com>
1785 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1786 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1787 have OBJF_SHARED set.
1788 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1789 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1790 instead of OBJF_USERLOADED.
1791 * objfiles.h (OBJF_SHARED): Update comment.
1792 (userloaded_objfile_contains_address_p): Rename to ...
1793 (shared_objfile_contains_address_p): ... this, and update
1795 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1797 (remove_symbol_file_command): Skip objfiles that don't have
1800 2014-06-16 Tom Tromey <tromey@redhat.com>
1802 * minsyms.h (prim_record_minimal_symbol)
1803 (prim_record_minimal_symbol_and_info): Update comments.
1805 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1807 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1808 or --without-guile, according to how GDB was built.
1810 2014-06-13 Tom Tromey <tromey@redhat.com>
1812 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1814 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1816 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1818 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1819 help_list.Pass all_commands, not -1, to help_list.
1820 * cli/cli-dump.c (dump_command, append_command)
1821 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1822 (binary_dump_command, binary_append_command): Pass all_commands,
1823 not -1, to help_list.
1824 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1826 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1828 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1830 * top.c (set_history): Pass all_commands, not -1, to help_list.
1831 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1832 all_commands, not -1, to help_list.
1833 * symfile.c (overlay_command): Pass all_commands, not -1, to
1835 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1837 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1839 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1841 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1842 not -1, to help_list.
1843 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1844 not -1, to help_list.
1845 * maint.c (maintenance_command, maintenance_info_command)
1846 (maintenance_print_command, maintenance_set_cmd): Pass
1847 all_commands, not -1, to help_list.
1848 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1850 * language.c (set_check): Pass all_commands, not -1, to help_list.
1851 * infcmd.c (unset_command): Pass all_commands, not -1, to
1853 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1855 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1857 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1859 * breakpoint.c (save_command): Pass all_commands, not -1, to
1861 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1862 all_commands, not -1, to help_list.
1864 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1866 * regcache.c (struct register_to_invalidate): New structure.
1867 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1869 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1871 2014-06-12 Yao Qi <yao@codesourcery.com>
1873 * varobj.c (varobj_get_num_children): Call
1874 varobj_is_dynamic_p.
1875 (varobj_list_children): Likewise.
1876 (varobj_update): Likewise. Update comments.
1878 2014-06-12 Yao Qi <yao@codesourcery.com>
1880 * varobj.c (varobj_pretty_printed_p): Rename to ...
1881 (varobj_is_dynamic_p): ... this. New function.
1882 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1883 (varobj_is_dynamic_p): Declare.
1884 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1885 (mi_print_value_p, varobj_update_one): Likewise.
1887 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1888 Yao Qi <yao@codesourcery.com>
1890 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1891 (varobj_get_iterator): Wrap up code for pretty-printer by
1892 "#if HAVE_PYTHON" and "#endif".
1893 (update_dynamic_varobj_children): Likewise.
1895 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1896 Yao Qi <yao@codesourcery.com>
1898 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1899 gdb_python_initialized is false. Move some code from varobj.c.
1900 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1901 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1902 (struct varobj_item): Moved to varobj-iter.h".
1903 (varobj_clear_saved_item): New function.
1904 (update_dynamic_varobj_children): Move python-related code to
1906 (free_variable): Call varobj_clear_saved_item and
1909 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1910 Yao Qi <yao@codesourcery.com>
1912 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1913 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1914 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1915 (py-varobj.o): New rule.
1916 * python/py-varobj.c: New file.
1917 * python/python-internal.h (py_varobj_get_iterator): Declare.
1918 * varobj-iter.h: New file.
1919 * varobj.c: Include "varobj-iter.h"
1920 (struct varobj) <child_iter>: Change its type from "PyObject *"
1921 to "struct varobj_iter *".
1922 <saved_item>: Likewise.
1923 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1924 [HAVE_PYTHON] (varobj_get_iterator): New function.
1925 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1926 python-specific code to python/py-varobj.c.
1927 (install_visualizer): Call varobj_iter_delete instead of
1929 * varobj.h (varobj_ensure_python_env): Declare.
1931 2014-06-12 Yao Qi <yao@codesourcery.com>
1933 * varobj.c (struct varobj_item): New structure.
1934 (create_child_with_value): Update declaration.
1935 (varobj_add_child): Replace arguments 'name' and 'value' with
1936 'item'. All callers updated.
1937 (install_dynamic_child): Likewise.
1938 (update_dynamic_varobj_children): Likewise.
1939 (varobj_add_child): Likewise.
1940 (create_child_with_value): Likewise.
1942 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1944 * NEWS: Create a new section for the next release branch.
1945 Rename the section of the current branch, now that it has
1948 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1950 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1951 * version.in: Bump version to 7.8.50.DATE-cvs.
1953 2014-06-11 Pedro Alves <palves@redhat.com>
1956 * ser-mingw.c (net_windows_socket_check_pending): New function.
1957 (net_windows_select_thread): Ignore spurious wakeups. Use
1958 net_windows_socket_check_pending.
1959 (net_windows_wait_handle): Check for pending events with
1960 ioctlsocket, through net_windows_socket_check_pending, instead of
1961 checking the socket's event.
1963 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1965 * python/python-internal.h (gdb_PyObject_GetAttrString)
1966 (gdb_PyObject_HasAttrString): New inline function definitions.
1967 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1968 char * of the second argument to PyObject_GetAttrString.
1970 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1972 * serial.c (serial_write): Fix index of character to be printed
1973 in call to serial_logchar when serial debug traces are enabled.
1975 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1977 * gdbtypes (resolve_dynamic_range): Add function description.
1979 2014-06-09 Pedro Alves <palves@redhat.com>
1981 * linux-nat.c (linux_child_follow_fork): Initialize status with
1982 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1983 inner block. Only pass the signal to PTRACE_DETACH if in pass
1986 2014-06-09 Gary Benson <gbenson@redhat.com>
1988 * common/signals.c (gdb_signal_from_host): Reorder to separate
1989 the always-available ANSI-standard signals from the signals that
1991 (do_gdb_signal_to_host): Likewise.
1992 * proc-events.c (signal_table): Likewise.
1994 2014-06-08 Hui Zhu <hui@codesourcery.com>
1996 * common/linux-ptrace.c (linux_disable_event_reporting): New
1998 * common/linux-ptrace.h (linux_disable_event_reporting): New
2000 * linux-nat.c (linux_child_follow_fork): Do a single step before
2003 2014-06-07 Keith Seitz <keiths@redhat.com>
2007 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2008 from symbol_matches_domain in symtab.c. All local callers
2009 of symbol_matches_domain updated.
2010 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2011 search STRUCT_DOMAIN.
2012 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2013 independently. standard_lookup will do that automatically.
2014 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2015 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2016 (cp_lookup_symbol_in_namespace): Likewise.
2017 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2018 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2019 may return a STRUCT_DOMAIN match.
2020 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2021 * cp-support.c: Include language.h.
2022 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2024 * psymtab.c (match_partial_symbol): Compare the requested
2025 domain with the symbol's domain directly.
2026 (lookup_partial_symbol): Likewise.
2027 * symtab.c (lookup_symbol_in_language): Explain when/why
2028 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2029 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2030 appropriate languages.
2031 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2032 and moved to ada-lang.c
2033 (lookup_block_symbol): Explain that this function only returns
2034 symbol matching the requested DOMAIN.
2035 Compare the requested domain with the symbol's domain directly.
2036 (iterate_over_symbols): Compare the requested domain with the
2037 symbol's domain directly.
2038 * symtab.h (symbol_matches_domain): Remove.
2040 2014-06-06 Doug Evans <xdje42@gmail.com>
2042 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2043 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2044 (gdbscm_guile_version_is_at_least): Declare.
2045 (gdbscm_scm_string_to_int): Declare.
2046 * guile/guile.c (gdbscm_guile_major_version): New global.
2047 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2048 (guile_datadir): New static global.
2049 (gdbscm_guile_data_directory): New function.
2050 (initialize_scheme_side): Update.
2051 (misc_guile_functions): Add guile-data-directory.
2052 (initialize_gdb_module): Fetch guile version number.
2053 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2054 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2055 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2056 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2058 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2059 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2060 * guile/scm-value.c (gdbscm_value_to_string): Only call
2061 scm_port_conversion_strategy if Guile version >= 2.0.6.
2063 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2065 * main.c (print_gdb_help): Add -q and --silent.
2067 2014-06-06 Gary Benson <gbenson@redhat.com>
2069 * common/signals.c: Remove preprocessor conditionals for
2070 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2071 SIGSEGV and SIGTERM.
2072 * proc-events.c: Likewise.
2074 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2076 * symfile.c (symfile_free_objfile): Remove restriction to
2078 * symfile-mem.c (symbol_file_add_from_memory): Call
2079 add_target_sections_of_objfile.
2081 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2083 * guile/scm-value.c (gdbscm_history_append_x): Use
2084 'vlscm_get_value_smob_arg_unsafe' instead of
2085 'vlscm_scm_to_value'.
2087 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2090 * utils.c (printchar): Don't escape at all if quoter is NUL.
2091 Update function documentation to clarify effect of parameter
2093 * remote.c (escape_buffer): Pass '\\' as the quoter to
2094 fputstrn_unfiltered.
2095 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2096 generate the output.
2097 (mi_solib_unloaded): Same.
2099 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2101 * development.sh: Delete.
2102 * Makefile.in (config.status): Adjust dependency on development.sh.
2103 * configure.ac: Adjust development.sh source call.
2104 * configure: Regenerate.
2106 2014-06-04 Doug Evans <xdje42@gmail.com>
2108 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2109 is_scheme_bkpt, spec.
2110 (bpscm_make_breakpoint_smob): Initialize new members.
2111 (gdbscm_create_breakpoint_x): Split into two ...
2112 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2113 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2114 (scheme_function breakpoint_functions): Update.
2115 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2116 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2117 register-breakpoint!.
2119 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2122 * mem-break.c (z_type_supported): Return zero if
2123 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2125 2014-06-04 Tom Tromey <tromey@redhat.com>
2127 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2128 value_from_contents_and_address_unresolved.
2129 (ada_template_to_fixed_record_type_1): Likewise.
2130 (ada_which_variant_applies): Likewise.
2131 * value.h (value_from_contents_and_address_unresolved): Declare.
2132 * value.c (value_from_contents_and_address_unresolved): New
2134 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2135 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2136 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2138 2014-06-04 Tom Tromey <tromey@redhat.com>
2140 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2142 2014-06-04 Tom Tromey <tromey@redhat.com>
2144 * procfs.c (procfs_attach): Make "args" const.
2145 * windows-nat.c (windows_attach): Make "args" const.
2146 * nto-procfs.c (procfs_attach): Make "args" const.
2147 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2148 * go32-nat.c (go32_attach): Make "args" const.
2149 * gnu-nat.c (gnu_attach): Make "args" const.
2150 * darwin-nat.c (darwin_attach): Make "args" const.
2151 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2152 * linux-nat.c (linux_nat_attach): Make "args" const.
2153 * remote.c (extended_remote_attach_1, extended_remote_attach):
2155 * target.h (struct target_ops) <to_attach>: Make "args" const.
2156 (find_default_attach): Likewise.
2157 * utils.c (parse_pid_to_attach): Make "args" const.
2158 * utils.h (parse_pid_to_attach): Update.
2160 2014-06-04 Tom Tromey <tromey@redhat.com>
2162 * target-delegates.c: Rebuild.
2163 * target.c (default_thread_address_space): New function.
2164 (target_thread_address_space): Simplify.
2165 * target.h (struct target_ops) <to_thread_address_space>: Add
2166 TARGET_DEFAULT_FUNC.
2168 2014-06-04 Doug Evans <xdje42@gmail.com>
2170 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2172 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2174 * record-btrace.c: Include event-loop.h and inf-loop.h.
2175 (record_btrace_resume_exec_dir)
2176 (record_btrace_async_inferior_event_handler)
2177 (record_btrace_handle_async_inferior_event): New.
2178 (record_btrace_open): Create async event handler.
2179 (record_btrace_close): Delete async event handler.
2180 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2181 Mark async event handler.
2182 (record_btrace_execution_direction): New.
2183 (init_record_btrace_ops): Initialize to_execution_direction.
2185 2014-06-03 Doug Evans <xdje42@gmail.com>
2187 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2188 (gdbscm_make_parameter): Ditto.
2190 2014-06-03 Doug Evans <dje@google.com>
2192 * exec.c (exec_close_1): Call clear_section_table instead of
2193 resize_section_table.
2194 (clear_section_table): New function.
2195 (resize_section_table): Make static. Rename arg num_added to
2197 * exec.h (clear_section_table): Declare.
2198 (resize_section_table): Delete.
2199 * progspace.c (release_program_space): Call clear_section_table
2200 instead of resize_section_table.
2202 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2204 * NEWS (Python Scripting): Add entry about the new xmethods
2207 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2209 * python/py-xmethods.c: New file.
2210 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2211 (objfpy_dealloc): XDECREF on the new xmethods field.
2212 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2214 (objfpy_get_xmethods): New function.
2215 (objfile_getset): New entry 'xmethods'.
2216 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2217 (pspy_dealloc): XDECREF on the new xmethods field.
2218 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2220 (pspy_get_xmethods): New function.
2221 (pspace_getset): New entry 'xmethods'.
2222 * python/python-internal.h: Add declarations for new functions.
2223 * python/python.c (_initialize_python): Invoke
2224 gdbpy_initialize_xmethods.
2225 * python/lib/gdb/__init__.py (xmethods): New
2227 * python/lib/gdb/xmethod.py: New file.
2228 * python/lib/gdb/command/xmethods.py: New file.
2230 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2232 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2233 best match method returned by find_overload_match is an xmethod.
2234 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2235 the best matching operator returned by find_overload_match is an
2237 * valops.c: #include "extension.h".
2238 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2239 Return void. The list of matching source methods is returned in
2240 "fn_list" and a vector of matching debug method workers is
2241 returned in "xm_worker_vec". Update all callers.
2242 (value_find_oload_method_list): Likewise.
2243 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2244 non-NULL, then the index of the best matching method in this
2245 vector is returned. Update all callers.
2246 (find_overload_match): Include xmethods while performing overload
2249 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2251 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2252 * extension-priv.h (struct extension_language_ops): Add the
2254 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2255 get_matching_xmethod_workers, get_xmethod_argtypes,
2256 invoke_xmethod, free_xmethod_worker,
2257 free_xmethod_worker_vec): New functions.
2258 * extension.h: #include "common/vec.h".
2259 New function declarations.
2260 (struct xmethod_worker): New struct.
2261 (VEC (xmethod_worker_ptr)): New vector type.
2262 (xmethod_worker_ptr): New typedef.
2263 (xmethod_worker_vec): Likewise.
2264 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2266 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2267 (struct builtin_type): New field "xmethod".
2268 * valarith.c (value_ptradd): Assert that the value argument is not
2270 * valops.c (value_must_coerce_to_target): Return 0 for
2271 lval_xcallable values.
2272 * value.c (struct value): New field XM_WORKER in the field
2274 (value_address, value_raw_address): Return 0 for lval_xcallable
2276 (set_value_address): Assert that the value is not an
2278 (value_free): Free the associated xmethod worker when freeing
2279 lval_xcallable values.
2280 (set_value_component_location): Assert that the WHOLE value is not
2282 (value_of_xmethod, call_xmethod): New functions.
2283 * value.h: Declare "struct xmethod_worker".
2284 Declare new functions value_of_xmethod, call_xmethod.
2286 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2287 Pedro Alves <palves@redhat.com>
2289 PR breakpoints/17000
2290 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2291 New function, extracted from software_breakpoint_inserted_here_p.
2292 (software_breakpoint_inserted_here_p): Replace factored out code
2293 by call to find_non_raw_software_breakpoint_inserted_here.
2294 (bp_target_info_copy_insertion_state): New function.
2295 (bkpt_insert_location): Handle the case of a single-step
2296 breakpoint already inserted at the same address.
2297 (bkpt_remove_location): Handle the case of a single-step
2298 breakpoint still inserted at the same address.
2299 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2300 breakpoint already inserted at the same address.
2301 (deprecated_remove_raw_breakpoint): Handle the case of a
2302 non-raw breakpoint still inserted at the same address.
2303 (find_single_step_breakpoint): New function, extracted from
2304 single_step_breakpoint_inserted_here_p.
2305 (find_single_step_breakpoint): New function,
2306 factored out from single_step_breakpoint_inserted_here_p.
2307 (single_step_breakpoint_inserted_here_p): Reimplement.
2309 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2311 Pushed by Joel Brobecker <brobecker@adacore.com>
2312 * source.c (show_substitute_path_command): Fix display of matching
2315 2014-06-03 Gary Benson <gbenson@redhat.com>
2317 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2319 2014-06-02 Doug Evans <xdje42@gmail.com>
2321 Add parameter support for Guile.
2322 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2323 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2324 (scm-param.o): New rule.
2325 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2326 (gdbscm_misc_error): Declare.
2327 (gdbscm_canonicalize_command_name): Declare.
2328 (gdbscm_scm_to_host_string): Declare.
2329 (gdbscm_scm_from_host_string): Declare.
2330 (gdbscm_initialize_parameters): Declare.
2331 * guile/guile.c (initialize_gdb_module): Call
2332 gdbscm_initialize_parameters.
2333 * guile/lib/gdb.scm: Export parameter symbols.
2334 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2335 cmdscm_canonicalize_name and made public. All callers updated.
2336 * guile/scm-exception.c (gdbscm_misc_error): New function.
2337 * guile/scm-param.c: New file.
2338 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2339 (gdbscm_scm_to_host_string): New function.
2340 (gdbscm_scm_from_host_string): New function.
2341 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2343 2014-06-02 Doug Evans <xdje42@gmail.com>
2345 Add command support for Guile.
2346 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2347 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2348 (scm-cmd.o): New rule.
2349 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2350 (gdbscm_user_error_p): Declare.
2351 (gdbscm_parse_command_name): Declare.
2352 (gdbscm_valid_command_class_p): Declare.
2353 (gdbscm_initialize_commands): Declare.
2354 * guile/guile.c (initialize_gdb_module): Call
2355 gdbscm_initialize_commands.
2356 * guile/lib/gdb.scm: Export command symbols.
2357 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2358 (throw-user-error): New function.
2359 * guile/scm-cmd.c: New file.
2360 * guile/scm-exception.c (user_error_symbol): New static global.
2361 (gdbscm_user_error_p): New function.
2362 (gdbscm_initialize_exceptions): Set user_error_symbol.
2363 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2365 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2367 * top.c (command_loop): Handle comments here...
2368 (command_line_input): ... not here.
2370 2014-06-02 Doug Evans <xdje42@gmail.com>
2372 Add progspace support for Guile.
2373 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2374 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2375 (scm-progspace.o): New rule.
2376 * guile/guile-internal.h (pspace_smob): New typedef.
2377 (psscm_pspace_smob_pretty_printers): Declare.
2378 (psscm_pspace_smob_from_pspace): Declare.
2379 (psscm_scm_from_pspace): Declare.
2380 * guile/guile.c (initialize_gdb_module): Call
2381 gdbscm_initialize_pspaces.
2382 * guile/lib/gdb.scm: Export progspace symbols.
2383 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2385 (append-pretty-printer!): Ditto.
2386 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2388 * guile/scm-progspace.c: New file.
2390 2014-06-03 Alan Modra <amodra@gmail.com>
2392 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2393 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2395 2014-06-02 Doug Evans <dje@google.com>
2397 Add support for skeletonless type units.
2398 * dwarf2read.c (struct dwarf2_per_objfile): New member
2399 n_allocated_type_units.
2400 (struct dwarf2_per_objfile) <tu_stats>: New member
2401 nr_all_type_units_reallocs.
2402 (create_signatured_type_table_from_index): Initialize
2403 n_allocated_type_units
2404 (create_all_type_units): Ditto.
2405 (add_type_unit): Move up in file. New arg slot.
2406 All callers updated. Increase space for all_type_units more
2408 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2409 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2410 (lookup_dwp_signatured_type): Ditto.
2411 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2412 All callers updated.
2413 (build_type_psymtabs_1): Leave type_unit_groups as
2414 NULL if no TUs present.
2415 (print_tu_stats): New function.
2416 (process_skeletonless_type_unit): New function.
2417 (process_dwo_file_for_skeletonless_type_units): New
2419 (process_skeletonless_type_units): New function.
2420 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2421 Call print tu_stats if debugging enabled.
2423 2014-06-02 Pedro Alves <palves@redhat.com>
2425 * breakpoint.c (build_target_command_list): Don't build a command
2426 list if we have any duplicate location that isn't a dprintf.
2428 2014-06-02 Pedro Alves <palves@redhat.com>
2430 * breakpoint.c (dprintf_breakpoint_hit): New function.
2431 (initialize_breakpoint_ops): Install it as dprintf's
2432 breakpoint_hit method.
2434 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2436 * source.c (substitute_path_rule_matches): Simplify using
2437 filename_ncmp instead of FILENAME_CMP.
2439 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2441 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2443 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2445 * configure.ac: When Guile is available, check for the
2446 availability of 'scm_new_smob'.
2447 * configure, config.h.in: Regenerate.
2448 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2451 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2453 * frame.c (struct frame_info): Add stop_string field.
2454 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2455 (get_prev_frame_always): Old content moved into
2456 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2457 TRY_CATCH, handle MEMORY_ERROR exceptions.
2458 (frame_stop_reason_string): New function definition.
2459 * frame.h (unwind_stop_reason_to_string): Extend comment to
2460 mention frame_stop_reason_string.
2461 (frame_stop_reason_string): New function declaration.
2462 * stack.c (frame_info): Switch to frame_stop_reason_string.
2463 (backtrace_command_1): Switch to frame_stop_reason_string.
2464 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2465 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2466 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2468 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2470 * frame.c (frame_stop_reason_string): Rename to ...
2471 (unwind_stop_reason_to_string): this.
2472 * frame.h (frame_stop_reason_string): Rename to ...
2473 (unwind_stop_reason_to_string): this.
2474 * stack.c (frame_info): Update call to frame_stop_reason_string.
2475 (backtrace_command_1): Likewise.
2476 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2477 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2479 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2481 * frame.c (remove_prev_frame): New function.
2482 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2485 2014-05-29 Pedro Alves <palves@redhat.com>
2487 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2488 and make it const. When a single-step decays to a continue,
2489 clear 'step', not 'hw_step'. Pass whether the caller wanted
2490 to step to user_visible_resume_ptid, not what we ask the
2493 2014-05-29 Pedro Alves <palves@redhat.com>
2495 * infrun.c (process_event_stop_test, handle_step_into_function)
2496 (handle_step_into_function_backward): Adjust.
2497 Don't set the even thread's stop_step and call stop_waiting before
2498 calling end_stepping_range. Instead do that ...
2499 (end_stepping_range): ... here. Take an ecs pointer parameter.
2501 2014-05-29 Pedro Alves <palves@redhat.com>
2503 * infrun.c (stop_stepping): Rename to ...
2504 (stop_waiting): ... this.
2505 (proceed): Update comment.
2506 (process_event_stop_test, handle_inferior_event)
2507 (handle_signal_stop, handle_step_into_function)
2508 (handle_step_into_function_backward): Update.
2510 2014-05-29 Pedro Alves <palves@redhat.com>
2512 * infcall.c (run_inferior_call): Don't check whether the current
2513 thread is running after the proceed call.
2515 2014-05-29 Pedro Alves <palves@redhat.com>
2516 Tom Tromey <tromey@redhat.com>
2518 * NEWS: Mention "maint set target-async", "set mi-async", and that
2519 background execution commands are now always available.
2520 * target.h (target_async_permitted): Update comment.
2521 * target.c (target_async_permitted, target_async_permitted_1):
2523 (set_target_async_command): Rename to ...
2524 (maint_set_target_async_command): ... this.
2525 (show_target_async_command): Rename to ...
2526 (maint_show_target_async_command): ... this.
2527 (_initialize_target): Adjust.
2528 * infcmd.c (prepare_execution_command): Make extern.
2529 * inferior.h (prepare_execution_command): Declare.
2530 * infrun.c (set_observer_mode): Leave target async alone.
2531 * mi/mi-interp.c (mi_interpreter_init): Install
2532 mi_on_sync_execution_done as sync_execution_done observer.
2533 (mi_on_sync_execution_done): New function.
2534 (mi_execute_command_input_handler): Don't print the prompt if we
2535 just started a synchronous command with an async target.
2536 (mi_on_resume): Check sync_execution before printing prompt.
2537 * mi/mi-main.h (mi_async_p): Declare.
2538 * mi/mi-main.c: Include gdbcmd.h.
2539 (mi_async_p): New function.
2540 (mi_async, mi_async_1): New globals.
2541 (set_mi_async_command, show_mi_async_command, mi_async): New
2543 (exec_continue): Call prepare_execution_command.
2544 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2545 (mi_execute_async_cli_command): Use mi_async_p.
2546 (_initialize_mi_main): Install "set mi-async". Make
2547 "target-async" a deprecated alias.
2549 2014-05-29 Pedro Alves <palves@redhat.com>
2551 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2552 (_initialize_cli_interp): Adjust.
2553 * event-loop.c: Include "observer.h".
2554 (start_event_loop): Notify 'command_error' observers instead of
2555 calling display_gdb_prompt. Remove FIXME comment.
2556 * event-top.c (display_gdb_prompt): Remove call into the
2558 * inf-loop.c: Include "observer.h".
2559 (inferior_event_handler): Notify 'command_error' observers instead
2560 of calling display_gdb_prompt.
2561 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2562 observers instead of calling display_gdb_prompt.
2563 * interps.c (interp_set): Don't call display_gdb_prompt.
2564 (current_interp_display_prompt_p): Delete.
2565 * interps.h (interp_prompt_p): Delete declaration.
2566 (interp_prompt_p_ftype): Delete.
2567 (struct interp_procs) <prompt_proc_p>: Delete field.
2568 (current_interp_display_prompt_p): Delete declaration.
2569 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2570 (_initialize_mi_interp): Adjust.
2571 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2572 'command_error' observers.
2573 (tui_on_sync_execution_done, tui_on_command_error): New
2575 (tui_display_prompt_p): Delete.
2576 (_initialize_tui_interp): Adjust.
2578 2014-05-29 Pedro Alves <palves@redhat.com>
2581 * cli/cli-interp.c: Include infrun.h and observer.h.
2582 (cli_uiout, cli_interp): New globals.
2583 (cli_on_signal_received, cli_on_end_stepping_range)
2584 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2586 (cli_interpreter_init): Install them as 'end_stepping_range',
2587 'signal_received' 'signal_exited', 'exited' and 'no_history'
2589 (_initialize_cli_interp): Remove cli_interp local.
2590 * infrun.c (handle_inferior_event): Call the several stop reason
2591 observers instead of printing the stop reason directly.
2592 (end_stepping_range): New function.
2593 (print_end_stepping_range_reason, print_signal_exited_reason)
2594 (print_exited_reason, print_signal_received_reason)
2595 (print_no_history_reason): Make static, and add an uiout
2596 parameter. Print to that instead of to CURRENT_UIOUT.
2597 * infrun.h (print_end_stepping_range_reason)
2598 (print_signal_exited_reason, print_exited_reason)
2599 (print_signal_received_reason print_no_history_reason): New
2601 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2603 <cli_uiout>: New field.
2604 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2605 uiout for CLI output. Install 'signal_received',
2606 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2608 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2609 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2610 (mi_on_no_history): New functions.
2611 (ui_out_free_cleanup): Delete function.
2612 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2613 instead use the one already stored in the MI interpreter data.
2614 (mi_ui_out): Adjust.
2615 * tui/tui-interp.c: Include infrun.h and observer.h.
2616 (tui_interp): New global.
2617 (tui_on_signal_received, tui_on_end_stepping_range)
2618 (tui_on_signal_exited, tui_on_exited)
2619 (tui_on_no_history): New functions.
2620 (tui_init): Install them as 'end_stepping_range',
2621 'signal_received' 'signal_exited', 'exited' and 'no_history'
2623 (_initialize_tui_interp): Delete tui_interp local.
2625 2014-05-29 Pedro Alves <palves@redhat.com>
2628 * linux-nat.c (linux_nat_resume_callback): Rename the second
2629 parameter to 'except'. Skip LP if it points to EXCEPT.
2630 (linux_nat_resume): Don't mark the event lwp as not stopped
2631 before resuming sibling lwps. Instead ask
2632 linux_nat_resume_callback to skip the event lwp. Mark it as not
2633 stopped after actually resuming it.
2634 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2636 (wait_lwp): Mark the lwp as stopped here.
2637 (stop_wait_callback): Mark the lwp as not stopped right after
2638 resuming it. Don't mark lwps as stopped here.
2639 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2640 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2642 2014-05-29 Pedro Alves <palves@redhat.com>
2645 * infrun.c (resume): Determine how much to resume depending on
2646 whether the caller wanted a step, not whether we can hardware step
2647 the target. Mark all threads that we intend to run as running,
2648 unless we're calling an inferior function.
2649 (normal_stop): If the thread is running an infcall, don't finish
2651 * target.c (target_resume): Don't mark threads as running here.
2653 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2655 * serial.c (_initialize_serial): Remove support for
2656 the "set remotebaud" and "show remotebaud" commands.
2657 * NEWS: Add entry documenting the removal of that command.
2659 2014-05-28 Yao Qi <yao@codesourcery.com>
2661 * charset.c: Fix typo in comments.
2663 2014-05-27 Gary Benson <gbenson@redhat.com>
2665 * utils.c (internal_vproblem): Prompt for a bug report.
2667 2014-05-26 Andy Wingo <wingo@igalia.com>
2669 * guile/scm-arch.c (arscm_mark_arch_smob):
2670 * guile/scm-block.c (bkscm_mark_block_smob)
2671 (bkscm_mark_block_syms_progress_smob):
2672 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2673 * guile/scm-exception.c (exscm_mark_exception_smob):
2674 * guile/scm-frame.c (frscm_mark_frame_smob):
2675 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2676 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2677 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2678 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2679 (ppscm_mark_pretty_printer_worker_smob):
2680 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2681 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2682 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2683 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2685 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2688 2014-05-26 Andy Wingo <wingo@igalia.com>
2689 Doug Evans <xdje42@gmail.com>
2691 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2692 empty_base_class. All uses updated.
2693 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2694 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2696 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2697 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2698 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2699 (gdbscm_gsmob_has_property_p, add_property_name)
2700 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2701 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2702 (gdb-object-has-property?, gdb-object-properties): Remove.
2703 (gdb-object-kind): Renamed from gsmob-kind.
2705 2014-05-26 Andy Wingo <wingo@igalia.com>
2707 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2708 * configure: Regenerate.
2710 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2712 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2714 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2716 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2717 (replay_memory_access_read_only, replay_memory_access_read_write)
2718 (replay_memory_access_types, replay_memory_access)
2719 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2720 (cmd_set_record_btrace, cmd_show_record_btrace)
2721 (cmd_show_replay_memory_access): New.
2722 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2723 (record_btrace_remove_breakpoint): Replace
2724 record_btrace_allow_memory_access with replay_memory_access.
2725 (_initialize_record_btrace): Add commands.
2726 * NEWS: Announce it.
2728 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2730 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2732 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2734 * MAINTAINERS (Write After Approval): Move self back from
2737 2014-05-22 Pedro Alves <palves@redhat.com>
2739 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2740 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2741 (disable_randomization, enum exec_direction_kind)
2742 (execution_direction, stop_registers, start_remote)
2743 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2744 (wait_for_inferior, normal_stop, get_last_target_status)
2745 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2746 (insert_step_resume_breakpoint_at_sal)
2747 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2748 (set_step_info, print_stop_event, signal_stop_state)
2749 (signal_print_state, signal_pass_state, signal_stop_update)
2750 (signal_print_update, signal_pass_update)
2751 (update_signals_program_target, clear_exit_convenience_vars)
2752 (displaced_step_dump_bytes, update_observer_mode)
2753 (signal_catch_update, gdb_signal_from_command): Move
2755 * infrun.h: ... to this new file.
2756 * amd64-tdep.c: Include infrun.h.
2757 * annotate.c: Include infrun.h.
2758 * arch-utils.c: Include infrun.h.
2759 * arm-linux-tdep.c: Include infrun.h.
2760 * arm-tdep.c: Include infrun.h.
2761 * break-catch-sig.c: Include infrun.h.
2762 * breakpoint.c: Include infrun.h.
2763 * common/agent.c: Include infrun.h instead of inferior.h.
2764 * corelow.c: Include infrun.h.
2765 * event-top.c: Include infrun.h.
2766 * go32-nat.c: Include infrun.h.
2767 * i386-tdep.c: Include infrun.h.
2768 * inf-loop.c: Include infrun.h.
2769 * infcall.c: Include infrun.h.
2770 * infcmd.c: Include infrun.h.
2771 * infrun.c: Include infrun.h.
2772 * linux-fork.c: Include infrun.h.
2773 * linux-nat.c: Include infrun.h.
2774 * linux-thread-db.c: Include infrun.h.
2775 * monitor.c: Include infrun.h.
2776 * nto-tdep.c: Include infrun.h.
2777 * procfs.c: Include infrun.h.
2778 * record-btrace.c: Include infrun.h.
2779 * record-full.c: Include infrun.h.
2780 * remote-m32r-sdi.c: Include infrun.h.
2781 * remote-mips.c: Include infrun.h.
2782 * remote-notif.c: Include infrun.h.
2783 * remote-sim.c: Include infrun.h.
2784 * remote.c: Include infrun.h.
2785 * reverse.c: Include infrun.h.
2786 * rs6000-tdep.c: Include infrun.h.
2787 * s390-linux-tdep.c: Include infrun.h.
2788 * solib-irix.c: Include infrun.h.
2789 * solib-osf.c: Include infrun.h.
2790 * solib-svr4.c: Include infrun.h.
2791 * target.c: Include infrun.h.
2792 * top.c: Include infrun.h.
2793 * windows-nat.c: Include infrun.h.
2794 * mi/mi-interp.c: Include infrun.h.
2795 * mi/mi-main.c: Include infrun.h.
2796 * python/py-threadevent.c: Include infrun.h.
2798 2014-05-22 Pedro Alves <palves@redhat.com>
2800 * infrun.c (handle_inferior_event): Store the exit code for
2801 --return-child-result here, instead of ...
2802 (print_exited_reason): ... here.
2804 2014-05-21 Pedro Alves <palves@redhat.com>
2807 * gdbthread.h (struct thread_control_state): New field
2809 * infrun.c (follow_fork): Copy the new thread control field to the
2811 (clear_proceed_status_thread): Clear the new thread control field.
2812 (proceed): Set the new thread control field.
2813 * interps.h (command_interp): Declare.
2814 * interps.c (command_interpreter): New global.
2815 (command_interp): New function.
2816 (interp_exec): Set `command_interpreter' while here.
2817 * cli-out.c (cli_uiout_dtor): New function.
2818 (cli_ui_out_impl): Install it.
2819 * mi/mi-interp.c: Include cli-out.h.
2820 (mi_cmd_interpreter_exec): Add comment.
2821 (restore_current_uiout_cleanup): New function.
2822 (ui_out_free_cleanup): New function.
2823 (mi_on_normal_stop): If finishing an execution command started by
2824 a CLI command, or any kind of breakpoint-like event triggered,
2825 print the stop event to the output (CLI) stream.
2826 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2828 2014-05-21 Pedro Alves <palves@redhat.com>
2830 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2831 current source line having changed.
2832 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2833 * infrun.c (normal_stop): Adjust call to
2834 set_current_sal_from_frame.
2835 * source.c (clear_lines_listed_range): New function.
2836 (set_current_source_symtab_and_line, identify_source_line): Clear
2837 the lines listed range.
2838 (line_info): Handle the first "info line" after the current source
2839 line having changed.
2840 * stack.c (print_stack_frame): Remove center handling.
2841 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2844 2014-05-21 Pedro Alves <palves@redhat.com>
2846 * inf-child.c (inf_child_mourn_inferior): New function.
2847 * inf-child.h (inf_child_mourn_inferior): New declaration.
2848 * darwin-nat.c (darwin_mourn_inferior): Use
2849 inf_child_mourn_inferior.
2850 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2851 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2852 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2853 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2854 * windows-nat.c (windows_mourn_inferior): Likewise.
2856 2014-05-21 Doug Evans <xdje42@gmail.com>
2858 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2860 2014-05-21 Doug Evans <xdje42@gmail.com>
2862 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2863 (gdbscm_out_of_range_error): Ditto.
2864 (gdbscm_memory_error): Ditto.
2865 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2866 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2867 (gdbscm_out_of_range_error): Update.
2868 (gdbscm_memory_error): Update.
2869 (gdbscm_scm_to_target_string_unsafe): Delete.
2871 2014-05-21 Pedro Alves <palves@redhat.com>
2873 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2875 (inf_child_open_target): New function.
2876 (inf_child_open): Use inf_child_open_target to push the target
2877 instead of erroring out.
2878 (inf_child_disconnect, inf_child_close)
2879 (inf_child_maybe_unpush_target): New functions.
2880 (inf_child_target): Install inf_child_disconnect and
2881 inf_child_close. Store a pointer to the returned object.
2882 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2884 * target.c (auto_connect_native_target): New global.
2885 (show_default_run_target): New function.
2886 (find_default_run_target): Return NULL if automatically connecting
2887 to the native target is disabled.
2888 (_initialize_target): Install set/show auto-connect-native-target.
2889 * NEWS: Mention "set auto-connect-native-target", and "target
2891 * linux-nat.c (super_close): New global.
2892 (linux_nat_close): Call super_close.
2893 (linux_nat_add_target): Store a pointer to the base class's
2895 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2896 inf_child_maybe_unpush.
2897 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2899 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2900 the inferior. Use inf_child_maybe_unpush_target.
2901 (inf_ttrace_attach): Don't push the target if it is already
2903 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2904 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2905 after mourning the inferior. Use inf_child_maybe_unpush_target.
2906 (darwin_attach_pid): Don't push the target if it is already
2908 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2909 mourning the inferior. Use inf_child_maybe_unpush_target.
2910 (gnu_detach): Use inf_child_maybe_unpush_target.
2911 * go32-nat.c (go32_create_inferior): Don't push the target if it
2913 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2914 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2915 (procfs_open): Rename to ...
2916 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2917 comments. Can target_preopen before changing node. Call
2918 inf_child_open_target to push the target explicitly.
2919 (procfs_attach): Don't push the target if it is already pushed.
2920 (procfs_detach): Use inf_child_maybe_unpush_target.
2921 (procfs_create_inferior): Don't push the target if it is already
2923 (nto_native_ops): New global.
2924 (procfs_open): Reimplement.
2925 (procfs_native_open): New function.
2926 (init_procfs_targets): Install procfs_native_open as to_open of
2927 "target native". Store a pointer to the "native" target in
2929 * procfs.c (procfs_attach): Don't push the target if it is already
2931 (procfs_detach): Use inf_child_maybe_unpush_target.
2932 (procfs_mourn_inferior): Only unpush the target after mourning the
2933 inferior. Use inf_child_maybe_unpush_target.
2934 (procfs_init_inferior): Don't push the target if it is already
2936 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2937 if it is already pushed.
2939 2014-05-21 Pedro Alves <palves@redhat.com>
2941 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2942 and "procfs" targets are now called "native" instead.
2944 2014-05-21 Pedro Alves <palves@redhat.com>
2946 * go32-nat.c (go32_open): Delete.
2947 (go32_target): Don't override the to_open method.
2949 2014-05-21 Pedro Alves <palves@redhat.com>
2951 * nto-procfs.c (procfs_can_run): New function.
2952 (nto_procfs_ops): New global.
2953 (init_procfs_targets): New, based on procfs_target. Install
2954 "target native" in addition to "target procfs".
2955 (_initialize_procfs): Call init_procfs_targets instead of adding
2958 2014-05-21 Pedro Alves <palves@redhat.com>
2960 * windows-nat.c (windows_target): Don't override to_shortname,
2961 to_longname or to_doc.
2963 2014-05-21 Pedro Alves <palves@redhat.com>
2965 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2968 2014-05-21 Pedro Alves <palves@redhat.com>
2970 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2971 to_shortname, to_longname or to_doc.
2973 2014-05-21 Pedro Alves <palves@redhat.com>
2975 * go32-nat.c (go32_target): Don't override to_shortname,
2976 to_longname or to_doc.
2978 2014-05-21 Pedro Alves <palves@redhat.com>
2980 * inf-child.c (inf_child_open): Remove mention of "child".
2981 (inf_child_target): Rename target to "native" instead of "child".
2983 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2985 * Makefile.in (SFILES): Delete "regset.c".
2986 (COMMON_OBS): Delete "regset.o".
2988 * regset.h (regset_alloc): Delete prototype.
2990 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2992 * sparc-linux-tdep.c (sparc32_linux_gregset)
2993 (sparc32_linux_fpregset): New static regset structures.
2994 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2995 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2997 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2998 (sparc64_linux_fpregset): New static regset structures.
2999 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3000 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3001 New static regset structures.
3002 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3003 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3004 New static regset structures.
3005 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3006 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3007 New static regset structures.
3008 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3009 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3010 New static regset structures.
3011 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3013 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3015 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3016 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3017 register maps ("regmaps") from "*regset" to "*regmap". Do this
3018 for all regmap types and variables.
3019 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3020 (sparc32_linux_supply_core_gregset)
3021 (sparc32_linux_collect_core_gregset)
3022 (sparc32_linux_supply_core_fpregset)
3023 (sparc32_linux_collect_core_fpregset): Likewise.
3024 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3025 (sparc_gregmap, sparc_fpregmap): ... these.
3026 (sparc_supply_gregset, sparc_collect_gregset)
3027 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3028 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3029 (_initialize_sparc_nat): Rename regmaps.
3030 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3031 (sparc_gregmap, sparc_fpregmap): ... these.
3032 (sparc_supply_gregset, sparc_collect_gregset)
3033 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3034 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3036 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3037 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3039 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3041 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3042 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3043 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3045 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3046 (sparc32_bsd_fpregset): Rename to...
3047 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3048 (sparc32_bsd_fpregmap): ... these.
3049 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3050 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3051 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3052 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3053 (struct sparc_gregmap, struct sparc_fpregmap)
3054 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3055 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3056 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3057 (sparc32_supply_regset, sparc32_collect_gregset)
3058 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3060 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3061 (sparc64_linux_ptrace_gregmap): ... this.
3062 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3063 (_initialize_sparc64_linux_nat): Rename regmaps.
3064 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3065 (sparc64_linux_core_gregmap): ... this.
3066 (sparc64_linux_supply_core_gregset)
3067 (sparc64_linux_collect_core_gregset)
3068 (sparc64_linux_supply_core_fpregset)
3069 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3070 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3071 (sparc64_sol2_fpregset): Rename to...
3072 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3073 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3074 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3076 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3077 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3078 (sparc64_bsd_fpregset): Rename to...
3079 (struct sparc_gregmap, sparc64_sol2_gregmap)
3080 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3081 (sparc64_bsd_fpregmap): ... these.
3082 (sparc64_supply_gregset, sparc64_collect_gregset)
3083 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3085 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3086 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3087 (sparc64fbsd_gregmap): ... this.
3088 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3089 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3091 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3092 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3093 (sparc64nbsd_collect_fpregset): Likewise.
3094 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3095 (sparc64nbsd_gregmap): ... this.
3096 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3098 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3099 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3100 (sparc64obsd_gregmap): ... this.
3101 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3103 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3104 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3105 (sparc32nbsd_gregmap): ... this.
3106 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3109 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3111 * score-tdep.c (score7_linux_gregset): New static regset
3113 (score7_linux_regset_from_core_section): Remove dynamic regset
3115 (score_gdbarch_init): Drop allocation of tdep structure.
3116 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3118 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3120 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3122 (am33_regset_from_core_section): Remove dynamic regset
3125 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3127 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3128 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3130 (mips_linux_regset_from_core_section): Remove dynamic regset
3132 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3133 'gregset64', 'fpregset', and 'fpregset64'.
3134 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3135 deleted tdep fields.
3137 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3139 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3141 (amd64_regset_from_core_section): Remove dynamic regset
3143 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3145 (amd64obsd_regset_from_core_section): Remove dynamic regset
3147 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3149 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3150 x86-common regset supply function.
3151 * i386-tdep.c (i386_collect_gregset): Make static.
3152 (i386_gregset): New global regset structure.
3153 (i386_fpregset, i386_xstateregset): New static regset structures.
3154 (i386_regset_from_core_section): Remove dynamic regset
3156 (i386_gdbarch_init): Remove initialization of tdep fields
3157 'gregset', 'fpregset', and 'xstateregset'.
3158 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3159 'fpregset', and 'xstateregset'.
3160 (i386_collect_gregset): Remove prototype.
3161 (i386_gregset): New declaration.
3162 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3164 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3167 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3169 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3170 (arm_linux_vfpregset): New static regset structures.
3171 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3173 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3174 and 'vfpregset' fields.
3176 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3178 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3179 (aarch64_linux_fpregset): New static regset structures.
3180 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3181 of regset structures.
3182 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3185 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3187 * regset.h (struct regset): Remove gdbarch field.
3188 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3189 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3190 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3192 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3193 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3194 (ppc32_linux_vsxregset): Likewise.
3195 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3196 via the regcache instead of the regset.
3197 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3198 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3199 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3200 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3203 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3205 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3206 Constify structures.
3207 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3208 (alphanbsd_aout_gregset): Likewise.
3209 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3210 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3212 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3213 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3215 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3216 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3217 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3218 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3219 * m88k-tdep.c (m88k_gregset): Likewise.
3220 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3221 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3222 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3223 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3224 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3225 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3226 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3227 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3228 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3230 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3231 * sh-tdep.h (sh_corefile_gregset): Likewise.
3232 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3233 * vax-tdep.c (vax_gregset): Likewise.
3235 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3237 Fix TLS access for -static -pthread.
3238 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3239 (try_thread_db_load_1): Initialize it.
3240 (thread_db_get_thread_local_address): Call it if LM is zero.
3241 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3242 * target.h (struct target_ops) (to_get_thread_local_address): Add
3243 load_module_addr comment.
3245 2014-05-21 Pedro Alves <palves@redhat.com>
3247 * dcache.c (dcache_read_memory_partial): If reading the cache line
3248 fails, fallback to reading just the memory the caller wanted.
3250 2014-05-20 Doug Evans <dje@google.com>
3252 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3253 instead of get_current_arch.
3255 2014-05-20 Pedro Alves <palves@redhat.com>
3257 * NEWS: Mention that compare-sections now works with all targets.
3259 * remote.c (PACKET_qCRC): New enum value.
3260 (remote_verify_memory): Don't send qCRC if the target has no
3261 execution. Use packet_support/packet_ok. If the target doesn't
3262 support the qCRC packet, fallback to a deep memory copy.
3263 (compare_sections_command): Say "target image" instead of "remote
3265 (_initialize_remote): Add PACKET_qCRC to the list of config
3266 packets that have no associated command. Extend comment.
3267 * target.c (simple_verify_memory, default_verify_memory): New
3269 * target.h (struct target_ops) <to_verify_memory>: Default to
3270 default_verify_memory.
3271 (simple_verify_memory): New declaration.
3272 * target-delegates.c: Regenerate.
3274 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3276 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3278 2014-05-20 Hui Zhu <hui@codesourcery.com>
3279 Yao Qi <yao@codesourcery.com>
3282 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3283 and change address of sp and pc.
3285 2014-05-19 Tom Tromey <tromey@redhat.com>
3287 * gdbtypes.c (rank_function): Use XNEWVEC.
3288 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3290 2014-05-19 Doug Evans <dje@google.com>
3292 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3293 build_type_unit_groups and moved closer to only caller. Remove
3294 arguments. All references updated. Remove outdated .gdb_index
3296 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3297 build_type_psymtabs_1.
3299 2014-05-19 Doug Evans <dje@google.com>
3301 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3302 n_type_unit_groups, all_type_unit_groups. All uses removed.
3303 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3304 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3305 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3306 (add_type_unit_group_to_table): Delete.
3308 2014-05-19 Doug Evans <dje@google.com>
3310 * eval.c (evaluate_subexp_standard): Add some comments.
3312 2014-05-17 Doug Evans <xdje42@gmail.com>
3314 * progspace.c (remove_program_space): Delete, unused.
3315 * progspace.h (remove_program_space): Ditto.
3317 2014-05-17 Doug Evans <xdje42@gmail.com>
3319 * inferior.c (prune_inferiors): Fix comment.
3320 (remove_inferior_command): Call prune_program_spaces.
3322 2014-05-16 Doug Evans <dje@google.com>
3324 New command line option -D.
3326 * main.c (set_gdb_data_directory): New function.
3327 (captured_main): Recognize -D. Flag error for --data-directory "".
3328 Call set_gdb_data_directory.
3329 (print_gdb_help): Print --data-directory, -D.
3330 * main.h (set_gdb_data_directory): Declare.
3331 * top.c (staged_gdb_datadir): New static global.
3332 (set_gdb_datadir): Call set_gdb_data_directory
3333 (show_gdb_datadir): New function.
3334 (init_main): Update init of data-directory parameter.
3336 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3338 Import the "dirfd" gnulib module.
3339 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3340 * gnulib/aclocal.m4: Update.
3341 * gnulib/config.in: Update.
3342 * gnulib/configure: Update.
3343 * gnulib/import/Makefile.am: Update.
3344 * gnulib/import/Makefile.in: Update.
3345 * gnulib/import/dirfd.c: New.
3346 * gnulib/import/m4/dirfd.m4: New.
3347 * gnulib/import/m4/gnulib-cache.m4: Update.
3348 * gnulib/import/m4/gnulib-comp.m4: Update.
3350 2014-05-16 Pierre Muller <muller@sourceware.org>
3351 Yao Qi <yao@codesourcery.com>
3353 * valprint.c (print_wchar): Move the code on checking whether
3354 W is a printable wide char to the default branch of switch
3355 statement below. Call wchar_printable instead of gdb_iswprint.
3357 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3359 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3360 ldr.w and ldrd instructions.
3362 2014-05-15 Doug Evans <dje@google.com>
3364 * dwarf2read.c (read_structure_type): Delete outdated comments.
3366 2014-05-14 Tom Tromey <tromey@redhat.com>
3368 * macrocmd.c (print_macro_definition): Reindent.
3370 2014-05-13 Doug Evans <xdje42@gmail.com>
3372 * python/py-cmd.c (cmdpy_completer): Add comment.
3373 (completers): Make const.
3375 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3377 * infrun.c (resume): Remove should_resume (unused). Move up
3378 declaration of resume_ptid.
3380 2014-05-13 Tom Tromey <tromey@redhat.com>
3382 * language.h (unop_type_check): Remove.
3383 (binop_type_check): Don't declare.
3385 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3387 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3388 call to regcache_raw_collect.
3390 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3392 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3393 mi_console->quote as the quoting character.
3395 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3397 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3399 2014-04-29 Tom Tromey <tromey@redhat.com>
3401 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3402 "show debug varobj".
3404 2014-05-07 Kyle McMartin <kyle@redhat.com>
3406 Pushed by Joel Brobecker <brobecker@adacore.com>.
3407 * aarch64-tdep.c (aarch64_software_single_step): New function.
3408 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3409 with aarch64_software_single_step.
3411 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3415 2014-05-05 Keith Seitz <keiths@redhat.com>
3417 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3418 variable or history value is successfully parsed.
3420 2014-05-05 Yao Qi <yao@codesourcery.com>
3421 Pedro Alves <palves@redhat.com>
3423 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3424 address of blocks that intersects the requested range. Trim
3425 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3427 * ctf.c (ctf_xfer_partial): Likewise.
3429 2014-05-05 Yao Qi <yao@codesourcery.com>
3431 * printcmd.c (display_command): Remove the check to
3432 target_has_execution.
3434 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3436 * ppcobsd-nat.c: Include "obsd-nat.h".
3437 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3439 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3441 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3443 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3444 and 16-bit signed and unsigned arguments. Update comment.
3445 (stap_parse_probe_arguments): Extend code to handle such
3446 arguments. Use warning instead of complaint to notify about
3447 unrecognized bitness.
3449 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3451 PR breakpoints/16889
3452 * stap-probe.c (stap_parse_probe_arguments): Simplify
3453 check for non-prefixed probes (i.e., probes whose
3454 arguments do not start with "N@"). Always set the
3455 argument type to a sane value.
3457 2014-05-01 David Taylor <dtaylor@emc.com>
3459 * remote.c (compare_sections_command): Add -r option to compare
3460 all loadable read-only sections.
3462 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3464 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3465 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3467 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3468 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3469 Remove unused CORE_ADDR argument. Update all callers.
3471 2014-04-29 Pedro Alves <palves@redhat.com>
3473 * remote.c (struct packet_config) <detect>: Extend comment.
3474 (add_packet_config_cmd): Don't set the config's detect or support
3476 (init_all_packet_configs): Also initialize the config's 'detect'
3478 (reset_all_packet_configs_support): New function.
3479 (remote_open_1): Call reset_all_packet_configs_support instead of
3480 init_all_packet_configs.
3481 (_initialize_remote): Initialize all packet configs. Assert that
3482 all packets have an associated command, except a few known
3485 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3487 * dwarf2read.c (read_subrange_type): Handle dynamic
3488 DW_AT_lower_bound attributes.
3490 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3492 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3493 dynamic bounds before computing its upper bound.
3494 (ada_discrete_type_low_bound): Same as above with the lower bound.
3496 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3498 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3499 range types. Adjust the array handling implementation to
3500 take advantage of this change.
3501 (resolve_dynamic_range): New function, mostly extracted from
3502 resolve_dynamic_bounds.
3503 (resolve_dynamic_array): New function, mostly extracted from
3504 resolve_dynamic_bounds.
3505 (resolve_dynamic_bounds): Delete.
3506 (resolve_dynamic_type): Reimplement. Add handling of
3507 TYPE_CODE_RANGE types.
3509 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3511 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3512 handling of parallel ___XA types.
3514 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3516 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3517 unnecessary second call to static_unwrap_type.
3519 2014-04-27 Hui Zhu <hui@codesourcery.com>
3521 * stack.c (print_frame_info): Call do_gdb_disassembly with
3522 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3524 2014-04-26 Doug Evans <xdje42@gmail.com>
3526 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3528 2014-04-25 Pedro Alves <palves@redhat.com>
3531 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3532 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3533 and newline from built string.
3534 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3535 (linux_ptrace_attach_fail_reason): ... this.
3536 * linux-nat.c (linux_nat_attach): Adjust to use
3537 linux_ptrace_attach_fail_reason.
3539 2014-04-25 Pedro Alves <palves@redhat.com>
3541 * remote.c (struct remote_state): Remove multi_process_aware,
3542 non_stop_aware, cond_tracepoints, cond_breakpoints,
3543 breakpoint_commands, fast_tracepoints, static_tracepoints,
3544 install_in_trace, disconnected_tracing,
3545 enable_disable_tracepoints, string_tracing, and
3546 augmented_libraries_svr4_read fields.
3547 (remote_multi_process_p): Move further below in the file.
3548 (struct packet_config): Add comments.
3549 (update_packet_config): Delete function.
3550 (show_packet_config_cmd): Use packet_config_support.
3551 (add_packet_config_cmd): Use NULL as set callback.
3552 (packet_ok): "set remote foo-packet"-style commands no longer
3553 change config->supported -- adjust.
3554 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3555 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3556 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3557 (PACKET_QNonStop, PACKET_multiprocess_feature)
3558 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3559 (PACKET_DisconnectedTracing_feature)
3560 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3561 (set_remote_protocol_packet_cmd): Delete function.
3562 (packet_config_support, packet_support): New functions.
3563 (set_remote_protocol_Z_packet_cmd): Don't call
3564 update_packet_config.
3565 (remote_query_attached, remote_pass_signals)
3566 (remote_program_signals, remote_threads_info)
3567 (remote_threads_extra_info, remote_start_remote): Use
3569 (remote_start_remote): Use packet_config_support and
3571 (init_all_packet_configs): Set all packets to unknown support,
3572 instead of calling update_packet_config.
3573 (remote_check_symbols): Use packet_support.
3574 (remote_supported_packet): Unconditionally set the packet config's
3576 (remote_multi_process_feature, remote_non_stop_feature)
3577 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3578 (remote_breakpoint_commands_feature)
3579 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3580 (remote_install_in_trace_feature)
3581 (remote_disconnected_tracing_feature)
3582 (remote_enable_disable_tracepoint_feature)
3583 (remote_string_tracing_feature)
3584 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3585 (remote_protocol_features): Adjust to use remote_supported_packet
3586 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3587 "ConditionalTracepoints", "ConditionalBreakpoints",
3588 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3589 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3590 "EnableDisableTracepoints", and "tracenz".
3591 (remote_query_supported): Use packet_support.
3592 (remote_open_1): Adjust.
3593 (extended_remote_attach_1): Use packet_support. Switch on the
3594 result of packet_ok instead of checking whether the packet ended
3596 (remote_vcont_resume): Use packet_support.
3597 (remote_resume, remote_stop_ns, fetch_register_using_p)
3598 (remote_prepare_to_store, store_register_using_P)
3599 (check_binary_download, remote_write_bytes): Use packet_support.
3600 (remote_vkill): Use packet_support. Switch on the result of
3601 packet_ok instead of checking whether the packet ended up
3603 (extended_remote_supports_disable_randomization): Use
3605 (extended_remote_run): Switch on the result of packet_ok instead
3606 of checking whether the packet ended up disabled.
3607 (remote_insert_breakpoint, remote_remove_breakpoint)
3608 (remote_insert_watchpoint, remote_remove_watchpoint)
3609 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3611 (remote_search_memory): Use packet_config_support.
3612 (remote_get_thread_local_address, remote_get_tib_address)
3613 (remote_hostio_send_command, remote_can_execute_reverse): Use
3615 (remote_supports_cond_tracepoints)
3616 (remote_supports_cond_breakpoints)
3617 (remote_supports_fast_tracepoints)
3618 (remote_supports_static_tracepoints)
3619 (remote_supports_install_in_trace)
3620 (remote_supports_enable_disable_tracepoint)
3621 (remote_supports_string_tracing)
3622 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3623 the packet config says the feature is enabled or disabled.
3624 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3625 (remote_get_trace_status): Use packet_support.
3626 (remote_set_disconnected_tracing): Adjust to check whether the
3627 feature is enabled with packet_support.
3628 (remote_set_trace_buffer_size, remote_use_agent)
3629 (remote_can_use_agent, remote_supports_btrace): Use
3631 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3632 Use packet_config_support.
3633 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3634 the packet config says the feature is enabled or disabled.
3635 (set_range_stepping): Use packet_support.
3637 2014-04-25 Tom Tromey <tromey@redhat.com>
3639 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3642 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3644 * NEWS: Mention support for C99 variable length arrays.
3646 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3648 * ada-lang.c (standard_exc): Expand introductory comment.
3650 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3651 Walfred Tedeschi <walfred.tedeschi@intel.com>
3653 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3655 (amd64_linux_read_description): Add code to handle AVX512 xstate
3656 mask and return respective tdesc.
3657 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3658 and features/i386/x32-avx512-linux.c.
3659 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3660 (amd64_linux_core_read_description): Add code to handle AVX512
3661 xstate mask and return respective tdesc.
3662 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3663 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3665 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3666 (tdesc_amd64_avx512_linux): New prototype.
3667 (tdesc_x32_avx512_linux): Likewise.
3668 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3669 features/i386/x32-avx512.c.
3670 (amd64_ymm_avx512_names): New register names for pseudo
3672 (amd64_ymmh_avx512_names): New register names for raw registers
3674 (amd64_k_names): New register names for K registers.
3675 (amd64_zmmh_names): New register names for ZMM raw registers.
3676 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3677 (amd64_xmm_avx512_names): New register names for XMM16-31
3679 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3681 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3682 if feature is present.
3683 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3684 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3685 (AMD64_NUM_REGS): Adjust to new number of registers.
3686 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3687 registers supplied via XSTATE by AVX512 registers.
3688 (i386_linux_read_description): Add case for AVX512.
3689 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3690 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3691 (i386_linux_core_read_description): Add case for AVX512.
3692 (i386_linux_init_abi): Install supported register note section
3694 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3696 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3697 registers to be number of zmm7h + 1.
3698 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3699 * i386-tdep.c: Include features/i386/i386-avx512.c.
3700 (i386_zmm_names): Add ZMM pseudo register names array.
3701 (i386_zmmh_names): Add ZMM raw register names array.
3702 (i386_k_names): Add K raw register names array.
3703 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3704 registers. AVX512 has 16 more ZMM registers than there are YMM
3706 (i386_zmmh_regnum_p): Add function to look up register number of
3708 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3709 (i386_k_regnum_p): Likewise for K raw registers.
3710 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3711 registers added by AVX512.
3712 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3713 registers added by AVX512.
3714 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3716 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3717 (i386_pseudo_register_name): Add ZMM pseudo registers.
3718 (i386_zmm_type): Construct and return vector registers type for ZMM
3720 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3721 ZMM0-31 pseudo registers and K registers.
3722 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3723 and YMM16-31 registers from register cache.
3724 (i386_pseudo_register_write): Add code to write K, ZMM and
3726 (i386_register_reggroup_p): Add code to include/exclude AVX512
3727 registers in/from respective register groups.
3728 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3729 registers if feature is present in xcr0.
3730 (i386_gdbarch_init): Add code to initialize AVX512 feature
3731 variables in tdep structure, wire in pseudo registers and call
3732 initialize_tdesc_i386_avx512.
3733 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3735 (i386_regnum): Add AVX512 registers.
3736 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3737 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3738 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3739 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3741 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3742 (i386_ymm_avx512_regnum_p): Likewise.
3743 (i386_k_regnum_p): Likewise.
3744 (i386_zmm_regnum_p): Likewise.
3745 (i386_zmmh_regnum_p): Likewise.
3746 * i387-tdep.c : Update year in copyright notice.
3747 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3749 (XSAVE_YMM_AVX512_ADDR): New macro.
3750 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3752 (XSAVE_XMM_AVX512_ADDR): New macro.
3753 (xsave_avx512_k_offset): New table for K register offsets in
3755 (XSAVE_AVX512_K_ADDR): New macro.
3756 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3758 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3759 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3761 (i387_collect_xsave): Add code to collect AVX512 registers from
3763 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3764 of XMM16-31 registers.
3765 (I387_NUM_K_REGS): New define for number of K registers.
3766 (I387_K0_REGNUM): New define for K0 register number.
3767 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3768 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3769 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3771 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3772 (I387_XMM16_REGNUM): New define for XMM16 register number.
3773 (I387_YMM0_REGNUM): New define for YMM0 register number.
3774 (I387_KEND_REGNUM): New define for last K register number.
3775 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3776 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3778 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3780 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3782 * features/Makefile: Add AVX512 related files.
3783 * features/i386/32bit-avx512.xml: New file.
3784 * features/i386/64bit-avx512.xml: Likewise.
3785 * features/i386/amd64-avx512-linux.c: Likewise.
3786 * features/i386/amd64-avx512-linux.xml: Likewise.
3787 * features/i386/amd64-avx512.c: Likewise.
3788 * features/i386/amd64-avx512.xml: Likewise.
3789 * features/i386/i386-avx512-linux.c: Likewise.
3790 * features/i386/i386-avx512-linux.xml: Likewise.
3791 * features/i386/i386-avx512.c: Likewise.
3792 * features/i386/i386-avx512.xml: Likewise.
3793 * features/i386/x32-avx512-linux.c: Likewise.
3794 * features/i386/x32-avx512-linux.xml: Likewise.
3795 * features/i386/x32-avx512.c: Likewise.
3796 * features/i386/x32-avx512.xml: Likewise.
3797 * regformats/i386/amd64-avx512-linux.dat: New file.
3798 * regformats/i386/amd64-avx512.dat: Likewise.
3799 * regformats/i386/i386-avx512-linux.dat: Likewise.
3800 * regformats/i386/i386-avx512.dat: Likewise.
3801 * regformats/i386/x32-avx512-linux.dat: Likewise.
3802 * regformats/i386/x32-avx512.dat: Likewise.
3803 * NEWS: Add note about new support for AVX512.
3806 2014-04-23 Pedro Alves <palves@redhat.com>
3808 * breakpoint.c (insert_bp_location): Tolerate errors if the
3809 breakpoint is set in a user-loaded objfile.
3810 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3811 location is marked shlib_disabled. If the breakpoint is set in a
3812 user-loaded objfile is a GDB-side memory breakpoint, validate it
3813 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3814 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3816 * mem-break.c (memory_validate_breakpoint): New function.
3817 * objfiles.c (userloaded_objfile_contains_address_p): New
3819 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3820 * target.h (memory_validate_breakpoint): New declaration.
3822 2014-04-23 Pedro Alves <palves@redhat.com>
3824 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3825 the breakpoint is set in a shared library, only suppress
3826 errors for software breakpoints, not hardware breakpoints.
3828 2014-04-22 Pedro Alves <palves@redhat.com>
3830 * infrun.c (schedlock_applies): New function, factored out from
3831 find_thread_needs_step_over.
3832 (find_thread_needs_step_over): Use it.
3833 (switch_back_to_stepped_thread): Always clear trap_expected if the
3834 step over is finished. Return early if scheduler locking applies.
3835 Look for the stepping thread and a potential step-over thread with
3837 (currently_stepping_or_nexting_callback): Delete.
3839 2014-04-22 Nick Clifton <nickc@redhat.com>
3841 * NEWS: Mention that ARM sim now supports tracing.
3843 2014-04-22 Yao Qi <yao@codesourcery.com>
3845 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3847 * tracefile.c (tracefile_fetch_registers): ... it. New
3849 * tracefile.h (tracefile_fetch_registers): Declare.
3850 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3851 tracefile_fetch_registers.
3853 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3856 * windows-nat.c (thread_rec): Don't display a warning when
3857 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3858 fails for any reason, set th->suspended to -1, so that we don't
3859 try to resume such a thread. Also, don't return NULL in these
3860 cases, to avoid completely ruin the session due to "PC register is
3861 not available" error.
3862 (do_windows_fetch_inferior_registers): Check errors in
3863 GetThreadContext call.
3864 (windows_continue): Accept an additional argument KILLED; if not
3865 zero, ignore errors in the SetThreadContext call, since the
3866 inferior was killed and is shutting down.
3867 (windows_resume, get_windows_debug_event)
3868 (windows_create_inferior, windows_mourn_inferior)
3869 (windows_kill_inferior): All callers of windows_continue changed
3870 to adjust to its new calling sequence.
3872 2014-04-19 Yao Qi <yao@codesourcery.com>
3874 * ctf.c (ctf_open): Call post_create_inferior.
3876 2014-04-19 Yao Qi <yao@codesourcery.com>
3878 * ctf.c (handle_id): New static variable.
3879 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3880 value. Get the declaration of event "register" and get length
3881 of field "contents".
3883 2014-04-19 Yao Qi <yao@codesourcery.com>
3885 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3887 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3889 * valops.c (oload_method_static): Remove unnecessary argument
3890 METHOD. Update all callers.
3892 2014-04-18 Pedro alves <palves@redhat.com>
3893 Tom Tromey <tromey@redhat.com>
3896 * frame.c (get_prev_frame_1): Rename to ...
3897 (get_prev_frame_always): ... this, and make extern. Adjust.
3898 (skip_artificial_frames): Use get_prev_frame_always.
3899 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3900 (get_frame_unwind_stop_reason): Adjust to rename.
3901 * frame.h (get_prev_frame_always): Declare.
3902 * inline-frame.c: Include frame.h.
3903 (inline_frame_this_id): Use get_prev_frame_always.
3905 2014-04-18 Tristan Gingold <gingold@adacore.com>
3907 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3908 code by using bfd_mach_o_get_base_address.
3910 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3912 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3913 (spu_ax_pseudo_register_collect): New function.
3914 (spu_ax_pseudo_register_push_stack): Likewise.
3915 (spu_dwarf_reg_to_regnum): Likewise.
3916 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3918 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3920 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3921 Replace FRAME argument with FRAME_ID.
3922 * gdbarch.c, gdbarch.h: Regenerate.
3923 * findvar.c (default_value_from_register): Add GDBARCH argument;
3924 replace FRAME by FRAME_ID. No longer call get_frame_id.
3925 (value_from_register): Update call to gdbarch_value_from_register.
3926 * value.h (default_value_from_register): Update prototype.
3927 * s390-linux-tdep.c (s390_value_from_register): Update interface
3928 and call to default_value_from_register.
3929 * spu-tdep.c (spu_value_from_register): Likewise.
3931 * findvar.c (address_from_register): Remove TYPE argument.
3932 Do not call value_from_register; use gdbarch_value_from_register
3933 with null_frame_id instead.
3934 * value.h (address_from_register): Update prototype.
3935 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3936 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3937 address_from_register interface change.
3939 2014-04-17 Yao Qi <yao@codesourcery.com>
3941 * gdbtypes.h: Update comments to link to types and macros'
3944 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3946 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3948 2014-04-16 Keith Seitz <keiths@redhat.com>
3951 * dwarf2read.c (skip_one_die): Check that all relative-offset
3952 sibling DIEs fall within range of the current reader's buffer.
3953 (read_partial_die): Likewise.
3955 2014-04-16 Keith Seitz <keiths@redhat.com>
3958 * cp-namespace.c (lookup_symbol_file): If the type name of
3959 `this' is NULL, return immediately.
3961 2014-04-14 Keith Seitz <keiths@redhat.com>
3964 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3965 from symbol_matches_domain in symtab.c. All local callers
3966 of symbol_matches_domain updated.
3967 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3968 search STRUCT_DOMAIN.
3969 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3970 independently. standard_lookup will do that automatically.
3971 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3972 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3973 (cp_lookup_symbol_in_namespace): Likewise.
3974 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3975 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3976 may return a STRUCT_DOMAIN match.
3977 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3978 * cp-support.c: Include language.h.
3979 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3981 * psymtab.c (match_partial_symbol): Compare the requested
3982 domain with the symbol's domain directly.
3983 (lookup_partial_symbol): Likewise.
3984 * symtab.c (lookup_symbol_in_language): Explain when/why
3985 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3986 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3987 appropriate languages.
3988 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3989 and moved to ada-lang.c
3990 (lookup_block_symbol): Explain that this function only returns
3991 symbol matching the requested DOMAIN.
3992 Compare the requested domain with the symbol's domain directly.
3993 (iterate_over_symbols): Compare the requested domain with the
3994 symbol's domain directly.
3995 * symtab.h (symbol_matches_domain): Remove.
3997 2014-04-14 Tom Tromey <tromey@redhat.com>
4000 * c-exp.y (type_aggregate_p): New function.
4001 (qualified_name, classify_inner_name): Use it.
4002 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4003 and TYPE_TARGET_TYPE of an enum type.
4004 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4006 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4007 handle TYPE_DECLARED_CLASS.
4008 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4010 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4011 * valops.c (enum_constant_from_type): New function.
4012 (value_aggregate_elt): Use it.
4013 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4016 2014-04-14 Tom Tromey <tromey@redhat.com>
4018 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4019 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4021 * value.h (value_aggregate_elt): Update.
4023 2014-04-14 Tom Tromey <tromey@redhat.com>
4025 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4027 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4029 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4030 (evaluate_subexp_standard): Pass noside argument.
4031 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4032 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4033 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4034 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4035 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4037 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4039 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4040 points to a constant blob.
4042 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4044 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4045 property and store it as the high bound and flag the range accordingly.
4046 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4047 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4048 * gdbtypes.h (enum range_flags): New enum.
4049 (struct range_bounds): Add flags member.
4051 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4053 * c-typeprint.c (c_type_print_varspec_suffix): Added
4054 check for not yet resolved high bound. If unresolved, print
4055 "variable length" string to the console instead of random
4058 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4060 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4062 (ada_template_to_fixed_record_type_1): Likewise.
4063 (ada_to_fixed_type_1): Likewise.
4064 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4065 (cp_print_value): Likewise.
4066 * d-valprint.c (dynamic_array_type): Likewise.
4067 * findvar.c (address_of_variable): Likewise.
4068 * jv-valprint.c (java_value_print): Likewise.
4069 * valops.c (value_ind): Likewise.
4070 * value.c (coerce_ref): Likewise.
4072 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4074 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4075 value and retrieve the dynamic type size.
4077 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4079 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4080 passed to sizeof is dynamic evaluate the argument to compute the length.
4082 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4083 Joel Brobecker <brobecker@adacore.com>
4085 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4086 (dwarf2_evaluate_property): New function.
4087 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4088 * dwarf2read.c (attr_to_dynamic_prop): New function.
4089 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4091 * gdbtypes.c: Include dwarf2loc.h.
4092 (is_dynamic_type): New function.
4093 (resolve_dynamic_type): New function.
4094 (resolve_dynamic_bounds): New function.
4095 (get_type_length): New function.
4096 (check_typedef): Use get_type_length to compute type length.
4097 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4098 (TYPE_LOW_BOUND_KIND): New macro.
4099 (is_dynamic_type): New function prototype.
4100 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4101 to resolve dynamic properties of the type. Update comment.
4102 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4104 2014-04-14 Richard Henderson <rth@redhat.com>
4106 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4108 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4109 Doug Evans <xdje42@gmail.com>
4111 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4112 dereference TYPE_CODE_REF values.
4114 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4116 Revert the following changes due to regressions:
4118 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4119 (dwarf2_evaluate_property): New function.
4120 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4121 * dwarf2read.c (attr_to_dynamic_prop): New function.
4122 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4124 * gdbtypes.c: Include dwarf2loc.h.
4125 (is_dynamic_type): New function.
4126 (resolve_dynamic_type): New function.
4127 (resolve_dynamic_bounds): New function.
4128 (get_type_length): New function.
4129 (check_typedef): Use get_type_length to compute type length.
4130 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4131 (TYPE_LOW_BOUND_KIND): New macro.
4132 (is_dynamic_type): New function prototype.
4133 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4134 to resolve dynamic properties of the type. Update comment.
4135 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4137 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4138 passed to sizeof is dynamic evaluate the argument to compute the length.
4140 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4141 value and retrieve the dynamic type size.
4143 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4144 (ada_template_to_fixed_record_type_1): Likewise.
4145 (ada_to_fixed_type_1): Likewise.
4146 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4147 (cp_print_value): Likewise.
4148 * d-valprint.c (dynamic_array_type): Likewise.
4149 * eval.c (evaluate_subexp_with_coercion): Likewise.
4150 * findvar.c (address_of_variable): Likewise.
4151 * jv-valprint.c (java_value_print): Likewise.
4152 * valops.c (value_ind): Likewise.
4153 * value.c (coerce_ref): Likewise.
4155 * c-typeprint.c (c_type_print_varspec_suffix): Added
4156 check for not yet resolved high bound. If unresolved, print
4157 "variable length" string to the console instead of random
4160 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4161 property and store it as the high bound and flag the range accordingly.
4162 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4163 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4164 * gdbtypes.h (enum range_flags): New enum.
4165 (struct range_bounds): Add flags member.
4167 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4168 points to a constant blob.
4170 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4171 (evaluate_subexp_standard): Pass noside argument.
4172 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4173 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4174 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4175 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4176 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4178 2014-04-11 Keith Seitz <keiths@redhat.com>
4181 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4182 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4185 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4187 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4188 (evaluate_subexp_standard): Pass noside argument.
4189 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4190 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4191 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4192 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4193 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4195 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4197 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4198 points to a constant blob.
4200 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4202 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4203 property and store it as the high bound and flag the range accordingly.
4204 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4205 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4206 * gdbtypes.h (enum range_flags): New enum.
4207 (struct range_bounds): Add flags member.
4209 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4211 * c-typeprint.c (c_type_print_varspec_suffix): Added
4212 check for not yet resolved high bound. If unresolved, print
4213 "variable length" string to the console instead of random
4216 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4218 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4219 (ada_template_to_fixed_record_type_1): Likewise.
4220 (ada_to_fixed_type_1): Likewise.
4221 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4222 (cp_print_value): Likewise.
4223 * d-valprint.c (dynamic_array_type): Likewise.
4224 * eval.c (evaluate_subexp_with_coercion): Likewise.
4225 * findvar.c (address_of_variable): Likewise.
4226 * jv-valprint.c (java_value_print): Likewise.
4227 * valops.c (value_ind): Likewise.
4228 * value.c (coerce_ref): Likewise.
4230 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4232 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4233 value and retrieve the dynamic type size.
4235 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4237 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4238 passed to sizeof is dynamic evaluate the argument to compute the length.
4240 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4242 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4243 (dwarf2_evaluate_property): New function.
4244 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4245 * dwarf2read.c (attr_to_dynamic_prop): New function.
4246 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4248 * gdbtypes.c: Include dwarf2loc.h.
4249 (is_dynamic_type): New function.
4250 (resolve_dynamic_type): New function.
4251 (resolve_dynamic_bounds): New function.
4252 (get_type_length): New function.
4253 (check_typedef): Use get_type_length to compute type length.
4254 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4255 (TYPE_LOW_BOUND_KIND): New macro.
4256 (is_dynamic_type): New function prototype.
4257 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4258 to resolve dynamic properties of the type. Update comment.
4259 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4261 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4263 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4264 declaring high/low bounds and change uses accordingly. Call
4265 create_range_type instead of create_static_range_type.
4266 * gdbtypes.c (create_range_type): New function.
4267 (create_range_type): Convert bounds into struct bound_prop and pass
4268 them to create_range_type.
4269 * gdbtypes.h (struct bound_prop): New struct.
4270 (create_range_type): New function prototype.
4271 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4272 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4273 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4275 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4277 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4279 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4280 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4281 * ada-lang.c: All uses of create_range_type updated.
4282 * coffread.c: All uses of create_range_type updated.
4283 * dwarf2read.c: All uses of create_range_type updated.
4284 * f-exp.y: All uses of create_range_type updated.
4285 * m2-valprint.c: All uses of create_range_type updated.
4286 * mdebugread.c: All uses of create_range_type updated.
4287 * stabsread.c: All uses of create_range_type updated.
4288 * valops.c: All uses of create_range_type updated.
4289 * valprint.c: All uses of create_range_type updated.
4291 2014-04-10 Pedro Alves <palves@redhat.com>
4293 * breakpoint.c (single_step_breakpoints)
4294 (single_step_gdbarch): Move up in the file.
4295 (one_breakpoint_xfer_memory): New function, factored out from ...
4296 (breakpoint_xfer_memory): ... here. Also process single-step
4299 2014-04-09 Tristan Gingold <gingold@adacore.com>
4301 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4303 (darwin_decode_exception_message): Free port only after use.
4305 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4307 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4308 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4309 when setting the size of call_length.
4311 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4313 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4314 dereference TYPE_CODE_REF values.
4316 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4318 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4319 end of warning message.
4321 2014-04-03 Doug Evans <dje@google.com>
4323 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4324 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4326 2014-04-02 Alan Modra <amodra@gmail.com>
4328 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4329 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4330 (struct symbol_file_add_from_memory_args): Add size field.
4331 (find_vdso_size): New function.
4332 (add_vsyscall_page): Attempt to find vdso size.
4334 2014-04-01 Doug Evans <dje@google.com>
4336 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4338 2014-04-01 Tristan Gingold <gingold@adacore.com>
4340 * darwin-nat.c (darwin_encode_reply): Add prototype.
4341 (darwin_decode_exception_message): Reply to unknown inferiors.
4342 (darwin_decode_message): Handle message by id. Ignore message
4343 to unknown inferior.
4344 (darwin_wait): Discard unknown messages, add debug trace.
4346 2014-03-31 Doug Evans <dje@google.com>
4348 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4351 2014-03-31 Doug Evans <dje@google.com>
4353 New option "set print symbol-loading".
4355 * solib.c (solib_read_symbols): Only print symbol loading messages
4357 (solib_add): If symbol loading is in "brief" mode, notify user
4358 symbols are being loaded.
4359 (reload_shared_libraries_1): Ditto.
4360 * symfile.c (print_symbol_loading_off): New static global.
4361 (print_symbol_loading_brief): New static global.
4362 (print_symbol_loading_full): New static global.
4363 (print_symbol_loading_enums): New static global.
4364 (print_symbol_loading): New static global.
4365 (print_symbol_loading_p): New function.
4366 (symbol_file_add_with_addrs): Only print symbol loading messages
4368 (_initialize_symfile): Register "print symbol-loading" set/show
4370 * symfile.h (print_symbol_loading_p): Declare.
4372 2014-03-30 Doug Evans <xdje42@gmail.com>
4374 * infrun.c (set_last_target_status): New function.
4375 (handle_inferior_event): Call it.
4377 2014-03-30 Doug Evans <xdje42@gmail.com>
4379 * inferior.h (enum stop_kind): Improve comment.
4381 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4383 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4384 a reference, strip the reference layer before calling
4385 the lang_ops value_has_mutated callback.
4387 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4389 Remove some globals from our parser.
4390 * language.c (unk_lang_parser): Add "struct parser_state"
4392 * language.h (struct language_defn) <la_parser>: Likewise.
4393 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4394 (initialize_expout): Add "struct parser_state" argument.
4395 Rewrite function to use the parser state.
4396 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4397 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4398 write_exp_elt_longcst, write_exp_elt_dblcst,
4399 write_exp_elt_decfloatcst, write_exp_elt_type,
4400 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4401 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4402 write_dollar_variable): Likewise.
4403 (parse_exp_in_context_1): Use parser state.
4404 (insert_type_address_space): Add "struct parser_state" argument.
4406 (increase_expout_size): New function.
4407 * parser-defs.h: Forward declare "struct language_defn" and
4408 "struct parser_state".
4409 (expout, expout_size, expout_ptr): Remove extern declarations.
4410 (parse_gdbarch, parse_language): Rewrite macro declarations to
4411 accept the parser state.
4412 (struct parser_state): New struct.
4413 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4414 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4415 write_exp_elt_decfloatcst, write_exp_elt_type,
4416 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4417 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4418 write_exp_msymbol, write_dollar_variable,
4419 mark_struct_expression, insert_type_address_space): Add "struct
4420 parser_state" argument.
4421 (increase_expout_size): New function.
4422 * utils.c (do_clear_parser_state): New function.
4423 (make_cleanup_clear_parser_state): Likewise.
4424 * utils.h (make_cleanup_clear_parser_state): New function
4426 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4427 Update calls to write_exp* in order to pass the parser state.
4428 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4429 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4430 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4431 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4432 * stap-probe.c (stap_parse_register_operand): Likewise.
4433 (stap_parse_single_operand): Likewise.
4434 (stap_parse_argument_1): Likewise.
4435 (stap_parse_argument): Use parser state.
4436 * stap-probe.h: Include "parser-defs.h".
4437 (struct stap_parse_info) <pstate>: New field.
4438 * c-exp.y (parse_type): Rewrite to use parser state.
4439 (yyparse): Redefine to c_parse_internal.
4440 (pstate): New global variable.
4441 (parse_number): Add "struct parser_state" argument.
4442 (write_destructor_name): Likewise.
4443 (type_exp): Update calls to write_exp* and similars in order to
4445 (exp1, exp, variable, qualified_name, space_identifier,
4446 typename, typebase): Likewise.
4447 (write_destructor_name, parse_number, lex_one_token,
4448 classify_name, classify_inner_name, c_parse): Add "struct
4449 parser_state" argument. Update function to use parser state.
4450 * c-lang.h: Forward declare "struct parser_state".
4451 (c_parse): Add "struct parser_state" argument.
4452 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4453 (yyparse): Redefine macro to ada_parse_internal.
4454 (pstate): New variable.
4455 (write_int, write_object_renaming, write_var_or_type,
4456 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4457 type_int, type_long, type_long_long, type_float, type_double,
4458 type_long_double, type_char, type_boolean, type_system_address):
4459 Add "struct parser_state" argument.
4460 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4461 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4462 var_or_type, aggregate, aggregate_component_list,
4463 positional_list, others, component_group,
4464 component_associations): Update calls to write_exp* and similar
4465 functions in order to use parser state.
4466 (ada_parse, write_var_from_sym, write_int,
4467 write_exp_op_with_string, write_object_renaming,
4468 find_primitive_type, write_selectors, write_ambiguous_var,
4469 write_var_or_type, write_name_assoc, type_int, type_long,
4470 type_long_long, type_float, type_double, type_long_double,
4471 type_char, type_boolean, type_system_address): Add "struct
4472 parser_state" argument. Adjust function to use parser state.
4473 * ada-lang.c (parse): Likewise.
4474 * ada-lang.h: Forward declare "struct parser_state".
4475 (ada_parse): Add "struct parser_state" argument.
4476 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4477 calls to both functions.
4478 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4480 (yyparse): Redefine macro to f_parse_internal.
4481 (pstate): New variable.
4482 (parse_number): Add "struct parser_state" argument.
4483 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4484 and similars in order to use parser state.
4485 (parse_number): Adjust code to use parser state.
4487 (f_parse): New function.
4488 * f-lang.h: Forward declare "struct parser_state".
4489 (f_parse): Add "struct parser_state" argument.
4490 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4492 (yyparse): Redefine macro for java_parse_internal.
4493 (pstate): New variable.
4494 (push_expression_name, push_expression_name, insert_exp): Add
4495 "struct parser_state" argument.
4496 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4497 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4498 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4499 PostIncrementExpression, PostDecrementExpression,
4500 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4501 UnaryExpressionNotPlusMinus, CastExpression,
4502 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4503 RelationalExpression, EqualityExpression, AndExpression,
4504 ExclusiveOrExpression, InclusiveOrExpression,
4505 ConditionalAndExpression, ConditionalOrExpression,
4506 ConditionalExpression, Assignment, LeftHandSide): Update
4507 calls to write_exp* and similars in order to use parser state.
4508 (parse_number): Ajust code to use parser state.
4510 (java_parse): New function.
4511 (push_variable): Add "struct parser_state" argument. Adjust
4512 code to user parser state.
4513 (push_fieldnames, push_qualified_expression_name,
4514 push_expression_name, insert_exp): Likewise.
4515 * jv-lang.h: Forward declare "struct parser_state".
4516 (java_parse): Add "struct parser_state" argument.
4517 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4519 (yyparse): Redefine macro to m2_parse_internal.
4520 (pstate): New variable.
4521 (type_exp, exp, fblock, variable, type): Update calls to
4522 write_exp* and similars to use parser state.
4524 (m2_parse): New function.
4525 * m2-lang.h: Forward declare "struct parser_state".
4526 (m2_parse): Add "struct parser_state" argument.
4527 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4528 * objc-lang.h: Forward declare "struct parser_state".
4529 (end_msglist): Add "struct parser_state" argument.
4530 * p-exp.y (parse_type): Rewrite macro to use parser state.
4531 (yyparse): Redefine macro to pascal_parse_internal.
4532 (pstate): New variable.
4533 (parse_number): Add "struct parser_state" argument.
4534 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4535 write_exp* and similars in order to use parser state.
4536 (parse_number, yylex): Adjust code to use parser state.
4537 (pascal_parse): New function.
4538 * p-lang.h: Forward declare "struct parser_state".
4539 (pascal_parse): Add "struct parser_state" argument.
4540 * go-exp.y (parse_type): Rewrite macro to use parser state.
4541 (yyparse): Redefine macro to go_parse_internal.
4542 (pstate): New variable.
4543 (parse_number): Add "struct parser_state" argument.
4544 (type_exp, exp1, exp, variable, type): Update calls to
4545 write_exp* and similars in order to use parser state.
4546 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4547 to use parser state.
4548 (go_parse): Likewise.
4549 * go-lang.h: Forward declare "struct parser_state".
4550 (go_parse): Add "struct parser_state" argument.
4552 2014-03-27 Doug Evans <dje@google.com>
4554 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4556 2014-03-27 Doug Evans <dje@google.com>
4558 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4559 Remove argument abbrev_section. All callers updated.
4561 2014-03-27 Doug Evans <dje@google.com>
4563 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4564 addr_base, ranges_base.
4566 2014-03-26 Keith Seitz <keiths@redhat.com>
4568 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4569 types, not VAR_DOMAIN.
4571 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4573 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4575 * features/nios2-linux.c: Regenerated.
4576 * features/nios2.c: Regenerated.
4578 2014-03-25 Pedro Alves <palves@redhat.com>
4580 * cli/cli-script.c (script_from_file): Force the interpreter to
4583 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4585 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4586 small stack allocation.
4588 2014-03-24 Tristan Gingold <gingold@adacore.com>
4590 * darwin-nat.c (exc_server): Remove unused prototype.
4591 (darwin_dump_message): Correctly display data on x86_64.
4592 (darwin_encode_reply): Fix style.
4593 Add comments and fix indentation.
4595 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4597 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4599 2014-03-22 Doug Evans <xdje42@gmail.com>
4601 * infcmd.c: Whitespace fixes.
4602 (interrupt_command): Merge two function comments into one.
4604 2014-03-22 Doug Evans <xdje42@gmail.com>
4606 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4609 2014-03-22 Yao Qi <yao@codesourcery.com>
4611 * remote.c (target_read_live_memory): Remove.
4612 (memory_xfer_live_readonly_partial): Rename it to
4613 remote_xfer_live_readonly_partial. Remove argument 'object'.
4614 All callers updated. Call remote_read_bytes_1
4615 instead of target_read_live_memory.
4616 * tracepoint.c (set_traceframe_number): Remove.
4617 (make_cleanup_restore_traceframe_number): Likewise .
4618 * tracepoint.h (set_traceframe_number): Remove declaration.
4619 (make_cleanup_restore_traceframe_number): Likewise.
4621 2014-03-22 Yao Qi <yao@codesourcery.com>
4623 * remote.c (remote_read_bytes): Move code on reading from the
4625 (remote_read_bytes_1): ... here. New function.
4627 2014-03-22 Yao Qi <yao@codesourcery.com>
4629 * ctf.c (ctf_xfer_partial): Check the return value of
4630 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4631 return TARGET_XFER_UNAVAILABLE.
4632 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4633 * target.c (target_read_live_memory): Move it to remote.c.
4634 (memory_xfer_live_readonly_partial): Likewise.
4635 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4636 * remote.c (target_read_live_memory): Moved from target.c.
4637 (memory_xfer_live_readonly_partial): Likewise.
4638 (remote_read_bytes): Factored out from
4639 memory_xfer_partial_1.
4641 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4643 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4646 2014-03-21 Pedro Alves <palves@redhat.com>
4648 * infrun.c (normal_stop): Extend comment.
4650 2014-03-21 Hui Zhu <hui@codesourcery.com>
4651 Pedro Alves <palves@redhat.com>
4653 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4655 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4656 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4657 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4659 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4661 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4662 `z' formatted output modifier.
4664 2014-03-20 Tom Tromey <tromey@redhat.com>
4665 Sergio Durigan Junior <sergiodj@redhat.com>
4667 * probe.c (parse_probes): Turn assert into an ordinary error.
4668 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4669 exceptions when parsing probes. Rearrange the code for clarity.
4671 2014-03-20 Tom Tromey <tromey@redhat.com>
4674 * top.c (execute_command): Only dispatch events if the command
4677 2014-03-20 Tom Tromey <tromey@redhat.com>
4680 * infcall.c: Include event-top.h.
4681 (run_inferior_call): Call async_disable_stdin if needed.
4683 2014-03-20 Pedro Alves <palves@redhat.com>
4685 * infrun.c (prepare_to_proceed): Delete.
4686 (thread_still_needs_step_over): New function.
4687 (find_thread_needs_step_over): New function.
4688 (proceed): If the current thread needs a step-over, set its
4689 steping_over_breakpoint flag. Adjust to use
4690 find_thread_needs_step_over instead of prepare_to_proceed.
4691 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4692 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4694 (switch_back_to_stepped_thread): Step over breakpoints of all
4695 threads not the stepping thread, before switching back to the
4698 2014-03-20 Pedro Alves <palves@redhat.com>
4700 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4702 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4703 * infrun.c (saved_singlestep_ptid)
4704 (stepping_past_singlestep_breakpoint): Delete.
4705 (resume): Remove stepping_past_singlestep_breakpoint handling.
4706 (proceed): Store the prev_pc of the stepping thread too.
4707 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4709 (enum infwait_states): Delete infwait_thread_hop_state.
4710 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4712 (handle_inferior_event): Adjust.
4713 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4714 handling and the thread-hop code. Before removing single-step
4715 breakpoints, check whether the thread hit a single-step breakpoint
4716 of another thread. If it did, the trap is not a random signal.
4717 (switch_back_to_stepped_thread): If the event thread hit a
4718 single-step breakpoint, unblock it before switching to the
4719 stepping thread. Handle the case of the stepped thread having
4721 (keep_going): Handle the case of the current thread moving past a
4722 single-step breakpoint.
4724 2014-03-20 Pedro Alves <palves@redhat.com>
4727 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4728 are being stepped over.
4729 (breakpoint_address_match): Make extern.
4730 * breakpoint.h (breakpoint_address_match): New declaration.
4731 * inferior.h (stepping_past_instruction_at): New declaration.
4732 * infrun.c (struct step_over_info): New type.
4733 (step_over_info): New global.
4734 (set_step_over_info, clear_step_over_info)
4735 (stepping_past_instruction_at): New functions.
4736 (handle_inferior_event): Clear the step-over info when
4737 trap_expected is cleared.
4738 (resume): Remove now stale comment.
4739 (clear_proceed_status): Clear step-over info.
4740 (proceed): Adjust step-over handling to set or clear the step-over
4741 info instead of removing all breakpoints.
4742 (handle_signal_stop): When setting up a thread-hop, don't remove
4744 (stop_stepping): Clear step-over info.
4745 (keep_going): Adjust step-over handling to set or clear step-over
4746 info and then always inserting breakpoints, instead of removing
4747 all breakpoints when stepping over one.
4749 2014-03-20 Pedro Alves <palves@redhat.com>
4751 * infrun.c (previous_inferior_ptid): Adjust comment.
4752 (deferred_step_ptid): Delete.
4753 (infrun_thread_ptid_changed, prepare_to_proceed)
4754 (init_wait_for_inferior): Adjust.
4755 (handle_signal_stop): Delete deferred_step_ptid handling.
4757 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4760 * defs.h (sync_quit_force_run): New declaration.
4761 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4762 * event-top.c (async_sigterm_handler): New declaration.
4763 (async_sigterm_token): New variable.
4764 (async_init_signals): Create also async_sigterm_token.
4765 (async_sigterm_handler): New function.
4766 (sync_quit_force_run): New variable.
4767 (handle_sigterm): Replace quit_force call by other calls.
4768 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4770 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4772 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4773 offset into SPE pseudo registers.
4775 2014-03-18 Pedro Alves <palves@redhat.com>
4778 * inferior.h (print_stop_event): Declare.
4779 * infrun.c (print_stop_event): New, factored out from ...
4780 (normal_stop): ... this.
4781 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4782 of bpstat_print/print_stack_frame.
4784 2014-03-17 Tom Tromey <tromey@redhat.com>
4786 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4788 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4790 * ada-lang.c (decode_constrained_packed_array): Perform a
4791 minimal coercion for reference with coerce_ref instead of
4794 2014-03-17 Tristan Gingold <gingold@adacore.com>
4796 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4797 (darwin_solib_create_inferior_hook): Emit a warning if version
4800 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4802 * python/py-value.c (get_field_flag): Cast flag_name argument to
4803 PyObject_GetAttrString to support Python 2.4.
4805 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4807 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4808 (Global Maintainers): Remove Jan Kratochvil.
4810 2014-03-14 Pedro Alves <palves@redhat.com>
4812 * inferior.h (terminal_ours_for_output): Rename to ...
4813 (child_terminal_ours_for_output): ... this.
4814 (terminal_save_ours): Rename to ...
4815 (child_terminal_save_ours): ... this.
4816 (terminal_ours): Rename to ...
4817 (child_terminal_ours): ... this.
4818 (terminal_inferior): Rename to ...
4819 (child_terminal_inferior): ... this.
4820 (terminal_init_inferior): Rename to ...
4821 (child_terminal_init_inferior): ... this.
4822 (terminal_init_inferior_with_pgrp): Rename to ...
4823 (child_terminal_init_inferior_with_pgrp): ... this.
4824 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4825 (child_terminal_init_with_pgrp): ... this.
4826 (terminal_save_ours): Rename to ...
4827 (child_terminal_save_ours): ... this.
4828 (terminal_init_inferior): Rename to ...
4829 (child_terminal_init): ... this. Adjust.
4830 (terminal_inferior): Rename to ...
4831 (child_terminal_inferior): ... this.
4832 (terminal_ours_for_output): Rename to ...
4833 (child_terminal_ours_for_output): ... this. Adjust.
4834 (terminal_ours): Rename to ...
4835 (child_terminal_ours): ... this.
4836 (terminal_ours_1): Rename to ...
4837 (child_terminal_ours_1): ... this. Adjust.
4838 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4839 * windows-nat.c (do_initial_windows_stuff): Adjust.
4840 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4841 (gnu_terminal_init): ... this. Adjust.
4842 (gnu_target): Adjust.
4843 * inf-child.c (inf_child_target): Adjust.
4845 2014-03-13 Doug Evans <xdje42@gmail.com>
4848 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4851 2014-03-13 Doug Evans <xdje42@gmail.com>
4853 * value.c (record_latest_value): Call release_value_or_incref
4854 instead of release_value.
4856 2014-03-13 Pedro Alves <palves@redhat.com>
4858 * procfs.c (procfs_target): Don't override to_shortname,
4859 to_longname or to_doc.
4861 2014-03-13 Pedro Alves <palves@redhat.com>
4863 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4864 Unix in user visible strings.
4866 2014-03-12 Stan Shebs <stan@codesourcery.com>
4868 * gdbtypes.h: Annotate comments for Doxygen, add a page
4869 block comment with some general info.
4871 2014-03-12 Pedro Alves <palves@redhat.com>
4873 * infcmd.c (prepare_execution_command): New function, factored out
4874 from several execution commands.
4875 (run_command_1, continue_command, step_1, jump_command)
4876 (signal_command, until_command, advance_command, finish_command)
4877 (attach_command): Use prepare_execution_command.
4879 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4881 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4884 (struct arm_linux_thread_points): Removed.
4885 (struct arm_linux_process_info): New.
4886 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4887 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4888 (arm_linux_find_breakpoints_by_tid): Removed.
4889 (struct arch_lwp_info): New.
4890 (arm_linux_find_process_pid): New functions.
4891 (arm_linux_add_process): New functions.
4892 (arm_linux_process_info_get): New functions.
4893 (arm_linux_forget_process): New function.
4894 (arm_linux_get_debug_reg_state): New function.
4895 (struct update_registers_data): New.
4896 (update_registers_callback): New function.
4897 (arm_linux_insert_hw_breakpoint1): Updated.
4898 (arm_linux_remove_hw_breakpoint1): Updated.
4899 (arm_linux_insert_hw_breakpoint): Updated.
4900 (arm_linux_remove_hw_breakpoint): Updated.
4901 (arm_linux_insert_watchpoint): Updated.
4902 (arm_linux_remove_watchpoint): Updated.
4903 (arm_linux_new_thread): Updated.
4904 (arm_linux_prepare_to_resume): New function.
4905 (arm_linux_new_fork): New function.
4906 (_initialize_arm_linux_nat): Updated.
4908 2014-03-12 Pedro Alves <palves@redhat.com>
4910 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4912 2014-03-12 Tom Tromey <tromey@redhat.com>
4914 * inf-child.c (return_zero): New function.
4915 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4916 * aix-thread.c (aix_thread_inferior_created): New function.
4917 (aix_thread_attach): Remove.
4918 (init_aix_thread_ops): Don't set to_attach.
4919 (_initialize_aix_thread): Register inferior_created observer.
4920 * corelow.c (init_core_ops): Don't set to_attach or
4922 * exec.c (init_exec_ops): Don't set to_attach or
4924 * infcmd.c (run_command_1): Use find_run_target. Make direct
4926 (attach_command): Use find_attach_target. Make direct target
4928 * record-btrace.c (init_record_btrace_ops): Don't set
4930 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4932 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4933 set to_create_inferior.
4934 * target.c (complete_target_initialization): Add assertion.
4935 (target_create_inferior): Remove.
4936 (find_default_attach, find_default_create_inferior): Remove.
4937 (find_attach_target, find_run_target): New functions.
4938 (find_default_is_async_p, find_default_can_async_p)
4939 (target_supports_non_stop, target_attach): Remove.
4940 (init_dummy_target): Don't set to_create_inferior or
4941 to_supports_non_stop.
4942 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4943 TARGET_DEFAULT_FUNC.
4944 <to_create_inferior>: Add comment.
4945 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4946 TARGET_DEFAULT_RETURN.
4947 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4948 (find_attach_target, find_run_target): Declare.
4949 (target_create_inferior): Remove.
4950 (target_has_execution_1): Update comment.
4951 (target_supports_non_stop): Remove.
4952 * target-delegates.c: Rebuild.
4954 2014-03-12 Pedro Alves <palves@redhat.com>
4956 * inf-child.h: Update comment to not mention Unix.
4958 2014-03-12 Pedro Alves <palves@redhat.com>
4960 * inf-child.c: Update top comment to not mention Unix. Add
4961 generic comment describing how this target is meant to be used.
4962 (inf_child_post_attach, inf_child_post_startup_inferior)
4963 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4966 2014-03-12 Pedro Alves <palves@redhat.com>
4968 * nto-procfs.c: Include inf-child.h.
4969 (procfs_ops): Delete global.
4970 (procfs_can_run): Delete method.
4971 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4972 target pointer instead of referencing procfs_ops.
4973 (procfs_prepare_to_store): Delete.
4974 (init_procfs_ops): Delete function.
4975 (procfs_target): New function, based on init_procfs_ops, but
4976 inherit inf_child_target.
4977 (_initialize_procfs): Use procfs_target.
4979 2014-03-12 Pedro Alves <palves@redhat.com>
4981 * windows-nat.c: Include inf-child.h.
4982 (windows_ops): Delete global.
4983 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4985 (init_windows_ops): Delete function.
4986 (windows_target): New function, based on init_windows_ops, but
4987 inherit inf_child_target.
4988 (_initialize_windows_nat): Use windows_target. Install x86
4989 specific target methods here.
4991 2014-03-10 Doug Evans <xdje42@gmail.com>
4993 * guile/guile.c (call_initialize_gdb_module): New function.
4994 (initialize_guile): Replace call to scm_init_guile with call to
4997 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4999 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5000 in call to TYPE_CODE macro.
5002 2014-03-10 Jerome Guitton <guitton@adacore.com>
5004 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5005 Resolve tagged types to full view.
5007 2014-03-10 Hui Zhu <hui@codesourcery.com>
5009 * target.h (target_insert_breakpoint): Remove "hardware" from its
5012 2014-03-07 Doug Evans <dje@google.com>
5014 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5016 2014-03-07 Doug Evans <dje@google.com>
5018 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5019 Remove unused local comp_dir_attr. Assert exactly one of
5020 stub_comp_unit_die, stub_comp_dir is non-NULL.
5022 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5024 * target.h (complete_target_initialization, add_target):
5027 2014-03-07 Pedro Alves <palves@redhat.com>
5029 * go32-nat.c: Include inf-child.h.
5030 (go32_ops): Delete global.
5031 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5033 (go32_create_inferior): Push the passed in target pointer instead
5034 of referencing go32_ops.
5035 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5036 (go32_target): New function, based on init_go32_ops, but inherit
5038 (_initialize_go32_nat): Use go32_target. Move parts of
5041 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5043 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5044 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5045 SYMBOL_VALUE_ADDRESS.
5046 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5048 2014-03-06 Yao Qi <yao@codesourcery.com>
5050 * breakpoint.c (get_tracepoint_by_number): Remove argument
5051 optional_p. All callers updated. Adjust comments. Update
5053 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5055 2014-03-06 Yao Qi <yao@codesourcery.com>
5057 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5058 early if get_number returns zero. Use 'p' instead of 'args'.
5060 2014-03-06 Yao Qi <yao@codesourcery.com>
5062 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5065 2014-03-06 Yao Qi <yao@codesourcery.com>
5067 PR breakpoints/16508
5068 * tracepoint.c (check_trace_running): New function.
5069 (trace_find_command): Move code to check_trace_running and
5070 call check_trace_running.
5071 (trace_find_pc_command): Likewise.
5072 (trace_find_tracepoint_command): Likewise.
5073 (trace_find_line_command): Likewise.
5074 (trace_find_range_command): Likewise.
5075 * tracepoint.h (check_trace_running): Likewise.
5076 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5078 2014-03-06 Yao Qi <yao@codesourcery.com>
5080 * target.h (struct target_ops) <to_traceframe_info>: Use
5081 TARGET_DEFAULT_NORETURN (tcomplain ()).
5082 * target-delegates.c: Regenerated.
5084 2014-03-05 Pedro Alves <palves@redhat.com>
5087 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5088 void. Update comment.
5089 (dcache_xfer_memory): Delete.
5090 (dcache_read_memory_partial): New, based on the read bits of
5092 (dcache_update): Add status parameter. Use ULONGEST for len, and
5093 adjust. Discard cache lines if the reason for the update was
5095 * dcache.h (dcache_xfer_memory): Delete declaration.
5096 (dcache_read_memory_partial): New declaration.
5097 (dcache_update): Update prototype.
5098 * target.c (raw_memory_xfer_partial): Update the dcache here.
5099 (memory_xfer_partial_1): Don't handle dcache writes here.
5101 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5103 * remote-sim.c (gdbsim_load): Add const to prog.
5105 2014-03-03 Tom Tromey <tromey@redhat.com>
5107 * elfread.c (probe_key): Change to bfd_data.
5108 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5109 now per-BFD, not per-objfile.
5110 * stap-probe.c (stap_probe_destroy): Update comment.
5111 (handle_stap_probe): Allocate on the per-BFD obstack.
5113 2014-03-03 Tom Tromey <tromey@redhat.com>
5115 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5116 * breakpoint.c (create_longjmp_master_breakpoint): Use
5118 (add_location_to_breakpoint, bkpt_probe_insert_location)
5119 (bkpt_probe_remove_location): Update.
5120 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5121 * elfread.c (elf_symfile_relocate_probe): Remove.
5122 (elf_probe_fns): Update.
5123 (insert_exception_resume_breakpoint): Change type of "probe"
5124 parameter to bound_probe.
5125 (check_exception_resume): Update.
5126 * objfiles.c (objfile_relocate1): Don't relocate probes.
5127 * probe.c (bound_probe_s): New typedef.
5128 (parse_probes): Use get_probe_address. Set sal's objfile.
5129 (find_probe_by_pc): Return a bound_probe.
5130 (collect_probes): Return a VEC(bound_probe_s).
5131 (compare_probes): Update.
5132 (gen_ui_out_table_header_info): Change type of "probes"
5134 (info_probes_for_ops): Update.
5135 (get_probe_address): New function.
5136 (probe_safe_evaluate_at_pc): Update.
5137 * probe.h (struct probe_ops) <get_probe_address>: New field.
5138 <set_semaphore, clear_semaphore>: Add objfile parameter.
5139 (struct probe) <objfile>: Remove field.
5141 <address>: Update comment.
5142 (struct bound_probe): New.
5143 (find_probe_by_pc): Return a bound_probe.
5144 (get_probe_address): Declare.
5145 * solib-svr4.c (struct probe_and_action) <address>: New field.
5146 (hash_probe_and_action, equal_probe_and_action): Update.
5147 (register_solib_event_probe): Add address parameter.
5148 (solib_event_probe_at): Update.
5149 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5151 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5152 (stap_get_probe_address): New function.
5153 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5154 (compile_probe_arg): Update.
5155 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5157 (handle_stap_probe): Don't relocate the probe.
5158 (stap_relocate): Remove.
5159 (stap_gen_info_probes_table_values): Update.
5160 (stap_probe_ops): Remove stap_relocate.
5161 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5162 (debug_sym_probe_fns): Update.
5163 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5164 * symtab.c (init_sal): Use memset.
5165 * symtab.h (struct symtab_and_line) <objfile>: New field.
5166 * tracepoint.c (start_tracing, stop_tracing): Update.
5168 2014-03-03 Tom Tromey <tromey@redhat.com>
5170 * probe.h (parse_probes, find_probe_by_pc)
5171 (find_probes_in_objfile): Fix comments.
5173 2014-03-02 Doug Evans <xdje42@gmail.com>
5175 * infrun.c (handle_signal_stop): Replace test for
5176 TARGET_WAITKIND_STOPPED with an assert.
5178 2014-03-02 Doug Evans <xdje42@gmail.com>
5180 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5182 2014-03-02 Doug Evans <xdje42@gmail.com>
5184 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5186 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5188 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5190 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5192 * i386obsd-nat.c: Include "obsd-nat.h".
5193 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5195 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5197 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5199 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5201 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5203 * mips64obsd-nat.c: Include "obsd-nath".
5204 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5206 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5208 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5210 * amd64obsd-nat.c: Include "obsd-nat,h.
5211 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5213 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5215 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5217 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5218 (find_overload_match): Update call to find_oload_champ.
5219 (find_oload_champ_namespace_loop): Likewise
5221 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5223 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5225 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5226 * config/sparc/obsd64.mh: New file.
5227 * sparc64obsd-nat.c: New file.
5229 * obsd-nat.h: New file.
5230 * obsd-nat.c: New file.
5231 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5232 (ALLDEPFILES): Add obsd-nat.c.
5234 2014-02-28 Tom Tromey <tromey@redhat.com>
5236 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5237 * cli-out.h (cli_ui_out_impl): Now const.
5238 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5239 * ui-out.c (struct ui_out) <impl>: Now const.
5240 (default_ui_out_impl): Now const.
5241 (ui_out_new): Make 'impl' parameter const.
5242 * ui-out.h (ui_out_new): Update.
5244 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5246 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5248 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5250 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5252 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5254 Additional PR 8882 fix.
5255 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5257 2014-02-27 Pedro Alves <palves@redhat.com>
5259 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5262 2014-02-27 Pedro Alves <palves@redhat.com>
5265 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5266 * nat/linux-waitpid.c: Include string.h.
5267 (status_to_str): Moved here and made extern.
5268 * nat/linux-waitpid.h (status_to_str): New declaration.
5270 2014-02-27 Hui Zhu <hui@codesourcery.com>
5273 * infrun.c (ptid_match): Move ...
5274 * common/ptid.c (ptid_match): ... here.
5275 * inferior.h (ptid_match): Move ...
5276 * common/ptid.h (ptid_match): ... here.
5278 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5280 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5281 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5284 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5286 * obsd-tdep.c (obsd_auxv_parse): New function.
5287 (obsd_init_abi): Set auxv_parse.
5289 * gdbarch.sh (auxv_parse): New.
5290 * gdbarch.h: Regenerated.
5291 * gdbarch.c: Regenerated.
5292 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5294 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5296 * guile/scm-value.c (gdbscm_history_append_x): New function.
5297 (value_functions): Add it.
5299 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5301 * dwarf2read.c (attr_value_as_address): New function.
5302 (dwarf2_find_base_address, read_call_site_scope): Use
5303 attr_value_as_address in place of DW_ADDR.
5304 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5305 the low and high addresses. Slight rework of the handling
5306 of the high pc being a constant form, and limit it to
5307 DWARF verson 4 or higher.
5308 (dwarf2_record_block_ranges): Likewise.
5309 (read_partial_die): Likewise.
5310 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5312 2014-02-26 Tom Tromey <tromey@redhat.com>
5314 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5316 2014-02-26 Tom Tromey <tromey@redhat.com>
5318 * elfread.c (elf_read_minimal_symbols): Return early if
5319 minimal symbols have already been read. Add "ei" parameter.
5320 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5321 * minsyms.c (prim_record_minimal_symbol_full): Update.
5322 * objfiles.h (struct objstats) <n_minsyms>: Move...
5323 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5324 * symmisc.c (print_objfile_statistics): Update.
5326 2014-02-26 Tom Tromey <tromey@redhat.com>
5328 * elfread.c (elf_read_minimal_symbols): New function, from
5330 (elf_symfile_read): Call it.
5332 2014-02-26 Tom Tromey <tromey@redhat.com>
5334 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5335 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5336 (lookup_minimal_symbol_solib_trampoline)
5337 (lookup_minimal_symbol_by_pc_section_1)
5338 (lookup_minimal_symbol_and_objfile): Update.
5339 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5340 Don't allocate a minimal symbol if minsyms have already been read.
5341 (build_minimal_symbol_hash_tables): Update.
5342 (install_minimal_symbols): Do nothing if minsyms already read.
5343 Use the per-BFD obstack.
5344 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5345 * objfiles.c (allocate_objfile): Call
5346 terminate_minimal_symbol_table later.
5347 (have_minimal_symbols): Update.
5348 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5349 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5350 Move from struct objfile.
5351 <minsyms_read>: New field.
5352 (struct objfile) <msymbols, minimal_symbol_count,
5353 msymbol_hash, msymbol_demangled_hash>: Move.
5354 (ALL_OBJFILE_MSYMBOLS): Update.
5355 * symfile.c (read_symbols): Set minsyms_read.
5356 (reread_symbols): Update.
5357 * symmisc.c (dump_objfile, dump_msymbols): Update.
5359 2014-02-26 Tom Tromey <tromey@redhat.com>
5361 * minsyms.c (msymbols_sort): Remove.
5362 * minsyms.h (msymbols_sort): Remove.
5363 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5364 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5365 * elfread.c (elf_symtab_read): Don't add section offsets.
5366 * xcoffread.c (record_minimal_symbol): Don't add section offset
5367 to minimal symbol address.
5368 * somread.c (text_offset, data_offset): Remove.
5369 (som_symtab_read): Don't add section offsets to minimal symbol
5371 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5372 Don't add section offsets to minimal symbols.
5373 * coffread.c (coff_symtab_read): Don't add section offsets
5374 to minimal symbol addresses.
5375 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5376 to minimal symbol addresses.
5377 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5378 section offset to minimal symbol addresses.
5379 * mdebugread.c (parse_partial_symbols): Don't add section
5380 offset to minimal symbol addresses.
5381 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5382 offset to minimal symbol addresses.
5384 2014-02-26 Tom Tromey <tromey@redhat.com>
5386 * ada-lang.c (ada_main_name): Update.
5387 (ada_add_standard_exceptions): Update.
5388 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5389 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5390 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5391 * auxv.c (ld_so_xfer_auxv): Update.
5392 * avr-tdep.c (avr_scan_prologue): Update.
5393 * ax-gdb.c (gen_var_ref): Update.
5394 * blockframe.c (get_pc_function_start)
5395 (find_pc_partial_function_gnu_ifunc): Update.
5396 * breakpoint.c (create_overlay_event_breakpoint)
5397 (create_longjmp_master_breakpoint)
5398 (create_std_terminate_master_breakpoint)
5399 (create_exception_master_breakpoint): Update.
5400 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5401 * c-valprint.c (c_val_print): Update.
5402 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5403 * common/agent.c (agent_look_up_symbols): Update.
5404 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5405 * dwarf2loc.c (call_site_to_target_addr): Update.
5406 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5407 * elfread.c (elf_gnu_ifunc_record_cache)
5408 (elf_gnu_ifunc_resolve_by_got): Update.
5409 * findvar.c (default_read_var_value): Update.
5410 * frame.c (inside_main_func): Update.
5411 * frv-tdep.c (frv_frame_this_id): Update.
5412 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5413 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5415 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5416 (hppa_hpux_find_dummy_bpaddr): Update.
5417 * hppa-tdep.c (hppa_symbol_address): Update.
5418 * infcmd.c (until_next_command): Update.
5419 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5421 * linespec.c (minsym_found, add_minsym): Update.
5422 * linux-nat.c (get_signo): Update.
5423 * linux-thread-db.c (inferior_has_bug): Update.
5424 * m32c-tdep.c (m32c_return_value)
5425 (m32c_m16c_address_to_pointer): Update.
5426 * m32r-tdep.c (m32r_frame_this_id): Update.
5427 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5428 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5429 * maint.c (maintenance_translate_address): Update.
5430 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5431 (frob_address): New function.
5432 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5433 frob_address. Rename parameter to "pc_in".
5434 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5436 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5438 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5439 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5440 * objc-lang.c (find_objc_msgsend): Update.
5441 * objfiles.c (objfile_relocate1): Update.
5442 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5443 * p-valprint.c (pascal_val_print): Update.
5444 * parse.c (write_exp_msymbol): Update.
5445 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5446 (ppc_elfv2_skip_entrypoint): Update.
5447 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5448 * printcmd.c (build_address_symbolic, msym_info)
5449 (address_info): Update.
5450 * proc-service.c (ps_pglobal_lookup): Update.
5451 * psymtab.c (find_pc_sect_psymtab_closer)
5452 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5453 Change msymbol parameter to bound_minimal_symbol.
5454 * ravenscar-thread.c (get_running_thread_id): Update.
5455 * remote.c (remote_check_symbols): Update.
5456 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5458 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5459 * solib-dsbt.c (lm_base): Update.
5460 * solib-frv.c (lm_base, main_got): Update.
5461 * solib-irix.c (locate_base): Update.
5462 * solib-som.c (som_solib_create_inferior_hook)
5463 (link_map_start): Update.
5464 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5465 * solib-svr4.c (elf_locate_base, enable_break): Update.
5466 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5467 (flush_ea_cache): Update.
5468 * stabsread.c (define_symbol, scan_file_globals): Update.
5469 * stack.c (find_frame_funname): Update.
5470 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5471 (debug_qf_find_pc_sect_symtab): Update.
5472 * symfile.c (simple_read_overlay_table)
5473 (simple_overlay_update): Update.
5474 * symfile.h (struct quick_symbol_functions)
5475 <find_pc_sect_symtab>: Change type of msymbol to
5476 bound_minimal_symbol.
5477 * symmisc.c (dump_msymbols): Update.
5478 * symtab.c (find_pc_sect_symtab_via_partial)
5479 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5480 (search_symbols, print_msymbol_info): Update.
5481 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5482 (MSYMBOL_VALUE_ADDRESS): Redefine.
5483 (BMSYMBOL_VALUE_ADDRESS): New macro.
5484 * tracepoint.c (scope_info): Update.
5485 * tui/tui-disasm.c (tui_find_disassembly_address)
5486 (tui_get_begin_asm_address): Update.
5487 * valops.c (find_function_in_inferior): Update.
5488 * value.c (value_static_field, value_fn_field): Update.
5490 2014-02-26 Tom Tromey <tromey@redhat.com>
5492 * ada-lang.c (ada_update_initial_language): Update.
5493 (ada_main_name, ada_has_this_exception_support): Update.
5494 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5495 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5496 * arm-tdep.c (arm_skip_stub): Update.
5497 * auxv.c (ld_so_xfer_auxv): Update.
5498 * avr-tdep.c (avr_scan_prologue): Update.
5499 * ax-gdb.c (gen_var_ref): Update.
5500 * breakpoint.c (struct breakpoint_objfile_data)
5501 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5502 type to bound_minimal_symbol.
5503 (create_overlay_event_breakpoint)
5504 (create_longjmp_master_breakpoint)
5505 (create_std_terminate_master_breakpoint)
5506 (create_exception_master_breakpoint): Update.
5507 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5508 * c-exp.y (classify_name): Update.
5509 * coffread.c (coff_symfile_read): Update.
5510 * common/agent.c (agent_look_up_symbols): Update.
5511 * d-lang.c (d_main_name): Update.
5512 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5513 * dec-thread.c (enable_dec_thread): Update.
5514 * dwarf2loc.c (call_site_to_target_addr): Update.
5515 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5516 * eval.c (evaluate_subexp_standard): Update.
5517 * findvar.c (struct minsym_lookup_data) <result>: Change type
5518 to bound_minimal_symbol.
5520 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5521 * frame.c (inside_main_func): Update.
5522 * frv-tdep.c (frv_frame_this_id): Update.
5523 * gcore.c (call_target_sbrk): Update.
5524 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5525 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5527 * go-lang.c (go_main_name): Update.
5528 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5529 (hppa_hpux_find_import_stub_for_addr): Update.
5530 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5531 Update. Change return type.
5532 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5534 * jit.c (jit_breakpoint_re_set_internal): Update.
5535 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5537 * linux-nat.c (get_signo): Update.
5538 * linux-thread-db.c (inferior_has_bug): Update
5539 * m32c-tdep.c (m32c_return_value)
5540 (m32c_m16c_address_to_pointer): Update.
5541 * m32r-tdep.c (m32r_frame_this_id): Update.
5542 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5543 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5544 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5545 lookup_minimal_symbol. Change return type.
5546 (lookup_minimal_symbol): Remove.
5547 (lookup_bound_minimal_symbol): Update.
5548 (lookup_minimal_symbol_text): Change return type.
5549 (lookup_minimal_symbol_solib_trampoline): Change return type.
5550 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5551 (lookup_minimal_symbol_solib_trampoline): Change return type.
5552 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5553 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5554 (value_nsstring, find_imps): Update.
5555 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5556 * p-lang.c (pascal_main_name): Update.
5557 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5558 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5559 * proc-service.c (ps_pglobal_lookup): Update.
5560 * ravenscar-thread.c (get_running_thread_msymbol): Change
5562 (has_ravenscar_runtime, get_running_thread_id): Update.
5563 * remote.c (remote_check_symbols): Update.
5564 * sol-thread.c (ps_pglobal_lookup): Update.
5565 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5566 * solib-dsbt.c (lm_base): Update.
5567 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5569 * solib-irix.c (locate_base): Update.
5570 * solib-som.c (som_solib_create_inferior_hook)
5571 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5573 * solib-spu.c (spu_enable_break): Update.
5574 * solib-svr4.c (elf_locate_base, enable_break): Update.
5575 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5576 (flush_ea_cache): Update.
5577 * stabsread.c (define_symbol): Update.
5578 * symfile.c (simple_read_overlay_table): Update.
5579 * symtab.c (find_pc_sect_line): Update.
5580 * tracepoint.c (scope_info): Update.
5581 * tui-disasm.c (tui_get_begin_asm_address): Update.
5582 * value.c (value_static_field): Update.
5584 2014-02-26 Tom Tromey <tromey@redhat.com>
5586 * minsyms.c (prim_record_minimal_symbol_full): Use
5587 SET_MSYMBOL_VALUE_ADDRESS.
5588 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5589 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5590 SET_MSYMBOL_VALUE_ADDRESS.
5591 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5592 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5594 2014-02-26 Tom Tromey <tromey@redhat.com>
5596 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5597 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5598 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5599 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5600 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5601 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5602 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5603 * ada-lang.c (ada_main_name): Update.
5604 (ada_lookup_simple_minsym): Update.
5605 (ada_make_symbol_completion_list): Update.
5606 (ada_add_standard_exceptions): Update.
5607 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5608 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5609 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5610 * arm-tdep.c (skip_prologue_function): Update.
5611 (arm_skip_stack_protector, arm_skip_stub): Update.
5612 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5613 (arm_wince_skip_main_prologue): Update.
5614 * auxv.c (ld_so_xfer_auxv): Update.
5615 * avr-tdep.c (avr_scan_prologue): Update.
5616 * ax-gdb.c (gen_var_ref): Update.
5617 * block.c (call_site_for_pc): Update.
5618 * blockframe.c (get_pc_function_start): Update.
5619 (find_pc_partial_function_gnu_ifunc): Update.
5620 * breakpoint.c (create_overlay_event_breakpoint): Update.
5621 (create_longjmp_master_breakpoint): Update.
5622 (create_std_terminate_master_breakpoint): Update.
5623 (create_exception_master_breakpoint): Update.
5624 (resolve_sal_pc): Update.
5625 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5626 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5628 * c-valprint.c (c_val_print): Update.
5629 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5630 * coffread.c (coff_symfile_read): Update.
5631 * common/agent.c (agent_look_up_symbols): Update.
5632 * dbxread.c (find_stab_function_addr): Update.
5633 (end_psymtab): Update.
5634 * dwarf2loc.c (call_site_to_target_addr): Update.
5635 (func_verify_no_selftailcall): Update.
5636 (tailcall_dump): Update.
5637 (call_site_find_chain_1): Update.
5638 (dwarf_expr_reg_to_entry_parameter): Update.
5639 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5640 (elf_gnu_ifunc_resolve_by_got): Update.
5641 * f-valprint.c (info_common_command): Update.
5642 * findvar.c (read_var_value): Update.
5643 * frame.c (get_prev_frame_1): Update.
5644 (inside_main_func): Update.
5645 * frv-tdep.c (frv_skip_main_prologue): Update.
5646 (frv_frame_this_id): Update.
5647 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5648 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5649 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5650 (gnuv3_skip_trampoline): Update.
5651 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5652 (hppa64_hpux_in_solib_call_trampoline): Update.
5653 (hppa_hpux_skip_trampoline_code): Update.
5654 (hppa64_hpux_search_dummy_call_sequence): Update.
5655 (hppa_hpux_find_import_stub_for_addr): Update.
5656 (hppa_hpux_find_dummy_bpaddr): Update.
5657 * hppa-tdep.c (hppa_symbol_address)
5658 (hppa_lookup_stub_minimal_symbol): Update.
5659 * i386-tdep.c (i386_skip_main_prologue): Update.
5660 (i386_pe_skip_trampoline_code): Update.
5661 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5662 * infcall.c (get_function_name): Update.
5663 * infcmd.c (until_next_command): Update.
5664 * jit.c (jit_breakpoint_re_set_internal): Update.
5665 (jit_inferior_init): Update.
5666 * linespec.c (minsym_found): Update.
5667 (add_minsym): Update.
5668 * linux-fork.c (info_checkpoints_command): Update.
5669 * linux-nat.c (get_signo): Update.
5670 * linux-thread-db.c (inferior_has_bug): Update.
5671 * m32c-tdep.c (m32c_return_value): Update.
5672 (m32c_m16c_address_to_pointer): Update.
5673 (m32c_m16c_pointer_to_address): Update.
5674 * m32r-tdep.c (m32r_frame_this_id): Update.
5675 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5676 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5677 * maint.c (maintenance_translate_address): Update.
5678 * minsyms.c (add_minsym_to_hash_table): Update.
5679 (add_minsym_to_demangled_hash_table): Update.
5680 (msymbol_objfile): Update.
5681 (lookup_minimal_symbol): Update.
5682 (iterate_over_minimal_symbols): Update.
5683 (lookup_minimal_symbol_text): Update.
5684 (lookup_minimal_symbol_by_pc_name): Update.
5685 (lookup_minimal_symbol_solib_trampoline): Update.
5686 (lookup_minimal_symbol_by_pc_section_1): Update.
5687 (lookup_minimal_symbol_and_objfile): Update.
5688 (prim_record_minimal_symbol_full): Update.
5689 (compare_minimal_symbols): Update.
5690 (compact_minimal_symbols): Update.
5691 (build_minimal_symbol_hash_tables): Update.
5692 (install_minimal_symbols): Update.
5693 (terminate_minimal_symbol_table): Update.
5694 (find_solib_trampoline_target): Update.
5695 (minimal_symbol_upper_bound): Update.
5696 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5697 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5698 (mips_skip_pic_trampoline_code): Update.
5699 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5700 * objc-lang.c (selectors_info): Update.
5701 (classes_info): Update.
5702 (find_methods): Update.
5703 (find_imps): Update.
5704 (find_objc_msgsend): Update.
5705 * objfiles.c (objfile_relocate1): Update.
5706 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5707 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5708 * p-valprint.c (pascal_val_print): Update.
5709 * parse.c (write_exp_msymbol): Update.
5710 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5711 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5712 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5713 * printcmd.c (build_address_symbolic): Update.
5715 (address_info): Update.
5716 * proc-service.c (ps_pglobal_lookup): Update.
5717 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5718 (find_pc_sect_psymtab): Update.
5719 * python/py-framefilter.c (py_print_frame): Update.
5720 * ravenscar-thread.c (get_running_thread_id): Update.
5721 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5723 * remote.c (remote_check_symbols): Update.
5724 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5725 (rs6000_skip_trampoline_code): Update.
5726 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5727 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5728 * solib-dsbt.c (lm_base): Update.
5729 * solib-frv.c (lm_base): Update.
5731 * solib-irix.c (locate_base): Update.
5732 * solib-som.c (som_solib_create_inferior_hook): Update.
5733 (som_solib_desire_dynamic_linker_symbols): Update.
5734 (link_map_start): Update.
5735 * solib-spu.c (spu_enable_break): Update.
5736 (ocl_enable_break): Update.
5737 * solib-svr4.c (elf_locate_base): Update.
5738 (enable_break): Update.
5739 * spu-tdep.c (spu_get_overlay_table): Update.
5740 (spu_catch_start): Update.
5741 (flush_ea_cache): Update.
5742 * stabsread.c (define_symbol): Update.
5743 (scan_file_globals): Update.
5744 * stack.c (find_frame_funname): Update.
5745 (frame_info): Update.
5746 * symfile.c (simple_read_overlay_table): Update.
5747 (simple_overlay_update): Update.
5748 * symmisc.c (dump_msymbols): Update.
5749 * symtab.c (fixup_section): Update.
5750 (find_pc_sect_line): Update.
5751 (skip_prologue_sal): Update.
5752 (search_symbols): Update.
5753 (print_msymbol_info): Update.
5754 (rbreak_command): Update.
5755 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5756 (completion_list_objc_symbol): Update.
5757 (default_make_symbol_completion_list_break_on): Update.
5758 * tracepoint.c (scope_info): Update.
5759 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5760 (tui_get_begin_asm_address): Update.
5761 * valops.c (find_function_in_inferior): Update.
5762 * value.c (value_static_field): Update.
5763 (value_fn_field): Update.
5765 2014-02-26 Tom Tromey <tromey@redhat.com>
5767 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5768 bound minimal symbols. Move code that knows about minsym
5770 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5772 * minsyms.h (minimal_symbol_upper_bound): Declare.
5773 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5774 minimal_symbol_upper_bound.
5776 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5778 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5779 Use the type's name if its basic type does not have a tag.
5781 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5783 * dwarf2read.c (read_subrange_type): Add comment.
5785 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5787 * dwarf2read.c (update_enumeration_type_from_children): New
5788 function, mostly extracted from process_structure_scope.
5789 (read_enumeration_type): Call update_enumeration_type_from_children.
5790 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5791 and flag_flag_enum fields.
5793 2014-02-26 Pedro Alves <palves@redhat.com>
5795 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5796 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5797 to_xfer_partial method.
5799 2014-02-26 Pedro Alves <palves@redhat.com>
5801 * target.c (complete_target_initialization): Don't install
5802 default_xfer_partial as to_xfer_partial hook.
5804 (update_current_target): Don't INHERIT nor de_fault
5805 deprecated_xfer_memory. Delete de_fault macro.
5806 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5807 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5808 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5811 2014-02-26 Pedro Alves <palves@redhat.com>
5813 * go32-nat.c (my_write_child): New function.
5814 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5815 (go32_xfer_partial): New function.
5816 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5817 Instead install a to_xfer_partial hook.
5819 2014-02-26 Pedro Alves <palves@redhat.com>
5821 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5822 to_xfer_partial helper. Rewrite.
5823 (procfs_xfer_partial): New function.
5824 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5825 Install a to_xfer_partial hook.
5827 2014-02-26 Pedro Alves <palves@redhat.com>
5829 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5830 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5831 (m32r_xfer_partial): New function.
5832 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5833 Install a to_xfer_partial hook.
5835 2014-02-26 Pedro Alves <palves@redhat.com>
5837 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5839 (mips_xfer_partial): New function.
5840 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5841 hook. Install a to_xfer_partial hook.
5843 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5845 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5846 * gdbtypes.c (create_array_type_with_stride): New function,
5847 renaming create_array_type, but with an added parameter
5848 called "bit_stride".
5849 (create_array_type): Re-implement using
5850 create_array_type_with_stride.
5851 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5852 and DW_AT_bit_stride attributes.
5854 2014-02-26 Pedro Alves <palves@redhat.com>
5856 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5857 task-specific breakpoints.
5859 2014-02-25 Pedro Alves <palves@redhat.com>
5861 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5862 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5864 2014-02-25 Stan Shebs <stan@codesourcery.com>
5866 * defs.h: Annotate comments for Doxygen.
5868 2014-02-25 Tom Tromey <tromey@redhat.com>
5870 * target.h (target_ignore): Don't declare.
5871 * target.c (target_ignore): Remove.
5873 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5876 * auto-load.c (auto_load_objfile_script_1): Change filename to
5879 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5881 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5882 documentation. Adjust prototype to match the target_ops
5883 to_xfer_partial method. Adjust implementation accordingly.
5885 2014-02-25 Hui Zhu <hui@codesourcery.com>
5887 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5890 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5892 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5893 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5894 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5895 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5896 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5897 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5898 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5899 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5901 (rl78_register_type): Use a data pointer type for SP and
5902 new pseudo registers mentioned above. Use a 16 bit integer
5903 type for all other register pairs.
5904 (rl78_register_name, rl78_g10_register_name): Update for
5905 new pseudo registers.
5906 (rl78_pseudo_register_read): Likewise.
5907 (rl78_pseudo_register_write): Likewise.
5908 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5909 to the newly added pseudo registers.
5911 2014-02-24 Doug Evans <dje@google.com>
5913 * value.c (record_latest_value): Fix comment.
5914 * printcmd.c (print_command_1): Remove code to handle -1 return from
5915 record_latest_value.
5917 2014-02-24 Pedro Alves <palves@redhat.com>
5919 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5920 deprecated_xfer_memory hook.
5921 (procfs_xfer_partial): Call procfs_xfer_memory instead
5922 of the deprecated_xfer_memory target hook.
5923 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5926 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5928 * windows-nat.c (windows_xfer_shared_libraries): Return
5929 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5930 requested object is TARGET_OBJECT_LIBRARIES.
5932 2014-02-24 Yao Qi <yao@codesourcery.com>
5934 * target.h (enum target_xfer_status)
5935 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5936 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5938 * corefile.c (memory_error_message): User updated.
5939 * exec.c (section_table_read_available_memory): Likewise.
5940 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5941 * target.c (target_xfer_status_to_string): Likewise.
5942 (raw_memory_xfer_partial): Likewise.
5943 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5944 * valops.c (read_value_memory): Likewise.
5945 * exec.h: Update comments.
5947 2014-02-24 Yao Qi <yao@codesourcery.com>
5949 * target.c (target_xfer_status_to_string): Rename argument err
5951 * target.h (target_xfer_status_to_string): Update declaration.
5952 Replace target_xfer_error_to_string with
5953 target_xfer_status_to_string in comment.
5955 2014-02-24 Yao Qi <yao@codesourcery.com>
5957 * mips-linux-nat.c (super_close): Update its type.
5958 (mips_linux_close): Pass 'self' to super_close.
5960 2014-02-24 Yao Qi <yao@codesourcery.com>
5962 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5963 * corefile.c (read_memory): Adjusted.
5964 * target.c (target_write_with_progress): Adjusted.
5966 2014-02-23 Yao Qi <yao@codesourcery.com>
5970 2013-10-25 Yao Qi <yao@codesourcery.com>
5972 * remote.c (remote_traceframe_info): Return early if
5973 traceframe is not selected.
5975 2013-07-19 Yao Qi <yao@codesourcery.com>
5977 * target.c (update_current_target): Change the default action
5978 of 'to_traceframe_info' from tcomplain to return_zero.
5979 * target.h (struct target_ops) <to_traceframe_info>: Add more
5982 2014-02-23 Yao Qi <yao@codesourcery.com>
5984 * valops.c (read_value_memory): Rewrite it. Call
5985 target_xfer_partial in a loop.
5986 * exec.h (section_table_available_memory): Remove declaration.
5987 Move comments to ...
5988 * exec.c (section_table_available_memory): ... here. Make it
5991 2014-02-23 Yao Qi <yao@codesourcery.com>
5993 * exec.c (section_table_read_available_memory): New function.
5994 * exec.h (section_table_read_available_memory): Declare.
5995 * ctf.c (ctf_xfer_partial): Call
5996 section_table_read_available_memory.
5997 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5999 2014-02-23 Yao Qi <yao@codesourcery.com>
6001 * ctf.c (ctf_xfer_partial): Move code to ...
6002 * exec.c (exec_read_partial_read_only): ... it. New function.
6003 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6004 * tracefile.c: Include "exec.h".
6005 * exec.h (exec_read_partial_read_only): Declare.
6007 2014-02-23 Yao Qi <yao@codesourcery.com>
6009 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6010 (tfile_has_memory): Remove.
6011 (init_tfile_ops): Don't set fields to_has_all_memory and
6012 to_has_memory of tfile_ops.
6013 * tracefile.c (tracefile_has_all_memory): New function.
6014 (tracefile_has_memory): New function.
6015 (init_tracefile_ops): Initialize fields to_has_all_memory and
6016 to_has_memory of 'ops'.
6018 2014-02-23 Yao Qi <yao@codesourcery.com>
6020 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6021 (ctf_thread_alive, ctf_get_trace_status): Remove.
6022 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6024 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6025 (tfile_has_stack, tfile_has_registers): Remove.
6026 (tfile_thread_alive): Remove.
6027 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6029 * tracefile.c (tracefile_has_stack): New function.
6030 (tracefile_has_registers): New function.
6031 (tracefile_thread_alive): New function.
6032 (tracefile_get_trace_status): New function.
6033 (init_tracefile_ops): New function.
6034 * tracefile.h (init_tracefile_ops): Declare.
6036 2014-02-23 Yao Qi <yao@codesourcery.com>
6038 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6039 (O_LARGEFILE): Likewise.
6040 (tfile_ops): Likewise.
6041 (TRACE_HEADER_SIZE): Likewise.
6042 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6043 (cur_data_size): Likewise.
6044 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6045 (tfile_close, tfile_files_info): Likewise.
6046 (tfile_get_trace_status): Likewise.
6047 (tfile_get_tracepoint_status): Likewise.
6048 (tfile_get_traceframe_address): Likewise.
6049 (tfile_trace_find, match_blocktype): Likewise.
6050 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6051 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6052 (tfile_get_trace_state_variable_value): Likewise.
6053 (tfile_has_all_memory, tfile_has_memory): Likewise.
6054 (tfile_has_stack, tfile_has_registers): Likewise.
6055 (tfile_thread_alive, build_traceframe_info): Likewise.
6056 (tfile_traceframe_info, init_tfile_ops): Likewise.
6057 (_initialize_tracepoint): Don't call init_tfile_ops
6058 and add_target_with_completer.
6059 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6060 exec.h, completer.h and filenames.h.
6061 (_initialize_tracefile_tfile): New function.
6063 2014-02-23 Yao Qi <yao@codesourcery.com>
6065 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6067 (HFILES_NO_SRCDIR): Add tracefile.h.
6068 * ctf.c: Include "tracefile.h".
6069 * tracefile.h: New file.
6070 * tracefile.c: New file
6071 * tracefile-tfile.c: New file.
6072 * tracepoint.c: Include "tracefile.h".
6073 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6074 (stop_reason_names): Add const.
6075 (trace_file_writer_xfree): Move it to tracefile.c.
6076 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6077 (trace_save_ctf): Likewise.
6078 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6079 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6080 (tfile_write_header, tfile_write_regblock_type): Likewise.
6081 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6082 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6083 (tfile_write_raw_data, tfile_end): Likewise.
6084 (tfile_trace_file_writer_new): Likewise.
6085 (free_uploaded_tp): Make it extern.
6086 (free_uploaded_tsv): Make it extern.
6087 (_initialize_tracepoint): Move code to register command 'tsave'
6089 * tracepoint.h (stop_reason_names): Declare.
6090 (struct trace_frame_write_ops): Move it to tracefile.h.
6091 (struct trace_file_write_ops): Likewise.
6092 (struct trace_file_writer): Likewise.
6093 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6095 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6098 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6100 (get_cores_used_by_process): New parameter num_cores, use it.
6101 (linux_xfer_osdata_processes): Pass num_cores to it.
6102 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6105 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6107 * target.c (memory_xfer_partial): Fix length arg in call to
6108 breakpoint_xfer_memory.
6110 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6113 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6114 number comes after the + or - signs. Adjust length of register
6115 name to be extracted.
6117 2014-02-20 Tom Tromey <tromey@redhat.com>
6119 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6120 (ada_varobj_ops): Mark "extern".
6122 2014-02-20 Tom Tromey <tromey@redhat.com>
6124 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6126 2014-02-20 Doug Evans <xdje42@gmail.com>
6128 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6129 All callers updated.
6130 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6131 All callers updated.
6132 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6133 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6135 2014-02-20 lin zuojian <manjian2006@gmail.com>
6136 Joel Brobecker <brobecker@adacore.com>
6137 Doug Evans <xdje42@gmail.com>
6140 * dwarf2read.c (struct die_info): New member in_process.
6141 (reset_die_in_process): New function.
6142 (process_die): Set it at the start, reset when returning.
6143 (inherit_abstract_dies): Only call process_die if origin_child_die
6144 not already being processed.
6146 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6148 * windows-nat.c (handle_unload_dll): Add function documentation.
6149 (do_initial_windows_stuff): Add comment explaining why we wait
6150 until after inferior initialization has finished before
6151 processing all DLLs.
6153 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6155 * windows-nat.c (get_module_name): Delete.
6156 (windows_get_exec_module_filename): New function, mostly
6157 inspired from get_module_name.
6158 (windows_pid_to_exec_file): Replace call to get_module_name
6159 by call to windows_get_exec_module_filename.
6161 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6163 * windows-nat.c (handle_load_dll): Rewrite this function's
6164 introductory comment. Remove code using get_module_name
6165 to get the DLL's name.
6167 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6169 * windows-nat.c (get_windows_debug_event): Ignore
6170 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6171 if windows_initialization_done == 0.
6172 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6173 Adjust implementation to always load all DLLs.
6174 (do_initial_windows_stuff): Replace call to
6175 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6177 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6179 * windows-nat.c (_initialize_windows_nat): Deprecate the
6180 "dll-symbols" command. Turn the "add-shared-symbol-files"
6181 and "assf" aliases into commands, and deprecate them as well.
6182 * NEWS: Add entry explaining that "dll-symbols" and its two
6183 aliases are now deprecated.
6185 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6187 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6188 new-line in debug string. Remove trailing spaces.
6190 2014-02-19 Stan Shebs <stan@codesourcery.com>
6192 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6194 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6196 * NEWS: Add entry for the new feature
6197 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6200 2014-02-19 Stan Shebs <stan@codesourcery.com>
6202 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6204 2014-02-19 Pedro Alves <palves@redhat.com>
6206 * common/ptid.h (struct ptid): Mention that process_stratum
6207 targets should prefer ptid.lwp.
6209 2014-02-19 Pedro Alves <palves@redhat.com>
6211 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6212 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6213 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6214 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6215 store remote thread ids rather than ptid.tid.
6216 (_initialize_remote): Adjust.
6218 2014-02-19 Tom Tromey <tromey@redhat.com>
6220 * target.c (target_get_unwinder): Rewrite.
6221 (target_get_tailcall_unwinder): Rewrite.
6222 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6223 (record_btrace_to_get_tailcall_unwinder): New function.
6224 (init_record_btrace_ops): Update.
6225 * target.h (struct target_ops) <to_get_unwinder,
6226 to_get_tailcall_unwinder>: Now function pointers. Use
6227 TARGET_DEFAULT_RETURN.
6229 2014-02-19 Tom Tromey <tromey@redhat.com>
6231 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6233 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6235 2014-02-19 Tom Tromey <tromey@redhat.com>
6237 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6239 * target-delegates.c: Rebuild.
6240 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6241 TARGET_DEFAULT_FUNC.
6242 * target.c (default_target_decr_pc_after_break): Rename from
6243 forward_target_decr_pc_after_break. Simplify.
6244 (target_decr_pc_after_break): Rely on delegation.
6246 2014-02-19 Tom Tromey <tromey@redhat.com>
6248 * target.c (update_current_target): Do not INHERIT to_doc or
6249 to_magic. Do not de_fault to_open or to_close.
6251 2014-02-19 Tom Tromey <tromey@redhat.com>
6253 * gcore.h (objfile_find_memory_regions): Declare.
6254 * gcore.c (objfile_find_memory_regions): No longer static. Add
6256 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6257 * exec.c: Include gcore.h.
6258 (exec_set_find_memory_regions): Remove.
6259 (exec_find_memory_regions): Remove.
6260 (exec_do_find_memory_regions): Remove.
6261 (init_exec_ops): Update.
6262 * defs.h (exec_set_find_memory_regions): Remove.
6264 2014-02-19 Tom Tromey <tromey@redhat.com>
6266 * target-delegates.c: Rebuild.
6267 * target.h (struct target_ops) <to_extra_thread_info,
6268 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6269 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6270 not 0, in TARGET_DEFAULT_RETURN.
6272 2014-02-19 Tom Tromey <tromey@redhat.com>
6274 * target.c (complete_target_initialization): Remove casts. Use
6275 return_zero_has_execution.
6276 (return_zero): Add "ignore" argument.
6277 (return_zero_has_execution): New function.
6278 (init_dummy_target): Remove casts. Use
6279 return_zero_has_execution.
6281 2014-02-19 Tom Tromey <tromey@redhat.com>
6283 * target.c (update_current_target): Update comments. Do not
6286 2014-02-19 Tom Tromey <tromey@redhat.com>
6288 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6290 * corelow.c (core_read_description): Delegate when needed.
6291 * remote.c (remote_read_description): Delegate when needed.
6292 * target-delegates.c: Rebuild.
6293 * target.c (target_read_description): Rewrite.
6294 * target.h (struct target_ops) <to_read_description>: Update
6295 comment. Use TARGET_DEFAULT_RETURN.
6297 2014-02-19 Tom Tromey <tromey@redhat.com>
6299 * target-delegates.c: Rebuild.
6300 * target.c (update_current_target): Don't inherit or default
6302 (find_default_run_target): Check against delegate_can_run.
6303 * target.h (struct target_ops) <to_can_run>: Use
6304 TARGET_DEFAULT_RETURN.
6306 2014-02-19 Tom Tromey <tromey@redhat.com>
6308 * target-delegates.c: Rebuild.
6309 * target.c (target_disconnect): Unconditionally delegate.
6310 * target.h (struct target_ops) <to_disconnect>: Use
6311 TARGET_DEFAULT_NORETURN.
6313 2014-02-19 Tom Tromey <tromey@redhat.com>
6315 * record.c (record_stop): Unconditionally delegate.
6316 * target-delegates.c: Rebuild.
6317 * target.c (target_stop_recording): Unconditionally delegate.
6318 * target.h (struct target_ops) <to_stop_recording>: Use
6319 TARGET_DEFAULT_IGNORE.
6321 2014-02-19 Tom Tromey <tromey@redhat.com>
6323 * target-delegates.c: Rebuild.
6324 * target.c (target_enable_btrace): Unconditionally delegate.
6325 * target.h (struct target_ops) <to_enable_btrace>: Use
6326 TARGET_DEFAULT_NORETURN.
6328 2014-02-19 Tom Tromey <tromey@redhat.com>
6330 * target-delegates.c: Rebuild.
6331 * target.c (target_read_btrace): Unconditionally delegate.
6332 * target.h (struct target_ops) <to_read_btrace>: Use
6333 TARGET_DEFAULT_NORETURN.
6335 2014-02-19 Tom Tromey <tromey@redhat.com>
6337 * target-delegates.c: Rebuild.
6338 * target.c (target_teardown_btrace): Unconditionally delegate.
6339 * target.h (struct target_ops) <to_teardown_btrace>: Use
6340 TARGET_DEFAULT_NORETURN.
6342 2014-02-19 Tom Tromey <tromey@redhat.com>
6344 * target-delegates.c: Rebuild.
6345 * target.c (target_disable_btrace): Unconditionally delegate.
6346 * target.h (struct target_ops) <to_disable_btrace>: Use
6347 TARGET_DEFAULT_NORETURN.
6349 2014-02-19 Tom Tromey <tromey@redhat.com>
6351 * target-delegates.c: Rebuild.
6352 * target.c (default_search_memory): New function.
6353 (simple_search_memory): Update comment.
6354 (target_search_memory): Unconditionally delegate.
6355 * target.h (struct target_ops) <to_search_memory>: Use
6356 TARGET_DEFAULT_FUNC.
6358 2014-02-19 Tom Tromey <tromey@redhat.com>
6360 * auxv.c (default_auxv_parse): No longer static.
6361 (target_auxv_parse): Unconditionally delegate.
6362 * auxv.h (default_auxv_parse): Declare.
6363 * target-delegates.c: Rebuild.
6364 * target.c: Include auxv.h.
6365 * target.h (struct target_ops) <to_auxv_parse>: Use
6366 TARGET_DEFAULT_FUNC.
6368 2014-02-19 Tom Tromey <tromey@redhat.com>
6370 * target-delegates.c: Rebuild.
6371 * target.c (target_memory_map): Unconditionally delegate.
6372 * target.h (struct target_ops) <to_memory_map>: Use
6373 TARGET_DEFAULT_RETURN.
6375 2014-02-19 Tom Tromey <tromey@redhat.com>
6377 * target-delegates.c: Rebuild.
6378 * target.c (target_thread_alive): Unconditionally delegate.
6379 * target.h (struct target_ops) <to_thread_alive>: Use
6380 TARGET_DEFAULT_RETURN.
6382 2014-02-19 Tom Tromey <tromey@redhat.com>
6384 * target-delegates.c: Rebuild.
6385 * target.c (target_save_record): Unconditionally delegate.
6386 * target.h (struct target_ops) <to_save_record>: Use
6387 TARGET_DEFAULT_NORETURN.
6389 2014-02-19 Tom Tromey <tromey@redhat.com>
6391 * target-delegates.c: Rebuild.
6392 * target.c (target_delete_record): Unconditionally delegate.
6393 * target.h (struct target_ops) <to_delete_record>: Use
6394 TARGET_DEFAULT_NORETURN.
6396 2014-02-19 Tom Tromey <tromey@redhat.com>
6398 * target-delegates.c: Rebuild.
6399 * target.c (target_record_is_replaying): Unconditionally
6401 * target.h (struct target_ops) <to_record_is_replaying>: Use
6402 TARGET_DEFAULT_RETURN.
6404 2014-02-19 Tom Tromey <tromey@redhat.com>
6406 * target-delegates.c: Rebuild.
6407 * target.c (target_goto_record_begin): Unconditionally delegate.
6408 * target.h (struct target_ops) <to_goto_record_begin>: Use
6409 TARGET_DEFAULT_NORETURN.
6411 2014-02-19 Tom Tromey <tromey@redhat.com>
6413 * target-delegates.c: Rebuild.
6414 * target.c (target_goto_record_end): Unconditionally delegate.
6415 * target.h (struct target_ops) <to_goto_record_end>: Use
6416 TARGET_DEFAULT_NORETURN.
6418 2014-02-19 Tom Tromey <tromey@redhat.com>
6420 * target-delegates.c: Rebuild.
6421 * target.c (target_goto_record): Unconditionally delegate.
6422 * target.h (struct target_ops) <to_goto_record>: Use
6423 TARGET_DEFAULT_NORETURN.
6425 2014-02-19 Tom Tromey <tromey@redhat.com>
6427 * target-delegates.c: Rebuild.
6428 * target.c (target_insn_history): Unconditionally delegate.
6429 * target.h (struct target_ops) <to_insn_history>: Use
6430 TARGET_DEFAULT_NORETURN.
6432 2014-02-19 Tom Tromey <tromey@redhat.com>
6434 * target-delegates.c: Rebuild.
6435 * target.c (target_insn_history_from): Unconditionally delegate.
6436 * target.h (struct target_ops) <to_insn_history_from>: Use
6437 TARGET_DEFAULT_NORETURN.
6439 2014-02-19 Tom Tromey <tromey@redhat.com>
6441 * target-delegates.c: Rebuild.
6442 * target.c (target_insn_history_range): Unconditionally delegate.
6443 * target.h (struct target_ops) <to_insn_history_range>: Use
6444 TARGET_DEFAULT_NORETURN.
6446 2014-02-19 Tom Tromey <tromey@redhat.com>
6448 * target-delegates.c: Rebuild.
6449 * target.c (target_call_history): Unconditionally delegate.
6450 * target.h (struct target_ops) <to_call_history>: Use
6451 TARGET_DEFAULT_NORETURN.
6453 2014-02-19 Tom Tromey <tromey@redhat.com>
6455 * target-delegates.c: Rebuild.
6456 * target.c (target_call_history_from): Unconditionally delegate.
6457 * target.h (struct target_ops) <to_call_history_from>: Use
6458 TARGET_DEFAULT_NORETURN.
6460 2014-02-19 Tom Tromey <tromey@redhat.com>
6462 * target-delegates.c: Rebuild.
6463 * target.c (target_call_history_range): Unconditionally delegate.
6464 * target.h (struct target_ops) <to_call_history_range>: Use
6465 TARGET_DEFAULT_NORETURN.
6467 2014-02-19 Tom Tromey <tromey@redhat.com>
6469 * target-delegates.c: Rebuild.
6470 * target.c (target_verify_memory): Unconditionally delegate.
6471 * target.h (struct target_ops) <to_verify_memory>: Use
6472 TARGET_DEFAULT_NORETURN.
6474 2014-02-19 Tom Tromey <tromey@redhat.com>
6476 * target-delegates.c: Rebuild.
6477 * target.c (target_core_of_thread): Unconditionally delegate.
6478 * target.h (struct target_ops) <to_core_of_thread>: Use
6479 TARGET_DEFAULT_RETURN.
6481 2014-02-19 Tom Tromey <tromey@redhat.com>
6483 * target-delegates.c: Rebuild.
6484 * target.c (target_flash_done): Unconditionally delegate.
6485 * target.h (struct target_ops) <to_flash_done>: Use
6486 TARGET_DEFAULT_NORETURN.
6488 2014-02-19 Tom Tromey <tromey@redhat.com>
6490 * target-delegates.c: Rebuild.
6491 * target.c (target_flash_erase): Unconditionally delegate.
6492 * target.h (struct target_ops) <to_flash_erase>: Use
6493 TARGET_DEFAULT_NORETURN.
6495 2014-02-19 Tom Tromey <tromey@redhat.com>
6497 * target-delegates.c: Rebuild.
6498 * target.c (target_get_section_table): Unconditionally delegate.
6499 * target.h (struct target_ops) <to_get_section_table>: Use
6500 TARGET_DEFAULT_RETURN.
6502 2014-02-19 Tom Tromey <tromey@redhat.com>
6504 * target-delegates.c: Rebuild.
6505 * target.c (target_pid_to_str): Unconditionally delegate.
6506 (init_dummy_target): Don't initialize to_pid_to_str.
6507 (default_pid_to_str): Rename from dummy_pid_to_str.
6508 * target.h (struct target_ops) <to_pid_to_str>: Use
6509 TARGET_DEFAULT_FUNC.
6511 2014-02-19 Tom Tromey <tromey@redhat.com>
6513 * target-delegates.c: Rebuild.
6514 * target.c (target_find_new_threads): Unconditionally delegate.
6515 * target.h (struct target_ops) <to_find_new_threads>: Use
6516 TARGET_DEFAULT_RETURN.
6518 2014-02-19 Tom Tromey <tromey@redhat.com>
6520 * target-delegates.c: Rebuild.
6521 * target.c (target_program_signals): Unconditionally delegate.
6522 * target.h (struct target_ops) <to_program_signals>: Use
6523 TARGET_DEFAULT_IGNORE.
6525 2014-02-19 Tom Tromey <tromey@redhat.com>
6527 * target-delegates.c: Rebuild.
6528 * target.c (target_pass_signals): Unconditionally delegate.
6529 * target.h (struct target_ops) <to_pass_signals>: Use
6530 TARGET_DEFAULT_IGNORE.
6532 2014-02-19 Tom Tromey <tromey@redhat.com>
6534 * target-delegates.c: Rebuild.
6535 * target.c (default_mourn_inferior): New function.
6536 (target_mourn_inferior): Unconditionally delegate.
6537 * target.h (struct target_ops) <to_mourn_inferior>: Use
6538 TARGET_DEFAULT_FUNC.
6540 2014-02-19 Tom Tromey <tromey@redhat.com>
6542 * target-delegates.c: Rebuild.
6543 * target.c (default_follow_fork): New function.
6544 (target_follow_fork): Unconditionally delegate.
6545 * target.h (struct target_ops) <to_follow_fork>: Use
6546 TARGET_DEFAULT_FUNC.
6548 2014-02-19 Tom Tromey <tromey@redhat.com>
6550 * target-delegates.c: Rebuild.
6551 * target.c (target_kill): Unconditionally delegate.
6552 * target.h (struct target_ops) <to_kill>: Use
6553 TARGET_DEFAULT_NORETURN.
6555 2014-02-19 Tom Tromey <tromey@redhat.com>
6557 * target-delegates.c: Rebuild.
6558 * target.c (target_masked_watch_num_registers): Unconditionally
6560 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6561 Use TARGET_DEFAULT_RETURN.
6563 2014-02-19 Tom Tromey <tromey@redhat.com>
6565 * target-delegates.c: Rebuild.
6566 * target.c (target_remove_mask_watchpoint): Unconditionally
6568 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6569 TARGET_DEFAULT_RETURN.
6571 2014-02-19 Tom Tromey <tromey@redhat.com>
6573 * target-delegates.c: Rebuild.
6574 * target.c (target_insert_mask_watchpoint): Unconditionally
6576 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6577 TARGET_DEFAULT_RETURN.
6579 2014-02-19 Tom Tromey <tromey@redhat.com>
6581 * target-delegates.c: Rebuild.
6582 * target.c (target_ranged_break_num_registers): Unconditionally
6584 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6585 Use TARGET_DEFAULT_RETURN.
6587 2014-02-19 Tom Tromey <tromey@redhat.com>
6589 * target-delegates.c: Rebuild.
6590 * target.c (target_fetch_registers): Unconditionally delegate.
6591 * target.h (struct target_ops) <to_fetch_registers>: Use
6592 TARGET_DEFAULT_NORETURN.
6594 2014-02-19 Tom Tromey <tromey@redhat.com>
6596 * target-delegates.c: Rebuild.
6597 * target.c (update_current_target): Don't inherit or default
6599 * target.h (struct target_ops) <to_stop>: Use
6600 TARGET_DEFAULT_IGNORE.
6602 2014-02-19 Tom Tromey <tromey@redhat.com>
6604 * target-delegates.c: Rebuild.
6605 * target.c (update_current_target): Don't inherit or default
6606 to_can_run_breakpoint_commands.
6607 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6608 Use TARGET_DEFAULT_RETURN.
6610 2014-02-19 Tom Tromey <tromey@redhat.com>
6612 * target-delegates.c: Rebuild.
6613 * target.c (update_current_target): Don't inherit or default
6614 to_supports_evaluation_of_breakpoint_conditions.
6615 * target.h (struct target_ops)
6616 <to_supports_evaluation_of_breakpoint_conditions>: Use
6617 TARGET_DEFAULT_RETURN.
6619 2014-02-19 Tom Tromey <tromey@redhat.com>
6621 * target-delegates.c: Rebuild.
6622 * target.c (update_current_target): Don't inherit or default
6623 to_augmented_libraries_svr4_read.
6624 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6625 Use TARGET_DEFAULT_RETURN.
6627 2014-02-19 Tom Tromey <tromey@redhat.com>
6629 * target-delegates.c: Rebuild.
6630 * target.c (update_current_target): Don't inherit or default
6632 * target.h (struct target_ops) <to_can_use_agent>: Use
6633 TARGET_DEFAULT_RETURN.
6635 2014-02-19 Tom Tromey <tromey@redhat.com>
6637 * target-delegates.c: Rebuild.
6638 * target.c (update_current_target): Don't inherit or default
6640 * target.h (struct target_ops) <to_use_agent>: Use
6641 TARGET_DEFAULT_NORETURN.
6643 2014-02-19 Tom Tromey <tromey@redhat.com>
6645 * target-delegates.c: Rebuild.
6646 * target.c (update_current_target): Don't inherit or default
6648 (return_null): Remove.
6649 * target.h (struct target_ops) <to_traceframe_info>: Use
6650 TARGET_DEFAULT_RETURN.
6652 2014-02-19 Tom Tromey <tromey@redhat.com>
6654 * target-delegates.c: Rebuild.
6655 * target.c (update_current_target): Don't inherit or default
6656 to_static_tracepoint_markers_by_strid.
6657 * target.h (struct target_ops)
6658 <to_static_tracepoint_markers_by_strid>: Use
6659 TARGET_DEFAULT_NORETURN.
6661 2014-02-19 Tom Tromey <tromey@redhat.com>
6663 * target-delegates.c: Rebuild.
6664 * target.c (update_current_target): Don't inherit or default
6665 to_static_tracepoint_marker_at.
6666 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6667 Use TARGET_DEFAULT_RETURN.
6669 2014-02-19 Tom Tromey <tromey@redhat.com>
6671 * target-delegates.c: Rebuild.
6672 * target.c (update_current_target): Don't inherit or default
6674 * target.h (struct target_ops) <to_set_permissions>: Use
6675 TARGET_DEFAULT_IGNORE.
6677 2014-02-19 Tom Tromey <tromey@redhat.com>
6679 * target-delegates.c: Rebuild.
6680 * target.c (update_current_target): Don't inherit or default
6682 * target.h (struct target_ops) <to_get_tib_address>: Use
6683 TARGET_DEFAULT_NORETURN.
6685 2014-02-19 Tom Tromey <tromey@redhat.com>
6687 * target-delegates.c: Rebuild.
6688 * target.c (update_current_target): Don't inherit or default
6690 * target.h (struct target_ops) <to_set_trace_notes>: Use
6691 TARGET_DEFAULT_RETURN.
6693 2014-02-19 Tom Tromey <tromey@redhat.com>
6695 * target-delegates.c: Rebuild.
6696 * target.c (update_current_target): Don't initialize
6697 to_set_trace_buffer_size.
6698 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6699 TARGET_DEFAULT_IGNORE.
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
6705 to_set_circular_trace_buffer.
6706 * target.h (struct target_ops) <to_set_circular_trace_buffer>: 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
6713 to_set_disconnected_tracing.
6714 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6715 TARGET_DEFAULT_IGNORE.
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
6721 to_get_min_fast_tracepoint_insn_len.
6722 (return_minus_one): Remove.
6723 * target.h (struct target_ops)
6724 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6726 2014-02-19 Tom Tromey <tromey@redhat.com>
6728 * target-delegates.c: Rebuild.
6729 * target.c (update_current_target): Don't inherit or default
6730 to_get_raw_trace_data.
6731 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6732 TARGET_DEFAULT_NORETURN.
6734 2014-02-19 Tom Tromey <tromey@redhat.com>
6736 * target-delegates.c: Rebuild.
6737 * target.c (update_current_target): Don't inherit or default
6738 to_upload_trace_state_variables.
6739 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6740 Use TARGET_DEFAULT_RETURN.
6742 2014-02-19 Tom Tromey <tromey@redhat.com>
6744 * target-delegates.c: Rebuild.
6745 * target.c (update_current_target): Don't inherit or default
6746 to_upload_tracepoints.
6747 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6748 TARGET_DEFAULT_RETURN.
6750 2014-02-19 Tom Tromey <tromey@redhat.com>
6752 * target-delegates.c: Rebuild.
6753 * target.c (update_current_target): Don't inherit or default
6755 * target.h (struct target_ops) <to_save_trace_data>: Use
6756 TARGET_DEFAULT_NORETURN.
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_trace_state_variable_value.
6763 * target.h (struct target_ops)
6764 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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
6771 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6773 2014-02-19 Tom Tromey <tromey@redhat.com>
6775 * target-delegates.c: Rebuild.
6776 * target.c (update_current_target): Don't inherit or default
6778 * target.h (struct target_ops) <to_trace_stop>: Use
6779 TARGET_DEFAULT_NORETURN.
6781 2014-02-19 Tom Tromey <tromey@redhat.com>
6783 * target-delegates.c: Rebuild.
6784 * target.c (update_current_target): Don't inherit or default
6785 to_get_tracepoint_status.
6786 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6787 TARGET_DEFAULT_NORETURN.
6789 2014-02-19 Tom Tromey <tromey@redhat.com>
6791 * target-delegates.c: Rebuild.
6792 * target.c (update_current_target): Don't inherit or default
6793 to_get_trace_status.
6794 * target.h (struct target_ops) <to_get_trace_status>: Use
6795 TARGET_DEFAULT_RETURN.
6797 2014-02-19 Tom Tromey <tromey@redhat.com>
6799 * target-delegates.c: Rebuild.
6800 * target.c (update_current_target): Don't inherit or default
6802 * target.h (struct target_ops) <to_trace_start>: Use
6803 TARGET_DEFAULT_NORETURN.
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
6809 to_trace_set_readonly_regions.
6810 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6811 Use 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_disable_tracepoint.
6818 * target.h (struct target_ops) <to_disable_tracepoint>: 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_enable_tracepoint.
6826 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6827 TARGET_DEFAULT_NORETURN.
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
6833 to_download_trace_state_variable.
6834 * target.h (struct target_ops) <to_download_trace_state_variable>:
6835 Use 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_can_download_tracepoint.
6842 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6843 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
6850 * target.h (struct target_ops) <to_download_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
6858 * target.h (struct target_ops) <to_trace_init>: Use
6859 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
6866 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6867 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
6874 * target.h (struct target_ops)
6875 <to_supports_enable_disable_tracepoint>: Use
6876 TARGET_DEFAULT_RETURN.
6878 2014-02-19 Tom Tromey <tromey@redhat.com>
6880 * target-delegates.c: Rebuild.
6881 * target.c (update_current_target): Don't inherit or default
6882 to_supports_multi_process.
6883 * target.h (struct target_ops) <to_supports_multi_process>: Use
6884 TARGET_DEFAULT_RETURN.
6886 2014-02-19 Tom Tromey <tromey@redhat.com>
6888 * target-delegates.c: Rebuild.
6889 * target.c (update_current_target): Don't inherit or default
6890 to_get_ada_task_ptid.
6891 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6892 TARGET_DEFAULT_FUNC.
6894 2014-02-19 Tom Tromey <tromey@redhat.com>
6896 * target-delegates.c: Rebuild.
6897 * target.c (update_current_target): Don't inherit or default
6898 to_thread_architecture.
6899 * target.h (struct target_ops) <to_thread_architecture>: Use
6900 TARGET_DEFAULT_FUNC.
6902 2014-02-19 Tom Tromey <tromey@redhat.com>
6904 * target-delegates.c: Rebuild.
6905 * target.c (update_current_target): Don't inherit or default
6906 to_execution_direction.
6907 * target.h (struct target_ops) <to_execution_direction>: Use
6908 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
6915 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6916 TARGET_DEFAULT_RETURN.
6917 (target_can_execute_reverse): Unconditionally delegate.
6919 2014-02-19 Tom Tromey <tromey@redhat.com>
6921 * target-delegates.c: Rebuild.
6922 * target.c (update_current_target): Don't inherit or default
6924 (dummy_goto_bookmark): Remove.
6925 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6926 * target.h (struct target_ops) <to_goto_bookmark>: Use
6927 TARGET_DEFAULT_NORETURN.
6929 2014-02-19 Tom Tromey <tromey@redhat.com>
6931 * target-delegates.c: Rebuild.
6932 * target.c (update_current_target): Don't inherit or default
6934 (dummy_get_bookmark): Remove.
6935 (init_dummy_target): Don't inherit or default to_get_bookmark.
6936 * target.h (struct target_ops) <to_get_bookmark>: Use
6937 TARGET_DEFAULT_NORETURN
6939 2014-02-19 Tom Tromey <tromey@redhat.com>
6941 * target-delegates.c: Rebuild.
6942 * target.c (update_current_target): Don't inherit or default
6943 to_make_corefile_notes.
6944 (init_dummy_target): Don't initialize to_make_corefile_notes.
6945 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6946 TARGET_DEFAULT_FUNC.
6948 2014-02-19 Tom Tromey <tromey@redhat.com>
6950 * target-delegates.c: Rebuild.
6951 * target.c (update_current_target): Don't inherit or default
6952 to_find_memory_regions.
6953 (init_dummy_target): Don't initialize to_find_memory_regions.
6954 * target.h (struct target_ops) <to_find_memory_regions>: Use
6955 TARGET_DEFAULT_FUNC.
6957 2014-02-19 Tom Tromey <tromey@redhat.com>
6959 * target-delegates.c: Rebuild.
6960 * target.c (update_current_target): Don't inherit or default
6962 * target.h (struct target_ops) <to_log_command>: Use
6963 TARGET_DEFAULT_IGNORE.
6964 (target_log_command): Unconditionally delegate.
6966 2014-02-19 Tom Tromey <tromey@redhat.com>
6968 * target-delegates.c: Rebuild.
6969 * target.c (update_current_target): Don't inherit or default
6970 to_pid_to_exec_file.
6971 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6972 TARGET_DEFAULT_RETURN.
6974 2014-02-19 Tom Tromey <tromey@redhat.com>
6976 * target-delegates.c: Rebuild.
6977 * target.c (update_current_target): Don't inherit or default
6979 (target_thread_name): Unconditionally delegate.
6980 * target.h (struct target_ops) <to_thread_name>: Use
6981 TARGET_DEFAULT_RETURN.
6983 2014-02-19 Tom Tromey <tromey@redhat.com>
6985 * target-delegates.c: Rebuild.
6986 * target.c (update_current_target): Don't inherit or default
6987 to_extra_thread_info.
6988 * target.h (struct target_ops) <to_extra_thread_info>: Use
6989 TARGET_DEFAULT_RETURN.
6991 2014-02-19 Tom Tromey <tromey@redhat.com>
6993 * target-delegates.c: Rebuild.
6994 * target.c (update_current_target): Don't inherit or default
6996 * target.h (struct target_ops) <to_has_exited>: Use
6997 TARGET_DEFAULT_RETURN..
6999 2014-02-19 Tom Tromey <tromey@redhat.com>
7001 * target-delegates.c: Rebuild.
7002 * target.c (update_current_target): Don't inherit or default
7003 to_set_syscall_catchpoint.
7004 (return_one): Remove.
7005 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7006 TARGET_DEFAULT_RETURN.
7008 2014-02-19 Tom Tromey <tromey@redhat.com>
7010 * target-delegates.c: Rebuild.
7011 * target.c (update_current_target): Don't inherit or default
7012 to_insert_exec_catchpoint.
7013 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7014 TARGET_DEFAULT_RETURN.
7016 2014-01-08 Tom Tromey <tromey@redhat.com>
7018 * target-delegates.c: Rebuild.
7019 * target.c (update_current_target): Don't inherit or default
7020 to_insert_exec_catchpoint.
7021 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7022 TARGET_DEFAULT_RETURN.
7024 2014-02-19 Tom Tromey <tromey@redhat.com>
7026 * target-delegates.c: Rebuild.
7027 * target.c (update_current_target): Don't inherit or default
7028 to_remove_vfork_catchpoint.
7029 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7030 TARGET_DEFAULT_RETURN.
7032 2014-02-19 Tom Tromey <tromey@redhat.com>
7034 * target-delegates.c: Rebuild.
7035 * target.c (update_current_target): Don't inherit or default
7036 to_insert_vfork_catchpoint.
7037 * target.h (struct target_ops) <to_insert_vfork_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_remove_fork_catchpoint.
7045 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7046 TARGET_DEFAULT_RETURN.
7048 2014-02-19 Tom Tromey <tromey@redhat.com>
7050 * target-delegates.c: Rebuild.
7051 * target.c (update_current_target): Don't inherit or default
7052 to_insert_fork_catchpoint.
7053 * target.h (struct target_ops) <to_insert_fork_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_post_startup_inferior.
7061 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7062 TARGET_DEFAULT_IGNORE.
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
7069 * target.h (struct target_ops) <to_load>: Use
7070 TARGET_DEFAULT_NORETURN.
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
7077 * target.h (struct target_ops) <to_terminal_info>: Use
7078 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
7085 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7086 TARGET_DEFAULT_IGNORE.
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
7093 * target.h (struct target_ops) <to_terminal_ours>: 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
7100 to_terminal_ours_for_output.
7101 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7102 TARGET_DEFAULT_IGNORE.
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
7108 to_terminal_inferior.
7109 * target.h (struct target_ops) <to_terminal_inferior>: Use
7110 TARGET_DEFAULT_IGNORE.
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
7117 * target.h (struct target_ops) <to_terminal_init>: 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
7124 to_can_accel_watchpoint_condition.
7125 * target.h (struct target_ops)
7126 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
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_region_ok_for_hw_watchpoint.
7133 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7134 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
7141 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7142 Use TARGET_DEFAULT_FUNC.
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
7148 to_remove_watchpoint.
7149 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7150 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
7157 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7158 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_remove_hw_breakpoint.
7165 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7166 TARGET_DEFAULT_RETURN.
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_insert_hw_breakpoint.
7173 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7174 TARGET_DEFAULT_RETURN.
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_can_use_hw_breakpoint.
7181 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7182 TARGET_DEFAULT_RETURN.
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
7189 * target.h (struct target_ops) <to_files_info>: Use
7190 TARGET_DEFAULT_IGNORE.
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
7197 * target.h (struct target_ops) <to_store>: Use
7198 TARGET_DEFAULT_NORETURN.
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
7205 * target.h (struct target_ops) <to_post_attach>: Use
7206 TARGET_DEFAULT_IGNORE.
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
7213 (default_rcmd): New function.
7214 (do_monitor_command): Unconditionally delegate.
7215 * target.h (struct target_ops) <to_rmcd>: Use
7216 TARGET_DEFAULT_FUNC.
7218 2014-02-19 Tom Tromey <tromey@redhat.com>
7220 * target-delegates.c: Rebuild.
7221 * target.c (init_dummy_target): Don't initialize to_attach.
7222 (target_attach): Unconditionally delegate.
7223 * target.h (struct target_ops) <to_attach>: Use
7224 TARGET_DEFAULT_FUNC.
7226 2014-02-19 Tom Tromey <tromey@redhat.com>
7228 * target-delegates.c: Rebuild.
7229 * target.c (target_detach): Unconditionally delegate.
7230 (init_dummy_target): Don't initialize to_detach.
7231 * target.h (struct target_ops) <to_detach>: Use
7232 TARGET_DEFAULT_IGNORE.
7234 2014-02-19 Tom Tromey <tromey@redhat.com>
7236 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7238 (target_augmented_libraries_svr4_read): Add argument.
7239 * target.c (update_current_target): Update.
7240 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7243 2014-02-19 Tom Tromey <tromey@redhat.com>
7245 * target.h (struct target_ops) <to_call_history_range>: Add
7247 * target.c (target_call_history_range): Add argument.
7248 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7250 (record_btrace_call_history_from): Update.
7252 2014-02-19 Tom Tromey <tromey@redhat.com>
7254 * target.h (struct target_ops) <to_call_history_from>: Add
7256 * target.c (target_call_history_from): Add argument.
7257 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7260 2014-02-19 Tom Tromey <tromey@redhat.com>
7262 * target.h (struct target_ops) <to_call_history>: Add argument.
7263 * target.c (target_call_history): Add argument.
7264 * record-btrace.c (record_btrace_call_history): Add 'self'
7267 2014-02-19 Tom Tromey <tromey@redhat.com>
7269 * target.h (struct target_ops) <to_insn_history_range>: Add
7271 * target.c (target_insn_history_range): Add argument.
7272 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7274 (record_btrace_insn_history_from): Update.
7276 2014-02-19 Tom Tromey <tromey@redhat.com>
7278 * target.h (struct target_ops) <to_insn_history_from>: Add
7280 * target.c (target_insn_history_from): Add argument.
7281 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7284 2014-02-19 Tom Tromey <tromey@redhat.com>
7286 * target.h (struct target_ops) <to_insn_history>: Add argument.
7287 * target.c (target_insn_history): Add argument.
7288 * record-btrace.c (record_btrace_insn_history): Add 'self'
7291 2014-02-19 Tom Tromey <tromey@redhat.com>
7293 * target.h (struct target_ops) <to_goto_record>: Add argument.
7294 * target.c (target_goto_record): Add argument.
7295 * record-full.c (record_full_goto): Add 'self' argument.
7296 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7298 2014-02-19 Tom Tromey <tromey@redhat.com>
7300 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7301 * target.c (target_goto_record_end): Add argument.
7302 * record-full.c (record_full_goto_end): Add 'self' argument.
7303 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7305 2014-02-19 Tom Tromey <tromey@redhat.com>
7307 * target.h (struct target_ops) <to_goto_record_begin>: Add
7309 * target.c (target_goto_record_begin): Add argument.
7310 * record-full.c (record_full_goto_begin): Add 'self' argument.
7311 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7314 2014-02-19 Tom Tromey <tromey@redhat.com>
7316 * target.h (struct target_ops) <to_record_is_replaying>: Add
7318 * target.c (target_record_is_replaying): Add argument.
7319 * record-full.c (record_full_is_replaying): Add 'self' argument.
7320 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7322 (record_btrace_xfer_partial, record_btrace_store_registers)
7323 (record_btrace_prepare_to_store, record_btrace_resume)
7324 (record_btrace_wait, record_btrace_decr_pc_after_break)
7325 (record_btrace_find_new_threads, record_btrace_thread_alive):
7328 2014-02-19 Tom Tromey <tromey@redhat.com>
7330 * target.h (struct target_ops) <to_delete_record>: Add argument.
7331 * target.c (target_delete_record): Add argument.
7332 * record-full.c (record_full_delete): Add 'self' argument.
7334 2014-02-19 Tom Tromey <tromey@redhat.com>
7336 * target.h (struct target_ops) <to_save_record>: Add argument.
7337 * target.c (target_save_record): Add argument.
7338 * record-full.c (record_full_save): Add 'self' argument.
7339 (record_full_save): Add 'self' argument.
7341 2014-02-19 Tom Tromey <tromey@redhat.com>
7343 * target.h (struct target_ops) <to_info_record>: Add argument.
7344 * target.c (target_info_record): Add argument.
7345 * record.c (info_record_command): Add argument.
7346 * record-full.c (record_full_info): Add 'self' argument.
7347 * record-btrace.c (record_btrace_info): Add 'self' argument.
7349 2014-02-19 Tom Tromey <tromey@redhat.com>
7351 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7352 * target.c (target_stop_recording): Add argument.
7353 * record.c (record_stop): Add argument.
7354 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7357 2014-02-19 Tom Tromey <tromey@redhat.com>
7359 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7360 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7361 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7363 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7364 (_initialize_amd64_linux_nat): Use it.
7365 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7366 (_initialize_i386_linux_nat): Use it.
7368 2014-02-19 Tom Tromey <tromey@redhat.com>
7370 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7371 * target.c (target_teardown_btrace): Add argument.
7372 * remote.c (remote_teardown_btrace): Add 'self' argument.
7373 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7375 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7378 2014-02-19 Tom Tromey <tromey@redhat.com>
7380 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7381 * target.c (target_disable_btrace): Add argument.
7382 * remote.c (remote_disable_btrace): Add 'self' argument.
7383 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7385 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7388 2014-02-19 Tom Tromey <tromey@redhat.com>
7390 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7391 * target.c (target_enable_btrace): Add argument.
7392 * remote.c (remote_enable_btrace): Add 'self' argument.
7393 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7395 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7398 2014-02-19 Tom Tromey <tromey@redhat.com>
7400 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7401 (target_can_use_agent): Add argument.
7402 * target.c (update_current_target): Update.
7403 * remote.c (remote_can_use_agent): Add 'self' argument.
7404 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7406 2014-02-19 Tom Tromey <tromey@redhat.com>
7408 * target.h (struct target_ops) <to_use_agent>: Add argument.
7409 (target_use_agent): Add argument.
7410 * target.c (update_current_target): Update.
7411 * remote.c (remote_use_agent): Add 'self' argument.
7412 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7414 2014-02-19 Tom Tromey <tromey@redhat.com>
7416 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7417 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7418 (target_traceframe_info): Add argument.
7419 * target.c (update_current_target): Update.
7420 * remote.c (remote_traceframe_info): Add 'self' argument.
7421 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7423 2014-02-19 Tom Tromey <tromey@redhat.com>
7425 * target.h (target_static_tracepoint_markers_by_strid): Add
7427 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7429 * target.c (update_current_target): Update.
7430 * remote.c (struct target_ops)
7431 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7432 * linux-nat.c (struct target_ops)
7433 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7435 2014-02-19 Tom Tromey <tromey@redhat.com>
7437 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7439 (target_static_tracepoint_marker_at): Add argument.
7440 * target.c (update_current_target): Update.
7441 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7444 2014-02-19 Tom Tromey <tromey@redhat.com>
7446 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7447 (target_set_permissions): Add argument.
7448 * target.c (update_current_target): Update.
7449 * remote.c (remote_set_permissions): Add 'self' argument.
7450 (remote_start_remote): Update.
7452 2014-02-19 Tom Tromey <tromey@redhat.com>
7454 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7455 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7456 (target_get_tib_address): Add argument.
7457 * target.c (update_current_target): Update.
7458 * remote.c (remote_get_tib_address): Add 'self' argument.
7460 2014-02-19 Tom Tromey <tromey@redhat.com>
7462 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7463 (target_set_trace_notes): Add argument.
7464 * target.c (update_current_target): Update.
7465 * remote.c (remote_set_trace_notes): Add 'self' argument.
7467 2014-02-19 Tom Tromey <tromey@redhat.com>
7469 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7471 (target_set_trace_buffer_size): Add argument.
7472 * target.c (update_current_target): Update.
7473 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7475 2014-02-19 Tom Tromey <tromey@redhat.com>
7477 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7479 (target_set_circular_trace_buffer): Add argument.
7480 * target.c (update_current_target): Update.
7481 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7484 2014-02-19 Tom Tromey <tromey@redhat.com>
7486 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7488 (target_set_disconnected_tracing): Add argument.
7489 * target.c (update_current_target): Update.
7490 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7492 2014-02-19 Tom Tromey <tromey@redhat.com>
7494 * target.h (struct target_ops)
7495 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7496 (target_get_min_fast_tracepoint_insn_len): Add argument.
7497 * target.c (update_current_target): Update.
7498 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7501 2014-02-19 Tom Tromey <tromey@redhat.com>
7503 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7505 (target_get_raw_trace_data): Add argument.
7506 * target.c (update_current_target): Update.
7507 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7509 2014-02-19 Tom Tromey <tromey@redhat.com>
7511 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7513 (target_upload_trace_state_variables): Add argument.
7514 * target.c (update_current_target): Update.
7515 * remote.c (remote_upload_trace_state_variables): Add 'self'
7517 (remote_start_remote): Update.
7519 2014-02-19 Tom Tromey <tromey@redhat.com>
7521 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7523 (target_upload_tracepoints): Add argument.
7524 * target.c (update_current_target): Update.
7525 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7526 (remote_start_remote): Update.
7528 2014-02-19 Tom Tromey <tromey@redhat.com>
7530 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7531 (target_save_trace_data): Add argument.
7532 * target.c (update_current_target): Update.
7533 * remote.c (remote_save_trace_data): Add 'self' argument.
7535 2014-02-19 Tom Tromey <tromey@redhat.com>
7537 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7539 * target.h (struct target_ops)
7540 <to_get_trace_state_variable_value>: Add argument.
7541 (target_get_trace_state_variable_value): Add argument.
7542 * target.c (update_current_target): Update.
7543 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7545 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7547 2014-02-19 Tom Tromey <tromey@redhat.com>
7549 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7550 * target.h (struct target_ops) <to_trace_find>: Add argument.
7551 (target_trace_find): Add argument.
7552 * target.c (update_current_target): Update.
7553 * remote.c (remote_trace_find): Add 'self' argument.
7554 * ctf.c (ctf_trace_find): Add 'self' argument.
7556 2014-02-19 Tom Tromey <tromey@redhat.com>
7558 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7559 (target_trace_stop): Add argument.
7560 * target.c (update_current_target): Update.
7561 * remote.c (remote_trace_stop): Add 'self' argument.
7563 2014-02-19 Tom Tromey <tromey@redhat.com>
7565 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7566 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7568 (target_get_tracepoint_status): Add argument.
7569 * target.c (update_current_target): Update.
7570 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7572 2014-02-19 Tom Tromey <tromey@redhat.com>
7574 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7575 * target.h (struct target_ops) <to_get_trace_status>: Add
7577 (target_get_trace_status): Add argument.
7578 * target.c (update_current_target): Update.
7579 * remote.c (remote_get_trace_status): Add 'self' argument.
7580 (remote_start_remote, remote_can_download_tracepoint): Update.
7581 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7583 2014-02-19 Tom Tromey <tromey@redhat.com>
7585 * target.h (struct target_ops) <to_trace_start>: Add argument.
7586 (target_trace_start): Add argument.
7587 * target.c (update_current_target): Update.
7588 * remote.c (remote_trace_start): Add 'self' argument.
7590 2014-02-19 Tom Tromey <tromey@redhat.com>
7592 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7594 (target_trace_set_readonly_regions): Add argument.
7595 * target.c (update_current_target): Update.
7596 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7599 2014-02-19 Tom Tromey <tromey@redhat.com>
7601 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7603 (target_disable_tracepoint): Add argument.
7604 * target.c (update_current_target): Update.
7605 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7607 2014-02-19 Tom Tromey <tromey@redhat.com>
7609 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7611 (target_enable_tracepoint): Add argument.
7612 * target.c (update_current_target): Update.
7613 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7615 2014-02-19 Tom Tromey <tromey@redhat.com>
7617 * target.h (struct target_ops) <to_download_trace_state_variable>:
7619 (target_download_trace_state_variable): Add argument.
7620 * target.c (update_current_target): Update.
7621 * remote.c (remote_download_trace_state_variable): Add 'self'
7624 2014-02-19 Tom Tromey <tromey@redhat.com>
7626 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7628 (target_can_download_tracepoint): Add argument.
7629 * target.c (update_current_target): Update.
7630 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7632 2014-02-19 Tom Tromey <tromey@redhat.com>
7634 * target.h (struct target_ops) <to_download_tracepoint>: Add
7636 (target_download_tracepoint): Add argument.
7637 * target.c (update_current_target): Update.
7638 * remote.c (remote_download_tracepoint): Add 'self' argument.
7640 2014-02-19 Tom Tromey <tromey@redhat.com>
7642 * target.h (struct target_ops) <to_trace_init>: Add argument.
7643 (target_trace_init): Add argument.
7644 * target.c (update_current_target): Update.
7645 * remote.c (remote_trace_init): Add 'self' argument.
7647 2014-02-19 Tom Tromey <tromey@redhat.com>
7649 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7650 * target.c (target_fileio_readlink): Add argument.
7651 * remote.c (remote_hostio_readlink): Add 'self' argument.
7652 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7654 2014-02-19 Tom Tromey <tromey@redhat.com>
7656 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7657 * target.c (target_fileio_unlink): Add argument.
7658 * remote.c (remote_hostio_unlink): Add 'self' argument.
7659 (remote_file_delete): Update.
7660 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7662 2014-02-19 Tom Tromey <tromey@redhat.com>
7664 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7665 * target.c (target_fileio_close): Add argument.
7666 * remote.c (remote_hostio_close): Add 'self' argument.
7667 (remote_hostio_close_cleanup): Update.
7668 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7670 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7672 2014-02-19 Tom Tromey <tromey@redhat.com>
7674 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7675 * target.c (target_fileio_pread): Add argument.
7676 * remote.c (remote_hostio_pread): Add 'self' argument.
7677 (remote_bfd_iovec_pread, remote_file_get): Update.
7678 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7680 2014-02-19 Tom Tromey <tromey@redhat.com>
7682 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7683 * target.c (target_fileio_pwrite): Add argument.
7684 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7685 (remote_file_put): Update.
7686 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7688 2014-02-19 Tom Tromey <tromey@redhat.com>
7690 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7691 * target.c (target_fileio_open): Add argument.
7692 * remote.c (remote_hostio_open): Add 'self' argument.
7693 (remote_bfd_iovec_open): Add 'self' argument.
7694 (remote_file_put): Add 'self' argument.
7695 (remote_file_get): Add 'self' argument.
7696 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7698 2014-02-19 Tom Tromey <tromey@redhat.com>
7700 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7702 (target_can_run_breakpoint_commands): Add argument.
7703 * target.c (update_current_target): Update.
7704 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7706 (remote_insert_breakpoint): Add 'self' argument.
7707 (remote_insert_hw_breakpoint): Add 'self' argument.
7708 (remote_can_run_breakpoint_commands): Add 'self' argument.
7710 2014-02-19 Tom Tromey <tromey@redhat.com>
7712 * target.h (struct target_ops)
7713 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7714 (target_supports_evaluation_of_breakpoint_conditions): Add
7716 * target.c (update_current_target): Update.
7717 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7719 (remote_insert_breakpoint): Add 'self' argument.
7720 (remote_insert_hw_breakpoint): Add 'self' argument.
7721 (remote_supports_cond_breakpoints): Add 'self' argument.
7723 2014-02-19 Tom Tromey <tromey@redhat.com>
7725 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7727 (target_supports_string_tracing): Add argument.
7728 * target.c (update_current_target): Update.
7729 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7731 2014-02-19 Tom Tromey <tromey@redhat.com>
7733 * target.h (struct target_ops)
7734 <to_supports_disable_randomization>: Add argument.
7735 * target.c (find_default_supports_disable_randomization): Add
7737 (target_supports_disable_randomization): Add argument.
7738 (find_default_supports_disable_randomization): Add 'self'
7740 * remote.c (extended_remote_supports_disable_randomization): Add
7742 (remote_supports_disable_randomization): Add 'self' argument.
7743 (extended_remote_create_inferior): Update.
7744 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7747 2014-02-19 Tom Tromey <tromey@redhat.com>
7749 * target.h (struct target_ops)
7750 <to_supports_enable_disable_tracepoint>: Add argument.
7751 (target_supports_enable_disable_tracepoint): Add argument.
7752 * target.c (update_current_target): Update.
7753 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7756 2014-02-19 Tom Tromey <tromey@redhat.com>
7758 * target.h (struct target_ops) <to_supports_multi_process>: Add
7760 (target_supports_multi_process): Add argument.
7761 * target.c (update_current_target): Update.
7762 * remote.c (remote_supports_multi_process): Add 'self' argument.
7763 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7765 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7768 2014-02-19 Tom Tromey <tromey@redhat.com>
7770 * target.h (struct target_ops) <to_execution_direction>: Add
7772 (target_execution_direction): Add argument.
7773 * target.c (default_execution_direction): Add 'self' argument.
7774 * record-full.c (record_full_execution_direction): Add 'self'
7777 2014-02-19 Tom Tromey <tromey@redhat.com>
7779 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7781 (target_can_execute_reverse): Add argument.
7782 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7783 * record-full.c (record_full_can_execute_reverse): Add 'self'
7785 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7788 2014-02-19 Tom Tromey <tromey@redhat.com>
7790 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7791 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7793 (target_get_ada_task_ptid): Add argument.
7794 * target.c (update_current_target): Update.
7795 (default_get_ada_task_ptid): Add 'self' argument.
7796 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7797 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7798 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7800 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7802 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7804 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7806 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7807 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7810 2014-02-19 Tom Tromey <tromey@redhat.com>
7812 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7813 (target_goto_bookmark): Add argument.
7814 * target.c (dummy_goto_bookmark): Add 'self' argument.
7815 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7817 2014-02-19 Tom Tromey <tromey@redhat.com>
7819 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7820 (target_get_bookmark): Add argument.
7821 * target.c (dummy_get_bookmark): Add 'self' argument.
7822 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7824 2014-02-19 Tom Tromey <tromey@redhat.com>
7826 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7828 (target_make_corefile_notes): Add argument.
7829 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7830 * procfs.c (procfs_make_note_section): Add 'self' argument.
7831 (procfs_make_note_section): Add 'self' argument.
7832 (procfs_make_note_section): Add 'self' argument.
7833 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7835 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7836 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7837 * exec.c (exec_make_note_section): Add 'self' argument.
7838 (exec_make_note_section): Add 'self' argument.
7840 2014-02-19 Tom Tromey <tromey@redhat.com>
7842 * target.h (struct target_ops) <to_find_memory_regions>: Add
7844 (target_find_memory_regions): Add argument.
7845 * target.c (dummy_find_memory_regions): Add 'self' argument.
7846 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7847 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7848 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7849 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7850 * exec. (exec_do_find_memory_regions): New global.
7851 (exec_set_find_memory_regions): Rewrite.
7852 (exec_find_memory_regions): New function.
7853 (init_exec_ops): Use exec_find_memory_regions.
7855 2014-02-19 Tom Tromey <tromey@redhat.com>
7857 * target.h (struct target_ops) <to_supports_non_stop>: Add
7859 * target.c (find_default_supports_non_stop): Add argument.
7860 (target_supports_non_stop): Add argument.
7861 (find_default_supports_non_stop): Add 'self' argument.
7862 * remote.c (remote_supports_non_stop): Add 'self' argument.
7863 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7867 * target.h (struct target_ops) <to_log_command>: Add argument.
7868 (target_log_command): Add argument.
7869 * serial.h (serial_log_command): Add 'self' argument.
7870 * serial.c (serial_log_command): Add 'self' argument.
7872 2014-02-19 Tom Tromey <tromey@redhat.com>
7874 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7875 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7877 (target_pid_to_exec_file): Add argument.
7878 * target.c (debug_to_pid_to_exec_file): Add argument.
7879 (update_current_target): Update.
7880 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7881 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7882 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7883 (linux_handle_extended_wait): Update.
7884 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7885 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7886 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7887 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7889 2014-02-19 Tom Tromey <tromey@redhat.com>
7891 * target.h (struct target_ops) <to_rcmd>: Add argument.
7892 (target_rcmd): Add argument.
7893 * target.c (debug_to_rcmd): Add argument.
7894 (update_current_target, do_monitor_command): Update.
7895 * remote.c (remote_rcmd): Add 'self' argument.
7896 * monitor.c (monitor_rcmd): Add 'self' argument.
7898 2014-02-19 Tom Tromey <tromey@redhat.com>
7900 * windows-nat.c (windows_stop): Add 'self' argument.
7901 * target.h (struct target_ops) <to_stop>: Add argument.
7902 * target.c (target_stop): Add argument.
7903 (debug_to_stop): Add argument.
7904 (update_current_target): Update.
7905 * remote.c (remote_stop): Add 'self' argument.
7906 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7907 (gdbsim_cntrl_c): Update.
7908 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7909 * procfs.c (procfs_stop): Add 'self' argument.
7910 * nto-procfs.c (procfs_stop): Add 'self' argument.
7911 * monitor.c (monitor_stop): Add 'self' argument.
7912 (monitor_open): Update.
7913 * linux-nat.c (linux_nat_stop): Add argument.
7914 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7915 * gnu-nat.c (gnu_stop): Add 'self' argument.
7916 * darwin-nat.c (darwin_stop): Add 'self' argument.
7918 2014-02-19 Tom Tromey <tromey@redhat.com>
7920 * target.h (struct target_ops) <to_thread_name>: Add argument.
7921 * target.c (target_thread_name): Add argument.
7922 (update_current_target): Update.
7923 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7925 2014-02-19 Tom Tromey <tromey@redhat.com>
7927 * target.h (struct target_ops) <to_extra_thread_info>: Add
7929 (target_extra_thread_info): Add argument.
7930 * target.c (update_current_target): Update.
7931 * remote.c (remote_threads_extra_info): Add 'self' argument.
7932 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7934 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7935 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7936 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7938 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7940 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7942 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7945 2014-02-19 Tom Tromey <tromey@redhat.com>
7947 * target.h (struct target_ops) <to_program_signals>: Add argument.
7948 * target.c (target_program_signals): Add argument.
7949 * remote.c (remote_program_signals): Add 'self' argument.
7951 2014-02-19 Tom Tromey <tromey@redhat.com>
7953 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7954 * target.c (target_pass_signals): Add argument.
7955 * remote.c (remote_pass_signals): Add 'self' argument.
7956 (remote_start_remote): Update.
7957 * procfs.c (procfs_pass_signals): Add 'self' argument.
7958 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7959 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7960 (linux_nat_create_inferior, linux_nat_attach): Update.
7962 2014-02-19 Tom Tromey <tromey@redhat.com>
7964 * windows-nat.c (windows_can_run): Add 'self' argument.
7965 * target.h (struct target_ops) <to_can_run>: Add argument.
7966 (target_can_run): Add argument.
7967 * target.c (debug_to_can_run): Add argument.
7968 (update_current_target): Update.
7969 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7970 * inf-child.c (inf_child_can_run): Add 'self' argument.
7971 * go32-nat.c (go32_can_run): Add 'self' argument.
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7975 * target.h (struct target_ops) <to_has_exited>: Add argument.
7976 (target_has_exited): Add argument.
7977 * target.c (debug_to_has_exited): Add argument.
7978 (update_current_target): Update.
7980 2014-02-19 Tom Tromey <tromey@redhat.com>
7982 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7984 (target_set_syscall_catchpoint): Add argument.
7985 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7987 * target.c (update_current_target): Update.
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7991 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7993 (target_remove_exec_catchpoint): Add argument.
7994 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7995 (update_current_target): Update.
7996 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7999 2014-02-19 Tom Tromey <tromey@redhat.com>
8001 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8003 (target_insert_exec_catchpoint): Add argument.
8004 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8005 (update_current_target): Update.
8006 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8011 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8013 (target_remove_vfork_catchpoint): Add argument.
8014 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8015 (update_current_target): Update.
8016 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8019 2014-02-19 Tom Tromey <tromey@redhat.com>
8021 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8023 (target_insert_vfork_catchpoint): Add argument.
8024 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8025 (update_current_target): Update.
8026 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8029 2014-02-19 Tom Tromey <tromey@redhat.com>
8031 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8033 (target_remove_fork_catchpoint): Add argument.
8034 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8035 (update_current_target): Update.
8036 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8039 2014-02-19 Tom Tromey <tromey@redhat.com>
8041 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8043 (target_insert_fork_catchpoint): Add argument.
8044 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8045 (update_current_target): Update.
8046 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8049 2014-02-19 Tom Tromey <tromey@redhat.com>
8051 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8053 (target_post_startup_inferior): Add argument.
8054 * target.c (debug_to_post_startup_inferior): Add argument.
8055 (update_current_target): Update.
8056 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8058 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8060 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8062 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8064 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8066 (super_post_startup_inferior): Likewise.
8067 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8069 (super_post_startup_inferior): Likewise.
8070 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8071 Add 'self' argument.
8072 (super_post_startup_inferior): Likewise.
8074 2014-02-19 Tom Tromey <tromey@redhat.com>
8076 * target.h (struct target_ops) <to_load>: Add argument.
8077 * target.c (target_load): Add argument.
8078 (debug_to_load): Add argument.
8079 (update_current_target): Update.
8080 * remote.c (remote_load): Add 'self' argument.
8081 * remote-sim.c (gdbsim_load): Add 'self' argument.
8082 * remote-mips.c (mips_load): Add 'self' argument.
8083 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8084 * monitor.c (monitor_load): Add 'self' argument.
8085 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8087 2014-02-19 Tom Tromey <tromey@redhat.com>
8089 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8090 (target_terminal_info): Add argument.
8091 * target.c (debug_to_terminal_info): Add argument.
8092 (default_terminal_info): Likewise.
8093 * inflow.c (child_terminal_info): Add 'self' argument.
8094 * inferior.h (child_terminal_info): Add 'self' argument.
8095 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8097 2014-02-19 Tom Tromey <tromey@redhat.com>
8099 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8101 (target_terminal_save_ours): Add argument.
8102 * target.c (debug_to_terminal_save_ours): Add argument.
8103 (update_current_target): Update.
8104 * inflow.c (terminal_save_ours): Add 'self' argument.
8105 * inferior.h (terminal_save_ours): Add 'self' argument.
8107 2014-02-19 Tom Tromey <tromey@redhat.com>
8109 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8110 (target_terminal_ours): Add argument.
8111 * target.c (debug_to_terminal_ours): Add argument.
8112 (update_current_target): Update.
8113 * remote.c (remote_terminal_ours): Add 'self' argument.
8114 (remote_close): Update.
8115 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8116 * inflow.c (terminal_ours): Add 'self' argument.
8117 * inferior.h (terminal_ours): Add 'self' argument.
8118 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8120 2014-02-19 Pedro Alves <palves@redhat.com>
8121 Tom Tromey <tromey@redhat.com>
8123 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8125 (target_terminal_ours_for_output): Add argument.
8126 * target.c (debug_to_terminal_ours_for_output): Add argument.
8127 (update_current_target): Update.
8128 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8129 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8130 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8132 2014-02-19 Tom Tromey <tromey@redhat.com>
8134 * target.h (struct target_ops) <to_terminal_inferior>: Add
8136 * target.c (target_terminal_inferior): Add argument.
8137 (update_current_target): Update.
8138 * remote.c (remote_terminal_inferior): Add 'self' argument.
8139 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8140 * inflow.c (terminal_inferior): Add 'self' argument.
8141 * inferior.h (terminal_inferior): Add 'self' argument.
8142 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8143 (go32_terminal_inferior): Add 'self' argument.
8145 2014-02-19 Tom Tromey <tromey@redhat.com>
8147 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8148 (target_terminal_init): Add argument.
8149 * target.c (debug_to_terminal_init): Add argument.
8150 (update_current_target): Update.
8151 * inflow.c (terminal_init_inferior): Add 'self' argument.
8152 * inferior.h (terminal_init_inferior): Add 'self' argument.
8153 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8154 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8158 * target.h (struct target_ops)
8159 <to_can_accel_watchpoint_condition>: Add argument.
8160 (target_can_accel_watchpoint_condition): Add argument.
8161 * target.c (debug_to_can_accel_watchpoint_condition): Add
8163 (update_current_target): Update.
8164 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8167 2014-02-19 Tom Tromey <tromey@redhat.com>
8169 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8171 (target_region_ok_for_hw_watchpoint): Add argument.
8172 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8173 (default_region_ok_for_hw_watchpoint): Add argument.
8174 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8175 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8177 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8179 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8181 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8183 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8185 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8187 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8188 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8190 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8191 Add 'self' argument.
8193 2014-02-19 Tom Tromey <tromey@redhat.com>
8195 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8197 (target_insert_watchpoint): Add argument.
8198 * target.c (debug_to_insert_watchpoint): Add argument.
8199 (update_current_target): Update.
8200 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8201 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8202 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8203 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8204 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8205 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8207 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8208 (procfs_insert_hw_watchpoint): Add 'self' argument.
8209 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8211 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8213 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8215 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8216 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8218 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8221 2014-02-19 Tom Tromey <tromey@redhat.com>
8223 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8225 (target_remove_watchpoint): Add argument.
8226 * target.c (debug_to_remove_watchpoint): Add argument.
8227 (update_current_target): Update.
8228 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8229 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8230 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8231 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8232 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8233 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8235 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8236 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8238 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8240 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8242 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8243 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8245 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8250 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8252 (target_remove_hw_breakpoint): Add argument.
8253 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8254 (update_current_target): Update.
8255 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8256 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8258 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8259 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8261 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8264 2014-02-19 Tom Tromey <tromey@redhat.com>
8266 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8268 (target_insert_hw_breakpoint): Add argument.
8269 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8270 (update_current_target): Update.
8271 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8272 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8274 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8275 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8276 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8278 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8281 2014-02-19 Tom Tromey <tromey@redhat.com>
8283 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8285 (target_can_use_hardware_watchpoint): Add argument.
8286 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8287 (update_current_target): Update.
8288 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8290 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8292 * remote.c (remote_check_watch_resources): Add 'self' argument.
8293 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8294 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8296 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8297 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8299 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8301 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8303 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8305 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8307 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8309 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8310 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8312 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8317 * target.h (struct target_ops) <to_post_attach>: Add argument.
8318 (target_post_attach): Add argument.
8319 * target.c (debug_to_post_attach): Add argument.
8320 (update_current_target): Update.
8321 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8322 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8323 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8324 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8325 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8329 * windows-nat.c (windows_close): Add 'self' argument.
8330 * tracepoint.c (tfile_close): Add 'self' argument.
8331 * target.h (struct target_ops) <to_close>: Add argument.
8332 * target.c (target_close): Add argument.
8333 (update_current_target): Update.
8334 * remote.c (remote_close): Add 'self' argument.
8335 * remote-sim.c (gdbsim_close): Add 'self' argument.
8336 * remote-mips.c (mips_close): Add 'self' argument.
8337 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8338 * record-full.c (record_full_close): Add 'self' argument.
8339 * record-btrace.c (record_btrace_close): Add 'self' argument.
8340 * monitor.h (monitor_close): Add 'self' argument.
8341 * monitor.c (monitor_close): Add 'self' argument.
8342 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8343 * linux-nat.c (linux_nat_close): Add argument.
8344 * go32-nat.c (go32_close): Add 'self' argument.
8345 * exec.c (exec_close_1): Add 'self' argument.
8346 * ctf.c (ctf_close): Add 'self' argument.
8347 * corelow.c (core_close): Add 'self' argument.
8348 (core_close_cleanup): Update.
8349 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8350 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8352 2014-02-19 Tom Tromey <tromey@redhat.com>
8354 * remote.c (remote_load): New function.
8355 (init_remote_ops): Use it.
8357 2014-02-19 Tom Tromey <tromey@redhat.com>
8359 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8361 * common/linux-btrace.h (linux_supports_btrace): Update.
8362 * remote.c (remote_supports_btrace): Add "self" argument.
8363 * target-delegates.c: Rebuild.
8364 * target.c (target_supports_btrace): Remove.
8365 * target.h (struct target_ops) <to_supports_btrace>: Add
8366 target_ops argument.
8367 (target_supports_btrace): New define.
8369 2014-02-19 Tom Tromey <tromey@redhat.com>
8371 * record-full.c (record_full_beneath_to_resume_ops)
8372 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8373 (record_full_beneath_to_wait)
8374 (record_full_beneath_to_store_registers_ops)
8375 (record_full_beneath_to_store_registers)
8376 (record_full_beneath_to_xfer_partial_ops)
8377 (record_full_beneath_to_xfer_partial)
8378 (record_full_beneath_to_insert_breakpoint_ops)
8379 (record_full_beneath_to_insert_breakpoint)
8380 (record_full_beneath_to_remove_breakpoint_ops)
8381 (record_full_beneath_to_remove_breakpoint)
8382 (record_full_beneath_to_stopped_by_watchpoint)
8383 (record_full_beneath_to_stopped_data_address)
8384 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8385 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8386 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8387 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8388 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8389 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8390 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8391 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8392 (record_full_resume, record_full_wait_1)
8393 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8394 (record_full_store_registers, record_full_xfer_partial)
8395 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8396 (record_full_async, record_full_core_xfer_partial): Use target
8398 * target-delegates.c: Rebuild.
8399 * target.c (current_xfer_partial): Remove.
8400 (update_current_target): Do not INHERIT or de_fault
8401 to_insert_breakpoint, to_remove_breakpoint,
8402 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8403 to_is_async_p, to_async. Do not set to_xfer_partial field.
8404 (default_xfer_partial): Simplify.
8405 (current_xfer_partial): Remove.
8406 (target_wait, target_resume): Simplify.
8407 (find_default_can_async_p, find_default_is_async_p): Update.
8408 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8409 to_xfer_partial, to_stopped_by_watchpoint,
8410 to_stopped_data_address.
8411 (target_store_registers): Simplify.
8412 (forward_target_remove_breakpoint)
8413 (forward_target_insert_breakpoint): Remove.
8414 (target_remove_breakpoint, target_insert_breakpoint)
8415 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8416 * target.h (struct target_ops) <to_resume, to_wait,
8417 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8418 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8419 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8421 (forward_target_remove_breakpoint)
8422 (forward_target_insert_breakpoint): Remove.
8423 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8425 (record_btrace_insert_breakpoint): Delegate directly.
8427 2014-02-19 Tom Tromey <tromey@redhat.com>
8430 * target-delegates.c: New file.
8431 * target.c: Include target-delegates.c.
8432 (init_dummy_target): Call install_dummy_methods.
8433 (complete_target_initialization): Call install_delegators.
8434 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8435 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8436 * make-target-delegates: New file.
8438 2014-02-19 Tom Tromey <tromey@redhat.com>
8440 * record.c (find_record_target): Use find_target_at.
8441 * target.c (find_target_at): New function.
8442 * target.h (find_target_at): Declare.
8444 2014-02-19 Tom Tromey <tromey@redhat.com>
8446 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8448 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8450 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8451 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8453 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8455 * linux-nat.c (save_sigtrap): Update.
8456 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8457 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8458 (linux_nat_close): Update.
8459 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8461 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8463 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8464 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8465 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8466 (tmp_to_async): Add 'ops' argument.
8467 (record_full_stopped_by_watchpoint, record_full_async)
8468 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8470 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8471 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8472 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8473 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8474 (remote_is_async_p, remote_async): Add 'ops' argument.
8475 (remote_stopped_data_address): Update.
8476 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8477 * target.c (update_current_target)
8478 (find_default_can_async_p, find_default_is_async_p): Update.
8479 (init_dummy_target): Update.
8480 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8481 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8482 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8483 (target_can_async_p, target_is_async_p, target_async)
8484 (target_stopped_by_watchpoint): Update.
8486 2014-02-19 Yao Qi <yao@codesourcery.com>
8489 * gdbarch.sh: Remove startup_gdbarch.
8490 * gdbarch.c: Regenerated.
8491 * gdbarch.h: Likewise.
8493 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8495 * rl78-tdep.c (rl78_g10_register_name): New function.
8496 (rl78_return_value): Add g10 support.
8497 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8500 2014-02-17 Doug Evans <xdje42@gmail.com>
8502 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8503 (SUBDIR_GUILE_SRCS): Ditto.
8504 (scm-gsmob.o): Ditto.
8506 2014-02-17 Yao Qi <yao@codesourcery.com>
8508 * gnu-nat.c (ILL_RPC): Declare defined function.
8510 2014-02-17 Yao Qi <yao@codesourcery.com>
8512 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8513 mach_msg_type_number_t.
8514 (gnu_write_inferior): Likewise.
8516 2014-02-17 Yao Qi <yao@codesourcery.com>
8518 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8520 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8521 (inf_validate_procs, inf_signal): Likewise.
8522 (S_exception_raise_request): Likewise.
8523 (do_mach_notify_dead_name): Likewise.
8524 (steal_exc_port): Likewise.
8525 (gnu_read_inferior): Change 'copy_count''s type to
8526 mach_msg_type_number_t.
8527 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8530 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8532 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8533 flag. Adjust all users; in particular...
8534 (gnu_wait): ..., don't decrement its value in here...
8535 (gnu_create_inferior): ..., and instead set the flag in here,
8536 around the startup_inferior call, and call that one with
8537 START_INFERIOR_TRAPS_EXPECTED.
8539 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8540 (ILL_RPC): ... new macro.
8541 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8542 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8543 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8544 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8545 functions with ILL_RPC macro.
8546 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8547 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8548 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8549 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8550 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8551 (S_proc_getlogin_reply, S_proc_getsid_reply)
8552 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8553 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8554 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8555 (S_proc_getnports_reply, S_proc_is_important_reply)
8556 (S_proc_get_code_reply): New stub functions, generated with
8559 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8560 collected the type check structures.
8562 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8564 2014-02-14 Doug Evans <dje@google.com>
8566 * target.c (target_write_partial): Fix result type.
8568 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8570 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8571 the proper offsets to access fpregset_t.
8573 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8575 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8576 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8577 * h8300-tdep.c (setmachinelist): Remove global.
8578 * hppa-tdep.c (hppa_sigtramp): Remove global.
8579 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8580 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8581 * ravenscar-thread.c (update_target_observer): Remove global.
8582 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8584 2014-02-12 Tom Tromey <tromey@redhat.com>
8586 * common/rsp-low.c: Update comments.
8587 * common/rsp-low.h: Update comments.
8589 2014-02-12 Tom Tromey <tromey@redhat.com>
8591 * common/rsp-low.c (convert_ascii_to_int): Remove.
8592 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8594 2014-02-12 Tom Tromey <tromey@redhat.com>
8596 * common/rsp-low.h (unhexify): Don't declare.
8597 * common/rsp-low.c (unhexify): Remove.
8599 2014-02-12 Tom Tromey <tromey@redhat.com>
8601 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8602 * common/rsp-low.c (convert_int_to_ascii): Remove.
8604 2014-02-12 Tom Tromey <tromey@redhat.com>
8606 * common/rsp-low.h (hexify): Don't declare.
8607 * common/rsp-low.c (hexify): Remove.
8609 2014-02-12 Tom Tromey <tromey@redhat.com>
8611 * common/rsp-low.c (hexify): Never take strlen of argument.
8613 2014-02-12 Tom Tromey <tromey@redhat.com>
8615 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8616 * remote.c (extended_remote_run, remote_rcmd)
8617 (remote_download_trace_state_variable, remote_save_trace_data)
8618 (remote_set_trace_notes): Update.
8619 * tracepoint.c (encode_source_string, tfile_write_status)
8620 (tfile_write_uploaded_tsv): Update.
8622 2014-02-12 Tom Tromey <tromey@redhat.com>
8624 * tracepoint.c: Include rsp-low.h.
8625 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8626 * remote.c: Include rsp-low.h.
8627 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8628 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8629 (remote_unescape_input): Move to common/rsp-low.c.
8630 * common/rsp-low.h: New file.
8631 * common/rsp-low.c: New file.
8632 * Makefile.in (SFILES): Add common/rsp-low.c.
8633 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8634 (COMMON_OBS): Add rsp-low.o.
8635 (rsp-low.o): New target.
8637 2014-02-12 Tom Tromey <tromey@redhat.com>
8639 * utils.h: Include print-utils.h.
8640 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8641 (int_string, core_addr_to_string, core_addr_to_string_nz)
8642 (hex_string, hex_string_custom): Don't declare.
8643 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8644 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8645 (hex_string_custom, int_string, core_addr_to_string)
8646 (core_addr_to_string_nz, host_address_to_string): Move to
8647 common/print-utils.c.
8648 * common/print-utils.h: New file.
8649 * common/print-utils.c: New file
8650 * Makefile.in (SFILES): Add common/print-utils.c.
8651 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8652 (COMMON_OBS): Add print-utils.o.
8653 (print-utils.o): New target.
8655 2014-02-12 Tom Tromey <tromey@redhat.com>
8657 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8659 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8661 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8663 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8665 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8666 if a PT_IO ptrace request returns sucessfully but indicates that 0
8667 bytes were transferred.
8669 2014-02-12 Pedro Alves <palves@redhat.com>
8670 Kevin Buettner <kevinb@redhat.com>
8672 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8673 TYPE_INSTANCE_FLAG_CODE_SPACE.
8675 2014-02-12 Pedro Alves <palves@redhat.com>
8677 * h8300-tdep.c (pseudo_from_raw_register)
8678 (raw_from_pseudo_register): New functions.
8679 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8682 2014-02-12 Pedro Alves <palves@redhat.com>
8684 * h8300-tdep.c (h8300_register_sim_regno): New function.
8685 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8686 gdbarch_register_sim_regno hook.
8688 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8690 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8692 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8694 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8696 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8698 * obsd-tdep.h (obsd_init_abi): New prototype.
8699 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8700 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8701 (obsd_init_abi): New functions.
8702 * i386obsd-tdep.c: Include "obsd-tdep.h".
8703 (i386obsd_init_abi): Call obsd_init_abi.
8704 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8705 (amd64obsd_init_abi): Call obsd_init_abi.
8706 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8707 obsd-tdep.c to gdb_target_obs.
8709 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8711 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8712 double float arguments to 16-byte in the argument slots.
8714 2014-02-11 Doug Evans <xdje42@gmail.com>
8716 * configure.ac: Don't crash if pkg-config is not found and guile
8717 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8719 * configure: Regenerate.
8721 2014-02-11 Yao Qi <yao@codesourcery.com>
8723 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8724 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8725 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8726 * gnu-nat.c (gnu_xfer_memory): Likewise.
8727 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8728 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8729 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8730 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8732 2014-02-11 Yao Qi <yao@codesourcery.com>
8734 * target.h (enum target_xfer_error): Rename to ...
8735 (enum target_xfer_status): ... it. New. All users updated.
8736 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8738 (TARGET_XFER_STATUS_ERROR_P): New macro.
8739 (target_xfer_error_to_string): Remove declaration.
8740 (target_xfer_status_to_string): Declare.
8741 (target_xfer_partial_ftype): Adjust it.
8742 (struct target_ops) <to_xfer_partial>: Return
8743 target_xfer_status. Add argument xfered_len. Update
8745 * target.c (target_xfer_error_to_string): Rename to ...
8746 (target_xfer_status_to_string): ... it. New. All callers
8748 (target_read_live_memory): Likewise. Call target_xfer_partial
8749 instead of target_read.
8750 (memory_xfer_live_readonly_partial): Return
8751 target_xfer_status. Add argument xfered_len.
8752 (raw_memory_xfer_partial): Likewise.
8753 (memory_xfer_partial_1): Likewise.
8754 (memory_xfer_partial): Likewise.
8755 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8756 properly. Update debug message.
8757 (default_xfer_partial, current_xfer_partial): Likewise.
8758 (target_write_partial): Likewise.
8759 (target_read_partial): Likewise. All callers updated.
8760 (read_whatever_is_readable): Likewise.
8761 (target_write_with_progress): Likewise.
8762 (target_read_alloc_1): Likewise.
8764 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8765 * auxv.c (procfs_xfer_auxv): Likewise.
8766 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8767 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8768 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8769 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8770 * corefile.c (read_memory): Adjust.
8771 * corelow.c (core_xfer_partial): Likewise.
8772 * ctf.c (ctf_xfer_partial): Likewise.
8773 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8775 (darwin_xfer_partial): Likewise.
8776 * exec.c (section_table_xfer_memory_partial): Likewise. All
8778 (exec_xfer_partial): Likewise.
8779 * exec.h (section_table_xfer_memory_partial): Update
8781 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8783 (gnu_xfer_partial): Likewise.
8784 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8785 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8786 (ia64_hpux_xfer_solib_got): Likewise.
8787 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8788 type of 'partial_len' to ULONGEST.
8789 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8790 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8791 (linux_nat_xfer_partial): Likewise.
8792 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8793 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8794 * monitor.c (monitor_xfer_memory): Likewise.
8795 (monitor_xfer_partial): Likewise.
8796 * procfs.c (procfs_xfer_partial): Likewise.
8797 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8798 * record-full.c (record_full_xfer_partial): Likewise.
8799 (record_full_core_xfer_partial): Likewise.
8800 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8801 (gdbsim_xfer_partial): Likewise.
8802 * remote.c (remote_write_bytes_aux): Likewise. All callers
8804 (remote_write_bytes, remote_read_bytes): Likewise. All
8806 (remote_flash_erase): Likewise. All callers updated.
8807 (remote_write_qxfer): Likewise. All callers updated.
8808 (remote_read_qxfer): Likewise. All callers updated.
8809 (remote_xfer_partial): Likewise.
8810 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8811 (rs6000_xfer_shared_libraries): Likewise.
8812 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8813 (sol_thread_xfer_partial): Likewise.
8814 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8815 (sparc_xfer_partial): Likewise.
8816 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8818 (spu_xfer_partial): Likewise.
8819 * spu-multiarch.c (spu_xfer_partial): Likewise.
8820 * tracepoint.c (tfile_xfer_partial): Likewise.
8821 * windows-nat.c (windows_xfer_memory): Likewise.
8822 (windows_xfer_shared_libraries): Likewise.
8823 (windows_xfer_partial): Likewise.
8824 * valprint.c: Replace 'target_xfer_error' with
8825 'target_xfer_status' in comments.
8827 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8829 Checked in by Joel Brobecker <brobecker@adacore.com>.
8830 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8832 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8834 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8835 function parameters.
8837 2014-02-10 Will Newton <will.newton@linaro.org>
8839 * elfread.c (elf_rel_plt_read): Look for a .got section if
8840 looking up .got.plt fails.
8841 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8842 on address passed to elf_gnu_ifunc_record_cache.
8843 (elf_gnu_ifunc_resolve_addr): Likewise.
8844 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8846 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8848 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8849 (X_RETTURN): New macro.
8850 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8852 * sparc64-tdep.c (sparc64_init_abi): Hook
8853 sparc_in_function_epilogue_p.
8855 2014-02-10 Gary Benson <gbenson@redhat.com>
8857 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8858 Rename name_matcher to symbol_matcher.
8860 2014-02-10 Gary Benson <gbenson@redhat.com>
8862 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8863 Use expand_symtabs_file_matcher_ftype and
8864 expand_symtabs_symbol_matcher_ftype.
8866 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8868 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8869 (struct ada_symbol_cache): New.
8870 (ada_free_symbol_cache): Forward declare.
8871 (struct ada_pspace_data): New.
8872 (ada_pspace_data_handle): New static global.
8873 (get_ada_pspace_data, ada_pspace_data_cleanup)
8874 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8875 (cache_space, cache): Delete, now folded inside struct
8877 (ada_get_symbol_cache): New function.
8878 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8880 (_initialize_ada_language): Remove initialization of cache_space.
8881 Move call to observer_attach_inferior_exit up, grouping it
8882 with the other observer registrations inside this function.
8883 Rename command to be more general. Add call to
8884 register_program_space_data_with_cleanup.
8886 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8888 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8889 ada_new_objfile_observer.
8890 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8891 (_initialize_tasks): Update uses of ada_new_objfile_observer
8892 and ada_tasks_normal_stop_observer.
8894 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8896 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8897 returned by the 'Length attribute to integer.
8899 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8901 * ada-lang.c (_initialize_ada_language): Initialize
8902 cache_space obstack.
8904 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8906 * ada-lang.c (HASH_SIZE): New macro.
8907 (struct cache_entry): New type.
8908 (cache_space, cache): New static globals.
8909 (ada_clear_symbol_cache, find_entry): New functions.
8910 (lookup_cached_symbol, cache_symbol): Implement.
8911 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8912 (_initialize_ada_language): Attach ada_new_objfile_observer
8913 and ada_free_objfile_observer.
8915 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8917 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8918 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8919 struct block * parameter.
8920 (ada_lookup_symbol_list_worker): Constify local variable "block".
8921 Remove cast which is no longer necessary.
8923 2014-02-10 Doug Evans <xdje42@gmail.com>
8925 Add Guile as an extension language.
8926 * NEWS: Mention Guile scripting.
8927 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8928 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8929 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8930 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8931 (CLIBS): Add GUILE_LIBS.
8932 (install-guile): New rule.
8933 (guile.o): New rule.
8934 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8935 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8936 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8937 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8938 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8939 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8940 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8941 * configure.ac: New option --with-guile.
8942 * configure: Regenerate.
8943 * config.in: Regenerate.
8944 * auto-load.c: Remove #include "python/python.h". Add #include
8945 "gdb/section-scripts.h".
8946 (source_section_scripts): Handle Guile scripts.
8947 (_initialize_auto_load): Add name of Guile objfile script to
8948 scripts-directory help text.
8949 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8950 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8951 (struct breakpoint): New member scm_bp_object.
8952 * defs.h (enum command_control_type): New value guile_control.
8953 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8955 (show_user): Update comment.
8956 (_initialize_cli_cmds): Update help text for "show user". Update help
8957 text for max-user-call-depth.
8958 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8960 (multi_line_command_p): Add guile_control.
8961 (print_command_lines): Handle guile_control.
8962 (execute_control_command, recurse_read_control_structure): Ditto.
8963 (process_next_line): Recognize "guile" commands.
8964 * disasm.c (gdb_disassemble_info): Make non-static.
8965 * disasm.h: #include "dis-asm.h".
8966 (struct gdbarch): Add forward decl.
8967 (gdb_disassemble_info): Declare.
8968 * extension.c: #include "guile/guile.h".
8969 (extension_languages): Add guile.
8970 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8971 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8972 * gdbtypes.c (get_unsigned_type_max): New function.
8973 (get_signed_type_minmax): New function.
8974 * gdbtypes.h (get_unsigned_type_max): Declare.
8975 (get_signed_type_minmax): Declare.
8976 * guile/README: New file.
8977 * guile/guile-internal.h: New file.
8978 * guile/guile.c: New file.
8979 * guile/guile.h: New file.
8980 * guile/scm-arch.c: New file.
8981 * guile/scm-auto-load.c: New file.
8982 * guile/scm-block.c: New file.
8983 * guile/scm-breakpoint.c: New file.
8984 * guile/scm-disasm.c: New file.
8985 * guile/scm-exception.c: New file.
8986 * guile/scm-frame.c: New file.
8987 * guile/scm-gsmob.c: New file.
8988 * guile/scm-iterator.c: New file.
8989 * guile/scm-lazy-string.c: New file.
8990 * guile/scm-math.c: New file.
8991 * guile/scm-objfile.c: New file.
8992 * guile/scm-ports.c: New file.
8993 * guile/scm-pretty-print.c: New file.
8994 * guile/scm-safe-call.c: New file.
8995 * guile/scm-string.c: New file.
8996 * guile/scm-symbol.c: New file.
8997 * guile/scm-symtab.c: New file.
8998 * guile/scm-type.c: New file.
8999 * guile/scm-utils.c: New file.
9000 * guile/scm-value.c: New file.
9001 * guile/lib/gdb.scm: New file.
9002 * guile/lib/gdb/boot.scm: New file.
9003 * guile/lib/gdb/experimental.scm: New file.
9004 * guile/lib/gdb/init.scm: New file.
9005 * guile/lib/gdb/iterator.scm: New file.
9006 * guile/lib/gdb/printing.scm: New file.
9007 * guile/lib/gdb/types.scm: New file.
9008 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9009 (VPATH): Add $(GUILE_SRCDIR).
9010 (GUILE_DIR): New variable.
9011 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9012 (all): Add stamp-guile dependency.
9013 (stamp-guile): New rule.
9014 (clean-guile, install-guile, uninstall-guile): New rules.
9015 (install-only): Add install-guile dependency.
9016 (uninstall): Add uninstall-guile dependency.
9017 (clean): Add clean-guile dependency.
9019 2014-02-09 Doug Evans <xdje42@gmail.com>
9021 Revert this patch (which I approved, mea culpa).
9023 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9025 * Makefile.in (all-lib): Remove.
9026 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9028 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9030 Fix Python stack corruption.
9031 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9034 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9036 * Makefile.in (all-lib): Remove.
9037 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9039 2014-02-07 Doug Evans <dje@google.com>
9041 * extension-priv.h (extension_language_script_ops): Add comment.
9042 (extension_language_ops): Add comment.
9043 (active_ext_lang_state): Fix typo in comment.
9045 2014-02-07 Pedro Alves <palves@redhat.com>
9047 PR breakpoints/16292
9048 * infrun.c (handle_signal_stop) <signal arrives while stepping
9049 over a breakpoint>: Switch back to the stepping thread.
9051 2014-02-07 Yao Qi <yao@codesourcery.com>
9053 * target.c (target_xfer_partial): Return zero if LEN is zero.
9055 2014-02-07 Yao Qi <yao@codesourcery.com>
9057 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9058 (ld_so_xfer_auxv): Likewise.
9059 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9060 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9061 * corelow.c (core_xfer_partial): Likewise.
9062 * ctf.c (ctf_xfer_partial): Likewise.
9063 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9064 (darwin_xfer_partial): Likewise.
9065 * exec.c (exec_xfer_partial): Likewise.
9066 * gnu-nat.c (gnu_xfer_partial): Likewise.
9067 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9068 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9069 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9070 * linux-nat.c (linux_xfer_siginfo): Likewise.
9071 (linux_proc_xfer_spu): Likewise.
9072 * procfs.c (procfs_xfer_partial): Likewise.
9073 * record-full.c (record_full_xfer_partial): Likewise.
9074 (record_full_core_xfer_partial): Likewise.
9075 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9076 * remote.c (remote_write_qxfer): Likewise.
9077 (remote_write_qxfer, remote_read_qxfer): Likewise.
9078 (remote_xfer_partial): Likewise.
9079 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9080 (rs6000_xfer_shared_libraries): Likewise.
9081 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9082 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9083 (spu_xfer_partial): Likewise.
9084 * target.c (memory_xfer_partial_1): Likewise.
9085 * tracepoint.c (tfile_xfer_partial): Likewise.
9086 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9087 (windows_xfer_partial): Likewise.
9089 2014-02-07 Yao Qi <yao@codesourcery.com>
9091 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9093 (core_xfer_shared_libraries_aix): Likewise.
9094 * gdbarch.c, gdbarch.h: Regenerated.
9095 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9096 ULONGEST. Change 'len_avail' type to ULONGEST.
9097 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9098 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9100 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9102 2014-02-07 Yao Qi <yao@codesourcery.com>
9104 * corefile.c (memory_error): Get 'exception' from ERR and pass
9105 'exception' to throw_error.
9107 2014-02-06 Doug Evans <xdje42@gmail.com>
9109 * configure.ac (libpython checking): Remove all but python.o from
9110 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9111 * configure: Regenerate.
9113 * Makefile.in (SFILES): Add extension.c.
9114 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9115 (COMMON_OBS): Add extension.o.
9116 * extension.h: New file.
9117 * extension-priv.h: New file.
9118 * extension.c: New file.
9120 * python/python-internal.h: #include "extension.h".
9121 (gdbpy_auto_load_enabled): Declare.
9122 (gdbpy_apply_val_pretty_printer): Declare.
9123 (gdbpy_apply_frame_filter): Declare.
9124 (gdbpy_preserve_values): Declare.
9125 (gdbpy_breakpoint_cond_says_stop): Declare.
9126 (gdbpy_breakpoint_has_cond): Declare.
9127 (void source_python_script_for_objfile): Delete.
9128 * python/python.c: #include "extension-priv.h".
9129 Delete inclusion of "observer.h".
9130 (extension_language_python): Moved here and renamed from
9131 script_language_python in py-auto-load.c.
9132 Redefined to be of type extension_language_defn.
9133 (python_extension_script_ops): New global.
9134 (python_extension_ops): New global.
9135 (struct python_env): New member previous_active.
9136 (restore_python_env): Call restore_active_ext_lang.
9137 (ensure_python_env): Call set_active_ext_lang.
9138 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9140 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9142 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9144 (gdbpy_eval_from_control_command): Renamed from
9145 eval_python_from_control_command, made static. New arg extlang.
9146 (gdbpy_source_script) Renamed from source_python_script, made static.
9148 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9149 result to int. New arg extlang.
9150 (gdbpy_source_objfile_script): Renamed from
9151 source_python_script_for_objfile, made static. New arg extlang.
9152 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9153 static. New args extlang, extlang_printers. Change result type to
9155 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9156 static. New arg extlang. Rename arg printers to extlang_printers
9157 and change type to ext_lang_type_printers *.
9158 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9159 static. Replace argument arg with extlang, extlang_printers.
9160 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9161 (!HAVE_PYTHON, source_python_script): Delete.
9162 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9163 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9164 (!HAVE_PYTHON, start_type_printers): Delete.
9165 (!HAVE_PYTHON, apply_type_printers): Delete.
9166 (!HAVE_PYTHON, free_type_printers): Delete.
9167 (_initialize_python): Delete call to observer_attach_before_prompt.
9168 (finalize_python): Set/restore active extension language.
9169 (gdbpy_finish_initialization) Renamed from
9170 finish_python_initialization, made static. New arg extlang.
9171 (gdbpy_initialized): New function.
9172 * python/python.h: #include "extension.h". Delete #include
9173 "value.h", "mi/mi-cmds.h".
9174 (extension_language_python): Declare.
9175 (GDBPY_AUTO_FILE_NAME): Delete.
9176 (enum py_bt_status): Moved to extension.h and renamed to
9178 (enum frame_filter_flags): Moved to extension.h.
9179 (enum py_frame_args): Moved to extension.h and renamed to
9180 ext_lang_frame_args.
9181 (finish_python_initialization): Delete.
9182 (eval_python_from_control_command): Delete.
9183 (source_python_script): Delete.
9184 (apply_val_pretty_printer): Delete.
9185 (apply_frame_filter): Delete.
9186 (preserve_python_values): Delete.
9187 (gdbpy_script_language_defn): Delete.
9188 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9189 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9191 * auto-load.c: #include "extension.h".
9192 (GDB_AUTO_FILE_NAME): Delete.
9193 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9194 (script_language_gdb): Delete, moved to extension.c and renamed to
9195 extension_language_gdb.
9196 (source_gdb_script_for_objfile): Delete.
9197 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9198 (loaded_script): Change type of language member to
9199 struct extension_language_defn *.
9200 (init_loaded_scripts_info): Initialize
9201 unsupported_script_warning_printed.
9202 (maybe_add_script): Make static. Change type of language arg to
9203 struct extension_language_defn *.
9204 (clear_section_scripts): Reset unsupported_script_warning_printed.
9205 (auto_load_objfile_script_1): Rewrite to use extension language API.
9206 (auto_load_objfile_script): Make public. Remove support-compiled-in
9207 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9208 (source_section_scripts): Rewrite to use extension language API.
9209 (load_auto_scripts_for_objfile): Rewrite to use
9210 auto_load_scripts_for_objfile.
9211 (collect_matching_scripts_data): Change type of language member to
9212 struct extension_language_defn *.
9213 (auto_load_info_scripts): Change type of language arg to
9214 struct extension_language_defn *.
9215 (unsupported_script_warning_print): New function.
9216 (script_not_found_warning_print): Make static.
9217 (_initialize_auto_load): Rewrite construction of scripts-directory
9219 * auto-load.h (struct objfile): Add forward decl.
9220 (struct script_language): Delete.
9221 (struct auto_load_pspace_info): Add forward decl.
9222 (struct extension_language_defn): Add forward decl.
9223 (maybe_add_script): Delete.
9224 (auto_load_objfile_script): Declare.
9225 (script_not_found_warning_print): Delete.
9226 (auto_load_info_scripts): Update prototype.
9227 (auto_load_gdb_scripts_enabled): Declare.
9228 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9229 auto_load_python_scripts_enabled and made public.
9230 (script_language_python): Delete, moved to python.c.
9231 (gdbpy_script_language_defn): Delete.
9232 (info_auto_load_python_scripts): Update to use
9233 extension_language_python.
9235 * breakpoint.c (condition_command): Replace call to
9236 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9237 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9238 with call to breakpoint_ext_lang_cond_says_stop.
9239 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9240 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9241 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9242 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9244 (local_setattro): Print name of extension language with existing
9247 * valprint.c (val_print, value_print): Update to call
9248 apply_ext_lang_val_pretty_printer.
9249 * cp-valprint.c (cp_print_value): Update call to
9250 apply_ext_lang_val_pretty_printer.
9251 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9252 (gdbpy_apply_val_pretty_printer): Renamed from
9253 apply_val_pretty_printer. New arg extlang.
9254 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9256 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9257 extension language API.
9258 * cli/cli-script.c (execute_control_command): Update to call
9259 eval_ext_lang_from_control_command.
9261 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9262 enum ext_lang_bt_status values. Update call to
9263 apply_ext_lang_frame_filter.
9264 (mi_cmd_stack_list_locals): Ditto.
9265 (mi_cmd_stack_list_args): Ditto.
9266 (mi_cmd_stack_list_variables): Ditto.
9267 * mi/mi-main.c: Delete #include "python/python-internal.h".
9268 Add #include "extension.h".
9269 (mi_cmd_list_features): Replace reference to python internal variable
9270 gdb_python_initialized with call to ext_lang_initialized_p.
9272 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9273 Update to use enum ext_lang_frame_args. Update to call
9274 apply_ext_lang_frame_filter.
9275 * python/py-framefilter.c (extract_sym): Update to use enum
9277 (extract_value, py_print_type, py_print_value): Ditto.
9278 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9279 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9280 (py_print_frame): Ditto.
9281 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9282 New arg extlang. Update to use enum ext_lang_bt_status.
9284 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9285 finish_python_initialization. Replace with call to
9286 finish_ext_lang_initialization.
9288 * typeprint.c (do_free_global_table): Update to call
9289 free_ext_lang_type_printers.
9290 (create_global_typedef_table): Update to call
9291 start_ext_lang_type_printers.
9292 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9293 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9294 (type_print_options): Change type of global_printers from "void *"
9295 to "struct ext_lang_type_printers *".
9297 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9298 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9299 (gdbpy_preserve_values): Renamed from preserve_python_values.
9301 (!HAVE_PYTHON, preserve_python_values): Delete.
9303 * utils.c (quit_flag): Delete, moved to extension.c.
9304 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9307 * eval.c: Delete #include "python/python.h".
9308 * main.c: Delete #include "python/python.h".
9310 * defs.h: Update comment.
9312 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9316 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9318 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9321 2014-02-05 Yao Qi <yao@codesourcery.com>
9323 * remote.c (remote_pass_signals): Remove local 'buf' and use
9325 (remote_program_signals): Likewise.
9327 2014-02-05 Yao Qi <yao@codesourcery.com>
9329 * ctf.c: Include "inferior.h" and "gdbthread.h".
9330 (CTF_PID): A new macro.
9331 (ctf_open): Call inferior_appeared and add_thread_silent.
9332 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9333 (ctf_thread_alive): New function.
9334 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9336 2014-02-05 Yao Qi <yao@codesourcery.com>
9340 2013-05-24 Yao Qi <yao@codesourcery.com>
9342 * tracepoint.c (TFILE_PID): Remove.
9343 (tfile_open): Don't add thread and inferior.
9344 (tfile_close): Don't set 'inferior_ptid'. Don't call
9345 exit_inferior_silent.
9346 (tfile_thread_alive): Remove.
9347 (init_tfile_ops): Don't set field 'to_thread_alive' of
9350 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9352 * remote.c (remote_start_remote): Call remote_check_symbols even
9353 if only symbol-file (not file) has been given.
9355 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9357 * gdbarch.sh (skip_entrypoint): New callback.
9358 * gdbarch.c, gdbarch.h: Regenerate.
9359 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9360 * infrun.c (fill_in_stop_func): Likewise.
9361 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9362 (ppc_elfv2_elf_make_msymbol_special): New function.
9363 (ppc_elfv2_skip_entrypoint): Likewise.
9364 (ppc_linux_init_abi): Install them for ELFv2.
9366 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9368 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9369 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9370 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9371 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9372 structures returned in GPRs.
9374 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9376 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9377 offset to the stack parameter list for the ELFv2 ABI.
9379 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9381 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9382 set_gdbarch_convert_from_func_ptr_addr and
9383 set_gdbarch_elf_make_msymbol_special for ELFv1.
9384 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9385 function descriptors on ELFv1.
9386 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9387 set up r12 at function entry.
9389 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9391 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9392 (struct gdbarch_tdep): New member elf_abi.
9394 * rs6000-tdep.c: Include "elf/ppc64.h".
9395 (rs6000_gdbarch_init): Detect ELF ABI version.
9397 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9399 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9400 within a register pair holding a DFP 128-bit value on little-endian.
9401 (ppc64_sysv_abi_return_value_base): Likewise.
9402 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9403 (dfp_pseudo_register_write): Likewise.
9405 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9407 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9408 offset on little-endian when passing _Decimal32.
9409 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9411 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9413 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9414 of the overlapped FP register within the VSX register on little-
9416 (efpr_pseudo_register_write): Likewise.
9418 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9420 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9421 offset on little-endian when passing small structures.
9423 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9425 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9426 (struct ppc64_sysv_argpos): New data structure.
9427 (ppc64_sysv_abi_push_float): Remove.
9428 (ppc64_sysv_abi_push_val): New function.
9429 (ppc64_sysv_abi_push_integer): Likewise.
9430 (ppc64_sysv_abi_push_freg): Likewise.
9431 (ppc64_sysv_abi_push_vreg): Likewise.
9432 (ppc64_sysv_abi_push_param): Likewise.
9433 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9434 (ppc64_sysv_abi_return_value_base): New function.
9435 (ppc64_sysv_abi_return_value): Refactor to use it.
9437 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9439 * NEWS: Document new target powerpc64le-*-linux*.
9441 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9443 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9444 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9446 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9447 register set used in ELF core dumps. Add floating-point register set.
9449 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9451 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9452 dwarf2_to_gdb[] table using symbolic constants. Adjust
9453 penultimate entry from number representing the PC register
9454 to symbolic constant representing the MDR register. Add
9455 constant for the PC register to the end of the table.
9457 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9459 * bsd-kvm.c: Include <sys/param.h>
9461 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9463 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9465 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9467 * ada-lang.h (clear_ada_sym_cache): Delete.
9469 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9471 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9473 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9475 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9476 the sigreturn register save area only if the syscall is
9479 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9481 * valops.c (value_slice): Minor reformatting.
9483 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9485 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9487 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9489 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9491 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9492 (ada_ignore_descriptive_types_p): New static global.
9493 (find_parallel_type_by_descriptive_type): Return immediately
9494 if ada_ignore_descriptive_types_p is set.
9495 (_initialize_ada_language): Register new commands "maintenance
9496 set ada", "maintenance show ada", "maintenance set ada
9497 ignore-descriptive-types" and "maintenance show ada
9498 ignore-descriptive-types".
9499 * NEWS: Add entry for new "maint ada set/show
9500 ignore-descriptive-types" commands.
9502 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9504 * record-btrace.c (record_btrace_close): Call btrace_teardown
9507 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9509 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9512 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9514 * ada-typeprint (type_is_full_subrange_of_target_type):
9516 (print_range): Add parameter bounds_prefered_p. If not set,
9517 try printing range types using the name of their base type.
9518 (print_range_type): Add parameter bounds_prefered_p.
9519 Use it in call to print_range.
9520 (print_array_type, ada_print_type): Update calls to print_range
9521 and print_range_type.
9523 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9525 * ada-typeprint.c (print_array_type, print_choices, print_range)
9526 (print_range_bound, print_dynamic_range_bound, print_range_type):
9529 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9531 * ada-typeprint.c (print_range): Add missing empty line
9532 after local declaration.
9534 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9536 * ada-valprint.c (print_optional_low_bound): Get index_type's
9537 target type for as long as it is a TYPE_CODE_RANGE.
9539 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9541 * procfs.c (procfs_make_note_section): Remove assertion and
9544 2014-01-24 Yao Qi <yao@codesourcery.com>
9546 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9547 * corelow.c (get_core_siginfo): Likewise.
9549 2014-01-24 Yao Qi <yao@codesourcery.com>
9551 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9552 ULONGEST. Don't check 'len' is negative.
9553 (remote_write_bytes): Change type of 'len' to ULONGEST.
9555 2014-01-23 Tom Tromey <tromey@redhat.com>
9558 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9559 Handle exception from frame.block.
9560 (FrameVars.fetch_frame_locals): Likewise.
9562 2014-01-23 Tom Tromey <tromey@redhat.com>
9565 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9566 on a NULL pointer. Move "goto error" to correct place.
9568 2014-01-23 Tom Tromey <tromey@redhat.com>
9571 * python/py-framefilter.c (apply_frame_filter): Call
9572 ensure_python_env after computing gdbarch.
9574 2014-01-23 Yao Qi <yao@codesourcery.com>
9576 * target.c (raw_memory_xfer_partial): Change argument type
9577 from void * to gdb_byte *.
9578 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9580 2014-01-22 Doug Evans <dje@google.com>
9582 New gdbserver option --debug-format=timestamp.
9585 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9587 * syscalls/s390x-linux.xml: New file.
9588 * syscalls/s390-linux.xml: New file.
9589 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9590 (XML_SYSCALL_FILENAME_S390X): Likewise.
9591 (op_svc): New enum value for SVC opcode.
9592 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9593 (s390_linux_get_syscall_number): New function.
9594 (s390_gdbarch_init): Register '*get_syscall_number' and the
9595 syscall xml file name.
9596 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9597 "s390-linux.xml" and "s390x-linux.xml".
9598 * NEWS: Announce new feature.
9600 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9602 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9604 2014-01-22 Pedro Alves <palves@redhat.com>
9606 * xtensa-config.c: Include defs.h.
9608 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9610 * common/common-utils.h: Add "ARI:" comment beside __func__
9613 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9615 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9616 documentation a bit.
9618 2014-01-21 Roland McGrath <mcgrathr@google.com>
9620 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9621 * configure: Regenerate.
9622 * aclocal.m4: Regenerate.
9623 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9624 New substituted variables.
9625 (install-strip): New target.
9626 (INSTALL_SCRIPT): New substituted variable.
9627 (FLAGS_TO_PASS): Add it.
9628 (install-only): Use $(INSTALL_SCRIPT) rather than
9629 $(INSTALL_PROGRAM) for gcore.
9631 2014-01-20 Tom Tromey <tromey@redhat.com>
9633 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9636 2014-01-20 Tom Tromey <tromey@redhat.com>
9638 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9639 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9640 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9641 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9642 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9643 (struct cmd_list_element) <flags>: Remove.
9644 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9645 doc_allocated>: New fields.
9646 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9648 * maint.c (maintenance_do_deprecate): Update.
9649 * top.c (execute_command): Update.
9651 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9653 * xtensa-linux-nat.c: Include asm/ptrace.h.
9655 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9657 * Makefile.in (SFILES): Add d-support.c.
9658 (COMMON_OBS): Add d-support.o.
9659 * d-lang.h (d_parse_symbol): Add comment, now defined in
9661 * d-lang.c (parse_call_convention)
9662 (parse_attributes, parse_function_types)
9663 (parse_function_args, parse_type, parse_identifier)
9664 (call_convention_p, d_parse_symbol): Move functions to ...
9665 * d-support.c: ... New file.
9667 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9669 * d-lang.h (d_parse_symbol): Add declaration.
9670 * d-lang.c (extract_identifiers)
9671 (extract_type_info): Remove functions.
9672 (parse_call_convention, parse_attributes)
9673 (parse_function_types, parse_function_args)
9674 (parse_type, parse_identifier, call_convention_p)
9675 (d_parse_symbol): New functions.
9676 (d_demangle): Use d_parse_symbol to demangle D symbols.
9678 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9680 * d-lang.h (struct builtin_d_type): New data type.
9681 (builtin_d_type): Add declaration.
9682 * d-lang.c (d_language_arch_info, build_d_types)
9683 (builtin_d_type): New functions.
9684 (enum d_primitive_types): New data type.
9685 (d_language_defn): Change c_language_arch_info to
9686 d_language_arch_info.
9687 (d_type_data): New static variable.
9688 (_initialize_d_language): Initialize d_type_data.
9690 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9692 * d-lang.h (d_main_name): Add declaration.
9693 * d-lang.c (d_main_name): New function.
9694 * symtab.c (find_main_name): Add call to d_main_name.
9696 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9698 * d-lang.c (d_language_defn): Change macro_expansion_c to
9701 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9703 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9705 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9707 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9708 gdb_exception" declaration.
9709 * remote.c (getpkt_or_notif_sane): Likewise.
9711 2014-01-17 Doug Evans <dje@google.com>
9713 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9714 function, contents of dirnames_to_char_ptr_vec_append moved here.
9715 (delim_string_to_char_ptr_vec): New function.
9716 (dirnames_to_char_ptr_vec_append): Rewrite.
9717 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9719 2014-01-17 Doug Evans <dje@google.com>
9721 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9723 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9724 #include "common-utils.h".
9725 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9726 * common/vec.h (VEC_ASSERT_PASS): Update.
9727 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9728 (MACH_CHECK_ERROR): Update.
9730 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9732 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9734 * gdbarch.h: Regenerate.
9736 2014-01-16 Tom Tromey <tromey@redhat.com>
9738 * value.c (struct value) <regnum>: Move earlier.
9740 2014-01-16 Tom Tromey <tromey@redhat.com>
9742 * remote.c (extended_remote_create_inferior): Rename from
9743 extended_remote_create_inferior_1. Add "ops" argument. Remove
9746 2014-01-16 Pedro Alves <palves@redhat.com>
9748 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9749 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9752 2014-01-16 Doug Evans <dje@google.com>
9754 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9756 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9758 * btrace.h (btrace_thread_flag): New.
9759 (struct btrace_thread_info) <flags>: New.
9760 * record-btrace.c (record_btrace_resume_thread)
9761 (record_btrace_find_thread_to_move, btrace_step_no_history)
9762 (btrace_step_stopped, record_btrace_start_replaying)
9763 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9764 (record_btrace_find_resume_thread): New.
9765 (record_btrace_resume, record_btrace_wait): Extend.
9766 (record_btrace_can_execute_reverse): New.
9767 (record_btrace_open): Fail in non-stop mode.
9768 (record_btrace_set_replay): Split into this, ...
9769 (record_btrace_stop_replaying): ... this, ...
9770 (record_btrace_clear_histories): ... and this.
9771 (init_record_btrace_ops): Init to_can_execute_reverse.
9772 * NEWS: Announce it.
9774 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9776 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9777 (forward_target_decr_pc_after_break)
9778 (target_decr_pc_after_break): New.
9779 * target.c (forward_target_decr_pc_after_break)
9780 (target_decr_pc_after_break): New.
9781 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9782 instead of gdbarch_decr_pc_after_break.
9783 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9784 instead of gdbarch_decr_pc_after_break.
9785 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9786 instead of gdbarch_decr_pc_after_break.
9787 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9788 instead of gdbarch_decr_pc_after_break.
9789 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9790 instead of gdbarch_decr_pc_after_break.
9791 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9792 instead of gdbarch_decr_pc_after_break.
9794 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9796 * btrace.c: Include regcache.h.
9797 (btrace_add_pc): New.
9798 (btrace_enable): Call btrace_add_pc.
9799 (btrace_is_empty): New.
9800 * btrace.h (btrace_is_empty): New.
9801 * record-btrace.c (require_btrace, record_btrace_info): Call
9804 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9806 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9807 Support delta reads.
9808 (linux_disable_btrace): Change return type.
9809 * common/linux-btrace.h (linux_read_btrace): Change parameters
9810 and return type to allow error reporting. Update users.
9811 (linux_disable_btrace): Change return type. Update users.
9812 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9814 (btrace_error): New.
9815 (btrace_block) <begin>: Comment on BEGIN == 0.
9816 * btrace.c (btrace_compute_ftrace): Start from the end of
9818 (btrace_stitch_trace, btrace_clear_history): New.
9819 (btrace_fetch): Read delta trace, return if replaying.
9820 (btrace_clear): Move clear history code to btrace_clear_history.
9821 (parse_xml_btrace): Throw an error if parsing failed.
9822 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9823 and return type to allow error reporting.
9824 (target_read_btrace): Change parameters and return type to allow
9826 * target.c (target_read_btrace): Update.
9827 * remote.c (remote_read_btrace): Support delta reads. Pass
9829 * NEWS: Announce it.
9831 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9833 * record.h (record_btrace_frame_unwind)
9834 (record_btrace_tailcall_frame_unwind): New declarations.
9835 * dwarf2-frame: Include record.h
9836 (dwarf2_frame_cfa): Throw an error for btrace frames.
9837 * record-btrace.c: Include hashtab.h.
9838 (btrace_get_bfun_name): New.
9839 (btrace_call_history): Call btrace_get_bfun_name.
9840 (struct btrace_frame_cache): New.
9842 (bfcache_hash, bfcache_eq, bfcache_new): New.
9843 (btrace_get_frame_function): New.
9844 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9845 (record_btrace_frame_this_id): Compute own id.
9846 (record_btrace_frame_prev_register): Provide PC, throw_error
9847 for all other registers.
9848 (record_btrace_frame_sniffer): Detect btrace frames.
9849 (record_btrace_tailcall_frame_sniffer): New.
9850 (record_btrace_frame_dealloc_cache): New.
9851 (record_btrace_frame_unwind): Add new functions.
9852 (record_btrace_tailcall_frame_unwind): New.
9853 (_initialize_record_btrace): Allocate cache.
9854 * btrace.c (btrace_clear): Call reinit_frame_cache.
9855 * NEWS: Announce it.
9857 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9859 * record-btrace.c (record_btrace_set_replay)
9860 (record_btrace_goto_begin, record_btrace_goto_end)
9861 (record_btrace_goto): New.
9862 (init_record_btrace_ops): Initialize them.
9863 * NEWS: Announce it.
9865 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9867 * record-btrace.c (record_btrace_find_new_threads)
9868 (record_btrace_thread_alive): New.
9869 (init_record_btrace_ops): Initialize to_find_new_threads and
9872 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9874 * record-btrace.c (record_btrace_resume): New.
9875 (record_btrace_wait): New.
9876 (init_record_btrace_ops): Initialize to_wait and to_resume.
9878 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9880 * record-btrace.c (record_btrace_xfer_partial)
9881 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9882 (record_btrace_allow_memory_access): New.
9883 (init_record_btrace_ops): Initialize new methods.
9884 * target.c (raw_memory_xfer_partial): Bail out if target reports
9885 that this memory is not available.
9887 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9889 * target.h (target_ops) <to_insert_breakpoint>
9890 <to_remove_breakpoint>: Add target_ops parameter.
9891 (forward_target_insert_breakpoint): New.
9892 (forward_target_remove_breakpoint): New.
9893 (memory_remove_breakpoint, memory_insert_breakpoint):
9894 Add target_ops parameter.
9895 * target.c (target_insert_breakpoint): Split into this and ...
9896 (forward_target_insert_breakpoint): ... this.
9897 (target_remove_breakpoint): Split into this and ...
9898 (forward_target_remove_breakpoint): ... this.
9899 (debug_to_insert_breakpoint): Add target_ops parameter.
9900 Call forward_target_insert_breakpoint.
9901 (debug_to_remove_breakpoint): Add target_ops parameter.
9902 Call forward_target_remove_breakpoint.
9903 (update_current_target): Do not inherit or default to_insert_breakpoint
9904 and to_remove_breakpoint.
9905 * corelow.c (ignore): Add target_ops parameter.
9906 * exec.c (ignore): Add target_ops parameter.
9907 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9908 Add target_ops parameter.
9909 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9910 Add target_ops parameter.
9911 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9912 Add target_ops parameter.
9913 * record-full.c (record_full_beneath_to_insert_breakpoint)
9914 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9915 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9916 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9917 (record_full_core_remove_breakpoint): Add target_ops parameter.
9919 (record_full_beneath_to_insert_breakpoint_ops)
9920 (record_full_beneath_to_remove_breakpoint_ops)
9921 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9922 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9923 tmp_to_remove_breakpoint_ops,
9924 record_full_beneath_to_insert_breakpoint_ops, and
9925 record_full_beneath_to_remove_breakpoint_ops.
9926 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9927 (m32r_remove_breakpoint): Add target_ops parameter.
9928 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9929 Add target_ops parameter.
9930 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9931 Add target_ops parameter.
9933 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9934 Markus Metzger <markus.t.metzger@intel.com>
9936 * record-btrace.c: Include frame-unwind.h.
9937 (record_btrace_frame_unwind_stop_reason)
9938 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9939 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9941 (init_record_btrace_ops): Install it.
9943 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9945 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9948 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9950 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9953 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9955 * frame-unwind.c: Include target.h.
9956 (frame_unwind_try_unwinder): New function with code from ...
9957 (frame_unwind_find_by_frame): ... here. New variable
9958 unwinder_from_target, call also target_get_unwinder)
9959 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9960 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9961 * target.h (struct target_ops): New fields to_get_unwinder and
9962 to_get_tailcall_unwinder.
9963 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9965 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9967 * record-btrace.c (record_btrace_fetch_registers)
9968 (record_btrace_store_registers)
9969 (record_btrace_to_prepare_to_store): New.
9970 (init_record_btrace_ops): Add the above.
9972 2014-01-16 Tom Tromey <tromey@redhat.com>
9974 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9975 * target.h (struct target_ops) <to_prepare_to_store>: Add
9977 (target_prepare_to_store): Add argument.
9978 * target.c (debug_to_prepare_to_store): Add argument.
9979 (update_current_target): Update.
9980 * remote.c (remote_prepare_to_store): Add 'self' argument.
9981 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9982 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9983 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9984 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9986 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9987 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9988 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9989 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9990 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9992 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9994 * btrace.h (replay) <replay>: New.
9995 (btrace_is_replaying): New.
9996 * btrace.c (btrace_clear): Free replay iterator.
9997 (btrace_is_replaying): New.
9998 * record-btrace.c (record_btrace_is_replaying): New.
9999 (record_btrace_info): Print insn number if replaying.
10000 (record_btrace_insn_history): Start at replay position.
10001 (record_btrace_call_history): Start at replay position.
10002 (init_record_btrace_ops): Init to_record_is_replaying.
10004 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10006 * record-btrace.c (record_btrace_insn_history_range): Include
10008 (record_btrace_insn_history_from): Adjust range.
10009 (record_btrace_call_history_range): Include
10011 (record_btrace_call_history_from): Adjust range.
10012 * NEWS: Announce changes.
10014 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10016 * record.h (enum record_print_flag)
10017 <record_print_indent_calls>: New.
10018 * record.c (get_call_history_modifiers): Recognize /c modifier.
10019 (_initialize_record): Document /c modifier.
10020 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10021 Reorder fields. Optionally indent the function name. Update
10023 * NEWS: Announce changes.
10025 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10027 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10029 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10031 * btrace.c (ftrace_new_function): Start counting at one.
10032 * record-btrace.c (record_btrace_info): Adjust number of calls
10034 * NEWS: Announce it.
10036 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10038 * record-btrace.c (btrace_call_history_insn_range): Print
10039 insn range as [begin, end].
10041 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10043 * btrace.h (struct btrace_func_link): New.
10044 (enum btrace_function_flag): New.
10045 (struct btrace_inst): Rename to ...
10046 (struct btrace_insn): ...this. Update all users.
10047 (struct btrace_func) <ibegin, iend>: Remove.
10048 (struct btrace_func_link): New.
10049 (struct btrace_func): Rename to ...
10050 (struct btrace_function): ...this. Update all users.
10051 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10052 (number, level, flags>: New.
10053 (struct btrace_insn_iterator): Rename to ...
10054 (struct btrace_insn_history): ...this.
10056 (struct btrace_insn_iterator, btrace_call_iterator): New.
10057 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10058 (struct btrace_target_info) <begin, end, level>
10059 <insn_history, call_history>: New.
10060 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10061 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10062 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10063 (btrace_call_number, btrace_call_begin, btrace_call_end)
10064 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10065 (btrace_find_function_by_number, btrace_set_insn_history)
10066 (btrace_set_call_history): New.
10067 * btrace.c (btrace_init_insn_iterator)
10068 (btrace_init_func_iterator, compute_itrace): Remove.
10069 (ftrace_print_function_name, ftrace_print_filename)
10070 (ftrace_skip_file): Change
10071 parameter to const.
10072 (ftrace_init_func): Remove.
10073 (ftrace_debug): Use new btrace_function fields.
10074 (ftrace_function_switched): Also consider gaining and
10075 losing symbol information).
10076 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10077 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10078 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10080 (ftrace_new_function): Move. Remove debug print.
10081 (ftrace_update_lines, ftrace_update_insns): New.
10082 (ftrace_update_function): Check for call, ret, and jump.
10083 (compute_ftrace): Renamed to ...
10084 (btrace_compute_ftrace): ...this. Rewritten to compute call
10086 (btrace_fetch, btrace_clear): Updated.
10087 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10088 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10089 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10090 (btrace_call_number, btrace_call_begin, btrace_call_end)
10091 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10092 (btrace_find_function_by_number, btrace_set_insn_history)
10093 (btrace_set_call_history): New.
10094 * record-btrace.c (require_btrace): Use new btrace thread
10096 (record_btrace_info, btrace_insn_history)
10097 (record_btrace_insn_history, record_btrace_insn_history_range):
10098 Use new btrace thread info fields and new iterator.
10099 (btrace_func_history_src_line): Rename to ...
10100 (btrace_call_history_src_line): ...this. Use new btrace
10101 thread info fields.
10102 (btrace_func_history): Rename to ...
10103 (btrace_call_history): ...this. Use new btrace thread info
10104 fields and new iterator.
10105 (record_btrace_call_history, record_btrace_call_history_range):
10106 Use new btrace thread info fields and new iterator.
10108 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10110 * frame.h (frame_id_build_unavailable_stack_special): New.
10111 * frame.c (frame_id_build_unavailable_stack_special): New.
10113 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10115 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10116 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10117 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10119 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10120 (i386_insn_is_jump, i386_jmp_p): New.
10121 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10122 insn_is_jump to gdbarch.
10123 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10124 * gdbarch.h: Regenerated.
10125 * gdbarch.c: Regenerated.
10126 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10127 (default_insn_is_jump): New.
10128 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10129 (default_insn_is_jump): New.
10131 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10133 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10135 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10136 (btrace_read_type) <btrace_read_new>: Change to ...
10137 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10139 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10141 * common/linux-btrace.c (linux_read_btrace): Free trace from
10142 previous iteration.
10144 2014-01-15 Doug Evans <dje@google.com>
10146 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10149 2014-01-15 Tom Tromey <tromey@redhat.com>
10151 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10152 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10153 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10154 (set_objfile_main_name): New function.
10155 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10156 language_of_main>: New fields.
10157 (set_objfile_main_name): Declare.
10158 * symtab.c (find_main_name): Loop over objfiles to find the main
10160 (set_main_name): Now static.
10161 (get_main_info): Add comment.
10162 * symtab.h (set_main_name): Don't declare.
10164 2014-01-15 Tom Tromey <tromey@redhat.com>
10166 * symtab.c (main_progspace_key): New global.
10167 (struct main_info): New.
10168 (name_of_main, language_of_main): Remove.
10169 (get_main_info, main_info_cleanup): New function.
10170 (set_main_name, main_name, main_language): Use get_main_info.
10171 (_initialize_symtab): Initialize main_progspace_key.
10173 2014-01-15 Tom Tromey <tromey@redhat.com>
10175 * dbxread.c (process_one_symbol): Update.
10176 * dwarf2read.c (read_partial_die): Update.
10177 * symfile.c (set_initial_language): Call main_language.
10178 * symtab.c (language_of_main): Now static.
10179 (set_main_name): Add 'lang' parameter.
10180 (find_main_name): Update.
10181 (main_language): New function.
10182 (symtab_observer_executable_changed): Update.
10183 * symtab.h (set_main_name): Update.
10184 (language_of_main): Remove.
10185 (main_language): Declare.
10187 2014-01-15 Tom Tromey <tromey@redhat.com>
10189 * symfile.c (init_entry_point_info): Use new "initialized" field.
10191 * objfiles.h (struct entry_point) <initialized>: New field.
10192 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10193 (struct objfile) <ei>: ...here. Remove.
10194 * objfiles.c (entry_point_address_query): Update.
10196 2014-01-15 Tom Tromey <tromey@redhat.com>
10198 * objfiles.c (entry_point_address_query): Relocate entry point
10200 (objfile_relocate1): Do not relocate entry point address.
10201 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10202 <the_bfd_section_index>: New field.
10203 * symfile.c (init_entry_point_info): Find the entry point's
10206 2014-01-15 Tom Tromey <tromey@redhat.com>
10208 * solib-frv.c (enable_break): Use entry_point_address_query.
10210 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10212 * NEWS: Add note on improved process record-replay on
10213 arm*-linux* targets.
10215 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10217 * arm-tdep.c (enum arm_record_result): New enum.
10218 (arm_record_unsupported_insn): New function.
10219 (arm_record_coproc_data_proc): Removed.
10220 (thumb2_record_ld_st_multiple): New function.
10221 (thumb2_record_ld_st_dual_ex_tbb): New function.
10222 (thumb2_record_data_proc_sreg_mimm): New function.
10223 (thumb2_record_ps_dest_generic): New function.
10224 (thumb2_record_branch_misc_cntrl): New function.
10225 (thumb2_record_str_single_data): New function.
10226 (thumb2_record_ld_mem_hints): New function.
10227 (thumb2_record_ld_word): New function.
10228 (thumb2_record_lmul_lmla_div): New function.
10229 (thumb2_record_decode_insn_handler): New function.
10230 (decode_insn): Add thumb32 instruction handlers.
10232 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10234 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10235 (struct arm_linux_record_tdep): Declare.
10236 (arm_canonicalize_syscall): New function.
10237 (arm_all_but_pc_registers_record): New function.
10238 (arm_linux_syscall_record): New function.
10239 (arm_linux_init_abi): Add syscall recording constructs.
10240 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10241 decoding. (arm_record_coproc_data_proc): Update arm syscall
10243 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10244 <arm_syscall_record>: New field.
10245 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10248 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10250 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10251 register for push instruction recording.
10253 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10255 * arm-tdep.c (thumb_record_misc): Update to correct logical
10256 error while recording ldm, ldmia and pop instructions.
10258 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10260 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10262 2014-01-15 Pedro Alves <palves@redhat.com>
10264 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10265 (go32_resume, go32_fetch_registers, store_register)
10266 (go32_store_registers, go32_prepare_to_store)
10267 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10268 (go32_create_inferior, go32_can_run, go32_terminal_init)
10269 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10272 2014-01-15 Tom Tromey <tromey@redhat.com>
10274 * target.h (async_callback_ftype): New typedef.
10275 (struct target_ops) <to_async>: Use it.
10277 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10279 * python/py-value.c (get_field_type): Remove unnecessary curly
10280 braces for single-statement if block.
10282 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10284 * python/py-type.c (convert_field): Add missing empty line
10285 after declarations.
10287 2014-01-14 Doug Evans <dje@google.com>
10289 * symfile.h (expand_symtabs_matching): Renamed from
10290 expand_partial_symbol_names. Update prototype.
10291 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10292 * symfile.c (expand_symtabs_matching): Renamed from
10293 expand_partial_symbol_names. New args file_matcher, kind.
10294 Rename arg fun to symbol_matcher.
10295 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10296 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10297 ada_expand_partial_symbol_name.
10298 (ada_make_symbol_completion_list): Update to call
10299 expand_symtabs_matching.
10300 (ada_add_global_exceptions): Call expand_symtabs_matching.
10301 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10302 call map_symbol_filenames.
10303 * symtab.c (sources_info): Update to call map_symbol_filenames.
10304 (search_symbols): Call expand_symtabs_matching.
10305 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10306 (default_make_symbol_completion_list_break_on): Update to call
10307 expand_symtabs_matching.
10308 (make_source_files_completion_list): Update to call
10309 map_symbol_filenames.
10311 2014-01-14 Doug Evans <dje@google.com>
10313 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10314 (expand_symtabs_symbol_matcher_ftype): New typedef.
10315 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10316 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10317 * symfile.c (expand_partial_symbol_names): Update to use
10318 expand_symtabs_symbol_matcher_ftype.
10319 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10320 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10321 Arg name_matcher renamed to symbol_matcher.
10322 * psymtab.c (recursively_search_psymtabs): Update to use
10323 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10325 (expand_symtabs_matching_via_partial): Update to use
10326 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10327 Arg name_matcher renamed to symbol_matcher.
10329 2014-01-14 Doug Evans <dje@google.com>
10331 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10332 (map_partial_symbol_filenames): Ditto.
10333 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10334 (map_partial_symbol_filenames): Ditto.
10335 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10336 (map_partial_symbol_filenames): Ditto.
10337 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10338 (map_partial_symbol_filenames): Ditto.
10339 * symtab.c: Delete #include "psymtab.h".
10341 2014-01-14 Pedro Alves <palves@redhat.com>
10342 Tom Tromey <tromey@redhat.com>
10344 * infrun.c (use_displaced_stepping): Use find_record_target
10345 instead of RECORD_IS_USED.
10346 (adjust_pc_after_break): Use record_full_is_used instead of
10348 * record-btrace.c (record_btrace_open): Call record_preopen
10349 instead of checking RECORD_IS_USED.
10350 * record-full.c (record_full_shortname)
10351 (record_full_core_shortname): New globals.
10352 (record_full_is_used): New function.
10353 (find_full_open): Call record_preopen instead of checking
10355 (init_record_full_ops): Set the target's shortname to
10356 record_full_shortname.
10357 (init_record_full_core_ops): Set the target's shortname to
10358 record_full_core_shortname.
10359 * record-full.h (record_full_is_used): Declare.
10360 * record.c (find_record_target): Make extern.
10361 (record_preopen): New function.
10362 * record.h (RECORD_IS_USED): Delete macro.
10363 (find_record_target, record_preopen): Declare functions.
10365 2014-01-14 Yao Qi <yao@codesourcery.com>
10367 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10368 'len''s type to ULONGEST.
10369 (core_xfer_shared_libraries_aix): Likewise.
10370 * gdbarch.c, gdbarch.h: Regenerated.
10371 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10372 Change type of 'len' to ULONGEST.
10373 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10374 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10376 2014-01-14 Yao Qi <yao@codesourcery.com>
10378 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10379 type of 'len' to ULONGEST.
10380 (linux_xfer_osdata_processgroups): Likewise.
10381 (linux_xfer_osdata_threads): Likewise.
10382 (linux_xfer_osdata_fds): Likewise.
10383 (linux_xfer_osdata_isockets): Likewise.
10384 (linux_xfer_osdata_shm): Likewise.
10385 (linux_xfer_osdata_sem): Likewise.
10386 (linux_xfer_osdata_msg): Likewise.
10387 (linux_common_xfer_osdata): Likewise.
10388 (struct osdata_type) <getter>: Likewise.
10389 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10392 2014-01-14 Yao Qi <yao@codesourcery.com>
10394 * target.h (target_xfer_partial_ftype): Update.
10395 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10397 * aix-thread.c (aix_thread_xfer_partial): Change type of
10398 argument 'len' to ULONGEST.
10399 * auxv.c (procfs_xfer_auxv): Likewise.
10400 (ld_so_xfer_auxv): Likewise.
10401 (memory_xfer_auxv): Likewise.
10402 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10403 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10404 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10405 * corelow.c (core_xfer_partial): Likewise.
10406 * ctf.c (ctf_xfer_partial): Likewise.
10407 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10409 (darwin_read_dyld_info): Likewise.
10410 (darwin_xfer_partial): Likewise.
10411 * exec.c (section_table_xfer_memory_partial): Likewise.
10412 (exec_xfer_partial): Likewise.
10413 * exec.h (section_table_xfer_memory_partial): Update
10415 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10416 instead of plongest.
10417 (gnu_xfer_partial): Likewise.
10418 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10419 (ia64_hpux_xfer_solib_got): Likewise.
10420 (ia64_hpux_xfer_partial): Likewise.
10421 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10422 * inf-ptrace.c (inf_ptrace_xfer_partial):
10423 * inf-ttrace.c (inf_ttrace_xfer_partial):
10424 * linux-nat.c (linux_xfer_siginfo): Likewise.
10425 (linux_nat_xfer_partial): Likewise.
10426 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10427 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10428 * monitor.c (monitor_xfer_memory): Likewise.
10429 (monitor_xfer_partial): Likewise.
10430 * procfs.c (procfs_xfer_partial): Likewise.
10431 * record-full.c (record_full_xfer_partial): Likewise.
10432 (record_full_core_xfer_partial): Likewise.
10433 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10434 instead of plongest.
10435 (gdbsim_xfer_partial): Likewise.
10436 * remote.c (remote_xfer_partial): Likewise.
10437 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10438 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10440 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10441 (rs6000_xfer_shared_libraries): Likewise.
10442 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10443 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10444 (sparc_xfer_partial): Likewise.
10445 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10446 (spu_xfer_partial): Likewise.
10447 * spu-multiarch.c (spu_xfer_partial): Likewise.
10448 * target.c (target_read_live_memory): Likewise.
10449 (memory_xfer_live_readonly_partial): Likewise.
10450 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10451 (target_xfer_partial, default_xfer_partial): Likewise.
10452 (current_xfer_partial): Likewise.
10453 * tracepoint.c (tfile_xfer_partial): Likewise.
10454 * windows-nat.c (windows_xfer_memory): Likewise. Call
10455 pulongest instead of plongest.
10456 (windows_xfer_partial): Likewise.
10457 (windows_xfer_shared_libraries): Likewise.
10459 2014-01-14 Yao Qi <yao@codesourcery.com>
10461 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10462 target_xfer_partial_ftype.
10464 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10468 * valops.c (value_struct_elt_bitpos): New function
10469 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10470 object to 'None' if the field name is an empty string ("").
10471 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10472 attribute to look for a field when 'name' is 'None'.
10473 (get_field_type): New function
10475 2014-01-13 Doug Evans <dje@google.com>
10478 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10479 (try_open_dwop_file): Ditto.
10480 * gdb_bfd.c: #include "vec.h".
10481 (bfdp): New typedef.
10482 (struct gdb_bfd_data): New member included_bfds.
10483 (gdb_bfd_unref): Unref all included bfds.
10484 (gdb_bfd_record_inclusion): New function.
10485 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10487 2014-01-13 Tom Tromey <tromey@redhat.com>
10489 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10491 2014-01-13 Tom Tromey <tromey@redhat.com>
10493 * defs.h (use_windows): Remove.
10494 * gdb.c (main): Update.
10495 * main.c (captured_main, gdb_main): Update.
10496 * main.h (struct captured_main_args) <use_windows>: Remove.
10497 * top.c (use_windows): Remove.
10499 2014-01-13 Tom Tromey <tromey@redhat.com>
10501 * defs.h (deprecated_flush_hook): Remove.
10503 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10506 * linux-thread-db.c (try_thread_db_load): Add parameter
10507 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10508 (try_thread_db_load_from_pdir_1): Move it there from here.
10509 (try_thread_db_load_from_sdir): Update caller.
10510 (try_thread_db_load_from_dir): Move it there from here.
10512 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10514 * regformats/regdat.sh: Always rewrite the register file.
10516 2014-01-13 Pedro Alves <palves@redhat.com>
10518 * Makefile.in (CHECK_HEADERS): New variable.
10519 (check-headers:): New rule.
10521 2014-01-13 Tom Tromey <tromey@redhat.com>
10523 * cli/cli-setshow.c (do_set_command): Update.
10524 * defs.h (deprecated_set_hook): Remove.
10525 * top.c (deprecated_set_hook): Remove.
10527 2014-01-13 Pedro Alves <palves@redhat.com>
10529 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10530 the tracepoint if the PC is a pseudo-register.
10532 2014-01-13 Tom Tromey <tromey@redhat.com>
10534 * defs.h (XCALLOC): Remove.
10535 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10536 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10537 * dwarf2loc.c (allocate_piece_closure): Likewise.
10538 * elfread.c (elf_symfile_segments): Likewise.
10539 (elf_symfile_segments): Likewise.
10540 * gdbtypes.c (copy_type_recursive): Likewise.
10541 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10542 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10543 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10545 * mt-tdep.c (mt_gdbarch_init): Likewise.
10546 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10548 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10549 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10550 * registry.c (registry_alloc_data): Likewise.
10551 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10552 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10553 * serial.c (serial_fdopen_ops): Likewise.
10554 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10556 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10557 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10560 2014-01-13 Tom Tromey <tromey@redhat.com>
10562 * defs.h (XMALLOC): Remove.
10563 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10564 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10565 * cli-out.c (struct ui_out *): Likewise.
10566 * cli/cli-dump.c (add_dump_command): Likewise.
10567 (add_dump_command): Likewise.
10568 * complaints.c (get_complaints): Likewise.
10569 (find_complaint): Likewise.
10570 * dwarf2-frame.c (execute_cfa_program): Likewise.
10571 * dwarf2read.c (abbrev_table_read_table): Likewise.
10572 * gdbarch.sh: Likewise.
10573 * gdbarch.c: Rebuild.
10574 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10575 * interps.c (interp_new): Likewise.
10576 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10577 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10578 * mi/mi-console.c (mi_console_file_new): Likewise.
10579 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10580 * mi/mi-out.c (mi_out_new): Likewise.
10581 * mi/mi-parse.c (mi_parse): Likewise.
10582 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10583 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10584 * observer.c (xalloc_observer_list_node): Likewise.
10585 * regcache.c (regcache_xmalloc_1): Likewise.
10586 * reggroups.c (reggroup_new): Likewise.
10587 (_initialize_reggroup): Likewise.
10588 * registry.c (register_data_with_cleanup): Likewise.
10589 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10590 * ser-base.c (serial_ttystate): Likewise.
10591 * ser-mingw.c (make_pipe_state): Likewise.
10592 * ser-pipe.c (pipe_open): Likewise.
10593 * serial.c (serial_open): Likewise.
10594 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10595 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10596 (tui_alloc_win_info): Likewise.
10597 (tui_add_content_elements): Likewise.
10598 * tui/tui-file.c (tui_file_new): Likewise.
10599 * tui/tui-out.c (tui_out_new): Likewise.
10600 * ui-file.c (mem_file_new): Likewise.
10601 * ui-out.c (push_level): Likewise.
10602 (make_cleanup_ui_out_end): Likewise.
10603 (append_header_to_list): Likewise.
10604 (ui_out_new): Likewise.
10605 * user-regs.c (user_reg_add_builtin): Likewise.
10607 2014-01-13 Tom Tromey <tromey@redhat.com>
10609 * defs.h (XZALLOC): Remove.
10610 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10611 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10612 (get_ada_tasks_inferior_data): Likewise.
10613 * auto-load.c (get_auto_load_pspace_data): Likewise.
10614 * auxv.c (get_auxv_inferior_data): Likewise.
10615 * bfd-target.c (target_bfd_reopen): Likewise.
10616 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10617 (deprecated_insert_raw_breakpoint): Likewise.
10618 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10619 * corelow.c (core_open): Likewise.
10620 * darwin-nat.c (darwin_check_new_threads): Likewise.
10621 (darwin_attach_pid): Likewise.
10622 * dummy-frame.c (dummy_frame_push): Likewise.
10623 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10624 * dwarf2loc.c (allocate_piece_closure): Likewise.
10625 * elfread.c (elf_symfile_segments): Likewise.
10626 * eval.c (ptrmath_type_p): Likewise.
10627 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10628 * gdbtypes.c (alloc_type_arch): Likewise.
10629 (alloc_type_instance): Likewise.
10630 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10631 * inf-child.c (inf_child_can_use_agent): Likewise.
10632 * inflow.c (get_inflow_inferior_data): Likewise.
10633 * infrun.c (save_infcall_suspend_state): Likewise.
10634 * jit.c (jit_reader_load): Likewise.
10635 (get_jit_objfile_data): Likewise.
10636 (get_jit_program_space_data): Likewise.
10637 (jit_object_open_impl): Likewise.
10638 (jit_symtab_open_impl): Likewise.
10639 (jit_block_open_impl): Likewise.
10640 (jit_frame_sniffer): Likewise.
10641 * linux-fork.c (add_fork): Likewise.
10642 * maint.c (make_command_stats_cleanup): Likewise.
10643 * objfiles.c (get_objfile_pspace_data): Likewise.
10644 * opencl-lang.c (struct lval_closure): Likewise.
10645 * osdata.c (osdata_start_osdata): Likewise.
10646 * progspace.c (new_address_space): Likewise.
10647 (add_program_space): Likewise.
10648 * remote-sim.c (get_sim_inferior_data): Likewise.
10649 * sh-tdep.c (sh_gdbarch_init): Likewise.
10650 * skip.c (Ignore): Likewise.
10651 (skip_delete_command): Likewise.
10652 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10653 (library_list_start_library): Likewise.
10654 (solib_aix_current_sos): Likewise.
10655 * solib-darwin.c (get_darwin_info): Likewise.
10656 (darwin_current_sos): Likewise.
10657 * solib-dsbt.c (get_dsbt_info): Likewise.
10658 * solib-ia64-hpux.c (new_so_list): Likewise.
10659 (ia64_hpux_get_solib_linkage_addr): Likewise.
10660 * solib-spu.c (append_ocl_sos): Likewise.
10661 (spu_current_sos): Likewise.
10662 * solib-svr4.c (get_svr4_info): Likewise.
10663 (svr4_keep_data_in_core): Likewise.
10664 (library_list_start_library): Likewise.
10665 (svr4_default_sos): Likewise.
10666 (svr4_read_so_list): Likewise.
10667 * solib-target.c (library_list_start_library): Likewise.
10668 (solib_target_current_sos): Likewise.
10669 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10670 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10671 * symfile.c (default_symfile_segments): Likewise.
10672 * target-descriptions.c (tdesc_data_init): Likewise.
10673 (tdesc_create_reg): Likewise.
10674 (struct tdesc_type *): Likewise.
10675 (tdesc_create_vector): Likewise.
10676 (tdesc_set_struct_size): Likewise.
10677 (struct tdesc_type *): Likewise.
10678 (tdesc_free_feature): Likewise.
10679 (tdesc_create_feature): Likewise.
10680 * windows-nat.c (windows_add_thread): Likewise.
10681 (windows_make_so): Likewise.
10682 * xml-support.c (gdb_xml_body_text): Likewise.
10683 (gdb_xml_create_parser_and_cleanup): Likewise.
10684 (xml_process_xincludes): Likewise.
10685 * xml-syscall.c (allocate_syscalls_info): Likewise.
10686 (syscall_create_syscall_desc): Likewise.
10688 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10690 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10691 function, with code from i386_stap_parse_special_token.
10692 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10693 (i386_stap_parse_special_token): Move code to the two functions
10694 above; simplify it.
10696 2014-01-09 Pedro Alves <palves@redhat.com>
10697 Hui Zhu <hui@codesourcery.com>
10700 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10701 bp_err_string. Don't mark the location shlib_disabled if the
10702 error thrown wasn't a generic or memory error. Catch errors
10703 thrown while inserting breakpoints in overlayed code. Output
10704 error message of software breakpoints.
10705 * remote.c (remote_insert_breakpoint): If this breakpoint has
10706 target-side commands but this stub doesn't support Z0 packets,
10707 throw NOT_SUPPORTED_ERROR error.
10708 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10709 * target.h (target_insert_breakpoint): Extend comment.
10710 (target_insert_hw_breakpoint): Add comment.
10712 2014-01-08 Pedro Alves <palves@redhat.com>
10714 * remote.c (remote_add_thread): Add threads silently if starting
10716 (remote_notice_new_inferior): If in all-stop, and starting up,
10717 don't call notice_new_inferior.
10718 (get_current_thread): New function, factored out from ...
10719 (add_current_inferior_and_thread): ... this. Adjust.
10720 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10721 found any thread, then select the remote's current thread as GDB's
10722 current thread too.
10724 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10726 * NEWS: Create a new section for the next release branch.
10727 Rename the section of the current branch, now that it has
10730 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10732 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10733 * version.in: Bump version to 7.7.50.DATE-cvs.
10735 2014-01-08 Yao Qi <yao@codesourcery.com>
10737 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10738 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10739 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10741 2014-01-08 Yao Qi <yao@codesourcery.com>
10743 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10744 return value of bfd_get_filename to symbol_file_add_from_bfd.
10746 2014-01-08 Pierre Muller <muller@sourceware.org>
10749 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10750 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10751 to prim_record_mininal_symbol_and_info.
10752 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10753 in call to prim_record_minimal_symbol_and_info.
10754 (read_pe_exported_syms): Set index field of section_data.
10756 2014-01-07 Andrew Pinski <apinski@cavium.com>
10758 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10759 * features/aarch64.c: Regenerate.
10761 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10763 * target.c (return_null): Define.
10764 (update_current_target): Use it instead of return_zero for
10765 functions that return a pointer.
10767 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10769 * source.c (add_path): Fix check for duplicated paths in the previously
10772 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10774 * ada-lang.c: Remove duplicated include statements.
10775 * alphabsd-nat.c: Ditto.
10776 * amd64-darwin-tdep.c: Ditto.
10777 * amd64fbsd-nat.c: Ditto.
10778 * auto-load.c: Ditto.
10780 * breakpoint.c: Ditto.
10781 * dbxread.c: Ditto.
10782 * fork-child.c: Ditto.
10783 * gdb_usleep.c: Ditto.
10784 * i386-darwin-tdep.c: Ditto.
10785 * i386fbsd-nat.c: Ditto.
10787 * inferior.c: Ditto.
10788 * jv-lang.c: Ditto.
10789 * linux-nat.c: Ditto.
10790 * linux-tdep.c: Ditto.
10791 * m68kbsd-nat.c: Ditto.
10792 * m68klinux-nat.c: Ditto.
10793 * microblaze-tdep.c: Ditto.
10794 * mips-linux-tdep.c: Ditto.
10795 * mn10300-tdep.c: Ditto.
10796 * nto-tdep.c: Ditto.
10797 * opencl-lang.c: Ditto.
10799 * printcmd.c: Ditto.
10800 * regcache.c: Ditto.
10801 * remote-m32r-sdi.c: Ditto.
10803 * symfile.c: Ditto.
10805 * tilegx-linux-nat.c: Ditto.
10806 * tilegx-tdep.c: Ditto.
10807 * tracepoint.c: Ditto.
10809 * vaxbsd-nat.c: Ditto.
10810 * windows-nat.c: Ditto.
10811 * xtensa-tdep.c: Ditto.
10813 2014-01-07 Yao Qi <yao@codesourcery.com>
10815 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10817 2014-01-07 Yao Qi <yao@codesourcery.com>
10818 Joel Brobecker <brobecker@adacore.com>
10820 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10821 (pdc_write_regs): Likewise.
10822 (fetch_regs_kernel_thread): Likewise.
10823 (store_regs_kernel_thread): Likewise.
10825 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10827 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10828 tagged type objects to their actual type.
10830 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10832 * ada-valprint.c (print_field_values): Add "language" parameter.
10833 Update calls to print_field_values and print_variant_part.
10834 Pass new parameter "language" in call to val_print instead
10835 of "current_language". Replace call to ada_val_print by call
10837 (print_variant_part): Add "language" parameter.
10838 (ada_val_print_struct_union): Update call to print_field_values.
10840 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10842 * ada-valprint.c (ui_memcpy): Delete.
10843 (ada_print_floating): Update documentation. Add empty line
10844 between between function documentation and implementation.
10845 Delete variable "buffer". Use ui_file_xstrdup in place of
10846 ui_file_put. Minor adjustments following this change.
10848 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10850 * ada-valprint.c (ada_val_print_string): New function,
10851 extracted from ada_val_print_array.
10852 (ada_val_print_array): Replace extracted code by call
10853 to ada_val_print_string followed by a return. Move
10854 "else" branch to the function's top block.
10856 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10858 * ada-valprint.c (ada_val_print_array): Move implementation
10859 down. Rename parameter "offset" and "val" into "offset_aligned"
10860 and "original_value" respectively. Add parameter "offset".
10862 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10864 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10865 re-organizing the code. Change the "???" message printed
10866 when target type is a TYPE_CODE_UNDEF into
10867 "<ref to undefined type>".
10869 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10871 * ada-valprint.c (print_record): Delete, implementation inlined...
10872 (ada_val_print_struct_union): ... here. Remove call to
10873 ada_check_typedef in inlined implementation.
10875 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10877 * ada-valprint.c (ada_val_print_gnat_array): New function,
10878 extracted from ada_val_print_1;
10879 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10880 (ada_val_print_flt, ada_val_print_struct_union)
10881 (ada_val_print_ref): Likewise.
10882 (ada_val_print_1): Delete variables i and elttype.
10883 Replace extracted-out code by call to corresponding
10886 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10888 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10890 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10892 * ada-valprint.c (ada_val_print_1): Replace calls to
10893 ada_val_print_1 by calls to val_print.
10895 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10897 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10898 Update calls to self accordingly. Replace calls to c_val_print
10899 by calls to val_print.
10901 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10903 * ada-valprint.c (print_record): Delete declaration.
10904 (adjust_type_signedness, ada_val_print_1): Likewise.
10905 (ada_val_print): Move function implementation down.
10906 (print_variant_part, print_field_values, print_record):
10907 Move function implementation up.
10909 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10911 * python/py-type.c (typy_get_name): New function.
10912 (type_object_getset): Add entry for attribute "name".
10913 * NEWS: Add entry mentioning this new attribute.
10915 2014-01-07 Yao Qi <yao@codesourcery.com>
10917 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10920 2014-01-07 Yao Qi <yao@codesourcery.com>
10922 * gnu-nat.c (info_port_rights): Add qualifier const to
10925 2014-01-07 Yao Qi <yao@codesourcery.com>
10927 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10929 2014-01-07 Yao Qi <yao@codesourcery.com>
10931 * gnu-nat.c (make_inf) Update declaration.
10932 (make_inf): Make it static.
10933 (inf_set_traced): Likewise.
10934 (inf_port_to_thread, inf_task_died_status): Likewise.
10936 2014-01-07 Yao Qi <yao@codesourcery.com>
10938 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10940 2014-01-07 Yao Qi <yao@codesourcery.com>
10942 * gnu-nat.c (_initialize_gnu_nat): Declare.
10944 2014-01-07 Yao Qi <yao@codesourcery.com>
10946 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10948 (struct gdbarch_info) <byte_order>: Change type to
10950 <byte_order_for_code>: Likewise.
10951 * gdbarch.c, gdbarch.h: Regenerated.
10953 2014-01-06 Sasha Smundak <asmundak@google.com>
10955 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10957 2014-01-06 Tom Tromey <tromey@redhat.com>
10959 * doublest.c (convert_doublest_to_floatformat): Use const, not
10961 * somread.c (som_symtab_read): Likewise.
10963 2014-01-07 Hui Zhu <hui@codesourcery.com>
10965 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10966 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10967 (gdb_bfd_fopen): Ditto.
10968 (gdb_bfd_openr): Ditto.
10969 (gdb_bfd_openw): Ditto.
10970 (gdb_bfd_openr_iovec): Ditto.
10971 (gdb_bfd_fdopenr): Ditto.
10972 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10973 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10975 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10977 * symfile-mem.c (symbol_file_add_from_memory): Removed
10978 gdb_bfd_stash_filename.
10980 2014-01-03 Doug Evans <dje@google.com>
10982 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10985 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10987 Update year range in copyright notice of all files.
10989 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10991 * top.c (print_gdb_version): Set copyright year to 2014.
10993 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10995 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10997 For older changes see ChangeLog-2013.
11003 version-control: never