1 2014-07-30 Tom Tromey <tromey@redhat.com>
3 * target.c (open_target): New function.
4 (add_target_with_completer, add_deprecated_target_alias): Use
5 set_cmd_sfunc, set_cmd_context.
6 (debug_to_open): Remove.
7 (setup_target_debug): Update.
9 2014-07-30 Yao Qi <yao@codesourcery.com>
11 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
13 * parse.c (exp_iterate): Update comments.
15 2014-07-30 Gary Benson <gbenson@redhat.com>
17 * common/common-defs.h: New file.
18 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
19 * defs.h: Include common-defs.h.
20 Do not include config.h or build-gnulib/config.h.
22 2014-07-30 Gary Benson <gbenson@redhat.com>
24 * common/common-utils.h: Do not include config.h.
25 * nat/linux-btrace.h: Likewise.
27 2014-07-30 Gary Benson <gbenson@redhat.com>
29 * btrace.c: Include defs.h.
30 * common/ptid.c: Include defs.h or server.h as appropriate.
31 * nat/mips-linux-watch.c: Likewise.
33 2014-07-29 Tom Tromey <tromey@redhat.com>
35 * target.c (target_is_pushed): Simplify.
37 2014-07-29 Joel Brobecker <brobecker@adacore.com>
41 2014-07-29 Yao Qi <yao@codesourcery.com>
44 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
46 2014-07-28 Doug Evans <xdje42@gmail.com>
49 * guile/scm-param.c (pascm_parameter_defined_p): New function.
50 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
53 2014-07-28 Will Newton <will.newton@linaro.org>
55 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
56 (THUMB2_SET_R7_SIGRETURN2): Likewise.
57 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
58 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
59 (THUMB2_EABI_SYSCALL): Likewise.
60 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
62 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
63 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
65 2014-07-27 Doug Evans <xdje42@gmail.com>
67 * guile/scm-param.c (pascm_print_param_smob): Fix output.
69 2014-07-27 Doug Evans <xdje42@gmail.com>
71 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
73 2014-07-26 Ludovic Courtès <ludo@gnu.org>
74 Doug Evans <xdje42@gmail.com>
77 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
78 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
79 * configure.ac: Try to use guild to compile an scm file, if it fails
80 then disable guile support.
81 * configure: Regenerate.
82 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
84 (GUILE_COMPILED_FILES): New variable.
86 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
87 (stamp-guile): Compile scm files.
88 * guile/guile.c (boot_guile_support): New function.
89 (standard_throw_args_p): New function.
90 (print_standard_throw_error, print_throw_error): New functions.
91 (handle_boot_error): New function.
92 (initialize_scheme_side): Rewrite to call boot_guile_support.
93 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
94 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
96 2014-07-26 Ludovic Courtès <ludo@gnu.org>
97 Doug Evans <xdje42@gmail.com>
100 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
101 * guile/lib/gdb/support.scm: New file.
102 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
103 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
105 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
107 (%assert-type): Ditto, and renamed to assert-type.
108 (%exception-print-style): Delete.
110 2014-07-26 Doug Evans <xdje42@gmail.com>
113 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
114 * configure: Regenerate.
115 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
117 (PYTHON_FILES): New variable.
118 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
119 (GUILE_FILES): New variable.
120 (stamp-python, install-python, uninstall-python): Handle empty
122 (stamp-guile, install-guile, uninstall-guile): Ditto.
124 2014-07-26 Doug Evans <xdje42@gmail.com>
127 * guile/lib/gdb.scm (pretty-printers): Export.
128 (set-pretty-printers!): Export.
129 * guile/lib/gdb/printing.scm (gdb module): Update.
130 (prepend-pretty-printer!, append-pretty-printer!): Update.
131 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
132 (pretty_printer_list_var): Delete.
133 (pretty_printer_list): New static global.
134 (gdbscm_pretty_printers): New function.
135 (gdbscm_set_pretty_printers_x): New function.
136 (ppscm_find_pretty_printer_from_gdb): Update.
137 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
138 (gdbscm_initialize_pretty_printers): Update.
140 2014-07-26 Doug Evans <xdje42@gmail.com>
143 * configure.ac: Add check for header gc/gc.h.
144 Add check for function setenv.
145 * configure: Regenerate.
146 * config.in: Regenerate.
147 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
149 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
151 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
152 variation in gdbarch matching.
154 2014-07-25 Tom Tromey <tromey@redhat.com>
156 * exec.c (using_exec_ops): Remove.
157 (exec_close_1): Update. Remove extraneous block, reindent.
158 (add_target_sections): Use target_is_pushed.
160 2014-07-25 Pedro Alves <palves@redhat.com>
162 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
163 * monitor.c (monitor_create_inferior): Likewise.
164 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
165 * remote-sim.c (gdbsim_create_inferior): Likewise.
166 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
167 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
168 * windows-nat.c (do_initial_windows_stuff): Likewise.
170 2014-07-25 Pedro Alves <palves@redhat.com>
172 * NEWS: Mention signal passing and "signal" command changes.
173 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
175 * breakpoint.c (until_break_command): Adjust clear_proceed_status
177 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
178 * infcmd.c (proceed_thread_callback, continue_1, step_once)
179 (jump_command): Adjust clear_proceed_status call.
180 (signal_command): Warn if other thread that are resumed have
181 signals that will be delivered. Adjust clear_proceed_status call.
182 (until_next_command, finish_command)
183 (proceed_after_attach_callback, attach_command_post_wait)
184 (attach_command): Adjust clear_proceed_status call.
185 * infrun.c (proceed_after_vfork_done): Likewise.
186 (proceed_after_attach_callback): Adjust comment.
187 (clear_proceed_status_thread): Clear stop_signal if not in pass
189 (clear_proceed_status_callback): Delete.
190 (clear_proceed_status): New 'step' parameter. Only clear the
191 proceed status of threads the command being prepared is about to
193 (proceed): If passed in an explicit signal, override stop_signal
194 with it. Don't pass the last stop signal to the thread we're
196 (init_wait_for_inferior): Adjust clear_proceed_status call.
197 (switch_back_to_stepped_thread): Clear the signal if it should not
199 * infrun.h (clear_proceed_status): New 'step' parameter.
200 (user_visible_resume_ptid): Add comment.
201 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
202 signal is in pass state.
203 * remote.c (append_pending_thread_resumptions): Likewise.
204 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
206 2014-07-25 Tom Tromey <tromey@redhat.com>
208 * target.h (target_stopped_data_address)
209 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
212 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
214 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
216 (avr_pointer_to_address): Likewise.
218 2014-07-24 Tom Tromey <tromey@redhat.com>
220 * monitor.c (compile_pattern): Update.
221 * target.h (struct target_ops) <to_shortname, to_longname,
224 2014-07-24 Tom Tromey <tromey@redhat.com>
226 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
227 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
228 (add_info_alias, add_com): Make "doc" const.
229 (print_doc_line): Make "str" const.
230 (delete_cmd): Update.
231 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
232 (print_doc_line): Update.
233 * cli/cli-script.c (document_command): Update.
234 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
235 (add_com, add_info, add_info_alias): Update.
236 * guile/scm-cmd.c (cmdscm_destroyer): Update.
237 * python/py-cmd.c (cmdpy_destroyer): Update.
239 2014-07-24 Tom Tromey <tromey@redhat.com>
241 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
242 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
243 (help_cmd_list): Constify.
244 (lookup_cmd): Update.
245 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
247 (help_cmd_list, apropos_cmd): Update.
248 * cli/cli-script.c (show_user): Update.
249 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
250 * cli/cli-setshow.h (cmd_show_list): Update.
251 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
252 (cmd_show_list): Update.
253 * guile/scm-cmd.c (cmdscm_destroyer): Update.
254 * python/py-cmd.c (cmdpy_destroyer): Update.
256 2014-07-24 Tom Tromey <tromey@redhat.com>
258 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
259 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
261 * command.h (deprecate_cmd): Update.
262 * maint.c (maintenance_do_deprecate): Add casts.
264 2014-07-24 Tom Tromey <tromey@redhat.com>
266 * cli/cli-decode.c (help_cmd): Make parameter "const".
267 * cli/cli-decode.h (help_cmd): Update.
269 2014-07-24 Tom Tromey <tromey@redhat.com>
271 * stack.c (up_silently_base, down_silently_base): Make argument
274 2014-07-24 Tom Tromey <tromey@redhat.com>
276 * solib.c (solib_add): Make "pattern" const.
277 * solib.h (solib_add): Update.
279 2014-07-24 Tom Tromey <tromey@redhat.com>
281 * remote.c (remote_serial_open, print_packet, putpkt)
282 (putpkt_binary): Constify.
283 * remote.h (putpkt): Update.
285 2014-07-24 Tom Tromey <tromey@redhat.com>
287 * monitor.c (monitor_open): Make "args" const.
288 * monitor.h (monitor_open): Update.
290 2014-07-24 Tom Tromey <tromey@redhat.com>
292 * maint.c (match_bfd_flags): Make "string" const.
293 (print_bfd_section_info): Remove casts.
294 (print_objfile_section_info): Make "string" const.
296 2014-07-24 Tom Tromey <tromey@redhat.com>
298 * inf-child.c (inf_child_open_target): Make "arg" const.
299 * inf-child.h (inf_child_open_target): Update.
301 2014-07-24 Tom Tromey <tromey@redhat.com>
303 * environ.c (unset_in_environ): Make "var" const.
304 * environ.h (unset_in_environ): Update.
306 2014-07-24 Tom Tromey <tromey@redhat.com>
308 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
310 (scan_filename_with_cleanup): Likewise.
311 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
312 Make arguments const.
313 (restore_command): Update.
315 2014-07-24 Pedro Alves <palves@redhat.com>
317 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
319 2014-07-24 Tom Tromey <tromey@redhat.com>
320 Gary Benson <gbenson@redhat.com>
322 * nat/linux-ptrace.c (additional_flags): New global.
323 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
324 additional_flags; don't check GDBSERVER.
325 (linux_ptrace_set_additional_flags): New function.
326 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
328 * linux-nat.c (_initialize_linux_nat): Call
329 linux_ptrace_set_additional_flags.
331 2014-07-24 Tom Tromey <tromey@redhat.com>
333 * make-target-delegates (munge_type, write_debugmethod): New
335 (debug_names): New global.
336 ($TARGET_DEBUG_PRINTER): New global.
337 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
339 Write debug methods. Generate init_debug_target.
340 * target-debug.h: New file.
341 * target-delegates.c: Rebuild.
342 * target.c: Include target-debug.h.
343 (debug_target): Hoist definition.
344 (target_kill, target_get_section_table, target_memory_map)
345 (target_flash_erase, target_flash_done, target_detach)
346 (target_disconnect, target_wait, target_resume)
347 (target_pass_signals, target_program_signals, target_follow_fork)
348 (target_mourn_inferior, target_search_memory)
349 (target_thread_address_space, target_close)
350 (target_find_new_threads, target_core_of_thread)
351 (target_verify_memory, target_insert_mask_watchpoint)
352 (target_remove_mask_watchpoint): Remove targetdebug code.
353 (debug_to_post_attach, debug_to_prepare_to_store)
354 (debug_to_files_info, debug_to_insert_breakpoint)
355 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
356 (debug_to_region_ok_for_hw_watchpoint)
357 (debug_to_can_accel_watchpoint_condition)
358 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
359 (debug_to_watchpoint_addr_within_range)
360 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
361 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
362 (debug_to_terminal_init, debug_to_terminal_inferior)
363 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
364 (debug_to_terminal_save_ours, debug_to_terminal_info)
365 (debug_to_load, debug_to_post_startup_inferior)
366 (debug_to_insert_fork_catchpoint)
367 (debug_to_remove_fork_catchpoint)
368 (debug_to_insert_vfork_catchpoint)
369 (debug_to_remove_vfork_catchpoint)
370 (debug_to_insert_exec_catchpoint)
371 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
372 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
373 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
374 (setup_target_debug): Call init_debug_target.
375 * target.h (TARGET_DEBUG_PRINTER): New macro.
376 (struct target_ops) <to_resume, to_wait, to_pass_signals,
377 to_program_signals>: Use TARGET_DEBUG_PRINTER.
379 2014-07-24 Gary Benson <gbenson@redhat.com>
381 * exceptions.h (throw_vfatal): Renamed to...
382 (throw_vquit): New declaration.
383 (throw_quit): Likewise.
384 * exceptions.c (throw_vfatal): Renamed to...
385 (throw_vquit): New function.
386 (throw_quit): Likewise.
387 (throw_error): Call throw_verror rather than throw_it.
388 * utils.h (vfatal): Removed.
390 * utils.c (vfatal): Removed.
392 (internal_verror): Replaced call to fatal with call to throw_quit.
393 (quit): Replaced calls to fatal with calls to throw_quit.
395 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
397 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
400 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
402 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
403 less than zero in conditional expression.
405 2014-07-23 Tom Tromey <tromey@redhat.com>
407 * make-target-delegates ($ARGS_PART): Match trailing close paren.
408 ($INTRO_PART): Don't match whitespace.
409 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
411 ($METHOD): Add $METHOD_TRAILER.
413 (scan_target_h): New sub.
414 Change main loop not to collect state.
415 * target-delegates.c: Rebuild.
417 2014-07-23 Gary Benson <gbenson@redhat.com>
419 * cp-support.c (gdb_demangle): Fix build on systems without
422 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
424 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
425 for reference entry value target data value.
427 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
429 * stack.c (read_frame_arg): Verify value_optimized_out before calling
430 value_available_contents_eq.
432 2014-07-22 Pedro Alves <palves@redhat.com>
434 * value.c (allocate_optimized_out_value): Don't mark value as
437 2014-07-22 Jiong Wang <jiong.wang@arm.com>
439 * MAINTAINERS (Write After Approval): Update my email address.
441 2014-07-20 Doug Evans <dje@google.com>
444 * remote.c (putpkt_binary): Add text to error message.
446 2014-07-20 Yao Qi <yao@codesourcery.com>
448 * eval.c: Remove "Chill" from comments.
449 * gdbtypes.h: Likewise.
450 * symtab.h: Likewise.
452 2014-07-20 Yao Qi <yao@codesourcery.com>
454 * std-operator.def: Update comments to TERNOP_SLICE.
456 2014-07-20 Yao Qi <yao@codesourcery.com>
458 * std-operator.def: Remove BINOP_RANGE.
459 * breakpoint.c (watchpoint_exp_is_const): Update.
460 * expprint.c (dump_subexp_body_standard): Likewise.
461 * eval.c (init_array_element): Remove dead code.
462 (evaluate_subexp_standard): Likewise.
464 2014-07-20 Yao Qi <yao@codesourcery.com>
466 * std-operator.def: Remove BINOP_IN.
467 * breakpoint.c (watchpoint_exp_is_const): Update.
468 * eval.c (evaluate_subexp_standard): Likewise.
469 * expprint.c (dump_subexp_body_standard): Likewise.
471 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
473 * microblaze-tdep.c (microblaze_register_names): Add
474 the rshr and rslr register names.
475 (microblaze_gdbarch_init): Use of tdesc_has_registers.
476 Use of tdesc_find_feature. Use of tdesc_data_alloc.
477 Use of tdesc_numbered_register. Use of
478 microblaze_register_g_packet_guesses. Use of
479 tdesc_use_registers. Use of set_gdbarch_register_type.
480 (microblaze_register_g_packet_guesses): New.
481 * microblaze-tdep.h (microblaze_reg_num): Add
482 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
483 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
484 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
485 * features/microblaze-core.xml: New file.
486 * features/microblaze-stack-protect.xml: New file.
487 * features/microblaze-with-stack-protect.c: New file.
488 * features/microblaze-with-stack-protect.xml: New file.
489 * features/microblaze.xml: New file.
490 * features/microblaze.c: New file.
491 * features/Makefile (microblaze-with-stack-protect): Add
492 microblaze-with-stack-protect microblaze and microblaze-expedite.
493 * regformats/microblaze-with-stack-protect.dat: New file.
494 * regformats/microblaze.dat: New file.
495 * doc/gdb.texinfo (MicroBlaze Features): Added.
497 2014-07-18 Tom Tromey <tromey@redhat.com>
499 * exec.c (exec_ops): Now static.
500 * exec.h (exec_ops): Don't declare.
502 2014-07-18 Tom Tromey <tromey@redhat.com>
504 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
505 to find_target_beneath.
506 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
508 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
510 2014-07-18 Tom Tromey <tromey@redhat.com>
513 * utils.c (quit): Use target_supports_terminal_ours.
514 * target.h (target_supports_terminal_ours): Declare.
515 * target.c (target_supports_delete_record): Don't check
516 to_delete_record against NULL.
517 (target_supports_terminal_ours): New function.
519 2014-07-18 Tom Tromey <tromey@redhat.com>
522 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
523 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
524 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
525 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
526 * windows-nat.c (windows_xfer_partial): Always delegate.
527 * record-btrace.c (record_btrace_xfer_partial): Simplify
529 (record_btrace_fetch_registers, record_btrace_store_registers)
530 (record_btrace_prepare_to_store, record_btrace_resume)
531 (record_btrace_wait, record_btrace_find_new_threads)
532 (record_btrace_thread_alive): Likewise.
533 * procfs.c (procfs_xfer_partial): Always delegate.
534 * corelow.c (core_xfer_partial): Always delegate.
535 * sol-thread.c (sol_find_new_threads): Simplify delegation.
537 2014-07-18 Tom Tromey <tromey@redhat.com>
539 * exec.c (exec_make_note_section): Move earlier.
541 2014-07-17 Doug Evans <dje@google.com>
544 * maint.c (count_symtabs_and_blocks): Handle NULL
545 current_program_space.
546 (report_command_stats): Check global enabled flag in addition to
547 recorded enabled flag.
548 (make_command_stats_cleanup): Handle msg_type == 0, startup.
550 2014-07-16 Pedro Alves <palves@redhat.com>
552 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
554 2014-07-16 Tom Tromey <tromey@redhat.com>
556 * target.h (struct target_ops) <to_delete_record>: Reformat
559 2014-07-16 Tom Tromey <tromey@redhat.com>
561 * target-delegates.c: Rebuild.
563 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
565 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
566 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
567 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
568 (avr_pointer_to_address): Likewise.
569 (avr_address_class_type_flags): New function.
570 (avr_address_class_type_flags_to_name): Likewise.
571 (avr_address_class_name_to_type_flags): Likewise.
572 (avr_gdbarch_init): Set address_class_type_flags,
573 address_class_type_flags_to_name and
574 address_class_name_to_type_flags.
576 2014-07-15 Pedro Alves <palves@redhat.com>
578 * linux-nat.c (kill_callback): Save errno and work with saved
581 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
583 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
585 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
587 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
588 breakpoint support correctly.
590 2014-07-14 Pedro Alves <palves@redhat.com>
592 * utils.c (prompt_for_continue): Call target_terminal_ours.
594 2014-07-14 Pedro Alves <palves@redhat.com>
596 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
597 catch_errors. Don't re-enable stdin or notify observers where,
599 (fetch_inferior_event_wrapper): Delete.
601 2014-07-14 Pedro Alves <palves@redhat.com>
604 * top.c: Include "inf-loop.h".
605 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
607 (gdb_readline_wrapper_cleanup): Make the target async again, if it
609 (gdb_readline_wrapper): Store whether the target is async, and
612 2014-07-14 Pedro Alves <palves@redhat.com>
615 * top.c (gdb_readline_wrapper_line): Tweak comment.
616 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
617 the input handler callback.
619 2014-07-14 Pedro Alves <palves@redhat.com>
622 * main.c: Include event-top.h.
623 (handle_command_errors): New function.
624 (catch_command_errors, catch_command_errors_const): Use it.
626 2014-07-14 Pedro Alves <palves@redhat.com>
628 * exceptions.c (catch_command_errors, catch_command_errors_const):
630 * exceptions.h (catch_command_errors_ftype)
631 (catch_command_errors_const_ftype): Moved to main.c.
632 (catch_command_errors, catch_command_errors_const): Delete
634 * main.c (catch_command_errors_ftype)
635 (catch_command_errors_const_ftype): Moved here from exceptions.h.
636 (catch_command_errors, catch_command_errors_const)): Moved here
637 from exceptions.c and make static.
639 2014-07-14 Pedro Alves <palves@redhat.com>
641 * exceptions.c (print_any_exception): Delete.
642 (catch_exceptions_with_msg): Use exception_print instead of
644 (catch_errors): Use exception_fprintf instead of
646 (catch_command_errors, catch_command_errors_const): Use
647 exception_print instead of print_any_exception.
649 2014-07-14 Pedro Alves <palves@redhat.com>
651 * infcall.c (run_inferior_call): Set 'sync_execution' while
652 running the inferior call.
654 2014-07-14 Pedro Alves <palves@redhat.com>
656 * value.c (value_contents_equal): Delete function.
657 * value.h (value_contents_equal): Delete declaration.
659 2014-07-14 Tom Tromey <tromey@redhat.com>
662 * gdbtypes.c (is_dynamic_type_internal): New function, from
664 (is_dynamic_type): Rewrite.
665 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
666 (resolve_dynamic_struct): Likewise.
667 (resolve_dynamic_type_internal): New function, from
668 resolve_dynamic_type.
669 (resolve_dynamic_type): Rewrite.
671 2014-07-14 Tom Tromey <tromey@redhat.com>
673 * target.c (target_require_runnable): Also check record_stratum.
676 2014-07-11 Yao Qi <yao@codesourcery.com>
678 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
679 thumb_instruction_restores_sp return true.
681 2014-07-11 Yao Qi <yao@codesourcery.com>
683 * arm-tdep.c (thumb_instruction_restores_sp): New function.
684 (thumb_in_function_epilogue_p): Call
685 thumb_instruction_restores_sp.
687 2014-07-11 Yao Qi <yao@codesourcery.com>
689 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
691 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
693 2014-07-11 Gary Benson <gbenson@redhat.com>
695 * amd64-linux-nat.c (gdbcore.h): Remove include.
696 (regset.h): Likewise.
697 (nat/linux-btrace.h): Likewise.
698 (btrace.h): Likewise.
699 (gdb_assert.h): Likewise.
700 (string.h): Likewise.
701 (sys/uio.h): Likewise.
702 (sys/debugreg.h): Likewise.
703 (sys/syscall.h): Likewise.
704 (sys/procfs.h): Likewise.
705 (sys/user.h): Likewise.
706 (asm/ptrace.h): Likewise.
707 (i386-nat.h): Likewise.
708 * i386-linux-nat.c (i386-nat.h): Likewise.
709 (regset.h): Likewise.
710 (target.h): Likewise.
711 (linux-nat.h): Likewise.
712 (nat/linux-btrace.h): Likewise.
713 (btrace.h): Likewise.
714 (gdb_assert.h): Likewise.
715 (string.h): Likewise.
716 (sys/uio.h): Likewise.
717 (sys/user.h): Likewise.
718 (sys/procfs.h): Likewise.
719 (sys/reg.h): Likewise.
720 (sys/debugreg.h): Likewise.
721 (ORIG_EAX): Remove definition.
723 2014-07-11 Gary Benson <gbenson@redhat.com>
725 * i386-linux-nat.h: New file.
726 * x86-linux-nat.h: Likewise.
727 * x86-linux-nat.c: Likewise.
728 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
729 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
730 * config/i386/linux64.mh (NATDEPFILES): Likewise.
731 * amd64-linux-nat.c (x86-linux-nat.h): New include.
732 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
733 (PTRACE_SETREGSET): Likewise.
734 (arch_lwp_info): Now in x86-linux-nat.c.
735 (have_ptrace_getregset): Now in x86-linux-nat.h.
736 (x86_linux_dr_get): Now in x86-linux-nat.c.
737 (x86_linux_dr_set): Likewise.
738 (x86_linux_dr_get_addr): Likewise.
739 (x86_linux_dr_get_control): Likewise.
740 (x86_linux_dr_get_status): Likewise.
741 (update_debug_registers_callback): Likewise.
742 (x86_linux_dr_set_control): Likewise.
743 (x86_linux_dr_set_addr): Likewise.
744 (x86_linux_prepare_to_resume): Likewise.
745 (x86_linux_new_thread): Likewise.
746 (x86_linux_new_fork): Likewise.
747 (x86_linux_get_thread_area): Likewise.
748 (super_post_startup_inferior): Likewise.
749 (x86_linux_child_post_startup_inferior): Likewise.
750 (AMD64_LINUX_USER64_CS): Likewise.
751 (AMD64_LINUX_X32_DS): Likewise.
752 (x86_linux_read_description): Likewise.
753 (x86_linux_enable_btrace): Likewise.
754 (x86_linux_disable_btrace): Likewise.
755 (x86_linux_teardown_btrace): Likewise.
756 (x86_linux_read_btrace): Likewise.
757 (x86_linux_create_target): Likewise.
758 (x86_linux_add_target): Likewise.
759 * i386-linux-nat.c (x86-linux-nat.h): New include.
760 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
761 (PTRACE_SETREGSET): Likewise.
762 (arch_lwp_info): Now in x86-linux-nat.c.
763 (have_ptrace_getregset): Now in x86-linux-nat.h.
764 (x86_linux_dr_get): Now in x86-linux-nat.c.
765 (x86_linux_dr_set): Likewise.
766 (x86_linux_dr_get_addr): Likewise.
767 (x86_linux_dr_get_control): Likewise.
768 (x86_linux_dr_get_status): Likewise.
769 (update_debug_registers_callback): Likewise.
770 (x86_linux_dr_set_control): Likewise.
771 (x86_linux_dr_set_addr): Likewise.
772 (x86_linux_prepare_to_resume): Likewise.
773 (x86_linux_new_thread): Likewise.
774 (x86_linux_new_fork): Likewise.
775 (x86_linux_get_thread_area): Likewise.
776 (super_post_startup_inferior): Likewise.
777 (x86_linux_child_post_startup_inferior): Likewise.
778 (AMD64_LINUX_USER64_CS): Likewise.
779 (AMD64_LINUX_X32_DS): Likewise.
780 (x86_linux_read_description): Likewise.
781 (x86_linux_enable_btrace): Likewise.
782 (x86_linux_disable_btrace): Likewise.
783 (x86_linux_teardown_btrace): Likewise.
784 (x86_linux_read_btrace): Likewise.
785 (x86_linux_create_target): Likewise.
786 (x86_linux_add_target): Likewise.
788 2014-07-11 Gary Benson <gbenson@redhat.com>
790 * amd64-linux-nat.c: Comment and whitespace changes.
791 * i386-linux-nat.c: Comment and whitespace changes.
793 2014-07-11 Gary Benson <gbenson@redhat.com>
795 * amd64-linux-nat.c (x86_linux_create_target): New function.
796 (x86_linux_add_target): Likewise.
797 (_initialize_amd64_linux_nat): Delegate to the above new functions.
798 * i386-linux-nat.c (x86_linux_create_target): New function.
799 (x86_linux_add_target): Likewise.
800 (_initialize_i386_linux_nat): Delegate to the above new functions.
802 2014-07-11 Gary Benson <gbenson@redhat.com>
804 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
805 (ps_get_thread_area): Delegate to the above in 32-bit mode.
806 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
807 (ps_get_thread_area): Delegate to the above.
809 2014-07-11 Gary Benson <gbenson@redhat.com>
811 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
812 x86_linux_read_description. All uses updated. amd64-specific
813 code conditionalized. Conditionalized i386-specific code added.
814 Redundant cast removed.
815 * i386-linux-nat.c (i386_linux_read_description): Renamed to
816 x86_linux_read_description. All uses updated. i386-specific
817 code conditionalized. Conditionalized amd64-specific code added.
818 One sizeof replaced with the actual type it is describing.
820 2014-07-11 Gary Benson <gbenson@redhat.com>
822 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
823 x86_linux_dr_get. All uses updated.
824 (amd64_linux_dr_set): Renamed to
825 x86_linux_dr_set. All uses updated.
826 (amd64_linux_dr_get_addr): Renamed to
827 x86_linux_dr_get_addr. All uses updated.
828 (amd64_linux_dr_get_control): Renamed to
829 x86_linux_dr_get_control. All uses updated.
830 (amd64_linux_dr_get_status): Renamed to
831 x86_linux_dr_get_status. All uses updated.
832 (amd64_linux_dr_set_control): Renamed to
833 x86_linux_dr_set_control. All uses updated.
834 (amd64_linux_dr_set_addr): Renamed to
835 x86_linux_dr_set_addr. All uses updated.
836 (amd64_linux_prepare_to_resume): Renamed to
837 x86_linux_prepare_to_resume. All uses updated.
838 (amd64_linux_new_thread): Renamed to
839 x86_linux_new_thread. All uses updated.
840 (amd64_linux_new_fork): Renamed to
841 x86_linux_new_fork. All uses updated.
842 (amd64_linux_child_post_startup_inferior): Renamed to
843 x86_linux_child_post_startup_inferior. All uses updated.
844 (amd64_linux_enable_btrace): Renamed to
845 x86_linux_enable_btrace. All uses updated.
846 (amd64_linux_disable_btrace): Renamed to
847 x86_linux_disable_btrace. All uses updated.
848 (amd64_linux_teardown_btrace): Renamed to
849 x86_linux_teardown_btrace. All uses updated.
850 (amd64_linux_read_btrace): Renamed to
851 x86_linux_read_btrace. All uses updated.
852 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
853 x86_linux_dr_get. All uses updated.
854 (i386_linux_dr_set): Renamed to
855 x86_linux_dr_set. All uses updated.
856 (i386_linux_dr_get_addr): Renamed to
857 x86_linux_dr_get_addr. All uses updated.
858 (i386_linux_dr_get_control): Renamed to
859 x86_linux_dr_get_control. All uses updated.
860 (i386_linux_dr_get_status): Renamed to
861 x86_linux_dr_get_status. All uses updated.
862 (i386_linux_dr_set_control): Renamed to
863 x86_linux_dr_set_control. All uses updated.
864 (i386_linux_dr_set_addr): Renamed to
865 x86_linux_dr_set_addr. All uses updated.
866 (i386_linux_prepare_to_resume): Renamed to
867 x86_linux_prepare_to_resume. All uses updated.
868 (i386_linux_new_thread): Renamed to
869 x86_linux_new_thread. All uses updated.
870 (i386_linux_new_fork): Renamed to
871 x86_linux_new_fork. All uses updated.
872 (i386_linux_child_post_startup_inferior): Renamed to
873 x86_linux_child_post_startup_inferior. All uses updated.
874 (i386_linux_enable_btrace): Renamed to
875 x86_linux_enable_btrace. All uses updated.
876 (i386_linux_disable_btrace): Renamed to
877 x86_linux_disable_btrace. All uses updated.
878 (i386_linux_teardown_btrace): Renamed to
879 x86_linux_teardown_btrace. All uses updated.
880 (i386_linux_read_btrace): Renamed to
881 x86_linux_read_btrace. All uses updated.
883 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
885 * remote.c (extended_remote_post_attach): New function.
886 (init_extended_remote_ops): Install it as to_post_attach method.
888 2014-07-09 Pedro Alves <palves@redhat.com>
890 * infcmd.c (attach_command_post_wait): Don't call
891 target_terminal_inferior here.
892 (attach_command): Call it here instead.
894 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
896 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
898 * c-varobj.c (c_is_path_expr_parent): New function, moved core
899 from varobj.c, with additional checks.
900 (c_varobj_ops): Fill in is_path_expr_parent field.
901 (cplus_varobj_ops): Fill in is_path_expr_parent field.
902 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
904 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
906 (varobj_default_is_path_expr_parent): New function.
907 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
908 (varobj_default_is_path_expr_parent): Declare new function.
910 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
912 * infcmd.c (finish_backward): Turn internal error into normal error.
914 2014-07-07 Pedro Alves <palves@redhat.com>
917 * remote.c (async_handle_remote_sigint)
918 (async_handle_remote_sigint_twice): Call
919 gdb_call_async_signal_handler instead of
920 mark_async_signal_handler.
922 2014-07-07 Tom Tromey <tromey@redhat.com>
924 * target-delegates.c: Rebuild.
925 * target.c (target_info_record): Remove.
926 * record.c (info_record_command): Unconditionally call
928 * target.h (struct target_ops) <to_info_record>: Use
929 TARGET_DEFAULT_IGNORE.
930 (target_info_record): Remove.
932 2014-07-07 Tom Tromey <tromey@redhat.com>
934 * target.h (struct target_ops) <to_get_thread_local_address>: Use
935 TARGET_DEFAULT_NORETURN.
936 * target.c (generic_tls_error): New function.
937 (target_translate_tls_address): Don't search target stack.
938 * target-delegates.c: Rebuild.
939 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
941 * linux-thread-db.c (thread_db_get_thread_local_address):
942 Unconditionally call beneath target.
944 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
946 * cli/cli-logging.c (pop_output_files): Assign targerr to
949 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
951 * MAINTAINERS (Write After Approval): Update my email address.
953 2014-07-02 Gary Benson <gbenson@redhat.com>
955 * proc-service.c (ps_xfer_memory): Update comment.
956 (ps_pstop): Remove unused function.
957 (ps_pcontinue): Likewise.
958 (ps_lstop): Likewise.
959 (ps_lcontinue): Likewise.
960 (ps_lgetxregsize): Likewise.
961 (ps_lgetxregs): Likewise.
962 (ps_lsetxregs): Likewise.
964 (ps_ptread): Likewise.
965 (ps_ptwrite): Likewise.
967 2014-07-01 Mark Wielaard <mjw@redhat.com>
969 * dwarf2read.c (add_array_cv_type): New function.
970 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
971 (read_tag_volatile_type): Likewise.
973 2014-07-01 Tom Tromey <tromey@redhat.com>
975 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
976 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
977 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
978 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
979 * command.h (cmd_cfunc_ftype): Move earlier.
980 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
981 (add_com, add_info): Use cmd_cfunc_ftype.
983 2014-06-30 Tom Tromey <tromey@redhat.com>
985 * symtab.c (operator_chars): Make parameters and return type
987 (file_matches): Make "files" const.
988 (struct search_symbols_data) <files>: Now const.
989 (search_symbols): Make "regexp" and "files" parameters const.
991 (symtab_symbol_info): Remove cast.
992 (rbreak_command): Update.
993 * symtab.h (search_symbols): Update.
995 2014-06-27 Yao Qi <yao@codesourcery.com>
997 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
998 Change parameter type to 'struct thread_info *'. Caller
1000 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1002 * dummy-frame.c (struct dummy_frame_id): New.
1003 (dummy_frame_id_eq): New function.
1004 (struct dummy_frame) <id>: Change its type to 'struct
1006 (dummy_frame_push): Add parameter ptid and save it in
1008 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1010 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1012 (lookup_dummy_frame): Change parameter type to 'struct
1013 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1014 instead of frame_id_eq.
1015 (dummy_frame_pop): Add parameter ptid. Callers updated.
1016 Update comments. Compose dummy_frame_id and pass it to
1018 (dummy_frame_discard): Add parameter ptid.
1019 (dummy_frame_sniffer): Compose dummy_frame_id and call
1020 dummy_frame_id_eq instead of frame_id_eq.
1021 (fprint_dummy_frames): Print ptid.
1022 * dummy-frame.h: Remove comments.
1023 (dummy_frame_push): Add ptid in declaration.
1024 (dummy_frame_pop, dummy_frame_discard): Likewise.
1026 2014-06-26 Tom Tromey <tromey@redhat.com>
1028 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1029 * command.h (error_no_arg): Update.
1031 2014-06-26 Tom Tromey <tromey@redhat.com>
1033 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1034 (do_show_command): Make "arg" const.
1035 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1037 2014-06-26 Tom Tromey <tromey@redhat.com>
1039 * record-full.c (record_full_get_bookmark): Make "args" const.
1040 (record_full_goto_bookmark): Make "raw_bookmark" const.
1041 * record.c (record_goto): New function.
1042 (cmd_record_goto): Use it. Now static.
1043 * record.h (record_goto): Declare.
1044 (cmd_record_goto): Remove declaration.
1045 * target-delegates.c: Rebuild.
1046 * target.h (struct target_ops) <to_get_bookmark,
1047 to_goto_bookmark>: Make parameter const.
1049 2014-06-26 Tom Tromey <tromey@redhat.com>
1051 * defs.h (generic_load): Update.
1052 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1053 * monitor.c (monitor_load): Make "args" const.
1054 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1055 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1057 (mips_load): Make "file" const.
1058 * remote-sim.c (gdbsim_load): Make "args" const.
1059 * remote.c (remote_load): Make "name" const.
1060 * symfile.c (generic_load): Make "args" const.
1061 * target-delegates.c: Rebuild.
1062 * target.c (target_load): Make "arg" const.
1063 (debug_to_load): Make "args" const.
1064 * target.h (struct target_ops) <to_load>: Make parameter const.
1065 (target_load): Update.
1067 2014-06-26 Tom Tromey <tromey@redhat.com>
1070 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1071 (dwarf2_physname, read_partial_die)
1072 (guess_partial_die_structure_name, fixup_partial_die)
1073 (guess_full_die_structure_name, anonymous_struct_prefix)
1074 (dwarf2_name): Use per-BFD obstack.
1076 2014-06-26 Yao Qi <yao@codesourcery.com>
1078 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1079 dummyframe and this_id into inner block below.
1081 2014-06-26 Yao Qi <yao@codesourcery.com>
1083 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1084 with "signal_pass[0]" in the initialization of signal_pass.
1086 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1088 * record-btrace.c (record_btrace_generating_corefile)
1089 (record_btrace_prepare_to_generate_core)
1090 (record_btrace_done_generating_core): New.
1091 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1092 (record_btrace_store_registers, record_btrace_prepare_to_store):
1093 Forward request when generating a core file.
1094 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1095 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1096 to_done_generating_core.
1098 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1100 * target.h (target_ops) <to_prepare_to_generate_core>
1101 <to_done_generating_core>: New.
1102 (target_prepare_to_generate_core, target_done_generating_core): New.
1103 * target.c (target_prepare_to_generate_core)
1104 (target_done_generating_core): New.
1105 * target-delegates.c: Regenerate.
1106 * gcore.c: (write_gcore_file): Rename to ...
1107 (write_gcore_file_1): ...this.
1108 (write_gcore_file): Call target_prepare_to_generate_core
1109 and target_done_generating_core.
1111 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1113 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1114 * gcore.c (write_gcore_file): Free memory returned from
1115 make_corefile_notes.
1116 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1117 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1119 2014-06-24 Yao Qi <yao@codesourcery.com>
1121 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1122 (arm_linux_init_abi): Set skip_trampoline_code with
1123 gdbarch_skip_trampoline_code instead of
1124 find_solib_trampoline_target.
1126 2014-06-24 Yao Qi <yao@codesourcery.com>
1128 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1129 arm_skip_bx_reg returns non-zero.
1131 2014-06-24 Yao Qi <yao@codesourcery.com>
1133 * arm-tdep.c (arm_skip_bx_reg): New function.
1134 (arm_skip_stub): Call arm_skip_bx_reg.
1136 2014-06-23 Don Breazeal <donb@codesourcery.com>
1138 * MAINTAINERS: Add myself as write-after-approval maintainer.
1140 2014-06-23 Pedro Alves <palves@redhat.com>
1142 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1143 DR_CONTROL before setting DR0..DR3.
1144 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1145 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1146 bits of DR_CONTROL related to the debug register slot being
1147 disabled. If all slots are vacant, clear local slowdown as well,
1148 and assert DR_CONTROL is 0.
1150 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1152 * python/lib/gdb/command/xmethods.py
1153 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1154 current progspace only if the string "progspace" matches LOCUS_RE.
1156 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1158 Fix --with-system-readline with readline-6.3 patch 5.
1159 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1160 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1163 2014-06-20 Tom Tromey <tromey@redhat.com>
1165 * dwarf2read.c (dw2_get_real_path): Use correct type in
1167 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1169 2014-06-20 Gary Benson <gbenson@redhat.com>
1171 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1172 * common/glibc_thread_db.h: Likewise.
1173 * common/i386-cpuid.h: Likewise.
1174 * common/i386-gcc-cpuid.h: Likewise.
1175 * common/linux-btrace.h: Likewise.
1176 * common/linux-osdata.h: Likewise.
1177 * common/linux-procfs.h: Likewise.
1178 * common/linux-ptrace.h: Likewise.
1179 * common/mips-linux-watch.h: Likewise.
1180 * common/linux-btrace.c: Moved to nat.
1181 * common/linux-osdata.c: Likewise.
1182 * common/linux-procfs.c: Likewise.
1183 * common/linux-ptrace.c: Likewise.
1184 * common/mips-linux-watch.c: Likewise.
1185 * nat/gdb_thread_db.h: Moved from common.
1186 * nat/glibc_thread_db.h: Likewise.
1187 * nat/i386-cpuid.h: Likewise.
1188 * nat/i386-gcc-cpuid.h: Likewise.
1189 * nat/linux-btrace.c: Likewise.
1190 * nat/linux-btrace.h: Likewise.
1191 * nat/linux-osdata.c: Likewise.
1192 * nat/linux-osdata.h: Likewise.
1193 * nat/linux-procfs.c: Likewise.
1194 * nat/linux-procfs.h: Likewise.
1195 * nat/linux-ptrace.c: Likewise.
1196 * nat/linux-ptrace.h: Likewise.
1197 * nat/mips-linux-watch.c: Likewise.
1198 * nat/mips-linux-watch.h: Likewise.
1199 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1200 (object file files): Reordered.
1201 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1202 of glibc_thread_db.h.
1204 2014-06-20 Gary Benson <gbenson@redhat.com>
1206 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1207 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1208 (i386_dr_low): Likewise.
1209 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1210 (i386_dr_low_set_addr): Likewise.
1211 (i386_dr_low_get_addr): Likewise.
1212 (i386_dr_low_can_set_control): Likewise.
1213 (i386_dr_low_set_control): Likewise.
1214 (i386_dr_low_get_control): Likewise.
1215 (i386_dr_low_get_status): Likewise.
1216 (i386_get_debug_register_length): Likewise.
1217 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1218 (i386_dr_low): Likewise.
1219 * nat/i386-dregs.c (i386-low.h): Remove include.
1220 (i386-nat.h): Likewise.
1221 (nat/i386-dregs.h): New include.
1222 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1223 (i386_dr_low_set_addr): Likewise.
1224 (i386_dr_low_get_addr): Likewise.
1225 (i386_dr_low_can_set_control): Likewise.
1226 (i386_dr_low_set_control): Likewise.
1227 (i386_dr_low_get_control): Likewise.
1228 (i386_dr_low_get_status): Likewise.
1229 (i386_get_debug_register_length): Likewise.
1230 (debug_hw_points): Likewise.
1232 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1234 * Makefile.in (SFILES): Add d-exp.y.
1235 (YYFILES): Add d-exp.c.
1236 (YYOBJ): Add d-exp.o.
1237 (local-maintainer-clean): Delete d-exp.c.
1238 * d-exp.y: New file.
1239 * d-lang.h (d_parse): New declaration.
1240 (d_error): New declaration.
1241 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1242 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1243 PREC_ORDER operators.
1244 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1246 2014-06-19 Yao Qi <yao@codesourcery.com>
1248 * gdbthread.h (any_running): Remove the declaration.
1249 * thread.c (any_running): Remove.
1251 2014-06-19 Yao Qi <yao@codesourcery.com>
1253 * gdbthread.h (struct thread_info) <state>: Change its type to
1254 'enum thread_state'. Update comments.
1256 2014-06-19 Pedro Alves <palves@redhat.com>
1258 * gdbthread.h (ALL_THREADS): Delete.
1259 (ALL_NON_EXITED_THREADS): New macro.
1260 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1261 instead of ALL_THREADS.
1262 * infrun.c (find_thread_needs_step_over)
1263 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1264 instead of ALL_THREADS.
1265 * record-btrace.c (record_btrace_open)
1266 (record_btrace_stop_recording, record_btrace_close)
1267 (record_btrace_is_replaying, record_btrace_resume)
1268 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1269 * remote.c (append_pending_thread_resumptions): Likewise.
1270 * thread.c (thread_apply_all_command): Likewise.
1272 2014-06-19 Gary Benson <gbenson@redhat.com>
1274 * i386-nat.c (i386_stopped_by_watchpoint):
1275 Use i386_dr_stopped_by_watchpoint.
1276 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1277 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1279 2014-06-19 Gary Benson <gbenson@redhat.com>
1281 * nat/i386-dregs.c: New file.
1282 * Makefile.in (i386-dregs.o): New rule.
1283 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1284 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1285 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1286 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1287 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1288 * config/i386/go32.mh (NATDEPFILES): Likewise.
1289 * config/i386/linux.mh (NATDEPFILES): Likewise.
1290 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1291 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1292 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1293 * i386-nat.h (debug_hw_points): New declaration.
1294 * i386-nat.c (breakpoint.h): Remove include.
1295 (command.h): Likewise.
1296 (target.h): Likewise.
1297 (gdb_assert.h): Likewise.
1298 (debug_hw_points): Made nonstatic.
1299 (debug_printf): Now in i386-dregs.c.
1300 (TARGET_HAS_DR_LEN_8): Likewise.
1301 (DR_CONTROL_SHIFT): Likewise.
1302 (DR_CONTROL_SIZE): Likewise.
1303 (DR_RW_EXECUTE): Likewise.
1304 (DR_RW_WRITE): Likewise.
1305 (DR_RW_READ): Likewise.
1306 (DR_RW_IORW): Likewise.
1307 (DR_LEN_1): Likewise.
1308 (DR_LEN_2): Likewise.
1309 (DR_LEN_4): Likewise.
1310 (DR_LEN_8): Likewise.
1311 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1312 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1313 (DR_ENABLE_SIZE): Likewise.
1314 (DR_LOCAL_SLOWDOWN): Likewise.
1315 (DR_GLOBAL_SLOWDOWN): Likewise.
1316 (DR_CONTROL_RESERVED): Likewise.
1317 (I386_DR_CONTROL_MASK): Likewise.
1318 (I386_DR_VACANT): Likewise.
1319 (I386_DR_LOCAL_ENABLE): Likewise.
1320 (I386_DR_GLOBAL_ENABLE): Likewise.
1321 (I386_DR_DISABLE): Likewise.
1322 (I386_DR_SET_RW_LEN): Likewise.
1323 (I386_DR_GET_RW_LEN): Likewise.
1324 (I386_DR_WATCH_HIT): Likewise.
1325 (i386_wp_op_t): Likewise.
1326 (i386_show_dr): Likewise.
1327 (i386_length_and_rw_bits): Likewise.
1328 (i386_insert_aligned_watchpoint): Likewise.
1329 (i386_remove_aligned_watchpoint): Likewise.
1330 (i386_handle_nonaligned_watchpoint): Likewise.
1331 (i386_update_inferior_debug_regs): Likewise.
1332 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1333 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1334 (i386_region_ok_for_watchpoint):
1335 Use i386_dr_region_ok_for_watchpoint.
1336 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1338 2014-06-19 Gary Benson <gbenson@redhat.com>
1340 * i386-nat.c (i386_insert_hw_breakpoint): Use
1341 i386_insert_watchpoint.
1342 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1344 2014-06-19 Gary Benson <gbenson@redhat.com>
1346 * i386-nat.c (i386_dr_show): Renamed to
1347 i386_show_dr and made static. All uses updated.
1348 (i386_dr_length_and_rw_bits): Renamed to
1349 i386_length_and_rw_bits and made static.
1351 (i386_dr_insert_aligned_watchpoint): Renamed to
1352 i386_insert_aligned_watchpoint and made static.
1354 (i386_dr_remove_aligned_watchpoint): Renamed to
1355 i386_remove_aligned_watchpoint and made static.
1357 (i386_dr_update_inferior_debug_regs): Renamed to
1358 i386_update_inferior_debug_regs and made static.
1360 * nat/i386-dregs.h (i386_dr_show): Removed.
1361 (i386_dr_length_and_rw_bits): Likewise.
1362 (i386_dr_insert_aligned_watchpoint): Likewise.
1363 (i386_dr_remove_aligned_watchpoint): Likewise.
1364 (i386_dr_update_inferior_debug_regs): Likewise.
1366 2014-06-19 Gary Benson <gbenson@redhat.com>
1368 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1369 * configure: Regenerate.
1370 * config.in: Likewise.
1371 * main.c (signal.h): New include.
1372 (setup_alternate_signal_stack): New function.
1373 (captured_main): Call the above.
1374 * cp-support.c (signal.h): New include.
1375 (catch_demangler_crashes): New flag.
1376 (SIGJMP_BUF): New define.
1377 (SIGSETJMP): Likewise.
1378 (SIGLONGJMP): Likewise.
1379 (gdb_demangle_jmp_buf): New static global.
1380 (gdb_demangle_attempt_core_dump): Likewise.
1381 (gdb_demangle_signal_handler): New function.
1382 (gdb_demangle): If catch_demangler_crashes is set, install the
1383 above signal handler before calling bfd_demangle, and restore
1384 the original signal handler afterwards. Display the offending
1385 symbol and call demangler_warning the first time a segmentation
1387 (_initialize_cp_support): New maint set/show command.
1389 2014-06-19 Gary Benson <gbenson@redhat.com>
1391 * utils.h (resource_limit_kind): New enum.
1392 (can_dump_core): New declaration.
1393 (warn_cant_dump_core): Likewise.
1394 (dump_core): Likewise.
1395 * utils.c (dump_core): Made nonstatic. Added new
1396 parameter "limit_kind".
1397 (can_dump_core): Made nonstatic. Moved printing code to...
1398 (warn_cant_dump_core): New function.
1399 (can_dump_core_warn): Likewise.
1400 (internal_vproblem): Replace calls to can_dump_core with
1401 calls to can_dump_core_warn. Supply new argument to each.
1403 2014-06-19 Gary Benson <gbenson@redhat.com>
1405 * utils.h (demangler_vwarning): New declaration.
1406 (demangler_warning): Likewise.
1407 * utils.c (struct internal_problem)
1408 <user_settable_should_quit>: New field.
1409 <user_settable_should_dump_core>: Likewise
1410 (internal_error_problem): Add values for above new fields.
1411 (internal_warning_problem): Likewise.
1412 (demangler_warning_problem): New static global.
1413 (demangler_vwarning): New function.
1414 (demangler_warning): Likewise.
1415 (add_internal_problem_command): Selectively add commands.
1416 (_initialize_utils): New internal problem command.
1417 * maint.c (maintenance_demangler_warning): New function.
1418 (_initialize_maint_cmds): New command.
1420 2014-06-18 Tom Tromey <tromey@redhat.com>
1422 * f-valprint.c (info_common_command_for_block): Update.
1423 * symtab.h (struct general_symbol_info) <common_block>: Now
1426 2014-06-18 Tom Tromey <tromey@redhat.com>
1428 * symtab.h (struct symtab) <blockvector>: Now const.
1429 * ada-lang.c (ada_add_global_exceptions): Update.
1430 * buildsym.c (augment_type_symtab): Update.
1431 * dwarf2read.c (dw2_lookup_symbol): Update.
1432 * jit.c (finalize_symtab): Update.
1433 * jv-lang.c (add_class_symtab_symbol): Update.
1434 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1436 * objfiles.c (objfile_relocate1): Update.
1437 * psymtab.c (lookup_symbol_aux_psymtabs)
1438 (maintenance_check_psymtabs): Update.
1439 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1441 * spu-tdep.c (spu_catch_start): Update.
1442 * symmisc.c (dump_symtab_1): Update.
1443 * symtab.c (lookup_global_symbol_from_objfile)
1444 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1445 (basic_lookup_transparent_type_quick)
1446 (basic_lookup_transparent_type, find_pc_sect_symtab)
1447 (find_pc_sect_line, search_symbols): Update.
1448 * block.c (find_block_in_blockvector): Make "bl" const.
1449 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1451 (blockvector_contains_pc): Make "bv" const.
1452 (block_for_pc_sect): Update.
1453 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1454 (blockvector_contains_pc): Update.
1455 * breakpoint.c (resolve_sal_pc): Update.
1456 * inline-frame.c (block_starting_point_at): Update.
1458 2014-06-18 Tom Tromey <tromey@redhat.com>
1460 * completer.c (complete_line): Make "line_buffer" const.
1461 * completer.h (complete_line): Update.
1463 2014-06-18 Tom Tromey <tromey@redhat.com>
1465 * symtab.c (add_macro_name): Remove unneeded cast.
1467 2014-06-18 Tom Tromey <tromey@redhat.com>
1469 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1470 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1472 2014-06-18 Tom Tromey <tromey@redhat.com>
1474 * probe.c (info_probes_for_ops): Make "arg" const.
1475 * probe.h (info_probes_for_ops): Update.
1477 2014-06-18 Tom Tromey <tromey@redhat.com>
1479 * varobj.c (varobj_create): Update.
1480 * valops.c (value_of_this): Update.
1481 * tracepoint.c (add_local_symbols, scope_info): Update.
1482 * symtab.h (struct general_symbol_info) <block>: Now const.
1483 * symtab.c (skip_prologue_sal)
1484 (default_make_symbol_completion_list_break_on)
1485 (skip_prologue_using_sal): Update.
1486 * stack.h (iterate_over_block_locals)
1487 (iterate_over_block_local_vars): Update.
1488 * stack.c (print_frame_args): Update.
1489 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1491 (get_selected_block): Make return type const.
1492 * python/py-frame.c (frapy_block): Update.
1493 * python/py-block.c (gdbpy_block_for_pc): Update.
1494 * p-exp.y (%union) <bval>: Now const.
1495 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1496 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1497 * m2-exp.y (%union) <bval>: Now const.
1498 * linespec.c (get_current_search_block): Make return type const.
1499 (create_sals_line_offset, find_label_symbols): Update.
1500 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1502 (block_starting_point_at): Make "block" const.
1503 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1504 (check_exception_resume): Update.
1505 * guile/scm-frame.c (gdbscm_frame_block): Update.
1506 * guile/scm-block.c (gdbscm_lookup_block): Update.
1507 * frame.h (get_frame_block): Update.
1508 (get_selected_block): Make return type const.
1509 * frame.c (frame_id_inner): Update.
1510 * f-valprint.c (info_common_command_for_block)
1511 (info_common_command): Update.
1512 * dwarf2loc.c (dwarf2_find_location_expression)
1513 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1514 (locexpr_describe_location_piece): Update.
1515 * c-exp.y (%union) <bval>: Now const.
1516 * breakpoint.c (resolve_sal_pc): Update.
1517 * blockframe.c (get_frame_block):Make return type const.
1518 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1519 (block_innermost_frame): Update.
1520 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1521 (block_for_pc, block_for_pc_sect): Update.
1522 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1524 (block_for_pc_sect, block_for_pc): Make return type const.
1525 * ax-gdb.c (gen_expr): Update.
1526 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1527 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1528 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1529 (ada_read_var_value): Update.
1530 * ada-exp.y (struct name_info) <block>: Now const.
1532 (block_lookup): Constify.
1534 2014-06-18 Gary Benson <gbenson@redhat.com>
1536 * nat/i386-dregs.h: New file.
1537 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1538 * i386-nat.h (i386-dregs.h): New include.
1539 (DR_FIRSTADDR): Now in i386-dregs.h.
1540 (DR_LASTADDR): Likewise.
1541 (DR_NADDR): Likewise.
1542 (DR_STATUS): Likewise.
1543 (DR_CONTROL): Likewise.
1544 (i386_debug_reg_state): Likewise.
1545 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1547 2014-06-18 Don Breazeal <donb@codesourcery.com>
1549 * breakpoint.c (set_longjmp_breakpoint): Call
1550 momentary_breakpoint_from_master with additional argument.
1551 (set_longjmp_breakpoint_for_call_dummy): Call
1552 momentary_breakpoint_from_master with additional argument.
1553 (set_std_terminate_breakpoint): Call
1554 momentary_breakpoint_from_master with additional argument.
1555 (momentary_breakpoint_from_master): Add argument to function
1556 definition and use it to initialize structure member flag.
1557 (clone_momentary_breakpoint): Call
1558 momentary_breakpoint_from_master with additional argument.
1559 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1560 member flags set in momentary_breakpoint_from_master.
1562 2014-06-18 Gary Benson <gbenson@redhat.com>
1564 * i386-nat.c (i386_show_dr): Renamed to
1565 i386_dr_show and made nonstatic. All uses updated.
1566 (i386_length_and_rw_bits): Renamed to
1567 i386_dr_length_and_rw_bits and made nonstatic.
1569 (i386_insert_aligned_watchpoint): Renamed to
1570 i386_dr_insert_aligned_watchpoint and made nonstatic.
1572 (i386_remove_aligned_watchpoint): Renamed to
1573 i386_dr_remove_aligned_watchpoint and made nonstatic.
1575 (i386_update_inferior_debug_regs): Renamed to
1576 i386_dr_update_inferior_debug_regs and made nonstatic.
1579 2014-06-18 Gary Benson <gbenson@redhat.com>
1581 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1582 (i386_dr_low_can_set_control): Likewise.
1583 (i386_dr_low_set_addr): Likewise.
1584 (i386_dr_low_set_control): Likewise.
1585 (i386_dr_low_get_addr): Likewise.
1586 (i386_dr_low_get_status): Likewise.
1587 (i386_dr_low_get_control): Likewise.
1588 (i386_insert_aligned_watchpoint): Use new macros.
1589 (i386_update_inferior_debug_regs): Likewise.
1590 (i386_stopped_data_address): Likewise.
1592 2014-06-18 Gary Benson <gbenson@redhat.com>
1594 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1595 New parameter. All uses updated.
1597 2014-06-18 Gary Benson <gbenson@redhat.com>
1599 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1602 2014-06-18 Gary Benson <gbenson@redhat.com>
1604 * i386-nat.c (debug_printf): New macro.
1605 (i386_get_debug_register_length): Likewise.
1606 (TARGET_HAS_DR_LEN_8): Use above macro.
1607 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1608 and printf_unfiltered. Use phex to format values.
1610 2014-06-18 Gary Benson <gbenson@redhat.com>
1612 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1615 2014-06-18 Gary Benson <gbenson@redhat.com>
1617 * i386-nat.c: Comment changes.
1619 2014-06-18 Gary Benson <gbenson@redhat.com>
1621 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1623 2014-06-18 Gary Benson <gbenson@redhat.com>
1625 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1626 (i386_insert_aligned_watchpoint): Likewise.
1627 (i386_remove_aligned_watchpoint): Likewise.
1628 (i386_handle_nonaligned_watchpoint): Likewise.
1630 2014-06-18 Gary Benson <gbenson@redhat.com>
1632 * i386-nat.c: Whitespace changes.
1634 2014-06-17 Samuel Bronson <naesten@gmail.com>
1636 * MAINTAINERS: Update Roland McGrath's email address.
1637 Thanks to Sergio Durigan Junior for pointing out that he left
1638 Red Hat a while ago, and giving me a current address.
1640 2014-06-17 Tom Tromey <tromey@redhat.com>
1642 * utils.h (savestring): Remove declaration.
1644 2014-06-17 Tom Tromey <tromey@redhat.com>
1646 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1648 2014-06-16 Keith Seitz <keiths@redhat.com>
1651 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1652 to update the varobj if inferior_ptid is null_ptid.
1654 2014-06-16 Tom Tromey <tromey@redhat.com>
1656 * target.h (struct target_ops) <to_info_proc>: Make parameter
1658 (target_info_proc): Update.
1659 * target.c (target_info_proc): Make "args" const.
1660 * procfs.c (procfs_info_proc): Update.
1661 * linux-tdep.c (linux_info_proc): Update.
1662 (linux_core_info_proc_mappings): Make "args" const.
1663 (linux_core_info_proc): Update.
1664 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1665 * gdbarch.c: Rebuild.
1666 * gdbarch.h: Rebuild.
1667 * corelow.c (core_info_proc): Update.
1669 2014-06-16 Tom Tromey <tromey@redhat.com>
1671 * target.h (struct target_ops) <to_disconnect>: Make parameter
1673 (target_disconnect): Update.
1674 * target.c (target_disconnect): Make "args" const.
1675 * target-delegates.c: Rebuild.
1676 * remote.c (remote_disconnect): Update.
1677 * record.h (record_disconnect): Update.
1678 * record.c (record_disconnect): Update.
1679 * inf-child.c (inf_child_disconnect): Update.
1681 2014-06-16 Tom Tromey <tromey@redhat.com>
1683 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1684 * target.c (debug_to_rcmd, default_rcmd): Update.
1685 * target-delegates.c: Rebuild.
1686 * remote.c (remote_rcmd): Update.
1687 * monitor.c (monitor_rcmd): Update.
1689 2014-06-16 Pedro Alves <palves@redhat.com>
1691 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1692 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1693 have OBJF_SHARED set.
1694 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1695 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1696 instead of OBJF_USERLOADED.
1697 * objfiles.h (OBJF_SHARED): Update comment.
1698 (userloaded_objfile_contains_address_p): Rename to ...
1699 (shared_objfile_contains_address_p): ... this, and update
1701 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1703 (remove_symbol_file_command): Skip objfiles that don't have
1706 2014-06-16 Tom Tromey <tromey@redhat.com>
1708 * minsyms.h (prim_record_minimal_symbol)
1709 (prim_record_minimal_symbol_and_info): Update comments.
1711 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1713 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1714 or --without-guile, according to how GDB was built.
1716 2014-06-13 Tom Tromey <tromey@redhat.com>
1718 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1720 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1722 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1724 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1725 help_list.Pass all_commands, not -1, to help_list.
1726 * cli/cli-dump.c (dump_command, append_command)
1727 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1728 (binary_dump_command, binary_append_command): Pass all_commands,
1729 not -1, to help_list.
1730 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1732 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1734 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1736 * top.c (set_history): Pass all_commands, not -1, to help_list.
1737 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1738 all_commands, not -1, to help_list.
1739 * symfile.c (overlay_command): Pass all_commands, not -1, to
1741 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1743 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1745 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1747 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1748 not -1, to help_list.
1749 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1750 not -1, to help_list.
1751 * maint.c (maintenance_command, maintenance_info_command)
1752 (maintenance_print_command, maintenance_set_cmd): Pass
1753 all_commands, not -1, to help_list.
1754 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1756 * language.c (set_check): Pass all_commands, not -1, to help_list.
1757 * infcmd.c (unset_command): Pass all_commands, not -1, to
1759 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1761 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1763 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1765 * breakpoint.c (save_command): Pass all_commands, not -1, to
1767 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1768 all_commands, not -1, to help_list.
1770 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1772 * regcache.c (struct register_to_invalidate): New structure.
1773 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1775 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1777 2014-06-12 Yao Qi <yao@codesourcery.com>
1779 * varobj.c (varobj_get_num_children): Call
1780 varobj_is_dynamic_p.
1781 (varobj_list_children): Likewise.
1782 (varobj_update): Likewise. Update comments.
1784 2014-06-12 Yao Qi <yao@codesourcery.com>
1786 * varobj.c (varobj_pretty_printed_p): Rename to ...
1787 (varobj_is_dynamic_p): ... this. New function.
1788 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1789 (varobj_is_dynamic_p): Declare.
1790 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1791 (mi_print_value_p, varobj_update_one): Likewise.
1793 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1794 Yao Qi <yao@codesourcery.com>
1796 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1797 (varobj_get_iterator): Wrap up code for pretty-printer by
1798 "#if HAVE_PYTHON" and "#endif".
1799 (update_dynamic_varobj_children): Likewise.
1801 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1802 Yao Qi <yao@codesourcery.com>
1804 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1805 gdb_python_initialized is false. Move some code from varobj.c.
1806 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1807 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1808 (struct varobj_item): Moved to varobj-iter.h".
1809 (varobj_clear_saved_item): New function.
1810 (update_dynamic_varobj_children): Move python-related code to
1812 (free_variable): Call varobj_clear_saved_item and
1815 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1816 Yao Qi <yao@codesourcery.com>
1818 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1819 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1820 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1821 (py-varobj.o): New rule.
1822 * python/py-varobj.c: New file.
1823 * python/python-internal.h (py_varobj_get_iterator): Declare.
1824 * varobj-iter.h: New file.
1825 * varobj.c: Include "varobj-iter.h"
1826 (struct varobj) <child_iter>: Change its type from "PyObject *"
1827 to "struct varobj_iter *".
1828 <saved_item>: Likewise.
1829 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1830 [HAVE_PYTHON] (varobj_get_iterator): New function.
1831 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1832 python-specific code to python/py-varobj.c.
1833 (install_visualizer): Call varobj_iter_delete instead of
1835 * varobj.h (varobj_ensure_python_env): Declare.
1837 2014-06-12 Yao Qi <yao@codesourcery.com>
1839 * varobj.c (struct varobj_item): New structure.
1840 (create_child_with_value): Update declaration.
1841 (varobj_add_child): Replace arguments 'name' and 'value' with
1842 'item'. All callers updated.
1843 (install_dynamic_child): Likewise.
1844 (update_dynamic_varobj_children): Likewise.
1845 (varobj_add_child): Likewise.
1846 (create_child_with_value): Likewise.
1848 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1850 * NEWS: Create a new section for the next release branch.
1851 Rename the section of the current branch, now that it has
1854 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1856 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1857 * version.in: Bump version to 7.8.50.DATE-cvs.
1859 2014-06-11 Pedro Alves <palves@redhat.com>
1862 * ser-mingw.c (net_windows_socket_check_pending): New function.
1863 (net_windows_select_thread): Ignore spurious wakeups. Use
1864 net_windows_socket_check_pending.
1865 (net_windows_wait_handle): Check for pending events with
1866 ioctlsocket, through net_windows_socket_check_pending, instead of
1867 checking the socket's event.
1869 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1871 * python/python-internal.h (gdb_PyObject_GetAttrString)
1872 (gdb_PyObject_HasAttrString): New inline function definitions.
1873 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1874 char * of the second argument to PyObject_GetAttrString.
1876 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1878 * serial.c (serial_write): Fix index of character to be printed
1879 in call to serial_logchar when serial debug traces are enabled.
1881 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1883 * gdbtypes (resolve_dynamic_range): Add function description.
1885 2014-06-09 Pedro Alves <palves@redhat.com>
1887 * linux-nat.c (linux_child_follow_fork): Initialize status with
1888 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1889 inner block. Only pass the signal to PTRACE_DETACH if in pass
1892 2014-06-09 Gary Benson <gbenson@redhat.com>
1894 * common/signals.c (gdb_signal_from_host): Reorder to separate
1895 the always-available ANSI-standard signals from the signals that
1897 (do_gdb_signal_to_host): Likewise.
1898 * proc-events.c (signal_table): Likewise.
1900 2014-06-08 Hui Zhu <hui@codesourcery.com>
1902 * common/linux-ptrace.c (linux_disable_event_reporting): New
1904 * common/linux-ptrace.h (linux_disable_event_reporting): New
1906 * linux-nat.c (linux_child_follow_fork): Do a single step before
1909 2014-06-07 Keith Seitz <keiths@redhat.com>
1913 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1914 from symbol_matches_domain in symtab.c. All local callers
1915 of symbol_matches_domain updated.
1916 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1917 search STRUCT_DOMAIN.
1918 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1919 independently. standard_lookup will do that automatically.
1920 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1921 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1922 (cp_lookup_symbol_in_namespace): Likewise.
1923 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1924 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1925 may return a STRUCT_DOMAIN match.
1926 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1927 * cp-support.c: Include language.h.
1928 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1930 * psymtab.c (match_partial_symbol): Compare the requested
1931 domain with the symbol's domain directly.
1932 (lookup_partial_symbol): Likewise.
1933 * symtab.c (lookup_symbol_in_language): Explain when/why
1934 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1935 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1936 appropriate languages.
1937 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1938 and moved to ada-lang.c
1939 (lookup_block_symbol): Explain that this function only returns
1940 symbol matching the requested DOMAIN.
1941 Compare the requested domain with the symbol's domain directly.
1942 (iterate_over_symbols): Compare the requested domain with the
1943 symbol's domain directly.
1944 * symtab.h (symbol_matches_domain): Remove.
1946 2014-06-06 Doug Evans <xdje42@gmail.com>
1948 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1949 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1950 (gdbscm_guile_version_is_at_least): Declare.
1951 (gdbscm_scm_string_to_int): Declare.
1952 * guile/guile.c (gdbscm_guile_major_version): New global.
1953 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1954 (guile_datadir): New static global.
1955 (gdbscm_guile_data_directory): New function.
1956 (initialize_scheme_side): Update.
1957 (misc_guile_functions): Add guile-data-directory.
1958 (initialize_gdb_module): Fetch guile version number.
1959 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1960 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1961 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1962 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1964 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1965 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1966 * guile/scm-value.c (gdbscm_value_to_string): Only call
1967 scm_port_conversion_strategy if Guile version >= 2.0.6.
1969 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1971 * main.c (print_gdb_help): Add -q and --silent.
1973 2014-06-06 Gary Benson <gbenson@redhat.com>
1975 * common/signals.c: Remove preprocessor conditionals for
1976 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1977 SIGSEGV and SIGTERM.
1978 * proc-events.c: Likewise.
1980 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1982 * symfile.c (symfile_free_objfile): Remove restriction to
1984 * symfile-mem.c (symbol_file_add_from_memory): Call
1985 add_target_sections_of_objfile.
1987 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1989 * guile/scm-value.c (gdbscm_history_append_x): Use
1990 'vlscm_get_value_smob_arg_unsafe' instead of
1991 'vlscm_scm_to_value'.
1993 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1996 * utils.c (printchar): Don't escape at all if quoter is NUL.
1997 Update function documentation to clarify effect of parameter
1999 * remote.c (escape_buffer): Pass '\\' as the quoter to
2000 fputstrn_unfiltered.
2001 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2002 generate the output.
2003 (mi_solib_unloaded): Same.
2005 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2007 * development.sh: Delete.
2008 * Makefile.in (config.status): Adjust dependency on development.sh.
2009 * configure.ac: Adjust development.sh source call.
2010 * configure: Regenerate.
2012 2014-06-04 Doug Evans <xdje42@gmail.com>
2014 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2015 is_scheme_bkpt, spec.
2016 (bpscm_make_breakpoint_smob): Initialize new members.
2017 (gdbscm_create_breakpoint_x): Split into two ...
2018 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2019 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2020 (scheme_function breakpoint_functions): Update.
2021 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2022 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2023 register-breakpoint!.
2025 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2028 * mem-break.c (z_type_supported): Return zero if
2029 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2031 2014-06-04 Tom Tromey <tromey@redhat.com>
2033 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2034 value_from_contents_and_address_unresolved.
2035 (ada_template_to_fixed_record_type_1): Likewise.
2036 (ada_which_variant_applies): Likewise.
2037 * value.h (value_from_contents_and_address_unresolved): Declare.
2038 * value.c (value_from_contents_and_address_unresolved): New
2040 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2041 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2042 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2044 2014-06-04 Tom Tromey <tromey@redhat.com>
2046 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2048 2014-06-04 Tom Tromey <tromey@redhat.com>
2050 * procfs.c (procfs_attach): Make "args" const.
2051 * windows-nat.c (windows_attach): Make "args" const.
2052 * nto-procfs.c (procfs_attach): Make "args" const.
2053 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2054 * go32-nat.c (go32_attach): Make "args" const.
2055 * gnu-nat.c (gnu_attach): Make "args" const.
2056 * darwin-nat.c (darwin_attach): Make "args" const.
2057 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2058 * linux-nat.c (linux_nat_attach): Make "args" const.
2059 * remote.c (extended_remote_attach_1, extended_remote_attach):
2061 * target.h (struct target_ops) <to_attach>: Make "args" const.
2062 (find_default_attach): Likewise.
2063 * utils.c (parse_pid_to_attach): Make "args" const.
2064 * utils.h (parse_pid_to_attach): Update.
2066 2014-06-04 Tom Tromey <tromey@redhat.com>
2068 * target-delegates.c: Rebuild.
2069 * target.c (default_thread_address_space): New function.
2070 (target_thread_address_space): Simplify.
2071 * target.h (struct target_ops) <to_thread_address_space>: Add
2072 TARGET_DEFAULT_FUNC.
2074 2014-06-04 Doug Evans <xdje42@gmail.com>
2076 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2078 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2080 * record-btrace.c: Include event-loop.h and inf-loop.h.
2081 (record_btrace_resume_exec_dir)
2082 (record_btrace_async_inferior_event_handler)
2083 (record_btrace_handle_async_inferior_event): New.
2084 (record_btrace_open): Create async event handler.
2085 (record_btrace_close): Delete async event handler.
2086 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2087 Mark async event handler.
2088 (record_btrace_execution_direction): New.
2089 (init_record_btrace_ops): Initialize to_execution_direction.
2091 2014-06-03 Doug Evans <xdje42@gmail.com>
2093 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2094 (gdbscm_make_parameter): Ditto.
2096 2014-06-03 Doug Evans <dje@google.com>
2098 * exec.c (exec_close_1): Call clear_section_table instead of
2099 resize_section_table.
2100 (clear_section_table): New function.
2101 (resize_section_table): Make static. Rename arg num_added to
2103 * exec.h (clear_section_table): Declare.
2104 (resize_section_table): Delete.
2105 * progspace.c (release_program_space): Call clear_section_table
2106 instead of resize_section_table.
2108 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2110 * NEWS (Python Scripting): Add entry about the new xmethods
2113 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2115 * python/py-xmethods.c: New file.
2116 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2117 (objfpy_dealloc): XDECREF on the new xmethods field.
2118 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2120 (objfpy_get_xmethods): New function.
2121 (objfile_getset): New entry 'xmethods'.
2122 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2123 (pspy_dealloc): XDECREF on the new xmethods field.
2124 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2126 (pspy_get_xmethods): New function.
2127 (pspace_getset): New entry 'xmethods'.
2128 * python/python-internal.h: Add declarations for new functions.
2129 * python/python.c (_initialize_python): Invoke
2130 gdbpy_initialize_xmethods.
2131 * python/lib/gdb/__init__.py (xmethods): New
2133 * python/lib/gdb/xmethod.py: New file.
2134 * python/lib/gdb/command/xmethods.py: New file.
2136 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2138 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2139 best match method returned by find_overload_match is an xmethod.
2140 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2141 the best matching operator returned by find_overload_match is an
2143 * valops.c: #include "extension.h".
2144 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2145 Return void. The list of matching source methods is returned in
2146 "fn_list" and a vector of matching debug method workers is
2147 returned in "xm_worker_vec". Update all callers.
2148 (value_find_oload_method_list): Likewise.
2149 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2150 non-NULL, then the index of the best matching method in this
2151 vector is returned. Update all callers.
2152 (find_overload_match): Include xmethods while performing overload
2155 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2157 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2158 * extension-priv.h (struct extension_language_ops): Add the
2160 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2161 get_matching_xmethod_workers, get_xmethod_argtypes,
2162 invoke_xmethod, free_xmethod_worker,
2163 free_xmethod_worker_vec): New functions.
2164 * extension.h: #include "common/vec.h".
2165 New function declarations.
2166 (struct xmethod_worker): New struct.
2167 (VEC (xmethod_worker_ptr)): New vector type.
2168 (xmethod_worker_ptr): New typedef.
2169 (xmethod_worker_vec): Likewise.
2170 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2172 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2173 (struct builtin_type): New field "xmethod".
2174 * valarith.c (value_ptradd): Assert that the value argument is not
2176 * valops.c (value_must_coerce_to_target): Return 0 for
2177 lval_xcallable values.
2178 * value.c (struct value): New field XM_WORKER in the field
2180 (value_address, value_raw_address): Return 0 for lval_xcallable
2182 (set_value_address): Assert that the value is not an
2184 (value_free): Free the associated xmethod worker when freeing
2185 lval_xcallable values.
2186 (set_value_component_location): Assert that the WHOLE value is not
2188 (value_of_xmethod, call_xmethod): New functions.
2189 * value.h: Declare "struct xmethod_worker".
2190 Declare new functions value_of_xmethod, call_xmethod.
2192 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2193 Pedro Alves <palves@redhat.com>
2195 PR breakpoints/17000
2196 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2197 New function, extracted from software_breakpoint_inserted_here_p.
2198 (software_breakpoint_inserted_here_p): Replace factored out code
2199 by call to find_non_raw_software_breakpoint_inserted_here.
2200 (bp_target_info_copy_insertion_state): New function.
2201 (bkpt_insert_location): Handle the case of a single-step
2202 breakpoint already inserted at the same address.
2203 (bkpt_remove_location): Handle the case of a single-step
2204 breakpoint still inserted at the same address.
2205 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2206 breakpoint already inserted at the same address.
2207 (deprecated_remove_raw_breakpoint): Handle the case of a
2208 non-raw breakpoint still inserted at the same address.
2209 (find_single_step_breakpoint): New function, extracted from
2210 single_step_breakpoint_inserted_here_p.
2211 (find_single_step_breakpoint): New function,
2212 factored out from single_step_breakpoint_inserted_here_p.
2213 (single_step_breakpoint_inserted_here_p): Reimplement.
2215 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2217 Pushed by Joel Brobecker <brobecker@adacore.com>
2218 * source.c (show_substitute_path_command): Fix display of matching
2221 2014-06-03 Gary Benson <gbenson@redhat.com>
2223 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2225 2014-06-02 Doug Evans <xdje42@gmail.com>
2227 Add parameter support for Guile.
2228 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2229 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2230 (scm-param.o): New rule.
2231 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2232 (gdbscm_misc_error): Declare.
2233 (gdbscm_canonicalize_command_name): Declare.
2234 (gdbscm_scm_to_host_string): Declare.
2235 (gdbscm_scm_from_host_string): Declare.
2236 (gdbscm_initialize_parameters): Declare.
2237 * guile/guile.c (initialize_gdb_module): Call
2238 gdbscm_initialize_parameters.
2239 * guile/lib/gdb.scm: Export parameter symbols.
2240 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2241 cmdscm_canonicalize_name and made public. All callers updated.
2242 * guile/scm-exception.c (gdbscm_misc_error): New function.
2243 * guile/scm-param.c: New file.
2244 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2245 (gdbscm_scm_to_host_string): New function.
2246 (gdbscm_scm_from_host_string): New function.
2247 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2249 2014-06-02 Doug Evans <xdje42@gmail.com>
2251 Add command support for Guile.
2252 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2253 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2254 (scm-cmd.o): New rule.
2255 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2256 (gdbscm_user_error_p): Declare.
2257 (gdbscm_parse_command_name): Declare.
2258 (gdbscm_valid_command_class_p): Declare.
2259 (gdbscm_initialize_commands): Declare.
2260 * guile/guile.c (initialize_gdb_module): Call
2261 gdbscm_initialize_commands.
2262 * guile/lib/gdb.scm: Export command symbols.
2263 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2264 (throw-user-error): New function.
2265 * guile/scm-cmd.c: New file.
2266 * guile/scm-exception.c (user_error_symbol): New static global.
2267 (gdbscm_user_error_p): New function.
2268 (gdbscm_initialize_exceptions): Set user_error_symbol.
2269 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2271 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2273 * top.c (command_loop): Handle comments here...
2274 (command_line_input): ... not here.
2276 2014-06-02 Doug Evans <xdje42@gmail.com>
2278 Add progspace support for Guile.
2279 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2280 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2281 (scm-progspace.o): New rule.
2282 * guile/guile-internal.h (pspace_smob): New typedef.
2283 (psscm_pspace_smob_pretty_printers): Declare.
2284 (psscm_pspace_smob_from_pspace): Declare.
2285 (psscm_scm_from_pspace): Declare.
2286 * guile/guile.c (initialize_gdb_module): Call
2287 gdbscm_initialize_pspaces.
2288 * guile/lib/gdb.scm: Export progspace symbols.
2289 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2291 (append-pretty-printer!): Ditto.
2292 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2294 * guile/scm-progspace.c: New file.
2296 2014-06-03 Alan Modra <amodra@gmail.com>
2298 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2299 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2301 2014-06-02 Doug Evans <dje@google.com>
2303 Add support for skeletonless type units.
2304 * dwarf2read.c (struct dwarf2_per_objfile): New member
2305 n_allocated_type_units.
2306 (struct dwarf2_per_objfile) <tu_stats>: New member
2307 nr_all_type_units_reallocs.
2308 (create_signatured_type_table_from_index): Initialize
2309 n_allocated_type_units
2310 (create_all_type_units): Ditto.
2311 (add_type_unit): Move up in file. New arg slot.
2312 All callers updated. Increase space for all_type_units more
2314 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2315 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2316 (lookup_dwp_signatured_type): Ditto.
2317 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2318 All callers updated.
2319 (build_type_psymtabs_1): Leave type_unit_groups as
2320 NULL if no TUs present.
2321 (print_tu_stats): New function.
2322 (process_skeletonless_type_unit): New function.
2323 (process_dwo_file_for_skeletonless_type_units): New
2325 (process_skeletonless_type_units): New function.
2326 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2327 Call print tu_stats if debugging enabled.
2329 2014-06-02 Pedro Alves <palves@redhat.com>
2331 * breakpoint.c (build_target_command_list): Don't build a command
2332 list if we have any duplicate location that isn't a dprintf.
2334 2014-06-02 Pedro Alves <palves@redhat.com>
2336 * breakpoint.c (dprintf_breakpoint_hit): New function.
2337 (initialize_breakpoint_ops): Install it as dprintf's
2338 breakpoint_hit method.
2340 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2342 * source.c (substitute_path_rule_matches): Simplify using
2343 filename_ncmp instead of FILENAME_CMP.
2345 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2347 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2349 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2351 * configure.ac: When Guile is available, check for the
2352 availability of 'scm_new_smob'.
2353 * configure, config.h.in: Regenerate.
2354 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2357 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2359 * frame.c (struct frame_info): Add stop_string field.
2360 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2361 (get_prev_frame_always): Old content moved into
2362 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2363 TRY_CATCH, handle MEMORY_ERROR exceptions.
2364 (frame_stop_reason_string): New function definition.
2365 * frame.h (unwind_stop_reason_to_string): Extend comment to
2366 mention frame_stop_reason_string.
2367 (frame_stop_reason_string): New function declaration.
2368 * stack.c (frame_info): Switch to frame_stop_reason_string.
2369 (backtrace_command_1): Switch to frame_stop_reason_string.
2370 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2371 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2372 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2374 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2376 * frame.c (frame_stop_reason_string): Rename to ...
2377 (unwind_stop_reason_to_string): this.
2378 * frame.h (frame_stop_reason_string): Rename to ...
2379 (unwind_stop_reason_to_string): this.
2380 * stack.c (frame_info): Update call to frame_stop_reason_string.
2381 (backtrace_command_1): Likewise.
2382 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2383 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2385 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2387 * frame.c (remove_prev_frame): New function.
2388 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2391 2014-05-29 Pedro Alves <palves@redhat.com>
2393 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2394 and make it const. When a single-step decays to a continue,
2395 clear 'step', not 'hw_step'. Pass whether the caller wanted
2396 to step to user_visible_resume_ptid, not what we ask the
2399 2014-05-29 Pedro Alves <palves@redhat.com>
2401 * infrun.c (process_event_stop_test, handle_step_into_function)
2402 (handle_step_into_function_backward): Adjust.
2403 Don't set the even thread's stop_step and call stop_waiting before
2404 calling end_stepping_range. Instead do that ...
2405 (end_stepping_range): ... here. Take an ecs pointer parameter.
2407 2014-05-29 Pedro Alves <palves@redhat.com>
2409 * infrun.c (stop_stepping): Rename to ...
2410 (stop_waiting): ... this.
2411 (proceed): Update comment.
2412 (process_event_stop_test, handle_inferior_event)
2413 (handle_signal_stop, handle_step_into_function)
2414 (handle_step_into_function_backward): Update.
2416 2014-05-29 Pedro Alves <palves@redhat.com>
2418 * infcall.c (run_inferior_call): Don't check whether the current
2419 thread is running after the proceed call.
2421 2014-05-29 Pedro Alves <palves@redhat.com>
2422 Tom Tromey <tromey@redhat.com>
2424 * NEWS: Mention "maint set target-async", "set mi-async", and that
2425 background execution commands are now always available.
2426 * target.h (target_async_permitted): Update comment.
2427 * target.c (target_async_permitted, target_async_permitted_1):
2429 (set_target_async_command): Rename to ...
2430 (maint_set_target_async_command): ... this.
2431 (show_target_async_command): Rename to ...
2432 (maint_show_target_async_command): ... this.
2433 (_initialize_target): Adjust.
2434 * infcmd.c (prepare_execution_command): Make extern.
2435 * inferior.h (prepare_execution_command): Declare.
2436 * infrun.c (set_observer_mode): Leave target async alone.
2437 * mi/mi-interp.c (mi_interpreter_init): Install
2438 mi_on_sync_execution_done as sync_execution_done observer.
2439 (mi_on_sync_execution_done): New function.
2440 (mi_execute_command_input_handler): Don't print the prompt if we
2441 just started a synchronous command with an async target.
2442 (mi_on_resume): Check sync_execution before printing prompt.
2443 * mi/mi-main.h (mi_async_p): Declare.
2444 * mi/mi-main.c: Include gdbcmd.h.
2445 (mi_async_p): New function.
2446 (mi_async, mi_async_1): New globals.
2447 (set_mi_async_command, show_mi_async_command, mi_async): New
2449 (exec_continue): Call prepare_execution_command.
2450 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2451 (mi_execute_async_cli_command): Use mi_async_p.
2452 (_initialize_mi_main): Install "set mi-async". Make
2453 "target-async" a deprecated alias.
2455 2014-05-29 Pedro Alves <palves@redhat.com>
2457 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2458 (_initialize_cli_interp): Adjust.
2459 * event-loop.c: Include "observer.h".
2460 (start_event_loop): Notify 'command_error' observers instead of
2461 calling display_gdb_prompt. Remove FIXME comment.
2462 * event-top.c (display_gdb_prompt): Remove call into the
2464 * inf-loop.c: Include "observer.h".
2465 (inferior_event_handler): Notify 'command_error' observers instead
2466 of calling display_gdb_prompt.
2467 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2468 observers instead of calling display_gdb_prompt.
2469 * interps.c (interp_set): Don't call display_gdb_prompt.
2470 (current_interp_display_prompt_p): Delete.
2471 * interps.h (interp_prompt_p): Delete declaration.
2472 (interp_prompt_p_ftype): Delete.
2473 (struct interp_procs) <prompt_proc_p>: Delete field.
2474 (current_interp_display_prompt_p): Delete declaration.
2475 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2476 (_initialize_mi_interp): Adjust.
2477 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2478 'command_error' observers.
2479 (tui_on_sync_execution_done, tui_on_command_error): New
2481 (tui_display_prompt_p): Delete.
2482 (_initialize_tui_interp): Adjust.
2484 2014-05-29 Pedro Alves <palves@redhat.com>
2487 * cli/cli-interp.c: Include infrun.h and observer.h.
2488 (cli_uiout, cli_interp): New globals.
2489 (cli_on_signal_received, cli_on_end_stepping_range)
2490 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2492 (cli_interpreter_init): Install them as 'end_stepping_range',
2493 'signal_received' 'signal_exited', 'exited' and 'no_history'
2495 (_initialize_cli_interp): Remove cli_interp local.
2496 * infrun.c (handle_inferior_event): Call the several stop reason
2497 observers instead of printing the stop reason directly.
2498 (end_stepping_range): New function.
2499 (print_end_stepping_range_reason, print_signal_exited_reason)
2500 (print_exited_reason, print_signal_received_reason)
2501 (print_no_history_reason): Make static, and add an uiout
2502 parameter. Print to that instead of to CURRENT_UIOUT.
2503 * infrun.h (print_end_stepping_range_reason)
2504 (print_signal_exited_reason, print_exited_reason)
2505 (print_signal_received_reason print_no_history_reason): New
2507 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2509 <cli_uiout>: New field.
2510 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2511 uiout for CLI output. Install 'signal_received',
2512 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2514 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2515 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2516 (mi_on_no_history): New functions.
2517 (ui_out_free_cleanup): Delete function.
2518 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2519 instead use the one already stored in the MI interpreter data.
2520 (mi_ui_out): Adjust.
2521 * tui/tui-interp.c: Include infrun.h and observer.h.
2522 (tui_interp): New global.
2523 (tui_on_signal_received, tui_on_end_stepping_range)
2524 (tui_on_signal_exited, tui_on_exited)
2525 (tui_on_no_history): New functions.
2526 (tui_init): Install them as 'end_stepping_range',
2527 'signal_received' 'signal_exited', 'exited' and 'no_history'
2529 (_initialize_tui_interp): Delete tui_interp local.
2531 2014-05-29 Pedro Alves <palves@redhat.com>
2534 * linux-nat.c (linux_nat_resume_callback): Rename the second
2535 parameter to 'except'. Skip LP if it points to EXCEPT.
2536 (linux_nat_resume): Don't mark the event lwp as not stopped
2537 before resuming sibling lwps. Instead ask
2538 linux_nat_resume_callback to skip the event lwp. Mark it as not
2539 stopped after actually resuming it.
2540 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2542 (wait_lwp): Mark the lwp as stopped here.
2543 (stop_wait_callback): Mark the lwp as not stopped right after
2544 resuming it. Don't mark lwps as stopped here.
2545 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2546 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2548 2014-05-29 Pedro Alves <palves@redhat.com>
2551 * infrun.c (resume): Determine how much to resume depending on
2552 whether the caller wanted a step, not whether we can hardware step
2553 the target. Mark all threads that we intend to run as running,
2554 unless we're calling an inferior function.
2555 (normal_stop): If the thread is running an infcall, don't finish
2557 * target.c (target_resume): Don't mark threads as running here.
2559 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2561 * serial.c (_initialize_serial): Remove support for
2562 the "set remotebaud" and "show remotebaud" commands.
2563 * NEWS: Add entry documenting the removal of that command.
2565 2014-05-28 Yao Qi <yao@codesourcery.com>
2567 * charset.c: Fix typo in comments.
2569 2014-05-27 Gary Benson <gbenson@redhat.com>
2571 * utils.c (internal_vproblem): Prompt for a bug report.
2573 2014-05-26 Andy Wingo <wingo@igalia.com>
2575 * guile/scm-arch.c (arscm_mark_arch_smob):
2576 * guile/scm-block.c (bkscm_mark_block_smob)
2577 (bkscm_mark_block_syms_progress_smob):
2578 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2579 * guile/scm-exception.c (exscm_mark_exception_smob):
2580 * guile/scm-frame.c (frscm_mark_frame_smob):
2581 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2582 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2583 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2584 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2585 (ppscm_mark_pretty_printer_worker_smob):
2586 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2587 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2588 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2589 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2591 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2594 2014-05-26 Andy Wingo <wingo@igalia.com>
2595 Doug Evans <xdje42@gmail.com>
2597 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2598 empty_base_class. All uses updated.
2599 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2600 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2602 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2603 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2604 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2605 (gdbscm_gsmob_has_property_p, add_property_name)
2606 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2607 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2608 (gdb-object-has-property?, gdb-object-properties): Remove.
2609 (gdb-object-kind): Renamed from gsmob-kind.
2611 2014-05-26 Andy Wingo <wingo@igalia.com>
2613 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2614 * configure: Regenerate.
2616 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2618 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2620 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2622 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2623 (replay_memory_access_read_only, replay_memory_access_read_write)
2624 (replay_memory_access_types, replay_memory_access)
2625 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2626 (cmd_set_record_btrace, cmd_show_record_btrace)
2627 (cmd_show_replay_memory_access): New.
2628 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2629 (record_btrace_remove_breakpoint): Replace
2630 record_btrace_allow_memory_access with replay_memory_access.
2631 (_initialize_record_btrace): Add commands.
2632 * NEWS: Announce it.
2634 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2636 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2638 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2640 * MAINTAINERS (Write After Approval): Move self back from
2643 2014-05-22 Pedro Alves <palves@redhat.com>
2645 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2646 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2647 (disable_randomization, enum exec_direction_kind)
2648 (execution_direction, stop_registers, start_remote)
2649 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2650 (wait_for_inferior, normal_stop, get_last_target_status)
2651 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2652 (insert_step_resume_breakpoint_at_sal)
2653 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2654 (set_step_info, print_stop_event, signal_stop_state)
2655 (signal_print_state, signal_pass_state, signal_stop_update)
2656 (signal_print_update, signal_pass_update)
2657 (update_signals_program_target, clear_exit_convenience_vars)
2658 (displaced_step_dump_bytes, update_observer_mode)
2659 (signal_catch_update, gdb_signal_from_command): Move
2661 * infrun.h: ... to this new file.
2662 * amd64-tdep.c: Include infrun.h.
2663 * annotate.c: Include infrun.h.
2664 * arch-utils.c: Include infrun.h.
2665 * arm-linux-tdep.c: Include infrun.h.
2666 * arm-tdep.c: Include infrun.h.
2667 * break-catch-sig.c: Include infrun.h.
2668 * breakpoint.c: Include infrun.h.
2669 * common/agent.c: Include infrun.h instead of inferior.h.
2670 * corelow.c: Include infrun.h.
2671 * event-top.c: Include infrun.h.
2672 * go32-nat.c: Include infrun.h.
2673 * i386-tdep.c: Include infrun.h.
2674 * inf-loop.c: Include infrun.h.
2675 * infcall.c: Include infrun.h.
2676 * infcmd.c: Include infrun.h.
2677 * infrun.c: Include infrun.h.
2678 * linux-fork.c: Include infrun.h.
2679 * linux-nat.c: Include infrun.h.
2680 * linux-thread-db.c: Include infrun.h.
2681 * monitor.c: Include infrun.h.
2682 * nto-tdep.c: Include infrun.h.
2683 * procfs.c: Include infrun.h.
2684 * record-btrace.c: Include infrun.h.
2685 * record-full.c: Include infrun.h.
2686 * remote-m32r-sdi.c: Include infrun.h.
2687 * remote-mips.c: Include infrun.h.
2688 * remote-notif.c: Include infrun.h.
2689 * remote-sim.c: Include infrun.h.
2690 * remote.c: Include infrun.h.
2691 * reverse.c: Include infrun.h.
2692 * rs6000-tdep.c: Include infrun.h.
2693 * s390-linux-tdep.c: Include infrun.h.
2694 * solib-irix.c: Include infrun.h.
2695 * solib-osf.c: Include infrun.h.
2696 * solib-svr4.c: Include infrun.h.
2697 * target.c: Include infrun.h.
2698 * top.c: Include infrun.h.
2699 * windows-nat.c: Include infrun.h.
2700 * mi/mi-interp.c: Include infrun.h.
2701 * mi/mi-main.c: Include infrun.h.
2702 * python/py-threadevent.c: Include infrun.h.
2704 2014-05-22 Pedro Alves <palves@redhat.com>
2706 * infrun.c (handle_inferior_event): Store the exit code for
2707 --return-child-result here, instead of ...
2708 (print_exited_reason): ... here.
2710 2014-05-21 Pedro Alves <palves@redhat.com>
2713 * gdbthread.h (struct thread_control_state): New field
2715 * infrun.c (follow_fork): Copy the new thread control field to the
2717 (clear_proceed_status_thread): Clear the new thread control field.
2718 (proceed): Set the new thread control field.
2719 * interps.h (command_interp): Declare.
2720 * interps.c (command_interpreter): New global.
2721 (command_interp): New function.
2722 (interp_exec): Set `command_interpreter' while here.
2723 * cli-out.c (cli_uiout_dtor): New function.
2724 (cli_ui_out_impl): Install it.
2725 * mi/mi-interp.c: Include cli-out.h.
2726 (mi_cmd_interpreter_exec): Add comment.
2727 (restore_current_uiout_cleanup): New function.
2728 (ui_out_free_cleanup): New function.
2729 (mi_on_normal_stop): If finishing an execution command started by
2730 a CLI command, or any kind of breakpoint-like event triggered,
2731 print the stop event to the output (CLI) stream.
2732 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2734 2014-05-21 Pedro Alves <palves@redhat.com>
2736 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2737 current source line having changed.
2738 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2739 * infrun.c (normal_stop): Adjust call to
2740 set_current_sal_from_frame.
2741 * source.c (clear_lines_listed_range): New function.
2742 (set_current_source_symtab_and_line, identify_source_line): Clear
2743 the lines listed range.
2744 (line_info): Handle the first "info line" after the current source
2745 line having changed.
2746 * stack.c (print_stack_frame): Remove center handling.
2747 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2750 2014-05-21 Pedro Alves <palves@redhat.com>
2752 * inf-child.c (inf_child_mourn_inferior): New function.
2753 * inf-child.h (inf_child_mourn_inferior): New declaration.
2754 * darwin-nat.c (darwin_mourn_inferior): Use
2755 inf_child_mourn_inferior.
2756 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2757 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2758 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2759 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2760 * windows-nat.c (windows_mourn_inferior): Likewise.
2762 2014-05-21 Doug Evans <xdje42@gmail.com>
2764 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2766 2014-05-21 Doug Evans <xdje42@gmail.com>
2768 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2769 (gdbscm_out_of_range_error): Ditto.
2770 (gdbscm_memory_error): Ditto.
2771 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2772 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2773 (gdbscm_out_of_range_error): Update.
2774 (gdbscm_memory_error): Update.
2775 (gdbscm_scm_to_target_string_unsafe): Delete.
2777 2014-05-21 Pedro Alves <palves@redhat.com>
2779 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2781 (inf_child_open_target): New function.
2782 (inf_child_open): Use inf_child_open_target to push the target
2783 instead of erroring out.
2784 (inf_child_disconnect, inf_child_close)
2785 (inf_child_maybe_unpush_target): New functions.
2786 (inf_child_target): Install inf_child_disconnect and
2787 inf_child_close. Store a pointer to the returned object.
2788 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2790 * target.c (auto_connect_native_target): New global.
2791 (show_default_run_target): New function.
2792 (find_default_run_target): Return NULL if automatically connecting
2793 to the native target is disabled.
2794 (_initialize_target): Install set/show auto-connect-native-target.
2795 * NEWS: Mention "set auto-connect-native-target", and "target
2797 * linux-nat.c (super_close): New global.
2798 (linux_nat_close): Call super_close.
2799 (linux_nat_add_target): Store a pointer to the base class's
2801 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2802 inf_child_maybe_unpush.
2803 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2805 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2806 the inferior. Use inf_child_maybe_unpush_target.
2807 (inf_ttrace_attach): Don't push the target if it is already
2809 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2810 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2811 after mourning the inferior. Use inf_child_maybe_unpush_target.
2812 (darwin_attach_pid): Don't push the target if it is already
2814 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2815 mourning the inferior. Use inf_child_maybe_unpush_target.
2816 (gnu_detach): Use inf_child_maybe_unpush_target.
2817 * go32-nat.c (go32_create_inferior): Don't push the target if it
2819 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2820 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2821 (procfs_open): Rename to ...
2822 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2823 comments. Can target_preopen before changing node. Call
2824 inf_child_open_target to push the target explicitly.
2825 (procfs_attach): Don't push the target if it is already pushed.
2826 (procfs_detach): Use inf_child_maybe_unpush_target.
2827 (procfs_create_inferior): Don't push the target if it is already
2829 (nto_native_ops): New global.
2830 (procfs_open): Reimplement.
2831 (procfs_native_open): New function.
2832 (init_procfs_targets): Install procfs_native_open as to_open of
2833 "target native". Store a pointer to the "native" target in
2835 * procfs.c (procfs_attach): Don't push the target if it is already
2837 (procfs_detach): Use inf_child_maybe_unpush_target.
2838 (procfs_mourn_inferior): Only unpush the target after mourning the
2839 inferior. Use inf_child_maybe_unpush_target.
2840 (procfs_init_inferior): Don't push the target if it is already
2842 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2843 if it is already pushed.
2845 2014-05-21 Pedro Alves <palves@redhat.com>
2847 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2848 and "procfs" targets are now called "native" instead.
2850 2014-05-21 Pedro Alves <palves@redhat.com>
2852 * go32-nat.c (go32_open): Delete.
2853 (go32_target): Don't override the to_open method.
2855 2014-05-21 Pedro Alves <palves@redhat.com>
2857 * nto-procfs.c (procfs_can_run): New function.
2858 (nto_procfs_ops): New global.
2859 (init_procfs_targets): New, based on procfs_target. Install
2860 "target native" in addition to "target procfs".
2861 (_initialize_procfs): Call init_procfs_targets instead of adding
2864 2014-05-21 Pedro Alves <palves@redhat.com>
2866 * windows-nat.c (windows_target): Don't override to_shortname,
2867 to_longname or to_doc.
2869 2014-05-21 Pedro Alves <palves@redhat.com>
2871 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2874 2014-05-21 Pedro Alves <palves@redhat.com>
2876 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2877 to_shortname, to_longname or to_doc.
2879 2014-05-21 Pedro Alves <palves@redhat.com>
2881 * go32-nat.c (go32_target): Don't override to_shortname,
2882 to_longname or to_doc.
2884 2014-05-21 Pedro Alves <palves@redhat.com>
2886 * inf-child.c (inf_child_open): Remove mention of "child".
2887 (inf_child_target): Rename target to "native" instead of "child".
2889 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2891 * Makefile.in (SFILES): Delete "regset.c".
2892 (COMMON_OBS): Delete "regset.o".
2894 * regset.h (regset_alloc): Delete prototype.
2896 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2898 * sparc-linux-tdep.c (sparc32_linux_gregset)
2899 (sparc32_linux_fpregset): New static regset structures.
2900 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2901 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2903 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2904 (sparc64_linux_fpregset): New static regset structures.
2905 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2906 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2907 New static regset structures.
2908 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2909 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2910 New static regset structures.
2911 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2912 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2913 New static regset structures.
2914 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2915 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2916 New static regset structures.
2917 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2919 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2921 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2922 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2923 register maps ("regmaps") from "*regset" to "*regmap". Do this
2924 for all regmap types and variables.
2925 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2926 (sparc32_linux_supply_core_gregset)
2927 (sparc32_linux_collect_core_gregset)
2928 (sparc32_linux_supply_core_fpregset)
2929 (sparc32_linux_collect_core_fpregset): Likewise.
2930 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2931 (sparc_gregmap, sparc_fpregmap): ... these.
2932 (sparc_supply_gregset, sparc_collect_gregset)
2933 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2934 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2935 (_initialize_sparc_nat): Rename regmaps.
2936 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2937 (sparc_gregmap, sparc_fpregmap): ... these.
2938 (sparc_supply_gregset, sparc_collect_gregset)
2939 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2940 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2942 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2943 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2945 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2947 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2948 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2949 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2951 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2952 (sparc32_bsd_fpregset): Rename to...
2953 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2954 (sparc32_bsd_fpregmap): ... these.
2955 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2956 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2957 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2958 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2959 (struct sparc_gregmap, struct sparc_fpregmap)
2960 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2961 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2962 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2963 (sparc32_supply_regset, sparc32_collect_gregset)
2964 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2966 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2967 (sparc64_linux_ptrace_gregmap): ... this.
2968 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2969 (_initialize_sparc64_linux_nat): Rename regmaps.
2970 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2971 (sparc64_linux_core_gregmap): ... this.
2972 (sparc64_linux_supply_core_gregset)
2973 (sparc64_linux_collect_core_gregset)
2974 (sparc64_linux_supply_core_fpregset)
2975 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2976 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2977 (sparc64_sol2_fpregset): Rename to...
2978 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2979 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2980 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2982 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2983 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2984 (sparc64_bsd_fpregset): Rename to...
2985 (struct sparc_gregmap, sparc64_sol2_gregmap)
2986 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2987 (sparc64_bsd_fpregmap): ... these.
2988 (sparc64_supply_gregset, sparc64_collect_gregset)
2989 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2991 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2992 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2993 (sparc64fbsd_gregmap): ... this.
2994 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2995 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2997 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2998 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2999 (sparc64nbsd_collect_fpregset): Likewise.
3000 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3001 (sparc64nbsd_gregmap): ... this.
3002 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3004 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3005 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3006 (sparc64obsd_gregmap): ... this.
3007 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3009 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3010 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3011 (sparc32nbsd_gregmap): ... this.
3012 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3015 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3017 * score-tdep.c (score7_linux_gregset): New static regset
3019 (score7_linux_regset_from_core_section): Remove dynamic regset
3021 (score_gdbarch_init): Drop allocation of tdep structure.
3022 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3024 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3026 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3028 (am33_regset_from_core_section): Remove dynamic regset
3031 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3033 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3034 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3036 (mips_linux_regset_from_core_section): Remove dynamic regset
3038 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3039 'gregset64', 'fpregset', and 'fpregset64'.
3040 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3041 deleted tdep fields.
3043 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3045 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3047 (amd64_regset_from_core_section): Remove dynamic regset
3049 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3051 (amd64obsd_regset_from_core_section): Remove dynamic regset
3053 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3055 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3056 x86-common regset supply function.
3057 * i386-tdep.c (i386_collect_gregset): Make static.
3058 (i386_gregset): New global regset structure.
3059 (i386_fpregset, i386_xstateregset): New static regset structures.
3060 (i386_regset_from_core_section): Remove dynamic regset
3062 (i386_gdbarch_init): Remove initialization of tdep fields
3063 'gregset', 'fpregset', and 'xstateregset'.
3064 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3065 'fpregset', and 'xstateregset'.
3066 (i386_collect_gregset): Remove prototype.
3067 (i386_gregset): New declaration.
3068 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3070 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3073 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3075 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3076 (arm_linux_vfpregset): New static regset structures.
3077 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3079 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3080 and 'vfpregset' fields.
3082 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3084 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3085 (aarch64_linux_fpregset): New static regset structures.
3086 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3087 of regset structures.
3088 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3091 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3093 * regset.h (struct regset): Remove gdbarch field.
3094 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3095 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3096 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3098 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3099 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3100 (ppc32_linux_vsxregset): Likewise.
3101 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3102 via the regcache instead of the regset.
3103 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3104 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3105 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3106 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3109 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3111 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3112 Constify structures.
3113 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3114 (alphanbsd_aout_gregset): Likewise.
3115 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3116 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3118 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3119 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3121 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3122 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3123 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3124 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3125 * m88k-tdep.c (m88k_gregset): Likewise.
3126 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3127 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3128 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3129 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3130 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3131 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3132 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3133 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3134 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3136 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3137 * sh-tdep.h (sh_corefile_gregset): Likewise.
3138 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3139 * vax-tdep.c (vax_gregset): Likewise.
3141 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3143 Fix TLS access for -static -pthread.
3144 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3145 (try_thread_db_load_1): Initialize it.
3146 (thread_db_get_thread_local_address): Call it if LM is zero.
3147 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3148 * target.h (struct target_ops) (to_get_thread_local_address): Add
3149 load_module_addr comment.
3151 2014-05-21 Pedro Alves <palves@redhat.com>
3153 * dcache.c (dcache_read_memory_partial): If reading the cache line
3154 fails, fallback to reading just the memory the caller wanted.
3156 2014-05-20 Doug Evans <dje@google.com>
3158 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3159 instead of get_current_arch.
3161 2014-05-20 Pedro Alves <palves@redhat.com>
3163 * NEWS: Mention that compare-sections now works with all targets.
3165 * remote.c (PACKET_qCRC): New enum value.
3166 (remote_verify_memory): Don't send qCRC if the target has no
3167 execution. Use packet_support/packet_ok. If the target doesn't
3168 support the qCRC packet, fallback to a deep memory copy.
3169 (compare_sections_command): Say "target image" instead of "remote
3171 (_initialize_remote): Add PACKET_qCRC to the list of config
3172 packets that have no associated command. Extend comment.
3173 * target.c (simple_verify_memory, default_verify_memory): New
3175 * target.h (struct target_ops) <to_verify_memory>: Default to
3176 default_verify_memory.
3177 (simple_verify_memory): New declaration.
3178 * target-delegates.c: Regenerate.
3180 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3182 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3184 2014-05-20 Hui Zhu <hui@codesourcery.com>
3185 Yao Qi <yao@codesourcery.com>
3188 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3189 and change address of sp and pc.
3191 2014-05-19 Tom Tromey <tromey@redhat.com>
3193 * gdbtypes.c (rank_function): Use XNEWVEC.
3194 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3196 2014-05-19 Doug Evans <dje@google.com>
3198 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3199 build_type_unit_groups and moved closer to only caller. Remove
3200 arguments. All references updated. Remove outdated .gdb_index
3202 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3203 build_type_psymtabs_1.
3205 2014-05-19 Doug Evans <dje@google.com>
3207 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3208 n_type_unit_groups, all_type_unit_groups. All uses removed.
3209 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3210 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3211 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3212 (add_type_unit_group_to_table): Delete.
3214 2014-05-19 Doug Evans <dje@google.com>
3216 * eval.c (evaluate_subexp_standard): Add some comments.
3218 2014-05-17 Doug Evans <xdje42@gmail.com>
3220 * progspace.c (remove_program_space): Delete, unused.
3221 * progspace.h (remove_program_space): Ditto.
3223 2014-05-17 Doug Evans <xdje42@gmail.com>
3225 * inferior.c (prune_inferiors): Fix comment.
3226 (remove_inferior_command): Call prune_program_spaces.
3228 2014-05-16 Doug Evans <dje@google.com>
3230 New command line option -D.
3232 * main.c (set_gdb_data_directory): New function.
3233 (captured_main): Recognize -D. Flag error for --data-directory "".
3234 Call set_gdb_data_directory.
3235 (print_gdb_help): Print --data-directory, -D.
3236 * main.h (set_gdb_data_directory): Declare.
3237 * top.c (staged_gdb_datadir): New static global.
3238 (set_gdb_datadir): Call set_gdb_data_directory
3239 (show_gdb_datadir): New function.
3240 (init_main): Update init of data-directory parameter.
3242 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3244 Import the "dirfd" gnulib module.
3245 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3246 * gnulib/aclocal.m4: Update.
3247 * gnulib/config.in: Update.
3248 * gnulib/configure: Update.
3249 * gnulib/import/Makefile.am: Update.
3250 * gnulib/import/Makefile.in: Update.
3251 * gnulib/import/dirfd.c: New.
3252 * gnulib/import/m4/dirfd.m4: New.
3253 * gnulib/import/m4/gnulib-cache.m4: Update.
3254 * gnulib/import/m4/gnulib-comp.m4: Update.
3256 2014-05-16 Pierre Muller <muller@sourceware.org>
3257 Yao Qi <yao@codesourcery.com>
3259 * valprint.c (print_wchar): Move the code on checking whether
3260 W is a printable wide char to the default branch of switch
3261 statement below. Call wchar_printable instead of gdb_iswprint.
3263 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3265 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3266 ldr.w and ldrd instructions.
3268 2014-05-15 Doug Evans <dje@google.com>
3270 * dwarf2read.c (read_structure_type): Delete outdated comments.
3272 2014-05-14 Tom Tromey <tromey@redhat.com>
3274 * macrocmd.c (print_macro_definition): Reindent.
3276 2014-05-13 Doug Evans <xdje42@gmail.com>
3278 * python/py-cmd.c (cmdpy_completer): Add comment.
3279 (completers): Make const.
3281 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3283 * infrun.c (resume): Remove should_resume (unused). Move up
3284 declaration of resume_ptid.
3286 2014-05-13 Tom Tromey <tromey@redhat.com>
3288 * language.h (unop_type_check): Remove.
3289 (binop_type_check): Don't declare.
3291 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3293 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3294 call to regcache_raw_collect.
3296 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3298 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3299 mi_console->quote as the quoting character.
3301 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3303 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3305 2014-04-29 Tom Tromey <tromey@redhat.com>
3307 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3308 "show debug varobj".
3310 2014-05-07 Kyle McMartin <kyle@redhat.com>
3312 Pushed by Joel Brobecker <brobecker@adacore.com>.
3313 * aarch64-tdep.c (aarch64_software_single_step): New function.
3314 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3315 with aarch64_software_single_step.
3317 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3321 2014-05-05 Keith Seitz <keiths@redhat.com>
3323 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3324 variable or history value is successfully parsed.
3326 2014-05-05 Yao Qi <yao@codesourcery.com>
3327 Pedro Alves <palves@redhat.com>
3329 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3330 address of blocks that intersects the requested range. Trim
3331 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3333 * ctf.c (ctf_xfer_partial): Likewise.
3335 2014-05-05 Yao Qi <yao@codesourcery.com>
3337 * printcmd.c (display_command): Remove the check to
3338 target_has_execution.
3340 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3342 * ppcobsd-nat.c: Include "obsd-nat.h".
3343 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3345 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3347 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3349 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3350 and 16-bit signed and unsigned arguments. Update comment.
3351 (stap_parse_probe_arguments): Extend code to handle such
3352 arguments. Use warning instead of complaint to notify about
3353 unrecognized bitness.
3355 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3357 PR breakpoints/16889
3358 * stap-probe.c (stap_parse_probe_arguments): Simplify
3359 check for non-prefixed probes (i.e., probes whose
3360 arguments do not start with "N@"). Always set the
3361 argument type to a sane value.
3363 2014-05-01 David Taylor <dtaylor@emc.com>
3365 * remote.c (compare_sections_command): Add -r option to compare
3366 all loadable read-only sections.
3368 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3370 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3371 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3373 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3374 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3375 Remove unused CORE_ADDR argument. Update all callers.
3377 2014-04-29 Pedro Alves <palves@redhat.com>
3379 * remote.c (struct packet_config) <detect>: Extend comment.
3380 (add_packet_config_cmd): Don't set the config's detect or support
3382 (init_all_packet_configs): Also initialize the config's 'detect'
3384 (reset_all_packet_configs_support): New function.
3385 (remote_open_1): Call reset_all_packet_configs_support instead of
3386 init_all_packet_configs.
3387 (_initialize_remote): Initialize all packet configs. Assert that
3388 all packets have an associated command, except a few known
3391 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3393 * dwarf2read.c (read_subrange_type): Handle dynamic
3394 DW_AT_lower_bound attributes.
3396 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3398 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3399 dynamic bounds before computing its upper bound.
3400 (ada_discrete_type_low_bound): Same as above with the lower bound.
3402 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3404 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3405 range types. Adjust the array handling implementation to
3406 take advantage of this change.
3407 (resolve_dynamic_range): New function, mostly extracted from
3408 resolve_dynamic_bounds.
3409 (resolve_dynamic_array): New function, mostly extracted from
3410 resolve_dynamic_bounds.
3411 (resolve_dynamic_bounds): Delete.
3412 (resolve_dynamic_type): Reimplement. Add handling of
3413 TYPE_CODE_RANGE types.
3415 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3417 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3418 handling of parallel ___XA types.
3420 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3422 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3423 unnecessary second call to static_unwrap_type.
3425 2014-04-27 Hui Zhu <hui@codesourcery.com>
3427 * stack.c (print_frame_info): Call do_gdb_disassembly with
3428 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3430 2014-04-26 Doug Evans <xdje42@gmail.com>
3432 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3434 2014-04-25 Pedro Alves <palves@redhat.com>
3437 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3438 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3439 and newline from built string.
3440 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3441 (linux_ptrace_attach_fail_reason): ... this.
3442 * linux-nat.c (linux_nat_attach): Adjust to use
3443 linux_ptrace_attach_fail_reason.
3445 2014-04-25 Pedro Alves <palves@redhat.com>
3447 * remote.c (struct remote_state): Remove multi_process_aware,
3448 non_stop_aware, cond_tracepoints, cond_breakpoints,
3449 breakpoint_commands, fast_tracepoints, static_tracepoints,
3450 install_in_trace, disconnected_tracing,
3451 enable_disable_tracepoints, string_tracing, and
3452 augmented_libraries_svr4_read fields.
3453 (remote_multi_process_p): Move further below in the file.
3454 (struct packet_config): Add comments.
3455 (update_packet_config): Delete function.
3456 (show_packet_config_cmd): Use packet_config_support.
3457 (add_packet_config_cmd): Use NULL as set callback.
3458 (packet_ok): "set remote foo-packet"-style commands no longer
3459 change config->supported -- adjust.
3460 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3461 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3462 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3463 (PACKET_QNonStop, PACKET_multiprocess_feature)
3464 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3465 (PACKET_DisconnectedTracing_feature)
3466 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3467 (set_remote_protocol_packet_cmd): Delete function.
3468 (packet_config_support, packet_support): New functions.
3469 (set_remote_protocol_Z_packet_cmd): Don't call
3470 update_packet_config.
3471 (remote_query_attached, remote_pass_signals)
3472 (remote_program_signals, remote_threads_info)
3473 (remote_threads_extra_info, remote_start_remote): Use
3475 (remote_start_remote): Use packet_config_support and
3477 (init_all_packet_configs): Set all packets to unknown support,
3478 instead of calling update_packet_config.
3479 (remote_check_symbols): Use packet_support.
3480 (remote_supported_packet): Unconditionally set the packet config's
3482 (remote_multi_process_feature, remote_non_stop_feature)
3483 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3484 (remote_breakpoint_commands_feature)
3485 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3486 (remote_install_in_trace_feature)
3487 (remote_disconnected_tracing_feature)
3488 (remote_enable_disable_tracepoint_feature)
3489 (remote_string_tracing_feature)
3490 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3491 (remote_protocol_features): Adjust to use remote_supported_packet
3492 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3493 "ConditionalTracepoints", "ConditionalBreakpoints",
3494 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3495 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3496 "EnableDisableTracepoints", and "tracenz".
3497 (remote_query_supported): Use packet_support.
3498 (remote_open_1): Adjust.
3499 (extended_remote_attach_1): Use packet_support. Switch on the
3500 result of packet_ok instead of checking whether the packet ended
3502 (remote_vcont_resume): Use packet_support.
3503 (remote_resume, remote_stop_ns, fetch_register_using_p)
3504 (remote_prepare_to_store, store_register_using_P)
3505 (check_binary_download, remote_write_bytes): Use packet_support.
3506 (remote_vkill): Use packet_support. Switch on the result of
3507 packet_ok instead of checking whether the packet ended up
3509 (extended_remote_supports_disable_randomization): Use
3511 (extended_remote_run): Switch on the result of packet_ok instead
3512 of checking whether the packet ended up disabled.
3513 (remote_insert_breakpoint, remote_remove_breakpoint)
3514 (remote_insert_watchpoint, remote_remove_watchpoint)
3515 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3517 (remote_search_memory): Use packet_config_support.
3518 (remote_get_thread_local_address, remote_get_tib_address)
3519 (remote_hostio_send_command, remote_can_execute_reverse): Use
3521 (remote_supports_cond_tracepoints)
3522 (remote_supports_cond_breakpoints)
3523 (remote_supports_fast_tracepoints)
3524 (remote_supports_static_tracepoints)
3525 (remote_supports_install_in_trace)
3526 (remote_supports_enable_disable_tracepoint)
3527 (remote_supports_string_tracing)
3528 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3529 the packet config says the feature is enabled or disabled.
3530 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3531 (remote_get_trace_status): Use packet_support.
3532 (remote_set_disconnected_tracing): Adjust to check whether the
3533 feature is enabled with packet_support.
3534 (remote_set_trace_buffer_size, remote_use_agent)
3535 (remote_can_use_agent, remote_supports_btrace): Use
3537 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3538 Use packet_config_support.
3539 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3540 the packet config says the feature is enabled or disabled.
3541 (set_range_stepping): Use packet_support.
3543 2014-04-25 Tom Tromey <tromey@redhat.com>
3545 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3548 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3550 * NEWS: Mention support for C99 variable length arrays.
3552 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3554 * ada-lang.c (standard_exc): Expand introductory comment.
3556 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3557 Walfred Tedeschi <walfred.tedeschi@intel.com>
3559 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3561 (amd64_linux_read_description): Add code to handle AVX512 xstate
3562 mask and return respective tdesc.
3563 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3564 and features/i386/x32-avx512-linux.c.
3565 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3566 (amd64_linux_core_read_description): Add code to handle AVX512
3567 xstate mask and return respective tdesc.
3568 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3569 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3571 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3572 (tdesc_amd64_avx512_linux): New prototype.
3573 (tdesc_x32_avx512_linux): Likewise.
3574 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3575 features/i386/x32-avx512.c.
3576 (amd64_ymm_avx512_names): New register names for pseudo
3578 (amd64_ymmh_avx512_names): New register names for raw registers
3580 (amd64_k_names): New register names for K registers.
3581 (amd64_zmmh_names): New register names for ZMM raw registers.
3582 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3583 (amd64_xmm_avx512_names): New register names for XMM16-31
3585 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3587 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3588 if feature is present.
3589 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3590 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3591 (AMD64_NUM_REGS): Adjust to new number of registers.
3592 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3593 registers supplied via XSTATE by AVX512 registers.
3594 (i386_linux_read_description): Add case for AVX512.
3595 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3596 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3597 (i386_linux_core_read_description): Add case for AVX512.
3598 (i386_linux_init_abi): Install supported register note section
3600 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3602 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3603 registers to be number of zmm7h + 1.
3604 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3605 * i386-tdep.c: Include features/i386/i386-avx512.c.
3606 (i386_zmm_names): Add ZMM pseudo register names array.
3607 (i386_zmmh_names): Add ZMM raw register names array.
3608 (i386_k_names): Add K raw register names array.
3609 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3610 registers. AVX512 has 16 more ZMM registers than there are YMM
3612 (i386_zmmh_regnum_p): Add function to look up register number of
3614 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3615 (i386_k_regnum_p): Likewise for K raw registers.
3616 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3617 registers added by AVX512.
3618 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3619 registers added by AVX512.
3620 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3622 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3623 (i386_pseudo_register_name): Add ZMM pseudo registers.
3624 (i386_zmm_type): Construct and return vector registers type for ZMM
3626 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3627 ZMM0-31 pseudo registers and K registers.
3628 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3629 and YMM16-31 registers from register cache.
3630 (i386_pseudo_register_write): Add code to write K, ZMM and
3632 (i386_register_reggroup_p): Add code to include/exclude AVX512
3633 registers in/from respective register groups.
3634 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3635 registers if feature is present in xcr0.
3636 (i386_gdbarch_init): Add code to initialize AVX512 feature
3637 variables in tdep structure, wire in pseudo registers and call
3638 initialize_tdesc_i386_avx512.
3639 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3641 (i386_regnum): Add AVX512 registers.
3642 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3643 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3644 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3645 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3647 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3648 (i386_ymm_avx512_regnum_p): Likewise.
3649 (i386_k_regnum_p): Likewise.
3650 (i386_zmm_regnum_p): Likewise.
3651 (i386_zmmh_regnum_p): Likewise.
3652 * i387-tdep.c : Update year in copyright notice.
3653 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3655 (XSAVE_YMM_AVX512_ADDR): New macro.
3656 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3658 (XSAVE_XMM_AVX512_ADDR): New macro.
3659 (xsave_avx512_k_offset): New table for K register offsets in
3661 (XSAVE_AVX512_K_ADDR): New macro.
3662 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3664 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3665 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3667 (i387_collect_xsave): Add code to collect AVX512 registers from
3669 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3670 of XMM16-31 registers.
3671 (I387_NUM_K_REGS): New define for number of K registers.
3672 (I387_K0_REGNUM): New define for K0 register number.
3673 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3674 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3675 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3677 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3678 (I387_XMM16_REGNUM): New define for XMM16 register number.
3679 (I387_YMM0_REGNUM): New define for YMM0 register number.
3680 (I387_KEND_REGNUM): New define for last K register number.
3681 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3682 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3684 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3686 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3688 * features/Makefile: Add AVX512 related files.
3689 * features/i386/32bit-avx512.xml: New file.
3690 * features/i386/64bit-avx512.xml: Likewise.
3691 * features/i386/amd64-avx512-linux.c: Likewise.
3692 * features/i386/amd64-avx512-linux.xml: Likewise.
3693 * features/i386/amd64-avx512.c: Likewise.
3694 * features/i386/amd64-avx512.xml: Likewise.
3695 * features/i386/i386-avx512-linux.c: Likewise.
3696 * features/i386/i386-avx512-linux.xml: Likewise.
3697 * features/i386/i386-avx512.c: Likewise.
3698 * features/i386/i386-avx512.xml: Likewise.
3699 * features/i386/x32-avx512-linux.c: Likewise.
3700 * features/i386/x32-avx512-linux.xml: Likewise.
3701 * features/i386/x32-avx512.c: Likewise.
3702 * features/i386/x32-avx512.xml: Likewise.
3703 * regformats/i386/amd64-avx512-linux.dat: New file.
3704 * regformats/i386/amd64-avx512.dat: Likewise.
3705 * regformats/i386/i386-avx512-linux.dat: Likewise.
3706 * regformats/i386/i386-avx512.dat: Likewise.
3707 * regformats/i386/x32-avx512-linux.dat: Likewise.
3708 * regformats/i386/x32-avx512.dat: Likewise.
3709 * NEWS: Add note about new support for AVX512.
3712 2014-04-23 Pedro Alves <palves@redhat.com>
3714 * breakpoint.c (insert_bp_location): Tolerate errors if the
3715 breakpoint is set in a user-loaded objfile.
3716 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3717 location is marked shlib_disabled. If the breakpoint is set in a
3718 user-loaded objfile is a GDB-side memory breakpoint, validate it
3719 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3720 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3722 * mem-break.c (memory_validate_breakpoint): New function.
3723 * objfiles.c (userloaded_objfile_contains_address_p): New
3725 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3726 * target.h (memory_validate_breakpoint): New declaration.
3728 2014-04-23 Pedro Alves <palves@redhat.com>
3730 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3731 the breakpoint is set in a shared library, only suppress
3732 errors for software breakpoints, not hardware breakpoints.
3734 2014-04-22 Pedro Alves <palves@redhat.com>
3736 * infrun.c (schedlock_applies): New function, factored out from
3737 find_thread_needs_step_over.
3738 (find_thread_needs_step_over): Use it.
3739 (switch_back_to_stepped_thread): Always clear trap_expected if the
3740 step over is finished. Return early if scheduler locking applies.
3741 Look for the stepping thread and a potential step-over thread with
3743 (currently_stepping_or_nexting_callback): Delete.
3745 2014-04-22 Nick Clifton <nickc@redhat.com>
3747 * NEWS: Mention that ARM sim now supports tracing.
3749 2014-04-22 Yao Qi <yao@codesourcery.com>
3751 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3753 * tracefile.c (tracefile_fetch_registers): ... it. New
3755 * tracefile.h (tracefile_fetch_registers): Declare.
3756 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3757 tracefile_fetch_registers.
3759 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3762 * windows-nat.c (thread_rec): Don't display a warning when
3763 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3764 fails for any reason, set th->suspended to -1, so that we don't
3765 try to resume such a thread. Also, don't return NULL in these
3766 cases, to avoid completely ruin the session due to "PC register is
3767 not available" error.
3768 (do_windows_fetch_inferior_registers): Check errors in
3769 GetThreadContext call.
3770 (windows_continue): Accept an additional argument KILLED; if not
3771 zero, ignore errors in the SetThreadContext call, since the
3772 inferior was killed and is shutting down.
3773 (windows_resume, get_windows_debug_event)
3774 (windows_create_inferior, windows_mourn_inferior)
3775 (windows_kill_inferior): All callers of windows_continue changed
3776 to adjust to its new calling sequence.
3778 2014-04-19 Yao Qi <yao@codesourcery.com>
3780 * ctf.c (ctf_open): Call post_create_inferior.
3782 2014-04-19 Yao Qi <yao@codesourcery.com>
3784 * ctf.c (handle_id): New static variable.
3785 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3786 value. Get the declaration of event "register" and get length
3787 of field "contents".
3789 2014-04-19 Yao Qi <yao@codesourcery.com>
3791 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3793 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3795 * valops.c (oload_method_static): Remove unnecessary argument
3796 METHOD. Update all callers.
3798 2014-04-18 Pedro alves <palves@redhat.com>
3799 Tom Tromey <tromey@redhat.com>
3802 * frame.c (get_prev_frame_1): Rename to ...
3803 (get_prev_frame_always): ... this, and make extern. Adjust.
3804 (skip_artificial_frames): Use get_prev_frame_always.
3805 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3806 (get_frame_unwind_stop_reason): Adjust to rename.
3807 * frame.h (get_prev_frame_always): Declare.
3808 * inline-frame.c: Include frame.h.
3809 (inline_frame_this_id): Use get_prev_frame_always.
3811 2014-04-18 Tristan Gingold <gingold@adacore.com>
3813 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3814 code by using bfd_mach_o_get_base_address.
3816 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3818 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3819 (spu_ax_pseudo_register_collect): New function.
3820 (spu_ax_pseudo_register_push_stack): Likewise.
3821 (spu_dwarf_reg_to_regnum): Likewise.
3822 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3824 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3826 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3827 Replace FRAME argument with FRAME_ID.
3828 * gdbarch.c, gdbarch.h: Regenerate.
3829 * findvar.c (default_value_from_register): Add GDBARCH argument;
3830 replace FRAME by FRAME_ID. No longer call get_frame_id.
3831 (value_from_register): Update call to gdbarch_value_from_register.
3832 * value.h (default_value_from_register): Update prototype.
3833 * s390-linux-tdep.c (s390_value_from_register): Update interface
3834 and call to default_value_from_register.
3835 * spu-tdep.c (spu_value_from_register): Likewise.
3837 * findvar.c (address_from_register): Remove TYPE argument.
3838 Do not call value_from_register; use gdbarch_value_from_register
3839 with null_frame_id instead.
3840 * value.h (address_from_register): Update prototype.
3841 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3842 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3843 address_from_register interface change.
3845 2014-04-17 Yao Qi <yao@codesourcery.com>
3847 * gdbtypes.h: Update comments to link to types and macros'
3850 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3852 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3854 2014-04-16 Keith Seitz <keiths@redhat.com>
3857 * dwarf2read.c (skip_one_die): Check that all relative-offset
3858 sibling DIEs fall within range of the current reader's buffer.
3859 (read_partial_die): Likewise.
3861 2014-04-16 Keith Seitz <keiths@redhat.com>
3864 * cp-namespace.c (lookup_symbol_file): If the type name of
3865 `this' is NULL, return immediately.
3867 2014-04-14 Keith Seitz <keiths@redhat.com>
3870 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3871 from symbol_matches_domain in symtab.c. All local callers
3872 of symbol_matches_domain updated.
3873 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3874 search STRUCT_DOMAIN.
3875 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3876 independently. standard_lookup will do that automatically.
3877 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3878 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3879 (cp_lookup_symbol_in_namespace): Likewise.
3880 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3881 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3882 may return a STRUCT_DOMAIN match.
3883 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3884 * cp-support.c: Include language.h.
3885 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3887 * psymtab.c (match_partial_symbol): Compare the requested
3888 domain with the symbol's domain directly.
3889 (lookup_partial_symbol): Likewise.
3890 * symtab.c (lookup_symbol_in_language): Explain when/why
3891 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3892 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3893 appropriate languages.
3894 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3895 and moved to ada-lang.c
3896 (lookup_block_symbol): Explain that this function only returns
3897 symbol matching the requested DOMAIN.
3898 Compare the requested domain with the symbol's domain directly.
3899 (iterate_over_symbols): Compare the requested domain with the
3900 symbol's domain directly.
3901 * symtab.h (symbol_matches_domain): Remove.
3903 2014-04-14 Tom Tromey <tromey@redhat.com>
3906 * c-exp.y (type_aggregate_p): New function.
3907 (qualified_name, classify_inner_name): Use it.
3908 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3909 and TYPE_TARGET_TYPE of an enum type.
3910 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3912 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3913 handle TYPE_DECLARED_CLASS.
3914 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3916 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3917 * valops.c (enum_constant_from_type): New function.
3918 (value_aggregate_elt): Use it.
3919 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3922 2014-04-14 Tom Tromey <tromey@redhat.com>
3924 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3925 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3927 * value.h (value_aggregate_elt): Update.
3929 2014-04-14 Tom Tromey <tromey@redhat.com>
3931 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3933 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3935 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3936 (evaluate_subexp_standard): Pass noside argument.
3937 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3938 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3939 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3940 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3941 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3943 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3945 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3946 points to a constant blob.
3948 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3950 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3951 property and store it as the high bound and flag the range accordingly.
3952 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3953 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3954 * gdbtypes.h (enum range_flags): New enum.
3955 (struct range_bounds): Add flags member.
3957 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3959 * c-typeprint.c (c_type_print_varspec_suffix): Added
3960 check for not yet resolved high bound. If unresolved, print
3961 "variable length" string to the console instead of random
3964 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3966 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3968 (ada_template_to_fixed_record_type_1): Likewise.
3969 (ada_to_fixed_type_1): Likewise.
3970 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3971 (cp_print_value): Likewise.
3972 * d-valprint.c (dynamic_array_type): Likewise.
3973 * findvar.c (address_of_variable): Likewise.
3974 * jv-valprint.c (java_value_print): Likewise.
3975 * valops.c (value_ind): Likewise.
3976 * value.c (coerce_ref): Likewise.
3978 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3980 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3981 value and retrieve the dynamic type size.
3983 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3985 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3986 passed to sizeof is dynamic evaluate the argument to compute the length.
3988 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3989 Joel Brobecker <brobecker@adacore.com>
3991 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3992 (dwarf2_evaluate_property): New function.
3993 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3994 * dwarf2read.c (attr_to_dynamic_prop): New function.
3995 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3997 * gdbtypes.c: Include dwarf2loc.h.
3998 (is_dynamic_type): New function.
3999 (resolve_dynamic_type): New function.
4000 (resolve_dynamic_bounds): New function.
4001 (get_type_length): New function.
4002 (check_typedef): Use get_type_length to compute type length.
4003 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4004 (TYPE_LOW_BOUND_KIND): New macro.
4005 (is_dynamic_type): New function prototype.
4006 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4007 to resolve dynamic properties of the type. Update comment.
4008 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4010 2014-04-14 Richard Henderson <rth@redhat.com>
4012 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4014 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4015 Doug Evans <xdje42@gmail.com>
4017 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4018 dereference TYPE_CODE_REF values.
4020 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4022 Revert the following changes due to regressions:
4024 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4025 (dwarf2_evaluate_property): New function.
4026 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4027 * dwarf2read.c (attr_to_dynamic_prop): New function.
4028 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4030 * gdbtypes.c: Include dwarf2loc.h.
4031 (is_dynamic_type): New function.
4032 (resolve_dynamic_type): New function.
4033 (resolve_dynamic_bounds): New function.
4034 (get_type_length): New function.
4035 (check_typedef): Use get_type_length to compute type length.
4036 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4037 (TYPE_LOW_BOUND_KIND): New macro.
4038 (is_dynamic_type): New function prototype.
4039 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4040 to resolve dynamic properties of the type. Update comment.
4041 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4043 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4044 passed to sizeof is dynamic evaluate the argument to compute the length.
4046 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4047 value and retrieve the dynamic type size.
4049 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4050 (ada_template_to_fixed_record_type_1): Likewise.
4051 (ada_to_fixed_type_1): Likewise.
4052 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4053 (cp_print_value): Likewise.
4054 * d-valprint.c (dynamic_array_type): Likewise.
4055 * eval.c (evaluate_subexp_with_coercion): Likewise.
4056 * findvar.c (address_of_variable): Likewise.
4057 * jv-valprint.c (java_value_print): Likewise.
4058 * valops.c (value_ind): Likewise.
4059 * value.c (coerce_ref): Likewise.
4061 * c-typeprint.c (c_type_print_varspec_suffix): Added
4062 check for not yet resolved high bound. If unresolved, print
4063 "variable length" string to the console instead of random
4066 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4067 property and store it as the high bound and flag the range accordingly.
4068 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4069 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4070 * gdbtypes.h (enum range_flags): New enum.
4071 (struct range_bounds): Add flags member.
4073 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4074 points to a constant blob.
4076 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4077 (evaluate_subexp_standard): Pass noside argument.
4078 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4079 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4080 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4081 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4082 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4084 2014-04-11 Keith Seitz <keiths@redhat.com>
4087 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4088 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4091 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4093 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4094 (evaluate_subexp_standard): Pass noside argument.
4095 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4096 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4097 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4098 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4099 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4101 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4103 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4104 points to a constant blob.
4106 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4108 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4109 property and store it as the high bound and flag the range accordingly.
4110 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4111 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4112 * gdbtypes.h (enum range_flags): New enum.
4113 (struct range_bounds): Add flags member.
4115 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4117 * c-typeprint.c (c_type_print_varspec_suffix): Added
4118 check for not yet resolved high bound. If unresolved, print
4119 "variable length" string to the console instead of random
4122 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4124 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4125 (ada_template_to_fixed_record_type_1): Likewise.
4126 (ada_to_fixed_type_1): Likewise.
4127 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4128 (cp_print_value): Likewise.
4129 * d-valprint.c (dynamic_array_type): Likewise.
4130 * eval.c (evaluate_subexp_with_coercion): Likewise.
4131 * findvar.c (address_of_variable): Likewise.
4132 * jv-valprint.c (java_value_print): Likewise.
4133 * valops.c (value_ind): Likewise.
4134 * value.c (coerce_ref): Likewise.
4136 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4138 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4139 value and retrieve the dynamic type size.
4141 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4143 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4144 passed to sizeof is dynamic evaluate the argument to compute the length.
4146 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4148 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4149 (dwarf2_evaluate_property): New function.
4150 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4151 * dwarf2read.c (attr_to_dynamic_prop): New function.
4152 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4154 * gdbtypes.c: Include dwarf2loc.h.
4155 (is_dynamic_type): New function.
4156 (resolve_dynamic_type): New function.
4157 (resolve_dynamic_bounds): New function.
4158 (get_type_length): New function.
4159 (check_typedef): Use get_type_length to compute type length.
4160 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4161 (TYPE_LOW_BOUND_KIND): New macro.
4162 (is_dynamic_type): New function prototype.
4163 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4164 to resolve dynamic properties of the type. Update comment.
4165 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4167 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4169 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4170 declaring high/low bounds and change uses accordingly. Call
4171 create_range_type instead of create_static_range_type.
4172 * gdbtypes.c (create_range_type): New function.
4173 (create_range_type): Convert bounds into struct bound_prop and pass
4174 them to create_range_type.
4175 * gdbtypes.h (struct bound_prop): New struct.
4176 (create_range_type): New function prototype.
4177 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4178 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4179 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4181 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4183 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4185 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4186 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4187 * ada-lang.c: All uses of create_range_type updated.
4188 * coffread.c: All uses of create_range_type updated.
4189 * dwarf2read.c: All uses of create_range_type updated.
4190 * f-exp.y: All uses of create_range_type updated.
4191 * m2-valprint.c: All uses of create_range_type updated.
4192 * mdebugread.c: All uses of create_range_type updated.
4193 * stabsread.c: All uses of create_range_type updated.
4194 * valops.c: All uses of create_range_type updated.
4195 * valprint.c: All uses of create_range_type updated.
4197 2014-04-10 Pedro Alves <palves@redhat.com>
4199 * breakpoint.c (single_step_breakpoints)
4200 (single_step_gdbarch): Move up in the file.
4201 (one_breakpoint_xfer_memory): New function, factored out from ...
4202 (breakpoint_xfer_memory): ... here. Also process single-step
4205 2014-04-09 Tristan Gingold <gingold@adacore.com>
4207 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4209 (darwin_decode_exception_message): Free port only after use.
4211 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4213 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4214 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4215 when setting the size of call_length.
4217 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4219 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4220 dereference TYPE_CODE_REF values.
4222 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4224 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4225 end of warning message.
4227 2014-04-03 Doug Evans <dje@google.com>
4229 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4230 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4232 2014-04-02 Alan Modra <amodra@gmail.com>
4234 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4235 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4236 (struct symbol_file_add_from_memory_args): Add size field.
4237 (find_vdso_size): New function.
4238 (add_vsyscall_page): Attempt to find vdso size.
4240 2014-04-01 Doug Evans <dje@google.com>
4242 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4244 2014-04-01 Tristan Gingold <gingold@adacore.com>
4246 * darwin-nat.c (darwin_encode_reply): Add prototype.
4247 (darwin_decode_exception_message): Reply to unknown inferiors.
4248 (darwin_decode_message): Handle message by id. Ignore message
4249 to unknown inferior.
4250 (darwin_wait): Discard unknown messages, add debug trace.
4252 2014-03-31 Doug Evans <dje@google.com>
4254 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4257 2014-03-31 Doug Evans <dje@google.com>
4259 New option "set print symbol-loading".
4261 * solib.c (solib_read_symbols): Only print symbol loading messages
4263 (solib_add): If symbol loading is in "brief" mode, notify user
4264 symbols are being loaded.
4265 (reload_shared_libraries_1): Ditto.
4266 * symfile.c (print_symbol_loading_off): New static global.
4267 (print_symbol_loading_brief): New static global.
4268 (print_symbol_loading_full): New static global.
4269 (print_symbol_loading_enums): New static global.
4270 (print_symbol_loading): New static global.
4271 (print_symbol_loading_p): New function.
4272 (symbol_file_add_with_addrs): Only print symbol loading messages
4274 (_initialize_symfile): Register "print symbol-loading" set/show
4276 * symfile.h (print_symbol_loading_p): Declare.
4278 2014-03-30 Doug Evans <xdje42@gmail.com>
4280 * infrun.c (set_last_target_status): New function.
4281 (handle_inferior_event): Call it.
4283 2014-03-30 Doug Evans <xdje42@gmail.com>
4285 * inferior.h (enum stop_kind): Improve comment.
4287 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4289 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4290 a reference, strip the reference layer before calling
4291 the lang_ops value_has_mutated callback.
4293 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4295 Remove some globals from our parser.
4296 * language.c (unk_lang_parser): Add "struct parser_state"
4298 * language.h (struct language_defn) <la_parser>: Likewise.
4299 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4300 (initialize_expout): Add "struct parser_state" argument.
4301 Rewrite function to use the parser state.
4302 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4303 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4304 write_exp_elt_longcst, write_exp_elt_dblcst,
4305 write_exp_elt_decfloatcst, write_exp_elt_type,
4306 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4307 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4308 write_dollar_variable): Likewise.
4309 (parse_exp_in_context_1): Use parser state.
4310 (insert_type_address_space): Add "struct parser_state" argument.
4312 (increase_expout_size): New function.
4313 * parser-defs.h: Forward declare "struct language_defn" and
4314 "struct parser_state".
4315 (expout, expout_size, expout_ptr): Remove extern declarations.
4316 (parse_gdbarch, parse_language): Rewrite macro declarations to
4317 accept the parser state.
4318 (struct parser_state): New struct.
4319 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4320 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4321 write_exp_elt_decfloatcst, write_exp_elt_type,
4322 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4323 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4324 write_exp_msymbol, write_dollar_variable,
4325 mark_struct_expression, insert_type_address_space): Add "struct
4326 parser_state" argument.
4327 (increase_expout_size): New function.
4328 * utils.c (do_clear_parser_state): New function.
4329 (make_cleanup_clear_parser_state): Likewise.
4330 * utils.h (make_cleanup_clear_parser_state): New function
4332 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4333 Update calls to write_exp* in order to pass the parser state.
4334 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4335 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4336 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4337 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4338 * stap-probe.c (stap_parse_register_operand): Likewise.
4339 (stap_parse_single_operand): Likewise.
4340 (stap_parse_argument_1): Likewise.
4341 (stap_parse_argument): Use parser state.
4342 * stap-probe.h: Include "parser-defs.h".
4343 (struct stap_parse_info) <pstate>: New field.
4344 * c-exp.y (parse_type): Rewrite to use parser state.
4345 (yyparse): Redefine to c_parse_internal.
4346 (pstate): New global variable.
4347 (parse_number): Add "struct parser_state" argument.
4348 (write_destructor_name): Likewise.
4349 (type_exp): Update calls to write_exp* and similars in order to
4351 (exp1, exp, variable, qualified_name, space_identifier,
4352 typename, typebase): Likewise.
4353 (write_destructor_name, parse_number, lex_one_token,
4354 classify_name, classify_inner_name, c_parse): Add "struct
4355 parser_state" argument. Update function to use parser state.
4356 * c-lang.h: Forward declare "struct parser_state".
4357 (c_parse): Add "struct parser_state" argument.
4358 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4359 (yyparse): Redefine macro to ada_parse_internal.
4360 (pstate): New variable.
4361 (write_int, write_object_renaming, write_var_or_type,
4362 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4363 type_int, type_long, type_long_long, type_float, type_double,
4364 type_long_double, type_char, type_boolean, type_system_address):
4365 Add "struct parser_state" argument.
4366 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4367 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4368 var_or_type, aggregate, aggregate_component_list,
4369 positional_list, others, component_group,
4370 component_associations): Update calls to write_exp* and similar
4371 functions in order to use parser state.
4372 (ada_parse, write_var_from_sym, write_int,
4373 write_exp_op_with_string, write_object_renaming,
4374 find_primitive_type, write_selectors, write_ambiguous_var,
4375 write_var_or_type, write_name_assoc, type_int, type_long,
4376 type_long_long, type_float, type_double, type_long_double,
4377 type_char, type_boolean, type_system_address): Add "struct
4378 parser_state" argument. Adjust function to use parser state.
4379 * ada-lang.c (parse): Likewise.
4380 * ada-lang.h: Forward declare "struct parser_state".
4381 (ada_parse): Add "struct parser_state" argument.
4382 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4383 calls to both functions.
4384 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4386 (yyparse): Redefine macro to f_parse_internal.
4387 (pstate): New variable.
4388 (parse_number): Add "struct parser_state" argument.
4389 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4390 and similars in order to use parser state.
4391 (parse_number): Adjust code to use parser state.
4393 (f_parse): New function.
4394 * f-lang.h: Forward declare "struct parser_state".
4395 (f_parse): Add "struct parser_state" argument.
4396 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4398 (yyparse): Redefine macro for java_parse_internal.
4399 (pstate): New variable.
4400 (push_expression_name, push_expression_name, insert_exp): Add
4401 "struct parser_state" argument.
4402 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4403 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4404 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4405 PostIncrementExpression, PostDecrementExpression,
4406 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4407 UnaryExpressionNotPlusMinus, CastExpression,
4408 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4409 RelationalExpression, EqualityExpression, AndExpression,
4410 ExclusiveOrExpression, InclusiveOrExpression,
4411 ConditionalAndExpression, ConditionalOrExpression,
4412 ConditionalExpression, Assignment, LeftHandSide): Update
4413 calls to write_exp* and similars in order to use parser state.
4414 (parse_number): Ajust code to use parser state.
4416 (java_parse): New function.
4417 (push_variable): Add "struct parser_state" argument. Adjust
4418 code to user parser state.
4419 (push_fieldnames, push_qualified_expression_name,
4420 push_expression_name, insert_exp): Likewise.
4421 * jv-lang.h: Forward declare "struct parser_state".
4422 (java_parse): Add "struct parser_state" argument.
4423 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4425 (yyparse): Redefine macro to m2_parse_internal.
4426 (pstate): New variable.
4427 (type_exp, exp, fblock, variable, type): Update calls to
4428 write_exp* and similars to use parser state.
4430 (m2_parse): New function.
4431 * m2-lang.h: Forward declare "struct parser_state".
4432 (m2_parse): Add "struct parser_state" argument.
4433 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4434 * objc-lang.h: Forward declare "struct parser_state".
4435 (end_msglist): Add "struct parser_state" argument.
4436 * p-exp.y (parse_type): Rewrite macro to use parser state.
4437 (yyparse): Redefine macro to pascal_parse_internal.
4438 (pstate): New variable.
4439 (parse_number): Add "struct parser_state" argument.
4440 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4441 write_exp* and similars in order to use parser state.
4442 (parse_number, yylex): Adjust code to use parser state.
4443 (pascal_parse): New function.
4444 * p-lang.h: Forward declare "struct parser_state".
4445 (pascal_parse): Add "struct parser_state" argument.
4446 * go-exp.y (parse_type): Rewrite macro to use parser state.
4447 (yyparse): Redefine macro to go_parse_internal.
4448 (pstate): New variable.
4449 (parse_number): Add "struct parser_state" argument.
4450 (type_exp, exp1, exp, variable, type): Update calls to
4451 write_exp* and similars in order to use parser state.
4452 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4453 to use parser state.
4454 (go_parse): Likewise.
4455 * go-lang.h: Forward declare "struct parser_state".
4456 (go_parse): Add "struct parser_state" argument.
4458 2014-03-27 Doug Evans <dje@google.com>
4460 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4462 2014-03-27 Doug Evans <dje@google.com>
4464 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4465 Remove argument abbrev_section. All callers updated.
4467 2014-03-27 Doug Evans <dje@google.com>
4469 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4470 addr_base, ranges_base.
4472 2014-03-26 Keith Seitz <keiths@redhat.com>
4474 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4475 types, not VAR_DOMAIN.
4477 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4479 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4481 * features/nios2-linux.c: Regenerated.
4482 * features/nios2.c: Regenerated.
4484 2014-03-25 Pedro Alves <palves@redhat.com>
4486 * cli/cli-script.c (script_from_file): Force the interpreter to
4489 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4491 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4492 small stack allocation.
4494 2014-03-24 Tristan Gingold <gingold@adacore.com>
4496 * darwin-nat.c (exc_server): Remove unused prototype.
4497 (darwin_dump_message): Correctly display data on x86_64.
4498 (darwin_encode_reply): Fix style.
4499 Add comments and fix indentation.
4501 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4503 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4505 2014-03-22 Doug Evans <xdje42@gmail.com>
4507 * infcmd.c: Whitespace fixes.
4508 (interrupt_command): Merge two function comments into one.
4510 2014-03-22 Doug Evans <xdje42@gmail.com>
4512 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4515 2014-03-22 Yao Qi <yao@codesourcery.com>
4517 * remote.c (target_read_live_memory): Remove.
4518 (memory_xfer_live_readonly_partial): Rename it to
4519 remote_xfer_live_readonly_partial. Remove argument 'object'.
4520 All callers updated. Call remote_read_bytes_1
4521 instead of target_read_live_memory.
4522 * tracepoint.c (set_traceframe_number): Remove.
4523 (make_cleanup_restore_traceframe_number): Likewise .
4524 * tracepoint.h (set_traceframe_number): Remove declaration.
4525 (make_cleanup_restore_traceframe_number): Likewise.
4527 2014-03-22 Yao Qi <yao@codesourcery.com>
4529 * remote.c (remote_read_bytes): Move code on reading from the
4531 (remote_read_bytes_1): ... here. New function.
4533 2014-03-22 Yao Qi <yao@codesourcery.com>
4535 * ctf.c (ctf_xfer_partial): Check the return value of
4536 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4537 return TARGET_XFER_UNAVAILABLE.
4538 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4539 * target.c (target_read_live_memory): Move it to remote.c.
4540 (memory_xfer_live_readonly_partial): Likewise.
4541 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4542 * remote.c (target_read_live_memory): Moved from target.c.
4543 (memory_xfer_live_readonly_partial): Likewise.
4544 (remote_read_bytes): Factored out from
4545 memory_xfer_partial_1.
4547 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4549 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4552 2014-03-21 Pedro Alves <palves@redhat.com>
4554 * infrun.c (normal_stop): Extend comment.
4556 2014-03-21 Hui Zhu <hui@codesourcery.com>
4557 Pedro Alves <palves@redhat.com>
4559 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4561 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4562 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4563 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4565 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4567 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4568 `z' formatted output modifier.
4570 2014-03-20 Tom Tromey <tromey@redhat.com>
4571 Sergio Durigan Junior <sergiodj@redhat.com>
4573 * probe.c (parse_probes): Turn assert into an ordinary error.
4574 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4575 exceptions when parsing probes. Rearrange the code for clarity.
4577 2014-03-20 Tom Tromey <tromey@redhat.com>
4580 * top.c (execute_command): Only dispatch events if the command
4583 2014-03-20 Tom Tromey <tromey@redhat.com>
4586 * infcall.c: Include event-top.h.
4587 (run_inferior_call): Call async_disable_stdin if needed.
4589 2014-03-20 Pedro Alves <palves@redhat.com>
4591 * infrun.c (prepare_to_proceed): Delete.
4592 (thread_still_needs_step_over): New function.
4593 (find_thread_needs_step_over): New function.
4594 (proceed): If the current thread needs a step-over, set its
4595 steping_over_breakpoint flag. Adjust to use
4596 find_thread_needs_step_over instead of prepare_to_proceed.
4597 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4598 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4600 (switch_back_to_stepped_thread): Step over breakpoints of all
4601 threads not the stepping thread, before switching back to the
4604 2014-03-20 Pedro Alves <palves@redhat.com>
4606 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4608 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4609 * infrun.c (saved_singlestep_ptid)
4610 (stepping_past_singlestep_breakpoint): Delete.
4611 (resume): Remove stepping_past_singlestep_breakpoint handling.
4612 (proceed): Store the prev_pc of the stepping thread too.
4613 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4615 (enum infwait_states): Delete infwait_thread_hop_state.
4616 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4618 (handle_inferior_event): Adjust.
4619 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4620 handling and the thread-hop code. Before removing single-step
4621 breakpoints, check whether the thread hit a single-step breakpoint
4622 of another thread. If it did, the trap is not a random signal.
4623 (switch_back_to_stepped_thread): If the event thread hit a
4624 single-step breakpoint, unblock it before switching to the
4625 stepping thread. Handle the case of the stepped thread having
4627 (keep_going): Handle the case of the current thread moving past a
4628 single-step breakpoint.
4630 2014-03-20 Pedro Alves <palves@redhat.com>
4633 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4634 are being stepped over.
4635 (breakpoint_address_match): Make extern.
4636 * breakpoint.h (breakpoint_address_match): New declaration.
4637 * inferior.h (stepping_past_instruction_at): New declaration.
4638 * infrun.c (struct step_over_info): New type.
4639 (step_over_info): New global.
4640 (set_step_over_info, clear_step_over_info)
4641 (stepping_past_instruction_at): New functions.
4642 (handle_inferior_event): Clear the step-over info when
4643 trap_expected is cleared.
4644 (resume): Remove now stale comment.
4645 (clear_proceed_status): Clear step-over info.
4646 (proceed): Adjust step-over handling to set or clear the step-over
4647 info instead of removing all breakpoints.
4648 (handle_signal_stop): When setting up a thread-hop, don't remove
4650 (stop_stepping): Clear step-over info.
4651 (keep_going): Adjust step-over handling to set or clear step-over
4652 info and then always inserting breakpoints, instead of removing
4653 all breakpoints when stepping over one.
4655 2014-03-20 Pedro Alves <palves@redhat.com>
4657 * infrun.c (previous_inferior_ptid): Adjust comment.
4658 (deferred_step_ptid): Delete.
4659 (infrun_thread_ptid_changed, prepare_to_proceed)
4660 (init_wait_for_inferior): Adjust.
4661 (handle_signal_stop): Delete deferred_step_ptid handling.
4663 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4666 * defs.h (sync_quit_force_run): New declaration.
4667 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4668 * event-top.c (async_sigterm_handler): New declaration.
4669 (async_sigterm_token): New variable.
4670 (async_init_signals): Create also async_sigterm_token.
4671 (async_sigterm_handler): New function.
4672 (sync_quit_force_run): New variable.
4673 (handle_sigterm): Replace quit_force call by other calls.
4674 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4676 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4678 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4679 offset into SPE pseudo registers.
4681 2014-03-18 Pedro Alves <palves@redhat.com>
4684 * inferior.h (print_stop_event): Declare.
4685 * infrun.c (print_stop_event): New, factored out from ...
4686 (normal_stop): ... this.
4687 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4688 of bpstat_print/print_stack_frame.
4690 2014-03-17 Tom Tromey <tromey@redhat.com>
4692 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4694 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4696 * ada-lang.c (decode_constrained_packed_array): Perform a
4697 minimal coercion for reference with coerce_ref instead of
4700 2014-03-17 Tristan Gingold <gingold@adacore.com>
4702 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4703 (darwin_solib_create_inferior_hook): Emit a warning if version
4706 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4708 * python/py-value.c (get_field_flag): Cast flag_name argument to
4709 PyObject_GetAttrString to support Python 2.4.
4711 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4713 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4714 (Global Maintainers): Remove Jan Kratochvil.
4716 2014-03-14 Pedro Alves <palves@redhat.com>
4718 * inferior.h (terminal_ours_for_output): Rename to ...
4719 (child_terminal_ours_for_output): ... this.
4720 (terminal_save_ours): Rename to ...
4721 (child_terminal_save_ours): ... this.
4722 (terminal_ours): Rename to ...
4723 (child_terminal_ours): ... this.
4724 (terminal_inferior): Rename to ...
4725 (child_terminal_inferior): ... this.
4726 (terminal_init_inferior): Rename to ...
4727 (child_terminal_init_inferior): ... this.
4728 (terminal_init_inferior_with_pgrp): Rename to ...
4729 (child_terminal_init_inferior_with_pgrp): ... this.
4730 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4731 (child_terminal_init_with_pgrp): ... this.
4732 (terminal_save_ours): Rename to ...
4733 (child_terminal_save_ours): ... this.
4734 (terminal_init_inferior): Rename to ...
4735 (child_terminal_init): ... this. Adjust.
4736 (terminal_inferior): Rename to ...
4737 (child_terminal_inferior): ... this.
4738 (terminal_ours_for_output): Rename to ...
4739 (child_terminal_ours_for_output): ... this. Adjust.
4740 (terminal_ours): Rename to ...
4741 (child_terminal_ours): ... this.
4742 (terminal_ours_1): Rename to ...
4743 (child_terminal_ours_1): ... this. Adjust.
4744 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4745 * windows-nat.c (do_initial_windows_stuff): Adjust.
4746 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4747 (gnu_terminal_init): ... this. Adjust.
4748 (gnu_target): Adjust.
4749 * inf-child.c (inf_child_target): Adjust.
4751 2014-03-13 Doug Evans <xdje42@gmail.com>
4754 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4757 2014-03-13 Doug Evans <xdje42@gmail.com>
4759 * value.c (record_latest_value): Call release_value_or_incref
4760 instead of release_value.
4762 2014-03-13 Pedro Alves <palves@redhat.com>
4764 * procfs.c (procfs_target): Don't override to_shortname,
4765 to_longname or to_doc.
4767 2014-03-13 Pedro Alves <palves@redhat.com>
4769 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4770 Unix in user visible strings.
4772 2014-03-12 Stan Shebs <stan@codesourcery.com>
4774 * gdbtypes.h: Annotate comments for Doxygen, add a page
4775 block comment with some general info.
4777 2014-03-12 Pedro Alves <palves@redhat.com>
4779 * infcmd.c (prepare_execution_command): New function, factored out
4780 from several execution commands.
4781 (run_command_1, continue_command, step_1, jump_command)
4782 (signal_command, until_command, advance_command, finish_command)
4783 (attach_command): Use prepare_execution_command.
4785 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4787 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4790 (struct arm_linux_thread_points): Removed.
4791 (struct arm_linux_process_info): New.
4792 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4793 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4794 (arm_linux_find_breakpoints_by_tid): Removed.
4795 (struct arch_lwp_info): New.
4796 (arm_linux_find_process_pid): New functions.
4797 (arm_linux_add_process): New functions.
4798 (arm_linux_process_info_get): New functions.
4799 (arm_linux_forget_process): New function.
4800 (arm_linux_get_debug_reg_state): New function.
4801 (struct update_registers_data): New.
4802 (update_registers_callback): New function.
4803 (arm_linux_insert_hw_breakpoint1): Updated.
4804 (arm_linux_remove_hw_breakpoint1): Updated.
4805 (arm_linux_insert_hw_breakpoint): Updated.
4806 (arm_linux_remove_hw_breakpoint): Updated.
4807 (arm_linux_insert_watchpoint): Updated.
4808 (arm_linux_remove_watchpoint): Updated.
4809 (arm_linux_new_thread): Updated.
4810 (arm_linux_prepare_to_resume): New function.
4811 (arm_linux_new_fork): New function.
4812 (_initialize_arm_linux_nat): Updated.
4814 2014-03-12 Pedro Alves <palves@redhat.com>
4816 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4818 2014-03-12 Tom Tromey <tromey@redhat.com>
4820 * inf-child.c (return_zero): New function.
4821 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4822 * aix-thread.c (aix_thread_inferior_created): New function.
4823 (aix_thread_attach): Remove.
4824 (init_aix_thread_ops): Don't set to_attach.
4825 (_initialize_aix_thread): Register inferior_created observer.
4826 * corelow.c (init_core_ops): Don't set to_attach or
4828 * exec.c (init_exec_ops): Don't set to_attach or
4830 * infcmd.c (run_command_1): Use find_run_target. Make direct
4832 (attach_command): Use find_attach_target. Make direct target
4834 * record-btrace.c (init_record_btrace_ops): Don't set
4836 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4838 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4839 set to_create_inferior.
4840 * target.c (complete_target_initialization): Add assertion.
4841 (target_create_inferior): Remove.
4842 (find_default_attach, find_default_create_inferior): Remove.
4843 (find_attach_target, find_run_target): New functions.
4844 (find_default_is_async_p, find_default_can_async_p)
4845 (target_supports_non_stop, target_attach): Remove.
4846 (init_dummy_target): Don't set to_create_inferior or
4847 to_supports_non_stop.
4848 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4849 TARGET_DEFAULT_FUNC.
4850 <to_create_inferior>: Add comment.
4851 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4852 TARGET_DEFAULT_RETURN.
4853 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4854 (find_attach_target, find_run_target): Declare.
4855 (target_create_inferior): Remove.
4856 (target_has_execution_1): Update comment.
4857 (target_supports_non_stop): Remove.
4858 * target-delegates.c: Rebuild.
4860 2014-03-12 Pedro Alves <palves@redhat.com>
4862 * inf-child.h: Update comment to not mention Unix.
4864 2014-03-12 Pedro Alves <palves@redhat.com>
4866 * inf-child.c: Update top comment to not mention Unix. Add
4867 generic comment describing how this target is meant to be used.
4868 (inf_child_post_attach, inf_child_post_startup_inferior)
4869 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4872 2014-03-12 Pedro Alves <palves@redhat.com>
4874 * nto-procfs.c: Include inf-child.h.
4875 (procfs_ops): Delete global.
4876 (procfs_can_run): Delete method.
4877 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4878 target pointer instead of referencing procfs_ops.
4879 (procfs_prepare_to_store): Delete.
4880 (init_procfs_ops): Delete function.
4881 (procfs_target): New function, based on init_procfs_ops, but
4882 inherit inf_child_target.
4883 (_initialize_procfs): Use procfs_target.
4885 2014-03-12 Pedro Alves <palves@redhat.com>
4887 * windows-nat.c: Include inf-child.h.
4888 (windows_ops): Delete global.
4889 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4891 (init_windows_ops): Delete function.
4892 (windows_target): New function, based on init_windows_ops, but
4893 inherit inf_child_target.
4894 (_initialize_windows_nat): Use windows_target. Install x86
4895 specific target methods here.
4897 2014-03-10 Doug Evans <xdje42@gmail.com>
4899 * guile/guile.c (call_initialize_gdb_module): New function.
4900 (initialize_guile): Replace call to scm_init_guile with call to
4903 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4905 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4906 in call to TYPE_CODE macro.
4908 2014-03-10 Jerome Guitton <guitton@adacore.com>
4910 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4911 Resolve tagged types to full view.
4913 2014-03-10 Hui Zhu <hui@codesourcery.com>
4915 * target.h (target_insert_breakpoint): Remove "hardware" from its
4918 2014-03-07 Doug Evans <dje@google.com>
4920 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4922 2014-03-07 Doug Evans <dje@google.com>
4924 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4925 Remove unused local comp_dir_attr. Assert exactly one of
4926 stub_comp_unit_die, stub_comp_dir is non-NULL.
4928 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4930 * target.h (complete_target_initialization, add_target):
4933 2014-03-07 Pedro Alves <palves@redhat.com>
4935 * go32-nat.c: Include inf-child.h.
4936 (go32_ops): Delete global.
4937 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4939 (go32_create_inferior): Push the passed in target pointer instead
4940 of referencing go32_ops.
4941 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4942 (go32_target): New function, based on init_go32_ops, but inherit
4944 (_initialize_go32_nat): Use go32_target. Move parts of
4947 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4949 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4950 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4951 SYMBOL_VALUE_ADDRESS.
4952 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4954 2014-03-06 Yao Qi <yao@codesourcery.com>
4956 * breakpoint.c (get_tracepoint_by_number): Remove argument
4957 optional_p. All callers updated. Adjust comments. Update
4959 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4961 2014-03-06 Yao Qi <yao@codesourcery.com>
4963 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4964 early if get_number returns zero. Use 'p' instead of 'args'.
4966 2014-03-06 Yao Qi <yao@codesourcery.com>
4968 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4971 2014-03-06 Yao Qi <yao@codesourcery.com>
4973 PR breakpoints/16508
4974 * tracepoint.c (check_trace_running): New function.
4975 (trace_find_command): Move code to check_trace_running and
4976 call check_trace_running.
4977 (trace_find_pc_command): Likewise.
4978 (trace_find_tracepoint_command): Likewise.
4979 (trace_find_line_command): Likewise.
4980 (trace_find_range_command): Likewise.
4981 * tracepoint.h (check_trace_running): Likewise.
4982 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4984 2014-03-06 Yao Qi <yao@codesourcery.com>
4986 * target.h (struct target_ops) <to_traceframe_info>: Use
4987 TARGET_DEFAULT_NORETURN (tcomplain ()).
4988 * target-delegates.c: Regenerated.
4990 2014-03-05 Pedro Alves <palves@redhat.com>
4993 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4994 void. Update comment.
4995 (dcache_xfer_memory): Delete.
4996 (dcache_read_memory_partial): New, based on the read bits of
4998 (dcache_update): Add status parameter. Use ULONGEST for len, and
4999 adjust. Discard cache lines if the reason for the update was
5001 * dcache.h (dcache_xfer_memory): Delete declaration.
5002 (dcache_read_memory_partial): New declaration.
5003 (dcache_update): Update prototype.
5004 * target.c (raw_memory_xfer_partial): Update the dcache here.
5005 (memory_xfer_partial_1): Don't handle dcache writes here.
5007 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5009 * remote-sim.c (gdbsim_load): Add const to prog.
5011 2014-03-03 Tom Tromey <tromey@redhat.com>
5013 * elfread.c (probe_key): Change to bfd_data.
5014 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5015 now per-BFD, not per-objfile.
5016 * stap-probe.c (stap_probe_destroy): Update comment.
5017 (handle_stap_probe): Allocate on the per-BFD obstack.
5019 2014-03-03 Tom Tromey <tromey@redhat.com>
5021 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5022 * breakpoint.c (create_longjmp_master_breakpoint): Use
5024 (add_location_to_breakpoint, bkpt_probe_insert_location)
5025 (bkpt_probe_remove_location): Update.
5026 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5027 * elfread.c (elf_symfile_relocate_probe): Remove.
5028 (elf_probe_fns): Update.
5029 (insert_exception_resume_breakpoint): Change type of "probe"
5030 parameter to bound_probe.
5031 (check_exception_resume): Update.
5032 * objfiles.c (objfile_relocate1): Don't relocate probes.
5033 * probe.c (bound_probe_s): New typedef.
5034 (parse_probes): Use get_probe_address. Set sal's objfile.
5035 (find_probe_by_pc): Return a bound_probe.
5036 (collect_probes): Return a VEC(bound_probe_s).
5037 (compare_probes): Update.
5038 (gen_ui_out_table_header_info): Change type of "probes"
5040 (info_probes_for_ops): Update.
5041 (get_probe_address): New function.
5042 (probe_safe_evaluate_at_pc): Update.
5043 * probe.h (struct probe_ops) <get_probe_address>: New field.
5044 <set_semaphore, clear_semaphore>: Add objfile parameter.
5045 (struct probe) <objfile>: Remove field.
5047 <address>: Update comment.
5048 (struct bound_probe): New.
5049 (find_probe_by_pc): Return a bound_probe.
5050 (get_probe_address): Declare.
5051 * solib-svr4.c (struct probe_and_action) <address>: New field.
5052 (hash_probe_and_action, equal_probe_and_action): Update.
5053 (register_solib_event_probe): Add address parameter.
5054 (solib_event_probe_at): Update.
5055 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5057 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5058 (stap_get_probe_address): New function.
5059 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5060 (compile_probe_arg): Update.
5061 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5063 (handle_stap_probe): Don't relocate the probe.
5064 (stap_relocate): Remove.
5065 (stap_gen_info_probes_table_values): Update.
5066 (stap_probe_ops): Remove stap_relocate.
5067 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5068 (debug_sym_probe_fns): Update.
5069 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5070 * symtab.c (init_sal): Use memset.
5071 * symtab.h (struct symtab_and_line) <objfile>: New field.
5072 * tracepoint.c (start_tracing, stop_tracing): Update.
5074 2014-03-03 Tom Tromey <tromey@redhat.com>
5076 * probe.h (parse_probes, find_probe_by_pc)
5077 (find_probes_in_objfile): Fix comments.
5079 2014-03-02 Doug Evans <xdje42@gmail.com>
5081 * infrun.c (handle_signal_stop): Replace test for
5082 TARGET_WAITKIND_STOPPED with an assert.
5084 2014-03-02 Doug Evans <xdje42@gmail.com>
5086 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5088 2014-03-02 Doug Evans <xdje42@gmail.com>
5090 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5092 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5094 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5096 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5098 * i386obsd-nat.c: Include "obsd-nat.h".
5099 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5101 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5103 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5105 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5107 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5109 * mips64obsd-nat.c: Include "obsd-nath".
5110 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5112 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5114 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5116 * amd64obsd-nat.c: Include "obsd-nat,h.
5117 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5119 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5121 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5123 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5124 (find_overload_match): Update call to find_oload_champ.
5125 (find_oload_champ_namespace_loop): Likewise
5127 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5129 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5131 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5132 * config/sparc/obsd64.mh: New file.
5133 * sparc64obsd-nat.c: New file.
5135 * obsd-nat.h: New file.
5136 * obsd-nat.c: New file.
5137 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5138 (ALLDEPFILES): Add obsd-nat.c.
5140 2014-02-28 Tom Tromey <tromey@redhat.com>
5142 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5143 * cli-out.h (cli_ui_out_impl): Now const.
5144 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5145 * ui-out.c (struct ui_out) <impl>: Now const.
5146 (default_ui_out_impl): Now const.
5147 (ui_out_new): Make 'impl' parameter const.
5148 * ui-out.h (ui_out_new): Update.
5150 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5152 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5154 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5156 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5158 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5160 Additional PR 8882 fix.
5161 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5163 2014-02-27 Pedro Alves <palves@redhat.com>
5165 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5168 2014-02-27 Pedro Alves <palves@redhat.com>
5171 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5172 * nat/linux-waitpid.c: Include string.h.
5173 (status_to_str): Moved here and made extern.
5174 * nat/linux-waitpid.h (status_to_str): New declaration.
5176 2014-02-27 Hui Zhu <hui@codesourcery.com>
5179 * infrun.c (ptid_match): Move ...
5180 * common/ptid.c (ptid_match): ... here.
5181 * inferior.h (ptid_match): Move ...
5182 * common/ptid.h (ptid_match): ... here.
5184 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5186 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5187 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5190 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5192 * obsd-tdep.c (obsd_auxv_parse): New function.
5193 (obsd_init_abi): Set auxv_parse.
5195 * gdbarch.sh (auxv_parse): New.
5196 * gdbarch.h: Regenerated.
5197 * gdbarch.c: Regenerated.
5198 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5200 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5202 * guile/scm-value.c (gdbscm_history_append_x): New function.
5203 (value_functions): Add it.
5205 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5207 * dwarf2read.c (attr_value_as_address): New function.
5208 (dwarf2_find_base_address, read_call_site_scope): Use
5209 attr_value_as_address in place of DW_ADDR.
5210 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5211 the low and high addresses. Slight rework of the handling
5212 of the high pc being a constant form, and limit it to
5213 DWARF verson 4 or higher.
5214 (dwarf2_record_block_ranges): Likewise.
5215 (read_partial_die): Likewise.
5216 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5218 2014-02-26 Tom Tromey <tromey@redhat.com>
5220 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5222 2014-02-26 Tom Tromey <tromey@redhat.com>
5224 * elfread.c (elf_read_minimal_symbols): Return early if
5225 minimal symbols have already been read. Add "ei" parameter.
5226 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5227 * minsyms.c (prim_record_minimal_symbol_full): Update.
5228 * objfiles.h (struct objstats) <n_minsyms>: Move...
5229 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5230 * symmisc.c (print_objfile_statistics): Update.
5232 2014-02-26 Tom Tromey <tromey@redhat.com>
5234 * elfread.c (elf_read_minimal_symbols): New function, from
5236 (elf_symfile_read): Call it.
5238 2014-02-26 Tom Tromey <tromey@redhat.com>
5240 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5241 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5242 (lookup_minimal_symbol_solib_trampoline)
5243 (lookup_minimal_symbol_by_pc_section_1)
5244 (lookup_minimal_symbol_and_objfile): Update.
5245 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5246 Don't allocate a minimal symbol if minsyms have already been read.
5247 (build_minimal_symbol_hash_tables): Update.
5248 (install_minimal_symbols): Do nothing if minsyms already read.
5249 Use the per-BFD obstack.
5250 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5251 * objfiles.c (allocate_objfile): Call
5252 terminate_minimal_symbol_table later.
5253 (have_minimal_symbols): Update.
5254 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5255 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5256 Move from struct objfile.
5257 <minsyms_read>: New field.
5258 (struct objfile) <msymbols, minimal_symbol_count,
5259 msymbol_hash, msymbol_demangled_hash>: Move.
5260 (ALL_OBJFILE_MSYMBOLS): Update.
5261 * symfile.c (read_symbols): Set minsyms_read.
5262 (reread_symbols): Update.
5263 * symmisc.c (dump_objfile, dump_msymbols): Update.
5265 2014-02-26 Tom Tromey <tromey@redhat.com>
5267 * minsyms.c (msymbols_sort): Remove.
5268 * minsyms.h (msymbols_sort): Remove.
5269 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5270 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5271 * elfread.c (elf_symtab_read): Don't add section offsets.
5272 * xcoffread.c (record_minimal_symbol): Don't add section offset
5273 to minimal symbol address.
5274 * somread.c (text_offset, data_offset): Remove.
5275 (som_symtab_read): Don't add section offsets to minimal symbol
5277 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5278 Don't add section offsets to minimal symbols.
5279 * coffread.c (coff_symtab_read): Don't add section offsets
5280 to minimal symbol addresses.
5281 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5282 to minimal symbol addresses.
5283 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5284 section offset to minimal symbol addresses.
5285 * mdebugread.c (parse_partial_symbols): Don't add section
5286 offset to minimal symbol addresses.
5287 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5288 offset to minimal symbol addresses.
5290 2014-02-26 Tom Tromey <tromey@redhat.com>
5292 * ada-lang.c (ada_main_name): Update.
5293 (ada_add_standard_exceptions): Update.
5294 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5295 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5296 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5297 * auxv.c (ld_so_xfer_auxv): Update.
5298 * avr-tdep.c (avr_scan_prologue): Update.
5299 * ax-gdb.c (gen_var_ref): Update.
5300 * blockframe.c (get_pc_function_start)
5301 (find_pc_partial_function_gnu_ifunc): Update.
5302 * breakpoint.c (create_overlay_event_breakpoint)
5303 (create_longjmp_master_breakpoint)
5304 (create_std_terminate_master_breakpoint)
5305 (create_exception_master_breakpoint): Update.
5306 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5307 * c-valprint.c (c_val_print): Update.
5308 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5309 * common/agent.c (agent_look_up_symbols): Update.
5310 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5311 * dwarf2loc.c (call_site_to_target_addr): Update.
5312 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5313 * elfread.c (elf_gnu_ifunc_record_cache)
5314 (elf_gnu_ifunc_resolve_by_got): Update.
5315 * findvar.c (default_read_var_value): Update.
5316 * frame.c (inside_main_func): Update.
5317 * frv-tdep.c (frv_frame_this_id): Update.
5318 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5319 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5321 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5322 (hppa_hpux_find_dummy_bpaddr): Update.
5323 * hppa-tdep.c (hppa_symbol_address): Update.
5324 * infcmd.c (until_next_command): Update.
5325 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5327 * linespec.c (minsym_found, add_minsym): Update.
5328 * linux-nat.c (get_signo): Update.
5329 * linux-thread-db.c (inferior_has_bug): Update.
5330 * m32c-tdep.c (m32c_return_value)
5331 (m32c_m16c_address_to_pointer): Update.
5332 * m32r-tdep.c (m32r_frame_this_id): Update.
5333 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5334 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5335 * maint.c (maintenance_translate_address): Update.
5336 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5337 (frob_address): New function.
5338 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5339 frob_address. Rename parameter to "pc_in".
5340 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5342 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5344 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5345 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5346 * objc-lang.c (find_objc_msgsend): Update.
5347 * objfiles.c (objfile_relocate1): Update.
5348 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5349 * p-valprint.c (pascal_val_print): Update.
5350 * parse.c (write_exp_msymbol): Update.
5351 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5352 (ppc_elfv2_skip_entrypoint): Update.
5353 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5354 * printcmd.c (build_address_symbolic, msym_info)
5355 (address_info): Update.
5356 * proc-service.c (ps_pglobal_lookup): Update.
5357 * psymtab.c (find_pc_sect_psymtab_closer)
5358 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5359 Change msymbol parameter to bound_minimal_symbol.
5360 * ravenscar-thread.c (get_running_thread_id): Update.
5361 * remote.c (remote_check_symbols): Update.
5362 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5364 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5365 * solib-dsbt.c (lm_base): Update.
5366 * solib-frv.c (lm_base, main_got): Update.
5367 * solib-irix.c (locate_base): Update.
5368 * solib-som.c (som_solib_create_inferior_hook)
5369 (link_map_start): Update.
5370 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5371 * solib-svr4.c (elf_locate_base, enable_break): Update.
5372 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5373 (flush_ea_cache): Update.
5374 * stabsread.c (define_symbol, scan_file_globals): Update.
5375 * stack.c (find_frame_funname): Update.
5376 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5377 (debug_qf_find_pc_sect_symtab): Update.
5378 * symfile.c (simple_read_overlay_table)
5379 (simple_overlay_update): Update.
5380 * symfile.h (struct quick_symbol_functions)
5381 <find_pc_sect_symtab>: Change type of msymbol to
5382 bound_minimal_symbol.
5383 * symmisc.c (dump_msymbols): Update.
5384 * symtab.c (find_pc_sect_symtab_via_partial)
5385 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5386 (search_symbols, print_msymbol_info): Update.
5387 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5388 (MSYMBOL_VALUE_ADDRESS): Redefine.
5389 (BMSYMBOL_VALUE_ADDRESS): New macro.
5390 * tracepoint.c (scope_info): Update.
5391 * tui/tui-disasm.c (tui_find_disassembly_address)
5392 (tui_get_begin_asm_address): Update.
5393 * valops.c (find_function_in_inferior): Update.
5394 * value.c (value_static_field, value_fn_field): Update.
5396 2014-02-26 Tom Tromey <tromey@redhat.com>
5398 * ada-lang.c (ada_update_initial_language): Update.
5399 (ada_main_name, ada_has_this_exception_support): Update.
5400 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5401 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5402 * arm-tdep.c (arm_skip_stub): Update.
5403 * auxv.c (ld_so_xfer_auxv): Update.
5404 * avr-tdep.c (avr_scan_prologue): Update.
5405 * ax-gdb.c (gen_var_ref): Update.
5406 * breakpoint.c (struct breakpoint_objfile_data)
5407 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5408 type to bound_minimal_symbol.
5409 (create_overlay_event_breakpoint)
5410 (create_longjmp_master_breakpoint)
5411 (create_std_terminate_master_breakpoint)
5412 (create_exception_master_breakpoint): Update.
5413 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5414 * c-exp.y (classify_name): Update.
5415 * coffread.c (coff_symfile_read): Update.
5416 * common/agent.c (agent_look_up_symbols): Update.
5417 * d-lang.c (d_main_name): Update.
5418 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5419 * dec-thread.c (enable_dec_thread): Update.
5420 * dwarf2loc.c (call_site_to_target_addr): Update.
5421 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5422 * eval.c (evaluate_subexp_standard): Update.
5423 * findvar.c (struct minsym_lookup_data) <result>: Change type
5424 to bound_minimal_symbol.
5426 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5427 * frame.c (inside_main_func): Update.
5428 * frv-tdep.c (frv_frame_this_id): Update.
5429 * gcore.c (call_target_sbrk): Update.
5430 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5431 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5433 * go-lang.c (go_main_name): Update.
5434 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5435 (hppa_hpux_find_import_stub_for_addr): Update.
5436 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5437 Update. Change return type.
5438 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5440 * jit.c (jit_breakpoint_re_set_internal): Update.
5441 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5443 * linux-nat.c (get_signo): Update.
5444 * linux-thread-db.c (inferior_has_bug): Update
5445 * m32c-tdep.c (m32c_return_value)
5446 (m32c_m16c_address_to_pointer): Update.
5447 * m32r-tdep.c (m32r_frame_this_id): Update.
5448 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5449 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5450 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5451 lookup_minimal_symbol. Change return type.
5452 (lookup_minimal_symbol): Remove.
5453 (lookup_bound_minimal_symbol): Update.
5454 (lookup_minimal_symbol_text): Change return type.
5455 (lookup_minimal_symbol_solib_trampoline): Change return type.
5456 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5457 (lookup_minimal_symbol_solib_trampoline): Change return type.
5458 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5459 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5460 (value_nsstring, find_imps): Update.
5461 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5462 * p-lang.c (pascal_main_name): Update.
5463 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5464 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5465 * proc-service.c (ps_pglobal_lookup): Update.
5466 * ravenscar-thread.c (get_running_thread_msymbol): Change
5468 (has_ravenscar_runtime, get_running_thread_id): Update.
5469 * remote.c (remote_check_symbols): Update.
5470 * sol-thread.c (ps_pglobal_lookup): Update.
5471 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5472 * solib-dsbt.c (lm_base): Update.
5473 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5475 * solib-irix.c (locate_base): Update.
5476 * solib-som.c (som_solib_create_inferior_hook)
5477 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5479 * solib-spu.c (spu_enable_break): Update.
5480 * solib-svr4.c (elf_locate_base, enable_break): Update.
5481 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5482 (flush_ea_cache): Update.
5483 * stabsread.c (define_symbol): Update.
5484 * symfile.c (simple_read_overlay_table): Update.
5485 * symtab.c (find_pc_sect_line): Update.
5486 * tracepoint.c (scope_info): Update.
5487 * tui-disasm.c (tui_get_begin_asm_address): Update.
5488 * value.c (value_static_field): Update.
5490 2014-02-26 Tom Tromey <tromey@redhat.com>
5492 * minsyms.c (prim_record_minimal_symbol_full): Use
5493 SET_MSYMBOL_VALUE_ADDRESS.
5494 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5495 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5496 SET_MSYMBOL_VALUE_ADDRESS.
5497 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5498 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5500 2014-02-26 Tom Tromey <tromey@redhat.com>
5502 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5503 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5504 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5505 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5506 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5507 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5508 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5509 * ada-lang.c (ada_main_name): Update.
5510 (ada_lookup_simple_minsym): Update.
5511 (ada_make_symbol_completion_list): Update.
5512 (ada_add_standard_exceptions): Update.
5513 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5514 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5515 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5516 * arm-tdep.c (skip_prologue_function): Update.
5517 (arm_skip_stack_protector, arm_skip_stub): Update.
5518 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5519 (arm_wince_skip_main_prologue): Update.
5520 * auxv.c (ld_so_xfer_auxv): Update.
5521 * avr-tdep.c (avr_scan_prologue): Update.
5522 * ax-gdb.c (gen_var_ref): Update.
5523 * block.c (call_site_for_pc): Update.
5524 * blockframe.c (get_pc_function_start): Update.
5525 (find_pc_partial_function_gnu_ifunc): Update.
5526 * breakpoint.c (create_overlay_event_breakpoint): Update.
5527 (create_longjmp_master_breakpoint): Update.
5528 (create_std_terminate_master_breakpoint): Update.
5529 (create_exception_master_breakpoint): Update.
5530 (resolve_sal_pc): Update.
5531 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5532 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5534 * c-valprint.c (c_val_print): Update.
5535 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5536 * coffread.c (coff_symfile_read): Update.
5537 * common/agent.c (agent_look_up_symbols): Update.
5538 * dbxread.c (find_stab_function_addr): Update.
5539 (end_psymtab): Update.
5540 * dwarf2loc.c (call_site_to_target_addr): Update.
5541 (func_verify_no_selftailcall): Update.
5542 (tailcall_dump): Update.
5543 (call_site_find_chain_1): Update.
5544 (dwarf_expr_reg_to_entry_parameter): Update.
5545 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5546 (elf_gnu_ifunc_resolve_by_got): Update.
5547 * f-valprint.c (info_common_command): Update.
5548 * findvar.c (read_var_value): Update.
5549 * frame.c (get_prev_frame_1): Update.
5550 (inside_main_func): Update.
5551 * frv-tdep.c (frv_skip_main_prologue): Update.
5552 (frv_frame_this_id): Update.
5553 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5554 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5555 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5556 (gnuv3_skip_trampoline): Update.
5557 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5558 (hppa64_hpux_in_solib_call_trampoline): Update.
5559 (hppa_hpux_skip_trampoline_code): Update.
5560 (hppa64_hpux_search_dummy_call_sequence): Update.
5561 (hppa_hpux_find_import_stub_for_addr): Update.
5562 (hppa_hpux_find_dummy_bpaddr): Update.
5563 * hppa-tdep.c (hppa_symbol_address)
5564 (hppa_lookup_stub_minimal_symbol): Update.
5565 * i386-tdep.c (i386_skip_main_prologue): Update.
5566 (i386_pe_skip_trampoline_code): Update.
5567 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5568 * infcall.c (get_function_name): Update.
5569 * infcmd.c (until_next_command): Update.
5570 * jit.c (jit_breakpoint_re_set_internal): Update.
5571 (jit_inferior_init): Update.
5572 * linespec.c (minsym_found): Update.
5573 (add_minsym): Update.
5574 * linux-fork.c (info_checkpoints_command): Update.
5575 * linux-nat.c (get_signo): Update.
5576 * linux-thread-db.c (inferior_has_bug): Update.
5577 * m32c-tdep.c (m32c_return_value): Update.
5578 (m32c_m16c_address_to_pointer): Update.
5579 (m32c_m16c_pointer_to_address): Update.
5580 * m32r-tdep.c (m32r_frame_this_id): Update.
5581 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5582 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5583 * maint.c (maintenance_translate_address): Update.
5584 * minsyms.c (add_minsym_to_hash_table): Update.
5585 (add_minsym_to_demangled_hash_table): Update.
5586 (msymbol_objfile): Update.
5587 (lookup_minimal_symbol): Update.
5588 (iterate_over_minimal_symbols): Update.
5589 (lookup_minimal_symbol_text): Update.
5590 (lookup_minimal_symbol_by_pc_name): Update.
5591 (lookup_minimal_symbol_solib_trampoline): Update.
5592 (lookup_minimal_symbol_by_pc_section_1): Update.
5593 (lookup_minimal_symbol_and_objfile): Update.
5594 (prim_record_minimal_symbol_full): Update.
5595 (compare_minimal_symbols): Update.
5596 (compact_minimal_symbols): Update.
5597 (build_minimal_symbol_hash_tables): Update.
5598 (install_minimal_symbols): Update.
5599 (terminate_minimal_symbol_table): Update.
5600 (find_solib_trampoline_target): Update.
5601 (minimal_symbol_upper_bound): Update.
5602 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5603 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5604 (mips_skip_pic_trampoline_code): Update.
5605 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5606 * objc-lang.c (selectors_info): Update.
5607 (classes_info): Update.
5608 (find_methods): Update.
5609 (find_imps): Update.
5610 (find_objc_msgsend): Update.
5611 * objfiles.c (objfile_relocate1): Update.
5612 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5613 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5614 * p-valprint.c (pascal_val_print): Update.
5615 * parse.c (write_exp_msymbol): Update.
5616 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5617 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5618 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5619 * printcmd.c (build_address_symbolic): Update.
5621 (address_info): Update.
5622 * proc-service.c (ps_pglobal_lookup): Update.
5623 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5624 (find_pc_sect_psymtab): Update.
5625 * python/py-framefilter.c (py_print_frame): Update.
5626 * ravenscar-thread.c (get_running_thread_id): Update.
5627 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5629 * remote.c (remote_check_symbols): Update.
5630 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5631 (rs6000_skip_trampoline_code): Update.
5632 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5633 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5634 * solib-dsbt.c (lm_base): Update.
5635 * solib-frv.c (lm_base): Update.
5637 * solib-irix.c (locate_base): Update.
5638 * solib-som.c (som_solib_create_inferior_hook): Update.
5639 (som_solib_desire_dynamic_linker_symbols): Update.
5640 (link_map_start): Update.
5641 * solib-spu.c (spu_enable_break): Update.
5642 (ocl_enable_break): Update.
5643 * solib-svr4.c (elf_locate_base): Update.
5644 (enable_break): Update.
5645 * spu-tdep.c (spu_get_overlay_table): Update.
5646 (spu_catch_start): Update.
5647 (flush_ea_cache): Update.
5648 * stabsread.c (define_symbol): Update.
5649 (scan_file_globals): Update.
5650 * stack.c (find_frame_funname): Update.
5651 (frame_info): Update.
5652 * symfile.c (simple_read_overlay_table): Update.
5653 (simple_overlay_update): Update.
5654 * symmisc.c (dump_msymbols): Update.
5655 * symtab.c (fixup_section): Update.
5656 (find_pc_sect_line): Update.
5657 (skip_prologue_sal): Update.
5658 (search_symbols): Update.
5659 (print_msymbol_info): Update.
5660 (rbreak_command): Update.
5661 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5662 (completion_list_objc_symbol): Update.
5663 (default_make_symbol_completion_list_break_on): Update.
5664 * tracepoint.c (scope_info): Update.
5665 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5666 (tui_get_begin_asm_address): Update.
5667 * valops.c (find_function_in_inferior): Update.
5668 * value.c (value_static_field): Update.
5669 (value_fn_field): Update.
5671 2014-02-26 Tom Tromey <tromey@redhat.com>
5673 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5674 bound minimal symbols. Move code that knows about minsym
5676 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5678 * minsyms.h (minimal_symbol_upper_bound): Declare.
5679 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5680 minimal_symbol_upper_bound.
5682 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5684 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5685 Use the type's name if its basic type does not have a tag.
5687 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5689 * dwarf2read.c (read_subrange_type): Add comment.
5691 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5693 * dwarf2read.c (update_enumeration_type_from_children): New
5694 function, mostly extracted from process_structure_scope.
5695 (read_enumeration_type): Call update_enumeration_type_from_children.
5696 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5697 and flag_flag_enum fields.
5699 2014-02-26 Pedro Alves <palves@redhat.com>
5701 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5702 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5703 to_xfer_partial method.
5705 2014-02-26 Pedro Alves <palves@redhat.com>
5707 * target.c (complete_target_initialization): Don't install
5708 default_xfer_partial as to_xfer_partial hook.
5710 (update_current_target): Don't INHERIT nor de_fault
5711 deprecated_xfer_memory. Delete de_fault macro.
5712 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5713 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5714 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5717 2014-02-26 Pedro Alves <palves@redhat.com>
5719 * go32-nat.c (my_write_child): New function.
5720 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5721 (go32_xfer_partial): New function.
5722 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5723 Instead install a to_xfer_partial hook.
5725 2014-02-26 Pedro Alves <palves@redhat.com>
5727 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5728 to_xfer_partial helper. Rewrite.
5729 (procfs_xfer_partial): New function.
5730 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5731 Install a to_xfer_partial hook.
5733 2014-02-26 Pedro Alves <palves@redhat.com>
5735 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5736 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5737 (m32r_xfer_partial): New function.
5738 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5739 Install a to_xfer_partial hook.
5741 2014-02-26 Pedro Alves <palves@redhat.com>
5743 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5745 (mips_xfer_partial): New function.
5746 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5747 hook. Install a to_xfer_partial hook.
5749 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5751 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5752 * gdbtypes.c (create_array_type_with_stride): New function,
5753 renaming create_array_type, but with an added parameter
5754 called "bit_stride".
5755 (create_array_type): Re-implement using
5756 create_array_type_with_stride.
5757 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5758 and DW_AT_bit_stride attributes.
5760 2014-02-26 Pedro Alves <palves@redhat.com>
5762 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5763 task-specific breakpoints.
5765 2014-02-25 Pedro Alves <palves@redhat.com>
5767 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5768 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5770 2014-02-25 Stan Shebs <stan@codesourcery.com>
5772 * defs.h: Annotate comments for Doxygen.
5774 2014-02-25 Tom Tromey <tromey@redhat.com>
5776 * target.h (target_ignore): Don't declare.
5777 * target.c (target_ignore): Remove.
5779 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5782 * auto-load.c (auto_load_objfile_script_1): Change filename to
5785 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5787 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5788 documentation. Adjust prototype to match the target_ops
5789 to_xfer_partial method. Adjust implementation accordingly.
5791 2014-02-25 Hui Zhu <hui@codesourcery.com>
5793 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5796 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5798 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5799 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5800 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5801 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5802 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5803 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5804 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5805 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5807 (rl78_register_type): Use a data pointer type for SP and
5808 new pseudo registers mentioned above. Use a 16 bit integer
5809 type for all other register pairs.
5810 (rl78_register_name, rl78_g10_register_name): Update for
5811 new pseudo registers.
5812 (rl78_pseudo_register_read): Likewise.
5813 (rl78_pseudo_register_write): Likewise.
5814 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5815 to the newly added pseudo registers.
5817 2014-02-24 Doug Evans <dje@google.com>
5819 * value.c (record_latest_value): Fix comment.
5820 * printcmd.c (print_command_1): Remove code to handle -1 return from
5821 record_latest_value.
5823 2014-02-24 Pedro Alves <palves@redhat.com>
5825 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5826 deprecated_xfer_memory hook.
5827 (procfs_xfer_partial): Call procfs_xfer_memory instead
5828 of the deprecated_xfer_memory target hook.
5829 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5832 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5834 * windows-nat.c (windows_xfer_shared_libraries): Return
5835 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5836 requested object is TARGET_OBJECT_LIBRARIES.
5838 2014-02-24 Yao Qi <yao@codesourcery.com>
5840 * target.h (enum target_xfer_status)
5841 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5842 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5844 * corefile.c (memory_error_message): User updated.
5845 * exec.c (section_table_read_available_memory): Likewise.
5846 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5847 * target.c (target_xfer_status_to_string): Likewise.
5848 (raw_memory_xfer_partial): Likewise.
5849 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5850 * valops.c (read_value_memory): Likewise.
5851 * exec.h: Update comments.
5853 2014-02-24 Yao Qi <yao@codesourcery.com>
5855 * target.c (target_xfer_status_to_string): Rename argument err
5857 * target.h (target_xfer_status_to_string): Update declaration.
5858 Replace target_xfer_error_to_string with
5859 target_xfer_status_to_string in comment.
5861 2014-02-24 Yao Qi <yao@codesourcery.com>
5863 * mips-linux-nat.c (super_close): Update its type.
5864 (mips_linux_close): Pass 'self' to super_close.
5866 2014-02-24 Yao Qi <yao@codesourcery.com>
5868 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5869 * corefile.c (read_memory): Adjusted.
5870 * target.c (target_write_with_progress): Adjusted.
5872 2014-02-23 Yao Qi <yao@codesourcery.com>
5876 2013-10-25 Yao Qi <yao@codesourcery.com>
5878 * remote.c (remote_traceframe_info): Return early if
5879 traceframe is not selected.
5881 2013-07-19 Yao Qi <yao@codesourcery.com>
5883 * target.c (update_current_target): Change the default action
5884 of 'to_traceframe_info' from tcomplain to return_zero.
5885 * target.h (struct target_ops) <to_traceframe_info>: Add more
5888 2014-02-23 Yao Qi <yao@codesourcery.com>
5890 * valops.c (read_value_memory): Rewrite it. Call
5891 target_xfer_partial in a loop.
5892 * exec.h (section_table_available_memory): Remove declaration.
5893 Move comments to ...
5894 * exec.c (section_table_available_memory): ... here. Make it
5897 2014-02-23 Yao Qi <yao@codesourcery.com>
5899 * exec.c (section_table_read_available_memory): New function.
5900 * exec.h (section_table_read_available_memory): Declare.
5901 * ctf.c (ctf_xfer_partial): Call
5902 section_table_read_available_memory.
5903 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5905 2014-02-23 Yao Qi <yao@codesourcery.com>
5907 * ctf.c (ctf_xfer_partial): Move code to ...
5908 * exec.c (exec_read_partial_read_only): ... it. New function.
5909 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5910 * tracefile.c: Include "exec.h".
5911 * exec.h (exec_read_partial_read_only): Declare.
5913 2014-02-23 Yao Qi <yao@codesourcery.com>
5915 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5916 (tfile_has_memory): Remove.
5917 (init_tfile_ops): Don't set fields to_has_all_memory and
5918 to_has_memory of tfile_ops.
5919 * tracefile.c (tracefile_has_all_memory): New function.
5920 (tracefile_has_memory): New function.
5921 (init_tracefile_ops): Initialize fields to_has_all_memory and
5922 to_has_memory of 'ops'.
5924 2014-02-23 Yao Qi <yao@codesourcery.com>
5926 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5927 (ctf_thread_alive, ctf_get_trace_status): Remove.
5928 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5930 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5931 (tfile_has_stack, tfile_has_registers): Remove.
5932 (tfile_thread_alive): Remove.
5933 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5935 * tracefile.c (tracefile_has_stack): New function.
5936 (tracefile_has_registers): New function.
5937 (tracefile_thread_alive): New function.
5938 (tracefile_get_trace_status): New function.
5939 (init_tracefile_ops): New function.
5940 * tracefile.h (init_tracefile_ops): Declare.
5942 2014-02-23 Yao Qi <yao@codesourcery.com>
5944 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5945 (O_LARGEFILE): Likewise.
5946 (tfile_ops): Likewise.
5947 (TRACE_HEADER_SIZE): Likewise.
5948 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5949 (cur_data_size): Likewise.
5950 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5951 (tfile_close, tfile_files_info): Likewise.
5952 (tfile_get_trace_status): Likewise.
5953 (tfile_get_tracepoint_status): Likewise.
5954 (tfile_get_traceframe_address): Likewise.
5955 (tfile_trace_find, match_blocktype): Likewise.
5956 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5957 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5958 (tfile_get_trace_state_variable_value): Likewise.
5959 (tfile_has_all_memory, tfile_has_memory): Likewise.
5960 (tfile_has_stack, tfile_has_registers): Likewise.
5961 (tfile_thread_alive, build_traceframe_info): Likewise.
5962 (tfile_traceframe_info, init_tfile_ops): Likewise.
5963 (_initialize_tracepoint): Don't call init_tfile_ops
5964 and add_target_with_completer.
5965 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5966 exec.h, completer.h and filenames.h.
5967 (_initialize_tracefile_tfile): New function.
5969 2014-02-23 Yao Qi <yao@codesourcery.com>
5971 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5973 (HFILES_NO_SRCDIR): Add tracefile.h.
5974 * ctf.c: Include "tracefile.h".
5975 * tracefile.h: New file.
5976 * tracefile.c: New file
5977 * tracefile-tfile.c: New file.
5978 * tracepoint.c: Include "tracefile.h".
5979 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5980 (stop_reason_names): Add const.
5981 (trace_file_writer_xfree): Move it to tracefile.c.
5982 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5983 (trace_save_ctf): Likewise.
5984 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5985 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5986 (tfile_write_header, tfile_write_regblock_type): Likewise.
5987 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5988 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5989 (tfile_write_raw_data, tfile_end): Likewise.
5990 (tfile_trace_file_writer_new): Likewise.
5991 (free_uploaded_tp): Make it extern.
5992 (free_uploaded_tsv): Make it extern.
5993 (_initialize_tracepoint): Move code to register command 'tsave'
5995 * tracepoint.h (stop_reason_names): Declare.
5996 (struct trace_frame_write_ops): Move it to tracefile.h.
5997 (struct trace_file_write_ops): Likewise.
5998 (struct trace_file_writer): Likewise.
5999 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6001 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6004 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6006 (get_cores_used_by_process): New parameter num_cores, use it.
6007 (linux_xfer_osdata_processes): Pass num_cores to it.
6008 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6011 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6013 * target.c (memory_xfer_partial): Fix length arg in call to
6014 breakpoint_xfer_memory.
6016 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6019 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6020 number comes after the + or - signs. Adjust length of register
6021 name to be extracted.
6023 2014-02-20 Tom Tromey <tromey@redhat.com>
6025 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6026 (ada_varobj_ops): Mark "extern".
6028 2014-02-20 Tom Tromey <tromey@redhat.com>
6030 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6032 2014-02-20 Doug Evans <xdje42@gmail.com>
6034 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6035 All callers updated.
6036 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6037 All callers updated.
6038 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6039 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6041 2014-02-20 lin zuojian <manjian2006@gmail.com>
6042 Joel Brobecker <brobecker@adacore.com>
6043 Doug Evans <xdje42@gmail.com>
6046 * dwarf2read.c (struct die_info): New member in_process.
6047 (reset_die_in_process): New function.
6048 (process_die): Set it at the start, reset when returning.
6049 (inherit_abstract_dies): Only call process_die if origin_child_die
6050 not already being processed.
6052 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6054 * windows-nat.c (handle_unload_dll): Add function documentation.
6055 (do_initial_windows_stuff): Add comment explaining why we wait
6056 until after inferior initialization has finished before
6057 processing all DLLs.
6059 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6061 * windows-nat.c (get_module_name): Delete.
6062 (windows_get_exec_module_filename): New function, mostly
6063 inspired from get_module_name.
6064 (windows_pid_to_exec_file): Replace call to get_module_name
6065 by call to windows_get_exec_module_filename.
6067 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6069 * windows-nat.c (handle_load_dll): Rewrite this function's
6070 introductory comment. Remove code using get_module_name
6071 to get the DLL's name.
6073 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6075 * windows-nat.c (get_windows_debug_event): Ignore
6076 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6077 if windows_initialization_done == 0.
6078 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6079 Adjust implementation to always load all DLLs.
6080 (do_initial_windows_stuff): Replace call to
6081 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6083 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6085 * windows-nat.c (_initialize_windows_nat): Deprecate the
6086 "dll-symbols" command. Turn the "add-shared-symbol-files"
6087 and "assf" aliases into commands, and deprecate them as well.
6088 * NEWS: Add entry explaining that "dll-symbols" and its two
6089 aliases are now deprecated.
6091 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6093 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6094 new-line in debug string. Remove trailing spaces.
6096 2014-02-19 Stan Shebs <stan@codesourcery.com>
6098 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6100 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6102 * NEWS: Add entry for the new feature
6103 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6106 2014-02-19 Stan Shebs <stan@codesourcery.com>
6108 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6110 2014-02-19 Pedro Alves <palves@redhat.com>
6112 * common/ptid.h (struct ptid): Mention that process_stratum
6113 targets should prefer ptid.lwp.
6115 2014-02-19 Pedro Alves <palves@redhat.com>
6117 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6118 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6119 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6120 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6121 store remote thread ids rather than ptid.tid.
6122 (_initialize_remote): Adjust.
6124 2014-02-19 Tom Tromey <tromey@redhat.com>
6126 * target.c (target_get_unwinder): Rewrite.
6127 (target_get_tailcall_unwinder): Rewrite.
6128 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6129 (record_btrace_to_get_tailcall_unwinder): New function.
6130 (init_record_btrace_ops): Update.
6131 * target.h (struct target_ops) <to_get_unwinder,
6132 to_get_tailcall_unwinder>: Now function pointers. Use
6133 TARGET_DEFAULT_RETURN.
6135 2014-02-19 Tom Tromey <tromey@redhat.com>
6137 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6139 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6141 2014-02-19 Tom Tromey <tromey@redhat.com>
6143 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6145 * target-delegates.c: Rebuild.
6146 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6147 TARGET_DEFAULT_FUNC.
6148 * target.c (default_target_decr_pc_after_break): Rename from
6149 forward_target_decr_pc_after_break. Simplify.
6150 (target_decr_pc_after_break): Rely on delegation.
6152 2014-02-19 Tom Tromey <tromey@redhat.com>
6154 * target.c (update_current_target): Do not INHERIT to_doc or
6155 to_magic. Do not de_fault to_open or to_close.
6157 2014-02-19 Tom Tromey <tromey@redhat.com>
6159 * gcore.h (objfile_find_memory_regions): Declare.
6160 * gcore.c (objfile_find_memory_regions): No longer static. Add
6162 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6163 * exec.c: Include gcore.h.
6164 (exec_set_find_memory_regions): Remove.
6165 (exec_find_memory_regions): Remove.
6166 (exec_do_find_memory_regions): Remove.
6167 (init_exec_ops): Update.
6168 * defs.h (exec_set_find_memory_regions): Remove.
6170 2014-02-19 Tom Tromey <tromey@redhat.com>
6172 * target-delegates.c: Rebuild.
6173 * target.h (struct target_ops) <to_extra_thread_info,
6174 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6175 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6176 not 0, in TARGET_DEFAULT_RETURN.
6178 2014-02-19 Tom Tromey <tromey@redhat.com>
6180 * target.c (complete_target_initialization): Remove casts. Use
6181 return_zero_has_execution.
6182 (return_zero): Add "ignore" argument.
6183 (return_zero_has_execution): New function.
6184 (init_dummy_target): Remove casts. Use
6185 return_zero_has_execution.
6187 2014-02-19 Tom Tromey <tromey@redhat.com>
6189 * target.c (update_current_target): Update comments. Do not
6192 2014-02-19 Tom Tromey <tromey@redhat.com>
6194 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6196 * corelow.c (core_read_description): Delegate when needed.
6197 * remote.c (remote_read_description): Delegate when needed.
6198 * target-delegates.c: Rebuild.
6199 * target.c (target_read_description): Rewrite.
6200 * target.h (struct target_ops) <to_read_description>: Update
6201 comment. Use TARGET_DEFAULT_RETURN.
6203 2014-02-19 Tom Tromey <tromey@redhat.com>
6205 * target-delegates.c: Rebuild.
6206 * target.c (update_current_target): Don't inherit or default
6208 (find_default_run_target): Check against delegate_can_run.
6209 * target.h (struct target_ops) <to_can_run>: Use
6210 TARGET_DEFAULT_RETURN.
6212 2014-02-19 Tom Tromey <tromey@redhat.com>
6214 * target-delegates.c: Rebuild.
6215 * target.c (target_disconnect): Unconditionally delegate.
6216 * target.h (struct target_ops) <to_disconnect>: Use
6217 TARGET_DEFAULT_NORETURN.
6219 2014-02-19 Tom Tromey <tromey@redhat.com>
6221 * record.c (record_stop): Unconditionally delegate.
6222 * target-delegates.c: Rebuild.
6223 * target.c (target_stop_recording): Unconditionally delegate.
6224 * target.h (struct target_ops) <to_stop_recording>: Use
6225 TARGET_DEFAULT_IGNORE.
6227 2014-02-19 Tom Tromey <tromey@redhat.com>
6229 * target-delegates.c: Rebuild.
6230 * target.c (target_enable_btrace): Unconditionally delegate.
6231 * target.h (struct target_ops) <to_enable_btrace>: Use
6232 TARGET_DEFAULT_NORETURN.
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6236 * target-delegates.c: Rebuild.
6237 * target.c (target_read_btrace): Unconditionally delegate.
6238 * target.h (struct target_ops) <to_read_btrace>: Use
6239 TARGET_DEFAULT_NORETURN.
6241 2014-02-19 Tom Tromey <tromey@redhat.com>
6243 * target-delegates.c: Rebuild.
6244 * target.c (target_teardown_btrace): Unconditionally delegate.
6245 * target.h (struct target_ops) <to_teardown_btrace>: Use
6246 TARGET_DEFAULT_NORETURN.
6248 2014-02-19 Tom Tromey <tromey@redhat.com>
6250 * target-delegates.c: Rebuild.
6251 * target.c (target_disable_btrace): Unconditionally delegate.
6252 * target.h (struct target_ops) <to_disable_btrace>: Use
6253 TARGET_DEFAULT_NORETURN.
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6257 * target-delegates.c: Rebuild.
6258 * target.c (default_search_memory): New function.
6259 (simple_search_memory): Update comment.
6260 (target_search_memory): Unconditionally delegate.
6261 * target.h (struct target_ops) <to_search_memory>: Use
6262 TARGET_DEFAULT_FUNC.
6264 2014-02-19 Tom Tromey <tromey@redhat.com>
6266 * auxv.c (default_auxv_parse): No longer static.
6267 (target_auxv_parse): Unconditionally delegate.
6268 * auxv.h (default_auxv_parse): Declare.
6269 * target-delegates.c: Rebuild.
6270 * target.c: Include auxv.h.
6271 * target.h (struct target_ops) <to_auxv_parse>: Use
6272 TARGET_DEFAULT_FUNC.
6274 2014-02-19 Tom Tromey <tromey@redhat.com>
6276 * target-delegates.c: Rebuild.
6277 * target.c (target_memory_map): Unconditionally delegate.
6278 * target.h (struct target_ops) <to_memory_map>: Use
6279 TARGET_DEFAULT_RETURN.
6281 2014-02-19 Tom Tromey <tromey@redhat.com>
6283 * target-delegates.c: Rebuild.
6284 * target.c (target_thread_alive): Unconditionally delegate.
6285 * target.h (struct target_ops) <to_thread_alive>: Use
6286 TARGET_DEFAULT_RETURN.
6288 2014-02-19 Tom Tromey <tromey@redhat.com>
6290 * target-delegates.c: Rebuild.
6291 * target.c (target_save_record): Unconditionally delegate.
6292 * target.h (struct target_ops) <to_save_record>: Use
6293 TARGET_DEFAULT_NORETURN.
6295 2014-02-19 Tom Tromey <tromey@redhat.com>
6297 * target-delegates.c: Rebuild.
6298 * target.c (target_delete_record): Unconditionally delegate.
6299 * target.h (struct target_ops) <to_delete_record>: Use
6300 TARGET_DEFAULT_NORETURN.
6302 2014-02-19 Tom Tromey <tromey@redhat.com>
6304 * target-delegates.c: Rebuild.
6305 * target.c (target_record_is_replaying): Unconditionally
6307 * target.h (struct target_ops) <to_record_is_replaying>: Use
6308 TARGET_DEFAULT_RETURN.
6310 2014-02-19 Tom Tromey <tromey@redhat.com>
6312 * target-delegates.c: Rebuild.
6313 * target.c (target_goto_record_begin): Unconditionally delegate.
6314 * target.h (struct target_ops) <to_goto_record_begin>: Use
6315 TARGET_DEFAULT_NORETURN.
6317 2014-02-19 Tom Tromey <tromey@redhat.com>
6319 * target-delegates.c: Rebuild.
6320 * target.c (target_goto_record_end): Unconditionally delegate.
6321 * target.h (struct target_ops) <to_goto_record_end>: Use
6322 TARGET_DEFAULT_NORETURN.
6324 2014-02-19 Tom Tromey <tromey@redhat.com>
6326 * target-delegates.c: Rebuild.
6327 * target.c (target_goto_record): Unconditionally delegate.
6328 * target.h (struct target_ops) <to_goto_record>: Use
6329 TARGET_DEFAULT_NORETURN.
6331 2014-02-19 Tom Tromey <tromey@redhat.com>
6333 * target-delegates.c: Rebuild.
6334 * target.c (target_insn_history): Unconditionally delegate.
6335 * target.h (struct target_ops) <to_insn_history>: Use
6336 TARGET_DEFAULT_NORETURN.
6338 2014-02-19 Tom Tromey <tromey@redhat.com>
6340 * target-delegates.c: Rebuild.
6341 * target.c (target_insn_history_from): Unconditionally delegate.
6342 * target.h (struct target_ops) <to_insn_history_from>: Use
6343 TARGET_DEFAULT_NORETURN.
6345 2014-02-19 Tom Tromey <tromey@redhat.com>
6347 * target-delegates.c: Rebuild.
6348 * target.c (target_insn_history_range): Unconditionally delegate.
6349 * target.h (struct target_ops) <to_insn_history_range>: Use
6350 TARGET_DEFAULT_NORETURN.
6352 2014-02-19 Tom Tromey <tromey@redhat.com>
6354 * target-delegates.c: Rebuild.
6355 * target.c (target_call_history): Unconditionally delegate.
6356 * target.h (struct target_ops) <to_call_history>: Use
6357 TARGET_DEFAULT_NORETURN.
6359 2014-02-19 Tom Tromey <tromey@redhat.com>
6361 * target-delegates.c: Rebuild.
6362 * target.c (target_call_history_from): Unconditionally delegate.
6363 * target.h (struct target_ops) <to_call_history_from>: Use
6364 TARGET_DEFAULT_NORETURN.
6366 2014-02-19 Tom Tromey <tromey@redhat.com>
6368 * target-delegates.c: Rebuild.
6369 * target.c (target_call_history_range): Unconditionally delegate.
6370 * target.h (struct target_ops) <to_call_history_range>: Use
6371 TARGET_DEFAULT_NORETURN.
6373 2014-02-19 Tom Tromey <tromey@redhat.com>
6375 * target-delegates.c: Rebuild.
6376 * target.c (target_verify_memory): Unconditionally delegate.
6377 * target.h (struct target_ops) <to_verify_memory>: Use
6378 TARGET_DEFAULT_NORETURN.
6380 2014-02-19 Tom Tromey <tromey@redhat.com>
6382 * target-delegates.c: Rebuild.
6383 * target.c (target_core_of_thread): Unconditionally delegate.
6384 * target.h (struct target_ops) <to_core_of_thread>: Use
6385 TARGET_DEFAULT_RETURN.
6387 2014-02-19 Tom Tromey <tromey@redhat.com>
6389 * target-delegates.c: Rebuild.
6390 * target.c (target_flash_done): Unconditionally delegate.
6391 * target.h (struct target_ops) <to_flash_done>: Use
6392 TARGET_DEFAULT_NORETURN.
6394 2014-02-19 Tom Tromey <tromey@redhat.com>
6396 * target-delegates.c: Rebuild.
6397 * target.c (target_flash_erase): Unconditionally delegate.
6398 * target.h (struct target_ops) <to_flash_erase>: Use
6399 TARGET_DEFAULT_NORETURN.
6401 2014-02-19 Tom Tromey <tromey@redhat.com>
6403 * target-delegates.c: Rebuild.
6404 * target.c (target_get_section_table): Unconditionally delegate.
6405 * target.h (struct target_ops) <to_get_section_table>: Use
6406 TARGET_DEFAULT_RETURN.
6408 2014-02-19 Tom Tromey <tromey@redhat.com>
6410 * target-delegates.c: Rebuild.
6411 * target.c (target_pid_to_str): Unconditionally delegate.
6412 (init_dummy_target): Don't initialize to_pid_to_str.
6413 (default_pid_to_str): Rename from dummy_pid_to_str.
6414 * target.h (struct target_ops) <to_pid_to_str>: Use
6415 TARGET_DEFAULT_FUNC.
6417 2014-02-19 Tom Tromey <tromey@redhat.com>
6419 * target-delegates.c: Rebuild.
6420 * target.c (target_find_new_threads): Unconditionally delegate.
6421 * target.h (struct target_ops) <to_find_new_threads>: Use
6422 TARGET_DEFAULT_RETURN.
6424 2014-02-19 Tom Tromey <tromey@redhat.com>
6426 * target-delegates.c: Rebuild.
6427 * target.c (target_program_signals): Unconditionally delegate.
6428 * target.h (struct target_ops) <to_program_signals>: Use
6429 TARGET_DEFAULT_IGNORE.
6431 2014-02-19 Tom Tromey <tromey@redhat.com>
6433 * target-delegates.c: Rebuild.
6434 * target.c (target_pass_signals): Unconditionally delegate.
6435 * target.h (struct target_ops) <to_pass_signals>: Use
6436 TARGET_DEFAULT_IGNORE.
6438 2014-02-19 Tom Tromey <tromey@redhat.com>
6440 * target-delegates.c: Rebuild.
6441 * target.c (default_mourn_inferior): New function.
6442 (target_mourn_inferior): Unconditionally delegate.
6443 * target.h (struct target_ops) <to_mourn_inferior>: Use
6444 TARGET_DEFAULT_FUNC.
6446 2014-02-19 Tom Tromey <tromey@redhat.com>
6448 * target-delegates.c: Rebuild.
6449 * target.c (default_follow_fork): New function.
6450 (target_follow_fork): Unconditionally delegate.
6451 * target.h (struct target_ops) <to_follow_fork>: Use
6452 TARGET_DEFAULT_FUNC.
6454 2014-02-19 Tom Tromey <tromey@redhat.com>
6456 * target-delegates.c: Rebuild.
6457 * target.c (target_kill): Unconditionally delegate.
6458 * target.h (struct target_ops) <to_kill>: Use
6459 TARGET_DEFAULT_NORETURN.
6461 2014-02-19 Tom Tromey <tromey@redhat.com>
6463 * target-delegates.c: Rebuild.
6464 * target.c (target_masked_watch_num_registers): Unconditionally
6466 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6467 Use TARGET_DEFAULT_RETURN.
6469 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * target-delegates.c: Rebuild.
6472 * target.c (target_remove_mask_watchpoint): Unconditionally
6474 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6475 TARGET_DEFAULT_RETURN.
6477 2014-02-19 Tom Tromey <tromey@redhat.com>
6479 * target-delegates.c: Rebuild.
6480 * target.c (target_insert_mask_watchpoint): Unconditionally
6482 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6483 TARGET_DEFAULT_RETURN.
6485 2014-02-19 Tom Tromey <tromey@redhat.com>
6487 * target-delegates.c: Rebuild.
6488 * target.c (target_ranged_break_num_registers): Unconditionally
6490 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6491 Use TARGET_DEFAULT_RETURN.
6493 2014-02-19 Tom Tromey <tromey@redhat.com>
6495 * target-delegates.c: Rebuild.
6496 * target.c (target_fetch_registers): Unconditionally delegate.
6497 * target.h (struct target_ops) <to_fetch_registers>: Use
6498 TARGET_DEFAULT_NORETURN.
6500 2014-02-19 Tom Tromey <tromey@redhat.com>
6502 * target-delegates.c: Rebuild.
6503 * target.c (update_current_target): Don't inherit or default
6505 * target.h (struct target_ops) <to_stop>: Use
6506 TARGET_DEFAULT_IGNORE.
6508 2014-02-19 Tom Tromey <tromey@redhat.com>
6510 * target-delegates.c: Rebuild.
6511 * target.c (update_current_target): Don't inherit or default
6512 to_can_run_breakpoint_commands.
6513 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6514 Use TARGET_DEFAULT_RETURN.
6516 2014-02-19 Tom Tromey <tromey@redhat.com>
6518 * target-delegates.c: Rebuild.
6519 * target.c (update_current_target): Don't inherit or default
6520 to_supports_evaluation_of_breakpoint_conditions.
6521 * target.h (struct target_ops)
6522 <to_supports_evaluation_of_breakpoint_conditions>: Use
6523 TARGET_DEFAULT_RETURN.
6525 2014-02-19 Tom Tromey <tromey@redhat.com>
6527 * target-delegates.c: Rebuild.
6528 * target.c (update_current_target): Don't inherit or default
6529 to_augmented_libraries_svr4_read.
6530 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6531 Use TARGET_DEFAULT_RETURN.
6533 2014-02-19 Tom Tromey <tromey@redhat.com>
6535 * target-delegates.c: Rebuild.
6536 * target.c (update_current_target): Don't inherit or default
6538 * target.h (struct target_ops) <to_can_use_agent>: Use
6539 TARGET_DEFAULT_RETURN.
6541 2014-02-19 Tom Tromey <tromey@redhat.com>
6543 * target-delegates.c: Rebuild.
6544 * target.c (update_current_target): Don't inherit or default
6546 * target.h (struct target_ops) <to_use_agent>: Use
6547 TARGET_DEFAULT_NORETURN.
6549 2014-02-19 Tom Tromey <tromey@redhat.com>
6551 * target-delegates.c: Rebuild.
6552 * target.c (update_current_target): Don't inherit or default
6554 (return_null): Remove.
6555 * target.h (struct target_ops) <to_traceframe_info>: Use
6556 TARGET_DEFAULT_RETURN.
6558 2014-02-19 Tom Tromey <tromey@redhat.com>
6560 * target-delegates.c: Rebuild.
6561 * target.c (update_current_target): Don't inherit or default
6562 to_static_tracepoint_markers_by_strid.
6563 * target.h (struct target_ops)
6564 <to_static_tracepoint_markers_by_strid>: Use
6565 TARGET_DEFAULT_NORETURN.
6567 2014-02-19 Tom Tromey <tromey@redhat.com>
6569 * target-delegates.c: Rebuild.
6570 * target.c (update_current_target): Don't inherit or default
6571 to_static_tracepoint_marker_at.
6572 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6573 Use TARGET_DEFAULT_RETURN.
6575 2014-02-19 Tom Tromey <tromey@redhat.com>
6577 * target-delegates.c: Rebuild.
6578 * target.c (update_current_target): Don't inherit or default
6580 * target.h (struct target_ops) <to_set_permissions>: Use
6581 TARGET_DEFAULT_IGNORE.
6583 2014-02-19 Tom Tromey <tromey@redhat.com>
6585 * target-delegates.c: Rebuild.
6586 * target.c (update_current_target): Don't inherit or default
6588 * target.h (struct target_ops) <to_get_tib_address>: Use
6589 TARGET_DEFAULT_NORETURN.
6591 2014-02-19 Tom Tromey <tromey@redhat.com>
6593 * target-delegates.c: Rebuild.
6594 * target.c (update_current_target): Don't inherit or default
6596 * target.h (struct target_ops) <to_set_trace_notes>: Use
6597 TARGET_DEFAULT_RETURN.
6599 2014-02-19 Tom Tromey <tromey@redhat.com>
6601 * target-delegates.c: Rebuild.
6602 * target.c (update_current_target): Don't initialize
6603 to_set_trace_buffer_size.
6604 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6605 TARGET_DEFAULT_IGNORE.
6607 2014-02-19 Tom Tromey <tromey@redhat.com>
6609 * target-delegates.c: Rebuild.
6610 * target.c (update_current_target): Don't inherit or default
6611 to_set_circular_trace_buffer.
6612 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6613 TARGET_DEFAULT_IGNORE.
6615 2014-02-19 Tom Tromey <tromey@redhat.com>
6617 * target-delegates.c: Rebuild.
6618 * target.c (update_current_target): Don't inherit or default
6619 to_set_disconnected_tracing.
6620 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6621 TARGET_DEFAULT_IGNORE.
6623 2014-02-19 Tom Tromey <tromey@redhat.com>
6625 * target-delegates.c: Rebuild.
6626 * target.c (update_current_target): Don't inherit or default
6627 to_get_min_fast_tracepoint_insn_len.
6628 (return_minus_one): Remove.
6629 * target.h (struct target_ops)
6630 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6632 2014-02-19 Tom Tromey <tromey@redhat.com>
6634 * target-delegates.c: Rebuild.
6635 * target.c (update_current_target): Don't inherit or default
6636 to_get_raw_trace_data.
6637 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6638 TARGET_DEFAULT_NORETURN.
6640 2014-02-19 Tom Tromey <tromey@redhat.com>
6642 * target-delegates.c: Rebuild.
6643 * target.c (update_current_target): Don't inherit or default
6644 to_upload_trace_state_variables.
6645 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6646 Use TARGET_DEFAULT_RETURN.
6648 2014-02-19 Tom Tromey <tromey@redhat.com>
6650 * target-delegates.c: Rebuild.
6651 * target.c (update_current_target): Don't inherit or default
6652 to_upload_tracepoints.
6653 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6654 TARGET_DEFAULT_RETURN.
6656 2014-02-19 Tom Tromey <tromey@redhat.com>
6658 * target-delegates.c: Rebuild.
6659 * target.c (update_current_target): Don't inherit or default
6661 * target.h (struct target_ops) <to_save_trace_data>: Use
6662 TARGET_DEFAULT_NORETURN.
6664 2014-02-19 Tom Tromey <tromey@redhat.com>
6666 * target-delegates.c: Rebuild.
6667 * target.c (update_current_target): Don't inherit or default
6668 to_get_trace_state_variable_value.
6669 * target.h (struct target_ops)
6670 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6672 2014-02-19 Tom Tromey <tromey@redhat.com>
6674 * target-delegates.c: Rebuild.
6675 * target.c (update_current_target): Don't inherit or default
6677 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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
6684 * target.h (struct target_ops) <to_trace_stop>: Use
6685 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
6692 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6693 TARGET_DEFAULT_NORETURN.
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_trace_status.
6700 * target.h (struct target_ops) <to_get_trace_status>: Use
6701 TARGET_DEFAULT_RETURN.
6703 2014-02-19 Tom Tromey <tromey@redhat.com>
6705 * target-delegates.c: Rebuild.
6706 * target.c (update_current_target): Don't inherit or default
6708 * target.h (struct target_ops) <to_trace_start>: Use
6709 TARGET_DEFAULT_NORETURN.
6711 2014-02-19 Tom Tromey <tromey@redhat.com>
6713 * target-delegates.c: Rebuild.
6714 * target.c (update_current_target): Don't inherit or default
6715 to_trace_set_readonly_regions.
6716 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6717 Use TARGET_DEFAULT_NORETURN.
6719 2014-02-19 Tom Tromey <tromey@redhat.com>
6721 * target-delegates.c: Rebuild.
6722 * target.c (update_current_target): Don't inherit or default
6723 to_disable_tracepoint.
6724 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6725 TARGET_DEFAULT_NORETURN.
6727 2014-02-19 Tom Tromey <tromey@redhat.com>
6729 * target-delegates.c: Rebuild.
6730 * target.c (update_current_target): Don't inherit or default
6731 to_enable_tracepoint.
6732 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6733 TARGET_DEFAULT_NORETURN.
6735 2014-02-19 Tom Tromey <tromey@redhat.com>
6737 * target-delegates.c: Rebuild.
6738 * target.c (update_current_target): Don't inherit or default
6739 to_download_trace_state_variable.
6740 * target.h (struct target_ops) <to_download_trace_state_variable>:
6741 Use TARGET_DEFAULT_NORETURN.
6743 2014-02-19 Tom Tromey <tromey@redhat.com>
6745 * target-delegates.c: Rebuild.
6746 * target.c (update_current_target): Don't inherit or default
6747 to_can_download_tracepoint.
6748 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6749 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
6755 to_download_tracepoint.
6756 * target.h (struct target_ops) <to_download_tracepoint>: 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
6764 * target.h (struct target_ops) <to_trace_init>: Use
6765 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
6772 * target.h (struct target_ops) <to_supports_string_tracing>: 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
6779 to_supports_enable_disable_tracepoint.
6780 * target.h (struct target_ops)
6781 <to_supports_enable_disable_tracepoint>: Use
6782 TARGET_DEFAULT_RETURN.
6784 2014-02-19 Tom Tromey <tromey@redhat.com>
6786 * target-delegates.c: Rebuild.
6787 * target.c (update_current_target): Don't inherit or default
6788 to_supports_multi_process.
6789 * target.h (struct target_ops) <to_supports_multi_process>: Use
6790 TARGET_DEFAULT_RETURN.
6792 2014-02-19 Tom Tromey <tromey@redhat.com>
6794 * target-delegates.c: Rebuild.
6795 * target.c (update_current_target): Don't inherit or default
6796 to_get_ada_task_ptid.
6797 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6798 TARGET_DEFAULT_FUNC.
6800 2014-02-19 Tom Tromey <tromey@redhat.com>
6802 * target-delegates.c: Rebuild.
6803 * target.c (update_current_target): Don't inherit or default
6804 to_thread_architecture.
6805 * target.h (struct target_ops) <to_thread_architecture>: Use
6806 TARGET_DEFAULT_FUNC.
6808 2014-02-19 Tom Tromey <tromey@redhat.com>
6810 * target-delegates.c: Rebuild.
6811 * target.c (update_current_target): Don't inherit or default
6812 to_execution_direction.
6813 * target.h (struct target_ops) <to_execution_direction>: Use
6814 TARGET_DEFAULT_FUNC.
6816 2014-02-19 Tom Tromey <tromey@redhat.com>
6818 * target-delegates.c: Rebuild.
6819 * target.c (update_current_target): Don't inherit or default
6820 to_can_execute_reverse.
6821 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6822 TARGET_DEFAULT_RETURN.
6823 (target_can_execute_reverse): Unconditionally delegate.
6825 2014-02-19 Tom Tromey <tromey@redhat.com>
6827 * target-delegates.c: Rebuild.
6828 * target.c (update_current_target): Don't inherit or default
6830 (dummy_goto_bookmark): Remove.
6831 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6832 * target.h (struct target_ops) <to_goto_bookmark>: Use
6833 TARGET_DEFAULT_NORETURN.
6835 2014-02-19 Tom Tromey <tromey@redhat.com>
6837 * target-delegates.c: Rebuild.
6838 * target.c (update_current_target): Don't inherit or default
6840 (dummy_get_bookmark): Remove.
6841 (init_dummy_target): Don't inherit or default to_get_bookmark.
6842 * target.h (struct target_ops) <to_get_bookmark>: Use
6843 TARGET_DEFAULT_NORETURN
6845 2014-02-19 Tom Tromey <tromey@redhat.com>
6847 * target-delegates.c: Rebuild.
6848 * target.c (update_current_target): Don't inherit or default
6849 to_make_corefile_notes.
6850 (init_dummy_target): Don't initialize to_make_corefile_notes.
6851 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6852 TARGET_DEFAULT_FUNC.
6854 2014-02-19 Tom Tromey <tromey@redhat.com>
6856 * target-delegates.c: Rebuild.
6857 * target.c (update_current_target): Don't inherit or default
6858 to_find_memory_regions.
6859 (init_dummy_target): Don't initialize to_find_memory_regions.
6860 * target.h (struct target_ops) <to_find_memory_regions>: Use
6861 TARGET_DEFAULT_FUNC.
6863 2014-02-19 Tom Tromey <tromey@redhat.com>
6865 * target-delegates.c: Rebuild.
6866 * target.c (update_current_target): Don't inherit or default
6868 * target.h (struct target_ops) <to_log_command>: Use
6869 TARGET_DEFAULT_IGNORE.
6870 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
6877 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6878 TARGET_DEFAULT_RETURN.
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
6885 (target_thread_name): Unconditionally delegate.
6886 * target.h (struct target_ops) <to_thread_name>: Use
6887 TARGET_DEFAULT_RETURN.
6889 2014-02-19 Tom Tromey <tromey@redhat.com>
6891 * target-delegates.c: Rebuild.
6892 * target.c (update_current_target): Don't inherit or default
6893 to_extra_thread_info.
6894 * target.h (struct target_ops) <to_extra_thread_info>: Use
6895 TARGET_DEFAULT_RETURN.
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 * target.h (struct target_ops) <to_has_exited>: Use
6903 TARGET_DEFAULT_RETURN..
6905 2014-02-19 Tom Tromey <tromey@redhat.com>
6907 * target-delegates.c: Rebuild.
6908 * target.c (update_current_target): Don't inherit or default
6909 to_set_syscall_catchpoint.
6910 (return_one): Remove.
6911 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6912 TARGET_DEFAULT_RETURN.
6914 2014-02-19 Tom Tromey <tromey@redhat.com>
6916 * target-delegates.c: Rebuild.
6917 * target.c (update_current_target): Don't inherit or default
6918 to_insert_exec_catchpoint.
6919 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6920 TARGET_DEFAULT_RETURN.
6922 2014-01-08 Tom Tromey <tromey@redhat.com>
6924 * target-delegates.c: Rebuild.
6925 * target.c (update_current_target): Don't inherit or default
6926 to_insert_exec_catchpoint.
6927 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6928 TARGET_DEFAULT_RETURN.
6930 2014-02-19 Tom Tromey <tromey@redhat.com>
6932 * target-delegates.c: Rebuild.
6933 * target.c (update_current_target): Don't inherit or default
6934 to_remove_vfork_catchpoint.
6935 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6936 TARGET_DEFAULT_RETURN.
6938 2014-02-19 Tom Tromey <tromey@redhat.com>
6940 * target-delegates.c: Rebuild.
6941 * target.c (update_current_target): Don't inherit or default
6942 to_insert_vfork_catchpoint.
6943 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6944 TARGET_DEFAULT_RETURN.
6946 2014-02-19 Tom Tromey <tromey@redhat.com>
6948 * target-delegates.c: Rebuild.
6949 * target.c (update_current_target): Don't inherit or default
6950 to_remove_fork_catchpoint.
6951 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6952 TARGET_DEFAULT_RETURN.
6954 2014-02-19 Tom Tromey <tromey@redhat.com>
6956 * target-delegates.c: Rebuild.
6957 * target.c (update_current_target): Don't inherit or default
6958 to_insert_fork_catchpoint.
6959 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6960 TARGET_DEFAULT_RETURN.
6962 2014-02-19 Tom Tromey <tromey@redhat.com>
6964 * target-delegates.c: Rebuild.
6965 * target.c (update_current_target): Don't inherit or default
6966 to_post_startup_inferior.
6967 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6968 TARGET_DEFAULT_IGNORE.
6970 2014-02-19 Tom Tromey <tromey@redhat.com>
6972 * target-delegates.c: Rebuild.
6973 * target.c (update_current_target): Don't inherit or default
6975 * target.h (struct target_ops) <to_load>: Use
6976 TARGET_DEFAULT_NORETURN.
6978 2014-02-19 Tom Tromey <tromey@redhat.com>
6980 * target-delegates.c: Rebuild.
6981 * target.c (update_current_target): Don't inherit or default
6983 * target.h (struct target_ops) <to_terminal_info>: Use
6984 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
6991 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6992 TARGET_DEFAULT_IGNORE.
6994 2014-02-19 Tom Tromey <tromey@redhat.com>
6996 * target-delegates.c: Rebuild.
6997 * target.c (update_current_target): Don't inherit or default
6999 * target.h (struct target_ops) <to_terminal_ours>: Use
7000 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
7007 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7008 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
7015 * target.h (struct target_ops) <to_terminal_inferior>: Use
7016 TARGET_DEFAULT_IGNORE.
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
7023 * target.h (struct target_ops) <to_terminal_init>: Use
7024 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
7031 * target.h (struct target_ops)
7032 <to_can_accel_watchpoint_condition>: Use 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_region_ok_for_hw_watchpoint.
7039 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7040 Use TARGET_DEFAULT_FUNC.
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
7046 to_watchpoint_addr_within_range.
7047 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7048 Use TARGET_DEFAULT_FUNC.
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
7054 to_remove_watchpoint.
7055 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7056 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
7063 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7064 TARGET_DEFAULT_RETURN.
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
7070 to_remove_hw_breakpoint.
7071 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7072 TARGET_DEFAULT_RETURN.
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_insert_hw_breakpoint.
7079 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7080 TARGET_DEFAULT_RETURN.
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_can_use_hw_breakpoint.
7087 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7088 TARGET_DEFAULT_RETURN.
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_files_info>: 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
7103 * target.h (struct target_ops) <to_store>: Use
7104 TARGET_DEFAULT_NORETURN.
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
7111 * target.h (struct target_ops) <to_post_attach>: Use
7112 TARGET_DEFAULT_IGNORE.
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
7119 (default_rcmd): New function.
7120 (do_monitor_command): Unconditionally delegate.
7121 * target.h (struct target_ops) <to_rmcd>: Use
7122 TARGET_DEFAULT_FUNC.
7124 2014-02-19 Tom Tromey <tromey@redhat.com>
7126 * target-delegates.c: Rebuild.
7127 * target.c (init_dummy_target): Don't initialize to_attach.
7128 (target_attach): Unconditionally delegate.
7129 * target.h (struct target_ops) <to_attach>: Use
7130 TARGET_DEFAULT_FUNC.
7132 2014-02-19 Tom Tromey <tromey@redhat.com>
7134 * target-delegates.c: Rebuild.
7135 * target.c (target_detach): Unconditionally delegate.
7136 (init_dummy_target): Don't initialize to_detach.
7137 * target.h (struct target_ops) <to_detach>: Use
7138 TARGET_DEFAULT_IGNORE.
7140 2014-02-19 Tom Tromey <tromey@redhat.com>
7142 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7144 (target_augmented_libraries_svr4_read): Add argument.
7145 * target.c (update_current_target): Update.
7146 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7149 2014-02-19 Tom Tromey <tromey@redhat.com>
7151 * target.h (struct target_ops) <to_call_history_range>: Add
7153 * target.c (target_call_history_range): Add argument.
7154 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7156 (record_btrace_call_history_from): Update.
7158 2014-02-19 Tom Tromey <tromey@redhat.com>
7160 * target.h (struct target_ops) <to_call_history_from>: Add
7162 * target.c (target_call_history_from): Add argument.
7163 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7166 2014-02-19 Tom Tromey <tromey@redhat.com>
7168 * target.h (struct target_ops) <to_call_history>: Add argument.
7169 * target.c (target_call_history): Add argument.
7170 * record-btrace.c (record_btrace_call_history): Add 'self'
7173 2014-02-19 Tom Tromey <tromey@redhat.com>
7175 * target.h (struct target_ops) <to_insn_history_range>: Add
7177 * target.c (target_insn_history_range): Add argument.
7178 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7180 (record_btrace_insn_history_from): Update.
7182 2014-02-19 Tom Tromey <tromey@redhat.com>
7184 * target.h (struct target_ops) <to_insn_history_from>: Add
7186 * target.c (target_insn_history_from): Add argument.
7187 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7190 2014-02-19 Tom Tromey <tromey@redhat.com>
7192 * target.h (struct target_ops) <to_insn_history>: Add argument.
7193 * target.c (target_insn_history): Add argument.
7194 * record-btrace.c (record_btrace_insn_history): Add 'self'
7197 2014-02-19 Tom Tromey <tromey@redhat.com>
7199 * target.h (struct target_ops) <to_goto_record>: Add argument.
7200 * target.c (target_goto_record): Add argument.
7201 * record-full.c (record_full_goto): Add 'self' argument.
7202 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7204 2014-02-19 Tom Tromey <tromey@redhat.com>
7206 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7207 * target.c (target_goto_record_end): Add argument.
7208 * record-full.c (record_full_goto_end): Add 'self' argument.
7209 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7211 2014-02-19 Tom Tromey <tromey@redhat.com>
7213 * target.h (struct target_ops) <to_goto_record_begin>: Add
7215 * target.c (target_goto_record_begin): Add argument.
7216 * record-full.c (record_full_goto_begin): Add 'self' argument.
7217 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7220 2014-02-19 Tom Tromey <tromey@redhat.com>
7222 * target.h (struct target_ops) <to_record_is_replaying>: Add
7224 * target.c (target_record_is_replaying): Add argument.
7225 * record-full.c (record_full_is_replaying): Add 'self' argument.
7226 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7228 (record_btrace_xfer_partial, record_btrace_store_registers)
7229 (record_btrace_prepare_to_store, record_btrace_resume)
7230 (record_btrace_wait, record_btrace_decr_pc_after_break)
7231 (record_btrace_find_new_threads, record_btrace_thread_alive):
7234 2014-02-19 Tom Tromey <tromey@redhat.com>
7236 * target.h (struct target_ops) <to_delete_record>: Add argument.
7237 * target.c (target_delete_record): Add argument.
7238 * record-full.c (record_full_delete): Add 'self' argument.
7240 2014-02-19 Tom Tromey <tromey@redhat.com>
7242 * target.h (struct target_ops) <to_save_record>: Add argument.
7243 * target.c (target_save_record): Add argument.
7244 * record-full.c (record_full_save): Add 'self' argument.
7245 (record_full_save): Add 'self' argument.
7247 2014-02-19 Tom Tromey <tromey@redhat.com>
7249 * target.h (struct target_ops) <to_info_record>: Add argument.
7250 * target.c (target_info_record): Add argument.
7251 * record.c (info_record_command): Add argument.
7252 * record-full.c (record_full_info): Add 'self' argument.
7253 * record-btrace.c (record_btrace_info): Add 'self' argument.
7255 2014-02-19 Tom Tromey <tromey@redhat.com>
7257 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7258 * target.c (target_stop_recording): Add argument.
7259 * record.c (record_stop): Add argument.
7260 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7263 2014-02-19 Tom Tromey <tromey@redhat.com>
7265 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7266 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7267 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7269 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7270 (_initialize_amd64_linux_nat): Use it.
7271 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7272 (_initialize_i386_linux_nat): Use it.
7274 2014-02-19 Tom Tromey <tromey@redhat.com>
7276 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7277 * target.c (target_teardown_btrace): Add argument.
7278 * remote.c (remote_teardown_btrace): Add 'self' argument.
7279 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7281 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7284 2014-02-19 Tom Tromey <tromey@redhat.com>
7286 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7287 * target.c (target_disable_btrace): Add argument.
7288 * remote.c (remote_disable_btrace): Add 'self' argument.
7289 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7291 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7294 2014-02-19 Tom Tromey <tromey@redhat.com>
7296 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7297 * target.c (target_enable_btrace): Add argument.
7298 * remote.c (remote_enable_btrace): Add 'self' argument.
7299 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7301 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7304 2014-02-19 Tom Tromey <tromey@redhat.com>
7306 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7307 (target_can_use_agent): Add argument.
7308 * target.c (update_current_target): Update.
7309 * remote.c (remote_can_use_agent): Add 'self' argument.
7310 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7312 2014-02-19 Tom Tromey <tromey@redhat.com>
7314 * target.h (struct target_ops) <to_use_agent>: Add argument.
7315 (target_use_agent): Add argument.
7316 * target.c (update_current_target): Update.
7317 * remote.c (remote_use_agent): Add 'self' argument.
7318 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7320 2014-02-19 Tom Tromey <tromey@redhat.com>
7322 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7323 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7324 (target_traceframe_info): Add argument.
7325 * target.c (update_current_target): Update.
7326 * remote.c (remote_traceframe_info): Add 'self' argument.
7327 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7329 2014-02-19 Tom Tromey <tromey@redhat.com>
7331 * target.h (target_static_tracepoint_markers_by_strid): Add
7333 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7335 * target.c (update_current_target): Update.
7336 * remote.c (struct target_ops)
7337 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7338 * linux-nat.c (struct target_ops)
7339 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7341 2014-02-19 Tom Tromey <tromey@redhat.com>
7343 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7345 (target_static_tracepoint_marker_at): Add argument.
7346 * target.c (update_current_target): Update.
7347 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7350 2014-02-19 Tom Tromey <tromey@redhat.com>
7352 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7353 (target_set_permissions): Add argument.
7354 * target.c (update_current_target): Update.
7355 * remote.c (remote_set_permissions): Add 'self' argument.
7356 (remote_start_remote): Update.
7358 2014-02-19 Tom Tromey <tromey@redhat.com>
7360 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7361 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7362 (target_get_tib_address): Add argument.
7363 * target.c (update_current_target): Update.
7364 * remote.c (remote_get_tib_address): Add 'self' argument.
7366 2014-02-19 Tom Tromey <tromey@redhat.com>
7368 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7369 (target_set_trace_notes): Add argument.
7370 * target.c (update_current_target): Update.
7371 * remote.c (remote_set_trace_notes): Add 'self' argument.
7373 2014-02-19 Tom Tromey <tromey@redhat.com>
7375 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7377 (target_set_trace_buffer_size): Add argument.
7378 * target.c (update_current_target): Update.
7379 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7381 2014-02-19 Tom Tromey <tromey@redhat.com>
7383 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7385 (target_set_circular_trace_buffer): Add argument.
7386 * target.c (update_current_target): Update.
7387 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7390 2014-02-19 Tom Tromey <tromey@redhat.com>
7392 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7394 (target_set_disconnected_tracing): Add argument.
7395 * target.c (update_current_target): Update.
7396 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7398 2014-02-19 Tom Tromey <tromey@redhat.com>
7400 * target.h (struct target_ops)
7401 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7402 (target_get_min_fast_tracepoint_insn_len): Add argument.
7403 * target.c (update_current_target): Update.
7404 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7407 2014-02-19 Tom Tromey <tromey@redhat.com>
7409 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7411 (target_get_raw_trace_data): Add argument.
7412 * target.c (update_current_target): Update.
7413 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7415 2014-02-19 Tom Tromey <tromey@redhat.com>
7417 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7419 (target_upload_trace_state_variables): Add argument.
7420 * target.c (update_current_target): Update.
7421 * remote.c (remote_upload_trace_state_variables): Add 'self'
7423 (remote_start_remote): Update.
7425 2014-02-19 Tom Tromey <tromey@redhat.com>
7427 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7429 (target_upload_tracepoints): Add argument.
7430 * target.c (update_current_target): Update.
7431 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7432 (remote_start_remote): Update.
7434 2014-02-19 Tom Tromey <tromey@redhat.com>
7436 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7437 (target_save_trace_data): Add argument.
7438 * target.c (update_current_target): Update.
7439 * remote.c (remote_save_trace_data): Add 'self' argument.
7441 2014-02-19 Tom Tromey <tromey@redhat.com>
7443 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7445 * target.h (struct target_ops)
7446 <to_get_trace_state_variable_value>: Add argument.
7447 (target_get_trace_state_variable_value): Add argument.
7448 * target.c (update_current_target): Update.
7449 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7451 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7453 2014-02-19 Tom Tromey <tromey@redhat.com>
7455 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7456 * target.h (struct target_ops) <to_trace_find>: Add argument.
7457 (target_trace_find): Add argument.
7458 * target.c (update_current_target): Update.
7459 * remote.c (remote_trace_find): Add 'self' argument.
7460 * ctf.c (ctf_trace_find): Add 'self' argument.
7462 2014-02-19 Tom Tromey <tromey@redhat.com>
7464 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7465 (target_trace_stop): Add argument.
7466 * target.c (update_current_target): Update.
7467 * remote.c (remote_trace_stop): Add 'self' argument.
7469 2014-02-19 Tom Tromey <tromey@redhat.com>
7471 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7472 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7474 (target_get_tracepoint_status): Add argument.
7475 * target.c (update_current_target): Update.
7476 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7478 2014-02-19 Tom Tromey <tromey@redhat.com>
7480 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7481 * target.h (struct target_ops) <to_get_trace_status>: Add
7483 (target_get_trace_status): Add argument.
7484 * target.c (update_current_target): Update.
7485 * remote.c (remote_get_trace_status): Add 'self' argument.
7486 (remote_start_remote, remote_can_download_tracepoint): Update.
7487 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7489 2014-02-19 Tom Tromey <tromey@redhat.com>
7491 * target.h (struct target_ops) <to_trace_start>: Add argument.
7492 (target_trace_start): Add argument.
7493 * target.c (update_current_target): Update.
7494 * remote.c (remote_trace_start): Add 'self' argument.
7496 2014-02-19 Tom Tromey <tromey@redhat.com>
7498 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7500 (target_trace_set_readonly_regions): Add argument.
7501 * target.c (update_current_target): Update.
7502 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7505 2014-02-19 Tom Tromey <tromey@redhat.com>
7507 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7509 (target_disable_tracepoint): Add argument.
7510 * target.c (update_current_target): Update.
7511 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7513 2014-02-19 Tom Tromey <tromey@redhat.com>
7515 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7517 (target_enable_tracepoint): Add argument.
7518 * target.c (update_current_target): Update.
7519 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7521 2014-02-19 Tom Tromey <tromey@redhat.com>
7523 * target.h (struct target_ops) <to_download_trace_state_variable>:
7525 (target_download_trace_state_variable): Add argument.
7526 * target.c (update_current_target): Update.
7527 * remote.c (remote_download_trace_state_variable): Add 'self'
7530 2014-02-19 Tom Tromey <tromey@redhat.com>
7532 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7534 (target_can_download_tracepoint): Add argument.
7535 * target.c (update_current_target): Update.
7536 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7538 2014-02-19 Tom Tromey <tromey@redhat.com>
7540 * target.h (struct target_ops) <to_download_tracepoint>: Add
7542 (target_download_tracepoint): Add argument.
7543 * target.c (update_current_target): Update.
7544 * remote.c (remote_download_tracepoint): Add 'self' argument.
7546 2014-02-19 Tom Tromey <tromey@redhat.com>
7548 * target.h (struct target_ops) <to_trace_init>: Add argument.
7549 (target_trace_init): Add argument.
7550 * target.c (update_current_target): Update.
7551 * remote.c (remote_trace_init): Add 'self' argument.
7553 2014-02-19 Tom Tromey <tromey@redhat.com>
7555 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7556 * target.c (target_fileio_readlink): Add argument.
7557 * remote.c (remote_hostio_readlink): Add 'self' argument.
7558 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7560 2014-02-19 Tom Tromey <tromey@redhat.com>
7562 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7563 * target.c (target_fileio_unlink): Add argument.
7564 * remote.c (remote_hostio_unlink): Add 'self' argument.
7565 (remote_file_delete): Update.
7566 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7568 2014-02-19 Tom Tromey <tromey@redhat.com>
7570 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7571 * target.c (target_fileio_close): Add argument.
7572 * remote.c (remote_hostio_close): Add 'self' argument.
7573 (remote_hostio_close_cleanup): Update.
7574 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7576 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7578 2014-02-19 Tom Tromey <tromey@redhat.com>
7580 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7581 * target.c (target_fileio_pread): Add argument.
7582 * remote.c (remote_hostio_pread): Add 'self' argument.
7583 (remote_bfd_iovec_pread, remote_file_get): Update.
7584 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7586 2014-02-19 Tom Tromey <tromey@redhat.com>
7588 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7589 * target.c (target_fileio_pwrite): Add argument.
7590 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7591 (remote_file_put): Update.
7592 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7594 2014-02-19 Tom Tromey <tromey@redhat.com>
7596 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7597 * target.c (target_fileio_open): Add argument.
7598 * remote.c (remote_hostio_open): Add 'self' argument.
7599 (remote_bfd_iovec_open): Add 'self' argument.
7600 (remote_file_put): Add 'self' argument.
7601 (remote_file_get): Add 'self' argument.
7602 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7604 2014-02-19 Tom Tromey <tromey@redhat.com>
7606 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7608 (target_can_run_breakpoint_commands): Add argument.
7609 * target.c (update_current_target): Update.
7610 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7612 (remote_insert_breakpoint): Add 'self' argument.
7613 (remote_insert_hw_breakpoint): Add 'self' argument.
7614 (remote_can_run_breakpoint_commands): Add 'self' argument.
7616 2014-02-19 Tom Tromey <tromey@redhat.com>
7618 * target.h (struct target_ops)
7619 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7620 (target_supports_evaluation_of_breakpoint_conditions): Add
7622 * target.c (update_current_target): Update.
7623 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7625 (remote_insert_breakpoint): Add 'self' argument.
7626 (remote_insert_hw_breakpoint): Add 'self' argument.
7627 (remote_supports_cond_breakpoints): Add 'self' argument.
7629 2014-02-19 Tom Tromey <tromey@redhat.com>
7631 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7633 (target_supports_string_tracing): Add argument.
7634 * target.c (update_current_target): Update.
7635 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7637 2014-02-19 Tom Tromey <tromey@redhat.com>
7639 * target.h (struct target_ops)
7640 <to_supports_disable_randomization>: Add argument.
7641 * target.c (find_default_supports_disable_randomization): Add
7643 (target_supports_disable_randomization): Add argument.
7644 (find_default_supports_disable_randomization): Add 'self'
7646 * remote.c (extended_remote_supports_disable_randomization): Add
7648 (remote_supports_disable_randomization): Add 'self' argument.
7649 (extended_remote_create_inferior): Update.
7650 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7653 2014-02-19 Tom Tromey <tromey@redhat.com>
7655 * target.h (struct target_ops)
7656 <to_supports_enable_disable_tracepoint>: Add argument.
7657 (target_supports_enable_disable_tracepoint): Add argument.
7658 * target.c (update_current_target): Update.
7659 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7662 2014-02-19 Tom Tromey <tromey@redhat.com>
7664 * target.h (struct target_ops) <to_supports_multi_process>: Add
7666 (target_supports_multi_process): Add argument.
7667 * target.c (update_current_target): Update.
7668 * remote.c (remote_supports_multi_process): Add 'self' argument.
7669 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7671 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7674 2014-02-19 Tom Tromey <tromey@redhat.com>
7676 * target.h (struct target_ops) <to_execution_direction>: Add
7678 (target_execution_direction): Add argument.
7679 * target.c (default_execution_direction): Add 'self' argument.
7680 * record-full.c (record_full_execution_direction): Add 'self'
7683 2014-02-19 Tom Tromey <tromey@redhat.com>
7685 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7687 (target_can_execute_reverse): Add argument.
7688 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7689 * record-full.c (record_full_can_execute_reverse): Add 'self'
7691 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7694 2014-02-19 Tom Tromey <tromey@redhat.com>
7696 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7697 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7699 (target_get_ada_task_ptid): Add argument.
7700 * target.c (update_current_target): Update.
7701 (default_get_ada_task_ptid): Add 'self' argument.
7702 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7703 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7704 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7706 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7708 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7710 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7712 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7713 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7716 2014-02-19 Tom Tromey <tromey@redhat.com>
7718 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7719 (target_goto_bookmark): Add argument.
7720 * target.c (dummy_goto_bookmark): Add 'self' argument.
7721 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7723 2014-02-19 Tom Tromey <tromey@redhat.com>
7725 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7726 (target_get_bookmark): Add argument.
7727 * target.c (dummy_get_bookmark): Add 'self' argument.
7728 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7730 2014-02-19 Tom Tromey <tromey@redhat.com>
7732 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7734 (target_make_corefile_notes): Add argument.
7735 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7736 * procfs.c (procfs_make_note_section): Add 'self' argument.
7737 (procfs_make_note_section): Add 'self' argument.
7738 (procfs_make_note_section): Add 'self' argument.
7739 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7741 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7742 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7743 * exec.c (exec_make_note_section): Add 'self' argument.
7744 (exec_make_note_section): Add 'self' argument.
7746 2014-02-19 Tom Tromey <tromey@redhat.com>
7748 * target.h (struct target_ops) <to_find_memory_regions>: Add
7750 (target_find_memory_regions): Add argument.
7751 * target.c (dummy_find_memory_regions): Add 'self' argument.
7752 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7753 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7754 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7755 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7756 * exec. (exec_do_find_memory_regions): New global.
7757 (exec_set_find_memory_regions): Rewrite.
7758 (exec_find_memory_regions): New function.
7759 (init_exec_ops): Use exec_find_memory_regions.
7761 2014-02-19 Tom Tromey <tromey@redhat.com>
7763 * target.h (struct target_ops) <to_supports_non_stop>: Add
7765 * target.c (find_default_supports_non_stop): Add argument.
7766 (target_supports_non_stop): Add argument.
7767 (find_default_supports_non_stop): Add 'self' argument.
7768 * remote.c (remote_supports_non_stop): Add 'self' argument.
7769 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7771 2014-02-19 Tom Tromey <tromey@redhat.com>
7773 * target.h (struct target_ops) <to_log_command>: Add argument.
7774 (target_log_command): Add argument.
7775 * serial.h (serial_log_command): Add 'self' argument.
7776 * serial.c (serial_log_command): Add 'self' argument.
7778 2014-02-19 Tom Tromey <tromey@redhat.com>
7780 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7781 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7783 (target_pid_to_exec_file): Add argument.
7784 * target.c (debug_to_pid_to_exec_file): Add argument.
7785 (update_current_target): Update.
7786 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7787 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7788 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7789 (linux_handle_extended_wait): Update.
7790 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7791 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7792 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7793 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7795 2014-02-19 Tom Tromey <tromey@redhat.com>
7797 * target.h (struct target_ops) <to_rcmd>: Add argument.
7798 (target_rcmd): Add argument.
7799 * target.c (debug_to_rcmd): Add argument.
7800 (update_current_target, do_monitor_command): Update.
7801 * remote.c (remote_rcmd): Add 'self' argument.
7802 * monitor.c (monitor_rcmd): Add 'self' argument.
7804 2014-02-19 Tom Tromey <tromey@redhat.com>
7806 * windows-nat.c (windows_stop): Add 'self' argument.
7807 * target.h (struct target_ops) <to_stop>: Add argument.
7808 * target.c (target_stop): Add argument.
7809 (debug_to_stop): Add argument.
7810 (update_current_target): Update.
7811 * remote.c (remote_stop): Add 'self' argument.
7812 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7813 (gdbsim_cntrl_c): Update.
7814 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7815 * procfs.c (procfs_stop): Add 'self' argument.
7816 * nto-procfs.c (procfs_stop): Add 'self' argument.
7817 * monitor.c (monitor_stop): Add 'self' argument.
7818 (monitor_open): Update.
7819 * linux-nat.c (linux_nat_stop): Add argument.
7820 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7821 * gnu-nat.c (gnu_stop): Add 'self' argument.
7822 * darwin-nat.c (darwin_stop): Add 'self' argument.
7824 2014-02-19 Tom Tromey <tromey@redhat.com>
7826 * target.h (struct target_ops) <to_thread_name>: Add argument.
7827 * target.c (target_thread_name): Add argument.
7828 (update_current_target): Update.
7829 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7831 2014-02-19 Tom Tromey <tromey@redhat.com>
7833 * target.h (struct target_ops) <to_extra_thread_info>: Add
7835 (target_extra_thread_info): Add argument.
7836 * target.c (update_current_target): Update.
7837 * remote.c (remote_threads_extra_info): Add 'self' argument.
7838 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7840 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7841 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7842 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7844 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7846 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7848 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7851 2014-02-19 Tom Tromey <tromey@redhat.com>
7853 * target.h (struct target_ops) <to_program_signals>: Add argument.
7854 * target.c (target_program_signals): Add argument.
7855 * remote.c (remote_program_signals): Add 'self' argument.
7857 2014-02-19 Tom Tromey <tromey@redhat.com>
7859 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7860 * target.c (target_pass_signals): Add argument.
7861 * remote.c (remote_pass_signals): Add 'self' argument.
7862 (remote_start_remote): Update.
7863 * procfs.c (procfs_pass_signals): Add 'self' argument.
7864 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7865 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7866 (linux_nat_create_inferior, linux_nat_attach): Update.
7868 2014-02-19 Tom Tromey <tromey@redhat.com>
7870 * windows-nat.c (windows_can_run): Add 'self' argument.
7871 * target.h (struct target_ops) <to_can_run>: Add argument.
7872 (target_can_run): Add argument.
7873 * target.c (debug_to_can_run): Add argument.
7874 (update_current_target): Update.
7875 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7876 * inf-child.c (inf_child_can_run): Add 'self' argument.
7877 * go32-nat.c (go32_can_run): Add 'self' argument.
7879 2014-02-19 Tom Tromey <tromey@redhat.com>
7881 * target.h (struct target_ops) <to_has_exited>: Add argument.
7882 (target_has_exited): Add argument.
7883 * target.c (debug_to_has_exited): Add argument.
7884 (update_current_target): Update.
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7888 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7890 (target_set_syscall_catchpoint): Add argument.
7891 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7893 * target.c (update_current_target): Update.
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7897 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7899 (target_remove_exec_catchpoint): Add argument.
7900 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7901 (update_current_target): Update.
7902 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7905 2014-02-19 Tom Tromey <tromey@redhat.com>
7907 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7909 (target_insert_exec_catchpoint): Add argument.
7910 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7911 (update_current_target): Update.
7912 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7915 2014-02-19 Tom Tromey <tromey@redhat.com>
7917 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7919 (target_remove_vfork_catchpoint): Add argument.
7920 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7921 (update_current_target): Update.
7922 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7925 2014-02-19 Tom Tromey <tromey@redhat.com>
7927 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7929 (target_insert_vfork_catchpoint): Add argument.
7930 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7931 (update_current_target): Update.
7932 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7935 2014-02-19 Tom Tromey <tromey@redhat.com>
7937 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7939 (target_remove_fork_catchpoint): Add argument.
7940 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7941 (update_current_target): Update.
7942 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7945 2014-02-19 Tom Tromey <tromey@redhat.com>
7947 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7949 (target_insert_fork_catchpoint): Add argument.
7950 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7951 (update_current_target): Update.
7952 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7957 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7959 (target_post_startup_inferior): Add argument.
7960 * target.c (debug_to_post_startup_inferior): Add argument.
7961 (update_current_target): Update.
7962 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7964 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7966 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7968 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7970 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7972 (super_post_startup_inferior): Likewise.
7973 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7975 (super_post_startup_inferior): Likewise.
7976 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7977 Add 'self' argument.
7978 (super_post_startup_inferior): Likewise.
7980 2014-02-19 Tom Tromey <tromey@redhat.com>
7982 * target.h (struct target_ops) <to_load>: Add argument.
7983 * target.c (target_load): Add argument.
7984 (debug_to_load): Add argument.
7985 (update_current_target): Update.
7986 * remote.c (remote_load): Add 'self' argument.
7987 * remote-sim.c (gdbsim_load): Add 'self' argument.
7988 * remote-mips.c (mips_load): Add 'self' argument.
7989 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7990 * monitor.c (monitor_load): Add 'self' argument.
7991 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7993 2014-02-19 Tom Tromey <tromey@redhat.com>
7995 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7996 (target_terminal_info): Add argument.
7997 * target.c (debug_to_terminal_info): Add argument.
7998 (default_terminal_info): Likewise.
7999 * inflow.c (child_terminal_info): Add 'self' argument.
8000 * inferior.h (child_terminal_info): Add 'self' argument.
8001 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8003 2014-02-19 Tom Tromey <tromey@redhat.com>
8005 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8007 (target_terminal_save_ours): Add argument.
8008 * target.c (debug_to_terminal_save_ours): Add argument.
8009 (update_current_target): Update.
8010 * inflow.c (terminal_save_ours): Add 'self' argument.
8011 * inferior.h (terminal_save_ours): Add 'self' argument.
8013 2014-02-19 Tom Tromey <tromey@redhat.com>
8015 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8016 (target_terminal_ours): Add argument.
8017 * target.c (debug_to_terminal_ours): Add argument.
8018 (update_current_target): Update.
8019 * remote.c (remote_terminal_ours): Add 'self' argument.
8020 (remote_close): Update.
8021 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8022 * inflow.c (terminal_ours): Add 'self' argument.
8023 * inferior.h (terminal_ours): Add 'self' argument.
8024 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8026 2014-02-19 Pedro Alves <palves@redhat.com>
8027 Tom Tromey <tromey@redhat.com>
8029 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8031 (target_terminal_ours_for_output): Add argument.
8032 * target.c (debug_to_terminal_ours_for_output): Add argument.
8033 (update_current_target): Update.
8034 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8035 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8036 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8038 2014-02-19 Tom Tromey <tromey@redhat.com>
8040 * target.h (struct target_ops) <to_terminal_inferior>: Add
8042 * target.c (target_terminal_inferior): Add argument.
8043 (update_current_target): Update.
8044 * remote.c (remote_terminal_inferior): Add 'self' argument.
8045 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8046 * inflow.c (terminal_inferior): Add 'self' argument.
8047 * inferior.h (terminal_inferior): Add 'self' argument.
8048 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8049 (go32_terminal_inferior): Add 'self' argument.
8051 2014-02-19 Tom Tromey <tromey@redhat.com>
8053 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8054 (target_terminal_init): Add argument.
8055 * target.c (debug_to_terminal_init): Add argument.
8056 (update_current_target): Update.
8057 * inflow.c (terminal_init_inferior): Add 'self' argument.
8058 * inferior.h (terminal_init_inferior): Add 'self' argument.
8059 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8060 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8062 2014-02-19 Tom Tromey <tromey@redhat.com>
8064 * target.h (struct target_ops)
8065 <to_can_accel_watchpoint_condition>: Add argument.
8066 (target_can_accel_watchpoint_condition): Add argument.
8067 * target.c (debug_to_can_accel_watchpoint_condition): Add
8069 (update_current_target): Update.
8070 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8075 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8077 (target_region_ok_for_hw_watchpoint): Add argument.
8078 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8079 (default_region_ok_for_hw_watchpoint): Add argument.
8080 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8081 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8083 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8085 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8087 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8089 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8091 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8093 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8094 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8096 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8097 Add 'self' argument.
8099 2014-02-19 Tom Tromey <tromey@redhat.com>
8101 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8103 (target_insert_watchpoint): Add argument.
8104 * target.c (debug_to_insert_watchpoint): Add argument.
8105 (update_current_target): Update.
8106 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8107 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8108 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8109 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8110 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8111 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8113 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8114 (procfs_insert_hw_watchpoint): Add 'self' argument.
8115 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8117 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8119 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8121 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8122 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8124 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8127 2014-02-19 Tom Tromey <tromey@redhat.com>
8129 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8131 (target_remove_watchpoint): Add argument.
8132 * target.c (debug_to_remove_watchpoint): Add argument.
8133 (update_current_target): Update.
8134 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8135 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8136 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8137 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8138 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8139 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8141 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8142 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8144 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8146 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8148 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8149 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8151 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8154 2014-02-19 Tom Tromey <tromey@redhat.com>
8156 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8158 (target_remove_hw_breakpoint): Add argument.
8159 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8160 (update_current_target): Update.
8161 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8162 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8164 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8165 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8167 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8172 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8174 (target_insert_hw_breakpoint): Add argument.
8175 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8176 (update_current_target): Update.
8177 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8178 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8180 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8181 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8182 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8184 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8187 2014-02-19 Tom Tromey <tromey@redhat.com>
8189 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8191 (target_can_use_hardware_watchpoint): Add argument.
8192 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8193 (update_current_target): Update.
8194 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8196 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8198 * remote.c (remote_check_watch_resources): Add 'self' argument.
8199 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8200 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8202 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8203 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8205 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8207 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8209 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8211 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8213 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8215 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8216 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8218 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8221 2014-02-19 Tom Tromey <tromey@redhat.com>
8223 * target.h (struct target_ops) <to_post_attach>: Add argument.
8224 (target_post_attach): Add argument.
8225 * target.c (debug_to_post_attach): Add argument.
8226 (update_current_target): Update.
8227 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8228 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8229 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8230 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8231 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8235 * windows-nat.c (windows_close): Add 'self' argument.
8236 * tracepoint.c (tfile_close): Add 'self' argument.
8237 * target.h (struct target_ops) <to_close>: Add argument.
8238 * target.c (target_close): Add argument.
8239 (update_current_target): Update.
8240 * remote.c (remote_close): Add 'self' argument.
8241 * remote-sim.c (gdbsim_close): Add 'self' argument.
8242 * remote-mips.c (mips_close): Add 'self' argument.
8243 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8244 * record-full.c (record_full_close): Add 'self' argument.
8245 * record-btrace.c (record_btrace_close): Add 'self' argument.
8246 * monitor.h (monitor_close): Add 'self' argument.
8247 * monitor.c (monitor_close): Add 'self' argument.
8248 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8249 * linux-nat.c (linux_nat_close): Add argument.
8250 * go32-nat.c (go32_close): Add 'self' argument.
8251 * exec.c (exec_close_1): Add 'self' argument.
8252 * ctf.c (ctf_close): Add 'self' argument.
8253 * corelow.c (core_close): Add 'self' argument.
8254 (core_close_cleanup): Update.
8255 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8256 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8260 * remote.c (remote_load): New function.
8261 (init_remote_ops): Use it.
8263 2014-02-19 Tom Tromey <tromey@redhat.com>
8265 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8267 * common/linux-btrace.h (linux_supports_btrace): Update.
8268 * remote.c (remote_supports_btrace): Add "self" argument.
8269 * target-delegates.c: Rebuild.
8270 * target.c (target_supports_btrace): Remove.
8271 * target.h (struct target_ops) <to_supports_btrace>: Add
8272 target_ops argument.
8273 (target_supports_btrace): New define.
8275 2014-02-19 Tom Tromey <tromey@redhat.com>
8277 * record-full.c (record_full_beneath_to_resume_ops)
8278 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8279 (record_full_beneath_to_wait)
8280 (record_full_beneath_to_store_registers_ops)
8281 (record_full_beneath_to_store_registers)
8282 (record_full_beneath_to_xfer_partial_ops)
8283 (record_full_beneath_to_xfer_partial)
8284 (record_full_beneath_to_insert_breakpoint_ops)
8285 (record_full_beneath_to_insert_breakpoint)
8286 (record_full_beneath_to_remove_breakpoint_ops)
8287 (record_full_beneath_to_remove_breakpoint)
8288 (record_full_beneath_to_stopped_by_watchpoint)
8289 (record_full_beneath_to_stopped_data_address)
8290 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8291 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8292 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8293 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8294 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8295 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8296 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8297 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8298 (record_full_resume, record_full_wait_1)
8299 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8300 (record_full_store_registers, record_full_xfer_partial)
8301 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8302 (record_full_async, record_full_core_xfer_partial): Use target
8304 * target-delegates.c: Rebuild.
8305 * target.c (current_xfer_partial): Remove.
8306 (update_current_target): Do not INHERIT or de_fault
8307 to_insert_breakpoint, to_remove_breakpoint,
8308 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8309 to_is_async_p, to_async. Do not set to_xfer_partial field.
8310 (default_xfer_partial): Simplify.
8311 (current_xfer_partial): Remove.
8312 (target_wait, target_resume): Simplify.
8313 (find_default_can_async_p, find_default_is_async_p): Update.
8314 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8315 to_xfer_partial, to_stopped_by_watchpoint,
8316 to_stopped_data_address.
8317 (target_store_registers): Simplify.
8318 (forward_target_remove_breakpoint)
8319 (forward_target_insert_breakpoint): Remove.
8320 (target_remove_breakpoint, target_insert_breakpoint)
8321 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8322 * target.h (struct target_ops) <to_resume, to_wait,
8323 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8324 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8325 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8327 (forward_target_remove_breakpoint)
8328 (forward_target_insert_breakpoint): Remove.
8329 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8331 (record_btrace_insert_breakpoint): Delegate directly.
8333 2014-02-19 Tom Tromey <tromey@redhat.com>
8336 * target-delegates.c: New file.
8337 * target.c: Include target-delegates.c.
8338 (init_dummy_target): Call install_dummy_methods.
8339 (complete_target_initialization): Call install_delegators.
8340 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8341 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8342 * make-target-delegates: New file.
8344 2014-02-19 Tom Tromey <tromey@redhat.com>
8346 * record.c (find_record_target): Use find_target_at.
8347 * target.c (find_target_at): New function.
8348 * target.h (find_target_at): Declare.
8350 2014-02-19 Tom Tromey <tromey@redhat.com>
8352 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8354 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8356 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8357 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8359 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8361 * linux-nat.c (save_sigtrap): Update.
8362 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8363 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8364 (linux_nat_close): Update.
8365 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8367 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8369 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8370 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8371 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8372 (tmp_to_async): Add 'ops' argument.
8373 (record_full_stopped_by_watchpoint, record_full_async)
8374 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8376 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8377 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8378 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8379 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8380 (remote_is_async_p, remote_async): Add 'ops' argument.
8381 (remote_stopped_data_address): Update.
8382 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8383 * target.c (update_current_target)
8384 (find_default_can_async_p, find_default_is_async_p): Update.
8385 (init_dummy_target): Update.
8386 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8387 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8388 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8389 (target_can_async_p, target_is_async_p, target_async)
8390 (target_stopped_by_watchpoint): Update.
8392 2014-02-19 Yao Qi <yao@codesourcery.com>
8395 * gdbarch.sh: Remove startup_gdbarch.
8396 * gdbarch.c: Regenerated.
8397 * gdbarch.h: Likewise.
8399 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8401 * rl78-tdep.c (rl78_g10_register_name): New function.
8402 (rl78_return_value): Add g10 support.
8403 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8406 2014-02-17 Doug Evans <xdje42@gmail.com>
8408 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8409 (SUBDIR_GUILE_SRCS): Ditto.
8410 (scm-gsmob.o): Ditto.
8412 2014-02-17 Yao Qi <yao@codesourcery.com>
8414 * gnu-nat.c (ILL_RPC): Declare defined function.
8416 2014-02-17 Yao Qi <yao@codesourcery.com>
8418 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8419 mach_msg_type_number_t.
8420 (gnu_write_inferior): Likewise.
8422 2014-02-17 Yao Qi <yao@codesourcery.com>
8424 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8426 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8427 (inf_validate_procs, inf_signal): Likewise.
8428 (S_exception_raise_request): Likewise.
8429 (do_mach_notify_dead_name): Likewise.
8430 (steal_exc_port): Likewise.
8431 (gnu_read_inferior): Change 'copy_count''s type to
8432 mach_msg_type_number_t.
8433 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8436 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8438 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8439 flag. Adjust all users; in particular...
8440 (gnu_wait): ..., don't decrement its value in here...
8441 (gnu_create_inferior): ..., and instead set the flag in here,
8442 around the startup_inferior call, and call that one with
8443 START_INFERIOR_TRAPS_EXPECTED.
8445 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8446 (ILL_RPC): ... new macro.
8447 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8448 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8449 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8450 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8451 functions with ILL_RPC macro.
8452 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8453 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8454 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8455 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8456 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8457 (S_proc_getlogin_reply, S_proc_getsid_reply)
8458 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8459 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8460 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8461 (S_proc_getnports_reply, S_proc_is_important_reply)
8462 (S_proc_get_code_reply): New stub functions, generated with
8465 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8466 collected the type check structures.
8468 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8470 2014-02-14 Doug Evans <dje@google.com>
8472 * target.c (target_write_partial): Fix result type.
8474 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8476 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8477 the proper offsets to access fpregset_t.
8479 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8481 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8482 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8483 * h8300-tdep.c (setmachinelist): Remove global.
8484 * hppa-tdep.c (hppa_sigtramp): Remove global.
8485 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8486 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8487 * ravenscar-thread.c (update_target_observer): Remove global.
8488 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8490 2014-02-12 Tom Tromey <tromey@redhat.com>
8492 * common/rsp-low.c: Update comments.
8493 * common/rsp-low.h: Update comments.
8495 2014-02-12 Tom Tromey <tromey@redhat.com>
8497 * common/rsp-low.c (convert_ascii_to_int): Remove.
8498 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8500 2014-02-12 Tom Tromey <tromey@redhat.com>
8502 * common/rsp-low.h (unhexify): Don't declare.
8503 * common/rsp-low.c (unhexify): Remove.
8505 2014-02-12 Tom Tromey <tromey@redhat.com>
8507 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8508 * common/rsp-low.c (convert_int_to_ascii): Remove.
8510 2014-02-12 Tom Tromey <tromey@redhat.com>
8512 * common/rsp-low.h (hexify): Don't declare.
8513 * common/rsp-low.c (hexify): Remove.
8515 2014-02-12 Tom Tromey <tromey@redhat.com>
8517 * common/rsp-low.c (hexify): Never take strlen of argument.
8519 2014-02-12 Tom Tromey <tromey@redhat.com>
8521 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8522 * remote.c (extended_remote_run, remote_rcmd)
8523 (remote_download_trace_state_variable, remote_save_trace_data)
8524 (remote_set_trace_notes): Update.
8525 * tracepoint.c (encode_source_string, tfile_write_status)
8526 (tfile_write_uploaded_tsv): Update.
8528 2014-02-12 Tom Tromey <tromey@redhat.com>
8530 * tracepoint.c: Include rsp-low.h.
8531 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8532 * remote.c: Include rsp-low.h.
8533 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8534 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8535 (remote_unescape_input): Move to common/rsp-low.c.
8536 * common/rsp-low.h: New file.
8537 * common/rsp-low.c: New file.
8538 * Makefile.in (SFILES): Add common/rsp-low.c.
8539 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8540 (COMMON_OBS): Add rsp-low.o.
8541 (rsp-low.o): New target.
8543 2014-02-12 Tom Tromey <tromey@redhat.com>
8545 * utils.h: Include print-utils.h.
8546 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8547 (int_string, core_addr_to_string, core_addr_to_string_nz)
8548 (hex_string, hex_string_custom): Don't declare.
8549 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8550 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8551 (hex_string_custom, int_string, core_addr_to_string)
8552 (core_addr_to_string_nz, host_address_to_string): Move to
8553 common/print-utils.c.
8554 * common/print-utils.h: New file.
8555 * common/print-utils.c: New file
8556 * Makefile.in (SFILES): Add common/print-utils.c.
8557 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8558 (COMMON_OBS): Add print-utils.o.
8559 (print-utils.o): New target.
8561 2014-02-12 Tom Tromey <tromey@redhat.com>
8563 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8565 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8567 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8569 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8571 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8572 if a PT_IO ptrace request returns sucessfully but indicates that 0
8573 bytes were transferred.
8575 2014-02-12 Pedro Alves <palves@redhat.com>
8576 Kevin Buettner <kevinb@redhat.com>
8578 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8579 TYPE_INSTANCE_FLAG_CODE_SPACE.
8581 2014-02-12 Pedro Alves <palves@redhat.com>
8583 * h8300-tdep.c (pseudo_from_raw_register)
8584 (raw_from_pseudo_register): New functions.
8585 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8588 2014-02-12 Pedro Alves <palves@redhat.com>
8590 * h8300-tdep.c (h8300_register_sim_regno): New function.
8591 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8592 gdbarch_register_sim_regno hook.
8594 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8596 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8598 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8600 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8602 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8604 * obsd-tdep.h (obsd_init_abi): New prototype.
8605 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8606 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8607 (obsd_init_abi): New functions.
8608 * i386obsd-tdep.c: Include "obsd-tdep.h".
8609 (i386obsd_init_abi): Call obsd_init_abi.
8610 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8611 (amd64obsd_init_abi): Call obsd_init_abi.
8612 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8613 obsd-tdep.c to gdb_target_obs.
8615 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8617 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8618 double float arguments to 16-byte in the argument slots.
8620 2014-02-11 Doug Evans <xdje42@gmail.com>
8622 * configure.ac: Don't crash if pkg-config is not found and guile
8623 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8625 * configure: Regenerate.
8627 2014-02-11 Yao Qi <yao@codesourcery.com>
8629 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8630 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8631 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8632 * gnu-nat.c (gnu_xfer_memory): Likewise.
8633 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8634 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8635 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8636 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8638 2014-02-11 Yao Qi <yao@codesourcery.com>
8640 * target.h (enum target_xfer_error): Rename to ...
8641 (enum target_xfer_status): ... it. New. All users updated.
8642 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8644 (TARGET_XFER_STATUS_ERROR_P): New macro.
8645 (target_xfer_error_to_string): Remove declaration.
8646 (target_xfer_status_to_string): Declare.
8647 (target_xfer_partial_ftype): Adjust it.
8648 (struct target_ops) <to_xfer_partial>: Return
8649 target_xfer_status. Add argument xfered_len. Update
8651 * target.c (target_xfer_error_to_string): Rename to ...
8652 (target_xfer_status_to_string): ... it. New. All callers
8654 (target_read_live_memory): Likewise. Call target_xfer_partial
8655 instead of target_read.
8656 (memory_xfer_live_readonly_partial): Return
8657 target_xfer_status. Add argument xfered_len.
8658 (raw_memory_xfer_partial): Likewise.
8659 (memory_xfer_partial_1): Likewise.
8660 (memory_xfer_partial): Likewise.
8661 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8662 properly. Update debug message.
8663 (default_xfer_partial, current_xfer_partial): Likewise.
8664 (target_write_partial): Likewise.
8665 (target_read_partial): Likewise. All callers updated.
8666 (read_whatever_is_readable): Likewise.
8667 (target_write_with_progress): Likewise.
8668 (target_read_alloc_1): Likewise.
8670 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8671 * auxv.c (procfs_xfer_auxv): Likewise.
8672 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8673 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8674 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8675 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8676 * corefile.c (read_memory): Adjust.
8677 * corelow.c (core_xfer_partial): Likewise.
8678 * ctf.c (ctf_xfer_partial): Likewise.
8679 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8681 (darwin_xfer_partial): Likewise.
8682 * exec.c (section_table_xfer_memory_partial): Likewise. All
8684 (exec_xfer_partial): Likewise.
8685 * exec.h (section_table_xfer_memory_partial): Update
8687 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8689 (gnu_xfer_partial): Likewise.
8690 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8691 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8692 (ia64_hpux_xfer_solib_got): Likewise.
8693 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8694 type of 'partial_len' to ULONGEST.
8695 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8696 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8697 (linux_nat_xfer_partial): Likewise.
8698 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8699 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8700 * monitor.c (monitor_xfer_memory): Likewise.
8701 (monitor_xfer_partial): Likewise.
8702 * procfs.c (procfs_xfer_partial): Likewise.
8703 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8704 * record-full.c (record_full_xfer_partial): Likewise.
8705 (record_full_core_xfer_partial): Likewise.
8706 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8707 (gdbsim_xfer_partial): Likewise.
8708 * remote.c (remote_write_bytes_aux): Likewise. All callers
8710 (remote_write_bytes, remote_read_bytes): Likewise. All
8712 (remote_flash_erase): Likewise. All callers updated.
8713 (remote_write_qxfer): Likewise. All callers updated.
8714 (remote_read_qxfer): Likewise. All callers updated.
8715 (remote_xfer_partial): Likewise.
8716 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8717 (rs6000_xfer_shared_libraries): Likewise.
8718 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8719 (sol_thread_xfer_partial): Likewise.
8720 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8721 (sparc_xfer_partial): Likewise.
8722 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8724 (spu_xfer_partial): Likewise.
8725 * spu-multiarch.c (spu_xfer_partial): Likewise.
8726 * tracepoint.c (tfile_xfer_partial): Likewise.
8727 * windows-nat.c (windows_xfer_memory): Likewise.
8728 (windows_xfer_shared_libraries): Likewise.
8729 (windows_xfer_partial): Likewise.
8730 * valprint.c: Replace 'target_xfer_error' with
8731 'target_xfer_status' in comments.
8733 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8735 Checked in by Joel Brobecker <brobecker@adacore.com>.
8736 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8738 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8740 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8741 function parameters.
8743 2014-02-10 Will Newton <will.newton@linaro.org>
8745 * elfread.c (elf_rel_plt_read): Look for a .got section if
8746 looking up .got.plt fails.
8747 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8748 on address passed to elf_gnu_ifunc_record_cache.
8749 (elf_gnu_ifunc_resolve_addr): Likewise.
8750 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8752 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8754 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8755 (X_RETTURN): New macro.
8756 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8758 * sparc64-tdep.c (sparc64_init_abi): Hook
8759 sparc_in_function_epilogue_p.
8761 2014-02-10 Gary Benson <gbenson@redhat.com>
8763 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8764 Rename name_matcher to symbol_matcher.
8766 2014-02-10 Gary Benson <gbenson@redhat.com>
8768 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8769 Use expand_symtabs_file_matcher_ftype and
8770 expand_symtabs_symbol_matcher_ftype.
8772 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8774 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8775 (struct ada_symbol_cache): New.
8776 (ada_free_symbol_cache): Forward declare.
8777 (struct ada_pspace_data): New.
8778 (ada_pspace_data_handle): New static global.
8779 (get_ada_pspace_data, ada_pspace_data_cleanup)
8780 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8781 (cache_space, cache): Delete, now folded inside struct
8783 (ada_get_symbol_cache): New function.
8784 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8786 (_initialize_ada_language): Remove initialization of cache_space.
8787 Move call to observer_attach_inferior_exit up, grouping it
8788 with the other observer registrations inside this function.
8789 Rename command to be more general. Add call to
8790 register_program_space_data_with_cleanup.
8792 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8794 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8795 ada_new_objfile_observer.
8796 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8797 (_initialize_tasks): Update uses of ada_new_objfile_observer
8798 and ada_tasks_normal_stop_observer.
8800 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8802 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8803 returned by the 'Length attribute to integer.
8805 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8807 * ada-lang.c (_initialize_ada_language): Initialize
8808 cache_space obstack.
8810 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8812 * ada-lang.c (HASH_SIZE): New macro.
8813 (struct cache_entry): New type.
8814 (cache_space, cache): New static globals.
8815 (ada_clear_symbol_cache, find_entry): New functions.
8816 (lookup_cached_symbol, cache_symbol): Implement.
8817 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8818 (_initialize_ada_language): Attach ada_new_objfile_observer
8819 and ada_free_objfile_observer.
8821 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8823 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8824 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8825 struct block * parameter.
8826 (ada_lookup_symbol_list_worker): Constify local variable "block".
8827 Remove cast which is no longer necessary.
8829 2014-02-10 Doug Evans <xdje42@gmail.com>
8831 Add Guile as an extension language.
8832 * NEWS: Mention Guile scripting.
8833 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8834 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8835 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8836 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8837 (CLIBS): Add GUILE_LIBS.
8838 (install-guile): New rule.
8839 (guile.o): New rule.
8840 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8841 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8842 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8843 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8844 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8845 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8846 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8847 * configure.ac: New option --with-guile.
8848 * configure: Regenerate.
8849 * config.in: Regenerate.
8850 * auto-load.c: Remove #include "python/python.h". Add #include
8851 "gdb/section-scripts.h".
8852 (source_section_scripts): Handle Guile scripts.
8853 (_initialize_auto_load): Add name of Guile objfile script to
8854 scripts-directory help text.
8855 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8856 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8857 (struct breakpoint): New member scm_bp_object.
8858 * defs.h (enum command_control_type): New value guile_control.
8859 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8861 (show_user): Update comment.
8862 (_initialize_cli_cmds): Update help text for "show user". Update help
8863 text for max-user-call-depth.
8864 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8866 (multi_line_command_p): Add guile_control.
8867 (print_command_lines): Handle guile_control.
8868 (execute_control_command, recurse_read_control_structure): Ditto.
8869 (process_next_line): Recognize "guile" commands.
8870 * disasm.c (gdb_disassemble_info): Make non-static.
8871 * disasm.h: #include "dis-asm.h".
8872 (struct gdbarch): Add forward decl.
8873 (gdb_disassemble_info): Declare.
8874 * extension.c: #include "guile/guile.h".
8875 (extension_languages): Add guile.
8876 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8877 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8878 * gdbtypes.c (get_unsigned_type_max): New function.
8879 (get_signed_type_minmax): New function.
8880 * gdbtypes.h (get_unsigned_type_max): Declare.
8881 (get_signed_type_minmax): Declare.
8882 * guile/README: New file.
8883 * guile/guile-internal.h: New file.
8884 * guile/guile.c: New file.
8885 * guile/guile.h: New file.
8886 * guile/scm-arch.c: New file.
8887 * guile/scm-auto-load.c: New file.
8888 * guile/scm-block.c: New file.
8889 * guile/scm-breakpoint.c: New file.
8890 * guile/scm-disasm.c: New file.
8891 * guile/scm-exception.c: New file.
8892 * guile/scm-frame.c: New file.
8893 * guile/scm-gsmob.c: New file.
8894 * guile/scm-iterator.c: New file.
8895 * guile/scm-lazy-string.c: New file.
8896 * guile/scm-math.c: New file.
8897 * guile/scm-objfile.c: New file.
8898 * guile/scm-ports.c: New file.
8899 * guile/scm-pretty-print.c: New file.
8900 * guile/scm-safe-call.c: New file.
8901 * guile/scm-string.c: New file.
8902 * guile/scm-symbol.c: New file.
8903 * guile/scm-symtab.c: New file.
8904 * guile/scm-type.c: New file.
8905 * guile/scm-utils.c: New file.
8906 * guile/scm-value.c: New file.
8907 * guile/lib/gdb.scm: New file.
8908 * guile/lib/gdb/boot.scm: New file.
8909 * guile/lib/gdb/experimental.scm: New file.
8910 * guile/lib/gdb/init.scm: New file.
8911 * guile/lib/gdb/iterator.scm: New file.
8912 * guile/lib/gdb/printing.scm: New file.
8913 * guile/lib/gdb/types.scm: New file.
8914 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8915 (VPATH): Add $(GUILE_SRCDIR).
8916 (GUILE_DIR): New variable.
8917 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8918 (all): Add stamp-guile dependency.
8919 (stamp-guile): New rule.
8920 (clean-guile, install-guile, uninstall-guile): New rules.
8921 (install-only): Add install-guile dependency.
8922 (uninstall): Add uninstall-guile dependency.
8923 (clean): Add clean-guile dependency.
8925 2014-02-09 Doug Evans <xdje42@gmail.com>
8927 Revert this patch (which I approved, mea culpa).
8929 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8931 * Makefile.in (all-lib): Remove.
8932 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8934 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8936 Fix Python stack corruption.
8937 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8940 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8942 * Makefile.in (all-lib): Remove.
8943 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8945 2014-02-07 Doug Evans <dje@google.com>
8947 * extension-priv.h (extension_language_script_ops): Add comment.
8948 (extension_language_ops): Add comment.
8949 (active_ext_lang_state): Fix typo in comment.
8951 2014-02-07 Pedro Alves <palves@redhat.com>
8953 PR breakpoints/16292
8954 * infrun.c (handle_signal_stop) <signal arrives while stepping
8955 over a breakpoint>: Switch back to the stepping thread.
8957 2014-02-07 Yao Qi <yao@codesourcery.com>
8959 * target.c (target_xfer_partial): Return zero if LEN is zero.
8961 2014-02-07 Yao Qi <yao@codesourcery.com>
8963 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8964 (ld_so_xfer_auxv): Likewise.
8965 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8966 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8967 * corelow.c (core_xfer_partial): Likewise.
8968 * ctf.c (ctf_xfer_partial): Likewise.
8969 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8970 (darwin_xfer_partial): Likewise.
8971 * exec.c (exec_xfer_partial): Likewise.
8972 * gnu-nat.c (gnu_xfer_partial): Likewise.
8973 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8974 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8975 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8976 * linux-nat.c (linux_xfer_siginfo): Likewise.
8977 (linux_proc_xfer_spu): Likewise.
8978 * procfs.c (procfs_xfer_partial): Likewise.
8979 * record-full.c (record_full_xfer_partial): Likewise.
8980 (record_full_core_xfer_partial): Likewise.
8981 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8982 * remote.c (remote_write_qxfer): Likewise.
8983 (remote_write_qxfer, remote_read_qxfer): Likewise.
8984 (remote_xfer_partial): Likewise.
8985 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8986 (rs6000_xfer_shared_libraries): Likewise.
8987 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8988 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8989 (spu_xfer_partial): Likewise.
8990 * target.c (memory_xfer_partial_1): Likewise.
8991 * tracepoint.c (tfile_xfer_partial): Likewise.
8992 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8993 (windows_xfer_partial): Likewise.
8995 2014-02-07 Yao Qi <yao@codesourcery.com>
8997 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8999 (core_xfer_shared_libraries_aix): Likewise.
9000 * gdbarch.c, gdbarch.h: Regenerated.
9001 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9002 ULONGEST. Change 'len_avail' type to ULONGEST.
9003 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9004 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9006 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9008 2014-02-07 Yao Qi <yao@codesourcery.com>
9010 * corefile.c (memory_error): Get 'exception' from ERR and pass
9011 'exception' to throw_error.
9013 2014-02-06 Doug Evans <xdje42@gmail.com>
9015 * configure.ac (libpython checking): Remove all but python.o from
9016 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9017 * configure: Regenerate.
9019 * Makefile.in (SFILES): Add extension.c.
9020 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9021 (COMMON_OBS): Add extension.o.
9022 * extension.h: New file.
9023 * extension-priv.h: New file.
9024 * extension.c: New file.
9026 * python/python-internal.h: #include "extension.h".
9027 (gdbpy_auto_load_enabled): Declare.
9028 (gdbpy_apply_val_pretty_printer): Declare.
9029 (gdbpy_apply_frame_filter): Declare.
9030 (gdbpy_preserve_values): Declare.
9031 (gdbpy_breakpoint_cond_says_stop): Declare.
9032 (gdbpy_breakpoint_has_cond): Declare.
9033 (void source_python_script_for_objfile): Delete.
9034 * python/python.c: #include "extension-priv.h".
9035 Delete inclusion of "observer.h".
9036 (extension_language_python): Moved here and renamed from
9037 script_language_python in py-auto-load.c.
9038 Redefined to be of type extension_language_defn.
9039 (python_extension_script_ops): New global.
9040 (python_extension_ops): New global.
9041 (struct python_env): New member previous_active.
9042 (restore_python_env): Call restore_active_ext_lang.
9043 (ensure_python_env): Call set_active_ext_lang.
9044 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9046 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9048 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9050 (gdbpy_eval_from_control_command): Renamed from
9051 eval_python_from_control_command, made static. New arg extlang.
9052 (gdbpy_source_script) Renamed from source_python_script, made static.
9054 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9055 result to int. New arg extlang.
9056 (gdbpy_source_objfile_script): Renamed from
9057 source_python_script_for_objfile, made static. New arg extlang.
9058 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9059 static. New args extlang, extlang_printers. Change result type to
9061 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9062 static. New arg extlang. Rename arg printers to extlang_printers
9063 and change type to ext_lang_type_printers *.
9064 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9065 static. Replace argument arg with extlang, extlang_printers.
9066 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9067 (!HAVE_PYTHON, source_python_script): Delete.
9068 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9069 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9070 (!HAVE_PYTHON, start_type_printers): Delete.
9071 (!HAVE_PYTHON, apply_type_printers): Delete.
9072 (!HAVE_PYTHON, free_type_printers): Delete.
9073 (_initialize_python): Delete call to observer_attach_before_prompt.
9074 (finalize_python): Set/restore active extension language.
9075 (gdbpy_finish_initialization) Renamed from
9076 finish_python_initialization, made static. New arg extlang.
9077 (gdbpy_initialized): New function.
9078 * python/python.h: #include "extension.h". Delete #include
9079 "value.h", "mi/mi-cmds.h".
9080 (extension_language_python): Declare.
9081 (GDBPY_AUTO_FILE_NAME): Delete.
9082 (enum py_bt_status): Moved to extension.h and renamed to
9084 (enum frame_filter_flags): Moved to extension.h.
9085 (enum py_frame_args): Moved to extension.h and renamed to
9086 ext_lang_frame_args.
9087 (finish_python_initialization): Delete.
9088 (eval_python_from_control_command): Delete.
9089 (source_python_script): Delete.
9090 (apply_val_pretty_printer): Delete.
9091 (apply_frame_filter): Delete.
9092 (preserve_python_values): Delete.
9093 (gdbpy_script_language_defn): Delete.
9094 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9095 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9097 * auto-load.c: #include "extension.h".
9098 (GDB_AUTO_FILE_NAME): Delete.
9099 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9100 (script_language_gdb): Delete, moved to extension.c and renamed to
9101 extension_language_gdb.
9102 (source_gdb_script_for_objfile): Delete.
9103 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9104 (loaded_script): Change type of language member to
9105 struct extension_language_defn *.
9106 (init_loaded_scripts_info): Initialize
9107 unsupported_script_warning_printed.
9108 (maybe_add_script): Make static. Change type of language arg to
9109 struct extension_language_defn *.
9110 (clear_section_scripts): Reset unsupported_script_warning_printed.
9111 (auto_load_objfile_script_1): Rewrite to use extension language API.
9112 (auto_load_objfile_script): Make public. Remove support-compiled-in
9113 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9114 (source_section_scripts): Rewrite to use extension language API.
9115 (load_auto_scripts_for_objfile): Rewrite to use
9116 auto_load_scripts_for_objfile.
9117 (collect_matching_scripts_data): Change type of language member to
9118 struct extension_language_defn *.
9119 (auto_load_info_scripts): Change type of language arg to
9120 struct extension_language_defn *.
9121 (unsupported_script_warning_print): New function.
9122 (script_not_found_warning_print): Make static.
9123 (_initialize_auto_load): Rewrite construction of scripts-directory
9125 * auto-load.h (struct objfile): Add forward decl.
9126 (struct script_language): Delete.
9127 (struct auto_load_pspace_info): Add forward decl.
9128 (struct extension_language_defn): Add forward decl.
9129 (maybe_add_script): Delete.
9130 (auto_load_objfile_script): Declare.
9131 (script_not_found_warning_print): Delete.
9132 (auto_load_info_scripts): Update prototype.
9133 (auto_load_gdb_scripts_enabled): Declare.
9134 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9135 auto_load_python_scripts_enabled and made public.
9136 (script_language_python): Delete, moved to python.c.
9137 (gdbpy_script_language_defn): Delete.
9138 (info_auto_load_python_scripts): Update to use
9139 extension_language_python.
9141 * breakpoint.c (condition_command): Replace call to
9142 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9143 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9144 with call to breakpoint_ext_lang_cond_says_stop.
9145 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9146 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9147 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9148 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9150 (local_setattro): Print name of extension language with existing
9153 * valprint.c (val_print, value_print): Update to call
9154 apply_ext_lang_val_pretty_printer.
9155 * cp-valprint.c (cp_print_value): Update call to
9156 apply_ext_lang_val_pretty_printer.
9157 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9158 (gdbpy_apply_val_pretty_printer): Renamed from
9159 apply_val_pretty_printer. New arg extlang.
9160 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9162 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9163 extension language API.
9164 * cli/cli-script.c (execute_control_command): Update to call
9165 eval_ext_lang_from_control_command.
9167 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9168 enum ext_lang_bt_status values. Update call to
9169 apply_ext_lang_frame_filter.
9170 (mi_cmd_stack_list_locals): Ditto.
9171 (mi_cmd_stack_list_args): Ditto.
9172 (mi_cmd_stack_list_variables): Ditto.
9173 * mi/mi-main.c: Delete #include "python/python-internal.h".
9174 Add #include "extension.h".
9175 (mi_cmd_list_features): Replace reference to python internal variable
9176 gdb_python_initialized with call to ext_lang_initialized_p.
9178 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9179 Update to use enum ext_lang_frame_args. Update to call
9180 apply_ext_lang_frame_filter.
9181 * python/py-framefilter.c (extract_sym): Update to use enum
9183 (extract_value, py_print_type, py_print_value): Ditto.
9184 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9185 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9186 (py_print_frame): Ditto.
9187 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9188 New arg extlang. Update to use enum ext_lang_bt_status.
9190 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9191 finish_python_initialization. Replace with call to
9192 finish_ext_lang_initialization.
9194 * typeprint.c (do_free_global_table): Update to call
9195 free_ext_lang_type_printers.
9196 (create_global_typedef_table): Update to call
9197 start_ext_lang_type_printers.
9198 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9199 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9200 (type_print_options): Change type of global_printers from "void *"
9201 to "struct ext_lang_type_printers *".
9203 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9204 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9205 (gdbpy_preserve_values): Renamed from preserve_python_values.
9207 (!HAVE_PYTHON, preserve_python_values): Delete.
9209 * utils.c (quit_flag): Delete, moved to extension.c.
9210 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9213 * eval.c: Delete #include "python/python.h".
9214 * main.c: Delete #include "python/python.h".
9216 * defs.h: Update comment.
9218 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9222 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9224 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9227 2014-02-05 Yao Qi <yao@codesourcery.com>
9229 * remote.c (remote_pass_signals): Remove local 'buf' and use
9231 (remote_program_signals): Likewise.
9233 2014-02-05 Yao Qi <yao@codesourcery.com>
9235 * ctf.c: Include "inferior.h" and "gdbthread.h".
9236 (CTF_PID): A new macro.
9237 (ctf_open): Call inferior_appeared and add_thread_silent.
9238 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9239 (ctf_thread_alive): New function.
9240 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9242 2014-02-05 Yao Qi <yao@codesourcery.com>
9246 2013-05-24 Yao Qi <yao@codesourcery.com>
9248 * tracepoint.c (TFILE_PID): Remove.
9249 (tfile_open): Don't add thread and inferior.
9250 (tfile_close): Don't set 'inferior_ptid'. Don't call
9251 exit_inferior_silent.
9252 (tfile_thread_alive): Remove.
9253 (init_tfile_ops): Don't set field 'to_thread_alive' of
9256 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9258 * remote.c (remote_start_remote): Call remote_check_symbols even
9259 if only symbol-file (not file) has been given.
9261 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9263 * gdbarch.sh (skip_entrypoint): New callback.
9264 * gdbarch.c, gdbarch.h: Regenerate.
9265 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9266 * infrun.c (fill_in_stop_func): Likewise.
9267 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9268 (ppc_elfv2_elf_make_msymbol_special): New function.
9269 (ppc_elfv2_skip_entrypoint): Likewise.
9270 (ppc_linux_init_abi): Install them for ELFv2.
9272 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9274 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9275 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9276 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9277 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9278 structures returned in GPRs.
9280 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9282 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9283 offset to the stack parameter list for the ELFv2 ABI.
9285 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9287 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9288 set_gdbarch_convert_from_func_ptr_addr and
9289 set_gdbarch_elf_make_msymbol_special for ELFv1.
9290 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9291 function descriptors on ELFv1.
9292 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9293 set up r12 at function entry.
9295 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9297 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9298 (struct gdbarch_tdep): New member elf_abi.
9300 * rs6000-tdep.c: Include "elf/ppc64.h".
9301 (rs6000_gdbarch_init): Detect ELF ABI version.
9303 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9305 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9306 within a register pair holding a DFP 128-bit value on little-endian.
9307 (ppc64_sysv_abi_return_value_base): Likewise.
9308 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9309 (dfp_pseudo_register_write): Likewise.
9311 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9313 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9314 offset on little-endian when passing _Decimal32.
9315 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9317 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9319 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9320 of the overlapped FP register within the VSX register on little-
9322 (efpr_pseudo_register_write): Likewise.
9324 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9326 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9327 offset on little-endian when passing small structures.
9329 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9331 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9332 (struct ppc64_sysv_argpos): New data structure.
9333 (ppc64_sysv_abi_push_float): Remove.
9334 (ppc64_sysv_abi_push_val): New function.
9335 (ppc64_sysv_abi_push_integer): Likewise.
9336 (ppc64_sysv_abi_push_freg): Likewise.
9337 (ppc64_sysv_abi_push_vreg): Likewise.
9338 (ppc64_sysv_abi_push_param): Likewise.
9339 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9340 (ppc64_sysv_abi_return_value_base): New function.
9341 (ppc64_sysv_abi_return_value): Refactor to use it.
9343 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9345 * NEWS: Document new target powerpc64le-*-linux*.
9347 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9349 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9350 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9352 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9353 register set used in ELF core dumps. Add floating-point register set.
9355 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9357 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9358 dwarf2_to_gdb[] table using symbolic constants. Adjust
9359 penultimate entry from number representing the PC register
9360 to symbolic constant representing the MDR register. Add
9361 constant for the PC register to the end of the table.
9363 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9365 * bsd-kvm.c: Include <sys/param.h>
9367 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9369 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9371 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9373 * ada-lang.h (clear_ada_sym_cache): Delete.
9375 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9377 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9379 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9381 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9382 the sigreturn register save area only if the syscall is
9385 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9387 * valops.c (value_slice): Minor reformatting.
9389 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9391 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9393 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9395 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9397 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9398 (ada_ignore_descriptive_types_p): New static global.
9399 (find_parallel_type_by_descriptive_type): Return immediately
9400 if ada_ignore_descriptive_types_p is set.
9401 (_initialize_ada_language): Register new commands "maintenance
9402 set ada", "maintenance show ada", "maintenance set ada
9403 ignore-descriptive-types" and "maintenance show ada
9404 ignore-descriptive-types".
9405 * NEWS: Add entry for new "maint ada set/show
9406 ignore-descriptive-types" commands.
9408 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9410 * record-btrace.c (record_btrace_close): Call btrace_teardown
9413 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9415 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9418 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9420 * ada-typeprint (type_is_full_subrange_of_target_type):
9422 (print_range): Add parameter bounds_prefered_p. If not set,
9423 try printing range types using the name of their base type.
9424 (print_range_type): Add parameter bounds_prefered_p.
9425 Use it in call to print_range.
9426 (print_array_type, ada_print_type): Update calls to print_range
9427 and print_range_type.
9429 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9431 * ada-typeprint.c (print_array_type, print_choices, print_range)
9432 (print_range_bound, print_dynamic_range_bound, print_range_type):
9435 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9437 * ada-typeprint.c (print_range): Add missing empty line
9438 after local declaration.
9440 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9442 * ada-valprint.c (print_optional_low_bound): Get index_type's
9443 target type for as long as it is a TYPE_CODE_RANGE.
9445 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9447 * procfs.c (procfs_make_note_section): Remove assertion and
9450 2014-01-24 Yao Qi <yao@codesourcery.com>
9452 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9453 * corelow.c (get_core_siginfo): Likewise.
9455 2014-01-24 Yao Qi <yao@codesourcery.com>
9457 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9458 ULONGEST. Don't check 'len' is negative.
9459 (remote_write_bytes): Change type of 'len' to ULONGEST.
9461 2014-01-23 Tom Tromey <tromey@redhat.com>
9464 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9465 Handle exception from frame.block.
9466 (FrameVars.fetch_frame_locals): Likewise.
9468 2014-01-23 Tom Tromey <tromey@redhat.com>
9471 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9472 on a NULL pointer. Move "goto error" to correct place.
9474 2014-01-23 Tom Tromey <tromey@redhat.com>
9477 * python/py-framefilter.c (apply_frame_filter): Call
9478 ensure_python_env after computing gdbarch.
9480 2014-01-23 Yao Qi <yao@codesourcery.com>
9482 * target.c (raw_memory_xfer_partial): Change argument type
9483 from void * to gdb_byte *.
9484 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9486 2014-01-22 Doug Evans <dje@google.com>
9488 New gdbserver option --debug-format=timestamp.
9491 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9493 * syscalls/s390x-linux.xml: New file.
9494 * syscalls/s390-linux.xml: New file.
9495 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9496 (XML_SYSCALL_FILENAME_S390X): Likewise.
9497 (op_svc): New enum value for SVC opcode.
9498 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9499 (s390_linux_get_syscall_number): New function.
9500 (s390_gdbarch_init): Register '*get_syscall_number' and the
9501 syscall xml file name.
9502 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9503 "s390-linux.xml" and "s390x-linux.xml".
9504 * NEWS: Announce new feature.
9506 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9508 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9510 2014-01-22 Pedro Alves <palves@redhat.com>
9512 * xtensa-config.c: Include defs.h.
9514 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9516 * common/common-utils.h: Add "ARI:" comment beside __func__
9519 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9521 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9522 documentation a bit.
9524 2014-01-21 Roland McGrath <mcgrathr@google.com>
9526 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9527 * configure: Regenerate.
9528 * aclocal.m4: Regenerate.
9529 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9530 New substituted variables.
9531 (install-strip): New target.
9532 (INSTALL_SCRIPT): New substituted variable.
9533 (FLAGS_TO_PASS): Add it.
9534 (install-only): Use $(INSTALL_SCRIPT) rather than
9535 $(INSTALL_PROGRAM) for gcore.
9537 2014-01-20 Tom Tromey <tromey@redhat.com>
9539 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9542 2014-01-20 Tom Tromey <tromey@redhat.com>
9544 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9545 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9546 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9547 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9548 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9549 (struct cmd_list_element) <flags>: Remove.
9550 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9551 doc_allocated>: New fields.
9552 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9554 * maint.c (maintenance_do_deprecate): Update.
9555 * top.c (execute_command): Update.
9557 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9559 * xtensa-linux-nat.c: Include asm/ptrace.h.
9561 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9563 * Makefile.in (SFILES): Add d-support.c.
9564 (COMMON_OBS): Add d-support.o.
9565 * d-lang.h (d_parse_symbol): Add comment, now defined in
9567 * d-lang.c (parse_call_convention)
9568 (parse_attributes, parse_function_types)
9569 (parse_function_args, parse_type, parse_identifier)
9570 (call_convention_p, d_parse_symbol): Move functions to ...
9571 * d-support.c: ... New file.
9573 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9575 * d-lang.h (d_parse_symbol): Add declaration.
9576 * d-lang.c (extract_identifiers)
9577 (extract_type_info): Remove functions.
9578 (parse_call_convention, parse_attributes)
9579 (parse_function_types, parse_function_args)
9580 (parse_type, parse_identifier, call_convention_p)
9581 (d_parse_symbol): New functions.
9582 (d_demangle): Use d_parse_symbol to demangle D symbols.
9584 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9586 * d-lang.h (struct builtin_d_type): New data type.
9587 (builtin_d_type): Add declaration.
9588 * d-lang.c (d_language_arch_info, build_d_types)
9589 (builtin_d_type): New functions.
9590 (enum d_primitive_types): New data type.
9591 (d_language_defn): Change c_language_arch_info to
9592 d_language_arch_info.
9593 (d_type_data): New static variable.
9594 (_initialize_d_language): Initialize d_type_data.
9596 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9598 * d-lang.h (d_main_name): Add declaration.
9599 * d-lang.c (d_main_name): New function.
9600 * symtab.c (find_main_name): Add call to d_main_name.
9602 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9604 * d-lang.c (d_language_defn): Change macro_expansion_c to
9607 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9609 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9611 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9613 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9614 gdb_exception" declaration.
9615 * remote.c (getpkt_or_notif_sane): Likewise.
9617 2014-01-17 Doug Evans <dje@google.com>
9619 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9620 function, contents of dirnames_to_char_ptr_vec_append moved here.
9621 (delim_string_to_char_ptr_vec): New function.
9622 (dirnames_to_char_ptr_vec_append): Rewrite.
9623 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9625 2014-01-17 Doug Evans <dje@google.com>
9627 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9629 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9630 #include "common-utils.h".
9631 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9632 * common/vec.h (VEC_ASSERT_PASS): Update.
9633 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9634 (MACH_CHECK_ERROR): Update.
9636 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9638 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9640 * gdbarch.h: Regenerate.
9642 2014-01-16 Tom Tromey <tromey@redhat.com>
9644 * value.c (struct value) <regnum>: Move earlier.
9646 2014-01-16 Tom Tromey <tromey@redhat.com>
9648 * remote.c (extended_remote_create_inferior): Rename from
9649 extended_remote_create_inferior_1. Add "ops" argument. Remove
9652 2014-01-16 Pedro Alves <palves@redhat.com>
9654 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9655 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9658 2014-01-16 Doug Evans <dje@google.com>
9660 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9662 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9664 * btrace.h (btrace_thread_flag): New.
9665 (struct btrace_thread_info) <flags>: New.
9666 * record-btrace.c (record_btrace_resume_thread)
9667 (record_btrace_find_thread_to_move, btrace_step_no_history)
9668 (btrace_step_stopped, record_btrace_start_replaying)
9669 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9670 (record_btrace_find_resume_thread): New.
9671 (record_btrace_resume, record_btrace_wait): Extend.
9672 (record_btrace_can_execute_reverse): New.
9673 (record_btrace_open): Fail in non-stop mode.
9674 (record_btrace_set_replay): Split into this, ...
9675 (record_btrace_stop_replaying): ... this, ...
9676 (record_btrace_clear_histories): ... and this.
9677 (init_record_btrace_ops): Init to_can_execute_reverse.
9678 * NEWS: Announce it.
9680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9682 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9683 (forward_target_decr_pc_after_break)
9684 (target_decr_pc_after_break): New.
9685 * target.c (forward_target_decr_pc_after_break)
9686 (target_decr_pc_after_break): New.
9687 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9688 instead of gdbarch_decr_pc_after_break.
9689 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9690 instead of gdbarch_decr_pc_after_break.
9691 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9692 instead of gdbarch_decr_pc_after_break.
9693 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9694 instead of gdbarch_decr_pc_after_break.
9695 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9696 instead of gdbarch_decr_pc_after_break.
9697 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9698 instead of gdbarch_decr_pc_after_break.
9700 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9702 * btrace.c: Include regcache.h.
9703 (btrace_add_pc): New.
9704 (btrace_enable): Call btrace_add_pc.
9705 (btrace_is_empty): New.
9706 * btrace.h (btrace_is_empty): New.
9707 * record-btrace.c (require_btrace, record_btrace_info): Call
9710 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9712 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9713 Support delta reads.
9714 (linux_disable_btrace): Change return type.
9715 * common/linux-btrace.h (linux_read_btrace): Change parameters
9716 and return type to allow error reporting. Update users.
9717 (linux_disable_btrace): Change return type. Update users.
9718 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9720 (btrace_error): New.
9721 (btrace_block) <begin>: Comment on BEGIN == 0.
9722 * btrace.c (btrace_compute_ftrace): Start from the end of
9724 (btrace_stitch_trace, btrace_clear_history): New.
9725 (btrace_fetch): Read delta trace, return if replaying.
9726 (btrace_clear): Move clear history code to btrace_clear_history.
9727 (parse_xml_btrace): Throw an error if parsing failed.
9728 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9729 and return type to allow error reporting.
9730 (target_read_btrace): Change parameters and return type to allow
9732 * target.c (target_read_btrace): Update.
9733 * remote.c (remote_read_btrace): Support delta reads. Pass
9735 * NEWS: Announce it.
9737 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9739 * record.h (record_btrace_frame_unwind)
9740 (record_btrace_tailcall_frame_unwind): New declarations.
9741 * dwarf2-frame: Include record.h
9742 (dwarf2_frame_cfa): Throw an error for btrace frames.
9743 * record-btrace.c: Include hashtab.h.
9744 (btrace_get_bfun_name): New.
9745 (btrace_call_history): Call btrace_get_bfun_name.
9746 (struct btrace_frame_cache): New.
9748 (bfcache_hash, bfcache_eq, bfcache_new): New.
9749 (btrace_get_frame_function): New.
9750 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9751 (record_btrace_frame_this_id): Compute own id.
9752 (record_btrace_frame_prev_register): Provide PC, throw_error
9753 for all other registers.
9754 (record_btrace_frame_sniffer): Detect btrace frames.
9755 (record_btrace_tailcall_frame_sniffer): New.
9756 (record_btrace_frame_dealloc_cache): New.
9757 (record_btrace_frame_unwind): Add new functions.
9758 (record_btrace_tailcall_frame_unwind): New.
9759 (_initialize_record_btrace): Allocate cache.
9760 * btrace.c (btrace_clear): Call reinit_frame_cache.
9761 * NEWS: Announce it.
9763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9765 * record-btrace.c (record_btrace_set_replay)
9766 (record_btrace_goto_begin, record_btrace_goto_end)
9767 (record_btrace_goto): New.
9768 (init_record_btrace_ops): Initialize them.
9769 * NEWS: Announce it.
9771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9773 * record-btrace.c (record_btrace_find_new_threads)
9774 (record_btrace_thread_alive): New.
9775 (init_record_btrace_ops): Initialize to_find_new_threads and
9778 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9780 * record-btrace.c (record_btrace_resume): New.
9781 (record_btrace_wait): New.
9782 (init_record_btrace_ops): Initialize to_wait and to_resume.
9784 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9786 * record-btrace.c (record_btrace_xfer_partial)
9787 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9788 (record_btrace_allow_memory_access): New.
9789 (init_record_btrace_ops): Initialize new methods.
9790 * target.c (raw_memory_xfer_partial): Bail out if target reports
9791 that this memory is not available.
9793 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9795 * target.h (target_ops) <to_insert_breakpoint>
9796 <to_remove_breakpoint>: Add target_ops parameter.
9797 (forward_target_insert_breakpoint): New.
9798 (forward_target_remove_breakpoint): New.
9799 (memory_remove_breakpoint, memory_insert_breakpoint):
9800 Add target_ops parameter.
9801 * target.c (target_insert_breakpoint): Split into this and ...
9802 (forward_target_insert_breakpoint): ... this.
9803 (target_remove_breakpoint): Split into this and ...
9804 (forward_target_remove_breakpoint): ... this.
9805 (debug_to_insert_breakpoint): Add target_ops parameter.
9806 Call forward_target_insert_breakpoint.
9807 (debug_to_remove_breakpoint): Add target_ops parameter.
9808 Call forward_target_remove_breakpoint.
9809 (update_current_target): Do not inherit or default to_insert_breakpoint
9810 and to_remove_breakpoint.
9811 * corelow.c (ignore): Add target_ops parameter.
9812 * exec.c (ignore): Add target_ops parameter.
9813 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9814 Add target_ops parameter.
9815 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9816 Add target_ops parameter.
9817 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9818 Add target_ops parameter.
9819 * record-full.c (record_full_beneath_to_insert_breakpoint)
9820 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9821 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9822 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9823 (record_full_core_remove_breakpoint): Add target_ops parameter.
9825 (record_full_beneath_to_insert_breakpoint_ops)
9826 (record_full_beneath_to_remove_breakpoint_ops)
9827 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9828 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9829 tmp_to_remove_breakpoint_ops,
9830 record_full_beneath_to_insert_breakpoint_ops, and
9831 record_full_beneath_to_remove_breakpoint_ops.
9832 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9833 (m32r_remove_breakpoint): Add target_ops parameter.
9834 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9835 Add target_ops parameter.
9836 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9837 Add target_ops parameter.
9839 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9840 Markus Metzger <markus.t.metzger@intel.com>
9842 * record-btrace.c: Include frame-unwind.h.
9843 (record_btrace_frame_unwind_stop_reason)
9844 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9845 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9847 (init_record_btrace_ops): Install it.
9849 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9851 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9854 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9856 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9859 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9861 * frame-unwind.c: Include target.h.
9862 (frame_unwind_try_unwinder): New function with code from ...
9863 (frame_unwind_find_by_frame): ... here. New variable
9864 unwinder_from_target, call also target_get_unwinder)
9865 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9866 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9867 * target.h (struct target_ops): New fields to_get_unwinder and
9868 to_get_tailcall_unwinder.
9869 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9871 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9873 * record-btrace.c (record_btrace_fetch_registers)
9874 (record_btrace_store_registers)
9875 (record_btrace_to_prepare_to_store): New.
9876 (init_record_btrace_ops): Add the above.
9878 2014-01-16 Tom Tromey <tromey@redhat.com>
9880 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9881 * target.h (struct target_ops) <to_prepare_to_store>: Add
9883 (target_prepare_to_store): Add argument.
9884 * target.c (debug_to_prepare_to_store): Add argument.
9885 (update_current_target): Update.
9886 * remote.c (remote_prepare_to_store): Add 'self' argument.
9887 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9888 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9889 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9890 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9892 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9893 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9894 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9895 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9896 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9900 * btrace.h (replay) <replay>: New.
9901 (btrace_is_replaying): New.
9902 * btrace.c (btrace_clear): Free replay iterator.
9903 (btrace_is_replaying): New.
9904 * record-btrace.c (record_btrace_is_replaying): New.
9905 (record_btrace_info): Print insn number if replaying.
9906 (record_btrace_insn_history): Start at replay position.
9907 (record_btrace_call_history): Start at replay position.
9908 (init_record_btrace_ops): Init to_record_is_replaying.
9910 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9912 * record-btrace.c (record_btrace_insn_history_range): Include
9914 (record_btrace_insn_history_from): Adjust range.
9915 (record_btrace_call_history_range): Include
9917 (record_btrace_call_history_from): Adjust range.
9918 * NEWS: Announce changes.
9920 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9922 * record.h (enum record_print_flag)
9923 <record_print_indent_calls>: New.
9924 * record.c (get_call_history_modifiers): Recognize /c modifier.
9925 (_initialize_record): Document /c modifier.
9926 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9927 Reorder fields. Optionally indent the function name. Update
9929 * NEWS: Announce changes.
9931 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9933 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9935 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9937 * btrace.c (ftrace_new_function): Start counting at one.
9938 * record-btrace.c (record_btrace_info): Adjust number of calls
9940 * NEWS: Announce it.
9942 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9944 * record-btrace.c (btrace_call_history_insn_range): Print
9945 insn range as [begin, end].
9947 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9949 * btrace.h (struct btrace_func_link): New.
9950 (enum btrace_function_flag): New.
9951 (struct btrace_inst): Rename to ...
9952 (struct btrace_insn): ...this. Update all users.
9953 (struct btrace_func) <ibegin, iend>: Remove.
9954 (struct btrace_func_link): New.
9955 (struct btrace_func): Rename to ...
9956 (struct btrace_function): ...this. Update all users.
9957 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9958 (number, level, flags>: New.
9959 (struct btrace_insn_iterator): Rename to ...
9960 (struct btrace_insn_history): ...this.
9962 (struct btrace_insn_iterator, btrace_call_iterator): New.
9963 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9964 (struct btrace_target_info) <begin, end, level>
9965 <insn_history, call_history>: New.
9966 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9967 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9968 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9969 (btrace_call_number, btrace_call_begin, btrace_call_end)
9970 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9971 (btrace_find_function_by_number, btrace_set_insn_history)
9972 (btrace_set_call_history): New.
9973 * btrace.c (btrace_init_insn_iterator)
9974 (btrace_init_func_iterator, compute_itrace): Remove.
9975 (ftrace_print_function_name, ftrace_print_filename)
9976 (ftrace_skip_file): Change
9978 (ftrace_init_func): Remove.
9979 (ftrace_debug): Use new btrace_function fields.
9980 (ftrace_function_switched): Also consider gaining and
9981 losing symbol information).
9982 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9983 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9984 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9986 (ftrace_new_function): Move. Remove debug print.
9987 (ftrace_update_lines, ftrace_update_insns): New.
9988 (ftrace_update_function): Check for call, ret, and jump.
9989 (compute_ftrace): Renamed to ...
9990 (btrace_compute_ftrace): ...this. Rewritten to compute call
9992 (btrace_fetch, btrace_clear): Updated.
9993 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9994 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9995 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9996 (btrace_call_number, btrace_call_begin, btrace_call_end)
9997 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9998 (btrace_find_function_by_number, btrace_set_insn_history)
9999 (btrace_set_call_history): New.
10000 * record-btrace.c (require_btrace): Use new btrace thread
10002 (record_btrace_info, btrace_insn_history)
10003 (record_btrace_insn_history, record_btrace_insn_history_range):
10004 Use new btrace thread info fields and new iterator.
10005 (btrace_func_history_src_line): Rename to ...
10006 (btrace_call_history_src_line): ...this. Use new btrace
10007 thread info fields.
10008 (btrace_func_history): Rename to ...
10009 (btrace_call_history): ...this. Use new btrace thread info
10010 fields and new iterator.
10011 (record_btrace_call_history, record_btrace_call_history_range):
10012 Use new btrace thread info fields and new iterator.
10014 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10016 * frame.h (frame_id_build_unavailable_stack_special): New.
10017 * frame.c (frame_id_build_unavailable_stack_special): New.
10019 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10021 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10022 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10023 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10025 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10026 (i386_insn_is_jump, i386_jmp_p): New.
10027 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10028 insn_is_jump to gdbarch.
10029 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10030 * gdbarch.h: Regenerated.
10031 * gdbarch.c: Regenerated.
10032 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10033 (default_insn_is_jump): New.
10034 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10035 (default_insn_is_jump): New.
10037 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10039 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10041 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10042 (btrace_read_type) <btrace_read_new>: Change to ...
10043 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10045 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10047 * common/linux-btrace.c (linux_read_btrace): Free trace from
10048 previous iteration.
10050 2014-01-15 Doug Evans <dje@google.com>
10052 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10055 2014-01-15 Tom Tromey <tromey@redhat.com>
10057 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10058 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10059 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10060 (set_objfile_main_name): New function.
10061 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10062 language_of_main>: New fields.
10063 (set_objfile_main_name): Declare.
10064 * symtab.c (find_main_name): Loop over objfiles to find the main
10066 (set_main_name): Now static.
10067 (get_main_info): Add comment.
10068 * symtab.h (set_main_name): Don't declare.
10070 2014-01-15 Tom Tromey <tromey@redhat.com>
10072 * symtab.c (main_progspace_key): New global.
10073 (struct main_info): New.
10074 (name_of_main, language_of_main): Remove.
10075 (get_main_info, main_info_cleanup): New function.
10076 (set_main_name, main_name, main_language): Use get_main_info.
10077 (_initialize_symtab): Initialize main_progspace_key.
10079 2014-01-15 Tom Tromey <tromey@redhat.com>
10081 * dbxread.c (process_one_symbol): Update.
10082 * dwarf2read.c (read_partial_die): Update.
10083 * symfile.c (set_initial_language): Call main_language.
10084 * symtab.c (language_of_main): Now static.
10085 (set_main_name): Add 'lang' parameter.
10086 (find_main_name): Update.
10087 (main_language): New function.
10088 (symtab_observer_executable_changed): Update.
10089 * symtab.h (set_main_name): Update.
10090 (language_of_main): Remove.
10091 (main_language): Declare.
10093 2014-01-15 Tom Tromey <tromey@redhat.com>
10095 * symfile.c (init_entry_point_info): Use new "initialized" field.
10097 * objfiles.h (struct entry_point) <initialized>: New field.
10098 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10099 (struct objfile) <ei>: ...here. Remove.
10100 * objfiles.c (entry_point_address_query): Update.
10102 2014-01-15 Tom Tromey <tromey@redhat.com>
10104 * objfiles.c (entry_point_address_query): Relocate entry point
10106 (objfile_relocate1): Do not relocate entry point address.
10107 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10108 <the_bfd_section_index>: New field.
10109 * symfile.c (init_entry_point_info): Find the entry point's
10112 2014-01-15 Tom Tromey <tromey@redhat.com>
10114 * solib-frv.c (enable_break): Use entry_point_address_query.
10116 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10118 * NEWS: Add note on improved process record-replay on
10119 arm*-linux* targets.
10121 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10123 * arm-tdep.c (enum arm_record_result): New enum.
10124 (arm_record_unsupported_insn): New function.
10125 (arm_record_coproc_data_proc): Removed.
10126 (thumb2_record_ld_st_multiple): New function.
10127 (thumb2_record_ld_st_dual_ex_tbb): New function.
10128 (thumb2_record_data_proc_sreg_mimm): New function.
10129 (thumb2_record_ps_dest_generic): New function.
10130 (thumb2_record_branch_misc_cntrl): New function.
10131 (thumb2_record_str_single_data): New function.
10132 (thumb2_record_ld_mem_hints): New function.
10133 (thumb2_record_ld_word): New function.
10134 (thumb2_record_lmul_lmla_div): New function.
10135 (thumb2_record_decode_insn_handler): New function.
10136 (decode_insn): Add thumb32 instruction handlers.
10138 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10140 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10141 (struct arm_linux_record_tdep): Declare.
10142 (arm_canonicalize_syscall): New function.
10143 (arm_all_but_pc_registers_record): New function.
10144 (arm_linux_syscall_record): New function.
10145 (arm_linux_init_abi): Add syscall recording constructs.
10146 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10147 decoding. (arm_record_coproc_data_proc): Update arm syscall
10149 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10150 <arm_syscall_record>: New field.
10151 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10154 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10156 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10157 register for push instruction recording.
10159 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10161 * arm-tdep.c (thumb_record_misc): Update to correct logical
10162 error while recording ldm, ldmia and pop instructions.
10164 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10166 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10168 2014-01-15 Pedro Alves <palves@redhat.com>
10170 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10171 (go32_resume, go32_fetch_registers, store_register)
10172 (go32_store_registers, go32_prepare_to_store)
10173 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10174 (go32_create_inferior, go32_can_run, go32_terminal_init)
10175 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10178 2014-01-15 Tom Tromey <tromey@redhat.com>
10180 * target.h (async_callback_ftype): New typedef.
10181 (struct target_ops) <to_async>: Use it.
10183 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10185 * python/py-value.c (get_field_type): Remove unnecessary curly
10186 braces for single-statement if block.
10188 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10190 * python/py-type.c (convert_field): Add missing empty line
10191 after declarations.
10193 2014-01-14 Doug Evans <dje@google.com>
10195 * symfile.h (expand_symtabs_matching): Renamed from
10196 expand_partial_symbol_names. Update prototype.
10197 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10198 * symfile.c (expand_symtabs_matching): Renamed from
10199 expand_partial_symbol_names. New args file_matcher, kind.
10200 Rename arg fun to symbol_matcher.
10201 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10202 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10203 ada_expand_partial_symbol_name.
10204 (ada_make_symbol_completion_list): Update to call
10205 expand_symtabs_matching.
10206 (ada_add_global_exceptions): Call expand_symtabs_matching.
10207 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10208 call map_symbol_filenames.
10209 * symtab.c (sources_info): Update to call map_symbol_filenames.
10210 (search_symbols): Call expand_symtabs_matching.
10211 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10212 (default_make_symbol_completion_list_break_on): Update to call
10213 expand_symtabs_matching.
10214 (make_source_files_completion_list): Update to call
10215 map_symbol_filenames.
10217 2014-01-14 Doug Evans <dje@google.com>
10219 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10220 (expand_symtabs_symbol_matcher_ftype): New typedef.
10221 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10222 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10223 * symfile.c (expand_partial_symbol_names): Update to use
10224 expand_symtabs_symbol_matcher_ftype.
10225 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10226 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10227 Arg name_matcher renamed to symbol_matcher.
10228 * psymtab.c (recursively_search_psymtabs): Update to use
10229 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10231 (expand_symtabs_matching_via_partial): Update to use
10232 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10233 Arg name_matcher renamed to symbol_matcher.
10235 2014-01-14 Doug Evans <dje@google.com>
10237 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10238 (map_partial_symbol_filenames): Ditto.
10239 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10240 (map_partial_symbol_filenames): Ditto.
10241 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10242 (map_partial_symbol_filenames): Ditto.
10243 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10244 (map_partial_symbol_filenames): Ditto.
10245 * symtab.c: Delete #include "psymtab.h".
10247 2014-01-14 Pedro Alves <palves@redhat.com>
10248 Tom Tromey <tromey@redhat.com>
10250 * infrun.c (use_displaced_stepping): Use find_record_target
10251 instead of RECORD_IS_USED.
10252 (adjust_pc_after_break): Use record_full_is_used instead of
10254 * record-btrace.c (record_btrace_open): Call record_preopen
10255 instead of checking RECORD_IS_USED.
10256 * record-full.c (record_full_shortname)
10257 (record_full_core_shortname): New globals.
10258 (record_full_is_used): New function.
10259 (find_full_open): Call record_preopen instead of checking
10261 (init_record_full_ops): Set the target's shortname to
10262 record_full_shortname.
10263 (init_record_full_core_ops): Set the target's shortname to
10264 record_full_core_shortname.
10265 * record-full.h (record_full_is_used): Declare.
10266 * record.c (find_record_target): Make extern.
10267 (record_preopen): New function.
10268 * record.h (RECORD_IS_USED): Delete macro.
10269 (find_record_target, record_preopen): Declare functions.
10271 2014-01-14 Yao Qi <yao@codesourcery.com>
10273 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10274 'len''s type to ULONGEST.
10275 (core_xfer_shared_libraries_aix): Likewise.
10276 * gdbarch.c, gdbarch.h: Regenerated.
10277 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10278 Change type of 'len' to ULONGEST.
10279 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10280 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10282 2014-01-14 Yao Qi <yao@codesourcery.com>
10284 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10285 type of 'len' to ULONGEST.
10286 (linux_xfer_osdata_processgroups): Likewise.
10287 (linux_xfer_osdata_threads): Likewise.
10288 (linux_xfer_osdata_fds): Likewise.
10289 (linux_xfer_osdata_isockets): Likewise.
10290 (linux_xfer_osdata_shm): Likewise.
10291 (linux_xfer_osdata_sem): Likewise.
10292 (linux_xfer_osdata_msg): Likewise.
10293 (linux_common_xfer_osdata): Likewise.
10294 (struct osdata_type) <getter>: Likewise.
10295 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10298 2014-01-14 Yao Qi <yao@codesourcery.com>
10300 * target.h (target_xfer_partial_ftype): Update.
10301 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10303 * aix-thread.c (aix_thread_xfer_partial): Change type of
10304 argument 'len' to ULONGEST.
10305 * auxv.c (procfs_xfer_auxv): Likewise.
10306 (ld_so_xfer_auxv): Likewise.
10307 (memory_xfer_auxv): Likewise.
10308 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10309 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10310 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10311 * corelow.c (core_xfer_partial): Likewise.
10312 * ctf.c (ctf_xfer_partial): Likewise.
10313 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10315 (darwin_read_dyld_info): Likewise.
10316 (darwin_xfer_partial): Likewise.
10317 * exec.c (section_table_xfer_memory_partial): Likewise.
10318 (exec_xfer_partial): Likewise.
10319 * exec.h (section_table_xfer_memory_partial): Update
10321 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10322 instead of plongest.
10323 (gnu_xfer_partial): Likewise.
10324 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10325 (ia64_hpux_xfer_solib_got): Likewise.
10326 (ia64_hpux_xfer_partial): Likewise.
10327 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10328 * inf-ptrace.c (inf_ptrace_xfer_partial):
10329 * inf-ttrace.c (inf_ttrace_xfer_partial):
10330 * linux-nat.c (linux_xfer_siginfo): Likewise.
10331 (linux_nat_xfer_partial): Likewise.
10332 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10333 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10334 * monitor.c (monitor_xfer_memory): Likewise.
10335 (monitor_xfer_partial): Likewise.
10336 * procfs.c (procfs_xfer_partial): Likewise.
10337 * record-full.c (record_full_xfer_partial): Likewise.
10338 (record_full_core_xfer_partial): Likewise.
10339 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10340 instead of plongest.
10341 (gdbsim_xfer_partial): Likewise.
10342 * remote.c (remote_xfer_partial): Likewise.
10343 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10344 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10346 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10347 (rs6000_xfer_shared_libraries): Likewise.
10348 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10349 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10350 (sparc_xfer_partial): Likewise.
10351 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10352 (spu_xfer_partial): Likewise.
10353 * spu-multiarch.c (spu_xfer_partial): Likewise.
10354 * target.c (target_read_live_memory): Likewise.
10355 (memory_xfer_live_readonly_partial): Likewise.
10356 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10357 (target_xfer_partial, default_xfer_partial): Likewise.
10358 (current_xfer_partial): Likewise.
10359 * tracepoint.c (tfile_xfer_partial): Likewise.
10360 * windows-nat.c (windows_xfer_memory): Likewise. Call
10361 pulongest instead of plongest.
10362 (windows_xfer_partial): Likewise.
10363 (windows_xfer_shared_libraries): Likewise.
10365 2014-01-14 Yao Qi <yao@codesourcery.com>
10367 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10368 target_xfer_partial_ftype.
10370 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10374 * valops.c (value_struct_elt_bitpos): New function
10375 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10376 object to 'None' if the field name is an empty string ("").
10377 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10378 attribute to look for a field when 'name' is 'None'.
10379 (get_field_type): New function
10381 2014-01-13 Doug Evans <dje@google.com>
10384 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10385 (try_open_dwop_file): Ditto.
10386 * gdb_bfd.c: #include "vec.h".
10387 (bfdp): New typedef.
10388 (struct gdb_bfd_data): New member included_bfds.
10389 (gdb_bfd_unref): Unref all included bfds.
10390 (gdb_bfd_record_inclusion): New function.
10391 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10393 2014-01-13 Tom Tromey <tromey@redhat.com>
10395 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10397 2014-01-13 Tom Tromey <tromey@redhat.com>
10399 * defs.h (use_windows): Remove.
10400 * gdb.c (main): Update.
10401 * main.c (captured_main, gdb_main): Update.
10402 * main.h (struct captured_main_args) <use_windows>: Remove.
10403 * top.c (use_windows): Remove.
10405 2014-01-13 Tom Tromey <tromey@redhat.com>
10407 * defs.h (deprecated_flush_hook): Remove.
10409 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10412 * linux-thread-db.c (try_thread_db_load): Add parameter
10413 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10414 (try_thread_db_load_from_pdir_1): Move it there from here.
10415 (try_thread_db_load_from_sdir): Update caller.
10416 (try_thread_db_load_from_dir): Move it there from here.
10418 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10420 * regformats/regdat.sh: Always rewrite the register file.
10422 2014-01-13 Pedro Alves <palves@redhat.com>
10424 * Makefile.in (CHECK_HEADERS): New variable.
10425 (check-headers:): New rule.
10427 2014-01-13 Tom Tromey <tromey@redhat.com>
10429 * cli/cli-setshow.c (do_set_command): Update.
10430 * defs.h (deprecated_set_hook): Remove.
10431 * top.c (deprecated_set_hook): Remove.
10433 2014-01-13 Pedro Alves <palves@redhat.com>
10435 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10436 the tracepoint if the PC is a pseudo-register.
10438 2014-01-13 Tom Tromey <tromey@redhat.com>
10440 * defs.h (XCALLOC): Remove.
10441 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10442 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10443 * dwarf2loc.c (allocate_piece_closure): Likewise.
10444 * elfread.c (elf_symfile_segments): Likewise.
10445 (elf_symfile_segments): Likewise.
10446 * gdbtypes.c (copy_type_recursive): Likewise.
10447 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10448 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10449 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10451 * mt-tdep.c (mt_gdbarch_init): Likewise.
10452 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10454 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10455 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10456 * registry.c (registry_alloc_data): Likewise.
10457 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10458 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10459 * serial.c (serial_fdopen_ops): Likewise.
10460 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10462 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10463 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10466 2014-01-13 Tom Tromey <tromey@redhat.com>
10468 * defs.h (XMALLOC): Remove.
10469 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10470 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10471 * cli-out.c (struct ui_out *): Likewise.
10472 * cli/cli-dump.c (add_dump_command): Likewise.
10473 (add_dump_command): Likewise.
10474 * complaints.c (get_complaints): Likewise.
10475 (find_complaint): Likewise.
10476 * dwarf2-frame.c (execute_cfa_program): Likewise.
10477 * dwarf2read.c (abbrev_table_read_table): Likewise.
10478 * gdbarch.sh: Likewise.
10479 * gdbarch.c: Rebuild.
10480 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10481 * interps.c (interp_new): Likewise.
10482 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10483 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10484 * mi/mi-console.c (mi_console_file_new): Likewise.
10485 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10486 * mi/mi-out.c (mi_out_new): Likewise.
10487 * mi/mi-parse.c (mi_parse): Likewise.
10488 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10489 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10490 * observer.c (xalloc_observer_list_node): Likewise.
10491 * regcache.c (regcache_xmalloc_1): Likewise.
10492 * reggroups.c (reggroup_new): Likewise.
10493 (_initialize_reggroup): Likewise.
10494 * registry.c (register_data_with_cleanup): Likewise.
10495 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10496 * ser-base.c (serial_ttystate): Likewise.
10497 * ser-mingw.c (make_pipe_state): Likewise.
10498 * ser-pipe.c (pipe_open): Likewise.
10499 * serial.c (serial_open): Likewise.
10500 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10501 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10502 (tui_alloc_win_info): Likewise.
10503 (tui_add_content_elements): Likewise.
10504 * tui/tui-file.c (tui_file_new): Likewise.
10505 * tui/tui-out.c (tui_out_new): Likewise.
10506 * ui-file.c (mem_file_new): Likewise.
10507 * ui-out.c (push_level): Likewise.
10508 (make_cleanup_ui_out_end): Likewise.
10509 (append_header_to_list): Likewise.
10510 (ui_out_new): Likewise.
10511 * user-regs.c (user_reg_add_builtin): Likewise.
10513 2014-01-13 Tom Tromey <tromey@redhat.com>
10515 * defs.h (XZALLOC): Remove.
10516 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10517 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10518 (get_ada_tasks_inferior_data): Likewise.
10519 * auto-load.c (get_auto_load_pspace_data): Likewise.
10520 * auxv.c (get_auxv_inferior_data): Likewise.
10521 * bfd-target.c (target_bfd_reopen): Likewise.
10522 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10523 (deprecated_insert_raw_breakpoint): Likewise.
10524 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10525 * corelow.c (core_open): Likewise.
10526 * darwin-nat.c (darwin_check_new_threads): Likewise.
10527 (darwin_attach_pid): Likewise.
10528 * dummy-frame.c (dummy_frame_push): Likewise.
10529 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10530 * dwarf2loc.c (allocate_piece_closure): Likewise.
10531 * elfread.c (elf_symfile_segments): Likewise.
10532 * eval.c (ptrmath_type_p): Likewise.
10533 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10534 * gdbtypes.c (alloc_type_arch): Likewise.
10535 (alloc_type_instance): Likewise.
10536 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10537 * inf-child.c (inf_child_can_use_agent): Likewise.
10538 * inflow.c (get_inflow_inferior_data): Likewise.
10539 * infrun.c (save_infcall_suspend_state): Likewise.
10540 * jit.c (jit_reader_load): Likewise.
10541 (get_jit_objfile_data): Likewise.
10542 (get_jit_program_space_data): Likewise.
10543 (jit_object_open_impl): Likewise.
10544 (jit_symtab_open_impl): Likewise.
10545 (jit_block_open_impl): Likewise.
10546 (jit_frame_sniffer): Likewise.
10547 * linux-fork.c (add_fork): Likewise.
10548 * maint.c (make_command_stats_cleanup): Likewise.
10549 * objfiles.c (get_objfile_pspace_data): Likewise.
10550 * opencl-lang.c (struct lval_closure): Likewise.
10551 * osdata.c (osdata_start_osdata): Likewise.
10552 * progspace.c (new_address_space): Likewise.
10553 (add_program_space): Likewise.
10554 * remote-sim.c (get_sim_inferior_data): Likewise.
10555 * sh-tdep.c (sh_gdbarch_init): Likewise.
10556 * skip.c (Ignore): Likewise.
10557 (skip_delete_command): Likewise.
10558 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10559 (library_list_start_library): Likewise.
10560 (solib_aix_current_sos): Likewise.
10561 * solib-darwin.c (get_darwin_info): Likewise.
10562 (darwin_current_sos): Likewise.
10563 * solib-dsbt.c (get_dsbt_info): Likewise.
10564 * solib-ia64-hpux.c (new_so_list): Likewise.
10565 (ia64_hpux_get_solib_linkage_addr): Likewise.
10566 * solib-spu.c (append_ocl_sos): Likewise.
10567 (spu_current_sos): Likewise.
10568 * solib-svr4.c (get_svr4_info): Likewise.
10569 (svr4_keep_data_in_core): Likewise.
10570 (library_list_start_library): Likewise.
10571 (svr4_default_sos): Likewise.
10572 (svr4_read_so_list): Likewise.
10573 * solib-target.c (library_list_start_library): Likewise.
10574 (solib_target_current_sos): Likewise.
10575 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10576 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10577 * symfile.c (default_symfile_segments): Likewise.
10578 * target-descriptions.c (tdesc_data_init): Likewise.
10579 (tdesc_create_reg): Likewise.
10580 (struct tdesc_type *): Likewise.
10581 (tdesc_create_vector): Likewise.
10582 (tdesc_set_struct_size): Likewise.
10583 (struct tdesc_type *): Likewise.
10584 (tdesc_free_feature): Likewise.
10585 (tdesc_create_feature): Likewise.
10586 * windows-nat.c (windows_add_thread): Likewise.
10587 (windows_make_so): Likewise.
10588 * xml-support.c (gdb_xml_body_text): Likewise.
10589 (gdb_xml_create_parser_and_cleanup): Likewise.
10590 (xml_process_xincludes): Likewise.
10591 * xml-syscall.c (allocate_syscalls_info): Likewise.
10592 (syscall_create_syscall_desc): Likewise.
10594 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10596 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10597 function, with code from i386_stap_parse_special_token.
10598 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10599 (i386_stap_parse_special_token): Move code to the two functions
10600 above; simplify it.
10602 2014-01-09 Pedro Alves <palves@redhat.com>
10603 Hui Zhu <hui@codesourcery.com>
10606 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10607 bp_err_string. Don't mark the location shlib_disabled if the
10608 error thrown wasn't a generic or memory error. Catch errors
10609 thrown while inserting breakpoints in overlayed code. Output
10610 error message of software breakpoints.
10611 * remote.c (remote_insert_breakpoint): If this breakpoint has
10612 target-side commands but this stub doesn't support Z0 packets,
10613 throw NOT_SUPPORTED_ERROR error.
10614 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10615 * target.h (target_insert_breakpoint): Extend comment.
10616 (target_insert_hw_breakpoint): Add comment.
10618 2014-01-08 Pedro Alves <palves@redhat.com>
10620 * remote.c (remote_add_thread): Add threads silently if starting
10622 (remote_notice_new_inferior): If in all-stop, and starting up,
10623 don't call notice_new_inferior.
10624 (get_current_thread): New function, factored out from ...
10625 (add_current_inferior_and_thread): ... this. Adjust.
10626 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10627 found any thread, then select the remote's current thread as GDB's
10628 current thread too.
10630 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10632 * NEWS: Create a new section for the next release branch.
10633 Rename the section of the current branch, now that it has
10636 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10638 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10639 * version.in: Bump version to 7.7.50.DATE-cvs.
10641 2014-01-08 Yao Qi <yao@codesourcery.com>
10643 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10644 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10645 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10647 2014-01-08 Yao Qi <yao@codesourcery.com>
10649 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10650 return value of bfd_get_filename to symbol_file_add_from_bfd.
10652 2014-01-08 Pierre Muller <muller@sourceware.org>
10655 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10656 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10657 to prim_record_mininal_symbol_and_info.
10658 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10659 in call to prim_record_minimal_symbol_and_info.
10660 (read_pe_exported_syms): Set index field of section_data.
10662 2014-01-07 Andrew Pinski <apinski@cavium.com>
10664 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10665 * features/aarch64.c: Regenerate.
10667 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10669 * target.c (return_null): Define.
10670 (update_current_target): Use it instead of return_zero for
10671 functions that return a pointer.
10673 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10675 * source.c (add_path): Fix check for duplicated paths in the previously
10678 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10680 * ada-lang.c: Remove duplicated include statements.
10681 * alphabsd-nat.c: Ditto.
10682 * amd64-darwin-tdep.c: Ditto.
10683 * amd64fbsd-nat.c: Ditto.
10684 * auto-load.c: Ditto.
10686 * breakpoint.c: Ditto.
10687 * dbxread.c: Ditto.
10688 * fork-child.c: Ditto.
10689 * gdb_usleep.c: Ditto.
10690 * i386-darwin-tdep.c: Ditto.
10691 * i386fbsd-nat.c: Ditto.
10693 * inferior.c: Ditto.
10694 * jv-lang.c: Ditto.
10695 * linux-nat.c: Ditto.
10696 * linux-tdep.c: Ditto.
10697 * m68kbsd-nat.c: Ditto.
10698 * m68klinux-nat.c: Ditto.
10699 * microblaze-tdep.c: Ditto.
10700 * mips-linux-tdep.c: Ditto.
10701 * mn10300-tdep.c: Ditto.
10702 * nto-tdep.c: Ditto.
10703 * opencl-lang.c: Ditto.
10705 * printcmd.c: Ditto.
10706 * regcache.c: Ditto.
10707 * remote-m32r-sdi.c: Ditto.
10709 * symfile.c: Ditto.
10711 * tilegx-linux-nat.c: Ditto.
10712 * tilegx-tdep.c: Ditto.
10713 * tracepoint.c: Ditto.
10715 * vaxbsd-nat.c: Ditto.
10716 * windows-nat.c: Ditto.
10717 * xtensa-tdep.c: Ditto.
10719 2014-01-07 Yao Qi <yao@codesourcery.com>
10721 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10723 2014-01-07 Yao Qi <yao@codesourcery.com>
10724 Joel Brobecker <brobecker@adacore.com>
10726 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10727 (pdc_write_regs): Likewise.
10728 (fetch_regs_kernel_thread): Likewise.
10729 (store_regs_kernel_thread): Likewise.
10731 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10733 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10734 tagged type objects to their actual type.
10736 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10738 * ada-valprint.c (print_field_values): Add "language" parameter.
10739 Update calls to print_field_values and print_variant_part.
10740 Pass new parameter "language" in call to val_print instead
10741 of "current_language". Replace call to ada_val_print by call
10743 (print_variant_part): Add "language" parameter.
10744 (ada_val_print_struct_union): Update call to print_field_values.
10746 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10748 * ada-valprint.c (ui_memcpy): Delete.
10749 (ada_print_floating): Update documentation. Add empty line
10750 between between function documentation and implementation.
10751 Delete variable "buffer". Use ui_file_xstrdup in place of
10752 ui_file_put. Minor adjustments following this change.
10754 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10756 * ada-valprint.c (ada_val_print_string): New function,
10757 extracted from ada_val_print_array.
10758 (ada_val_print_array): Replace extracted code by call
10759 to ada_val_print_string followed by a return. Move
10760 "else" branch to the function's top block.
10762 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10764 * ada-valprint.c (ada_val_print_array): Move implementation
10765 down. Rename parameter "offset" and "val" into "offset_aligned"
10766 and "original_value" respectively. Add parameter "offset".
10768 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10770 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10771 re-organizing the code. Change the "???" message printed
10772 when target type is a TYPE_CODE_UNDEF into
10773 "<ref to undefined type>".
10775 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10777 * ada-valprint.c (print_record): Delete, implementation inlined...
10778 (ada_val_print_struct_union): ... here. Remove call to
10779 ada_check_typedef in inlined implementation.
10781 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10783 * ada-valprint.c (ada_val_print_gnat_array): New function,
10784 extracted from ada_val_print_1;
10785 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10786 (ada_val_print_flt, ada_val_print_struct_union)
10787 (ada_val_print_ref): Likewise.
10788 (ada_val_print_1): Delete variables i and elttype.
10789 Replace extracted-out code by call to corresponding
10792 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10794 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10796 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10798 * ada-valprint.c (ada_val_print_1): Replace calls to
10799 ada_val_print_1 by calls to val_print.
10801 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10803 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10804 Update calls to self accordingly. Replace calls to c_val_print
10805 by calls to val_print.
10807 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10809 * ada-valprint.c (print_record): Delete declaration.
10810 (adjust_type_signedness, ada_val_print_1): Likewise.
10811 (ada_val_print): Move function implementation down.
10812 (print_variant_part, print_field_values, print_record):
10813 Move function implementation up.
10815 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10817 * python/py-type.c (typy_get_name): New function.
10818 (type_object_getset): Add entry for attribute "name".
10819 * NEWS: Add entry mentioning this new attribute.
10821 2014-01-07 Yao Qi <yao@codesourcery.com>
10823 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10826 2014-01-07 Yao Qi <yao@codesourcery.com>
10828 * gnu-nat.c (info_port_rights): Add qualifier const to
10831 2014-01-07 Yao Qi <yao@codesourcery.com>
10833 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10835 2014-01-07 Yao Qi <yao@codesourcery.com>
10837 * gnu-nat.c (make_inf) Update declaration.
10838 (make_inf): Make it static.
10839 (inf_set_traced): Likewise.
10840 (inf_port_to_thread, inf_task_died_status): Likewise.
10842 2014-01-07 Yao Qi <yao@codesourcery.com>
10844 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10846 2014-01-07 Yao Qi <yao@codesourcery.com>
10848 * gnu-nat.c (_initialize_gnu_nat): Declare.
10850 2014-01-07 Yao Qi <yao@codesourcery.com>
10852 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10854 (struct gdbarch_info) <byte_order>: Change type to
10856 <byte_order_for_code>: Likewise.
10857 * gdbarch.c, gdbarch.h: Regenerated.
10859 2014-01-06 Sasha Smundak <asmundak@google.com>
10861 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10863 2014-01-06 Tom Tromey <tromey@redhat.com>
10865 * doublest.c (convert_doublest_to_floatformat): Use const, not
10867 * somread.c (som_symtab_read): Likewise.
10869 2014-01-07 Hui Zhu <hui@codesourcery.com>
10871 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10872 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10873 (gdb_bfd_fopen): Ditto.
10874 (gdb_bfd_openr): Ditto.
10875 (gdb_bfd_openw): Ditto.
10876 (gdb_bfd_openr_iovec): Ditto.
10877 (gdb_bfd_fdopenr): Ditto.
10878 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10879 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10881 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10883 * symfile-mem.c (symbol_file_add_from_memory): Removed
10884 gdb_bfd_stash_filename.
10886 2014-01-03 Doug Evans <dje@google.com>
10888 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10891 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10893 Update year range in copyright notice of all files.
10895 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10897 * top.c (print_gdb_version): Set copyright year to 2014.
10899 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10901 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10903 For older changes see ChangeLog-2013.
10909 version-control: never