1 2014-07-29 Tom Tromey <tromey@redhat.com>
3 * target.c (target_is_pushed): Simplify.
5 2014-07-29 Joel Brobecker <brobecker@adacore.com>
9 2014-07-29 Yao Qi <yao@codesourcery.com>
12 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
14 2014-07-28 Doug Evans <xdje42@gmail.com>
17 * guile/scm-param.c (pascm_parameter_defined_p): New function.
18 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
21 2014-07-28 Will Newton <will.newton@linaro.org>
23 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
24 (THUMB2_SET_R7_SIGRETURN2): Likewise.
25 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
26 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
27 (THUMB2_EABI_SYSCALL): Likewise.
28 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
30 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
31 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
33 2014-07-27 Doug Evans <xdje42@gmail.com>
35 * guile/scm-param.c (pascm_print_param_smob): Fix output.
37 2014-07-27 Doug Evans <xdje42@gmail.com>
39 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
41 2014-07-26 Ludovic Courtès <ludo@gnu.org>
42 Doug Evans <xdje42@gmail.com>
45 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
46 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
47 * configure.ac: Try to use guild to compile an scm file, if it fails
48 then disable guile support.
49 * configure: Regenerate.
50 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
52 (GUILE_COMPILED_FILES): New variable.
54 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
55 (stamp-guile): Compile scm files.
56 * guile/guile.c (boot_guile_support): New function.
57 (standard_throw_args_p): New function.
58 (print_standard_throw_error, print_throw_error): New functions.
59 (handle_boot_error): New function.
60 (initialize_scheme_side): Rewrite to call boot_guile_support.
61 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
62 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
64 2014-07-26 Ludovic Courtès <ludo@gnu.org>
65 Doug Evans <xdje42@gmail.com>
68 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
69 * guile/lib/gdb/support.scm: New file.
70 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
71 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
73 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
75 (%assert-type): Ditto, and renamed to assert-type.
76 (%exception-print-style): Delete.
78 2014-07-26 Doug Evans <xdje42@gmail.com>
81 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
82 * configure: Regenerate.
83 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
85 (PYTHON_FILES): New variable.
86 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
87 (GUILE_FILES): New variable.
88 (stamp-python, install-python, uninstall-python): Handle empty
90 (stamp-guile, install-guile, uninstall-guile): Ditto.
92 2014-07-26 Doug Evans <xdje42@gmail.com>
95 * guile/lib/gdb.scm (pretty-printers): Export.
96 (set-pretty-printers!): Export.
97 * guile/lib/gdb/printing.scm (gdb module): Update.
98 (prepend-pretty-printer!, append-pretty-printer!): Update.
99 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
100 (pretty_printer_list_var): Delete.
101 (pretty_printer_list): New static global.
102 (gdbscm_pretty_printers): New function.
103 (gdbscm_set_pretty_printers_x): New function.
104 (ppscm_find_pretty_printer_from_gdb): Update.
105 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
106 (gdbscm_initialize_pretty_printers): Update.
108 2014-07-26 Doug Evans <xdje42@gmail.com>
111 * configure.ac: Add check for header gc/gc.h.
112 Add check for function setenv.
113 * configure: Regenerate.
114 * config.in: Regenerate.
115 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
117 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
119 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
120 variation in gdbarch matching.
122 2014-07-25 Tom Tromey <tromey@redhat.com>
124 * exec.c (using_exec_ops): Remove.
125 (exec_close_1): Update. Remove extraneous block, reindent.
126 (add_target_sections): Use target_is_pushed.
128 2014-07-25 Pedro Alves <palves@redhat.com>
130 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
131 * monitor.c (monitor_create_inferior): Likewise.
132 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
133 * remote-sim.c (gdbsim_create_inferior): Likewise.
134 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
135 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
136 * windows-nat.c (do_initial_windows_stuff): Likewise.
138 2014-07-25 Pedro Alves <palves@redhat.com>
140 * NEWS: Mention signal passing and "signal" command changes.
141 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
143 * breakpoint.c (until_break_command): Adjust clear_proceed_status
145 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
146 * infcmd.c (proceed_thread_callback, continue_1, step_once)
147 (jump_command): Adjust clear_proceed_status call.
148 (signal_command): Warn if other thread that are resumed have
149 signals that will be delivered. Adjust clear_proceed_status call.
150 (until_next_command, finish_command)
151 (proceed_after_attach_callback, attach_command_post_wait)
152 (attach_command): Adjust clear_proceed_status call.
153 * infrun.c (proceed_after_vfork_done): Likewise.
154 (proceed_after_attach_callback): Adjust comment.
155 (clear_proceed_status_thread): Clear stop_signal if not in pass
157 (clear_proceed_status_callback): Delete.
158 (clear_proceed_status): New 'step' parameter. Only clear the
159 proceed status of threads the command being prepared is about to
161 (proceed): If passed in an explicit signal, override stop_signal
162 with it. Don't pass the last stop signal to the thread we're
164 (init_wait_for_inferior): Adjust clear_proceed_status call.
165 (switch_back_to_stepped_thread): Clear the signal if it should not
167 * infrun.h (clear_proceed_status): New 'step' parameter.
168 (user_visible_resume_ptid): Add comment.
169 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
170 signal is in pass state.
171 * remote.c (append_pending_thread_resumptions): Likewise.
172 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
174 2014-07-25 Tom Tromey <tromey@redhat.com>
176 * target.h (target_stopped_data_address)
177 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
180 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
182 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
184 (avr_pointer_to_address): Likewise.
186 2014-07-24 Tom Tromey <tromey@redhat.com>
188 * monitor.c (compile_pattern): Update.
189 * target.h (struct target_ops) <to_shortname, to_longname,
192 2014-07-24 Tom Tromey <tromey@redhat.com>
194 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
195 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
196 (add_info_alias, add_com): Make "doc" const.
197 (print_doc_line): Make "str" const.
198 (delete_cmd): Update.
199 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
200 (print_doc_line): Update.
201 * cli/cli-script.c (document_command): Update.
202 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
203 (add_com, add_info, add_info_alias): Update.
204 * guile/scm-cmd.c (cmdscm_destroyer): Update.
205 * python/py-cmd.c (cmdpy_destroyer): Update.
207 2014-07-24 Tom Tromey <tromey@redhat.com>
209 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
210 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
211 (help_cmd_list): Constify.
212 (lookup_cmd): Update.
213 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
215 (help_cmd_list, apropos_cmd): Update.
216 * cli/cli-script.c (show_user): Update.
217 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
218 * cli/cli-setshow.h (cmd_show_list): Update.
219 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
220 (cmd_show_list): Update.
221 * guile/scm-cmd.c (cmdscm_destroyer): Update.
222 * python/py-cmd.c (cmdpy_destroyer): Update.
224 2014-07-24 Tom Tromey <tromey@redhat.com>
226 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
227 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
229 * command.h (deprecate_cmd): Update.
230 * maint.c (maintenance_do_deprecate): Add casts.
232 2014-07-24 Tom Tromey <tromey@redhat.com>
234 * cli/cli-decode.c (help_cmd): Make parameter "const".
235 * cli/cli-decode.h (help_cmd): Update.
237 2014-07-24 Tom Tromey <tromey@redhat.com>
239 * stack.c (up_silently_base, down_silently_base): Make argument
242 2014-07-24 Tom Tromey <tromey@redhat.com>
244 * solib.c (solib_add): Make "pattern" const.
245 * solib.h (solib_add): Update.
247 2014-07-24 Tom Tromey <tromey@redhat.com>
249 * remote.c (remote_serial_open, print_packet, putpkt)
250 (putpkt_binary): Constify.
251 * remote.h (putpkt): Update.
253 2014-07-24 Tom Tromey <tromey@redhat.com>
255 * monitor.c (monitor_open): Make "args" const.
256 * monitor.h (monitor_open): Update.
258 2014-07-24 Tom Tromey <tromey@redhat.com>
260 * maint.c (match_bfd_flags): Make "string" const.
261 (print_bfd_section_info): Remove casts.
262 (print_objfile_section_info): Make "string" const.
264 2014-07-24 Tom Tromey <tromey@redhat.com>
266 * inf-child.c (inf_child_open_target): Make "arg" const.
267 * inf-child.h (inf_child_open_target): Update.
269 2014-07-24 Tom Tromey <tromey@redhat.com>
271 * environ.c (unset_in_environ): Make "var" const.
272 * environ.h (unset_in_environ): Update.
274 2014-07-24 Tom Tromey <tromey@redhat.com>
276 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
278 (scan_filename_with_cleanup): Likewise.
279 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
280 Make arguments const.
281 (restore_command): Update.
283 2014-07-24 Pedro Alves <palves@redhat.com>
285 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
287 2014-07-24 Tom Tromey <tromey@redhat.com>
288 Gary Benson <gbenson@redhat.com>
290 * nat/linux-ptrace.c (additional_flags): New global.
291 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
292 additional_flags; don't check GDBSERVER.
293 (linux_ptrace_set_additional_flags): New function.
294 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
296 * linux-nat.c (_initialize_linux_nat): Call
297 linux_ptrace_set_additional_flags.
299 2014-07-24 Tom Tromey <tromey@redhat.com>
301 * make-target-delegates (munge_type, write_debugmethod): New
303 (debug_names): New global.
304 ($TARGET_DEBUG_PRINTER): New global.
305 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
307 Write debug methods. Generate init_debug_target.
308 * target-debug.h: New file.
309 * target-delegates.c: Rebuild.
310 * target.c: Include target-debug.h.
311 (debug_target): Hoist definition.
312 (target_kill, target_get_section_table, target_memory_map)
313 (target_flash_erase, target_flash_done, target_detach)
314 (target_disconnect, target_wait, target_resume)
315 (target_pass_signals, target_program_signals, target_follow_fork)
316 (target_mourn_inferior, target_search_memory)
317 (target_thread_address_space, target_close)
318 (target_find_new_threads, target_core_of_thread)
319 (target_verify_memory, target_insert_mask_watchpoint)
320 (target_remove_mask_watchpoint): Remove targetdebug code.
321 (debug_to_post_attach, debug_to_prepare_to_store)
322 (debug_to_files_info, debug_to_insert_breakpoint)
323 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
324 (debug_to_region_ok_for_hw_watchpoint)
325 (debug_to_can_accel_watchpoint_condition)
326 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
327 (debug_to_watchpoint_addr_within_range)
328 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
329 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
330 (debug_to_terminal_init, debug_to_terminal_inferior)
331 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
332 (debug_to_terminal_save_ours, debug_to_terminal_info)
333 (debug_to_load, debug_to_post_startup_inferior)
334 (debug_to_insert_fork_catchpoint)
335 (debug_to_remove_fork_catchpoint)
336 (debug_to_insert_vfork_catchpoint)
337 (debug_to_remove_vfork_catchpoint)
338 (debug_to_insert_exec_catchpoint)
339 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
340 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
341 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
342 (setup_target_debug): Call init_debug_target.
343 * target.h (TARGET_DEBUG_PRINTER): New macro.
344 (struct target_ops) <to_resume, to_wait, to_pass_signals,
345 to_program_signals>: Use TARGET_DEBUG_PRINTER.
347 2014-07-24 Gary Benson <gbenson@redhat.com>
349 * exceptions.h (throw_vfatal): Renamed to...
350 (throw_vquit): New declaration.
351 (throw_quit): Likewise.
352 * exceptions.c (throw_vfatal): Renamed to...
353 (throw_vquit): New function.
354 (throw_quit): Likewise.
355 (throw_error): Call throw_verror rather than throw_it.
356 * utils.h (vfatal): Removed.
358 * utils.c (vfatal): Removed.
360 (internal_verror): Replaced call to fatal with call to throw_quit.
361 (quit): Replaced calls to fatal with calls to throw_quit.
363 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
365 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
368 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
370 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
371 less than zero in conditional expression.
373 2014-07-23 Tom Tromey <tromey@redhat.com>
375 * make-target-delegates ($ARGS_PART): Match trailing close paren.
376 ($INTRO_PART): Don't match whitespace.
377 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
379 ($METHOD): Add $METHOD_TRAILER.
381 (scan_target_h): New sub.
382 Change main loop not to collect state.
383 * target-delegates.c: Rebuild.
385 2014-07-23 Gary Benson <gbenson@redhat.com>
387 * cp-support.c (gdb_demangle): Fix build on systems without
390 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
392 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
393 for reference entry value target data value.
395 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
397 * stack.c (read_frame_arg): Verify value_optimized_out before calling
398 value_available_contents_eq.
400 2014-07-22 Pedro Alves <palves@redhat.com>
402 * value.c (allocate_optimized_out_value): Don't mark value as
405 2014-07-22 Jiong Wang <jiong.wang@arm.com>
407 * MAINTAINERS (Write After Approval): Update my email address.
409 2014-07-20 Doug Evans <dje@google.com>
412 * remote.c (putpkt_binary): Add text to error message.
414 2014-07-20 Yao Qi <yao@codesourcery.com>
416 * eval.c: Remove "Chill" from comments.
417 * gdbtypes.h: Likewise.
418 * symtab.h: Likewise.
420 2014-07-20 Yao Qi <yao@codesourcery.com>
422 * std-operator.def: Update comments to TERNOP_SLICE.
424 2014-07-20 Yao Qi <yao@codesourcery.com>
426 * std-operator.def: Remove BINOP_RANGE.
427 * breakpoint.c (watchpoint_exp_is_const): Update.
428 * expprint.c (dump_subexp_body_standard): Likewise.
429 * eval.c (init_array_element): Remove dead code.
430 (evaluate_subexp_standard): Likewise.
432 2014-07-20 Yao Qi <yao@codesourcery.com>
434 * std-operator.def: Remove BINOP_IN.
435 * breakpoint.c (watchpoint_exp_is_const): Update.
436 * eval.c (evaluate_subexp_standard): Likewise.
437 * expprint.c (dump_subexp_body_standard): Likewise.
439 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
441 * microblaze-tdep.c (microblaze_register_names): Add
442 the rshr and rslr register names.
443 (microblaze_gdbarch_init): Use of tdesc_has_registers.
444 Use of tdesc_find_feature. Use of tdesc_data_alloc.
445 Use of tdesc_numbered_register. Use of
446 microblaze_register_g_packet_guesses. Use of
447 tdesc_use_registers. Use of set_gdbarch_register_type.
448 (microblaze_register_g_packet_guesses): New.
449 * microblaze-tdep.h (microblaze_reg_num): Add
450 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
451 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
452 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
453 * features/microblaze-core.xml: New file.
454 * features/microblaze-stack-protect.xml: New file.
455 * features/microblaze-with-stack-protect.c: New file.
456 * features/microblaze-with-stack-protect.xml: New file.
457 * features/microblaze.xml: New file.
458 * features/microblaze.c: New file.
459 * features/Makefile (microblaze-with-stack-protect): Add
460 microblaze-with-stack-protect microblaze and microblaze-expedite.
461 * regformats/microblaze-with-stack-protect.dat: New file.
462 * regformats/microblaze.dat: New file.
463 * doc/gdb.texinfo (MicroBlaze Features): Added.
465 2014-07-18 Tom Tromey <tromey@redhat.com>
467 * exec.c (exec_ops): Now static.
468 * exec.h (exec_ops): Don't declare.
470 2014-07-18 Tom Tromey <tromey@redhat.com>
472 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
473 to find_target_beneath.
474 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
476 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
478 2014-07-18 Tom Tromey <tromey@redhat.com>
481 * utils.c (quit): Use target_supports_terminal_ours.
482 * target.h (target_supports_terminal_ours): Declare.
483 * target.c (target_supports_delete_record): Don't check
484 to_delete_record against NULL.
485 (target_supports_terminal_ours): New function.
487 2014-07-18 Tom Tromey <tromey@redhat.com>
490 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
491 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
492 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
493 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
494 * windows-nat.c (windows_xfer_partial): Always delegate.
495 * record-btrace.c (record_btrace_xfer_partial): Simplify
497 (record_btrace_fetch_registers, record_btrace_store_registers)
498 (record_btrace_prepare_to_store, record_btrace_resume)
499 (record_btrace_wait, record_btrace_find_new_threads)
500 (record_btrace_thread_alive): Likewise.
501 * procfs.c (procfs_xfer_partial): Always delegate.
502 * corelow.c (core_xfer_partial): Always delegate.
503 * sol-thread.c (sol_find_new_threads): Simplify delegation.
505 2014-07-18 Tom Tromey <tromey@redhat.com>
507 * exec.c (exec_make_note_section): Move earlier.
509 2014-07-17 Doug Evans <dje@google.com>
512 * maint.c (count_symtabs_and_blocks): Handle NULL
513 current_program_space.
514 (report_command_stats): Check global enabled flag in addition to
515 recorded enabled flag.
516 (make_command_stats_cleanup): Handle msg_type == 0, startup.
518 2014-07-16 Pedro Alves <palves@redhat.com>
520 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
522 2014-07-16 Tom Tromey <tromey@redhat.com>
524 * target.h (struct target_ops) <to_delete_record>: Reformat
527 2014-07-16 Tom Tromey <tromey@redhat.com>
529 * target-delegates.c: Rebuild.
531 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
533 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
534 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
535 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
536 (avr_pointer_to_address): Likewise.
537 (avr_address_class_type_flags): New function.
538 (avr_address_class_type_flags_to_name): Likewise.
539 (avr_address_class_name_to_type_flags): Likewise.
540 (avr_gdbarch_init): Set address_class_type_flags,
541 address_class_type_flags_to_name and
542 address_class_name_to_type_flags.
544 2014-07-15 Pedro Alves <palves@redhat.com>
546 * linux-nat.c (kill_callback): Save errno and work with saved
549 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
551 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
553 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
555 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
556 breakpoint support correctly.
558 2014-07-14 Pedro Alves <palves@redhat.com>
560 * utils.c (prompt_for_continue): Call target_terminal_ours.
562 2014-07-14 Pedro Alves <palves@redhat.com>
564 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
565 catch_errors. Don't re-enable stdin or notify observers where,
567 (fetch_inferior_event_wrapper): Delete.
569 2014-07-14 Pedro Alves <palves@redhat.com>
572 * top.c: Include "inf-loop.h".
573 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
575 (gdb_readline_wrapper_cleanup): Make the target async again, if it
577 (gdb_readline_wrapper): Store whether the target is async, and
580 2014-07-14 Pedro Alves <palves@redhat.com>
583 * top.c (gdb_readline_wrapper_line): Tweak comment.
584 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
585 the input handler callback.
587 2014-07-14 Pedro Alves <palves@redhat.com>
590 * main.c: Include event-top.h.
591 (handle_command_errors): New function.
592 (catch_command_errors, catch_command_errors_const): Use it.
594 2014-07-14 Pedro Alves <palves@redhat.com>
596 * exceptions.c (catch_command_errors, catch_command_errors_const):
598 * exceptions.h (catch_command_errors_ftype)
599 (catch_command_errors_const_ftype): Moved to main.c.
600 (catch_command_errors, catch_command_errors_const): Delete
602 * main.c (catch_command_errors_ftype)
603 (catch_command_errors_const_ftype): Moved here from exceptions.h.
604 (catch_command_errors, catch_command_errors_const)): Moved here
605 from exceptions.c and make static.
607 2014-07-14 Pedro Alves <palves@redhat.com>
609 * exceptions.c (print_any_exception): Delete.
610 (catch_exceptions_with_msg): Use exception_print instead of
612 (catch_errors): Use exception_fprintf instead of
614 (catch_command_errors, catch_command_errors_const): Use
615 exception_print instead of print_any_exception.
617 2014-07-14 Pedro Alves <palves@redhat.com>
619 * infcall.c (run_inferior_call): Set 'sync_execution' while
620 running the inferior call.
622 2014-07-14 Pedro Alves <palves@redhat.com>
624 * value.c (value_contents_equal): Delete function.
625 * value.h (value_contents_equal): Delete declaration.
627 2014-07-14 Tom Tromey <tromey@redhat.com>
630 * gdbtypes.c (is_dynamic_type_internal): New function, from
632 (is_dynamic_type): Rewrite.
633 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
634 (resolve_dynamic_struct): Likewise.
635 (resolve_dynamic_type_internal): New function, from
636 resolve_dynamic_type.
637 (resolve_dynamic_type): Rewrite.
639 2014-07-14 Tom Tromey <tromey@redhat.com>
641 * target.c (target_require_runnable): Also check record_stratum.
644 2014-07-11 Yao Qi <yao@codesourcery.com>
646 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
647 thumb_instruction_restores_sp return true.
649 2014-07-11 Yao Qi <yao@codesourcery.com>
651 * arm-tdep.c (thumb_instruction_restores_sp): New function.
652 (thumb_in_function_epilogue_p): Call
653 thumb_instruction_restores_sp.
655 2014-07-11 Yao Qi <yao@codesourcery.com>
657 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
659 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
661 2014-07-11 Gary Benson <gbenson@redhat.com>
663 * amd64-linux-nat.c (gdbcore.h): Remove include.
664 (regset.h): Likewise.
665 (nat/linux-btrace.h): Likewise.
666 (btrace.h): Likewise.
667 (gdb_assert.h): Likewise.
668 (string.h): Likewise.
669 (sys/uio.h): Likewise.
670 (sys/debugreg.h): Likewise.
671 (sys/syscall.h): Likewise.
672 (sys/procfs.h): Likewise.
673 (sys/user.h): Likewise.
674 (asm/ptrace.h): Likewise.
675 (i386-nat.h): Likewise.
676 * i386-linux-nat.c (i386-nat.h): Likewise.
677 (regset.h): Likewise.
678 (target.h): Likewise.
679 (linux-nat.h): Likewise.
680 (nat/linux-btrace.h): Likewise.
681 (btrace.h): Likewise.
682 (gdb_assert.h): Likewise.
683 (string.h): Likewise.
684 (sys/uio.h): Likewise.
685 (sys/user.h): Likewise.
686 (sys/procfs.h): Likewise.
687 (sys/reg.h): Likewise.
688 (sys/debugreg.h): Likewise.
689 (ORIG_EAX): Remove definition.
691 2014-07-11 Gary Benson <gbenson@redhat.com>
693 * i386-linux-nat.h: New file.
694 * x86-linux-nat.h: Likewise.
695 * x86-linux-nat.c: Likewise.
696 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
697 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
698 * config/i386/linux64.mh (NATDEPFILES): Likewise.
699 * amd64-linux-nat.c (x86-linux-nat.h): New include.
700 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
701 (PTRACE_SETREGSET): Likewise.
702 (arch_lwp_info): Now in x86-linux-nat.c.
703 (have_ptrace_getregset): Now in x86-linux-nat.h.
704 (x86_linux_dr_get): Now in x86-linux-nat.c.
705 (x86_linux_dr_set): Likewise.
706 (x86_linux_dr_get_addr): Likewise.
707 (x86_linux_dr_get_control): Likewise.
708 (x86_linux_dr_get_status): Likewise.
709 (update_debug_registers_callback): Likewise.
710 (x86_linux_dr_set_control): Likewise.
711 (x86_linux_dr_set_addr): Likewise.
712 (x86_linux_prepare_to_resume): Likewise.
713 (x86_linux_new_thread): Likewise.
714 (x86_linux_new_fork): Likewise.
715 (x86_linux_get_thread_area): Likewise.
716 (super_post_startup_inferior): Likewise.
717 (x86_linux_child_post_startup_inferior): Likewise.
718 (AMD64_LINUX_USER64_CS): Likewise.
719 (AMD64_LINUX_X32_DS): Likewise.
720 (x86_linux_read_description): Likewise.
721 (x86_linux_enable_btrace): Likewise.
722 (x86_linux_disable_btrace): Likewise.
723 (x86_linux_teardown_btrace): Likewise.
724 (x86_linux_read_btrace): Likewise.
725 (x86_linux_create_target): Likewise.
726 (x86_linux_add_target): Likewise.
727 * i386-linux-nat.c (x86-linux-nat.h): New include.
728 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
729 (PTRACE_SETREGSET): Likewise.
730 (arch_lwp_info): Now in x86-linux-nat.c.
731 (have_ptrace_getregset): Now in x86-linux-nat.h.
732 (x86_linux_dr_get): Now in x86-linux-nat.c.
733 (x86_linux_dr_set): Likewise.
734 (x86_linux_dr_get_addr): Likewise.
735 (x86_linux_dr_get_control): Likewise.
736 (x86_linux_dr_get_status): Likewise.
737 (update_debug_registers_callback): Likewise.
738 (x86_linux_dr_set_control): Likewise.
739 (x86_linux_dr_set_addr): Likewise.
740 (x86_linux_prepare_to_resume): Likewise.
741 (x86_linux_new_thread): Likewise.
742 (x86_linux_new_fork): Likewise.
743 (x86_linux_get_thread_area): Likewise.
744 (super_post_startup_inferior): Likewise.
745 (x86_linux_child_post_startup_inferior): Likewise.
746 (AMD64_LINUX_USER64_CS): Likewise.
747 (AMD64_LINUX_X32_DS): Likewise.
748 (x86_linux_read_description): Likewise.
749 (x86_linux_enable_btrace): Likewise.
750 (x86_linux_disable_btrace): Likewise.
751 (x86_linux_teardown_btrace): Likewise.
752 (x86_linux_read_btrace): Likewise.
753 (x86_linux_create_target): Likewise.
754 (x86_linux_add_target): Likewise.
756 2014-07-11 Gary Benson <gbenson@redhat.com>
758 * amd64-linux-nat.c: Comment and whitespace changes.
759 * i386-linux-nat.c: Comment and whitespace changes.
761 2014-07-11 Gary Benson <gbenson@redhat.com>
763 * amd64-linux-nat.c (x86_linux_create_target): New function.
764 (x86_linux_add_target): Likewise.
765 (_initialize_amd64_linux_nat): Delegate to the above new functions.
766 * i386-linux-nat.c (x86_linux_create_target): New function.
767 (x86_linux_add_target): Likewise.
768 (_initialize_i386_linux_nat): Delegate to the above new functions.
770 2014-07-11 Gary Benson <gbenson@redhat.com>
772 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
773 (ps_get_thread_area): Delegate to the above in 32-bit mode.
774 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
775 (ps_get_thread_area): Delegate to the above.
777 2014-07-11 Gary Benson <gbenson@redhat.com>
779 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
780 x86_linux_read_description. All uses updated. amd64-specific
781 code conditionalized. Conditionalized i386-specific code added.
782 Redundant cast removed.
783 * i386-linux-nat.c (i386_linux_read_description): Renamed to
784 x86_linux_read_description. All uses updated. i386-specific
785 code conditionalized. Conditionalized amd64-specific code added.
786 One sizeof replaced with the actual type it is describing.
788 2014-07-11 Gary Benson <gbenson@redhat.com>
790 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
791 x86_linux_dr_get. All uses updated.
792 (amd64_linux_dr_set): Renamed to
793 x86_linux_dr_set. All uses updated.
794 (amd64_linux_dr_get_addr): Renamed to
795 x86_linux_dr_get_addr. All uses updated.
796 (amd64_linux_dr_get_control): Renamed to
797 x86_linux_dr_get_control. All uses updated.
798 (amd64_linux_dr_get_status): Renamed to
799 x86_linux_dr_get_status. All uses updated.
800 (amd64_linux_dr_set_control): Renamed to
801 x86_linux_dr_set_control. All uses updated.
802 (amd64_linux_dr_set_addr): Renamed to
803 x86_linux_dr_set_addr. All uses updated.
804 (amd64_linux_prepare_to_resume): Renamed to
805 x86_linux_prepare_to_resume. All uses updated.
806 (amd64_linux_new_thread): Renamed to
807 x86_linux_new_thread. All uses updated.
808 (amd64_linux_new_fork): Renamed to
809 x86_linux_new_fork. All uses updated.
810 (amd64_linux_child_post_startup_inferior): Renamed to
811 x86_linux_child_post_startup_inferior. All uses updated.
812 (amd64_linux_enable_btrace): Renamed to
813 x86_linux_enable_btrace. All uses updated.
814 (amd64_linux_disable_btrace): Renamed to
815 x86_linux_disable_btrace. All uses updated.
816 (amd64_linux_teardown_btrace): Renamed to
817 x86_linux_teardown_btrace. All uses updated.
818 (amd64_linux_read_btrace): Renamed to
819 x86_linux_read_btrace. All uses updated.
820 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
821 x86_linux_dr_get. All uses updated.
822 (i386_linux_dr_set): Renamed to
823 x86_linux_dr_set. All uses updated.
824 (i386_linux_dr_get_addr): Renamed to
825 x86_linux_dr_get_addr. All uses updated.
826 (i386_linux_dr_get_control): Renamed to
827 x86_linux_dr_get_control. All uses updated.
828 (i386_linux_dr_get_status): Renamed to
829 x86_linux_dr_get_status. All uses updated.
830 (i386_linux_dr_set_control): Renamed to
831 x86_linux_dr_set_control. All uses updated.
832 (i386_linux_dr_set_addr): Renamed to
833 x86_linux_dr_set_addr. All uses updated.
834 (i386_linux_prepare_to_resume): Renamed to
835 x86_linux_prepare_to_resume. All uses updated.
836 (i386_linux_new_thread): Renamed to
837 x86_linux_new_thread. All uses updated.
838 (i386_linux_new_fork): Renamed to
839 x86_linux_new_fork. All uses updated.
840 (i386_linux_child_post_startup_inferior): Renamed to
841 x86_linux_child_post_startup_inferior. All uses updated.
842 (i386_linux_enable_btrace): Renamed to
843 x86_linux_enable_btrace. All uses updated.
844 (i386_linux_disable_btrace): Renamed to
845 x86_linux_disable_btrace. All uses updated.
846 (i386_linux_teardown_btrace): Renamed to
847 x86_linux_teardown_btrace. All uses updated.
848 (i386_linux_read_btrace): Renamed to
849 x86_linux_read_btrace. All uses updated.
851 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
853 * remote.c (extended_remote_post_attach): New function.
854 (init_extended_remote_ops): Install it as to_post_attach method.
856 2014-07-09 Pedro Alves <palves@redhat.com>
858 * infcmd.c (attach_command_post_wait): Don't call
859 target_terminal_inferior here.
860 (attach_command): Call it here instead.
862 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
864 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
866 * c-varobj.c (c_is_path_expr_parent): New function, moved core
867 from varobj.c, with additional checks.
868 (c_varobj_ops): Fill in is_path_expr_parent field.
869 (cplus_varobj_ops): Fill in is_path_expr_parent field.
870 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
872 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
874 (varobj_default_is_path_expr_parent): New function.
875 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
876 (varobj_default_is_path_expr_parent): Declare new function.
878 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
880 * infcmd.c (finish_backward): Turn internal error into normal error.
882 2014-07-07 Pedro Alves <palves@redhat.com>
885 * remote.c (async_handle_remote_sigint)
886 (async_handle_remote_sigint_twice): Call
887 gdb_call_async_signal_handler instead of
888 mark_async_signal_handler.
890 2014-07-07 Tom Tromey <tromey@redhat.com>
892 * target-delegates.c: Rebuild.
893 * target.c (target_info_record): Remove.
894 * record.c (info_record_command): Unconditionally call
896 * target.h (struct target_ops) <to_info_record>: Use
897 TARGET_DEFAULT_IGNORE.
898 (target_info_record): Remove.
900 2014-07-07 Tom Tromey <tromey@redhat.com>
902 * target.h (struct target_ops) <to_get_thread_local_address>: Use
903 TARGET_DEFAULT_NORETURN.
904 * target.c (generic_tls_error): New function.
905 (target_translate_tls_address): Don't search target stack.
906 * target-delegates.c: Rebuild.
907 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
909 * linux-thread-db.c (thread_db_get_thread_local_address):
910 Unconditionally call beneath target.
912 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
914 * cli/cli-logging.c (pop_output_files): Assign targerr to
917 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
919 * MAINTAINERS (Write After Approval): Update my email address.
921 2014-07-02 Gary Benson <gbenson@redhat.com>
923 * proc-service.c (ps_xfer_memory): Update comment.
924 (ps_pstop): Remove unused function.
925 (ps_pcontinue): Likewise.
926 (ps_lstop): Likewise.
927 (ps_lcontinue): Likewise.
928 (ps_lgetxregsize): Likewise.
929 (ps_lgetxregs): Likewise.
930 (ps_lsetxregs): Likewise.
932 (ps_ptread): Likewise.
933 (ps_ptwrite): Likewise.
935 2014-07-01 Mark Wielaard <mjw@redhat.com>
937 * dwarf2read.c (add_array_cv_type): New function.
938 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
939 (read_tag_volatile_type): Likewise.
941 2014-07-01 Tom Tromey <tromey@redhat.com>
943 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
944 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
945 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
946 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
947 * command.h (cmd_cfunc_ftype): Move earlier.
948 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
949 (add_com, add_info): Use cmd_cfunc_ftype.
951 2014-06-30 Tom Tromey <tromey@redhat.com>
953 * symtab.c (operator_chars): Make parameters and return type
955 (file_matches): Make "files" const.
956 (struct search_symbols_data) <files>: Now const.
957 (search_symbols): Make "regexp" and "files" parameters const.
959 (symtab_symbol_info): Remove cast.
960 (rbreak_command): Update.
961 * symtab.h (search_symbols): Update.
963 2014-06-27 Yao Qi <yao@codesourcery.com>
965 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
966 Change parameter type to 'struct thread_info *'. Caller
968 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
970 * dummy-frame.c (struct dummy_frame_id): New.
971 (dummy_frame_id_eq): New function.
972 (struct dummy_frame) <id>: Change its type to 'struct
974 (dummy_frame_push): Add parameter ptid and save it in
976 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
978 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
980 (lookup_dummy_frame): Change parameter type to 'struct
981 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
982 instead of frame_id_eq.
983 (dummy_frame_pop): Add parameter ptid. Callers updated.
984 Update comments. Compose dummy_frame_id and pass it to
986 (dummy_frame_discard): Add parameter ptid.
987 (dummy_frame_sniffer): Compose dummy_frame_id and call
988 dummy_frame_id_eq instead of frame_id_eq.
989 (fprint_dummy_frames): Print ptid.
990 * dummy-frame.h: Remove comments.
991 (dummy_frame_push): Add ptid in declaration.
992 (dummy_frame_pop, dummy_frame_discard): Likewise.
994 2014-06-26 Tom Tromey <tromey@redhat.com>
996 * cli/cli-cmds.c (error_no_arg): Make "why" const.
997 * command.h (error_no_arg): Update.
999 2014-06-26 Tom Tromey <tromey@redhat.com>
1001 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1002 (do_show_command): Make "arg" const.
1003 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1005 2014-06-26 Tom Tromey <tromey@redhat.com>
1007 * record-full.c (record_full_get_bookmark): Make "args" const.
1008 (record_full_goto_bookmark): Make "raw_bookmark" const.
1009 * record.c (record_goto): New function.
1010 (cmd_record_goto): Use it. Now static.
1011 * record.h (record_goto): Declare.
1012 (cmd_record_goto): Remove declaration.
1013 * target-delegates.c: Rebuild.
1014 * target.h (struct target_ops) <to_get_bookmark,
1015 to_goto_bookmark>: Make parameter const.
1017 2014-06-26 Tom Tromey <tromey@redhat.com>
1019 * defs.h (generic_load): Update.
1020 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1021 * monitor.c (monitor_load): Make "args" const.
1022 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1023 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1025 (mips_load): Make "file" const.
1026 * remote-sim.c (gdbsim_load): Make "args" const.
1027 * remote.c (remote_load): Make "name" const.
1028 * symfile.c (generic_load): Make "args" const.
1029 * target-delegates.c: Rebuild.
1030 * target.c (target_load): Make "arg" const.
1031 (debug_to_load): Make "args" const.
1032 * target.h (struct target_ops) <to_load>: Make parameter const.
1033 (target_load): Update.
1035 2014-06-26 Tom Tromey <tromey@redhat.com>
1038 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1039 (dwarf2_physname, read_partial_die)
1040 (guess_partial_die_structure_name, fixup_partial_die)
1041 (guess_full_die_structure_name, anonymous_struct_prefix)
1042 (dwarf2_name): Use per-BFD obstack.
1044 2014-06-26 Yao Qi <yao@codesourcery.com>
1046 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1047 dummyframe and this_id into inner block below.
1049 2014-06-26 Yao Qi <yao@codesourcery.com>
1051 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1052 with "signal_pass[0]" in the initialization of signal_pass.
1054 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1056 * record-btrace.c (record_btrace_generating_corefile)
1057 (record_btrace_prepare_to_generate_core)
1058 (record_btrace_done_generating_core): New.
1059 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1060 (record_btrace_store_registers, record_btrace_prepare_to_store):
1061 Forward request when generating a core file.
1062 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1063 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1064 to_done_generating_core.
1066 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1068 * target.h (target_ops) <to_prepare_to_generate_core>
1069 <to_done_generating_core>: New.
1070 (target_prepare_to_generate_core, target_done_generating_core): New.
1071 * target.c (target_prepare_to_generate_core)
1072 (target_done_generating_core): New.
1073 * target-delegates.c: Regenerate.
1074 * gcore.c: (write_gcore_file): Rename to ...
1075 (write_gcore_file_1): ...this.
1076 (write_gcore_file): Call target_prepare_to_generate_core
1077 and target_done_generating_core.
1079 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1081 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1082 * gcore.c (write_gcore_file): Free memory returned from
1083 make_corefile_notes.
1084 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1085 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1087 2014-06-24 Yao Qi <yao@codesourcery.com>
1089 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1090 (arm_linux_init_abi): Set skip_trampoline_code with
1091 gdbarch_skip_trampoline_code instead of
1092 find_solib_trampoline_target.
1094 2014-06-24 Yao Qi <yao@codesourcery.com>
1096 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1097 arm_skip_bx_reg returns non-zero.
1099 2014-06-24 Yao Qi <yao@codesourcery.com>
1101 * arm-tdep.c (arm_skip_bx_reg): New function.
1102 (arm_skip_stub): Call arm_skip_bx_reg.
1104 2014-06-23 Don Breazeal <donb@codesourcery.com>
1106 * MAINTAINERS: Add myself as write-after-approval maintainer.
1108 2014-06-23 Pedro Alves <palves@redhat.com>
1110 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1111 DR_CONTROL before setting DR0..DR3.
1112 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1113 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1114 bits of DR_CONTROL related to the debug register slot being
1115 disabled. If all slots are vacant, clear local slowdown as well,
1116 and assert DR_CONTROL is 0.
1118 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1120 * python/lib/gdb/command/xmethods.py
1121 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1122 current progspace only if the string "progspace" matches LOCUS_RE.
1124 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1126 Fix --with-system-readline with readline-6.3 patch 5.
1127 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1128 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1131 2014-06-20 Tom Tromey <tromey@redhat.com>
1133 * dwarf2read.c (dw2_get_real_path): Use correct type in
1135 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1137 2014-06-20 Gary Benson <gbenson@redhat.com>
1139 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1140 * common/glibc_thread_db.h: Likewise.
1141 * common/i386-cpuid.h: Likewise.
1142 * common/i386-gcc-cpuid.h: Likewise.
1143 * common/linux-btrace.h: Likewise.
1144 * common/linux-osdata.h: Likewise.
1145 * common/linux-procfs.h: Likewise.
1146 * common/linux-ptrace.h: Likewise.
1147 * common/mips-linux-watch.h: Likewise.
1148 * common/linux-btrace.c: Moved to nat.
1149 * common/linux-osdata.c: Likewise.
1150 * common/linux-procfs.c: Likewise.
1151 * common/linux-ptrace.c: Likewise.
1152 * common/mips-linux-watch.c: Likewise.
1153 * nat/gdb_thread_db.h: Moved from common.
1154 * nat/glibc_thread_db.h: Likewise.
1155 * nat/i386-cpuid.h: Likewise.
1156 * nat/i386-gcc-cpuid.h: Likewise.
1157 * nat/linux-btrace.c: Likewise.
1158 * nat/linux-btrace.h: Likewise.
1159 * nat/linux-osdata.c: Likewise.
1160 * nat/linux-osdata.h: Likewise.
1161 * nat/linux-procfs.c: Likewise.
1162 * nat/linux-procfs.h: Likewise.
1163 * nat/linux-ptrace.c: Likewise.
1164 * nat/linux-ptrace.h: Likewise.
1165 * nat/mips-linux-watch.c: Likewise.
1166 * nat/mips-linux-watch.h: Likewise.
1167 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1168 (object file files): Reordered.
1169 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1170 of glibc_thread_db.h.
1172 2014-06-20 Gary Benson <gbenson@redhat.com>
1174 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1175 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1176 (i386_dr_low): Likewise.
1177 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1178 (i386_dr_low_set_addr): Likewise.
1179 (i386_dr_low_get_addr): Likewise.
1180 (i386_dr_low_can_set_control): Likewise.
1181 (i386_dr_low_set_control): Likewise.
1182 (i386_dr_low_get_control): Likewise.
1183 (i386_dr_low_get_status): Likewise.
1184 (i386_get_debug_register_length): Likewise.
1185 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1186 (i386_dr_low): Likewise.
1187 * nat/i386-dregs.c (i386-low.h): Remove include.
1188 (i386-nat.h): Likewise.
1189 (nat/i386-dregs.h): New include.
1190 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1191 (i386_dr_low_set_addr): Likewise.
1192 (i386_dr_low_get_addr): Likewise.
1193 (i386_dr_low_can_set_control): Likewise.
1194 (i386_dr_low_set_control): Likewise.
1195 (i386_dr_low_get_control): Likewise.
1196 (i386_dr_low_get_status): Likewise.
1197 (i386_get_debug_register_length): Likewise.
1198 (debug_hw_points): Likewise.
1200 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1202 * Makefile.in (SFILES): Add d-exp.y.
1203 (YYFILES): Add d-exp.c.
1204 (YYOBJ): Add d-exp.o.
1205 (local-maintainer-clean): Delete d-exp.c.
1206 * d-exp.y: New file.
1207 * d-lang.h (d_parse): New declaration.
1208 (d_error): New declaration.
1209 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1210 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1211 PREC_ORDER operators.
1212 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1214 2014-06-19 Yao Qi <yao@codesourcery.com>
1216 * gdbthread.h (any_running): Remove the declaration.
1217 * thread.c (any_running): Remove.
1219 2014-06-19 Yao Qi <yao@codesourcery.com>
1221 * gdbthread.h (struct thread_info) <state>: Change its type to
1222 'enum thread_state'. Update comments.
1224 2014-06-19 Pedro Alves <palves@redhat.com>
1226 * gdbthread.h (ALL_THREADS): Delete.
1227 (ALL_NON_EXITED_THREADS): New macro.
1228 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1229 instead of ALL_THREADS.
1230 * infrun.c (find_thread_needs_step_over)
1231 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1232 instead of ALL_THREADS.
1233 * record-btrace.c (record_btrace_open)
1234 (record_btrace_stop_recording, record_btrace_close)
1235 (record_btrace_is_replaying, record_btrace_resume)
1236 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1237 * remote.c (append_pending_thread_resumptions): Likewise.
1238 * thread.c (thread_apply_all_command): Likewise.
1240 2014-06-19 Gary Benson <gbenson@redhat.com>
1242 * i386-nat.c (i386_stopped_by_watchpoint):
1243 Use i386_dr_stopped_by_watchpoint.
1244 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1245 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1247 2014-06-19 Gary Benson <gbenson@redhat.com>
1249 * nat/i386-dregs.c: New file.
1250 * Makefile.in (i386-dregs.o): New rule.
1251 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1252 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1253 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1254 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1255 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1256 * config/i386/go32.mh (NATDEPFILES): Likewise.
1257 * config/i386/linux.mh (NATDEPFILES): Likewise.
1258 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1259 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1260 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1261 * i386-nat.h (debug_hw_points): New declaration.
1262 * i386-nat.c (breakpoint.h): Remove include.
1263 (command.h): Likewise.
1264 (target.h): Likewise.
1265 (gdb_assert.h): Likewise.
1266 (debug_hw_points): Made nonstatic.
1267 (debug_printf): Now in i386-dregs.c.
1268 (TARGET_HAS_DR_LEN_8): Likewise.
1269 (DR_CONTROL_SHIFT): Likewise.
1270 (DR_CONTROL_SIZE): Likewise.
1271 (DR_RW_EXECUTE): Likewise.
1272 (DR_RW_WRITE): Likewise.
1273 (DR_RW_READ): Likewise.
1274 (DR_RW_IORW): Likewise.
1275 (DR_LEN_1): Likewise.
1276 (DR_LEN_2): Likewise.
1277 (DR_LEN_4): Likewise.
1278 (DR_LEN_8): Likewise.
1279 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1280 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1281 (DR_ENABLE_SIZE): Likewise.
1282 (DR_LOCAL_SLOWDOWN): Likewise.
1283 (DR_GLOBAL_SLOWDOWN): Likewise.
1284 (DR_CONTROL_RESERVED): Likewise.
1285 (I386_DR_CONTROL_MASK): Likewise.
1286 (I386_DR_VACANT): Likewise.
1287 (I386_DR_LOCAL_ENABLE): Likewise.
1288 (I386_DR_GLOBAL_ENABLE): Likewise.
1289 (I386_DR_DISABLE): Likewise.
1290 (I386_DR_SET_RW_LEN): Likewise.
1291 (I386_DR_GET_RW_LEN): Likewise.
1292 (I386_DR_WATCH_HIT): Likewise.
1293 (i386_wp_op_t): Likewise.
1294 (i386_show_dr): Likewise.
1295 (i386_length_and_rw_bits): Likewise.
1296 (i386_insert_aligned_watchpoint): Likewise.
1297 (i386_remove_aligned_watchpoint): Likewise.
1298 (i386_handle_nonaligned_watchpoint): Likewise.
1299 (i386_update_inferior_debug_regs): Likewise.
1300 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1301 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1302 (i386_region_ok_for_watchpoint):
1303 Use i386_dr_region_ok_for_watchpoint.
1304 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1306 2014-06-19 Gary Benson <gbenson@redhat.com>
1308 * i386-nat.c (i386_insert_hw_breakpoint): Use
1309 i386_insert_watchpoint.
1310 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1312 2014-06-19 Gary Benson <gbenson@redhat.com>
1314 * i386-nat.c (i386_dr_show): Renamed to
1315 i386_show_dr and made static. All uses updated.
1316 (i386_dr_length_and_rw_bits): Renamed to
1317 i386_length_and_rw_bits and made static.
1319 (i386_dr_insert_aligned_watchpoint): Renamed to
1320 i386_insert_aligned_watchpoint and made static.
1322 (i386_dr_remove_aligned_watchpoint): Renamed to
1323 i386_remove_aligned_watchpoint and made static.
1325 (i386_dr_update_inferior_debug_regs): Renamed to
1326 i386_update_inferior_debug_regs and made static.
1328 * nat/i386-dregs.h (i386_dr_show): Removed.
1329 (i386_dr_length_and_rw_bits): Likewise.
1330 (i386_dr_insert_aligned_watchpoint): Likewise.
1331 (i386_dr_remove_aligned_watchpoint): Likewise.
1332 (i386_dr_update_inferior_debug_regs): Likewise.
1334 2014-06-19 Gary Benson <gbenson@redhat.com>
1336 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1337 * configure: Regenerate.
1338 * config.in: Likewise.
1339 * main.c (signal.h): New include.
1340 (setup_alternate_signal_stack): New function.
1341 (captured_main): Call the above.
1342 * cp-support.c (signal.h): New include.
1343 (catch_demangler_crashes): New flag.
1344 (SIGJMP_BUF): New define.
1345 (SIGSETJMP): Likewise.
1346 (SIGLONGJMP): Likewise.
1347 (gdb_demangle_jmp_buf): New static global.
1348 (gdb_demangle_attempt_core_dump): Likewise.
1349 (gdb_demangle_signal_handler): New function.
1350 (gdb_demangle): If catch_demangler_crashes is set, install the
1351 above signal handler before calling bfd_demangle, and restore
1352 the original signal handler afterwards. Display the offending
1353 symbol and call demangler_warning the first time a segmentation
1355 (_initialize_cp_support): New maint set/show command.
1357 2014-06-19 Gary Benson <gbenson@redhat.com>
1359 * utils.h (resource_limit_kind): New enum.
1360 (can_dump_core): New declaration.
1361 (warn_cant_dump_core): Likewise.
1362 (dump_core): Likewise.
1363 * utils.c (dump_core): Made nonstatic. Added new
1364 parameter "limit_kind".
1365 (can_dump_core): Made nonstatic. Moved printing code to...
1366 (warn_cant_dump_core): New function.
1367 (can_dump_core_warn): Likewise.
1368 (internal_vproblem): Replace calls to can_dump_core with
1369 calls to can_dump_core_warn. Supply new argument to each.
1371 2014-06-19 Gary Benson <gbenson@redhat.com>
1373 * utils.h (demangler_vwarning): New declaration.
1374 (demangler_warning): Likewise.
1375 * utils.c (struct internal_problem)
1376 <user_settable_should_quit>: New field.
1377 <user_settable_should_dump_core>: Likewise
1378 (internal_error_problem): Add values for above new fields.
1379 (internal_warning_problem): Likewise.
1380 (demangler_warning_problem): New static global.
1381 (demangler_vwarning): New function.
1382 (demangler_warning): Likewise.
1383 (add_internal_problem_command): Selectively add commands.
1384 (_initialize_utils): New internal problem command.
1385 * maint.c (maintenance_demangler_warning): New function.
1386 (_initialize_maint_cmds): New command.
1388 2014-06-18 Tom Tromey <tromey@redhat.com>
1390 * f-valprint.c (info_common_command_for_block): Update.
1391 * symtab.h (struct general_symbol_info) <common_block>: Now
1394 2014-06-18 Tom Tromey <tromey@redhat.com>
1396 * symtab.h (struct symtab) <blockvector>: Now const.
1397 * ada-lang.c (ada_add_global_exceptions): Update.
1398 * buildsym.c (augment_type_symtab): Update.
1399 * dwarf2read.c (dw2_lookup_symbol): Update.
1400 * jit.c (finalize_symtab): Update.
1401 * jv-lang.c (add_class_symtab_symbol): Update.
1402 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1404 * objfiles.c (objfile_relocate1): Update.
1405 * psymtab.c (lookup_symbol_aux_psymtabs)
1406 (maintenance_check_psymtabs): Update.
1407 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1409 * spu-tdep.c (spu_catch_start): Update.
1410 * symmisc.c (dump_symtab_1): Update.
1411 * symtab.c (lookup_global_symbol_from_objfile)
1412 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1413 (basic_lookup_transparent_type_quick)
1414 (basic_lookup_transparent_type, find_pc_sect_symtab)
1415 (find_pc_sect_line, search_symbols): Update.
1416 * block.c (find_block_in_blockvector): Make "bl" const.
1417 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1419 (blockvector_contains_pc): Make "bv" const.
1420 (block_for_pc_sect): Update.
1421 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1422 (blockvector_contains_pc): Update.
1423 * breakpoint.c (resolve_sal_pc): Update.
1424 * inline-frame.c (block_starting_point_at): Update.
1426 2014-06-18 Tom Tromey <tromey@redhat.com>
1428 * completer.c (complete_line): Make "line_buffer" const.
1429 * completer.h (complete_line): Update.
1431 2014-06-18 Tom Tromey <tromey@redhat.com>
1433 * symtab.c (add_macro_name): Remove unneeded cast.
1435 2014-06-18 Tom Tromey <tromey@redhat.com>
1437 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1438 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1440 2014-06-18 Tom Tromey <tromey@redhat.com>
1442 * probe.c (info_probes_for_ops): Make "arg" const.
1443 * probe.h (info_probes_for_ops): Update.
1445 2014-06-18 Tom Tromey <tromey@redhat.com>
1447 * varobj.c (varobj_create): Update.
1448 * valops.c (value_of_this): Update.
1449 * tracepoint.c (add_local_symbols, scope_info): Update.
1450 * symtab.h (struct general_symbol_info) <block>: Now const.
1451 * symtab.c (skip_prologue_sal)
1452 (default_make_symbol_completion_list_break_on)
1453 (skip_prologue_using_sal): Update.
1454 * stack.h (iterate_over_block_locals)
1455 (iterate_over_block_local_vars): Update.
1456 * stack.c (print_frame_args): Update.
1457 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1459 (get_selected_block): Make return type const.
1460 * python/py-frame.c (frapy_block): Update.
1461 * python/py-block.c (gdbpy_block_for_pc): Update.
1462 * p-exp.y (%union) <bval>: Now const.
1463 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1464 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1465 * m2-exp.y (%union) <bval>: Now const.
1466 * linespec.c (get_current_search_block): Make return type const.
1467 (create_sals_line_offset, find_label_symbols): Update.
1468 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1470 (block_starting_point_at): Make "block" const.
1471 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1472 (check_exception_resume): Update.
1473 * guile/scm-frame.c (gdbscm_frame_block): Update.
1474 * guile/scm-block.c (gdbscm_lookup_block): Update.
1475 * frame.h (get_frame_block): Update.
1476 (get_selected_block): Make return type const.
1477 * frame.c (frame_id_inner): Update.
1478 * f-valprint.c (info_common_command_for_block)
1479 (info_common_command): Update.
1480 * dwarf2loc.c (dwarf2_find_location_expression)
1481 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1482 (locexpr_describe_location_piece): Update.
1483 * c-exp.y (%union) <bval>: Now const.
1484 * breakpoint.c (resolve_sal_pc): Update.
1485 * blockframe.c (get_frame_block):Make return type const.
1486 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1487 (block_innermost_frame): Update.
1488 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1489 (block_for_pc, block_for_pc_sect): Update.
1490 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1492 (block_for_pc_sect, block_for_pc): Make return type const.
1493 * ax-gdb.c (gen_expr): Update.
1494 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1495 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1496 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1497 (ada_read_var_value): Update.
1498 * ada-exp.y (struct name_info) <block>: Now const.
1500 (block_lookup): Constify.
1502 2014-06-18 Gary Benson <gbenson@redhat.com>
1504 * nat/i386-dregs.h: New file.
1505 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1506 * i386-nat.h (i386-dregs.h): New include.
1507 (DR_FIRSTADDR): Now in i386-dregs.h.
1508 (DR_LASTADDR): Likewise.
1509 (DR_NADDR): Likewise.
1510 (DR_STATUS): Likewise.
1511 (DR_CONTROL): Likewise.
1512 (i386_debug_reg_state): Likewise.
1513 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1515 2014-06-18 Don Breazeal <donb@codesourcery.com>
1517 * breakpoint.c (set_longjmp_breakpoint): Call
1518 momentary_breakpoint_from_master with additional argument.
1519 (set_longjmp_breakpoint_for_call_dummy): Call
1520 momentary_breakpoint_from_master with additional argument.
1521 (set_std_terminate_breakpoint): Call
1522 momentary_breakpoint_from_master with additional argument.
1523 (momentary_breakpoint_from_master): Add argument to function
1524 definition and use it to initialize structure member flag.
1525 (clone_momentary_breakpoint): Call
1526 momentary_breakpoint_from_master with additional argument.
1527 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1528 member flags set in momentary_breakpoint_from_master.
1530 2014-06-18 Gary Benson <gbenson@redhat.com>
1532 * i386-nat.c (i386_show_dr): Renamed to
1533 i386_dr_show and made nonstatic. All uses updated.
1534 (i386_length_and_rw_bits): Renamed to
1535 i386_dr_length_and_rw_bits and made nonstatic.
1537 (i386_insert_aligned_watchpoint): Renamed to
1538 i386_dr_insert_aligned_watchpoint and made nonstatic.
1540 (i386_remove_aligned_watchpoint): Renamed to
1541 i386_dr_remove_aligned_watchpoint and made nonstatic.
1543 (i386_update_inferior_debug_regs): Renamed to
1544 i386_dr_update_inferior_debug_regs and made nonstatic.
1547 2014-06-18 Gary Benson <gbenson@redhat.com>
1549 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1550 (i386_dr_low_can_set_control): Likewise.
1551 (i386_dr_low_set_addr): Likewise.
1552 (i386_dr_low_set_control): Likewise.
1553 (i386_dr_low_get_addr): Likewise.
1554 (i386_dr_low_get_status): Likewise.
1555 (i386_dr_low_get_control): Likewise.
1556 (i386_insert_aligned_watchpoint): Use new macros.
1557 (i386_update_inferior_debug_regs): Likewise.
1558 (i386_stopped_data_address): Likewise.
1560 2014-06-18 Gary Benson <gbenson@redhat.com>
1562 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1563 New parameter. All uses updated.
1565 2014-06-18 Gary Benson <gbenson@redhat.com>
1567 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1570 2014-06-18 Gary Benson <gbenson@redhat.com>
1572 * i386-nat.c (debug_printf): New macro.
1573 (i386_get_debug_register_length): Likewise.
1574 (TARGET_HAS_DR_LEN_8): Use above macro.
1575 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1576 and printf_unfiltered. Use phex to format values.
1578 2014-06-18 Gary Benson <gbenson@redhat.com>
1580 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1583 2014-06-18 Gary Benson <gbenson@redhat.com>
1585 * i386-nat.c: Comment changes.
1587 2014-06-18 Gary Benson <gbenson@redhat.com>
1589 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1591 2014-06-18 Gary Benson <gbenson@redhat.com>
1593 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1594 (i386_insert_aligned_watchpoint): Likewise.
1595 (i386_remove_aligned_watchpoint): Likewise.
1596 (i386_handle_nonaligned_watchpoint): Likewise.
1598 2014-06-18 Gary Benson <gbenson@redhat.com>
1600 * i386-nat.c: Whitespace changes.
1602 2014-06-17 Samuel Bronson <naesten@gmail.com>
1604 * MAINTAINERS: Update Roland McGrath's email address.
1605 Thanks to Sergio Durigan Junior for pointing out that he left
1606 Red Hat a while ago, and giving me a current address.
1608 2014-06-17 Tom Tromey <tromey@redhat.com>
1610 * utils.h (savestring): Remove declaration.
1612 2014-06-17 Tom Tromey <tromey@redhat.com>
1614 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1616 2014-06-16 Keith Seitz <keiths@redhat.com>
1619 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1620 to update the varobj if inferior_ptid is null_ptid.
1622 2014-06-16 Tom Tromey <tromey@redhat.com>
1624 * target.h (struct target_ops) <to_info_proc>: Make parameter
1626 (target_info_proc): Update.
1627 * target.c (target_info_proc): Make "args" const.
1628 * procfs.c (procfs_info_proc): Update.
1629 * linux-tdep.c (linux_info_proc): Update.
1630 (linux_core_info_proc_mappings): Make "args" const.
1631 (linux_core_info_proc): Update.
1632 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1633 * gdbarch.c: Rebuild.
1634 * gdbarch.h: Rebuild.
1635 * corelow.c (core_info_proc): Update.
1637 2014-06-16 Tom Tromey <tromey@redhat.com>
1639 * target.h (struct target_ops) <to_disconnect>: Make parameter
1641 (target_disconnect): Update.
1642 * target.c (target_disconnect): Make "args" const.
1643 * target-delegates.c: Rebuild.
1644 * remote.c (remote_disconnect): Update.
1645 * record.h (record_disconnect): Update.
1646 * record.c (record_disconnect): Update.
1647 * inf-child.c (inf_child_disconnect): Update.
1649 2014-06-16 Tom Tromey <tromey@redhat.com>
1651 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1652 * target.c (debug_to_rcmd, default_rcmd): Update.
1653 * target-delegates.c: Rebuild.
1654 * remote.c (remote_rcmd): Update.
1655 * monitor.c (monitor_rcmd): Update.
1657 2014-06-16 Pedro Alves <palves@redhat.com>
1659 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1660 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1661 have OBJF_SHARED set.
1662 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1663 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1664 instead of OBJF_USERLOADED.
1665 * objfiles.h (OBJF_SHARED): Update comment.
1666 (userloaded_objfile_contains_address_p): Rename to ...
1667 (shared_objfile_contains_address_p): ... this, and update
1669 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1671 (remove_symbol_file_command): Skip objfiles that don't have
1674 2014-06-16 Tom Tromey <tromey@redhat.com>
1676 * minsyms.h (prim_record_minimal_symbol)
1677 (prim_record_minimal_symbol_and_info): Update comments.
1679 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1681 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1682 or --without-guile, according to how GDB was built.
1684 2014-06-13 Tom Tromey <tromey@redhat.com>
1686 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1688 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1690 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1692 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1693 help_list.Pass all_commands, not -1, to help_list.
1694 * cli/cli-dump.c (dump_command, append_command)
1695 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1696 (binary_dump_command, binary_append_command): Pass all_commands,
1697 not -1, to help_list.
1698 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1700 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1702 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1704 * top.c (set_history): Pass all_commands, not -1, to help_list.
1705 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1706 all_commands, not -1, to help_list.
1707 * symfile.c (overlay_command): Pass all_commands, not -1, to
1709 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1711 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1713 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1715 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1716 not -1, to help_list.
1717 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1718 not -1, to help_list.
1719 * maint.c (maintenance_command, maintenance_info_command)
1720 (maintenance_print_command, maintenance_set_cmd): Pass
1721 all_commands, not -1, to help_list.
1722 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1724 * language.c (set_check): Pass all_commands, not -1, to help_list.
1725 * infcmd.c (unset_command): Pass all_commands, not -1, to
1727 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1729 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1731 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1733 * breakpoint.c (save_command): Pass all_commands, not -1, to
1735 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1736 all_commands, not -1, to help_list.
1738 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1740 * regcache.c (struct register_to_invalidate): New structure.
1741 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1743 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1745 2014-06-12 Yao Qi <yao@codesourcery.com>
1747 * varobj.c (varobj_get_num_children): Call
1748 varobj_is_dynamic_p.
1749 (varobj_list_children): Likewise.
1750 (varobj_update): Likewise. Update comments.
1752 2014-06-12 Yao Qi <yao@codesourcery.com>
1754 * varobj.c (varobj_pretty_printed_p): Rename to ...
1755 (varobj_is_dynamic_p): ... this. New function.
1756 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1757 (varobj_is_dynamic_p): Declare.
1758 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1759 (mi_print_value_p, varobj_update_one): Likewise.
1761 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1762 Yao Qi <yao@codesourcery.com>
1764 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1765 (varobj_get_iterator): Wrap up code for pretty-printer by
1766 "#if HAVE_PYTHON" and "#endif".
1767 (update_dynamic_varobj_children): Likewise.
1769 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1770 Yao Qi <yao@codesourcery.com>
1772 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1773 gdb_python_initialized is false. Move some code from varobj.c.
1774 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1775 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1776 (struct varobj_item): Moved to varobj-iter.h".
1777 (varobj_clear_saved_item): New function.
1778 (update_dynamic_varobj_children): Move python-related code to
1780 (free_variable): Call varobj_clear_saved_item and
1783 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1784 Yao Qi <yao@codesourcery.com>
1786 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1787 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1788 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1789 (py-varobj.o): New rule.
1790 * python/py-varobj.c: New file.
1791 * python/python-internal.h (py_varobj_get_iterator): Declare.
1792 * varobj-iter.h: New file.
1793 * varobj.c: Include "varobj-iter.h"
1794 (struct varobj) <child_iter>: Change its type from "PyObject *"
1795 to "struct varobj_iter *".
1796 <saved_item>: Likewise.
1797 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1798 [HAVE_PYTHON] (varobj_get_iterator): New function.
1799 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1800 python-specific code to python/py-varobj.c.
1801 (install_visualizer): Call varobj_iter_delete instead of
1803 * varobj.h (varobj_ensure_python_env): Declare.
1805 2014-06-12 Yao Qi <yao@codesourcery.com>
1807 * varobj.c (struct varobj_item): New structure.
1808 (create_child_with_value): Update declaration.
1809 (varobj_add_child): Replace arguments 'name' and 'value' with
1810 'item'. All callers updated.
1811 (install_dynamic_child): Likewise.
1812 (update_dynamic_varobj_children): Likewise.
1813 (varobj_add_child): Likewise.
1814 (create_child_with_value): Likewise.
1816 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1818 * NEWS: Create a new section for the next release branch.
1819 Rename the section of the current branch, now that it has
1822 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1824 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1825 * version.in: Bump version to 7.8.50.DATE-cvs.
1827 2014-06-11 Pedro Alves <palves@redhat.com>
1830 * ser-mingw.c (net_windows_socket_check_pending): New function.
1831 (net_windows_select_thread): Ignore spurious wakeups. Use
1832 net_windows_socket_check_pending.
1833 (net_windows_wait_handle): Check for pending events with
1834 ioctlsocket, through net_windows_socket_check_pending, instead of
1835 checking the socket's event.
1837 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1839 * python/python-internal.h (gdb_PyObject_GetAttrString)
1840 (gdb_PyObject_HasAttrString): New inline function definitions.
1841 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1842 char * of the second argument to PyObject_GetAttrString.
1844 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1846 * serial.c (serial_write): Fix index of character to be printed
1847 in call to serial_logchar when serial debug traces are enabled.
1849 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1851 * gdbtypes (resolve_dynamic_range): Add function description.
1853 2014-06-09 Pedro Alves <palves@redhat.com>
1855 * linux-nat.c (linux_child_follow_fork): Initialize status with
1856 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1857 inner block. Only pass the signal to PTRACE_DETACH if in pass
1860 2014-06-09 Gary Benson <gbenson@redhat.com>
1862 * common/signals.c (gdb_signal_from_host): Reorder to separate
1863 the always-available ANSI-standard signals from the signals that
1865 (do_gdb_signal_to_host): Likewise.
1866 * proc-events.c (signal_table): Likewise.
1868 2014-06-08 Hui Zhu <hui@codesourcery.com>
1870 * common/linux-ptrace.c (linux_disable_event_reporting): New
1872 * common/linux-ptrace.h (linux_disable_event_reporting): New
1874 * linux-nat.c (linux_child_follow_fork): Do a single step before
1877 2014-06-07 Keith Seitz <keiths@redhat.com>
1881 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1882 from symbol_matches_domain in symtab.c. All local callers
1883 of symbol_matches_domain updated.
1884 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1885 search STRUCT_DOMAIN.
1886 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1887 independently. standard_lookup will do that automatically.
1888 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1889 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1890 (cp_lookup_symbol_in_namespace): Likewise.
1891 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1892 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1893 may return a STRUCT_DOMAIN match.
1894 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1895 * cp-support.c: Include language.h.
1896 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1898 * psymtab.c (match_partial_symbol): Compare the requested
1899 domain with the symbol's domain directly.
1900 (lookup_partial_symbol): Likewise.
1901 * symtab.c (lookup_symbol_in_language): Explain when/why
1902 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1903 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1904 appropriate languages.
1905 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1906 and moved to ada-lang.c
1907 (lookup_block_symbol): Explain that this function only returns
1908 symbol matching the requested DOMAIN.
1909 Compare the requested domain with the symbol's domain directly.
1910 (iterate_over_symbols): Compare the requested domain with the
1911 symbol's domain directly.
1912 * symtab.h (symbol_matches_domain): Remove.
1914 2014-06-06 Doug Evans <xdje42@gmail.com>
1916 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1917 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1918 (gdbscm_guile_version_is_at_least): Declare.
1919 (gdbscm_scm_string_to_int): Declare.
1920 * guile/guile.c (gdbscm_guile_major_version): New global.
1921 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1922 (guile_datadir): New static global.
1923 (gdbscm_guile_data_directory): New function.
1924 (initialize_scheme_side): Update.
1925 (misc_guile_functions): Add guile-data-directory.
1926 (initialize_gdb_module): Fetch guile version number.
1927 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1928 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1929 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1930 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1932 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1933 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1934 * guile/scm-value.c (gdbscm_value_to_string): Only call
1935 scm_port_conversion_strategy if Guile version >= 2.0.6.
1937 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1939 * main.c (print_gdb_help): Add -q and --silent.
1941 2014-06-06 Gary Benson <gbenson@redhat.com>
1943 * common/signals.c: Remove preprocessor conditionals for
1944 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1945 SIGSEGV and SIGTERM.
1946 * proc-events.c: Likewise.
1948 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1950 * symfile.c (symfile_free_objfile): Remove restriction to
1952 * symfile-mem.c (symbol_file_add_from_memory): Call
1953 add_target_sections_of_objfile.
1955 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1957 * guile/scm-value.c (gdbscm_history_append_x): Use
1958 'vlscm_get_value_smob_arg_unsafe' instead of
1959 'vlscm_scm_to_value'.
1961 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1964 * utils.c (printchar): Don't escape at all if quoter is NUL.
1965 Update function documentation to clarify effect of parameter
1967 * remote.c (escape_buffer): Pass '\\' as the quoter to
1968 fputstrn_unfiltered.
1969 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1970 generate the output.
1971 (mi_solib_unloaded): Same.
1973 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1975 * development.sh: Delete.
1976 * Makefile.in (config.status): Adjust dependency on development.sh.
1977 * configure.ac: Adjust development.sh source call.
1978 * configure: Regenerate.
1980 2014-06-04 Doug Evans <xdje42@gmail.com>
1982 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1983 is_scheme_bkpt, spec.
1984 (bpscm_make_breakpoint_smob): Initialize new members.
1985 (gdbscm_create_breakpoint_x): Split into two ...
1986 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1987 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1988 (scheme_function breakpoint_functions): Update.
1989 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1990 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1991 register-breakpoint!.
1993 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1996 * mem-break.c (z_type_supported): Return zero if
1997 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1999 2014-06-04 Tom Tromey <tromey@redhat.com>
2001 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2002 value_from_contents_and_address_unresolved.
2003 (ada_template_to_fixed_record_type_1): Likewise.
2004 (ada_which_variant_applies): Likewise.
2005 * value.h (value_from_contents_and_address_unresolved): Declare.
2006 * value.c (value_from_contents_and_address_unresolved): New
2008 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2009 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2010 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2012 2014-06-04 Tom Tromey <tromey@redhat.com>
2014 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2016 2014-06-04 Tom Tromey <tromey@redhat.com>
2018 * procfs.c (procfs_attach): Make "args" const.
2019 * windows-nat.c (windows_attach): Make "args" const.
2020 * nto-procfs.c (procfs_attach): Make "args" const.
2021 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2022 * go32-nat.c (go32_attach): Make "args" const.
2023 * gnu-nat.c (gnu_attach): Make "args" const.
2024 * darwin-nat.c (darwin_attach): Make "args" const.
2025 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2026 * linux-nat.c (linux_nat_attach): Make "args" const.
2027 * remote.c (extended_remote_attach_1, extended_remote_attach):
2029 * target.h (struct target_ops) <to_attach>: Make "args" const.
2030 (find_default_attach): Likewise.
2031 * utils.c (parse_pid_to_attach): Make "args" const.
2032 * utils.h (parse_pid_to_attach): Update.
2034 2014-06-04 Tom Tromey <tromey@redhat.com>
2036 * target-delegates.c: Rebuild.
2037 * target.c (default_thread_address_space): New function.
2038 (target_thread_address_space): Simplify.
2039 * target.h (struct target_ops) <to_thread_address_space>: Add
2040 TARGET_DEFAULT_FUNC.
2042 2014-06-04 Doug Evans <xdje42@gmail.com>
2044 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2046 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2048 * record-btrace.c: Include event-loop.h and inf-loop.h.
2049 (record_btrace_resume_exec_dir)
2050 (record_btrace_async_inferior_event_handler)
2051 (record_btrace_handle_async_inferior_event): New.
2052 (record_btrace_open): Create async event handler.
2053 (record_btrace_close): Delete async event handler.
2054 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2055 Mark async event handler.
2056 (record_btrace_execution_direction): New.
2057 (init_record_btrace_ops): Initialize to_execution_direction.
2059 2014-06-03 Doug Evans <xdje42@gmail.com>
2061 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2062 (gdbscm_make_parameter): Ditto.
2064 2014-06-03 Doug Evans <dje@google.com>
2066 * exec.c (exec_close_1): Call clear_section_table instead of
2067 resize_section_table.
2068 (clear_section_table): New function.
2069 (resize_section_table): Make static. Rename arg num_added to
2071 * exec.h (clear_section_table): Declare.
2072 (resize_section_table): Delete.
2073 * progspace.c (release_program_space): Call clear_section_table
2074 instead of resize_section_table.
2076 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2078 * NEWS (Python Scripting): Add entry about the new xmethods
2081 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2083 * python/py-xmethods.c: New file.
2084 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2085 (objfpy_dealloc): XDECREF on the new xmethods field.
2086 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2088 (objfpy_get_xmethods): New function.
2089 (objfile_getset): New entry 'xmethods'.
2090 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2091 (pspy_dealloc): XDECREF on the new xmethods field.
2092 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2094 (pspy_get_xmethods): New function.
2095 (pspace_getset): New entry 'xmethods'.
2096 * python/python-internal.h: Add declarations for new functions.
2097 * python/python.c (_initialize_python): Invoke
2098 gdbpy_initialize_xmethods.
2099 * python/lib/gdb/__init__.py (xmethods): New
2101 * python/lib/gdb/xmethod.py: New file.
2102 * python/lib/gdb/command/xmethods.py: New file.
2104 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2106 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2107 best match method returned by find_overload_match is an xmethod.
2108 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2109 the best matching operator returned by find_overload_match is an
2111 * valops.c: #include "extension.h".
2112 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2113 Return void. The list of matching source methods is returned in
2114 "fn_list" and a vector of matching debug method workers is
2115 returned in "xm_worker_vec". Update all callers.
2116 (value_find_oload_method_list): Likewise.
2117 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2118 non-NULL, then the index of the best matching method in this
2119 vector is returned. Update all callers.
2120 (find_overload_match): Include xmethods while performing overload
2123 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2125 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2126 * extension-priv.h (struct extension_language_ops): Add the
2128 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2129 get_matching_xmethod_workers, get_xmethod_argtypes,
2130 invoke_xmethod, free_xmethod_worker,
2131 free_xmethod_worker_vec): New functions.
2132 * extension.h: #include "common/vec.h".
2133 New function declarations.
2134 (struct xmethod_worker): New struct.
2135 (VEC (xmethod_worker_ptr)): New vector type.
2136 (xmethod_worker_ptr): New typedef.
2137 (xmethod_worker_vec): Likewise.
2138 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2140 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2141 (struct builtin_type): New field "xmethod".
2142 * valarith.c (value_ptradd): Assert that the value argument is not
2144 * valops.c (value_must_coerce_to_target): Return 0 for
2145 lval_xcallable values.
2146 * value.c (struct value): New field XM_WORKER in the field
2148 (value_address, value_raw_address): Return 0 for lval_xcallable
2150 (set_value_address): Assert that the value is not an
2152 (value_free): Free the associated xmethod worker when freeing
2153 lval_xcallable values.
2154 (set_value_component_location): Assert that the WHOLE value is not
2156 (value_of_xmethod, call_xmethod): New functions.
2157 * value.h: Declare "struct xmethod_worker".
2158 Declare new functions value_of_xmethod, call_xmethod.
2160 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2161 Pedro Alves <palves@redhat.com>
2163 PR breakpoints/17000
2164 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2165 New function, extracted from software_breakpoint_inserted_here_p.
2166 (software_breakpoint_inserted_here_p): Replace factored out code
2167 by call to find_non_raw_software_breakpoint_inserted_here.
2168 (bp_target_info_copy_insertion_state): New function.
2169 (bkpt_insert_location): Handle the case of a single-step
2170 breakpoint already inserted at the same address.
2171 (bkpt_remove_location): Handle the case of a single-step
2172 breakpoint still inserted at the same address.
2173 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2174 breakpoint already inserted at the same address.
2175 (deprecated_remove_raw_breakpoint): Handle the case of a
2176 non-raw breakpoint still inserted at the same address.
2177 (find_single_step_breakpoint): New function, extracted from
2178 single_step_breakpoint_inserted_here_p.
2179 (find_single_step_breakpoint): New function,
2180 factored out from single_step_breakpoint_inserted_here_p.
2181 (single_step_breakpoint_inserted_here_p): Reimplement.
2183 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2185 Pushed by Joel Brobecker <brobecker@adacore.com>
2186 * source.c (show_substitute_path_command): Fix display of matching
2189 2014-06-03 Gary Benson <gbenson@redhat.com>
2191 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2193 2014-06-02 Doug Evans <xdje42@gmail.com>
2195 Add parameter support for Guile.
2196 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2197 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2198 (scm-param.o): New rule.
2199 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2200 (gdbscm_misc_error): Declare.
2201 (gdbscm_canonicalize_command_name): Declare.
2202 (gdbscm_scm_to_host_string): Declare.
2203 (gdbscm_scm_from_host_string): Declare.
2204 (gdbscm_initialize_parameters): Declare.
2205 * guile/guile.c (initialize_gdb_module): Call
2206 gdbscm_initialize_parameters.
2207 * guile/lib/gdb.scm: Export parameter symbols.
2208 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2209 cmdscm_canonicalize_name and made public. All callers updated.
2210 * guile/scm-exception.c (gdbscm_misc_error): New function.
2211 * guile/scm-param.c: New file.
2212 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2213 (gdbscm_scm_to_host_string): New function.
2214 (gdbscm_scm_from_host_string): New function.
2215 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2217 2014-06-02 Doug Evans <xdje42@gmail.com>
2219 Add command support for Guile.
2220 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2221 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2222 (scm-cmd.o): New rule.
2223 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2224 (gdbscm_user_error_p): Declare.
2225 (gdbscm_parse_command_name): Declare.
2226 (gdbscm_valid_command_class_p): Declare.
2227 (gdbscm_initialize_commands): Declare.
2228 * guile/guile.c (initialize_gdb_module): Call
2229 gdbscm_initialize_commands.
2230 * guile/lib/gdb.scm: Export command symbols.
2231 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2232 (throw-user-error): New function.
2233 * guile/scm-cmd.c: New file.
2234 * guile/scm-exception.c (user_error_symbol): New static global.
2235 (gdbscm_user_error_p): New function.
2236 (gdbscm_initialize_exceptions): Set user_error_symbol.
2237 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2239 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2241 * top.c (command_loop): Handle comments here...
2242 (command_line_input): ... not here.
2244 2014-06-02 Doug Evans <xdje42@gmail.com>
2246 Add progspace support for Guile.
2247 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2248 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2249 (scm-progspace.o): New rule.
2250 * guile/guile-internal.h (pspace_smob): New typedef.
2251 (psscm_pspace_smob_pretty_printers): Declare.
2252 (psscm_pspace_smob_from_pspace): Declare.
2253 (psscm_scm_from_pspace): Declare.
2254 * guile/guile.c (initialize_gdb_module): Call
2255 gdbscm_initialize_pspaces.
2256 * guile/lib/gdb.scm: Export progspace symbols.
2257 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2259 (append-pretty-printer!): Ditto.
2260 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2262 * guile/scm-progspace.c: New file.
2264 2014-06-03 Alan Modra <amodra@gmail.com>
2266 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2267 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2269 2014-06-02 Doug Evans <dje@google.com>
2271 Add support for skeletonless type units.
2272 * dwarf2read.c (struct dwarf2_per_objfile): New member
2273 n_allocated_type_units.
2274 (struct dwarf2_per_objfile) <tu_stats>: New member
2275 nr_all_type_units_reallocs.
2276 (create_signatured_type_table_from_index): Initialize
2277 n_allocated_type_units
2278 (create_all_type_units): Ditto.
2279 (add_type_unit): Move up in file. New arg slot.
2280 All callers updated. Increase space for all_type_units more
2282 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2283 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2284 (lookup_dwp_signatured_type): Ditto.
2285 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2286 All callers updated.
2287 (build_type_psymtabs_1): Leave type_unit_groups as
2288 NULL if no TUs present.
2289 (print_tu_stats): New function.
2290 (process_skeletonless_type_unit): New function.
2291 (process_dwo_file_for_skeletonless_type_units): New
2293 (process_skeletonless_type_units): New function.
2294 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2295 Call print tu_stats if debugging enabled.
2297 2014-06-02 Pedro Alves <palves@redhat.com>
2299 * breakpoint.c (build_target_command_list): Don't build a command
2300 list if we have any duplicate location that isn't a dprintf.
2302 2014-06-02 Pedro Alves <palves@redhat.com>
2304 * breakpoint.c (dprintf_breakpoint_hit): New function.
2305 (initialize_breakpoint_ops): Install it as dprintf's
2306 breakpoint_hit method.
2308 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2310 * source.c (substitute_path_rule_matches): Simplify using
2311 filename_ncmp instead of FILENAME_CMP.
2313 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2315 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2317 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2319 * configure.ac: When Guile is available, check for the
2320 availability of 'scm_new_smob'.
2321 * configure, config.h.in: Regenerate.
2322 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2325 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2327 * frame.c (struct frame_info): Add stop_string field.
2328 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2329 (get_prev_frame_always): Old content moved into
2330 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2331 TRY_CATCH, handle MEMORY_ERROR exceptions.
2332 (frame_stop_reason_string): New function definition.
2333 * frame.h (unwind_stop_reason_to_string): Extend comment to
2334 mention frame_stop_reason_string.
2335 (frame_stop_reason_string): New function declaration.
2336 * stack.c (frame_info): Switch to frame_stop_reason_string.
2337 (backtrace_command_1): Switch to frame_stop_reason_string.
2338 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2339 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2340 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2342 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2344 * frame.c (frame_stop_reason_string): Rename to ...
2345 (unwind_stop_reason_to_string): this.
2346 * frame.h (frame_stop_reason_string): Rename to ...
2347 (unwind_stop_reason_to_string): this.
2348 * stack.c (frame_info): Update call to frame_stop_reason_string.
2349 (backtrace_command_1): Likewise.
2350 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2351 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2353 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2355 * frame.c (remove_prev_frame): New function.
2356 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2359 2014-05-29 Pedro Alves <palves@redhat.com>
2361 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2362 and make it const. When a single-step decays to a continue,
2363 clear 'step', not 'hw_step'. Pass whether the caller wanted
2364 to step to user_visible_resume_ptid, not what we ask the
2367 2014-05-29 Pedro Alves <palves@redhat.com>
2369 * infrun.c (process_event_stop_test, handle_step_into_function)
2370 (handle_step_into_function_backward): Adjust.
2371 Don't set the even thread's stop_step and call stop_waiting before
2372 calling end_stepping_range. Instead do that ...
2373 (end_stepping_range): ... here. Take an ecs pointer parameter.
2375 2014-05-29 Pedro Alves <palves@redhat.com>
2377 * infrun.c (stop_stepping): Rename to ...
2378 (stop_waiting): ... this.
2379 (proceed): Update comment.
2380 (process_event_stop_test, handle_inferior_event)
2381 (handle_signal_stop, handle_step_into_function)
2382 (handle_step_into_function_backward): Update.
2384 2014-05-29 Pedro Alves <palves@redhat.com>
2386 * infcall.c (run_inferior_call): Don't check whether the current
2387 thread is running after the proceed call.
2389 2014-05-29 Pedro Alves <palves@redhat.com>
2390 Tom Tromey <tromey@redhat.com>
2392 * NEWS: Mention "maint set target-async", "set mi-async", and that
2393 background execution commands are now always available.
2394 * target.h (target_async_permitted): Update comment.
2395 * target.c (target_async_permitted, target_async_permitted_1):
2397 (set_target_async_command): Rename to ...
2398 (maint_set_target_async_command): ... this.
2399 (show_target_async_command): Rename to ...
2400 (maint_show_target_async_command): ... this.
2401 (_initialize_target): Adjust.
2402 * infcmd.c (prepare_execution_command): Make extern.
2403 * inferior.h (prepare_execution_command): Declare.
2404 * infrun.c (set_observer_mode): Leave target async alone.
2405 * mi/mi-interp.c (mi_interpreter_init): Install
2406 mi_on_sync_execution_done as sync_execution_done observer.
2407 (mi_on_sync_execution_done): New function.
2408 (mi_execute_command_input_handler): Don't print the prompt if we
2409 just started a synchronous command with an async target.
2410 (mi_on_resume): Check sync_execution before printing prompt.
2411 * mi/mi-main.h (mi_async_p): Declare.
2412 * mi/mi-main.c: Include gdbcmd.h.
2413 (mi_async_p): New function.
2414 (mi_async, mi_async_1): New globals.
2415 (set_mi_async_command, show_mi_async_command, mi_async): New
2417 (exec_continue): Call prepare_execution_command.
2418 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2419 (mi_execute_async_cli_command): Use mi_async_p.
2420 (_initialize_mi_main): Install "set mi-async". Make
2421 "target-async" a deprecated alias.
2423 2014-05-29 Pedro Alves <palves@redhat.com>
2425 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2426 (_initialize_cli_interp): Adjust.
2427 * event-loop.c: Include "observer.h".
2428 (start_event_loop): Notify 'command_error' observers instead of
2429 calling display_gdb_prompt. Remove FIXME comment.
2430 * event-top.c (display_gdb_prompt): Remove call into the
2432 * inf-loop.c: Include "observer.h".
2433 (inferior_event_handler): Notify 'command_error' observers instead
2434 of calling display_gdb_prompt.
2435 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2436 observers instead of calling display_gdb_prompt.
2437 * interps.c (interp_set): Don't call display_gdb_prompt.
2438 (current_interp_display_prompt_p): Delete.
2439 * interps.h (interp_prompt_p): Delete declaration.
2440 (interp_prompt_p_ftype): Delete.
2441 (struct interp_procs) <prompt_proc_p>: Delete field.
2442 (current_interp_display_prompt_p): Delete declaration.
2443 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2444 (_initialize_mi_interp): Adjust.
2445 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2446 'command_error' observers.
2447 (tui_on_sync_execution_done, tui_on_command_error): New
2449 (tui_display_prompt_p): Delete.
2450 (_initialize_tui_interp): Adjust.
2452 2014-05-29 Pedro Alves <palves@redhat.com>
2455 * cli/cli-interp.c: Include infrun.h and observer.h.
2456 (cli_uiout, cli_interp): New globals.
2457 (cli_on_signal_received, cli_on_end_stepping_range)
2458 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2460 (cli_interpreter_init): Install them as 'end_stepping_range',
2461 'signal_received' 'signal_exited', 'exited' and 'no_history'
2463 (_initialize_cli_interp): Remove cli_interp local.
2464 * infrun.c (handle_inferior_event): Call the several stop reason
2465 observers instead of printing the stop reason directly.
2466 (end_stepping_range): New function.
2467 (print_end_stepping_range_reason, print_signal_exited_reason)
2468 (print_exited_reason, print_signal_received_reason)
2469 (print_no_history_reason): Make static, and add an uiout
2470 parameter. Print to that instead of to CURRENT_UIOUT.
2471 * infrun.h (print_end_stepping_range_reason)
2472 (print_signal_exited_reason, print_exited_reason)
2473 (print_signal_received_reason print_no_history_reason): New
2475 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2477 <cli_uiout>: New field.
2478 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2479 uiout for CLI output. Install 'signal_received',
2480 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2482 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2483 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2484 (mi_on_no_history): New functions.
2485 (ui_out_free_cleanup): Delete function.
2486 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2487 instead use the one already stored in the MI interpreter data.
2488 (mi_ui_out): Adjust.
2489 * tui/tui-interp.c: Include infrun.h and observer.h.
2490 (tui_interp): New global.
2491 (tui_on_signal_received, tui_on_end_stepping_range)
2492 (tui_on_signal_exited, tui_on_exited)
2493 (tui_on_no_history): New functions.
2494 (tui_init): Install them as 'end_stepping_range',
2495 'signal_received' 'signal_exited', 'exited' and 'no_history'
2497 (_initialize_tui_interp): Delete tui_interp local.
2499 2014-05-29 Pedro Alves <palves@redhat.com>
2502 * linux-nat.c (linux_nat_resume_callback): Rename the second
2503 parameter to 'except'. Skip LP if it points to EXCEPT.
2504 (linux_nat_resume): Don't mark the event lwp as not stopped
2505 before resuming sibling lwps. Instead ask
2506 linux_nat_resume_callback to skip the event lwp. Mark it as not
2507 stopped after actually resuming it.
2508 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2510 (wait_lwp): Mark the lwp as stopped here.
2511 (stop_wait_callback): Mark the lwp as not stopped right after
2512 resuming it. Don't mark lwps as stopped here.
2513 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2514 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2516 2014-05-29 Pedro Alves <palves@redhat.com>
2519 * infrun.c (resume): Determine how much to resume depending on
2520 whether the caller wanted a step, not whether we can hardware step
2521 the target. Mark all threads that we intend to run as running,
2522 unless we're calling an inferior function.
2523 (normal_stop): If the thread is running an infcall, don't finish
2525 * target.c (target_resume): Don't mark threads as running here.
2527 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2529 * serial.c (_initialize_serial): Remove support for
2530 the "set remotebaud" and "show remotebaud" commands.
2531 * NEWS: Add entry documenting the removal of that command.
2533 2014-05-28 Yao Qi <yao@codesourcery.com>
2535 * charset.c: Fix typo in comments.
2537 2014-05-27 Gary Benson <gbenson@redhat.com>
2539 * utils.c (internal_vproblem): Prompt for a bug report.
2541 2014-05-26 Andy Wingo <wingo@igalia.com>
2543 * guile/scm-arch.c (arscm_mark_arch_smob):
2544 * guile/scm-block.c (bkscm_mark_block_smob)
2545 (bkscm_mark_block_syms_progress_smob):
2546 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2547 * guile/scm-exception.c (exscm_mark_exception_smob):
2548 * guile/scm-frame.c (frscm_mark_frame_smob):
2549 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2550 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2551 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2552 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2553 (ppscm_mark_pretty_printer_worker_smob):
2554 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2555 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2556 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2557 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2559 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2562 2014-05-26 Andy Wingo <wingo@igalia.com>
2563 Doug Evans <xdje42@gmail.com>
2565 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2566 empty_base_class. All uses updated.
2567 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2568 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2570 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2571 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2572 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2573 (gdbscm_gsmob_has_property_p, add_property_name)
2574 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2575 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2576 (gdb-object-has-property?, gdb-object-properties): Remove.
2577 (gdb-object-kind): Renamed from gsmob-kind.
2579 2014-05-26 Andy Wingo <wingo@igalia.com>
2581 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2582 * configure: Regenerate.
2584 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2586 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2588 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2590 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2591 (replay_memory_access_read_only, replay_memory_access_read_write)
2592 (replay_memory_access_types, replay_memory_access)
2593 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2594 (cmd_set_record_btrace, cmd_show_record_btrace)
2595 (cmd_show_replay_memory_access): New.
2596 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2597 (record_btrace_remove_breakpoint): Replace
2598 record_btrace_allow_memory_access with replay_memory_access.
2599 (_initialize_record_btrace): Add commands.
2600 * NEWS: Announce it.
2602 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2604 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2606 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2608 * MAINTAINERS (Write After Approval): Move self back from
2611 2014-05-22 Pedro Alves <palves@redhat.com>
2613 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2614 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2615 (disable_randomization, enum exec_direction_kind)
2616 (execution_direction, stop_registers, start_remote)
2617 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2618 (wait_for_inferior, normal_stop, get_last_target_status)
2619 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2620 (insert_step_resume_breakpoint_at_sal)
2621 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2622 (set_step_info, print_stop_event, signal_stop_state)
2623 (signal_print_state, signal_pass_state, signal_stop_update)
2624 (signal_print_update, signal_pass_update)
2625 (update_signals_program_target, clear_exit_convenience_vars)
2626 (displaced_step_dump_bytes, update_observer_mode)
2627 (signal_catch_update, gdb_signal_from_command): Move
2629 * infrun.h: ... to this new file.
2630 * amd64-tdep.c: Include infrun.h.
2631 * annotate.c: Include infrun.h.
2632 * arch-utils.c: Include infrun.h.
2633 * arm-linux-tdep.c: Include infrun.h.
2634 * arm-tdep.c: Include infrun.h.
2635 * break-catch-sig.c: Include infrun.h.
2636 * breakpoint.c: Include infrun.h.
2637 * common/agent.c: Include infrun.h instead of inferior.h.
2638 * corelow.c: Include infrun.h.
2639 * event-top.c: Include infrun.h.
2640 * go32-nat.c: Include infrun.h.
2641 * i386-tdep.c: Include infrun.h.
2642 * inf-loop.c: Include infrun.h.
2643 * infcall.c: Include infrun.h.
2644 * infcmd.c: Include infrun.h.
2645 * infrun.c: Include infrun.h.
2646 * linux-fork.c: Include infrun.h.
2647 * linux-nat.c: Include infrun.h.
2648 * linux-thread-db.c: Include infrun.h.
2649 * monitor.c: Include infrun.h.
2650 * nto-tdep.c: Include infrun.h.
2651 * procfs.c: Include infrun.h.
2652 * record-btrace.c: Include infrun.h.
2653 * record-full.c: Include infrun.h.
2654 * remote-m32r-sdi.c: Include infrun.h.
2655 * remote-mips.c: Include infrun.h.
2656 * remote-notif.c: Include infrun.h.
2657 * remote-sim.c: Include infrun.h.
2658 * remote.c: Include infrun.h.
2659 * reverse.c: Include infrun.h.
2660 * rs6000-tdep.c: Include infrun.h.
2661 * s390-linux-tdep.c: Include infrun.h.
2662 * solib-irix.c: Include infrun.h.
2663 * solib-osf.c: Include infrun.h.
2664 * solib-svr4.c: Include infrun.h.
2665 * target.c: Include infrun.h.
2666 * top.c: Include infrun.h.
2667 * windows-nat.c: Include infrun.h.
2668 * mi/mi-interp.c: Include infrun.h.
2669 * mi/mi-main.c: Include infrun.h.
2670 * python/py-threadevent.c: Include infrun.h.
2672 2014-05-22 Pedro Alves <palves@redhat.com>
2674 * infrun.c (handle_inferior_event): Store the exit code for
2675 --return-child-result here, instead of ...
2676 (print_exited_reason): ... here.
2678 2014-05-21 Pedro Alves <palves@redhat.com>
2681 * gdbthread.h (struct thread_control_state): New field
2683 * infrun.c (follow_fork): Copy the new thread control field to the
2685 (clear_proceed_status_thread): Clear the new thread control field.
2686 (proceed): Set the new thread control field.
2687 * interps.h (command_interp): Declare.
2688 * interps.c (command_interpreter): New global.
2689 (command_interp): New function.
2690 (interp_exec): Set `command_interpreter' while here.
2691 * cli-out.c (cli_uiout_dtor): New function.
2692 (cli_ui_out_impl): Install it.
2693 * mi/mi-interp.c: Include cli-out.h.
2694 (mi_cmd_interpreter_exec): Add comment.
2695 (restore_current_uiout_cleanup): New function.
2696 (ui_out_free_cleanup): New function.
2697 (mi_on_normal_stop): If finishing an execution command started by
2698 a CLI command, or any kind of breakpoint-like event triggered,
2699 print the stop event to the output (CLI) stream.
2700 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2702 2014-05-21 Pedro Alves <palves@redhat.com>
2704 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2705 current source line having changed.
2706 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2707 * infrun.c (normal_stop): Adjust call to
2708 set_current_sal_from_frame.
2709 * source.c (clear_lines_listed_range): New function.
2710 (set_current_source_symtab_and_line, identify_source_line): Clear
2711 the lines listed range.
2712 (line_info): Handle the first "info line" after the current source
2713 line having changed.
2714 * stack.c (print_stack_frame): Remove center handling.
2715 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2718 2014-05-21 Pedro Alves <palves@redhat.com>
2720 * inf-child.c (inf_child_mourn_inferior): New function.
2721 * inf-child.h (inf_child_mourn_inferior): New declaration.
2722 * darwin-nat.c (darwin_mourn_inferior): Use
2723 inf_child_mourn_inferior.
2724 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2725 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2726 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2727 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2728 * windows-nat.c (windows_mourn_inferior): Likewise.
2730 2014-05-21 Doug Evans <xdje42@gmail.com>
2732 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2734 2014-05-21 Doug Evans <xdje42@gmail.com>
2736 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2737 (gdbscm_out_of_range_error): Ditto.
2738 (gdbscm_memory_error): Ditto.
2739 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2740 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2741 (gdbscm_out_of_range_error): Update.
2742 (gdbscm_memory_error): Update.
2743 (gdbscm_scm_to_target_string_unsafe): Delete.
2745 2014-05-21 Pedro Alves <palves@redhat.com>
2747 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2749 (inf_child_open_target): New function.
2750 (inf_child_open): Use inf_child_open_target to push the target
2751 instead of erroring out.
2752 (inf_child_disconnect, inf_child_close)
2753 (inf_child_maybe_unpush_target): New functions.
2754 (inf_child_target): Install inf_child_disconnect and
2755 inf_child_close. Store a pointer to the returned object.
2756 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2758 * target.c (auto_connect_native_target): New global.
2759 (show_default_run_target): New function.
2760 (find_default_run_target): Return NULL if automatically connecting
2761 to the native target is disabled.
2762 (_initialize_target): Install set/show auto-connect-native-target.
2763 * NEWS: Mention "set auto-connect-native-target", and "target
2765 * linux-nat.c (super_close): New global.
2766 (linux_nat_close): Call super_close.
2767 (linux_nat_add_target): Store a pointer to the base class's
2769 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2770 inf_child_maybe_unpush.
2771 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2773 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2774 the inferior. Use inf_child_maybe_unpush_target.
2775 (inf_ttrace_attach): Don't push the target if it is already
2777 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2778 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2779 after mourning the inferior. Use inf_child_maybe_unpush_target.
2780 (darwin_attach_pid): Don't push the target if it is already
2782 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2783 mourning the inferior. Use inf_child_maybe_unpush_target.
2784 (gnu_detach): Use inf_child_maybe_unpush_target.
2785 * go32-nat.c (go32_create_inferior): Don't push the target if it
2787 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2788 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2789 (procfs_open): Rename to ...
2790 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2791 comments. Can target_preopen before changing node. Call
2792 inf_child_open_target to push the target explicitly.
2793 (procfs_attach): Don't push the target if it is already pushed.
2794 (procfs_detach): Use inf_child_maybe_unpush_target.
2795 (procfs_create_inferior): Don't push the target if it is already
2797 (nto_native_ops): New global.
2798 (procfs_open): Reimplement.
2799 (procfs_native_open): New function.
2800 (init_procfs_targets): Install procfs_native_open as to_open of
2801 "target native". Store a pointer to the "native" target in
2803 * procfs.c (procfs_attach): Don't push the target if it is already
2805 (procfs_detach): Use inf_child_maybe_unpush_target.
2806 (procfs_mourn_inferior): Only unpush the target after mourning the
2807 inferior. Use inf_child_maybe_unpush_target.
2808 (procfs_init_inferior): Don't push the target if it is already
2810 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2811 if it is already pushed.
2813 2014-05-21 Pedro Alves <palves@redhat.com>
2815 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2816 and "procfs" targets are now called "native" instead.
2818 2014-05-21 Pedro Alves <palves@redhat.com>
2820 * go32-nat.c (go32_open): Delete.
2821 (go32_target): Don't override the to_open method.
2823 2014-05-21 Pedro Alves <palves@redhat.com>
2825 * nto-procfs.c (procfs_can_run): New function.
2826 (nto_procfs_ops): New global.
2827 (init_procfs_targets): New, based on procfs_target. Install
2828 "target native" in addition to "target procfs".
2829 (_initialize_procfs): Call init_procfs_targets instead of adding
2832 2014-05-21 Pedro Alves <palves@redhat.com>
2834 * windows-nat.c (windows_target): Don't override to_shortname,
2835 to_longname or to_doc.
2837 2014-05-21 Pedro Alves <palves@redhat.com>
2839 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2842 2014-05-21 Pedro Alves <palves@redhat.com>
2844 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2845 to_shortname, to_longname or to_doc.
2847 2014-05-21 Pedro Alves <palves@redhat.com>
2849 * go32-nat.c (go32_target): Don't override to_shortname,
2850 to_longname or to_doc.
2852 2014-05-21 Pedro Alves <palves@redhat.com>
2854 * inf-child.c (inf_child_open): Remove mention of "child".
2855 (inf_child_target): Rename target to "native" instead of "child".
2857 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2859 * Makefile.in (SFILES): Delete "regset.c".
2860 (COMMON_OBS): Delete "regset.o".
2862 * regset.h (regset_alloc): Delete prototype.
2864 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2866 * sparc-linux-tdep.c (sparc32_linux_gregset)
2867 (sparc32_linux_fpregset): New static regset structures.
2868 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2869 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2871 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2872 (sparc64_linux_fpregset): New static regset structures.
2873 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2874 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2875 New static regset structures.
2876 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2877 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2878 New static regset structures.
2879 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2880 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2881 New static regset structures.
2882 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2883 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2884 New static regset structures.
2885 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2887 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2889 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2890 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2891 register maps ("regmaps") from "*regset" to "*regmap". Do this
2892 for all regmap types and variables.
2893 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2894 (sparc32_linux_supply_core_gregset)
2895 (sparc32_linux_collect_core_gregset)
2896 (sparc32_linux_supply_core_fpregset)
2897 (sparc32_linux_collect_core_fpregset): Likewise.
2898 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2899 (sparc_gregmap, sparc_fpregmap): ... these.
2900 (sparc_supply_gregset, sparc_collect_gregset)
2901 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2902 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2903 (_initialize_sparc_nat): Rename regmaps.
2904 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2905 (sparc_gregmap, sparc_fpregmap): ... these.
2906 (sparc_supply_gregset, sparc_collect_gregset)
2907 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2908 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2910 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2911 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2913 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2915 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2916 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2917 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2919 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2920 (sparc32_bsd_fpregset): Rename to...
2921 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2922 (sparc32_bsd_fpregmap): ... these.
2923 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2924 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2925 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2926 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2927 (struct sparc_gregmap, struct sparc_fpregmap)
2928 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2929 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2930 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2931 (sparc32_supply_regset, sparc32_collect_gregset)
2932 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2934 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2935 (sparc64_linux_ptrace_gregmap): ... this.
2936 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2937 (_initialize_sparc64_linux_nat): Rename regmaps.
2938 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2939 (sparc64_linux_core_gregmap): ... this.
2940 (sparc64_linux_supply_core_gregset)
2941 (sparc64_linux_collect_core_gregset)
2942 (sparc64_linux_supply_core_fpregset)
2943 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2944 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2945 (sparc64_sol2_fpregset): Rename to...
2946 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2947 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2948 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2950 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2951 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2952 (sparc64_bsd_fpregset): Rename to...
2953 (struct sparc_gregmap, sparc64_sol2_gregmap)
2954 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2955 (sparc64_bsd_fpregmap): ... these.
2956 (sparc64_supply_gregset, sparc64_collect_gregset)
2957 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2959 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2960 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2961 (sparc64fbsd_gregmap): ... this.
2962 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2963 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2965 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2966 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2967 (sparc64nbsd_collect_fpregset): Likewise.
2968 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2969 (sparc64nbsd_gregmap): ... this.
2970 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2972 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2973 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2974 (sparc64obsd_gregmap): ... this.
2975 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2977 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2978 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2979 (sparc32nbsd_gregmap): ... this.
2980 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2983 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2985 * score-tdep.c (score7_linux_gregset): New static regset
2987 (score7_linux_regset_from_core_section): Remove dynamic regset
2989 (score_gdbarch_init): Drop allocation of tdep structure.
2990 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2992 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2994 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2996 (am33_regset_from_core_section): Remove dynamic regset
2999 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3001 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3002 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3004 (mips_linux_regset_from_core_section): Remove dynamic regset
3006 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3007 'gregset64', 'fpregset', and 'fpregset64'.
3008 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3009 deleted tdep fields.
3011 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3013 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3015 (amd64_regset_from_core_section): Remove dynamic regset
3017 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3019 (amd64obsd_regset_from_core_section): Remove dynamic regset
3021 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3023 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3024 x86-common regset supply function.
3025 * i386-tdep.c (i386_collect_gregset): Make static.
3026 (i386_gregset): New global regset structure.
3027 (i386_fpregset, i386_xstateregset): New static regset structures.
3028 (i386_regset_from_core_section): Remove dynamic regset
3030 (i386_gdbarch_init): Remove initialization of tdep fields
3031 'gregset', 'fpregset', and 'xstateregset'.
3032 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3033 'fpregset', and 'xstateregset'.
3034 (i386_collect_gregset): Remove prototype.
3035 (i386_gregset): New declaration.
3036 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3038 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3041 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3043 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3044 (arm_linux_vfpregset): New static regset structures.
3045 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3047 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3048 and 'vfpregset' fields.
3050 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3052 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3053 (aarch64_linux_fpregset): New static regset structures.
3054 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3055 of regset structures.
3056 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3059 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3061 * regset.h (struct regset): Remove gdbarch field.
3062 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3063 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3064 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3066 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3067 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3068 (ppc32_linux_vsxregset): Likewise.
3069 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3070 via the regcache instead of the regset.
3071 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3072 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3073 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3074 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3077 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3079 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3080 Constify structures.
3081 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3082 (alphanbsd_aout_gregset): Likewise.
3083 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3084 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3086 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3087 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3089 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3090 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3091 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3092 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3093 * m88k-tdep.c (m88k_gregset): Likewise.
3094 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3095 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3096 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3097 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3098 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3099 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3100 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3101 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3102 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3104 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3105 * sh-tdep.h (sh_corefile_gregset): Likewise.
3106 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3107 * vax-tdep.c (vax_gregset): Likewise.
3109 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3111 Fix TLS access for -static -pthread.
3112 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3113 (try_thread_db_load_1): Initialize it.
3114 (thread_db_get_thread_local_address): Call it if LM is zero.
3115 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3116 * target.h (struct target_ops) (to_get_thread_local_address): Add
3117 load_module_addr comment.
3119 2014-05-21 Pedro Alves <palves@redhat.com>
3121 * dcache.c (dcache_read_memory_partial): If reading the cache line
3122 fails, fallback to reading just the memory the caller wanted.
3124 2014-05-20 Doug Evans <dje@google.com>
3126 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3127 instead of get_current_arch.
3129 2014-05-20 Pedro Alves <palves@redhat.com>
3131 * NEWS: Mention that compare-sections now works with all targets.
3133 * remote.c (PACKET_qCRC): New enum value.
3134 (remote_verify_memory): Don't send qCRC if the target has no
3135 execution. Use packet_support/packet_ok. If the target doesn't
3136 support the qCRC packet, fallback to a deep memory copy.
3137 (compare_sections_command): Say "target image" instead of "remote
3139 (_initialize_remote): Add PACKET_qCRC to the list of config
3140 packets that have no associated command. Extend comment.
3141 * target.c (simple_verify_memory, default_verify_memory): New
3143 * target.h (struct target_ops) <to_verify_memory>: Default to
3144 default_verify_memory.
3145 (simple_verify_memory): New declaration.
3146 * target-delegates.c: Regenerate.
3148 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3150 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3152 2014-05-20 Hui Zhu <hui@codesourcery.com>
3153 Yao Qi <yao@codesourcery.com>
3156 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3157 and change address of sp and pc.
3159 2014-05-19 Tom Tromey <tromey@redhat.com>
3161 * gdbtypes.c (rank_function): Use XNEWVEC.
3162 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3164 2014-05-19 Doug Evans <dje@google.com>
3166 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3167 build_type_unit_groups and moved closer to only caller. Remove
3168 arguments. All references updated. Remove outdated .gdb_index
3170 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3171 build_type_psymtabs_1.
3173 2014-05-19 Doug Evans <dje@google.com>
3175 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3176 n_type_unit_groups, all_type_unit_groups. All uses removed.
3177 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3178 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3179 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3180 (add_type_unit_group_to_table): Delete.
3182 2014-05-19 Doug Evans <dje@google.com>
3184 * eval.c (evaluate_subexp_standard): Add some comments.
3186 2014-05-17 Doug Evans <xdje42@gmail.com>
3188 * progspace.c (remove_program_space): Delete, unused.
3189 * progspace.h (remove_program_space): Ditto.
3191 2014-05-17 Doug Evans <xdje42@gmail.com>
3193 * inferior.c (prune_inferiors): Fix comment.
3194 (remove_inferior_command): Call prune_program_spaces.
3196 2014-05-16 Doug Evans <dje@google.com>
3198 New command line option -D.
3200 * main.c (set_gdb_data_directory): New function.
3201 (captured_main): Recognize -D. Flag error for --data-directory "".
3202 Call set_gdb_data_directory.
3203 (print_gdb_help): Print --data-directory, -D.
3204 * main.h (set_gdb_data_directory): Declare.
3205 * top.c (staged_gdb_datadir): New static global.
3206 (set_gdb_datadir): Call set_gdb_data_directory
3207 (show_gdb_datadir): New function.
3208 (init_main): Update init of data-directory parameter.
3210 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3212 Import the "dirfd" gnulib module.
3213 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3214 * gnulib/aclocal.m4: Update.
3215 * gnulib/config.in: Update.
3216 * gnulib/configure: Update.
3217 * gnulib/import/Makefile.am: Update.
3218 * gnulib/import/Makefile.in: Update.
3219 * gnulib/import/dirfd.c: New.
3220 * gnulib/import/m4/dirfd.m4: New.
3221 * gnulib/import/m4/gnulib-cache.m4: Update.
3222 * gnulib/import/m4/gnulib-comp.m4: Update.
3224 2014-05-16 Pierre Muller <muller@sourceware.org>
3225 Yao Qi <yao@codesourcery.com>
3227 * valprint.c (print_wchar): Move the code on checking whether
3228 W is a printable wide char to the default branch of switch
3229 statement below. Call wchar_printable instead of gdb_iswprint.
3231 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3233 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3234 ldr.w and ldrd instructions.
3236 2014-05-15 Doug Evans <dje@google.com>
3238 * dwarf2read.c (read_structure_type): Delete outdated comments.
3240 2014-05-14 Tom Tromey <tromey@redhat.com>
3242 * macrocmd.c (print_macro_definition): Reindent.
3244 2014-05-13 Doug Evans <xdje42@gmail.com>
3246 * python/py-cmd.c (cmdpy_completer): Add comment.
3247 (completers): Make const.
3249 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3251 * infrun.c (resume): Remove should_resume (unused). Move up
3252 declaration of resume_ptid.
3254 2014-05-13 Tom Tromey <tromey@redhat.com>
3256 * language.h (unop_type_check): Remove.
3257 (binop_type_check): Don't declare.
3259 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3261 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3262 call to regcache_raw_collect.
3264 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3266 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3267 mi_console->quote as the quoting character.
3269 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3271 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3273 2014-04-29 Tom Tromey <tromey@redhat.com>
3275 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3276 "show debug varobj".
3278 2014-05-07 Kyle McMartin <kyle@redhat.com>
3280 Pushed by Joel Brobecker <brobecker@adacore.com>.
3281 * aarch64-tdep.c (aarch64_software_single_step): New function.
3282 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3283 with aarch64_software_single_step.
3285 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3289 2014-05-05 Keith Seitz <keiths@redhat.com>
3291 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3292 variable or history value is successfully parsed.
3294 2014-05-05 Yao Qi <yao@codesourcery.com>
3295 Pedro Alves <palves@redhat.com>
3297 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3298 address of blocks that intersects the requested range. Trim
3299 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3301 * ctf.c (ctf_xfer_partial): Likewise.
3303 2014-05-05 Yao Qi <yao@codesourcery.com>
3305 * printcmd.c (display_command): Remove the check to
3306 target_has_execution.
3308 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3310 * ppcobsd-nat.c: Include "obsd-nat.h".
3311 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3313 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3315 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3317 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3318 and 16-bit signed and unsigned arguments. Update comment.
3319 (stap_parse_probe_arguments): Extend code to handle such
3320 arguments. Use warning instead of complaint to notify about
3321 unrecognized bitness.
3323 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3325 PR breakpoints/16889
3326 * stap-probe.c (stap_parse_probe_arguments): Simplify
3327 check for non-prefixed probes (i.e., probes whose
3328 arguments do not start with "N@"). Always set the
3329 argument type to a sane value.
3331 2014-05-01 David Taylor <dtaylor@emc.com>
3333 * remote.c (compare_sections_command): Add -r option to compare
3334 all loadable read-only sections.
3336 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3338 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3339 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3341 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3342 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3343 Remove unused CORE_ADDR argument. Update all callers.
3345 2014-04-29 Pedro Alves <palves@redhat.com>
3347 * remote.c (struct packet_config) <detect>: Extend comment.
3348 (add_packet_config_cmd): Don't set the config's detect or support
3350 (init_all_packet_configs): Also initialize the config's 'detect'
3352 (reset_all_packet_configs_support): New function.
3353 (remote_open_1): Call reset_all_packet_configs_support instead of
3354 init_all_packet_configs.
3355 (_initialize_remote): Initialize all packet configs. Assert that
3356 all packets have an associated command, except a few known
3359 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3361 * dwarf2read.c (read_subrange_type): Handle dynamic
3362 DW_AT_lower_bound attributes.
3364 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3366 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3367 dynamic bounds before computing its upper bound.
3368 (ada_discrete_type_low_bound): Same as above with the lower bound.
3370 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3372 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3373 range types. Adjust the array handling implementation to
3374 take advantage of this change.
3375 (resolve_dynamic_range): New function, mostly extracted from
3376 resolve_dynamic_bounds.
3377 (resolve_dynamic_array): New function, mostly extracted from
3378 resolve_dynamic_bounds.
3379 (resolve_dynamic_bounds): Delete.
3380 (resolve_dynamic_type): Reimplement. Add handling of
3381 TYPE_CODE_RANGE types.
3383 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3385 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3386 handling of parallel ___XA types.
3388 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3390 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3391 unnecessary second call to static_unwrap_type.
3393 2014-04-27 Hui Zhu <hui@codesourcery.com>
3395 * stack.c (print_frame_info): Call do_gdb_disassembly with
3396 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3398 2014-04-26 Doug Evans <xdje42@gmail.com>
3400 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3402 2014-04-25 Pedro Alves <palves@redhat.com>
3405 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3406 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3407 and newline from built string.
3408 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3409 (linux_ptrace_attach_fail_reason): ... this.
3410 * linux-nat.c (linux_nat_attach): Adjust to use
3411 linux_ptrace_attach_fail_reason.
3413 2014-04-25 Pedro Alves <palves@redhat.com>
3415 * remote.c (struct remote_state): Remove multi_process_aware,
3416 non_stop_aware, cond_tracepoints, cond_breakpoints,
3417 breakpoint_commands, fast_tracepoints, static_tracepoints,
3418 install_in_trace, disconnected_tracing,
3419 enable_disable_tracepoints, string_tracing, and
3420 augmented_libraries_svr4_read fields.
3421 (remote_multi_process_p): Move further below in the file.
3422 (struct packet_config): Add comments.
3423 (update_packet_config): Delete function.
3424 (show_packet_config_cmd): Use packet_config_support.
3425 (add_packet_config_cmd): Use NULL as set callback.
3426 (packet_ok): "set remote foo-packet"-style commands no longer
3427 change config->supported -- adjust.
3428 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3429 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3430 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3431 (PACKET_QNonStop, PACKET_multiprocess_feature)
3432 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3433 (PACKET_DisconnectedTracing_feature)
3434 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3435 (set_remote_protocol_packet_cmd): Delete function.
3436 (packet_config_support, packet_support): New functions.
3437 (set_remote_protocol_Z_packet_cmd): Don't call
3438 update_packet_config.
3439 (remote_query_attached, remote_pass_signals)
3440 (remote_program_signals, remote_threads_info)
3441 (remote_threads_extra_info, remote_start_remote): Use
3443 (remote_start_remote): Use packet_config_support and
3445 (init_all_packet_configs): Set all packets to unknown support,
3446 instead of calling update_packet_config.
3447 (remote_check_symbols): Use packet_support.
3448 (remote_supported_packet): Unconditionally set the packet config's
3450 (remote_multi_process_feature, remote_non_stop_feature)
3451 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3452 (remote_breakpoint_commands_feature)
3453 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3454 (remote_install_in_trace_feature)
3455 (remote_disconnected_tracing_feature)
3456 (remote_enable_disable_tracepoint_feature)
3457 (remote_string_tracing_feature)
3458 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3459 (remote_protocol_features): Adjust to use remote_supported_packet
3460 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3461 "ConditionalTracepoints", "ConditionalBreakpoints",
3462 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3463 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3464 "EnableDisableTracepoints", and "tracenz".
3465 (remote_query_supported): Use packet_support.
3466 (remote_open_1): Adjust.
3467 (extended_remote_attach_1): Use packet_support. Switch on the
3468 result of packet_ok instead of checking whether the packet ended
3470 (remote_vcont_resume): Use packet_support.
3471 (remote_resume, remote_stop_ns, fetch_register_using_p)
3472 (remote_prepare_to_store, store_register_using_P)
3473 (check_binary_download, remote_write_bytes): Use packet_support.
3474 (remote_vkill): Use packet_support. Switch on the result of
3475 packet_ok instead of checking whether the packet ended up
3477 (extended_remote_supports_disable_randomization): Use
3479 (extended_remote_run): Switch on the result of packet_ok instead
3480 of checking whether the packet ended up disabled.
3481 (remote_insert_breakpoint, remote_remove_breakpoint)
3482 (remote_insert_watchpoint, remote_remove_watchpoint)
3483 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3485 (remote_search_memory): Use packet_config_support.
3486 (remote_get_thread_local_address, remote_get_tib_address)
3487 (remote_hostio_send_command, remote_can_execute_reverse): Use
3489 (remote_supports_cond_tracepoints)
3490 (remote_supports_cond_breakpoints)
3491 (remote_supports_fast_tracepoints)
3492 (remote_supports_static_tracepoints)
3493 (remote_supports_install_in_trace)
3494 (remote_supports_enable_disable_tracepoint)
3495 (remote_supports_string_tracing)
3496 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3497 the packet config says the feature is enabled or disabled.
3498 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3499 (remote_get_trace_status): Use packet_support.
3500 (remote_set_disconnected_tracing): Adjust to check whether the
3501 feature is enabled with packet_support.
3502 (remote_set_trace_buffer_size, remote_use_agent)
3503 (remote_can_use_agent, remote_supports_btrace): Use
3505 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3506 Use packet_config_support.
3507 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3508 the packet config says the feature is enabled or disabled.
3509 (set_range_stepping): Use packet_support.
3511 2014-04-25 Tom Tromey <tromey@redhat.com>
3513 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3516 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3518 * NEWS: Mention support for C99 variable length arrays.
3520 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3522 * ada-lang.c (standard_exc): Expand introductory comment.
3524 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3525 Walfred Tedeschi <walfred.tedeschi@intel.com>
3527 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3529 (amd64_linux_read_description): Add code to handle AVX512 xstate
3530 mask and return respective tdesc.
3531 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3532 and features/i386/x32-avx512-linux.c.
3533 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3534 (amd64_linux_core_read_description): Add code to handle AVX512
3535 xstate mask and return respective tdesc.
3536 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3537 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3539 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3540 (tdesc_amd64_avx512_linux): New prototype.
3541 (tdesc_x32_avx512_linux): Likewise.
3542 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3543 features/i386/x32-avx512.c.
3544 (amd64_ymm_avx512_names): New register names for pseudo
3546 (amd64_ymmh_avx512_names): New register names for raw registers
3548 (amd64_k_names): New register names for K registers.
3549 (amd64_zmmh_names): New register names for ZMM raw registers.
3550 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3551 (amd64_xmm_avx512_names): New register names for XMM16-31
3553 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3555 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3556 if feature is present.
3557 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3558 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3559 (AMD64_NUM_REGS): Adjust to new number of registers.
3560 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3561 registers supplied via XSTATE by AVX512 registers.
3562 (i386_linux_read_description): Add case for AVX512.
3563 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3564 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3565 (i386_linux_core_read_description): Add case for AVX512.
3566 (i386_linux_init_abi): Install supported register note section
3568 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3570 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3571 registers to be number of zmm7h + 1.
3572 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3573 * i386-tdep.c: Include features/i386/i386-avx512.c.
3574 (i386_zmm_names): Add ZMM pseudo register names array.
3575 (i386_zmmh_names): Add ZMM raw register names array.
3576 (i386_k_names): Add K raw register names array.
3577 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3578 registers. AVX512 has 16 more ZMM registers than there are YMM
3580 (i386_zmmh_regnum_p): Add function to look up register number of
3582 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3583 (i386_k_regnum_p): Likewise for K raw registers.
3584 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3585 registers added by AVX512.
3586 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3587 registers added by AVX512.
3588 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3590 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3591 (i386_pseudo_register_name): Add ZMM pseudo registers.
3592 (i386_zmm_type): Construct and return vector registers type for ZMM
3594 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3595 ZMM0-31 pseudo registers and K registers.
3596 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3597 and YMM16-31 registers from register cache.
3598 (i386_pseudo_register_write): Add code to write K, ZMM and
3600 (i386_register_reggroup_p): Add code to include/exclude AVX512
3601 registers in/from respective register groups.
3602 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3603 registers if feature is present in xcr0.
3604 (i386_gdbarch_init): Add code to initialize AVX512 feature
3605 variables in tdep structure, wire in pseudo registers and call
3606 initialize_tdesc_i386_avx512.
3607 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3609 (i386_regnum): Add AVX512 registers.
3610 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3611 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3612 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3613 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3615 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3616 (i386_ymm_avx512_regnum_p): Likewise.
3617 (i386_k_regnum_p): Likewise.
3618 (i386_zmm_regnum_p): Likewise.
3619 (i386_zmmh_regnum_p): Likewise.
3620 * i387-tdep.c : Update year in copyright notice.
3621 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3623 (XSAVE_YMM_AVX512_ADDR): New macro.
3624 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3626 (XSAVE_XMM_AVX512_ADDR): New macro.
3627 (xsave_avx512_k_offset): New table for K register offsets in
3629 (XSAVE_AVX512_K_ADDR): New macro.
3630 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3632 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3633 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3635 (i387_collect_xsave): Add code to collect AVX512 registers from
3637 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3638 of XMM16-31 registers.
3639 (I387_NUM_K_REGS): New define for number of K registers.
3640 (I387_K0_REGNUM): New define for K0 register number.
3641 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3642 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3643 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3645 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3646 (I387_XMM16_REGNUM): New define for XMM16 register number.
3647 (I387_YMM0_REGNUM): New define for YMM0 register number.
3648 (I387_KEND_REGNUM): New define for last K register number.
3649 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3650 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3652 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3654 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3656 * features/Makefile: Add AVX512 related files.
3657 * features/i386/32bit-avx512.xml: New file.
3658 * features/i386/64bit-avx512.xml: Likewise.
3659 * features/i386/amd64-avx512-linux.c: Likewise.
3660 * features/i386/amd64-avx512-linux.xml: Likewise.
3661 * features/i386/amd64-avx512.c: Likewise.
3662 * features/i386/amd64-avx512.xml: Likewise.
3663 * features/i386/i386-avx512-linux.c: Likewise.
3664 * features/i386/i386-avx512-linux.xml: Likewise.
3665 * features/i386/i386-avx512.c: Likewise.
3666 * features/i386/i386-avx512.xml: Likewise.
3667 * features/i386/x32-avx512-linux.c: Likewise.
3668 * features/i386/x32-avx512-linux.xml: Likewise.
3669 * features/i386/x32-avx512.c: Likewise.
3670 * features/i386/x32-avx512.xml: Likewise.
3671 * regformats/i386/amd64-avx512-linux.dat: New file.
3672 * regformats/i386/amd64-avx512.dat: Likewise.
3673 * regformats/i386/i386-avx512-linux.dat: Likewise.
3674 * regformats/i386/i386-avx512.dat: Likewise.
3675 * regformats/i386/x32-avx512-linux.dat: Likewise.
3676 * regformats/i386/x32-avx512.dat: Likewise.
3677 * NEWS: Add note about new support for AVX512.
3680 2014-04-23 Pedro Alves <palves@redhat.com>
3682 * breakpoint.c (insert_bp_location): Tolerate errors if the
3683 breakpoint is set in a user-loaded objfile.
3684 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3685 location is marked shlib_disabled. If the breakpoint is set in a
3686 user-loaded objfile is a GDB-side memory breakpoint, validate it
3687 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3688 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3690 * mem-break.c (memory_validate_breakpoint): New function.
3691 * objfiles.c (userloaded_objfile_contains_address_p): New
3693 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3694 * target.h (memory_validate_breakpoint): New declaration.
3696 2014-04-23 Pedro Alves <palves@redhat.com>
3698 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3699 the breakpoint is set in a shared library, only suppress
3700 errors for software breakpoints, not hardware breakpoints.
3702 2014-04-22 Pedro Alves <palves@redhat.com>
3704 * infrun.c (schedlock_applies): New function, factored out from
3705 find_thread_needs_step_over.
3706 (find_thread_needs_step_over): Use it.
3707 (switch_back_to_stepped_thread): Always clear trap_expected if the
3708 step over is finished. Return early if scheduler locking applies.
3709 Look for the stepping thread and a potential step-over thread with
3711 (currently_stepping_or_nexting_callback): Delete.
3713 2014-04-22 Nick Clifton <nickc@redhat.com>
3715 * NEWS: Mention that ARM sim now supports tracing.
3717 2014-04-22 Yao Qi <yao@codesourcery.com>
3719 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3721 * tracefile.c (tracefile_fetch_registers): ... it. New
3723 * tracefile.h (tracefile_fetch_registers): Declare.
3724 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3725 tracefile_fetch_registers.
3727 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3730 * windows-nat.c (thread_rec): Don't display a warning when
3731 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3732 fails for any reason, set th->suspended to -1, so that we don't
3733 try to resume such a thread. Also, don't return NULL in these
3734 cases, to avoid completely ruin the session due to "PC register is
3735 not available" error.
3736 (do_windows_fetch_inferior_registers): Check errors in
3737 GetThreadContext call.
3738 (windows_continue): Accept an additional argument KILLED; if not
3739 zero, ignore errors in the SetThreadContext call, since the
3740 inferior was killed and is shutting down.
3741 (windows_resume, get_windows_debug_event)
3742 (windows_create_inferior, windows_mourn_inferior)
3743 (windows_kill_inferior): All callers of windows_continue changed
3744 to adjust to its new calling sequence.
3746 2014-04-19 Yao Qi <yao@codesourcery.com>
3748 * ctf.c (ctf_open): Call post_create_inferior.
3750 2014-04-19 Yao Qi <yao@codesourcery.com>
3752 * ctf.c (handle_id): New static variable.
3753 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3754 value. Get the declaration of event "register" and get length
3755 of field "contents".
3757 2014-04-19 Yao Qi <yao@codesourcery.com>
3759 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3761 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3763 * valops.c (oload_method_static): Remove unnecessary argument
3764 METHOD. Update all callers.
3766 2014-04-18 Pedro alves <palves@redhat.com>
3767 Tom Tromey <tromey@redhat.com>
3770 * frame.c (get_prev_frame_1): Rename to ...
3771 (get_prev_frame_always): ... this, and make extern. Adjust.
3772 (skip_artificial_frames): Use get_prev_frame_always.
3773 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3774 (get_frame_unwind_stop_reason): Adjust to rename.
3775 * frame.h (get_prev_frame_always): Declare.
3776 * inline-frame.c: Include frame.h.
3777 (inline_frame_this_id): Use get_prev_frame_always.
3779 2014-04-18 Tristan Gingold <gingold@adacore.com>
3781 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3782 code by using bfd_mach_o_get_base_address.
3784 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3786 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3787 (spu_ax_pseudo_register_collect): New function.
3788 (spu_ax_pseudo_register_push_stack): Likewise.
3789 (spu_dwarf_reg_to_regnum): Likewise.
3790 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3792 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3794 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3795 Replace FRAME argument with FRAME_ID.
3796 * gdbarch.c, gdbarch.h: Regenerate.
3797 * findvar.c (default_value_from_register): Add GDBARCH argument;
3798 replace FRAME by FRAME_ID. No longer call get_frame_id.
3799 (value_from_register): Update call to gdbarch_value_from_register.
3800 * value.h (default_value_from_register): Update prototype.
3801 * s390-linux-tdep.c (s390_value_from_register): Update interface
3802 and call to default_value_from_register.
3803 * spu-tdep.c (spu_value_from_register): Likewise.
3805 * findvar.c (address_from_register): Remove TYPE argument.
3806 Do not call value_from_register; use gdbarch_value_from_register
3807 with null_frame_id instead.
3808 * value.h (address_from_register): Update prototype.
3809 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3810 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3811 address_from_register interface change.
3813 2014-04-17 Yao Qi <yao@codesourcery.com>
3815 * gdbtypes.h: Update comments to link to types and macros'
3818 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3820 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3822 2014-04-16 Keith Seitz <keiths@redhat.com>
3825 * dwarf2read.c (skip_one_die): Check that all relative-offset
3826 sibling DIEs fall within range of the current reader's buffer.
3827 (read_partial_die): Likewise.
3829 2014-04-16 Keith Seitz <keiths@redhat.com>
3832 * cp-namespace.c (lookup_symbol_file): If the type name of
3833 `this' is NULL, return immediately.
3835 2014-04-14 Keith Seitz <keiths@redhat.com>
3838 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3839 from symbol_matches_domain in symtab.c. All local callers
3840 of symbol_matches_domain updated.
3841 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3842 search STRUCT_DOMAIN.
3843 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3844 independently. standard_lookup will do that automatically.
3845 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3846 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3847 (cp_lookup_symbol_in_namespace): Likewise.
3848 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3849 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3850 may return a STRUCT_DOMAIN match.
3851 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3852 * cp-support.c: Include language.h.
3853 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3855 * psymtab.c (match_partial_symbol): Compare the requested
3856 domain with the symbol's domain directly.
3857 (lookup_partial_symbol): Likewise.
3858 * symtab.c (lookup_symbol_in_language): Explain when/why
3859 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3860 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3861 appropriate languages.
3862 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3863 and moved to ada-lang.c
3864 (lookup_block_symbol): Explain that this function only returns
3865 symbol matching the requested DOMAIN.
3866 Compare the requested domain with the symbol's domain directly.
3867 (iterate_over_symbols): Compare the requested domain with the
3868 symbol's domain directly.
3869 * symtab.h (symbol_matches_domain): Remove.
3871 2014-04-14 Tom Tromey <tromey@redhat.com>
3874 * c-exp.y (type_aggregate_p): New function.
3875 (qualified_name, classify_inner_name): Use it.
3876 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3877 and TYPE_TARGET_TYPE of an enum type.
3878 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3880 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3881 handle TYPE_DECLARED_CLASS.
3882 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3884 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3885 * valops.c (enum_constant_from_type): New function.
3886 (value_aggregate_elt): Use it.
3887 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3890 2014-04-14 Tom Tromey <tromey@redhat.com>
3892 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3893 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3895 * value.h (value_aggregate_elt): Update.
3897 2014-04-14 Tom Tromey <tromey@redhat.com>
3899 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3901 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3903 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3904 (evaluate_subexp_standard): Pass noside argument.
3905 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3906 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3907 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3908 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3909 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3911 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3913 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3914 points to a constant blob.
3916 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3918 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3919 property and store it as the high bound and flag the range accordingly.
3920 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3921 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3922 * gdbtypes.h (enum range_flags): New enum.
3923 (struct range_bounds): Add flags member.
3925 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3927 * c-typeprint.c (c_type_print_varspec_suffix): Added
3928 check for not yet resolved high bound. If unresolved, print
3929 "variable length" string to the console instead of random
3932 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3934 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3936 (ada_template_to_fixed_record_type_1): Likewise.
3937 (ada_to_fixed_type_1): Likewise.
3938 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3939 (cp_print_value): Likewise.
3940 * d-valprint.c (dynamic_array_type): Likewise.
3941 * findvar.c (address_of_variable): Likewise.
3942 * jv-valprint.c (java_value_print): Likewise.
3943 * valops.c (value_ind): Likewise.
3944 * value.c (coerce_ref): Likewise.
3946 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3948 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3949 value and retrieve the dynamic type size.
3951 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3953 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3954 passed to sizeof is dynamic evaluate the argument to compute the length.
3956 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3957 Joel Brobecker <brobecker@adacore.com>
3959 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3960 (dwarf2_evaluate_property): New function.
3961 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3962 * dwarf2read.c (attr_to_dynamic_prop): New function.
3963 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3965 * gdbtypes.c: Include dwarf2loc.h.
3966 (is_dynamic_type): New function.
3967 (resolve_dynamic_type): New function.
3968 (resolve_dynamic_bounds): New function.
3969 (get_type_length): New function.
3970 (check_typedef): Use get_type_length to compute type length.
3971 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3972 (TYPE_LOW_BOUND_KIND): New macro.
3973 (is_dynamic_type): New function prototype.
3974 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3975 to resolve dynamic properties of the type. Update comment.
3976 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3978 2014-04-14 Richard Henderson <rth@redhat.com>
3980 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3982 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3983 Doug Evans <xdje42@gmail.com>
3985 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3986 dereference TYPE_CODE_REF values.
3988 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3990 Revert the following changes due to regressions:
3992 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3993 (dwarf2_evaluate_property): New function.
3994 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3995 * dwarf2read.c (attr_to_dynamic_prop): New function.
3996 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3998 * gdbtypes.c: Include dwarf2loc.h.
3999 (is_dynamic_type): New function.
4000 (resolve_dynamic_type): New function.
4001 (resolve_dynamic_bounds): New function.
4002 (get_type_length): New function.
4003 (check_typedef): Use get_type_length to compute type length.
4004 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4005 (TYPE_LOW_BOUND_KIND): New macro.
4006 (is_dynamic_type): New function prototype.
4007 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4008 to resolve dynamic properties of the type. Update comment.
4009 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4011 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4012 passed to sizeof is dynamic evaluate the argument to compute the length.
4014 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4015 value and retrieve the dynamic type size.
4017 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4018 (ada_template_to_fixed_record_type_1): Likewise.
4019 (ada_to_fixed_type_1): Likewise.
4020 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4021 (cp_print_value): Likewise.
4022 * d-valprint.c (dynamic_array_type): Likewise.
4023 * eval.c (evaluate_subexp_with_coercion): Likewise.
4024 * findvar.c (address_of_variable): Likewise.
4025 * jv-valprint.c (java_value_print): Likewise.
4026 * valops.c (value_ind): Likewise.
4027 * value.c (coerce_ref): Likewise.
4029 * c-typeprint.c (c_type_print_varspec_suffix): Added
4030 check for not yet resolved high bound. If unresolved, print
4031 "variable length" string to the console instead of random
4034 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4035 property and store it as the high bound and flag the range accordingly.
4036 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4037 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4038 * gdbtypes.h (enum range_flags): New enum.
4039 (struct range_bounds): Add flags member.
4041 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4042 points to a constant blob.
4044 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4045 (evaluate_subexp_standard): Pass noside argument.
4046 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4047 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4048 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4049 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4050 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4052 2014-04-11 Keith Seitz <keiths@redhat.com>
4055 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4056 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4059 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4061 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4062 (evaluate_subexp_standard): Pass noside argument.
4063 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4064 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4065 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4066 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4067 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4069 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4071 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4072 points to a constant blob.
4074 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4076 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4077 property and store it as the high bound and flag the range accordingly.
4078 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4079 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4080 * gdbtypes.h (enum range_flags): New enum.
4081 (struct range_bounds): Add flags member.
4083 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4085 * c-typeprint.c (c_type_print_varspec_suffix): Added
4086 check for not yet resolved high bound. If unresolved, print
4087 "variable length" string to the console instead of random
4090 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4092 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4093 (ada_template_to_fixed_record_type_1): Likewise.
4094 (ada_to_fixed_type_1): Likewise.
4095 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4096 (cp_print_value): Likewise.
4097 * d-valprint.c (dynamic_array_type): Likewise.
4098 * eval.c (evaluate_subexp_with_coercion): Likewise.
4099 * findvar.c (address_of_variable): Likewise.
4100 * jv-valprint.c (java_value_print): Likewise.
4101 * valops.c (value_ind): Likewise.
4102 * value.c (coerce_ref): Likewise.
4104 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4106 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4107 value and retrieve the dynamic type size.
4109 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4111 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4112 passed to sizeof is dynamic evaluate the argument to compute the length.
4114 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4116 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4117 (dwarf2_evaluate_property): New function.
4118 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4119 * dwarf2read.c (attr_to_dynamic_prop): New function.
4120 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4122 * gdbtypes.c: Include dwarf2loc.h.
4123 (is_dynamic_type): New function.
4124 (resolve_dynamic_type): New function.
4125 (resolve_dynamic_bounds): New function.
4126 (get_type_length): New function.
4127 (check_typedef): Use get_type_length to compute type length.
4128 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4129 (TYPE_LOW_BOUND_KIND): New macro.
4130 (is_dynamic_type): New function prototype.
4131 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4132 to resolve dynamic properties of the type. Update comment.
4133 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4135 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4137 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4138 declaring high/low bounds and change uses accordingly. Call
4139 create_range_type instead of create_static_range_type.
4140 * gdbtypes.c (create_range_type): New function.
4141 (create_range_type): Convert bounds into struct bound_prop and pass
4142 them to create_range_type.
4143 * gdbtypes.h (struct bound_prop): New struct.
4144 (create_range_type): New function prototype.
4145 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4146 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4147 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4149 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4151 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4153 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4154 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4155 * ada-lang.c: All uses of create_range_type updated.
4156 * coffread.c: All uses of create_range_type updated.
4157 * dwarf2read.c: All uses of create_range_type updated.
4158 * f-exp.y: All uses of create_range_type updated.
4159 * m2-valprint.c: All uses of create_range_type updated.
4160 * mdebugread.c: All uses of create_range_type updated.
4161 * stabsread.c: All uses of create_range_type updated.
4162 * valops.c: All uses of create_range_type updated.
4163 * valprint.c: All uses of create_range_type updated.
4165 2014-04-10 Pedro Alves <palves@redhat.com>
4167 * breakpoint.c (single_step_breakpoints)
4168 (single_step_gdbarch): Move up in the file.
4169 (one_breakpoint_xfer_memory): New function, factored out from ...
4170 (breakpoint_xfer_memory): ... here. Also process single-step
4173 2014-04-09 Tristan Gingold <gingold@adacore.com>
4175 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4177 (darwin_decode_exception_message): Free port only after use.
4179 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4181 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4182 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4183 when setting the size of call_length.
4185 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4187 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4188 dereference TYPE_CODE_REF values.
4190 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4192 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4193 end of warning message.
4195 2014-04-03 Doug Evans <dje@google.com>
4197 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4198 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4200 2014-04-02 Alan Modra <amodra@gmail.com>
4202 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4203 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4204 (struct symbol_file_add_from_memory_args): Add size field.
4205 (find_vdso_size): New function.
4206 (add_vsyscall_page): Attempt to find vdso size.
4208 2014-04-01 Doug Evans <dje@google.com>
4210 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4212 2014-04-01 Tristan Gingold <gingold@adacore.com>
4214 * darwin-nat.c (darwin_encode_reply): Add prototype.
4215 (darwin_decode_exception_message): Reply to unknown inferiors.
4216 (darwin_decode_message): Handle message by id. Ignore message
4217 to unknown inferior.
4218 (darwin_wait): Discard unknown messages, add debug trace.
4220 2014-03-31 Doug Evans <dje@google.com>
4222 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4225 2014-03-31 Doug Evans <dje@google.com>
4227 New option "set print symbol-loading".
4229 * solib.c (solib_read_symbols): Only print symbol loading messages
4231 (solib_add): If symbol loading is in "brief" mode, notify user
4232 symbols are being loaded.
4233 (reload_shared_libraries_1): Ditto.
4234 * symfile.c (print_symbol_loading_off): New static global.
4235 (print_symbol_loading_brief): New static global.
4236 (print_symbol_loading_full): New static global.
4237 (print_symbol_loading_enums): New static global.
4238 (print_symbol_loading): New static global.
4239 (print_symbol_loading_p): New function.
4240 (symbol_file_add_with_addrs): Only print symbol loading messages
4242 (_initialize_symfile): Register "print symbol-loading" set/show
4244 * symfile.h (print_symbol_loading_p): Declare.
4246 2014-03-30 Doug Evans <xdje42@gmail.com>
4248 * infrun.c (set_last_target_status): New function.
4249 (handle_inferior_event): Call it.
4251 2014-03-30 Doug Evans <xdje42@gmail.com>
4253 * inferior.h (enum stop_kind): Improve comment.
4255 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4257 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4258 a reference, strip the reference layer before calling
4259 the lang_ops value_has_mutated callback.
4261 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4263 Remove some globals from our parser.
4264 * language.c (unk_lang_parser): Add "struct parser_state"
4266 * language.h (struct language_defn) <la_parser>: Likewise.
4267 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4268 (initialize_expout): Add "struct parser_state" argument.
4269 Rewrite function to use the parser state.
4270 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4271 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4272 write_exp_elt_longcst, write_exp_elt_dblcst,
4273 write_exp_elt_decfloatcst, write_exp_elt_type,
4274 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4275 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4276 write_dollar_variable): Likewise.
4277 (parse_exp_in_context_1): Use parser state.
4278 (insert_type_address_space): Add "struct parser_state" argument.
4280 (increase_expout_size): New function.
4281 * parser-defs.h: Forward declare "struct language_defn" and
4282 "struct parser_state".
4283 (expout, expout_size, expout_ptr): Remove extern declarations.
4284 (parse_gdbarch, parse_language): Rewrite macro declarations to
4285 accept the parser state.
4286 (struct parser_state): New struct.
4287 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4288 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4289 write_exp_elt_decfloatcst, write_exp_elt_type,
4290 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4291 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4292 write_exp_msymbol, write_dollar_variable,
4293 mark_struct_expression, insert_type_address_space): Add "struct
4294 parser_state" argument.
4295 (increase_expout_size): New function.
4296 * utils.c (do_clear_parser_state): New function.
4297 (make_cleanup_clear_parser_state): Likewise.
4298 * utils.h (make_cleanup_clear_parser_state): New function
4300 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4301 Update calls to write_exp* in order to pass the parser state.
4302 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4303 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4304 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4305 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4306 * stap-probe.c (stap_parse_register_operand): Likewise.
4307 (stap_parse_single_operand): Likewise.
4308 (stap_parse_argument_1): Likewise.
4309 (stap_parse_argument): Use parser state.
4310 * stap-probe.h: Include "parser-defs.h".
4311 (struct stap_parse_info) <pstate>: New field.
4312 * c-exp.y (parse_type): Rewrite to use parser state.
4313 (yyparse): Redefine to c_parse_internal.
4314 (pstate): New global variable.
4315 (parse_number): Add "struct parser_state" argument.
4316 (write_destructor_name): Likewise.
4317 (type_exp): Update calls to write_exp* and similars in order to
4319 (exp1, exp, variable, qualified_name, space_identifier,
4320 typename, typebase): Likewise.
4321 (write_destructor_name, parse_number, lex_one_token,
4322 classify_name, classify_inner_name, c_parse): Add "struct
4323 parser_state" argument. Update function to use parser state.
4324 * c-lang.h: Forward declare "struct parser_state".
4325 (c_parse): Add "struct parser_state" argument.
4326 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4327 (yyparse): Redefine macro to ada_parse_internal.
4328 (pstate): New variable.
4329 (write_int, write_object_renaming, write_var_or_type,
4330 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4331 type_int, type_long, type_long_long, type_float, type_double,
4332 type_long_double, type_char, type_boolean, type_system_address):
4333 Add "struct parser_state" argument.
4334 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4335 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4336 var_or_type, aggregate, aggregate_component_list,
4337 positional_list, others, component_group,
4338 component_associations): Update calls to write_exp* and similar
4339 functions in order to use parser state.
4340 (ada_parse, write_var_from_sym, write_int,
4341 write_exp_op_with_string, write_object_renaming,
4342 find_primitive_type, write_selectors, write_ambiguous_var,
4343 write_var_or_type, write_name_assoc, type_int, type_long,
4344 type_long_long, type_float, type_double, type_long_double,
4345 type_char, type_boolean, type_system_address): Add "struct
4346 parser_state" argument. Adjust function to use parser state.
4347 * ada-lang.c (parse): Likewise.
4348 * ada-lang.h: Forward declare "struct parser_state".
4349 (ada_parse): Add "struct parser_state" argument.
4350 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4351 calls to both functions.
4352 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4354 (yyparse): Redefine macro to f_parse_internal.
4355 (pstate): New variable.
4356 (parse_number): Add "struct parser_state" argument.
4357 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4358 and similars in order to use parser state.
4359 (parse_number): Adjust code to use parser state.
4361 (f_parse): New function.
4362 * f-lang.h: Forward declare "struct parser_state".
4363 (f_parse): Add "struct parser_state" argument.
4364 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4366 (yyparse): Redefine macro for java_parse_internal.
4367 (pstate): New variable.
4368 (push_expression_name, push_expression_name, insert_exp): Add
4369 "struct parser_state" argument.
4370 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4371 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4372 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4373 PostIncrementExpression, PostDecrementExpression,
4374 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4375 UnaryExpressionNotPlusMinus, CastExpression,
4376 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4377 RelationalExpression, EqualityExpression, AndExpression,
4378 ExclusiveOrExpression, InclusiveOrExpression,
4379 ConditionalAndExpression, ConditionalOrExpression,
4380 ConditionalExpression, Assignment, LeftHandSide): Update
4381 calls to write_exp* and similars in order to use parser state.
4382 (parse_number): Ajust code to use parser state.
4384 (java_parse): New function.
4385 (push_variable): Add "struct parser_state" argument. Adjust
4386 code to user parser state.
4387 (push_fieldnames, push_qualified_expression_name,
4388 push_expression_name, insert_exp): Likewise.
4389 * jv-lang.h: Forward declare "struct parser_state".
4390 (java_parse): Add "struct parser_state" argument.
4391 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4393 (yyparse): Redefine macro to m2_parse_internal.
4394 (pstate): New variable.
4395 (type_exp, exp, fblock, variable, type): Update calls to
4396 write_exp* and similars to use parser state.
4398 (m2_parse): New function.
4399 * m2-lang.h: Forward declare "struct parser_state".
4400 (m2_parse): Add "struct parser_state" argument.
4401 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4402 * objc-lang.h: Forward declare "struct parser_state".
4403 (end_msglist): Add "struct parser_state" argument.
4404 * p-exp.y (parse_type): Rewrite macro to use parser state.
4405 (yyparse): Redefine macro to pascal_parse_internal.
4406 (pstate): New variable.
4407 (parse_number): Add "struct parser_state" argument.
4408 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4409 write_exp* and similars in order to use parser state.
4410 (parse_number, yylex): Adjust code to use parser state.
4411 (pascal_parse): New function.
4412 * p-lang.h: Forward declare "struct parser_state".
4413 (pascal_parse): Add "struct parser_state" argument.
4414 * go-exp.y (parse_type): Rewrite macro to use parser state.
4415 (yyparse): Redefine macro to go_parse_internal.
4416 (pstate): New variable.
4417 (parse_number): Add "struct parser_state" argument.
4418 (type_exp, exp1, exp, variable, type): Update calls to
4419 write_exp* and similars in order to use parser state.
4420 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4421 to use parser state.
4422 (go_parse): Likewise.
4423 * go-lang.h: Forward declare "struct parser_state".
4424 (go_parse): Add "struct parser_state" argument.
4426 2014-03-27 Doug Evans <dje@google.com>
4428 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4430 2014-03-27 Doug Evans <dje@google.com>
4432 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4433 Remove argument abbrev_section. All callers updated.
4435 2014-03-27 Doug Evans <dje@google.com>
4437 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4438 addr_base, ranges_base.
4440 2014-03-26 Keith Seitz <keiths@redhat.com>
4442 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4443 types, not VAR_DOMAIN.
4445 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4447 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4449 * features/nios2-linux.c: Regenerated.
4450 * features/nios2.c: Regenerated.
4452 2014-03-25 Pedro Alves <palves@redhat.com>
4454 * cli/cli-script.c (script_from_file): Force the interpreter to
4457 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4459 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4460 small stack allocation.
4462 2014-03-24 Tristan Gingold <gingold@adacore.com>
4464 * darwin-nat.c (exc_server): Remove unused prototype.
4465 (darwin_dump_message): Correctly display data on x86_64.
4466 (darwin_encode_reply): Fix style.
4467 Add comments and fix indentation.
4469 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4471 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4473 2014-03-22 Doug Evans <xdje42@gmail.com>
4475 * infcmd.c: Whitespace fixes.
4476 (interrupt_command): Merge two function comments into one.
4478 2014-03-22 Doug Evans <xdje42@gmail.com>
4480 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4483 2014-03-22 Yao Qi <yao@codesourcery.com>
4485 * remote.c (target_read_live_memory): Remove.
4486 (memory_xfer_live_readonly_partial): Rename it to
4487 remote_xfer_live_readonly_partial. Remove argument 'object'.
4488 All callers updated. Call remote_read_bytes_1
4489 instead of target_read_live_memory.
4490 * tracepoint.c (set_traceframe_number): Remove.
4491 (make_cleanup_restore_traceframe_number): Likewise .
4492 * tracepoint.h (set_traceframe_number): Remove declaration.
4493 (make_cleanup_restore_traceframe_number): Likewise.
4495 2014-03-22 Yao Qi <yao@codesourcery.com>
4497 * remote.c (remote_read_bytes): Move code on reading from the
4499 (remote_read_bytes_1): ... here. New function.
4501 2014-03-22 Yao Qi <yao@codesourcery.com>
4503 * ctf.c (ctf_xfer_partial): Check the return value of
4504 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4505 return TARGET_XFER_UNAVAILABLE.
4506 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4507 * target.c (target_read_live_memory): Move it to remote.c.
4508 (memory_xfer_live_readonly_partial): Likewise.
4509 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4510 * remote.c (target_read_live_memory): Moved from target.c.
4511 (memory_xfer_live_readonly_partial): Likewise.
4512 (remote_read_bytes): Factored out from
4513 memory_xfer_partial_1.
4515 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4517 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4520 2014-03-21 Pedro Alves <palves@redhat.com>
4522 * infrun.c (normal_stop): Extend comment.
4524 2014-03-21 Hui Zhu <hui@codesourcery.com>
4525 Pedro Alves <palves@redhat.com>
4527 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4529 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4530 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4531 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4533 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4535 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4536 `z' formatted output modifier.
4538 2014-03-20 Tom Tromey <tromey@redhat.com>
4539 Sergio Durigan Junior <sergiodj@redhat.com>
4541 * probe.c (parse_probes): Turn assert into an ordinary error.
4542 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4543 exceptions when parsing probes. Rearrange the code for clarity.
4545 2014-03-20 Tom Tromey <tromey@redhat.com>
4548 * top.c (execute_command): Only dispatch events if the command
4551 2014-03-20 Tom Tromey <tromey@redhat.com>
4554 * infcall.c: Include event-top.h.
4555 (run_inferior_call): Call async_disable_stdin if needed.
4557 2014-03-20 Pedro Alves <palves@redhat.com>
4559 * infrun.c (prepare_to_proceed): Delete.
4560 (thread_still_needs_step_over): New function.
4561 (find_thread_needs_step_over): New function.
4562 (proceed): If the current thread needs a step-over, set its
4563 steping_over_breakpoint flag. Adjust to use
4564 find_thread_needs_step_over instead of prepare_to_proceed.
4565 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4566 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4568 (switch_back_to_stepped_thread): Step over breakpoints of all
4569 threads not the stepping thread, before switching back to the
4572 2014-03-20 Pedro Alves <palves@redhat.com>
4574 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4576 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4577 * infrun.c (saved_singlestep_ptid)
4578 (stepping_past_singlestep_breakpoint): Delete.
4579 (resume): Remove stepping_past_singlestep_breakpoint handling.
4580 (proceed): Store the prev_pc of the stepping thread too.
4581 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4583 (enum infwait_states): Delete infwait_thread_hop_state.
4584 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4586 (handle_inferior_event): Adjust.
4587 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4588 handling and the thread-hop code. Before removing single-step
4589 breakpoints, check whether the thread hit a single-step breakpoint
4590 of another thread. If it did, the trap is not a random signal.
4591 (switch_back_to_stepped_thread): If the event thread hit a
4592 single-step breakpoint, unblock it before switching to the
4593 stepping thread. Handle the case of the stepped thread having
4595 (keep_going): Handle the case of the current thread moving past a
4596 single-step breakpoint.
4598 2014-03-20 Pedro Alves <palves@redhat.com>
4601 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4602 are being stepped over.
4603 (breakpoint_address_match): Make extern.
4604 * breakpoint.h (breakpoint_address_match): New declaration.
4605 * inferior.h (stepping_past_instruction_at): New declaration.
4606 * infrun.c (struct step_over_info): New type.
4607 (step_over_info): New global.
4608 (set_step_over_info, clear_step_over_info)
4609 (stepping_past_instruction_at): New functions.
4610 (handle_inferior_event): Clear the step-over info when
4611 trap_expected is cleared.
4612 (resume): Remove now stale comment.
4613 (clear_proceed_status): Clear step-over info.
4614 (proceed): Adjust step-over handling to set or clear the step-over
4615 info instead of removing all breakpoints.
4616 (handle_signal_stop): When setting up a thread-hop, don't remove
4618 (stop_stepping): Clear step-over info.
4619 (keep_going): Adjust step-over handling to set or clear step-over
4620 info and then always inserting breakpoints, instead of removing
4621 all breakpoints when stepping over one.
4623 2014-03-20 Pedro Alves <palves@redhat.com>
4625 * infrun.c (previous_inferior_ptid): Adjust comment.
4626 (deferred_step_ptid): Delete.
4627 (infrun_thread_ptid_changed, prepare_to_proceed)
4628 (init_wait_for_inferior): Adjust.
4629 (handle_signal_stop): Delete deferred_step_ptid handling.
4631 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4634 * defs.h (sync_quit_force_run): New declaration.
4635 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4636 * event-top.c (async_sigterm_handler): New declaration.
4637 (async_sigterm_token): New variable.
4638 (async_init_signals): Create also async_sigterm_token.
4639 (async_sigterm_handler): New function.
4640 (sync_quit_force_run): New variable.
4641 (handle_sigterm): Replace quit_force call by other calls.
4642 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4644 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4646 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4647 offset into SPE pseudo registers.
4649 2014-03-18 Pedro Alves <palves@redhat.com>
4652 * inferior.h (print_stop_event): Declare.
4653 * infrun.c (print_stop_event): New, factored out from ...
4654 (normal_stop): ... this.
4655 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4656 of bpstat_print/print_stack_frame.
4658 2014-03-17 Tom Tromey <tromey@redhat.com>
4660 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4662 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4664 * ada-lang.c (decode_constrained_packed_array): Perform a
4665 minimal coercion for reference with coerce_ref instead of
4668 2014-03-17 Tristan Gingold <gingold@adacore.com>
4670 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4671 (darwin_solib_create_inferior_hook): Emit a warning if version
4674 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4676 * python/py-value.c (get_field_flag): Cast flag_name argument to
4677 PyObject_GetAttrString to support Python 2.4.
4679 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4681 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4682 (Global Maintainers): Remove Jan Kratochvil.
4684 2014-03-14 Pedro Alves <palves@redhat.com>
4686 * inferior.h (terminal_ours_for_output): Rename to ...
4687 (child_terminal_ours_for_output): ... this.
4688 (terminal_save_ours): Rename to ...
4689 (child_terminal_save_ours): ... this.
4690 (terminal_ours): Rename to ...
4691 (child_terminal_ours): ... this.
4692 (terminal_inferior): Rename to ...
4693 (child_terminal_inferior): ... this.
4694 (terminal_init_inferior): Rename to ...
4695 (child_terminal_init_inferior): ... this.
4696 (terminal_init_inferior_with_pgrp): Rename to ...
4697 (child_terminal_init_inferior_with_pgrp): ... this.
4698 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4699 (child_terminal_init_with_pgrp): ... this.
4700 (terminal_save_ours): Rename to ...
4701 (child_terminal_save_ours): ... this.
4702 (terminal_init_inferior): Rename to ...
4703 (child_terminal_init): ... this. Adjust.
4704 (terminal_inferior): Rename to ...
4705 (child_terminal_inferior): ... this.
4706 (terminal_ours_for_output): Rename to ...
4707 (child_terminal_ours_for_output): ... this. Adjust.
4708 (terminal_ours): Rename to ...
4709 (child_terminal_ours): ... this.
4710 (terminal_ours_1): Rename to ...
4711 (child_terminal_ours_1): ... this. Adjust.
4712 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4713 * windows-nat.c (do_initial_windows_stuff): Adjust.
4714 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4715 (gnu_terminal_init): ... this. Adjust.
4716 (gnu_target): Adjust.
4717 * inf-child.c (inf_child_target): Adjust.
4719 2014-03-13 Doug Evans <xdje42@gmail.com>
4722 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4725 2014-03-13 Doug Evans <xdje42@gmail.com>
4727 * value.c (record_latest_value): Call release_value_or_incref
4728 instead of release_value.
4730 2014-03-13 Pedro Alves <palves@redhat.com>
4732 * procfs.c (procfs_target): Don't override to_shortname,
4733 to_longname or to_doc.
4735 2014-03-13 Pedro Alves <palves@redhat.com>
4737 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4738 Unix in user visible strings.
4740 2014-03-12 Stan Shebs <stan@codesourcery.com>
4742 * gdbtypes.h: Annotate comments for Doxygen, add a page
4743 block comment with some general info.
4745 2014-03-12 Pedro Alves <palves@redhat.com>
4747 * infcmd.c (prepare_execution_command): New function, factored out
4748 from several execution commands.
4749 (run_command_1, continue_command, step_1, jump_command)
4750 (signal_command, until_command, advance_command, finish_command)
4751 (attach_command): Use prepare_execution_command.
4753 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4755 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4758 (struct arm_linux_thread_points): Removed.
4759 (struct arm_linux_process_info): New.
4760 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4761 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4762 (arm_linux_find_breakpoints_by_tid): Removed.
4763 (struct arch_lwp_info): New.
4764 (arm_linux_find_process_pid): New functions.
4765 (arm_linux_add_process): New functions.
4766 (arm_linux_process_info_get): New functions.
4767 (arm_linux_forget_process): New function.
4768 (arm_linux_get_debug_reg_state): New function.
4769 (struct update_registers_data): New.
4770 (update_registers_callback): New function.
4771 (arm_linux_insert_hw_breakpoint1): Updated.
4772 (arm_linux_remove_hw_breakpoint1): Updated.
4773 (arm_linux_insert_hw_breakpoint): Updated.
4774 (arm_linux_remove_hw_breakpoint): Updated.
4775 (arm_linux_insert_watchpoint): Updated.
4776 (arm_linux_remove_watchpoint): Updated.
4777 (arm_linux_new_thread): Updated.
4778 (arm_linux_prepare_to_resume): New function.
4779 (arm_linux_new_fork): New function.
4780 (_initialize_arm_linux_nat): Updated.
4782 2014-03-12 Pedro Alves <palves@redhat.com>
4784 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4786 2014-03-12 Tom Tromey <tromey@redhat.com>
4788 * inf-child.c (return_zero): New function.
4789 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4790 * aix-thread.c (aix_thread_inferior_created): New function.
4791 (aix_thread_attach): Remove.
4792 (init_aix_thread_ops): Don't set to_attach.
4793 (_initialize_aix_thread): Register inferior_created observer.
4794 * corelow.c (init_core_ops): Don't set to_attach or
4796 * exec.c (init_exec_ops): Don't set to_attach or
4798 * infcmd.c (run_command_1): Use find_run_target. Make direct
4800 (attach_command): Use find_attach_target. Make direct target
4802 * record-btrace.c (init_record_btrace_ops): Don't set
4804 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4806 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4807 set to_create_inferior.
4808 * target.c (complete_target_initialization): Add assertion.
4809 (target_create_inferior): Remove.
4810 (find_default_attach, find_default_create_inferior): Remove.
4811 (find_attach_target, find_run_target): New functions.
4812 (find_default_is_async_p, find_default_can_async_p)
4813 (target_supports_non_stop, target_attach): Remove.
4814 (init_dummy_target): Don't set to_create_inferior or
4815 to_supports_non_stop.
4816 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4817 TARGET_DEFAULT_FUNC.
4818 <to_create_inferior>: Add comment.
4819 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4820 TARGET_DEFAULT_RETURN.
4821 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4822 (find_attach_target, find_run_target): Declare.
4823 (target_create_inferior): Remove.
4824 (target_has_execution_1): Update comment.
4825 (target_supports_non_stop): Remove.
4826 * target-delegates.c: Rebuild.
4828 2014-03-12 Pedro Alves <palves@redhat.com>
4830 * inf-child.h: Update comment to not mention Unix.
4832 2014-03-12 Pedro Alves <palves@redhat.com>
4834 * inf-child.c: Update top comment to not mention Unix. Add
4835 generic comment describing how this target is meant to be used.
4836 (inf_child_post_attach, inf_child_post_startup_inferior)
4837 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4840 2014-03-12 Pedro Alves <palves@redhat.com>
4842 * nto-procfs.c: Include inf-child.h.
4843 (procfs_ops): Delete global.
4844 (procfs_can_run): Delete method.
4845 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4846 target pointer instead of referencing procfs_ops.
4847 (procfs_prepare_to_store): Delete.
4848 (init_procfs_ops): Delete function.
4849 (procfs_target): New function, based on init_procfs_ops, but
4850 inherit inf_child_target.
4851 (_initialize_procfs): Use procfs_target.
4853 2014-03-12 Pedro Alves <palves@redhat.com>
4855 * windows-nat.c: Include inf-child.h.
4856 (windows_ops): Delete global.
4857 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4859 (init_windows_ops): Delete function.
4860 (windows_target): New function, based on init_windows_ops, but
4861 inherit inf_child_target.
4862 (_initialize_windows_nat): Use windows_target. Install x86
4863 specific target methods here.
4865 2014-03-10 Doug Evans <xdje42@gmail.com>
4867 * guile/guile.c (call_initialize_gdb_module): New function.
4868 (initialize_guile): Replace call to scm_init_guile with call to
4871 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4873 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4874 in call to TYPE_CODE macro.
4876 2014-03-10 Jerome Guitton <guitton@adacore.com>
4878 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4879 Resolve tagged types to full view.
4881 2014-03-10 Hui Zhu <hui@codesourcery.com>
4883 * target.h (target_insert_breakpoint): Remove "hardware" from its
4886 2014-03-07 Doug Evans <dje@google.com>
4888 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4890 2014-03-07 Doug Evans <dje@google.com>
4892 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4893 Remove unused local comp_dir_attr. Assert exactly one of
4894 stub_comp_unit_die, stub_comp_dir is non-NULL.
4896 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4898 * target.h (complete_target_initialization, add_target):
4901 2014-03-07 Pedro Alves <palves@redhat.com>
4903 * go32-nat.c: Include inf-child.h.
4904 (go32_ops): Delete global.
4905 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4907 (go32_create_inferior): Push the passed in target pointer instead
4908 of referencing go32_ops.
4909 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4910 (go32_target): New function, based on init_go32_ops, but inherit
4912 (_initialize_go32_nat): Use go32_target. Move parts of
4915 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4917 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4918 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4919 SYMBOL_VALUE_ADDRESS.
4920 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4922 2014-03-06 Yao Qi <yao@codesourcery.com>
4924 * breakpoint.c (get_tracepoint_by_number): Remove argument
4925 optional_p. All callers updated. Adjust comments. Update
4927 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4929 2014-03-06 Yao Qi <yao@codesourcery.com>
4931 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4932 early if get_number returns zero. Use 'p' instead of 'args'.
4934 2014-03-06 Yao Qi <yao@codesourcery.com>
4936 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4939 2014-03-06 Yao Qi <yao@codesourcery.com>
4941 PR breakpoints/16508
4942 * tracepoint.c (check_trace_running): New function.
4943 (trace_find_command): Move code to check_trace_running and
4944 call check_trace_running.
4945 (trace_find_pc_command): Likewise.
4946 (trace_find_tracepoint_command): Likewise.
4947 (trace_find_line_command): Likewise.
4948 (trace_find_range_command): Likewise.
4949 * tracepoint.h (check_trace_running): Likewise.
4950 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4952 2014-03-06 Yao Qi <yao@codesourcery.com>
4954 * target.h (struct target_ops) <to_traceframe_info>: Use
4955 TARGET_DEFAULT_NORETURN (tcomplain ()).
4956 * target-delegates.c: Regenerated.
4958 2014-03-05 Pedro Alves <palves@redhat.com>
4961 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4962 void. Update comment.
4963 (dcache_xfer_memory): Delete.
4964 (dcache_read_memory_partial): New, based on the read bits of
4966 (dcache_update): Add status parameter. Use ULONGEST for len, and
4967 adjust. Discard cache lines if the reason for the update was
4969 * dcache.h (dcache_xfer_memory): Delete declaration.
4970 (dcache_read_memory_partial): New declaration.
4971 (dcache_update): Update prototype.
4972 * target.c (raw_memory_xfer_partial): Update the dcache here.
4973 (memory_xfer_partial_1): Don't handle dcache writes here.
4975 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4977 * remote-sim.c (gdbsim_load): Add const to prog.
4979 2014-03-03 Tom Tromey <tromey@redhat.com>
4981 * elfread.c (probe_key): Change to bfd_data.
4982 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4983 now per-BFD, not per-objfile.
4984 * stap-probe.c (stap_probe_destroy): Update comment.
4985 (handle_stap_probe): Allocate on the per-BFD obstack.
4987 2014-03-03 Tom Tromey <tromey@redhat.com>
4989 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4990 * breakpoint.c (create_longjmp_master_breakpoint): Use
4992 (add_location_to_breakpoint, bkpt_probe_insert_location)
4993 (bkpt_probe_remove_location): Update.
4994 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4995 * elfread.c (elf_symfile_relocate_probe): Remove.
4996 (elf_probe_fns): Update.
4997 (insert_exception_resume_breakpoint): Change type of "probe"
4998 parameter to bound_probe.
4999 (check_exception_resume): Update.
5000 * objfiles.c (objfile_relocate1): Don't relocate probes.
5001 * probe.c (bound_probe_s): New typedef.
5002 (parse_probes): Use get_probe_address. Set sal's objfile.
5003 (find_probe_by_pc): Return a bound_probe.
5004 (collect_probes): Return a VEC(bound_probe_s).
5005 (compare_probes): Update.
5006 (gen_ui_out_table_header_info): Change type of "probes"
5008 (info_probes_for_ops): Update.
5009 (get_probe_address): New function.
5010 (probe_safe_evaluate_at_pc): Update.
5011 * probe.h (struct probe_ops) <get_probe_address>: New field.
5012 <set_semaphore, clear_semaphore>: Add objfile parameter.
5013 (struct probe) <objfile>: Remove field.
5015 <address>: Update comment.
5016 (struct bound_probe): New.
5017 (find_probe_by_pc): Return a bound_probe.
5018 (get_probe_address): Declare.
5019 * solib-svr4.c (struct probe_and_action) <address>: New field.
5020 (hash_probe_and_action, equal_probe_and_action): Update.
5021 (register_solib_event_probe): Add address parameter.
5022 (solib_event_probe_at): Update.
5023 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5025 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5026 (stap_get_probe_address): New function.
5027 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5028 (compile_probe_arg): Update.
5029 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5031 (handle_stap_probe): Don't relocate the probe.
5032 (stap_relocate): Remove.
5033 (stap_gen_info_probes_table_values): Update.
5034 (stap_probe_ops): Remove stap_relocate.
5035 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5036 (debug_sym_probe_fns): Update.
5037 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5038 * symtab.c (init_sal): Use memset.
5039 * symtab.h (struct symtab_and_line) <objfile>: New field.
5040 * tracepoint.c (start_tracing, stop_tracing): Update.
5042 2014-03-03 Tom Tromey <tromey@redhat.com>
5044 * probe.h (parse_probes, find_probe_by_pc)
5045 (find_probes_in_objfile): Fix comments.
5047 2014-03-02 Doug Evans <xdje42@gmail.com>
5049 * infrun.c (handle_signal_stop): Replace test for
5050 TARGET_WAITKIND_STOPPED with an assert.
5052 2014-03-02 Doug Evans <xdje42@gmail.com>
5054 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5056 2014-03-02 Doug Evans <xdje42@gmail.com>
5058 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5060 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5062 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5064 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5066 * i386obsd-nat.c: Include "obsd-nat.h".
5067 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5069 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5071 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5073 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5075 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5077 * mips64obsd-nat.c: Include "obsd-nath".
5078 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5080 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5082 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5084 * amd64obsd-nat.c: Include "obsd-nat,h.
5085 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5087 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5089 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5091 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5092 (find_overload_match): Update call to find_oload_champ.
5093 (find_oload_champ_namespace_loop): Likewise
5095 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5097 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5099 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5100 * config/sparc/obsd64.mh: New file.
5101 * sparc64obsd-nat.c: New file.
5103 * obsd-nat.h: New file.
5104 * obsd-nat.c: New file.
5105 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5106 (ALLDEPFILES): Add obsd-nat.c.
5108 2014-02-28 Tom Tromey <tromey@redhat.com>
5110 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5111 * cli-out.h (cli_ui_out_impl): Now const.
5112 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5113 * ui-out.c (struct ui_out) <impl>: Now const.
5114 (default_ui_out_impl): Now const.
5115 (ui_out_new): Make 'impl' parameter const.
5116 * ui-out.h (ui_out_new): Update.
5118 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5120 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5122 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5124 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5126 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5128 Additional PR 8882 fix.
5129 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5131 2014-02-27 Pedro Alves <palves@redhat.com>
5133 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5136 2014-02-27 Pedro Alves <palves@redhat.com>
5139 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5140 * nat/linux-waitpid.c: Include string.h.
5141 (status_to_str): Moved here and made extern.
5142 * nat/linux-waitpid.h (status_to_str): New declaration.
5144 2014-02-27 Hui Zhu <hui@codesourcery.com>
5147 * infrun.c (ptid_match): Move ...
5148 * common/ptid.c (ptid_match): ... here.
5149 * inferior.h (ptid_match): Move ...
5150 * common/ptid.h (ptid_match): ... here.
5152 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5154 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5155 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5158 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5160 * obsd-tdep.c (obsd_auxv_parse): New function.
5161 (obsd_init_abi): Set auxv_parse.
5163 * gdbarch.sh (auxv_parse): New.
5164 * gdbarch.h: Regenerated.
5165 * gdbarch.c: Regenerated.
5166 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5168 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5170 * guile/scm-value.c (gdbscm_history_append_x): New function.
5171 (value_functions): Add it.
5173 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5175 * dwarf2read.c (attr_value_as_address): New function.
5176 (dwarf2_find_base_address, read_call_site_scope): Use
5177 attr_value_as_address in place of DW_ADDR.
5178 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5179 the low and high addresses. Slight rework of the handling
5180 of the high pc being a constant form, and limit it to
5181 DWARF verson 4 or higher.
5182 (dwarf2_record_block_ranges): Likewise.
5183 (read_partial_die): Likewise.
5184 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5186 2014-02-26 Tom Tromey <tromey@redhat.com>
5188 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5190 2014-02-26 Tom Tromey <tromey@redhat.com>
5192 * elfread.c (elf_read_minimal_symbols): Return early if
5193 minimal symbols have already been read. Add "ei" parameter.
5194 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5195 * minsyms.c (prim_record_minimal_symbol_full): Update.
5196 * objfiles.h (struct objstats) <n_minsyms>: Move...
5197 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5198 * symmisc.c (print_objfile_statistics): Update.
5200 2014-02-26 Tom Tromey <tromey@redhat.com>
5202 * elfread.c (elf_read_minimal_symbols): New function, from
5204 (elf_symfile_read): Call it.
5206 2014-02-26 Tom Tromey <tromey@redhat.com>
5208 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5209 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5210 (lookup_minimal_symbol_solib_trampoline)
5211 (lookup_minimal_symbol_by_pc_section_1)
5212 (lookup_minimal_symbol_and_objfile): Update.
5213 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5214 Don't allocate a minimal symbol if minsyms have already been read.
5215 (build_minimal_symbol_hash_tables): Update.
5216 (install_minimal_symbols): Do nothing if minsyms already read.
5217 Use the per-BFD obstack.
5218 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5219 * objfiles.c (allocate_objfile): Call
5220 terminate_minimal_symbol_table later.
5221 (have_minimal_symbols): Update.
5222 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5223 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5224 Move from struct objfile.
5225 <minsyms_read>: New field.
5226 (struct objfile) <msymbols, minimal_symbol_count,
5227 msymbol_hash, msymbol_demangled_hash>: Move.
5228 (ALL_OBJFILE_MSYMBOLS): Update.
5229 * symfile.c (read_symbols): Set minsyms_read.
5230 (reread_symbols): Update.
5231 * symmisc.c (dump_objfile, dump_msymbols): Update.
5233 2014-02-26 Tom Tromey <tromey@redhat.com>
5235 * minsyms.c (msymbols_sort): Remove.
5236 * minsyms.h (msymbols_sort): Remove.
5237 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5238 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5239 * elfread.c (elf_symtab_read): Don't add section offsets.
5240 * xcoffread.c (record_minimal_symbol): Don't add section offset
5241 to minimal symbol address.
5242 * somread.c (text_offset, data_offset): Remove.
5243 (som_symtab_read): Don't add section offsets to minimal symbol
5245 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5246 Don't add section offsets to minimal symbols.
5247 * coffread.c (coff_symtab_read): Don't add section offsets
5248 to minimal symbol addresses.
5249 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5250 to minimal symbol addresses.
5251 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5252 section offset to minimal symbol addresses.
5253 * mdebugread.c (parse_partial_symbols): Don't add section
5254 offset to minimal symbol addresses.
5255 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5256 offset to minimal symbol addresses.
5258 2014-02-26 Tom Tromey <tromey@redhat.com>
5260 * ada-lang.c (ada_main_name): Update.
5261 (ada_add_standard_exceptions): Update.
5262 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5263 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5264 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5265 * auxv.c (ld_so_xfer_auxv): Update.
5266 * avr-tdep.c (avr_scan_prologue): Update.
5267 * ax-gdb.c (gen_var_ref): Update.
5268 * blockframe.c (get_pc_function_start)
5269 (find_pc_partial_function_gnu_ifunc): Update.
5270 * breakpoint.c (create_overlay_event_breakpoint)
5271 (create_longjmp_master_breakpoint)
5272 (create_std_terminate_master_breakpoint)
5273 (create_exception_master_breakpoint): Update.
5274 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5275 * c-valprint.c (c_val_print): Update.
5276 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5277 * common/agent.c (agent_look_up_symbols): Update.
5278 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5279 * dwarf2loc.c (call_site_to_target_addr): Update.
5280 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5281 * elfread.c (elf_gnu_ifunc_record_cache)
5282 (elf_gnu_ifunc_resolve_by_got): Update.
5283 * findvar.c (default_read_var_value): Update.
5284 * frame.c (inside_main_func): Update.
5285 * frv-tdep.c (frv_frame_this_id): Update.
5286 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5287 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5289 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5290 (hppa_hpux_find_dummy_bpaddr): Update.
5291 * hppa-tdep.c (hppa_symbol_address): Update.
5292 * infcmd.c (until_next_command): Update.
5293 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5295 * linespec.c (minsym_found, add_minsym): Update.
5296 * linux-nat.c (get_signo): Update.
5297 * linux-thread-db.c (inferior_has_bug): Update.
5298 * m32c-tdep.c (m32c_return_value)
5299 (m32c_m16c_address_to_pointer): Update.
5300 * m32r-tdep.c (m32r_frame_this_id): Update.
5301 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5302 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5303 * maint.c (maintenance_translate_address): Update.
5304 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5305 (frob_address): New function.
5306 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5307 frob_address. Rename parameter to "pc_in".
5308 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5310 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5312 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5313 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5314 * objc-lang.c (find_objc_msgsend): Update.
5315 * objfiles.c (objfile_relocate1): Update.
5316 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5317 * p-valprint.c (pascal_val_print): Update.
5318 * parse.c (write_exp_msymbol): Update.
5319 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5320 (ppc_elfv2_skip_entrypoint): Update.
5321 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5322 * printcmd.c (build_address_symbolic, msym_info)
5323 (address_info): Update.
5324 * proc-service.c (ps_pglobal_lookup): Update.
5325 * psymtab.c (find_pc_sect_psymtab_closer)
5326 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5327 Change msymbol parameter to bound_minimal_symbol.
5328 * ravenscar-thread.c (get_running_thread_id): Update.
5329 * remote.c (remote_check_symbols): Update.
5330 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5332 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5333 * solib-dsbt.c (lm_base): Update.
5334 * solib-frv.c (lm_base, main_got): Update.
5335 * solib-irix.c (locate_base): Update.
5336 * solib-som.c (som_solib_create_inferior_hook)
5337 (link_map_start): Update.
5338 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5339 * solib-svr4.c (elf_locate_base, enable_break): Update.
5340 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5341 (flush_ea_cache): Update.
5342 * stabsread.c (define_symbol, scan_file_globals): Update.
5343 * stack.c (find_frame_funname): Update.
5344 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5345 (debug_qf_find_pc_sect_symtab): Update.
5346 * symfile.c (simple_read_overlay_table)
5347 (simple_overlay_update): Update.
5348 * symfile.h (struct quick_symbol_functions)
5349 <find_pc_sect_symtab>: Change type of msymbol to
5350 bound_minimal_symbol.
5351 * symmisc.c (dump_msymbols): Update.
5352 * symtab.c (find_pc_sect_symtab_via_partial)
5353 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5354 (search_symbols, print_msymbol_info): Update.
5355 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5356 (MSYMBOL_VALUE_ADDRESS): Redefine.
5357 (BMSYMBOL_VALUE_ADDRESS): New macro.
5358 * tracepoint.c (scope_info): Update.
5359 * tui/tui-disasm.c (tui_find_disassembly_address)
5360 (tui_get_begin_asm_address): Update.
5361 * valops.c (find_function_in_inferior): Update.
5362 * value.c (value_static_field, value_fn_field): Update.
5364 2014-02-26 Tom Tromey <tromey@redhat.com>
5366 * ada-lang.c (ada_update_initial_language): Update.
5367 (ada_main_name, ada_has_this_exception_support): Update.
5368 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5369 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5370 * arm-tdep.c (arm_skip_stub): Update.
5371 * auxv.c (ld_so_xfer_auxv): Update.
5372 * avr-tdep.c (avr_scan_prologue): Update.
5373 * ax-gdb.c (gen_var_ref): Update.
5374 * breakpoint.c (struct breakpoint_objfile_data)
5375 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5376 type to bound_minimal_symbol.
5377 (create_overlay_event_breakpoint)
5378 (create_longjmp_master_breakpoint)
5379 (create_std_terminate_master_breakpoint)
5380 (create_exception_master_breakpoint): Update.
5381 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5382 * c-exp.y (classify_name): Update.
5383 * coffread.c (coff_symfile_read): Update.
5384 * common/agent.c (agent_look_up_symbols): Update.
5385 * d-lang.c (d_main_name): Update.
5386 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5387 * dec-thread.c (enable_dec_thread): Update.
5388 * dwarf2loc.c (call_site_to_target_addr): Update.
5389 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5390 * eval.c (evaluate_subexp_standard): Update.
5391 * findvar.c (struct minsym_lookup_data) <result>: Change type
5392 to bound_minimal_symbol.
5394 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5395 * frame.c (inside_main_func): Update.
5396 * frv-tdep.c (frv_frame_this_id): Update.
5397 * gcore.c (call_target_sbrk): Update.
5398 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5399 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5401 * go-lang.c (go_main_name): Update.
5402 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5403 (hppa_hpux_find_import_stub_for_addr): Update.
5404 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5405 Update. Change return type.
5406 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5408 * jit.c (jit_breakpoint_re_set_internal): Update.
5409 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5411 * linux-nat.c (get_signo): Update.
5412 * linux-thread-db.c (inferior_has_bug): Update
5413 * m32c-tdep.c (m32c_return_value)
5414 (m32c_m16c_address_to_pointer): Update.
5415 * m32r-tdep.c (m32r_frame_this_id): Update.
5416 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5417 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5418 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5419 lookup_minimal_symbol. Change return type.
5420 (lookup_minimal_symbol): Remove.
5421 (lookup_bound_minimal_symbol): Update.
5422 (lookup_minimal_symbol_text): Change return type.
5423 (lookup_minimal_symbol_solib_trampoline): Change return type.
5424 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5425 (lookup_minimal_symbol_solib_trampoline): Change return type.
5426 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5427 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5428 (value_nsstring, find_imps): Update.
5429 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5430 * p-lang.c (pascal_main_name): Update.
5431 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5432 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5433 * proc-service.c (ps_pglobal_lookup): Update.
5434 * ravenscar-thread.c (get_running_thread_msymbol): Change
5436 (has_ravenscar_runtime, get_running_thread_id): Update.
5437 * remote.c (remote_check_symbols): Update.
5438 * sol-thread.c (ps_pglobal_lookup): Update.
5439 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5440 * solib-dsbt.c (lm_base): Update.
5441 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5443 * solib-irix.c (locate_base): Update.
5444 * solib-som.c (som_solib_create_inferior_hook)
5445 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5447 * solib-spu.c (spu_enable_break): Update.
5448 * solib-svr4.c (elf_locate_base, enable_break): Update.
5449 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5450 (flush_ea_cache): Update.
5451 * stabsread.c (define_symbol): Update.
5452 * symfile.c (simple_read_overlay_table): Update.
5453 * symtab.c (find_pc_sect_line): Update.
5454 * tracepoint.c (scope_info): Update.
5455 * tui-disasm.c (tui_get_begin_asm_address): Update.
5456 * value.c (value_static_field): Update.
5458 2014-02-26 Tom Tromey <tromey@redhat.com>
5460 * minsyms.c (prim_record_minimal_symbol_full): Use
5461 SET_MSYMBOL_VALUE_ADDRESS.
5462 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5463 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5464 SET_MSYMBOL_VALUE_ADDRESS.
5465 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5466 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5468 2014-02-26 Tom Tromey <tromey@redhat.com>
5470 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5471 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5472 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5473 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5474 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5475 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5476 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5477 * ada-lang.c (ada_main_name): Update.
5478 (ada_lookup_simple_minsym): Update.
5479 (ada_make_symbol_completion_list): Update.
5480 (ada_add_standard_exceptions): Update.
5481 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5482 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5483 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5484 * arm-tdep.c (skip_prologue_function): Update.
5485 (arm_skip_stack_protector, arm_skip_stub): Update.
5486 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5487 (arm_wince_skip_main_prologue): Update.
5488 * auxv.c (ld_so_xfer_auxv): Update.
5489 * avr-tdep.c (avr_scan_prologue): Update.
5490 * ax-gdb.c (gen_var_ref): Update.
5491 * block.c (call_site_for_pc): Update.
5492 * blockframe.c (get_pc_function_start): Update.
5493 (find_pc_partial_function_gnu_ifunc): Update.
5494 * breakpoint.c (create_overlay_event_breakpoint): Update.
5495 (create_longjmp_master_breakpoint): Update.
5496 (create_std_terminate_master_breakpoint): Update.
5497 (create_exception_master_breakpoint): Update.
5498 (resolve_sal_pc): Update.
5499 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5500 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5502 * c-valprint.c (c_val_print): Update.
5503 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5504 * coffread.c (coff_symfile_read): Update.
5505 * common/agent.c (agent_look_up_symbols): Update.
5506 * dbxread.c (find_stab_function_addr): Update.
5507 (end_psymtab): Update.
5508 * dwarf2loc.c (call_site_to_target_addr): Update.
5509 (func_verify_no_selftailcall): Update.
5510 (tailcall_dump): Update.
5511 (call_site_find_chain_1): Update.
5512 (dwarf_expr_reg_to_entry_parameter): Update.
5513 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5514 (elf_gnu_ifunc_resolve_by_got): Update.
5515 * f-valprint.c (info_common_command): Update.
5516 * findvar.c (read_var_value): Update.
5517 * frame.c (get_prev_frame_1): Update.
5518 (inside_main_func): Update.
5519 * frv-tdep.c (frv_skip_main_prologue): Update.
5520 (frv_frame_this_id): Update.
5521 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5522 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5523 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5524 (gnuv3_skip_trampoline): Update.
5525 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5526 (hppa64_hpux_in_solib_call_trampoline): Update.
5527 (hppa_hpux_skip_trampoline_code): Update.
5528 (hppa64_hpux_search_dummy_call_sequence): Update.
5529 (hppa_hpux_find_import_stub_for_addr): Update.
5530 (hppa_hpux_find_dummy_bpaddr): Update.
5531 * hppa-tdep.c (hppa_symbol_address)
5532 (hppa_lookup_stub_minimal_symbol): Update.
5533 * i386-tdep.c (i386_skip_main_prologue): Update.
5534 (i386_pe_skip_trampoline_code): Update.
5535 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5536 * infcall.c (get_function_name): Update.
5537 * infcmd.c (until_next_command): Update.
5538 * jit.c (jit_breakpoint_re_set_internal): Update.
5539 (jit_inferior_init): Update.
5540 * linespec.c (minsym_found): Update.
5541 (add_minsym): Update.
5542 * linux-fork.c (info_checkpoints_command): Update.
5543 * linux-nat.c (get_signo): Update.
5544 * linux-thread-db.c (inferior_has_bug): Update.
5545 * m32c-tdep.c (m32c_return_value): Update.
5546 (m32c_m16c_address_to_pointer): Update.
5547 (m32c_m16c_pointer_to_address): Update.
5548 * m32r-tdep.c (m32r_frame_this_id): Update.
5549 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5550 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5551 * maint.c (maintenance_translate_address): Update.
5552 * minsyms.c (add_minsym_to_hash_table): Update.
5553 (add_minsym_to_demangled_hash_table): Update.
5554 (msymbol_objfile): Update.
5555 (lookup_minimal_symbol): Update.
5556 (iterate_over_minimal_symbols): Update.
5557 (lookup_minimal_symbol_text): Update.
5558 (lookup_minimal_symbol_by_pc_name): Update.
5559 (lookup_minimal_symbol_solib_trampoline): Update.
5560 (lookup_minimal_symbol_by_pc_section_1): Update.
5561 (lookup_minimal_symbol_and_objfile): Update.
5562 (prim_record_minimal_symbol_full): Update.
5563 (compare_minimal_symbols): Update.
5564 (compact_minimal_symbols): Update.
5565 (build_minimal_symbol_hash_tables): Update.
5566 (install_minimal_symbols): Update.
5567 (terminate_minimal_symbol_table): Update.
5568 (find_solib_trampoline_target): Update.
5569 (minimal_symbol_upper_bound): Update.
5570 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5571 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5572 (mips_skip_pic_trampoline_code): Update.
5573 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5574 * objc-lang.c (selectors_info): Update.
5575 (classes_info): Update.
5576 (find_methods): Update.
5577 (find_imps): Update.
5578 (find_objc_msgsend): Update.
5579 * objfiles.c (objfile_relocate1): Update.
5580 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5581 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5582 * p-valprint.c (pascal_val_print): Update.
5583 * parse.c (write_exp_msymbol): Update.
5584 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5585 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5586 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5587 * printcmd.c (build_address_symbolic): Update.
5589 (address_info): Update.
5590 * proc-service.c (ps_pglobal_lookup): Update.
5591 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5592 (find_pc_sect_psymtab): Update.
5593 * python/py-framefilter.c (py_print_frame): Update.
5594 * ravenscar-thread.c (get_running_thread_id): Update.
5595 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5597 * remote.c (remote_check_symbols): Update.
5598 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5599 (rs6000_skip_trampoline_code): Update.
5600 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5601 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5602 * solib-dsbt.c (lm_base): Update.
5603 * solib-frv.c (lm_base): Update.
5605 * solib-irix.c (locate_base): Update.
5606 * solib-som.c (som_solib_create_inferior_hook): Update.
5607 (som_solib_desire_dynamic_linker_symbols): Update.
5608 (link_map_start): Update.
5609 * solib-spu.c (spu_enable_break): Update.
5610 (ocl_enable_break): Update.
5611 * solib-svr4.c (elf_locate_base): Update.
5612 (enable_break): Update.
5613 * spu-tdep.c (spu_get_overlay_table): Update.
5614 (spu_catch_start): Update.
5615 (flush_ea_cache): Update.
5616 * stabsread.c (define_symbol): Update.
5617 (scan_file_globals): Update.
5618 * stack.c (find_frame_funname): Update.
5619 (frame_info): Update.
5620 * symfile.c (simple_read_overlay_table): Update.
5621 (simple_overlay_update): Update.
5622 * symmisc.c (dump_msymbols): Update.
5623 * symtab.c (fixup_section): Update.
5624 (find_pc_sect_line): Update.
5625 (skip_prologue_sal): Update.
5626 (search_symbols): Update.
5627 (print_msymbol_info): Update.
5628 (rbreak_command): Update.
5629 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5630 (completion_list_objc_symbol): Update.
5631 (default_make_symbol_completion_list_break_on): Update.
5632 * tracepoint.c (scope_info): Update.
5633 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5634 (tui_get_begin_asm_address): Update.
5635 * valops.c (find_function_in_inferior): Update.
5636 * value.c (value_static_field): Update.
5637 (value_fn_field): Update.
5639 2014-02-26 Tom Tromey <tromey@redhat.com>
5641 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5642 bound minimal symbols. Move code that knows about minsym
5644 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5646 * minsyms.h (minimal_symbol_upper_bound): Declare.
5647 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5648 minimal_symbol_upper_bound.
5650 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5652 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5653 Use the type's name if its basic type does not have a tag.
5655 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5657 * dwarf2read.c (read_subrange_type): Add comment.
5659 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5661 * dwarf2read.c (update_enumeration_type_from_children): New
5662 function, mostly extracted from process_structure_scope.
5663 (read_enumeration_type): Call update_enumeration_type_from_children.
5664 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5665 and flag_flag_enum fields.
5667 2014-02-26 Pedro Alves <palves@redhat.com>
5669 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5670 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5671 to_xfer_partial method.
5673 2014-02-26 Pedro Alves <palves@redhat.com>
5675 * target.c (complete_target_initialization): Don't install
5676 default_xfer_partial as to_xfer_partial hook.
5678 (update_current_target): Don't INHERIT nor de_fault
5679 deprecated_xfer_memory. Delete de_fault macro.
5680 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5681 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5682 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5685 2014-02-26 Pedro Alves <palves@redhat.com>
5687 * go32-nat.c (my_write_child): New function.
5688 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5689 (go32_xfer_partial): New function.
5690 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5691 Instead install a to_xfer_partial hook.
5693 2014-02-26 Pedro Alves <palves@redhat.com>
5695 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5696 to_xfer_partial helper. Rewrite.
5697 (procfs_xfer_partial): New function.
5698 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5699 Install a to_xfer_partial hook.
5701 2014-02-26 Pedro Alves <palves@redhat.com>
5703 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5704 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5705 (m32r_xfer_partial): New function.
5706 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5707 Install a to_xfer_partial hook.
5709 2014-02-26 Pedro Alves <palves@redhat.com>
5711 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5713 (mips_xfer_partial): New function.
5714 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5715 hook. Install a to_xfer_partial hook.
5717 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5719 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5720 * gdbtypes.c (create_array_type_with_stride): New function,
5721 renaming create_array_type, but with an added parameter
5722 called "bit_stride".
5723 (create_array_type): Re-implement using
5724 create_array_type_with_stride.
5725 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5726 and DW_AT_bit_stride attributes.
5728 2014-02-26 Pedro Alves <palves@redhat.com>
5730 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5731 task-specific breakpoints.
5733 2014-02-25 Pedro Alves <palves@redhat.com>
5735 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5736 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5738 2014-02-25 Stan Shebs <stan@codesourcery.com>
5740 * defs.h: Annotate comments for Doxygen.
5742 2014-02-25 Tom Tromey <tromey@redhat.com>
5744 * target.h (target_ignore): Don't declare.
5745 * target.c (target_ignore): Remove.
5747 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5750 * auto-load.c (auto_load_objfile_script_1): Change filename to
5753 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5755 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5756 documentation. Adjust prototype to match the target_ops
5757 to_xfer_partial method. Adjust implementation accordingly.
5759 2014-02-25 Hui Zhu <hui@codesourcery.com>
5761 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5764 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5766 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5767 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5768 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5769 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5770 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5771 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5772 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5773 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5775 (rl78_register_type): Use a data pointer type for SP and
5776 new pseudo registers mentioned above. Use a 16 bit integer
5777 type for all other register pairs.
5778 (rl78_register_name, rl78_g10_register_name): Update for
5779 new pseudo registers.
5780 (rl78_pseudo_register_read): Likewise.
5781 (rl78_pseudo_register_write): Likewise.
5782 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5783 to the newly added pseudo registers.
5785 2014-02-24 Doug Evans <dje@google.com>
5787 * value.c (record_latest_value): Fix comment.
5788 * printcmd.c (print_command_1): Remove code to handle -1 return from
5789 record_latest_value.
5791 2014-02-24 Pedro Alves <palves@redhat.com>
5793 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5794 deprecated_xfer_memory hook.
5795 (procfs_xfer_partial): Call procfs_xfer_memory instead
5796 of the deprecated_xfer_memory target hook.
5797 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5800 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5802 * windows-nat.c (windows_xfer_shared_libraries): Return
5803 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5804 requested object is TARGET_OBJECT_LIBRARIES.
5806 2014-02-24 Yao Qi <yao@codesourcery.com>
5808 * target.h (enum target_xfer_status)
5809 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5810 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5812 * corefile.c (memory_error_message): User updated.
5813 * exec.c (section_table_read_available_memory): Likewise.
5814 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5815 * target.c (target_xfer_status_to_string): Likewise.
5816 (raw_memory_xfer_partial): Likewise.
5817 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5818 * valops.c (read_value_memory): Likewise.
5819 * exec.h: Update comments.
5821 2014-02-24 Yao Qi <yao@codesourcery.com>
5823 * target.c (target_xfer_status_to_string): Rename argument err
5825 * target.h (target_xfer_status_to_string): Update declaration.
5826 Replace target_xfer_error_to_string with
5827 target_xfer_status_to_string in comment.
5829 2014-02-24 Yao Qi <yao@codesourcery.com>
5831 * mips-linux-nat.c (super_close): Update its type.
5832 (mips_linux_close): Pass 'self' to super_close.
5834 2014-02-24 Yao Qi <yao@codesourcery.com>
5836 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5837 * corefile.c (read_memory): Adjusted.
5838 * target.c (target_write_with_progress): Adjusted.
5840 2014-02-23 Yao Qi <yao@codesourcery.com>
5844 2013-10-25 Yao Qi <yao@codesourcery.com>
5846 * remote.c (remote_traceframe_info): Return early if
5847 traceframe is not selected.
5849 2013-07-19 Yao Qi <yao@codesourcery.com>
5851 * target.c (update_current_target): Change the default action
5852 of 'to_traceframe_info' from tcomplain to return_zero.
5853 * target.h (struct target_ops) <to_traceframe_info>: Add more
5856 2014-02-23 Yao Qi <yao@codesourcery.com>
5858 * valops.c (read_value_memory): Rewrite it. Call
5859 target_xfer_partial in a loop.
5860 * exec.h (section_table_available_memory): Remove declaration.
5861 Move comments to ...
5862 * exec.c (section_table_available_memory): ... here. Make it
5865 2014-02-23 Yao Qi <yao@codesourcery.com>
5867 * exec.c (section_table_read_available_memory): New function.
5868 * exec.h (section_table_read_available_memory): Declare.
5869 * ctf.c (ctf_xfer_partial): Call
5870 section_table_read_available_memory.
5871 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5873 2014-02-23 Yao Qi <yao@codesourcery.com>
5875 * ctf.c (ctf_xfer_partial): Move code to ...
5876 * exec.c (exec_read_partial_read_only): ... it. New function.
5877 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5878 * tracefile.c: Include "exec.h".
5879 * exec.h (exec_read_partial_read_only): Declare.
5881 2014-02-23 Yao Qi <yao@codesourcery.com>
5883 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5884 (tfile_has_memory): Remove.
5885 (init_tfile_ops): Don't set fields to_has_all_memory and
5886 to_has_memory of tfile_ops.
5887 * tracefile.c (tracefile_has_all_memory): New function.
5888 (tracefile_has_memory): New function.
5889 (init_tracefile_ops): Initialize fields to_has_all_memory and
5890 to_has_memory of 'ops'.
5892 2014-02-23 Yao Qi <yao@codesourcery.com>
5894 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5895 (ctf_thread_alive, ctf_get_trace_status): Remove.
5896 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5898 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5899 (tfile_has_stack, tfile_has_registers): Remove.
5900 (tfile_thread_alive): Remove.
5901 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5903 * tracefile.c (tracefile_has_stack): New function.
5904 (tracefile_has_registers): New function.
5905 (tracefile_thread_alive): New function.
5906 (tracefile_get_trace_status): New function.
5907 (init_tracefile_ops): New function.
5908 * tracefile.h (init_tracefile_ops): Declare.
5910 2014-02-23 Yao Qi <yao@codesourcery.com>
5912 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5913 (O_LARGEFILE): Likewise.
5914 (tfile_ops): Likewise.
5915 (TRACE_HEADER_SIZE): Likewise.
5916 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5917 (cur_data_size): Likewise.
5918 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5919 (tfile_close, tfile_files_info): Likewise.
5920 (tfile_get_trace_status): Likewise.
5921 (tfile_get_tracepoint_status): Likewise.
5922 (tfile_get_traceframe_address): Likewise.
5923 (tfile_trace_find, match_blocktype): Likewise.
5924 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5925 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5926 (tfile_get_trace_state_variable_value): Likewise.
5927 (tfile_has_all_memory, tfile_has_memory): Likewise.
5928 (tfile_has_stack, tfile_has_registers): Likewise.
5929 (tfile_thread_alive, build_traceframe_info): Likewise.
5930 (tfile_traceframe_info, init_tfile_ops): Likewise.
5931 (_initialize_tracepoint): Don't call init_tfile_ops
5932 and add_target_with_completer.
5933 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5934 exec.h, completer.h and filenames.h.
5935 (_initialize_tracefile_tfile): New function.
5937 2014-02-23 Yao Qi <yao@codesourcery.com>
5939 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5941 (HFILES_NO_SRCDIR): Add tracefile.h.
5942 * ctf.c: Include "tracefile.h".
5943 * tracefile.h: New file.
5944 * tracefile.c: New file
5945 * tracefile-tfile.c: New file.
5946 * tracepoint.c: Include "tracefile.h".
5947 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5948 (stop_reason_names): Add const.
5949 (trace_file_writer_xfree): Move it to tracefile.c.
5950 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5951 (trace_save_ctf): Likewise.
5952 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5953 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5954 (tfile_write_header, tfile_write_regblock_type): Likewise.
5955 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5956 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5957 (tfile_write_raw_data, tfile_end): Likewise.
5958 (tfile_trace_file_writer_new): Likewise.
5959 (free_uploaded_tp): Make it extern.
5960 (free_uploaded_tsv): Make it extern.
5961 (_initialize_tracepoint): Move code to register command 'tsave'
5963 * tracepoint.h (stop_reason_names): Declare.
5964 (struct trace_frame_write_ops): Move it to tracefile.h.
5965 (struct trace_file_write_ops): Likewise.
5966 (struct trace_file_writer): Likewise.
5967 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5969 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5972 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5974 (get_cores_used_by_process): New parameter num_cores, use it.
5975 (linux_xfer_osdata_processes): Pass num_cores to it.
5976 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5979 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5981 * target.c (memory_xfer_partial): Fix length arg in call to
5982 breakpoint_xfer_memory.
5984 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5987 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5988 number comes after the + or - signs. Adjust length of register
5989 name to be extracted.
5991 2014-02-20 Tom Tromey <tromey@redhat.com>
5993 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5994 (ada_varobj_ops): Mark "extern".
5996 2014-02-20 Tom Tromey <tromey@redhat.com>
5998 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6000 2014-02-20 Doug Evans <xdje42@gmail.com>
6002 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6003 All callers updated.
6004 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6005 All callers updated.
6006 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6007 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6009 2014-02-20 lin zuojian <manjian2006@gmail.com>
6010 Joel Brobecker <brobecker@adacore.com>
6011 Doug Evans <xdje42@gmail.com>
6014 * dwarf2read.c (struct die_info): New member in_process.
6015 (reset_die_in_process): New function.
6016 (process_die): Set it at the start, reset when returning.
6017 (inherit_abstract_dies): Only call process_die if origin_child_die
6018 not already being processed.
6020 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6022 * windows-nat.c (handle_unload_dll): Add function documentation.
6023 (do_initial_windows_stuff): Add comment explaining why we wait
6024 until after inferior initialization has finished before
6025 processing all DLLs.
6027 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6029 * windows-nat.c (get_module_name): Delete.
6030 (windows_get_exec_module_filename): New function, mostly
6031 inspired from get_module_name.
6032 (windows_pid_to_exec_file): Replace call to get_module_name
6033 by call to windows_get_exec_module_filename.
6035 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6037 * windows-nat.c (handle_load_dll): Rewrite this function's
6038 introductory comment. Remove code using get_module_name
6039 to get the DLL's name.
6041 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6043 * windows-nat.c (get_windows_debug_event): Ignore
6044 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6045 if windows_initialization_done == 0.
6046 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6047 Adjust implementation to always load all DLLs.
6048 (do_initial_windows_stuff): Replace call to
6049 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6051 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6053 * windows-nat.c (_initialize_windows_nat): Deprecate the
6054 "dll-symbols" command. Turn the "add-shared-symbol-files"
6055 and "assf" aliases into commands, and deprecate them as well.
6056 * NEWS: Add entry explaining that "dll-symbols" and its two
6057 aliases are now deprecated.
6059 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6061 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6062 new-line in debug string. Remove trailing spaces.
6064 2014-02-19 Stan Shebs <stan@codesourcery.com>
6066 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6068 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6070 * NEWS: Add entry for the new feature
6071 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6074 2014-02-19 Stan Shebs <stan@codesourcery.com>
6076 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6078 2014-02-19 Pedro Alves <palves@redhat.com>
6080 * common/ptid.h (struct ptid): Mention that process_stratum
6081 targets should prefer ptid.lwp.
6083 2014-02-19 Pedro Alves <palves@redhat.com>
6085 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6086 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6087 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6088 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6089 store remote thread ids rather than ptid.tid.
6090 (_initialize_remote): Adjust.
6092 2014-02-19 Tom Tromey <tromey@redhat.com>
6094 * target.c (target_get_unwinder): Rewrite.
6095 (target_get_tailcall_unwinder): Rewrite.
6096 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6097 (record_btrace_to_get_tailcall_unwinder): New function.
6098 (init_record_btrace_ops): Update.
6099 * target.h (struct target_ops) <to_get_unwinder,
6100 to_get_tailcall_unwinder>: Now function pointers. Use
6101 TARGET_DEFAULT_RETURN.
6103 2014-02-19 Tom Tromey <tromey@redhat.com>
6105 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6107 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6109 2014-02-19 Tom Tromey <tromey@redhat.com>
6111 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6113 * target-delegates.c: Rebuild.
6114 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6115 TARGET_DEFAULT_FUNC.
6116 * target.c (default_target_decr_pc_after_break): Rename from
6117 forward_target_decr_pc_after_break. Simplify.
6118 (target_decr_pc_after_break): Rely on delegation.
6120 2014-02-19 Tom Tromey <tromey@redhat.com>
6122 * target.c (update_current_target): Do not INHERIT to_doc or
6123 to_magic. Do not de_fault to_open or to_close.
6125 2014-02-19 Tom Tromey <tromey@redhat.com>
6127 * gcore.h (objfile_find_memory_regions): Declare.
6128 * gcore.c (objfile_find_memory_regions): No longer static. Add
6130 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6131 * exec.c: Include gcore.h.
6132 (exec_set_find_memory_regions): Remove.
6133 (exec_find_memory_regions): Remove.
6134 (exec_do_find_memory_regions): Remove.
6135 (init_exec_ops): Update.
6136 * defs.h (exec_set_find_memory_regions): Remove.
6138 2014-02-19 Tom Tromey <tromey@redhat.com>
6140 * target-delegates.c: Rebuild.
6141 * target.h (struct target_ops) <to_extra_thread_info,
6142 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6143 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6144 not 0, in TARGET_DEFAULT_RETURN.
6146 2014-02-19 Tom Tromey <tromey@redhat.com>
6148 * target.c (complete_target_initialization): Remove casts. Use
6149 return_zero_has_execution.
6150 (return_zero): Add "ignore" argument.
6151 (return_zero_has_execution): New function.
6152 (init_dummy_target): Remove casts. Use
6153 return_zero_has_execution.
6155 2014-02-19 Tom Tromey <tromey@redhat.com>
6157 * target.c (update_current_target): Update comments. Do not
6160 2014-02-19 Tom Tromey <tromey@redhat.com>
6162 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6164 * corelow.c (core_read_description): Delegate when needed.
6165 * remote.c (remote_read_description): Delegate when needed.
6166 * target-delegates.c: Rebuild.
6167 * target.c (target_read_description): Rewrite.
6168 * target.h (struct target_ops) <to_read_description>: Update
6169 comment. Use TARGET_DEFAULT_RETURN.
6171 2014-02-19 Tom Tromey <tromey@redhat.com>
6173 * target-delegates.c: Rebuild.
6174 * target.c (update_current_target): Don't inherit or default
6176 (find_default_run_target): Check against delegate_can_run.
6177 * target.h (struct target_ops) <to_can_run>: Use
6178 TARGET_DEFAULT_RETURN.
6180 2014-02-19 Tom Tromey <tromey@redhat.com>
6182 * target-delegates.c: Rebuild.
6183 * target.c (target_disconnect): Unconditionally delegate.
6184 * target.h (struct target_ops) <to_disconnect>: Use
6185 TARGET_DEFAULT_NORETURN.
6187 2014-02-19 Tom Tromey <tromey@redhat.com>
6189 * record.c (record_stop): Unconditionally delegate.
6190 * target-delegates.c: Rebuild.
6191 * target.c (target_stop_recording): Unconditionally delegate.
6192 * target.h (struct target_ops) <to_stop_recording>: Use
6193 TARGET_DEFAULT_IGNORE.
6195 2014-02-19 Tom Tromey <tromey@redhat.com>
6197 * target-delegates.c: Rebuild.
6198 * target.c (target_enable_btrace): Unconditionally delegate.
6199 * target.h (struct target_ops) <to_enable_btrace>: Use
6200 TARGET_DEFAULT_NORETURN.
6202 2014-02-19 Tom Tromey <tromey@redhat.com>
6204 * target-delegates.c: Rebuild.
6205 * target.c (target_read_btrace): Unconditionally delegate.
6206 * target.h (struct target_ops) <to_read_btrace>: Use
6207 TARGET_DEFAULT_NORETURN.
6209 2014-02-19 Tom Tromey <tromey@redhat.com>
6211 * target-delegates.c: Rebuild.
6212 * target.c (target_teardown_btrace): Unconditionally delegate.
6213 * target.h (struct target_ops) <to_teardown_btrace>: Use
6214 TARGET_DEFAULT_NORETURN.
6216 2014-02-19 Tom Tromey <tromey@redhat.com>
6218 * target-delegates.c: Rebuild.
6219 * target.c (target_disable_btrace): Unconditionally delegate.
6220 * target.h (struct target_ops) <to_disable_btrace>: Use
6221 TARGET_DEFAULT_NORETURN.
6223 2014-02-19 Tom Tromey <tromey@redhat.com>
6225 * target-delegates.c: Rebuild.
6226 * target.c (default_search_memory): New function.
6227 (simple_search_memory): Update comment.
6228 (target_search_memory): Unconditionally delegate.
6229 * target.h (struct target_ops) <to_search_memory>: Use
6230 TARGET_DEFAULT_FUNC.
6232 2014-02-19 Tom Tromey <tromey@redhat.com>
6234 * auxv.c (default_auxv_parse): No longer static.
6235 (target_auxv_parse): Unconditionally delegate.
6236 * auxv.h (default_auxv_parse): Declare.
6237 * target-delegates.c: Rebuild.
6238 * target.c: Include auxv.h.
6239 * target.h (struct target_ops) <to_auxv_parse>: Use
6240 TARGET_DEFAULT_FUNC.
6242 2014-02-19 Tom Tromey <tromey@redhat.com>
6244 * target-delegates.c: Rebuild.
6245 * target.c (target_memory_map): Unconditionally delegate.
6246 * target.h (struct target_ops) <to_memory_map>: Use
6247 TARGET_DEFAULT_RETURN.
6249 2014-02-19 Tom Tromey <tromey@redhat.com>
6251 * target-delegates.c: Rebuild.
6252 * target.c (target_thread_alive): Unconditionally delegate.
6253 * target.h (struct target_ops) <to_thread_alive>: Use
6254 TARGET_DEFAULT_RETURN.
6256 2014-02-19 Tom Tromey <tromey@redhat.com>
6258 * target-delegates.c: Rebuild.
6259 * target.c (target_save_record): Unconditionally delegate.
6260 * target.h (struct target_ops) <to_save_record>: Use
6261 TARGET_DEFAULT_NORETURN.
6263 2014-02-19 Tom Tromey <tromey@redhat.com>
6265 * target-delegates.c: Rebuild.
6266 * target.c (target_delete_record): Unconditionally delegate.
6267 * target.h (struct target_ops) <to_delete_record>: Use
6268 TARGET_DEFAULT_NORETURN.
6270 2014-02-19 Tom Tromey <tromey@redhat.com>
6272 * target-delegates.c: Rebuild.
6273 * target.c (target_record_is_replaying): Unconditionally
6275 * target.h (struct target_ops) <to_record_is_replaying>: Use
6276 TARGET_DEFAULT_RETURN.
6278 2014-02-19 Tom Tromey <tromey@redhat.com>
6280 * target-delegates.c: Rebuild.
6281 * target.c (target_goto_record_begin): Unconditionally delegate.
6282 * target.h (struct target_ops) <to_goto_record_begin>: Use
6283 TARGET_DEFAULT_NORETURN.
6285 2014-02-19 Tom Tromey <tromey@redhat.com>
6287 * target-delegates.c: Rebuild.
6288 * target.c (target_goto_record_end): Unconditionally delegate.
6289 * target.h (struct target_ops) <to_goto_record_end>: Use
6290 TARGET_DEFAULT_NORETURN.
6292 2014-02-19 Tom Tromey <tromey@redhat.com>
6294 * target-delegates.c: Rebuild.
6295 * target.c (target_goto_record): Unconditionally delegate.
6296 * target.h (struct target_ops) <to_goto_record>: Use
6297 TARGET_DEFAULT_NORETURN.
6299 2014-02-19 Tom Tromey <tromey@redhat.com>
6301 * target-delegates.c: Rebuild.
6302 * target.c (target_insn_history): Unconditionally delegate.
6303 * target.h (struct target_ops) <to_insn_history>: Use
6304 TARGET_DEFAULT_NORETURN.
6306 2014-02-19 Tom Tromey <tromey@redhat.com>
6308 * target-delegates.c: Rebuild.
6309 * target.c (target_insn_history_from): Unconditionally delegate.
6310 * target.h (struct target_ops) <to_insn_history_from>: Use
6311 TARGET_DEFAULT_NORETURN.
6313 2014-02-19 Tom Tromey <tromey@redhat.com>
6315 * target-delegates.c: Rebuild.
6316 * target.c (target_insn_history_range): Unconditionally delegate.
6317 * target.h (struct target_ops) <to_insn_history_range>: Use
6318 TARGET_DEFAULT_NORETURN.
6320 2014-02-19 Tom Tromey <tromey@redhat.com>
6322 * target-delegates.c: Rebuild.
6323 * target.c (target_call_history): Unconditionally delegate.
6324 * target.h (struct target_ops) <to_call_history>: Use
6325 TARGET_DEFAULT_NORETURN.
6327 2014-02-19 Tom Tromey <tromey@redhat.com>
6329 * target-delegates.c: Rebuild.
6330 * target.c (target_call_history_from): Unconditionally delegate.
6331 * target.h (struct target_ops) <to_call_history_from>: Use
6332 TARGET_DEFAULT_NORETURN.
6334 2014-02-19 Tom Tromey <tromey@redhat.com>
6336 * target-delegates.c: Rebuild.
6337 * target.c (target_call_history_range): Unconditionally delegate.
6338 * target.h (struct target_ops) <to_call_history_range>: Use
6339 TARGET_DEFAULT_NORETURN.
6341 2014-02-19 Tom Tromey <tromey@redhat.com>
6343 * target-delegates.c: Rebuild.
6344 * target.c (target_verify_memory): Unconditionally delegate.
6345 * target.h (struct target_ops) <to_verify_memory>: Use
6346 TARGET_DEFAULT_NORETURN.
6348 2014-02-19 Tom Tromey <tromey@redhat.com>
6350 * target-delegates.c: Rebuild.
6351 * target.c (target_core_of_thread): Unconditionally delegate.
6352 * target.h (struct target_ops) <to_core_of_thread>: Use
6353 TARGET_DEFAULT_RETURN.
6355 2014-02-19 Tom Tromey <tromey@redhat.com>
6357 * target-delegates.c: Rebuild.
6358 * target.c (target_flash_done): Unconditionally delegate.
6359 * target.h (struct target_ops) <to_flash_done>: Use
6360 TARGET_DEFAULT_NORETURN.
6362 2014-02-19 Tom Tromey <tromey@redhat.com>
6364 * target-delegates.c: Rebuild.
6365 * target.c (target_flash_erase): Unconditionally delegate.
6366 * target.h (struct target_ops) <to_flash_erase>: Use
6367 TARGET_DEFAULT_NORETURN.
6369 2014-02-19 Tom Tromey <tromey@redhat.com>
6371 * target-delegates.c: Rebuild.
6372 * target.c (target_get_section_table): Unconditionally delegate.
6373 * target.h (struct target_ops) <to_get_section_table>: Use
6374 TARGET_DEFAULT_RETURN.
6376 2014-02-19 Tom Tromey <tromey@redhat.com>
6378 * target-delegates.c: Rebuild.
6379 * target.c (target_pid_to_str): Unconditionally delegate.
6380 (init_dummy_target): Don't initialize to_pid_to_str.
6381 (default_pid_to_str): Rename from dummy_pid_to_str.
6382 * target.h (struct target_ops) <to_pid_to_str>: Use
6383 TARGET_DEFAULT_FUNC.
6385 2014-02-19 Tom Tromey <tromey@redhat.com>
6387 * target-delegates.c: Rebuild.
6388 * target.c (target_find_new_threads): Unconditionally delegate.
6389 * target.h (struct target_ops) <to_find_new_threads>: Use
6390 TARGET_DEFAULT_RETURN.
6392 2014-02-19 Tom Tromey <tromey@redhat.com>
6394 * target-delegates.c: Rebuild.
6395 * target.c (target_program_signals): Unconditionally delegate.
6396 * target.h (struct target_ops) <to_program_signals>: Use
6397 TARGET_DEFAULT_IGNORE.
6399 2014-02-19 Tom Tromey <tromey@redhat.com>
6401 * target-delegates.c: Rebuild.
6402 * target.c (target_pass_signals): Unconditionally delegate.
6403 * target.h (struct target_ops) <to_pass_signals>: Use
6404 TARGET_DEFAULT_IGNORE.
6406 2014-02-19 Tom Tromey <tromey@redhat.com>
6408 * target-delegates.c: Rebuild.
6409 * target.c (default_mourn_inferior): New function.
6410 (target_mourn_inferior): Unconditionally delegate.
6411 * target.h (struct target_ops) <to_mourn_inferior>: Use
6412 TARGET_DEFAULT_FUNC.
6414 2014-02-19 Tom Tromey <tromey@redhat.com>
6416 * target-delegates.c: Rebuild.
6417 * target.c (default_follow_fork): New function.
6418 (target_follow_fork): Unconditionally delegate.
6419 * target.h (struct target_ops) <to_follow_fork>: Use
6420 TARGET_DEFAULT_FUNC.
6422 2014-02-19 Tom Tromey <tromey@redhat.com>
6424 * target-delegates.c: Rebuild.
6425 * target.c (target_kill): Unconditionally delegate.
6426 * target.h (struct target_ops) <to_kill>: Use
6427 TARGET_DEFAULT_NORETURN.
6429 2014-02-19 Tom Tromey <tromey@redhat.com>
6431 * target-delegates.c: Rebuild.
6432 * target.c (target_masked_watch_num_registers): Unconditionally
6434 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6435 Use TARGET_DEFAULT_RETURN.
6437 2014-02-19 Tom Tromey <tromey@redhat.com>
6439 * target-delegates.c: Rebuild.
6440 * target.c (target_remove_mask_watchpoint): Unconditionally
6442 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6443 TARGET_DEFAULT_RETURN.
6445 2014-02-19 Tom Tromey <tromey@redhat.com>
6447 * target-delegates.c: Rebuild.
6448 * target.c (target_insert_mask_watchpoint): Unconditionally
6450 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6451 TARGET_DEFAULT_RETURN.
6453 2014-02-19 Tom Tromey <tromey@redhat.com>
6455 * target-delegates.c: Rebuild.
6456 * target.c (target_ranged_break_num_registers): Unconditionally
6458 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6459 Use TARGET_DEFAULT_RETURN.
6461 2014-02-19 Tom Tromey <tromey@redhat.com>
6463 * target-delegates.c: Rebuild.
6464 * target.c (target_fetch_registers): Unconditionally delegate.
6465 * target.h (struct target_ops) <to_fetch_registers>: Use
6466 TARGET_DEFAULT_NORETURN.
6468 2014-02-19 Tom Tromey <tromey@redhat.com>
6470 * target-delegates.c: Rebuild.
6471 * target.c (update_current_target): Don't inherit or default
6473 * target.h (struct target_ops) <to_stop>: Use
6474 TARGET_DEFAULT_IGNORE.
6476 2014-02-19 Tom Tromey <tromey@redhat.com>
6478 * target-delegates.c: Rebuild.
6479 * target.c (update_current_target): Don't inherit or default
6480 to_can_run_breakpoint_commands.
6481 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6482 Use TARGET_DEFAULT_RETURN.
6484 2014-02-19 Tom Tromey <tromey@redhat.com>
6486 * target-delegates.c: Rebuild.
6487 * target.c (update_current_target): Don't inherit or default
6488 to_supports_evaluation_of_breakpoint_conditions.
6489 * target.h (struct target_ops)
6490 <to_supports_evaluation_of_breakpoint_conditions>: Use
6491 TARGET_DEFAULT_RETURN.
6493 2014-02-19 Tom Tromey <tromey@redhat.com>
6495 * target-delegates.c: Rebuild.
6496 * target.c (update_current_target): Don't inherit or default
6497 to_augmented_libraries_svr4_read.
6498 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6499 Use TARGET_DEFAULT_RETURN.
6501 2014-02-19 Tom Tromey <tromey@redhat.com>
6503 * target-delegates.c: Rebuild.
6504 * target.c (update_current_target): Don't inherit or default
6506 * target.h (struct target_ops) <to_can_use_agent>: Use
6507 TARGET_DEFAULT_RETURN.
6509 2014-02-19 Tom Tromey <tromey@redhat.com>
6511 * target-delegates.c: Rebuild.
6512 * target.c (update_current_target): Don't inherit or default
6514 * target.h (struct target_ops) <to_use_agent>: Use
6515 TARGET_DEFAULT_NORETURN.
6517 2014-02-19 Tom Tromey <tromey@redhat.com>
6519 * target-delegates.c: Rebuild.
6520 * target.c (update_current_target): Don't inherit or default
6522 (return_null): Remove.
6523 * target.h (struct target_ops) <to_traceframe_info>: Use
6524 TARGET_DEFAULT_RETURN.
6526 2014-02-19 Tom Tromey <tromey@redhat.com>
6528 * target-delegates.c: Rebuild.
6529 * target.c (update_current_target): Don't inherit or default
6530 to_static_tracepoint_markers_by_strid.
6531 * target.h (struct target_ops)
6532 <to_static_tracepoint_markers_by_strid>: Use
6533 TARGET_DEFAULT_NORETURN.
6535 2014-02-19 Tom Tromey <tromey@redhat.com>
6537 * target-delegates.c: Rebuild.
6538 * target.c (update_current_target): Don't inherit or default
6539 to_static_tracepoint_marker_at.
6540 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6541 Use TARGET_DEFAULT_RETURN.
6543 2014-02-19 Tom Tromey <tromey@redhat.com>
6545 * target-delegates.c: Rebuild.
6546 * target.c (update_current_target): Don't inherit or default
6548 * target.h (struct target_ops) <to_set_permissions>: Use
6549 TARGET_DEFAULT_IGNORE.
6551 2014-02-19 Tom Tromey <tromey@redhat.com>
6553 * target-delegates.c: Rebuild.
6554 * target.c (update_current_target): Don't inherit or default
6556 * target.h (struct target_ops) <to_get_tib_address>: Use
6557 TARGET_DEFAULT_NORETURN.
6559 2014-02-19 Tom Tromey <tromey@redhat.com>
6561 * target-delegates.c: Rebuild.
6562 * target.c (update_current_target): Don't inherit or default
6564 * target.h (struct target_ops) <to_set_trace_notes>: Use
6565 TARGET_DEFAULT_RETURN.
6567 2014-02-19 Tom Tromey <tromey@redhat.com>
6569 * target-delegates.c: Rebuild.
6570 * target.c (update_current_target): Don't initialize
6571 to_set_trace_buffer_size.
6572 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6573 TARGET_DEFAULT_IGNORE.
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
6579 to_set_circular_trace_buffer.
6580 * target.h (struct target_ops) <to_set_circular_trace_buffer>: 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
6587 to_set_disconnected_tracing.
6588 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6589 TARGET_DEFAULT_IGNORE.
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
6595 to_get_min_fast_tracepoint_insn_len.
6596 (return_minus_one): Remove.
6597 * target.h (struct target_ops)
6598 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6600 2014-02-19 Tom Tromey <tromey@redhat.com>
6602 * target-delegates.c: Rebuild.
6603 * target.c (update_current_target): Don't inherit or default
6604 to_get_raw_trace_data.
6605 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6606 TARGET_DEFAULT_NORETURN.
6608 2014-02-19 Tom Tromey <tromey@redhat.com>
6610 * target-delegates.c: Rebuild.
6611 * target.c (update_current_target): Don't inherit or default
6612 to_upload_trace_state_variables.
6613 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6614 Use TARGET_DEFAULT_RETURN.
6616 2014-02-19 Tom Tromey <tromey@redhat.com>
6618 * target-delegates.c: Rebuild.
6619 * target.c (update_current_target): Don't inherit or default
6620 to_upload_tracepoints.
6621 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6622 TARGET_DEFAULT_RETURN.
6624 2014-02-19 Tom Tromey <tromey@redhat.com>
6626 * target-delegates.c: Rebuild.
6627 * target.c (update_current_target): Don't inherit or default
6629 * target.h (struct target_ops) <to_save_trace_data>: Use
6630 TARGET_DEFAULT_NORETURN.
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_trace_state_variable_value.
6637 * target.h (struct target_ops)
6638 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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
6645 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6647 2014-02-19 Tom Tromey <tromey@redhat.com>
6649 * target-delegates.c: Rebuild.
6650 * target.c (update_current_target): Don't inherit or default
6652 * target.h (struct target_ops) <to_trace_stop>: Use
6653 TARGET_DEFAULT_NORETURN.
6655 2014-02-19 Tom Tromey <tromey@redhat.com>
6657 * target-delegates.c: Rebuild.
6658 * target.c (update_current_target): Don't inherit or default
6659 to_get_tracepoint_status.
6660 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6661 TARGET_DEFAULT_NORETURN.
6663 2014-02-19 Tom Tromey <tromey@redhat.com>
6665 * target-delegates.c: Rebuild.
6666 * target.c (update_current_target): Don't inherit or default
6667 to_get_trace_status.
6668 * target.h (struct target_ops) <to_get_trace_status>: Use
6669 TARGET_DEFAULT_RETURN.
6671 2014-02-19 Tom Tromey <tromey@redhat.com>
6673 * target-delegates.c: Rebuild.
6674 * target.c (update_current_target): Don't inherit or default
6676 * target.h (struct target_ops) <to_trace_start>: Use
6677 TARGET_DEFAULT_NORETURN.
6679 2014-02-19 Tom Tromey <tromey@redhat.com>
6681 * target-delegates.c: Rebuild.
6682 * target.c (update_current_target): Don't inherit or default
6683 to_trace_set_readonly_regions.
6684 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6685 Use 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_disable_tracepoint.
6692 * target.h (struct target_ops) <to_disable_tracepoint>: 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_enable_tracepoint.
6700 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6701 TARGET_DEFAULT_NORETURN.
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
6707 to_download_trace_state_variable.
6708 * target.h (struct target_ops) <to_download_trace_state_variable>:
6709 Use 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_can_download_tracepoint.
6716 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6717 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
6724 * target.h (struct target_ops) <to_download_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
6732 * target.h (struct target_ops) <to_trace_init>: Use
6733 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
6740 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6741 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
6748 * target.h (struct target_ops)
6749 <to_supports_enable_disable_tracepoint>: Use
6750 TARGET_DEFAULT_RETURN.
6752 2014-02-19 Tom Tromey <tromey@redhat.com>
6754 * target-delegates.c: Rebuild.
6755 * target.c (update_current_target): Don't inherit or default
6756 to_supports_multi_process.
6757 * target.h (struct target_ops) <to_supports_multi_process>: Use
6758 TARGET_DEFAULT_RETURN.
6760 2014-02-19 Tom Tromey <tromey@redhat.com>
6762 * target-delegates.c: Rebuild.
6763 * target.c (update_current_target): Don't inherit or default
6764 to_get_ada_task_ptid.
6765 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6766 TARGET_DEFAULT_FUNC.
6768 2014-02-19 Tom Tromey <tromey@redhat.com>
6770 * target-delegates.c: Rebuild.
6771 * target.c (update_current_target): Don't inherit or default
6772 to_thread_architecture.
6773 * target.h (struct target_ops) <to_thread_architecture>: Use
6774 TARGET_DEFAULT_FUNC.
6776 2014-02-19 Tom Tromey <tromey@redhat.com>
6778 * target-delegates.c: Rebuild.
6779 * target.c (update_current_target): Don't inherit or default
6780 to_execution_direction.
6781 * target.h (struct target_ops) <to_execution_direction>: Use
6782 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
6789 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6790 TARGET_DEFAULT_RETURN.
6791 (target_can_execute_reverse): Unconditionally delegate.
6793 2014-02-19 Tom Tromey <tromey@redhat.com>
6795 * target-delegates.c: Rebuild.
6796 * target.c (update_current_target): Don't inherit or default
6798 (dummy_goto_bookmark): Remove.
6799 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6800 * target.h (struct target_ops) <to_goto_bookmark>: Use
6801 TARGET_DEFAULT_NORETURN.
6803 2014-02-19 Tom Tromey <tromey@redhat.com>
6805 * target-delegates.c: Rebuild.
6806 * target.c (update_current_target): Don't inherit or default
6808 (dummy_get_bookmark): Remove.
6809 (init_dummy_target): Don't inherit or default to_get_bookmark.
6810 * target.h (struct target_ops) <to_get_bookmark>: Use
6811 TARGET_DEFAULT_NORETURN
6813 2014-02-19 Tom Tromey <tromey@redhat.com>
6815 * target-delegates.c: Rebuild.
6816 * target.c (update_current_target): Don't inherit or default
6817 to_make_corefile_notes.
6818 (init_dummy_target): Don't initialize to_make_corefile_notes.
6819 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6820 TARGET_DEFAULT_FUNC.
6822 2014-02-19 Tom Tromey <tromey@redhat.com>
6824 * target-delegates.c: Rebuild.
6825 * target.c (update_current_target): Don't inherit or default
6826 to_find_memory_regions.
6827 (init_dummy_target): Don't initialize to_find_memory_regions.
6828 * target.h (struct target_ops) <to_find_memory_regions>: Use
6829 TARGET_DEFAULT_FUNC.
6831 2014-02-19 Tom Tromey <tromey@redhat.com>
6833 * target-delegates.c: Rebuild.
6834 * target.c (update_current_target): Don't inherit or default
6836 * target.h (struct target_ops) <to_log_command>: Use
6837 TARGET_DEFAULT_IGNORE.
6838 (target_log_command): Unconditionally delegate.
6840 2014-02-19 Tom Tromey <tromey@redhat.com>
6842 * target-delegates.c: Rebuild.
6843 * target.c (update_current_target): Don't inherit or default
6844 to_pid_to_exec_file.
6845 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6846 TARGET_DEFAULT_RETURN.
6848 2014-02-19 Tom Tromey <tromey@redhat.com>
6850 * target-delegates.c: Rebuild.
6851 * target.c (update_current_target): Don't inherit or default
6853 (target_thread_name): Unconditionally delegate.
6854 * target.h (struct target_ops) <to_thread_name>: Use
6855 TARGET_DEFAULT_RETURN.
6857 2014-02-19 Tom Tromey <tromey@redhat.com>
6859 * target-delegates.c: Rebuild.
6860 * target.c (update_current_target): Don't inherit or default
6861 to_extra_thread_info.
6862 * target.h (struct target_ops) <to_extra_thread_info>: Use
6863 TARGET_DEFAULT_RETURN.
6865 2014-02-19 Tom Tromey <tromey@redhat.com>
6867 * target-delegates.c: Rebuild.
6868 * target.c (update_current_target): Don't inherit or default
6870 * target.h (struct target_ops) <to_has_exited>: Use
6871 TARGET_DEFAULT_RETURN..
6873 2014-02-19 Tom Tromey <tromey@redhat.com>
6875 * target-delegates.c: Rebuild.
6876 * target.c (update_current_target): Don't inherit or default
6877 to_set_syscall_catchpoint.
6878 (return_one): Remove.
6879 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6880 TARGET_DEFAULT_RETURN.
6882 2014-02-19 Tom Tromey <tromey@redhat.com>
6884 * target-delegates.c: Rebuild.
6885 * target.c (update_current_target): Don't inherit or default
6886 to_insert_exec_catchpoint.
6887 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6888 TARGET_DEFAULT_RETURN.
6890 2014-01-08 Tom Tromey <tromey@redhat.com>
6892 * target-delegates.c: Rebuild.
6893 * target.c (update_current_target): Don't inherit or default
6894 to_insert_exec_catchpoint.
6895 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6896 TARGET_DEFAULT_RETURN.
6898 2014-02-19 Tom Tromey <tromey@redhat.com>
6900 * target-delegates.c: Rebuild.
6901 * target.c (update_current_target): Don't inherit or default
6902 to_remove_vfork_catchpoint.
6903 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6904 TARGET_DEFAULT_RETURN.
6906 2014-02-19 Tom Tromey <tromey@redhat.com>
6908 * target-delegates.c: Rebuild.
6909 * target.c (update_current_target): Don't inherit or default
6910 to_insert_vfork_catchpoint.
6911 * target.h (struct target_ops) <to_insert_vfork_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_remove_fork_catchpoint.
6919 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6920 TARGET_DEFAULT_RETURN.
6922 2014-02-19 Tom Tromey <tromey@redhat.com>
6924 * target-delegates.c: Rebuild.
6925 * target.c (update_current_target): Don't inherit or default
6926 to_insert_fork_catchpoint.
6927 * target.h (struct target_ops) <to_insert_fork_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_post_startup_inferior.
6935 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6936 TARGET_DEFAULT_IGNORE.
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
6943 * target.h (struct target_ops) <to_load>: Use
6944 TARGET_DEFAULT_NORETURN.
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
6951 * target.h (struct target_ops) <to_terminal_info>: Use
6952 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
6959 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6960 TARGET_DEFAULT_IGNORE.
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
6967 * target.h (struct target_ops) <to_terminal_ours>: 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
6974 to_terminal_ours_for_output.
6975 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6976 TARGET_DEFAULT_IGNORE.
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
6982 to_terminal_inferior.
6983 * target.h (struct target_ops) <to_terminal_inferior>: Use
6984 TARGET_DEFAULT_IGNORE.
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
6991 * target.h (struct target_ops) <to_terminal_init>: 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
6998 to_can_accel_watchpoint_condition.
6999 * target.h (struct target_ops)
7000 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7002 2014-02-19 Tom Tromey <tromey@redhat.com>
7004 * target-delegates.c: Rebuild.
7005 * target.c (update_current_target): Don't inherit or default
7006 to_region_ok_for_hw_watchpoint.
7007 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7008 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
7015 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7016 Use TARGET_DEFAULT_FUNC.
7018 2014-02-19 Tom Tromey <tromey@redhat.com>
7020 * target-delegates.c: Rebuild.
7021 * target.c (update_current_target): Don't inherit or default
7022 to_remove_watchpoint.
7023 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7024 TARGET_DEFAULT_NORETURN.
7026 2014-02-19 Tom Tromey <tromey@redhat.com>
7028 * target-delegates.c: Rebuild.
7029 * target.c (update_current_target): Don't inherit or default
7030 to_insert_watchpoint.
7031 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7032 TARGET_DEFAULT_RETURN.
7034 2014-02-19 Tom Tromey <tromey@redhat.com>
7036 * target-delegates.c: Rebuild.
7037 * target.c (update_current_target): Don't inherit or default
7038 to_remove_hw_breakpoint.
7039 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7040 TARGET_DEFAULT_RETURN.
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_insert_hw_breakpoint.
7047 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7048 TARGET_DEFAULT_RETURN.
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_can_use_hw_breakpoint.
7055 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7056 TARGET_DEFAULT_RETURN.
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
7063 * target.h (struct target_ops) <to_files_info>: Use
7064 TARGET_DEFAULT_IGNORE.
7066 2014-02-19 Tom Tromey <tromey@redhat.com>
7068 * target-delegates.c: Rebuild.
7069 * target.c (update_current_target): Don't inherit or default
7071 * target.h (struct target_ops) <to_store>: Use
7072 TARGET_DEFAULT_NORETURN.
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
7079 * target.h (struct target_ops) <to_post_attach>: Use
7080 TARGET_DEFAULT_IGNORE.
7082 2014-02-19 Tom Tromey <tromey@redhat.com>
7084 * target-delegates.c: Rebuild.
7085 * target.c (update_current_target): Don't inherit or default
7087 (default_rcmd): New function.
7088 (do_monitor_command): Unconditionally delegate.
7089 * target.h (struct target_ops) <to_rmcd>: Use
7090 TARGET_DEFAULT_FUNC.
7092 2014-02-19 Tom Tromey <tromey@redhat.com>
7094 * target-delegates.c: Rebuild.
7095 * target.c (init_dummy_target): Don't initialize to_attach.
7096 (target_attach): Unconditionally delegate.
7097 * target.h (struct target_ops) <to_attach>: Use
7098 TARGET_DEFAULT_FUNC.
7100 2014-02-19 Tom Tromey <tromey@redhat.com>
7102 * target-delegates.c: Rebuild.
7103 * target.c (target_detach): Unconditionally delegate.
7104 (init_dummy_target): Don't initialize to_detach.
7105 * target.h (struct target_ops) <to_detach>: Use
7106 TARGET_DEFAULT_IGNORE.
7108 2014-02-19 Tom Tromey <tromey@redhat.com>
7110 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7112 (target_augmented_libraries_svr4_read): Add argument.
7113 * target.c (update_current_target): Update.
7114 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7117 2014-02-19 Tom Tromey <tromey@redhat.com>
7119 * target.h (struct target_ops) <to_call_history_range>: Add
7121 * target.c (target_call_history_range): Add argument.
7122 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7124 (record_btrace_call_history_from): Update.
7126 2014-02-19 Tom Tromey <tromey@redhat.com>
7128 * target.h (struct target_ops) <to_call_history_from>: Add
7130 * target.c (target_call_history_from): Add argument.
7131 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7134 2014-02-19 Tom Tromey <tromey@redhat.com>
7136 * target.h (struct target_ops) <to_call_history>: Add argument.
7137 * target.c (target_call_history): Add argument.
7138 * record-btrace.c (record_btrace_call_history): Add 'self'
7141 2014-02-19 Tom Tromey <tromey@redhat.com>
7143 * target.h (struct target_ops) <to_insn_history_range>: Add
7145 * target.c (target_insn_history_range): Add argument.
7146 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7148 (record_btrace_insn_history_from): Update.
7150 2014-02-19 Tom Tromey <tromey@redhat.com>
7152 * target.h (struct target_ops) <to_insn_history_from>: Add
7154 * target.c (target_insn_history_from): Add argument.
7155 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7158 2014-02-19 Tom Tromey <tromey@redhat.com>
7160 * target.h (struct target_ops) <to_insn_history>: Add argument.
7161 * target.c (target_insn_history): Add argument.
7162 * record-btrace.c (record_btrace_insn_history): Add 'self'
7165 2014-02-19 Tom Tromey <tromey@redhat.com>
7167 * target.h (struct target_ops) <to_goto_record>: Add argument.
7168 * target.c (target_goto_record): Add argument.
7169 * record-full.c (record_full_goto): Add 'self' argument.
7170 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7172 2014-02-19 Tom Tromey <tromey@redhat.com>
7174 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7175 * target.c (target_goto_record_end): Add argument.
7176 * record-full.c (record_full_goto_end): Add 'self' argument.
7177 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7179 2014-02-19 Tom Tromey <tromey@redhat.com>
7181 * target.h (struct target_ops) <to_goto_record_begin>: Add
7183 * target.c (target_goto_record_begin): Add argument.
7184 * record-full.c (record_full_goto_begin): Add 'self' argument.
7185 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7188 2014-02-19 Tom Tromey <tromey@redhat.com>
7190 * target.h (struct target_ops) <to_record_is_replaying>: Add
7192 * target.c (target_record_is_replaying): Add argument.
7193 * record-full.c (record_full_is_replaying): Add 'self' argument.
7194 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7196 (record_btrace_xfer_partial, record_btrace_store_registers)
7197 (record_btrace_prepare_to_store, record_btrace_resume)
7198 (record_btrace_wait, record_btrace_decr_pc_after_break)
7199 (record_btrace_find_new_threads, record_btrace_thread_alive):
7202 2014-02-19 Tom Tromey <tromey@redhat.com>
7204 * target.h (struct target_ops) <to_delete_record>: Add argument.
7205 * target.c (target_delete_record): Add argument.
7206 * record-full.c (record_full_delete): Add 'self' argument.
7208 2014-02-19 Tom Tromey <tromey@redhat.com>
7210 * target.h (struct target_ops) <to_save_record>: Add argument.
7211 * target.c (target_save_record): Add argument.
7212 * record-full.c (record_full_save): Add 'self' argument.
7213 (record_full_save): Add 'self' argument.
7215 2014-02-19 Tom Tromey <tromey@redhat.com>
7217 * target.h (struct target_ops) <to_info_record>: Add argument.
7218 * target.c (target_info_record): Add argument.
7219 * record.c (info_record_command): Add argument.
7220 * record-full.c (record_full_info): Add 'self' argument.
7221 * record-btrace.c (record_btrace_info): Add 'self' argument.
7223 2014-02-19 Tom Tromey <tromey@redhat.com>
7225 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7226 * target.c (target_stop_recording): Add argument.
7227 * record.c (record_stop): Add argument.
7228 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7231 2014-02-19 Tom Tromey <tromey@redhat.com>
7233 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7234 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7235 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7237 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7238 (_initialize_amd64_linux_nat): Use it.
7239 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7240 (_initialize_i386_linux_nat): Use it.
7242 2014-02-19 Tom Tromey <tromey@redhat.com>
7244 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7245 * target.c (target_teardown_btrace): Add argument.
7246 * remote.c (remote_teardown_btrace): Add 'self' argument.
7247 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7249 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7252 2014-02-19 Tom Tromey <tromey@redhat.com>
7254 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7255 * target.c (target_disable_btrace): Add argument.
7256 * remote.c (remote_disable_btrace): Add 'self' argument.
7257 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7259 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7262 2014-02-19 Tom Tromey <tromey@redhat.com>
7264 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7265 * target.c (target_enable_btrace): Add argument.
7266 * remote.c (remote_enable_btrace): Add 'self' argument.
7267 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7269 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7272 2014-02-19 Tom Tromey <tromey@redhat.com>
7274 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7275 (target_can_use_agent): Add argument.
7276 * target.c (update_current_target): Update.
7277 * remote.c (remote_can_use_agent): Add 'self' argument.
7278 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7280 2014-02-19 Tom Tromey <tromey@redhat.com>
7282 * target.h (struct target_ops) <to_use_agent>: Add argument.
7283 (target_use_agent): Add argument.
7284 * target.c (update_current_target): Update.
7285 * remote.c (remote_use_agent): Add 'self' argument.
7286 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7288 2014-02-19 Tom Tromey <tromey@redhat.com>
7290 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7291 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7292 (target_traceframe_info): Add argument.
7293 * target.c (update_current_target): Update.
7294 * remote.c (remote_traceframe_info): Add 'self' argument.
7295 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7297 2014-02-19 Tom Tromey <tromey@redhat.com>
7299 * target.h (target_static_tracepoint_markers_by_strid): Add
7301 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7303 * target.c (update_current_target): Update.
7304 * remote.c (struct target_ops)
7305 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7306 * linux-nat.c (struct target_ops)
7307 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7309 2014-02-19 Tom Tromey <tromey@redhat.com>
7311 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7313 (target_static_tracepoint_marker_at): Add argument.
7314 * target.c (update_current_target): Update.
7315 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7318 2014-02-19 Tom Tromey <tromey@redhat.com>
7320 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7321 (target_set_permissions): Add argument.
7322 * target.c (update_current_target): Update.
7323 * remote.c (remote_set_permissions): Add 'self' argument.
7324 (remote_start_remote): Update.
7326 2014-02-19 Tom Tromey <tromey@redhat.com>
7328 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7329 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7330 (target_get_tib_address): Add argument.
7331 * target.c (update_current_target): Update.
7332 * remote.c (remote_get_tib_address): Add 'self' argument.
7334 2014-02-19 Tom Tromey <tromey@redhat.com>
7336 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7337 (target_set_trace_notes): Add argument.
7338 * target.c (update_current_target): Update.
7339 * remote.c (remote_set_trace_notes): Add 'self' argument.
7341 2014-02-19 Tom Tromey <tromey@redhat.com>
7343 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7345 (target_set_trace_buffer_size): Add argument.
7346 * target.c (update_current_target): Update.
7347 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7349 2014-02-19 Tom Tromey <tromey@redhat.com>
7351 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7353 (target_set_circular_trace_buffer): Add argument.
7354 * target.c (update_current_target): Update.
7355 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7358 2014-02-19 Tom Tromey <tromey@redhat.com>
7360 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7362 (target_set_disconnected_tracing): Add argument.
7363 * target.c (update_current_target): Update.
7364 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7366 2014-02-19 Tom Tromey <tromey@redhat.com>
7368 * target.h (struct target_ops)
7369 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7370 (target_get_min_fast_tracepoint_insn_len): Add argument.
7371 * target.c (update_current_target): Update.
7372 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7375 2014-02-19 Tom Tromey <tromey@redhat.com>
7377 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7379 (target_get_raw_trace_data): Add argument.
7380 * target.c (update_current_target): Update.
7381 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7383 2014-02-19 Tom Tromey <tromey@redhat.com>
7385 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7387 (target_upload_trace_state_variables): Add argument.
7388 * target.c (update_current_target): Update.
7389 * remote.c (remote_upload_trace_state_variables): Add 'self'
7391 (remote_start_remote): Update.
7393 2014-02-19 Tom Tromey <tromey@redhat.com>
7395 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7397 (target_upload_tracepoints): Add argument.
7398 * target.c (update_current_target): Update.
7399 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7400 (remote_start_remote): Update.
7402 2014-02-19 Tom Tromey <tromey@redhat.com>
7404 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7405 (target_save_trace_data): Add argument.
7406 * target.c (update_current_target): Update.
7407 * remote.c (remote_save_trace_data): Add 'self' argument.
7409 2014-02-19 Tom Tromey <tromey@redhat.com>
7411 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7413 * target.h (struct target_ops)
7414 <to_get_trace_state_variable_value>: Add argument.
7415 (target_get_trace_state_variable_value): Add argument.
7416 * target.c (update_current_target): Update.
7417 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7419 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7421 2014-02-19 Tom Tromey <tromey@redhat.com>
7423 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7424 * target.h (struct target_ops) <to_trace_find>: Add argument.
7425 (target_trace_find): Add argument.
7426 * target.c (update_current_target): Update.
7427 * remote.c (remote_trace_find): Add 'self' argument.
7428 * ctf.c (ctf_trace_find): Add 'self' argument.
7430 2014-02-19 Tom Tromey <tromey@redhat.com>
7432 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7433 (target_trace_stop): Add argument.
7434 * target.c (update_current_target): Update.
7435 * remote.c (remote_trace_stop): Add 'self' argument.
7437 2014-02-19 Tom Tromey <tromey@redhat.com>
7439 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7440 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7442 (target_get_tracepoint_status): Add argument.
7443 * target.c (update_current_target): Update.
7444 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7446 2014-02-19 Tom Tromey <tromey@redhat.com>
7448 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7449 * target.h (struct target_ops) <to_get_trace_status>: Add
7451 (target_get_trace_status): Add argument.
7452 * target.c (update_current_target): Update.
7453 * remote.c (remote_get_trace_status): Add 'self' argument.
7454 (remote_start_remote, remote_can_download_tracepoint): Update.
7455 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7457 2014-02-19 Tom Tromey <tromey@redhat.com>
7459 * target.h (struct target_ops) <to_trace_start>: Add argument.
7460 (target_trace_start): Add argument.
7461 * target.c (update_current_target): Update.
7462 * remote.c (remote_trace_start): Add 'self' argument.
7464 2014-02-19 Tom Tromey <tromey@redhat.com>
7466 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7468 (target_trace_set_readonly_regions): Add argument.
7469 * target.c (update_current_target): Update.
7470 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7473 2014-02-19 Tom Tromey <tromey@redhat.com>
7475 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7477 (target_disable_tracepoint): Add argument.
7478 * target.c (update_current_target): Update.
7479 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7481 2014-02-19 Tom Tromey <tromey@redhat.com>
7483 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7485 (target_enable_tracepoint): Add argument.
7486 * target.c (update_current_target): Update.
7487 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7489 2014-02-19 Tom Tromey <tromey@redhat.com>
7491 * target.h (struct target_ops) <to_download_trace_state_variable>:
7493 (target_download_trace_state_variable): Add argument.
7494 * target.c (update_current_target): Update.
7495 * remote.c (remote_download_trace_state_variable): Add 'self'
7498 2014-02-19 Tom Tromey <tromey@redhat.com>
7500 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7502 (target_can_download_tracepoint): Add argument.
7503 * target.c (update_current_target): Update.
7504 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7506 2014-02-19 Tom Tromey <tromey@redhat.com>
7508 * target.h (struct target_ops) <to_download_tracepoint>: Add
7510 (target_download_tracepoint): Add argument.
7511 * target.c (update_current_target): Update.
7512 * remote.c (remote_download_tracepoint): Add 'self' argument.
7514 2014-02-19 Tom Tromey <tromey@redhat.com>
7516 * target.h (struct target_ops) <to_trace_init>: Add argument.
7517 (target_trace_init): Add argument.
7518 * target.c (update_current_target): Update.
7519 * remote.c (remote_trace_init): Add 'self' argument.
7521 2014-02-19 Tom Tromey <tromey@redhat.com>
7523 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7524 * target.c (target_fileio_readlink): Add argument.
7525 * remote.c (remote_hostio_readlink): Add 'self' argument.
7526 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7528 2014-02-19 Tom Tromey <tromey@redhat.com>
7530 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7531 * target.c (target_fileio_unlink): Add argument.
7532 * remote.c (remote_hostio_unlink): Add 'self' argument.
7533 (remote_file_delete): Update.
7534 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7536 2014-02-19 Tom Tromey <tromey@redhat.com>
7538 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7539 * target.c (target_fileio_close): Add argument.
7540 * remote.c (remote_hostio_close): Add 'self' argument.
7541 (remote_hostio_close_cleanup): Update.
7542 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7544 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7546 2014-02-19 Tom Tromey <tromey@redhat.com>
7548 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7549 * target.c (target_fileio_pread): Add argument.
7550 * remote.c (remote_hostio_pread): Add 'self' argument.
7551 (remote_bfd_iovec_pread, remote_file_get): Update.
7552 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7554 2014-02-19 Tom Tromey <tromey@redhat.com>
7556 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7557 * target.c (target_fileio_pwrite): Add argument.
7558 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7559 (remote_file_put): Update.
7560 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7562 2014-02-19 Tom Tromey <tromey@redhat.com>
7564 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7565 * target.c (target_fileio_open): Add argument.
7566 * remote.c (remote_hostio_open): Add 'self' argument.
7567 (remote_bfd_iovec_open): Add 'self' argument.
7568 (remote_file_put): Add 'self' argument.
7569 (remote_file_get): Add 'self' argument.
7570 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7572 2014-02-19 Tom Tromey <tromey@redhat.com>
7574 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7576 (target_can_run_breakpoint_commands): Add argument.
7577 * target.c (update_current_target): Update.
7578 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7580 (remote_insert_breakpoint): Add 'self' argument.
7581 (remote_insert_hw_breakpoint): Add 'self' argument.
7582 (remote_can_run_breakpoint_commands): Add 'self' argument.
7584 2014-02-19 Tom Tromey <tromey@redhat.com>
7586 * target.h (struct target_ops)
7587 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7588 (target_supports_evaluation_of_breakpoint_conditions): Add
7590 * target.c (update_current_target): Update.
7591 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7593 (remote_insert_breakpoint): Add 'self' argument.
7594 (remote_insert_hw_breakpoint): Add 'self' argument.
7595 (remote_supports_cond_breakpoints): Add 'self' argument.
7597 2014-02-19 Tom Tromey <tromey@redhat.com>
7599 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7601 (target_supports_string_tracing): Add argument.
7602 * target.c (update_current_target): Update.
7603 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7605 2014-02-19 Tom Tromey <tromey@redhat.com>
7607 * target.h (struct target_ops)
7608 <to_supports_disable_randomization>: Add argument.
7609 * target.c (find_default_supports_disable_randomization): Add
7611 (target_supports_disable_randomization): Add argument.
7612 (find_default_supports_disable_randomization): Add 'self'
7614 * remote.c (extended_remote_supports_disable_randomization): Add
7616 (remote_supports_disable_randomization): Add 'self' argument.
7617 (extended_remote_create_inferior): Update.
7618 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7621 2014-02-19 Tom Tromey <tromey@redhat.com>
7623 * target.h (struct target_ops)
7624 <to_supports_enable_disable_tracepoint>: Add argument.
7625 (target_supports_enable_disable_tracepoint): Add argument.
7626 * target.c (update_current_target): Update.
7627 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7630 2014-02-19 Tom Tromey <tromey@redhat.com>
7632 * target.h (struct target_ops) <to_supports_multi_process>: Add
7634 (target_supports_multi_process): Add argument.
7635 * target.c (update_current_target): Update.
7636 * remote.c (remote_supports_multi_process): Add 'self' argument.
7637 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7639 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7642 2014-02-19 Tom Tromey <tromey@redhat.com>
7644 * target.h (struct target_ops) <to_execution_direction>: Add
7646 (target_execution_direction): Add argument.
7647 * target.c (default_execution_direction): Add 'self' argument.
7648 * record-full.c (record_full_execution_direction): Add 'self'
7651 2014-02-19 Tom Tromey <tromey@redhat.com>
7653 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7655 (target_can_execute_reverse): Add argument.
7656 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7657 * record-full.c (record_full_can_execute_reverse): Add 'self'
7659 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7662 2014-02-19 Tom Tromey <tromey@redhat.com>
7664 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7665 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7667 (target_get_ada_task_ptid): Add argument.
7668 * target.c (update_current_target): Update.
7669 (default_get_ada_task_ptid): Add 'self' argument.
7670 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7671 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7672 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7674 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7676 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7678 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7680 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7681 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7684 2014-02-19 Tom Tromey <tromey@redhat.com>
7686 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7687 (target_goto_bookmark): Add argument.
7688 * target.c (dummy_goto_bookmark): Add 'self' argument.
7689 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7691 2014-02-19 Tom Tromey <tromey@redhat.com>
7693 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7694 (target_get_bookmark): Add argument.
7695 * target.c (dummy_get_bookmark): Add 'self' argument.
7696 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7698 2014-02-19 Tom Tromey <tromey@redhat.com>
7700 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7702 (target_make_corefile_notes): Add argument.
7703 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7704 * procfs.c (procfs_make_note_section): Add 'self' argument.
7705 (procfs_make_note_section): Add 'self' argument.
7706 (procfs_make_note_section): Add 'self' argument.
7707 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7709 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7710 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7711 * exec.c (exec_make_note_section): Add 'self' argument.
7712 (exec_make_note_section): Add 'self' argument.
7714 2014-02-19 Tom Tromey <tromey@redhat.com>
7716 * target.h (struct target_ops) <to_find_memory_regions>: Add
7718 (target_find_memory_regions): Add argument.
7719 * target.c (dummy_find_memory_regions): Add 'self' argument.
7720 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7721 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7722 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7723 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7724 * exec. (exec_do_find_memory_regions): New global.
7725 (exec_set_find_memory_regions): Rewrite.
7726 (exec_find_memory_regions): New function.
7727 (init_exec_ops): Use exec_find_memory_regions.
7729 2014-02-19 Tom Tromey <tromey@redhat.com>
7731 * target.h (struct target_ops) <to_supports_non_stop>: Add
7733 * target.c (find_default_supports_non_stop): Add argument.
7734 (target_supports_non_stop): Add argument.
7735 (find_default_supports_non_stop): Add 'self' argument.
7736 * remote.c (remote_supports_non_stop): Add 'self' argument.
7737 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7739 2014-02-19 Tom Tromey <tromey@redhat.com>
7741 * target.h (struct target_ops) <to_log_command>: Add argument.
7742 (target_log_command): Add argument.
7743 * serial.h (serial_log_command): Add 'self' argument.
7744 * serial.c (serial_log_command): Add 'self' argument.
7746 2014-02-19 Tom Tromey <tromey@redhat.com>
7748 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7749 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7751 (target_pid_to_exec_file): Add argument.
7752 * target.c (debug_to_pid_to_exec_file): Add argument.
7753 (update_current_target): Update.
7754 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7755 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7756 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7757 (linux_handle_extended_wait): Update.
7758 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7759 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7760 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7761 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7763 2014-02-19 Tom Tromey <tromey@redhat.com>
7765 * target.h (struct target_ops) <to_rcmd>: Add argument.
7766 (target_rcmd): Add argument.
7767 * target.c (debug_to_rcmd): Add argument.
7768 (update_current_target, do_monitor_command): Update.
7769 * remote.c (remote_rcmd): Add 'self' argument.
7770 * monitor.c (monitor_rcmd): Add 'self' argument.
7772 2014-02-19 Tom Tromey <tromey@redhat.com>
7774 * windows-nat.c (windows_stop): Add 'self' argument.
7775 * target.h (struct target_ops) <to_stop>: Add argument.
7776 * target.c (target_stop): Add argument.
7777 (debug_to_stop): Add argument.
7778 (update_current_target): Update.
7779 * remote.c (remote_stop): Add 'self' argument.
7780 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7781 (gdbsim_cntrl_c): Update.
7782 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7783 * procfs.c (procfs_stop): Add 'self' argument.
7784 * nto-procfs.c (procfs_stop): Add 'self' argument.
7785 * monitor.c (monitor_stop): Add 'self' argument.
7786 (monitor_open): Update.
7787 * linux-nat.c (linux_nat_stop): Add argument.
7788 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7789 * gnu-nat.c (gnu_stop): Add 'self' argument.
7790 * darwin-nat.c (darwin_stop): Add 'self' argument.
7792 2014-02-19 Tom Tromey <tromey@redhat.com>
7794 * target.h (struct target_ops) <to_thread_name>: Add argument.
7795 * target.c (target_thread_name): Add argument.
7796 (update_current_target): Update.
7797 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7799 2014-02-19 Tom Tromey <tromey@redhat.com>
7801 * target.h (struct target_ops) <to_extra_thread_info>: Add
7803 (target_extra_thread_info): Add argument.
7804 * target.c (update_current_target): Update.
7805 * remote.c (remote_threads_extra_info): Add 'self' argument.
7806 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7808 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7809 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7810 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7812 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7814 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7816 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7819 2014-02-19 Tom Tromey <tromey@redhat.com>
7821 * target.h (struct target_ops) <to_program_signals>: Add argument.
7822 * target.c (target_program_signals): Add argument.
7823 * remote.c (remote_program_signals): Add 'self' argument.
7825 2014-02-19 Tom Tromey <tromey@redhat.com>
7827 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7828 * target.c (target_pass_signals): Add argument.
7829 * remote.c (remote_pass_signals): Add 'self' argument.
7830 (remote_start_remote): Update.
7831 * procfs.c (procfs_pass_signals): Add 'self' argument.
7832 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7833 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7834 (linux_nat_create_inferior, linux_nat_attach): Update.
7836 2014-02-19 Tom Tromey <tromey@redhat.com>
7838 * windows-nat.c (windows_can_run): Add 'self' argument.
7839 * target.h (struct target_ops) <to_can_run>: Add argument.
7840 (target_can_run): Add argument.
7841 * target.c (debug_to_can_run): Add argument.
7842 (update_current_target): Update.
7843 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7844 * inf-child.c (inf_child_can_run): Add 'self' argument.
7845 * go32-nat.c (go32_can_run): Add 'self' argument.
7847 2014-02-19 Tom Tromey <tromey@redhat.com>
7849 * target.h (struct target_ops) <to_has_exited>: Add argument.
7850 (target_has_exited): Add argument.
7851 * target.c (debug_to_has_exited): Add argument.
7852 (update_current_target): Update.
7854 2014-02-19 Tom Tromey <tromey@redhat.com>
7856 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7858 (target_set_syscall_catchpoint): Add argument.
7859 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7861 * target.c (update_current_target): Update.
7863 2014-02-19 Tom Tromey <tromey@redhat.com>
7865 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7867 (target_remove_exec_catchpoint): Add argument.
7868 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7869 (update_current_target): Update.
7870 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7873 2014-02-19 Tom Tromey <tromey@redhat.com>
7875 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7877 (target_insert_exec_catchpoint): Add argument.
7878 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7879 (update_current_target): Update.
7880 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7883 2014-02-19 Tom Tromey <tromey@redhat.com>
7885 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7887 (target_remove_vfork_catchpoint): Add argument.
7888 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7889 (update_current_target): Update.
7890 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7893 2014-02-19 Tom Tromey <tromey@redhat.com>
7895 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7897 (target_insert_vfork_catchpoint): Add argument.
7898 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7899 (update_current_target): Update.
7900 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7903 2014-02-19 Tom Tromey <tromey@redhat.com>
7905 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7907 (target_remove_fork_catchpoint): Add argument.
7908 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7909 (update_current_target): Update.
7910 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7913 2014-02-19 Tom Tromey <tromey@redhat.com>
7915 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7917 (target_insert_fork_catchpoint): Add argument.
7918 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7919 (update_current_target): Update.
7920 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7923 2014-02-19 Tom Tromey <tromey@redhat.com>
7925 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7927 (target_post_startup_inferior): Add argument.
7928 * target.c (debug_to_post_startup_inferior): Add argument.
7929 (update_current_target): Update.
7930 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7932 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7934 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7936 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7938 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7940 (super_post_startup_inferior): Likewise.
7941 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7943 (super_post_startup_inferior): Likewise.
7944 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7945 Add 'self' argument.
7946 (super_post_startup_inferior): Likewise.
7948 2014-02-19 Tom Tromey <tromey@redhat.com>
7950 * target.h (struct target_ops) <to_load>: Add argument.
7951 * target.c (target_load): Add argument.
7952 (debug_to_load): Add argument.
7953 (update_current_target): Update.
7954 * remote.c (remote_load): Add 'self' argument.
7955 * remote-sim.c (gdbsim_load): Add 'self' argument.
7956 * remote-mips.c (mips_load): Add 'self' argument.
7957 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7958 * monitor.c (monitor_load): Add 'self' argument.
7959 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7961 2014-02-19 Tom Tromey <tromey@redhat.com>
7963 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7964 (target_terminal_info): Add argument.
7965 * target.c (debug_to_terminal_info): Add argument.
7966 (default_terminal_info): Likewise.
7967 * inflow.c (child_terminal_info): Add 'self' argument.
7968 * inferior.h (child_terminal_info): Add 'self' argument.
7969 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7971 2014-02-19 Tom Tromey <tromey@redhat.com>
7973 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7975 (target_terminal_save_ours): Add argument.
7976 * target.c (debug_to_terminal_save_ours): Add argument.
7977 (update_current_target): Update.
7978 * inflow.c (terminal_save_ours): Add 'self' argument.
7979 * inferior.h (terminal_save_ours): Add 'self' argument.
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7983 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7984 (target_terminal_ours): Add argument.
7985 * target.c (debug_to_terminal_ours): Add argument.
7986 (update_current_target): Update.
7987 * remote.c (remote_terminal_ours): Add 'self' argument.
7988 (remote_close): Update.
7989 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7990 * inflow.c (terminal_ours): Add 'self' argument.
7991 * inferior.h (terminal_ours): Add 'self' argument.
7992 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7994 2014-02-19 Pedro Alves <palves@redhat.com>
7995 Tom Tromey <tromey@redhat.com>
7997 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7999 (target_terminal_ours_for_output): Add argument.
8000 * target.c (debug_to_terminal_ours_for_output): Add argument.
8001 (update_current_target): Update.
8002 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8003 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8004 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8006 2014-02-19 Tom Tromey <tromey@redhat.com>
8008 * target.h (struct target_ops) <to_terminal_inferior>: Add
8010 * target.c (target_terminal_inferior): Add argument.
8011 (update_current_target): Update.
8012 * remote.c (remote_terminal_inferior): Add 'self' argument.
8013 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8014 * inflow.c (terminal_inferior): Add 'self' argument.
8015 * inferior.h (terminal_inferior): Add 'self' argument.
8016 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8017 (go32_terminal_inferior): Add 'self' argument.
8019 2014-02-19 Tom Tromey <tromey@redhat.com>
8021 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8022 (target_terminal_init): Add argument.
8023 * target.c (debug_to_terminal_init): Add argument.
8024 (update_current_target): Update.
8025 * inflow.c (terminal_init_inferior): Add 'self' argument.
8026 * inferior.h (terminal_init_inferior): Add 'self' argument.
8027 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8028 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8030 2014-02-19 Tom Tromey <tromey@redhat.com>
8032 * target.h (struct target_ops)
8033 <to_can_accel_watchpoint_condition>: Add argument.
8034 (target_can_accel_watchpoint_condition): Add argument.
8035 * target.c (debug_to_can_accel_watchpoint_condition): Add
8037 (update_current_target): Update.
8038 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8043 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8045 (target_region_ok_for_hw_watchpoint): Add argument.
8046 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8047 (default_region_ok_for_hw_watchpoint): Add argument.
8048 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8049 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8051 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8053 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8055 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8057 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8059 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8061 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8062 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8064 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8065 Add 'self' argument.
8067 2014-02-19 Tom Tromey <tromey@redhat.com>
8069 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8071 (target_insert_watchpoint): Add argument.
8072 * target.c (debug_to_insert_watchpoint): Add argument.
8073 (update_current_target): Update.
8074 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8075 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8076 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8077 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8078 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8079 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8081 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8082 (procfs_insert_hw_watchpoint): Add 'self' argument.
8083 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8085 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8087 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8089 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8090 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8092 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8095 2014-02-19 Tom Tromey <tromey@redhat.com>
8097 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8099 (target_remove_watchpoint): Add argument.
8100 * target.c (debug_to_remove_watchpoint): Add argument.
8101 (update_current_target): Update.
8102 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8103 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8104 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8105 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8106 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8107 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8109 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8110 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8112 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8114 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8116 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8117 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8119 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8122 2014-02-19 Tom Tromey <tromey@redhat.com>
8124 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8126 (target_remove_hw_breakpoint): Add argument.
8127 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8128 (update_current_target): Update.
8129 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8130 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8132 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8133 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8135 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8138 2014-02-19 Tom Tromey <tromey@redhat.com>
8140 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8142 (target_insert_hw_breakpoint): Add argument.
8143 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8144 (update_current_target): Update.
8145 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8146 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8148 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8149 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8150 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8152 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8155 2014-02-19 Tom Tromey <tromey@redhat.com>
8157 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8159 (target_can_use_hardware_watchpoint): Add argument.
8160 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8161 (update_current_target): Update.
8162 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8164 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8166 * remote.c (remote_check_watch_resources): Add 'self' argument.
8167 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8168 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8170 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8171 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8173 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8175 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8177 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8179 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8181 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8183 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8184 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8186 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8189 2014-02-19 Tom Tromey <tromey@redhat.com>
8191 * target.h (struct target_ops) <to_post_attach>: Add argument.
8192 (target_post_attach): Add argument.
8193 * target.c (debug_to_post_attach): Add argument.
8194 (update_current_target): Update.
8195 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8196 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8197 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8198 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8199 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8201 2014-02-19 Tom Tromey <tromey@redhat.com>
8203 * windows-nat.c (windows_close): Add 'self' argument.
8204 * tracepoint.c (tfile_close): Add 'self' argument.
8205 * target.h (struct target_ops) <to_close>: Add argument.
8206 * target.c (target_close): Add argument.
8207 (update_current_target): Update.
8208 * remote.c (remote_close): Add 'self' argument.
8209 * remote-sim.c (gdbsim_close): Add 'self' argument.
8210 * remote-mips.c (mips_close): Add 'self' argument.
8211 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8212 * record-full.c (record_full_close): Add 'self' argument.
8213 * record-btrace.c (record_btrace_close): Add 'self' argument.
8214 * monitor.h (monitor_close): Add 'self' argument.
8215 * monitor.c (monitor_close): Add 'self' argument.
8216 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8217 * linux-nat.c (linux_nat_close): Add argument.
8218 * go32-nat.c (go32_close): Add 'self' argument.
8219 * exec.c (exec_close_1): Add 'self' argument.
8220 * ctf.c (ctf_close): Add 'self' argument.
8221 * corelow.c (core_close): Add 'self' argument.
8222 (core_close_cleanup): Update.
8223 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8224 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8226 2014-02-19 Tom Tromey <tromey@redhat.com>
8228 * remote.c (remote_load): New function.
8229 (init_remote_ops): Use it.
8231 2014-02-19 Tom Tromey <tromey@redhat.com>
8233 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8235 * common/linux-btrace.h (linux_supports_btrace): Update.
8236 * remote.c (remote_supports_btrace): Add "self" argument.
8237 * target-delegates.c: Rebuild.
8238 * target.c (target_supports_btrace): Remove.
8239 * target.h (struct target_ops) <to_supports_btrace>: Add
8240 target_ops argument.
8241 (target_supports_btrace): New define.
8243 2014-02-19 Tom Tromey <tromey@redhat.com>
8245 * record-full.c (record_full_beneath_to_resume_ops)
8246 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8247 (record_full_beneath_to_wait)
8248 (record_full_beneath_to_store_registers_ops)
8249 (record_full_beneath_to_store_registers)
8250 (record_full_beneath_to_xfer_partial_ops)
8251 (record_full_beneath_to_xfer_partial)
8252 (record_full_beneath_to_insert_breakpoint_ops)
8253 (record_full_beneath_to_insert_breakpoint)
8254 (record_full_beneath_to_remove_breakpoint_ops)
8255 (record_full_beneath_to_remove_breakpoint)
8256 (record_full_beneath_to_stopped_by_watchpoint)
8257 (record_full_beneath_to_stopped_data_address)
8258 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8259 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8260 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8261 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8262 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8263 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8264 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8265 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8266 (record_full_resume, record_full_wait_1)
8267 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8268 (record_full_store_registers, record_full_xfer_partial)
8269 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8270 (record_full_async, record_full_core_xfer_partial): Use target
8272 * target-delegates.c: Rebuild.
8273 * target.c (current_xfer_partial): Remove.
8274 (update_current_target): Do not INHERIT or de_fault
8275 to_insert_breakpoint, to_remove_breakpoint,
8276 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8277 to_is_async_p, to_async. Do not set to_xfer_partial field.
8278 (default_xfer_partial): Simplify.
8279 (current_xfer_partial): Remove.
8280 (target_wait, target_resume): Simplify.
8281 (find_default_can_async_p, find_default_is_async_p): Update.
8282 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8283 to_xfer_partial, to_stopped_by_watchpoint,
8284 to_stopped_data_address.
8285 (target_store_registers): Simplify.
8286 (forward_target_remove_breakpoint)
8287 (forward_target_insert_breakpoint): Remove.
8288 (target_remove_breakpoint, target_insert_breakpoint)
8289 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8290 * target.h (struct target_ops) <to_resume, to_wait,
8291 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8292 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8293 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8295 (forward_target_remove_breakpoint)
8296 (forward_target_insert_breakpoint): Remove.
8297 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8299 (record_btrace_insert_breakpoint): Delegate directly.
8301 2014-02-19 Tom Tromey <tromey@redhat.com>
8304 * target-delegates.c: New file.
8305 * target.c: Include target-delegates.c.
8306 (init_dummy_target): Call install_dummy_methods.
8307 (complete_target_initialization): Call install_delegators.
8308 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8309 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8310 * make-target-delegates: New file.
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8314 * record.c (find_record_target): Use find_target_at.
8315 * target.c (find_target_at): New function.
8316 * target.h (find_target_at): Declare.
8318 2014-02-19 Tom Tromey <tromey@redhat.com>
8320 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8322 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8324 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8325 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8327 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8329 * linux-nat.c (save_sigtrap): Update.
8330 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8331 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8332 (linux_nat_close): Update.
8333 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8335 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8337 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8338 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8339 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8340 (tmp_to_async): Add 'ops' argument.
8341 (record_full_stopped_by_watchpoint, record_full_async)
8342 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8344 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8345 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8346 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8347 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8348 (remote_is_async_p, remote_async): Add 'ops' argument.
8349 (remote_stopped_data_address): Update.
8350 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8351 * target.c (update_current_target)
8352 (find_default_can_async_p, find_default_is_async_p): Update.
8353 (init_dummy_target): Update.
8354 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8355 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8356 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8357 (target_can_async_p, target_is_async_p, target_async)
8358 (target_stopped_by_watchpoint): Update.
8360 2014-02-19 Yao Qi <yao@codesourcery.com>
8363 * gdbarch.sh: Remove startup_gdbarch.
8364 * gdbarch.c: Regenerated.
8365 * gdbarch.h: Likewise.
8367 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8369 * rl78-tdep.c (rl78_g10_register_name): New function.
8370 (rl78_return_value): Add g10 support.
8371 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8374 2014-02-17 Doug Evans <xdje42@gmail.com>
8376 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8377 (SUBDIR_GUILE_SRCS): Ditto.
8378 (scm-gsmob.o): Ditto.
8380 2014-02-17 Yao Qi <yao@codesourcery.com>
8382 * gnu-nat.c (ILL_RPC): Declare defined function.
8384 2014-02-17 Yao Qi <yao@codesourcery.com>
8386 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8387 mach_msg_type_number_t.
8388 (gnu_write_inferior): Likewise.
8390 2014-02-17 Yao Qi <yao@codesourcery.com>
8392 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8394 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8395 (inf_validate_procs, inf_signal): Likewise.
8396 (S_exception_raise_request): Likewise.
8397 (do_mach_notify_dead_name): Likewise.
8398 (steal_exc_port): Likewise.
8399 (gnu_read_inferior): Change 'copy_count''s type to
8400 mach_msg_type_number_t.
8401 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8404 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8406 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8407 flag. Adjust all users; in particular...
8408 (gnu_wait): ..., don't decrement its value in here...
8409 (gnu_create_inferior): ..., and instead set the flag in here,
8410 around the startup_inferior call, and call that one with
8411 START_INFERIOR_TRAPS_EXPECTED.
8413 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8414 (ILL_RPC): ... new macro.
8415 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8416 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8417 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8418 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8419 functions with ILL_RPC macro.
8420 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8421 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8422 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8423 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8424 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8425 (S_proc_getlogin_reply, S_proc_getsid_reply)
8426 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8427 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8428 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8429 (S_proc_getnports_reply, S_proc_is_important_reply)
8430 (S_proc_get_code_reply): New stub functions, generated with
8433 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8434 collected the type check structures.
8436 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8438 2014-02-14 Doug Evans <dje@google.com>
8440 * target.c (target_write_partial): Fix result type.
8442 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8444 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8445 the proper offsets to access fpregset_t.
8447 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8449 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8450 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8451 * h8300-tdep.c (setmachinelist): Remove global.
8452 * hppa-tdep.c (hppa_sigtramp): Remove global.
8453 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8454 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8455 * ravenscar-thread.c (update_target_observer): Remove global.
8456 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8458 2014-02-12 Tom Tromey <tromey@redhat.com>
8460 * common/rsp-low.c: Update comments.
8461 * common/rsp-low.h: Update comments.
8463 2014-02-12 Tom Tromey <tromey@redhat.com>
8465 * common/rsp-low.c (convert_ascii_to_int): Remove.
8466 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8468 2014-02-12 Tom Tromey <tromey@redhat.com>
8470 * common/rsp-low.h (unhexify): Don't declare.
8471 * common/rsp-low.c (unhexify): Remove.
8473 2014-02-12 Tom Tromey <tromey@redhat.com>
8475 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8476 * common/rsp-low.c (convert_int_to_ascii): Remove.
8478 2014-02-12 Tom Tromey <tromey@redhat.com>
8480 * common/rsp-low.h (hexify): Don't declare.
8481 * common/rsp-low.c (hexify): Remove.
8483 2014-02-12 Tom Tromey <tromey@redhat.com>
8485 * common/rsp-low.c (hexify): Never take strlen of argument.
8487 2014-02-12 Tom Tromey <tromey@redhat.com>
8489 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8490 * remote.c (extended_remote_run, remote_rcmd)
8491 (remote_download_trace_state_variable, remote_save_trace_data)
8492 (remote_set_trace_notes): Update.
8493 * tracepoint.c (encode_source_string, tfile_write_status)
8494 (tfile_write_uploaded_tsv): Update.
8496 2014-02-12 Tom Tromey <tromey@redhat.com>
8498 * tracepoint.c: Include rsp-low.h.
8499 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8500 * remote.c: Include rsp-low.h.
8501 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8502 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8503 (remote_unescape_input): Move to common/rsp-low.c.
8504 * common/rsp-low.h: New file.
8505 * common/rsp-low.c: New file.
8506 * Makefile.in (SFILES): Add common/rsp-low.c.
8507 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8508 (COMMON_OBS): Add rsp-low.o.
8509 (rsp-low.o): New target.
8511 2014-02-12 Tom Tromey <tromey@redhat.com>
8513 * utils.h: Include print-utils.h.
8514 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8515 (int_string, core_addr_to_string, core_addr_to_string_nz)
8516 (hex_string, hex_string_custom): Don't declare.
8517 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8518 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8519 (hex_string_custom, int_string, core_addr_to_string)
8520 (core_addr_to_string_nz, host_address_to_string): Move to
8521 common/print-utils.c.
8522 * common/print-utils.h: New file.
8523 * common/print-utils.c: New file
8524 * Makefile.in (SFILES): Add common/print-utils.c.
8525 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8526 (COMMON_OBS): Add print-utils.o.
8527 (print-utils.o): New target.
8529 2014-02-12 Tom Tromey <tromey@redhat.com>
8531 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8533 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8535 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8537 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8539 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8540 if a PT_IO ptrace request returns sucessfully but indicates that 0
8541 bytes were transferred.
8543 2014-02-12 Pedro Alves <palves@redhat.com>
8544 Kevin Buettner <kevinb@redhat.com>
8546 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8547 TYPE_INSTANCE_FLAG_CODE_SPACE.
8549 2014-02-12 Pedro Alves <palves@redhat.com>
8551 * h8300-tdep.c (pseudo_from_raw_register)
8552 (raw_from_pseudo_register): New functions.
8553 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8556 2014-02-12 Pedro Alves <palves@redhat.com>
8558 * h8300-tdep.c (h8300_register_sim_regno): New function.
8559 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8560 gdbarch_register_sim_regno hook.
8562 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8564 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8566 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8568 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8570 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8572 * obsd-tdep.h (obsd_init_abi): New prototype.
8573 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8574 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8575 (obsd_init_abi): New functions.
8576 * i386obsd-tdep.c: Include "obsd-tdep.h".
8577 (i386obsd_init_abi): Call obsd_init_abi.
8578 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8579 (amd64obsd_init_abi): Call obsd_init_abi.
8580 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8581 obsd-tdep.c to gdb_target_obs.
8583 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8585 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8586 double float arguments to 16-byte in the argument slots.
8588 2014-02-11 Doug Evans <xdje42@gmail.com>
8590 * configure.ac: Don't crash if pkg-config is not found and guile
8591 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8593 * configure: Regenerate.
8595 2014-02-11 Yao Qi <yao@codesourcery.com>
8597 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8598 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8599 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8600 * gnu-nat.c (gnu_xfer_memory): Likewise.
8601 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8602 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8603 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8604 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8606 2014-02-11 Yao Qi <yao@codesourcery.com>
8608 * target.h (enum target_xfer_error): Rename to ...
8609 (enum target_xfer_status): ... it. New. All users updated.
8610 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8612 (TARGET_XFER_STATUS_ERROR_P): New macro.
8613 (target_xfer_error_to_string): Remove declaration.
8614 (target_xfer_status_to_string): Declare.
8615 (target_xfer_partial_ftype): Adjust it.
8616 (struct target_ops) <to_xfer_partial>: Return
8617 target_xfer_status. Add argument xfered_len. Update
8619 * target.c (target_xfer_error_to_string): Rename to ...
8620 (target_xfer_status_to_string): ... it. New. All callers
8622 (target_read_live_memory): Likewise. Call target_xfer_partial
8623 instead of target_read.
8624 (memory_xfer_live_readonly_partial): Return
8625 target_xfer_status. Add argument xfered_len.
8626 (raw_memory_xfer_partial): Likewise.
8627 (memory_xfer_partial_1): Likewise.
8628 (memory_xfer_partial): Likewise.
8629 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8630 properly. Update debug message.
8631 (default_xfer_partial, current_xfer_partial): Likewise.
8632 (target_write_partial): Likewise.
8633 (target_read_partial): Likewise. All callers updated.
8634 (read_whatever_is_readable): Likewise.
8635 (target_write_with_progress): Likewise.
8636 (target_read_alloc_1): Likewise.
8638 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8639 * auxv.c (procfs_xfer_auxv): Likewise.
8640 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8641 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8642 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8643 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8644 * corefile.c (read_memory): Adjust.
8645 * corelow.c (core_xfer_partial): Likewise.
8646 * ctf.c (ctf_xfer_partial): Likewise.
8647 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8649 (darwin_xfer_partial): Likewise.
8650 * exec.c (section_table_xfer_memory_partial): Likewise. All
8652 (exec_xfer_partial): Likewise.
8653 * exec.h (section_table_xfer_memory_partial): Update
8655 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8657 (gnu_xfer_partial): Likewise.
8658 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8659 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8660 (ia64_hpux_xfer_solib_got): Likewise.
8661 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8662 type of 'partial_len' to ULONGEST.
8663 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8664 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8665 (linux_nat_xfer_partial): Likewise.
8666 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8667 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8668 * monitor.c (monitor_xfer_memory): Likewise.
8669 (monitor_xfer_partial): Likewise.
8670 * procfs.c (procfs_xfer_partial): Likewise.
8671 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8672 * record-full.c (record_full_xfer_partial): Likewise.
8673 (record_full_core_xfer_partial): Likewise.
8674 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8675 (gdbsim_xfer_partial): Likewise.
8676 * remote.c (remote_write_bytes_aux): Likewise. All callers
8678 (remote_write_bytes, remote_read_bytes): Likewise. All
8680 (remote_flash_erase): Likewise. All callers updated.
8681 (remote_write_qxfer): Likewise. All callers updated.
8682 (remote_read_qxfer): Likewise. All callers updated.
8683 (remote_xfer_partial): Likewise.
8684 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8685 (rs6000_xfer_shared_libraries): Likewise.
8686 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8687 (sol_thread_xfer_partial): Likewise.
8688 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8689 (sparc_xfer_partial): Likewise.
8690 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8692 (spu_xfer_partial): Likewise.
8693 * spu-multiarch.c (spu_xfer_partial): Likewise.
8694 * tracepoint.c (tfile_xfer_partial): Likewise.
8695 * windows-nat.c (windows_xfer_memory): Likewise.
8696 (windows_xfer_shared_libraries): Likewise.
8697 (windows_xfer_partial): Likewise.
8698 * valprint.c: Replace 'target_xfer_error' with
8699 'target_xfer_status' in comments.
8701 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8703 Checked in by Joel Brobecker <brobecker@adacore.com>.
8704 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8706 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8708 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8709 function parameters.
8711 2014-02-10 Will Newton <will.newton@linaro.org>
8713 * elfread.c (elf_rel_plt_read): Look for a .got section if
8714 looking up .got.plt fails.
8715 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8716 on address passed to elf_gnu_ifunc_record_cache.
8717 (elf_gnu_ifunc_resolve_addr): Likewise.
8718 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8720 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8722 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8723 (X_RETTURN): New macro.
8724 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8726 * sparc64-tdep.c (sparc64_init_abi): Hook
8727 sparc_in_function_epilogue_p.
8729 2014-02-10 Gary Benson <gbenson@redhat.com>
8731 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8732 Rename name_matcher to symbol_matcher.
8734 2014-02-10 Gary Benson <gbenson@redhat.com>
8736 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8737 Use expand_symtabs_file_matcher_ftype and
8738 expand_symtabs_symbol_matcher_ftype.
8740 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8742 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8743 (struct ada_symbol_cache): New.
8744 (ada_free_symbol_cache): Forward declare.
8745 (struct ada_pspace_data): New.
8746 (ada_pspace_data_handle): New static global.
8747 (get_ada_pspace_data, ada_pspace_data_cleanup)
8748 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8749 (cache_space, cache): Delete, now folded inside struct
8751 (ada_get_symbol_cache): New function.
8752 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8754 (_initialize_ada_language): Remove initialization of cache_space.
8755 Move call to observer_attach_inferior_exit up, grouping it
8756 with the other observer registrations inside this function.
8757 Rename command to be more general. Add call to
8758 register_program_space_data_with_cleanup.
8760 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8762 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8763 ada_new_objfile_observer.
8764 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8765 (_initialize_tasks): Update uses of ada_new_objfile_observer
8766 and ada_tasks_normal_stop_observer.
8768 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8770 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8771 returned by the 'Length attribute to integer.
8773 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8775 * ada-lang.c (_initialize_ada_language): Initialize
8776 cache_space obstack.
8778 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8780 * ada-lang.c (HASH_SIZE): New macro.
8781 (struct cache_entry): New type.
8782 (cache_space, cache): New static globals.
8783 (ada_clear_symbol_cache, find_entry): New functions.
8784 (lookup_cached_symbol, cache_symbol): Implement.
8785 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8786 (_initialize_ada_language): Attach ada_new_objfile_observer
8787 and ada_free_objfile_observer.
8789 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8791 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8792 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8793 struct block * parameter.
8794 (ada_lookup_symbol_list_worker): Constify local variable "block".
8795 Remove cast which is no longer necessary.
8797 2014-02-10 Doug Evans <xdje42@gmail.com>
8799 Add Guile as an extension language.
8800 * NEWS: Mention Guile scripting.
8801 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8802 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8803 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8804 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8805 (CLIBS): Add GUILE_LIBS.
8806 (install-guile): New rule.
8807 (guile.o): New rule.
8808 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8809 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8810 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8811 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8812 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8813 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8814 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8815 * configure.ac: New option --with-guile.
8816 * configure: Regenerate.
8817 * config.in: Regenerate.
8818 * auto-load.c: Remove #include "python/python.h". Add #include
8819 "gdb/section-scripts.h".
8820 (source_section_scripts): Handle Guile scripts.
8821 (_initialize_auto_load): Add name of Guile objfile script to
8822 scripts-directory help text.
8823 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8824 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8825 (struct breakpoint): New member scm_bp_object.
8826 * defs.h (enum command_control_type): New value guile_control.
8827 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8829 (show_user): Update comment.
8830 (_initialize_cli_cmds): Update help text for "show user". Update help
8831 text for max-user-call-depth.
8832 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8834 (multi_line_command_p): Add guile_control.
8835 (print_command_lines): Handle guile_control.
8836 (execute_control_command, recurse_read_control_structure): Ditto.
8837 (process_next_line): Recognize "guile" commands.
8838 * disasm.c (gdb_disassemble_info): Make non-static.
8839 * disasm.h: #include "dis-asm.h".
8840 (struct gdbarch): Add forward decl.
8841 (gdb_disassemble_info): Declare.
8842 * extension.c: #include "guile/guile.h".
8843 (extension_languages): Add guile.
8844 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8845 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8846 * gdbtypes.c (get_unsigned_type_max): New function.
8847 (get_signed_type_minmax): New function.
8848 * gdbtypes.h (get_unsigned_type_max): Declare.
8849 (get_signed_type_minmax): Declare.
8850 * guile/README: New file.
8851 * guile/guile-internal.h: New file.
8852 * guile/guile.c: New file.
8853 * guile/guile.h: New file.
8854 * guile/scm-arch.c: New file.
8855 * guile/scm-auto-load.c: New file.
8856 * guile/scm-block.c: New file.
8857 * guile/scm-breakpoint.c: New file.
8858 * guile/scm-disasm.c: New file.
8859 * guile/scm-exception.c: New file.
8860 * guile/scm-frame.c: New file.
8861 * guile/scm-gsmob.c: New file.
8862 * guile/scm-iterator.c: New file.
8863 * guile/scm-lazy-string.c: New file.
8864 * guile/scm-math.c: New file.
8865 * guile/scm-objfile.c: New file.
8866 * guile/scm-ports.c: New file.
8867 * guile/scm-pretty-print.c: New file.
8868 * guile/scm-safe-call.c: New file.
8869 * guile/scm-string.c: New file.
8870 * guile/scm-symbol.c: New file.
8871 * guile/scm-symtab.c: New file.
8872 * guile/scm-type.c: New file.
8873 * guile/scm-utils.c: New file.
8874 * guile/scm-value.c: New file.
8875 * guile/lib/gdb.scm: New file.
8876 * guile/lib/gdb/boot.scm: New file.
8877 * guile/lib/gdb/experimental.scm: New file.
8878 * guile/lib/gdb/init.scm: New file.
8879 * guile/lib/gdb/iterator.scm: New file.
8880 * guile/lib/gdb/printing.scm: New file.
8881 * guile/lib/gdb/types.scm: New file.
8882 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8883 (VPATH): Add $(GUILE_SRCDIR).
8884 (GUILE_DIR): New variable.
8885 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8886 (all): Add stamp-guile dependency.
8887 (stamp-guile): New rule.
8888 (clean-guile, install-guile, uninstall-guile): New rules.
8889 (install-only): Add install-guile dependency.
8890 (uninstall): Add uninstall-guile dependency.
8891 (clean): Add clean-guile dependency.
8893 2014-02-09 Doug Evans <xdje42@gmail.com>
8895 Revert this patch (which I approved, mea culpa).
8897 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8899 * Makefile.in (all-lib): Remove.
8900 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8902 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8904 Fix Python stack corruption.
8905 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8908 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8910 * Makefile.in (all-lib): Remove.
8911 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8913 2014-02-07 Doug Evans <dje@google.com>
8915 * extension-priv.h (extension_language_script_ops): Add comment.
8916 (extension_language_ops): Add comment.
8917 (active_ext_lang_state): Fix typo in comment.
8919 2014-02-07 Pedro Alves <palves@redhat.com>
8921 PR breakpoints/16292
8922 * infrun.c (handle_signal_stop) <signal arrives while stepping
8923 over a breakpoint>: Switch back to the stepping thread.
8925 2014-02-07 Yao Qi <yao@codesourcery.com>
8927 * target.c (target_xfer_partial): Return zero if LEN is zero.
8929 2014-02-07 Yao Qi <yao@codesourcery.com>
8931 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8932 (ld_so_xfer_auxv): Likewise.
8933 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8934 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8935 * corelow.c (core_xfer_partial): Likewise.
8936 * ctf.c (ctf_xfer_partial): Likewise.
8937 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8938 (darwin_xfer_partial): Likewise.
8939 * exec.c (exec_xfer_partial): Likewise.
8940 * gnu-nat.c (gnu_xfer_partial): Likewise.
8941 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8942 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8943 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8944 * linux-nat.c (linux_xfer_siginfo): Likewise.
8945 (linux_proc_xfer_spu): Likewise.
8946 * procfs.c (procfs_xfer_partial): Likewise.
8947 * record-full.c (record_full_xfer_partial): Likewise.
8948 (record_full_core_xfer_partial): Likewise.
8949 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8950 * remote.c (remote_write_qxfer): Likewise.
8951 (remote_write_qxfer, remote_read_qxfer): Likewise.
8952 (remote_xfer_partial): Likewise.
8953 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8954 (rs6000_xfer_shared_libraries): Likewise.
8955 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8956 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8957 (spu_xfer_partial): Likewise.
8958 * target.c (memory_xfer_partial_1): Likewise.
8959 * tracepoint.c (tfile_xfer_partial): Likewise.
8960 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8961 (windows_xfer_partial): Likewise.
8963 2014-02-07 Yao Qi <yao@codesourcery.com>
8965 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8967 (core_xfer_shared_libraries_aix): Likewise.
8968 * gdbarch.c, gdbarch.h: Regenerated.
8969 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8970 ULONGEST. Change 'len_avail' type to ULONGEST.
8971 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8972 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8974 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8976 2014-02-07 Yao Qi <yao@codesourcery.com>
8978 * corefile.c (memory_error): Get 'exception' from ERR and pass
8979 'exception' to throw_error.
8981 2014-02-06 Doug Evans <xdje42@gmail.com>
8983 * configure.ac (libpython checking): Remove all but python.o from
8984 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8985 * configure: Regenerate.
8987 * Makefile.in (SFILES): Add extension.c.
8988 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8989 (COMMON_OBS): Add extension.o.
8990 * extension.h: New file.
8991 * extension-priv.h: New file.
8992 * extension.c: New file.
8994 * python/python-internal.h: #include "extension.h".
8995 (gdbpy_auto_load_enabled): Declare.
8996 (gdbpy_apply_val_pretty_printer): Declare.
8997 (gdbpy_apply_frame_filter): Declare.
8998 (gdbpy_preserve_values): Declare.
8999 (gdbpy_breakpoint_cond_says_stop): Declare.
9000 (gdbpy_breakpoint_has_cond): Declare.
9001 (void source_python_script_for_objfile): Delete.
9002 * python/python.c: #include "extension-priv.h".
9003 Delete inclusion of "observer.h".
9004 (extension_language_python): Moved here and renamed from
9005 script_language_python in py-auto-load.c.
9006 Redefined to be of type extension_language_defn.
9007 (python_extension_script_ops): New global.
9008 (python_extension_ops): New global.
9009 (struct python_env): New member previous_active.
9010 (restore_python_env): Call restore_active_ext_lang.
9011 (ensure_python_env): Call set_active_ext_lang.
9012 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9014 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9016 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9018 (gdbpy_eval_from_control_command): Renamed from
9019 eval_python_from_control_command, made static. New arg extlang.
9020 (gdbpy_source_script) Renamed from source_python_script, made static.
9022 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9023 result to int. New arg extlang.
9024 (gdbpy_source_objfile_script): Renamed from
9025 source_python_script_for_objfile, made static. New arg extlang.
9026 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9027 static. New args extlang, extlang_printers. Change result type to
9029 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9030 static. New arg extlang. Rename arg printers to extlang_printers
9031 and change type to ext_lang_type_printers *.
9032 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9033 static. Replace argument arg with extlang, extlang_printers.
9034 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9035 (!HAVE_PYTHON, source_python_script): Delete.
9036 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9037 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9038 (!HAVE_PYTHON, start_type_printers): Delete.
9039 (!HAVE_PYTHON, apply_type_printers): Delete.
9040 (!HAVE_PYTHON, free_type_printers): Delete.
9041 (_initialize_python): Delete call to observer_attach_before_prompt.
9042 (finalize_python): Set/restore active extension language.
9043 (gdbpy_finish_initialization) Renamed from
9044 finish_python_initialization, made static. New arg extlang.
9045 (gdbpy_initialized): New function.
9046 * python/python.h: #include "extension.h". Delete #include
9047 "value.h", "mi/mi-cmds.h".
9048 (extension_language_python): Declare.
9049 (GDBPY_AUTO_FILE_NAME): Delete.
9050 (enum py_bt_status): Moved to extension.h and renamed to
9052 (enum frame_filter_flags): Moved to extension.h.
9053 (enum py_frame_args): Moved to extension.h and renamed to
9054 ext_lang_frame_args.
9055 (finish_python_initialization): Delete.
9056 (eval_python_from_control_command): Delete.
9057 (source_python_script): Delete.
9058 (apply_val_pretty_printer): Delete.
9059 (apply_frame_filter): Delete.
9060 (preserve_python_values): Delete.
9061 (gdbpy_script_language_defn): Delete.
9062 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9063 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9065 * auto-load.c: #include "extension.h".
9066 (GDB_AUTO_FILE_NAME): Delete.
9067 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9068 (script_language_gdb): Delete, moved to extension.c and renamed to
9069 extension_language_gdb.
9070 (source_gdb_script_for_objfile): Delete.
9071 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9072 (loaded_script): Change type of language member to
9073 struct extension_language_defn *.
9074 (init_loaded_scripts_info): Initialize
9075 unsupported_script_warning_printed.
9076 (maybe_add_script): Make static. Change type of language arg to
9077 struct extension_language_defn *.
9078 (clear_section_scripts): Reset unsupported_script_warning_printed.
9079 (auto_load_objfile_script_1): Rewrite to use extension language API.
9080 (auto_load_objfile_script): Make public. Remove support-compiled-in
9081 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9082 (source_section_scripts): Rewrite to use extension language API.
9083 (load_auto_scripts_for_objfile): Rewrite to use
9084 auto_load_scripts_for_objfile.
9085 (collect_matching_scripts_data): Change type of language member to
9086 struct extension_language_defn *.
9087 (auto_load_info_scripts): Change type of language arg to
9088 struct extension_language_defn *.
9089 (unsupported_script_warning_print): New function.
9090 (script_not_found_warning_print): Make static.
9091 (_initialize_auto_load): Rewrite construction of scripts-directory
9093 * auto-load.h (struct objfile): Add forward decl.
9094 (struct script_language): Delete.
9095 (struct auto_load_pspace_info): Add forward decl.
9096 (struct extension_language_defn): Add forward decl.
9097 (maybe_add_script): Delete.
9098 (auto_load_objfile_script): Declare.
9099 (script_not_found_warning_print): Delete.
9100 (auto_load_info_scripts): Update prototype.
9101 (auto_load_gdb_scripts_enabled): Declare.
9102 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9103 auto_load_python_scripts_enabled and made public.
9104 (script_language_python): Delete, moved to python.c.
9105 (gdbpy_script_language_defn): Delete.
9106 (info_auto_load_python_scripts): Update to use
9107 extension_language_python.
9109 * breakpoint.c (condition_command): Replace call to
9110 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9111 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9112 with call to breakpoint_ext_lang_cond_says_stop.
9113 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9114 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9115 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9116 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9118 (local_setattro): Print name of extension language with existing
9121 * valprint.c (val_print, value_print): Update to call
9122 apply_ext_lang_val_pretty_printer.
9123 * cp-valprint.c (cp_print_value): Update call to
9124 apply_ext_lang_val_pretty_printer.
9125 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9126 (gdbpy_apply_val_pretty_printer): Renamed from
9127 apply_val_pretty_printer. New arg extlang.
9128 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9130 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9131 extension language API.
9132 * cli/cli-script.c (execute_control_command): Update to call
9133 eval_ext_lang_from_control_command.
9135 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9136 enum ext_lang_bt_status values. Update call to
9137 apply_ext_lang_frame_filter.
9138 (mi_cmd_stack_list_locals): Ditto.
9139 (mi_cmd_stack_list_args): Ditto.
9140 (mi_cmd_stack_list_variables): Ditto.
9141 * mi/mi-main.c: Delete #include "python/python-internal.h".
9142 Add #include "extension.h".
9143 (mi_cmd_list_features): Replace reference to python internal variable
9144 gdb_python_initialized with call to ext_lang_initialized_p.
9146 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9147 Update to use enum ext_lang_frame_args. Update to call
9148 apply_ext_lang_frame_filter.
9149 * python/py-framefilter.c (extract_sym): Update to use enum
9151 (extract_value, py_print_type, py_print_value): Ditto.
9152 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9153 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9154 (py_print_frame): Ditto.
9155 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9156 New arg extlang. Update to use enum ext_lang_bt_status.
9158 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9159 finish_python_initialization. Replace with call to
9160 finish_ext_lang_initialization.
9162 * typeprint.c (do_free_global_table): Update to call
9163 free_ext_lang_type_printers.
9164 (create_global_typedef_table): Update to call
9165 start_ext_lang_type_printers.
9166 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9167 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9168 (type_print_options): Change type of global_printers from "void *"
9169 to "struct ext_lang_type_printers *".
9171 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9172 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9173 (gdbpy_preserve_values): Renamed from preserve_python_values.
9175 (!HAVE_PYTHON, preserve_python_values): Delete.
9177 * utils.c (quit_flag): Delete, moved to extension.c.
9178 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9181 * eval.c: Delete #include "python/python.h".
9182 * main.c: Delete #include "python/python.h".
9184 * defs.h: Update comment.
9186 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9190 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9192 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9195 2014-02-05 Yao Qi <yao@codesourcery.com>
9197 * remote.c (remote_pass_signals): Remove local 'buf' and use
9199 (remote_program_signals): Likewise.
9201 2014-02-05 Yao Qi <yao@codesourcery.com>
9203 * ctf.c: Include "inferior.h" and "gdbthread.h".
9204 (CTF_PID): A new macro.
9205 (ctf_open): Call inferior_appeared and add_thread_silent.
9206 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9207 (ctf_thread_alive): New function.
9208 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9210 2014-02-05 Yao Qi <yao@codesourcery.com>
9214 2013-05-24 Yao Qi <yao@codesourcery.com>
9216 * tracepoint.c (TFILE_PID): Remove.
9217 (tfile_open): Don't add thread and inferior.
9218 (tfile_close): Don't set 'inferior_ptid'. Don't call
9219 exit_inferior_silent.
9220 (tfile_thread_alive): Remove.
9221 (init_tfile_ops): Don't set field 'to_thread_alive' of
9224 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9226 * remote.c (remote_start_remote): Call remote_check_symbols even
9227 if only symbol-file (not file) has been given.
9229 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9231 * gdbarch.sh (skip_entrypoint): New callback.
9232 * gdbarch.c, gdbarch.h: Regenerate.
9233 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9234 * infrun.c (fill_in_stop_func): Likewise.
9235 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9236 (ppc_elfv2_elf_make_msymbol_special): New function.
9237 (ppc_elfv2_skip_entrypoint): Likewise.
9238 (ppc_linux_init_abi): Install them for ELFv2.
9240 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9242 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9243 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9244 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9245 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9246 structures returned in GPRs.
9248 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9250 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9251 offset to the stack parameter list for the ELFv2 ABI.
9253 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9255 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9256 set_gdbarch_convert_from_func_ptr_addr and
9257 set_gdbarch_elf_make_msymbol_special for ELFv1.
9258 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9259 function descriptors on ELFv1.
9260 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9261 set up r12 at function entry.
9263 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9265 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9266 (struct gdbarch_tdep): New member elf_abi.
9268 * rs6000-tdep.c: Include "elf/ppc64.h".
9269 (rs6000_gdbarch_init): Detect ELF ABI version.
9271 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9273 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9274 within a register pair holding a DFP 128-bit value on little-endian.
9275 (ppc64_sysv_abi_return_value_base): Likewise.
9276 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9277 (dfp_pseudo_register_write): Likewise.
9279 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9281 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9282 offset on little-endian when passing _Decimal32.
9283 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9285 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9287 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9288 of the overlapped FP register within the VSX register on little-
9290 (efpr_pseudo_register_write): Likewise.
9292 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9294 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9295 offset on little-endian when passing small structures.
9297 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9299 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9300 (struct ppc64_sysv_argpos): New data structure.
9301 (ppc64_sysv_abi_push_float): Remove.
9302 (ppc64_sysv_abi_push_val): New function.
9303 (ppc64_sysv_abi_push_integer): Likewise.
9304 (ppc64_sysv_abi_push_freg): Likewise.
9305 (ppc64_sysv_abi_push_vreg): Likewise.
9306 (ppc64_sysv_abi_push_param): Likewise.
9307 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9308 (ppc64_sysv_abi_return_value_base): New function.
9309 (ppc64_sysv_abi_return_value): Refactor to use it.
9311 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9313 * NEWS: Document new target powerpc64le-*-linux*.
9315 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9317 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9318 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9320 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9321 register set used in ELF core dumps. Add floating-point register set.
9323 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9325 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9326 dwarf2_to_gdb[] table using symbolic constants. Adjust
9327 penultimate entry from number representing the PC register
9328 to symbolic constant representing the MDR register. Add
9329 constant for the PC register to the end of the table.
9331 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9333 * bsd-kvm.c: Include <sys/param.h>
9335 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9337 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9339 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9341 * ada-lang.h (clear_ada_sym_cache): Delete.
9343 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9345 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9347 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9349 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9350 the sigreturn register save area only if the syscall is
9353 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9355 * valops.c (value_slice): Minor reformatting.
9357 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9359 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9361 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9363 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9365 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9366 (ada_ignore_descriptive_types_p): New static global.
9367 (find_parallel_type_by_descriptive_type): Return immediately
9368 if ada_ignore_descriptive_types_p is set.
9369 (_initialize_ada_language): Register new commands "maintenance
9370 set ada", "maintenance show ada", "maintenance set ada
9371 ignore-descriptive-types" and "maintenance show ada
9372 ignore-descriptive-types".
9373 * NEWS: Add entry for new "maint ada set/show
9374 ignore-descriptive-types" commands.
9376 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9378 * record-btrace.c (record_btrace_close): Call btrace_teardown
9381 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9383 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9386 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9388 * ada-typeprint (type_is_full_subrange_of_target_type):
9390 (print_range): Add parameter bounds_prefered_p. If not set,
9391 try printing range types using the name of their base type.
9392 (print_range_type): Add parameter bounds_prefered_p.
9393 Use it in call to print_range.
9394 (print_array_type, ada_print_type): Update calls to print_range
9395 and print_range_type.
9397 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9399 * ada-typeprint.c (print_array_type, print_choices, print_range)
9400 (print_range_bound, print_dynamic_range_bound, print_range_type):
9403 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9405 * ada-typeprint.c (print_range): Add missing empty line
9406 after local declaration.
9408 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9410 * ada-valprint.c (print_optional_low_bound): Get index_type's
9411 target type for as long as it is a TYPE_CODE_RANGE.
9413 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9415 * procfs.c (procfs_make_note_section): Remove assertion and
9418 2014-01-24 Yao Qi <yao@codesourcery.com>
9420 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9421 * corelow.c (get_core_siginfo): Likewise.
9423 2014-01-24 Yao Qi <yao@codesourcery.com>
9425 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9426 ULONGEST. Don't check 'len' is negative.
9427 (remote_write_bytes): Change type of 'len' to ULONGEST.
9429 2014-01-23 Tom Tromey <tromey@redhat.com>
9432 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9433 Handle exception from frame.block.
9434 (FrameVars.fetch_frame_locals): Likewise.
9436 2014-01-23 Tom Tromey <tromey@redhat.com>
9439 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9440 on a NULL pointer. Move "goto error" to correct place.
9442 2014-01-23 Tom Tromey <tromey@redhat.com>
9445 * python/py-framefilter.c (apply_frame_filter): Call
9446 ensure_python_env after computing gdbarch.
9448 2014-01-23 Yao Qi <yao@codesourcery.com>
9450 * target.c (raw_memory_xfer_partial): Change argument type
9451 from void * to gdb_byte *.
9452 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9454 2014-01-22 Doug Evans <dje@google.com>
9456 New gdbserver option --debug-format=timestamp.
9459 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9461 * syscalls/s390x-linux.xml: New file.
9462 * syscalls/s390-linux.xml: New file.
9463 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9464 (XML_SYSCALL_FILENAME_S390X): Likewise.
9465 (op_svc): New enum value for SVC opcode.
9466 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9467 (s390_linux_get_syscall_number): New function.
9468 (s390_gdbarch_init): Register '*get_syscall_number' and the
9469 syscall xml file name.
9470 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9471 "s390-linux.xml" and "s390x-linux.xml".
9472 * NEWS: Announce new feature.
9474 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9476 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9478 2014-01-22 Pedro Alves <palves@redhat.com>
9480 * xtensa-config.c: Include defs.h.
9482 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9484 * common/common-utils.h: Add "ARI:" comment beside __func__
9487 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9489 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9490 documentation a bit.
9492 2014-01-21 Roland McGrath <mcgrathr@google.com>
9494 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9495 * configure: Regenerate.
9496 * aclocal.m4: Regenerate.
9497 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9498 New substituted variables.
9499 (install-strip): New target.
9500 (INSTALL_SCRIPT): New substituted variable.
9501 (FLAGS_TO_PASS): Add it.
9502 (install-only): Use $(INSTALL_SCRIPT) rather than
9503 $(INSTALL_PROGRAM) for gcore.
9505 2014-01-20 Tom Tromey <tromey@redhat.com>
9507 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9510 2014-01-20 Tom Tromey <tromey@redhat.com>
9512 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9513 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9514 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9515 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9516 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9517 (struct cmd_list_element) <flags>: Remove.
9518 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9519 doc_allocated>: New fields.
9520 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9522 * maint.c (maintenance_do_deprecate): Update.
9523 * top.c (execute_command): Update.
9525 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9527 * xtensa-linux-nat.c: Include asm/ptrace.h.
9529 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9531 * Makefile.in (SFILES): Add d-support.c.
9532 (COMMON_OBS): Add d-support.o.
9533 * d-lang.h (d_parse_symbol): Add comment, now defined in
9535 * d-lang.c (parse_call_convention)
9536 (parse_attributes, parse_function_types)
9537 (parse_function_args, parse_type, parse_identifier)
9538 (call_convention_p, d_parse_symbol): Move functions to ...
9539 * d-support.c: ... New file.
9541 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9543 * d-lang.h (d_parse_symbol): Add declaration.
9544 * d-lang.c (extract_identifiers)
9545 (extract_type_info): Remove functions.
9546 (parse_call_convention, parse_attributes)
9547 (parse_function_types, parse_function_args)
9548 (parse_type, parse_identifier, call_convention_p)
9549 (d_parse_symbol): New functions.
9550 (d_demangle): Use d_parse_symbol to demangle D symbols.
9552 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9554 * d-lang.h (struct builtin_d_type): New data type.
9555 (builtin_d_type): Add declaration.
9556 * d-lang.c (d_language_arch_info, build_d_types)
9557 (builtin_d_type): New functions.
9558 (enum d_primitive_types): New data type.
9559 (d_language_defn): Change c_language_arch_info to
9560 d_language_arch_info.
9561 (d_type_data): New static variable.
9562 (_initialize_d_language): Initialize d_type_data.
9564 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9566 * d-lang.h (d_main_name): Add declaration.
9567 * d-lang.c (d_main_name): New function.
9568 * symtab.c (find_main_name): Add call to d_main_name.
9570 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9572 * d-lang.c (d_language_defn): Change macro_expansion_c to
9575 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9577 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9579 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9581 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9582 gdb_exception" declaration.
9583 * remote.c (getpkt_or_notif_sane): Likewise.
9585 2014-01-17 Doug Evans <dje@google.com>
9587 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9588 function, contents of dirnames_to_char_ptr_vec_append moved here.
9589 (delim_string_to_char_ptr_vec): New function.
9590 (dirnames_to_char_ptr_vec_append): Rewrite.
9591 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9593 2014-01-17 Doug Evans <dje@google.com>
9595 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9597 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9598 #include "common-utils.h".
9599 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9600 * common/vec.h (VEC_ASSERT_PASS): Update.
9601 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9602 (MACH_CHECK_ERROR): Update.
9604 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9606 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9608 * gdbarch.h: Regenerate.
9610 2014-01-16 Tom Tromey <tromey@redhat.com>
9612 * value.c (struct value) <regnum>: Move earlier.
9614 2014-01-16 Tom Tromey <tromey@redhat.com>
9616 * remote.c (extended_remote_create_inferior): Rename from
9617 extended_remote_create_inferior_1. Add "ops" argument. Remove
9620 2014-01-16 Pedro Alves <palves@redhat.com>
9622 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9623 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9626 2014-01-16 Doug Evans <dje@google.com>
9628 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9632 * btrace.h (btrace_thread_flag): New.
9633 (struct btrace_thread_info) <flags>: New.
9634 * record-btrace.c (record_btrace_resume_thread)
9635 (record_btrace_find_thread_to_move, btrace_step_no_history)
9636 (btrace_step_stopped, record_btrace_start_replaying)
9637 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9638 (record_btrace_find_resume_thread): New.
9639 (record_btrace_resume, record_btrace_wait): Extend.
9640 (record_btrace_can_execute_reverse): New.
9641 (record_btrace_open): Fail in non-stop mode.
9642 (record_btrace_set_replay): Split into this, ...
9643 (record_btrace_stop_replaying): ... this, ...
9644 (record_btrace_clear_histories): ... and this.
9645 (init_record_btrace_ops): Init to_can_execute_reverse.
9646 * NEWS: Announce it.
9648 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9650 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9651 (forward_target_decr_pc_after_break)
9652 (target_decr_pc_after_break): New.
9653 * target.c (forward_target_decr_pc_after_break)
9654 (target_decr_pc_after_break): New.
9655 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9656 instead of gdbarch_decr_pc_after_break.
9657 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9658 instead of gdbarch_decr_pc_after_break.
9659 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9660 instead of gdbarch_decr_pc_after_break.
9661 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9662 instead of gdbarch_decr_pc_after_break.
9663 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9664 instead of gdbarch_decr_pc_after_break.
9665 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9666 instead of gdbarch_decr_pc_after_break.
9668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9670 * btrace.c: Include regcache.h.
9671 (btrace_add_pc): New.
9672 (btrace_enable): Call btrace_add_pc.
9673 (btrace_is_empty): New.
9674 * btrace.h (btrace_is_empty): New.
9675 * record-btrace.c (require_btrace, record_btrace_info): Call
9678 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9680 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9681 Support delta reads.
9682 (linux_disable_btrace): Change return type.
9683 * common/linux-btrace.h (linux_read_btrace): Change parameters
9684 and return type to allow error reporting. Update users.
9685 (linux_disable_btrace): Change return type. Update users.
9686 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9688 (btrace_error): New.
9689 (btrace_block) <begin>: Comment on BEGIN == 0.
9690 * btrace.c (btrace_compute_ftrace): Start from the end of
9692 (btrace_stitch_trace, btrace_clear_history): New.
9693 (btrace_fetch): Read delta trace, return if replaying.
9694 (btrace_clear): Move clear history code to btrace_clear_history.
9695 (parse_xml_btrace): Throw an error if parsing failed.
9696 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9697 and return type to allow error reporting.
9698 (target_read_btrace): Change parameters and return type to allow
9700 * target.c (target_read_btrace): Update.
9701 * remote.c (remote_read_btrace): Support delta reads. Pass
9703 * NEWS: Announce it.
9705 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9707 * record.h (record_btrace_frame_unwind)
9708 (record_btrace_tailcall_frame_unwind): New declarations.
9709 * dwarf2-frame: Include record.h
9710 (dwarf2_frame_cfa): Throw an error for btrace frames.
9711 * record-btrace.c: Include hashtab.h.
9712 (btrace_get_bfun_name): New.
9713 (btrace_call_history): Call btrace_get_bfun_name.
9714 (struct btrace_frame_cache): New.
9716 (bfcache_hash, bfcache_eq, bfcache_new): New.
9717 (btrace_get_frame_function): New.
9718 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9719 (record_btrace_frame_this_id): Compute own id.
9720 (record_btrace_frame_prev_register): Provide PC, throw_error
9721 for all other registers.
9722 (record_btrace_frame_sniffer): Detect btrace frames.
9723 (record_btrace_tailcall_frame_sniffer): New.
9724 (record_btrace_frame_dealloc_cache): New.
9725 (record_btrace_frame_unwind): Add new functions.
9726 (record_btrace_tailcall_frame_unwind): New.
9727 (_initialize_record_btrace): Allocate cache.
9728 * btrace.c (btrace_clear): Call reinit_frame_cache.
9729 * NEWS: Announce it.
9731 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9733 * record-btrace.c (record_btrace_set_replay)
9734 (record_btrace_goto_begin, record_btrace_goto_end)
9735 (record_btrace_goto): New.
9736 (init_record_btrace_ops): Initialize them.
9737 * NEWS: Announce it.
9739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9741 * record-btrace.c (record_btrace_find_new_threads)
9742 (record_btrace_thread_alive): New.
9743 (init_record_btrace_ops): Initialize to_find_new_threads and
9746 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9748 * record-btrace.c (record_btrace_resume): New.
9749 (record_btrace_wait): New.
9750 (init_record_btrace_ops): Initialize to_wait and to_resume.
9752 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9754 * record-btrace.c (record_btrace_xfer_partial)
9755 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9756 (record_btrace_allow_memory_access): New.
9757 (init_record_btrace_ops): Initialize new methods.
9758 * target.c (raw_memory_xfer_partial): Bail out if target reports
9759 that this memory is not available.
9761 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9763 * target.h (target_ops) <to_insert_breakpoint>
9764 <to_remove_breakpoint>: Add target_ops parameter.
9765 (forward_target_insert_breakpoint): New.
9766 (forward_target_remove_breakpoint): New.
9767 (memory_remove_breakpoint, memory_insert_breakpoint):
9768 Add target_ops parameter.
9769 * target.c (target_insert_breakpoint): Split into this and ...
9770 (forward_target_insert_breakpoint): ... this.
9771 (target_remove_breakpoint): Split into this and ...
9772 (forward_target_remove_breakpoint): ... this.
9773 (debug_to_insert_breakpoint): Add target_ops parameter.
9774 Call forward_target_insert_breakpoint.
9775 (debug_to_remove_breakpoint): Add target_ops parameter.
9776 Call forward_target_remove_breakpoint.
9777 (update_current_target): Do not inherit or default to_insert_breakpoint
9778 and to_remove_breakpoint.
9779 * corelow.c (ignore): Add target_ops parameter.
9780 * exec.c (ignore): Add target_ops parameter.
9781 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9782 Add target_ops parameter.
9783 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9784 Add target_ops parameter.
9785 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9786 Add target_ops parameter.
9787 * record-full.c (record_full_beneath_to_insert_breakpoint)
9788 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9789 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9790 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9791 (record_full_core_remove_breakpoint): Add target_ops parameter.
9793 (record_full_beneath_to_insert_breakpoint_ops)
9794 (record_full_beneath_to_remove_breakpoint_ops)
9795 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9796 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9797 tmp_to_remove_breakpoint_ops,
9798 record_full_beneath_to_insert_breakpoint_ops, and
9799 record_full_beneath_to_remove_breakpoint_ops.
9800 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9801 (m32r_remove_breakpoint): Add target_ops parameter.
9802 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9803 Add target_ops parameter.
9804 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9805 Add target_ops parameter.
9807 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9808 Markus Metzger <markus.t.metzger@intel.com>
9810 * record-btrace.c: Include frame-unwind.h.
9811 (record_btrace_frame_unwind_stop_reason)
9812 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9813 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9815 (init_record_btrace_ops): Install it.
9817 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9819 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9822 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9824 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9827 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9829 * frame-unwind.c: Include target.h.
9830 (frame_unwind_try_unwinder): New function with code from ...
9831 (frame_unwind_find_by_frame): ... here. New variable
9832 unwinder_from_target, call also target_get_unwinder)
9833 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9834 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9835 * target.h (struct target_ops): New fields to_get_unwinder and
9836 to_get_tailcall_unwinder.
9837 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9839 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9841 * record-btrace.c (record_btrace_fetch_registers)
9842 (record_btrace_store_registers)
9843 (record_btrace_to_prepare_to_store): New.
9844 (init_record_btrace_ops): Add the above.
9846 2014-01-16 Tom Tromey <tromey@redhat.com>
9848 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9849 * target.h (struct target_ops) <to_prepare_to_store>: Add
9851 (target_prepare_to_store): Add argument.
9852 * target.c (debug_to_prepare_to_store): Add argument.
9853 (update_current_target): Update.
9854 * remote.c (remote_prepare_to_store): Add 'self' argument.
9855 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9856 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9857 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9858 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9860 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9861 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9862 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9863 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9864 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9866 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9868 * btrace.h (replay) <replay>: New.
9869 (btrace_is_replaying): New.
9870 * btrace.c (btrace_clear): Free replay iterator.
9871 (btrace_is_replaying): New.
9872 * record-btrace.c (record_btrace_is_replaying): New.
9873 (record_btrace_info): Print insn number if replaying.
9874 (record_btrace_insn_history): Start at replay position.
9875 (record_btrace_call_history): Start at replay position.
9876 (init_record_btrace_ops): Init to_record_is_replaying.
9878 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9880 * record-btrace.c (record_btrace_insn_history_range): Include
9882 (record_btrace_insn_history_from): Adjust range.
9883 (record_btrace_call_history_range): Include
9885 (record_btrace_call_history_from): Adjust range.
9886 * NEWS: Announce changes.
9888 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9890 * record.h (enum record_print_flag)
9891 <record_print_indent_calls>: New.
9892 * record.c (get_call_history_modifiers): Recognize /c modifier.
9893 (_initialize_record): Document /c modifier.
9894 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9895 Reorder fields. Optionally indent the function name. Update
9897 * NEWS: Announce changes.
9899 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9901 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9903 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9905 * btrace.c (ftrace_new_function): Start counting at one.
9906 * record-btrace.c (record_btrace_info): Adjust number of calls
9908 * NEWS: Announce it.
9910 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9912 * record-btrace.c (btrace_call_history_insn_range): Print
9913 insn range as [begin, end].
9915 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9917 * btrace.h (struct btrace_func_link): New.
9918 (enum btrace_function_flag): New.
9919 (struct btrace_inst): Rename to ...
9920 (struct btrace_insn): ...this. Update all users.
9921 (struct btrace_func) <ibegin, iend>: Remove.
9922 (struct btrace_func_link): New.
9923 (struct btrace_func): Rename to ...
9924 (struct btrace_function): ...this. Update all users.
9925 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9926 (number, level, flags>: New.
9927 (struct btrace_insn_iterator): Rename to ...
9928 (struct btrace_insn_history): ...this.
9930 (struct btrace_insn_iterator, btrace_call_iterator): New.
9931 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9932 (struct btrace_target_info) <begin, end, level>
9933 <insn_history, call_history>: New.
9934 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9935 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9936 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9937 (btrace_call_number, btrace_call_begin, btrace_call_end)
9938 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9939 (btrace_find_function_by_number, btrace_set_insn_history)
9940 (btrace_set_call_history): New.
9941 * btrace.c (btrace_init_insn_iterator)
9942 (btrace_init_func_iterator, compute_itrace): Remove.
9943 (ftrace_print_function_name, ftrace_print_filename)
9944 (ftrace_skip_file): Change
9946 (ftrace_init_func): Remove.
9947 (ftrace_debug): Use new btrace_function fields.
9948 (ftrace_function_switched): Also consider gaining and
9949 losing symbol information).
9950 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9951 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9952 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9954 (ftrace_new_function): Move. Remove debug print.
9955 (ftrace_update_lines, ftrace_update_insns): New.
9956 (ftrace_update_function): Check for call, ret, and jump.
9957 (compute_ftrace): Renamed to ...
9958 (btrace_compute_ftrace): ...this. Rewritten to compute call
9960 (btrace_fetch, btrace_clear): Updated.
9961 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9962 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9963 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9964 (btrace_call_number, btrace_call_begin, btrace_call_end)
9965 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9966 (btrace_find_function_by_number, btrace_set_insn_history)
9967 (btrace_set_call_history): New.
9968 * record-btrace.c (require_btrace): Use new btrace thread
9970 (record_btrace_info, btrace_insn_history)
9971 (record_btrace_insn_history, record_btrace_insn_history_range):
9972 Use new btrace thread info fields and new iterator.
9973 (btrace_func_history_src_line): Rename to ...
9974 (btrace_call_history_src_line): ...this. Use new btrace
9976 (btrace_func_history): Rename to ...
9977 (btrace_call_history): ...this. Use new btrace thread info
9978 fields and new iterator.
9979 (record_btrace_call_history, record_btrace_call_history_range):
9980 Use new btrace thread info fields and new iterator.
9982 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9984 * frame.h (frame_id_build_unavailable_stack_special): New.
9985 * frame.c (frame_id_build_unavailable_stack_special): New.
9987 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9989 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9990 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9991 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9993 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9994 (i386_insn_is_jump, i386_jmp_p): New.
9995 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9996 insn_is_jump to gdbarch.
9997 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9998 * gdbarch.h: Regenerated.
9999 * gdbarch.c: Regenerated.
10000 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10001 (default_insn_is_jump): New.
10002 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10003 (default_insn_is_jump): New.
10005 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10007 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10009 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10010 (btrace_read_type) <btrace_read_new>: Change to ...
10011 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10013 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10015 * common/linux-btrace.c (linux_read_btrace): Free trace from
10016 previous iteration.
10018 2014-01-15 Doug Evans <dje@google.com>
10020 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10023 2014-01-15 Tom Tromey <tromey@redhat.com>
10025 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10026 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10027 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10028 (set_objfile_main_name): New function.
10029 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10030 language_of_main>: New fields.
10031 (set_objfile_main_name): Declare.
10032 * symtab.c (find_main_name): Loop over objfiles to find the main
10034 (set_main_name): Now static.
10035 (get_main_info): Add comment.
10036 * symtab.h (set_main_name): Don't declare.
10038 2014-01-15 Tom Tromey <tromey@redhat.com>
10040 * symtab.c (main_progspace_key): New global.
10041 (struct main_info): New.
10042 (name_of_main, language_of_main): Remove.
10043 (get_main_info, main_info_cleanup): New function.
10044 (set_main_name, main_name, main_language): Use get_main_info.
10045 (_initialize_symtab): Initialize main_progspace_key.
10047 2014-01-15 Tom Tromey <tromey@redhat.com>
10049 * dbxread.c (process_one_symbol): Update.
10050 * dwarf2read.c (read_partial_die): Update.
10051 * symfile.c (set_initial_language): Call main_language.
10052 * symtab.c (language_of_main): Now static.
10053 (set_main_name): Add 'lang' parameter.
10054 (find_main_name): Update.
10055 (main_language): New function.
10056 (symtab_observer_executable_changed): Update.
10057 * symtab.h (set_main_name): Update.
10058 (language_of_main): Remove.
10059 (main_language): Declare.
10061 2014-01-15 Tom Tromey <tromey@redhat.com>
10063 * symfile.c (init_entry_point_info): Use new "initialized" field.
10065 * objfiles.h (struct entry_point) <initialized>: New field.
10066 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10067 (struct objfile) <ei>: ...here. Remove.
10068 * objfiles.c (entry_point_address_query): Update.
10070 2014-01-15 Tom Tromey <tromey@redhat.com>
10072 * objfiles.c (entry_point_address_query): Relocate entry point
10074 (objfile_relocate1): Do not relocate entry point address.
10075 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10076 <the_bfd_section_index>: New field.
10077 * symfile.c (init_entry_point_info): Find the entry point's
10080 2014-01-15 Tom Tromey <tromey@redhat.com>
10082 * solib-frv.c (enable_break): Use entry_point_address_query.
10084 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10086 * NEWS: Add note on improved process record-replay on
10087 arm*-linux* targets.
10089 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10091 * arm-tdep.c (enum arm_record_result): New enum.
10092 (arm_record_unsupported_insn): New function.
10093 (arm_record_coproc_data_proc): Removed.
10094 (thumb2_record_ld_st_multiple): New function.
10095 (thumb2_record_ld_st_dual_ex_tbb): New function.
10096 (thumb2_record_data_proc_sreg_mimm): New function.
10097 (thumb2_record_ps_dest_generic): New function.
10098 (thumb2_record_branch_misc_cntrl): New function.
10099 (thumb2_record_str_single_data): New function.
10100 (thumb2_record_ld_mem_hints): New function.
10101 (thumb2_record_ld_word): New function.
10102 (thumb2_record_lmul_lmla_div): New function.
10103 (thumb2_record_decode_insn_handler): New function.
10104 (decode_insn): Add thumb32 instruction handlers.
10106 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10108 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10109 (struct arm_linux_record_tdep): Declare.
10110 (arm_canonicalize_syscall): New function.
10111 (arm_all_but_pc_registers_record): New function.
10112 (arm_linux_syscall_record): New function.
10113 (arm_linux_init_abi): Add syscall recording constructs.
10114 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10115 decoding. (arm_record_coproc_data_proc): Update arm syscall
10117 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10118 <arm_syscall_record>: New field.
10119 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10122 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10124 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10125 register for push instruction recording.
10127 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10129 * arm-tdep.c (thumb_record_misc): Update to correct logical
10130 error while recording ldm, ldmia and pop instructions.
10132 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10134 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10136 2014-01-15 Pedro Alves <palves@redhat.com>
10138 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10139 (go32_resume, go32_fetch_registers, store_register)
10140 (go32_store_registers, go32_prepare_to_store)
10141 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10142 (go32_create_inferior, go32_can_run, go32_terminal_init)
10143 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10146 2014-01-15 Tom Tromey <tromey@redhat.com>
10148 * target.h (async_callback_ftype): New typedef.
10149 (struct target_ops) <to_async>: Use it.
10151 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10153 * python/py-value.c (get_field_type): Remove unnecessary curly
10154 braces for single-statement if block.
10156 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10158 * python/py-type.c (convert_field): Add missing empty line
10159 after declarations.
10161 2014-01-14 Doug Evans <dje@google.com>
10163 * symfile.h (expand_symtabs_matching): Renamed from
10164 expand_partial_symbol_names. Update prototype.
10165 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10166 * symfile.c (expand_symtabs_matching): Renamed from
10167 expand_partial_symbol_names. New args file_matcher, kind.
10168 Rename arg fun to symbol_matcher.
10169 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10170 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10171 ada_expand_partial_symbol_name.
10172 (ada_make_symbol_completion_list): Update to call
10173 expand_symtabs_matching.
10174 (ada_add_global_exceptions): Call expand_symtabs_matching.
10175 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10176 call map_symbol_filenames.
10177 * symtab.c (sources_info): Update to call map_symbol_filenames.
10178 (search_symbols): Call expand_symtabs_matching.
10179 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10180 (default_make_symbol_completion_list_break_on): Update to call
10181 expand_symtabs_matching.
10182 (make_source_files_completion_list): Update to call
10183 map_symbol_filenames.
10185 2014-01-14 Doug Evans <dje@google.com>
10187 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10188 (expand_symtabs_symbol_matcher_ftype): New typedef.
10189 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10190 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10191 * symfile.c (expand_partial_symbol_names): Update to use
10192 expand_symtabs_symbol_matcher_ftype.
10193 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10194 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10195 Arg name_matcher renamed to symbol_matcher.
10196 * psymtab.c (recursively_search_psymtabs): Update to use
10197 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10199 (expand_symtabs_matching_via_partial): Update to use
10200 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10201 Arg name_matcher renamed to symbol_matcher.
10203 2014-01-14 Doug Evans <dje@google.com>
10205 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10206 (map_partial_symbol_filenames): Ditto.
10207 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10208 (map_partial_symbol_filenames): Ditto.
10209 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10210 (map_partial_symbol_filenames): Ditto.
10211 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10212 (map_partial_symbol_filenames): Ditto.
10213 * symtab.c: Delete #include "psymtab.h".
10215 2014-01-14 Pedro Alves <palves@redhat.com>
10216 Tom Tromey <tromey@redhat.com>
10218 * infrun.c (use_displaced_stepping): Use find_record_target
10219 instead of RECORD_IS_USED.
10220 (adjust_pc_after_break): Use record_full_is_used instead of
10222 * record-btrace.c (record_btrace_open): Call record_preopen
10223 instead of checking RECORD_IS_USED.
10224 * record-full.c (record_full_shortname)
10225 (record_full_core_shortname): New globals.
10226 (record_full_is_used): New function.
10227 (find_full_open): Call record_preopen instead of checking
10229 (init_record_full_ops): Set the target's shortname to
10230 record_full_shortname.
10231 (init_record_full_core_ops): Set the target's shortname to
10232 record_full_core_shortname.
10233 * record-full.h (record_full_is_used): Declare.
10234 * record.c (find_record_target): Make extern.
10235 (record_preopen): New function.
10236 * record.h (RECORD_IS_USED): Delete macro.
10237 (find_record_target, record_preopen): Declare functions.
10239 2014-01-14 Yao Qi <yao@codesourcery.com>
10241 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10242 'len''s type to ULONGEST.
10243 (core_xfer_shared_libraries_aix): Likewise.
10244 * gdbarch.c, gdbarch.h: Regenerated.
10245 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10246 Change type of 'len' to ULONGEST.
10247 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10248 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10250 2014-01-14 Yao Qi <yao@codesourcery.com>
10252 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10253 type of 'len' to ULONGEST.
10254 (linux_xfer_osdata_processgroups): Likewise.
10255 (linux_xfer_osdata_threads): Likewise.
10256 (linux_xfer_osdata_fds): Likewise.
10257 (linux_xfer_osdata_isockets): Likewise.
10258 (linux_xfer_osdata_shm): Likewise.
10259 (linux_xfer_osdata_sem): Likewise.
10260 (linux_xfer_osdata_msg): Likewise.
10261 (linux_common_xfer_osdata): Likewise.
10262 (struct osdata_type) <getter>: Likewise.
10263 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10266 2014-01-14 Yao Qi <yao@codesourcery.com>
10268 * target.h (target_xfer_partial_ftype): Update.
10269 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10271 * aix-thread.c (aix_thread_xfer_partial): Change type of
10272 argument 'len' to ULONGEST.
10273 * auxv.c (procfs_xfer_auxv): Likewise.
10274 (ld_so_xfer_auxv): Likewise.
10275 (memory_xfer_auxv): Likewise.
10276 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10277 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10278 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10279 * corelow.c (core_xfer_partial): Likewise.
10280 * ctf.c (ctf_xfer_partial): Likewise.
10281 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10283 (darwin_read_dyld_info): Likewise.
10284 (darwin_xfer_partial): Likewise.
10285 * exec.c (section_table_xfer_memory_partial): Likewise.
10286 (exec_xfer_partial): Likewise.
10287 * exec.h (section_table_xfer_memory_partial): Update
10289 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10290 instead of plongest.
10291 (gnu_xfer_partial): Likewise.
10292 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10293 (ia64_hpux_xfer_solib_got): Likewise.
10294 (ia64_hpux_xfer_partial): Likewise.
10295 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10296 * inf-ptrace.c (inf_ptrace_xfer_partial):
10297 * inf-ttrace.c (inf_ttrace_xfer_partial):
10298 * linux-nat.c (linux_xfer_siginfo): Likewise.
10299 (linux_nat_xfer_partial): Likewise.
10300 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10301 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10302 * monitor.c (monitor_xfer_memory): Likewise.
10303 (monitor_xfer_partial): Likewise.
10304 * procfs.c (procfs_xfer_partial): Likewise.
10305 * record-full.c (record_full_xfer_partial): Likewise.
10306 (record_full_core_xfer_partial): Likewise.
10307 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10308 instead of plongest.
10309 (gdbsim_xfer_partial): Likewise.
10310 * remote.c (remote_xfer_partial): Likewise.
10311 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10312 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10314 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10315 (rs6000_xfer_shared_libraries): Likewise.
10316 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10317 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10318 (sparc_xfer_partial): Likewise.
10319 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10320 (spu_xfer_partial): Likewise.
10321 * spu-multiarch.c (spu_xfer_partial): Likewise.
10322 * target.c (target_read_live_memory): Likewise.
10323 (memory_xfer_live_readonly_partial): Likewise.
10324 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10325 (target_xfer_partial, default_xfer_partial): Likewise.
10326 (current_xfer_partial): Likewise.
10327 * tracepoint.c (tfile_xfer_partial): Likewise.
10328 * windows-nat.c (windows_xfer_memory): Likewise. Call
10329 pulongest instead of plongest.
10330 (windows_xfer_partial): Likewise.
10331 (windows_xfer_shared_libraries): Likewise.
10333 2014-01-14 Yao Qi <yao@codesourcery.com>
10335 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10336 target_xfer_partial_ftype.
10338 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10342 * valops.c (value_struct_elt_bitpos): New function
10343 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10344 object to 'None' if the field name is an empty string ("").
10345 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10346 attribute to look for a field when 'name' is 'None'.
10347 (get_field_type): New function
10349 2014-01-13 Doug Evans <dje@google.com>
10352 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10353 (try_open_dwop_file): Ditto.
10354 * gdb_bfd.c: #include "vec.h".
10355 (bfdp): New typedef.
10356 (struct gdb_bfd_data): New member included_bfds.
10357 (gdb_bfd_unref): Unref all included bfds.
10358 (gdb_bfd_record_inclusion): New function.
10359 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10361 2014-01-13 Tom Tromey <tromey@redhat.com>
10363 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10365 2014-01-13 Tom Tromey <tromey@redhat.com>
10367 * defs.h (use_windows): Remove.
10368 * gdb.c (main): Update.
10369 * main.c (captured_main, gdb_main): Update.
10370 * main.h (struct captured_main_args) <use_windows>: Remove.
10371 * top.c (use_windows): Remove.
10373 2014-01-13 Tom Tromey <tromey@redhat.com>
10375 * defs.h (deprecated_flush_hook): Remove.
10377 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10380 * linux-thread-db.c (try_thread_db_load): Add parameter
10381 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10382 (try_thread_db_load_from_pdir_1): Move it there from here.
10383 (try_thread_db_load_from_sdir): Update caller.
10384 (try_thread_db_load_from_dir): Move it there from here.
10386 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10388 * regformats/regdat.sh: Always rewrite the register file.
10390 2014-01-13 Pedro Alves <palves@redhat.com>
10392 * Makefile.in (CHECK_HEADERS): New variable.
10393 (check-headers:): New rule.
10395 2014-01-13 Tom Tromey <tromey@redhat.com>
10397 * cli/cli-setshow.c (do_set_command): Update.
10398 * defs.h (deprecated_set_hook): Remove.
10399 * top.c (deprecated_set_hook): Remove.
10401 2014-01-13 Pedro Alves <palves@redhat.com>
10403 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10404 the tracepoint if the PC is a pseudo-register.
10406 2014-01-13 Tom Tromey <tromey@redhat.com>
10408 * defs.h (XCALLOC): Remove.
10409 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10410 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10411 * dwarf2loc.c (allocate_piece_closure): Likewise.
10412 * elfread.c (elf_symfile_segments): Likewise.
10413 (elf_symfile_segments): Likewise.
10414 * gdbtypes.c (copy_type_recursive): Likewise.
10415 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10416 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10417 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10419 * mt-tdep.c (mt_gdbarch_init): Likewise.
10420 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10422 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10423 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10424 * registry.c (registry_alloc_data): Likewise.
10425 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10426 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10427 * serial.c (serial_fdopen_ops): Likewise.
10428 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10430 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10431 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10434 2014-01-13 Tom Tromey <tromey@redhat.com>
10436 * defs.h (XMALLOC): Remove.
10437 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10438 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10439 * cli-out.c (struct ui_out *): Likewise.
10440 * cli/cli-dump.c (add_dump_command): Likewise.
10441 (add_dump_command): Likewise.
10442 * complaints.c (get_complaints): Likewise.
10443 (find_complaint): Likewise.
10444 * dwarf2-frame.c (execute_cfa_program): Likewise.
10445 * dwarf2read.c (abbrev_table_read_table): Likewise.
10446 * gdbarch.sh: Likewise.
10447 * gdbarch.c: Rebuild.
10448 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10449 * interps.c (interp_new): Likewise.
10450 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10451 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10452 * mi/mi-console.c (mi_console_file_new): Likewise.
10453 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10454 * mi/mi-out.c (mi_out_new): Likewise.
10455 * mi/mi-parse.c (mi_parse): Likewise.
10456 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10457 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10458 * observer.c (xalloc_observer_list_node): Likewise.
10459 * regcache.c (regcache_xmalloc_1): Likewise.
10460 * reggroups.c (reggroup_new): Likewise.
10461 (_initialize_reggroup): Likewise.
10462 * registry.c (register_data_with_cleanup): Likewise.
10463 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10464 * ser-base.c (serial_ttystate): Likewise.
10465 * ser-mingw.c (make_pipe_state): Likewise.
10466 * ser-pipe.c (pipe_open): Likewise.
10467 * serial.c (serial_open): Likewise.
10468 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10469 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10470 (tui_alloc_win_info): Likewise.
10471 (tui_add_content_elements): Likewise.
10472 * tui/tui-file.c (tui_file_new): Likewise.
10473 * tui/tui-out.c (tui_out_new): Likewise.
10474 * ui-file.c (mem_file_new): Likewise.
10475 * ui-out.c (push_level): Likewise.
10476 (make_cleanup_ui_out_end): Likewise.
10477 (append_header_to_list): Likewise.
10478 (ui_out_new): Likewise.
10479 * user-regs.c (user_reg_add_builtin): Likewise.
10481 2014-01-13 Tom Tromey <tromey@redhat.com>
10483 * defs.h (XZALLOC): Remove.
10484 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10485 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10486 (get_ada_tasks_inferior_data): Likewise.
10487 * auto-load.c (get_auto_load_pspace_data): Likewise.
10488 * auxv.c (get_auxv_inferior_data): Likewise.
10489 * bfd-target.c (target_bfd_reopen): Likewise.
10490 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10491 (deprecated_insert_raw_breakpoint): Likewise.
10492 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10493 * corelow.c (core_open): Likewise.
10494 * darwin-nat.c (darwin_check_new_threads): Likewise.
10495 (darwin_attach_pid): Likewise.
10496 * dummy-frame.c (dummy_frame_push): Likewise.
10497 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10498 * dwarf2loc.c (allocate_piece_closure): Likewise.
10499 * elfread.c (elf_symfile_segments): Likewise.
10500 * eval.c (ptrmath_type_p): Likewise.
10501 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10502 * gdbtypes.c (alloc_type_arch): Likewise.
10503 (alloc_type_instance): Likewise.
10504 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10505 * inf-child.c (inf_child_can_use_agent): Likewise.
10506 * inflow.c (get_inflow_inferior_data): Likewise.
10507 * infrun.c (save_infcall_suspend_state): Likewise.
10508 * jit.c (jit_reader_load): Likewise.
10509 (get_jit_objfile_data): Likewise.
10510 (get_jit_program_space_data): Likewise.
10511 (jit_object_open_impl): Likewise.
10512 (jit_symtab_open_impl): Likewise.
10513 (jit_block_open_impl): Likewise.
10514 (jit_frame_sniffer): Likewise.
10515 * linux-fork.c (add_fork): Likewise.
10516 * maint.c (make_command_stats_cleanup): Likewise.
10517 * objfiles.c (get_objfile_pspace_data): Likewise.
10518 * opencl-lang.c (struct lval_closure): Likewise.
10519 * osdata.c (osdata_start_osdata): Likewise.
10520 * progspace.c (new_address_space): Likewise.
10521 (add_program_space): Likewise.
10522 * remote-sim.c (get_sim_inferior_data): Likewise.
10523 * sh-tdep.c (sh_gdbarch_init): Likewise.
10524 * skip.c (Ignore): Likewise.
10525 (skip_delete_command): Likewise.
10526 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10527 (library_list_start_library): Likewise.
10528 (solib_aix_current_sos): Likewise.
10529 * solib-darwin.c (get_darwin_info): Likewise.
10530 (darwin_current_sos): Likewise.
10531 * solib-dsbt.c (get_dsbt_info): Likewise.
10532 * solib-ia64-hpux.c (new_so_list): Likewise.
10533 (ia64_hpux_get_solib_linkage_addr): Likewise.
10534 * solib-spu.c (append_ocl_sos): Likewise.
10535 (spu_current_sos): Likewise.
10536 * solib-svr4.c (get_svr4_info): Likewise.
10537 (svr4_keep_data_in_core): Likewise.
10538 (library_list_start_library): Likewise.
10539 (svr4_default_sos): Likewise.
10540 (svr4_read_so_list): Likewise.
10541 * solib-target.c (library_list_start_library): Likewise.
10542 (solib_target_current_sos): Likewise.
10543 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10544 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10545 * symfile.c (default_symfile_segments): Likewise.
10546 * target-descriptions.c (tdesc_data_init): Likewise.
10547 (tdesc_create_reg): Likewise.
10548 (struct tdesc_type *): Likewise.
10549 (tdesc_create_vector): Likewise.
10550 (tdesc_set_struct_size): Likewise.
10551 (struct tdesc_type *): Likewise.
10552 (tdesc_free_feature): Likewise.
10553 (tdesc_create_feature): Likewise.
10554 * windows-nat.c (windows_add_thread): Likewise.
10555 (windows_make_so): Likewise.
10556 * xml-support.c (gdb_xml_body_text): Likewise.
10557 (gdb_xml_create_parser_and_cleanup): Likewise.
10558 (xml_process_xincludes): Likewise.
10559 * xml-syscall.c (allocate_syscalls_info): Likewise.
10560 (syscall_create_syscall_desc): Likewise.
10562 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10564 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10565 function, with code from i386_stap_parse_special_token.
10566 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10567 (i386_stap_parse_special_token): Move code to the two functions
10568 above; simplify it.
10570 2014-01-09 Pedro Alves <palves@redhat.com>
10571 Hui Zhu <hui@codesourcery.com>
10574 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10575 bp_err_string. Don't mark the location shlib_disabled if the
10576 error thrown wasn't a generic or memory error. Catch errors
10577 thrown while inserting breakpoints in overlayed code. Output
10578 error message of software breakpoints.
10579 * remote.c (remote_insert_breakpoint): If this breakpoint has
10580 target-side commands but this stub doesn't support Z0 packets,
10581 throw NOT_SUPPORTED_ERROR error.
10582 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10583 * target.h (target_insert_breakpoint): Extend comment.
10584 (target_insert_hw_breakpoint): Add comment.
10586 2014-01-08 Pedro Alves <palves@redhat.com>
10588 * remote.c (remote_add_thread): Add threads silently if starting
10590 (remote_notice_new_inferior): If in all-stop, and starting up,
10591 don't call notice_new_inferior.
10592 (get_current_thread): New function, factored out from ...
10593 (add_current_inferior_and_thread): ... this. Adjust.
10594 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10595 found any thread, then select the remote's current thread as GDB's
10596 current thread too.
10598 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10600 * NEWS: Create a new section for the next release branch.
10601 Rename the section of the current branch, now that it has
10604 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10606 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10607 * version.in: Bump version to 7.7.50.DATE-cvs.
10609 2014-01-08 Yao Qi <yao@codesourcery.com>
10611 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10612 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10613 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10615 2014-01-08 Yao Qi <yao@codesourcery.com>
10617 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10618 return value of bfd_get_filename to symbol_file_add_from_bfd.
10620 2014-01-08 Pierre Muller <muller@sourceware.org>
10623 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10624 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10625 to prim_record_mininal_symbol_and_info.
10626 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10627 in call to prim_record_minimal_symbol_and_info.
10628 (read_pe_exported_syms): Set index field of section_data.
10630 2014-01-07 Andrew Pinski <apinski@cavium.com>
10632 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10633 * features/aarch64.c: Regenerate.
10635 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10637 * target.c (return_null): Define.
10638 (update_current_target): Use it instead of return_zero for
10639 functions that return a pointer.
10641 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10643 * source.c (add_path): Fix check for duplicated paths in the previously
10646 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10648 * ada-lang.c: Remove duplicated include statements.
10649 * alphabsd-nat.c: Ditto.
10650 * amd64-darwin-tdep.c: Ditto.
10651 * amd64fbsd-nat.c: Ditto.
10652 * auto-load.c: Ditto.
10654 * breakpoint.c: Ditto.
10655 * dbxread.c: Ditto.
10656 * fork-child.c: Ditto.
10657 * gdb_usleep.c: Ditto.
10658 * i386-darwin-tdep.c: Ditto.
10659 * i386fbsd-nat.c: Ditto.
10661 * inferior.c: Ditto.
10662 * jv-lang.c: Ditto.
10663 * linux-nat.c: Ditto.
10664 * linux-tdep.c: Ditto.
10665 * m68kbsd-nat.c: Ditto.
10666 * m68klinux-nat.c: Ditto.
10667 * microblaze-tdep.c: Ditto.
10668 * mips-linux-tdep.c: Ditto.
10669 * mn10300-tdep.c: Ditto.
10670 * nto-tdep.c: Ditto.
10671 * opencl-lang.c: Ditto.
10673 * printcmd.c: Ditto.
10674 * regcache.c: Ditto.
10675 * remote-m32r-sdi.c: Ditto.
10677 * symfile.c: Ditto.
10679 * tilegx-linux-nat.c: Ditto.
10680 * tilegx-tdep.c: Ditto.
10681 * tracepoint.c: Ditto.
10683 * vaxbsd-nat.c: Ditto.
10684 * windows-nat.c: Ditto.
10685 * xtensa-tdep.c: Ditto.
10687 2014-01-07 Yao Qi <yao@codesourcery.com>
10689 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10691 2014-01-07 Yao Qi <yao@codesourcery.com>
10692 Joel Brobecker <brobecker@adacore.com>
10694 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10695 (pdc_write_regs): Likewise.
10696 (fetch_regs_kernel_thread): Likewise.
10697 (store_regs_kernel_thread): Likewise.
10699 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10701 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10702 tagged type objects to their actual type.
10704 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10706 * ada-valprint.c (print_field_values): Add "language" parameter.
10707 Update calls to print_field_values and print_variant_part.
10708 Pass new parameter "language" in call to val_print instead
10709 of "current_language". Replace call to ada_val_print by call
10711 (print_variant_part): Add "language" parameter.
10712 (ada_val_print_struct_union): Update call to print_field_values.
10714 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10716 * ada-valprint.c (ui_memcpy): Delete.
10717 (ada_print_floating): Update documentation. Add empty line
10718 between between function documentation and implementation.
10719 Delete variable "buffer". Use ui_file_xstrdup in place of
10720 ui_file_put. Minor adjustments following this change.
10722 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10724 * ada-valprint.c (ada_val_print_string): New function,
10725 extracted from ada_val_print_array.
10726 (ada_val_print_array): Replace extracted code by call
10727 to ada_val_print_string followed by a return. Move
10728 "else" branch to the function's top block.
10730 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10732 * ada-valprint.c (ada_val_print_array): Move implementation
10733 down. Rename parameter "offset" and "val" into "offset_aligned"
10734 and "original_value" respectively. Add parameter "offset".
10736 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10738 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10739 re-organizing the code. Change the "???" message printed
10740 when target type is a TYPE_CODE_UNDEF into
10741 "<ref to undefined type>".
10743 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10745 * ada-valprint.c (print_record): Delete, implementation inlined...
10746 (ada_val_print_struct_union): ... here. Remove call to
10747 ada_check_typedef in inlined implementation.
10749 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10751 * ada-valprint.c (ada_val_print_gnat_array): New function,
10752 extracted from ada_val_print_1;
10753 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10754 (ada_val_print_flt, ada_val_print_struct_union)
10755 (ada_val_print_ref): Likewise.
10756 (ada_val_print_1): Delete variables i and elttype.
10757 Replace extracted-out code by call to corresponding
10760 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10762 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10764 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10766 * ada-valprint.c (ada_val_print_1): Replace calls to
10767 ada_val_print_1 by calls to val_print.
10769 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10771 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10772 Update calls to self accordingly. Replace calls to c_val_print
10773 by calls to val_print.
10775 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10777 * ada-valprint.c (print_record): Delete declaration.
10778 (adjust_type_signedness, ada_val_print_1): Likewise.
10779 (ada_val_print): Move function implementation down.
10780 (print_variant_part, print_field_values, print_record):
10781 Move function implementation up.
10783 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10785 * python/py-type.c (typy_get_name): New function.
10786 (type_object_getset): Add entry for attribute "name".
10787 * NEWS: Add entry mentioning this new attribute.
10789 2014-01-07 Yao Qi <yao@codesourcery.com>
10791 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10794 2014-01-07 Yao Qi <yao@codesourcery.com>
10796 * gnu-nat.c (info_port_rights): Add qualifier const to
10799 2014-01-07 Yao Qi <yao@codesourcery.com>
10801 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10803 2014-01-07 Yao Qi <yao@codesourcery.com>
10805 * gnu-nat.c (make_inf) Update declaration.
10806 (make_inf): Make it static.
10807 (inf_set_traced): Likewise.
10808 (inf_port_to_thread, inf_task_died_status): Likewise.
10810 2014-01-07 Yao Qi <yao@codesourcery.com>
10812 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10814 2014-01-07 Yao Qi <yao@codesourcery.com>
10816 * gnu-nat.c (_initialize_gnu_nat): Declare.
10818 2014-01-07 Yao Qi <yao@codesourcery.com>
10820 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10822 (struct gdbarch_info) <byte_order>: Change type to
10824 <byte_order_for_code>: Likewise.
10825 * gdbarch.c, gdbarch.h: Regenerated.
10827 2014-01-06 Sasha Smundak <asmundak@google.com>
10829 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10831 2014-01-06 Tom Tromey <tromey@redhat.com>
10833 * doublest.c (convert_doublest_to_floatformat): Use const, not
10835 * somread.c (som_symtab_read): Likewise.
10837 2014-01-07 Hui Zhu <hui@codesourcery.com>
10839 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10840 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10841 (gdb_bfd_fopen): Ditto.
10842 (gdb_bfd_openr): Ditto.
10843 (gdb_bfd_openw): Ditto.
10844 (gdb_bfd_openr_iovec): Ditto.
10845 (gdb_bfd_fdopenr): Ditto.
10846 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10847 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10849 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10851 * symfile-mem.c (symbol_file_add_from_memory): Removed
10852 gdb_bfd_stash_filename.
10854 2014-01-03 Doug Evans <dje@google.com>
10856 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10859 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10861 Update year range in copyright notice of all files.
10863 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10865 * top.c (print_gdb_version): Set copyright year to 2014.
10867 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10869 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10871 For older changes see ChangeLog-2013.
10877 version-control: never