1 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4 Remove "+ 8" offset in computation of CHAIN_VMA.
6 2014-07-31 Doug Evans <dje@google.com>
8 * inflow.c (child_terminal_inferior): Add comment.
9 (child_terminal_ours_for_output): Add comment.
10 (child_terminal_ours): Add comment.
11 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
12 (linux_nat_terminal_ours): Add comment.
14 2014-07-31 Gary Benson <gbenson@redhat.com>
16 * common/btrace-common.h: Do not include defs.h or server.h.
17 * nat/mips-linux-watch.h: Likewise.
18 * gdb-dlfcn.h: Do not include defs.h.
19 * tracefile.h: Likewise.
21 2014-07-30 Roland McGrath <mcgrathr@google.com>
23 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
25 2014-07-30 Tom Tromey <tromey@redhat.com>
27 * bsd-kvm.c (bsd_kvm_open): Constify.
28 * corelow.c (core_open): Constify.
29 * ctf.c (ctf_open): Constify.
30 * dbug-rom.c (dbug_open): Constify.
31 * exec.c (exec_open): Constify.
32 * m32r-rom.c (m32r_open, mon2000_open): Constify.
33 * microblaze-rom.c (picobug_open): Constify.
34 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
36 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
37 * record-btrace.c (record_btrace_open): Constify.
38 * record-full.c (record_full_core_open_1, record_full_open_1)
39 (record_full_open): Constify.
40 * remote-m32r-sdi.c (m32r_open): Constify.
41 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
42 (rockhopper_open, lsi_open): Constify.
43 * remote-sim.c (gdbsim_open): Constify.
44 * remote.c (remote_open, extended_remote_open, remote_open_1):
46 * target.h (struct target_ops) <to_open>: Make "arg" const.
47 * tracefile-tfile.c (tfile_open): Constify.
49 2014-07-30 Tom Tromey <tromey@redhat.com>
51 * breakpoint.c (map_breakpoint_numbers): Update.
52 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
53 (get_number_const): New function.
54 (get_number): Rewrite using get_number_const.
55 (init_number_or_range): Make "string" const.
56 (number_is_in_list): Make "list" const.
57 * cli/cli-utils.h (get_number_const): Declare.
58 (struct get_number_or_range_state) <string, end_ptr>: Now const.
59 (init_number_or_range, number_is_in_list): Update.
60 * printcmd.c (map_display_numbers): Update.
61 * value.c (value_from_history_ref): Constify.
62 * value.h (value_from_history_ref): Update.
64 2014-07-30 Tom Tromey <tromey@redhat.com>
66 * corefile.c (hook_type, call_extra_exec_file_hooks)
67 (specify_exec_file_hook): Constify.
68 * exec.c (exec_file_attach): Make "filename" const.
69 * gdbcore.h (deprecated_exec_file_display_hook)
70 (specify_exec_file_hook, exec_file_attach): Constify.
71 * main.c (captured_main): Use catch_command_errors_const.
73 2014-07-30 Tom Tromey <tromey@redhat.com>
75 * target.c (open_target): New function.
76 (add_target_with_completer, add_deprecated_target_alias): Use
77 set_cmd_sfunc, set_cmd_context.
78 (debug_to_open): Remove.
79 (setup_target_debug): Update.
81 2014-07-30 Yao Qi <yao@codesourcery.com>
83 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
85 * parse.c (exp_iterate): Update comments.
87 2014-07-30 Gary Benson <gbenson@redhat.com>
89 * common/common-defs.h: New file.
90 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
91 * defs.h: Include common-defs.h.
92 Do not include config.h or build-gnulib/config.h.
94 2014-07-30 Gary Benson <gbenson@redhat.com>
96 * common/common-utils.h: Do not include config.h.
97 * nat/linux-btrace.h: Likewise.
99 2014-07-30 Gary Benson <gbenson@redhat.com>
101 * btrace.c: Include defs.h.
102 * common/ptid.c: Include defs.h or server.h as appropriate.
103 * nat/mips-linux-watch.c: Likewise.
105 2014-07-29 Tom Tromey <tromey@redhat.com>
107 * target.c (target_is_pushed): Simplify.
109 2014-07-29 Joel Brobecker <brobecker@adacore.com>
113 2014-07-29 Yao Qi <yao@codesourcery.com>
116 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
118 2014-07-28 Doug Evans <xdje42@gmail.com>
121 * guile/scm-param.c (pascm_parameter_defined_p): New function.
122 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
125 2014-07-28 Will Newton <will.newton@linaro.org>
127 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
128 (THUMB2_SET_R7_SIGRETURN2): Likewise.
129 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
130 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
131 (THUMB2_EABI_SYSCALL): Likewise.
132 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
134 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
135 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
137 2014-07-27 Doug Evans <xdje42@gmail.com>
139 * guile/scm-param.c (pascm_print_param_smob): Fix output.
141 2014-07-27 Doug Evans <xdje42@gmail.com>
143 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
145 2014-07-26 Ludovic Courtès <ludo@gnu.org>
146 Doug Evans <xdje42@gmail.com>
149 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
150 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
151 * configure.ac: Try to use guild to compile an scm file, if it fails
152 then disable guile support.
153 * configure: Regenerate.
154 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
156 (GUILE_COMPILED_FILES): New variable.
157 (GUILE_FILES) Update.
158 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
159 (stamp-guile): Compile scm files.
160 * guile/guile.c (boot_guile_support): New function.
161 (standard_throw_args_p): New function.
162 (print_standard_throw_error, print_throw_error): New functions.
163 (handle_boot_error): New function.
164 (initialize_scheme_side): Rewrite to call boot_guile_support.
165 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
166 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
168 2014-07-26 Ludovic Courtès <ludo@gnu.org>
169 Doug Evans <xdje42@gmail.com>
172 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
173 * guile/lib/gdb/support.scm: New file.
174 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
175 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
177 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
179 (%assert-type): Ditto, and renamed to assert-type.
180 (%exception-print-style): Delete.
182 2014-07-26 Doug Evans <xdje42@gmail.com>
185 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
186 * configure: Regenerate.
187 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
189 (PYTHON_FILES): New variable.
190 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
191 (GUILE_FILES): New variable.
192 (stamp-python, install-python, uninstall-python): Handle empty
194 (stamp-guile, install-guile, uninstall-guile): Ditto.
196 2014-07-26 Doug Evans <xdje42@gmail.com>
199 * guile/lib/gdb.scm (pretty-printers): Export.
200 (set-pretty-printers!): Export.
201 * guile/lib/gdb/printing.scm (gdb module): Update.
202 (prepend-pretty-printer!, append-pretty-printer!): Update.
203 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
204 (pretty_printer_list_var): Delete.
205 (pretty_printer_list): New static global.
206 (gdbscm_pretty_printers): New function.
207 (gdbscm_set_pretty_printers_x): New function.
208 (ppscm_find_pretty_printer_from_gdb): Update.
209 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
210 (gdbscm_initialize_pretty_printers): Update.
212 2014-07-26 Doug Evans <xdje42@gmail.com>
215 * configure.ac: Add check for header gc/gc.h.
216 Add check for function setenv.
217 * configure: Regenerate.
218 * config.in: Regenerate.
219 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
221 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
223 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
224 variation in gdbarch matching.
226 2014-07-25 Tom Tromey <tromey@redhat.com>
228 * exec.c (using_exec_ops): Remove.
229 (exec_close_1): Update. Remove extraneous block, reindent.
230 (add_target_sections): Use target_is_pushed.
232 2014-07-25 Pedro Alves <palves@redhat.com>
234 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
235 * monitor.c (monitor_create_inferior): Likewise.
236 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
237 * remote-sim.c (gdbsim_create_inferior): Likewise.
238 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
239 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
240 * windows-nat.c (do_initial_windows_stuff): Likewise.
242 2014-07-25 Pedro Alves <palves@redhat.com>
244 * NEWS: Mention signal passing and "signal" command changes.
245 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
247 * breakpoint.c (until_break_command): Adjust clear_proceed_status
249 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
250 * infcmd.c (proceed_thread_callback, continue_1, step_once)
251 (jump_command): Adjust clear_proceed_status call.
252 (signal_command): Warn if other thread that are resumed have
253 signals that will be delivered. Adjust clear_proceed_status call.
254 (until_next_command, finish_command)
255 (proceed_after_attach_callback, attach_command_post_wait)
256 (attach_command): Adjust clear_proceed_status call.
257 * infrun.c (proceed_after_vfork_done): Likewise.
258 (proceed_after_attach_callback): Adjust comment.
259 (clear_proceed_status_thread): Clear stop_signal if not in pass
261 (clear_proceed_status_callback): Delete.
262 (clear_proceed_status): New 'step' parameter. Only clear the
263 proceed status of threads the command being prepared is about to
265 (proceed): If passed in an explicit signal, override stop_signal
266 with it. Don't pass the last stop signal to the thread we're
268 (init_wait_for_inferior): Adjust clear_proceed_status call.
269 (switch_back_to_stepped_thread): Clear the signal if it should not
271 * infrun.h (clear_proceed_status): New 'step' parameter.
272 (user_visible_resume_ptid): Add comment.
273 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
274 signal is in pass state.
275 * remote.c (append_pending_thread_resumptions): Likewise.
276 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
278 2014-07-25 Tom Tromey <tromey@redhat.com>
280 * target.h (target_stopped_data_address)
281 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
284 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
286 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
288 (avr_pointer_to_address): Likewise.
290 2014-07-24 Tom Tromey <tromey@redhat.com>
292 * monitor.c (compile_pattern): Update.
293 * target.h (struct target_ops) <to_shortname, to_longname,
296 2014-07-24 Tom Tromey <tromey@redhat.com>
298 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
299 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
300 (add_info_alias, add_com): Make "doc" const.
301 (print_doc_line): Make "str" const.
302 (delete_cmd): Update.
303 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
304 (print_doc_line): Update.
305 * cli/cli-script.c (document_command): Update.
306 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
307 (add_com, add_info, add_info_alias): Update.
308 * guile/scm-cmd.c (cmdscm_destroyer): Update.
309 * python/py-cmd.c (cmdpy_destroyer): Update.
311 2014-07-24 Tom Tromey <tromey@redhat.com>
313 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
314 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
315 (help_cmd_list): Constify.
316 (lookup_cmd): Update.
317 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
319 (help_cmd_list, apropos_cmd): Update.
320 * cli/cli-script.c (show_user): Update.
321 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
322 * cli/cli-setshow.h (cmd_show_list): Update.
323 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
324 (cmd_show_list): Update.
325 * guile/scm-cmd.c (cmdscm_destroyer): Update.
326 * python/py-cmd.c (cmdpy_destroyer): Update.
328 2014-07-24 Tom Tromey <tromey@redhat.com>
330 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
331 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
333 * command.h (deprecate_cmd): Update.
334 * maint.c (maintenance_do_deprecate): Add casts.
336 2014-07-24 Tom Tromey <tromey@redhat.com>
338 * cli/cli-decode.c (help_cmd): Make parameter "const".
339 * cli/cli-decode.h (help_cmd): Update.
341 2014-07-24 Tom Tromey <tromey@redhat.com>
343 * stack.c (up_silently_base, down_silently_base): Make argument
346 2014-07-24 Tom Tromey <tromey@redhat.com>
348 * solib.c (solib_add): Make "pattern" const.
349 * solib.h (solib_add): Update.
351 2014-07-24 Tom Tromey <tromey@redhat.com>
353 * remote.c (remote_serial_open, print_packet, putpkt)
354 (putpkt_binary): Constify.
355 * remote.h (putpkt): Update.
357 2014-07-24 Tom Tromey <tromey@redhat.com>
359 * monitor.c (monitor_open): Make "args" const.
360 * monitor.h (monitor_open): Update.
362 2014-07-24 Tom Tromey <tromey@redhat.com>
364 * maint.c (match_bfd_flags): Make "string" const.
365 (print_bfd_section_info): Remove casts.
366 (print_objfile_section_info): Make "string" const.
368 2014-07-24 Tom Tromey <tromey@redhat.com>
370 * inf-child.c (inf_child_open_target): Make "arg" const.
371 * inf-child.h (inf_child_open_target): Update.
373 2014-07-24 Tom Tromey <tromey@redhat.com>
375 * environ.c (unset_in_environ): Make "var" const.
376 * environ.h (unset_in_environ): Update.
378 2014-07-24 Tom Tromey <tromey@redhat.com>
380 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
382 (scan_filename_with_cleanup): Likewise.
383 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
384 Make arguments const.
385 (restore_command): Update.
387 2014-07-24 Pedro Alves <palves@redhat.com>
389 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
391 2014-07-24 Tom Tromey <tromey@redhat.com>
392 Gary Benson <gbenson@redhat.com>
394 * nat/linux-ptrace.c (additional_flags): New global.
395 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
396 additional_flags; don't check GDBSERVER.
397 (linux_ptrace_set_additional_flags): New function.
398 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
400 * linux-nat.c (_initialize_linux_nat): Call
401 linux_ptrace_set_additional_flags.
403 2014-07-24 Tom Tromey <tromey@redhat.com>
405 * make-target-delegates (munge_type, write_debugmethod): New
407 (debug_names): New global.
408 ($TARGET_DEBUG_PRINTER): New global.
409 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
411 Write debug methods. Generate init_debug_target.
412 * target-debug.h: New file.
413 * target-delegates.c: Rebuild.
414 * target.c: Include target-debug.h.
415 (debug_target): Hoist definition.
416 (target_kill, target_get_section_table, target_memory_map)
417 (target_flash_erase, target_flash_done, target_detach)
418 (target_disconnect, target_wait, target_resume)
419 (target_pass_signals, target_program_signals, target_follow_fork)
420 (target_mourn_inferior, target_search_memory)
421 (target_thread_address_space, target_close)
422 (target_find_new_threads, target_core_of_thread)
423 (target_verify_memory, target_insert_mask_watchpoint)
424 (target_remove_mask_watchpoint): Remove targetdebug code.
425 (debug_to_post_attach, debug_to_prepare_to_store)
426 (debug_to_files_info, debug_to_insert_breakpoint)
427 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
428 (debug_to_region_ok_for_hw_watchpoint)
429 (debug_to_can_accel_watchpoint_condition)
430 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
431 (debug_to_watchpoint_addr_within_range)
432 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
433 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
434 (debug_to_terminal_init, debug_to_terminal_inferior)
435 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
436 (debug_to_terminal_save_ours, debug_to_terminal_info)
437 (debug_to_load, debug_to_post_startup_inferior)
438 (debug_to_insert_fork_catchpoint)
439 (debug_to_remove_fork_catchpoint)
440 (debug_to_insert_vfork_catchpoint)
441 (debug_to_remove_vfork_catchpoint)
442 (debug_to_insert_exec_catchpoint)
443 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
444 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
445 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
446 (setup_target_debug): Call init_debug_target.
447 * target.h (TARGET_DEBUG_PRINTER): New macro.
448 (struct target_ops) <to_resume, to_wait, to_pass_signals,
449 to_program_signals>: Use TARGET_DEBUG_PRINTER.
451 2014-07-24 Gary Benson <gbenson@redhat.com>
453 * exceptions.h (throw_vfatal): Renamed to...
454 (throw_vquit): New declaration.
455 (throw_quit): Likewise.
456 * exceptions.c (throw_vfatal): Renamed to...
457 (throw_vquit): New function.
458 (throw_quit): Likewise.
459 (throw_error): Call throw_verror rather than throw_it.
460 * utils.h (vfatal): Removed.
462 * utils.c (vfatal): Removed.
464 (internal_verror): Replaced call to fatal with call to throw_quit.
465 (quit): Replaced calls to fatal with calls to throw_quit.
467 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
469 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
472 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
474 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
475 less than zero in conditional expression.
477 2014-07-23 Tom Tromey <tromey@redhat.com>
479 * make-target-delegates ($ARGS_PART): Match trailing close paren.
480 ($INTRO_PART): Don't match whitespace.
481 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
483 ($METHOD): Add $METHOD_TRAILER.
485 (scan_target_h): New sub.
486 Change main loop not to collect state.
487 * target-delegates.c: Rebuild.
489 2014-07-23 Gary Benson <gbenson@redhat.com>
491 * cp-support.c (gdb_demangle): Fix build on systems without
494 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
496 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
497 for reference entry value target data value.
499 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
501 * stack.c (read_frame_arg): Verify value_optimized_out before calling
502 value_available_contents_eq.
504 2014-07-22 Pedro Alves <palves@redhat.com>
506 * value.c (allocate_optimized_out_value): Don't mark value as
509 2014-07-22 Jiong Wang <jiong.wang@arm.com>
511 * MAINTAINERS (Write After Approval): Update my email address.
513 2014-07-20 Doug Evans <dje@google.com>
516 * remote.c (putpkt_binary): Add text to error message.
518 2014-07-20 Yao Qi <yao@codesourcery.com>
520 * eval.c: Remove "Chill" from comments.
521 * gdbtypes.h: Likewise.
522 * symtab.h: Likewise.
524 2014-07-20 Yao Qi <yao@codesourcery.com>
526 * std-operator.def: Update comments to TERNOP_SLICE.
528 2014-07-20 Yao Qi <yao@codesourcery.com>
530 * std-operator.def: Remove BINOP_RANGE.
531 * breakpoint.c (watchpoint_exp_is_const): Update.
532 * expprint.c (dump_subexp_body_standard): Likewise.
533 * eval.c (init_array_element): Remove dead code.
534 (evaluate_subexp_standard): Likewise.
536 2014-07-20 Yao Qi <yao@codesourcery.com>
538 * std-operator.def: Remove BINOP_IN.
539 * breakpoint.c (watchpoint_exp_is_const): Update.
540 * eval.c (evaluate_subexp_standard): Likewise.
541 * expprint.c (dump_subexp_body_standard): Likewise.
543 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
545 * microblaze-tdep.c (microblaze_register_names): Add
546 the rshr and rslr register names.
547 (microblaze_gdbarch_init): Use of tdesc_has_registers.
548 Use of tdesc_find_feature. Use of tdesc_data_alloc.
549 Use of tdesc_numbered_register. Use of
550 microblaze_register_g_packet_guesses. Use of
551 tdesc_use_registers. Use of set_gdbarch_register_type.
552 (microblaze_register_g_packet_guesses): New.
553 * microblaze-tdep.h (microblaze_reg_num): Add
554 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
555 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
556 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
557 * features/microblaze-core.xml: New file.
558 * features/microblaze-stack-protect.xml: New file.
559 * features/microblaze-with-stack-protect.c: New file.
560 * features/microblaze-with-stack-protect.xml: New file.
561 * features/microblaze.xml: New file.
562 * features/microblaze.c: New file.
563 * features/Makefile (microblaze-with-stack-protect): Add
564 microblaze-with-stack-protect microblaze and microblaze-expedite.
565 * regformats/microblaze-with-stack-protect.dat: New file.
566 * regformats/microblaze.dat: New file.
567 * doc/gdb.texinfo (MicroBlaze Features): Added.
569 2014-07-18 Tom Tromey <tromey@redhat.com>
571 * exec.c (exec_ops): Now static.
572 * exec.h (exec_ops): Don't declare.
574 2014-07-18 Tom Tromey <tromey@redhat.com>
576 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
577 to find_target_beneath.
578 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
580 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
582 2014-07-18 Tom Tromey <tromey@redhat.com>
585 * utils.c (quit): Use target_supports_terminal_ours.
586 * target.h (target_supports_terminal_ours): Declare.
587 * target.c (target_supports_delete_record): Don't check
588 to_delete_record against NULL.
589 (target_supports_terminal_ours): New function.
591 2014-07-18 Tom Tromey <tromey@redhat.com>
594 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
595 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
596 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
597 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
598 * windows-nat.c (windows_xfer_partial): Always delegate.
599 * record-btrace.c (record_btrace_xfer_partial): Simplify
601 (record_btrace_fetch_registers, record_btrace_store_registers)
602 (record_btrace_prepare_to_store, record_btrace_resume)
603 (record_btrace_wait, record_btrace_find_new_threads)
604 (record_btrace_thread_alive): Likewise.
605 * procfs.c (procfs_xfer_partial): Always delegate.
606 * corelow.c (core_xfer_partial): Always delegate.
607 * sol-thread.c (sol_find_new_threads): Simplify delegation.
609 2014-07-18 Tom Tromey <tromey@redhat.com>
611 * exec.c (exec_make_note_section): Move earlier.
613 2014-07-17 Doug Evans <dje@google.com>
616 * maint.c (count_symtabs_and_blocks): Handle NULL
617 current_program_space.
618 (report_command_stats): Check global enabled flag in addition to
619 recorded enabled flag.
620 (make_command_stats_cleanup): Handle msg_type == 0, startup.
622 2014-07-16 Pedro Alves <palves@redhat.com>
624 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
626 2014-07-16 Tom Tromey <tromey@redhat.com>
628 * target.h (struct target_ops) <to_delete_record>: Reformat
631 2014-07-16 Tom Tromey <tromey@redhat.com>
633 * target-delegates.c: Rebuild.
635 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
637 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
638 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
639 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
640 (avr_pointer_to_address): Likewise.
641 (avr_address_class_type_flags): New function.
642 (avr_address_class_type_flags_to_name): Likewise.
643 (avr_address_class_name_to_type_flags): Likewise.
644 (avr_gdbarch_init): Set address_class_type_flags,
645 address_class_type_flags_to_name and
646 address_class_name_to_type_flags.
648 2014-07-15 Pedro Alves <palves@redhat.com>
650 * linux-nat.c (kill_callback): Save errno and work with saved
653 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
655 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
657 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
659 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
660 breakpoint support correctly.
662 2014-07-14 Pedro Alves <palves@redhat.com>
664 * utils.c (prompt_for_continue): Call target_terminal_ours.
666 2014-07-14 Pedro Alves <palves@redhat.com>
668 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
669 catch_errors. Don't re-enable stdin or notify observers where,
671 (fetch_inferior_event_wrapper): Delete.
673 2014-07-14 Pedro Alves <palves@redhat.com>
676 * top.c: Include "inf-loop.h".
677 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
679 (gdb_readline_wrapper_cleanup): Make the target async again, if it
681 (gdb_readline_wrapper): Store whether the target is async, and
684 2014-07-14 Pedro Alves <palves@redhat.com>
687 * top.c (gdb_readline_wrapper_line): Tweak comment.
688 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
689 the input handler callback.
691 2014-07-14 Pedro Alves <palves@redhat.com>
694 * main.c: Include event-top.h.
695 (handle_command_errors): New function.
696 (catch_command_errors, catch_command_errors_const): Use it.
698 2014-07-14 Pedro Alves <palves@redhat.com>
700 * exceptions.c (catch_command_errors, catch_command_errors_const):
702 * exceptions.h (catch_command_errors_ftype)
703 (catch_command_errors_const_ftype): Moved to main.c.
704 (catch_command_errors, catch_command_errors_const): Delete
706 * main.c (catch_command_errors_ftype)
707 (catch_command_errors_const_ftype): Moved here from exceptions.h.
708 (catch_command_errors, catch_command_errors_const)): Moved here
709 from exceptions.c and make static.
711 2014-07-14 Pedro Alves <palves@redhat.com>
713 * exceptions.c (print_any_exception): Delete.
714 (catch_exceptions_with_msg): Use exception_print instead of
716 (catch_errors): Use exception_fprintf instead of
718 (catch_command_errors, catch_command_errors_const): Use
719 exception_print instead of print_any_exception.
721 2014-07-14 Pedro Alves <palves@redhat.com>
723 * infcall.c (run_inferior_call): Set 'sync_execution' while
724 running the inferior call.
726 2014-07-14 Pedro Alves <palves@redhat.com>
728 * value.c (value_contents_equal): Delete function.
729 * value.h (value_contents_equal): Delete declaration.
731 2014-07-14 Tom Tromey <tromey@redhat.com>
734 * gdbtypes.c (is_dynamic_type_internal): New function, from
736 (is_dynamic_type): Rewrite.
737 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
738 (resolve_dynamic_struct): Likewise.
739 (resolve_dynamic_type_internal): New function, from
740 resolve_dynamic_type.
741 (resolve_dynamic_type): Rewrite.
743 2014-07-14 Tom Tromey <tromey@redhat.com>
745 * target.c (target_require_runnable): Also check record_stratum.
748 2014-07-11 Yao Qi <yao@codesourcery.com>
750 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
751 thumb_instruction_restores_sp return true.
753 2014-07-11 Yao Qi <yao@codesourcery.com>
755 * arm-tdep.c (thumb_instruction_restores_sp): New function.
756 (thumb_in_function_epilogue_p): Call
757 thumb_instruction_restores_sp.
759 2014-07-11 Yao Qi <yao@codesourcery.com>
761 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
763 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
765 2014-07-11 Gary Benson <gbenson@redhat.com>
767 * amd64-linux-nat.c (gdbcore.h): Remove include.
768 (regset.h): Likewise.
769 (nat/linux-btrace.h): Likewise.
770 (btrace.h): Likewise.
771 (gdb_assert.h): Likewise.
772 (string.h): Likewise.
773 (sys/uio.h): Likewise.
774 (sys/debugreg.h): Likewise.
775 (sys/syscall.h): Likewise.
776 (sys/procfs.h): Likewise.
777 (sys/user.h): Likewise.
778 (asm/ptrace.h): Likewise.
779 (i386-nat.h): Likewise.
780 * i386-linux-nat.c (i386-nat.h): Likewise.
781 (regset.h): Likewise.
782 (target.h): Likewise.
783 (linux-nat.h): Likewise.
784 (nat/linux-btrace.h): Likewise.
785 (btrace.h): Likewise.
786 (gdb_assert.h): Likewise.
787 (string.h): Likewise.
788 (sys/uio.h): Likewise.
789 (sys/user.h): Likewise.
790 (sys/procfs.h): Likewise.
791 (sys/reg.h): Likewise.
792 (sys/debugreg.h): Likewise.
793 (ORIG_EAX): Remove definition.
795 2014-07-11 Gary Benson <gbenson@redhat.com>
797 * i386-linux-nat.h: New file.
798 * x86-linux-nat.h: Likewise.
799 * x86-linux-nat.c: Likewise.
800 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
801 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
802 * config/i386/linux64.mh (NATDEPFILES): Likewise.
803 * amd64-linux-nat.c (x86-linux-nat.h): New include.
804 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
805 (PTRACE_SETREGSET): Likewise.
806 (arch_lwp_info): Now in x86-linux-nat.c.
807 (have_ptrace_getregset): Now in x86-linux-nat.h.
808 (x86_linux_dr_get): Now in x86-linux-nat.c.
809 (x86_linux_dr_set): Likewise.
810 (x86_linux_dr_get_addr): Likewise.
811 (x86_linux_dr_get_control): Likewise.
812 (x86_linux_dr_get_status): Likewise.
813 (update_debug_registers_callback): Likewise.
814 (x86_linux_dr_set_control): Likewise.
815 (x86_linux_dr_set_addr): Likewise.
816 (x86_linux_prepare_to_resume): Likewise.
817 (x86_linux_new_thread): Likewise.
818 (x86_linux_new_fork): Likewise.
819 (x86_linux_get_thread_area): Likewise.
820 (super_post_startup_inferior): Likewise.
821 (x86_linux_child_post_startup_inferior): Likewise.
822 (AMD64_LINUX_USER64_CS): Likewise.
823 (AMD64_LINUX_X32_DS): Likewise.
824 (x86_linux_read_description): Likewise.
825 (x86_linux_enable_btrace): Likewise.
826 (x86_linux_disable_btrace): Likewise.
827 (x86_linux_teardown_btrace): Likewise.
828 (x86_linux_read_btrace): Likewise.
829 (x86_linux_create_target): Likewise.
830 (x86_linux_add_target): Likewise.
831 * i386-linux-nat.c (x86-linux-nat.h): New include.
832 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
833 (PTRACE_SETREGSET): Likewise.
834 (arch_lwp_info): Now in x86-linux-nat.c.
835 (have_ptrace_getregset): Now in x86-linux-nat.h.
836 (x86_linux_dr_get): Now in x86-linux-nat.c.
837 (x86_linux_dr_set): Likewise.
838 (x86_linux_dr_get_addr): Likewise.
839 (x86_linux_dr_get_control): Likewise.
840 (x86_linux_dr_get_status): Likewise.
841 (update_debug_registers_callback): Likewise.
842 (x86_linux_dr_set_control): Likewise.
843 (x86_linux_dr_set_addr): Likewise.
844 (x86_linux_prepare_to_resume): Likewise.
845 (x86_linux_new_thread): Likewise.
846 (x86_linux_new_fork): Likewise.
847 (x86_linux_get_thread_area): Likewise.
848 (super_post_startup_inferior): Likewise.
849 (x86_linux_child_post_startup_inferior): Likewise.
850 (AMD64_LINUX_USER64_CS): Likewise.
851 (AMD64_LINUX_X32_DS): Likewise.
852 (x86_linux_read_description): Likewise.
853 (x86_linux_enable_btrace): Likewise.
854 (x86_linux_disable_btrace): Likewise.
855 (x86_linux_teardown_btrace): Likewise.
856 (x86_linux_read_btrace): Likewise.
857 (x86_linux_create_target): Likewise.
858 (x86_linux_add_target): Likewise.
860 2014-07-11 Gary Benson <gbenson@redhat.com>
862 * amd64-linux-nat.c: Comment and whitespace changes.
863 * i386-linux-nat.c: Comment and whitespace changes.
865 2014-07-11 Gary Benson <gbenson@redhat.com>
867 * amd64-linux-nat.c (x86_linux_create_target): New function.
868 (x86_linux_add_target): Likewise.
869 (_initialize_amd64_linux_nat): Delegate to the above new functions.
870 * i386-linux-nat.c (x86_linux_create_target): New function.
871 (x86_linux_add_target): Likewise.
872 (_initialize_i386_linux_nat): Delegate to the above new functions.
874 2014-07-11 Gary Benson <gbenson@redhat.com>
876 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
877 (ps_get_thread_area): Delegate to the above in 32-bit mode.
878 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
879 (ps_get_thread_area): Delegate to the above.
881 2014-07-11 Gary Benson <gbenson@redhat.com>
883 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
884 x86_linux_read_description. All uses updated. amd64-specific
885 code conditionalized. Conditionalized i386-specific code added.
886 Redundant cast removed.
887 * i386-linux-nat.c (i386_linux_read_description): Renamed to
888 x86_linux_read_description. All uses updated. i386-specific
889 code conditionalized. Conditionalized amd64-specific code added.
890 One sizeof replaced with the actual type it is describing.
892 2014-07-11 Gary Benson <gbenson@redhat.com>
894 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
895 x86_linux_dr_get. All uses updated.
896 (amd64_linux_dr_set): Renamed to
897 x86_linux_dr_set. All uses updated.
898 (amd64_linux_dr_get_addr): Renamed to
899 x86_linux_dr_get_addr. All uses updated.
900 (amd64_linux_dr_get_control): Renamed to
901 x86_linux_dr_get_control. All uses updated.
902 (amd64_linux_dr_get_status): Renamed to
903 x86_linux_dr_get_status. All uses updated.
904 (amd64_linux_dr_set_control): Renamed to
905 x86_linux_dr_set_control. All uses updated.
906 (amd64_linux_dr_set_addr): Renamed to
907 x86_linux_dr_set_addr. All uses updated.
908 (amd64_linux_prepare_to_resume): Renamed to
909 x86_linux_prepare_to_resume. All uses updated.
910 (amd64_linux_new_thread): Renamed to
911 x86_linux_new_thread. All uses updated.
912 (amd64_linux_new_fork): Renamed to
913 x86_linux_new_fork. All uses updated.
914 (amd64_linux_child_post_startup_inferior): Renamed to
915 x86_linux_child_post_startup_inferior. All uses updated.
916 (amd64_linux_enable_btrace): Renamed to
917 x86_linux_enable_btrace. All uses updated.
918 (amd64_linux_disable_btrace): Renamed to
919 x86_linux_disable_btrace. All uses updated.
920 (amd64_linux_teardown_btrace): Renamed to
921 x86_linux_teardown_btrace. All uses updated.
922 (amd64_linux_read_btrace): Renamed to
923 x86_linux_read_btrace. All uses updated.
924 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
925 x86_linux_dr_get. All uses updated.
926 (i386_linux_dr_set): Renamed to
927 x86_linux_dr_set. All uses updated.
928 (i386_linux_dr_get_addr): Renamed to
929 x86_linux_dr_get_addr. All uses updated.
930 (i386_linux_dr_get_control): Renamed to
931 x86_linux_dr_get_control. All uses updated.
932 (i386_linux_dr_get_status): Renamed to
933 x86_linux_dr_get_status. All uses updated.
934 (i386_linux_dr_set_control): Renamed to
935 x86_linux_dr_set_control. All uses updated.
936 (i386_linux_dr_set_addr): Renamed to
937 x86_linux_dr_set_addr. All uses updated.
938 (i386_linux_prepare_to_resume): Renamed to
939 x86_linux_prepare_to_resume. All uses updated.
940 (i386_linux_new_thread): Renamed to
941 x86_linux_new_thread. All uses updated.
942 (i386_linux_new_fork): Renamed to
943 x86_linux_new_fork. All uses updated.
944 (i386_linux_child_post_startup_inferior): Renamed to
945 x86_linux_child_post_startup_inferior. All uses updated.
946 (i386_linux_enable_btrace): Renamed to
947 x86_linux_enable_btrace. All uses updated.
948 (i386_linux_disable_btrace): Renamed to
949 x86_linux_disable_btrace. All uses updated.
950 (i386_linux_teardown_btrace): Renamed to
951 x86_linux_teardown_btrace. All uses updated.
952 (i386_linux_read_btrace): Renamed to
953 x86_linux_read_btrace. All uses updated.
955 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
957 * remote.c (extended_remote_post_attach): New function.
958 (init_extended_remote_ops): Install it as to_post_attach method.
960 2014-07-09 Pedro Alves <palves@redhat.com>
962 * infcmd.c (attach_command_post_wait): Don't call
963 target_terminal_inferior here.
964 (attach_command): Call it here instead.
966 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
968 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
970 * c-varobj.c (c_is_path_expr_parent): New function, moved core
971 from varobj.c, with additional checks.
972 (c_varobj_ops): Fill in is_path_expr_parent field.
973 (cplus_varobj_ops): Fill in is_path_expr_parent field.
974 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
976 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
978 (varobj_default_is_path_expr_parent): New function.
979 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
980 (varobj_default_is_path_expr_parent): Declare new function.
982 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
984 * infcmd.c (finish_backward): Turn internal error into normal error.
986 2014-07-07 Pedro Alves <palves@redhat.com>
989 * remote.c (async_handle_remote_sigint)
990 (async_handle_remote_sigint_twice): Call
991 gdb_call_async_signal_handler instead of
992 mark_async_signal_handler.
994 2014-07-07 Tom Tromey <tromey@redhat.com>
996 * target-delegates.c: Rebuild.
997 * target.c (target_info_record): Remove.
998 * record.c (info_record_command): Unconditionally call
1000 * target.h (struct target_ops) <to_info_record>: Use
1001 TARGET_DEFAULT_IGNORE.
1002 (target_info_record): Remove.
1004 2014-07-07 Tom Tromey <tromey@redhat.com>
1006 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1007 TARGET_DEFAULT_NORETURN.
1008 * target.c (generic_tls_error): New function.
1009 (target_translate_tls_address): Don't search target stack.
1010 * target-delegates.c: Rebuild.
1011 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1013 * linux-thread-db.c (thread_db_get_thread_local_address):
1014 Unconditionally call beneath target.
1016 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1018 * cli/cli-logging.c (pop_output_files): Assign targerr to
1021 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1023 * MAINTAINERS (Write After Approval): Update my email address.
1025 2014-07-02 Gary Benson <gbenson@redhat.com>
1027 * proc-service.c (ps_xfer_memory): Update comment.
1028 (ps_pstop): Remove unused function.
1029 (ps_pcontinue): Likewise.
1030 (ps_lstop): Likewise.
1031 (ps_lcontinue): Likewise.
1032 (ps_lgetxregsize): Likewise.
1033 (ps_lgetxregs): Likewise.
1034 (ps_lsetxregs): Likewise.
1035 (ps_plog): Likewise.
1036 (ps_ptread): Likewise.
1037 (ps_ptwrite): Likewise.
1039 2014-07-01 Mark Wielaard <mjw@redhat.com>
1041 * dwarf2read.c (add_array_cv_type): New function.
1042 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1043 (read_tag_volatile_type): Likewise.
1045 2014-07-01 Tom Tromey <tromey@redhat.com>
1047 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1048 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1049 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1050 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1051 * command.h (cmd_cfunc_ftype): Move earlier.
1052 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1053 (add_com, add_info): Use cmd_cfunc_ftype.
1055 2014-06-30 Tom Tromey <tromey@redhat.com>
1057 * symtab.c (operator_chars): Make parameters and return type
1059 (file_matches): Make "files" const.
1060 (struct search_symbols_data) <files>: Now const.
1061 (search_symbols): Make "regexp" and "files" parameters const.
1063 (symtab_symbol_info): Remove cast.
1064 (rbreak_command): Update.
1065 * symtab.h (search_symbols): Update.
1067 2014-06-27 Yao Qi <yao@codesourcery.com>
1069 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1070 Change parameter type to 'struct thread_info *'. Caller
1072 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1074 * dummy-frame.c (struct dummy_frame_id): New.
1075 (dummy_frame_id_eq): New function.
1076 (struct dummy_frame) <id>: Change its type to 'struct
1078 (dummy_frame_push): Add parameter ptid and save it in
1080 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1082 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1084 (lookup_dummy_frame): Change parameter type to 'struct
1085 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1086 instead of frame_id_eq.
1087 (dummy_frame_pop): Add parameter ptid. Callers updated.
1088 Update comments. Compose dummy_frame_id and pass it to
1090 (dummy_frame_discard): Add parameter ptid.
1091 (dummy_frame_sniffer): Compose dummy_frame_id and call
1092 dummy_frame_id_eq instead of frame_id_eq.
1093 (fprint_dummy_frames): Print ptid.
1094 * dummy-frame.h: Remove comments.
1095 (dummy_frame_push): Add ptid in declaration.
1096 (dummy_frame_pop, dummy_frame_discard): Likewise.
1098 2014-06-26 Tom Tromey <tromey@redhat.com>
1100 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1101 * command.h (error_no_arg): Update.
1103 2014-06-26 Tom Tromey <tromey@redhat.com>
1105 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1106 (do_show_command): Make "arg" const.
1107 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1109 2014-06-26 Tom Tromey <tromey@redhat.com>
1111 * record-full.c (record_full_get_bookmark): Make "args" const.
1112 (record_full_goto_bookmark): Make "raw_bookmark" const.
1113 * record.c (record_goto): New function.
1114 (cmd_record_goto): Use it. Now static.
1115 * record.h (record_goto): Declare.
1116 (cmd_record_goto): Remove declaration.
1117 * target-delegates.c: Rebuild.
1118 * target.h (struct target_ops) <to_get_bookmark,
1119 to_goto_bookmark>: Make parameter const.
1121 2014-06-26 Tom Tromey <tromey@redhat.com>
1123 * defs.h (generic_load): Update.
1124 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1125 * monitor.c (monitor_load): Make "args" const.
1126 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1127 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1129 (mips_load): Make "file" const.
1130 * remote-sim.c (gdbsim_load): Make "args" const.
1131 * remote.c (remote_load): Make "name" const.
1132 * symfile.c (generic_load): Make "args" const.
1133 * target-delegates.c: Rebuild.
1134 * target.c (target_load): Make "arg" const.
1135 (debug_to_load): Make "args" const.
1136 * target.h (struct target_ops) <to_load>: Make parameter const.
1137 (target_load): Update.
1139 2014-06-26 Tom Tromey <tromey@redhat.com>
1142 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1143 (dwarf2_physname, read_partial_die)
1144 (guess_partial_die_structure_name, fixup_partial_die)
1145 (guess_full_die_structure_name, anonymous_struct_prefix)
1146 (dwarf2_name): Use per-BFD obstack.
1148 2014-06-26 Yao Qi <yao@codesourcery.com>
1150 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1151 dummyframe and this_id into inner block below.
1153 2014-06-26 Yao Qi <yao@codesourcery.com>
1155 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1156 with "signal_pass[0]" in the initialization of signal_pass.
1158 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1160 * record-btrace.c (record_btrace_generating_corefile)
1161 (record_btrace_prepare_to_generate_core)
1162 (record_btrace_done_generating_core): New.
1163 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1164 (record_btrace_store_registers, record_btrace_prepare_to_store):
1165 Forward request when generating a core file.
1166 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1167 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1168 to_done_generating_core.
1170 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1172 * target.h (target_ops) <to_prepare_to_generate_core>
1173 <to_done_generating_core>: New.
1174 (target_prepare_to_generate_core, target_done_generating_core): New.
1175 * target.c (target_prepare_to_generate_core)
1176 (target_done_generating_core): New.
1177 * target-delegates.c: Regenerate.
1178 * gcore.c: (write_gcore_file): Rename to ...
1179 (write_gcore_file_1): ...this.
1180 (write_gcore_file): Call target_prepare_to_generate_core
1181 and target_done_generating_core.
1183 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1185 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1186 * gcore.c (write_gcore_file): Free memory returned from
1187 make_corefile_notes.
1188 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1189 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1191 2014-06-24 Yao Qi <yao@codesourcery.com>
1193 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1194 (arm_linux_init_abi): Set skip_trampoline_code with
1195 gdbarch_skip_trampoline_code instead of
1196 find_solib_trampoline_target.
1198 2014-06-24 Yao Qi <yao@codesourcery.com>
1200 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1201 arm_skip_bx_reg returns non-zero.
1203 2014-06-24 Yao Qi <yao@codesourcery.com>
1205 * arm-tdep.c (arm_skip_bx_reg): New function.
1206 (arm_skip_stub): Call arm_skip_bx_reg.
1208 2014-06-23 Don Breazeal <donb@codesourcery.com>
1210 * MAINTAINERS: Add myself as write-after-approval maintainer.
1212 2014-06-23 Pedro Alves <palves@redhat.com>
1214 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1215 DR_CONTROL before setting DR0..DR3.
1216 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1217 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1218 bits of DR_CONTROL related to the debug register slot being
1219 disabled. If all slots are vacant, clear local slowdown as well,
1220 and assert DR_CONTROL is 0.
1222 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1224 * python/lib/gdb/command/xmethods.py
1225 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1226 current progspace only if the string "progspace" matches LOCUS_RE.
1228 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1230 Fix --with-system-readline with readline-6.3 patch 5.
1231 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1232 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1235 2014-06-20 Tom Tromey <tromey@redhat.com>
1237 * dwarf2read.c (dw2_get_real_path): Use correct type in
1239 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1241 2014-06-20 Gary Benson <gbenson@redhat.com>
1243 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1244 * common/glibc_thread_db.h: Likewise.
1245 * common/i386-cpuid.h: Likewise.
1246 * common/i386-gcc-cpuid.h: Likewise.
1247 * common/linux-btrace.h: Likewise.
1248 * common/linux-osdata.h: Likewise.
1249 * common/linux-procfs.h: Likewise.
1250 * common/linux-ptrace.h: Likewise.
1251 * common/mips-linux-watch.h: Likewise.
1252 * common/linux-btrace.c: Moved to nat.
1253 * common/linux-osdata.c: Likewise.
1254 * common/linux-procfs.c: Likewise.
1255 * common/linux-ptrace.c: Likewise.
1256 * common/mips-linux-watch.c: Likewise.
1257 * nat/gdb_thread_db.h: Moved from common.
1258 * nat/glibc_thread_db.h: Likewise.
1259 * nat/i386-cpuid.h: Likewise.
1260 * nat/i386-gcc-cpuid.h: Likewise.
1261 * nat/linux-btrace.c: Likewise.
1262 * nat/linux-btrace.h: Likewise.
1263 * nat/linux-osdata.c: Likewise.
1264 * nat/linux-osdata.h: Likewise.
1265 * nat/linux-procfs.c: Likewise.
1266 * nat/linux-procfs.h: Likewise.
1267 * nat/linux-ptrace.c: Likewise.
1268 * nat/linux-ptrace.h: Likewise.
1269 * nat/mips-linux-watch.c: Likewise.
1270 * nat/mips-linux-watch.h: Likewise.
1271 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1272 (object file files): Reordered.
1273 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1274 of glibc_thread_db.h.
1276 2014-06-20 Gary Benson <gbenson@redhat.com>
1278 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1279 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1280 (i386_dr_low): Likewise.
1281 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1282 (i386_dr_low_set_addr): Likewise.
1283 (i386_dr_low_get_addr): Likewise.
1284 (i386_dr_low_can_set_control): Likewise.
1285 (i386_dr_low_set_control): Likewise.
1286 (i386_dr_low_get_control): Likewise.
1287 (i386_dr_low_get_status): Likewise.
1288 (i386_get_debug_register_length): Likewise.
1289 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1290 (i386_dr_low): Likewise.
1291 * nat/i386-dregs.c (i386-low.h): Remove include.
1292 (i386-nat.h): Likewise.
1293 (nat/i386-dregs.h): New include.
1294 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1295 (i386_dr_low_set_addr): Likewise.
1296 (i386_dr_low_get_addr): Likewise.
1297 (i386_dr_low_can_set_control): Likewise.
1298 (i386_dr_low_set_control): Likewise.
1299 (i386_dr_low_get_control): Likewise.
1300 (i386_dr_low_get_status): Likewise.
1301 (i386_get_debug_register_length): Likewise.
1302 (debug_hw_points): Likewise.
1304 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1306 * Makefile.in (SFILES): Add d-exp.y.
1307 (YYFILES): Add d-exp.c.
1308 (YYOBJ): Add d-exp.o.
1309 (local-maintainer-clean): Delete d-exp.c.
1310 * d-exp.y: New file.
1311 * d-lang.h (d_parse): New declaration.
1312 (d_error): New declaration.
1313 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1314 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1315 PREC_ORDER operators.
1316 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1318 2014-06-19 Yao Qi <yao@codesourcery.com>
1320 * gdbthread.h (any_running): Remove the declaration.
1321 * thread.c (any_running): Remove.
1323 2014-06-19 Yao Qi <yao@codesourcery.com>
1325 * gdbthread.h (struct thread_info) <state>: Change its type to
1326 'enum thread_state'. Update comments.
1328 2014-06-19 Pedro Alves <palves@redhat.com>
1330 * gdbthread.h (ALL_THREADS): Delete.
1331 (ALL_NON_EXITED_THREADS): New macro.
1332 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1333 instead of ALL_THREADS.
1334 * infrun.c (find_thread_needs_step_over)
1335 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1336 instead of ALL_THREADS.
1337 * record-btrace.c (record_btrace_open)
1338 (record_btrace_stop_recording, record_btrace_close)
1339 (record_btrace_is_replaying, record_btrace_resume)
1340 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1341 * remote.c (append_pending_thread_resumptions): Likewise.
1342 * thread.c (thread_apply_all_command): Likewise.
1344 2014-06-19 Gary Benson <gbenson@redhat.com>
1346 * i386-nat.c (i386_stopped_by_watchpoint):
1347 Use i386_dr_stopped_by_watchpoint.
1348 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1349 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1351 2014-06-19 Gary Benson <gbenson@redhat.com>
1353 * nat/i386-dregs.c: New file.
1354 * Makefile.in (i386-dregs.o): New rule.
1355 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1356 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1357 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1358 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1359 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1360 * config/i386/go32.mh (NATDEPFILES): Likewise.
1361 * config/i386/linux.mh (NATDEPFILES): Likewise.
1362 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1363 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1364 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1365 * i386-nat.h (debug_hw_points): New declaration.
1366 * i386-nat.c (breakpoint.h): Remove include.
1367 (command.h): Likewise.
1368 (target.h): Likewise.
1369 (gdb_assert.h): Likewise.
1370 (debug_hw_points): Made nonstatic.
1371 (debug_printf): Now in i386-dregs.c.
1372 (TARGET_HAS_DR_LEN_8): Likewise.
1373 (DR_CONTROL_SHIFT): Likewise.
1374 (DR_CONTROL_SIZE): Likewise.
1375 (DR_RW_EXECUTE): Likewise.
1376 (DR_RW_WRITE): Likewise.
1377 (DR_RW_READ): Likewise.
1378 (DR_RW_IORW): Likewise.
1379 (DR_LEN_1): Likewise.
1380 (DR_LEN_2): Likewise.
1381 (DR_LEN_4): Likewise.
1382 (DR_LEN_8): Likewise.
1383 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1384 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1385 (DR_ENABLE_SIZE): Likewise.
1386 (DR_LOCAL_SLOWDOWN): Likewise.
1387 (DR_GLOBAL_SLOWDOWN): Likewise.
1388 (DR_CONTROL_RESERVED): Likewise.
1389 (I386_DR_CONTROL_MASK): Likewise.
1390 (I386_DR_VACANT): Likewise.
1391 (I386_DR_LOCAL_ENABLE): Likewise.
1392 (I386_DR_GLOBAL_ENABLE): Likewise.
1393 (I386_DR_DISABLE): Likewise.
1394 (I386_DR_SET_RW_LEN): Likewise.
1395 (I386_DR_GET_RW_LEN): Likewise.
1396 (I386_DR_WATCH_HIT): Likewise.
1397 (i386_wp_op_t): Likewise.
1398 (i386_show_dr): Likewise.
1399 (i386_length_and_rw_bits): Likewise.
1400 (i386_insert_aligned_watchpoint): Likewise.
1401 (i386_remove_aligned_watchpoint): Likewise.
1402 (i386_handle_nonaligned_watchpoint): Likewise.
1403 (i386_update_inferior_debug_regs): Likewise.
1404 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1405 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1406 (i386_region_ok_for_watchpoint):
1407 Use i386_dr_region_ok_for_watchpoint.
1408 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1410 2014-06-19 Gary Benson <gbenson@redhat.com>
1412 * i386-nat.c (i386_insert_hw_breakpoint): Use
1413 i386_insert_watchpoint.
1414 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1416 2014-06-19 Gary Benson <gbenson@redhat.com>
1418 * i386-nat.c (i386_dr_show): Renamed to
1419 i386_show_dr and made static. All uses updated.
1420 (i386_dr_length_and_rw_bits): Renamed to
1421 i386_length_and_rw_bits and made static.
1423 (i386_dr_insert_aligned_watchpoint): Renamed to
1424 i386_insert_aligned_watchpoint and made static.
1426 (i386_dr_remove_aligned_watchpoint): Renamed to
1427 i386_remove_aligned_watchpoint and made static.
1429 (i386_dr_update_inferior_debug_regs): Renamed to
1430 i386_update_inferior_debug_regs and made static.
1432 * nat/i386-dregs.h (i386_dr_show): Removed.
1433 (i386_dr_length_and_rw_bits): Likewise.
1434 (i386_dr_insert_aligned_watchpoint): Likewise.
1435 (i386_dr_remove_aligned_watchpoint): Likewise.
1436 (i386_dr_update_inferior_debug_regs): Likewise.
1438 2014-06-19 Gary Benson <gbenson@redhat.com>
1440 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1441 * configure: Regenerate.
1442 * config.in: Likewise.
1443 * main.c (signal.h): New include.
1444 (setup_alternate_signal_stack): New function.
1445 (captured_main): Call the above.
1446 * cp-support.c (signal.h): New include.
1447 (catch_demangler_crashes): New flag.
1448 (SIGJMP_BUF): New define.
1449 (SIGSETJMP): Likewise.
1450 (SIGLONGJMP): Likewise.
1451 (gdb_demangle_jmp_buf): New static global.
1452 (gdb_demangle_attempt_core_dump): Likewise.
1453 (gdb_demangle_signal_handler): New function.
1454 (gdb_demangle): If catch_demangler_crashes is set, install the
1455 above signal handler before calling bfd_demangle, and restore
1456 the original signal handler afterwards. Display the offending
1457 symbol and call demangler_warning the first time a segmentation
1459 (_initialize_cp_support): New maint set/show command.
1461 2014-06-19 Gary Benson <gbenson@redhat.com>
1463 * utils.h (resource_limit_kind): New enum.
1464 (can_dump_core): New declaration.
1465 (warn_cant_dump_core): Likewise.
1466 (dump_core): Likewise.
1467 * utils.c (dump_core): Made nonstatic. Added new
1468 parameter "limit_kind".
1469 (can_dump_core): Made nonstatic. Moved printing code to...
1470 (warn_cant_dump_core): New function.
1471 (can_dump_core_warn): Likewise.
1472 (internal_vproblem): Replace calls to can_dump_core with
1473 calls to can_dump_core_warn. Supply new argument to each.
1475 2014-06-19 Gary Benson <gbenson@redhat.com>
1477 * utils.h (demangler_vwarning): New declaration.
1478 (demangler_warning): Likewise.
1479 * utils.c (struct internal_problem)
1480 <user_settable_should_quit>: New field.
1481 <user_settable_should_dump_core>: Likewise
1482 (internal_error_problem): Add values for above new fields.
1483 (internal_warning_problem): Likewise.
1484 (demangler_warning_problem): New static global.
1485 (demangler_vwarning): New function.
1486 (demangler_warning): Likewise.
1487 (add_internal_problem_command): Selectively add commands.
1488 (_initialize_utils): New internal problem command.
1489 * maint.c (maintenance_demangler_warning): New function.
1490 (_initialize_maint_cmds): New command.
1492 2014-06-18 Tom Tromey <tromey@redhat.com>
1494 * f-valprint.c (info_common_command_for_block): Update.
1495 * symtab.h (struct general_symbol_info) <common_block>: Now
1498 2014-06-18 Tom Tromey <tromey@redhat.com>
1500 * symtab.h (struct symtab) <blockvector>: Now const.
1501 * ada-lang.c (ada_add_global_exceptions): Update.
1502 * buildsym.c (augment_type_symtab): Update.
1503 * dwarf2read.c (dw2_lookup_symbol): Update.
1504 * jit.c (finalize_symtab): Update.
1505 * jv-lang.c (add_class_symtab_symbol): Update.
1506 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1508 * objfiles.c (objfile_relocate1): Update.
1509 * psymtab.c (lookup_symbol_aux_psymtabs)
1510 (maintenance_check_psymtabs): Update.
1511 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1513 * spu-tdep.c (spu_catch_start): Update.
1514 * symmisc.c (dump_symtab_1): Update.
1515 * symtab.c (lookup_global_symbol_from_objfile)
1516 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1517 (basic_lookup_transparent_type_quick)
1518 (basic_lookup_transparent_type, find_pc_sect_symtab)
1519 (find_pc_sect_line, search_symbols): Update.
1520 * block.c (find_block_in_blockvector): Make "bl" const.
1521 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1523 (blockvector_contains_pc): Make "bv" const.
1524 (block_for_pc_sect): Update.
1525 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1526 (blockvector_contains_pc): Update.
1527 * breakpoint.c (resolve_sal_pc): Update.
1528 * inline-frame.c (block_starting_point_at): Update.
1530 2014-06-18 Tom Tromey <tromey@redhat.com>
1532 * completer.c (complete_line): Make "line_buffer" const.
1533 * completer.h (complete_line): Update.
1535 2014-06-18 Tom Tromey <tromey@redhat.com>
1537 * symtab.c (add_macro_name): Remove unneeded cast.
1539 2014-06-18 Tom Tromey <tromey@redhat.com>
1541 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1542 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1544 2014-06-18 Tom Tromey <tromey@redhat.com>
1546 * probe.c (info_probes_for_ops): Make "arg" const.
1547 * probe.h (info_probes_for_ops): Update.
1549 2014-06-18 Tom Tromey <tromey@redhat.com>
1551 * varobj.c (varobj_create): Update.
1552 * valops.c (value_of_this): Update.
1553 * tracepoint.c (add_local_symbols, scope_info): Update.
1554 * symtab.h (struct general_symbol_info) <block>: Now const.
1555 * symtab.c (skip_prologue_sal)
1556 (default_make_symbol_completion_list_break_on)
1557 (skip_prologue_using_sal): Update.
1558 * stack.h (iterate_over_block_locals)
1559 (iterate_over_block_local_vars): Update.
1560 * stack.c (print_frame_args): Update.
1561 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1563 (get_selected_block): Make return type const.
1564 * python/py-frame.c (frapy_block): Update.
1565 * python/py-block.c (gdbpy_block_for_pc): Update.
1566 * p-exp.y (%union) <bval>: Now const.
1567 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1568 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1569 * m2-exp.y (%union) <bval>: Now const.
1570 * linespec.c (get_current_search_block): Make return type const.
1571 (create_sals_line_offset, find_label_symbols): Update.
1572 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1574 (block_starting_point_at): Make "block" const.
1575 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1576 (check_exception_resume): Update.
1577 * guile/scm-frame.c (gdbscm_frame_block): Update.
1578 * guile/scm-block.c (gdbscm_lookup_block): Update.
1579 * frame.h (get_frame_block): Update.
1580 (get_selected_block): Make return type const.
1581 * frame.c (frame_id_inner): Update.
1582 * f-valprint.c (info_common_command_for_block)
1583 (info_common_command): Update.
1584 * dwarf2loc.c (dwarf2_find_location_expression)
1585 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1586 (locexpr_describe_location_piece): Update.
1587 * c-exp.y (%union) <bval>: Now const.
1588 * breakpoint.c (resolve_sal_pc): Update.
1589 * blockframe.c (get_frame_block):Make return type const.
1590 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1591 (block_innermost_frame): Update.
1592 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1593 (block_for_pc, block_for_pc_sect): Update.
1594 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1596 (block_for_pc_sect, block_for_pc): Make return type const.
1597 * ax-gdb.c (gen_expr): Update.
1598 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1599 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1600 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1601 (ada_read_var_value): Update.
1602 * ada-exp.y (struct name_info) <block>: Now const.
1604 (block_lookup): Constify.
1606 2014-06-18 Gary Benson <gbenson@redhat.com>
1608 * nat/i386-dregs.h: New file.
1609 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1610 * i386-nat.h (i386-dregs.h): New include.
1611 (DR_FIRSTADDR): Now in i386-dregs.h.
1612 (DR_LASTADDR): Likewise.
1613 (DR_NADDR): Likewise.
1614 (DR_STATUS): Likewise.
1615 (DR_CONTROL): Likewise.
1616 (i386_debug_reg_state): Likewise.
1617 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1619 2014-06-18 Don Breazeal <donb@codesourcery.com>
1621 * breakpoint.c (set_longjmp_breakpoint): Call
1622 momentary_breakpoint_from_master with additional argument.
1623 (set_longjmp_breakpoint_for_call_dummy): Call
1624 momentary_breakpoint_from_master with additional argument.
1625 (set_std_terminate_breakpoint): Call
1626 momentary_breakpoint_from_master with additional argument.
1627 (momentary_breakpoint_from_master): Add argument to function
1628 definition and use it to initialize structure member flag.
1629 (clone_momentary_breakpoint): Call
1630 momentary_breakpoint_from_master with additional argument.
1631 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1632 member flags set in momentary_breakpoint_from_master.
1634 2014-06-18 Gary Benson <gbenson@redhat.com>
1636 * i386-nat.c (i386_show_dr): Renamed to
1637 i386_dr_show and made nonstatic. All uses updated.
1638 (i386_length_and_rw_bits): Renamed to
1639 i386_dr_length_and_rw_bits and made nonstatic.
1641 (i386_insert_aligned_watchpoint): Renamed to
1642 i386_dr_insert_aligned_watchpoint and made nonstatic.
1644 (i386_remove_aligned_watchpoint): Renamed to
1645 i386_dr_remove_aligned_watchpoint and made nonstatic.
1647 (i386_update_inferior_debug_regs): Renamed to
1648 i386_dr_update_inferior_debug_regs and made nonstatic.
1651 2014-06-18 Gary Benson <gbenson@redhat.com>
1653 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1654 (i386_dr_low_can_set_control): Likewise.
1655 (i386_dr_low_set_addr): Likewise.
1656 (i386_dr_low_set_control): Likewise.
1657 (i386_dr_low_get_addr): Likewise.
1658 (i386_dr_low_get_status): Likewise.
1659 (i386_dr_low_get_control): Likewise.
1660 (i386_insert_aligned_watchpoint): Use new macros.
1661 (i386_update_inferior_debug_regs): Likewise.
1662 (i386_stopped_data_address): Likewise.
1664 2014-06-18 Gary Benson <gbenson@redhat.com>
1666 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1667 New parameter. All uses updated.
1669 2014-06-18 Gary Benson <gbenson@redhat.com>
1671 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1674 2014-06-18 Gary Benson <gbenson@redhat.com>
1676 * i386-nat.c (debug_printf): New macro.
1677 (i386_get_debug_register_length): Likewise.
1678 (TARGET_HAS_DR_LEN_8): Use above macro.
1679 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1680 and printf_unfiltered. Use phex to format values.
1682 2014-06-18 Gary Benson <gbenson@redhat.com>
1684 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1687 2014-06-18 Gary Benson <gbenson@redhat.com>
1689 * i386-nat.c: Comment changes.
1691 2014-06-18 Gary Benson <gbenson@redhat.com>
1693 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1695 2014-06-18 Gary Benson <gbenson@redhat.com>
1697 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1698 (i386_insert_aligned_watchpoint): Likewise.
1699 (i386_remove_aligned_watchpoint): Likewise.
1700 (i386_handle_nonaligned_watchpoint): Likewise.
1702 2014-06-18 Gary Benson <gbenson@redhat.com>
1704 * i386-nat.c: Whitespace changes.
1706 2014-06-17 Samuel Bronson <naesten@gmail.com>
1708 * MAINTAINERS: Update Roland McGrath's email address.
1709 Thanks to Sergio Durigan Junior for pointing out that he left
1710 Red Hat a while ago, and giving me a current address.
1712 2014-06-17 Tom Tromey <tromey@redhat.com>
1714 * utils.h (savestring): Remove declaration.
1716 2014-06-17 Tom Tromey <tromey@redhat.com>
1718 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1720 2014-06-16 Keith Seitz <keiths@redhat.com>
1723 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1724 to update the varobj if inferior_ptid is null_ptid.
1726 2014-06-16 Tom Tromey <tromey@redhat.com>
1728 * target.h (struct target_ops) <to_info_proc>: Make parameter
1730 (target_info_proc): Update.
1731 * target.c (target_info_proc): Make "args" const.
1732 * procfs.c (procfs_info_proc): Update.
1733 * linux-tdep.c (linux_info_proc): Update.
1734 (linux_core_info_proc_mappings): Make "args" const.
1735 (linux_core_info_proc): Update.
1736 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1737 * gdbarch.c: Rebuild.
1738 * gdbarch.h: Rebuild.
1739 * corelow.c (core_info_proc): Update.
1741 2014-06-16 Tom Tromey <tromey@redhat.com>
1743 * target.h (struct target_ops) <to_disconnect>: Make parameter
1745 (target_disconnect): Update.
1746 * target.c (target_disconnect): Make "args" const.
1747 * target-delegates.c: Rebuild.
1748 * remote.c (remote_disconnect): Update.
1749 * record.h (record_disconnect): Update.
1750 * record.c (record_disconnect): Update.
1751 * inf-child.c (inf_child_disconnect): Update.
1753 2014-06-16 Tom Tromey <tromey@redhat.com>
1755 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1756 * target.c (debug_to_rcmd, default_rcmd): Update.
1757 * target-delegates.c: Rebuild.
1758 * remote.c (remote_rcmd): Update.
1759 * monitor.c (monitor_rcmd): Update.
1761 2014-06-16 Pedro Alves <palves@redhat.com>
1763 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1764 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1765 have OBJF_SHARED set.
1766 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1767 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1768 instead of OBJF_USERLOADED.
1769 * objfiles.h (OBJF_SHARED): Update comment.
1770 (userloaded_objfile_contains_address_p): Rename to ...
1771 (shared_objfile_contains_address_p): ... this, and update
1773 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1775 (remove_symbol_file_command): Skip objfiles that don't have
1778 2014-06-16 Tom Tromey <tromey@redhat.com>
1780 * minsyms.h (prim_record_minimal_symbol)
1781 (prim_record_minimal_symbol_and_info): Update comments.
1783 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1785 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1786 or --without-guile, according to how GDB was built.
1788 2014-06-13 Tom Tromey <tromey@redhat.com>
1790 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1792 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1794 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1796 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1797 help_list.Pass all_commands, not -1, to help_list.
1798 * cli/cli-dump.c (dump_command, append_command)
1799 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1800 (binary_dump_command, binary_append_command): Pass all_commands,
1801 not -1, to help_list.
1802 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1804 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1806 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1808 * top.c (set_history): Pass all_commands, not -1, to help_list.
1809 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1810 all_commands, not -1, to help_list.
1811 * symfile.c (overlay_command): Pass all_commands, not -1, to
1813 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1815 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1817 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1819 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1820 not -1, to help_list.
1821 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1822 not -1, to help_list.
1823 * maint.c (maintenance_command, maintenance_info_command)
1824 (maintenance_print_command, maintenance_set_cmd): Pass
1825 all_commands, not -1, to help_list.
1826 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1828 * language.c (set_check): Pass all_commands, not -1, to help_list.
1829 * infcmd.c (unset_command): Pass all_commands, not -1, to
1831 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1833 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1835 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1837 * breakpoint.c (save_command): Pass all_commands, not -1, to
1839 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1840 all_commands, not -1, to help_list.
1842 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1844 * regcache.c (struct register_to_invalidate): New structure.
1845 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1847 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1849 2014-06-12 Yao Qi <yao@codesourcery.com>
1851 * varobj.c (varobj_get_num_children): Call
1852 varobj_is_dynamic_p.
1853 (varobj_list_children): Likewise.
1854 (varobj_update): Likewise. Update comments.
1856 2014-06-12 Yao Qi <yao@codesourcery.com>
1858 * varobj.c (varobj_pretty_printed_p): Rename to ...
1859 (varobj_is_dynamic_p): ... this. New function.
1860 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1861 (varobj_is_dynamic_p): Declare.
1862 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1863 (mi_print_value_p, varobj_update_one): Likewise.
1865 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1866 Yao Qi <yao@codesourcery.com>
1868 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1869 (varobj_get_iterator): Wrap up code for pretty-printer by
1870 "#if HAVE_PYTHON" and "#endif".
1871 (update_dynamic_varobj_children): Likewise.
1873 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1874 Yao Qi <yao@codesourcery.com>
1876 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1877 gdb_python_initialized is false. Move some code from varobj.c.
1878 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1879 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1880 (struct varobj_item): Moved to varobj-iter.h".
1881 (varobj_clear_saved_item): New function.
1882 (update_dynamic_varobj_children): Move python-related code to
1884 (free_variable): Call varobj_clear_saved_item and
1887 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1888 Yao Qi <yao@codesourcery.com>
1890 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1891 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1892 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1893 (py-varobj.o): New rule.
1894 * python/py-varobj.c: New file.
1895 * python/python-internal.h (py_varobj_get_iterator): Declare.
1896 * varobj-iter.h: New file.
1897 * varobj.c: Include "varobj-iter.h"
1898 (struct varobj) <child_iter>: Change its type from "PyObject *"
1899 to "struct varobj_iter *".
1900 <saved_item>: Likewise.
1901 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1902 [HAVE_PYTHON] (varobj_get_iterator): New function.
1903 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1904 python-specific code to python/py-varobj.c.
1905 (install_visualizer): Call varobj_iter_delete instead of
1907 * varobj.h (varobj_ensure_python_env): Declare.
1909 2014-06-12 Yao Qi <yao@codesourcery.com>
1911 * varobj.c (struct varobj_item): New structure.
1912 (create_child_with_value): Update declaration.
1913 (varobj_add_child): Replace arguments 'name' and 'value' with
1914 'item'. All callers updated.
1915 (install_dynamic_child): Likewise.
1916 (update_dynamic_varobj_children): Likewise.
1917 (varobj_add_child): Likewise.
1918 (create_child_with_value): Likewise.
1920 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1922 * NEWS: Create a new section for the next release branch.
1923 Rename the section of the current branch, now that it has
1926 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1928 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1929 * version.in: Bump version to 7.8.50.DATE-cvs.
1931 2014-06-11 Pedro Alves <palves@redhat.com>
1934 * ser-mingw.c (net_windows_socket_check_pending): New function.
1935 (net_windows_select_thread): Ignore spurious wakeups. Use
1936 net_windows_socket_check_pending.
1937 (net_windows_wait_handle): Check for pending events with
1938 ioctlsocket, through net_windows_socket_check_pending, instead of
1939 checking the socket's event.
1941 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1943 * python/python-internal.h (gdb_PyObject_GetAttrString)
1944 (gdb_PyObject_HasAttrString): New inline function definitions.
1945 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1946 char * of the second argument to PyObject_GetAttrString.
1948 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1950 * serial.c (serial_write): Fix index of character to be printed
1951 in call to serial_logchar when serial debug traces are enabled.
1953 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1955 * gdbtypes (resolve_dynamic_range): Add function description.
1957 2014-06-09 Pedro Alves <palves@redhat.com>
1959 * linux-nat.c (linux_child_follow_fork): Initialize status with
1960 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1961 inner block. Only pass the signal to PTRACE_DETACH if in pass
1964 2014-06-09 Gary Benson <gbenson@redhat.com>
1966 * common/signals.c (gdb_signal_from_host): Reorder to separate
1967 the always-available ANSI-standard signals from the signals that
1969 (do_gdb_signal_to_host): Likewise.
1970 * proc-events.c (signal_table): Likewise.
1972 2014-06-08 Hui Zhu <hui@codesourcery.com>
1974 * common/linux-ptrace.c (linux_disable_event_reporting): New
1976 * common/linux-ptrace.h (linux_disable_event_reporting): New
1978 * linux-nat.c (linux_child_follow_fork): Do a single step before
1981 2014-06-07 Keith Seitz <keiths@redhat.com>
1985 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1986 from symbol_matches_domain in symtab.c. All local callers
1987 of symbol_matches_domain updated.
1988 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1989 search STRUCT_DOMAIN.
1990 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1991 independently. standard_lookup will do that automatically.
1992 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1993 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1994 (cp_lookup_symbol_in_namespace): Likewise.
1995 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1996 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1997 may return a STRUCT_DOMAIN match.
1998 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1999 * cp-support.c: Include language.h.
2000 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2002 * psymtab.c (match_partial_symbol): Compare the requested
2003 domain with the symbol's domain directly.
2004 (lookup_partial_symbol): Likewise.
2005 * symtab.c (lookup_symbol_in_language): Explain when/why
2006 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2007 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2008 appropriate languages.
2009 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2010 and moved to ada-lang.c
2011 (lookup_block_symbol): Explain that this function only returns
2012 symbol matching the requested DOMAIN.
2013 Compare the requested domain with the symbol's domain directly.
2014 (iterate_over_symbols): Compare the requested domain with the
2015 symbol's domain directly.
2016 * symtab.h (symbol_matches_domain): Remove.
2018 2014-06-06 Doug Evans <xdje42@gmail.com>
2020 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2021 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2022 (gdbscm_guile_version_is_at_least): Declare.
2023 (gdbscm_scm_string_to_int): Declare.
2024 * guile/guile.c (gdbscm_guile_major_version): New global.
2025 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2026 (guile_datadir): New static global.
2027 (gdbscm_guile_data_directory): New function.
2028 (initialize_scheme_side): Update.
2029 (misc_guile_functions): Add guile-data-directory.
2030 (initialize_gdb_module): Fetch guile version number.
2031 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2032 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2033 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2034 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2036 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2037 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2038 * guile/scm-value.c (gdbscm_value_to_string): Only call
2039 scm_port_conversion_strategy if Guile version >= 2.0.6.
2041 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2043 * main.c (print_gdb_help): Add -q and --silent.
2045 2014-06-06 Gary Benson <gbenson@redhat.com>
2047 * common/signals.c: Remove preprocessor conditionals for
2048 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2049 SIGSEGV and SIGTERM.
2050 * proc-events.c: Likewise.
2052 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2054 * symfile.c (symfile_free_objfile): Remove restriction to
2056 * symfile-mem.c (symbol_file_add_from_memory): Call
2057 add_target_sections_of_objfile.
2059 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2061 * guile/scm-value.c (gdbscm_history_append_x): Use
2062 'vlscm_get_value_smob_arg_unsafe' instead of
2063 'vlscm_scm_to_value'.
2065 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2068 * utils.c (printchar): Don't escape at all if quoter is NUL.
2069 Update function documentation to clarify effect of parameter
2071 * remote.c (escape_buffer): Pass '\\' as the quoter to
2072 fputstrn_unfiltered.
2073 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2074 generate the output.
2075 (mi_solib_unloaded): Same.
2077 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2079 * development.sh: Delete.
2080 * Makefile.in (config.status): Adjust dependency on development.sh.
2081 * configure.ac: Adjust development.sh source call.
2082 * configure: Regenerate.
2084 2014-06-04 Doug Evans <xdje42@gmail.com>
2086 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2087 is_scheme_bkpt, spec.
2088 (bpscm_make_breakpoint_smob): Initialize new members.
2089 (gdbscm_create_breakpoint_x): Split into two ...
2090 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2091 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2092 (scheme_function breakpoint_functions): Update.
2093 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2094 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2095 register-breakpoint!.
2097 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2100 * mem-break.c (z_type_supported): Return zero if
2101 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2103 2014-06-04 Tom Tromey <tromey@redhat.com>
2105 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2106 value_from_contents_and_address_unresolved.
2107 (ada_template_to_fixed_record_type_1): Likewise.
2108 (ada_which_variant_applies): Likewise.
2109 * value.h (value_from_contents_and_address_unresolved): Declare.
2110 * value.c (value_from_contents_and_address_unresolved): New
2112 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2113 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2114 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2116 2014-06-04 Tom Tromey <tromey@redhat.com>
2118 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2120 2014-06-04 Tom Tromey <tromey@redhat.com>
2122 * procfs.c (procfs_attach): Make "args" const.
2123 * windows-nat.c (windows_attach): Make "args" const.
2124 * nto-procfs.c (procfs_attach): Make "args" const.
2125 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2126 * go32-nat.c (go32_attach): Make "args" const.
2127 * gnu-nat.c (gnu_attach): Make "args" const.
2128 * darwin-nat.c (darwin_attach): Make "args" const.
2129 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2130 * linux-nat.c (linux_nat_attach): Make "args" const.
2131 * remote.c (extended_remote_attach_1, extended_remote_attach):
2133 * target.h (struct target_ops) <to_attach>: Make "args" const.
2134 (find_default_attach): Likewise.
2135 * utils.c (parse_pid_to_attach): Make "args" const.
2136 * utils.h (parse_pid_to_attach): Update.
2138 2014-06-04 Tom Tromey <tromey@redhat.com>
2140 * target-delegates.c: Rebuild.
2141 * target.c (default_thread_address_space): New function.
2142 (target_thread_address_space): Simplify.
2143 * target.h (struct target_ops) <to_thread_address_space>: Add
2144 TARGET_DEFAULT_FUNC.
2146 2014-06-04 Doug Evans <xdje42@gmail.com>
2148 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2150 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2152 * record-btrace.c: Include event-loop.h and inf-loop.h.
2153 (record_btrace_resume_exec_dir)
2154 (record_btrace_async_inferior_event_handler)
2155 (record_btrace_handle_async_inferior_event): New.
2156 (record_btrace_open): Create async event handler.
2157 (record_btrace_close): Delete async event handler.
2158 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2159 Mark async event handler.
2160 (record_btrace_execution_direction): New.
2161 (init_record_btrace_ops): Initialize to_execution_direction.
2163 2014-06-03 Doug Evans <xdje42@gmail.com>
2165 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2166 (gdbscm_make_parameter): Ditto.
2168 2014-06-03 Doug Evans <dje@google.com>
2170 * exec.c (exec_close_1): Call clear_section_table instead of
2171 resize_section_table.
2172 (clear_section_table): New function.
2173 (resize_section_table): Make static. Rename arg num_added to
2175 * exec.h (clear_section_table): Declare.
2176 (resize_section_table): Delete.
2177 * progspace.c (release_program_space): Call clear_section_table
2178 instead of resize_section_table.
2180 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2182 * NEWS (Python Scripting): Add entry about the new xmethods
2185 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2187 * python/py-xmethods.c: New file.
2188 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2189 (objfpy_dealloc): XDECREF on the new xmethods field.
2190 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2192 (objfpy_get_xmethods): New function.
2193 (objfile_getset): New entry 'xmethods'.
2194 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2195 (pspy_dealloc): XDECREF on the new xmethods field.
2196 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2198 (pspy_get_xmethods): New function.
2199 (pspace_getset): New entry 'xmethods'.
2200 * python/python-internal.h: Add declarations for new functions.
2201 * python/python.c (_initialize_python): Invoke
2202 gdbpy_initialize_xmethods.
2203 * python/lib/gdb/__init__.py (xmethods): New
2205 * python/lib/gdb/xmethod.py: New file.
2206 * python/lib/gdb/command/xmethods.py: New file.
2208 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2210 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2211 best match method returned by find_overload_match is an xmethod.
2212 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2213 the best matching operator returned by find_overload_match is an
2215 * valops.c: #include "extension.h".
2216 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2217 Return void. The list of matching source methods is returned in
2218 "fn_list" and a vector of matching debug method workers is
2219 returned in "xm_worker_vec". Update all callers.
2220 (value_find_oload_method_list): Likewise.
2221 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2222 non-NULL, then the index of the best matching method in this
2223 vector is returned. Update all callers.
2224 (find_overload_match): Include xmethods while performing overload
2227 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2229 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2230 * extension-priv.h (struct extension_language_ops): Add the
2232 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2233 get_matching_xmethod_workers, get_xmethod_argtypes,
2234 invoke_xmethod, free_xmethod_worker,
2235 free_xmethod_worker_vec): New functions.
2236 * extension.h: #include "common/vec.h".
2237 New function declarations.
2238 (struct xmethod_worker): New struct.
2239 (VEC (xmethod_worker_ptr)): New vector type.
2240 (xmethod_worker_ptr): New typedef.
2241 (xmethod_worker_vec): Likewise.
2242 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2244 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2245 (struct builtin_type): New field "xmethod".
2246 * valarith.c (value_ptradd): Assert that the value argument is not
2248 * valops.c (value_must_coerce_to_target): Return 0 for
2249 lval_xcallable values.
2250 * value.c (struct value): New field XM_WORKER in the field
2252 (value_address, value_raw_address): Return 0 for lval_xcallable
2254 (set_value_address): Assert that the value is not an
2256 (value_free): Free the associated xmethod worker when freeing
2257 lval_xcallable values.
2258 (set_value_component_location): Assert that the WHOLE value is not
2260 (value_of_xmethod, call_xmethod): New functions.
2261 * value.h: Declare "struct xmethod_worker".
2262 Declare new functions value_of_xmethod, call_xmethod.
2264 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2265 Pedro Alves <palves@redhat.com>
2267 PR breakpoints/17000
2268 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2269 New function, extracted from software_breakpoint_inserted_here_p.
2270 (software_breakpoint_inserted_here_p): Replace factored out code
2271 by call to find_non_raw_software_breakpoint_inserted_here.
2272 (bp_target_info_copy_insertion_state): New function.
2273 (bkpt_insert_location): Handle the case of a single-step
2274 breakpoint already inserted at the same address.
2275 (bkpt_remove_location): Handle the case of a single-step
2276 breakpoint still inserted at the same address.
2277 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2278 breakpoint already inserted at the same address.
2279 (deprecated_remove_raw_breakpoint): Handle the case of a
2280 non-raw breakpoint still inserted at the same address.
2281 (find_single_step_breakpoint): New function, extracted from
2282 single_step_breakpoint_inserted_here_p.
2283 (find_single_step_breakpoint): New function,
2284 factored out from single_step_breakpoint_inserted_here_p.
2285 (single_step_breakpoint_inserted_here_p): Reimplement.
2287 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2289 Pushed by Joel Brobecker <brobecker@adacore.com>
2290 * source.c (show_substitute_path_command): Fix display of matching
2293 2014-06-03 Gary Benson <gbenson@redhat.com>
2295 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2297 2014-06-02 Doug Evans <xdje42@gmail.com>
2299 Add parameter support for Guile.
2300 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2301 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2302 (scm-param.o): New rule.
2303 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2304 (gdbscm_misc_error): Declare.
2305 (gdbscm_canonicalize_command_name): Declare.
2306 (gdbscm_scm_to_host_string): Declare.
2307 (gdbscm_scm_from_host_string): Declare.
2308 (gdbscm_initialize_parameters): Declare.
2309 * guile/guile.c (initialize_gdb_module): Call
2310 gdbscm_initialize_parameters.
2311 * guile/lib/gdb.scm: Export parameter symbols.
2312 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2313 cmdscm_canonicalize_name and made public. All callers updated.
2314 * guile/scm-exception.c (gdbscm_misc_error): New function.
2315 * guile/scm-param.c: New file.
2316 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2317 (gdbscm_scm_to_host_string): New function.
2318 (gdbscm_scm_from_host_string): New function.
2319 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2321 2014-06-02 Doug Evans <xdje42@gmail.com>
2323 Add command support for Guile.
2324 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2325 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2326 (scm-cmd.o): New rule.
2327 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2328 (gdbscm_user_error_p): Declare.
2329 (gdbscm_parse_command_name): Declare.
2330 (gdbscm_valid_command_class_p): Declare.
2331 (gdbscm_initialize_commands): Declare.
2332 * guile/guile.c (initialize_gdb_module): Call
2333 gdbscm_initialize_commands.
2334 * guile/lib/gdb.scm: Export command symbols.
2335 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2336 (throw-user-error): New function.
2337 * guile/scm-cmd.c: New file.
2338 * guile/scm-exception.c (user_error_symbol): New static global.
2339 (gdbscm_user_error_p): New function.
2340 (gdbscm_initialize_exceptions): Set user_error_symbol.
2341 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2343 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2345 * top.c (command_loop): Handle comments here...
2346 (command_line_input): ... not here.
2348 2014-06-02 Doug Evans <xdje42@gmail.com>
2350 Add progspace support for Guile.
2351 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2352 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2353 (scm-progspace.o): New rule.
2354 * guile/guile-internal.h (pspace_smob): New typedef.
2355 (psscm_pspace_smob_pretty_printers): Declare.
2356 (psscm_pspace_smob_from_pspace): Declare.
2357 (psscm_scm_from_pspace): Declare.
2358 * guile/guile.c (initialize_gdb_module): Call
2359 gdbscm_initialize_pspaces.
2360 * guile/lib/gdb.scm: Export progspace symbols.
2361 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2363 (append-pretty-printer!): Ditto.
2364 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2366 * guile/scm-progspace.c: New file.
2368 2014-06-03 Alan Modra <amodra@gmail.com>
2370 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2371 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2373 2014-06-02 Doug Evans <dje@google.com>
2375 Add support for skeletonless type units.
2376 * dwarf2read.c (struct dwarf2_per_objfile): New member
2377 n_allocated_type_units.
2378 (struct dwarf2_per_objfile) <tu_stats>: New member
2379 nr_all_type_units_reallocs.
2380 (create_signatured_type_table_from_index): Initialize
2381 n_allocated_type_units
2382 (create_all_type_units): Ditto.
2383 (add_type_unit): Move up in file. New arg slot.
2384 All callers updated. Increase space for all_type_units more
2386 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2387 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2388 (lookup_dwp_signatured_type): Ditto.
2389 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2390 All callers updated.
2391 (build_type_psymtabs_1): Leave type_unit_groups as
2392 NULL if no TUs present.
2393 (print_tu_stats): New function.
2394 (process_skeletonless_type_unit): New function.
2395 (process_dwo_file_for_skeletonless_type_units): New
2397 (process_skeletonless_type_units): New function.
2398 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2399 Call print tu_stats if debugging enabled.
2401 2014-06-02 Pedro Alves <palves@redhat.com>
2403 * breakpoint.c (build_target_command_list): Don't build a command
2404 list if we have any duplicate location that isn't a dprintf.
2406 2014-06-02 Pedro Alves <palves@redhat.com>
2408 * breakpoint.c (dprintf_breakpoint_hit): New function.
2409 (initialize_breakpoint_ops): Install it as dprintf's
2410 breakpoint_hit method.
2412 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2414 * source.c (substitute_path_rule_matches): Simplify using
2415 filename_ncmp instead of FILENAME_CMP.
2417 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2419 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2421 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2423 * configure.ac: When Guile is available, check for the
2424 availability of 'scm_new_smob'.
2425 * configure, config.h.in: Regenerate.
2426 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2429 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2431 * frame.c (struct frame_info): Add stop_string field.
2432 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2433 (get_prev_frame_always): Old content moved into
2434 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2435 TRY_CATCH, handle MEMORY_ERROR exceptions.
2436 (frame_stop_reason_string): New function definition.
2437 * frame.h (unwind_stop_reason_to_string): Extend comment to
2438 mention frame_stop_reason_string.
2439 (frame_stop_reason_string): New function declaration.
2440 * stack.c (frame_info): Switch to frame_stop_reason_string.
2441 (backtrace_command_1): Switch to frame_stop_reason_string.
2442 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2443 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2444 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2446 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2448 * frame.c (frame_stop_reason_string): Rename to ...
2449 (unwind_stop_reason_to_string): this.
2450 * frame.h (frame_stop_reason_string): Rename to ...
2451 (unwind_stop_reason_to_string): this.
2452 * stack.c (frame_info): Update call to frame_stop_reason_string.
2453 (backtrace_command_1): Likewise.
2454 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2455 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2457 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2459 * frame.c (remove_prev_frame): New function.
2460 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2463 2014-05-29 Pedro Alves <palves@redhat.com>
2465 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2466 and make it const. When a single-step decays to a continue,
2467 clear 'step', not 'hw_step'. Pass whether the caller wanted
2468 to step to user_visible_resume_ptid, not what we ask the
2471 2014-05-29 Pedro Alves <palves@redhat.com>
2473 * infrun.c (process_event_stop_test, handle_step_into_function)
2474 (handle_step_into_function_backward): Adjust.
2475 Don't set the even thread's stop_step and call stop_waiting before
2476 calling end_stepping_range. Instead do that ...
2477 (end_stepping_range): ... here. Take an ecs pointer parameter.
2479 2014-05-29 Pedro Alves <palves@redhat.com>
2481 * infrun.c (stop_stepping): Rename to ...
2482 (stop_waiting): ... this.
2483 (proceed): Update comment.
2484 (process_event_stop_test, handle_inferior_event)
2485 (handle_signal_stop, handle_step_into_function)
2486 (handle_step_into_function_backward): Update.
2488 2014-05-29 Pedro Alves <palves@redhat.com>
2490 * infcall.c (run_inferior_call): Don't check whether the current
2491 thread is running after the proceed call.
2493 2014-05-29 Pedro Alves <palves@redhat.com>
2494 Tom Tromey <tromey@redhat.com>
2496 * NEWS: Mention "maint set target-async", "set mi-async", and that
2497 background execution commands are now always available.
2498 * target.h (target_async_permitted): Update comment.
2499 * target.c (target_async_permitted, target_async_permitted_1):
2501 (set_target_async_command): Rename to ...
2502 (maint_set_target_async_command): ... this.
2503 (show_target_async_command): Rename to ...
2504 (maint_show_target_async_command): ... this.
2505 (_initialize_target): Adjust.
2506 * infcmd.c (prepare_execution_command): Make extern.
2507 * inferior.h (prepare_execution_command): Declare.
2508 * infrun.c (set_observer_mode): Leave target async alone.
2509 * mi/mi-interp.c (mi_interpreter_init): Install
2510 mi_on_sync_execution_done as sync_execution_done observer.
2511 (mi_on_sync_execution_done): New function.
2512 (mi_execute_command_input_handler): Don't print the prompt if we
2513 just started a synchronous command with an async target.
2514 (mi_on_resume): Check sync_execution before printing prompt.
2515 * mi/mi-main.h (mi_async_p): Declare.
2516 * mi/mi-main.c: Include gdbcmd.h.
2517 (mi_async_p): New function.
2518 (mi_async, mi_async_1): New globals.
2519 (set_mi_async_command, show_mi_async_command, mi_async): New
2521 (exec_continue): Call prepare_execution_command.
2522 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2523 (mi_execute_async_cli_command): Use mi_async_p.
2524 (_initialize_mi_main): Install "set mi-async". Make
2525 "target-async" a deprecated alias.
2527 2014-05-29 Pedro Alves <palves@redhat.com>
2529 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2530 (_initialize_cli_interp): Adjust.
2531 * event-loop.c: Include "observer.h".
2532 (start_event_loop): Notify 'command_error' observers instead of
2533 calling display_gdb_prompt. Remove FIXME comment.
2534 * event-top.c (display_gdb_prompt): Remove call into the
2536 * inf-loop.c: Include "observer.h".
2537 (inferior_event_handler): Notify 'command_error' observers instead
2538 of calling display_gdb_prompt.
2539 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2540 observers instead of calling display_gdb_prompt.
2541 * interps.c (interp_set): Don't call display_gdb_prompt.
2542 (current_interp_display_prompt_p): Delete.
2543 * interps.h (interp_prompt_p): Delete declaration.
2544 (interp_prompt_p_ftype): Delete.
2545 (struct interp_procs) <prompt_proc_p>: Delete field.
2546 (current_interp_display_prompt_p): Delete declaration.
2547 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2548 (_initialize_mi_interp): Adjust.
2549 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2550 'command_error' observers.
2551 (tui_on_sync_execution_done, tui_on_command_error): New
2553 (tui_display_prompt_p): Delete.
2554 (_initialize_tui_interp): Adjust.
2556 2014-05-29 Pedro Alves <palves@redhat.com>
2559 * cli/cli-interp.c: Include infrun.h and observer.h.
2560 (cli_uiout, cli_interp): New globals.
2561 (cli_on_signal_received, cli_on_end_stepping_range)
2562 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2564 (cli_interpreter_init): Install them as 'end_stepping_range',
2565 'signal_received' 'signal_exited', 'exited' and 'no_history'
2567 (_initialize_cli_interp): Remove cli_interp local.
2568 * infrun.c (handle_inferior_event): Call the several stop reason
2569 observers instead of printing the stop reason directly.
2570 (end_stepping_range): New function.
2571 (print_end_stepping_range_reason, print_signal_exited_reason)
2572 (print_exited_reason, print_signal_received_reason)
2573 (print_no_history_reason): Make static, and add an uiout
2574 parameter. Print to that instead of to CURRENT_UIOUT.
2575 * infrun.h (print_end_stepping_range_reason)
2576 (print_signal_exited_reason, print_exited_reason)
2577 (print_signal_received_reason print_no_history_reason): New
2579 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2581 <cli_uiout>: New field.
2582 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2583 uiout for CLI output. Install 'signal_received',
2584 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2586 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2587 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2588 (mi_on_no_history): New functions.
2589 (ui_out_free_cleanup): Delete function.
2590 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2591 instead use the one already stored in the MI interpreter data.
2592 (mi_ui_out): Adjust.
2593 * tui/tui-interp.c: Include infrun.h and observer.h.
2594 (tui_interp): New global.
2595 (tui_on_signal_received, tui_on_end_stepping_range)
2596 (tui_on_signal_exited, tui_on_exited)
2597 (tui_on_no_history): New functions.
2598 (tui_init): Install them as 'end_stepping_range',
2599 'signal_received' 'signal_exited', 'exited' and 'no_history'
2601 (_initialize_tui_interp): Delete tui_interp local.
2603 2014-05-29 Pedro Alves <palves@redhat.com>
2606 * linux-nat.c (linux_nat_resume_callback): Rename the second
2607 parameter to 'except'. Skip LP if it points to EXCEPT.
2608 (linux_nat_resume): Don't mark the event lwp as not stopped
2609 before resuming sibling lwps. Instead ask
2610 linux_nat_resume_callback to skip the event lwp. Mark it as not
2611 stopped after actually resuming it.
2612 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2614 (wait_lwp): Mark the lwp as stopped here.
2615 (stop_wait_callback): Mark the lwp as not stopped right after
2616 resuming it. Don't mark lwps as stopped here.
2617 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2618 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2620 2014-05-29 Pedro Alves <palves@redhat.com>
2623 * infrun.c (resume): Determine how much to resume depending on
2624 whether the caller wanted a step, not whether we can hardware step
2625 the target. Mark all threads that we intend to run as running,
2626 unless we're calling an inferior function.
2627 (normal_stop): If the thread is running an infcall, don't finish
2629 * target.c (target_resume): Don't mark threads as running here.
2631 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2633 * serial.c (_initialize_serial): Remove support for
2634 the "set remotebaud" and "show remotebaud" commands.
2635 * NEWS: Add entry documenting the removal of that command.
2637 2014-05-28 Yao Qi <yao@codesourcery.com>
2639 * charset.c: Fix typo in comments.
2641 2014-05-27 Gary Benson <gbenson@redhat.com>
2643 * utils.c (internal_vproblem): Prompt for a bug report.
2645 2014-05-26 Andy Wingo <wingo@igalia.com>
2647 * guile/scm-arch.c (arscm_mark_arch_smob):
2648 * guile/scm-block.c (bkscm_mark_block_smob)
2649 (bkscm_mark_block_syms_progress_smob):
2650 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2651 * guile/scm-exception.c (exscm_mark_exception_smob):
2652 * guile/scm-frame.c (frscm_mark_frame_smob):
2653 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2654 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2655 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2656 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2657 (ppscm_mark_pretty_printer_worker_smob):
2658 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2659 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2660 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2661 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2663 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2666 2014-05-26 Andy Wingo <wingo@igalia.com>
2667 Doug Evans <xdje42@gmail.com>
2669 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2670 empty_base_class. All uses updated.
2671 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2672 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2674 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2675 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2676 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2677 (gdbscm_gsmob_has_property_p, add_property_name)
2678 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2679 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2680 (gdb-object-has-property?, gdb-object-properties): Remove.
2681 (gdb-object-kind): Renamed from gsmob-kind.
2683 2014-05-26 Andy Wingo <wingo@igalia.com>
2685 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2686 * configure: Regenerate.
2688 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2690 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2692 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2694 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2695 (replay_memory_access_read_only, replay_memory_access_read_write)
2696 (replay_memory_access_types, replay_memory_access)
2697 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2698 (cmd_set_record_btrace, cmd_show_record_btrace)
2699 (cmd_show_replay_memory_access): New.
2700 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2701 (record_btrace_remove_breakpoint): Replace
2702 record_btrace_allow_memory_access with replay_memory_access.
2703 (_initialize_record_btrace): Add commands.
2704 * NEWS: Announce it.
2706 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2708 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2710 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2712 * MAINTAINERS (Write After Approval): Move self back from
2715 2014-05-22 Pedro Alves <palves@redhat.com>
2717 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2718 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2719 (disable_randomization, enum exec_direction_kind)
2720 (execution_direction, stop_registers, start_remote)
2721 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2722 (wait_for_inferior, normal_stop, get_last_target_status)
2723 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2724 (insert_step_resume_breakpoint_at_sal)
2725 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2726 (set_step_info, print_stop_event, signal_stop_state)
2727 (signal_print_state, signal_pass_state, signal_stop_update)
2728 (signal_print_update, signal_pass_update)
2729 (update_signals_program_target, clear_exit_convenience_vars)
2730 (displaced_step_dump_bytes, update_observer_mode)
2731 (signal_catch_update, gdb_signal_from_command): Move
2733 * infrun.h: ... to this new file.
2734 * amd64-tdep.c: Include infrun.h.
2735 * annotate.c: Include infrun.h.
2736 * arch-utils.c: Include infrun.h.
2737 * arm-linux-tdep.c: Include infrun.h.
2738 * arm-tdep.c: Include infrun.h.
2739 * break-catch-sig.c: Include infrun.h.
2740 * breakpoint.c: Include infrun.h.
2741 * common/agent.c: Include infrun.h instead of inferior.h.
2742 * corelow.c: Include infrun.h.
2743 * event-top.c: Include infrun.h.
2744 * go32-nat.c: Include infrun.h.
2745 * i386-tdep.c: Include infrun.h.
2746 * inf-loop.c: Include infrun.h.
2747 * infcall.c: Include infrun.h.
2748 * infcmd.c: Include infrun.h.
2749 * infrun.c: Include infrun.h.
2750 * linux-fork.c: Include infrun.h.
2751 * linux-nat.c: Include infrun.h.
2752 * linux-thread-db.c: Include infrun.h.
2753 * monitor.c: Include infrun.h.
2754 * nto-tdep.c: Include infrun.h.
2755 * procfs.c: Include infrun.h.
2756 * record-btrace.c: Include infrun.h.
2757 * record-full.c: Include infrun.h.
2758 * remote-m32r-sdi.c: Include infrun.h.
2759 * remote-mips.c: Include infrun.h.
2760 * remote-notif.c: Include infrun.h.
2761 * remote-sim.c: Include infrun.h.
2762 * remote.c: Include infrun.h.
2763 * reverse.c: Include infrun.h.
2764 * rs6000-tdep.c: Include infrun.h.
2765 * s390-linux-tdep.c: Include infrun.h.
2766 * solib-irix.c: Include infrun.h.
2767 * solib-osf.c: Include infrun.h.
2768 * solib-svr4.c: Include infrun.h.
2769 * target.c: Include infrun.h.
2770 * top.c: Include infrun.h.
2771 * windows-nat.c: Include infrun.h.
2772 * mi/mi-interp.c: Include infrun.h.
2773 * mi/mi-main.c: Include infrun.h.
2774 * python/py-threadevent.c: Include infrun.h.
2776 2014-05-22 Pedro Alves <palves@redhat.com>
2778 * infrun.c (handle_inferior_event): Store the exit code for
2779 --return-child-result here, instead of ...
2780 (print_exited_reason): ... here.
2782 2014-05-21 Pedro Alves <palves@redhat.com>
2785 * gdbthread.h (struct thread_control_state): New field
2787 * infrun.c (follow_fork): Copy the new thread control field to the
2789 (clear_proceed_status_thread): Clear the new thread control field.
2790 (proceed): Set the new thread control field.
2791 * interps.h (command_interp): Declare.
2792 * interps.c (command_interpreter): New global.
2793 (command_interp): New function.
2794 (interp_exec): Set `command_interpreter' while here.
2795 * cli-out.c (cli_uiout_dtor): New function.
2796 (cli_ui_out_impl): Install it.
2797 * mi/mi-interp.c: Include cli-out.h.
2798 (mi_cmd_interpreter_exec): Add comment.
2799 (restore_current_uiout_cleanup): New function.
2800 (ui_out_free_cleanup): New function.
2801 (mi_on_normal_stop): If finishing an execution command started by
2802 a CLI command, or any kind of breakpoint-like event triggered,
2803 print the stop event to the output (CLI) stream.
2804 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2806 2014-05-21 Pedro Alves <palves@redhat.com>
2808 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2809 current source line having changed.
2810 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2811 * infrun.c (normal_stop): Adjust call to
2812 set_current_sal_from_frame.
2813 * source.c (clear_lines_listed_range): New function.
2814 (set_current_source_symtab_and_line, identify_source_line): Clear
2815 the lines listed range.
2816 (line_info): Handle the first "info line" after the current source
2817 line having changed.
2818 * stack.c (print_stack_frame): Remove center handling.
2819 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2822 2014-05-21 Pedro Alves <palves@redhat.com>
2824 * inf-child.c (inf_child_mourn_inferior): New function.
2825 * inf-child.h (inf_child_mourn_inferior): New declaration.
2826 * darwin-nat.c (darwin_mourn_inferior): Use
2827 inf_child_mourn_inferior.
2828 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2829 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2830 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2831 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2832 * windows-nat.c (windows_mourn_inferior): Likewise.
2834 2014-05-21 Doug Evans <xdje42@gmail.com>
2836 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2838 2014-05-21 Doug Evans <xdje42@gmail.com>
2840 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2841 (gdbscm_out_of_range_error): Ditto.
2842 (gdbscm_memory_error): Ditto.
2843 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2844 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2845 (gdbscm_out_of_range_error): Update.
2846 (gdbscm_memory_error): Update.
2847 (gdbscm_scm_to_target_string_unsafe): Delete.
2849 2014-05-21 Pedro Alves <palves@redhat.com>
2851 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2853 (inf_child_open_target): New function.
2854 (inf_child_open): Use inf_child_open_target to push the target
2855 instead of erroring out.
2856 (inf_child_disconnect, inf_child_close)
2857 (inf_child_maybe_unpush_target): New functions.
2858 (inf_child_target): Install inf_child_disconnect and
2859 inf_child_close. Store a pointer to the returned object.
2860 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2862 * target.c (auto_connect_native_target): New global.
2863 (show_default_run_target): New function.
2864 (find_default_run_target): Return NULL if automatically connecting
2865 to the native target is disabled.
2866 (_initialize_target): Install set/show auto-connect-native-target.
2867 * NEWS: Mention "set auto-connect-native-target", and "target
2869 * linux-nat.c (super_close): New global.
2870 (linux_nat_close): Call super_close.
2871 (linux_nat_add_target): Store a pointer to the base class's
2873 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2874 inf_child_maybe_unpush.
2875 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2877 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2878 the inferior. Use inf_child_maybe_unpush_target.
2879 (inf_ttrace_attach): Don't push the target if it is already
2881 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2882 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2883 after mourning the inferior. Use inf_child_maybe_unpush_target.
2884 (darwin_attach_pid): Don't push the target if it is already
2886 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2887 mourning the inferior. Use inf_child_maybe_unpush_target.
2888 (gnu_detach): Use inf_child_maybe_unpush_target.
2889 * go32-nat.c (go32_create_inferior): Don't push the target if it
2891 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2892 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2893 (procfs_open): Rename to ...
2894 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2895 comments. Can target_preopen before changing node. Call
2896 inf_child_open_target to push the target explicitly.
2897 (procfs_attach): Don't push the target if it is already pushed.
2898 (procfs_detach): Use inf_child_maybe_unpush_target.
2899 (procfs_create_inferior): Don't push the target if it is already
2901 (nto_native_ops): New global.
2902 (procfs_open): Reimplement.
2903 (procfs_native_open): New function.
2904 (init_procfs_targets): Install procfs_native_open as to_open of
2905 "target native". Store a pointer to the "native" target in
2907 * procfs.c (procfs_attach): Don't push the target if it is already
2909 (procfs_detach): Use inf_child_maybe_unpush_target.
2910 (procfs_mourn_inferior): Only unpush the target after mourning the
2911 inferior. Use inf_child_maybe_unpush_target.
2912 (procfs_init_inferior): Don't push the target if it is already
2914 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2915 if it is already pushed.
2917 2014-05-21 Pedro Alves <palves@redhat.com>
2919 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2920 and "procfs" targets are now called "native" instead.
2922 2014-05-21 Pedro Alves <palves@redhat.com>
2924 * go32-nat.c (go32_open): Delete.
2925 (go32_target): Don't override the to_open method.
2927 2014-05-21 Pedro Alves <palves@redhat.com>
2929 * nto-procfs.c (procfs_can_run): New function.
2930 (nto_procfs_ops): New global.
2931 (init_procfs_targets): New, based on procfs_target. Install
2932 "target native" in addition to "target procfs".
2933 (_initialize_procfs): Call init_procfs_targets instead of adding
2936 2014-05-21 Pedro Alves <palves@redhat.com>
2938 * windows-nat.c (windows_target): Don't override to_shortname,
2939 to_longname or to_doc.
2941 2014-05-21 Pedro Alves <palves@redhat.com>
2943 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2946 2014-05-21 Pedro Alves <palves@redhat.com>
2948 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2949 to_shortname, to_longname or to_doc.
2951 2014-05-21 Pedro Alves <palves@redhat.com>
2953 * go32-nat.c (go32_target): Don't override to_shortname,
2954 to_longname or to_doc.
2956 2014-05-21 Pedro Alves <palves@redhat.com>
2958 * inf-child.c (inf_child_open): Remove mention of "child".
2959 (inf_child_target): Rename target to "native" instead of "child".
2961 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2963 * Makefile.in (SFILES): Delete "regset.c".
2964 (COMMON_OBS): Delete "regset.o".
2966 * regset.h (regset_alloc): Delete prototype.
2968 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2970 * sparc-linux-tdep.c (sparc32_linux_gregset)
2971 (sparc32_linux_fpregset): New static regset structures.
2972 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2973 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2975 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2976 (sparc64_linux_fpregset): New static regset structures.
2977 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2978 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2979 New static regset structures.
2980 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2981 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2982 New static regset structures.
2983 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2984 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2985 New static regset structures.
2986 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2987 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2988 New static regset structures.
2989 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2991 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2993 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2994 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2995 register maps ("regmaps") from "*regset" to "*regmap". Do this
2996 for all regmap types and variables.
2997 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2998 (sparc32_linux_supply_core_gregset)
2999 (sparc32_linux_collect_core_gregset)
3000 (sparc32_linux_supply_core_fpregset)
3001 (sparc32_linux_collect_core_fpregset): Likewise.
3002 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3003 (sparc_gregmap, sparc_fpregmap): ... these.
3004 (sparc_supply_gregset, sparc_collect_gregset)
3005 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3006 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3007 (_initialize_sparc_nat): Rename regmaps.
3008 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3009 (sparc_gregmap, sparc_fpregmap): ... these.
3010 (sparc_supply_gregset, sparc_collect_gregset)
3011 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3012 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3014 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3015 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3017 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3019 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3020 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3021 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3023 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3024 (sparc32_bsd_fpregset): Rename to...
3025 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3026 (sparc32_bsd_fpregmap): ... these.
3027 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3028 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3029 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3030 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3031 (struct sparc_gregmap, struct sparc_fpregmap)
3032 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3033 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3034 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3035 (sparc32_supply_regset, sparc32_collect_gregset)
3036 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3038 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3039 (sparc64_linux_ptrace_gregmap): ... this.
3040 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3041 (_initialize_sparc64_linux_nat): Rename regmaps.
3042 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3043 (sparc64_linux_core_gregmap): ... this.
3044 (sparc64_linux_supply_core_gregset)
3045 (sparc64_linux_collect_core_gregset)
3046 (sparc64_linux_supply_core_fpregset)
3047 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3048 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3049 (sparc64_sol2_fpregset): Rename to...
3050 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3051 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3052 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3054 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3055 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3056 (sparc64_bsd_fpregset): Rename to...
3057 (struct sparc_gregmap, sparc64_sol2_gregmap)
3058 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3059 (sparc64_bsd_fpregmap): ... these.
3060 (sparc64_supply_gregset, sparc64_collect_gregset)
3061 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3063 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3064 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3065 (sparc64fbsd_gregmap): ... this.
3066 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3067 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3069 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3070 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3071 (sparc64nbsd_collect_fpregset): Likewise.
3072 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3073 (sparc64nbsd_gregmap): ... this.
3074 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3076 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3077 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3078 (sparc64obsd_gregmap): ... this.
3079 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3081 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3082 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3083 (sparc32nbsd_gregmap): ... this.
3084 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3087 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3089 * score-tdep.c (score7_linux_gregset): New static regset
3091 (score7_linux_regset_from_core_section): Remove dynamic regset
3093 (score_gdbarch_init): Drop allocation of tdep structure.
3094 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3096 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3098 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3100 (am33_regset_from_core_section): Remove dynamic regset
3103 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3105 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3106 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3108 (mips_linux_regset_from_core_section): Remove dynamic regset
3110 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3111 'gregset64', 'fpregset', and 'fpregset64'.
3112 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3113 deleted tdep fields.
3115 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3117 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3119 (amd64_regset_from_core_section): Remove dynamic regset
3121 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3123 (amd64obsd_regset_from_core_section): Remove dynamic regset
3125 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3127 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3128 x86-common regset supply function.
3129 * i386-tdep.c (i386_collect_gregset): Make static.
3130 (i386_gregset): New global regset structure.
3131 (i386_fpregset, i386_xstateregset): New static regset structures.
3132 (i386_regset_from_core_section): Remove dynamic regset
3134 (i386_gdbarch_init): Remove initialization of tdep fields
3135 'gregset', 'fpregset', and 'xstateregset'.
3136 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3137 'fpregset', and 'xstateregset'.
3138 (i386_collect_gregset): Remove prototype.
3139 (i386_gregset): New declaration.
3140 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3142 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3145 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3147 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3148 (arm_linux_vfpregset): New static regset structures.
3149 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3151 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3152 and 'vfpregset' fields.
3154 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3156 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3157 (aarch64_linux_fpregset): New static regset structures.
3158 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3159 of regset structures.
3160 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3163 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3165 * regset.h (struct regset): Remove gdbarch field.
3166 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3167 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3168 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3170 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3171 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3172 (ppc32_linux_vsxregset): Likewise.
3173 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3174 via the regcache instead of the regset.
3175 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3176 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3177 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3178 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3181 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3183 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3184 Constify structures.
3185 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3186 (alphanbsd_aout_gregset): Likewise.
3187 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3188 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3190 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3191 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3193 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3194 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3195 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3196 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3197 * m88k-tdep.c (m88k_gregset): Likewise.
3198 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3199 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3200 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3201 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3202 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3203 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3204 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3205 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3206 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3208 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3209 * sh-tdep.h (sh_corefile_gregset): Likewise.
3210 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3211 * vax-tdep.c (vax_gregset): Likewise.
3213 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3215 Fix TLS access for -static -pthread.
3216 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3217 (try_thread_db_load_1): Initialize it.
3218 (thread_db_get_thread_local_address): Call it if LM is zero.
3219 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3220 * target.h (struct target_ops) (to_get_thread_local_address): Add
3221 load_module_addr comment.
3223 2014-05-21 Pedro Alves <palves@redhat.com>
3225 * dcache.c (dcache_read_memory_partial): If reading the cache line
3226 fails, fallback to reading just the memory the caller wanted.
3228 2014-05-20 Doug Evans <dje@google.com>
3230 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3231 instead of get_current_arch.
3233 2014-05-20 Pedro Alves <palves@redhat.com>
3235 * NEWS: Mention that compare-sections now works with all targets.
3237 * remote.c (PACKET_qCRC): New enum value.
3238 (remote_verify_memory): Don't send qCRC if the target has no
3239 execution. Use packet_support/packet_ok. If the target doesn't
3240 support the qCRC packet, fallback to a deep memory copy.
3241 (compare_sections_command): Say "target image" instead of "remote
3243 (_initialize_remote): Add PACKET_qCRC to the list of config
3244 packets that have no associated command. Extend comment.
3245 * target.c (simple_verify_memory, default_verify_memory): New
3247 * target.h (struct target_ops) <to_verify_memory>: Default to
3248 default_verify_memory.
3249 (simple_verify_memory): New declaration.
3250 * target-delegates.c: Regenerate.
3252 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3254 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3256 2014-05-20 Hui Zhu <hui@codesourcery.com>
3257 Yao Qi <yao@codesourcery.com>
3260 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3261 and change address of sp and pc.
3263 2014-05-19 Tom Tromey <tromey@redhat.com>
3265 * gdbtypes.c (rank_function): Use XNEWVEC.
3266 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3268 2014-05-19 Doug Evans <dje@google.com>
3270 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3271 build_type_unit_groups and moved closer to only caller. Remove
3272 arguments. All references updated. Remove outdated .gdb_index
3274 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3275 build_type_psymtabs_1.
3277 2014-05-19 Doug Evans <dje@google.com>
3279 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3280 n_type_unit_groups, all_type_unit_groups. All uses removed.
3281 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3282 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3283 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3284 (add_type_unit_group_to_table): Delete.
3286 2014-05-19 Doug Evans <dje@google.com>
3288 * eval.c (evaluate_subexp_standard): Add some comments.
3290 2014-05-17 Doug Evans <xdje42@gmail.com>
3292 * progspace.c (remove_program_space): Delete, unused.
3293 * progspace.h (remove_program_space): Ditto.
3295 2014-05-17 Doug Evans <xdje42@gmail.com>
3297 * inferior.c (prune_inferiors): Fix comment.
3298 (remove_inferior_command): Call prune_program_spaces.
3300 2014-05-16 Doug Evans <dje@google.com>
3302 New command line option -D.
3304 * main.c (set_gdb_data_directory): New function.
3305 (captured_main): Recognize -D. Flag error for --data-directory "".
3306 Call set_gdb_data_directory.
3307 (print_gdb_help): Print --data-directory, -D.
3308 * main.h (set_gdb_data_directory): Declare.
3309 * top.c (staged_gdb_datadir): New static global.
3310 (set_gdb_datadir): Call set_gdb_data_directory
3311 (show_gdb_datadir): New function.
3312 (init_main): Update init of data-directory parameter.
3314 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3316 Import the "dirfd" gnulib module.
3317 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3318 * gnulib/aclocal.m4: Update.
3319 * gnulib/config.in: Update.
3320 * gnulib/configure: Update.
3321 * gnulib/import/Makefile.am: Update.
3322 * gnulib/import/Makefile.in: Update.
3323 * gnulib/import/dirfd.c: New.
3324 * gnulib/import/m4/dirfd.m4: New.
3325 * gnulib/import/m4/gnulib-cache.m4: Update.
3326 * gnulib/import/m4/gnulib-comp.m4: Update.
3328 2014-05-16 Pierre Muller <muller@sourceware.org>
3329 Yao Qi <yao@codesourcery.com>
3331 * valprint.c (print_wchar): Move the code on checking whether
3332 W is a printable wide char to the default branch of switch
3333 statement below. Call wchar_printable instead of gdb_iswprint.
3335 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3337 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3338 ldr.w and ldrd instructions.
3340 2014-05-15 Doug Evans <dje@google.com>
3342 * dwarf2read.c (read_structure_type): Delete outdated comments.
3344 2014-05-14 Tom Tromey <tromey@redhat.com>
3346 * macrocmd.c (print_macro_definition): Reindent.
3348 2014-05-13 Doug Evans <xdje42@gmail.com>
3350 * python/py-cmd.c (cmdpy_completer): Add comment.
3351 (completers): Make const.
3353 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3355 * infrun.c (resume): Remove should_resume (unused). Move up
3356 declaration of resume_ptid.
3358 2014-05-13 Tom Tromey <tromey@redhat.com>
3360 * language.h (unop_type_check): Remove.
3361 (binop_type_check): Don't declare.
3363 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3365 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3366 call to regcache_raw_collect.
3368 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3370 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3371 mi_console->quote as the quoting character.
3373 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3375 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3377 2014-04-29 Tom Tromey <tromey@redhat.com>
3379 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3380 "show debug varobj".
3382 2014-05-07 Kyle McMartin <kyle@redhat.com>
3384 Pushed by Joel Brobecker <brobecker@adacore.com>.
3385 * aarch64-tdep.c (aarch64_software_single_step): New function.
3386 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3387 with aarch64_software_single_step.
3389 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3393 2014-05-05 Keith Seitz <keiths@redhat.com>
3395 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3396 variable or history value is successfully parsed.
3398 2014-05-05 Yao Qi <yao@codesourcery.com>
3399 Pedro Alves <palves@redhat.com>
3401 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3402 address of blocks that intersects the requested range. Trim
3403 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3405 * ctf.c (ctf_xfer_partial): Likewise.
3407 2014-05-05 Yao Qi <yao@codesourcery.com>
3409 * printcmd.c (display_command): Remove the check to
3410 target_has_execution.
3412 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3414 * ppcobsd-nat.c: Include "obsd-nat.h".
3415 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3417 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3419 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3421 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3422 and 16-bit signed and unsigned arguments. Update comment.
3423 (stap_parse_probe_arguments): Extend code to handle such
3424 arguments. Use warning instead of complaint to notify about
3425 unrecognized bitness.
3427 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3429 PR breakpoints/16889
3430 * stap-probe.c (stap_parse_probe_arguments): Simplify
3431 check for non-prefixed probes (i.e., probes whose
3432 arguments do not start with "N@"). Always set the
3433 argument type to a sane value.
3435 2014-05-01 David Taylor <dtaylor@emc.com>
3437 * remote.c (compare_sections_command): Add -r option to compare
3438 all loadable read-only sections.
3440 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3442 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3443 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3445 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3446 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3447 Remove unused CORE_ADDR argument. Update all callers.
3449 2014-04-29 Pedro Alves <palves@redhat.com>
3451 * remote.c (struct packet_config) <detect>: Extend comment.
3452 (add_packet_config_cmd): Don't set the config's detect or support
3454 (init_all_packet_configs): Also initialize the config's 'detect'
3456 (reset_all_packet_configs_support): New function.
3457 (remote_open_1): Call reset_all_packet_configs_support instead of
3458 init_all_packet_configs.
3459 (_initialize_remote): Initialize all packet configs. Assert that
3460 all packets have an associated command, except a few known
3463 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3465 * dwarf2read.c (read_subrange_type): Handle dynamic
3466 DW_AT_lower_bound attributes.
3468 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3470 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3471 dynamic bounds before computing its upper bound.
3472 (ada_discrete_type_low_bound): Same as above with the lower bound.
3474 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3476 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3477 range types. Adjust the array handling implementation to
3478 take advantage of this change.
3479 (resolve_dynamic_range): New function, mostly extracted from
3480 resolve_dynamic_bounds.
3481 (resolve_dynamic_array): New function, mostly extracted from
3482 resolve_dynamic_bounds.
3483 (resolve_dynamic_bounds): Delete.
3484 (resolve_dynamic_type): Reimplement. Add handling of
3485 TYPE_CODE_RANGE types.
3487 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3489 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3490 handling of parallel ___XA types.
3492 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3494 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3495 unnecessary second call to static_unwrap_type.
3497 2014-04-27 Hui Zhu <hui@codesourcery.com>
3499 * stack.c (print_frame_info): Call do_gdb_disassembly with
3500 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3502 2014-04-26 Doug Evans <xdje42@gmail.com>
3504 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3506 2014-04-25 Pedro Alves <palves@redhat.com>
3509 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3510 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3511 and newline from built string.
3512 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3513 (linux_ptrace_attach_fail_reason): ... this.
3514 * linux-nat.c (linux_nat_attach): Adjust to use
3515 linux_ptrace_attach_fail_reason.
3517 2014-04-25 Pedro Alves <palves@redhat.com>
3519 * remote.c (struct remote_state): Remove multi_process_aware,
3520 non_stop_aware, cond_tracepoints, cond_breakpoints,
3521 breakpoint_commands, fast_tracepoints, static_tracepoints,
3522 install_in_trace, disconnected_tracing,
3523 enable_disable_tracepoints, string_tracing, and
3524 augmented_libraries_svr4_read fields.
3525 (remote_multi_process_p): Move further below in the file.
3526 (struct packet_config): Add comments.
3527 (update_packet_config): Delete function.
3528 (show_packet_config_cmd): Use packet_config_support.
3529 (add_packet_config_cmd): Use NULL as set callback.
3530 (packet_ok): "set remote foo-packet"-style commands no longer
3531 change config->supported -- adjust.
3532 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3533 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3534 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3535 (PACKET_QNonStop, PACKET_multiprocess_feature)
3536 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3537 (PACKET_DisconnectedTracing_feature)
3538 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3539 (set_remote_protocol_packet_cmd): Delete function.
3540 (packet_config_support, packet_support): New functions.
3541 (set_remote_protocol_Z_packet_cmd): Don't call
3542 update_packet_config.
3543 (remote_query_attached, remote_pass_signals)
3544 (remote_program_signals, remote_threads_info)
3545 (remote_threads_extra_info, remote_start_remote): Use
3547 (remote_start_remote): Use packet_config_support and
3549 (init_all_packet_configs): Set all packets to unknown support,
3550 instead of calling update_packet_config.
3551 (remote_check_symbols): Use packet_support.
3552 (remote_supported_packet): Unconditionally set the packet config's
3554 (remote_multi_process_feature, remote_non_stop_feature)
3555 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3556 (remote_breakpoint_commands_feature)
3557 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3558 (remote_install_in_trace_feature)
3559 (remote_disconnected_tracing_feature)
3560 (remote_enable_disable_tracepoint_feature)
3561 (remote_string_tracing_feature)
3562 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3563 (remote_protocol_features): Adjust to use remote_supported_packet
3564 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3565 "ConditionalTracepoints", "ConditionalBreakpoints",
3566 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3567 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3568 "EnableDisableTracepoints", and "tracenz".
3569 (remote_query_supported): Use packet_support.
3570 (remote_open_1): Adjust.
3571 (extended_remote_attach_1): Use packet_support. Switch on the
3572 result of packet_ok instead of checking whether the packet ended
3574 (remote_vcont_resume): Use packet_support.
3575 (remote_resume, remote_stop_ns, fetch_register_using_p)
3576 (remote_prepare_to_store, store_register_using_P)
3577 (check_binary_download, remote_write_bytes): Use packet_support.
3578 (remote_vkill): Use packet_support. Switch on the result of
3579 packet_ok instead of checking whether the packet ended up
3581 (extended_remote_supports_disable_randomization): Use
3583 (extended_remote_run): Switch on the result of packet_ok instead
3584 of checking whether the packet ended up disabled.
3585 (remote_insert_breakpoint, remote_remove_breakpoint)
3586 (remote_insert_watchpoint, remote_remove_watchpoint)
3587 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3589 (remote_search_memory): Use packet_config_support.
3590 (remote_get_thread_local_address, remote_get_tib_address)
3591 (remote_hostio_send_command, remote_can_execute_reverse): Use
3593 (remote_supports_cond_tracepoints)
3594 (remote_supports_cond_breakpoints)
3595 (remote_supports_fast_tracepoints)
3596 (remote_supports_static_tracepoints)
3597 (remote_supports_install_in_trace)
3598 (remote_supports_enable_disable_tracepoint)
3599 (remote_supports_string_tracing)
3600 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3601 the packet config says the feature is enabled or disabled.
3602 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3603 (remote_get_trace_status): Use packet_support.
3604 (remote_set_disconnected_tracing): Adjust to check whether the
3605 feature is enabled with packet_support.
3606 (remote_set_trace_buffer_size, remote_use_agent)
3607 (remote_can_use_agent, remote_supports_btrace): Use
3609 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3610 Use packet_config_support.
3611 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3612 the packet config says the feature is enabled or disabled.
3613 (set_range_stepping): Use packet_support.
3615 2014-04-25 Tom Tromey <tromey@redhat.com>
3617 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3620 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3622 * NEWS: Mention support for C99 variable length arrays.
3624 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3626 * ada-lang.c (standard_exc): Expand introductory comment.
3628 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3629 Walfred Tedeschi <walfred.tedeschi@intel.com>
3631 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3633 (amd64_linux_read_description): Add code to handle AVX512 xstate
3634 mask and return respective tdesc.
3635 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3636 and features/i386/x32-avx512-linux.c.
3637 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3638 (amd64_linux_core_read_description): Add code to handle AVX512
3639 xstate mask and return respective tdesc.
3640 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3641 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3643 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3644 (tdesc_amd64_avx512_linux): New prototype.
3645 (tdesc_x32_avx512_linux): Likewise.
3646 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3647 features/i386/x32-avx512.c.
3648 (amd64_ymm_avx512_names): New register names for pseudo
3650 (amd64_ymmh_avx512_names): New register names for raw registers
3652 (amd64_k_names): New register names for K registers.
3653 (amd64_zmmh_names): New register names for ZMM raw registers.
3654 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3655 (amd64_xmm_avx512_names): New register names for XMM16-31
3657 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3659 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3660 if feature is present.
3661 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3662 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3663 (AMD64_NUM_REGS): Adjust to new number of registers.
3664 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3665 registers supplied via XSTATE by AVX512 registers.
3666 (i386_linux_read_description): Add case for AVX512.
3667 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3668 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3669 (i386_linux_core_read_description): Add case for AVX512.
3670 (i386_linux_init_abi): Install supported register note section
3672 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3674 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3675 registers to be number of zmm7h + 1.
3676 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3677 * i386-tdep.c: Include features/i386/i386-avx512.c.
3678 (i386_zmm_names): Add ZMM pseudo register names array.
3679 (i386_zmmh_names): Add ZMM raw register names array.
3680 (i386_k_names): Add K raw register names array.
3681 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3682 registers. AVX512 has 16 more ZMM registers than there are YMM
3684 (i386_zmmh_regnum_p): Add function to look up register number of
3686 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3687 (i386_k_regnum_p): Likewise for K raw registers.
3688 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3689 registers added by AVX512.
3690 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3691 registers added by AVX512.
3692 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3694 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3695 (i386_pseudo_register_name): Add ZMM pseudo registers.
3696 (i386_zmm_type): Construct and return vector registers type for ZMM
3698 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3699 ZMM0-31 pseudo registers and K registers.
3700 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3701 and YMM16-31 registers from register cache.
3702 (i386_pseudo_register_write): Add code to write K, ZMM and
3704 (i386_register_reggroup_p): Add code to include/exclude AVX512
3705 registers in/from respective register groups.
3706 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3707 registers if feature is present in xcr0.
3708 (i386_gdbarch_init): Add code to initialize AVX512 feature
3709 variables in tdep structure, wire in pseudo registers and call
3710 initialize_tdesc_i386_avx512.
3711 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3713 (i386_regnum): Add AVX512 registers.
3714 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3715 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3716 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3717 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3719 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3720 (i386_ymm_avx512_regnum_p): Likewise.
3721 (i386_k_regnum_p): Likewise.
3722 (i386_zmm_regnum_p): Likewise.
3723 (i386_zmmh_regnum_p): Likewise.
3724 * i387-tdep.c : Update year in copyright notice.
3725 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3727 (XSAVE_YMM_AVX512_ADDR): New macro.
3728 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3730 (XSAVE_XMM_AVX512_ADDR): New macro.
3731 (xsave_avx512_k_offset): New table for K register offsets in
3733 (XSAVE_AVX512_K_ADDR): New macro.
3734 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3736 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3737 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3739 (i387_collect_xsave): Add code to collect AVX512 registers from
3741 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3742 of XMM16-31 registers.
3743 (I387_NUM_K_REGS): New define for number of K registers.
3744 (I387_K0_REGNUM): New define for K0 register number.
3745 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3746 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3747 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3749 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3750 (I387_XMM16_REGNUM): New define for XMM16 register number.
3751 (I387_YMM0_REGNUM): New define for YMM0 register number.
3752 (I387_KEND_REGNUM): New define for last K register number.
3753 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3754 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3756 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3758 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3760 * features/Makefile: Add AVX512 related files.
3761 * features/i386/32bit-avx512.xml: New file.
3762 * features/i386/64bit-avx512.xml: Likewise.
3763 * features/i386/amd64-avx512-linux.c: Likewise.
3764 * features/i386/amd64-avx512-linux.xml: Likewise.
3765 * features/i386/amd64-avx512.c: Likewise.
3766 * features/i386/amd64-avx512.xml: Likewise.
3767 * features/i386/i386-avx512-linux.c: Likewise.
3768 * features/i386/i386-avx512-linux.xml: Likewise.
3769 * features/i386/i386-avx512.c: Likewise.
3770 * features/i386/i386-avx512.xml: Likewise.
3771 * features/i386/x32-avx512-linux.c: Likewise.
3772 * features/i386/x32-avx512-linux.xml: Likewise.
3773 * features/i386/x32-avx512.c: Likewise.
3774 * features/i386/x32-avx512.xml: Likewise.
3775 * regformats/i386/amd64-avx512-linux.dat: New file.
3776 * regformats/i386/amd64-avx512.dat: Likewise.
3777 * regformats/i386/i386-avx512-linux.dat: Likewise.
3778 * regformats/i386/i386-avx512.dat: Likewise.
3779 * regformats/i386/x32-avx512-linux.dat: Likewise.
3780 * regformats/i386/x32-avx512.dat: Likewise.
3781 * NEWS: Add note about new support for AVX512.
3784 2014-04-23 Pedro Alves <palves@redhat.com>
3786 * breakpoint.c (insert_bp_location): Tolerate errors if the
3787 breakpoint is set in a user-loaded objfile.
3788 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3789 location is marked shlib_disabled. If the breakpoint is set in a
3790 user-loaded objfile is a GDB-side memory breakpoint, validate it
3791 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3792 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3794 * mem-break.c (memory_validate_breakpoint): New function.
3795 * objfiles.c (userloaded_objfile_contains_address_p): New
3797 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3798 * target.h (memory_validate_breakpoint): New declaration.
3800 2014-04-23 Pedro Alves <palves@redhat.com>
3802 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3803 the breakpoint is set in a shared library, only suppress
3804 errors for software breakpoints, not hardware breakpoints.
3806 2014-04-22 Pedro Alves <palves@redhat.com>
3808 * infrun.c (schedlock_applies): New function, factored out from
3809 find_thread_needs_step_over.
3810 (find_thread_needs_step_over): Use it.
3811 (switch_back_to_stepped_thread): Always clear trap_expected if the
3812 step over is finished. Return early if scheduler locking applies.
3813 Look for the stepping thread and a potential step-over thread with
3815 (currently_stepping_or_nexting_callback): Delete.
3817 2014-04-22 Nick Clifton <nickc@redhat.com>
3819 * NEWS: Mention that ARM sim now supports tracing.
3821 2014-04-22 Yao Qi <yao@codesourcery.com>
3823 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3825 * tracefile.c (tracefile_fetch_registers): ... it. New
3827 * tracefile.h (tracefile_fetch_registers): Declare.
3828 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3829 tracefile_fetch_registers.
3831 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3834 * windows-nat.c (thread_rec): Don't display a warning when
3835 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3836 fails for any reason, set th->suspended to -1, so that we don't
3837 try to resume such a thread. Also, don't return NULL in these
3838 cases, to avoid completely ruin the session due to "PC register is
3839 not available" error.
3840 (do_windows_fetch_inferior_registers): Check errors in
3841 GetThreadContext call.
3842 (windows_continue): Accept an additional argument KILLED; if not
3843 zero, ignore errors in the SetThreadContext call, since the
3844 inferior was killed and is shutting down.
3845 (windows_resume, get_windows_debug_event)
3846 (windows_create_inferior, windows_mourn_inferior)
3847 (windows_kill_inferior): All callers of windows_continue changed
3848 to adjust to its new calling sequence.
3850 2014-04-19 Yao Qi <yao@codesourcery.com>
3852 * ctf.c (ctf_open): Call post_create_inferior.
3854 2014-04-19 Yao Qi <yao@codesourcery.com>
3856 * ctf.c (handle_id): New static variable.
3857 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3858 value. Get the declaration of event "register" and get length
3859 of field "contents".
3861 2014-04-19 Yao Qi <yao@codesourcery.com>
3863 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3865 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3867 * valops.c (oload_method_static): Remove unnecessary argument
3868 METHOD. Update all callers.
3870 2014-04-18 Pedro alves <palves@redhat.com>
3871 Tom Tromey <tromey@redhat.com>
3874 * frame.c (get_prev_frame_1): Rename to ...
3875 (get_prev_frame_always): ... this, and make extern. Adjust.
3876 (skip_artificial_frames): Use get_prev_frame_always.
3877 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3878 (get_frame_unwind_stop_reason): Adjust to rename.
3879 * frame.h (get_prev_frame_always): Declare.
3880 * inline-frame.c: Include frame.h.
3881 (inline_frame_this_id): Use get_prev_frame_always.
3883 2014-04-18 Tristan Gingold <gingold@adacore.com>
3885 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3886 code by using bfd_mach_o_get_base_address.
3888 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3890 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3891 (spu_ax_pseudo_register_collect): New function.
3892 (spu_ax_pseudo_register_push_stack): Likewise.
3893 (spu_dwarf_reg_to_regnum): Likewise.
3894 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3896 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3898 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3899 Replace FRAME argument with FRAME_ID.
3900 * gdbarch.c, gdbarch.h: Regenerate.
3901 * findvar.c (default_value_from_register): Add GDBARCH argument;
3902 replace FRAME by FRAME_ID. No longer call get_frame_id.
3903 (value_from_register): Update call to gdbarch_value_from_register.
3904 * value.h (default_value_from_register): Update prototype.
3905 * s390-linux-tdep.c (s390_value_from_register): Update interface
3906 and call to default_value_from_register.
3907 * spu-tdep.c (spu_value_from_register): Likewise.
3909 * findvar.c (address_from_register): Remove TYPE argument.
3910 Do not call value_from_register; use gdbarch_value_from_register
3911 with null_frame_id instead.
3912 * value.h (address_from_register): Update prototype.
3913 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3914 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3915 address_from_register interface change.
3917 2014-04-17 Yao Qi <yao@codesourcery.com>
3919 * gdbtypes.h: Update comments to link to types and macros'
3922 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3924 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3926 2014-04-16 Keith Seitz <keiths@redhat.com>
3929 * dwarf2read.c (skip_one_die): Check that all relative-offset
3930 sibling DIEs fall within range of the current reader's buffer.
3931 (read_partial_die): Likewise.
3933 2014-04-16 Keith Seitz <keiths@redhat.com>
3936 * cp-namespace.c (lookup_symbol_file): If the type name of
3937 `this' is NULL, return immediately.
3939 2014-04-14 Keith Seitz <keiths@redhat.com>
3942 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3943 from symbol_matches_domain in symtab.c. All local callers
3944 of symbol_matches_domain updated.
3945 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3946 search STRUCT_DOMAIN.
3947 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3948 independently. standard_lookup will do that automatically.
3949 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3950 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3951 (cp_lookup_symbol_in_namespace): Likewise.
3952 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3953 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3954 may return a STRUCT_DOMAIN match.
3955 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3956 * cp-support.c: Include language.h.
3957 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3959 * psymtab.c (match_partial_symbol): Compare the requested
3960 domain with the symbol's domain directly.
3961 (lookup_partial_symbol): Likewise.
3962 * symtab.c (lookup_symbol_in_language): Explain when/why
3963 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3964 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3965 appropriate languages.
3966 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3967 and moved to ada-lang.c
3968 (lookup_block_symbol): Explain that this function only returns
3969 symbol matching the requested DOMAIN.
3970 Compare the requested domain with the symbol's domain directly.
3971 (iterate_over_symbols): Compare the requested domain with the
3972 symbol's domain directly.
3973 * symtab.h (symbol_matches_domain): Remove.
3975 2014-04-14 Tom Tromey <tromey@redhat.com>
3978 * c-exp.y (type_aggregate_p): New function.
3979 (qualified_name, classify_inner_name): Use it.
3980 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3981 and TYPE_TARGET_TYPE of an enum type.
3982 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3984 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3985 handle TYPE_DECLARED_CLASS.
3986 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3988 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3989 * valops.c (enum_constant_from_type): New function.
3990 (value_aggregate_elt): Use it.
3991 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3994 2014-04-14 Tom Tromey <tromey@redhat.com>
3996 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3997 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3999 * value.h (value_aggregate_elt): Update.
4001 2014-04-14 Tom Tromey <tromey@redhat.com>
4003 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4005 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4007 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4008 (evaluate_subexp_standard): Pass noside argument.
4009 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4010 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4011 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4012 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4013 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4015 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4017 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4018 points to a constant blob.
4020 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4022 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4023 property and store it as the high bound and flag the range accordingly.
4024 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4025 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4026 * gdbtypes.h (enum range_flags): New enum.
4027 (struct range_bounds): Add flags member.
4029 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4031 * c-typeprint.c (c_type_print_varspec_suffix): Added
4032 check for not yet resolved high bound. If unresolved, print
4033 "variable length" string to the console instead of random
4036 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4038 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4040 (ada_template_to_fixed_record_type_1): Likewise.
4041 (ada_to_fixed_type_1): Likewise.
4042 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4043 (cp_print_value): Likewise.
4044 * d-valprint.c (dynamic_array_type): Likewise.
4045 * findvar.c (address_of_variable): Likewise.
4046 * jv-valprint.c (java_value_print): Likewise.
4047 * valops.c (value_ind): Likewise.
4048 * value.c (coerce_ref): Likewise.
4050 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4052 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4053 value and retrieve the dynamic type size.
4055 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4057 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4058 passed to sizeof is dynamic evaluate the argument to compute the length.
4060 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4061 Joel Brobecker <brobecker@adacore.com>
4063 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4064 (dwarf2_evaluate_property): New function.
4065 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4066 * dwarf2read.c (attr_to_dynamic_prop): New function.
4067 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4069 * gdbtypes.c: Include dwarf2loc.h.
4070 (is_dynamic_type): New function.
4071 (resolve_dynamic_type): New function.
4072 (resolve_dynamic_bounds): New function.
4073 (get_type_length): New function.
4074 (check_typedef): Use get_type_length to compute type length.
4075 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4076 (TYPE_LOW_BOUND_KIND): New macro.
4077 (is_dynamic_type): New function prototype.
4078 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4079 to resolve dynamic properties of the type. Update comment.
4080 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4082 2014-04-14 Richard Henderson <rth@redhat.com>
4084 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4086 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4087 Doug Evans <xdje42@gmail.com>
4089 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4090 dereference TYPE_CODE_REF values.
4092 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4094 Revert the following changes due to regressions:
4096 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4097 (dwarf2_evaluate_property): New function.
4098 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4099 * dwarf2read.c (attr_to_dynamic_prop): New function.
4100 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4102 * gdbtypes.c: Include dwarf2loc.h.
4103 (is_dynamic_type): New function.
4104 (resolve_dynamic_type): New function.
4105 (resolve_dynamic_bounds): New function.
4106 (get_type_length): New function.
4107 (check_typedef): Use get_type_length to compute type length.
4108 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4109 (TYPE_LOW_BOUND_KIND): New macro.
4110 (is_dynamic_type): New function prototype.
4111 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4112 to resolve dynamic properties of the type. Update comment.
4113 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4115 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4116 passed to sizeof is dynamic evaluate the argument to compute the length.
4118 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4119 value and retrieve the dynamic type size.
4121 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4122 (ada_template_to_fixed_record_type_1): Likewise.
4123 (ada_to_fixed_type_1): Likewise.
4124 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4125 (cp_print_value): Likewise.
4126 * d-valprint.c (dynamic_array_type): Likewise.
4127 * eval.c (evaluate_subexp_with_coercion): Likewise.
4128 * findvar.c (address_of_variable): Likewise.
4129 * jv-valprint.c (java_value_print): Likewise.
4130 * valops.c (value_ind): Likewise.
4131 * value.c (coerce_ref): Likewise.
4133 * c-typeprint.c (c_type_print_varspec_suffix): Added
4134 check for not yet resolved high bound. If unresolved, print
4135 "variable length" string to the console instead of random
4138 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4139 property and store it as the high bound and flag the range accordingly.
4140 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4141 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4142 * gdbtypes.h (enum range_flags): New enum.
4143 (struct range_bounds): Add flags member.
4145 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4146 points to a constant blob.
4148 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4149 (evaluate_subexp_standard): Pass noside argument.
4150 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4151 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4152 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4153 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4154 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4156 2014-04-11 Keith Seitz <keiths@redhat.com>
4159 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4160 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4163 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4165 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4166 (evaluate_subexp_standard): Pass noside argument.
4167 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4168 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4169 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4170 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4171 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4173 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4175 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4176 points to a constant blob.
4178 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4180 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4181 property and store it as the high bound and flag the range accordingly.
4182 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4183 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4184 * gdbtypes.h (enum range_flags): New enum.
4185 (struct range_bounds): Add flags member.
4187 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4189 * c-typeprint.c (c_type_print_varspec_suffix): Added
4190 check for not yet resolved high bound. If unresolved, print
4191 "variable length" string to the console instead of random
4194 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4196 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4197 (ada_template_to_fixed_record_type_1): Likewise.
4198 (ada_to_fixed_type_1): Likewise.
4199 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4200 (cp_print_value): Likewise.
4201 * d-valprint.c (dynamic_array_type): Likewise.
4202 * eval.c (evaluate_subexp_with_coercion): Likewise.
4203 * findvar.c (address_of_variable): Likewise.
4204 * jv-valprint.c (java_value_print): Likewise.
4205 * valops.c (value_ind): Likewise.
4206 * value.c (coerce_ref): Likewise.
4208 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4210 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4211 value and retrieve the dynamic type size.
4213 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4215 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4216 passed to sizeof is dynamic evaluate the argument to compute the length.
4218 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4220 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4221 (dwarf2_evaluate_property): New function.
4222 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4223 * dwarf2read.c (attr_to_dynamic_prop): New function.
4224 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4226 * gdbtypes.c: Include dwarf2loc.h.
4227 (is_dynamic_type): New function.
4228 (resolve_dynamic_type): New function.
4229 (resolve_dynamic_bounds): New function.
4230 (get_type_length): New function.
4231 (check_typedef): Use get_type_length to compute type length.
4232 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4233 (TYPE_LOW_BOUND_KIND): New macro.
4234 (is_dynamic_type): New function prototype.
4235 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4236 to resolve dynamic properties of the type. Update comment.
4237 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4239 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4241 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4242 declaring high/low bounds and change uses accordingly. Call
4243 create_range_type instead of create_static_range_type.
4244 * gdbtypes.c (create_range_type): New function.
4245 (create_range_type): Convert bounds into struct bound_prop and pass
4246 them to create_range_type.
4247 * gdbtypes.h (struct bound_prop): New struct.
4248 (create_range_type): New function prototype.
4249 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4250 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4251 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4253 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4255 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4257 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4258 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4259 * ada-lang.c: All uses of create_range_type updated.
4260 * coffread.c: All uses of create_range_type updated.
4261 * dwarf2read.c: All uses of create_range_type updated.
4262 * f-exp.y: All uses of create_range_type updated.
4263 * m2-valprint.c: All uses of create_range_type updated.
4264 * mdebugread.c: All uses of create_range_type updated.
4265 * stabsread.c: All uses of create_range_type updated.
4266 * valops.c: All uses of create_range_type updated.
4267 * valprint.c: All uses of create_range_type updated.
4269 2014-04-10 Pedro Alves <palves@redhat.com>
4271 * breakpoint.c (single_step_breakpoints)
4272 (single_step_gdbarch): Move up in the file.
4273 (one_breakpoint_xfer_memory): New function, factored out from ...
4274 (breakpoint_xfer_memory): ... here. Also process single-step
4277 2014-04-09 Tristan Gingold <gingold@adacore.com>
4279 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4281 (darwin_decode_exception_message): Free port only after use.
4283 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4285 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4286 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4287 when setting the size of call_length.
4289 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4291 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4292 dereference TYPE_CODE_REF values.
4294 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4296 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4297 end of warning message.
4299 2014-04-03 Doug Evans <dje@google.com>
4301 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4302 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4304 2014-04-02 Alan Modra <amodra@gmail.com>
4306 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4307 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4308 (struct symbol_file_add_from_memory_args): Add size field.
4309 (find_vdso_size): New function.
4310 (add_vsyscall_page): Attempt to find vdso size.
4312 2014-04-01 Doug Evans <dje@google.com>
4314 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4316 2014-04-01 Tristan Gingold <gingold@adacore.com>
4318 * darwin-nat.c (darwin_encode_reply): Add prototype.
4319 (darwin_decode_exception_message): Reply to unknown inferiors.
4320 (darwin_decode_message): Handle message by id. Ignore message
4321 to unknown inferior.
4322 (darwin_wait): Discard unknown messages, add debug trace.
4324 2014-03-31 Doug Evans <dje@google.com>
4326 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4329 2014-03-31 Doug Evans <dje@google.com>
4331 New option "set print symbol-loading".
4333 * solib.c (solib_read_symbols): Only print symbol loading messages
4335 (solib_add): If symbol loading is in "brief" mode, notify user
4336 symbols are being loaded.
4337 (reload_shared_libraries_1): Ditto.
4338 * symfile.c (print_symbol_loading_off): New static global.
4339 (print_symbol_loading_brief): New static global.
4340 (print_symbol_loading_full): New static global.
4341 (print_symbol_loading_enums): New static global.
4342 (print_symbol_loading): New static global.
4343 (print_symbol_loading_p): New function.
4344 (symbol_file_add_with_addrs): Only print symbol loading messages
4346 (_initialize_symfile): Register "print symbol-loading" set/show
4348 * symfile.h (print_symbol_loading_p): Declare.
4350 2014-03-30 Doug Evans <xdje42@gmail.com>
4352 * infrun.c (set_last_target_status): New function.
4353 (handle_inferior_event): Call it.
4355 2014-03-30 Doug Evans <xdje42@gmail.com>
4357 * inferior.h (enum stop_kind): Improve comment.
4359 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4361 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4362 a reference, strip the reference layer before calling
4363 the lang_ops value_has_mutated callback.
4365 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4367 Remove some globals from our parser.
4368 * language.c (unk_lang_parser): Add "struct parser_state"
4370 * language.h (struct language_defn) <la_parser>: Likewise.
4371 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4372 (initialize_expout): Add "struct parser_state" argument.
4373 Rewrite function to use the parser state.
4374 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4375 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4376 write_exp_elt_longcst, write_exp_elt_dblcst,
4377 write_exp_elt_decfloatcst, write_exp_elt_type,
4378 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4379 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4380 write_dollar_variable): Likewise.
4381 (parse_exp_in_context_1): Use parser state.
4382 (insert_type_address_space): Add "struct parser_state" argument.
4384 (increase_expout_size): New function.
4385 * parser-defs.h: Forward declare "struct language_defn" and
4386 "struct parser_state".
4387 (expout, expout_size, expout_ptr): Remove extern declarations.
4388 (parse_gdbarch, parse_language): Rewrite macro declarations to
4389 accept the parser state.
4390 (struct parser_state): New struct.
4391 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4392 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4393 write_exp_elt_decfloatcst, write_exp_elt_type,
4394 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4395 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4396 write_exp_msymbol, write_dollar_variable,
4397 mark_struct_expression, insert_type_address_space): Add "struct
4398 parser_state" argument.
4399 (increase_expout_size): New function.
4400 * utils.c (do_clear_parser_state): New function.
4401 (make_cleanup_clear_parser_state): Likewise.
4402 * utils.h (make_cleanup_clear_parser_state): New function
4404 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4405 Update calls to write_exp* in order to pass the parser state.
4406 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4407 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4408 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4409 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4410 * stap-probe.c (stap_parse_register_operand): Likewise.
4411 (stap_parse_single_operand): Likewise.
4412 (stap_parse_argument_1): Likewise.
4413 (stap_parse_argument): Use parser state.
4414 * stap-probe.h: Include "parser-defs.h".
4415 (struct stap_parse_info) <pstate>: New field.
4416 * c-exp.y (parse_type): Rewrite to use parser state.
4417 (yyparse): Redefine to c_parse_internal.
4418 (pstate): New global variable.
4419 (parse_number): Add "struct parser_state" argument.
4420 (write_destructor_name): Likewise.
4421 (type_exp): Update calls to write_exp* and similars in order to
4423 (exp1, exp, variable, qualified_name, space_identifier,
4424 typename, typebase): Likewise.
4425 (write_destructor_name, parse_number, lex_one_token,
4426 classify_name, classify_inner_name, c_parse): Add "struct
4427 parser_state" argument. Update function to use parser state.
4428 * c-lang.h: Forward declare "struct parser_state".
4429 (c_parse): Add "struct parser_state" argument.
4430 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4431 (yyparse): Redefine macro to ada_parse_internal.
4432 (pstate): New variable.
4433 (write_int, write_object_renaming, write_var_or_type,
4434 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4435 type_int, type_long, type_long_long, type_float, type_double,
4436 type_long_double, type_char, type_boolean, type_system_address):
4437 Add "struct parser_state" argument.
4438 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4439 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4440 var_or_type, aggregate, aggregate_component_list,
4441 positional_list, others, component_group,
4442 component_associations): Update calls to write_exp* and similar
4443 functions in order to use parser state.
4444 (ada_parse, write_var_from_sym, write_int,
4445 write_exp_op_with_string, write_object_renaming,
4446 find_primitive_type, write_selectors, write_ambiguous_var,
4447 write_var_or_type, write_name_assoc, type_int, type_long,
4448 type_long_long, type_float, type_double, type_long_double,
4449 type_char, type_boolean, type_system_address): Add "struct
4450 parser_state" argument. Adjust function to use parser state.
4451 * ada-lang.c (parse): Likewise.
4452 * ada-lang.h: Forward declare "struct parser_state".
4453 (ada_parse): Add "struct parser_state" argument.
4454 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4455 calls to both functions.
4456 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4458 (yyparse): Redefine macro to f_parse_internal.
4459 (pstate): New variable.
4460 (parse_number): Add "struct parser_state" argument.
4461 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4462 and similars in order to use parser state.
4463 (parse_number): Adjust code to use parser state.
4465 (f_parse): New function.
4466 * f-lang.h: Forward declare "struct parser_state".
4467 (f_parse): Add "struct parser_state" argument.
4468 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4470 (yyparse): Redefine macro for java_parse_internal.
4471 (pstate): New variable.
4472 (push_expression_name, push_expression_name, insert_exp): Add
4473 "struct parser_state" argument.
4474 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4475 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4476 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4477 PostIncrementExpression, PostDecrementExpression,
4478 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4479 UnaryExpressionNotPlusMinus, CastExpression,
4480 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4481 RelationalExpression, EqualityExpression, AndExpression,
4482 ExclusiveOrExpression, InclusiveOrExpression,
4483 ConditionalAndExpression, ConditionalOrExpression,
4484 ConditionalExpression, Assignment, LeftHandSide): Update
4485 calls to write_exp* and similars in order to use parser state.
4486 (parse_number): Ajust code to use parser state.
4488 (java_parse): New function.
4489 (push_variable): Add "struct parser_state" argument. Adjust
4490 code to user parser state.
4491 (push_fieldnames, push_qualified_expression_name,
4492 push_expression_name, insert_exp): Likewise.
4493 * jv-lang.h: Forward declare "struct parser_state".
4494 (java_parse): Add "struct parser_state" argument.
4495 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4497 (yyparse): Redefine macro to m2_parse_internal.
4498 (pstate): New variable.
4499 (type_exp, exp, fblock, variable, type): Update calls to
4500 write_exp* and similars to use parser state.
4502 (m2_parse): New function.
4503 * m2-lang.h: Forward declare "struct parser_state".
4504 (m2_parse): Add "struct parser_state" argument.
4505 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4506 * objc-lang.h: Forward declare "struct parser_state".
4507 (end_msglist): Add "struct parser_state" argument.
4508 * p-exp.y (parse_type): Rewrite macro to use parser state.
4509 (yyparse): Redefine macro to pascal_parse_internal.
4510 (pstate): New variable.
4511 (parse_number): Add "struct parser_state" argument.
4512 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4513 write_exp* and similars in order to use parser state.
4514 (parse_number, yylex): Adjust code to use parser state.
4515 (pascal_parse): New function.
4516 * p-lang.h: Forward declare "struct parser_state".
4517 (pascal_parse): Add "struct parser_state" argument.
4518 * go-exp.y (parse_type): Rewrite macro to use parser state.
4519 (yyparse): Redefine macro to go_parse_internal.
4520 (pstate): New variable.
4521 (parse_number): Add "struct parser_state" argument.
4522 (type_exp, exp1, exp, variable, type): Update calls to
4523 write_exp* and similars in order to use parser state.
4524 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4525 to use parser state.
4526 (go_parse): Likewise.
4527 * go-lang.h: Forward declare "struct parser_state".
4528 (go_parse): Add "struct parser_state" argument.
4530 2014-03-27 Doug Evans <dje@google.com>
4532 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4534 2014-03-27 Doug Evans <dje@google.com>
4536 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4537 Remove argument abbrev_section. All callers updated.
4539 2014-03-27 Doug Evans <dje@google.com>
4541 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4542 addr_base, ranges_base.
4544 2014-03-26 Keith Seitz <keiths@redhat.com>
4546 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4547 types, not VAR_DOMAIN.
4549 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4551 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4553 * features/nios2-linux.c: Regenerated.
4554 * features/nios2.c: Regenerated.
4556 2014-03-25 Pedro Alves <palves@redhat.com>
4558 * cli/cli-script.c (script_from_file): Force the interpreter to
4561 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4563 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4564 small stack allocation.
4566 2014-03-24 Tristan Gingold <gingold@adacore.com>
4568 * darwin-nat.c (exc_server): Remove unused prototype.
4569 (darwin_dump_message): Correctly display data on x86_64.
4570 (darwin_encode_reply): Fix style.
4571 Add comments and fix indentation.
4573 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4575 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4577 2014-03-22 Doug Evans <xdje42@gmail.com>
4579 * infcmd.c: Whitespace fixes.
4580 (interrupt_command): Merge two function comments into one.
4582 2014-03-22 Doug Evans <xdje42@gmail.com>
4584 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4587 2014-03-22 Yao Qi <yao@codesourcery.com>
4589 * remote.c (target_read_live_memory): Remove.
4590 (memory_xfer_live_readonly_partial): Rename it to
4591 remote_xfer_live_readonly_partial. Remove argument 'object'.
4592 All callers updated. Call remote_read_bytes_1
4593 instead of target_read_live_memory.
4594 * tracepoint.c (set_traceframe_number): Remove.
4595 (make_cleanup_restore_traceframe_number): Likewise .
4596 * tracepoint.h (set_traceframe_number): Remove declaration.
4597 (make_cleanup_restore_traceframe_number): Likewise.
4599 2014-03-22 Yao Qi <yao@codesourcery.com>
4601 * remote.c (remote_read_bytes): Move code on reading from the
4603 (remote_read_bytes_1): ... here. New function.
4605 2014-03-22 Yao Qi <yao@codesourcery.com>
4607 * ctf.c (ctf_xfer_partial): Check the return value of
4608 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4609 return TARGET_XFER_UNAVAILABLE.
4610 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4611 * target.c (target_read_live_memory): Move it to remote.c.
4612 (memory_xfer_live_readonly_partial): Likewise.
4613 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4614 * remote.c (target_read_live_memory): Moved from target.c.
4615 (memory_xfer_live_readonly_partial): Likewise.
4616 (remote_read_bytes): Factored out from
4617 memory_xfer_partial_1.
4619 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4621 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4624 2014-03-21 Pedro Alves <palves@redhat.com>
4626 * infrun.c (normal_stop): Extend comment.
4628 2014-03-21 Hui Zhu <hui@codesourcery.com>
4629 Pedro Alves <palves@redhat.com>
4631 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4633 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4634 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4635 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4637 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4639 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4640 `z' formatted output modifier.
4642 2014-03-20 Tom Tromey <tromey@redhat.com>
4643 Sergio Durigan Junior <sergiodj@redhat.com>
4645 * probe.c (parse_probes): Turn assert into an ordinary error.
4646 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4647 exceptions when parsing probes. Rearrange the code for clarity.
4649 2014-03-20 Tom Tromey <tromey@redhat.com>
4652 * top.c (execute_command): Only dispatch events if the command
4655 2014-03-20 Tom Tromey <tromey@redhat.com>
4658 * infcall.c: Include event-top.h.
4659 (run_inferior_call): Call async_disable_stdin if needed.
4661 2014-03-20 Pedro Alves <palves@redhat.com>
4663 * infrun.c (prepare_to_proceed): Delete.
4664 (thread_still_needs_step_over): New function.
4665 (find_thread_needs_step_over): New function.
4666 (proceed): If the current thread needs a step-over, set its
4667 steping_over_breakpoint flag. Adjust to use
4668 find_thread_needs_step_over instead of prepare_to_proceed.
4669 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4670 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4672 (switch_back_to_stepped_thread): Step over breakpoints of all
4673 threads not the stepping thread, before switching back to the
4676 2014-03-20 Pedro Alves <palves@redhat.com>
4678 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4680 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4681 * infrun.c (saved_singlestep_ptid)
4682 (stepping_past_singlestep_breakpoint): Delete.
4683 (resume): Remove stepping_past_singlestep_breakpoint handling.
4684 (proceed): Store the prev_pc of the stepping thread too.
4685 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4687 (enum infwait_states): Delete infwait_thread_hop_state.
4688 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4690 (handle_inferior_event): Adjust.
4691 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4692 handling and the thread-hop code. Before removing single-step
4693 breakpoints, check whether the thread hit a single-step breakpoint
4694 of another thread. If it did, the trap is not a random signal.
4695 (switch_back_to_stepped_thread): If the event thread hit a
4696 single-step breakpoint, unblock it before switching to the
4697 stepping thread. Handle the case of the stepped thread having
4699 (keep_going): Handle the case of the current thread moving past a
4700 single-step breakpoint.
4702 2014-03-20 Pedro Alves <palves@redhat.com>
4705 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4706 are being stepped over.
4707 (breakpoint_address_match): Make extern.
4708 * breakpoint.h (breakpoint_address_match): New declaration.
4709 * inferior.h (stepping_past_instruction_at): New declaration.
4710 * infrun.c (struct step_over_info): New type.
4711 (step_over_info): New global.
4712 (set_step_over_info, clear_step_over_info)
4713 (stepping_past_instruction_at): New functions.
4714 (handle_inferior_event): Clear the step-over info when
4715 trap_expected is cleared.
4716 (resume): Remove now stale comment.
4717 (clear_proceed_status): Clear step-over info.
4718 (proceed): Adjust step-over handling to set or clear the step-over
4719 info instead of removing all breakpoints.
4720 (handle_signal_stop): When setting up a thread-hop, don't remove
4722 (stop_stepping): Clear step-over info.
4723 (keep_going): Adjust step-over handling to set or clear step-over
4724 info and then always inserting breakpoints, instead of removing
4725 all breakpoints when stepping over one.
4727 2014-03-20 Pedro Alves <palves@redhat.com>
4729 * infrun.c (previous_inferior_ptid): Adjust comment.
4730 (deferred_step_ptid): Delete.
4731 (infrun_thread_ptid_changed, prepare_to_proceed)
4732 (init_wait_for_inferior): Adjust.
4733 (handle_signal_stop): Delete deferred_step_ptid handling.
4735 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4738 * defs.h (sync_quit_force_run): New declaration.
4739 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4740 * event-top.c (async_sigterm_handler): New declaration.
4741 (async_sigterm_token): New variable.
4742 (async_init_signals): Create also async_sigterm_token.
4743 (async_sigterm_handler): New function.
4744 (sync_quit_force_run): New variable.
4745 (handle_sigterm): Replace quit_force call by other calls.
4746 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4748 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4750 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4751 offset into SPE pseudo registers.
4753 2014-03-18 Pedro Alves <palves@redhat.com>
4756 * inferior.h (print_stop_event): Declare.
4757 * infrun.c (print_stop_event): New, factored out from ...
4758 (normal_stop): ... this.
4759 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4760 of bpstat_print/print_stack_frame.
4762 2014-03-17 Tom Tromey <tromey@redhat.com>
4764 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4766 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4768 * ada-lang.c (decode_constrained_packed_array): Perform a
4769 minimal coercion for reference with coerce_ref instead of
4772 2014-03-17 Tristan Gingold <gingold@adacore.com>
4774 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4775 (darwin_solib_create_inferior_hook): Emit a warning if version
4778 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4780 * python/py-value.c (get_field_flag): Cast flag_name argument to
4781 PyObject_GetAttrString to support Python 2.4.
4783 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4785 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4786 (Global Maintainers): Remove Jan Kratochvil.
4788 2014-03-14 Pedro Alves <palves@redhat.com>
4790 * inferior.h (terminal_ours_for_output): Rename to ...
4791 (child_terminal_ours_for_output): ... this.
4792 (terminal_save_ours): Rename to ...
4793 (child_terminal_save_ours): ... this.
4794 (terminal_ours): Rename to ...
4795 (child_terminal_ours): ... this.
4796 (terminal_inferior): Rename to ...
4797 (child_terminal_inferior): ... this.
4798 (terminal_init_inferior): Rename to ...
4799 (child_terminal_init_inferior): ... this.
4800 (terminal_init_inferior_with_pgrp): Rename to ...
4801 (child_terminal_init_inferior_with_pgrp): ... this.
4802 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4803 (child_terminal_init_with_pgrp): ... this.
4804 (terminal_save_ours): Rename to ...
4805 (child_terminal_save_ours): ... this.
4806 (terminal_init_inferior): Rename to ...
4807 (child_terminal_init): ... this. Adjust.
4808 (terminal_inferior): Rename to ...
4809 (child_terminal_inferior): ... this.
4810 (terminal_ours_for_output): Rename to ...
4811 (child_terminal_ours_for_output): ... this. Adjust.
4812 (terminal_ours): Rename to ...
4813 (child_terminal_ours): ... this.
4814 (terminal_ours_1): Rename to ...
4815 (child_terminal_ours_1): ... this. Adjust.
4816 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4817 * windows-nat.c (do_initial_windows_stuff): Adjust.
4818 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4819 (gnu_terminal_init): ... this. Adjust.
4820 (gnu_target): Adjust.
4821 * inf-child.c (inf_child_target): Adjust.
4823 2014-03-13 Doug Evans <xdje42@gmail.com>
4826 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4829 2014-03-13 Doug Evans <xdje42@gmail.com>
4831 * value.c (record_latest_value): Call release_value_or_incref
4832 instead of release_value.
4834 2014-03-13 Pedro Alves <palves@redhat.com>
4836 * procfs.c (procfs_target): Don't override to_shortname,
4837 to_longname or to_doc.
4839 2014-03-13 Pedro Alves <palves@redhat.com>
4841 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4842 Unix in user visible strings.
4844 2014-03-12 Stan Shebs <stan@codesourcery.com>
4846 * gdbtypes.h: Annotate comments for Doxygen, add a page
4847 block comment with some general info.
4849 2014-03-12 Pedro Alves <palves@redhat.com>
4851 * infcmd.c (prepare_execution_command): New function, factored out
4852 from several execution commands.
4853 (run_command_1, continue_command, step_1, jump_command)
4854 (signal_command, until_command, advance_command, finish_command)
4855 (attach_command): Use prepare_execution_command.
4857 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4859 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4862 (struct arm_linux_thread_points): Removed.
4863 (struct arm_linux_process_info): New.
4864 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4865 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4866 (arm_linux_find_breakpoints_by_tid): Removed.
4867 (struct arch_lwp_info): New.
4868 (arm_linux_find_process_pid): New functions.
4869 (arm_linux_add_process): New functions.
4870 (arm_linux_process_info_get): New functions.
4871 (arm_linux_forget_process): New function.
4872 (arm_linux_get_debug_reg_state): New function.
4873 (struct update_registers_data): New.
4874 (update_registers_callback): New function.
4875 (arm_linux_insert_hw_breakpoint1): Updated.
4876 (arm_linux_remove_hw_breakpoint1): Updated.
4877 (arm_linux_insert_hw_breakpoint): Updated.
4878 (arm_linux_remove_hw_breakpoint): Updated.
4879 (arm_linux_insert_watchpoint): Updated.
4880 (arm_linux_remove_watchpoint): Updated.
4881 (arm_linux_new_thread): Updated.
4882 (arm_linux_prepare_to_resume): New function.
4883 (arm_linux_new_fork): New function.
4884 (_initialize_arm_linux_nat): Updated.
4886 2014-03-12 Pedro Alves <palves@redhat.com>
4888 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4890 2014-03-12 Tom Tromey <tromey@redhat.com>
4892 * inf-child.c (return_zero): New function.
4893 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4894 * aix-thread.c (aix_thread_inferior_created): New function.
4895 (aix_thread_attach): Remove.
4896 (init_aix_thread_ops): Don't set to_attach.
4897 (_initialize_aix_thread): Register inferior_created observer.
4898 * corelow.c (init_core_ops): Don't set to_attach or
4900 * exec.c (init_exec_ops): Don't set to_attach or
4902 * infcmd.c (run_command_1): Use find_run_target. Make direct
4904 (attach_command): Use find_attach_target. Make direct target
4906 * record-btrace.c (init_record_btrace_ops): Don't set
4908 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4910 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4911 set to_create_inferior.
4912 * target.c (complete_target_initialization): Add assertion.
4913 (target_create_inferior): Remove.
4914 (find_default_attach, find_default_create_inferior): Remove.
4915 (find_attach_target, find_run_target): New functions.
4916 (find_default_is_async_p, find_default_can_async_p)
4917 (target_supports_non_stop, target_attach): Remove.
4918 (init_dummy_target): Don't set to_create_inferior or
4919 to_supports_non_stop.
4920 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4921 TARGET_DEFAULT_FUNC.
4922 <to_create_inferior>: Add comment.
4923 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4924 TARGET_DEFAULT_RETURN.
4925 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4926 (find_attach_target, find_run_target): Declare.
4927 (target_create_inferior): Remove.
4928 (target_has_execution_1): Update comment.
4929 (target_supports_non_stop): Remove.
4930 * target-delegates.c: Rebuild.
4932 2014-03-12 Pedro Alves <palves@redhat.com>
4934 * inf-child.h: Update comment to not mention Unix.
4936 2014-03-12 Pedro Alves <palves@redhat.com>
4938 * inf-child.c: Update top comment to not mention Unix. Add
4939 generic comment describing how this target is meant to be used.
4940 (inf_child_post_attach, inf_child_post_startup_inferior)
4941 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4944 2014-03-12 Pedro Alves <palves@redhat.com>
4946 * nto-procfs.c: Include inf-child.h.
4947 (procfs_ops): Delete global.
4948 (procfs_can_run): Delete method.
4949 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4950 target pointer instead of referencing procfs_ops.
4951 (procfs_prepare_to_store): Delete.
4952 (init_procfs_ops): Delete function.
4953 (procfs_target): New function, based on init_procfs_ops, but
4954 inherit inf_child_target.
4955 (_initialize_procfs): Use procfs_target.
4957 2014-03-12 Pedro Alves <palves@redhat.com>
4959 * windows-nat.c: Include inf-child.h.
4960 (windows_ops): Delete global.
4961 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4963 (init_windows_ops): Delete function.
4964 (windows_target): New function, based on init_windows_ops, but
4965 inherit inf_child_target.
4966 (_initialize_windows_nat): Use windows_target. Install x86
4967 specific target methods here.
4969 2014-03-10 Doug Evans <xdje42@gmail.com>
4971 * guile/guile.c (call_initialize_gdb_module): New function.
4972 (initialize_guile): Replace call to scm_init_guile with call to
4975 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4977 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4978 in call to TYPE_CODE macro.
4980 2014-03-10 Jerome Guitton <guitton@adacore.com>
4982 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4983 Resolve tagged types to full view.
4985 2014-03-10 Hui Zhu <hui@codesourcery.com>
4987 * target.h (target_insert_breakpoint): Remove "hardware" from its
4990 2014-03-07 Doug Evans <dje@google.com>
4992 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4994 2014-03-07 Doug Evans <dje@google.com>
4996 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4997 Remove unused local comp_dir_attr. Assert exactly one of
4998 stub_comp_unit_die, stub_comp_dir is non-NULL.
5000 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5002 * target.h (complete_target_initialization, add_target):
5005 2014-03-07 Pedro Alves <palves@redhat.com>
5007 * go32-nat.c: Include inf-child.h.
5008 (go32_ops): Delete global.
5009 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5011 (go32_create_inferior): Push the passed in target pointer instead
5012 of referencing go32_ops.
5013 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5014 (go32_target): New function, based on init_go32_ops, but inherit
5016 (_initialize_go32_nat): Use go32_target. Move parts of
5019 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5021 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5022 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5023 SYMBOL_VALUE_ADDRESS.
5024 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5026 2014-03-06 Yao Qi <yao@codesourcery.com>
5028 * breakpoint.c (get_tracepoint_by_number): Remove argument
5029 optional_p. All callers updated. Adjust comments. Update
5031 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5033 2014-03-06 Yao Qi <yao@codesourcery.com>
5035 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5036 early if get_number returns zero. Use 'p' instead of 'args'.
5038 2014-03-06 Yao Qi <yao@codesourcery.com>
5040 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5043 2014-03-06 Yao Qi <yao@codesourcery.com>
5045 PR breakpoints/16508
5046 * tracepoint.c (check_trace_running): New function.
5047 (trace_find_command): Move code to check_trace_running and
5048 call check_trace_running.
5049 (trace_find_pc_command): Likewise.
5050 (trace_find_tracepoint_command): Likewise.
5051 (trace_find_line_command): Likewise.
5052 (trace_find_range_command): Likewise.
5053 * tracepoint.h (check_trace_running): Likewise.
5054 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5056 2014-03-06 Yao Qi <yao@codesourcery.com>
5058 * target.h (struct target_ops) <to_traceframe_info>: Use
5059 TARGET_DEFAULT_NORETURN (tcomplain ()).
5060 * target-delegates.c: Regenerated.
5062 2014-03-05 Pedro Alves <palves@redhat.com>
5065 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5066 void. Update comment.
5067 (dcache_xfer_memory): Delete.
5068 (dcache_read_memory_partial): New, based on the read bits of
5070 (dcache_update): Add status parameter. Use ULONGEST for len, and
5071 adjust. Discard cache lines if the reason for the update was
5073 * dcache.h (dcache_xfer_memory): Delete declaration.
5074 (dcache_read_memory_partial): New declaration.
5075 (dcache_update): Update prototype.
5076 * target.c (raw_memory_xfer_partial): Update the dcache here.
5077 (memory_xfer_partial_1): Don't handle dcache writes here.
5079 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5081 * remote-sim.c (gdbsim_load): Add const to prog.
5083 2014-03-03 Tom Tromey <tromey@redhat.com>
5085 * elfread.c (probe_key): Change to bfd_data.
5086 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5087 now per-BFD, not per-objfile.
5088 * stap-probe.c (stap_probe_destroy): Update comment.
5089 (handle_stap_probe): Allocate on the per-BFD obstack.
5091 2014-03-03 Tom Tromey <tromey@redhat.com>
5093 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5094 * breakpoint.c (create_longjmp_master_breakpoint): Use
5096 (add_location_to_breakpoint, bkpt_probe_insert_location)
5097 (bkpt_probe_remove_location): Update.
5098 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5099 * elfread.c (elf_symfile_relocate_probe): Remove.
5100 (elf_probe_fns): Update.
5101 (insert_exception_resume_breakpoint): Change type of "probe"
5102 parameter to bound_probe.
5103 (check_exception_resume): Update.
5104 * objfiles.c (objfile_relocate1): Don't relocate probes.
5105 * probe.c (bound_probe_s): New typedef.
5106 (parse_probes): Use get_probe_address. Set sal's objfile.
5107 (find_probe_by_pc): Return a bound_probe.
5108 (collect_probes): Return a VEC(bound_probe_s).
5109 (compare_probes): Update.
5110 (gen_ui_out_table_header_info): Change type of "probes"
5112 (info_probes_for_ops): Update.
5113 (get_probe_address): New function.
5114 (probe_safe_evaluate_at_pc): Update.
5115 * probe.h (struct probe_ops) <get_probe_address>: New field.
5116 <set_semaphore, clear_semaphore>: Add objfile parameter.
5117 (struct probe) <objfile>: Remove field.
5119 <address>: Update comment.
5120 (struct bound_probe): New.
5121 (find_probe_by_pc): Return a bound_probe.
5122 (get_probe_address): Declare.
5123 * solib-svr4.c (struct probe_and_action) <address>: New field.
5124 (hash_probe_and_action, equal_probe_and_action): Update.
5125 (register_solib_event_probe): Add address parameter.
5126 (solib_event_probe_at): Update.
5127 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5129 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5130 (stap_get_probe_address): New function.
5131 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5132 (compile_probe_arg): Update.
5133 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5135 (handle_stap_probe): Don't relocate the probe.
5136 (stap_relocate): Remove.
5137 (stap_gen_info_probes_table_values): Update.
5138 (stap_probe_ops): Remove stap_relocate.
5139 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5140 (debug_sym_probe_fns): Update.
5141 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5142 * symtab.c (init_sal): Use memset.
5143 * symtab.h (struct symtab_and_line) <objfile>: New field.
5144 * tracepoint.c (start_tracing, stop_tracing): Update.
5146 2014-03-03 Tom Tromey <tromey@redhat.com>
5148 * probe.h (parse_probes, find_probe_by_pc)
5149 (find_probes_in_objfile): Fix comments.
5151 2014-03-02 Doug Evans <xdje42@gmail.com>
5153 * infrun.c (handle_signal_stop): Replace test for
5154 TARGET_WAITKIND_STOPPED with an assert.
5156 2014-03-02 Doug Evans <xdje42@gmail.com>
5158 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5160 2014-03-02 Doug Evans <xdje42@gmail.com>
5162 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5164 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5166 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5168 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5170 * i386obsd-nat.c: Include "obsd-nat.h".
5171 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5173 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5175 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5177 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5179 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5181 * mips64obsd-nat.c: Include "obsd-nath".
5182 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5184 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5186 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5188 * amd64obsd-nat.c: Include "obsd-nat,h.
5189 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5191 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5193 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5195 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5196 (find_overload_match): Update call to find_oload_champ.
5197 (find_oload_champ_namespace_loop): Likewise
5199 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5201 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5203 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5204 * config/sparc/obsd64.mh: New file.
5205 * sparc64obsd-nat.c: New file.
5207 * obsd-nat.h: New file.
5208 * obsd-nat.c: New file.
5209 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5210 (ALLDEPFILES): Add obsd-nat.c.
5212 2014-02-28 Tom Tromey <tromey@redhat.com>
5214 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5215 * cli-out.h (cli_ui_out_impl): Now const.
5216 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5217 * ui-out.c (struct ui_out) <impl>: Now const.
5218 (default_ui_out_impl): Now const.
5219 (ui_out_new): Make 'impl' parameter const.
5220 * ui-out.h (ui_out_new): Update.
5222 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5224 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5226 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5228 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5230 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5232 Additional PR 8882 fix.
5233 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5235 2014-02-27 Pedro Alves <palves@redhat.com>
5237 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5240 2014-02-27 Pedro Alves <palves@redhat.com>
5243 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5244 * nat/linux-waitpid.c: Include string.h.
5245 (status_to_str): Moved here and made extern.
5246 * nat/linux-waitpid.h (status_to_str): New declaration.
5248 2014-02-27 Hui Zhu <hui@codesourcery.com>
5251 * infrun.c (ptid_match): Move ...
5252 * common/ptid.c (ptid_match): ... here.
5253 * inferior.h (ptid_match): Move ...
5254 * common/ptid.h (ptid_match): ... here.
5256 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5258 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5259 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5262 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5264 * obsd-tdep.c (obsd_auxv_parse): New function.
5265 (obsd_init_abi): Set auxv_parse.
5267 * gdbarch.sh (auxv_parse): New.
5268 * gdbarch.h: Regenerated.
5269 * gdbarch.c: Regenerated.
5270 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5272 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5274 * guile/scm-value.c (gdbscm_history_append_x): New function.
5275 (value_functions): Add it.
5277 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5279 * dwarf2read.c (attr_value_as_address): New function.
5280 (dwarf2_find_base_address, read_call_site_scope): Use
5281 attr_value_as_address in place of DW_ADDR.
5282 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5283 the low and high addresses. Slight rework of the handling
5284 of the high pc being a constant form, and limit it to
5285 DWARF verson 4 or higher.
5286 (dwarf2_record_block_ranges): Likewise.
5287 (read_partial_die): Likewise.
5288 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5290 2014-02-26 Tom Tromey <tromey@redhat.com>
5292 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5294 2014-02-26 Tom Tromey <tromey@redhat.com>
5296 * elfread.c (elf_read_minimal_symbols): Return early if
5297 minimal symbols have already been read. Add "ei" parameter.
5298 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5299 * minsyms.c (prim_record_minimal_symbol_full): Update.
5300 * objfiles.h (struct objstats) <n_minsyms>: Move...
5301 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5302 * symmisc.c (print_objfile_statistics): Update.
5304 2014-02-26 Tom Tromey <tromey@redhat.com>
5306 * elfread.c (elf_read_minimal_symbols): New function, from
5308 (elf_symfile_read): Call it.
5310 2014-02-26 Tom Tromey <tromey@redhat.com>
5312 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5313 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5314 (lookup_minimal_symbol_solib_trampoline)
5315 (lookup_minimal_symbol_by_pc_section_1)
5316 (lookup_minimal_symbol_and_objfile): Update.
5317 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5318 Don't allocate a minimal symbol if minsyms have already been read.
5319 (build_minimal_symbol_hash_tables): Update.
5320 (install_minimal_symbols): Do nothing if minsyms already read.
5321 Use the per-BFD obstack.
5322 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5323 * objfiles.c (allocate_objfile): Call
5324 terminate_minimal_symbol_table later.
5325 (have_minimal_symbols): Update.
5326 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5327 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5328 Move from struct objfile.
5329 <minsyms_read>: New field.
5330 (struct objfile) <msymbols, minimal_symbol_count,
5331 msymbol_hash, msymbol_demangled_hash>: Move.
5332 (ALL_OBJFILE_MSYMBOLS): Update.
5333 * symfile.c (read_symbols): Set minsyms_read.
5334 (reread_symbols): Update.
5335 * symmisc.c (dump_objfile, dump_msymbols): Update.
5337 2014-02-26 Tom Tromey <tromey@redhat.com>
5339 * minsyms.c (msymbols_sort): Remove.
5340 * minsyms.h (msymbols_sort): Remove.
5341 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5342 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5343 * elfread.c (elf_symtab_read): Don't add section offsets.
5344 * xcoffread.c (record_minimal_symbol): Don't add section offset
5345 to minimal symbol address.
5346 * somread.c (text_offset, data_offset): Remove.
5347 (som_symtab_read): Don't add section offsets to minimal symbol
5349 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5350 Don't add section offsets to minimal symbols.
5351 * coffread.c (coff_symtab_read): Don't add section offsets
5352 to minimal symbol addresses.
5353 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5354 to minimal symbol addresses.
5355 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5356 section offset to minimal symbol addresses.
5357 * mdebugread.c (parse_partial_symbols): Don't add section
5358 offset to minimal symbol addresses.
5359 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5360 offset to minimal symbol addresses.
5362 2014-02-26 Tom Tromey <tromey@redhat.com>
5364 * ada-lang.c (ada_main_name): Update.
5365 (ada_add_standard_exceptions): Update.
5366 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5367 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5368 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5369 * auxv.c (ld_so_xfer_auxv): Update.
5370 * avr-tdep.c (avr_scan_prologue): Update.
5371 * ax-gdb.c (gen_var_ref): Update.
5372 * blockframe.c (get_pc_function_start)
5373 (find_pc_partial_function_gnu_ifunc): Update.
5374 * breakpoint.c (create_overlay_event_breakpoint)
5375 (create_longjmp_master_breakpoint)
5376 (create_std_terminate_master_breakpoint)
5377 (create_exception_master_breakpoint): Update.
5378 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5379 * c-valprint.c (c_val_print): Update.
5380 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5381 * common/agent.c (agent_look_up_symbols): Update.
5382 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5383 * dwarf2loc.c (call_site_to_target_addr): Update.
5384 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5385 * elfread.c (elf_gnu_ifunc_record_cache)
5386 (elf_gnu_ifunc_resolve_by_got): Update.
5387 * findvar.c (default_read_var_value): Update.
5388 * frame.c (inside_main_func): Update.
5389 * frv-tdep.c (frv_frame_this_id): Update.
5390 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5391 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5393 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5394 (hppa_hpux_find_dummy_bpaddr): Update.
5395 * hppa-tdep.c (hppa_symbol_address): Update.
5396 * infcmd.c (until_next_command): Update.
5397 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5399 * linespec.c (minsym_found, add_minsym): Update.
5400 * linux-nat.c (get_signo): Update.
5401 * linux-thread-db.c (inferior_has_bug): Update.
5402 * m32c-tdep.c (m32c_return_value)
5403 (m32c_m16c_address_to_pointer): Update.
5404 * m32r-tdep.c (m32r_frame_this_id): Update.
5405 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5406 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5407 * maint.c (maintenance_translate_address): Update.
5408 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5409 (frob_address): New function.
5410 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5411 frob_address. Rename parameter to "pc_in".
5412 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5414 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5416 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5417 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5418 * objc-lang.c (find_objc_msgsend): Update.
5419 * objfiles.c (objfile_relocate1): Update.
5420 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5421 * p-valprint.c (pascal_val_print): Update.
5422 * parse.c (write_exp_msymbol): Update.
5423 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5424 (ppc_elfv2_skip_entrypoint): Update.
5425 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5426 * printcmd.c (build_address_symbolic, msym_info)
5427 (address_info): Update.
5428 * proc-service.c (ps_pglobal_lookup): Update.
5429 * psymtab.c (find_pc_sect_psymtab_closer)
5430 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5431 Change msymbol parameter to bound_minimal_symbol.
5432 * ravenscar-thread.c (get_running_thread_id): Update.
5433 * remote.c (remote_check_symbols): Update.
5434 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5436 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5437 * solib-dsbt.c (lm_base): Update.
5438 * solib-frv.c (lm_base, main_got): Update.
5439 * solib-irix.c (locate_base): Update.
5440 * solib-som.c (som_solib_create_inferior_hook)
5441 (link_map_start): Update.
5442 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5443 * solib-svr4.c (elf_locate_base, enable_break): Update.
5444 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5445 (flush_ea_cache): Update.
5446 * stabsread.c (define_symbol, scan_file_globals): Update.
5447 * stack.c (find_frame_funname): Update.
5448 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5449 (debug_qf_find_pc_sect_symtab): Update.
5450 * symfile.c (simple_read_overlay_table)
5451 (simple_overlay_update): Update.
5452 * symfile.h (struct quick_symbol_functions)
5453 <find_pc_sect_symtab>: Change type of msymbol to
5454 bound_minimal_symbol.
5455 * symmisc.c (dump_msymbols): Update.
5456 * symtab.c (find_pc_sect_symtab_via_partial)
5457 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5458 (search_symbols, print_msymbol_info): Update.
5459 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5460 (MSYMBOL_VALUE_ADDRESS): Redefine.
5461 (BMSYMBOL_VALUE_ADDRESS): New macro.
5462 * tracepoint.c (scope_info): Update.
5463 * tui/tui-disasm.c (tui_find_disassembly_address)
5464 (tui_get_begin_asm_address): Update.
5465 * valops.c (find_function_in_inferior): Update.
5466 * value.c (value_static_field, value_fn_field): Update.
5468 2014-02-26 Tom Tromey <tromey@redhat.com>
5470 * ada-lang.c (ada_update_initial_language): Update.
5471 (ada_main_name, ada_has_this_exception_support): Update.
5472 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5473 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5474 * arm-tdep.c (arm_skip_stub): Update.
5475 * auxv.c (ld_so_xfer_auxv): Update.
5476 * avr-tdep.c (avr_scan_prologue): Update.
5477 * ax-gdb.c (gen_var_ref): Update.
5478 * breakpoint.c (struct breakpoint_objfile_data)
5479 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5480 type to bound_minimal_symbol.
5481 (create_overlay_event_breakpoint)
5482 (create_longjmp_master_breakpoint)
5483 (create_std_terminate_master_breakpoint)
5484 (create_exception_master_breakpoint): Update.
5485 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5486 * c-exp.y (classify_name): Update.
5487 * coffread.c (coff_symfile_read): Update.
5488 * common/agent.c (agent_look_up_symbols): Update.
5489 * d-lang.c (d_main_name): Update.
5490 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5491 * dec-thread.c (enable_dec_thread): Update.
5492 * dwarf2loc.c (call_site_to_target_addr): Update.
5493 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5494 * eval.c (evaluate_subexp_standard): Update.
5495 * findvar.c (struct minsym_lookup_data) <result>: Change type
5496 to bound_minimal_symbol.
5498 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5499 * frame.c (inside_main_func): Update.
5500 * frv-tdep.c (frv_frame_this_id): Update.
5501 * gcore.c (call_target_sbrk): Update.
5502 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5503 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5505 * go-lang.c (go_main_name): Update.
5506 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5507 (hppa_hpux_find_import_stub_for_addr): Update.
5508 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5509 Update. Change return type.
5510 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5512 * jit.c (jit_breakpoint_re_set_internal): Update.
5513 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5515 * linux-nat.c (get_signo): Update.
5516 * linux-thread-db.c (inferior_has_bug): Update
5517 * m32c-tdep.c (m32c_return_value)
5518 (m32c_m16c_address_to_pointer): Update.
5519 * m32r-tdep.c (m32r_frame_this_id): Update.
5520 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5521 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5522 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5523 lookup_minimal_symbol. Change return type.
5524 (lookup_minimal_symbol): Remove.
5525 (lookup_bound_minimal_symbol): Update.
5526 (lookup_minimal_symbol_text): Change return type.
5527 (lookup_minimal_symbol_solib_trampoline): Change return type.
5528 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5529 (lookup_minimal_symbol_solib_trampoline): Change return type.
5530 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5531 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5532 (value_nsstring, find_imps): Update.
5533 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5534 * p-lang.c (pascal_main_name): Update.
5535 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5536 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5537 * proc-service.c (ps_pglobal_lookup): Update.
5538 * ravenscar-thread.c (get_running_thread_msymbol): Change
5540 (has_ravenscar_runtime, get_running_thread_id): Update.
5541 * remote.c (remote_check_symbols): Update.
5542 * sol-thread.c (ps_pglobal_lookup): Update.
5543 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5544 * solib-dsbt.c (lm_base): Update.
5545 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5547 * solib-irix.c (locate_base): Update.
5548 * solib-som.c (som_solib_create_inferior_hook)
5549 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5551 * solib-spu.c (spu_enable_break): Update.
5552 * solib-svr4.c (elf_locate_base, enable_break): Update.
5553 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5554 (flush_ea_cache): Update.
5555 * stabsread.c (define_symbol): Update.
5556 * symfile.c (simple_read_overlay_table): Update.
5557 * symtab.c (find_pc_sect_line): Update.
5558 * tracepoint.c (scope_info): Update.
5559 * tui-disasm.c (tui_get_begin_asm_address): Update.
5560 * value.c (value_static_field): Update.
5562 2014-02-26 Tom Tromey <tromey@redhat.com>
5564 * minsyms.c (prim_record_minimal_symbol_full): Use
5565 SET_MSYMBOL_VALUE_ADDRESS.
5566 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5567 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5568 SET_MSYMBOL_VALUE_ADDRESS.
5569 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5570 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5572 2014-02-26 Tom Tromey <tromey@redhat.com>
5574 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5575 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5576 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5577 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5578 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5579 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5580 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5581 * ada-lang.c (ada_main_name): Update.
5582 (ada_lookup_simple_minsym): Update.
5583 (ada_make_symbol_completion_list): Update.
5584 (ada_add_standard_exceptions): Update.
5585 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5586 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5587 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5588 * arm-tdep.c (skip_prologue_function): Update.
5589 (arm_skip_stack_protector, arm_skip_stub): Update.
5590 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5591 (arm_wince_skip_main_prologue): Update.
5592 * auxv.c (ld_so_xfer_auxv): Update.
5593 * avr-tdep.c (avr_scan_prologue): Update.
5594 * ax-gdb.c (gen_var_ref): Update.
5595 * block.c (call_site_for_pc): Update.
5596 * blockframe.c (get_pc_function_start): Update.
5597 (find_pc_partial_function_gnu_ifunc): Update.
5598 * breakpoint.c (create_overlay_event_breakpoint): Update.
5599 (create_longjmp_master_breakpoint): Update.
5600 (create_std_terminate_master_breakpoint): Update.
5601 (create_exception_master_breakpoint): Update.
5602 (resolve_sal_pc): Update.
5603 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5604 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5606 * c-valprint.c (c_val_print): Update.
5607 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5608 * coffread.c (coff_symfile_read): Update.
5609 * common/agent.c (agent_look_up_symbols): Update.
5610 * dbxread.c (find_stab_function_addr): Update.
5611 (end_psymtab): Update.
5612 * dwarf2loc.c (call_site_to_target_addr): Update.
5613 (func_verify_no_selftailcall): Update.
5614 (tailcall_dump): Update.
5615 (call_site_find_chain_1): Update.
5616 (dwarf_expr_reg_to_entry_parameter): Update.
5617 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5618 (elf_gnu_ifunc_resolve_by_got): Update.
5619 * f-valprint.c (info_common_command): Update.
5620 * findvar.c (read_var_value): Update.
5621 * frame.c (get_prev_frame_1): Update.
5622 (inside_main_func): Update.
5623 * frv-tdep.c (frv_skip_main_prologue): Update.
5624 (frv_frame_this_id): Update.
5625 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5626 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5627 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5628 (gnuv3_skip_trampoline): Update.
5629 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5630 (hppa64_hpux_in_solib_call_trampoline): Update.
5631 (hppa_hpux_skip_trampoline_code): Update.
5632 (hppa64_hpux_search_dummy_call_sequence): Update.
5633 (hppa_hpux_find_import_stub_for_addr): Update.
5634 (hppa_hpux_find_dummy_bpaddr): Update.
5635 * hppa-tdep.c (hppa_symbol_address)
5636 (hppa_lookup_stub_minimal_symbol): Update.
5637 * i386-tdep.c (i386_skip_main_prologue): Update.
5638 (i386_pe_skip_trampoline_code): Update.
5639 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5640 * infcall.c (get_function_name): Update.
5641 * infcmd.c (until_next_command): Update.
5642 * jit.c (jit_breakpoint_re_set_internal): Update.
5643 (jit_inferior_init): Update.
5644 * linespec.c (minsym_found): Update.
5645 (add_minsym): Update.
5646 * linux-fork.c (info_checkpoints_command): Update.
5647 * linux-nat.c (get_signo): Update.
5648 * linux-thread-db.c (inferior_has_bug): Update.
5649 * m32c-tdep.c (m32c_return_value): Update.
5650 (m32c_m16c_address_to_pointer): Update.
5651 (m32c_m16c_pointer_to_address): Update.
5652 * m32r-tdep.c (m32r_frame_this_id): Update.
5653 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5654 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5655 * maint.c (maintenance_translate_address): Update.
5656 * minsyms.c (add_minsym_to_hash_table): Update.
5657 (add_minsym_to_demangled_hash_table): Update.
5658 (msymbol_objfile): Update.
5659 (lookup_minimal_symbol): Update.
5660 (iterate_over_minimal_symbols): Update.
5661 (lookup_minimal_symbol_text): Update.
5662 (lookup_minimal_symbol_by_pc_name): Update.
5663 (lookup_minimal_symbol_solib_trampoline): Update.
5664 (lookup_minimal_symbol_by_pc_section_1): Update.
5665 (lookup_minimal_symbol_and_objfile): Update.
5666 (prim_record_minimal_symbol_full): Update.
5667 (compare_minimal_symbols): Update.
5668 (compact_minimal_symbols): Update.
5669 (build_minimal_symbol_hash_tables): Update.
5670 (install_minimal_symbols): Update.
5671 (terminate_minimal_symbol_table): Update.
5672 (find_solib_trampoline_target): Update.
5673 (minimal_symbol_upper_bound): Update.
5674 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5675 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5676 (mips_skip_pic_trampoline_code): Update.
5677 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5678 * objc-lang.c (selectors_info): Update.
5679 (classes_info): Update.
5680 (find_methods): Update.
5681 (find_imps): Update.
5682 (find_objc_msgsend): Update.
5683 * objfiles.c (objfile_relocate1): Update.
5684 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5685 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5686 * p-valprint.c (pascal_val_print): Update.
5687 * parse.c (write_exp_msymbol): Update.
5688 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5689 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5690 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5691 * printcmd.c (build_address_symbolic): Update.
5693 (address_info): Update.
5694 * proc-service.c (ps_pglobal_lookup): Update.
5695 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5696 (find_pc_sect_psymtab): Update.
5697 * python/py-framefilter.c (py_print_frame): Update.
5698 * ravenscar-thread.c (get_running_thread_id): Update.
5699 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5701 * remote.c (remote_check_symbols): Update.
5702 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5703 (rs6000_skip_trampoline_code): Update.
5704 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5705 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5706 * solib-dsbt.c (lm_base): Update.
5707 * solib-frv.c (lm_base): Update.
5709 * solib-irix.c (locate_base): Update.
5710 * solib-som.c (som_solib_create_inferior_hook): Update.
5711 (som_solib_desire_dynamic_linker_symbols): Update.
5712 (link_map_start): Update.
5713 * solib-spu.c (spu_enable_break): Update.
5714 (ocl_enable_break): Update.
5715 * solib-svr4.c (elf_locate_base): Update.
5716 (enable_break): Update.
5717 * spu-tdep.c (spu_get_overlay_table): Update.
5718 (spu_catch_start): Update.
5719 (flush_ea_cache): Update.
5720 * stabsread.c (define_symbol): Update.
5721 (scan_file_globals): Update.
5722 * stack.c (find_frame_funname): Update.
5723 (frame_info): Update.
5724 * symfile.c (simple_read_overlay_table): Update.
5725 (simple_overlay_update): Update.
5726 * symmisc.c (dump_msymbols): Update.
5727 * symtab.c (fixup_section): Update.
5728 (find_pc_sect_line): Update.
5729 (skip_prologue_sal): Update.
5730 (search_symbols): Update.
5731 (print_msymbol_info): Update.
5732 (rbreak_command): Update.
5733 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5734 (completion_list_objc_symbol): Update.
5735 (default_make_symbol_completion_list_break_on): Update.
5736 * tracepoint.c (scope_info): Update.
5737 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5738 (tui_get_begin_asm_address): Update.
5739 * valops.c (find_function_in_inferior): Update.
5740 * value.c (value_static_field): Update.
5741 (value_fn_field): Update.
5743 2014-02-26 Tom Tromey <tromey@redhat.com>
5745 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5746 bound minimal symbols. Move code that knows about minsym
5748 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5750 * minsyms.h (minimal_symbol_upper_bound): Declare.
5751 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5752 minimal_symbol_upper_bound.
5754 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5756 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5757 Use the type's name if its basic type does not have a tag.
5759 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5761 * dwarf2read.c (read_subrange_type): Add comment.
5763 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5765 * dwarf2read.c (update_enumeration_type_from_children): New
5766 function, mostly extracted from process_structure_scope.
5767 (read_enumeration_type): Call update_enumeration_type_from_children.
5768 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5769 and flag_flag_enum fields.
5771 2014-02-26 Pedro Alves <palves@redhat.com>
5773 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5774 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5775 to_xfer_partial method.
5777 2014-02-26 Pedro Alves <palves@redhat.com>
5779 * target.c (complete_target_initialization): Don't install
5780 default_xfer_partial as to_xfer_partial hook.
5782 (update_current_target): Don't INHERIT nor de_fault
5783 deprecated_xfer_memory. Delete de_fault macro.
5784 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5785 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5786 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5789 2014-02-26 Pedro Alves <palves@redhat.com>
5791 * go32-nat.c (my_write_child): New function.
5792 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5793 (go32_xfer_partial): New function.
5794 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5795 Instead install a to_xfer_partial hook.
5797 2014-02-26 Pedro Alves <palves@redhat.com>
5799 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5800 to_xfer_partial helper. Rewrite.
5801 (procfs_xfer_partial): New function.
5802 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5803 Install a to_xfer_partial hook.
5805 2014-02-26 Pedro Alves <palves@redhat.com>
5807 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5808 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5809 (m32r_xfer_partial): New function.
5810 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5811 Install a to_xfer_partial hook.
5813 2014-02-26 Pedro Alves <palves@redhat.com>
5815 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5817 (mips_xfer_partial): New function.
5818 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5819 hook. Install a to_xfer_partial hook.
5821 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5823 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5824 * gdbtypes.c (create_array_type_with_stride): New function,
5825 renaming create_array_type, but with an added parameter
5826 called "bit_stride".
5827 (create_array_type): Re-implement using
5828 create_array_type_with_stride.
5829 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5830 and DW_AT_bit_stride attributes.
5832 2014-02-26 Pedro Alves <palves@redhat.com>
5834 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5835 task-specific breakpoints.
5837 2014-02-25 Pedro Alves <palves@redhat.com>
5839 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5840 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5842 2014-02-25 Stan Shebs <stan@codesourcery.com>
5844 * defs.h: Annotate comments for Doxygen.
5846 2014-02-25 Tom Tromey <tromey@redhat.com>
5848 * target.h (target_ignore): Don't declare.
5849 * target.c (target_ignore): Remove.
5851 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5854 * auto-load.c (auto_load_objfile_script_1): Change filename to
5857 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5859 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5860 documentation. Adjust prototype to match the target_ops
5861 to_xfer_partial method. Adjust implementation accordingly.
5863 2014-02-25 Hui Zhu <hui@codesourcery.com>
5865 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5868 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5870 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5871 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5872 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5873 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5874 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5875 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5876 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5877 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5879 (rl78_register_type): Use a data pointer type for SP and
5880 new pseudo registers mentioned above. Use a 16 bit integer
5881 type for all other register pairs.
5882 (rl78_register_name, rl78_g10_register_name): Update for
5883 new pseudo registers.
5884 (rl78_pseudo_register_read): Likewise.
5885 (rl78_pseudo_register_write): Likewise.
5886 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5887 to the newly added pseudo registers.
5889 2014-02-24 Doug Evans <dje@google.com>
5891 * value.c (record_latest_value): Fix comment.
5892 * printcmd.c (print_command_1): Remove code to handle -1 return from
5893 record_latest_value.
5895 2014-02-24 Pedro Alves <palves@redhat.com>
5897 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5898 deprecated_xfer_memory hook.
5899 (procfs_xfer_partial): Call procfs_xfer_memory instead
5900 of the deprecated_xfer_memory target hook.
5901 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5904 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5906 * windows-nat.c (windows_xfer_shared_libraries): Return
5907 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5908 requested object is TARGET_OBJECT_LIBRARIES.
5910 2014-02-24 Yao Qi <yao@codesourcery.com>
5912 * target.h (enum target_xfer_status)
5913 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5914 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5916 * corefile.c (memory_error_message): User updated.
5917 * exec.c (section_table_read_available_memory): Likewise.
5918 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5919 * target.c (target_xfer_status_to_string): Likewise.
5920 (raw_memory_xfer_partial): Likewise.
5921 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5922 * valops.c (read_value_memory): Likewise.
5923 * exec.h: Update comments.
5925 2014-02-24 Yao Qi <yao@codesourcery.com>
5927 * target.c (target_xfer_status_to_string): Rename argument err
5929 * target.h (target_xfer_status_to_string): Update declaration.
5930 Replace target_xfer_error_to_string with
5931 target_xfer_status_to_string in comment.
5933 2014-02-24 Yao Qi <yao@codesourcery.com>
5935 * mips-linux-nat.c (super_close): Update its type.
5936 (mips_linux_close): Pass 'self' to super_close.
5938 2014-02-24 Yao Qi <yao@codesourcery.com>
5940 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5941 * corefile.c (read_memory): Adjusted.
5942 * target.c (target_write_with_progress): Adjusted.
5944 2014-02-23 Yao Qi <yao@codesourcery.com>
5948 2013-10-25 Yao Qi <yao@codesourcery.com>
5950 * remote.c (remote_traceframe_info): Return early if
5951 traceframe is not selected.
5953 2013-07-19 Yao Qi <yao@codesourcery.com>
5955 * target.c (update_current_target): Change the default action
5956 of 'to_traceframe_info' from tcomplain to return_zero.
5957 * target.h (struct target_ops) <to_traceframe_info>: Add more
5960 2014-02-23 Yao Qi <yao@codesourcery.com>
5962 * valops.c (read_value_memory): Rewrite it. Call
5963 target_xfer_partial in a loop.
5964 * exec.h (section_table_available_memory): Remove declaration.
5965 Move comments to ...
5966 * exec.c (section_table_available_memory): ... here. Make it
5969 2014-02-23 Yao Qi <yao@codesourcery.com>
5971 * exec.c (section_table_read_available_memory): New function.
5972 * exec.h (section_table_read_available_memory): Declare.
5973 * ctf.c (ctf_xfer_partial): Call
5974 section_table_read_available_memory.
5975 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5977 2014-02-23 Yao Qi <yao@codesourcery.com>
5979 * ctf.c (ctf_xfer_partial): Move code to ...
5980 * exec.c (exec_read_partial_read_only): ... it. New function.
5981 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5982 * tracefile.c: Include "exec.h".
5983 * exec.h (exec_read_partial_read_only): Declare.
5985 2014-02-23 Yao Qi <yao@codesourcery.com>
5987 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5988 (tfile_has_memory): Remove.
5989 (init_tfile_ops): Don't set fields to_has_all_memory and
5990 to_has_memory of tfile_ops.
5991 * tracefile.c (tracefile_has_all_memory): New function.
5992 (tracefile_has_memory): New function.
5993 (init_tracefile_ops): Initialize fields to_has_all_memory and
5994 to_has_memory of 'ops'.
5996 2014-02-23 Yao Qi <yao@codesourcery.com>
5998 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5999 (ctf_thread_alive, ctf_get_trace_status): Remove.
6000 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6002 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6003 (tfile_has_stack, tfile_has_registers): Remove.
6004 (tfile_thread_alive): Remove.
6005 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6007 * tracefile.c (tracefile_has_stack): New function.
6008 (tracefile_has_registers): New function.
6009 (tracefile_thread_alive): New function.
6010 (tracefile_get_trace_status): New function.
6011 (init_tracefile_ops): New function.
6012 * tracefile.h (init_tracefile_ops): Declare.
6014 2014-02-23 Yao Qi <yao@codesourcery.com>
6016 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6017 (O_LARGEFILE): Likewise.
6018 (tfile_ops): Likewise.
6019 (TRACE_HEADER_SIZE): Likewise.
6020 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6021 (cur_data_size): Likewise.
6022 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6023 (tfile_close, tfile_files_info): Likewise.
6024 (tfile_get_trace_status): Likewise.
6025 (tfile_get_tracepoint_status): Likewise.
6026 (tfile_get_traceframe_address): Likewise.
6027 (tfile_trace_find, match_blocktype): Likewise.
6028 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6029 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6030 (tfile_get_trace_state_variable_value): Likewise.
6031 (tfile_has_all_memory, tfile_has_memory): Likewise.
6032 (tfile_has_stack, tfile_has_registers): Likewise.
6033 (tfile_thread_alive, build_traceframe_info): Likewise.
6034 (tfile_traceframe_info, init_tfile_ops): Likewise.
6035 (_initialize_tracepoint): Don't call init_tfile_ops
6036 and add_target_with_completer.
6037 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6038 exec.h, completer.h and filenames.h.
6039 (_initialize_tracefile_tfile): New function.
6041 2014-02-23 Yao Qi <yao@codesourcery.com>
6043 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6045 (HFILES_NO_SRCDIR): Add tracefile.h.
6046 * ctf.c: Include "tracefile.h".
6047 * tracefile.h: New file.
6048 * tracefile.c: New file
6049 * tracefile-tfile.c: New file.
6050 * tracepoint.c: Include "tracefile.h".
6051 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6052 (stop_reason_names): Add const.
6053 (trace_file_writer_xfree): Move it to tracefile.c.
6054 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6055 (trace_save_ctf): Likewise.
6056 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6057 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6058 (tfile_write_header, tfile_write_regblock_type): Likewise.
6059 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6060 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6061 (tfile_write_raw_data, tfile_end): Likewise.
6062 (tfile_trace_file_writer_new): Likewise.
6063 (free_uploaded_tp): Make it extern.
6064 (free_uploaded_tsv): Make it extern.
6065 (_initialize_tracepoint): Move code to register command 'tsave'
6067 * tracepoint.h (stop_reason_names): Declare.
6068 (struct trace_frame_write_ops): Move it to tracefile.h.
6069 (struct trace_file_write_ops): Likewise.
6070 (struct trace_file_writer): Likewise.
6071 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6073 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6076 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6078 (get_cores_used_by_process): New parameter num_cores, use it.
6079 (linux_xfer_osdata_processes): Pass num_cores to it.
6080 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6083 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6085 * target.c (memory_xfer_partial): Fix length arg in call to
6086 breakpoint_xfer_memory.
6088 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6091 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6092 number comes after the + or - signs. Adjust length of register
6093 name to be extracted.
6095 2014-02-20 Tom Tromey <tromey@redhat.com>
6097 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6098 (ada_varobj_ops): Mark "extern".
6100 2014-02-20 Tom Tromey <tromey@redhat.com>
6102 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6104 2014-02-20 Doug Evans <xdje42@gmail.com>
6106 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6107 All callers updated.
6108 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6109 All callers updated.
6110 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6111 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6113 2014-02-20 lin zuojian <manjian2006@gmail.com>
6114 Joel Brobecker <brobecker@adacore.com>
6115 Doug Evans <xdje42@gmail.com>
6118 * dwarf2read.c (struct die_info): New member in_process.
6119 (reset_die_in_process): New function.
6120 (process_die): Set it at the start, reset when returning.
6121 (inherit_abstract_dies): Only call process_die if origin_child_die
6122 not already being processed.
6124 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6126 * windows-nat.c (handle_unload_dll): Add function documentation.
6127 (do_initial_windows_stuff): Add comment explaining why we wait
6128 until after inferior initialization has finished before
6129 processing all DLLs.
6131 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6133 * windows-nat.c (get_module_name): Delete.
6134 (windows_get_exec_module_filename): New function, mostly
6135 inspired from get_module_name.
6136 (windows_pid_to_exec_file): Replace call to get_module_name
6137 by call to windows_get_exec_module_filename.
6139 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6141 * windows-nat.c (handle_load_dll): Rewrite this function's
6142 introductory comment. Remove code using get_module_name
6143 to get the DLL's name.
6145 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6147 * windows-nat.c (get_windows_debug_event): Ignore
6148 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6149 if windows_initialization_done == 0.
6150 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6151 Adjust implementation to always load all DLLs.
6152 (do_initial_windows_stuff): Replace call to
6153 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6155 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6157 * windows-nat.c (_initialize_windows_nat): Deprecate the
6158 "dll-symbols" command. Turn the "add-shared-symbol-files"
6159 and "assf" aliases into commands, and deprecate them as well.
6160 * NEWS: Add entry explaining that "dll-symbols" and its two
6161 aliases are now deprecated.
6163 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6165 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6166 new-line in debug string. Remove trailing spaces.
6168 2014-02-19 Stan Shebs <stan@codesourcery.com>
6170 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6172 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6174 * NEWS: Add entry for the new feature
6175 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6178 2014-02-19 Stan Shebs <stan@codesourcery.com>
6180 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6182 2014-02-19 Pedro Alves <palves@redhat.com>
6184 * common/ptid.h (struct ptid): Mention that process_stratum
6185 targets should prefer ptid.lwp.
6187 2014-02-19 Pedro Alves <palves@redhat.com>
6189 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6190 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6191 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6192 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6193 store remote thread ids rather than ptid.tid.
6194 (_initialize_remote): Adjust.
6196 2014-02-19 Tom Tromey <tromey@redhat.com>
6198 * target.c (target_get_unwinder): Rewrite.
6199 (target_get_tailcall_unwinder): Rewrite.
6200 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6201 (record_btrace_to_get_tailcall_unwinder): New function.
6202 (init_record_btrace_ops): Update.
6203 * target.h (struct target_ops) <to_get_unwinder,
6204 to_get_tailcall_unwinder>: Now function pointers. Use
6205 TARGET_DEFAULT_RETURN.
6207 2014-02-19 Tom Tromey <tromey@redhat.com>
6209 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6211 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6213 2014-02-19 Tom Tromey <tromey@redhat.com>
6215 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6217 * target-delegates.c: Rebuild.
6218 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6219 TARGET_DEFAULT_FUNC.
6220 * target.c (default_target_decr_pc_after_break): Rename from
6221 forward_target_decr_pc_after_break. Simplify.
6222 (target_decr_pc_after_break): Rely on delegation.
6224 2014-02-19 Tom Tromey <tromey@redhat.com>
6226 * target.c (update_current_target): Do not INHERIT to_doc or
6227 to_magic. Do not de_fault to_open or to_close.
6229 2014-02-19 Tom Tromey <tromey@redhat.com>
6231 * gcore.h (objfile_find_memory_regions): Declare.
6232 * gcore.c (objfile_find_memory_regions): No longer static. Add
6234 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6235 * exec.c: Include gcore.h.
6236 (exec_set_find_memory_regions): Remove.
6237 (exec_find_memory_regions): Remove.
6238 (exec_do_find_memory_regions): Remove.
6239 (init_exec_ops): Update.
6240 * defs.h (exec_set_find_memory_regions): Remove.
6242 2014-02-19 Tom Tromey <tromey@redhat.com>
6244 * target-delegates.c: Rebuild.
6245 * target.h (struct target_ops) <to_extra_thread_info,
6246 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6247 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6248 not 0, in TARGET_DEFAULT_RETURN.
6250 2014-02-19 Tom Tromey <tromey@redhat.com>
6252 * target.c (complete_target_initialization): Remove casts. Use
6253 return_zero_has_execution.
6254 (return_zero): Add "ignore" argument.
6255 (return_zero_has_execution): New function.
6256 (init_dummy_target): Remove casts. Use
6257 return_zero_has_execution.
6259 2014-02-19 Tom Tromey <tromey@redhat.com>
6261 * target.c (update_current_target): Update comments. Do not
6264 2014-02-19 Tom Tromey <tromey@redhat.com>
6266 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6268 * corelow.c (core_read_description): Delegate when needed.
6269 * remote.c (remote_read_description): Delegate when needed.
6270 * target-delegates.c: Rebuild.
6271 * target.c (target_read_description): Rewrite.
6272 * target.h (struct target_ops) <to_read_description>: Update
6273 comment. Use TARGET_DEFAULT_RETURN.
6275 2014-02-19 Tom Tromey <tromey@redhat.com>
6277 * target-delegates.c: Rebuild.
6278 * target.c (update_current_target): Don't inherit or default
6280 (find_default_run_target): Check against delegate_can_run.
6281 * target.h (struct target_ops) <to_can_run>: Use
6282 TARGET_DEFAULT_RETURN.
6284 2014-02-19 Tom Tromey <tromey@redhat.com>
6286 * target-delegates.c: Rebuild.
6287 * target.c (target_disconnect): Unconditionally delegate.
6288 * target.h (struct target_ops) <to_disconnect>: Use
6289 TARGET_DEFAULT_NORETURN.
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * record.c (record_stop): Unconditionally delegate.
6294 * target-delegates.c: Rebuild.
6295 * target.c (target_stop_recording): Unconditionally delegate.
6296 * target.h (struct target_ops) <to_stop_recording>: Use
6297 TARGET_DEFAULT_IGNORE.
6299 2014-02-19 Tom Tromey <tromey@redhat.com>
6301 * target-delegates.c: Rebuild.
6302 * target.c (target_enable_btrace): Unconditionally delegate.
6303 * target.h (struct target_ops) <to_enable_btrace>: Use
6304 TARGET_DEFAULT_NORETURN.
6306 2014-02-19 Tom Tromey <tromey@redhat.com>
6308 * target-delegates.c: Rebuild.
6309 * target.c (target_read_btrace): Unconditionally delegate.
6310 * target.h (struct target_ops) <to_read_btrace>: Use
6311 TARGET_DEFAULT_NORETURN.
6313 2014-02-19 Tom Tromey <tromey@redhat.com>
6315 * target-delegates.c: Rebuild.
6316 * target.c (target_teardown_btrace): Unconditionally delegate.
6317 * target.h (struct target_ops) <to_teardown_btrace>: Use
6318 TARGET_DEFAULT_NORETURN.
6320 2014-02-19 Tom Tromey <tromey@redhat.com>
6322 * target-delegates.c: Rebuild.
6323 * target.c (target_disable_btrace): Unconditionally delegate.
6324 * target.h (struct target_ops) <to_disable_btrace>: Use
6325 TARGET_DEFAULT_NORETURN.
6327 2014-02-19 Tom Tromey <tromey@redhat.com>
6329 * target-delegates.c: Rebuild.
6330 * target.c (default_search_memory): New function.
6331 (simple_search_memory): Update comment.
6332 (target_search_memory): Unconditionally delegate.
6333 * target.h (struct target_ops) <to_search_memory>: Use
6334 TARGET_DEFAULT_FUNC.
6336 2014-02-19 Tom Tromey <tromey@redhat.com>
6338 * auxv.c (default_auxv_parse): No longer static.
6339 (target_auxv_parse): Unconditionally delegate.
6340 * auxv.h (default_auxv_parse): Declare.
6341 * target-delegates.c: Rebuild.
6342 * target.c: Include auxv.h.
6343 * target.h (struct target_ops) <to_auxv_parse>: Use
6344 TARGET_DEFAULT_FUNC.
6346 2014-02-19 Tom Tromey <tromey@redhat.com>
6348 * target-delegates.c: Rebuild.
6349 * target.c (target_memory_map): Unconditionally delegate.
6350 * target.h (struct target_ops) <to_memory_map>: Use
6351 TARGET_DEFAULT_RETURN.
6353 2014-02-19 Tom Tromey <tromey@redhat.com>
6355 * target-delegates.c: Rebuild.
6356 * target.c (target_thread_alive): Unconditionally delegate.
6357 * target.h (struct target_ops) <to_thread_alive>: Use
6358 TARGET_DEFAULT_RETURN.
6360 2014-02-19 Tom Tromey <tromey@redhat.com>
6362 * target-delegates.c: Rebuild.
6363 * target.c (target_save_record): Unconditionally delegate.
6364 * target.h (struct target_ops) <to_save_record>: Use
6365 TARGET_DEFAULT_NORETURN.
6367 2014-02-19 Tom Tromey <tromey@redhat.com>
6369 * target-delegates.c: Rebuild.
6370 * target.c (target_delete_record): Unconditionally delegate.
6371 * target.h (struct target_ops) <to_delete_record>: Use
6372 TARGET_DEFAULT_NORETURN.
6374 2014-02-19 Tom Tromey <tromey@redhat.com>
6376 * target-delegates.c: Rebuild.
6377 * target.c (target_record_is_replaying): Unconditionally
6379 * target.h (struct target_ops) <to_record_is_replaying>: Use
6380 TARGET_DEFAULT_RETURN.
6382 2014-02-19 Tom Tromey <tromey@redhat.com>
6384 * target-delegates.c: Rebuild.
6385 * target.c (target_goto_record_begin): Unconditionally delegate.
6386 * target.h (struct target_ops) <to_goto_record_begin>: Use
6387 TARGET_DEFAULT_NORETURN.
6389 2014-02-19 Tom Tromey <tromey@redhat.com>
6391 * target-delegates.c: Rebuild.
6392 * target.c (target_goto_record_end): Unconditionally delegate.
6393 * target.h (struct target_ops) <to_goto_record_end>: Use
6394 TARGET_DEFAULT_NORETURN.
6396 2014-02-19 Tom Tromey <tromey@redhat.com>
6398 * target-delegates.c: Rebuild.
6399 * target.c (target_goto_record): Unconditionally delegate.
6400 * target.h (struct target_ops) <to_goto_record>: Use
6401 TARGET_DEFAULT_NORETURN.
6403 2014-02-19 Tom Tromey <tromey@redhat.com>
6405 * target-delegates.c: Rebuild.
6406 * target.c (target_insn_history): Unconditionally delegate.
6407 * target.h (struct target_ops) <to_insn_history>: Use
6408 TARGET_DEFAULT_NORETURN.
6410 2014-02-19 Tom Tromey <tromey@redhat.com>
6412 * target-delegates.c: Rebuild.
6413 * target.c (target_insn_history_from): Unconditionally delegate.
6414 * target.h (struct target_ops) <to_insn_history_from>: Use
6415 TARGET_DEFAULT_NORETURN.
6417 2014-02-19 Tom Tromey <tromey@redhat.com>
6419 * target-delegates.c: Rebuild.
6420 * target.c (target_insn_history_range): Unconditionally delegate.
6421 * target.h (struct target_ops) <to_insn_history_range>: Use
6422 TARGET_DEFAULT_NORETURN.
6424 2014-02-19 Tom Tromey <tromey@redhat.com>
6426 * target-delegates.c: Rebuild.
6427 * target.c (target_call_history): Unconditionally delegate.
6428 * target.h (struct target_ops) <to_call_history>: Use
6429 TARGET_DEFAULT_NORETURN.
6431 2014-02-19 Tom Tromey <tromey@redhat.com>
6433 * target-delegates.c: Rebuild.
6434 * target.c (target_call_history_from): Unconditionally delegate.
6435 * target.h (struct target_ops) <to_call_history_from>: Use
6436 TARGET_DEFAULT_NORETURN.
6438 2014-02-19 Tom Tromey <tromey@redhat.com>
6440 * target-delegates.c: Rebuild.
6441 * target.c (target_call_history_range): Unconditionally delegate.
6442 * target.h (struct target_ops) <to_call_history_range>: Use
6443 TARGET_DEFAULT_NORETURN.
6445 2014-02-19 Tom Tromey <tromey@redhat.com>
6447 * target-delegates.c: Rebuild.
6448 * target.c (target_verify_memory): Unconditionally delegate.
6449 * target.h (struct target_ops) <to_verify_memory>: Use
6450 TARGET_DEFAULT_NORETURN.
6452 2014-02-19 Tom Tromey <tromey@redhat.com>
6454 * target-delegates.c: Rebuild.
6455 * target.c (target_core_of_thread): Unconditionally delegate.
6456 * target.h (struct target_ops) <to_core_of_thread>: Use
6457 TARGET_DEFAULT_RETURN.
6459 2014-02-19 Tom Tromey <tromey@redhat.com>
6461 * target-delegates.c: Rebuild.
6462 * target.c (target_flash_done): Unconditionally delegate.
6463 * target.h (struct target_ops) <to_flash_done>: Use
6464 TARGET_DEFAULT_NORETURN.
6466 2014-02-19 Tom Tromey <tromey@redhat.com>
6468 * target-delegates.c: Rebuild.
6469 * target.c (target_flash_erase): Unconditionally delegate.
6470 * target.h (struct target_ops) <to_flash_erase>: Use
6471 TARGET_DEFAULT_NORETURN.
6473 2014-02-19 Tom Tromey <tromey@redhat.com>
6475 * target-delegates.c: Rebuild.
6476 * target.c (target_get_section_table): Unconditionally delegate.
6477 * target.h (struct target_ops) <to_get_section_table>: Use
6478 TARGET_DEFAULT_RETURN.
6480 2014-02-19 Tom Tromey <tromey@redhat.com>
6482 * target-delegates.c: Rebuild.
6483 * target.c (target_pid_to_str): Unconditionally delegate.
6484 (init_dummy_target): Don't initialize to_pid_to_str.
6485 (default_pid_to_str): Rename from dummy_pid_to_str.
6486 * target.h (struct target_ops) <to_pid_to_str>: Use
6487 TARGET_DEFAULT_FUNC.
6489 2014-02-19 Tom Tromey <tromey@redhat.com>
6491 * target-delegates.c: Rebuild.
6492 * target.c (target_find_new_threads): Unconditionally delegate.
6493 * target.h (struct target_ops) <to_find_new_threads>: Use
6494 TARGET_DEFAULT_RETURN.
6496 2014-02-19 Tom Tromey <tromey@redhat.com>
6498 * target-delegates.c: Rebuild.
6499 * target.c (target_program_signals): Unconditionally delegate.
6500 * target.h (struct target_ops) <to_program_signals>: Use
6501 TARGET_DEFAULT_IGNORE.
6503 2014-02-19 Tom Tromey <tromey@redhat.com>
6505 * target-delegates.c: Rebuild.
6506 * target.c (target_pass_signals): Unconditionally delegate.
6507 * target.h (struct target_ops) <to_pass_signals>: Use
6508 TARGET_DEFAULT_IGNORE.
6510 2014-02-19 Tom Tromey <tromey@redhat.com>
6512 * target-delegates.c: Rebuild.
6513 * target.c (default_mourn_inferior): New function.
6514 (target_mourn_inferior): Unconditionally delegate.
6515 * target.h (struct target_ops) <to_mourn_inferior>: Use
6516 TARGET_DEFAULT_FUNC.
6518 2014-02-19 Tom Tromey <tromey@redhat.com>
6520 * target-delegates.c: Rebuild.
6521 * target.c (default_follow_fork): New function.
6522 (target_follow_fork): Unconditionally delegate.
6523 * target.h (struct target_ops) <to_follow_fork>: Use
6524 TARGET_DEFAULT_FUNC.
6526 2014-02-19 Tom Tromey <tromey@redhat.com>
6528 * target-delegates.c: Rebuild.
6529 * target.c (target_kill): Unconditionally delegate.
6530 * target.h (struct target_ops) <to_kill>: Use
6531 TARGET_DEFAULT_NORETURN.
6533 2014-02-19 Tom Tromey <tromey@redhat.com>
6535 * target-delegates.c: Rebuild.
6536 * target.c (target_masked_watch_num_registers): Unconditionally
6538 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6539 Use TARGET_DEFAULT_RETURN.
6541 2014-02-19 Tom Tromey <tromey@redhat.com>
6543 * target-delegates.c: Rebuild.
6544 * target.c (target_remove_mask_watchpoint): Unconditionally
6546 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6547 TARGET_DEFAULT_RETURN.
6549 2014-02-19 Tom Tromey <tromey@redhat.com>
6551 * target-delegates.c: Rebuild.
6552 * target.c (target_insert_mask_watchpoint): Unconditionally
6554 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6555 TARGET_DEFAULT_RETURN.
6557 2014-02-19 Tom Tromey <tromey@redhat.com>
6559 * target-delegates.c: Rebuild.
6560 * target.c (target_ranged_break_num_registers): Unconditionally
6562 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6563 Use TARGET_DEFAULT_RETURN.
6565 2014-02-19 Tom Tromey <tromey@redhat.com>
6567 * target-delegates.c: Rebuild.
6568 * target.c (target_fetch_registers): Unconditionally delegate.
6569 * target.h (struct target_ops) <to_fetch_registers>: Use
6570 TARGET_DEFAULT_NORETURN.
6572 2014-02-19 Tom Tromey <tromey@redhat.com>
6574 * target-delegates.c: Rebuild.
6575 * target.c (update_current_target): Don't inherit or default
6577 * target.h (struct target_ops) <to_stop>: Use
6578 TARGET_DEFAULT_IGNORE.
6580 2014-02-19 Tom Tromey <tromey@redhat.com>
6582 * target-delegates.c: Rebuild.
6583 * target.c (update_current_target): Don't inherit or default
6584 to_can_run_breakpoint_commands.
6585 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6586 Use TARGET_DEFAULT_RETURN.
6588 2014-02-19 Tom Tromey <tromey@redhat.com>
6590 * target-delegates.c: Rebuild.
6591 * target.c (update_current_target): Don't inherit or default
6592 to_supports_evaluation_of_breakpoint_conditions.
6593 * target.h (struct target_ops)
6594 <to_supports_evaluation_of_breakpoint_conditions>: Use
6595 TARGET_DEFAULT_RETURN.
6597 2014-02-19 Tom Tromey <tromey@redhat.com>
6599 * target-delegates.c: Rebuild.
6600 * target.c (update_current_target): Don't inherit or default
6601 to_augmented_libraries_svr4_read.
6602 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6603 Use TARGET_DEFAULT_RETURN.
6605 2014-02-19 Tom Tromey <tromey@redhat.com>
6607 * target-delegates.c: Rebuild.
6608 * target.c (update_current_target): Don't inherit or default
6610 * target.h (struct target_ops) <to_can_use_agent>: Use
6611 TARGET_DEFAULT_RETURN.
6613 2014-02-19 Tom Tromey <tromey@redhat.com>
6615 * target-delegates.c: Rebuild.
6616 * target.c (update_current_target): Don't inherit or default
6618 * target.h (struct target_ops) <to_use_agent>: Use
6619 TARGET_DEFAULT_NORETURN.
6621 2014-02-19 Tom Tromey <tromey@redhat.com>
6623 * target-delegates.c: Rebuild.
6624 * target.c (update_current_target): Don't inherit or default
6626 (return_null): Remove.
6627 * target.h (struct target_ops) <to_traceframe_info>: Use
6628 TARGET_DEFAULT_RETURN.
6630 2014-02-19 Tom Tromey <tromey@redhat.com>
6632 * target-delegates.c: Rebuild.
6633 * target.c (update_current_target): Don't inherit or default
6634 to_static_tracepoint_markers_by_strid.
6635 * target.h (struct target_ops)
6636 <to_static_tracepoint_markers_by_strid>: Use
6637 TARGET_DEFAULT_NORETURN.
6639 2014-02-19 Tom Tromey <tromey@redhat.com>
6641 * target-delegates.c: Rebuild.
6642 * target.c (update_current_target): Don't inherit or default
6643 to_static_tracepoint_marker_at.
6644 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6645 Use TARGET_DEFAULT_RETURN.
6647 2014-02-19 Tom Tromey <tromey@redhat.com>
6649 * target-delegates.c: Rebuild.
6650 * target.c (update_current_target): Don't inherit or default
6652 * target.h (struct target_ops) <to_set_permissions>: Use
6653 TARGET_DEFAULT_IGNORE.
6655 2014-02-19 Tom Tromey <tromey@redhat.com>
6657 * target-delegates.c: Rebuild.
6658 * target.c (update_current_target): Don't inherit or default
6660 * target.h (struct target_ops) <to_get_tib_address>: Use
6661 TARGET_DEFAULT_NORETURN.
6663 2014-02-19 Tom Tromey <tromey@redhat.com>
6665 * target-delegates.c: Rebuild.
6666 * target.c (update_current_target): Don't inherit or default
6668 * target.h (struct target_ops) <to_set_trace_notes>: Use
6669 TARGET_DEFAULT_RETURN.
6671 2014-02-19 Tom Tromey <tromey@redhat.com>
6673 * target-delegates.c: Rebuild.
6674 * target.c (update_current_target): Don't initialize
6675 to_set_trace_buffer_size.
6676 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6677 TARGET_DEFAULT_IGNORE.
6679 2014-02-19 Tom Tromey <tromey@redhat.com>
6681 * target-delegates.c: Rebuild.
6682 * target.c (update_current_target): Don't inherit or default
6683 to_set_circular_trace_buffer.
6684 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6685 TARGET_DEFAULT_IGNORE.
6687 2014-02-19 Tom Tromey <tromey@redhat.com>
6689 * target-delegates.c: Rebuild.
6690 * target.c (update_current_target): Don't inherit or default
6691 to_set_disconnected_tracing.
6692 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6693 TARGET_DEFAULT_IGNORE.
6695 2014-02-19 Tom Tromey <tromey@redhat.com>
6697 * target-delegates.c: Rebuild.
6698 * target.c (update_current_target): Don't inherit or default
6699 to_get_min_fast_tracepoint_insn_len.
6700 (return_minus_one): Remove.
6701 * target.h (struct target_ops)
6702 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6704 2014-02-19 Tom Tromey <tromey@redhat.com>
6706 * target-delegates.c: Rebuild.
6707 * target.c (update_current_target): Don't inherit or default
6708 to_get_raw_trace_data.
6709 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6710 TARGET_DEFAULT_NORETURN.
6712 2014-02-19 Tom Tromey <tromey@redhat.com>
6714 * target-delegates.c: Rebuild.
6715 * target.c (update_current_target): Don't inherit or default
6716 to_upload_trace_state_variables.
6717 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6718 Use TARGET_DEFAULT_RETURN.
6720 2014-02-19 Tom Tromey <tromey@redhat.com>
6722 * target-delegates.c: Rebuild.
6723 * target.c (update_current_target): Don't inherit or default
6724 to_upload_tracepoints.
6725 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6726 TARGET_DEFAULT_RETURN.
6728 2014-02-19 Tom Tromey <tromey@redhat.com>
6730 * target-delegates.c: Rebuild.
6731 * target.c (update_current_target): Don't inherit or default
6733 * target.h (struct target_ops) <to_save_trace_data>: Use
6734 TARGET_DEFAULT_NORETURN.
6736 2014-02-19 Tom Tromey <tromey@redhat.com>
6738 * target-delegates.c: Rebuild.
6739 * target.c (update_current_target): Don't inherit or default
6740 to_get_trace_state_variable_value.
6741 * target.h (struct target_ops)
6742 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6744 2014-02-19 Tom Tromey <tromey@redhat.com>
6746 * target-delegates.c: Rebuild.
6747 * target.c (update_current_target): Don't inherit or default
6749 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6751 2014-02-19 Tom Tromey <tromey@redhat.com>
6753 * target-delegates.c: Rebuild.
6754 * target.c (update_current_target): Don't inherit or default
6756 * target.h (struct target_ops) <to_trace_stop>: Use
6757 TARGET_DEFAULT_NORETURN.
6759 2014-02-19 Tom Tromey <tromey@redhat.com>
6761 * target-delegates.c: Rebuild.
6762 * target.c (update_current_target): Don't inherit or default
6763 to_get_tracepoint_status.
6764 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6765 TARGET_DEFAULT_NORETURN.
6767 2014-02-19 Tom Tromey <tromey@redhat.com>
6769 * target-delegates.c: Rebuild.
6770 * target.c (update_current_target): Don't inherit or default
6771 to_get_trace_status.
6772 * target.h (struct target_ops) <to_get_trace_status>: Use
6773 TARGET_DEFAULT_RETURN.
6775 2014-02-19 Tom Tromey <tromey@redhat.com>
6777 * target-delegates.c: Rebuild.
6778 * target.c (update_current_target): Don't inherit or default
6780 * target.h (struct target_ops) <to_trace_start>: Use
6781 TARGET_DEFAULT_NORETURN.
6783 2014-02-19 Tom Tromey <tromey@redhat.com>
6785 * target-delegates.c: Rebuild.
6786 * target.c (update_current_target): Don't inherit or default
6787 to_trace_set_readonly_regions.
6788 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6789 Use TARGET_DEFAULT_NORETURN.
6791 2014-02-19 Tom Tromey <tromey@redhat.com>
6793 * target-delegates.c: Rebuild.
6794 * target.c (update_current_target): Don't inherit or default
6795 to_disable_tracepoint.
6796 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6797 TARGET_DEFAULT_NORETURN.
6799 2014-02-19 Tom Tromey <tromey@redhat.com>
6801 * target-delegates.c: Rebuild.
6802 * target.c (update_current_target): Don't inherit or default
6803 to_enable_tracepoint.
6804 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6805 TARGET_DEFAULT_NORETURN.
6807 2014-02-19 Tom Tromey <tromey@redhat.com>
6809 * target-delegates.c: Rebuild.
6810 * target.c (update_current_target): Don't inherit or default
6811 to_download_trace_state_variable.
6812 * target.h (struct target_ops) <to_download_trace_state_variable>:
6813 Use TARGET_DEFAULT_NORETURN.
6815 2014-02-19 Tom Tromey <tromey@redhat.com>
6817 * target-delegates.c: Rebuild.
6818 * target.c (update_current_target): Don't inherit or default
6819 to_can_download_tracepoint.
6820 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6821 TARGET_DEFAULT_RETURN.
6823 2014-02-19 Tom Tromey <tromey@redhat.com>
6825 * target-delegates.c: Rebuild.
6826 * target.c (update_current_target): Don't inherit or default
6827 to_download_tracepoint.
6828 * target.h (struct target_ops) <to_download_tracepoint>: Use
6829 TARGET_DEFAULT_NORETURN.
6831 2014-02-19 Tom Tromey <tromey@redhat.com>
6833 * target-delegates.c: Rebuild.
6834 * target.c (update_current_target): Don't inherit or default
6836 * target.h (struct target_ops) <to_trace_init>: Use
6837 TARGET_DEFAULT_RETURN.
6839 2014-02-19 Tom Tromey <tromey@redhat.com>
6841 * target-delegates.c: Rebuild.
6842 * target.c (update_current_target): Don't inherit or default
6843 to_supports_string_tracing.
6844 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6845 TARGET_DEFAULT_RETURN.
6847 2014-02-19 Tom Tromey <tromey@redhat.com>
6849 * target-delegates.c: Rebuild.
6850 * target.c (update_current_target): Don't inherit or default
6851 to_supports_enable_disable_tracepoint.
6852 * target.h (struct target_ops)
6853 <to_supports_enable_disable_tracepoint>: Use
6854 TARGET_DEFAULT_RETURN.
6856 2014-02-19 Tom Tromey <tromey@redhat.com>
6858 * target-delegates.c: Rebuild.
6859 * target.c (update_current_target): Don't inherit or default
6860 to_supports_multi_process.
6861 * target.h (struct target_ops) <to_supports_multi_process>: Use
6862 TARGET_DEFAULT_RETURN.
6864 2014-02-19 Tom Tromey <tromey@redhat.com>
6866 * target-delegates.c: Rebuild.
6867 * target.c (update_current_target): Don't inherit or default
6868 to_get_ada_task_ptid.
6869 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6870 TARGET_DEFAULT_FUNC.
6872 2014-02-19 Tom Tromey <tromey@redhat.com>
6874 * target-delegates.c: Rebuild.
6875 * target.c (update_current_target): Don't inherit or default
6876 to_thread_architecture.
6877 * target.h (struct target_ops) <to_thread_architecture>: Use
6878 TARGET_DEFAULT_FUNC.
6880 2014-02-19 Tom Tromey <tromey@redhat.com>
6882 * target-delegates.c: Rebuild.
6883 * target.c (update_current_target): Don't inherit or default
6884 to_execution_direction.
6885 * target.h (struct target_ops) <to_execution_direction>: Use
6886 TARGET_DEFAULT_FUNC.
6888 2014-02-19 Tom Tromey <tromey@redhat.com>
6890 * target-delegates.c: Rebuild.
6891 * target.c (update_current_target): Don't inherit or default
6892 to_can_execute_reverse.
6893 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6894 TARGET_DEFAULT_RETURN.
6895 (target_can_execute_reverse): Unconditionally delegate.
6897 2014-02-19 Tom Tromey <tromey@redhat.com>
6899 * target-delegates.c: Rebuild.
6900 * target.c (update_current_target): Don't inherit or default
6902 (dummy_goto_bookmark): Remove.
6903 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6904 * target.h (struct target_ops) <to_goto_bookmark>: Use
6905 TARGET_DEFAULT_NORETURN.
6907 2014-02-19 Tom Tromey <tromey@redhat.com>
6909 * target-delegates.c: Rebuild.
6910 * target.c (update_current_target): Don't inherit or default
6912 (dummy_get_bookmark): Remove.
6913 (init_dummy_target): Don't inherit or default to_get_bookmark.
6914 * target.h (struct target_ops) <to_get_bookmark>: Use
6915 TARGET_DEFAULT_NORETURN
6917 2014-02-19 Tom Tromey <tromey@redhat.com>
6919 * target-delegates.c: Rebuild.
6920 * target.c (update_current_target): Don't inherit or default
6921 to_make_corefile_notes.
6922 (init_dummy_target): Don't initialize to_make_corefile_notes.
6923 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6924 TARGET_DEFAULT_FUNC.
6926 2014-02-19 Tom Tromey <tromey@redhat.com>
6928 * target-delegates.c: Rebuild.
6929 * target.c (update_current_target): Don't inherit or default
6930 to_find_memory_regions.
6931 (init_dummy_target): Don't initialize to_find_memory_regions.
6932 * target.h (struct target_ops) <to_find_memory_regions>: Use
6933 TARGET_DEFAULT_FUNC.
6935 2014-02-19 Tom Tromey <tromey@redhat.com>
6937 * target-delegates.c: Rebuild.
6938 * target.c (update_current_target): Don't inherit or default
6940 * target.h (struct target_ops) <to_log_command>: Use
6941 TARGET_DEFAULT_IGNORE.
6942 (target_log_command): Unconditionally delegate.
6944 2014-02-19 Tom Tromey <tromey@redhat.com>
6946 * target-delegates.c: Rebuild.
6947 * target.c (update_current_target): Don't inherit or default
6948 to_pid_to_exec_file.
6949 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6950 TARGET_DEFAULT_RETURN.
6952 2014-02-19 Tom Tromey <tromey@redhat.com>
6954 * target-delegates.c: Rebuild.
6955 * target.c (update_current_target): Don't inherit or default
6957 (target_thread_name): Unconditionally delegate.
6958 * target.h (struct target_ops) <to_thread_name>: Use
6959 TARGET_DEFAULT_RETURN.
6961 2014-02-19 Tom Tromey <tromey@redhat.com>
6963 * target-delegates.c: Rebuild.
6964 * target.c (update_current_target): Don't inherit or default
6965 to_extra_thread_info.
6966 * target.h (struct target_ops) <to_extra_thread_info>: Use
6967 TARGET_DEFAULT_RETURN.
6969 2014-02-19 Tom Tromey <tromey@redhat.com>
6971 * target-delegates.c: Rebuild.
6972 * target.c (update_current_target): Don't inherit or default
6974 * target.h (struct target_ops) <to_has_exited>: Use
6975 TARGET_DEFAULT_RETURN..
6977 2014-02-19 Tom Tromey <tromey@redhat.com>
6979 * target-delegates.c: Rebuild.
6980 * target.c (update_current_target): Don't inherit or default
6981 to_set_syscall_catchpoint.
6982 (return_one): Remove.
6983 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6984 TARGET_DEFAULT_RETURN.
6986 2014-02-19 Tom Tromey <tromey@redhat.com>
6988 * target-delegates.c: Rebuild.
6989 * target.c (update_current_target): Don't inherit or default
6990 to_insert_exec_catchpoint.
6991 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6992 TARGET_DEFAULT_RETURN.
6994 2014-01-08 Tom Tromey <tromey@redhat.com>
6996 * target-delegates.c: Rebuild.
6997 * target.c (update_current_target): Don't inherit or default
6998 to_insert_exec_catchpoint.
6999 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7000 TARGET_DEFAULT_RETURN.
7002 2014-02-19 Tom Tromey <tromey@redhat.com>
7004 * target-delegates.c: Rebuild.
7005 * target.c (update_current_target): Don't inherit or default
7006 to_remove_vfork_catchpoint.
7007 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7008 TARGET_DEFAULT_RETURN.
7010 2014-02-19 Tom Tromey <tromey@redhat.com>
7012 * target-delegates.c: Rebuild.
7013 * target.c (update_current_target): Don't inherit or default
7014 to_insert_vfork_catchpoint.
7015 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7016 TARGET_DEFAULT_RETURN.
7018 2014-02-19 Tom Tromey <tromey@redhat.com>
7020 * target-delegates.c: Rebuild.
7021 * target.c (update_current_target): Don't inherit or default
7022 to_remove_fork_catchpoint.
7023 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7024 TARGET_DEFAULT_RETURN.
7026 2014-02-19 Tom Tromey <tromey@redhat.com>
7028 * target-delegates.c: Rebuild.
7029 * target.c (update_current_target): Don't inherit or default
7030 to_insert_fork_catchpoint.
7031 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7032 TARGET_DEFAULT_RETURN.
7034 2014-02-19 Tom Tromey <tromey@redhat.com>
7036 * target-delegates.c: Rebuild.
7037 * target.c (update_current_target): Don't inherit or default
7038 to_post_startup_inferior.
7039 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7040 TARGET_DEFAULT_IGNORE.
7042 2014-02-19 Tom Tromey <tromey@redhat.com>
7044 * target-delegates.c: Rebuild.
7045 * target.c (update_current_target): Don't inherit or default
7047 * target.h (struct target_ops) <to_load>: Use
7048 TARGET_DEFAULT_NORETURN.
7050 2014-02-19 Tom Tromey <tromey@redhat.com>
7052 * target-delegates.c: Rebuild.
7053 * target.c (update_current_target): Don't inherit or default
7055 * target.h (struct target_ops) <to_terminal_info>: Use
7056 TARGET_DEFAULT_FUNC.
7058 2014-02-19 Tom Tromey <tromey@redhat.com>
7060 * target-delegates.c: Rebuild.
7061 * target.c (update_current_target): Don't inherit or default
7062 to_terminal_save_ours.
7063 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7064 TARGET_DEFAULT_IGNORE.
7066 2014-02-19 Tom Tromey <tromey@redhat.com>
7068 * target-delegates.c: Rebuild.
7069 * target.c (update_current_target): Don't inherit or default
7071 * target.h (struct target_ops) <to_terminal_ours>: Use
7072 TARGET_DEFAULT_IGNORE.
7074 2014-02-19 Tom Tromey <tromey@redhat.com>
7076 * target-delegates.c: Rebuild.
7077 * target.c (update_current_target): Don't inherit or default
7078 to_terminal_ours_for_output.
7079 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7080 TARGET_DEFAULT_IGNORE.
7082 2014-02-19 Tom Tromey <tromey@redhat.com>
7084 * target-delegates.c: Rebuild.
7085 * target.c (update_current_target): Don't inherit or default
7086 to_terminal_inferior.
7087 * target.h (struct target_ops) <to_terminal_inferior>: Use
7088 TARGET_DEFAULT_IGNORE.
7090 2014-02-19 Tom Tromey <tromey@redhat.com>
7092 * target-delegates.c: Rebuild.
7093 * target.c (update_current_target): Don't inherit or default
7095 * target.h (struct target_ops) <to_terminal_init>: Use
7096 TARGET_DEFAULT_IGNORE.
7098 2014-02-19 Tom Tromey <tromey@redhat.com>
7100 * target-delegates.c: Rebuild.
7101 * target.c (update_current_target): Don't inherit or default
7102 to_can_accel_watchpoint_condition.
7103 * target.h (struct target_ops)
7104 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7106 2014-02-19 Tom Tromey <tromey@redhat.com>
7108 * target-delegates.c: Rebuild.
7109 * target.c (update_current_target): Don't inherit or default
7110 to_region_ok_for_hw_watchpoint.
7111 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7112 Use TARGET_DEFAULT_FUNC.
7114 2014-02-19 Tom Tromey <tromey@redhat.com>
7116 * target-delegates.c: Rebuild.
7117 * target.c (update_current_target): Don't inherit or default
7118 to_watchpoint_addr_within_range.
7119 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7120 Use TARGET_DEFAULT_FUNC.
7122 2014-02-19 Tom Tromey <tromey@redhat.com>
7124 * target-delegates.c: Rebuild.
7125 * target.c (update_current_target): Don't inherit or default
7126 to_remove_watchpoint.
7127 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7128 TARGET_DEFAULT_NORETURN.
7130 2014-02-19 Tom Tromey <tromey@redhat.com>
7132 * target-delegates.c: Rebuild.
7133 * target.c (update_current_target): Don't inherit or default
7134 to_insert_watchpoint.
7135 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7136 TARGET_DEFAULT_RETURN.
7138 2014-02-19 Tom Tromey <tromey@redhat.com>
7140 * target-delegates.c: Rebuild.
7141 * target.c (update_current_target): Don't inherit or default
7142 to_remove_hw_breakpoint.
7143 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7144 TARGET_DEFAULT_RETURN.
7146 2014-02-19 Tom Tromey <tromey@redhat.com>
7148 * target-delegates.c: Rebuild.
7149 * target.c (update_current_target): Don't inherit or default
7150 to_insert_hw_breakpoint.
7151 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7152 TARGET_DEFAULT_RETURN.
7154 2014-02-19 Tom Tromey <tromey@redhat.com>
7156 * target-delegates.c: Rebuild.
7157 * target.c (update_current_target): Don't inherit or default
7158 to_can_use_hw_breakpoint.
7159 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7160 TARGET_DEFAULT_RETURN.
7162 2014-02-19 Tom Tromey <tromey@redhat.com>
7164 * target-delegates.c: Rebuild.
7165 * target.c (update_current_target): Don't inherit or default
7167 * target.h (struct target_ops) <to_files_info>: Use
7168 TARGET_DEFAULT_IGNORE.
7170 2014-02-19 Tom Tromey <tromey@redhat.com>
7172 * target-delegates.c: Rebuild.
7173 * target.c (update_current_target): Don't inherit or default
7175 * target.h (struct target_ops) <to_store>: Use
7176 TARGET_DEFAULT_NORETURN.
7178 2014-02-19 Tom Tromey <tromey@redhat.com>
7180 * target-delegates.c: Rebuild.
7181 * target.c (update_current_target): Don't inherit or default
7183 * target.h (struct target_ops) <to_post_attach>: Use
7184 TARGET_DEFAULT_IGNORE.
7186 2014-02-19 Tom Tromey <tromey@redhat.com>
7188 * target-delegates.c: Rebuild.
7189 * target.c (update_current_target): Don't inherit or default
7191 (default_rcmd): New function.
7192 (do_monitor_command): Unconditionally delegate.
7193 * target.h (struct target_ops) <to_rmcd>: Use
7194 TARGET_DEFAULT_FUNC.
7196 2014-02-19 Tom Tromey <tromey@redhat.com>
7198 * target-delegates.c: Rebuild.
7199 * target.c (init_dummy_target): Don't initialize to_attach.
7200 (target_attach): Unconditionally delegate.
7201 * target.h (struct target_ops) <to_attach>: Use
7202 TARGET_DEFAULT_FUNC.
7204 2014-02-19 Tom Tromey <tromey@redhat.com>
7206 * target-delegates.c: Rebuild.
7207 * target.c (target_detach): Unconditionally delegate.
7208 (init_dummy_target): Don't initialize to_detach.
7209 * target.h (struct target_ops) <to_detach>: Use
7210 TARGET_DEFAULT_IGNORE.
7212 2014-02-19 Tom Tromey <tromey@redhat.com>
7214 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7216 (target_augmented_libraries_svr4_read): Add argument.
7217 * target.c (update_current_target): Update.
7218 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7221 2014-02-19 Tom Tromey <tromey@redhat.com>
7223 * target.h (struct target_ops) <to_call_history_range>: Add
7225 * target.c (target_call_history_range): Add argument.
7226 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7228 (record_btrace_call_history_from): Update.
7230 2014-02-19 Tom Tromey <tromey@redhat.com>
7232 * target.h (struct target_ops) <to_call_history_from>: Add
7234 * target.c (target_call_history_from): Add argument.
7235 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7238 2014-02-19 Tom Tromey <tromey@redhat.com>
7240 * target.h (struct target_ops) <to_call_history>: Add argument.
7241 * target.c (target_call_history): Add argument.
7242 * record-btrace.c (record_btrace_call_history): Add 'self'
7245 2014-02-19 Tom Tromey <tromey@redhat.com>
7247 * target.h (struct target_ops) <to_insn_history_range>: Add
7249 * target.c (target_insn_history_range): Add argument.
7250 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7252 (record_btrace_insn_history_from): Update.
7254 2014-02-19 Tom Tromey <tromey@redhat.com>
7256 * target.h (struct target_ops) <to_insn_history_from>: Add
7258 * target.c (target_insn_history_from): Add argument.
7259 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7262 2014-02-19 Tom Tromey <tromey@redhat.com>
7264 * target.h (struct target_ops) <to_insn_history>: Add argument.
7265 * target.c (target_insn_history): Add argument.
7266 * record-btrace.c (record_btrace_insn_history): Add 'self'
7269 2014-02-19 Tom Tromey <tromey@redhat.com>
7271 * target.h (struct target_ops) <to_goto_record>: Add argument.
7272 * target.c (target_goto_record): Add argument.
7273 * record-full.c (record_full_goto): Add 'self' argument.
7274 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7276 2014-02-19 Tom Tromey <tromey@redhat.com>
7278 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7279 * target.c (target_goto_record_end): Add argument.
7280 * record-full.c (record_full_goto_end): Add 'self' argument.
7281 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7283 2014-02-19 Tom Tromey <tromey@redhat.com>
7285 * target.h (struct target_ops) <to_goto_record_begin>: Add
7287 * target.c (target_goto_record_begin): Add argument.
7288 * record-full.c (record_full_goto_begin): Add 'self' argument.
7289 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7292 2014-02-19 Tom Tromey <tromey@redhat.com>
7294 * target.h (struct target_ops) <to_record_is_replaying>: Add
7296 * target.c (target_record_is_replaying): Add argument.
7297 * record-full.c (record_full_is_replaying): Add 'self' argument.
7298 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7300 (record_btrace_xfer_partial, record_btrace_store_registers)
7301 (record_btrace_prepare_to_store, record_btrace_resume)
7302 (record_btrace_wait, record_btrace_decr_pc_after_break)
7303 (record_btrace_find_new_threads, record_btrace_thread_alive):
7306 2014-02-19 Tom Tromey <tromey@redhat.com>
7308 * target.h (struct target_ops) <to_delete_record>: Add argument.
7309 * target.c (target_delete_record): Add argument.
7310 * record-full.c (record_full_delete): Add 'self' argument.
7312 2014-02-19 Tom Tromey <tromey@redhat.com>
7314 * target.h (struct target_ops) <to_save_record>: Add argument.
7315 * target.c (target_save_record): Add argument.
7316 * record-full.c (record_full_save): Add 'self' argument.
7317 (record_full_save): Add 'self' argument.
7319 2014-02-19 Tom Tromey <tromey@redhat.com>
7321 * target.h (struct target_ops) <to_info_record>: Add argument.
7322 * target.c (target_info_record): Add argument.
7323 * record.c (info_record_command): Add argument.
7324 * record-full.c (record_full_info): Add 'self' argument.
7325 * record-btrace.c (record_btrace_info): Add 'self' argument.
7327 2014-02-19 Tom Tromey <tromey@redhat.com>
7329 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7330 * target.c (target_stop_recording): Add argument.
7331 * record.c (record_stop): Add argument.
7332 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7335 2014-02-19 Tom Tromey <tromey@redhat.com>
7337 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7338 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7339 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7341 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7342 (_initialize_amd64_linux_nat): Use it.
7343 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7344 (_initialize_i386_linux_nat): Use it.
7346 2014-02-19 Tom Tromey <tromey@redhat.com>
7348 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7349 * target.c (target_teardown_btrace): Add argument.
7350 * remote.c (remote_teardown_btrace): Add 'self' argument.
7351 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7353 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7356 2014-02-19 Tom Tromey <tromey@redhat.com>
7358 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7359 * target.c (target_disable_btrace): Add argument.
7360 * remote.c (remote_disable_btrace): Add 'self' argument.
7361 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7363 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7366 2014-02-19 Tom Tromey <tromey@redhat.com>
7368 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7369 * target.c (target_enable_btrace): Add argument.
7370 * remote.c (remote_enable_btrace): Add 'self' argument.
7371 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7373 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7376 2014-02-19 Tom Tromey <tromey@redhat.com>
7378 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7379 (target_can_use_agent): Add argument.
7380 * target.c (update_current_target): Update.
7381 * remote.c (remote_can_use_agent): Add 'self' argument.
7382 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7384 2014-02-19 Tom Tromey <tromey@redhat.com>
7386 * target.h (struct target_ops) <to_use_agent>: Add argument.
7387 (target_use_agent): Add argument.
7388 * target.c (update_current_target): Update.
7389 * remote.c (remote_use_agent): Add 'self' argument.
7390 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7392 2014-02-19 Tom Tromey <tromey@redhat.com>
7394 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7395 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7396 (target_traceframe_info): Add argument.
7397 * target.c (update_current_target): Update.
7398 * remote.c (remote_traceframe_info): Add 'self' argument.
7399 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7401 2014-02-19 Tom Tromey <tromey@redhat.com>
7403 * target.h (target_static_tracepoint_markers_by_strid): Add
7405 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7407 * target.c (update_current_target): Update.
7408 * remote.c (struct target_ops)
7409 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7410 * linux-nat.c (struct target_ops)
7411 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7413 2014-02-19 Tom Tromey <tromey@redhat.com>
7415 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7417 (target_static_tracepoint_marker_at): Add argument.
7418 * target.c (update_current_target): Update.
7419 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7422 2014-02-19 Tom Tromey <tromey@redhat.com>
7424 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7425 (target_set_permissions): Add argument.
7426 * target.c (update_current_target): Update.
7427 * remote.c (remote_set_permissions): Add 'self' argument.
7428 (remote_start_remote): Update.
7430 2014-02-19 Tom Tromey <tromey@redhat.com>
7432 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7433 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7434 (target_get_tib_address): Add argument.
7435 * target.c (update_current_target): Update.
7436 * remote.c (remote_get_tib_address): Add 'self' argument.
7438 2014-02-19 Tom Tromey <tromey@redhat.com>
7440 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7441 (target_set_trace_notes): Add argument.
7442 * target.c (update_current_target): Update.
7443 * remote.c (remote_set_trace_notes): Add 'self' argument.
7445 2014-02-19 Tom Tromey <tromey@redhat.com>
7447 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7449 (target_set_trace_buffer_size): Add argument.
7450 * target.c (update_current_target): Update.
7451 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7453 2014-02-19 Tom Tromey <tromey@redhat.com>
7455 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7457 (target_set_circular_trace_buffer): Add argument.
7458 * target.c (update_current_target): Update.
7459 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7462 2014-02-19 Tom Tromey <tromey@redhat.com>
7464 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7466 (target_set_disconnected_tracing): Add argument.
7467 * target.c (update_current_target): Update.
7468 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7470 2014-02-19 Tom Tromey <tromey@redhat.com>
7472 * target.h (struct target_ops)
7473 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7474 (target_get_min_fast_tracepoint_insn_len): Add argument.
7475 * target.c (update_current_target): Update.
7476 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7479 2014-02-19 Tom Tromey <tromey@redhat.com>
7481 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7483 (target_get_raw_trace_data): Add argument.
7484 * target.c (update_current_target): Update.
7485 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7487 2014-02-19 Tom Tromey <tromey@redhat.com>
7489 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7491 (target_upload_trace_state_variables): Add argument.
7492 * target.c (update_current_target): Update.
7493 * remote.c (remote_upload_trace_state_variables): Add 'self'
7495 (remote_start_remote): Update.
7497 2014-02-19 Tom Tromey <tromey@redhat.com>
7499 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7501 (target_upload_tracepoints): Add argument.
7502 * target.c (update_current_target): Update.
7503 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7504 (remote_start_remote): Update.
7506 2014-02-19 Tom Tromey <tromey@redhat.com>
7508 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7509 (target_save_trace_data): Add argument.
7510 * target.c (update_current_target): Update.
7511 * remote.c (remote_save_trace_data): Add 'self' argument.
7513 2014-02-19 Tom Tromey <tromey@redhat.com>
7515 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7517 * target.h (struct target_ops)
7518 <to_get_trace_state_variable_value>: Add argument.
7519 (target_get_trace_state_variable_value): Add argument.
7520 * target.c (update_current_target): Update.
7521 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7523 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7525 2014-02-19 Tom Tromey <tromey@redhat.com>
7527 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7528 * target.h (struct target_ops) <to_trace_find>: Add argument.
7529 (target_trace_find): Add argument.
7530 * target.c (update_current_target): Update.
7531 * remote.c (remote_trace_find): Add 'self' argument.
7532 * ctf.c (ctf_trace_find): Add 'self' argument.
7534 2014-02-19 Tom Tromey <tromey@redhat.com>
7536 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7537 (target_trace_stop): Add argument.
7538 * target.c (update_current_target): Update.
7539 * remote.c (remote_trace_stop): Add 'self' argument.
7541 2014-02-19 Tom Tromey <tromey@redhat.com>
7543 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7544 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7546 (target_get_tracepoint_status): Add argument.
7547 * target.c (update_current_target): Update.
7548 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7550 2014-02-19 Tom Tromey <tromey@redhat.com>
7552 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7553 * target.h (struct target_ops) <to_get_trace_status>: Add
7555 (target_get_trace_status): Add argument.
7556 * target.c (update_current_target): Update.
7557 * remote.c (remote_get_trace_status): Add 'self' argument.
7558 (remote_start_remote, remote_can_download_tracepoint): Update.
7559 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7561 2014-02-19 Tom Tromey <tromey@redhat.com>
7563 * target.h (struct target_ops) <to_trace_start>: Add argument.
7564 (target_trace_start): Add argument.
7565 * target.c (update_current_target): Update.
7566 * remote.c (remote_trace_start): Add 'self' argument.
7568 2014-02-19 Tom Tromey <tromey@redhat.com>
7570 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7572 (target_trace_set_readonly_regions): Add argument.
7573 * target.c (update_current_target): Update.
7574 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7577 2014-02-19 Tom Tromey <tromey@redhat.com>
7579 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7581 (target_disable_tracepoint): Add argument.
7582 * target.c (update_current_target): Update.
7583 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7585 2014-02-19 Tom Tromey <tromey@redhat.com>
7587 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7589 (target_enable_tracepoint): Add argument.
7590 * target.c (update_current_target): Update.
7591 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7593 2014-02-19 Tom Tromey <tromey@redhat.com>
7595 * target.h (struct target_ops) <to_download_trace_state_variable>:
7597 (target_download_trace_state_variable): Add argument.
7598 * target.c (update_current_target): Update.
7599 * remote.c (remote_download_trace_state_variable): Add 'self'
7602 2014-02-19 Tom Tromey <tromey@redhat.com>
7604 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7606 (target_can_download_tracepoint): Add argument.
7607 * target.c (update_current_target): Update.
7608 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7610 2014-02-19 Tom Tromey <tromey@redhat.com>
7612 * target.h (struct target_ops) <to_download_tracepoint>: Add
7614 (target_download_tracepoint): Add argument.
7615 * target.c (update_current_target): Update.
7616 * remote.c (remote_download_tracepoint): Add 'self' argument.
7618 2014-02-19 Tom Tromey <tromey@redhat.com>
7620 * target.h (struct target_ops) <to_trace_init>: Add argument.
7621 (target_trace_init): Add argument.
7622 * target.c (update_current_target): Update.
7623 * remote.c (remote_trace_init): Add 'self' argument.
7625 2014-02-19 Tom Tromey <tromey@redhat.com>
7627 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7628 * target.c (target_fileio_readlink): Add argument.
7629 * remote.c (remote_hostio_readlink): Add 'self' argument.
7630 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7632 2014-02-19 Tom Tromey <tromey@redhat.com>
7634 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7635 * target.c (target_fileio_unlink): Add argument.
7636 * remote.c (remote_hostio_unlink): Add 'self' argument.
7637 (remote_file_delete): Update.
7638 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7640 2014-02-19 Tom Tromey <tromey@redhat.com>
7642 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7643 * target.c (target_fileio_close): Add argument.
7644 * remote.c (remote_hostio_close): Add 'self' argument.
7645 (remote_hostio_close_cleanup): Update.
7646 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7648 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7650 2014-02-19 Tom Tromey <tromey@redhat.com>
7652 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7653 * target.c (target_fileio_pread): Add argument.
7654 * remote.c (remote_hostio_pread): Add 'self' argument.
7655 (remote_bfd_iovec_pread, remote_file_get): Update.
7656 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7658 2014-02-19 Tom Tromey <tromey@redhat.com>
7660 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7661 * target.c (target_fileio_pwrite): Add argument.
7662 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7663 (remote_file_put): Update.
7664 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7666 2014-02-19 Tom Tromey <tromey@redhat.com>
7668 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7669 * target.c (target_fileio_open): Add argument.
7670 * remote.c (remote_hostio_open): Add 'self' argument.
7671 (remote_bfd_iovec_open): Add 'self' argument.
7672 (remote_file_put): Add 'self' argument.
7673 (remote_file_get): Add 'self' argument.
7674 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7676 2014-02-19 Tom Tromey <tromey@redhat.com>
7678 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7680 (target_can_run_breakpoint_commands): Add argument.
7681 * target.c (update_current_target): Update.
7682 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7684 (remote_insert_breakpoint): Add 'self' argument.
7685 (remote_insert_hw_breakpoint): Add 'self' argument.
7686 (remote_can_run_breakpoint_commands): Add 'self' argument.
7688 2014-02-19 Tom Tromey <tromey@redhat.com>
7690 * target.h (struct target_ops)
7691 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7692 (target_supports_evaluation_of_breakpoint_conditions): Add
7694 * target.c (update_current_target): Update.
7695 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7697 (remote_insert_breakpoint): Add 'self' argument.
7698 (remote_insert_hw_breakpoint): Add 'self' argument.
7699 (remote_supports_cond_breakpoints): Add 'self' argument.
7701 2014-02-19 Tom Tromey <tromey@redhat.com>
7703 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7705 (target_supports_string_tracing): Add argument.
7706 * target.c (update_current_target): Update.
7707 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7709 2014-02-19 Tom Tromey <tromey@redhat.com>
7711 * target.h (struct target_ops)
7712 <to_supports_disable_randomization>: Add argument.
7713 * target.c (find_default_supports_disable_randomization): Add
7715 (target_supports_disable_randomization): Add argument.
7716 (find_default_supports_disable_randomization): Add 'self'
7718 * remote.c (extended_remote_supports_disable_randomization): Add
7720 (remote_supports_disable_randomization): Add 'self' argument.
7721 (extended_remote_create_inferior): Update.
7722 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7725 2014-02-19 Tom Tromey <tromey@redhat.com>
7727 * target.h (struct target_ops)
7728 <to_supports_enable_disable_tracepoint>: Add argument.
7729 (target_supports_enable_disable_tracepoint): Add argument.
7730 * target.c (update_current_target): Update.
7731 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7734 2014-02-19 Tom Tromey <tromey@redhat.com>
7736 * target.h (struct target_ops) <to_supports_multi_process>: Add
7738 (target_supports_multi_process): Add argument.
7739 * target.c (update_current_target): Update.
7740 * remote.c (remote_supports_multi_process): Add 'self' argument.
7741 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7743 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7746 2014-02-19 Tom Tromey <tromey@redhat.com>
7748 * target.h (struct target_ops) <to_execution_direction>: Add
7750 (target_execution_direction): Add argument.
7751 * target.c (default_execution_direction): Add 'self' argument.
7752 * record-full.c (record_full_execution_direction): Add 'self'
7755 2014-02-19 Tom Tromey <tromey@redhat.com>
7757 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7759 (target_can_execute_reverse): Add argument.
7760 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7761 * record-full.c (record_full_can_execute_reverse): Add 'self'
7763 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7766 2014-02-19 Tom Tromey <tromey@redhat.com>
7768 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7769 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7771 (target_get_ada_task_ptid): Add argument.
7772 * target.c (update_current_target): Update.
7773 (default_get_ada_task_ptid): Add 'self' argument.
7774 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7775 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7776 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7778 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7780 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7782 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7784 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7785 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7788 2014-02-19 Tom Tromey <tromey@redhat.com>
7790 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7791 (target_goto_bookmark): Add argument.
7792 * target.c (dummy_goto_bookmark): Add 'self' argument.
7793 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7795 2014-02-19 Tom Tromey <tromey@redhat.com>
7797 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7798 (target_get_bookmark): Add argument.
7799 * target.c (dummy_get_bookmark): Add 'self' argument.
7800 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7802 2014-02-19 Tom Tromey <tromey@redhat.com>
7804 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7806 (target_make_corefile_notes): Add argument.
7807 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7808 * procfs.c (procfs_make_note_section): Add 'self' argument.
7809 (procfs_make_note_section): Add 'self' argument.
7810 (procfs_make_note_section): Add 'self' argument.
7811 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7813 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7814 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7815 * exec.c (exec_make_note_section): Add 'self' argument.
7816 (exec_make_note_section): Add 'self' argument.
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7820 * target.h (struct target_ops) <to_find_memory_regions>: Add
7822 (target_find_memory_regions): Add argument.
7823 * target.c (dummy_find_memory_regions): Add 'self' argument.
7824 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7825 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7826 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7827 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7828 * exec. (exec_do_find_memory_regions): New global.
7829 (exec_set_find_memory_regions): Rewrite.
7830 (exec_find_memory_regions): New function.
7831 (init_exec_ops): Use exec_find_memory_regions.
7833 2014-02-19 Tom Tromey <tromey@redhat.com>
7835 * target.h (struct target_ops) <to_supports_non_stop>: Add
7837 * target.c (find_default_supports_non_stop): Add argument.
7838 (target_supports_non_stop): Add argument.
7839 (find_default_supports_non_stop): Add 'self' argument.
7840 * remote.c (remote_supports_non_stop): Add 'self' argument.
7841 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7843 2014-02-19 Tom Tromey <tromey@redhat.com>
7845 * target.h (struct target_ops) <to_log_command>: Add argument.
7846 (target_log_command): Add argument.
7847 * serial.h (serial_log_command): Add 'self' argument.
7848 * serial.c (serial_log_command): Add 'self' argument.
7850 2014-02-19 Tom Tromey <tromey@redhat.com>
7852 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7853 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7855 (target_pid_to_exec_file): Add argument.
7856 * target.c (debug_to_pid_to_exec_file): Add argument.
7857 (update_current_target): Update.
7858 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7859 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7860 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7861 (linux_handle_extended_wait): Update.
7862 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7863 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7864 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7865 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7867 2014-02-19 Tom Tromey <tromey@redhat.com>
7869 * target.h (struct target_ops) <to_rcmd>: Add argument.
7870 (target_rcmd): Add argument.
7871 * target.c (debug_to_rcmd): Add argument.
7872 (update_current_target, do_monitor_command): Update.
7873 * remote.c (remote_rcmd): Add 'self' argument.
7874 * monitor.c (monitor_rcmd): Add 'self' argument.
7876 2014-02-19 Tom Tromey <tromey@redhat.com>
7878 * windows-nat.c (windows_stop): Add 'self' argument.
7879 * target.h (struct target_ops) <to_stop>: Add argument.
7880 * target.c (target_stop): Add argument.
7881 (debug_to_stop): Add argument.
7882 (update_current_target): Update.
7883 * remote.c (remote_stop): Add 'self' argument.
7884 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7885 (gdbsim_cntrl_c): Update.
7886 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7887 * procfs.c (procfs_stop): Add 'self' argument.
7888 * nto-procfs.c (procfs_stop): Add 'self' argument.
7889 * monitor.c (monitor_stop): Add 'self' argument.
7890 (monitor_open): Update.
7891 * linux-nat.c (linux_nat_stop): Add argument.
7892 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7893 * gnu-nat.c (gnu_stop): Add 'self' argument.
7894 * darwin-nat.c (darwin_stop): Add 'self' argument.
7896 2014-02-19 Tom Tromey <tromey@redhat.com>
7898 * target.h (struct target_ops) <to_thread_name>: Add argument.
7899 * target.c (target_thread_name): Add argument.
7900 (update_current_target): Update.
7901 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7903 2014-02-19 Tom Tromey <tromey@redhat.com>
7905 * target.h (struct target_ops) <to_extra_thread_info>: Add
7907 (target_extra_thread_info): Add argument.
7908 * target.c (update_current_target): Update.
7909 * remote.c (remote_threads_extra_info): Add 'self' argument.
7910 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7912 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7913 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7914 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7916 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7918 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7920 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7923 2014-02-19 Tom Tromey <tromey@redhat.com>
7925 * target.h (struct target_ops) <to_program_signals>: Add argument.
7926 * target.c (target_program_signals): Add argument.
7927 * remote.c (remote_program_signals): Add 'self' argument.
7929 2014-02-19 Tom Tromey <tromey@redhat.com>
7931 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7932 * target.c (target_pass_signals): Add argument.
7933 * remote.c (remote_pass_signals): Add 'self' argument.
7934 (remote_start_remote): Update.
7935 * procfs.c (procfs_pass_signals): Add 'self' argument.
7936 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7937 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7938 (linux_nat_create_inferior, linux_nat_attach): Update.
7940 2014-02-19 Tom Tromey <tromey@redhat.com>
7942 * windows-nat.c (windows_can_run): Add 'self' argument.
7943 * target.h (struct target_ops) <to_can_run>: Add argument.
7944 (target_can_run): Add argument.
7945 * target.c (debug_to_can_run): Add argument.
7946 (update_current_target): Update.
7947 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7948 * inf-child.c (inf_child_can_run): Add 'self' argument.
7949 * go32-nat.c (go32_can_run): Add 'self' argument.
7951 2014-02-19 Tom Tromey <tromey@redhat.com>
7953 * target.h (struct target_ops) <to_has_exited>: Add argument.
7954 (target_has_exited): Add argument.
7955 * target.c (debug_to_has_exited): Add argument.
7956 (update_current_target): Update.
7958 2014-02-19 Tom Tromey <tromey@redhat.com>
7960 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7962 (target_set_syscall_catchpoint): Add argument.
7963 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7965 * target.c (update_current_target): Update.
7967 2014-02-19 Tom Tromey <tromey@redhat.com>
7969 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7971 (target_remove_exec_catchpoint): Add argument.
7972 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7973 (update_current_target): Update.
7974 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7977 2014-02-19 Tom Tromey <tromey@redhat.com>
7979 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7981 (target_insert_exec_catchpoint): Add argument.
7982 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7983 (update_current_target): Update.
7984 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7987 2014-02-19 Tom Tromey <tromey@redhat.com>
7989 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7991 (target_remove_vfork_catchpoint): Add argument.
7992 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7993 (update_current_target): Update.
7994 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7997 2014-02-19 Tom Tromey <tromey@redhat.com>
7999 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8001 (target_insert_vfork_catchpoint): Add argument.
8002 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8003 (update_current_target): Update.
8004 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8007 2014-02-19 Tom Tromey <tromey@redhat.com>
8009 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8011 (target_remove_fork_catchpoint): Add argument.
8012 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8013 (update_current_target): Update.
8014 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8017 2014-02-19 Tom Tromey <tromey@redhat.com>
8019 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8021 (target_insert_fork_catchpoint): Add argument.
8022 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8023 (update_current_target): Update.
8024 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8027 2014-02-19 Tom Tromey <tromey@redhat.com>
8029 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8031 (target_post_startup_inferior): Add argument.
8032 * target.c (debug_to_post_startup_inferior): Add argument.
8033 (update_current_target): Update.
8034 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8036 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8038 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8040 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8042 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8044 (super_post_startup_inferior): Likewise.
8045 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8047 (super_post_startup_inferior): Likewise.
8048 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8049 Add 'self' argument.
8050 (super_post_startup_inferior): Likewise.
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8054 * target.h (struct target_ops) <to_load>: Add argument.
8055 * target.c (target_load): Add argument.
8056 (debug_to_load): Add argument.
8057 (update_current_target): Update.
8058 * remote.c (remote_load): Add 'self' argument.
8059 * remote-sim.c (gdbsim_load): Add 'self' argument.
8060 * remote-mips.c (mips_load): Add 'self' argument.
8061 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8062 * monitor.c (monitor_load): Add 'self' argument.
8063 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8065 2014-02-19 Tom Tromey <tromey@redhat.com>
8067 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8068 (target_terminal_info): Add argument.
8069 * target.c (debug_to_terminal_info): Add argument.
8070 (default_terminal_info): Likewise.
8071 * inflow.c (child_terminal_info): Add 'self' argument.
8072 * inferior.h (child_terminal_info): Add 'self' argument.
8073 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8075 2014-02-19 Tom Tromey <tromey@redhat.com>
8077 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8079 (target_terminal_save_ours): Add argument.
8080 * target.c (debug_to_terminal_save_ours): Add argument.
8081 (update_current_target): Update.
8082 * inflow.c (terminal_save_ours): Add 'self' argument.
8083 * inferior.h (terminal_save_ours): Add 'self' argument.
8085 2014-02-19 Tom Tromey <tromey@redhat.com>
8087 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8088 (target_terminal_ours): Add argument.
8089 * target.c (debug_to_terminal_ours): Add argument.
8090 (update_current_target): Update.
8091 * remote.c (remote_terminal_ours): Add 'self' argument.
8092 (remote_close): Update.
8093 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8094 * inflow.c (terminal_ours): Add 'self' argument.
8095 * inferior.h (terminal_ours): Add 'self' argument.
8096 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8098 2014-02-19 Pedro Alves <palves@redhat.com>
8099 Tom Tromey <tromey@redhat.com>
8101 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8103 (target_terminal_ours_for_output): Add argument.
8104 * target.c (debug_to_terminal_ours_for_output): Add argument.
8105 (update_current_target): Update.
8106 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8107 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8108 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8110 2014-02-19 Tom Tromey <tromey@redhat.com>
8112 * target.h (struct target_ops) <to_terminal_inferior>: Add
8114 * target.c (target_terminal_inferior): Add argument.
8115 (update_current_target): Update.
8116 * remote.c (remote_terminal_inferior): Add 'self' argument.
8117 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8118 * inflow.c (terminal_inferior): Add 'self' argument.
8119 * inferior.h (terminal_inferior): Add 'self' argument.
8120 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8121 (go32_terminal_inferior): Add 'self' argument.
8123 2014-02-19 Tom Tromey <tromey@redhat.com>
8125 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8126 (target_terminal_init): Add argument.
8127 * target.c (debug_to_terminal_init): Add argument.
8128 (update_current_target): Update.
8129 * inflow.c (terminal_init_inferior): Add 'self' argument.
8130 * inferior.h (terminal_init_inferior): Add 'self' argument.
8131 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8132 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8134 2014-02-19 Tom Tromey <tromey@redhat.com>
8136 * target.h (struct target_ops)
8137 <to_can_accel_watchpoint_condition>: Add argument.
8138 (target_can_accel_watchpoint_condition): Add argument.
8139 * target.c (debug_to_can_accel_watchpoint_condition): Add
8141 (update_current_target): Update.
8142 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8145 2014-02-19 Tom Tromey <tromey@redhat.com>
8147 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8149 (target_region_ok_for_hw_watchpoint): Add argument.
8150 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8151 (default_region_ok_for_hw_watchpoint): Add argument.
8152 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8153 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8155 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8157 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8159 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8161 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8163 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8165 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8166 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8168 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8169 Add 'self' argument.
8171 2014-02-19 Tom Tromey <tromey@redhat.com>
8173 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8175 (target_insert_watchpoint): Add argument.
8176 * target.c (debug_to_insert_watchpoint): Add argument.
8177 (update_current_target): Update.
8178 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8179 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8180 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8181 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8182 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8183 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8185 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8186 (procfs_insert_hw_watchpoint): Add 'self' argument.
8187 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8189 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8191 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8193 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8194 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8196 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8199 2014-02-19 Tom Tromey <tromey@redhat.com>
8201 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8203 (target_remove_watchpoint): Add argument.
8204 * target.c (debug_to_remove_watchpoint): Add argument.
8205 (update_current_target): Update.
8206 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8207 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8208 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8209 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8210 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8211 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8213 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8214 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8216 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8218 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8220 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8221 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8223 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8226 2014-02-19 Tom Tromey <tromey@redhat.com>
8228 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8230 (target_remove_hw_breakpoint): Add argument.
8231 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8232 (update_current_target): Update.
8233 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8234 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8236 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8237 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8239 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8242 2014-02-19 Tom Tromey <tromey@redhat.com>
8244 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8246 (target_insert_hw_breakpoint): Add argument.
8247 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8248 (update_current_target): Update.
8249 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8250 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8252 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8253 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8254 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8256 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8259 2014-02-19 Tom Tromey <tromey@redhat.com>
8261 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8263 (target_can_use_hardware_watchpoint): Add argument.
8264 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8265 (update_current_target): Update.
8266 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8268 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8270 * remote.c (remote_check_watch_resources): Add 'self' argument.
8271 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8272 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8274 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8275 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8277 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8279 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8281 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8283 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8285 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8287 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8288 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8290 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8293 2014-02-19 Tom Tromey <tromey@redhat.com>
8295 * target.h (struct target_ops) <to_post_attach>: Add argument.
8296 (target_post_attach): Add argument.
8297 * target.c (debug_to_post_attach): Add argument.
8298 (update_current_target): Update.
8299 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8300 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8301 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8302 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8303 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8305 2014-02-19 Tom Tromey <tromey@redhat.com>
8307 * windows-nat.c (windows_close): Add 'self' argument.
8308 * tracepoint.c (tfile_close): Add 'self' argument.
8309 * target.h (struct target_ops) <to_close>: Add argument.
8310 * target.c (target_close): Add argument.
8311 (update_current_target): Update.
8312 * remote.c (remote_close): Add 'self' argument.
8313 * remote-sim.c (gdbsim_close): Add 'self' argument.
8314 * remote-mips.c (mips_close): Add 'self' argument.
8315 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8316 * record-full.c (record_full_close): Add 'self' argument.
8317 * record-btrace.c (record_btrace_close): Add 'self' argument.
8318 * monitor.h (monitor_close): Add 'self' argument.
8319 * monitor.c (monitor_close): Add 'self' argument.
8320 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8321 * linux-nat.c (linux_nat_close): Add argument.
8322 * go32-nat.c (go32_close): Add 'self' argument.
8323 * exec.c (exec_close_1): Add 'self' argument.
8324 * ctf.c (ctf_close): Add 'self' argument.
8325 * corelow.c (core_close): Add 'self' argument.
8326 (core_close_cleanup): Update.
8327 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8328 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8332 * remote.c (remote_load): New function.
8333 (init_remote_ops): Use it.
8335 2014-02-19 Tom Tromey <tromey@redhat.com>
8337 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8339 * common/linux-btrace.h (linux_supports_btrace): Update.
8340 * remote.c (remote_supports_btrace): Add "self" argument.
8341 * target-delegates.c: Rebuild.
8342 * target.c (target_supports_btrace): Remove.
8343 * target.h (struct target_ops) <to_supports_btrace>: Add
8344 target_ops argument.
8345 (target_supports_btrace): New define.
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * record-full.c (record_full_beneath_to_resume_ops)
8350 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8351 (record_full_beneath_to_wait)
8352 (record_full_beneath_to_store_registers_ops)
8353 (record_full_beneath_to_store_registers)
8354 (record_full_beneath_to_xfer_partial_ops)
8355 (record_full_beneath_to_xfer_partial)
8356 (record_full_beneath_to_insert_breakpoint_ops)
8357 (record_full_beneath_to_insert_breakpoint)
8358 (record_full_beneath_to_remove_breakpoint_ops)
8359 (record_full_beneath_to_remove_breakpoint)
8360 (record_full_beneath_to_stopped_by_watchpoint)
8361 (record_full_beneath_to_stopped_data_address)
8362 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8363 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8364 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8365 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8366 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8367 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8368 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8369 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8370 (record_full_resume, record_full_wait_1)
8371 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8372 (record_full_store_registers, record_full_xfer_partial)
8373 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8374 (record_full_async, record_full_core_xfer_partial): Use target
8376 * target-delegates.c: Rebuild.
8377 * target.c (current_xfer_partial): Remove.
8378 (update_current_target): Do not INHERIT or de_fault
8379 to_insert_breakpoint, to_remove_breakpoint,
8380 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8381 to_is_async_p, to_async. Do not set to_xfer_partial field.
8382 (default_xfer_partial): Simplify.
8383 (current_xfer_partial): Remove.
8384 (target_wait, target_resume): Simplify.
8385 (find_default_can_async_p, find_default_is_async_p): Update.
8386 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8387 to_xfer_partial, to_stopped_by_watchpoint,
8388 to_stopped_data_address.
8389 (target_store_registers): Simplify.
8390 (forward_target_remove_breakpoint)
8391 (forward_target_insert_breakpoint): Remove.
8392 (target_remove_breakpoint, target_insert_breakpoint)
8393 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8394 * target.h (struct target_ops) <to_resume, to_wait,
8395 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8396 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8397 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8399 (forward_target_remove_breakpoint)
8400 (forward_target_insert_breakpoint): Remove.
8401 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8403 (record_btrace_insert_breakpoint): Delegate directly.
8405 2014-02-19 Tom Tromey <tromey@redhat.com>
8408 * target-delegates.c: New file.
8409 * target.c: Include target-delegates.c.
8410 (init_dummy_target): Call install_dummy_methods.
8411 (complete_target_initialization): Call install_delegators.
8412 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8413 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8414 * make-target-delegates: New file.
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8418 * record.c (find_record_target): Use find_target_at.
8419 * target.c (find_target_at): New function.
8420 * target.h (find_target_at): Declare.
8422 2014-02-19 Tom Tromey <tromey@redhat.com>
8424 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8426 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8428 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8429 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8431 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8433 * linux-nat.c (save_sigtrap): Update.
8434 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8435 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8436 (linux_nat_close): Update.
8437 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8439 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8441 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8442 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8443 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8444 (tmp_to_async): Add 'ops' argument.
8445 (record_full_stopped_by_watchpoint, record_full_async)
8446 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8448 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8449 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8450 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8451 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8452 (remote_is_async_p, remote_async): Add 'ops' argument.
8453 (remote_stopped_data_address): Update.
8454 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8455 * target.c (update_current_target)
8456 (find_default_can_async_p, find_default_is_async_p): Update.
8457 (init_dummy_target): Update.
8458 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8459 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8460 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8461 (target_can_async_p, target_is_async_p, target_async)
8462 (target_stopped_by_watchpoint): Update.
8464 2014-02-19 Yao Qi <yao@codesourcery.com>
8467 * gdbarch.sh: Remove startup_gdbarch.
8468 * gdbarch.c: Regenerated.
8469 * gdbarch.h: Likewise.
8471 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8473 * rl78-tdep.c (rl78_g10_register_name): New function.
8474 (rl78_return_value): Add g10 support.
8475 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8478 2014-02-17 Doug Evans <xdje42@gmail.com>
8480 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8481 (SUBDIR_GUILE_SRCS): Ditto.
8482 (scm-gsmob.o): Ditto.
8484 2014-02-17 Yao Qi <yao@codesourcery.com>
8486 * gnu-nat.c (ILL_RPC): Declare defined function.
8488 2014-02-17 Yao Qi <yao@codesourcery.com>
8490 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8491 mach_msg_type_number_t.
8492 (gnu_write_inferior): Likewise.
8494 2014-02-17 Yao Qi <yao@codesourcery.com>
8496 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8498 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8499 (inf_validate_procs, inf_signal): Likewise.
8500 (S_exception_raise_request): Likewise.
8501 (do_mach_notify_dead_name): Likewise.
8502 (steal_exc_port): Likewise.
8503 (gnu_read_inferior): Change 'copy_count''s type to
8504 mach_msg_type_number_t.
8505 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8508 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8510 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8511 flag. Adjust all users; in particular...
8512 (gnu_wait): ..., don't decrement its value in here...
8513 (gnu_create_inferior): ..., and instead set the flag in here,
8514 around the startup_inferior call, and call that one with
8515 START_INFERIOR_TRAPS_EXPECTED.
8517 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8518 (ILL_RPC): ... new macro.
8519 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8520 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8521 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8522 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8523 functions with ILL_RPC macro.
8524 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8525 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8526 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8527 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8528 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8529 (S_proc_getlogin_reply, S_proc_getsid_reply)
8530 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8531 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8532 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8533 (S_proc_getnports_reply, S_proc_is_important_reply)
8534 (S_proc_get_code_reply): New stub functions, generated with
8537 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8538 collected the type check structures.
8540 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8542 2014-02-14 Doug Evans <dje@google.com>
8544 * target.c (target_write_partial): Fix result type.
8546 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8548 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8549 the proper offsets to access fpregset_t.
8551 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8553 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8554 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8555 * h8300-tdep.c (setmachinelist): Remove global.
8556 * hppa-tdep.c (hppa_sigtramp): Remove global.
8557 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8558 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8559 * ravenscar-thread.c (update_target_observer): Remove global.
8560 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8562 2014-02-12 Tom Tromey <tromey@redhat.com>
8564 * common/rsp-low.c: Update comments.
8565 * common/rsp-low.h: Update comments.
8567 2014-02-12 Tom Tromey <tromey@redhat.com>
8569 * common/rsp-low.c (convert_ascii_to_int): Remove.
8570 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8572 2014-02-12 Tom Tromey <tromey@redhat.com>
8574 * common/rsp-low.h (unhexify): Don't declare.
8575 * common/rsp-low.c (unhexify): Remove.
8577 2014-02-12 Tom Tromey <tromey@redhat.com>
8579 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8580 * common/rsp-low.c (convert_int_to_ascii): Remove.
8582 2014-02-12 Tom Tromey <tromey@redhat.com>
8584 * common/rsp-low.h (hexify): Don't declare.
8585 * common/rsp-low.c (hexify): Remove.
8587 2014-02-12 Tom Tromey <tromey@redhat.com>
8589 * common/rsp-low.c (hexify): Never take strlen of argument.
8591 2014-02-12 Tom Tromey <tromey@redhat.com>
8593 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8594 * remote.c (extended_remote_run, remote_rcmd)
8595 (remote_download_trace_state_variable, remote_save_trace_data)
8596 (remote_set_trace_notes): Update.
8597 * tracepoint.c (encode_source_string, tfile_write_status)
8598 (tfile_write_uploaded_tsv): Update.
8600 2014-02-12 Tom Tromey <tromey@redhat.com>
8602 * tracepoint.c: Include rsp-low.h.
8603 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8604 * remote.c: Include rsp-low.h.
8605 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8606 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8607 (remote_unescape_input): Move to common/rsp-low.c.
8608 * common/rsp-low.h: New file.
8609 * common/rsp-low.c: New file.
8610 * Makefile.in (SFILES): Add common/rsp-low.c.
8611 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8612 (COMMON_OBS): Add rsp-low.o.
8613 (rsp-low.o): New target.
8615 2014-02-12 Tom Tromey <tromey@redhat.com>
8617 * utils.h: Include print-utils.h.
8618 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8619 (int_string, core_addr_to_string, core_addr_to_string_nz)
8620 (hex_string, hex_string_custom): Don't declare.
8621 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8622 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8623 (hex_string_custom, int_string, core_addr_to_string)
8624 (core_addr_to_string_nz, host_address_to_string): Move to
8625 common/print-utils.c.
8626 * common/print-utils.h: New file.
8627 * common/print-utils.c: New file
8628 * Makefile.in (SFILES): Add common/print-utils.c.
8629 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8630 (COMMON_OBS): Add print-utils.o.
8631 (print-utils.o): New target.
8633 2014-02-12 Tom Tromey <tromey@redhat.com>
8635 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8637 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8639 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8641 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8643 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8644 if a PT_IO ptrace request returns sucessfully but indicates that 0
8645 bytes were transferred.
8647 2014-02-12 Pedro Alves <palves@redhat.com>
8648 Kevin Buettner <kevinb@redhat.com>
8650 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8651 TYPE_INSTANCE_FLAG_CODE_SPACE.
8653 2014-02-12 Pedro Alves <palves@redhat.com>
8655 * h8300-tdep.c (pseudo_from_raw_register)
8656 (raw_from_pseudo_register): New functions.
8657 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8660 2014-02-12 Pedro Alves <palves@redhat.com>
8662 * h8300-tdep.c (h8300_register_sim_regno): New function.
8663 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8664 gdbarch_register_sim_regno hook.
8666 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8668 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8670 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8672 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8674 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8676 * obsd-tdep.h (obsd_init_abi): New prototype.
8677 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8678 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8679 (obsd_init_abi): New functions.
8680 * i386obsd-tdep.c: Include "obsd-tdep.h".
8681 (i386obsd_init_abi): Call obsd_init_abi.
8682 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8683 (amd64obsd_init_abi): Call obsd_init_abi.
8684 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8685 obsd-tdep.c to gdb_target_obs.
8687 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8689 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8690 double float arguments to 16-byte in the argument slots.
8692 2014-02-11 Doug Evans <xdje42@gmail.com>
8694 * configure.ac: Don't crash if pkg-config is not found and guile
8695 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8697 * configure: Regenerate.
8699 2014-02-11 Yao Qi <yao@codesourcery.com>
8701 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8702 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8703 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8704 * gnu-nat.c (gnu_xfer_memory): Likewise.
8705 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8706 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8707 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8708 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8710 2014-02-11 Yao Qi <yao@codesourcery.com>
8712 * target.h (enum target_xfer_error): Rename to ...
8713 (enum target_xfer_status): ... it. New. All users updated.
8714 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8716 (TARGET_XFER_STATUS_ERROR_P): New macro.
8717 (target_xfer_error_to_string): Remove declaration.
8718 (target_xfer_status_to_string): Declare.
8719 (target_xfer_partial_ftype): Adjust it.
8720 (struct target_ops) <to_xfer_partial>: Return
8721 target_xfer_status. Add argument xfered_len. Update
8723 * target.c (target_xfer_error_to_string): Rename to ...
8724 (target_xfer_status_to_string): ... it. New. All callers
8726 (target_read_live_memory): Likewise. Call target_xfer_partial
8727 instead of target_read.
8728 (memory_xfer_live_readonly_partial): Return
8729 target_xfer_status. Add argument xfered_len.
8730 (raw_memory_xfer_partial): Likewise.
8731 (memory_xfer_partial_1): Likewise.
8732 (memory_xfer_partial): Likewise.
8733 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8734 properly. Update debug message.
8735 (default_xfer_partial, current_xfer_partial): Likewise.
8736 (target_write_partial): Likewise.
8737 (target_read_partial): Likewise. All callers updated.
8738 (read_whatever_is_readable): Likewise.
8739 (target_write_with_progress): Likewise.
8740 (target_read_alloc_1): Likewise.
8742 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8743 * auxv.c (procfs_xfer_auxv): Likewise.
8744 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8745 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8746 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8747 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8748 * corefile.c (read_memory): Adjust.
8749 * corelow.c (core_xfer_partial): Likewise.
8750 * ctf.c (ctf_xfer_partial): Likewise.
8751 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8753 (darwin_xfer_partial): Likewise.
8754 * exec.c (section_table_xfer_memory_partial): Likewise. All
8756 (exec_xfer_partial): Likewise.
8757 * exec.h (section_table_xfer_memory_partial): Update
8759 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8761 (gnu_xfer_partial): Likewise.
8762 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8763 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8764 (ia64_hpux_xfer_solib_got): Likewise.
8765 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8766 type of 'partial_len' to ULONGEST.
8767 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8768 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8769 (linux_nat_xfer_partial): Likewise.
8770 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8771 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8772 * monitor.c (monitor_xfer_memory): Likewise.
8773 (monitor_xfer_partial): Likewise.
8774 * procfs.c (procfs_xfer_partial): Likewise.
8775 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8776 * record-full.c (record_full_xfer_partial): Likewise.
8777 (record_full_core_xfer_partial): Likewise.
8778 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8779 (gdbsim_xfer_partial): Likewise.
8780 * remote.c (remote_write_bytes_aux): Likewise. All callers
8782 (remote_write_bytes, remote_read_bytes): Likewise. All
8784 (remote_flash_erase): Likewise. All callers updated.
8785 (remote_write_qxfer): Likewise. All callers updated.
8786 (remote_read_qxfer): Likewise. All callers updated.
8787 (remote_xfer_partial): Likewise.
8788 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8789 (rs6000_xfer_shared_libraries): Likewise.
8790 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8791 (sol_thread_xfer_partial): Likewise.
8792 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8793 (sparc_xfer_partial): Likewise.
8794 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8796 (spu_xfer_partial): Likewise.
8797 * spu-multiarch.c (spu_xfer_partial): Likewise.
8798 * tracepoint.c (tfile_xfer_partial): Likewise.
8799 * windows-nat.c (windows_xfer_memory): Likewise.
8800 (windows_xfer_shared_libraries): Likewise.
8801 (windows_xfer_partial): Likewise.
8802 * valprint.c: Replace 'target_xfer_error' with
8803 'target_xfer_status' in comments.
8805 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8807 Checked in by Joel Brobecker <brobecker@adacore.com>.
8808 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8810 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8812 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8813 function parameters.
8815 2014-02-10 Will Newton <will.newton@linaro.org>
8817 * elfread.c (elf_rel_plt_read): Look for a .got section if
8818 looking up .got.plt fails.
8819 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8820 on address passed to elf_gnu_ifunc_record_cache.
8821 (elf_gnu_ifunc_resolve_addr): Likewise.
8822 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8824 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8826 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8827 (X_RETTURN): New macro.
8828 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8830 * sparc64-tdep.c (sparc64_init_abi): Hook
8831 sparc_in_function_epilogue_p.
8833 2014-02-10 Gary Benson <gbenson@redhat.com>
8835 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8836 Rename name_matcher to symbol_matcher.
8838 2014-02-10 Gary Benson <gbenson@redhat.com>
8840 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8841 Use expand_symtabs_file_matcher_ftype and
8842 expand_symtabs_symbol_matcher_ftype.
8844 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8846 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8847 (struct ada_symbol_cache): New.
8848 (ada_free_symbol_cache): Forward declare.
8849 (struct ada_pspace_data): New.
8850 (ada_pspace_data_handle): New static global.
8851 (get_ada_pspace_data, ada_pspace_data_cleanup)
8852 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8853 (cache_space, cache): Delete, now folded inside struct
8855 (ada_get_symbol_cache): New function.
8856 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8858 (_initialize_ada_language): Remove initialization of cache_space.
8859 Move call to observer_attach_inferior_exit up, grouping it
8860 with the other observer registrations inside this function.
8861 Rename command to be more general. Add call to
8862 register_program_space_data_with_cleanup.
8864 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8866 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8867 ada_new_objfile_observer.
8868 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8869 (_initialize_tasks): Update uses of ada_new_objfile_observer
8870 and ada_tasks_normal_stop_observer.
8872 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8874 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8875 returned by the 'Length attribute to integer.
8877 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8879 * ada-lang.c (_initialize_ada_language): Initialize
8880 cache_space obstack.
8882 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8884 * ada-lang.c (HASH_SIZE): New macro.
8885 (struct cache_entry): New type.
8886 (cache_space, cache): New static globals.
8887 (ada_clear_symbol_cache, find_entry): New functions.
8888 (lookup_cached_symbol, cache_symbol): Implement.
8889 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8890 (_initialize_ada_language): Attach ada_new_objfile_observer
8891 and ada_free_objfile_observer.
8893 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8895 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8896 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8897 struct block * parameter.
8898 (ada_lookup_symbol_list_worker): Constify local variable "block".
8899 Remove cast which is no longer necessary.
8901 2014-02-10 Doug Evans <xdje42@gmail.com>
8903 Add Guile as an extension language.
8904 * NEWS: Mention Guile scripting.
8905 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8906 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8907 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8908 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8909 (CLIBS): Add GUILE_LIBS.
8910 (install-guile): New rule.
8911 (guile.o): New rule.
8912 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8913 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8914 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8915 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8916 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8917 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8918 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8919 * configure.ac: New option --with-guile.
8920 * configure: Regenerate.
8921 * config.in: Regenerate.
8922 * auto-load.c: Remove #include "python/python.h". Add #include
8923 "gdb/section-scripts.h".
8924 (source_section_scripts): Handle Guile scripts.
8925 (_initialize_auto_load): Add name of Guile objfile script to
8926 scripts-directory help text.
8927 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8928 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8929 (struct breakpoint): New member scm_bp_object.
8930 * defs.h (enum command_control_type): New value guile_control.
8931 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8933 (show_user): Update comment.
8934 (_initialize_cli_cmds): Update help text for "show user". Update help
8935 text for max-user-call-depth.
8936 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8938 (multi_line_command_p): Add guile_control.
8939 (print_command_lines): Handle guile_control.
8940 (execute_control_command, recurse_read_control_structure): Ditto.
8941 (process_next_line): Recognize "guile" commands.
8942 * disasm.c (gdb_disassemble_info): Make non-static.
8943 * disasm.h: #include "dis-asm.h".
8944 (struct gdbarch): Add forward decl.
8945 (gdb_disassemble_info): Declare.
8946 * extension.c: #include "guile/guile.h".
8947 (extension_languages): Add guile.
8948 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8949 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8950 * gdbtypes.c (get_unsigned_type_max): New function.
8951 (get_signed_type_minmax): New function.
8952 * gdbtypes.h (get_unsigned_type_max): Declare.
8953 (get_signed_type_minmax): Declare.
8954 * guile/README: New file.
8955 * guile/guile-internal.h: New file.
8956 * guile/guile.c: New file.
8957 * guile/guile.h: New file.
8958 * guile/scm-arch.c: New file.
8959 * guile/scm-auto-load.c: New file.
8960 * guile/scm-block.c: New file.
8961 * guile/scm-breakpoint.c: New file.
8962 * guile/scm-disasm.c: New file.
8963 * guile/scm-exception.c: New file.
8964 * guile/scm-frame.c: New file.
8965 * guile/scm-gsmob.c: New file.
8966 * guile/scm-iterator.c: New file.
8967 * guile/scm-lazy-string.c: New file.
8968 * guile/scm-math.c: New file.
8969 * guile/scm-objfile.c: New file.
8970 * guile/scm-ports.c: New file.
8971 * guile/scm-pretty-print.c: New file.
8972 * guile/scm-safe-call.c: New file.
8973 * guile/scm-string.c: New file.
8974 * guile/scm-symbol.c: New file.
8975 * guile/scm-symtab.c: New file.
8976 * guile/scm-type.c: New file.
8977 * guile/scm-utils.c: New file.
8978 * guile/scm-value.c: New file.
8979 * guile/lib/gdb.scm: New file.
8980 * guile/lib/gdb/boot.scm: New file.
8981 * guile/lib/gdb/experimental.scm: New file.
8982 * guile/lib/gdb/init.scm: New file.
8983 * guile/lib/gdb/iterator.scm: New file.
8984 * guile/lib/gdb/printing.scm: New file.
8985 * guile/lib/gdb/types.scm: New file.
8986 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8987 (VPATH): Add $(GUILE_SRCDIR).
8988 (GUILE_DIR): New variable.
8989 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8990 (all): Add stamp-guile dependency.
8991 (stamp-guile): New rule.
8992 (clean-guile, install-guile, uninstall-guile): New rules.
8993 (install-only): Add install-guile dependency.
8994 (uninstall): Add uninstall-guile dependency.
8995 (clean): Add clean-guile dependency.
8997 2014-02-09 Doug Evans <xdje42@gmail.com>
8999 Revert this patch (which I approved, mea culpa).
9001 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9003 * Makefile.in (all-lib): Remove.
9004 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9006 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9008 Fix Python stack corruption.
9009 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9012 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9014 * Makefile.in (all-lib): Remove.
9015 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9017 2014-02-07 Doug Evans <dje@google.com>
9019 * extension-priv.h (extension_language_script_ops): Add comment.
9020 (extension_language_ops): Add comment.
9021 (active_ext_lang_state): Fix typo in comment.
9023 2014-02-07 Pedro Alves <palves@redhat.com>
9025 PR breakpoints/16292
9026 * infrun.c (handle_signal_stop) <signal arrives while stepping
9027 over a breakpoint>: Switch back to the stepping thread.
9029 2014-02-07 Yao Qi <yao@codesourcery.com>
9031 * target.c (target_xfer_partial): Return zero if LEN is zero.
9033 2014-02-07 Yao Qi <yao@codesourcery.com>
9035 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9036 (ld_so_xfer_auxv): Likewise.
9037 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9038 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9039 * corelow.c (core_xfer_partial): Likewise.
9040 * ctf.c (ctf_xfer_partial): Likewise.
9041 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9042 (darwin_xfer_partial): Likewise.
9043 * exec.c (exec_xfer_partial): Likewise.
9044 * gnu-nat.c (gnu_xfer_partial): Likewise.
9045 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9046 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9047 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9048 * linux-nat.c (linux_xfer_siginfo): Likewise.
9049 (linux_proc_xfer_spu): Likewise.
9050 * procfs.c (procfs_xfer_partial): Likewise.
9051 * record-full.c (record_full_xfer_partial): Likewise.
9052 (record_full_core_xfer_partial): Likewise.
9053 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9054 * remote.c (remote_write_qxfer): Likewise.
9055 (remote_write_qxfer, remote_read_qxfer): Likewise.
9056 (remote_xfer_partial): Likewise.
9057 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9058 (rs6000_xfer_shared_libraries): Likewise.
9059 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9060 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9061 (spu_xfer_partial): Likewise.
9062 * target.c (memory_xfer_partial_1): Likewise.
9063 * tracepoint.c (tfile_xfer_partial): Likewise.
9064 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9065 (windows_xfer_partial): Likewise.
9067 2014-02-07 Yao Qi <yao@codesourcery.com>
9069 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9071 (core_xfer_shared_libraries_aix): Likewise.
9072 * gdbarch.c, gdbarch.h: Regenerated.
9073 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9074 ULONGEST. Change 'len_avail' type to ULONGEST.
9075 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9076 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9078 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9080 2014-02-07 Yao Qi <yao@codesourcery.com>
9082 * corefile.c (memory_error): Get 'exception' from ERR and pass
9083 'exception' to throw_error.
9085 2014-02-06 Doug Evans <xdje42@gmail.com>
9087 * configure.ac (libpython checking): Remove all but python.o from
9088 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9089 * configure: Regenerate.
9091 * Makefile.in (SFILES): Add extension.c.
9092 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9093 (COMMON_OBS): Add extension.o.
9094 * extension.h: New file.
9095 * extension-priv.h: New file.
9096 * extension.c: New file.
9098 * python/python-internal.h: #include "extension.h".
9099 (gdbpy_auto_load_enabled): Declare.
9100 (gdbpy_apply_val_pretty_printer): Declare.
9101 (gdbpy_apply_frame_filter): Declare.
9102 (gdbpy_preserve_values): Declare.
9103 (gdbpy_breakpoint_cond_says_stop): Declare.
9104 (gdbpy_breakpoint_has_cond): Declare.
9105 (void source_python_script_for_objfile): Delete.
9106 * python/python.c: #include "extension-priv.h".
9107 Delete inclusion of "observer.h".
9108 (extension_language_python): Moved here and renamed from
9109 script_language_python in py-auto-load.c.
9110 Redefined to be of type extension_language_defn.
9111 (python_extension_script_ops): New global.
9112 (python_extension_ops): New global.
9113 (struct python_env): New member previous_active.
9114 (restore_python_env): Call restore_active_ext_lang.
9115 (ensure_python_env): Call set_active_ext_lang.
9116 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9118 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9120 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9122 (gdbpy_eval_from_control_command): Renamed from
9123 eval_python_from_control_command, made static. New arg extlang.
9124 (gdbpy_source_script) Renamed from source_python_script, made static.
9126 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9127 result to int. New arg extlang.
9128 (gdbpy_source_objfile_script): Renamed from
9129 source_python_script_for_objfile, made static. New arg extlang.
9130 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9131 static. New args extlang, extlang_printers. Change result type to
9133 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9134 static. New arg extlang. Rename arg printers to extlang_printers
9135 and change type to ext_lang_type_printers *.
9136 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9137 static. Replace argument arg with extlang, extlang_printers.
9138 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9139 (!HAVE_PYTHON, source_python_script): Delete.
9140 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9141 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9142 (!HAVE_PYTHON, start_type_printers): Delete.
9143 (!HAVE_PYTHON, apply_type_printers): Delete.
9144 (!HAVE_PYTHON, free_type_printers): Delete.
9145 (_initialize_python): Delete call to observer_attach_before_prompt.
9146 (finalize_python): Set/restore active extension language.
9147 (gdbpy_finish_initialization) Renamed from
9148 finish_python_initialization, made static. New arg extlang.
9149 (gdbpy_initialized): New function.
9150 * python/python.h: #include "extension.h". Delete #include
9151 "value.h", "mi/mi-cmds.h".
9152 (extension_language_python): Declare.
9153 (GDBPY_AUTO_FILE_NAME): Delete.
9154 (enum py_bt_status): Moved to extension.h and renamed to
9156 (enum frame_filter_flags): Moved to extension.h.
9157 (enum py_frame_args): Moved to extension.h and renamed to
9158 ext_lang_frame_args.
9159 (finish_python_initialization): Delete.
9160 (eval_python_from_control_command): Delete.
9161 (source_python_script): Delete.
9162 (apply_val_pretty_printer): Delete.
9163 (apply_frame_filter): Delete.
9164 (preserve_python_values): Delete.
9165 (gdbpy_script_language_defn): Delete.
9166 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9167 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9169 * auto-load.c: #include "extension.h".
9170 (GDB_AUTO_FILE_NAME): Delete.
9171 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9172 (script_language_gdb): Delete, moved to extension.c and renamed to
9173 extension_language_gdb.
9174 (source_gdb_script_for_objfile): Delete.
9175 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9176 (loaded_script): Change type of language member to
9177 struct extension_language_defn *.
9178 (init_loaded_scripts_info): Initialize
9179 unsupported_script_warning_printed.
9180 (maybe_add_script): Make static. Change type of language arg to
9181 struct extension_language_defn *.
9182 (clear_section_scripts): Reset unsupported_script_warning_printed.
9183 (auto_load_objfile_script_1): Rewrite to use extension language API.
9184 (auto_load_objfile_script): Make public. Remove support-compiled-in
9185 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9186 (source_section_scripts): Rewrite to use extension language API.
9187 (load_auto_scripts_for_objfile): Rewrite to use
9188 auto_load_scripts_for_objfile.
9189 (collect_matching_scripts_data): Change type of language member to
9190 struct extension_language_defn *.
9191 (auto_load_info_scripts): Change type of language arg to
9192 struct extension_language_defn *.
9193 (unsupported_script_warning_print): New function.
9194 (script_not_found_warning_print): Make static.
9195 (_initialize_auto_load): Rewrite construction of scripts-directory
9197 * auto-load.h (struct objfile): Add forward decl.
9198 (struct script_language): Delete.
9199 (struct auto_load_pspace_info): Add forward decl.
9200 (struct extension_language_defn): Add forward decl.
9201 (maybe_add_script): Delete.
9202 (auto_load_objfile_script): Declare.
9203 (script_not_found_warning_print): Delete.
9204 (auto_load_info_scripts): Update prototype.
9205 (auto_load_gdb_scripts_enabled): Declare.
9206 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9207 auto_load_python_scripts_enabled and made public.
9208 (script_language_python): Delete, moved to python.c.
9209 (gdbpy_script_language_defn): Delete.
9210 (info_auto_load_python_scripts): Update to use
9211 extension_language_python.
9213 * breakpoint.c (condition_command): Replace call to
9214 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9215 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9216 with call to breakpoint_ext_lang_cond_says_stop.
9217 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9218 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9219 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9220 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9222 (local_setattro): Print name of extension language with existing
9225 * valprint.c (val_print, value_print): Update to call
9226 apply_ext_lang_val_pretty_printer.
9227 * cp-valprint.c (cp_print_value): Update call to
9228 apply_ext_lang_val_pretty_printer.
9229 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9230 (gdbpy_apply_val_pretty_printer): Renamed from
9231 apply_val_pretty_printer. New arg extlang.
9232 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9234 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9235 extension language API.
9236 * cli/cli-script.c (execute_control_command): Update to call
9237 eval_ext_lang_from_control_command.
9239 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9240 enum ext_lang_bt_status values. Update call to
9241 apply_ext_lang_frame_filter.
9242 (mi_cmd_stack_list_locals): Ditto.
9243 (mi_cmd_stack_list_args): Ditto.
9244 (mi_cmd_stack_list_variables): Ditto.
9245 * mi/mi-main.c: Delete #include "python/python-internal.h".
9246 Add #include "extension.h".
9247 (mi_cmd_list_features): Replace reference to python internal variable
9248 gdb_python_initialized with call to ext_lang_initialized_p.
9250 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9251 Update to use enum ext_lang_frame_args. Update to call
9252 apply_ext_lang_frame_filter.
9253 * python/py-framefilter.c (extract_sym): Update to use enum
9255 (extract_value, py_print_type, py_print_value): Ditto.
9256 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9257 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9258 (py_print_frame): Ditto.
9259 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9260 New arg extlang. Update to use enum ext_lang_bt_status.
9262 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9263 finish_python_initialization. Replace with call to
9264 finish_ext_lang_initialization.
9266 * typeprint.c (do_free_global_table): Update to call
9267 free_ext_lang_type_printers.
9268 (create_global_typedef_table): Update to call
9269 start_ext_lang_type_printers.
9270 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9271 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9272 (type_print_options): Change type of global_printers from "void *"
9273 to "struct ext_lang_type_printers *".
9275 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9276 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9277 (gdbpy_preserve_values): Renamed from preserve_python_values.
9279 (!HAVE_PYTHON, preserve_python_values): Delete.
9281 * utils.c (quit_flag): Delete, moved to extension.c.
9282 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9285 * eval.c: Delete #include "python/python.h".
9286 * main.c: Delete #include "python/python.h".
9288 * defs.h: Update comment.
9290 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9294 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9296 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9299 2014-02-05 Yao Qi <yao@codesourcery.com>
9301 * remote.c (remote_pass_signals): Remove local 'buf' and use
9303 (remote_program_signals): Likewise.
9305 2014-02-05 Yao Qi <yao@codesourcery.com>
9307 * ctf.c: Include "inferior.h" and "gdbthread.h".
9308 (CTF_PID): A new macro.
9309 (ctf_open): Call inferior_appeared and add_thread_silent.
9310 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9311 (ctf_thread_alive): New function.
9312 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9314 2014-02-05 Yao Qi <yao@codesourcery.com>
9318 2013-05-24 Yao Qi <yao@codesourcery.com>
9320 * tracepoint.c (TFILE_PID): Remove.
9321 (tfile_open): Don't add thread and inferior.
9322 (tfile_close): Don't set 'inferior_ptid'. Don't call
9323 exit_inferior_silent.
9324 (tfile_thread_alive): Remove.
9325 (init_tfile_ops): Don't set field 'to_thread_alive' of
9328 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9330 * remote.c (remote_start_remote): Call remote_check_symbols even
9331 if only symbol-file (not file) has been given.
9333 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9335 * gdbarch.sh (skip_entrypoint): New callback.
9336 * gdbarch.c, gdbarch.h: Regenerate.
9337 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9338 * infrun.c (fill_in_stop_func): Likewise.
9339 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9340 (ppc_elfv2_elf_make_msymbol_special): New function.
9341 (ppc_elfv2_skip_entrypoint): Likewise.
9342 (ppc_linux_init_abi): Install them for ELFv2.
9344 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9346 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9347 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9348 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9349 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9350 structures returned in GPRs.
9352 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9354 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9355 offset to the stack parameter list for the ELFv2 ABI.
9357 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9359 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9360 set_gdbarch_convert_from_func_ptr_addr and
9361 set_gdbarch_elf_make_msymbol_special for ELFv1.
9362 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9363 function descriptors on ELFv1.
9364 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9365 set up r12 at function entry.
9367 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9369 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9370 (struct gdbarch_tdep): New member elf_abi.
9372 * rs6000-tdep.c: Include "elf/ppc64.h".
9373 (rs6000_gdbarch_init): Detect ELF ABI version.
9375 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9377 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9378 within a register pair holding a DFP 128-bit value on little-endian.
9379 (ppc64_sysv_abi_return_value_base): Likewise.
9380 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9381 (dfp_pseudo_register_write): Likewise.
9383 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9385 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9386 offset on little-endian when passing _Decimal32.
9387 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9389 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9391 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9392 of the overlapped FP register within the VSX register on little-
9394 (efpr_pseudo_register_write): Likewise.
9396 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9398 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9399 offset on little-endian when passing small structures.
9401 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9403 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9404 (struct ppc64_sysv_argpos): New data structure.
9405 (ppc64_sysv_abi_push_float): Remove.
9406 (ppc64_sysv_abi_push_val): New function.
9407 (ppc64_sysv_abi_push_integer): Likewise.
9408 (ppc64_sysv_abi_push_freg): Likewise.
9409 (ppc64_sysv_abi_push_vreg): Likewise.
9410 (ppc64_sysv_abi_push_param): Likewise.
9411 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9412 (ppc64_sysv_abi_return_value_base): New function.
9413 (ppc64_sysv_abi_return_value): Refactor to use it.
9415 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9417 * NEWS: Document new target powerpc64le-*-linux*.
9419 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9421 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9422 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9424 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9425 register set used in ELF core dumps. Add floating-point register set.
9427 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9429 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9430 dwarf2_to_gdb[] table using symbolic constants. Adjust
9431 penultimate entry from number representing the PC register
9432 to symbolic constant representing the MDR register. Add
9433 constant for the PC register to the end of the table.
9435 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9437 * bsd-kvm.c: Include <sys/param.h>
9439 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9441 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9443 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9445 * ada-lang.h (clear_ada_sym_cache): Delete.
9447 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9449 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9451 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9453 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9454 the sigreturn register save area only if the syscall is
9457 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9459 * valops.c (value_slice): Minor reformatting.
9461 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9463 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9465 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9467 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9469 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9470 (ada_ignore_descriptive_types_p): New static global.
9471 (find_parallel_type_by_descriptive_type): Return immediately
9472 if ada_ignore_descriptive_types_p is set.
9473 (_initialize_ada_language): Register new commands "maintenance
9474 set ada", "maintenance show ada", "maintenance set ada
9475 ignore-descriptive-types" and "maintenance show ada
9476 ignore-descriptive-types".
9477 * NEWS: Add entry for new "maint ada set/show
9478 ignore-descriptive-types" commands.
9480 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9482 * record-btrace.c (record_btrace_close): Call btrace_teardown
9485 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9487 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9490 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9492 * ada-typeprint (type_is_full_subrange_of_target_type):
9494 (print_range): Add parameter bounds_prefered_p. If not set,
9495 try printing range types using the name of their base type.
9496 (print_range_type): Add parameter bounds_prefered_p.
9497 Use it in call to print_range.
9498 (print_array_type, ada_print_type): Update calls to print_range
9499 and print_range_type.
9501 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9503 * ada-typeprint.c (print_array_type, print_choices, print_range)
9504 (print_range_bound, print_dynamic_range_bound, print_range_type):
9507 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9509 * ada-typeprint.c (print_range): Add missing empty line
9510 after local declaration.
9512 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9514 * ada-valprint.c (print_optional_low_bound): Get index_type's
9515 target type for as long as it is a TYPE_CODE_RANGE.
9517 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9519 * procfs.c (procfs_make_note_section): Remove assertion and
9522 2014-01-24 Yao Qi <yao@codesourcery.com>
9524 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9525 * corelow.c (get_core_siginfo): Likewise.
9527 2014-01-24 Yao Qi <yao@codesourcery.com>
9529 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9530 ULONGEST. Don't check 'len' is negative.
9531 (remote_write_bytes): Change type of 'len' to ULONGEST.
9533 2014-01-23 Tom Tromey <tromey@redhat.com>
9536 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9537 Handle exception from frame.block.
9538 (FrameVars.fetch_frame_locals): Likewise.
9540 2014-01-23 Tom Tromey <tromey@redhat.com>
9543 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9544 on a NULL pointer. Move "goto error" to correct place.
9546 2014-01-23 Tom Tromey <tromey@redhat.com>
9549 * python/py-framefilter.c (apply_frame_filter): Call
9550 ensure_python_env after computing gdbarch.
9552 2014-01-23 Yao Qi <yao@codesourcery.com>
9554 * target.c (raw_memory_xfer_partial): Change argument type
9555 from void * to gdb_byte *.
9556 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9558 2014-01-22 Doug Evans <dje@google.com>
9560 New gdbserver option --debug-format=timestamp.
9563 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9565 * syscalls/s390x-linux.xml: New file.
9566 * syscalls/s390-linux.xml: New file.
9567 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9568 (XML_SYSCALL_FILENAME_S390X): Likewise.
9569 (op_svc): New enum value for SVC opcode.
9570 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9571 (s390_linux_get_syscall_number): New function.
9572 (s390_gdbarch_init): Register '*get_syscall_number' and the
9573 syscall xml file name.
9574 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9575 "s390-linux.xml" and "s390x-linux.xml".
9576 * NEWS: Announce new feature.
9578 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9580 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9582 2014-01-22 Pedro Alves <palves@redhat.com>
9584 * xtensa-config.c: Include defs.h.
9586 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9588 * common/common-utils.h: Add "ARI:" comment beside __func__
9591 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9593 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9594 documentation a bit.
9596 2014-01-21 Roland McGrath <mcgrathr@google.com>
9598 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9599 * configure: Regenerate.
9600 * aclocal.m4: Regenerate.
9601 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9602 New substituted variables.
9603 (install-strip): New target.
9604 (INSTALL_SCRIPT): New substituted variable.
9605 (FLAGS_TO_PASS): Add it.
9606 (install-only): Use $(INSTALL_SCRIPT) rather than
9607 $(INSTALL_PROGRAM) for gcore.
9609 2014-01-20 Tom Tromey <tromey@redhat.com>
9611 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9614 2014-01-20 Tom Tromey <tromey@redhat.com>
9616 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9617 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9618 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9619 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9620 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9621 (struct cmd_list_element) <flags>: Remove.
9622 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9623 doc_allocated>: New fields.
9624 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9626 * maint.c (maintenance_do_deprecate): Update.
9627 * top.c (execute_command): Update.
9629 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9631 * xtensa-linux-nat.c: Include asm/ptrace.h.
9633 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9635 * Makefile.in (SFILES): Add d-support.c.
9636 (COMMON_OBS): Add d-support.o.
9637 * d-lang.h (d_parse_symbol): Add comment, now defined in
9639 * d-lang.c (parse_call_convention)
9640 (parse_attributes, parse_function_types)
9641 (parse_function_args, parse_type, parse_identifier)
9642 (call_convention_p, d_parse_symbol): Move functions to ...
9643 * d-support.c: ... New file.
9645 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9647 * d-lang.h (d_parse_symbol): Add declaration.
9648 * d-lang.c (extract_identifiers)
9649 (extract_type_info): Remove functions.
9650 (parse_call_convention, parse_attributes)
9651 (parse_function_types, parse_function_args)
9652 (parse_type, parse_identifier, call_convention_p)
9653 (d_parse_symbol): New functions.
9654 (d_demangle): Use d_parse_symbol to demangle D symbols.
9656 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9658 * d-lang.h (struct builtin_d_type): New data type.
9659 (builtin_d_type): Add declaration.
9660 * d-lang.c (d_language_arch_info, build_d_types)
9661 (builtin_d_type): New functions.
9662 (enum d_primitive_types): New data type.
9663 (d_language_defn): Change c_language_arch_info to
9664 d_language_arch_info.
9665 (d_type_data): New static variable.
9666 (_initialize_d_language): Initialize d_type_data.
9668 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9670 * d-lang.h (d_main_name): Add declaration.
9671 * d-lang.c (d_main_name): New function.
9672 * symtab.c (find_main_name): Add call to d_main_name.
9674 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9676 * d-lang.c (d_language_defn): Change macro_expansion_c to
9679 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9681 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9683 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9685 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9686 gdb_exception" declaration.
9687 * remote.c (getpkt_or_notif_sane): Likewise.
9689 2014-01-17 Doug Evans <dje@google.com>
9691 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9692 function, contents of dirnames_to_char_ptr_vec_append moved here.
9693 (delim_string_to_char_ptr_vec): New function.
9694 (dirnames_to_char_ptr_vec_append): Rewrite.
9695 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9697 2014-01-17 Doug Evans <dje@google.com>
9699 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9701 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9702 #include "common-utils.h".
9703 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9704 * common/vec.h (VEC_ASSERT_PASS): Update.
9705 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9706 (MACH_CHECK_ERROR): Update.
9708 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9710 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9712 * gdbarch.h: Regenerate.
9714 2014-01-16 Tom Tromey <tromey@redhat.com>
9716 * value.c (struct value) <regnum>: Move earlier.
9718 2014-01-16 Tom Tromey <tromey@redhat.com>
9720 * remote.c (extended_remote_create_inferior): Rename from
9721 extended_remote_create_inferior_1. Add "ops" argument. Remove
9724 2014-01-16 Pedro Alves <palves@redhat.com>
9726 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9727 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9730 2014-01-16 Doug Evans <dje@google.com>
9732 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9734 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9736 * btrace.h (btrace_thread_flag): New.
9737 (struct btrace_thread_info) <flags>: New.
9738 * record-btrace.c (record_btrace_resume_thread)
9739 (record_btrace_find_thread_to_move, btrace_step_no_history)
9740 (btrace_step_stopped, record_btrace_start_replaying)
9741 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9742 (record_btrace_find_resume_thread): New.
9743 (record_btrace_resume, record_btrace_wait): Extend.
9744 (record_btrace_can_execute_reverse): New.
9745 (record_btrace_open): Fail in non-stop mode.
9746 (record_btrace_set_replay): Split into this, ...
9747 (record_btrace_stop_replaying): ... this, ...
9748 (record_btrace_clear_histories): ... and this.
9749 (init_record_btrace_ops): Init to_can_execute_reverse.
9750 * NEWS: Announce it.
9752 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9754 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9755 (forward_target_decr_pc_after_break)
9756 (target_decr_pc_after_break): New.
9757 * target.c (forward_target_decr_pc_after_break)
9758 (target_decr_pc_after_break): New.
9759 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9760 instead of gdbarch_decr_pc_after_break.
9761 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9762 instead of gdbarch_decr_pc_after_break.
9763 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9764 instead of gdbarch_decr_pc_after_break.
9765 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9766 instead of gdbarch_decr_pc_after_break.
9767 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9768 instead of gdbarch_decr_pc_after_break.
9769 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9770 instead of gdbarch_decr_pc_after_break.
9772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9774 * btrace.c: Include regcache.h.
9775 (btrace_add_pc): New.
9776 (btrace_enable): Call btrace_add_pc.
9777 (btrace_is_empty): New.
9778 * btrace.h (btrace_is_empty): New.
9779 * record-btrace.c (require_btrace, record_btrace_info): Call
9782 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9784 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9785 Support delta reads.
9786 (linux_disable_btrace): Change return type.
9787 * common/linux-btrace.h (linux_read_btrace): Change parameters
9788 and return type to allow error reporting. Update users.
9789 (linux_disable_btrace): Change return type. Update users.
9790 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9792 (btrace_error): New.
9793 (btrace_block) <begin>: Comment on BEGIN == 0.
9794 * btrace.c (btrace_compute_ftrace): Start from the end of
9796 (btrace_stitch_trace, btrace_clear_history): New.
9797 (btrace_fetch): Read delta trace, return if replaying.
9798 (btrace_clear): Move clear history code to btrace_clear_history.
9799 (parse_xml_btrace): Throw an error if parsing failed.
9800 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9801 and return type to allow error reporting.
9802 (target_read_btrace): Change parameters and return type to allow
9804 * target.c (target_read_btrace): Update.
9805 * remote.c (remote_read_btrace): Support delta reads. Pass
9807 * NEWS: Announce it.
9809 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9811 * record.h (record_btrace_frame_unwind)
9812 (record_btrace_tailcall_frame_unwind): New declarations.
9813 * dwarf2-frame: Include record.h
9814 (dwarf2_frame_cfa): Throw an error for btrace frames.
9815 * record-btrace.c: Include hashtab.h.
9816 (btrace_get_bfun_name): New.
9817 (btrace_call_history): Call btrace_get_bfun_name.
9818 (struct btrace_frame_cache): New.
9820 (bfcache_hash, bfcache_eq, bfcache_new): New.
9821 (btrace_get_frame_function): New.
9822 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9823 (record_btrace_frame_this_id): Compute own id.
9824 (record_btrace_frame_prev_register): Provide PC, throw_error
9825 for all other registers.
9826 (record_btrace_frame_sniffer): Detect btrace frames.
9827 (record_btrace_tailcall_frame_sniffer): New.
9828 (record_btrace_frame_dealloc_cache): New.
9829 (record_btrace_frame_unwind): Add new functions.
9830 (record_btrace_tailcall_frame_unwind): New.
9831 (_initialize_record_btrace): Allocate cache.
9832 * btrace.c (btrace_clear): Call reinit_frame_cache.
9833 * NEWS: Announce it.
9835 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9837 * record-btrace.c (record_btrace_set_replay)
9838 (record_btrace_goto_begin, record_btrace_goto_end)
9839 (record_btrace_goto): New.
9840 (init_record_btrace_ops): Initialize them.
9841 * NEWS: Announce it.
9843 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9845 * record-btrace.c (record_btrace_find_new_threads)
9846 (record_btrace_thread_alive): New.
9847 (init_record_btrace_ops): Initialize to_find_new_threads and
9850 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9852 * record-btrace.c (record_btrace_resume): New.
9853 (record_btrace_wait): New.
9854 (init_record_btrace_ops): Initialize to_wait and to_resume.
9856 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9858 * record-btrace.c (record_btrace_xfer_partial)
9859 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9860 (record_btrace_allow_memory_access): New.
9861 (init_record_btrace_ops): Initialize new methods.
9862 * target.c (raw_memory_xfer_partial): Bail out if target reports
9863 that this memory is not available.
9865 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9867 * target.h (target_ops) <to_insert_breakpoint>
9868 <to_remove_breakpoint>: Add target_ops parameter.
9869 (forward_target_insert_breakpoint): New.
9870 (forward_target_remove_breakpoint): New.
9871 (memory_remove_breakpoint, memory_insert_breakpoint):
9872 Add target_ops parameter.
9873 * target.c (target_insert_breakpoint): Split into this and ...
9874 (forward_target_insert_breakpoint): ... this.
9875 (target_remove_breakpoint): Split into this and ...
9876 (forward_target_remove_breakpoint): ... this.
9877 (debug_to_insert_breakpoint): Add target_ops parameter.
9878 Call forward_target_insert_breakpoint.
9879 (debug_to_remove_breakpoint): Add target_ops parameter.
9880 Call forward_target_remove_breakpoint.
9881 (update_current_target): Do not inherit or default to_insert_breakpoint
9882 and to_remove_breakpoint.
9883 * corelow.c (ignore): Add target_ops parameter.
9884 * exec.c (ignore): Add target_ops parameter.
9885 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9886 Add target_ops parameter.
9887 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9888 Add target_ops parameter.
9889 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9890 Add target_ops parameter.
9891 * record-full.c (record_full_beneath_to_insert_breakpoint)
9892 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9893 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9894 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9895 (record_full_core_remove_breakpoint): Add target_ops parameter.
9897 (record_full_beneath_to_insert_breakpoint_ops)
9898 (record_full_beneath_to_remove_breakpoint_ops)
9899 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9900 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9901 tmp_to_remove_breakpoint_ops,
9902 record_full_beneath_to_insert_breakpoint_ops, and
9903 record_full_beneath_to_remove_breakpoint_ops.
9904 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9905 (m32r_remove_breakpoint): Add target_ops parameter.
9906 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9907 Add target_ops parameter.
9908 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9909 Add target_ops parameter.
9911 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9912 Markus Metzger <markus.t.metzger@intel.com>
9914 * record-btrace.c: Include frame-unwind.h.
9915 (record_btrace_frame_unwind_stop_reason)
9916 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9917 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9919 (init_record_btrace_ops): Install it.
9921 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9923 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9926 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9928 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9931 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9933 * frame-unwind.c: Include target.h.
9934 (frame_unwind_try_unwinder): New function with code from ...
9935 (frame_unwind_find_by_frame): ... here. New variable
9936 unwinder_from_target, call also target_get_unwinder)
9937 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9938 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9939 * target.h (struct target_ops): New fields to_get_unwinder and
9940 to_get_tailcall_unwinder.
9941 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9943 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9945 * record-btrace.c (record_btrace_fetch_registers)
9946 (record_btrace_store_registers)
9947 (record_btrace_to_prepare_to_store): New.
9948 (init_record_btrace_ops): Add the above.
9950 2014-01-16 Tom Tromey <tromey@redhat.com>
9952 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9953 * target.h (struct target_ops) <to_prepare_to_store>: Add
9955 (target_prepare_to_store): Add argument.
9956 * target.c (debug_to_prepare_to_store): Add argument.
9957 (update_current_target): Update.
9958 * remote.c (remote_prepare_to_store): Add 'self' argument.
9959 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9960 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9961 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9962 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9964 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9965 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9966 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9967 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9968 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9970 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9972 * btrace.h (replay) <replay>: New.
9973 (btrace_is_replaying): New.
9974 * btrace.c (btrace_clear): Free replay iterator.
9975 (btrace_is_replaying): New.
9976 * record-btrace.c (record_btrace_is_replaying): New.
9977 (record_btrace_info): Print insn number if replaying.
9978 (record_btrace_insn_history): Start at replay position.
9979 (record_btrace_call_history): Start at replay position.
9980 (init_record_btrace_ops): Init to_record_is_replaying.
9982 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9984 * record-btrace.c (record_btrace_insn_history_range): Include
9986 (record_btrace_insn_history_from): Adjust range.
9987 (record_btrace_call_history_range): Include
9989 (record_btrace_call_history_from): Adjust range.
9990 * NEWS: Announce changes.
9992 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9994 * record.h (enum record_print_flag)
9995 <record_print_indent_calls>: New.
9996 * record.c (get_call_history_modifiers): Recognize /c modifier.
9997 (_initialize_record): Document /c modifier.
9998 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9999 Reorder fields. Optionally indent the function name. Update
10001 * NEWS: Announce changes.
10003 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10005 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10007 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10009 * btrace.c (ftrace_new_function): Start counting at one.
10010 * record-btrace.c (record_btrace_info): Adjust number of calls
10012 * NEWS: Announce it.
10014 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10016 * record-btrace.c (btrace_call_history_insn_range): Print
10017 insn range as [begin, end].
10019 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10021 * btrace.h (struct btrace_func_link): New.
10022 (enum btrace_function_flag): New.
10023 (struct btrace_inst): Rename to ...
10024 (struct btrace_insn): ...this. Update all users.
10025 (struct btrace_func) <ibegin, iend>: Remove.
10026 (struct btrace_func_link): New.
10027 (struct btrace_func): Rename to ...
10028 (struct btrace_function): ...this. Update all users.
10029 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10030 (number, level, flags>: New.
10031 (struct btrace_insn_iterator): Rename to ...
10032 (struct btrace_insn_history): ...this.
10034 (struct btrace_insn_iterator, btrace_call_iterator): New.
10035 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10036 (struct btrace_target_info) <begin, end, level>
10037 <insn_history, call_history>: New.
10038 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10039 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10040 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10041 (btrace_call_number, btrace_call_begin, btrace_call_end)
10042 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10043 (btrace_find_function_by_number, btrace_set_insn_history)
10044 (btrace_set_call_history): New.
10045 * btrace.c (btrace_init_insn_iterator)
10046 (btrace_init_func_iterator, compute_itrace): Remove.
10047 (ftrace_print_function_name, ftrace_print_filename)
10048 (ftrace_skip_file): Change
10049 parameter to const.
10050 (ftrace_init_func): Remove.
10051 (ftrace_debug): Use new btrace_function fields.
10052 (ftrace_function_switched): Also consider gaining and
10053 losing symbol information).
10054 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10055 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10056 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10058 (ftrace_new_function): Move. Remove debug print.
10059 (ftrace_update_lines, ftrace_update_insns): New.
10060 (ftrace_update_function): Check for call, ret, and jump.
10061 (compute_ftrace): Renamed to ...
10062 (btrace_compute_ftrace): ...this. Rewritten to compute call
10064 (btrace_fetch, btrace_clear): Updated.
10065 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10066 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10067 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10068 (btrace_call_number, btrace_call_begin, btrace_call_end)
10069 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10070 (btrace_find_function_by_number, btrace_set_insn_history)
10071 (btrace_set_call_history): New.
10072 * record-btrace.c (require_btrace): Use new btrace thread
10074 (record_btrace_info, btrace_insn_history)
10075 (record_btrace_insn_history, record_btrace_insn_history_range):
10076 Use new btrace thread info fields and new iterator.
10077 (btrace_func_history_src_line): Rename to ...
10078 (btrace_call_history_src_line): ...this. Use new btrace
10079 thread info fields.
10080 (btrace_func_history): Rename to ...
10081 (btrace_call_history): ...this. Use new btrace thread info
10082 fields and new iterator.
10083 (record_btrace_call_history, record_btrace_call_history_range):
10084 Use new btrace thread info fields and new iterator.
10086 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10088 * frame.h (frame_id_build_unavailable_stack_special): New.
10089 * frame.c (frame_id_build_unavailable_stack_special): New.
10091 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10093 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10094 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10095 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10097 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10098 (i386_insn_is_jump, i386_jmp_p): New.
10099 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10100 insn_is_jump to gdbarch.
10101 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10102 * gdbarch.h: Regenerated.
10103 * gdbarch.c: Regenerated.
10104 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10105 (default_insn_is_jump): New.
10106 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10107 (default_insn_is_jump): New.
10109 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10111 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10113 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10114 (btrace_read_type) <btrace_read_new>: Change to ...
10115 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10117 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10119 * common/linux-btrace.c (linux_read_btrace): Free trace from
10120 previous iteration.
10122 2014-01-15 Doug Evans <dje@google.com>
10124 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10127 2014-01-15 Tom Tromey <tromey@redhat.com>
10129 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10130 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10131 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10132 (set_objfile_main_name): New function.
10133 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10134 language_of_main>: New fields.
10135 (set_objfile_main_name): Declare.
10136 * symtab.c (find_main_name): Loop over objfiles to find the main
10138 (set_main_name): Now static.
10139 (get_main_info): Add comment.
10140 * symtab.h (set_main_name): Don't declare.
10142 2014-01-15 Tom Tromey <tromey@redhat.com>
10144 * symtab.c (main_progspace_key): New global.
10145 (struct main_info): New.
10146 (name_of_main, language_of_main): Remove.
10147 (get_main_info, main_info_cleanup): New function.
10148 (set_main_name, main_name, main_language): Use get_main_info.
10149 (_initialize_symtab): Initialize main_progspace_key.
10151 2014-01-15 Tom Tromey <tromey@redhat.com>
10153 * dbxread.c (process_one_symbol): Update.
10154 * dwarf2read.c (read_partial_die): Update.
10155 * symfile.c (set_initial_language): Call main_language.
10156 * symtab.c (language_of_main): Now static.
10157 (set_main_name): Add 'lang' parameter.
10158 (find_main_name): Update.
10159 (main_language): New function.
10160 (symtab_observer_executable_changed): Update.
10161 * symtab.h (set_main_name): Update.
10162 (language_of_main): Remove.
10163 (main_language): Declare.
10165 2014-01-15 Tom Tromey <tromey@redhat.com>
10167 * symfile.c (init_entry_point_info): Use new "initialized" field.
10169 * objfiles.h (struct entry_point) <initialized>: New field.
10170 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10171 (struct objfile) <ei>: ...here. Remove.
10172 * objfiles.c (entry_point_address_query): Update.
10174 2014-01-15 Tom Tromey <tromey@redhat.com>
10176 * objfiles.c (entry_point_address_query): Relocate entry point
10178 (objfile_relocate1): Do not relocate entry point address.
10179 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10180 <the_bfd_section_index>: New field.
10181 * symfile.c (init_entry_point_info): Find the entry point's
10184 2014-01-15 Tom Tromey <tromey@redhat.com>
10186 * solib-frv.c (enable_break): Use entry_point_address_query.
10188 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10190 * NEWS: Add note on improved process record-replay on
10191 arm*-linux* targets.
10193 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10195 * arm-tdep.c (enum arm_record_result): New enum.
10196 (arm_record_unsupported_insn): New function.
10197 (arm_record_coproc_data_proc): Removed.
10198 (thumb2_record_ld_st_multiple): New function.
10199 (thumb2_record_ld_st_dual_ex_tbb): New function.
10200 (thumb2_record_data_proc_sreg_mimm): New function.
10201 (thumb2_record_ps_dest_generic): New function.
10202 (thumb2_record_branch_misc_cntrl): New function.
10203 (thumb2_record_str_single_data): New function.
10204 (thumb2_record_ld_mem_hints): New function.
10205 (thumb2_record_ld_word): New function.
10206 (thumb2_record_lmul_lmla_div): New function.
10207 (thumb2_record_decode_insn_handler): New function.
10208 (decode_insn): Add thumb32 instruction handlers.
10210 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10212 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10213 (struct arm_linux_record_tdep): Declare.
10214 (arm_canonicalize_syscall): New function.
10215 (arm_all_but_pc_registers_record): New function.
10216 (arm_linux_syscall_record): New function.
10217 (arm_linux_init_abi): Add syscall recording constructs.
10218 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10219 decoding. (arm_record_coproc_data_proc): Update arm syscall
10221 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10222 <arm_syscall_record>: New field.
10223 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10226 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10228 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10229 register for push instruction recording.
10231 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10233 * arm-tdep.c (thumb_record_misc): Update to correct logical
10234 error while recording ldm, ldmia and pop instructions.
10236 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10238 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10240 2014-01-15 Pedro Alves <palves@redhat.com>
10242 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10243 (go32_resume, go32_fetch_registers, store_register)
10244 (go32_store_registers, go32_prepare_to_store)
10245 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10246 (go32_create_inferior, go32_can_run, go32_terminal_init)
10247 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10250 2014-01-15 Tom Tromey <tromey@redhat.com>
10252 * target.h (async_callback_ftype): New typedef.
10253 (struct target_ops) <to_async>: Use it.
10255 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10257 * python/py-value.c (get_field_type): Remove unnecessary curly
10258 braces for single-statement if block.
10260 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10262 * python/py-type.c (convert_field): Add missing empty line
10263 after declarations.
10265 2014-01-14 Doug Evans <dje@google.com>
10267 * symfile.h (expand_symtabs_matching): Renamed from
10268 expand_partial_symbol_names. Update prototype.
10269 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10270 * symfile.c (expand_symtabs_matching): Renamed from
10271 expand_partial_symbol_names. New args file_matcher, kind.
10272 Rename arg fun to symbol_matcher.
10273 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10274 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10275 ada_expand_partial_symbol_name.
10276 (ada_make_symbol_completion_list): Update to call
10277 expand_symtabs_matching.
10278 (ada_add_global_exceptions): Call expand_symtabs_matching.
10279 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10280 call map_symbol_filenames.
10281 * symtab.c (sources_info): Update to call map_symbol_filenames.
10282 (search_symbols): Call expand_symtabs_matching.
10283 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10284 (default_make_symbol_completion_list_break_on): Update to call
10285 expand_symtabs_matching.
10286 (make_source_files_completion_list): Update to call
10287 map_symbol_filenames.
10289 2014-01-14 Doug Evans <dje@google.com>
10291 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10292 (expand_symtabs_symbol_matcher_ftype): New typedef.
10293 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10294 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10295 * symfile.c (expand_partial_symbol_names): Update to use
10296 expand_symtabs_symbol_matcher_ftype.
10297 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10298 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10299 Arg name_matcher renamed to symbol_matcher.
10300 * psymtab.c (recursively_search_psymtabs): Update to use
10301 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10303 (expand_symtabs_matching_via_partial): Update to use
10304 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10305 Arg name_matcher renamed to symbol_matcher.
10307 2014-01-14 Doug Evans <dje@google.com>
10309 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10310 (map_partial_symbol_filenames): Ditto.
10311 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10312 (map_partial_symbol_filenames): Ditto.
10313 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10314 (map_partial_symbol_filenames): Ditto.
10315 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10316 (map_partial_symbol_filenames): Ditto.
10317 * symtab.c: Delete #include "psymtab.h".
10319 2014-01-14 Pedro Alves <palves@redhat.com>
10320 Tom Tromey <tromey@redhat.com>
10322 * infrun.c (use_displaced_stepping): Use find_record_target
10323 instead of RECORD_IS_USED.
10324 (adjust_pc_after_break): Use record_full_is_used instead of
10326 * record-btrace.c (record_btrace_open): Call record_preopen
10327 instead of checking RECORD_IS_USED.
10328 * record-full.c (record_full_shortname)
10329 (record_full_core_shortname): New globals.
10330 (record_full_is_used): New function.
10331 (find_full_open): Call record_preopen instead of checking
10333 (init_record_full_ops): Set the target's shortname to
10334 record_full_shortname.
10335 (init_record_full_core_ops): Set the target's shortname to
10336 record_full_core_shortname.
10337 * record-full.h (record_full_is_used): Declare.
10338 * record.c (find_record_target): Make extern.
10339 (record_preopen): New function.
10340 * record.h (RECORD_IS_USED): Delete macro.
10341 (find_record_target, record_preopen): Declare functions.
10343 2014-01-14 Yao Qi <yao@codesourcery.com>
10345 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10346 'len''s type to ULONGEST.
10347 (core_xfer_shared_libraries_aix): Likewise.
10348 * gdbarch.c, gdbarch.h: Regenerated.
10349 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10350 Change type of 'len' to ULONGEST.
10351 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10352 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10354 2014-01-14 Yao Qi <yao@codesourcery.com>
10356 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10357 type of 'len' to ULONGEST.
10358 (linux_xfer_osdata_processgroups): Likewise.
10359 (linux_xfer_osdata_threads): Likewise.
10360 (linux_xfer_osdata_fds): Likewise.
10361 (linux_xfer_osdata_isockets): Likewise.
10362 (linux_xfer_osdata_shm): Likewise.
10363 (linux_xfer_osdata_sem): Likewise.
10364 (linux_xfer_osdata_msg): Likewise.
10365 (linux_common_xfer_osdata): Likewise.
10366 (struct osdata_type) <getter>: Likewise.
10367 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10370 2014-01-14 Yao Qi <yao@codesourcery.com>
10372 * target.h (target_xfer_partial_ftype): Update.
10373 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10375 * aix-thread.c (aix_thread_xfer_partial): Change type of
10376 argument 'len' to ULONGEST.
10377 * auxv.c (procfs_xfer_auxv): Likewise.
10378 (ld_so_xfer_auxv): Likewise.
10379 (memory_xfer_auxv): Likewise.
10380 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10381 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10382 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10383 * corelow.c (core_xfer_partial): Likewise.
10384 * ctf.c (ctf_xfer_partial): Likewise.
10385 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10387 (darwin_read_dyld_info): Likewise.
10388 (darwin_xfer_partial): Likewise.
10389 * exec.c (section_table_xfer_memory_partial): Likewise.
10390 (exec_xfer_partial): Likewise.
10391 * exec.h (section_table_xfer_memory_partial): Update
10393 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10394 instead of plongest.
10395 (gnu_xfer_partial): Likewise.
10396 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10397 (ia64_hpux_xfer_solib_got): Likewise.
10398 (ia64_hpux_xfer_partial): Likewise.
10399 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10400 * inf-ptrace.c (inf_ptrace_xfer_partial):
10401 * inf-ttrace.c (inf_ttrace_xfer_partial):
10402 * linux-nat.c (linux_xfer_siginfo): Likewise.
10403 (linux_nat_xfer_partial): Likewise.
10404 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10405 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10406 * monitor.c (monitor_xfer_memory): Likewise.
10407 (monitor_xfer_partial): Likewise.
10408 * procfs.c (procfs_xfer_partial): Likewise.
10409 * record-full.c (record_full_xfer_partial): Likewise.
10410 (record_full_core_xfer_partial): Likewise.
10411 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10412 instead of plongest.
10413 (gdbsim_xfer_partial): Likewise.
10414 * remote.c (remote_xfer_partial): Likewise.
10415 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10416 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10418 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10419 (rs6000_xfer_shared_libraries): Likewise.
10420 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10421 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10422 (sparc_xfer_partial): Likewise.
10423 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10424 (spu_xfer_partial): Likewise.
10425 * spu-multiarch.c (spu_xfer_partial): Likewise.
10426 * target.c (target_read_live_memory): Likewise.
10427 (memory_xfer_live_readonly_partial): Likewise.
10428 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10429 (target_xfer_partial, default_xfer_partial): Likewise.
10430 (current_xfer_partial): Likewise.
10431 * tracepoint.c (tfile_xfer_partial): Likewise.
10432 * windows-nat.c (windows_xfer_memory): Likewise. Call
10433 pulongest instead of plongest.
10434 (windows_xfer_partial): Likewise.
10435 (windows_xfer_shared_libraries): Likewise.
10437 2014-01-14 Yao Qi <yao@codesourcery.com>
10439 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10440 target_xfer_partial_ftype.
10442 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10446 * valops.c (value_struct_elt_bitpos): New function
10447 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10448 object to 'None' if the field name is an empty string ("").
10449 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10450 attribute to look for a field when 'name' is 'None'.
10451 (get_field_type): New function
10453 2014-01-13 Doug Evans <dje@google.com>
10456 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10457 (try_open_dwop_file): Ditto.
10458 * gdb_bfd.c: #include "vec.h".
10459 (bfdp): New typedef.
10460 (struct gdb_bfd_data): New member included_bfds.
10461 (gdb_bfd_unref): Unref all included bfds.
10462 (gdb_bfd_record_inclusion): New function.
10463 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10465 2014-01-13 Tom Tromey <tromey@redhat.com>
10467 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10469 2014-01-13 Tom Tromey <tromey@redhat.com>
10471 * defs.h (use_windows): Remove.
10472 * gdb.c (main): Update.
10473 * main.c (captured_main, gdb_main): Update.
10474 * main.h (struct captured_main_args) <use_windows>: Remove.
10475 * top.c (use_windows): Remove.
10477 2014-01-13 Tom Tromey <tromey@redhat.com>
10479 * defs.h (deprecated_flush_hook): Remove.
10481 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10484 * linux-thread-db.c (try_thread_db_load): Add parameter
10485 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10486 (try_thread_db_load_from_pdir_1): Move it there from here.
10487 (try_thread_db_load_from_sdir): Update caller.
10488 (try_thread_db_load_from_dir): Move it there from here.
10490 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10492 * regformats/regdat.sh: Always rewrite the register file.
10494 2014-01-13 Pedro Alves <palves@redhat.com>
10496 * Makefile.in (CHECK_HEADERS): New variable.
10497 (check-headers:): New rule.
10499 2014-01-13 Tom Tromey <tromey@redhat.com>
10501 * cli/cli-setshow.c (do_set_command): Update.
10502 * defs.h (deprecated_set_hook): Remove.
10503 * top.c (deprecated_set_hook): Remove.
10505 2014-01-13 Pedro Alves <palves@redhat.com>
10507 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10508 the tracepoint if the PC is a pseudo-register.
10510 2014-01-13 Tom Tromey <tromey@redhat.com>
10512 * defs.h (XCALLOC): Remove.
10513 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10514 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10515 * dwarf2loc.c (allocate_piece_closure): Likewise.
10516 * elfread.c (elf_symfile_segments): Likewise.
10517 (elf_symfile_segments): Likewise.
10518 * gdbtypes.c (copy_type_recursive): Likewise.
10519 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10520 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10521 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10523 * mt-tdep.c (mt_gdbarch_init): Likewise.
10524 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10526 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10527 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10528 * registry.c (registry_alloc_data): Likewise.
10529 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10530 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10531 * serial.c (serial_fdopen_ops): Likewise.
10532 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10534 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10535 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10538 2014-01-13 Tom Tromey <tromey@redhat.com>
10540 * defs.h (XMALLOC): Remove.
10541 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10542 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10543 * cli-out.c (struct ui_out *): Likewise.
10544 * cli/cli-dump.c (add_dump_command): Likewise.
10545 (add_dump_command): Likewise.
10546 * complaints.c (get_complaints): Likewise.
10547 (find_complaint): Likewise.
10548 * dwarf2-frame.c (execute_cfa_program): Likewise.
10549 * dwarf2read.c (abbrev_table_read_table): Likewise.
10550 * gdbarch.sh: Likewise.
10551 * gdbarch.c: Rebuild.
10552 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10553 * interps.c (interp_new): Likewise.
10554 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10555 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10556 * mi/mi-console.c (mi_console_file_new): Likewise.
10557 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10558 * mi/mi-out.c (mi_out_new): Likewise.
10559 * mi/mi-parse.c (mi_parse): Likewise.
10560 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10561 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10562 * observer.c (xalloc_observer_list_node): Likewise.
10563 * regcache.c (regcache_xmalloc_1): Likewise.
10564 * reggroups.c (reggroup_new): Likewise.
10565 (_initialize_reggroup): Likewise.
10566 * registry.c (register_data_with_cleanup): Likewise.
10567 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10568 * ser-base.c (serial_ttystate): Likewise.
10569 * ser-mingw.c (make_pipe_state): Likewise.
10570 * ser-pipe.c (pipe_open): Likewise.
10571 * serial.c (serial_open): Likewise.
10572 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10573 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10574 (tui_alloc_win_info): Likewise.
10575 (tui_add_content_elements): Likewise.
10576 * tui/tui-file.c (tui_file_new): Likewise.
10577 * tui/tui-out.c (tui_out_new): Likewise.
10578 * ui-file.c (mem_file_new): Likewise.
10579 * ui-out.c (push_level): Likewise.
10580 (make_cleanup_ui_out_end): Likewise.
10581 (append_header_to_list): Likewise.
10582 (ui_out_new): Likewise.
10583 * user-regs.c (user_reg_add_builtin): Likewise.
10585 2014-01-13 Tom Tromey <tromey@redhat.com>
10587 * defs.h (XZALLOC): Remove.
10588 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10589 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10590 (get_ada_tasks_inferior_data): Likewise.
10591 * auto-load.c (get_auto_load_pspace_data): Likewise.
10592 * auxv.c (get_auxv_inferior_data): Likewise.
10593 * bfd-target.c (target_bfd_reopen): Likewise.
10594 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10595 (deprecated_insert_raw_breakpoint): Likewise.
10596 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10597 * corelow.c (core_open): Likewise.
10598 * darwin-nat.c (darwin_check_new_threads): Likewise.
10599 (darwin_attach_pid): Likewise.
10600 * dummy-frame.c (dummy_frame_push): Likewise.
10601 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10602 * dwarf2loc.c (allocate_piece_closure): Likewise.
10603 * elfread.c (elf_symfile_segments): Likewise.
10604 * eval.c (ptrmath_type_p): Likewise.
10605 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10606 * gdbtypes.c (alloc_type_arch): Likewise.
10607 (alloc_type_instance): Likewise.
10608 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10609 * inf-child.c (inf_child_can_use_agent): Likewise.
10610 * inflow.c (get_inflow_inferior_data): Likewise.
10611 * infrun.c (save_infcall_suspend_state): Likewise.
10612 * jit.c (jit_reader_load): Likewise.
10613 (get_jit_objfile_data): Likewise.
10614 (get_jit_program_space_data): Likewise.
10615 (jit_object_open_impl): Likewise.
10616 (jit_symtab_open_impl): Likewise.
10617 (jit_block_open_impl): Likewise.
10618 (jit_frame_sniffer): Likewise.
10619 * linux-fork.c (add_fork): Likewise.
10620 * maint.c (make_command_stats_cleanup): Likewise.
10621 * objfiles.c (get_objfile_pspace_data): Likewise.
10622 * opencl-lang.c (struct lval_closure): Likewise.
10623 * osdata.c (osdata_start_osdata): Likewise.
10624 * progspace.c (new_address_space): Likewise.
10625 (add_program_space): Likewise.
10626 * remote-sim.c (get_sim_inferior_data): Likewise.
10627 * sh-tdep.c (sh_gdbarch_init): Likewise.
10628 * skip.c (Ignore): Likewise.
10629 (skip_delete_command): Likewise.
10630 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10631 (library_list_start_library): Likewise.
10632 (solib_aix_current_sos): Likewise.
10633 * solib-darwin.c (get_darwin_info): Likewise.
10634 (darwin_current_sos): Likewise.
10635 * solib-dsbt.c (get_dsbt_info): Likewise.
10636 * solib-ia64-hpux.c (new_so_list): Likewise.
10637 (ia64_hpux_get_solib_linkage_addr): Likewise.
10638 * solib-spu.c (append_ocl_sos): Likewise.
10639 (spu_current_sos): Likewise.
10640 * solib-svr4.c (get_svr4_info): Likewise.
10641 (svr4_keep_data_in_core): Likewise.
10642 (library_list_start_library): Likewise.
10643 (svr4_default_sos): Likewise.
10644 (svr4_read_so_list): Likewise.
10645 * solib-target.c (library_list_start_library): Likewise.
10646 (solib_target_current_sos): Likewise.
10647 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10648 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10649 * symfile.c (default_symfile_segments): Likewise.
10650 * target-descriptions.c (tdesc_data_init): Likewise.
10651 (tdesc_create_reg): Likewise.
10652 (struct tdesc_type *): Likewise.
10653 (tdesc_create_vector): Likewise.
10654 (tdesc_set_struct_size): Likewise.
10655 (struct tdesc_type *): Likewise.
10656 (tdesc_free_feature): Likewise.
10657 (tdesc_create_feature): Likewise.
10658 * windows-nat.c (windows_add_thread): Likewise.
10659 (windows_make_so): Likewise.
10660 * xml-support.c (gdb_xml_body_text): Likewise.
10661 (gdb_xml_create_parser_and_cleanup): Likewise.
10662 (xml_process_xincludes): Likewise.
10663 * xml-syscall.c (allocate_syscalls_info): Likewise.
10664 (syscall_create_syscall_desc): Likewise.
10666 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10668 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10669 function, with code from i386_stap_parse_special_token.
10670 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10671 (i386_stap_parse_special_token): Move code to the two functions
10672 above; simplify it.
10674 2014-01-09 Pedro Alves <palves@redhat.com>
10675 Hui Zhu <hui@codesourcery.com>
10678 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10679 bp_err_string. Don't mark the location shlib_disabled if the
10680 error thrown wasn't a generic or memory error. Catch errors
10681 thrown while inserting breakpoints in overlayed code. Output
10682 error message of software breakpoints.
10683 * remote.c (remote_insert_breakpoint): If this breakpoint has
10684 target-side commands but this stub doesn't support Z0 packets,
10685 throw NOT_SUPPORTED_ERROR error.
10686 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10687 * target.h (target_insert_breakpoint): Extend comment.
10688 (target_insert_hw_breakpoint): Add comment.
10690 2014-01-08 Pedro Alves <palves@redhat.com>
10692 * remote.c (remote_add_thread): Add threads silently if starting
10694 (remote_notice_new_inferior): If in all-stop, and starting up,
10695 don't call notice_new_inferior.
10696 (get_current_thread): New function, factored out from ...
10697 (add_current_inferior_and_thread): ... this. Adjust.
10698 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10699 found any thread, then select the remote's current thread as GDB's
10700 current thread too.
10702 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10704 * NEWS: Create a new section for the next release branch.
10705 Rename the section of the current branch, now that it has
10708 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10710 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10711 * version.in: Bump version to 7.7.50.DATE-cvs.
10713 2014-01-08 Yao Qi <yao@codesourcery.com>
10715 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10716 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10717 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10719 2014-01-08 Yao Qi <yao@codesourcery.com>
10721 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10722 return value of bfd_get_filename to symbol_file_add_from_bfd.
10724 2014-01-08 Pierre Muller <muller@sourceware.org>
10727 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10728 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10729 to prim_record_mininal_symbol_and_info.
10730 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10731 in call to prim_record_minimal_symbol_and_info.
10732 (read_pe_exported_syms): Set index field of section_data.
10734 2014-01-07 Andrew Pinski <apinski@cavium.com>
10736 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10737 * features/aarch64.c: Regenerate.
10739 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10741 * target.c (return_null): Define.
10742 (update_current_target): Use it instead of return_zero for
10743 functions that return a pointer.
10745 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10747 * source.c (add_path): Fix check for duplicated paths in the previously
10750 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10752 * ada-lang.c: Remove duplicated include statements.
10753 * alphabsd-nat.c: Ditto.
10754 * amd64-darwin-tdep.c: Ditto.
10755 * amd64fbsd-nat.c: Ditto.
10756 * auto-load.c: Ditto.
10758 * breakpoint.c: Ditto.
10759 * dbxread.c: Ditto.
10760 * fork-child.c: Ditto.
10761 * gdb_usleep.c: Ditto.
10762 * i386-darwin-tdep.c: Ditto.
10763 * i386fbsd-nat.c: Ditto.
10765 * inferior.c: Ditto.
10766 * jv-lang.c: Ditto.
10767 * linux-nat.c: Ditto.
10768 * linux-tdep.c: Ditto.
10769 * m68kbsd-nat.c: Ditto.
10770 * m68klinux-nat.c: Ditto.
10771 * microblaze-tdep.c: Ditto.
10772 * mips-linux-tdep.c: Ditto.
10773 * mn10300-tdep.c: Ditto.
10774 * nto-tdep.c: Ditto.
10775 * opencl-lang.c: Ditto.
10777 * printcmd.c: Ditto.
10778 * regcache.c: Ditto.
10779 * remote-m32r-sdi.c: Ditto.
10781 * symfile.c: Ditto.
10783 * tilegx-linux-nat.c: Ditto.
10784 * tilegx-tdep.c: Ditto.
10785 * tracepoint.c: Ditto.
10787 * vaxbsd-nat.c: Ditto.
10788 * windows-nat.c: Ditto.
10789 * xtensa-tdep.c: Ditto.
10791 2014-01-07 Yao Qi <yao@codesourcery.com>
10793 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10795 2014-01-07 Yao Qi <yao@codesourcery.com>
10796 Joel Brobecker <brobecker@adacore.com>
10798 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10799 (pdc_write_regs): Likewise.
10800 (fetch_regs_kernel_thread): Likewise.
10801 (store_regs_kernel_thread): Likewise.
10803 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10805 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10806 tagged type objects to their actual type.
10808 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10810 * ada-valprint.c (print_field_values): Add "language" parameter.
10811 Update calls to print_field_values and print_variant_part.
10812 Pass new parameter "language" in call to val_print instead
10813 of "current_language". Replace call to ada_val_print by call
10815 (print_variant_part): Add "language" parameter.
10816 (ada_val_print_struct_union): Update call to print_field_values.
10818 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10820 * ada-valprint.c (ui_memcpy): Delete.
10821 (ada_print_floating): Update documentation. Add empty line
10822 between between function documentation and implementation.
10823 Delete variable "buffer". Use ui_file_xstrdup in place of
10824 ui_file_put. Minor adjustments following this change.
10826 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10828 * ada-valprint.c (ada_val_print_string): New function,
10829 extracted from ada_val_print_array.
10830 (ada_val_print_array): Replace extracted code by call
10831 to ada_val_print_string followed by a return. Move
10832 "else" branch to the function's top block.
10834 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10836 * ada-valprint.c (ada_val_print_array): Move implementation
10837 down. Rename parameter "offset" and "val" into "offset_aligned"
10838 and "original_value" respectively. Add parameter "offset".
10840 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10842 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10843 re-organizing the code. Change the "???" message printed
10844 when target type is a TYPE_CODE_UNDEF into
10845 "<ref to undefined type>".
10847 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10849 * ada-valprint.c (print_record): Delete, implementation inlined...
10850 (ada_val_print_struct_union): ... here. Remove call to
10851 ada_check_typedef in inlined implementation.
10853 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10855 * ada-valprint.c (ada_val_print_gnat_array): New function,
10856 extracted from ada_val_print_1;
10857 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10858 (ada_val_print_flt, ada_val_print_struct_union)
10859 (ada_val_print_ref): Likewise.
10860 (ada_val_print_1): Delete variables i and elttype.
10861 Replace extracted-out code by call to corresponding
10864 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10866 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10868 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10870 * ada-valprint.c (ada_val_print_1): Replace calls to
10871 ada_val_print_1 by calls to val_print.
10873 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10875 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10876 Update calls to self accordingly. Replace calls to c_val_print
10877 by calls to val_print.
10879 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10881 * ada-valprint.c (print_record): Delete declaration.
10882 (adjust_type_signedness, ada_val_print_1): Likewise.
10883 (ada_val_print): Move function implementation down.
10884 (print_variant_part, print_field_values, print_record):
10885 Move function implementation up.
10887 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10889 * python/py-type.c (typy_get_name): New function.
10890 (type_object_getset): Add entry for attribute "name".
10891 * NEWS: Add entry mentioning this new attribute.
10893 2014-01-07 Yao Qi <yao@codesourcery.com>
10895 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10898 2014-01-07 Yao Qi <yao@codesourcery.com>
10900 * gnu-nat.c (info_port_rights): Add qualifier const to
10903 2014-01-07 Yao Qi <yao@codesourcery.com>
10905 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10907 2014-01-07 Yao Qi <yao@codesourcery.com>
10909 * gnu-nat.c (make_inf) Update declaration.
10910 (make_inf): Make it static.
10911 (inf_set_traced): Likewise.
10912 (inf_port_to_thread, inf_task_died_status): Likewise.
10914 2014-01-07 Yao Qi <yao@codesourcery.com>
10916 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10918 2014-01-07 Yao Qi <yao@codesourcery.com>
10920 * gnu-nat.c (_initialize_gnu_nat): Declare.
10922 2014-01-07 Yao Qi <yao@codesourcery.com>
10924 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10926 (struct gdbarch_info) <byte_order>: Change type to
10928 <byte_order_for_code>: Likewise.
10929 * gdbarch.c, gdbarch.h: Regenerated.
10931 2014-01-06 Sasha Smundak <asmundak@google.com>
10933 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10935 2014-01-06 Tom Tromey <tromey@redhat.com>
10937 * doublest.c (convert_doublest_to_floatformat): Use const, not
10939 * somread.c (som_symtab_read): Likewise.
10941 2014-01-07 Hui Zhu <hui@codesourcery.com>
10943 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10944 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10945 (gdb_bfd_fopen): Ditto.
10946 (gdb_bfd_openr): Ditto.
10947 (gdb_bfd_openw): Ditto.
10948 (gdb_bfd_openr_iovec): Ditto.
10949 (gdb_bfd_fdopenr): Ditto.
10950 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10951 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10953 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10955 * symfile-mem.c (symbol_file_add_from_memory): Removed
10956 gdb_bfd_stash_filename.
10958 2014-01-03 Doug Evans <dje@google.com>
10960 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10963 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10965 Update year range in copyright notice of all files.
10967 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10969 * top.c (print_gdb_version): Set copyright year to 2014.
10971 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10973 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10975 For older changes see ChangeLog-2013.
10981 version-control: never