1 2014-07-29 Yao Qi <yao@codesourcery.com>
4 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
6 2014-07-28 Doug Evans <xdje42@gmail.com>
9 * guile/scm-param.c (pascm_parameter_defined_p): New function.
10 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
13 2014-07-28 Will Newton <will.newton@linaro.org>
15 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
16 (THUMB2_SET_R7_SIGRETURN2): Likewise.
17 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
18 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
19 (THUMB2_EABI_SYSCALL): Likewise.
20 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
22 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
23 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
25 2014-07-27 Doug Evans <xdje42@gmail.com>
27 * guile/scm-param.c (pascm_print_param_smob): Fix output.
29 2014-07-27 Doug Evans <xdje42@gmail.com>
31 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
33 2014-07-26 Ludovic Courtès <ludo@gnu.org>
34 Doug Evans <xdje42@gmail.com>
37 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
38 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
39 * configure.ac: Try to use guild to compile an scm file, if it fails
40 then disable guile support.
41 * configure: Regenerate.
42 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
44 (GUILE_COMPILED_FILES): New variable.
46 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
47 (stamp-guile): Compile scm files.
48 * guile/guile.c (boot_guile_support): New function.
49 (standard_throw_args_p): New function.
50 (print_standard_throw_error, print_throw_error): New functions.
51 (handle_boot_error): New function.
52 (initialize_scheme_side): Rewrite to call boot_guile_support.
53 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
54 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
56 2014-07-26 Ludovic Courtès <ludo@gnu.org>
57 Doug Evans <xdje42@gmail.com>
60 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
61 * guile/lib/gdb/support.scm: New file.
62 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
63 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
65 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
67 (%assert-type): Ditto, and renamed to assert-type.
68 (%exception-print-style): Delete.
70 2014-07-26 Doug Evans <xdje42@gmail.com>
73 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
74 * configure: Regenerate.
75 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
77 (PYTHON_FILES): New variable.
78 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
79 (GUILE_FILES): New variable.
80 (stamp-python, install-python, uninstall-python): Handle empty
82 (stamp-guile, install-guile, uninstall-guile): Ditto.
84 2014-07-26 Doug Evans <xdje42@gmail.com>
87 * guile/lib/gdb.scm (pretty-printers): Export.
88 (set-pretty-printers!): Export.
89 * guile/lib/gdb/printing.scm (gdb module): Update.
90 (prepend-pretty-printer!, append-pretty-printer!): Update.
91 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
92 (pretty_printer_list_var): Delete.
93 (pretty_printer_list): New static global.
94 (gdbscm_pretty_printers): New function.
95 (gdbscm_set_pretty_printers_x): New function.
96 (ppscm_find_pretty_printer_from_gdb): Update.
97 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
98 (gdbscm_initialize_pretty_printers): Update.
100 2014-07-26 Doug Evans <xdje42@gmail.com>
103 * configure.ac: Add check for header gc/gc.h.
104 Add check for function setenv.
105 * configure: Regenerate.
106 * config.in: Regenerate.
107 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
109 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
111 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
112 variation in gdbarch matching.
114 2014-07-25 Tom Tromey <tromey@redhat.com>
116 * exec.c (using_exec_ops): Remove.
117 (exec_close_1): Update. Remove extraneous block, reindent.
118 (add_target_sections): Use target_is_pushed.
120 2014-07-25 Pedro Alves <palves@redhat.com>
122 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
123 * monitor.c (monitor_create_inferior): Likewise.
124 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
125 * remote-sim.c (gdbsim_create_inferior): Likewise.
126 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
127 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
128 * windows-nat.c (do_initial_windows_stuff): Likewise.
130 2014-07-25 Pedro Alves <palves@redhat.com>
132 * NEWS: Mention signal passing and "signal" command changes.
133 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
135 * breakpoint.c (until_break_command): Adjust clear_proceed_status
137 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
138 * infcmd.c (proceed_thread_callback, continue_1, step_once)
139 (jump_command): Adjust clear_proceed_status call.
140 (signal_command): Warn if other thread that are resumed have
141 signals that will be delivered. Adjust clear_proceed_status call.
142 (until_next_command, finish_command)
143 (proceed_after_attach_callback, attach_command_post_wait)
144 (attach_command): Adjust clear_proceed_status call.
145 * infrun.c (proceed_after_vfork_done): Likewise.
146 (proceed_after_attach_callback): Adjust comment.
147 (clear_proceed_status_thread): Clear stop_signal if not in pass
149 (clear_proceed_status_callback): Delete.
150 (clear_proceed_status): New 'step' parameter. Only clear the
151 proceed status of threads the command being prepared is about to
153 (proceed): If passed in an explicit signal, override stop_signal
154 with it. Don't pass the last stop signal to the thread we're
156 (init_wait_for_inferior): Adjust clear_proceed_status call.
157 (switch_back_to_stepped_thread): Clear the signal if it should not
159 * infrun.h (clear_proceed_status): New 'step' parameter.
160 (user_visible_resume_ptid): Add comment.
161 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
162 signal is in pass state.
163 * remote.c (append_pending_thread_resumptions): Likewise.
164 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
166 2014-07-25 Tom Tromey <tromey@redhat.com>
168 * target.h (target_stopped_data_address)
169 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
172 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
174 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
176 (avr_pointer_to_address): Likewise.
178 2014-07-24 Tom Tromey <tromey@redhat.com>
180 * monitor.c (compile_pattern): Update.
181 * target.h (struct target_ops) <to_shortname, to_longname,
184 2014-07-24 Tom Tromey <tromey@redhat.com>
186 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
187 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
188 (add_info_alias, add_com): Make "doc" const.
189 (print_doc_line): Make "str" const.
190 (delete_cmd): Update.
191 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
192 (print_doc_line): Update.
193 * cli/cli-script.c (document_command): Update.
194 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
195 (add_com, add_info, add_info_alias): Update.
196 * guile/scm-cmd.c (cmdscm_destroyer): Update.
197 * python/py-cmd.c (cmdpy_destroyer): Update.
199 2014-07-24 Tom Tromey <tromey@redhat.com>
201 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
202 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
203 (help_cmd_list): Constify.
204 (lookup_cmd): Update.
205 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
207 (help_cmd_list, apropos_cmd): Update.
208 * cli/cli-script.c (show_user): Update.
209 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
210 * cli/cli-setshow.h (cmd_show_list): Update.
211 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
212 (cmd_show_list): Update.
213 * guile/scm-cmd.c (cmdscm_destroyer): Update.
214 * python/py-cmd.c (cmdpy_destroyer): Update.
216 2014-07-24 Tom Tromey <tromey@redhat.com>
218 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
219 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
221 * command.h (deprecate_cmd): Update.
222 * maint.c (maintenance_do_deprecate): Add casts.
224 2014-07-24 Tom Tromey <tromey@redhat.com>
226 * cli/cli-decode.c (help_cmd): Make parameter "const".
227 * cli/cli-decode.h (help_cmd): Update.
229 2014-07-24 Tom Tromey <tromey@redhat.com>
231 * stack.c (up_silently_base, down_silently_base): Make argument
234 2014-07-24 Tom Tromey <tromey@redhat.com>
236 * solib.c (solib_add): Make "pattern" const.
237 * solib.h (solib_add): Update.
239 2014-07-24 Tom Tromey <tromey@redhat.com>
241 * remote.c (remote_serial_open, print_packet, putpkt)
242 (putpkt_binary): Constify.
243 * remote.h (putpkt): Update.
245 2014-07-24 Tom Tromey <tromey@redhat.com>
247 * monitor.c (monitor_open): Make "args" const.
248 * monitor.h (monitor_open): Update.
250 2014-07-24 Tom Tromey <tromey@redhat.com>
252 * maint.c (match_bfd_flags): Make "string" const.
253 (print_bfd_section_info): Remove casts.
254 (print_objfile_section_info): Make "string" const.
256 2014-07-24 Tom Tromey <tromey@redhat.com>
258 * inf-child.c (inf_child_open_target): Make "arg" const.
259 * inf-child.h (inf_child_open_target): Update.
261 2014-07-24 Tom Tromey <tromey@redhat.com>
263 * environ.c (unset_in_environ): Make "var" const.
264 * environ.h (unset_in_environ): Update.
266 2014-07-24 Tom Tromey <tromey@redhat.com>
268 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
270 (scan_filename_with_cleanup): Likewise.
271 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
272 Make arguments const.
273 (restore_command): Update.
275 2014-07-24 Pedro Alves <palves@redhat.com>
277 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
279 2014-07-24 Tom Tromey <tromey@redhat.com>
280 Gary Benson <gbenson@redhat.com>
282 * nat/linux-ptrace.c (additional_flags): New global.
283 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
284 additional_flags; don't check GDBSERVER.
285 (linux_ptrace_set_additional_flags): New function.
286 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
288 * linux-nat.c (_initialize_linux_nat): Call
289 linux_ptrace_set_additional_flags.
291 2014-07-24 Tom Tromey <tromey@redhat.com>
293 * make-target-delegates (munge_type, write_debugmethod): New
295 (debug_names): New global.
296 ($TARGET_DEBUG_PRINTER): New global.
297 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
299 Write debug methods. Generate init_debug_target.
300 * target-debug.h: New file.
301 * target-delegates.c: Rebuild.
302 * target.c: Include target-debug.h.
303 (debug_target): Hoist definition.
304 (target_kill, target_get_section_table, target_memory_map)
305 (target_flash_erase, target_flash_done, target_detach)
306 (target_disconnect, target_wait, target_resume)
307 (target_pass_signals, target_program_signals, target_follow_fork)
308 (target_mourn_inferior, target_search_memory)
309 (target_thread_address_space, target_close)
310 (target_find_new_threads, target_core_of_thread)
311 (target_verify_memory, target_insert_mask_watchpoint)
312 (target_remove_mask_watchpoint): Remove targetdebug code.
313 (debug_to_post_attach, debug_to_prepare_to_store)
314 (debug_to_files_info, debug_to_insert_breakpoint)
315 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
316 (debug_to_region_ok_for_hw_watchpoint)
317 (debug_to_can_accel_watchpoint_condition)
318 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
319 (debug_to_watchpoint_addr_within_range)
320 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
321 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
322 (debug_to_terminal_init, debug_to_terminal_inferior)
323 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
324 (debug_to_terminal_save_ours, debug_to_terminal_info)
325 (debug_to_load, debug_to_post_startup_inferior)
326 (debug_to_insert_fork_catchpoint)
327 (debug_to_remove_fork_catchpoint)
328 (debug_to_insert_vfork_catchpoint)
329 (debug_to_remove_vfork_catchpoint)
330 (debug_to_insert_exec_catchpoint)
331 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
332 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
333 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
334 (setup_target_debug): Call init_debug_target.
335 * target.h (TARGET_DEBUG_PRINTER): New macro.
336 (struct target_ops) <to_resume, to_wait, to_pass_signals,
337 to_program_signals>: Use TARGET_DEBUG_PRINTER.
339 2014-07-24 Gary Benson <gbenson@redhat.com>
341 * exceptions.h (throw_vfatal): Renamed to...
342 (throw_vquit): New declaration.
343 (throw_quit): Likewise.
344 * exceptions.c (throw_vfatal): Renamed to...
345 (throw_vquit): New function.
346 (throw_quit): Likewise.
347 (throw_error): Call throw_verror rather than throw_it.
348 * utils.h (vfatal): Removed.
350 * utils.c (vfatal): Removed.
352 (internal_verror): Replaced call to fatal with call to throw_quit.
353 (quit): Replaced calls to fatal with calls to throw_quit.
355 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
357 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
360 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
362 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
363 less than zero in conditional expression.
365 2014-07-23 Tom Tromey <tromey@redhat.com>
367 * make-target-delegates ($ARGS_PART): Match trailing close paren.
368 ($INTRO_PART): Don't match whitespace.
369 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
371 ($METHOD): Add $METHOD_TRAILER.
373 (scan_target_h): New sub.
374 Change main loop not to collect state.
375 * target-delegates.c: Rebuild.
377 2014-07-23 Gary Benson <gbenson@redhat.com>
379 * cp-support.c (gdb_demangle): Fix build on systems without
382 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
384 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
385 for reference entry value target data value.
387 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
389 * stack.c (read_frame_arg): Verify value_optimized_out before calling
390 value_available_contents_eq.
392 2014-07-22 Pedro Alves <palves@redhat.com>
394 * value.c (allocate_optimized_out_value): Don't mark value as
397 2014-07-22 Jiong Wang <jiong.wang@arm.com>
399 * MAINTAINERS (Write After Approval): Update my email address.
401 2014-07-20 Doug Evans <dje@google.com>
404 * remote.c (putpkt_binary): Add text to error message.
406 2014-07-20 Yao Qi <yao@codesourcery.com>
408 * eval.c: Remove "Chill" from comments.
409 * gdbtypes.h: Likewise.
410 * symtab.h: Likewise.
412 2014-07-20 Yao Qi <yao@codesourcery.com>
414 * std-operator.def: Update comments to TERNOP_SLICE.
416 2014-07-20 Yao Qi <yao@codesourcery.com>
418 * std-operator.def: Remove BINOP_RANGE.
419 * breakpoint.c (watchpoint_exp_is_const): Update.
420 * expprint.c (dump_subexp_body_standard): Likewise.
421 * eval.c (init_array_element): Remove dead code.
422 (evaluate_subexp_standard): Likewise.
424 2014-07-20 Yao Qi <yao@codesourcery.com>
426 * std-operator.def: Remove BINOP_IN.
427 * breakpoint.c (watchpoint_exp_is_const): Update.
428 * eval.c (evaluate_subexp_standard): Likewise.
429 * expprint.c (dump_subexp_body_standard): Likewise.
431 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
433 * microblaze-tdep.c (microblaze_register_names): Add
434 the rshr and rslr register names.
435 (microblaze_gdbarch_init): Use of tdesc_has_registers.
436 Use of tdesc_find_feature. Use of tdesc_data_alloc.
437 Use of tdesc_numbered_register. Use of
438 microblaze_register_g_packet_guesses. Use of
439 tdesc_use_registers. Use of set_gdbarch_register_type.
440 (microblaze_register_g_packet_guesses): New.
441 * microblaze-tdep.h (microblaze_reg_num): Add
442 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
443 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
444 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
445 * features/microblaze-core.xml: New file.
446 * features/microblaze-stack-protect.xml: New file.
447 * features/microblaze-with-stack-protect.c: New file.
448 * features/microblaze-with-stack-protect.xml: New file.
449 * features/microblaze.xml: New file.
450 * features/microblaze.c: New file.
451 * features/Makefile (microblaze-with-stack-protect): Add
452 microblaze-with-stack-protect microblaze and microblaze-expedite.
453 * regformats/microblaze-with-stack-protect.dat: New file.
454 * regformats/microblaze.dat: New file.
455 * doc/gdb.texinfo (MicroBlaze Features): Added.
457 2014-07-18 Tom Tromey <tromey@redhat.com>
459 * exec.c (exec_ops): Now static.
460 * exec.h (exec_ops): Don't declare.
462 2014-07-18 Tom Tromey <tromey@redhat.com>
464 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
465 to find_target_beneath.
466 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
468 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
470 2014-07-18 Tom Tromey <tromey@redhat.com>
473 * utils.c (quit): Use target_supports_terminal_ours.
474 * target.h (target_supports_terminal_ours): Declare.
475 * target.c (target_supports_delete_record): Don't check
476 to_delete_record against NULL.
477 (target_supports_terminal_ours): New function.
479 2014-07-18 Tom Tromey <tromey@redhat.com>
482 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
483 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
484 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
485 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
486 * windows-nat.c (windows_xfer_partial): Always delegate.
487 * record-btrace.c (record_btrace_xfer_partial): Simplify
489 (record_btrace_fetch_registers, record_btrace_store_registers)
490 (record_btrace_prepare_to_store, record_btrace_resume)
491 (record_btrace_wait, record_btrace_find_new_threads)
492 (record_btrace_thread_alive): Likewise.
493 * procfs.c (procfs_xfer_partial): Always delegate.
494 * corelow.c (core_xfer_partial): Always delegate.
495 * sol-thread.c (sol_find_new_threads): Simplify delegation.
497 2014-07-18 Tom Tromey <tromey@redhat.com>
499 * exec.c (exec_make_note_section): Move earlier.
501 2014-07-17 Doug Evans <dje@google.com>
504 * maint.c (count_symtabs_and_blocks): Handle NULL
505 current_program_space.
506 (report_command_stats): Check global enabled flag in addition to
507 recorded enabled flag.
508 (make_command_stats_cleanup): Handle msg_type == 0, startup.
510 2014-07-16 Pedro Alves <palves@redhat.com>
512 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
514 2014-07-16 Tom Tromey <tromey@redhat.com>
516 * target.h (struct target_ops) <to_delete_record>: Reformat
519 2014-07-16 Tom Tromey <tromey@redhat.com>
521 * target-delegates.c: Rebuild.
523 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
525 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
526 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
527 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
528 (avr_pointer_to_address): Likewise.
529 (avr_address_class_type_flags): New function.
530 (avr_address_class_type_flags_to_name): Likewise.
531 (avr_address_class_name_to_type_flags): Likewise.
532 (avr_gdbarch_init): Set address_class_type_flags,
533 address_class_type_flags_to_name and
534 address_class_name_to_type_flags.
536 2014-07-15 Pedro Alves <palves@redhat.com>
538 * linux-nat.c (kill_callback): Save errno and work with saved
541 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
543 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
545 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
547 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
548 breakpoint support correctly.
550 2014-07-14 Pedro Alves <palves@redhat.com>
552 * utils.c (prompt_for_continue): Call target_terminal_ours.
554 2014-07-14 Pedro Alves <palves@redhat.com>
556 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
557 catch_errors. Don't re-enable stdin or notify observers where,
559 (fetch_inferior_event_wrapper): Delete.
561 2014-07-14 Pedro Alves <palves@redhat.com>
564 * top.c: Include "inf-loop.h".
565 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
567 (gdb_readline_wrapper_cleanup): Make the target async again, if it
569 (gdb_readline_wrapper): Store whether the target is async, and
572 2014-07-14 Pedro Alves <palves@redhat.com>
575 * top.c (gdb_readline_wrapper_line): Tweak comment.
576 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
577 the input handler callback.
579 2014-07-14 Pedro Alves <palves@redhat.com>
582 * main.c: Include event-top.h.
583 (handle_command_errors): New function.
584 (catch_command_errors, catch_command_errors_const): Use it.
586 2014-07-14 Pedro Alves <palves@redhat.com>
588 * exceptions.c (catch_command_errors, catch_command_errors_const):
590 * exceptions.h (catch_command_errors_ftype)
591 (catch_command_errors_const_ftype): Moved to main.c.
592 (catch_command_errors, catch_command_errors_const): Delete
594 * main.c (catch_command_errors_ftype)
595 (catch_command_errors_const_ftype): Moved here from exceptions.h.
596 (catch_command_errors, catch_command_errors_const)): Moved here
597 from exceptions.c and make static.
599 2014-07-14 Pedro Alves <palves@redhat.com>
601 * exceptions.c (print_any_exception): Delete.
602 (catch_exceptions_with_msg): Use exception_print instead of
604 (catch_errors): Use exception_fprintf instead of
606 (catch_command_errors, catch_command_errors_const): Use
607 exception_print instead of print_any_exception.
609 2014-07-14 Pedro Alves <palves@redhat.com>
611 * infcall.c (run_inferior_call): Set 'sync_execution' while
612 running the inferior call.
614 2014-07-14 Pedro Alves <palves@redhat.com>
616 * value.c (value_contents_equal): Delete function.
617 * value.h (value_contents_equal): Delete declaration.
619 2014-07-14 Tom Tromey <tromey@redhat.com>
622 * gdbtypes.c (is_dynamic_type_internal): New function, from
624 (is_dynamic_type): Rewrite.
625 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
626 (resolve_dynamic_struct): Likewise.
627 (resolve_dynamic_type_internal): New function, from
628 resolve_dynamic_type.
629 (resolve_dynamic_type): Rewrite.
631 2014-07-14 Tom Tromey <tromey@redhat.com>
633 * target.c (target_require_runnable): Also check record_stratum.
636 2014-07-11 Yao Qi <yao@codesourcery.com>
638 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
639 thumb_instruction_restores_sp return true.
641 2014-07-11 Yao Qi <yao@codesourcery.com>
643 * arm-tdep.c (thumb_instruction_restores_sp): New function.
644 (thumb_in_function_epilogue_p): Call
645 thumb_instruction_restores_sp.
647 2014-07-11 Yao Qi <yao@codesourcery.com>
649 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
651 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
653 2014-07-11 Gary Benson <gbenson@redhat.com>
655 * amd64-linux-nat.c (gdbcore.h): Remove include.
656 (regset.h): Likewise.
657 (nat/linux-btrace.h): Likewise.
658 (btrace.h): Likewise.
659 (gdb_assert.h): Likewise.
660 (string.h): Likewise.
661 (sys/uio.h): Likewise.
662 (sys/debugreg.h): Likewise.
663 (sys/syscall.h): Likewise.
664 (sys/procfs.h): Likewise.
665 (sys/user.h): Likewise.
666 (asm/ptrace.h): Likewise.
667 (i386-nat.h): Likewise.
668 * i386-linux-nat.c (i386-nat.h): Likewise.
669 (regset.h): Likewise.
670 (target.h): Likewise.
671 (linux-nat.h): Likewise.
672 (nat/linux-btrace.h): Likewise.
673 (btrace.h): Likewise.
674 (gdb_assert.h): Likewise.
675 (string.h): Likewise.
676 (sys/uio.h): Likewise.
677 (sys/user.h): Likewise.
678 (sys/procfs.h): Likewise.
679 (sys/reg.h): Likewise.
680 (sys/debugreg.h): Likewise.
681 (ORIG_EAX): Remove definition.
683 2014-07-11 Gary Benson <gbenson@redhat.com>
685 * i386-linux-nat.h: New file.
686 * x86-linux-nat.h: Likewise.
687 * x86-linux-nat.c: Likewise.
688 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
689 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
690 * config/i386/linux64.mh (NATDEPFILES): Likewise.
691 * amd64-linux-nat.c (x86-linux-nat.h): New include.
692 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
693 (PTRACE_SETREGSET): Likewise.
694 (arch_lwp_info): Now in x86-linux-nat.c.
695 (have_ptrace_getregset): Now in x86-linux-nat.h.
696 (x86_linux_dr_get): Now in x86-linux-nat.c.
697 (x86_linux_dr_set): Likewise.
698 (x86_linux_dr_get_addr): Likewise.
699 (x86_linux_dr_get_control): Likewise.
700 (x86_linux_dr_get_status): Likewise.
701 (update_debug_registers_callback): Likewise.
702 (x86_linux_dr_set_control): Likewise.
703 (x86_linux_dr_set_addr): Likewise.
704 (x86_linux_prepare_to_resume): Likewise.
705 (x86_linux_new_thread): Likewise.
706 (x86_linux_new_fork): Likewise.
707 (x86_linux_get_thread_area): Likewise.
708 (super_post_startup_inferior): Likewise.
709 (x86_linux_child_post_startup_inferior): Likewise.
710 (AMD64_LINUX_USER64_CS): Likewise.
711 (AMD64_LINUX_X32_DS): Likewise.
712 (x86_linux_read_description): Likewise.
713 (x86_linux_enable_btrace): Likewise.
714 (x86_linux_disable_btrace): Likewise.
715 (x86_linux_teardown_btrace): Likewise.
716 (x86_linux_read_btrace): Likewise.
717 (x86_linux_create_target): Likewise.
718 (x86_linux_add_target): Likewise.
719 * i386-linux-nat.c (x86-linux-nat.h): New include.
720 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
721 (PTRACE_SETREGSET): Likewise.
722 (arch_lwp_info): Now in x86-linux-nat.c.
723 (have_ptrace_getregset): Now in x86-linux-nat.h.
724 (x86_linux_dr_get): Now in x86-linux-nat.c.
725 (x86_linux_dr_set): Likewise.
726 (x86_linux_dr_get_addr): Likewise.
727 (x86_linux_dr_get_control): Likewise.
728 (x86_linux_dr_get_status): Likewise.
729 (update_debug_registers_callback): Likewise.
730 (x86_linux_dr_set_control): Likewise.
731 (x86_linux_dr_set_addr): Likewise.
732 (x86_linux_prepare_to_resume): Likewise.
733 (x86_linux_new_thread): Likewise.
734 (x86_linux_new_fork): Likewise.
735 (x86_linux_get_thread_area): Likewise.
736 (super_post_startup_inferior): Likewise.
737 (x86_linux_child_post_startup_inferior): Likewise.
738 (AMD64_LINUX_USER64_CS): Likewise.
739 (AMD64_LINUX_X32_DS): Likewise.
740 (x86_linux_read_description): Likewise.
741 (x86_linux_enable_btrace): Likewise.
742 (x86_linux_disable_btrace): Likewise.
743 (x86_linux_teardown_btrace): Likewise.
744 (x86_linux_read_btrace): Likewise.
745 (x86_linux_create_target): Likewise.
746 (x86_linux_add_target): Likewise.
748 2014-07-11 Gary Benson <gbenson@redhat.com>
750 * amd64-linux-nat.c: Comment and whitespace changes.
751 * i386-linux-nat.c: Comment and whitespace changes.
753 2014-07-11 Gary Benson <gbenson@redhat.com>
755 * amd64-linux-nat.c (x86_linux_create_target): New function.
756 (x86_linux_add_target): Likewise.
757 (_initialize_amd64_linux_nat): Delegate to the above new functions.
758 * i386-linux-nat.c (x86_linux_create_target): New function.
759 (x86_linux_add_target): Likewise.
760 (_initialize_i386_linux_nat): Delegate to the above new functions.
762 2014-07-11 Gary Benson <gbenson@redhat.com>
764 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
765 (ps_get_thread_area): Delegate to the above in 32-bit mode.
766 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
767 (ps_get_thread_area): Delegate to the above.
769 2014-07-11 Gary Benson <gbenson@redhat.com>
771 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
772 x86_linux_read_description. All uses updated. amd64-specific
773 code conditionalized. Conditionalized i386-specific code added.
774 Redundant cast removed.
775 * i386-linux-nat.c (i386_linux_read_description): Renamed to
776 x86_linux_read_description. All uses updated. i386-specific
777 code conditionalized. Conditionalized amd64-specific code added.
778 One sizeof replaced with the actual type it is describing.
780 2014-07-11 Gary Benson <gbenson@redhat.com>
782 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
783 x86_linux_dr_get. All uses updated.
784 (amd64_linux_dr_set): Renamed to
785 x86_linux_dr_set. All uses updated.
786 (amd64_linux_dr_get_addr): Renamed to
787 x86_linux_dr_get_addr. All uses updated.
788 (amd64_linux_dr_get_control): Renamed to
789 x86_linux_dr_get_control. All uses updated.
790 (amd64_linux_dr_get_status): Renamed to
791 x86_linux_dr_get_status. All uses updated.
792 (amd64_linux_dr_set_control): Renamed to
793 x86_linux_dr_set_control. All uses updated.
794 (amd64_linux_dr_set_addr): Renamed to
795 x86_linux_dr_set_addr. All uses updated.
796 (amd64_linux_prepare_to_resume): Renamed to
797 x86_linux_prepare_to_resume. All uses updated.
798 (amd64_linux_new_thread): Renamed to
799 x86_linux_new_thread. All uses updated.
800 (amd64_linux_new_fork): Renamed to
801 x86_linux_new_fork. All uses updated.
802 (amd64_linux_child_post_startup_inferior): Renamed to
803 x86_linux_child_post_startup_inferior. All uses updated.
804 (amd64_linux_enable_btrace): Renamed to
805 x86_linux_enable_btrace. All uses updated.
806 (amd64_linux_disable_btrace): Renamed to
807 x86_linux_disable_btrace. All uses updated.
808 (amd64_linux_teardown_btrace): Renamed to
809 x86_linux_teardown_btrace. All uses updated.
810 (amd64_linux_read_btrace): Renamed to
811 x86_linux_read_btrace. All uses updated.
812 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
813 x86_linux_dr_get. All uses updated.
814 (i386_linux_dr_set): Renamed to
815 x86_linux_dr_set. All uses updated.
816 (i386_linux_dr_get_addr): Renamed to
817 x86_linux_dr_get_addr. All uses updated.
818 (i386_linux_dr_get_control): Renamed to
819 x86_linux_dr_get_control. All uses updated.
820 (i386_linux_dr_get_status): Renamed to
821 x86_linux_dr_get_status. All uses updated.
822 (i386_linux_dr_set_control): Renamed to
823 x86_linux_dr_set_control. All uses updated.
824 (i386_linux_dr_set_addr): Renamed to
825 x86_linux_dr_set_addr. All uses updated.
826 (i386_linux_prepare_to_resume): Renamed to
827 x86_linux_prepare_to_resume. All uses updated.
828 (i386_linux_new_thread): Renamed to
829 x86_linux_new_thread. All uses updated.
830 (i386_linux_new_fork): Renamed to
831 x86_linux_new_fork. All uses updated.
832 (i386_linux_child_post_startup_inferior): Renamed to
833 x86_linux_child_post_startup_inferior. All uses updated.
834 (i386_linux_enable_btrace): Renamed to
835 x86_linux_enable_btrace. All uses updated.
836 (i386_linux_disable_btrace): Renamed to
837 x86_linux_disable_btrace. All uses updated.
838 (i386_linux_teardown_btrace): Renamed to
839 x86_linux_teardown_btrace. All uses updated.
840 (i386_linux_read_btrace): Renamed to
841 x86_linux_read_btrace. All uses updated.
843 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
845 * remote.c (extended_remote_post_attach): New function.
846 (init_extended_remote_ops): Install it as to_post_attach method.
848 2014-07-09 Pedro Alves <palves@redhat.com>
850 * infcmd.c (attach_command_post_wait): Don't call
851 target_terminal_inferior here.
852 (attach_command): Call it here instead.
854 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
856 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
858 * c-varobj.c (c_is_path_expr_parent): New function, moved core
859 from varobj.c, with additional checks.
860 (c_varobj_ops): Fill in is_path_expr_parent field.
861 (cplus_varobj_ops): Fill in is_path_expr_parent field.
862 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
864 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
866 (varobj_default_is_path_expr_parent): New function.
867 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
868 (varobj_default_is_path_expr_parent): Declare new function.
870 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
872 * infcmd.c (finish_backward): Turn internal error into normal error.
874 2014-07-07 Pedro Alves <palves@redhat.com>
877 * remote.c (async_handle_remote_sigint)
878 (async_handle_remote_sigint_twice): Call
879 gdb_call_async_signal_handler instead of
880 mark_async_signal_handler.
882 2014-07-07 Tom Tromey <tromey@redhat.com>
884 * target-delegates.c: Rebuild.
885 * target.c (target_info_record): Remove.
886 * record.c (info_record_command): Unconditionally call
888 * target.h (struct target_ops) <to_info_record>: Use
889 TARGET_DEFAULT_IGNORE.
890 (target_info_record): Remove.
892 2014-07-07 Tom Tromey <tromey@redhat.com>
894 * target.h (struct target_ops) <to_get_thread_local_address>: Use
895 TARGET_DEFAULT_NORETURN.
896 * target.c (generic_tls_error): New function.
897 (target_translate_tls_address): Don't search target stack.
898 * target-delegates.c: Rebuild.
899 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
901 * linux-thread-db.c (thread_db_get_thread_local_address):
902 Unconditionally call beneath target.
904 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
906 * cli/cli-logging.c (pop_output_files): Assign targerr to
909 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
911 * MAINTAINERS (Write After Approval): Update my email address.
913 2014-07-02 Gary Benson <gbenson@redhat.com>
915 * proc-service.c (ps_xfer_memory): Update comment.
916 (ps_pstop): Remove unused function.
917 (ps_pcontinue): Likewise.
918 (ps_lstop): Likewise.
919 (ps_lcontinue): Likewise.
920 (ps_lgetxregsize): Likewise.
921 (ps_lgetxregs): Likewise.
922 (ps_lsetxregs): Likewise.
924 (ps_ptread): Likewise.
925 (ps_ptwrite): Likewise.
927 2014-07-01 Mark Wielaard <mjw@redhat.com>
929 * dwarf2read.c (add_array_cv_type): New function.
930 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
931 (read_tag_volatile_type): Likewise.
933 2014-07-01 Tom Tromey <tromey@redhat.com>
935 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
936 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
937 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
938 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
939 * command.h (cmd_cfunc_ftype): Move earlier.
940 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
941 (add_com, add_info): Use cmd_cfunc_ftype.
943 2014-06-30 Tom Tromey <tromey@redhat.com>
945 * symtab.c (operator_chars): Make parameters and return type
947 (file_matches): Make "files" const.
948 (struct search_symbols_data) <files>: Now const.
949 (search_symbols): Make "regexp" and "files" parameters const.
951 (symtab_symbol_info): Remove cast.
952 (rbreak_command): Update.
953 * symtab.h (search_symbols): Update.
955 2014-06-27 Yao Qi <yao@codesourcery.com>
957 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
958 Change parameter type to 'struct thread_info *'. Caller
960 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
962 * dummy-frame.c (struct dummy_frame_id): New.
963 (dummy_frame_id_eq): New function.
964 (struct dummy_frame) <id>: Change its type to 'struct
966 (dummy_frame_push): Add parameter ptid and save it in
968 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
970 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
972 (lookup_dummy_frame): Change parameter type to 'struct
973 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
974 instead of frame_id_eq.
975 (dummy_frame_pop): Add parameter ptid. Callers updated.
976 Update comments. Compose dummy_frame_id and pass it to
978 (dummy_frame_discard): Add parameter ptid.
979 (dummy_frame_sniffer): Compose dummy_frame_id and call
980 dummy_frame_id_eq instead of frame_id_eq.
981 (fprint_dummy_frames): Print ptid.
982 * dummy-frame.h: Remove comments.
983 (dummy_frame_push): Add ptid in declaration.
984 (dummy_frame_pop, dummy_frame_discard): Likewise.
986 2014-06-26 Tom Tromey <tromey@redhat.com>
988 * cli/cli-cmds.c (error_no_arg): Make "why" const.
989 * command.h (error_no_arg): Update.
991 2014-06-26 Tom Tromey <tromey@redhat.com>
993 * cli/cli-setshow.c (do_set_command): Make "arg" const.
994 (do_show_command): Make "arg" const.
995 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
997 2014-06-26 Tom Tromey <tromey@redhat.com>
999 * record-full.c (record_full_get_bookmark): Make "args" const.
1000 (record_full_goto_bookmark): Make "raw_bookmark" const.
1001 * record.c (record_goto): New function.
1002 (cmd_record_goto): Use it. Now static.
1003 * record.h (record_goto): Declare.
1004 (cmd_record_goto): Remove declaration.
1005 * target-delegates.c: Rebuild.
1006 * target.h (struct target_ops) <to_get_bookmark,
1007 to_goto_bookmark>: Make parameter const.
1009 2014-06-26 Tom Tromey <tromey@redhat.com>
1011 * defs.h (generic_load): Update.
1012 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1013 * monitor.c (monitor_load): Make "args" const.
1014 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1015 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1017 (mips_load): Make "file" const.
1018 * remote-sim.c (gdbsim_load): Make "args" const.
1019 * remote.c (remote_load): Make "name" const.
1020 * symfile.c (generic_load): Make "args" const.
1021 * target-delegates.c: Rebuild.
1022 * target.c (target_load): Make "arg" const.
1023 (debug_to_load): Make "args" const.
1024 * target.h (struct target_ops) <to_load>: Make parameter const.
1025 (target_load): Update.
1027 2014-06-26 Tom Tromey <tromey@redhat.com>
1030 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1031 (dwarf2_physname, read_partial_die)
1032 (guess_partial_die_structure_name, fixup_partial_die)
1033 (guess_full_die_structure_name, anonymous_struct_prefix)
1034 (dwarf2_name): Use per-BFD obstack.
1036 2014-06-26 Yao Qi <yao@codesourcery.com>
1038 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1039 dummyframe and this_id into inner block below.
1041 2014-06-26 Yao Qi <yao@codesourcery.com>
1043 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1044 with "signal_pass[0]" in the initialization of signal_pass.
1046 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1048 * record-btrace.c (record_btrace_generating_corefile)
1049 (record_btrace_prepare_to_generate_core)
1050 (record_btrace_done_generating_core): New.
1051 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1052 (record_btrace_store_registers, record_btrace_prepare_to_store):
1053 Forward request when generating a core file.
1054 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1055 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1056 to_done_generating_core.
1058 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1060 * target.h (target_ops) <to_prepare_to_generate_core>
1061 <to_done_generating_core>: New.
1062 (target_prepare_to_generate_core, target_done_generating_core): New.
1063 * target.c (target_prepare_to_generate_core)
1064 (target_done_generating_core): New.
1065 * target-delegates.c: Regenerate.
1066 * gcore.c: (write_gcore_file): Rename to ...
1067 (write_gcore_file_1): ...this.
1068 (write_gcore_file): Call target_prepare_to_generate_core
1069 and target_done_generating_core.
1071 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1073 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1074 * gcore.c (write_gcore_file): Free memory returned from
1075 make_corefile_notes.
1076 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1077 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1079 2014-06-24 Yao Qi <yao@codesourcery.com>
1081 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1082 (arm_linux_init_abi): Set skip_trampoline_code with
1083 gdbarch_skip_trampoline_code instead of
1084 find_solib_trampoline_target.
1086 2014-06-24 Yao Qi <yao@codesourcery.com>
1088 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1089 arm_skip_bx_reg returns non-zero.
1091 2014-06-24 Yao Qi <yao@codesourcery.com>
1093 * arm-tdep.c (arm_skip_bx_reg): New function.
1094 (arm_skip_stub): Call arm_skip_bx_reg.
1096 2014-06-23 Don Breazeal <donb@codesourcery.com>
1098 * MAINTAINERS: Add myself as write-after-approval maintainer.
1100 2014-06-23 Pedro Alves <palves@redhat.com>
1102 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1103 DR_CONTROL before setting DR0..DR3.
1104 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1105 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1106 bits of DR_CONTROL related to the debug register slot being
1107 disabled. If all slots are vacant, clear local slowdown as well,
1108 and assert DR_CONTROL is 0.
1110 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1112 * python/lib/gdb/command/xmethods.py
1113 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1114 current progspace only if the string "progspace" matches LOCUS_RE.
1116 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1118 Fix --with-system-readline with readline-6.3 patch 5.
1119 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1120 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1123 2014-06-20 Tom Tromey <tromey@redhat.com>
1125 * dwarf2read.c (dw2_get_real_path): Use correct type in
1127 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1129 2014-06-20 Gary Benson <gbenson@redhat.com>
1131 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1132 * common/glibc_thread_db.h: Likewise.
1133 * common/i386-cpuid.h: Likewise.
1134 * common/i386-gcc-cpuid.h: Likewise.
1135 * common/linux-btrace.h: Likewise.
1136 * common/linux-osdata.h: Likewise.
1137 * common/linux-procfs.h: Likewise.
1138 * common/linux-ptrace.h: Likewise.
1139 * common/mips-linux-watch.h: Likewise.
1140 * common/linux-btrace.c: Moved to nat.
1141 * common/linux-osdata.c: Likewise.
1142 * common/linux-procfs.c: Likewise.
1143 * common/linux-ptrace.c: Likewise.
1144 * common/mips-linux-watch.c: Likewise.
1145 * nat/gdb_thread_db.h: Moved from common.
1146 * nat/glibc_thread_db.h: Likewise.
1147 * nat/i386-cpuid.h: Likewise.
1148 * nat/i386-gcc-cpuid.h: Likewise.
1149 * nat/linux-btrace.c: Likewise.
1150 * nat/linux-btrace.h: Likewise.
1151 * nat/linux-osdata.c: Likewise.
1152 * nat/linux-osdata.h: Likewise.
1153 * nat/linux-procfs.c: Likewise.
1154 * nat/linux-procfs.h: Likewise.
1155 * nat/linux-ptrace.c: Likewise.
1156 * nat/linux-ptrace.h: Likewise.
1157 * nat/mips-linux-watch.c: Likewise.
1158 * nat/mips-linux-watch.h: Likewise.
1159 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1160 (object file files): Reordered.
1161 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1162 of glibc_thread_db.h.
1164 2014-06-20 Gary Benson <gbenson@redhat.com>
1166 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1167 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1168 (i386_dr_low): Likewise.
1169 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1170 (i386_dr_low_set_addr): Likewise.
1171 (i386_dr_low_get_addr): Likewise.
1172 (i386_dr_low_can_set_control): Likewise.
1173 (i386_dr_low_set_control): Likewise.
1174 (i386_dr_low_get_control): Likewise.
1175 (i386_dr_low_get_status): Likewise.
1176 (i386_get_debug_register_length): Likewise.
1177 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1178 (i386_dr_low): Likewise.
1179 * nat/i386-dregs.c (i386-low.h): Remove include.
1180 (i386-nat.h): Likewise.
1181 (nat/i386-dregs.h): New include.
1182 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1183 (i386_dr_low_set_addr): Likewise.
1184 (i386_dr_low_get_addr): Likewise.
1185 (i386_dr_low_can_set_control): Likewise.
1186 (i386_dr_low_set_control): Likewise.
1187 (i386_dr_low_get_control): Likewise.
1188 (i386_dr_low_get_status): Likewise.
1189 (i386_get_debug_register_length): Likewise.
1190 (debug_hw_points): Likewise.
1192 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1194 * Makefile.in (SFILES): Add d-exp.y.
1195 (YYFILES): Add d-exp.c.
1196 (YYOBJ): Add d-exp.o.
1197 (local-maintainer-clean): Delete d-exp.c.
1198 * d-exp.y: New file.
1199 * d-lang.h (d_parse): New declaration.
1200 (d_error): New declaration.
1201 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1202 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1203 PREC_ORDER operators.
1204 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1206 2014-06-19 Yao Qi <yao@codesourcery.com>
1208 * gdbthread.h (any_running): Remove the declaration.
1209 * thread.c (any_running): Remove.
1211 2014-06-19 Yao Qi <yao@codesourcery.com>
1213 * gdbthread.h (struct thread_info) <state>: Change its type to
1214 'enum thread_state'. Update comments.
1216 2014-06-19 Pedro Alves <palves@redhat.com>
1218 * gdbthread.h (ALL_THREADS): Delete.
1219 (ALL_NON_EXITED_THREADS): New macro.
1220 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1221 instead of ALL_THREADS.
1222 * infrun.c (find_thread_needs_step_over)
1223 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1224 instead of ALL_THREADS.
1225 * record-btrace.c (record_btrace_open)
1226 (record_btrace_stop_recording, record_btrace_close)
1227 (record_btrace_is_replaying, record_btrace_resume)
1228 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1229 * remote.c (append_pending_thread_resumptions): Likewise.
1230 * thread.c (thread_apply_all_command): Likewise.
1232 2014-06-19 Gary Benson <gbenson@redhat.com>
1234 * i386-nat.c (i386_stopped_by_watchpoint):
1235 Use i386_dr_stopped_by_watchpoint.
1236 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1237 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1239 2014-06-19 Gary Benson <gbenson@redhat.com>
1241 * nat/i386-dregs.c: New file.
1242 * Makefile.in (i386-dregs.o): New rule.
1243 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1244 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1245 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1246 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1247 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1248 * config/i386/go32.mh (NATDEPFILES): Likewise.
1249 * config/i386/linux.mh (NATDEPFILES): Likewise.
1250 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1251 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1252 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1253 * i386-nat.h (debug_hw_points): New declaration.
1254 * i386-nat.c (breakpoint.h): Remove include.
1255 (command.h): Likewise.
1256 (target.h): Likewise.
1257 (gdb_assert.h): Likewise.
1258 (debug_hw_points): Made nonstatic.
1259 (debug_printf): Now in i386-dregs.c.
1260 (TARGET_HAS_DR_LEN_8): Likewise.
1261 (DR_CONTROL_SHIFT): Likewise.
1262 (DR_CONTROL_SIZE): Likewise.
1263 (DR_RW_EXECUTE): Likewise.
1264 (DR_RW_WRITE): Likewise.
1265 (DR_RW_READ): Likewise.
1266 (DR_RW_IORW): Likewise.
1267 (DR_LEN_1): Likewise.
1268 (DR_LEN_2): Likewise.
1269 (DR_LEN_4): Likewise.
1270 (DR_LEN_8): Likewise.
1271 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1272 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1273 (DR_ENABLE_SIZE): Likewise.
1274 (DR_LOCAL_SLOWDOWN): Likewise.
1275 (DR_GLOBAL_SLOWDOWN): Likewise.
1276 (DR_CONTROL_RESERVED): Likewise.
1277 (I386_DR_CONTROL_MASK): Likewise.
1278 (I386_DR_VACANT): Likewise.
1279 (I386_DR_LOCAL_ENABLE): Likewise.
1280 (I386_DR_GLOBAL_ENABLE): Likewise.
1281 (I386_DR_DISABLE): Likewise.
1282 (I386_DR_SET_RW_LEN): Likewise.
1283 (I386_DR_GET_RW_LEN): Likewise.
1284 (I386_DR_WATCH_HIT): Likewise.
1285 (i386_wp_op_t): Likewise.
1286 (i386_show_dr): Likewise.
1287 (i386_length_and_rw_bits): Likewise.
1288 (i386_insert_aligned_watchpoint): Likewise.
1289 (i386_remove_aligned_watchpoint): Likewise.
1290 (i386_handle_nonaligned_watchpoint): Likewise.
1291 (i386_update_inferior_debug_regs): Likewise.
1292 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1293 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1294 (i386_region_ok_for_watchpoint):
1295 Use i386_dr_region_ok_for_watchpoint.
1296 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1298 2014-06-19 Gary Benson <gbenson@redhat.com>
1300 * i386-nat.c (i386_insert_hw_breakpoint): Use
1301 i386_insert_watchpoint.
1302 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1304 2014-06-19 Gary Benson <gbenson@redhat.com>
1306 * i386-nat.c (i386_dr_show): Renamed to
1307 i386_show_dr and made static. All uses updated.
1308 (i386_dr_length_and_rw_bits): Renamed to
1309 i386_length_and_rw_bits and made static.
1311 (i386_dr_insert_aligned_watchpoint): Renamed to
1312 i386_insert_aligned_watchpoint and made static.
1314 (i386_dr_remove_aligned_watchpoint): Renamed to
1315 i386_remove_aligned_watchpoint and made static.
1317 (i386_dr_update_inferior_debug_regs): Renamed to
1318 i386_update_inferior_debug_regs and made static.
1320 * nat/i386-dregs.h (i386_dr_show): Removed.
1321 (i386_dr_length_and_rw_bits): Likewise.
1322 (i386_dr_insert_aligned_watchpoint): Likewise.
1323 (i386_dr_remove_aligned_watchpoint): Likewise.
1324 (i386_dr_update_inferior_debug_regs): Likewise.
1326 2014-06-19 Gary Benson <gbenson@redhat.com>
1328 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1329 * configure: Regenerate.
1330 * config.in: Likewise.
1331 * main.c (signal.h): New include.
1332 (setup_alternate_signal_stack): New function.
1333 (captured_main): Call the above.
1334 * cp-support.c (signal.h): New include.
1335 (catch_demangler_crashes): New flag.
1336 (SIGJMP_BUF): New define.
1337 (SIGSETJMP): Likewise.
1338 (SIGLONGJMP): Likewise.
1339 (gdb_demangle_jmp_buf): New static global.
1340 (gdb_demangle_attempt_core_dump): Likewise.
1341 (gdb_demangle_signal_handler): New function.
1342 (gdb_demangle): If catch_demangler_crashes is set, install the
1343 above signal handler before calling bfd_demangle, and restore
1344 the original signal handler afterwards. Display the offending
1345 symbol and call demangler_warning the first time a segmentation
1347 (_initialize_cp_support): New maint set/show command.
1349 2014-06-19 Gary Benson <gbenson@redhat.com>
1351 * utils.h (resource_limit_kind): New enum.
1352 (can_dump_core): New declaration.
1353 (warn_cant_dump_core): Likewise.
1354 (dump_core): Likewise.
1355 * utils.c (dump_core): Made nonstatic. Added new
1356 parameter "limit_kind".
1357 (can_dump_core): Made nonstatic. Moved printing code to...
1358 (warn_cant_dump_core): New function.
1359 (can_dump_core_warn): Likewise.
1360 (internal_vproblem): Replace calls to can_dump_core with
1361 calls to can_dump_core_warn. Supply new argument to each.
1363 2014-06-19 Gary Benson <gbenson@redhat.com>
1365 * utils.h (demangler_vwarning): New declaration.
1366 (demangler_warning): Likewise.
1367 * utils.c (struct internal_problem)
1368 <user_settable_should_quit>: New field.
1369 <user_settable_should_dump_core>: Likewise
1370 (internal_error_problem): Add values for above new fields.
1371 (internal_warning_problem): Likewise.
1372 (demangler_warning_problem): New static global.
1373 (demangler_vwarning): New function.
1374 (demangler_warning): Likewise.
1375 (add_internal_problem_command): Selectively add commands.
1376 (_initialize_utils): New internal problem command.
1377 * maint.c (maintenance_demangler_warning): New function.
1378 (_initialize_maint_cmds): New command.
1380 2014-06-18 Tom Tromey <tromey@redhat.com>
1382 * f-valprint.c (info_common_command_for_block): Update.
1383 * symtab.h (struct general_symbol_info) <common_block>: Now
1386 2014-06-18 Tom Tromey <tromey@redhat.com>
1388 * symtab.h (struct symtab) <blockvector>: Now const.
1389 * ada-lang.c (ada_add_global_exceptions): Update.
1390 * buildsym.c (augment_type_symtab): Update.
1391 * dwarf2read.c (dw2_lookup_symbol): Update.
1392 * jit.c (finalize_symtab): Update.
1393 * jv-lang.c (add_class_symtab_symbol): Update.
1394 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1396 * objfiles.c (objfile_relocate1): Update.
1397 * psymtab.c (lookup_symbol_aux_psymtabs)
1398 (maintenance_check_psymtabs): Update.
1399 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1401 * spu-tdep.c (spu_catch_start): Update.
1402 * symmisc.c (dump_symtab_1): Update.
1403 * symtab.c (lookup_global_symbol_from_objfile)
1404 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1405 (basic_lookup_transparent_type_quick)
1406 (basic_lookup_transparent_type, find_pc_sect_symtab)
1407 (find_pc_sect_line, search_symbols): Update.
1408 * block.c (find_block_in_blockvector): Make "bl" const.
1409 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1411 (blockvector_contains_pc): Make "bv" const.
1412 (block_for_pc_sect): Update.
1413 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1414 (blockvector_contains_pc): Update.
1415 * breakpoint.c (resolve_sal_pc): Update.
1416 * inline-frame.c (block_starting_point_at): Update.
1418 2014-06-18 Tom Tromey <tromey@redhat.com>
1420 * completer.c (complete_line): Make "line_buffer" const.
1421 * completer.h (complete_line): Update.
1423 2014-06-18 Tom Tromey <tromey@redhat.com>
1425 * symtab.c (add_macro_name): Remove unneeded cast.
1427 2014-06-18 Tom Tromey <tromey@redhat.com>
1429 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1430 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1432 2014-06-18 Tom Tromey <tromey@redhat.com>
1434 * probe.c (info_probes_for_ops): Make "arg" const.
1435 * probe.h (info_probes_for_ops): Update.
1437 2014-06-18 Tom Tromey <tromey@redhat.com>
1439 * varobj.c (varobj_create): Update.
1440 * valops.c (value_of_this): Update.
1441 * tracepoint.c (add_local_symbols, scope_info): Update.
1442 * symtab.h (struct general_symbol_info) <block>: Now const.
1443 * symtab.c (skip_prologue_sal)
1444 (default_make_symbol_completion_list_break_on)
1445 (skip_prologue_using_sal): Update.
1446 * stack.h (iterate_over_block_locals)
1447 (iterate_over_block_local_vars): Update.
1448 * stack.c (print_frame_args): Update.
1449 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1451 (get_selected_block): Make return type const.
1452 * python/py-frame.c (frapy_block): Update.
1453 * python/py-block.c (gdbpy_block_for_pc): Update.
1454 * p-exp.y (%union) <bval>: Now const.
1455 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1456 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1457 * m2-exp.y (%union) <bval>: Now const.
1458 * linespec.c (get_current_search_block): Make return type const.
1459 (create_sals_line_offset, find_label_symbols): Update.
1460 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1462 (block_starting_point_at): Make "block" const.
1463 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1464 (check_exception_resume): Update.
1465 * guile/scm-frame.c (gdbscm_frame_block): Update.
1466 * guile/scm-block.c (gdbscm_lookup_block): Update.
1467 * frame.h (get_frame_block): Update.
1468 (get_selected_block): Make return type const.
1469 * frame.c (frame_id_inner): Update.
1470 * f-valprint.c (info_common_command_for_block)
1471 (info_common_command): Update.
1472 * dwarf2loc.c (dwarf2_find_location_expression)
1473 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1474 (locexpr_describe_location_piece): Update.
1475 * c-exp.y (%union) <bval>: Now const.
1476 * breakpoint.c (resolve_sal_pc): Update.
1477 * blockframe.c (get_frame_block):Make return type const.
1478 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1479 (block_innermost_frame): Update.
1480 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1481 (block_for_pc, block_for_pc_sect): Update.
1482 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1484 (block_for_pc_sect, block_for_pc): Make return type const.
1485 * ax-gdb.c (gen_expr): Update.
1486 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1487 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1488 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1489 (ada_read_var_value): Update.
1490 * ada-exp.y (struct name_info) <block>: Now const.
1492 (block_lookup): Constify.
1494 2014-06-18 Gary Benson <gbenson@redhat.com>
1496 * nat/i386-dregs.h: New file.
1497 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1498 * i386-nat.h (i386-dregs.h): New include.
1499 (DR_FIRSTADDR): Now in i386-dregs.h.
1500 (DR_LASTADDR): Likewise.
1501 (DR_NADDR): Likewise.
1502 (DR_STATUS): Likewise.
1503 (DR_CONTROL): Likewise.
1504 (i386_debug_reg_state): Likewise.
1505 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1507 2014-06-18 Don Breazeal <donb@codesourcery.com>
1509 * breakpoint.c (set_longjmp_breakpoint): Call
1510 momentary_breakpoint_from_master with additional argument.
1511 (set_longjmp_breakpoint_for_call_dummy): Call
1512 momentary_breakpoint_from_master with additional argument.
1513 (set_std_terminate_breakpoint): Call
1514 momentary_breakpoint_from_master with additional argument.
1515 (momentary_breakpoint_from_master): Add argument to function
1516 definition and use it to initialize structure member flag.
1517 (clone_momentary_breakpoint): Call
1518 momentary_breakpoint_from_master with additional argument.
1519 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1520 member flags set in momentary_breakpoint_from_master.
1522 2014-06-18 Gary Benson <gbenson@redhat.com>
1524 * i386-nat.c (i386_show_dr): Renamed to
1525 i386_dr_show and made nonstatic. All uses updated.
1526 (i386_length_and_rw_bits): Renamed to
1527 i386_dr_length_and_rw_bits and made nonstatic.
1529 (i386_insert_aligned_watchpoint): Renamed to
1530 i386_dr_insert_aligned_watchpoint and made nonstatic.
1532 (i386_remove_aligned_watchpoint): Renamed to
1533 i386_dr_remove_aligned_watchpoint and made nonstatic.
1535 (i386_update_inferior_debug_regs): Renamed to
1536 i386_dr_update_inferior_debug_regs and made nonstatic.
1539 2014-06-18 Gary Benson <gbenson@redhat.com>
1541 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1542 (i386_dr_low_can_set_control): Likewise.
1543 (i386_dr_low_set_addr): Likewise.
1544 (i386_dr_low_set_control): Likewise.
1545 (i386_dr_low_get_addr): Likewise.
1546 (i386_dr_low_get_status): Likewise.
1547 (i386_dr_low_get_control): Likewise.
1548 (i386_insert_aligned_watchpoint): Use new macros.
1549 (i386_update_inferior_debug_regs): Likewise.
1550 (i386_stopped_data_address): Likewise.
1552 2014-06-18 Gary Benson <gbenson@redhat.com>
1554 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1555 New parameter. All uses updated.
1557 2014-06-18 Gary Benson <gbenson@redhat.com>
1559 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1562 2014-06-18 Gary Benson <gbenson@redhat.com>
1564 * i386-nat.c (debug_printf): New macro.
1565 (i386_get_debug_register_length): Likewise.
1566 (TARGET_HAS_DR_LEN_8): Use above macro.
1567 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1568 and printf_unfiltered. Use phex to format values.
1570 2014-06-18 Gary Benson <gbenson@redhat.com>
1572 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1575 2014-06-18 Gary Benson <gbenson@redhat.com>
1577 * i386-nat.c: Comment changes.
1579 2014-06-18 Gary Benson <gbenson@redhat.com>
1581 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1583 2014-06-18 Gary Benson <gbenson@redhat.com>
1585 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1586 (i386_insert_aligned_watchpoint): Likewise.
1587 (i386_remove_aligned_watchpoint): Likewise.
1588 (i386_handle_nonaligned_watchpoint): Likewise.
1590 2014-06-18 Gary Benson <gbenson@redhat.com>
1592 * i386-nat.c: Whitespace changes.
1594 2014-06-17 Samuel Bronson <naesten@gmail.com>
1596 * MAINTAINERS: Update Roland McGrath's email address.
1597 Thanks to Sergio Durigan Junior for pointing out that he left
1598 Red Hat a while ago, and giving me a current address.
1600 2014-06-17 Tom Tromey <tromey@redhat.com>
1602 * utils.h (savestring): Remove declaration.
1604 2014-06-17 Tom Tromey <tromey@redhat.com>
1606 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1608 2014-06-16 Keith Seitz <keiths@redhat.com>
1611 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1612 to update the varobj if inferior_ptid is null_ptid.
1614 2014-06-16 Tom Tromey <tromey@redhat.com>
1616 * target.h (struct target_ops) <to_info_proc>: Make parameter
1618 (target_info_proc): Update.
1619 * target.c (target_info_proc): Make "args" const.
1620 * procfs.c (procfs_info_proc): Update.
1621 * linux-tdep.c (linux_info_proc): Update.
1622 (linux_core_info_proc_mappings): Make "args" const.
1623 (linux_core_info_proc): Update.
1624 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1625 * gdbarch.c: Rebuild.
1626 * gdbarch.h: Rebuild.
1627 * corelow.c (core_info_proc): Update.
1629 2014-06-16 Tom Tromey <tromey@redhat.com>
1631 * target.h (struct target_ops) <to_disconnect>: Make parameter
1633 (target_disconnect): Update.
1634 * target.c (target_disconnect): Make "args" const.
1635 * target-delegates.c: Rebuild.
1636 * remote.c (remote_disconnect): Update.
1637 * record.h (record_disconnect): Update.
1638 * record.c (record_disconnect): Update.
1639 * inf-child.c (inf_child_disconnect): Update.
1641 2014-06-16 Tom Tromey <tromey@redhat.com>
1643 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1644 * target.c (debug_to_rcmd, default_rcmd): Update.
1645 * target-delegates.c: Rebuild.
1646 * remote.c (remote_rcmd): Update.
1647 * monitor.c (monitor_rcmd): Update.
1649 2014-06-16 Pedro Alves <palves@redhat.com>
1651 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1652 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1653 have OBJF_SHARED set.
1654 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1655 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1656 instead of OBJF_USERLOADED.
1657 * objfiles.h (OBJF_SHARED): Update comment.
1658 (userloaded_objfile_contains_address_p): Rename to ...
1659 (shared_objfile_contains_address_p): ... this, and update
1661 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1663 (remove_symbol_file_command): Skip objfiles that don't have
1666 2014-06-16 Tom Tromey <tromey@redhat.com>
1668 * minsyms.h (prim_record_minimal_symbol)
1669 (prim_record_minimal_symbol_and_info): Update comments.
1671 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1673 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1674 or --without-guile, according to how GDB was built.
1676 2014-06-13 Tom Tromey <tromey@redhat.com>
1678 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1680 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1682 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1684 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1685 help_list.Pass all_commands, not -1, to help_list.
1686 * cli/cli-dump.c (dump_command, append_command)
1687 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1688 (binary_dump_command, binary_append_command): Pass all_commands,
1689 not -1, to help_list.
1690 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1692 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1694 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1696 * top.c (set_history): Pass all_commands, not -1, to help_list.
1697 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1698 all_commands, not -1, to help_list.
1699 * symfile.c (overlay_command): Pass all_commands, not -1, to
1701 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1703 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1705 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1707 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1708 not -1, to help_list.
1709 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1710 not -1, to help_list.
1711 * maint.c (maintenance_command, maintenance_info_command)
1712 (maintenance_print_command, maintenance_set_cmd): Pass
1713 all_commands, not -1, to help_list.
1714 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1716 * language.c (set_check): Pass all_commands, not -1, to help_list.
1717 * infcmd.c (unset_command): Pass all_commands, not -1, to
1719 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1721 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1723 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1725 * breakpoint.c (save_command): Pass all_commands, not -1, to
1727 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1728 all_commands, not -1, to help_list.
1730 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1732 * regcache.c (struct register_to_invalidate): New structure.
1733 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1735 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1737 2014-06-12 Yao Qi <yao@codesourcery.com>
1739 * varobj.c (varobj_get_num_children): Call
1740 varobj_is_dynamic_p.
1741 (varobj_list_children): Likewise.
1742 (varobj_update): Likewise. Update comments.
1744 2014-06-12 Yao Qi <yao@codesourcery.com>
1746 * varobj.c (varobj_pretty_printed_p): Rename to ...
1747 (varobj_is_dynamic_p): ... this. New function.
1748 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1749 (varobj_is_dynamic_p): Declare.
1750 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1751 (mi_print_value_p, varobj_update_one): Likewise.
1753 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1754 Yao Qi <yao@codesourcery.com>
1756 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1757 (varobj_get_iterator): Wrap up code for pretty-printer by
1758 "#if HAVE_PYTHON" and "#endif".
1759 (update_dynamic_varobj_children): Likewise.
1761 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1762 Yao Qi <yao@codesourcery.com>
1764 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1765 gdb_python_initialized is false. Move some code from varobj.c.
1766 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1767 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1768 (struct varobj_item): Moved to varobj-iter.h".
1769 (varobj_clear_saved_item): New function.
1770 (update_dynamic_varobj_children): Move python-related code to
1772 (free_variable): Call varobj_clear_saved_item and
1775 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1776 Yao Qi <yao@codesourcery.com>
1778 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1779 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1780 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1781 (py-varobj.o): New rule.
1782 * python/py-varobj.c: New file.
1783 * python/python-internal.h (py_varobj_get_iterator): Declare.
1784 * varobj-iter.h: New file.
1785 * varobj.c: Include "varobj-iter.h"
1786 (struct varobj) <child_iter>: Change its type from "PyObject *"
1787 to "struct varobj_iter *".
1788 <saved_item>: Likewise.
1789 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1790 [HAVE_PYTHON] (varobj_get_iterator): New function.
1791 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1792 python-specific code to python/py-varobj.c.
1793 (install_visualizer): Call varobj_iter_delete instead of
1795 * varobj.h (varobj_ensure_python_env): Declare.
1797 2014-06-12 Yao Qi <yao@codesourcery.com>
1799 * varobj.c (struct varobj_item): New structure.
1800 (create_child_with_value): Update declaration.
1801 (varobj_add_child): Replace arguments 'name' and 'value' with
1802 'item'. All callers updated.
1803 (install_dynamic_child): Likewise.
1804 (update_dynamic_varobj_children): Likewise.
1805 (varobj_add_child): Likewise.
1806 (create_child_with_value): Likewise.
1808 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1810 * NEWS: Create a new section for the next release branch.
1811 Rename the section of the current branch, now that it has
1814 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1816 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1817 * version.in: Bump version to 7.8.50.DATE-cvs.
1819 2014-06-11 Pedro Alves <palves@redhat.com>
1822 * ser-mingw.c (net_windows_socket_check_pending): New function.
1823 (net_windows_select_thread): Ignore spurious wakeups. Use
1824 net_windows_socket_check_pending.
1825 (net_windows_wait_handle): Check for pending events with
1826 ioctlsocket, through net_windows_socket_check_pending, instead of
1827 checking the socket's event.
1829 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1831 * python/python-internal.h (gdb_PyObject_GetAttrString)
1832 (gdb_PyObject_HasAttrString): New inline function definitions.
1833 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1834 char * of the second argument to PyObject_GetAttrString.
1836 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1838 * serial.c (serial_write): Fix index of character to be printed
1839 in call to serial_logchar when serial debug traces are enabled.
1841 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1843 * gdbtypes (resolve_dynamic_range): Add function description.
1845 2014-06-09 Pedro Alves <palves@redhat.com>
1847 * linux-nat.c (linux_child_follow_fork): Initialize status with
1848 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1849 inner block. Only pass the signal to PTRACE_DETACH if in pass
1852 2014-06-09 Gary Benson <gbenson@redhat.com>
1854 * common/signals.c (gdb_signal_from_host): Reorder to separate
1855 the always-available ANSI-standard signals from the signals that
1857 (do_gdb_signal_to_host): Likewise.
1858 * proc-events.c (signal_table): Likewise.
1860 2014-06-08 Hui Zhu <hui@codesourcery.com>
1862 * common/linux-ptrace.c (linux_disable_event_reporting): New
1864 * common/linux-ptrace.h (linux_disable_event_reporting): New
1866 * linux-nat.c (linux_child_follow_fork): Do a single step before
1869 2014-06-07 Keith Seitz <keiths@redhat.com>
1873 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1874 from symbol_matches_domain in symtab.c. All local callers
1875 of symbol_matches_domain updated.
1876 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1877 search STRUCT_DOMAIN.
1878 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1879 independently. standard_lookup will do that automatically.
1880 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1881 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1882 (cp_lookup_symbol_in_namespace): Likewise.
1883 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1884 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1885 may return a STRUCT_DOMAIN match.
1886 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1887 * cp-support.c: Include language.h.
1888 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1890 * psymtab.c (match_partial_symbol): Compare the requested
1891 domain with the symbol's domain directly.
1892 (lookup_partial_symbol): Likewise.
1893 * symtab.c (lookup_symbol_in_language): Explain when/why
1894 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1895 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1896 appropriate languages.
1897 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1898 and moved to ada-lang.c
1899 (lookup_block_symbol): Explain that this function only returns
1900 symbol matching the requested DOMAIN.
1901 Compare the requested domain with the symbol's domain directly.
1902 (iterate_over_symbols): Compare the requested domain with the
1903 symbol's domain directly.
1904 * symtab.h (symbol_matches_domain): Remove.
1906 2014-06-06 Doug Evans <xdje42@gmail.com>
1908 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1909 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1910 (gdbscm_guile_version_is_at_least): Declare.
1911 (gdbscm_scm_string_to_int): Declare.
1912 * guile/guile.c (gdbscm_guile_major_version): New global.
1913 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1914 (guile_datadir): New static global.
1915 (gdbscm_guile_data_directory): New function.
1916 (initialize_scheme_side): Update.
1917 (misc_guile_functions): Add guile-data-directory.
1918 (initialize_gdb_module): Fetch guile version number.
1919 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1920 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1921 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1922 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1924 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1925 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1926 * guile/scm-value.c (gdbscm_value_to_string): Only call
1927 scm_port_conversion_strategy if Guile version >= 2.0.6.
1929 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1931 * main.c (print_gdb_help): Add -q and --silent.
1933 2014-06-06 Gary Benson <gbenson@redhat.com>
1935 * common/signals.c: Remove preprocessor conditionals for
1936 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1937 SIGSEGV and SIGTERM.
1938 * proc-events.c: Likewise.
1940 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1942 * symfile.c (symfile_free_objfile): Remove restriction to
1944 * symfile-mem.c (symbol_file_add_from_memory): Call
1945 add_target_sections_of_objfile.
1947 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1949 * guile/scm-value.c (gdbscm_history_append_x): Use
1950 'vlscm_get_value_smob_arg_unsafe' instead of
1951 'vlscm_scm_to_value'.
1953 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1956 * utils.c (printchar): Don't escape at all if quoter is NUL.
1957 Update function documentation to clarify effect of parameter
1959 * remote.c (escape_buffer): Pass '\\' as the quoter to
1960 fputstrn_unfiltered.
1961 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1962 generate the output.
1963 (mi_solib_unloaded): Same.
1965 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1967 * development.sh: Delete.
1968 * Makefile.in (config.status): Adjust dependency on development.sh.
1969 * configure.ac: Adjust development.sh source call.
1970 * configure: Regenerate.
1972 2014-06-04 Doug Evans <xdje42@gmail.com>
1974 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1975 is_scheme_bkpt, spec.
1976 (bpscm_make_breakpoint_smob): Initialize new members.
1977 (gdbscm_create_breakpoint_x): Split into two ...
1978 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1979 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1980 (scheme_function breakpoint_functions): Update.
1981 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1982 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1983 register-breakpoint!.
1985 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1988 * mem-break.c (z_type_supported): Return zero if
1989 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1991 2014-06-04 Tom Tromey <tromey@redhat.com>
1993 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1994 value_from_contents_and_address_unresolved.
1995 (ada_template_to_fixed_record_type_1): Likewise.
1996 (ada_which_variant_applies): Likewise.
1997 * value.h (value_from_contents_and_address_unresolved): Declare.
1998 * value.c (value_from_contents_and_address_unresolved): New
2000 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2001 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2002 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2004 2014-06-04 Tom Tromey <tromey@redhat.com>
2006 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2008 2014-06-04 Tom Tromey <tromey@redhat.com>
2010 * procfs.c (procfs_attach): Make "args" const.
2011 * windows-nat.c (windows_attach): Make "args" const.
2012 * nto-procfs.c (procfs_attach): Make "args" const.
2013 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2014 * go32-nat.c (go32_attach): Make "args" const.
2015 * gnu-nat.c (gnu_attach): Make "args" const.
2016 * darwin-nat.c (darwin_attach): Make "args" const.
2017 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2018 * linux-nat.c (linux_nat_attach): Make "args" const.
2019 * remote.c (extended_remote_attach_1, extended_remote_attach):
2021 * target.h (struct target_ops) <to_attach>: Make "args" const.
2022 (find_default_attach): Likewise.
2023 * utils.c (parse_pid_to_attach): Make "args" const.
2024 * utils.h (parse_pid_to_attach): Update.
2026 2014-06-04 Tom Tromey <tromey@redhat.com>
2028 * target-delegates.c: Rebuild.
2029 * target.c (default_thread_address_space): New function.
2030 (target_thread_address_space): Simplify.
2031 * target.h (struct target_ops) <to_thread_address_space>: Add
2032 TARGET_DEFAULT_FUNC.
2034 2014-06-04 Doug Evans <xdje42@gmail.com>
2036 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2038 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2040 * record-btrace.c: Include event-loop.h and inf-loop.h.
2041 (record_btrace_resume_exec_dir)
2042 (record_btrace_async_inferior_event_handler)
2043 (record_btrace_handle_async_inferior_event): New.
2044 (record_btrace_open): Create async event handler.
2045 (record_btrace_close): Delete async event handler.
2046 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2047 Mark async event handler.
2048 (record_btrace_execution_direction): New.
2049 (init_record_btrace_ops): Initialize to_execution_direction.
2051 2014-06-03 Doug Evans <xdje42@gmail.com>
2053 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2054 (gdbscm_make_parameter): Ditto.
2056 2014-06-03 Doug Evans <dje@google.com>
2058 * exec.c (exec_close_1): Call clear_section_table instead of
2059 resize_section_table.
2060 (clear_section_table): New function.
2061 (resize_section_table): Make static. Rename arg num_added to
2063 * exec.h (clear_section_table): Declare.
2064 (resize_section_table): Delete.
2065 * progspace.c (release_program_space): Call clear_section_table
2066 instead of resize_section_table.
2068 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2070 * NEWS (Python Scripting): Add entry about the new xmethods
2073 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2075 * python/py-xmethods.c: New file.
2076 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2077 (objfpy_dealloc): XDECREF on the new xmethods field.
2078 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2080 (objfpy_get_xmethods): New function.
2081 (objfile_getset): New entry 'xmethods'.
2082 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2083 (pspy_dealloc): XDECREF on the new xmethods field.
2084 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2086 (pspy_get_xmethods): New function.
2087 (pspace_getset): New entry 'xmethods'.
2088 * python/python-internal.h: Add declarations for new functions.
2089 * python/python.c (_initialize_python): Invoke
2090 gdbpy_initialize_xmethods.
2091 * python/lib/gdb/__init__.py (xmethods): New
2093 * python/lib/gdb/xmethod.py: New file.
2094 * python/lib/gdb/command/xmethods.py: New file.
2096 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2098 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2099 best match method returned by find_overload_match is an xmethod.
2100 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2101 the best matching operator returned by find_overload_match is an
2103 * valops.c: #include "extension.h".
2104 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2105 Return void. The list of matching source methods is returned in
2106 "fn_list" and a vector of matching debug method workers is
2107 returned in "xm_worker_vec". Update all callers.
2108 (value_find_oload_method_list): Likewise.
2109 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2110 non-NULL, then the index of the best matching method in this
2111 vector is returned. Update all callers.
2112 (find_overload_match): Include xmethods while performing overload
2115 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2117 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2118 * extension-priv.h (struct extension_language_ops): Add the
2120 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2121 get_matching_xmethod_workers, get_xmethod_argtypes,
2122 invoke_xmethod, free_xmethod_worker,
2123 free_xmethod_worker_vec): New functions.
2124 * extension.h: #include "common/vec.h".
2125 New function declarations.
2126 (struct xmethod_worker): New struct.
2127 (VEC (xmethod_worker_ptr)): New vector type.
2128 (xmethod_worker_ptr): New typedef.
2129 (xmethod_worker_vec): Likewise.
2130 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2132 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2133 (struct builtin_type): New field "xmethod".
2134 * valarith.c (value_ptradd): Assert that the value argument is not
2136 * valops.c (value_must_coerce_to_target): Return 0 for
2137 lval_xcallable values.
2138 * value.c (struct value): New field XM_WORKER in the field
2140 (value_address, value_raw_address): Return 0 for lval_xcallable
2142 (set_value_address): Assert that the value is not an
2144 (value_free): Free the associated xmethod worker when freeing
2145 lval_xcallable values.
2146 (set_value_component_location): Assert that the WHOLE value is not
2148 (value_of_xmethod, call_xmethod): New functions.
2149 * value.h: Declare "struct xmethod_worker".
2150 Declare new functions value_of_xmethod, call_xmethod.
2152 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2153 Pedro Alves <palves@redhat.com>
2155 PR breakpoints/17000
2156 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2157 New function, extracted from software_breakpoint_inserted_here_p.
2158 (software_breakpoint_inserted_here_p): Replace factored out code
2159 by call to find_non_raw_software_breakpoint_inserted_here.
2160 (bp_target_info_copy_insertion_state): New function.
2161 (bkpt_insert_location): Handle the case of a single-step
2162 breakpoint already inserted at the same address.
2163 (bkpt_remove_location): Handle the case of a single-step
2164 breakpoint still inserted at the same address.
2165 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2166 breakpoint already inserted at the same address.
2167 (deprecated_remove_raw_breakpoint): Handle the case of a
2168 non-raw breakpoint still inserted at the same address.
2169 (find_single_step_breakpoint): New function, extracted from
2170 single_step_breakpoint_inserted_here_p.
2171 (find_single_step_breakpoint): New function,
2172 factored out from single_step_breakpoint_inserted_here_p.
2173 (single_step_breakpoint_inserted_here_p): Reimplement.
2175 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2177 Pushed by Joel Brobecker <brobecker@adacore.com>
2178 * source.c (show_substitute_path_command): Fix display of matching
2181 2014-06-03 Gary Benson <gbenson@redhat.com>
2183 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2185 2014-06-02 Doug Evans <xdje42@gmail.com>
2187 Add parameter support for Guile.
2188 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2189 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2190 (scm-param.o): New rule.
2191 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2192 (gdbscm_misc_error): Declare.
2193 (gdbscm_canonicalize_command_name): Declare.
2194 (gdbscm_scm_to_host_string): Declare.
2195 (gdbscm_scm_from_host_string): Declare.
2196 (gdbscm_initialize_parameters): Declare.
2197 * guile/guile.c (initialize_gdb_module): Call
2198 gdbscm_initialize_parameters.
2199 * guile/lib/gdb.scm: Export parameter symbols.
2200 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2201 cmdscm_canonicalize_name and made public. All callers updated.
2202 * guile/scm-exception.c (gdbscm_misc_error): New function.
2203 * guile/scm-param.c: New file.
2204 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2205 (gdbscm_scm_to_host_string): New function.
2206 (gdbscm_scm_from_host_string): New function.
2207 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2209 2014-06-02 Doug Evans <xdje42@gmail.com>
2211 Add command support for Guile.
2212 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2213 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2214 (scm-cmd.o): New rule.
2215 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2216 (gdbscm_user_error_p): Declare.
2217 (gdbscm_parse_command_name): Declare.
2218 (gdbscm_valid_command_class_p): Declare.
2219 (gdbscm_initialize_commands): Declare.
2220 * guile/guile.c (initialize_gdb_module): Call
2221 gdbscm_initialize_commands.
2222 * guile/lib/gdb.scm: Export command symbols.
2223 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2224 (throw-user-error): New function.
2225 * guile/scm-cmd.c: New file.
2226 * guile/scm-exception.c (user_error_symbol): New static global.
2227 (gdbscm_user_error_p): New function.
2228 (gdbscm_initialize_exceptions): Set user_error_symbol.
2229 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2231 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2233 * top.c (command_loop): Handle comments here...
2234 (command_line_input): ... not here.
2236 2014-06-02 Doug Evans <xdje42@gmail.com>
2238 Add progspace support for Guile.
2239 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2240 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2241 (scm-progspace.o): New rule.
2242 * guile/guile-internal.h (pspace_smob): New typedef.
2243 (psscm_pspace_smob_pretty_printers): Declare.
2244 (psscm_pspace_smob_from_pspace): Declare.
2245 (psscm_scm_from_pspace): Declare.
2246 * guile/guile.c (initialize_gdb_module): Call
2247 gdbscm_initialize_pspaces.
2248 * guile/lib/gdb.scm: Export progspace symbols.
2249 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2251 (append-pretty-printer!): Ditto.
2252 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2254 * guile/scm-progspace.c: New file.
2256 2014-06-03 Alan Modra <amodra@gmail.com>
2258 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2259 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2261 2014-06-02 Doug Evans <dje@google.com>
2263 Add support for skeletonless type units.
2264 * dwarf2read.c (struct dwarf2_per_objfile): New member
2265 n_allocated_type_units.
2266 (struct dwarf2_per_objfile) <tu_stats>: New member
2267 nr_all_type_units_reallocs.
2268 (create_signatured_type_table_from_index): Initialize
2269 n_allocated_type_units
2270 (create_all_type_units): Ditto.
2271 (add_type_unit): Move up in file. New arg slot.
2272 All callers updated. Increase space for all_type_units more
2274 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2275 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2276 (lookup_dwp_signatured_type): Ditto.
2277 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2278 All callers updated.
2279 (build_type_psymtabs_1): Leave type_unit_groups as
2280 NULL if no TUs present.
2281 (print_tu_stats): New function.
2282 (process_skeletonless_type_unit): New function.
2283 (process_dwo_file_for_skeletonless_type_units): New
2285 (process_skeletonless_type_units): New function.
2286 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2287 Call print tu_stats if debugging enabled.
2289 2014-06-02 Pedro Alves <palves@redhat.com>
2291 * breakpoint.c (build_target_command_list): Don't build a command
2292 list if we have any duplicate location that isn't a dprintf.
2294 2014-06-02 Pedro Alves <palves@redhat.com>
2296 * breakpoint.c (dprintf_breakpoint_hit): New function.
2297 (initialize_breakpoint_ops): Install it as dprintf's
2298 breakpoint_hit method.
2300 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2302 * source.c (substitute_path_rule_matches): Simplify using
2303 filename_ncmp instead of FILENAME_CMP.
2305 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2307 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2309 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2311 * configure.ac: When Guile is available, check for the
2312 availability of 'scm_new_smob'.
2313 * configure, config.h.in: Regenerate.
2314 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2317 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2319 * frame.c (struct frame_info): Add stop_string field.
2320 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2321 (get_prev_frame_always): Old content moved into
2322 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2323 TRY_CATCH, handle MEMORY_ERROR exceptions.
2324 (frame_stop_reason_string): New function definition.
2325 * frame.h (unwind_stop_reason_to_string): Extend comment to
2326 mention frame_stop_reason_string.
2327 (frame_stop_reason_string): New function declaration.
2328 * stack.c (frame_info): Switch to frame_stop_reason_string.
2329 (backtrace_command_1): Switch to frame_stop_reason_string.
2330 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2331 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2332 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2334 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2336 * frame.c (frame_stop_reason_string): Rename to ...
2337 (unwind_stop_reason_to_string): this.
2338 * frame.h (frame_stop_reason_string): Rename to ...
2339 (unwind_stop_reason_to_string): this.
2340 * stack.c (frame_info): Update call to frame_stop_reason_string.
2341 (backtrace_command_1): Likewise.
2342 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2343 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2345 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2347 * frame.c (remove_prev_frame): New function.
2348 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2351 2014-05-29 Pedro Alves <palves@redhat.com>
2353 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2354 and make it const. When a single-step decays to a continue,
2355 clear 'step', not 'hw_step'. Pass whether the caller wanted
2356 to step to user_visible_resume_ptid, not what we ask the
2359 2014-05-29 Pedro Alves <palves@redhat.com>
2361 * infrun.c (process_event_stop_test, handle_step_into_function)
2362 (handle_step_into_function_backward): Adjust.
2363 Don't set the even thread's stop_step and call stop_waiting before
2364 calling end_stepping_range. Instead do that ...
2365 (end_stepping_range): ... here. Take an ecs pointer parameter.
2367 2014-05-29 Pedro Alves <palves@redhat.com>
2369 * infrun.c (stop_stepping): Rename to ...
2370 (stop_waiting): ... this.
2371 (proceed): Update comment.
2372 (process_event_stop_test, handle_inferior_event)
2373 (handle_signal_stop, handle_step_into_function)
2374 (handle_step_into_function_backward): Update.
2376 2014-05-29 Pedro Alves <palves@redhat.com>
2378 * infcall.c (run_inferior_call): Don't check whether the current
2379 thread is running after the proceed call.
2381 2014-05-29 Pedro Alves <palves@redhat.com>
2382 Tom Tromey <tromey@redhat.com>
2384 * NEWS: Mention "maint set target-async", "set mi-async", and that
2385 background execution commands are now always available.
2386 * target.h (target_async_permitted): Update comment.
2387 * target.c (target_async_permitted, target_async_permitted_1):
2389 (set_target_async_command): Rename to ...
2390 (maint_set_target_async_command): ... this.
2391 (show_target_async_command): Rename to ...
2392 (maint_show_target_async_command): ... this.
2393 (_initialize_target): Adjust.
2394 * infcmd.c (prepare_execution_command): Make extern.
2395 * inferior.h (prepare_execution_command): Declare.
2396 * infrun.c (set_observer_mode): Leave target async alone.
2397 * mi/mi-interp.c (mi_interpreter_init): Install
2398 mi_on_sync_execution_done as sync_execution_done observer.
2399 (mi_on_sync_execution_done): New function.
2400 (mi_execute_command_input_handler): Don't print the prompt if we
2401 just started a synchronous command with an async target.
2402 (mi_on_resume): Check sync_execution before printing prompt.
2403 * mi/mi-main.h (mi_async_p): Declare.
2404 * mi/mi-main.c: Include gdbcmd.h.
2405 (mi_async_p): New function.
2406 (mi_async, mi_async_1): New globals.
2407 (set_mi_async_command, show_mi_async_command, mi_async): New
2409 (exec_continue): Call prepare_execution_command.
2410 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2411 (mi_execute_async_cli_command): Use mi_async_p.
2412 (_initialize_mi_main): Install "set mi-async". Make
2413 "target-async" a deprecated alias.
2415 2014-05-29 Pedro Alves <palves@redhat.com>
2417 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2418 (_initialize_cli_interp): Adjust.
2419 * event-loop.c: Include "observer.h".
2420 (start_event_loop): Notify 'command_error' observers instead of
2421 calling display_gdb_prompt. Remove FIXME comment.
2422 * event-top.c (display_gdb_prompt): Remove call into the
2424 * inf-loop.c: Include "observer.h".
2425 (inferior_event_handler): Notify 'command_error' observers instead
2426 of calling display_gdb_prompt.
2427 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2428 observers instead of calling display_gdb_prompt.
2429 * interps.c (interp_set): Don't call display_gdb_prompt.
2430 (current_interp_display_prompt_p): Delete.
2431 * interps.h (interp_prompt_p): Delete declaration.
2432 (interp_prompt_p_ftype): Delete.
2433 (struct interp_procs) <prompt_proc_p>: Delete field.
2434 (current_interp_display_prompt_p): Delete declaration.
2435 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2436 (_initialize_mi_interp): Adjust.
2437 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2438 'command_error' observers.
2439 (tui_on_sync_execution_done, tui_on_command_error): New
2441 (tui_display_prompt_p): Delete.
2442 (_initialize_tui_interp): Adjust.
2444 2014-05-29 Pedro Alves <palves@redhat.com>
2447 * cli/cli-interp.c: Include infrun.h and observer.h.
2448 (cli_uiout, cli_interp): New globals.
2449 (cli_on_signal_received, cli_on_end_stepping_range)
2450 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2452 (cli_interpreter_init): Install them as 'end_stepping_range',
2453 'signal_received' 'signal_exited', 'exited' and 'no_history'
2455 (_initialize_cli_interp): Remove cli_interp local.
2456 * infrun.c (handle_inferior_event): Call the several stop reason
2457 observers instead of printing the stop reason directly.
2458 (end_stepping_range): New function.
2459 (print_end_stepping_range_reason, print_signal_exited_reason)
2460 (print_exited_reason, print_signal_received_reason)
2461 (print_no_history_reason): Make static, and add an uiout
2462 parameter. Print to that instead of to CURRENT_UIOUT.
2463 * infrun.h (print_end_stepping_range_reason)
2464 (print_signal_exited_reason, print_exited_reason)
2465 (print_signal_received_reason print_no_history_reason): New
2467 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2469 <cli_uiout>: New field.
2470 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2471 uiout for CLI output. Install 'signal_received',
2472 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2474 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2475 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2476 (mi_on_no_history): New functions.
2477 (ui_out_free_cleanup): Delete function.
2478 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2479 instead use the one already stored in the MI interpreter data.
2480 (mi_ui_out): Adjust.
2481 * tui/tui-interp.c: Include infrun.h and observer.h.
2482 (tui_interp): New global.
2483 (tui_on_signal_received, tui_on_end_stepping_range)
2484 (tui_on_signal_exited, tui_on_exited)
2485 (tui_on_no_history): New functions.
2486 (tui_init): Install them as 'end_stepping_range',
2487 'signal_received' 'signal_exited', 'exited' and 'no_history'
2489 (_initialize_tui_interp): Delete tui_interp local.
2491 2014-05-29 Pedro Alves <palves@redhat.com>
2494 * linux-nat.c (linux_nat_resume_callback): Rename the second
2495 parameter to 'except'. Skip LP if it points to EXCEPT.
2496 (linux_nat_resume): Don't mark the event lwp as not stopped
2497 before resuming sibling lwps. Instead ask
2498 linux_nat_resume_callback to skip the event lwp. Mark it as not
2499 stopped after actually resuming it.
2500 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2502 (wait_lwp): Mark the lwp as stopped here.
2503 (stop_wait_callback): Mark the lwp as not stopped right after
2504 resuming it. Don't mark lwps as stopped here.
2505 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2506 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2508 2014-05-29 Pedro Alves <palves@redhat.com>
2511 * infrun.c (resume): Determine how much to resume depending on
2512 whether the caller wanted a step, not whether we can hardware step
2513 the target. Mark all threads that we intend to run as running,
2514 unless we're calling an inferior function.
2515 (normal_stop): If the thread is running an infcall, don't finish
2517 * target.c (target_resume): Don't mark threads as running here.
2519 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2521 * serial.c (_initialize_serial): Remove support for
2522 the "set remotebaud" and "show remotebaud" commands.
2523 * NEWS: Add entry documenting the removal of that command.
2525 2014-05-28 Yao Qi <yao@codesourcery.com>
2527 * charset.c: Fix typo in comments.
2529 2014-05-27 Gary Benson <gbenson@redhat.com>
2531 * utils.c (internal_vproblem): Prompt for a bug report.
2533 2014-05-26 Andy Wingo <wingo@igalia.com>
2535 * guile/scm-arch.c (arscm_mark_arch_smob):
2536 * guile/scm-block.c (bkscm_mark_block_smob)
2537 (bkscm_mark_block_syms_progress_smob):
2538 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2539 * guile/scm-exception.c (exscm_mark_exception_smob):
2540 * guile/scm-frame.c (frscm_mark_frame_smob):
2541 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2542 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2543 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2544 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2545 (ppscm_mark_pretty_printer_worker_smob):
2546 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2547 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2548 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2549 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2551 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2554 2014-05-26 Andy Wingo <wingo@igalia.com>
2555 Doug Evans <xdje42@gmail.com>
2557 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2558 empty_base_class. All uses updated.
2559 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2560 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2562 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2563 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2564 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2565 (gdbscm_gsmob_has_property_p, add_property_name)
2566 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2567 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2568 (gdb-object-has-property?, gdb-object-properties): Remove.
2569 (gdb-object-kind): Renamed from gsmob-kind.
2571 2014-05-26 Andy Wingo <wingo@igalia.com>
2573 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2574 * configure: Regenerate.
2576 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2578 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2580 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2582 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2583 (replay_memory_access_read_only, replay_memory_access_read_write)
2584 (replay_memory_access_types, replay_memory_access)
2585 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2586 (cmd_set_record_btrace, cmd_show_record_btrace)
2587 (cmd_show_replay_memory_access): New.
2588 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2589 (record_btrace_remove_breakpoint): Replace
2590 record_btrace_allow_memory_access with replay_memory_access.
2591 (_initialize_record_btrace): Add commands.
2592 * NEWS: Announce it.
2594 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2596 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2598 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2600 * MAINTAINERS (Write After Approval): Move self back from
2603 2014-05-22 Pedro Alves <palves@redhat.com>
2605 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2606 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2607 (disable_randomization, enum exec_direction_kind)
2608 (execution_direction, stop_registers, start_remote)
2609 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2610 (wait_for_inferior, normal_stop, get_last_target_status)
2611 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2612 (insert_step_resume_breakpoint_at_sal)
2613 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2614 (set_step_info, print_stop_event, signal_stop_state)
2615 (signal_print_state, signal_pass_state, signal_stop_update)
2616 (signal_print_update, signal_pass_update)
2617 (update_signals_program_target, clear_exit_convenience_vars)
2618 (displaced_step_dump_bytes, update_observer_mode)
2619 (signal_catch_update, gdb_signal_from_command): Move
2621 * infrun.h: ... to this new file.
2622 * amd64-tdep.c: Include infrun.h.
2623 * annotate.c: Include infrun.h.
2624 * arch-utils.c: Include infrun.h.
2625 * arm-linux-tdep.c: Include infrun.h.
2626 * arm-tdep.c: Include infrun.h.
2627 * break-catch-sig.c: Include infrun.h.
2628 * breakpoint.c: Include infrun.h.
2629 * common/agent.c: Include infrun.h instead of inferior.h.
2630 * corelow.c: Include infrun.h.
2631 * event-top.c: Include infrun.h.
2632 * go32-nat.c: Include infrun.h.
2633 * i386-tdep.c: Include infrun.h.
2634 * inf-loop.c: Include infrun.h.
2635 * infcall.c: Include infrun.h.
2636 * infcmd.c: Include infrun.h.
2637 * infrun.c: Include infrun.h.
2638 * linux-fork.c: Include infrun.h.
2639 * linux-nat.c: Include infrun.h.
2640 * linux-thread-db.c: Include infrun.h.
2641 * monitor.c: Include infrun.h.
2642 * nto-tdep.c: Include infrun.h.
2643 * procfs.c: Include infrun.h.
2644 * record-btrace.c: Include infrun.h.
2645 * record-full.c: Include infrun.h.
2646 * remote-m32r-sdi.c: Include infrun.h.
2647 * remote-mips.c: Include infrun.h.
2648 * remote-notif.c: Include infrun.h.
2649 * remote-sim.c: Include infrun.h.
2650 * remote.c: Include infrun.h.
2651 * reverse.c: Include infrun.h.
2652 * rs6000-tdep.c: Include infrun.h.
2653 * s390-linux-tdep.c: Include infrun.h.
2654 * solib-irix.c: Include infrun.h.
2655 * solib-osf.c: Include infrun.h.
2656 * solib-svr4.c: Include infrun.h.
2657 * target.c: Include infrun.h.
2658 * top.c: Include infrun.h.
2659 * windows-nat.c: Include infrun.h.
2660 * mi/mi-interp.c: Include infrun.h.
2661 * mi/mi-main.c: Include infrun.h.
2662 * python/py-threadevent.c: Include infrun.h.
2664 2014-05-22 Pedro Alves <palves@redhat.com>
2666 * infrun.c (handle_inferior_event): Store the exit code for
2667 --return-child-result here, instead of ...
2668 (print_exited_reason): ... here.
2670 2014-05-21 Pedro Alves <palves@redhat.com>
2673 * gdbthread.h (struct thread_control_state): New field
2675 * infrun.c (follow_fork): Copy the new thread control field to the
2677 (clear_proceed_status_thread): Clear the new thread control field.
2678 (proceed): Set the new thread control field.
2679 * interps.h (command_interp): Declare.
2680 * interps.c (command_interpreter): New global.
2681 (command_interp): New function.
2682 (interp_exec): Set `command_interpreter' while here.
2683 * cli-out.c (cli_uiout_dtor): New function.
2684 (cli_ui_out_impl): Install it.
2685 * mi/mi-interp.c: Include cli-out.h.
2686 (mi_cmd_interpreter_exec): Add comment.
2687 (restore_current_uiout_cleanup): New function.
2688 (ui_out_free_cleanup): New function.
2689 (mi_on_normal_stop): If finishing an execution command started by
2690 a CLI command, or any kind of breakpoint-like event triggered,
2691 print the stop event to the output (CLI) stream.
2692 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2694 2014-05-21 Pedro Alves <palves@redhat.com>
2696 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2697 current source line having changed.
2698 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2699 * infrun.c (normal_stop): Adjust call to
2700 set_current_sal_from_frame.
2701 * source.c (clear_lines_listed_range): New function.
2702 (set_current_source_symtab_and_line, identify_source_line): Clear
2703 the lines listed range.
2704 (line_info): Handle the first "info line" after the current source
2705 line having changed.
2706 * stack.c (print_stack_frame): Remove center handling.
2707 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2710 2014-05-21 Pedro Alves <palves@redhat.com>
2712 * inf-child.c (inf_child_mourn_inferior): New function.
2713 * inf-child.h (inf_child_mourn_inferior): New declaration.
2714 * darwin-nat.c (darwin_mourn_inferior): Use
2715 inf_child_mourn_inferior.
2716 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2717 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2718 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2719 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2720 * windows-nat.c (windows_mourn_inferior): Likewise.
2722 2014-05-21 Doug Evans <xdje42@gmail.com>
2724 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2726 2014-05-21 Doug Evans <xdje42@gmail.com>
2728 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2729 (gdbscm_out_of_range_error): Ditto.
2730 (gdbscm_memory_error): Ditto.
2731 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2732 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2733 (gdbscm_out_of_range_error): Update.
2734 (gdbscm_memory_error): Update.
2735 (gdbscm_scm_to_target_string_unsafe): Delete.
2737 2014-05-21 Pedro Alves <palves@redhat.com>
2739 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2741 (inf_child_open_target): New function.
2742 (inf_child_open): Use inf_child_open_target to push the target
2743 instead of erroring out.
2744 (inf_child_disconnect, inf_child_close)
2745 (inf_child_maybe_unpush_target): New functions.
2746 (inf_child_target): Install inf_child_disconnect and
2747 inf_child_close. Store a pointer to the returned object.
2748 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2750 * target.c (auto_connect_native_target): New global.
2751 (show_default_run_target): New function.
2752 (find_default_run_target): Return NULL if automatically connecting
2753 to the native target is disabled.
2754 (_initialize_target): Install set/show auto-connect-native-target.
2755 * NEWS: Mention "set auto-connect-native-target", and "target
2757 * linux-nat.c (super_close): New global.
2758 (linux_nat_close): Call super_close.
2759 (linux_nat_add_target): Store a pointer to the base class's
2761 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2762 inf_child_maybe_unpush.
2763 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2765 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2766 the inferior. Use inf_child_maybe_unpush_target.
2767 (inf_ttrace_attach): Don't push the target if it is already
2769 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2770 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2771 after mourning the inferior. Use inf_child_maybe_unpush_target.
2772 (darwin_attach_pid): Don't push the target if it is already
2774 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2775 mourning the inferior. Use inf_child_maybe_unpush_target.
2776 (gnu_detach): Use inf_child_maybe_unpush_target.
2777 * go32-nat.c (go32_create_inferior): Don't push the target if it
2779 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2780 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2781 (procfs_open): Rename to ...
2782 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2783 comments. Can target_preopen before changing node. Call
2784 inf_child_open_target to push the target explicitly.
2785 (procfs_attach): Don't push the target if it is already pushed.
2786 (procfs_detach): Use inf_child_maybe_unpush_target.
2787 (procfs_create_inferior): Don't push the target if it is already
2789 (nto_native_ops): New global.
2790 (procfs_open): Reimplement.
2791 (procfs_native_open): New function.
2792 (init_procfs_targets): Install procfs_native_open as to_open of
2793 "target native". Store a pointer to the "native" target in
2795 * procfs.c (procfs_attach): Don't push the target if it is already
2797 (procfs_detach): Use inf_child_maybe_unpush_target.
2798 (procfs_mourn_inferior): Only unpush the target after mourning the
2799 inferior. Use inf_child_maybe_unpush_target.
2800 (procfs_init_inferior): Don't push the target if it is already
2802 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2803 if it is already pushed.
2805 2014-05-21 Pedro Alves <palves@redhat.com>
2807 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2808 and "procfs" targets are now called "native" instead.
2810 2014-05-21 Pedro Alves <palves@redhat.com>
2812 * go32-nat.c (go32_open): Delete.
2813 (go32_target): Don't override the to_open method.
2815 2014-05-21 Pedro Alves <palves@redhat.com>
2817 * nto-procfs.c (procfs_can_run): New function.
2818 (nto_procfs_ops): New global.
2819 (init_procfs_targets): New, based on procfs_target. Install
2820 "target native" in addition to "target procfs".
2821 (_initialize_procfs): Call init_procfs_targets instead of adding
2824 2014-05-21 Pedro Alves <palves@redhat.com>
2826 * windows-nat.c (windows_target): Don't override to_shortname,
2827 to_longname or to_doc.
2829 2014-05-21 Pedro Alves <palves@redhat.com>
2831 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2834 2014-05-21 Pedro Alves <palves@redhat.com>
2836 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2837 to_shortname, to_longname or to_doc.
2839 2014-05-21 Pedro Alves <palves@redhat.com>
2841 * go32-nat.c (go32_target): Don't override to_shortname,
2842 to_longname or to_doc.
2844 2014-05-21 Pedro Alves <palves@redhat.com>
2846 * inf-child.c (inf_child_open): Remove mention of "child".
2847 (inf_child_target): Rename target to "native" instead of "child".
2849 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2851 * Makefile.in (SFILES): Delete "regset.c".
2852 (COMMON_OBS): Delete "regset.o".
2854 * regset.h (regset_alloc): Delete prototype.
2856 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2858 * sparc-linux-tdep.c (sparc32_linux_gregset)
2859 (sparc32_linux_fpregset): New static regset structures.
2860 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2861 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2863 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2864 (sparc64_linux_fpregset): New static regset structures.
2865 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2866 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2867 New static regset structures.
2868 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2869 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2870 New static regset structures.
2871 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2872 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2873 New static regset structures.
2874 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2875 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2876 New static regset structures.
2877 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2879 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2881 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2882 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2883 register maps ("regmaps") from "*regset" to "*regmap". Do this
2884 for all regmap types and variables.
2885 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2886 (sparc32_linux_supply_core_gregset)
2887 (sparc32_linux_collect_core_gregset)
2888 (sparc32_linux_supply_core_fpregset)
2889 (sparc32_linux_collect_core_fpregset): Likewise.
2890 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2891 (sparc_gregmap, sparc_fpregmap): ... these.
2892 (sparc_supply_gregset, sparc_collect_gregset)
2893 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2894 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2895 (_initialize_sparc_nat): Rename regmaps.
2896 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2897 (sparc_gregmap, sparc_fpregmap): ... these.
2898 (sparc_supply_gregset, sparc_collect_gregset)
2899 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2900 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2902 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2903 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2905 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2907 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2908 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2909 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2911 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2912 (sparc32_bsd_fpregset): Rename to...
2913 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2914 (sparc32_bsd_fpregmap): ... these.
2915 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2916 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2917 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2918 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2919 (struct sparc_gregmap, struct sparc_fpregmap)
2920 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2921 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2922 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2923 (sparc32_supply_regset, sparc32_collect_gregset)
2924 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2926 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2927 (sparc64_linux_ptrace_gregmap): ... this.
2928 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2929 (_initialize_sparc64_linux_nat): Rename regmaps.
2930 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2931 (sparc64_linux_core_gregmap): ... this.
2932 (sparc64_linux_supply_core_gregset)
2933 (sparc64_linux_collect_core_gregset)
2934 (sparc64_linux_supply_core_fpregset)
2935 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2936 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2937 (sparc64_sol2_fpregset): Rename to...
2938 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2939 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2940 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2942 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2943 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2944 (sparc64_bsd_fpregset): Rename to...
2945 (struct sparc_gregmap, sparc64_sol2_gregmap)
2946 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2947 (sparc64_bsd_fpregmap): ... these.
2948 (sparc64_supply_gregset, sparc64_collect_gregset)
2949 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2951 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2952 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2953 (sparc64fbsd_gregmap): ... this.
2954 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2955 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2957 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2958 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2959 (sparc64nbsd_collect_fpregset): Likewise.
2960 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2961 (sparc64nbsd_gregmap): ... this.
2962 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2964 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2965 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2966 (sparc64obsd_gregmap): ... this.
2967 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2969 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2970 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2971 (sparc32nbsd_gregmap): ... this.
2972 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2975 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2977 * score-tdep.c (score7_linux_gregset): New static regset
2979 (score7_linux_regset_from_core_section): Remove dynamic regset
2981 (score_gdbarch_init): Drop allocation of tdep structure.
2982 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2984 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2986 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2988 (am33_regset_from_core_section): Remove dynamic regset
2991 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2993 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2994 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2996 (mips_linux_regset_from_core_section): Remove dynamic regset
2998 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2999 'gregset64', 'fpregset', and 'fpregset64'.
3000 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3001 deleted tdep fields.
3003 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3005 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3007 (amd64_regset_from_core_section): Remove dynamic regset
3009 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3011 (amd64obsd_regset_from_core_section): Remove dynamic regset
3013 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3015 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3016 x86-common regset supply function.
3017 * i386-tdep.c (i386_collect_gregset): Make static.
3018 (i386_gregset): New global regset structure.
3019 (i386_fpregset, i386_xstateregset): New static regset structures.
3020 (i386_regset_from_core_section): Remove dynamic regset
3022 (i386_gdbarch_init): Remove initialization of tdep fields
3023 'gregset', 'fpregset', and 'xstateregset'.
3024 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3025 'fpregset', and 'xstateregset'.
3026 (i386_collect_gregset): Remove prototype.
3027 (i386_gregset): New declaration.
3028 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3030 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3033 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3035 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3036 (arm_linux_vfpregset): New static regset structures.
3037 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3039 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3040 and 'vfpregset' fields.
3042 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3044 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3045 (aarch64_linux_fpregset): New static regset structures.
3046 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3047 of regset structures.
3048 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3051 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3053 * regset.h (struct regset): Remove gdbarch field.
3054 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3055 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3056 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3058 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3059 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3060 (ppc32_linux_vsxregset): Likewise.
3061 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3062 via the regcache instead of the regset.
3063 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3064 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3065 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3066 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3069 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3071 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3072 Constify structures.
3073 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3074 (alphanbsd_aout_gregset): Likewise.
3075 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3076 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3078 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3079 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3081 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3082 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3083 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3084 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3085 * m88k-tdep.c (m88k_gregset): Likewise.
3086 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3087 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3088 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3089 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3090 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3091 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3092 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3093 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3094 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3096 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3097 * sh-tdep.h (sh_corefile_gregset): Likewise.
3098 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3099 * vax-tdep.c (vax_gregset): Likewise.
3101 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3103 Fix TLS access for -static -pthread.
3104 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3105 (try_thread_db_load_1): Initialize it.
3106 (thread_db_get_thread_local_address): Call it if LM is zero.
3107 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3108 * target.h (struct target_ops) (to_get_thread_local_address): Add
3109 load_module_addr comment.
3111 2014-05-21 Pedro Alves <palves@redhat.com>
3113 * dcache.c (dcache_read_memory_partial): If reading the cache line
3114 fails, fallback to reading just the memory the caller wanted.
3116 2014-05-20 Doug Evans <dje@google.com>
3118 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3119 instead of get_current_arch.
3121 2014-05-20 Pedro Alves <palves@redhat.com>
3123 * NEWS: Mention that compare-sections now works with all targets.
3125 * remote.c (PACKET_qCRC): New enum value.
3126 (remote_verify_memory): Don't send qCRC if the target has no
3127 execution. Use packet_support/packet_ok. If the target doesn't
3128 support the qCRC packet, fallback to a deep memory copy.
3129 (compare_sections_command): Say "target image" instead of "remote
3131 (_initialize_remote): Add PACKET_qCRC to the list of config
3132 packets that have no associated command. Extend comment.
3133 * target.c (simple_verify_memory, default_verify_memory): New
3135 * target.h (struct target_ops) <to_verify_memory>: Default to
3136 default_verify_memory.
3137 (simple_verify_memory): New declaration.
3138 * target-delegates.c: Regenerate.
3140 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3142 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3144 2014-05-20 Hui Zhu <hui@codesourcery.com>
3145 Yao Qi <yao@codesourcery.com>
3148 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3149 and change address of sp and pc.
3151 2014-05-19 Tom Tromey <tromey@redhat.com>
3153 * gdbtypes.c (rank_function): Use XNEWVEC.
3154 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3156 2014-05-19 Doug Evans <dje@google.com>
3158 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3159 build_type_unit_groups and moved closer to only caller. Remove
3160 arguments. All references updated. Remove outdated .gdb_index
3162 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3163 build_type_psymtabs_1.
3165 2014-05-19 Doug Evans <dje@google.com>
3167 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3168 n_type_unit_groups, all_type_unit_groups. All uses removed.
3169 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3170 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3171 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3172 (add_type_unit_group_to_table): Delete.
3174 2014-05-19 Doug Evans <dje@google.com>
3176 * eval.c (evaluate_subexp_standard): Add some comments.
3178 2014-05-17 Doug Evans <xdje42@gmail.com>
3180 * progspace.c (remove_program_space): Delete, unused.
3181 * progspace.h (remove_program_space): Ditto.
3183 2014-05-17 Doug Evans <xdje42@gmail.com>
3185 * inferior.c (prune_inferiors): Fix comment.
3186 (remove_inferior_command): Call prune_program_spaces.
3188 2014-05-16 Doug Evans <dje@google.com>
3190 New command line option -D.
3192 * main.c (set_gdb_data_directory): New function.
3193 (captured_main): Recognize -D. Flag error for --data-directory "".
3194 Call set_gdb_data_directory.
3195 (print_gdb_help): Print --data-directory, -D.
3196 * main.h (set_gdb_data_directory): Declare.
3197 * top.c (staged_gdb_datadir): New static global.
3198 (set_gdb_datadir): Call set_gdb_data_directory
3199 (show_gdb_datadir): New function.
3200 (init_main): Update init of data-directory parameter.
3202 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3204 Import the "dirfd" gnulib module.
3205 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3206 * gnulib/aclocal.m4: Update.
3207 * gnulib/config.in: Update.
3208 * gnulib/configure: Update.
3209 * gnulib/import/Makefile.am: Update.
3210 * gnulib/import/Makefile.in: Update.
3211 * gnulib/import/dirfd.c: New.
3212 * gnulib/import/m4/dirfd.m4: New.
3213 * gnulib/import/m4/gnulib-cache.m4: Update.
3214 * gnulib/import/m4/gnulib-comp.m4: Update.
3216 2014-05-16 Pierre Muller <muller@sourceware.org>
3217 Yao Qi <yao@codesourcery.com>
3219 * valprint.c (print_wchar): Move the code on checking whether
3220 W is a printable wide char to the default branch of switch
3221 statement below. Call wchar_printable instead of gdb_iswprint.
3223 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3225 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3226 ldr.w and ldrd instructions.
3228 2014-05-15 Doug Evans <dje@google.com>
3230 * dwarf2read.c (read_structure_type): Delete outdated comments.
3232 2014-05-14 Tom Tromey <tromey@redhat.com>
3234 * macrocmd.c (print_macro_definition): Reindent.
3236 2014-05-13 Doug Evans <xdje42@gmail.com>
3238 * python/py-cmd.c (cmdpy_completer): Add comment.
3239 (completers): Make const.
3241 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3243 * infrun.c (resume): Remove should_resume (unused). Move up
3244 declaration of resume_ptid.
3246 2014-05-13 Tom Tromey <tromey@redhat.com>
3248 * language.h (unop_type_check): Remove.
3249 (binop_type_check): Don't declare.
3251 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3253 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3254 call to regcache_raw_collect.
3256 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3258 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3259 mi_console->quote as the quoting character.
3261 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3263 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3265 2014-04-29 Tom Tromey <tromey@redhat.com>
3267 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3268 "show debug varobj".
3270 2014-05-07 Kyle McMartin <kyle@redhat.com>
3272 Pushed by Joel Brobecker <brobecker@adacore.com>.
3273 * aarch64-tdep.c (aarch64_software_single_step): New function.
3274 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3275 with aarch64_software_single_step.
3277 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3281 2014-05-05 Keith Seitz <keiths@redhat.com>
3283 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3284 variable or history value is successfully parsed.
3286 2014-05-05 Yao Qi <yao@codesourcery.com>
3287 Pedro Alves <palves@redhat.com>
3289 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3290 address of blocks that intersects the requested range. Trim
3291 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3293 * ctf.c (ctf_xfer_partial): Likewise.
3295 2014-05-05 Yao Qi <yao@codesourcery.com>
3297 * printcmd.c (display_command): Remove the check to
3298 target_has_execution.
3300 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3302 * ppcobsd-nat.c: Include "obsd-nat.h".
3303 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3305 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3307 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3309 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3310 and 16-bit signed and unsigned arguments. Update comment.
3311 (stap_parse_probe_arguments): Extend code to handle such
3312 arguments. Use warning instead of complaint to notify about
3313 unrecognized bitness.
3315 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3317 PR breakpoints/16889
3318 * stap-probe.c (stap_parse_probe_arguments): Simplify
3319 check for non-prefixed probes (i.e., probes whose
3320 arguments do not start with "N@"). Always set the
3321 argument type to a sane value.
3323 2014-05-01 David Taylor <dtaylor@emc.com>
3325 * remote.c (compare_sections_command): Add -r option to compare
3326 all loadable read-only sections.
3328 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3330 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3331 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3333 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3334 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3335 Remove unused CORE_ADDR argument. Update all callers.
3337 2014-04-29 Pedro Alves <palves@redhat.com>
3339 * remote.c (struct packet_config) <detect>: Extend comment.
3340 (add_packet_config_cmd): Don't set the config's detect or support
3342 (init_all_packet_configs): Also initialize the config's 'detect'
3344 (reset_all_packet_configs_support): New function.
3345 (remote_open_1): Call reset_all_packet_configs_support instead of
3346 init_all_packet_configs.
3347 (_initialize_remote): Initialize all packet configs. Assert that
3348 all packets have an associated command, except a few known
3351 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3353 * dwarf2read.c (read_subrange_type): Handle dynamic
3354 DW_AT_lower_bound attributes.
3356 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3358 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3359 dynamic bounds before computing its upper bound.
3360 (ada_discrete_type_low_bound): Same as above with the lower bound.
3362 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3364 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3365 range types. Adjust the array handling implementation to
3366 take advantage of this change.
3367 (resolve_dynamic_range): New function, mostly extracted from
3368 resolve_dynamic_bounds.
3369 (resolve_dynamic_array): New function, mostly extracted from
3370 resolve_dynamic_bounds.
3371 (resolve_dynamic_bounds): Delete.
3372 (resolve_dynamic_type): Reimplement. Add handling of
3373 TYPE_CODE_RANGE types.
3375 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3377 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3378 handling of parallel ___XA types.
3380 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3382 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3383 unnecessary second call to static_unwrap_type.
3385 2014-04-27 Hui Zhu <hui@codesourcery.com>
3387 * stack.c (print_frame_info): Call do_gdb_disassembly with
3388 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3390 2014-04-26 Doug Evans <xdje42@gmail.com>
3392 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3394 2014-04-25 Pedro Alves <palves@redhat.com>
3397 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3398 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3399 and newline from built string.
3400 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3401 (linux_ptrace_attach_fail_reason): ... this.
3402 * linux-nat.c (linux_nat_attach): Adjust to use
3403 linux_ptrace_attach_fail_reason.
3405 2014-04-25 Pedro Alves <palves@redhat.com>
3407 * remote.c (struct remote_state): Remove multi_process_aware,
3408 non_stop_aware, cond_tracepoints, cond_breakpoints,
3409 breakpoint_commands, fast_tracepoints, static_tracepoints,
3410 install_in_trace, disconnected_tracing,
3411 enable_disable_tracepoints, string_tracing, and
3412 augmented_libraries_svr4_read fields.
3413 (remote_multi_process_p): Move further below in the file.
3414 (struct packet_config): Add comments.
3415 (update_packet_config): Delete function.
3416 (show_packet_config_cmd): Use packet_config_support.
3417 (add_packet_config_cmd): Use NULL as set callback.
3418 (packet_ok): "set remote foo-packet"-style commands no longer
3419 change config->supported -- adjust.
3420 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3421 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3422 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3423 (PACKET_QNonStop, PACKET_multiprocess_feature)
3424 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3425 (PACKET_DisconnectedTracing_feature)
3426 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3427 (set_remote_protocol_packet_cmd): Delete function.
3428 (packet_config_support, packet_support): New functions.
3429 (set_remote_protocol_Z_packet_cmd): Don't call
3430 update_packet_config.
3431 (remote_query_attached, remote_pass_signals)
3432 (remote_program_signals, remote_threads_info)
3433 (remote_threads_extra_info, remote_start_remote): Use
3435 (remote_start_remote): Use packet_config_support and
3437 (init_all_packet_configs): Set all packets to unknown support,
3438 instead of calling update_packet_config.
3439 (remote_check_symbols): Use packet_support.
3440 (remote_supported_packet): Unconditionally set the packet config's
3442 (remote_multi_process_feature, remote_non_stop_feature)
3443 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3444 (remote_breakpoint_commands_feature)
3445 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3446 (remote_install_in_trace_feature)
3447 (remote_disconnected_tracing_feature)
3448 (remote_enable_disable_tracepoint_feature)
3449 (remote_string_tracing_feature)
3450 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3451 (remote_protocol_features): Adjust to use remote_supported_packet
3452 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3453 "ConditionalTracepoints", "ConditionalBreakpoints",
3454 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3455 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3456 "EnableDisableTracepoints", and "tracenz".
3457 (remote_query_supported): Use packet_support.
3458 (remote_open_1): Adjust.
3459 (extended_remote_attach_1): Use packet_support. Switch on the
3460 result of packet_ok instead of checking whether the packet ended
3462 (remote_vcont_resume): Use packet_support.
3463 (remote_resume, remote_stop_ns, fetch_register_using_p)
3464 (remote_prepare_to_store, store_register_using_P)
3465 (check_binary_download, remote_write_bytes): Use packet_support.
3466 (remote_vkill): Use packet_support. Switch on the result of
3467 packet_ok instead of checking whether the packet ended up
3469 (extended_remote_supports_disable_randomization): Use
3471 (extended_remote_run): Switch on the result of packet_ok instead
3472 of checking whether the packet ended up disabled.
3473 (remote_insert_breakpoint, remote_remove_breakpoint)
3474 (remote_insert_watchpoint, remote_remove_watchpoint)
3475 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3477 (remote_search_memory): Use packet_config_support.
3478 (remote_get_thread_local_address, remote_get_tib_address)
3479 (remote_hostio_send_command, remote_can_execute_reverse): Use
3481 (remote_supports_cond_tracepoints)
3482 (remote_supports_cond_breakpoints)
3483 (remote_supports_fast_tracepoints)
3484 (remote_supports_static_tracepoints)
3485 (remote_supports_install_in_trace)
3486 (remote_supports_enable_disable_tracepoint)
3487 (remote_supports_string_tracing)
3488 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3489 the packet config says the feature is enabled or disabled.
3490 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3491 (remote_get_trace_status): Use packet_support.
3492 (remote_set_disconnected_tracing): Adjust to check whether the
3493 feature is enabled with packet_support.
3494 (remote_set_trace_buffer_size, remote_use_agent)
3495 (remote_can_use_agent, remote_supports_btrace): Use
3497 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3498 Use packet_config_support.
3499 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3500 the packet config says the feature is enabled or disabled.
3501 (set_range_stepping): Use packet_support.
3503 2014-04-25 Tom Tromey <tromey@redhat.com>
3505 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3508 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3510 * NEWS: Mention support for C99 variable length arrays.
3512 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3514 * ada-lang.c (standard_exc): Expand introductory comment.
3516 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3517 Walfred Tedeschi <walfred.tedeschi@intel.com>
3519 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3521 (amd64_linux_read_description): Add code to handle AVX512 xstate
3522 mask and return respective tdesc.
3523 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3524 and features/i386/x32-avx512-linux.c.
3525 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3526 (amd64_linux_core_read_description): Add code to handle AVX512
3527 xstate mask and return respective tdesc.
3528 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3529 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3531 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3532 (tdesc_amd64_avx512_linux): New prototype.
3533 (tdesc_x32_avx512_linux): Likewise.
3534 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3535 features/i386/x32-avx512.c.
3536 (amd64_ymm_avx512_names): New register names for pseudo
3538 (amd64_ymmh_avx512_names): New register names for raw registers
3540 (amd64_k_names): New register names for K registers.
3541 (amd64_zmmh_names): New register names for ZMM raw registers.
3542 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3543 (amd64_xmm_avx512_names): New register names for XMM16-31
3545 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3547 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3548 if feature is present.
3549 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3550 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3551 (AMD64_NUM_REGS): Adjust to new number of registers.
3552 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3553 registers supplied via XSTATE by AVX512 registers.
3554 (i386_linux_read_description): Add case for AVX512.
3555 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3556 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3557 (i386_linux_core_read_description): Add case for AVX512.
3558 (i386_linux_init_abi): Install supported register note section
3560 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3562 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3563 registers to be number of zmm7h + 1.
3564 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3565 * i386-tdep.c: Include features/i386/i386-avx512.c.
3566 (i386_zmm_names): Add ZMM pseudo register names array.
3567 (i386_zmmh_names): Add ZMM raw register names array.
3568 (i386_k_names): Add K raw register names array.
3569 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3570 registers. AVX512 has 16 more ZMM registers than there are YMM
3572 (i386_zmmh_regnum_p): Add function to look up register number of
3574 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3575 (i386_k_regnum_p): Likewise for K raw registers.
3576 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3577 registers added by AVX512.
3578 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3579 registers added by AVX512.
3580 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3582 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3583 (i386_pseudo_register_name): Add ZMM pseudo registers.
3584 (i386_zmm_type): Construct and return vector registers type for ZMM
3586 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3587 ZMM0-31 pseudo registers and K registers.
3588 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3589 and YMM16-31 registers from register cache.
3590 (i386_pseudo_register_write): Add code to write K, ZMM and
3592 (i386_register_reggroup_p): Add code to include/exclude AVX512
3593 registers in/from respective register groups.
3594 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3595 registers if feature is present in xcr0.
3596 (i386_gdbarch_init): Add code to initialize AVX512 feature
3597 variables in tdep structure, wire in pseudo registers and call
3598 initialize_tdesc_i386_avx512.
3599 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3601 (i386_regnum): Add AVX512 registers.
3602 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3603 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3604 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3605 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3607 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3608 (i386_ymm_avx512_regnum_p): Likewise.
3609 (i386_k_regnum_p): Likewise.
3610 (i386_zmm_regnum_p): Likewise.
3611 (i386_zmmh_regnum_p): Likewise.
3612 * i387-tdep.c : Update year in copyright notice.
3613 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3615 (XSAVE_YMM_AVX512_ADDR): New macro.
3616 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3618 (XSAVE_XMM_AVX512_ADDR): New macro.
3619 (xsave_avx512_k_offset): New table for K register offsets in
3621 (XSAVE_AVX512_K_ADDR): New macro.
3622 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3624 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3625 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3627 (i387_collect_xsave): Add code to collect AVX512 registers from
3629 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3630 of XMM16-31 registers.
3631 (I387_NUM_K_REGS): New define for number of K registers.
3632 (I387_K0_REGNUM): New define for K0 register number.
3633 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3634 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3635 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3637 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3638 (I387_XMM16_REGNUM): New define for XMM16 register number.
3639 (I387_YMM0_REGNUM): New define for YMM0 register number.
3640 (I387_KEND_REGNUM): New define for last K register number.
3641 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3642 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3644 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3646 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3648 * features/Makefile: Add AVX512 related files.
3649 * features/i386/32bit-avx512.xml: New file.
3650 * features/i386/64bit-avx512.xml: Likewise.
3651 * features/i386/amd64-avx512-linux.c: Likewise.
3652 * features/i386/amd64-avx512-linux.xml: Likewise.
3653 * features/i386/amd64-avx512.c: Likewise.
3654 * features/i386/amd64-avx512.xml: Likewise.
3655 * features/i386/i386-avx512-linux.c: Likewise.
3656 * features/i386/i386-avx512-linux.xml: Likewise.
3657 * features/i386/i386-avx512.c: Likewise.
3658 * features/i386/i386-avx512.xml: Likewise.
3659 * features/i386/x32-avx512-linux.c: Likewise.
3660 * features/i386/x32-avx512-linux.xml: Likewise.
3661 * features/i386/x32-avx512.c: Likewise.
3662 * features/i386/x32-avx512.xml: Likewise.
3663 * regformats/i386/amd64-avx512-linux.dat: New file.
3664 * regformats/i386/amd64-avx512.dat: Likewise.
3665 * regformats/i386/i386-avx512-linux.dat: Likewise.
3666 * regformats/i386/i386-avx512.dat: Likewise.
3667 * regformats/i386/x32-avx512-linux.dat: Likewise.
3668 * regformats/i386/x32-avx512.dat: Likewise.
3669 * NEWS: Add note about new support for AVX512.
3672 2014-04-23 Pedro Alves <palves@redhat.com>
3674 * breakpoint.c (insert_bp_location): Tolerate errors if the
3675 breakpoint is set in a user-loaded objfile.
3676 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3677 location is marked shlib_disabled. If the breakpoint is set in a
3678 user-loaded objfile is a GDB-side memory breakpoint, validate it
3679 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3680 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3682 * mem-break.c (memory_validate_breakpoint): New function.
3683 * objfiles.c (userloaded_objfile_contains_address_p): New
3685 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3686 * target.h (memory_validate_breakpoint): New declaration.
3688 2014-04-23 Pedro Alves <palves@redhat.com>
3690 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3691 the breakpoint is set in a shared library, only suppress
3692 errors for software breakpoints, not hardware breakpoints.
3694 2014-04-22 Pedro Alves <palves@redhat.com>
3696 * infrun.c (schedlock_applies): New function, factored out from
3697 find_thread_needs_step_over.
3698 (find_thread_needs_step_over): Use it.
3699 (switch_back_to_stepped_thread): Always clear trap_expected if the
3700 step over is finished. Return early if scheduler locking applies.
3701 Look for the stepping thread and a potential step-over thread with
3703 (currently_stepping_or_nexting_callback): Delete.
3705 2014-04-22 Nick Clifton <nickc@redhat.com>
3707 * NEWS: Mention that ARM sim now supports tracing.
3709 2014-04-22 Yao Qi <yao@codesourcery.com>
3711 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3713 * tracefile.c (tracefile_fetch_registers): ... it. New
3715 * tracefile.h (tracefile_fetch_registers): Declare.
3716 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3717 tracefile_fetch_registers.
3719 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3722 * windows-nat.c (thread_rec): Don't display a warning when
3723 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3724 fails for any reason, set th->suspended to -1, so that we don't
3725 try to resume such a thread. Also, don't return NULL in these
3726 cases, to avoid completely ruin the session due to "PC register is
3727 not available" error.
3728 (do_windows_fetch_inferior_registers): Check errors in
3729 GetThreadContext call.
3730 (windows_continue): Accept an additional argument KILLED; if not
3731 zero, ignore errors in the SetThreadContext call, since the
3732 inferior was killed and is shutting down.
3733 (windows_resume, get_windows_debug_event)
3734 (windows_create_inferior, windows_mourn_inferior)
3735 (windows_kill_inferior): All callers of windows_continue changed
3736 to adjust to its new calling sequence.
3738 2014-04-19 Yao Qi <yao@codesourcery.com>
3740 * ctf.c (ctf_open): Call post_create_inferior.
3742 2014-04-19 Yao Qi <yao@codesourcery.com>
3744 * ctf.c (handle_id): New static variable.
3745 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3746 value. Get the declaration of event "register" and get length
3747 of field "contents".
3749 2014-04-19 Yao Qi <yao@codesourcery.com>
3751 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3753 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3755 * valops.c (oload_method_static): Remove unnecessary argument
3756 METHOD. Update all callers.
3758 2014-04-18 Pedro alves <palves@redhat.com>
3759 Tom Tromey <tromey@redhat.com>
3762 * frame.c (get_prev_frame_1): Rename to ...
3763 (get_prev_frame_always): ... this, and make extern. Adjust.
3764 (skip_artificial_frames): Use get_prev_frame_always.
3765 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3766 (get_frame_unwind_stop_reason): Adjust to rename.
3767 * frame.h (get_prev_frame_always): Declare.
3768 * inline-frame.c: Include frame.h.
3769 (inline_frame_this_id): Use get_prev_frame_always.
3771 2014-04-18 Tristan Gingold <gingold@adacore.com>
3773 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3774 code by using bfd_mach_o_get_base_address.
3776 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3778 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3779 (spu_ax_pseudo_register_collect): New function.
3780 (spu_ax_pseudo_register_push_stack): Likewise.
3781 (spu_dwarf_reg_to_regnum): Likewise.
3782 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3784 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3786 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3787 Replace FRAME argument with FRAME_ID.
3788 * gdbarch.c, gdbarch.h: Regenerate.
3789 * findvar.c (default_value_from_register): Add GDBARCH argument;
3790 replace FRAME by FRAME_ID. No longer call get_frame_id.
3791 (value_from_register): Update call to gdbarch_value_from_register.
3792 * value.h (default_value_from_register): Update prototype.
3793 * s390-linux-tdep.c (s390_value_from_register): Update interface
3794 and call to default_value_from_register.
3795 * spu-tdep.c (spu_value_from_register): Likewise.
3797 * findvar.c (address_from_register): Remove TYPE argument.
3798 Do not call value_from_register; use gdbarch_value_from_register
3799 with null_frame_id instead.
3800 * value.h (address_from_register): Update prototype.
3801 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3802 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3803 address_from_register interface change.
3805 2014-04-17 Yao Qi <yao@codesourcery.com>
3807 * gdbtypes.h: Update comments to link to types and macros'
3810 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3812 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3814 2014-04-16 Keith Seitz <keiths@redhat.com>
3817 * dwarf2read.c (skip_one_die): Check that all relative-offset
3818 sibling DIEs fall within range of the current reader's buffer.
3819 (read_partial_die): Likewise.
3821 2014-04-16 Keith Seitz <keiths@redhat.com>
3824 * cp-namespace.c (lookup_symbol_file): If the type name of
3825 `this' is NULL, return immediately.
3827 2014-04-14 Keith Seitz <keiths@redhat.com>
3830 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3831 from symbol_matches_domain in symtab.c. All local callers
3832 of symbol_matches_domain updated.
3833 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3834 search STRUCT_DOMAIN.
3835 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3836 independently. standard_lookup will do that automatically.
3837 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3838 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3839 (cp_lookup_symbol_in_namespace): Likewise.
3840 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3841 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3842 may return a STRUCT_DOMAIN match.
3843 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3844 * cp-support.c: Include language.h.
3845 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3847 * psymtab.c (match_partial_symbol): Compare the requested
3848 domain with the symbol's domain directly.
3849 (lookup_partial_symbol): Likewise.
3850 * symtab.c (lookup_symbol_in_language): Explain when/why
3851 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3852 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3853 appropriate languages.
3854 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3855 and moved to ada-lang.c
3856 (lookup_block_symbol): Explain that this function only returns
3857 symbol matching the requested DOMAIN.
3858 Compare the requested domain with the symbol's domain directly.
3859 (iterate_over_symbols): Compare the requested domain with the
3860 symbol's domain directly.
3861 * symtab.h (symbol_matches_domain): Remove.
3863 2014-04-14 Tom Tromey <tromey@redhat.com>
3866 * c-exp.y (type_aggregate_p): New function.
3867 (qualified_name, classify_inner_name): Use it.
3868 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3869 and TYPE_TARGET_TYPE of an enum type.
3870 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3872 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3873 handle TYPE_DECLARED_CLASS.
3874 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3876 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3877 * valops.c (enum_constant_from_type): New function.
3878 (value_aggregate_elt): Use it.
3879 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3882 2014-04-14 Tom Tromey <tromey@redhat.com>
3884 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3885 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3887 * value.h (value_aggregate_elt): Update.
3889 2014-04-14 Tom Tromey <tromey@redhat.com>
3891 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3893 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3895 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3896 (evaluate_subexp_standard): Pass noside argument.
3897 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3898 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3899 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3900 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3901 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3903 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3905 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3906 points to a constant blob.
3908 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3910 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3911 property and store it as the high bound and flag the range accordingly.
3912 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3913 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3914 * gdbtypes.h (enum range_flags): New enum.
3915 (struct range_bounds): Add flags member.
3917 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3919 * c-typeprint.c (c_type_print_varspec_suffix): Added
3920 check for not yet resolved high bound. If unresolved, print
3921 "variable length" string to the console instead of random
3924 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3926 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3928 (ada_template_to_fixed_record_type_1): Likewise.
3929 (ada_to_fixed_type_1): Likewise.
3930 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3931 (cp_print_value): Likewise.
3932 * d-valprint.c (dynamic_array_type): Likewise.
3933 * findvar.c (address_of_variable): Likewise.
3934 * jv-valprint.c (java_value_print): Likewise.
3935 * valops.c (value_ind): Likewise.
3936 * value.c (coerce_ref): Likewise.
3938 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3940 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3941 value and retrieve the dynamic type size.
3943 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3945 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3946 passed to sizeof is dynamic evaluate the argument to compute the length.
3948 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3949 Joel Brobecker <brobecker@adacore.com>
3951 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3952 (dwarf2_evaluate_property): New function.
3953 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3954 * dwarf2read.c (attr_to_dynamic_prop): New function.
3955 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3957 * gdbtypes.c: Include dwarf2loc.h.
3958 (is_dynamic_type): New function.
3959 (resolve_dynamic_type): New function.
3960 (resolve_dynamic_bounds): New function.
3961 (get_type_length): New function.
3962 (check_typedef): Use get_type_length to compute type length.
3963 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3964 (TYPE_LOW_BOUND_KIND): New macro.
3965 (is_dynamic_type): New function prototype.
3966 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3967 to resolve dynamic properties of the type. Update comment.
3968 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3970 2014-04-14 Richard Henderson <rth@redhat.com>
3972 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3974 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3975 Doug Evans <xdje42@gmail.com>
3977 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3978 dereference TYPE_CODE_REF values.
3980 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3982 Revert the following changes due to regressions:
3984 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3985 (dwarf2_evaluate_property): New function.
3986 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3987 * dwarf2read.c (attr_to_dynamic_prop): New function.
3988 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3990 * gdbtypes.c: Include dwarf2loc.h.
3991 (is_dynamic_type): New function.
3992 (resolve_dynamic_type): New function.
3993 (resolve_dynamic_bounds): New function.
3994 (get_type_length): New function.
3995 (check_typedef): Use get_type_length to compute type length.
3996 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3997 (TYPE_LOW_BOUND_KIND): New macro.
3998 (is_dynamic_type): New function prototype.
3999 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4000 to resolve dynamic properties of the type. Update comment.
4001 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4003 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4004 passed to sizeof is dynamic evaluate the argument to compute the length.
4006 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4007 value and retrieve the dynamic type size.
4009 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4010 (ada_template_to_fixed_record_type_1): Likewise.
4011 (ada_to_fixed_type_1): Likewise.
4012 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4013 (cp_print_value): Likewise.
4014 * d-valprint.c (dynamic_array_type): Likewise.
4015 * eval.c (evaluate_subexp_with_coercion): Likewise.
4016 * findvar.c (address_of_variable): Likewise.
4017 * jv-valprint.c (java_value_print): Likewise.
4018 * valops.c (value_ind): Likewise.
4019 * value.c (coerce_ref): Likewise.
4021 * c-typeprint.c (c_type_print_varspec_suffix): Added
4022 check for not yet resolved high bound. If unresolved, print
4023 "variable length" string to the console instead of random
4026 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4027 property and store it as the high bound and flag the range accordingly.
4028 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4029 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4030 * gdbtypes.h (enum range_flags): New enum.
4031 (struct range_bounds): Add flags member.
4033 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4034 points to a constant blob.
4036 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4037 (evaluate_subexp_standard): Pass noside argument.
4038 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4039 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4040 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4041 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4042 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4044 2014-04-11 Keith Seitz <keiths@redhat.com>
4047 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4048 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4051 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4053 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4054 (evaluate_subexp_standard): Pass noside argument.
4055 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4056 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4057 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4058 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4059 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4061 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4063 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4064 points to a constant blob.
4066 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4068 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4069 property and store it as the high bound and flag the range accordingly.
4070 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4071 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4072 * gdbtypes.h (enum range_flags): New enum.
4073 (struct range_bounds): Add flags member.
4075 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4077 * c-typeprint.c (c_type_print_varspec_suffix): Added
4078 check for not yet resolved high bound. If unresolved, print
4079 "variable length" string to the console instead of random
4082 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4084 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4085 (ada_template_to_fixed_record_type_1): Likewise.
4086 (ada_to_fixed_type_1): Likewise.
4087 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4088 (cp_print_value): Likewise.
4089 * d-valprint.c (dynamic_array_type): Likewise.
4090 * eval.c (evaluate_subexp_with_coercion): Likewise.
4091 * findvar.c (address_of_variable): Likewise.
4092 * jv-valprint.c (java_value_print): Likewise.
4093 * valops.c (value_ind): Likewise.
4094 * value.c (coerce_ref): Likewise.
4096 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4098 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4099 value and retrieve the dynamic type size.
4101 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4103 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4104 passed to sizeof is dynamic evaluate the argument to compute the length.
4106 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4108 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4109 (dwarf2_evaluate_property): New function.
4110 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4111 * dwarf2read.c (attr_to_dynamic_prop): New function.
4112 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4114 * gdbtypes.c: Include dwarf2loc.h.
4115 (is_dynamic_type): New function.
4116 (resolve_dynamic_type): New function.
4117 (resolve_dynamic_bounds): New function.
4118 (get_type_length): New function.
4119 (check_typedef): Use get_type_length to compute type length.
4120 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4121 (TYPE_LOW_BOUND_KIND): New macro.
4122 (is_dynamic_type): New function prototype.
4123 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4124 to resolve dynamic properties of the type. Update comment.
4125 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4127 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4129 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4130 declaring high/low bounds and change uses accordingly. Call
4131 create_range_type instead of create_static_range_type.
4132 * gdbtypes.c (create_range_type): New function.
4133 (create_range_type): Convert bounds into struct bound_prop and pass
4134 them to create_range_type.
4135 * gdbtypes.h (struct bound_prop): New struct.
4136 (create_range_type): New function prototype.
4137 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4138 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4139 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4141 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4143 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4145 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4146 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4147 * ada-lang.c: All uses of create_range_type updated.
4148 * coffread.c: All uses of create_range_type updated.
4149 * dwarf2read.c: All uses of create_range_type updated.
4150 * f-exp.y: All uses of create_range_type updated.
4151 * m2-valprint.c: All uses of create_range_type updated.
4152 * mdebugread.c: All uses of create_range_type updated.
4153 * stabsread.c: All uses of create_range_type updated.
4154 * valops.c: All uses of create_range_type updated.
4155 * valprint.c: All uses of create_range_type updated.
4157 2014-04-10 Pedro Alves <palves@redhat.com>
4159 * breakpoint.c (single_step_breakpoints)
4160 (single_step_gdbarch): Move up in the file.
4161 (one_breakpoint_xfer_memory): New function, factored out from ...
4162 (breakpoint_xfer_memory): ... here. Also process single-step
4165 2014-04-09 Tristan Gingold <gingold@adacore.com>
4167 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4169 (darwin_decode_exception_message): Free port only after use.
4171 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4173 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4174 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4175 when setting the size of call_length.
4177 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4179 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4180 dereference TYPE_CODE_REF values.
4182 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4184 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4185 end of warning message.
4187 2014-04-03 Doug Evans <dje@google.com>
4189 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4190 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4192 2014-04-02 Alan Modra <amodra@gmail.com>
4194 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4195 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4196 (struct symbol_file_add_from_memory_args): Add size field.
4197 (find_vdso_size): New function.
4198 (add_vsyscall_page): Attempt to find vdso size.
4200 2014-04-01 Doug Evans <dje@google.com>
4202 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4204 2014-04-01 Tristan Gingold <gingold@adacore.com>
4206 * darwin-nat.c (darwin_encode_reply): Add prototype.
4207 (darwin_decode_exception_message): Reply to unknown inferiors.
4208 (darwin_decode_message): Handle message by id. Ignore message
4209 to unknown inferior.
4210 (darwin_wait): Discard unknown messages, add debug trace.
4212 2014-03-31 Doug Evans <dje@google.com>
4214 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4217 2014-03-31 Doug Evans <dje@google.com>
4219 New option "set print symbol-loading".
4221 * solib.c (solib_read_symbols): Only print symbol loading messages
4223 (solib_add): If symbol loading is in "brief" mode, notify user
4224 symbols are being loaded.
4225 (reload_shared_libraries_1): Ditto.
4226 * symfile.c (print_symbol_loading_off): New static global.
4227 (print_symbol_loading_brief): New static global.
4228 (print_symbol_loading_full): New static global.
4229 (print_symbol_loading_enums): New static global.
4230 (print_symbol_loading): New static global.
4231 (print_symbol_loading_p): New function.
4232 (symbol_file_add_with_addrs): Only print symbol loading messages
4234 (_initialize_symfile): Register "print symbol-loading" set/show
4236 * symfile.h (print_symbol_loading_p): Declare.
4238 2014-03-30 Doug Evans <xdje42@gmail.com>
4240 * infrun.c (set_last_target_status): New function.
4241 (handle_inferior_event): Call it.
4243 2014-03-30 Doug Evans <xdje42@gmail.com>
4245 * inferior.h (enum stop_kind): Improve comment.
4247 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4249 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4250 a reference, strip the reference layer before calling
4251 the lang_ops value_has_mutated callback.
4253 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4255 Remove some globals from our parser.
4256 * language.c (unk_lang_parser): Add "struct parser_state"
4258 * language.h (struct language_defn) <la_parser>: Likewise.
4259 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4260 (initialize_expout): Add "struct parser_state" argument.
4261 Rewrite function to use the parser state.
4262 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4263 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4264 write_exp_elt_longcst, write_exp_elt_dblcst,
4265 write_exp_elt_decfloatcst, write_exp_elt_type,
4266 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4267 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4268 write_dollar_variable): Likewise.
4269 (parse_exp_in_context_1): Use parser state.
4270 (insert_type_address_space): Add "struct parser_state" argument.
4272 (increase_expout_size): New function.
4273 * parser-defs.h: Forward declare "struct language_defn" and
4274 "struct parser_state".
4275 (expout, expout_size, expout_ptr): Remove extern declarations.
4276 (parse_gdbarch, parse_language): Rewrite macro declarations to
4277 accept the parser state.
4278 (struct parser_state): New struct.
4279 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4280 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4281 write_exp_elt_decfloatcst, write_exp_elt_type,
4282 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4283 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4284 write_exp_msymbol, write_dollar_variable,
4285 mark_struct_expression, insert_type_address_space): Add "struct
4286 parser_state" argument.
4287 (increase_expout_size): New function.
4288 * utils.c (do_clear_parser_state): New function.
4289 (make_cleanup_clear_parser_state): Likewise.
4290 * utils.h (make_cleanup_clear_parser_state): New function
4292 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4293 Update calls to write_exp* in order to pass the parser state.
4294 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4295 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4296 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4297 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4298 * stap-probe.c (stap_parse_register_operand): Likewise.
4299 (stap_parse_single_operand): Likewise.
4300 (stap_parse_argument_1): Likewise.
4301 (stap_parse_argument): Use parser state.
4302 * stap-probe.h: Include "parser-defs.h".
4303 (struct stap_parse_info) <pstate>: New field.
4304 * c-exp.y (parse_type): Rewrite to use parser state.
4305 (yyparse): Redefine to c_parse_internal.
4306 (pstate): New global variable.
4307 (parse_number): Add "struct parser_state" argument.
4308 (write_destructor_name): Likewise.
4309 (type_exp): Update calls to write_exp* and similars in order to
4311 (exp1, exp, variable, qualified_name, space_identifier,
4312 typename, typebase): Likewise.
4313 (write_destructor_name, parse_number, lex_one_token,
4314 classify_name, classify_inner_name, c_parse): Add "struct
4315 parser_state" argument. Update function to use parser state.
4316 * c-lang.h: Forward declare "struct parser_state".
4317 (c_parse): Add "struct parser_state" argument.
4318 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4319 (yyparse): Redefine macro to ada_parse_internal.
4320 (pstate): New variable.
4321 (write_int, write_object_renaming, write_var_or_type,
4322 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4323 type_int, type_long, type_long_long, type_float, type_double,
4324 type_long_double, type_char, type_boolean, type_system_address):
4325 Add "struct parser_state" argument.
4326 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4327 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4328 var_or_type, aggregate, aggregate_component_list,
4329 positional_list, others, component_group,
4330 component_associations): Update calls to write_exp* and similar
4331 functions in order to use parser state.
4332 (ada_parse, write_var_from_sym, write_int,
4333 write_exp_op_with_string, write_object_renaming,
4334 find_primitive_type, write_selectors, write_ambiguous_var,
4335 write_var_or_type, write_name_assoc, type_int, type_long,
4336 type_long_long, type_float, type_double, type_long_double,
4337 type_char, type_boolean, type_system_address): Add "struct
4338 parser_state" argument. Adjust function to use parser state.
4339 * ada-lang.c (parse): Likewise.
4340 * ada-lang.h: Forward declare "struct parser_state".
4341 (ada_parse): Add "struct parser_state" argument.
4342 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4343 calls to both functions.
4344 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4346 (yyparse): Redefine macro to f_parse_internal.
4347 (pstate): New variable.
4348 (parse_number): Add "struct parser_state" argument.
4349 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4350 and similars in order to use parser state.
4351 (parse_number): Adjust code to use parser state.
4353 (f_parse): New function.
4354 * f-lang.h: Forward declare "struct parser_state".
4355 (f_parse): Add "struct parser_state" argument.
4356 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4358 (yyparse): Redefine macro for java_parse_internal.
4359 (pstate): New variable.
4360 (push_expression_name, push_expression_name, insert_exp): Add
4361 "struct parser_state" argument.
4362 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4363 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4364 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4365 PostIncrementExpression, PostDecrementExpression,
4366 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4367 UnaryExpressionNotPlusMinus, CastExpression,
4368 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4369 RelationalExpression, EqualityExpression, AndExpression,
4370 ExclusiveOrExpression, InclusiveOrExpression,
4371 ConditionalAndExpression, ConditionalOrExpression,
4372 ConditionalExpression, Assignment, LeftHandSide): Update
4373 calls to write_exp* and similars in order to use parser state.
4374 (parse_number): Ajust code to use parser state.
4376 (java_parse): New function.
4377 (push_variable): Add "struct parser_state" argument. Adjust
4378 code to user parser state.
4379 (push_fieldnames, push_qualified_expression_name,
4380 push_expression_name, insert_exp): Likewise.
4381 * jv-lang.h: Forward declare "struct parser_state".
4382 (java_parse): Add "struct parser_state" argument.
4383 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4385 (yyparse): Redefine macro to m2_parse_internal.
4386 (pstate): New variable.
4387 (type_exp, exp, fblock, variable, type): Update calls to
4388 write_exp* and similars to use parser state.
4390 (m2_parse): New function.
4391 * m2-lang.h: Forward declare "struct parser_state".
4392 (m2_parse): Add "struct parser_state" argument.
4393 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4394 * objc-lang.h: Forward declare "struct parser_state".
4395 (end_msglist): Add "struct parser_state" argument.
4396 * p-exp.y (parse_type): Rewrite macro to use parser state.
4397 (yyparse): Redefine macro to pascal_parse_internal.
4398 (pstate): New variable.
4399 (parse_number): Add "struct parser_state" argument.
4400 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4401 write_exp* and similars in order to use parser state.
4402 (parse_number, yylex): Adjust code to use parser state.
4403 (pascal_parse): New function.
4404 * p-lang.h: Forward declare "struct parser_state".
4405 (pascal_parse): Add "struct parser_state" argument.
4406 * go-exp.y (parse_type): Rewrite macro to use parser state.
4407 (yyparse): Redefine macro to go_parse_internal.
4408 (pstate): New variable.
4409 (parse_number): Add "struct parser_state" argument.
4410 (type_exp, exp1, exp, variable, type): Update calls to
4411 write_exp* and similars in order to use parser state.
4412 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4413 to use parser state.
4414 (go_parse): Likewise.
4415 * go-lang.h: Forward declare "struct parser_state".
4416 (go_parse): Add "struct parser_state" argument.
4418 2014-03-27 Doug Evans <dje@google.com>
4420 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4422 2014-03-27 Doug Evans <dje@google.com>
4424 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4425 Remove argument abbrev_section. All callers updated.
4427 2014-03-27 Doug Evans <dje@google.com>
4429 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4430 addr_base, ranges_base.
4432 2014-03-26 Keith Seitz <keiths@redhat.com>
4434 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4435 types, not VAR_DOMAIN.
4437 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4439 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4441 * features/nios2-linux.c: Regenerated.
4442 * features/nios2.c: Regenerated.
4444 2014-03-25 Pedro Alves <palves@redhat.com>
4446 * cli/cli-script.c (script_from_file): Force the interpreter to
4449 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4451 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4452 small stack allocation.
4454 2014-03-24 Tristan Gingold <gingold@adacore.com>
4456 * darwin-nat.c (exc_server): Remove unused prototype.
4457 (darwin_dump_message): Correctly display data on x86_64.
4458 (darwin_encode_reply): Fix style.
4459 Add comments and fix indentation.
4461 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4463 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4465 2014-03-22 Doug Evans <xdje42@gmail.com>
4467 * infcmd.c: Whitespace fixes.
4468 (interrupt_command): Merge two function comments into one.
4470 2014-03-22 Doug Evans <xdje42@gmail.com>
4472 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4475 2014-03-22 Yao Qi <yao@codesourcery.com>
4477 * remote.c (target_read_live_memory): Remove.
4478 (memory_xfer_live_readonly_partial): Rename it to
4479 remote_xfer_live_readonly_partial. Remove argument 'object'.
4480 All callers updated. Call remote_read_bytes_1
4481 instead of target_read_live_memory.
4482 * tracepoint.c (set_traceframe_number): Remove.
4483 (make_cleanup_restore_traceframe_number): Likewise .
4484 * tracepoint.h (set_traceframe_number): Remove declaration.
4485 (make_cleanup_restore_traceframe_number): Likewise.
4487 2014-03-22 Yao Qi <yao@codesourcery.com>
4489 * remote.c (remote_read_bytes): Move code on reading from the
4491 (remote_read_bytes_1): ... here. New function.
4493 2014-03-22 Yao Qi <yao@codesourcery.com>
4495 * ctf.c (ctf_xfer_partial): Check the return value of
4496 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4497 return TARGET_XFER_UNAVAILABLE.
4498 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4499 * target.c (target_read_live_memory): Move it to remote.c.
4500 (memory_xfer_live_readonly_partial): Likewise.
4501 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4502 * remote.c (target_read_live_memory): Moved from target.c.
4503 (memory_xfer_live_readonly_partial): Likewise.
4504 (remote_read_bytes): Factored out from
4505 memory_xfer_partial_1.
4507 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4509 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4512 2014-03-21 Pedro Alves <palves@redhat.com>
4514 * infrun.c (normal_stop): Extend comment.
4516 2014-03-21 Hui Zhu <hui@codesourcery.com>
4517 Pedro Alves <palves@redhat.com>
4519 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4521 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4522 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4523 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4525 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4527 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4528 `z' formatted output modifier.
4530 2014-03-20 Tom Tromey <tromey@redhat.com>
4531 Sergio Durigan Junior <sergiodj@redhat.com>
4533 * probe.c (parse_probes): Turn assert into an ordinary error.
4534 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4535 exceptions when parsing probes. Rearrange the code for clarity.
4537 2014-03-20 Tom Tromey <tromey@redhat.com>
4540 * top.c (execute_command): Only dispatch events if the command
4543 2014-03-20 Tom Tromey <tromey@redhat.com>
4546 * infcall.c: Include event-top.h.
4547 (run_inferior_call): Call async_disable_stdin if needed.
4549 2014-03-20 Pedro Alves <palves@redhat.com>
4551 * infrun.c (prepare_to_proceed): Delete.
4552 (thread_still_needs_step_over): New function.
4553 (find_thread_needs_step_over): New function.
4554 (proceed): If the current thread needs a step-over, set its
4555 steping_over_breakpoint flag. Adjust to use
4556 find_thread_needs_step_over instead of prepare_to_proceed.
4557 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4558 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4560 (switch_back_to_stepped_thread): Step over breakpoints of all
4561 threads not the stepping thread, before switching back to the
4564 2014-03-20 Pedro Alves <palves@redhat.com>
4566 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4568 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4569 * infrun.c (saved_singlestep_ptid)
4570 (stepping_past_singlestep_breakpoint): Delete.
4571 (resume): Remove stepping_past_singlestep_breakpoint handling.
4572 (proceed): Store the prev_pc of the stepping thread too.
4573 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4575 (enum infwait_states): Delete infwait_thread_hop_state.
4576 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4578 (handle_inferior_event): Adjust.
4579 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4580 handling and the thread-hop code. Before removing single-step
4581 breakpoints, check whether the thread hit a single-step breakpoint
4582 of another thread. If it did, the trap is not a random signal.
4583 (switch_back_to_stepped_thread): If the event thread hit a
4584 single-step breakpoint, unblock it before switching to the
4585 stepping thread. Handle the case of the stepped thread having
4587 (keep_going): Handle the case of the current thread moving past a
4588 single-step breakpoint.
4590 2014-03-20 Pedro Alves <palves@redhat.com>
4593 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4594 are being stepped over.
4595 (breakpoint_address_match): Make extern.
4596 * breakpoint.h (breakpoint_address_match): New declaration.
4597 * inferior.h (stepping_past_instruction_at): New declaration.
4598 * infrun.c (struct step_over_info): New type.
4599 (step_over_info): New global.
4600 (set_step_over_info, clear_step_over_info)
4601 (stepping_past_instruction_at): New functions.
4602 (handle_inferior_event): Clear the step-over info when
4603 trap_expected is cleared.
4604 (resume): Remove now stale comment.
4605 (clear_proceed_status): Clear step-over info.
4606 (proceed): Adjust step-over handling to set or clear the step-over
4607 info instead of removing all breakpoints.
4608 (handle_signal_stop): When setting up a thread-hop, don't remove
4610 (stop_stepping): Clear step-over info.
4611 (keep_going): Adjust step-over handling to set or clear step-over
4612 info and then always inserting breakpoints, instead of removing
4613 all breakpoints when stepping over one.
4615 2014-03-20 Pedro Alves <palves@redhat.com>
4617 * infrun.c (previous_inferior_ptid): Adjust comment.
4618 (deferred_step_ptid): Delete.
4619 (infrun_thread_ptid_changed, prepare_to_proceed)
4620 (init_wait_for_inferior): Adjust.
4621 (handle_signal_stop): Delete deferred_step_ptid handling.
4623 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4626 * defs.h (sync_quit_force_run): New declaration.
4627 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4628 * event-top.c (async_sigterm_handler): New declaration.
4629 (async_sigterm_token): New variable.
4630 (async_init_signals): Create also async_sigterm_token.
4631 (async_sigterm_handler): New function.
4632 (sync_quit_force_run): New variable.
4633 (handle_sigterm): Replace quit_force call by other calls.
4634 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4636 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4638 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4639 offset into SPE pseudo registers.
4641 2014-03-18 Pedro Alves <palves@redhat.com>
4644 * inferior.h (print_stop_event): Declare.
4645 * infrun.c (print_stop_event): New, factored out from ...
4646 (normal_stop): ... this.
4647 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4648 of bpstat_print/print_stack_frame.
4650 2014-03-17 Tom Tromey <tromey@redhat.com>
4652 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4654 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4656 * ada-lang.c (decode_constrained_packed_array): Perform a
4657 minimal coercion for reference with coerce_ref instead of
4660 2014-03-17 Tristan Gingold <gingold@adacore.com>
4662 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4663 (darwin_solib_create_inferior_hook): Emit a warning if version
4666 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4668 * python/py-value.c (get_field_flag): Cast flag_name argument to
4669 PyObject_GetAttrString to support Python 2.4.
4671 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4673 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4674 (Global Maintainers): Remove Jan Kratochvil.
4676 2014-03-14 Pedro Alves <palves@redhat.com>
4678 * inferior.h (terminal_ours_for_output): Rename to ...
4679 (child_terminal_ours_for_output): ... this.
4680 (terminal_save_ours): Rename to ...
4681 (child_terminal_save_ours): ... this.
4682 (terminal_ours): Rename to ...
4683 (child_terminal_ours): ... this.
4684 (terminal_inferior): Rename to ...
4685 (child_terminal_inferior): ... this.
4686 (terminal_init_inferior): Rename to ...
4687 (child_terminal_init_inferior): ... this.
4688 (terminal_init_inferior_with_pgrp): Rename to ...
4689 (child_terminal_init_inferior_with_pgrp): ... this.
4690 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4691 (child_terminal_init_with_pgrp): ... this.
4692 (terminal_save_ours): Rename to ...
4693 (child_terminal_save_ours): ... this.
4694 (terminal_init_inferior): Rename to ...
4695 (child_terminal_init): ... this. Adjust.
4696 (terminal_inferior): Rename to ...
4697 (child_terminal_inferior): ... this.
4698 (terminal_ours_for_output): Rename to ...
4699 (child_terminal_ours_for_output): ... this. Adjust.
4700 (terminal_ours): Rename to ...
4701 (child_terminal_ours): ... this.
4702 (terminal_ours_1): Rename to ...
4703 (child_terminal_ours_1): ... this. Adjust.
4704 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4705 * windows-nat.c (do_initial_windows_stuff): Adjust.
4706 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4707 (gnu_terminal_init): ... this. Adjust.
4708 (gnu_target): Adjust.
4709 * inf-child.c (inf_child_target): Adjust.
4711 2014-03-13 Doug Evans <xdje42@gmail.com>
4714 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4717 2014-03-13 Doug Evans <xdje42@gmail.com>
4719 * value.c (record_latest_value): Call release_value_or_incref
4720 instead of release_value.
4722 2014-03-13 Pedro Alves <palves@redhat.com>
4724 * procfs.c (procfs_target): Don't override to_shortname,
4725 to_longname or to_doc.
4727 2014-03-13 Pedro Alves <palves@redhat.com>
4729 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4730 Unix in user visible strings.
4732 2014-03-12 Stan Shebs <stan@codesourcery.com>
4734 * gdbtypes.h: Annotate comments for Doxygen, add a page
4735 block comment with some general info.
4737 2014-03-12 Pedro Alves <palves@redhat.com>
4739 * infcmd.c (prepare_execution_command): New function, factored out
4740 from several execution commands.
4741 (run_command_1, continue_command, step_1, jump_command)
4742 (signal_command, until_command, advance_command, finish_command)
4743 (attach_command): Use prepare_execution_command.
4745 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4747 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4750 (struct arm_linux_thread_points): Removed.
4751 (struct arm_linux_process_info): New.
4752 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4753 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4754 (arm_linux_find_breakpoints_by_tid): Removed.
4755 (struct arch_lwp_info): New.
4756 (arm_linux_find_process_pid): New functions.
4757 (arm_linux_add_process): New functions.
4758 (arm_linux_process_info_get): New functions.
4759 (arm_linux_forget_process): New function.
4760 (arm_linux_get_debug_reg_state): New function.
4761 (struct update_registers_data): New.
4762 (update_registers_callback): New function.
4763 (arm_linux_insert_hw_breakpoint1): Updated.
4764 (arm_linux_remove_hw_breakpoint1): Updated.
4765 (arm_linux_insert_hw_breakpoint): Updated.
4766 (arm_linux_remove_hw_breakpoint): Updated.
4767 (arm_linux_insert_watchpoint): Updated.
4768 (arm_linux_remove_watchpoint): Updated.
4769 (arm_linux_new_thread): Updated.
4770 (arm_linux_prepare_to_resume): New function.
4771 (arm_linux_new_fork): New function.
4772 (_initialize_arm_linux_nat): Updated.
4774 2014-03-12 Pedro Alves <palves@redhat.com>
4776 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4778 2014-03-12 Tom Tromey <tromey@redhat.com>
4780 * inf-child.c (return_zero): New function.
4781 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4782 * aix-thread.c (aix_thread_inferior_created): New function.
4783 (aix_thread_attach): Remove.
4784 (init_aix_thread_ops): Don't set to_attach.
4785 (_initialize_aix_thread): Register inferior_created observer.
4786 * corelow.c (init_core_ops): Don't set to_attach or
4788 * exec.c (init_exec_ops): Don't set to_attach or
4790 * infcmd.c (run_command_1): Use find_run_target. Make direct
4792 (attach_command): Use find_attach_target. Make direct target
4794 * record-btrace.c (init_record_btrace_ops): Don't set
4796 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4798 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4799 set to_create_inferior.
4800 * target.c (complete_target_initialization): Add assertion.
4801 (target_create_inferior): Remove.
4802 (find_default_attach, find_default_create_inferior): Remove.
4803 (find_attach_target, find_run_target): New functions.
4804 (find_default_is_async_p, find_default_can_async_p)
4805 (target_supports_non_stop, target_attach): Remove.
4806 (init_dummy_target): Don't set to_create_inferior or
4807 to_supports_non_stop.
4808 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4809 TARGET_DEFAULT_FUNC.
4810 <to_create_inferior>: Add comment.
4811 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4812 TARGET_DEFAULT_RETURN.
4813 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4814 (find_attach_target, find_run_target): Declare.
4815 (target_create_inferior): Remove.
4816 (target_has_execution_1): Update comment.
4817 (target_supports_non_stop): Remove.
4818 * target-delegates.c: Rebuild.
4820 2014-03-12 Pedro Alves <palves@redhat.com>
4822 * inf-child.h: Update comment to not mention Unix.
4824 2014-03-12 Pedro Alves <palves@redhat.com>
4826 * inf-child.c: Update top comment to not mention Unix. Add
4827 generic comment describing how this target is meant to be used.
4828 (inf_child_post_attach, inf_child_post_startup_inferior)
4829 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4832 2014-03-12 Pedro Alves <palves@redhat.com>
4834 * nto-procfs.c: Include inf-child.h.
4835 (procfs_ops): Delete global.
4836 (procfs_can_run): Delete method.
4837 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4838 target pointer instead of referencing procfs_ops.
4839 (procfs_prepare_to_store): Delete.
4840 (init_procfs_ops): Delete function.
4841 (procfs_target): New function, based on init_procfs_ops, but
4842 inherit inf_child_target.
4843 (_initialize_procfs): Use procfs_target.
4845 2014-03-12 Pedro Alves <palves@redhat.com>
4847 * windows-nat.c: Include inf-child.h.
4848 (windows_ops): Delete global.
4849 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4851 (init_windows_ops): Delete function.
4852 (windows_target): New function, based on init_windows_ops, but
4853 inherit inf_child_target.
4854 (_initialize_windows_nat): Use windows_target. Install x86
4855 specific target methods here.
4857 2014-03-10 Doug Evans <xdje42@gmail.com>
4859 * guile/guile.c (call_initialize_gdb_module): New function.
4860 (initialize_guile): Replace call to scm_init_guile with call to
4863 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4865 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4866 in call to TYPE_CODE macro.
4868 2014-03-10 Jerome Guitton <guitton@adacore.com>
4870 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4871 Resolve tagged types to full view.
4873 2014-03-10 Hui Zhu <hui@codesourcery.com>
4875 * target.h (target_insert_breakpoint): Remove "hardware" from its
4878 2014-03-07 Doug Evans <dje@google.com>
4880 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4882 2014-03-07 Doug Evans <dje@google.com>
4884 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4885 Remove unused local comp_dir_attr. Assert exactly one of
4886 stub_comp_unit_die, stub_comp_dir is non-NULL.
4888 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4890 * target.h (complete_target_initialization, add_target):
4893 2014-03-07 Pedro Alves <palves@redhat.com>
4895 * go32-nat.c: Include inf-child.h.
4896 (go32_ops): Delete global.
4897 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4899 (go32_create_inferior): Push the passed in target pointer instead
4900 of referencing go32_ops.
4901 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4902 (go32_target): New function, based on init_go32_ops, but inherit
4904 (_initialize_go32_nat): Use go32_target. Move parts of
4907 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4909 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4910 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4911 SYMBOL_VALUE_ADDRESS.
4912 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4914 2014-03-06 Yao Qi <yao@codesourcery.com>
4916 * breakpoint.c (get_tracepoint_by_number): Remove argument
4917 optional_p. All callers updated. Adjust comments. Update
4919 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4921 2014-03-06 Yao Qi <yao@codesourcery.com>
4923 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4924 early if get_number returns zero. Use 'p' instead of 'args'.
4926 2014-03-06 Yao Qi <yao@codesourcery.com>
4928 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4931 2014-03-06 Yao Qi <yao@codesourcery.com>
4933 PR breakpoints/16508
4934 * tracepoint.c (check_trace_running): New function.
4935 (trace_find_command): Move code to check_trace_running and
4936 call check_trace_running.
4937 (trace_find_pc_command): Likewise.
4938 (trace_find_tracepoint_command): Likewise.
4939 (trace_find_line_command): Likewise.
4940 (trace_find_range_command): Likewise.
4941 * tracepoint.h (check_trace_running): Likewise.
4942 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4944 2014-03-06 Yao Qi <yao@codesourcery.com>
4946 * target.h (struct target_ops) <to_traceframe_info>: Use
4947 TARGET_DEFAULT_NORETURN (tcomplain ()).
4948 * target-delegates.c: Regenerated.
4950 2014-03-05 Pedro Alves <palves@redhat.com>
4953 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4954 void. Update comment.
4955 (dcache_xfer_memory): Delete.
4956 (dcache_read_memory_partial): New, based on the read bits of
4958 (dcache_update): Add status parameter. Use ULONGEST for len, and
4959 adjust. Discard cache lines if the reason for the update was
4961 * dcache.h (dcache_xfer_memory): Delete declaration.
4962 (dcache_read_memory_partial): New declaration.
4963 (dcache_update): Update prototype.
4964 * target.c (raw_memory_xfer_partial): Update the dcache here.
4965 (memory_xfer_partial_1): Don't handle dcache writes here.
4967 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4969 * remote-sim.c (gdbsim_load): Add const to prog.
4971 2014-03-03 Tom Tromey <tromey@redhat.com>
4973 * elfread.c (probe_key): Change to bfd_data.
4974 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4975 now per-BFD, not per-objfile.
4976 * stap-probe.c (stap_probe_destroy): Update comment.
4977 (handle_stap_probe): Allocate on the per-BFD obstack.
4979 2014-03-03 Tom Tromey <tromey@redhat.com>
4981 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4982 * breakpoint.c (create_longjmp_master_breakpoint): Use
4984 (add_location_to_breakpoint, bkpt_probe_insert_location)
4985 (bkpt_probe_remove_location): Update.
4986 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4987 * elfread.c (elf_symfile_relocate_probe): Remove.
4988 (elf_probe_fns): Update.
4989 (insert_exception_resume_breakpoint): Change type of "probe"
4990 parameter to bound_probe.
4991 (check_exception_resume): Update.
4992 * objfiles.c (objfile_relocate1): Don't relocate probes.
4993 * probe.c (bound_probe_s): New typedef.
4994 (parse_probes): Use get_probe_address. Set sal's objfile.
4995 (find_probe_by_pc): Return a bound_probe.
4996 (collect_probes): Return a VEC(bound_probe_s).
4997 (compare_probes): Update.
4998 (gen_ui_out_table_header_info): Change type of "probes"
5000 (info_probes_for_ops): Update.
5001 (get_probe_address): New function.
5002 (probe_safe_evaluate_at_pc): Update.
5003 * probe.h (struct probe_ops) <get_probe_address>: New field.
5004 <set_semaphore, clear_semaphore>: Add objfile parameter.
5005 (struct probe) <objfile>: Remove field.
5007 <address>: Update comment.
5008 (struct bound_probe): New.
5009 (find_probe_by_pc): Return a bound_probe.
5010 (get_probe_address): Declare.
5011 * solib-svr4.c (struct probe_and_action) <address>: New field.
5012 (hash_probe_and_action, equal_probe_and_action): Update.
5013 (register_solib_event_probe): Add address parameter.
5014 (solib_event_probe_at): Update.
5015 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5017 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5018 (stap_get_probe_address): New function.
5019 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5020 (compile_probe_arg): Update.
5021 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5023 (handle_stap_probe): Don't relocate the probe.
5024 (stap_relocate): Remove.
5025 (stap_gen_info_probes_table_values): Update.
5026 (stap_probe_ops): Remove stap_relocate.
5027 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5028 (debug_sym_probe_fns): Update.
5029 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5030 * symtab.c (init_sal): Use memset.
5031 * symtab.h (struct symtab_and_line) <objfile>: New field.
5032 * tracepoint.c (start_tracing, stop_tracing): Update.
5034 2014-03-03 Tom Tromey <tromey@redhat.com>
5036 * probe.h (parse_probes, find_probe_by_pc)
5037 (find_probes_in_objfile): Fix comments.
5039 2014-03-02 Doug Evans <xdje42@gmail.com>
5041 * infrun.c (handle_signal_stop): Replace test for
5042 TARGET_WAITKIND_STOPPED with an assert.
5044 2014-03-02 Doug Evans <xdje42@gmail.com>
5046 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5048 2014-03-02 Doug Evans <xdje42@gmail.com>
5050 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5052 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5054 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5056 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5058 * i386obsd-nat.c: Include "obsd-nat.h".
5059 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5061 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5063 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5065 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5067 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5069 * mips64obsd-nat.c: Include "obsd-nath".
5070 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5072 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5074 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5076 * amd64obsd-nat.c: Include "obsd-nat,h.
5077 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5079 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5081 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5083 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5084 (find_overload_match): Update call to find_oload_champ.
5085 (find_oload_champ_namespace_loop): Likewise
5087 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5089 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5091 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5092 * config/sparc/obsd64.mh: New file.
5093 * sparc64obsd-nat.c: New file.
5095 * obsd-nat.h: New file.
5096 * obsd-nat.c: New file.
5097 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5098 (ALLDEPFILES): Add obsd-nat.c.
5100 2014-02-28 Tom Tromey <tromey@redhat.com>
5102 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5103 * cli-out.h (cli_ui_out_impl): Now const.
5104 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5105 * ui-out.c (struct ui_out) <impl>: Now const.
5106 (default_ui_out_impl): Now const.
5107 (ui_out_new): Make 'impl' parameter const.
5108 * ui-out.h (ui_out_new): Update.
5110 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5112 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5114 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5116 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5118 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5120 Additional PR 8882 fix.
5121 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5123 2014-02-27 Pedro Alves <palves@redhat.com>
5125 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5128 2014-02-27 Pedro Alves <palves@redhat.com>
5131 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5132 * nat/linux-waitpid.c: Include string.h.
5133 (status_to_str): Moved here and made extern.
5134 * nat/linux-waitpid.h (status_to_str): New declaration.
5136 2014-02-27 Hui Zhu <hui@codesourcery.com>
5139 * infrun.c (ptid_match): Move ...
5140 * common/ptid.c (ptid_match): ... here.
5141 * inferior.h (ptid_match): Move ...
5142 * common/ptid.h (ptid_match): ... here.
5144 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5146 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5147 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5150 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5152 * obsd-tdep.c (obsd_auxv_parse): New function.
5153 (obsd_init_abi): Set auxv_parse.
5155 * gdbarch.sh (auxv_parse): New.
5156 * gdbarch.h: Regenerated.
5157 * gdbarch.c: Regenerated.
5158 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5160 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5162 * guile/scm-value.c (gdbscm_history_append_x): New function.
5163 (value_functions): Add it.
5165 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5167 * dwarf2read.c (attr_value_as_address): New function.
5168 (dwarf2_find_base_address, read_call_site_scope): Use
5169 attr_value_as_address in place of DW_ADDR.
5170 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5171 the low and high addresses. Slight rework of the handling
5172 of the high pc being a constant form, and limit it to
5173 DWARF verson 4 or higher.
5174 (dwarf2_record_block_ranges): Likewise.
5175 (read_partial_die): Likewise.
5176 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5178 2014-02-26 Tom Tromey <tromey@redhat.com>
5180 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5182 2014-02-26 Tom Tromey <tromey@redhat.com>
5184 * elfread.c (elf_read_minimal_symbols): Return early if
5185 minimal symbols have already been read. Add "ei" parameter.
5186 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5187 * minsyms.c (prim_record_minimal_symbol_full): Update.
5188 * objfiles.h (struct objstats) <n_minsyms>: Move...
5189 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5190 * symmisc.c (print_objfile_statistics): Update.
5192 2014-02-26 Tom Tromey <tromey@redhat.com>
5194 * elfread.c (elf_read_minimal_symbols): New function, from
5196 (elf_symfile_read): Call it.
5198 2014-02-26 Tom Tromey <tromey@redhat.com>
5200 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5201 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5202 (lookup_minimal_symbol_solib_trampoline)
5203 (lookup_minimal_symbol_by_pc_section_1)
5204 (lookup_minimal_symbol_and_objfile): Update.
5205 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5206 Don't allocate a minimal symbol if minsyms have already been read.
5207 (build_minimal_symbol_hash_tables): Update.
5208 (install_minimal_symbols): Do nothing if minsyms already read.
5209 Use the per-BFD obstack.
5210 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5211 * objfiles.c (allocate_objfile): Call
5212 terminate_minimal_symbol_table later.
5213 (have_minimal_symbols): Update.
5214 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5215 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5216 Move from struct objfile.
5217 <minsyms_read>: New field.
5218 (struct objfile) <msymbols, minimal_symbol_count,
5219 msymbol_hash, msymbol_demangled_hash>: Move.
5220 (ALL_OBJFILE_MSYMBOLS): Update.
5221 * symfile.c (read_symbols): Set minsyms_read.
5222 (reread_symbols): Update.
5223 * symmisc.c (dump_objfile, dump_msymbols): Update.
5225 2014-02-26 Tom Tromey <tromey@redhat.com>
5227 * minsyms.c (msymbols_sort): Remove.
5228 * minsyms.h (msymbols_sort): Remove.
5229 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5230 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5231 * elfread.c (elf_symtab_read): Don't add section offsets.
5232 * xcoffread.c (record_minimal_symbol): Don't add section offset
5233 to minimal symbol address.
5234 * somread.c (text_offset, data_offset): Remove.
5235 (som_symtab_read): Don't add section offsets to minimal symbol
5237 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5238 Don't add section offsets to minimal symbols.
5239 * coffread.c (coff_symtab_read): Don't add section offsets
5240 to minimal symbol addresses.
5241 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5242 to minimal symbol addresses.
5243 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5244 section offset to minimal symbol addresses.
5245 * mdebugread.c (parse_partial_symbols): Don't add section
5246 offset to minimal symbol addresses.
5247 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5248 offset to minimal symbol addresses.
5250 2014-02-26 Tom Tromey <tromey@redhat.com>
5252 * ada-lang.c (ada_main_name): Update.
5253 (ada_add_standard_exceptions): Update.
5254 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5255 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5256 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5257 * auxv.c (ld_so_xfer_auxv): Update.
5258 * avr-tdep.c (avr_scan_prologue): Update.
5259 * ax-gdb.c (gen_var_ref): Update.
5260 * blockframe.c (get_pc_function_start)
5261 (find_pc_partial_function_gnu_ifunc): Update.
5262 * breakpoint.c (create_overlay_event_breakpoint)
5263 (create_longjmp_master_breakpoint)
5264 (create_std_terminate_master_breakpoint)
5265 (create_exception_master_breakpoint): Update.
5266 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5267 * c-valprint.c (c_val_print): Update.
5268 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5269 * common/agent.c (agent_look_up_symbols): Update.
5270 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5271 * dwarf2loc.c (call_site_to_target_addr): Update.
5272 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5273 * elfread.c (elf_gnu_ifunc_record_cache)
5274 (elf_gnu_ifunc_resolve_by_got): Update.
5275 * findvar.c (default_read_var_value): Update.
5276 * frame.c (inside_main_func): Update.
5277 * frv-tdep.c (frv_frame_this_id): Update.
5278 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5279 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5281 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5282 (hppa_hpux_find_dummy_bpaddr): Update.
5283 * hppa-tdep.c (hppa_symbol_address): Update.
5284 * infcmd.c (until_next_command): Update.
5285 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5287 * linespec.c (minsym_found, add_minsym): Update.
5288 * linux-nat.c (get_signo): Update.
5289 * linux-thread-db.c (inferior_has_bug): Update.
5290 * m32c-tdep.c (m32c_return_value)
5291 (m32c_m16c_address_to_pointer): Update.
5292 * m32r-tdep.c (m32r_frame_this_id): Update.
5293 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5294 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5295 * maint.c (maintenance_translate_address): Update.
5296 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5297 (frob_address): New function.
5298 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5299 frob_address. Rename parameter to "pc_in".
5300 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5302 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5304 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5305 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5306 * objc-lang.c (find_objc_msgsend): Update.
5307 * objfiles.c (objfile_relocate1): Update.
5308 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5309 * p-valprint.c (pascal_val_print): Update.
5310 * parse.c (write_exp_msymbol): Update.
5311 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5312 (ppc_elfv2_skip_entrypoint): Update.
5313 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5314 * printcmd.c (build_address_symbolic, msym_info)
5315 (address_info): Update.
5316 * proc-service.c (ps_pglobal_lookup): Update.
5317 * psymtab.c (find_pc_sect_psymtab_closer)
5318 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5319 Change msymbol parameter to bound_minimal_symbol.
5320 * ravenscar-thread.c (get_running_thread_id): Update.
5321 * remote.c (remote_check_symbols): Update.
5322 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5324 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5325 * solib-dsbt.c (lm_base): Update.
5326 * solib-frv.c (lm_base, main_got): Update.
5327 * solib-irix.c (locate_base): Update.
5328 * solib-som.c (som_solib_create_inferior_hook)
5329 (link_map_start): Update.
5330 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5331 * solib-svr4.c (elf_locate_base, enable_break): Update.
5332 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5333 (flush_ea_cache): Update.
5334 * stabsread.c (define_symbol, scan_file_globals): Update.
5335 * stack.c (find_frame_funname): Update.
5336 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5337 (debug_qf_find_pc_sect_symtab): Update.
5338 * symfile.c (simple_read_overlay_table)
5339 (simple_overlay_update): Update.
5340 * symfile.h (struct quick_symbol_functions)
5341 <find_pc_sect_symtab>: Change type of msymbol to
5342 bound_minimal_symbol.
5343 * symmisc.c (dump_msymbols): Update.
5344 * symtab.c (find_pc_sect_symtab_via_partial)
5345 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5346 (search_symbols, print_msymbol_info): Update.
5347 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5348 (MSYMBOL_VALUE_ADDRESS): Redefine.
5349 (BMSYMBOL_VALUE_ADDRESS): New macro.
5350 * tracepoint.c (scope_info): Update.
5351 * tui/tui-disasm.c (tui_find_disassembly_address)
5352 (tui_get_begin_asm_address): Update.
5353 * valops.c (find_function_in_inferior): Update.
5354 * value.c (value_static_field, value_fn_field): Update.
5356 2014-02-26 Tom Tromey <tromey@redhat.com>
5358 * ada-lang.c (ada_update_initial_language): Update.
5359 (ada_main_name, ada_has_this_exception_support): Update.
5360 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5361 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5362 * arm-tdep.c (arm_skip_stub): Update.
5363 * auxv.c (ld_so_xfer_auxv): Update.
5364 * avr-tdep.c (avr_scan_prologue): Update.
5365 * ax-gdb.c (gen_var_ref): Update.
5366 * breakpoint.c (struct breakpoint_objfile_data)
5367 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5368 type to bound_minimal_symbol.
5369 (create_overlay_event_breakpoint)
5370 (create_longjmp_master_breakpoint)
5371 (create_std_terminate_master_breakpoint)
5372 (create_exception_master_breakpoint): Update.
5373 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5374 * c-exp.y (classify_name): Update.
5375 * coffread.c (coff_symfile_read): Update.
5376 * common/agent.c (agent_look_up_symbols): Update.
5377 * d-lang.c (d_main_name): Update.
5378 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5379 * dec-thread.c (enable_dec_thread): Update.
5380 * dwarf2loc.c (call_site_to_target_addr): Update.
5381 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5382 * eval.c (evaluate_subexp_standard): Update.
5383 * findvar.c (struct minsym_lookup_data) <result>: Change type
5384 to bound_minimal_symbol.
5386 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5387 * frame.c (inside_main_func): Update.
5388 * frv-tdep.c (frv_frame_this_id): Update.
5389 * gcore.c (call_target_sbrk): Update.
5390 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5391 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5393 * go-lang.c (go_main_name): Update.
5394 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5395 (hppa_hpux_find_import_stub_for_addr): Update.
5396 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5397 Update. Change return type.
5398 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5400 * jit.c (jit_breakpoint_re_set_internal): Update.
5401 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5403 * linux-nat.c (get_signo): Update.
5404 * linux-thread-db.c (inferior_has_bug): Update
5405 * m32c-tdep.c (m32c_return_value)
5406 (m32c_m16c_address_to_pointer): Update.
5407 * m32r-tdep.c (m32r_frame_this_id): Update.
5408 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5409 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5410 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5411 lookup_minimal_symbol. Change return type.
5412 (lookup_minimal_symbol): Remove.
5413 (lookup_bound_minimal_symbol): Update.
5414 (lookup_minimal_symbol_text): Change return type.
5415 (lookup_minimal_symbol_solib_trampoline): Change return type.
5416 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5417 (lookup_minimal_symbol_solib_trampoline): Change return type.
5418 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5419 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5420 (value_nsstring, find_imps): Update.
5421 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5422 * p-lang.c (pascal_main_name): Update.
5423 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5424 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5425 * proc-service.c (ps_pglobal_lookup): Update.
5426 * ravenscar-thread.c (get_running_thread_msymbol): Change
5428 (has_ravenscar_runtime, get_running_thread_id): Update.
5429 * remote.c (remote_check_symbols): Update.
5430 * sol-thread.c (ps_pglobal_lookup): Update.
5431 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5432 * solib-dsbt.c (lm_base): Update.
5433 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5435 * solib-irix.c (locate_base): Update.
5436 * solib-som.c (som_solib_create_inferior_hook)
5437 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5439 * solib-spu.c (spu_enable_break): Update.
5440 * solib-svr4.c (elf_locate_base, enable_break): Update.
5441 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5442 (flush_ea_cache): Update.
5443 * stabsread.c (define_symbol): Update.
5444 * symfile.c (simple_read_overlay_table): Update.
5445 * symtab.c (find_pc_sect_line): Update.
5446 * tracepoint.c (scope_info): Update.
5447 * tui-disasm.c (tui_get_begin_asm_address): Update.
5448 * value.c (value_static_field): Update.
5450 2014-02-26 Tom Tromey <tromey@redhat.com>
5452 * minsyms.c (prim_record_minimal_symbol_full): Use
5453 SET_MSYMBOL_VALUE_ADDRESS.
5454 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5455 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5456 SET_MSYMBOL_VALUE_ADDRESS.
5457 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5458 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5460 2014-02-26 Tom Tromey <tromey@redhat.com>
5462 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5463 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5464 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5465 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5466 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5467 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5468 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5469 * ada-lang.c (ada_main_name): Update.
5470 (ada_lookup_simple_minsym): Update.
5471 (ada_make_symbol_completion_list): Update.
5472 (ada_add_standard_exceptions): Update.
5473 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5474 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5475 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5476 * arm-tdep.c (skip_prologue_function): Update.
5477 (arm_skip_stack_protector, arm_skip_stub): Update.
5478 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5479 (arm_wince_skip_main_prologue): Update.
5480 * auxv.c (ld_so_xfer_auxv): Update.
5481 * avr-tdep.c (avr_scan_prologue): Update.
5482 * ax-gdb.c (gen_var_ref): Update.
5483 * block.c (call_site_for_pc): Update.
5484 * blockframe.c (get_pc_function_start): Update.
5485 (find_pc_partial_function_gnu_ifunc): Update.
5486 * breakpoint.c (create_overlay_event_breakpoint): Update.
5487 (create_longjmp_master_breakpoint): Update.
5488 (create_std_terminate_master_breakpoint): Update.
5489 (create_exception_master_breakpoint): Update.
5490 (resolve_sal_pc): Update.
5491 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5492 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5494 * c-valprint.c (c_val_print): Update.
5495 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5496 * coffread.c (coff_symfile_read): Update.
5497 * common/agent.c (agent_look_up_symbols): Update.
5498 * dbxread.c (find_stab_function_addr): Update.
5499 (end_psymtab): Update.
5500 * dwarf2loc.c (call_site_to_target_addr): Update.
5501 (func_verify_no_selftailcall): Update.
5502 (tailcall_dump): Update.
5503 (call_site_find_chain_1): Update.
5504 (dwarf_expr_reg_to_entry_parameter): Update.
5505 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5506 (elf_gnu_ifunc_resolve_by_got): Update.
5507 * f-valprint.c (info_common_command): Update.
5508 * findvar.c (read_var_value): Update.
5509 * frame.c (get_prev_frame_1): Update.
5510 (inside_main_func): Update.
5511 * frv-tdep.c (frv_skip_main_prologue): Update.
5512 (frv_frame_this_id): Update.
5513 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5514 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5515 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5516 (gnuv3_skip_trampoline): Update.
5517 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5518 (hppa64_hpux_in_solib_call_trampoline): Update.
5519 (hppa_hpux_skip_trampoline_code): Update.
5520 (hppa64_hpux_search_dummy_call_sequence): Update.
5521 (hppa_hpux_find_import_stub_for_addr): Update.
5522 (hppa_hpux_find_dummy_bpaddr): Update.
5523 * hppa-tdep.c (hppa_symbol_address)
5524 (hppa_lookup_stub_minimal_symbol): Update.
5525 * i386-tdep.c (i386_skip_main_prologue): Update.
5526 (i386_pe_skip_trampoline_code): Update.
5527 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5528 * infcall.c (get_function_name): Update.
5529 * infcmd.c (until_next_command): Update.
5530 * jit.c (jit_breakpoint_re_set_internal): Update.
5531 (jit_inferior_init): Update.
5532 * linespec.c (minsym_found): Update.
5533 (add_minsym): Update.
5534 * linux-fork.c (info_checkpoints_command): Update.
5535 * linux-nat.c (get_signo): Update.
5536 * linux-thread-db.c (inferior_has_bug): Update.
5537 * m32c-tdep.c (m32c_return_value): Update.
5538 (m32c_m16c_address_to_pointer): Update.
5539 (m32c_m16c_pointer_to_address): Update.
5540 * m32r-tdep.c (m32r_frame_this_id): Update.
5541 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5542 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5543 * maint.c (maintenance_translate_address): Update.
5544 * minsyms.c (add_minsym_to_hash_table): Update.
5545 (add_minsym_to_demangled_hash_table): Update.
5546 (msymbol_objfile): Update.
5547 (lookup_minimal_symbol): Update.
5548 (iterate_over_minimal_symbols): Update.
5549 (lookup_minimal_symbol_text): Update.
5550 (lookup_minimal_symbol_by_pc_name): Update.
5551 (lookup_minimal_symbol_solib_trampoline): Update.
5552 (lookup_minimal_symbol_by_pc_section_1): Update.
5553 (lookup_minimal_symbol_and_objfile): Update.
5554 (prim_record_minimal_symbol_full): Update.
5555 (compare_minimal_symbols): Update.
5556 (compact_minimal_symbols): Update.
5557 (build_minimal_symbol_hash_tables): Update.
5558 (install_minimal_symbols): Update.
5559 (terminate_minimal_symbol_table): Update.
5560 (find_solib_trampoline_target): Update.
5561 (minimal_symbol_upper_bound): Update.
5562 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5563 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5564 (mips_skip_pic_trampoline_code): Update.
5565 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5566 * objc-lang.c (selectors_info): Update.
5567 (classes_info): Update.
5568 (find_methods): Update.
5569 (find_imps): Update.
5570 (find_objc_msgsend): Update.
5571 * objfiles.c (objfile_relocate1): Update.
5572 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5573 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5574 * p-valprint.c (pascal_val_print): Update.
5575 * parse.c (write_exp_msymbol): Update.
5576 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5577 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5578 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5579 * printcmd.c (build_address_symbolic): Update.
5581 (address_info): Update.
5582 * proc-service.c (ps_pglobal_lookup): Update.
5583 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5584 (find_pc_sect_psymtab): Update.
5585 * python/py-framefilter.c (py_print_frame): Update.
5586 * ravenscar-thread.c (get_running_thread_id): Update.
5587 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5589 * remote.c (remote_check_symbols): Update.
5590 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5591 (rs6000_skip_trampoline_code): Update.
5592 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5593 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5594 * solib-dsbt.c (lm_base): Update.
5595 * solib-frv.c (lm_base): Update.
5597 * solib-irix.c (locate_base): Update.
5598 * solib-som.c (som_solib_create_inferior_hook): Update.
5599 (som_solib_desire_dynamic_linker_symbols): Update.
5600 (link_map_start): Update.
5601 * solib-spu.c (spu_enable_break): Update.
5602 (ocl_enable_break): Update.
5603 * solib-svr4.c (elf_locate_base): Update.
5604 (enable_break): Update.
5605 * spu-tdep.c (spu_get_overlay_table): Update.
5606 (spu_catch_start): Update.
5607 (flush_ea_cache): Update.
5608 * stabsread.c (define_symbol): Update.
5609 (scan_file_globals): Update.
5610 * stack.c (find_frame_funname): Update.
5611 (frame_info): Update.
5612 * symfile.c (simple_read_overlay_table): Update.
5613 (simple_overlay_update): Update.
5614 * symmisc.c (dump_msymbols): Update.
5615 * symtab.c (fixup_section): Update.
5616 (find_pc_sect_line): Update.
5617 (skip_prologue_sal): Update.
5618 (search_symbols): Update.
5619 (print_msymbol_info): Update.
5620 (rbreak_command): Update.
5621 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5622 (completion_list_objc_symbol): Update.
5623 (default_make_symbol_completion_list_break_on): Update.
5624 * tracepoint.c (scope_info): Update.
5625 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5626 (tui_get_begin_asm_address): Update.
5627 * valops.c (find_function_in_inferior): Update.
5628 * value.c (value_static_field): Update.
5629 (value_fn_field): Update.
5631 2014-02-26 Tom Tromey <tromey@redhat.com>
5633 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5634 bound minimal symbols. Move code that knows about minsym
5636 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5638 * minsyms.h (minimal_symbol_upper_bound): Declare.
5639 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5640 minimal_symbol_upper_bound.
5642 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5644 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5645 Use the type's name if its basic type does not have a tag.
5647 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5649 * dwarf2read.c (read_subrange_type): Add comment.
5651 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5653 * dwarf2read.c (update_enumeration_type_from_children): New
5654 function, mostly extracted from process_structure_scope.
5655 (read_enumeration_type): Call update_enumeration_type_from_children.
5656 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5657 and flag_flag_enum fields.
5659 2014-02-26 Pedro Alves <palves@redhat.com>
5661 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5662 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5663 to_xfer_partial method.
5665 2014-02-26 Pedro Alves <palves@redhat.com>
5667 * target.c (complete_target_initialization): Don't install
5668 default_xfer_partial as to_xfer_partial hook.
5670 (update_current_target): Don't INHERIT nor de_fault
5671 deprecated_xfer_memory. Delete de_fault macro.
5672 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5673 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5674 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5677 2014-02-26 Pedro Alves <palves@redhat.com>
5679 * go32-nat.c (my_write_child): New function.
5680 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5681 (go32_xfer_partial): New function.
5682 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5683 Instead install a to_xfer_partial hook.
5685 2014-02-26 Pedro Alves <palves@redhat.com>
5687 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5688 to_xfer_partial helper. Rewrite.
5689 (procfs_xfer_partial): New function.
5690 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5691 Install a to_xfer_partial hook.
5693 2014-02-26 Pedro Alves <palves@redhat.com>
5695 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5696 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5697 (m32r_xfer_partial): New function.
5698 (init_m32r_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-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5705 (mips_xfer_partial): New function.
5706 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5707 hook. Install a to_xfer_partial hook.
5709 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5711 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5712 * gdbtypes.c (create_array_type_with_stride): New function,
5713 renaming create_array_type, but with an added parameter
5714 called "bit_stride".
5715 (create_array_type): Re-implement using
5716 create_array_type_with_stride.
5717 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5718 and DW_AT_bit_stride attributes.
5720 2014-02-26 Pedro Alves <palves@redhat.com>
5722 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5723 task-specific breakpoints.
5725 2014-02-25 Pedro Alves <palves@redhat.com>
5727 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5728 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5730 2014-02-25 Stan Shebs <stan@codesourcery.com>
5732 * defs.h: Annotate comments for Doxygen.
5734 2014-02-25 Tom Tromey <tromey@redhat.com>
5736 * target.h (target_ignore): Don't declare.
5737 * target.c (target_ignore): Remove.
5739 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5742 * auto-load.c (auto_load_objfile_script_1): Change filename to
5745 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5747 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5748 documentation. Adjust prototype to match the target_ops
5749 to_xfer_partial method. Adjust implementation accordingly.
5751 2014-02-25 Hui Zhu <hui@codesourcery.com>
5753 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5756 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5758 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5759 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5760 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5761 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5762 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5763 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5764 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5765 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5767 (rl78_register_type): Use a data pointer type for SP and
5768 new pseudo registers mentioned above. Use a 16 bit integer
5769 type for all other register pairs.
5770 (rl78_register_name, rl78_g10_register_name): Update for
5771 new pseudo registers.
5772 (rl78_pseudo_register_read): Likewise.
5773 (rl78_pseudo_register_write): Likewise.
5774 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5775 to the newly added pseudo registers.
5777 2014-02-24 Doug Evans <dje@google.com>
5779 * value.c (record_latest_value): Fix comment.
5780 * printcmd.c (print_command_1): Remove code to handle -1 return from
5781 record_latest_value.
5783 2014-02-24 Pedro Alves <palves@redhat.com>
5785 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5786 deprecated_xfer_memory hook.
5787 (procfs_xfer_partial): Call procfs_xfer_memory instead
5788 of the deprecated_xfer_memory target hook.
5789 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5792 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5794 * windows-nat.c (windows_xfer_shared_libraries): Return
5795 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5796 requested object is TARGET_OBJECT_LIBRARIES.
5798 2014-02-24 Yao Qi <yao@codesourcery.com>
5800 * target.h (enum target_xfer_status)
5801 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5802 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5804 * corefile.c (memory_error_message): User updated.
5805 * exec.c (section_table_read_available_memory): Likewise.
5806 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5807 * target.c (target_xfer_status_to_string): Likewise.
5808 (raw_memory_xfer_partial): Likewise.
5809 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5810 * valops.c (read_value_memory): Likewise.
5811 * exec.h: Update comments.
5813 2014-02-24 Yao Qi <yao@codesourcery.com>
5815 * target.c (target_xfer_status_to_string): Rename argument err
5817 * target.h (target_xfer_status_to_string): Update declaration.
5818 Replace target_xfer_error_to_string with
5819 target_xfer_status_to_string in comment.
5821 2014-02-24 Yao Qi <yao@codesourcery.com>
5823 * mips-linux-nat.c (super_close): Update its type.
5824 (mips_linux_close): Pass 'self' to super_close.
5826 2014-02-24 Yao Qi <yao@codesourcery.com>
5828 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5829 * corefile.c (read_memory): Adjusted.
5830 * target.c (target_write_with_progress): Adjusted.
5832 2014-02-23 Yao Qi <yao@codesourcery.com>
5836 2013-10-25 Yao Qi <yao@codesourcery.com>
5838 * remote.c (remote_traceframe_info): Return early if
5839 traceframe is not selected.
5841 2013-07-19 Yao Qi <yao@codesourcery.com>
5843 * target.c (update_current_target): Change the default action
5844 of 'to_traceframe_info' from tcomplain to return_zero.
5845 * target.h (struct target_ops) <to_traceframe_info>: Add more
5848 2014-02-23 Yao Qi <yao@codesourcery.com>
5850 * valops.c (read_value_memory): Rewrite it. Call
5851 target_xfer_partial in a loop.
5852 * exec.h (section_table_available_memory): Remove declaration.
5853 Move comments to ...
5854 * exec.c (section_table_available_memory): ... here. Make it
5857 2014-02-23 Yao Qi <yao@codesourcery.com>
5859 * exec.c (section_table_read_available_memory): New function.
5860 * exec.h (section_table_read_available_memory): Declare.
5861 * ctf.c (ctf_xfer_partial): Call
5862 section_table_read_available_memory.
5863 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5865 2014-02-23 Yao Qi <yao@codesourcery.com>
5867 * ctf.c (ctf_xfer_partial): Move code to ...
5868 * exec.c (exec_read_partial_read_only): ... it. New function.
5869 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5870 * tracefile.c: Include "exec.h".
5871 * exec.h (exec_read_partial_read_only): Declare.
5873 2014-02-23 Yao Qi <yao@codesourcery.com>
5875 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5876 (tfile_has_memory): Remove.
5877 (init_tfile_ops): Don't set fields to_has_all_memory and
5878 to_has_memory of tfile_ops.
5879 * tracefile.c (tracefile_has_all_memory): New function.
5880 (tracefile_has_memory): New function.
5881 (init_tracefile_ops): Initialize fields to_has_all_memory and
5882 to_has_memory of 'ops'.
5884 2014-02-23 Yao Qi <yao@codesourcery.com>
5886 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5887 (ctf_thread_alive, ctf_get_trace_status): Remove.
5888 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5890 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5891 (tfile_has_stack, tfile_has_registers): Remove.
5892 (tfile_thread_alive): Remove.
5893 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5895 * tracefile.c (tracefile_has_stack): New function.
5896 (tracefile_has_registers): New function.
5897 (tracefile_thread_alive): New function.
5898 (tracefile_get_trace_status): New function.
5899 (init_tracefile_ops): New function.
5900 * tracefile.h (init_tracefile_ops): Declare.
5902 2014-02-23 Yao Qi <yao@codesourcery.com>
5904 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5905 (O_LARGEFILE): Likewise.
5906 (tfile_ops): Likewise.
5907 (TRACE_HEADER_SIZE): Likewise.
5908 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5909 (cur_data_size): Likewise.
5910 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5911 (tfile_close, tfile_files_info): Likewise.
5912 (tfile_get_trace_status): Likewise.
5913 (tfile_get_tracepoint_status): Likewise.
5914 (tfile_get_traceframe_address): Likewise.
5915 (tfile_trace_find, match_blocktype): Likewise.
5916 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5917 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5918 (tfile_get_trace_state_variable_value): Likewise.
5919 (tfile_has_all_memory, tfile_has_memory): Likewise.
5920 (tfile_has_stack, tfile_has_registers): Likewise.
5921 (tfile_thread_alive, build_traceframe_info): Likewise.
5922 (tfile_traceframe_info, init_tfile_ops): Likewise.
5923 (_initialize_tracepoint): Don't call init_tfile_ops
5924 and add_target_with_completer.
5925 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5926 exec.h, completer.h and filenames.h.
5927 (_initialize_tracefile_tfile): New function.
5929 2014-02-23 Yao Qi <yao@codesourcery.com>
5931 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5933 (HFILES_NO_SRCDIR): Add tracefile.h.
5934 * ctf.c: Include "tracefile.h".
5935 * tracefile.h: New file.
5936 * tracefile.c: New file
5937 * tracefile-tfile.c: New file.
5938 * tracepoint.c: Include "tracefile.h".
5939 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5940 (stop_reason_names): Add const.
5941 (trace_file_writer_xfree): Move it to tracefile.c.
5942 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5943 (trace_save_ctf): Likewise.
5944 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5945 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5946 (tfile_write_header, tfile_write_regblock_type): Likewise.
5947 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5948 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5949 (tfile_write_raw_data, tfile_end): Likewise.
5950 (tfile_trace_file_writer_new): Likewise.
5951 (free_uploaded_tp): Make it extern.
5952 (free_uploaded_tsv): Make it extern.
5953 (_initialize_tracepoint): Move code to register command 'tsave'
5955 * tracepoint.h (stop_reason_names): Declare.
5956 (struct trace_frame_write_ops): Move it to tracefile.h.
5957 (struct trace_file_write_ops): Likewise.
5958 (struct trace_file_writer): Likewise.
5959 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5961 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5964 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5966 (get_cores_used_by_process): New parameter num_cores, use it.
5967 (linux_xfer_osdata_processes): Pass num_cores to it.
5968 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5971 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5973 * target.c (memory_xfer_partial): Fix length arg in call to
5974 breakpoint_xfer_memory.
5976 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5979 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5980 number comes after the + or - signs. Adjust length of register
5981 name to be extracted.
5983 2014-02-20 Tom Tromey <tromey@redhat.com>
5985 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5986 (ada_varobj_ops): Mark "extern".
5988 2014-02-20 Tom Tromey <tromey@redhat.com>
5990 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5992 2014-02-20 Doug Evans <xdje42@gmail.com>
5994 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5995 All callers updated.
5996 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5997 All callers updated.
5998 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5999 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6001 2014-02-20 lin zuojian <manjian2006@gmail.com>
6002 Joel Brobecker <brobecker@adacore.com>
6003 Doug Evans <xdje42@gmail.com>
6006 * dwarf2read.c (struct die_info): New member in_process.
6007 (reset_die_in_process): New function.
6008 (process_die): Set it at the start, reset when returning.
6009 (inherit_abstract_dies): Only call process_die if origin_child_die
6010 not already being processed.
6012 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6014 * windows-nat.c (handle_unload_dll): Add function documentation.
6015 (do_initial_windows_stuff): Add comment explaining why we wait
6016 until after inferior initialization has finished before
6017 processing all DLLs.
6019 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6021 * windows-nat.c (get_module_name): Delete.
6022 (windows_get_exec_module_filename): New function, mostly
6023 inspired from get_module_name.
6024 (windows_pid_to_exec_file): Replace call to get_module_name
6025 by call to windows_get_exec_module_filename.
6027 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6029 * windows-nat.c (handle_load_dll): Rewrite this function's
6030 introductory comment. Remove code using get_module_name
6031 to get the DLL's name.
6033 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6035 * windows-nat.c (get_windows_debug_event): Ignore
6036 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6037 if windows_initialization_done == 0.
6038 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6039 Adjust implementation to always load all DLLs.
6040 (do_initial_windows_stuff): Replace call to
6041 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6043 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6045 * windows-nat.c (_initialize_windows_nat): Deprecate the
6046 "dll-symbols" command. Turn the "add-shared-symbol-files"
6047 and "assf" aliases into commands, and deprecate them as well.
6048 * NEWS: Add entry explaining that "dll-symbols" and its two
6049 aliases are now deprecated.
6051 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6053 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6054 new-line in debug string. Remove trailing spaces.
6056 2014-02-19 Stan Shebs <stan@codesourcery.com>
6058 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6060 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6062 * NEWS: Add entry for the new feature
6063 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6066 2014-02-19 Stan Shebs <stan@codesourcery.com>
6068 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6070 2014-02-19 Pedro Alves <palves@redhat.com>
6072 * common/ptid.h (struct ptid): Mention that process_stratum
6073 targets should prefer ptid.lwp.
6075 2014-02-19 Pedro Alves <palves@redhat.com>
6077 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6078 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6079 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6080 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6081 store remote thread ids rather than ptid.tid.
6082 (_initialize_remote): Adjust.
6084 2014-02-19 Tom Tromey <tromey@redhat.com>
6086 * target.c (target_get_unwinder): Rewrite.
6087 (target_get_tailcall_unwinder): Rewrite.
6088 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6089 (record_btrace_to_get_tailcall_unwinder): New function.
6090 (init_record_btrace_ops): Update.
6091 * target.h (struct target_ops) <to_get_unwinder,
6092 to_get_tailcall_unwinder>: Now function pointers. Use
6093 TARGET_DEFAULT_RETURN.
6095 2014-02-19 Tom Tromey <tromey@redhat.com>
6097 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6099 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6101 2014-02-19 Tom Tromey <tromey@redhat.com>
6103 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6105 * target-delegates.c: Rebuild.
6106 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6107 TARGET_DEFAULT_FUNC.
6108 * target.c (default_target_decr_pc_after_break): Rename from
6109 forward_target_decr_pc_after_break. Simplify.
6110 (target_decr_pc_after_break): Rely on delegation.
6112 2014-02-19 Tom Tromey <tromey@redhat.com>
6114 * target.c (update_current_target): Do not INHERIT to_doc or
6115 to_magic. Do not de_fault to_open or to_close.
6117 2014-02-19 Tom Tromey <tromey@redhat.com>
6119 * gcore.h (objfile_find_memory_regions): Declare.
6120 * gcore.c (objfile_find_memory_regions): No longer static. Add
6122 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6123 * exec.c: Include gcore.h.
6124 (exec_set_find_memory_regions): Remove.
6125 (exec_find_memory_regions): Remove.
6126 (exec_do_find_memory_regions): Remove.
6127 (init_exec_ops): Update.
6128 * defs.h (exec_set_find_memory_regions): Remove.
6130 2014-02-19 Tom Tromey <tromey@redhat.com>
6132 * target-delegates.c: Rebuild.
6133 * target.h (struct target_ops) <to_extra_thread_info,
6134 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6135 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6136 not 0, in TARGET_DEFAULT_RETURN.
6138 2014-02-19 Tom Tromey <tromey@redhat.com>
6140 * target.c (complete_target_initialization): Remove casts. Use
6141 return_zero_has_execution.
6142 (return_zero): Add "ignore" argument.
6143 (return_zero_has_execution): New function.
6144 (init_dummy_target): Remove casts. Use
6145 return_zero_has_execution.
6147 2014-02-19 Tom Tromey <tromey@redhat.com>
6149 * target.c (update_current_target): Update comments. Do not
6152 2014-02-19 Tom Tromey <tromey@redhat.com>
6154 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6156 * corelow.c (core_read_description): Delegate when needed.
6157 * remote.c (remote_read_description): Delegate when needed.
6158 * target-delegates.c: Rebuild.
6159 * target.c (target_read_description): Rewrite.
6160 * target.h (struct target_ops) <to_read_description>: Update
6161 comment. Use TARGET_DEFAULT_RETURN.
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6165 * target-delegates.c: Rebuild.
6166 * target.c (update_current_target): Don't inherit or default
6168 (find_default_run_target): Check against delegate_can_run.
6169 * target.h (struct target_ops) <to_can_run>: Use
6170 TARGET_DEFAULT_RETURN.
6172 2014-02-19 Tom Tromey <tromey@redhat.com>
6174 * target-delegates.c: Rebuild.
6175 * target.c (target_disconnect): Unconditionally delegate.
6176 * target.h (struct target_ops) <to_disconnect>: Use
6177 TARGET_DEFAULT_NORETURN.
6179 2014-02-19 Tom Tromey <tromey@redhat.com>
6181 * record.c (record_stop): Unconditionally delegate.
6182 * target-delegates.c: Rebuild.
6183 * target.c (target_stop_recording): Unconditionally delegate.
6184 * target.h (struct target_ops) <to_stop_recording>: Use
6185 TARGET_DEFAULT_IGNORE.
6187 2014-02-19 Tom Tromey <tromey@redhat.com>
6189 * target-delegates.c: Rebuild.
6190 * target.c (target_enable_btrace): Unconditionally delegate.
6191 * target.h (struct target_ops) <to_enable_btrace>: Use
6192 TARGET_DEFAULT_NORETURN.
6194 2014-02-19 Tom Tromey <tromey@redhat.com>
6196 * target-delegates.c: Rebuild.
6197 * target.c (target_read_btrace): Unconditionally delegate.
6198 * target.h (struct target_ops) <to_read_btrace>: Use
6199 TARGET_DEFAULT_NORETURN.
6201 2014-02-19 Tom Tromey <tromey@redhat.com>
6203 * target-delegates.c: Rebuild.
6204 * target.c (target_teardown_btrace): Unconditionally delegate.
6205 * target.h (struct target_ops) <to_teardown_btrace>: Use
6206 TARGET_DEFAULT_NORETURN.
6208 2014-02-19 Tom Tromey <tromey@redhat.com>
6210 * target-delegates.c: Rebuild.
6211 * target.c (target_disable_btrace): Unconditionally delegate.
6212 * target.h (struct target_ops) <to_disable_btrace>: Use
6213 TARGET_DEFAULT_NORETURN.
6215 2014-02-19 Tom Tromey <tromey@redhat.com>
6217 * target-delegates.c: Rebuild.
6218 * target.c (default_search_memory): New function.
6219 (simple_search_memory): Update comment.
6220 (target_search_memory): Unconditionally delegate.
6221 * target.h (struct target_ops) <to_search_memory>: Use
6222 TARGET_DEFAULT_FUNC.
6224 2014-02-19 Tom Tromey <tromey@redhat.com>
6226 * auxv.c (default_auxv_parse): No longer static.
6227 (target_auxv_parse): Unconditionally delegate.
6228 * auxv.h (default_auxv_parse): Declare.
6229 * target-delegates.c: Rebuild.
6230 * target.c: Include auxv.h.
6231 * target.h (struct target_ops) <to_auxv_parse>: Use
6232 TARGET_DEFAULT_FUNC.
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6236 * target-delegates.c: Rebuild.
6237 * target.c (target_memory_map): Unconditionally delegate.
6238 * target.h (struct target_ops) <to_memory_map>: Use
6239 TARGET_DEFAULT_RETURN.
6241 2014-02-19 Tom Tromey <tromey@redhat.com>
6243 * target-delegates.c: Rebuild.
6244 * target.c (target_thread_alive): Unconditionally delegate.
6245 * target.h (struct target_ops) <to_thread_alive>: Use
6246 TARGET_DEFAULT_RETURN.
6248 2014-02-19 Tom Tromey <tromey@redhat.com>
6250 * target-delegates.c: Rebuild.
6251 * target.c (target_save_record): Unconditionally delegate.
6252 * target.h (struct target_ops) <to_save_record>: Use
6253 TARGET_DEFAULT_NORETURN.
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6257 * target-delegates.c: Rebuild.
6258 * target.c (target_delete_record): Unconditionally delegate.
6259 * target.h (struct target_ops) <to_delete_record>: Use
6260 TARGET_DEFAULT_NORETURN.
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6264 * target-delegates.c: Rebuild.
6265 * target.c (target_record_is_replaying): Unconditionally
6267 * target.h (struct target_ops) <to_record_is_replaying>: Use
6268 TARGET_DEFAULT_RETURN.
6270 2014-02-19 Tom Tromey <tromey@redhat.com>
6272 * target-delegates.c: Rebuild.
6273 * target.c (target_goto_record_begin): Unconditionally delegate.
6274 * target.h (struct target_ops) <to_goto_record_begin>: Use
6275 TARGET_DEFAULT_NORETURN.
6277 2014-02-19 Tom Tromey <tromey@redhat.com>
6279 * target-delegates.c: Rebuild.
6280 * target.c (target_goto_record_end): Unconditionally delegate.
6281 * target.h (struct target_ops) <to_goto_record_end>: Use
6282 TARGET_DEFAULT_NORETURN.
6284 2014-02-19 Tom Tromey <tromey@redhat.com>
6286 * target-delegates.c: Rebuild.
6287 * target.c (target_goto_record): Unconditionally delegate.
6288 * target.h (struct target_ops) <to_goto_record>: Use
6289 TARGET_DEFAULT_NORETURN.
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * target-delegates.c: Rebuild.
6294 * target.c (target_insn_history): Unconditionally delegate.
6295 * target.h (struct target_ops) <to_insn_history>: Use
6296 TARGET_DEFAULT_NORETURN.
6298 2014-02-19 Tom Tromey <tromey@redhat.com>
6300 * target-delegates.c: Rebuild.
6301 * target.c (target_insn_history_from): Unconditionally delegate.
6302 * target.h (struct target_ops) <to_insn_history_from>: Use
6303 TARGET_DEFAULT_NORETURN.
6305 2014-02-19 Tom Tromey <tromey@redhat.com>
6307 * target-delegates.c: Rebuild.
6308 * target.c (target_insn_history_range): Unconditionally delegate.
6309 * target.h (struct target_ops) <to_insn_history_range>: Use
6310 TARGET_DEFAULT_NORETURN.
6312 2014-02-19 Tom Tromey <tromey@redhat.com>
6314 * target-delegates.c: Rebuild.
6315 * target.c (target_call_history): Unconditionally delegate.
6316 * target.h (struct target_ops) <to_call_history>: Use
6317 TARGET_DEFAULT_NORETURN.
6319 2014-02-19 Tom Tromey <tromey@redhat.com>
6321 * target-delegates.c: Rebuild.
6322 * target.c (target_call_history_from): Unconditionally delegate.
6323 * target.h (struct target_ops) <to_call_history_from>: Use
6324 TARGET_DEFAULT_NORETURN.
6326 2014-02-19 Tom Tromey <tromey@redhat.com>
6328 * target-delegates.c: Rebuild.
6329 * target.c (target_call_history_range): Unconditionally delegate.
6330 * target.h (struct target_ops) <to_call_history_range>: Use
6331 TARGET_DEFAULT_NORETURN.
6333 2014-02-19 Tom Tromey <tromey@redhat.com>
6335 * target-delegates.c: Rebuild.
6336 * target.c (target_verify_memory): Unconditionally delegate.
6337 * target.h (struct target_ops) <to_verify_memory>: Use
6338 TARGET_DEFAULT_NORETURN.
6340 2014-02-19 Tom Tromey <tromey@redhat.com>
6342 * target-delegates.c: Rebuild.
6343 * target.c (target_core_of_thread): Unconditionally delegate.
6344 * target.h (struct target_ops) <to_core_of_thread>: Use
6345 TARGET_DEFAULT_RETURN.
6347 2014-02-19 Tom Tromey <tromey@redhat.com>
6349 * target-delegates.c: Rebuild.
6350 * target.c (target_flash_done): Unconditionally delegate.
6351 * target.h (struct target_ops) <to_flash_done>: Use
6352 TARGET_DEFAULT_NORETURN.
6354 2014-02-19 Tom Tromey <tromey@redhat.com>
6356 * target-delegates.c: Rebuild.
6357 * target.c (target_flash_erase): Unconditionally delegate.
6358 * target.h (struct target_ops) <to_flash_erase>: Use
6359 TARGET_DEFAULT_NORETURN.
6361 2014-02-19 Tom Tromey <tromey@redhat.com>
6363 * target-delegates.c: Rebuild.
6364 * target.c (target_get_section_table): Unconditionally delegate.
6365 * target.h (struct target_ops) <to_get_section_table>: Use
6366 TARGET_DEFAULT_RETURN.
6368 2014-02-19 Tom Tromey <tromey@redhat.com>
6370 * target-delegates.c: Rebuild.
6371 * target.c (target_pid_to_str): Unconditionally delegate.
6372 (init_dummy_target): Don't initialize to_pid_to_str.
6373 (default_pid_to_str): Rename from dummy_pid_to_str.
6374 * target.h (struct target_ops) <to_pid_to_str>: Use
6375 TARGET_DEFAULT_FUNC.
6377 2014-02-19 Tom Tromey <tromey@redhat.com>
6379 * target-delegates.c: Rebuild.
6380 * target.c (target_find_new_threads): Unconditionally delegate.
6381 * target.h (struct target_ops) <to_find_new_threads>: Use
6382 TARGET_DEFAULT_RETURN.
6384 2014-02-19 Tom Tromey <tromey@redhat.com>
6386 * target-delegates.c: Rebuild.
6387 * target.c (target_program_signals): Unconditionally delegate.
6388 * target.h (struct target_ops) <to_program_signals>: Use
6389 TARGET_DEFAULT_IGNORE.
6391 2014-02-19 Tom Tromey <tromey@redhat.com>
6393 * target-delegates.c: Rebuild.
6394 * target.c (target_pass_signals): Unconditionally delegate.
6395 * target.h (struct target_ops) <to_pass_signals>: Use
6396 TARGET_DEFAULT_IGNORE.
6398 2014-02-19 Tom Tromey <tromey@redhat.com>
6400 * target-delegates.c: Rebuild.
6401 * target.c (default_mourn_inferior): New function.
6402 (target_mourn_inferior): Unconditionally delegate.
6403 * target.h (struct target_ops) <to_mourn_inferior>: Use
6404 TARGET_DEFAULT_FUNC.
6406 2014-02-19 Tom Tromey <tromey@redhat.com>
6408 * target-delegates.c: Rebuild.
6409 * target.c (default_follow_fork): New function.
6410 (target_follow_fork): Unconditionally delegate.
6411 * target.h (struct target_ops) <to_follow_fork>: Use
6412 TARGET_DEFAULT_FUNC.
6414 2014-02-19 Tom Tromey <tromey@redhat.com>
6416 * target-delegates.c: Rebuild.
6417 * target.c (target_kill): Unconditionally delegate.
6418 * target.h (struct target_ops) <to_kill>: Use
6419 TARGET_DEFAULT_NORETURN.
6421 2014-02-19 Tom Tromey <tromey@redhat.com>
6423 * target-delegates.c: Rebuild.
6424 * target.c (target_masked_watch_num_registers): Unconditionally
6426 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6427 Use TARGET_DEFAULT_RETURN.
6429 2014-02-19 Tom Tromey <tromey@redhat.com>
6431 * target-delegates.c: Rebuild.
6432 * target.c (target_remove_mask_watchpoint): Unconditionally
6434 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6435 TARGET_DEFAULT_RETURN.
6437 2014-02-19 Tom Tromey <tromey@redhat.com>
6439 * target-delegates.c: Rebuild.
6440 * target.c (target_insert_mask_watchpoint): Unconditionally
6442 * target.h (struct target_ops) <to_insert_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_ranged_break_num_registers): Unconditionally
6450 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6451 Use TARGET_DEFAULT_RETURN.
6453 2014-02-19 Tom Tromey <tromey@redhat.com>
6455 * target-delegates.c: Rebuild.
6456 * target.c (target_fetch_registers): Unconditionally delegate.
6457 * target.h (struct target_ops) <to_fetch_registers>: Use
6458 TARGET_DEFAULT_NORETURN.
6460 2014-02-19 Tom Tromey <tromey@redhat.com>
6462 * target-delegates.c: Rebuild.
6463 * target.c (update_current_target): Don't inherit or default
6465 * target.h (struct target_ops) <to_stop>: Use
6466 TARGET_DEFAULT_IGNORE.
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
6472 to_can_run_breakpoint_commands.
6473 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6474 Use TARGET_DEFAULT_RETURN.
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_supports_evaluation_of_breakpoint_conditions.
6481 * target.h (struct target_ops)
6482 <to_supports_evaluation_of_breakpoint_conditions>: Use
6483 TARGET_DEFAULT_RETURN.
6485 2014-02-19 Tom Tromey <tromey@redhat.com>
6487 * target-delegates.c: Rebuild.
6488 * target.c (update_current_target): Don't inherit or default
6489 to_augmented_libraries_svr4_read.
6490 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6491 Use 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
6498 * target.h (struct target_ops) <to_can_use_agent>: Use
6499 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_use_agent>: Use
6507 TARGET_DEFAULT_NORETURN.
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 (return_null): Remove.
6515 * target.h (struct target_ops) <to_traceframe_info>: Use
6516 TARGET_DEFAULT_RETURN.
6518 2014-02-19 Tom Tromey <tromey@redhat.com>
6520 * target-delegates.c: Rebuild.
6521 * target.c (update_current_target): Don't inherit or default
6522 to_static_tracepoint_markers_by_strid.
6523 * target.h (struct target_ops)
6524 <to_static_tracepoint_markers_by_strid>: Use
6525 TARGET_DEFAULT_NORETURN.
6527 2014-02-19 Tom Tromey <tromey@redhat.com>
6529 * target-delegates.c: Rebuild.
6530 * target.c (update_current_target): Don't inherit or default
6531 to_static_tracepoint_marker_at.
6532 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6533 Use TARGET_DEFAULT_RETURN.
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
6540 * target.h (struct target_ops) <to_set_permissions>: Use
6541 TARGET_DEFAULT_IGNORE.
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_get_tib_address>: Use
6549 TARGET_DEFAULT_NORETURN.
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_set_trace_notes>: Use
6557 TARGET_DEFAULT_RETURN.
6559 2014-02-19 Tom Tromey <tromey@redhat.com>
6561 * target-delegates.c: Rebuild.
6562 * target.c (update_current_target): Don't initialize
6563 to_set_trace_buffer_size.
6564 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6565 TARGET_DEFAULT_IGNORE.
6567 2014-02-19 Tom Tromey <tromey@redhat.com>
6569 * target-delegates.c: Rebuild.
6570 * target.c (update_current_target): Don't inherit or default
6571 to_set_circular_trace_buffer.
6572 * target.h (struct target_ops) <to_set_circular_trace_buffer>: 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_disconnected_tracing.
6580 * target.h (struct target_ops) <to_set_disconnected_tracing>: 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_get_min_fast_tracepoint_insn_len.
6588 (return_minus_one): Remove.
6589 * target.h (struct target_ops)
6590 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6592 2014-02-19 Tom Tromey <tromey@redhat.com>
6594 * target-delegates.c: Rebuild.
6595 * target.c (update_current_target): Don't inherit or default
6596 to_get_raw_trace_data.
6597 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6598 TARGET_DEFAULT_NORETURN.
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_upload_trace_state_variables.
6605 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6606 Use TARGET_DEFAULT_RETURN.
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_tracepoints.
6613 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6614 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
6621 * target.h (struct target_ops) <to_save_trace_data>: Use
6622 TARGET_DEFAULT_NORETURN.
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
6628 to_get_trace_state_variable_value.
6629 * target.h (struct target_ops)
6630 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6632 2014-02-19 Tom Tromey <tromey@redhat.com>
6634 * target-delegates.c: Rebuild.
6635 * target.c (update_current_target): Don't inherit or default
6637 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6639 2014-02-19 Tom Tromey <tromey@redhat.com>
6641 * target-delegates.c: Rebuild.
6642 * target.c (update_current_target): Don't inherit or default
6644 * target.h (struct target_ops) <to_trace_stop>: Use
6645 TARGET_DEFAULT_NORETURN.
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
6651 to_get_tracepoint_status.
6652 * target.h (struct target_ops) <to_get_tracepoint_status>: 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_trace_status.
6660 * target.h (struct target_ops) <to_get_trace_status>: Use
6661 TARGET_DEFAULT_RETURN.
6663 2014-02-19 Tom Tromey <tromey@redhat.com>
6665 * target-delegates.c: Rebuild.
6666 * target.c (update_current_target): Don't inherit or default
6668 * target.h (struct target_ops) <to_trace_start>: Use
6669 TARGET_DEFAULT_NORETURN.
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
6675 to_trace_set_readonly_regions.
6676 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6677 Use 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_disable_tracepoint.
6684 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6685 TARGET_DEFAULT_NORETURN.
6687 2014-02-19 Tom Tromey <tromey@redhat.com>
6689 * target-delegates.c: Rebuild.
6690 * target.c (update_current_target): Don't inherit or default
6691 to_enable_tracepoint.
6692 * target.h (struct target_ops) <to_enable_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_download_trace_state_variable.
6700 * target.h (struct target_ops) <to_download_trace_state_variable>:
6701 Use 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_can_download_tracepoint.
6708 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6709 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
6716 * target.h (struct target_ops) <to_download_tracepoint>: Use
6717 TARGET_DEFAULT_NORETURN.
6719 2014-02-19 Tom Tromey <tromey@redhat.com>
6721 * target-delegates.c: Rebuild.
6722 * target.c (update_current_target): Don't inherit or default
6724 * target.h (struct target_ops) <to_trace_init>: Use
6725 TARGET_DEFAULT_RETURN.
6727 2014-02-19 Tom Tromey <tromey@redhat.com>
6729 * target-delegates.c: Rebuild.
6730 * target.c (update_current_target): Don't inherit or default
6731 to_supports_string_tracing.
6732 * target.h (struct target_ops) <to_supports_string_tracing>: 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_enable_disable_tracepoint.
6740 * target.h (struct target_ops)
6741 <to_supports_enable_disable_tracepoint>: Use
6742 TARGET_DEFAULT_RETURN.
6744 2014-02-19 Tom Tromey <tromey@redhat.com>
6746 * target-delegates.c: Rebuild.
6747 * target.c (update_current_target): Don't inherit or default
6748 to_supports_multi_process.
6749 * target.h (struct target_ops) <to_supports_multi_process>: 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_get_ada_task_ptid.
6757 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6758 TARGET_DEFAULT_FUNC.
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_thread_architecture.
6765 * target.h (struct target_ops) <to_thread_architecture>: 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_execution_direction.
6773 * target.h (struct target_ops) <to_execution_direction>: 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_can_execute_reverse.
6781 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6782 TARGET_DEFAULT_RETURN.
6783 (target_can_execute_reverse): Unconditionally delegate.
6785 2014-02-19 Tom Tromey <tromey@redhat.com>
6787 * target-delegates.c: Rebuild.
6788 * target.c (update_current_target): Don't inherit or default
6790 (dummy_goto_bookmark): Remove.
6791 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6792 * target.h (struct target_ops) <to_goto_bookmark>: Use
6793 TARGET_DEFAULT_NORETURN.
6795 2014-02-19 Tom Tromey <tromey@redhat.com>
6797 * target-delegates.c: Rebuild.
6798 * target.c (update_current_target): Don't inherit or default
6800 (dummy_get_bookmark): Remove.
6801 (init_dummy_target): Don't inherit or default to_get_bookmark.
6802 * target.h (struct target_ops) <to_get_bookmark>: Use
6803 TARGET_DEFAULT_NORETURN
6805 2014-02-19 Tom Tromey <tromey@redhat.com>
6807 * target-delegates.c: Rebuild.
6808 * target.c (update_current_target): Don't inherit or default
6809 to_make_corefile_notes.
6810 (init_dummy_target): Don't initialize to_make_corefile_notes.
6811 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6812 TARGET_DEFAULT_FUNC.
6814 2014-02-19 Tom Tromey <tromey@redhat.com>
6816 * target-delegates.c: Rebuild.
6817 * target.c (update_current_target): Don't inherit or default
6818 to_find_memory_regions.
6819 (init_dummy_target): Don't initialize to_find_memory_regions.
6820 * target.h (struct target_ops) <to_find_memory_regions>: Use
6821 TARGET_DEFAULT_FUNC.
6823 2014-02-19 Tom Tromey <tromey@redhat.com>
6825 * target-delegates.c: Rebuild.
6826 * target.c (update_current_target): Don't inherit or default
6828 * target.h (struct target_ops) <to_log_command>: Use
6829 TARGET_DEFAULT_IGNORE.
6830 (target_log_command): Unconditionally delegate.
6832 2014-02-19 Tom Tromey <tromey@redhat.com>
6834 * target-delegates.c: Rebuild.
6835 * target.c (update_current_target): Don't inherit or default
6836 to_pid_to_exec_file.
6837 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6838 TARGET_DEFAULT_RETURN.
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
6845 (target_thread_name): Unconditionally delegate.
6846 * target.h (struct target_ops) <to_thread_name>: Use
6847 TARGET_DEFAULT_RETURN.
6849 2014-02-19 Tom Tromey <tromey@redhat.com>
6851 * target-delegates.c: Rebuild.
6852 * target.c (update_current_target): Don't inherit or default
6853 to_extra_thread_info.
6854 * target.h (struct target_ops) <to_extra_thread_info>: 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
6862 * target.h (struct target_ops) <to_has_exited>: 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
6869 to_set_syscall_catchpoint.
6870 (return_one): Remove.
6871 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6872 TARGET_DEFAULT_RETURN.
6874 2014-02-19 Tom Tromey <tromey@redhat.com>
6876 * target-delegates.c: Rebuild.
6877 * target.c (update_current_target): Don't inherit or default
6878 to_insert_exec_catchpoint.
6879 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6880 TARGET_DEFAULT_RETURN.
6882 2014-01-08 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-02-19 Tom Tromey <tromey@redhat.com>
6892 * target-delegates.c: Rebuild.
6893 * target.c (update_current_target): Don't inherit or default
6894 to_remove_vfork_catchpoint.
6895 * target.h (struct target_ops) <to_remove_vfork_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_insert_vfork_catchpoint.
6903 * target.h (struct target_ops) <to_insert_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_remove_fork_catchpoint.
6911 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6912 TARGET_DEFAULT_RETURN.
6914 2014-02-19 Tom Tromey <tromey@redhat.com>
6916 * target-delegates.c: Rebuild.
6917 * target.c (update_current_target): Don't inherit or default
6918 to_insert_fork_catchpoint.
6919 * target.h (struct target_ops) <to_insert_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_post_startup_inferior.
6927 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6928 TARGET_DEFAULT_IGNORE.
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
6935 * target.h (struct target_ops) <to_load>: Use
6936 TARGET_DEFAULT_NORETURN.
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_terminal_info>: Use
6944 TARGET_DEFAULT_FUNC.
6946 2014-02-19 Tom Tromey <tromey@redhat.com>
6948 * target-delegates.c: Rebuild.
6949 * target.c (update_current_target): Don't inherit or default
6950 to_terminal_save_ours.
6951 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6952 TARGET_DEFAULT_IGNORE.
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
6959 * target.h (struct target_ops) <to_terminal_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
6966 to_terminal_ours_for_output.
6967 * target.h (struct target_ops) <to_terminal_ours_for_output>: 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_inferior.
6975 * target.h (struct target_ops) <to_terminal_inferior>: 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
6983 * target.h (struct target_ops) <to_terminal_init>: 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
6990 to_can_accel_watchpoint_condition.
6991 * target.h (struct target_ops)
6992 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
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_region_ok_for_hw_watchpoint.
6999 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7000 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
7007 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
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_remove_watchpoint.
7015 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7016 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
7023 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7024 TARGET_DEFAULT_RETURN.
7026 2014-02-19 Tom Tromey <tromey@redhat.com>
7028 * target-delegates.c: Rebuild.
7029 * target.c (update_current_target): Don't inherit or default
7030 to_remove_hw_breakpoint.
7031 * target.h (struct target_ops) <to_remove_hw_breakpoint>: 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_insert_hw_breakpoint.
7039 * target.h (struct target_ops) <to_insert_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_can_use_hw_breakpoint.
7047 * target.h (struct target_ops) <to_can_use_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
7055 * target.h (struct target_ops) <to_files_info>: Use
7056 TARGET_DEFAULT_IGNORE.
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_store>: Use
7064 TARGET_DEFAULT_NORETURN.
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_post_attach>: Use
7072 TARGET_DEFAULT_IGNORE.
7074 2014-02-19 Tom Tromey <tromey@redhat.com>
7076 * target-delegates.c: Rebuild.
7077 * target.c (update_current_target): Don't inherit or default
7079 (default_rcmd): New function.
7080 (do_monitor_command): Unconditionally delegate.
7081 * target.h (struct target_ops) <to_rmcd>: Use
7082 TARGET_DEFAULT_FUNC.
7084 2014-02-19 Tom Tromey <tromey@redhat.com>
7086 * target-delegates.c: Rebuild.
7087 * target.c (init_dummy_target): Don't initialize to_attach.
7088 (target_attach): Unconditionally delegate.
7089 * target.h (struct target_ops) <to_attach>: Use
7090 TARGET_DEFAULT_FUNC.
7092 2014-02-19 Tom Tromey <tromey@redhat.com>
7094 * target-delegates.c: Rebuild.
7095 * target.c (target_detach): Unconditionally delegate.
7096 (init_dummy_target): Don't initialize to_detach.
7097 * target.h (struct target_ops) <to_detach>: Use
7098 TARGET_DEFAULT_IGNORE.
7100 2014-02-19 Tom Tromey <tromey@redhat.com>
7102 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7104 (target_augmented_libraries_svr4_read): Add argument.
7105 * target.c (update_current_target): Update.
7106 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7109 2014-02-19 Tom Tromey <tromey@redhat.com>
7111 * target.h (struct target_ops) <to_call_history_range>: Add
7113 * target.c (target_call_history_range): Add argument.
7114 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7116 (record_btrace_call_history_from): Update.
7118 2014-02-19 Tom Tromey <tromey@redhat.com>
7120 * target.h (struct target_ops) <to_call_history_from>: Add
7122 * target.c (target_call_history_from): Add argument.
7123 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7126 2014-02-19 Tom Tromey <tromey@redhat.com>
7128 * target.h (struct target_ops) <to_call_history>: Add argument.
7129 * target.c (target_call_history): Add argument.
7130 * record-btrace.c (record_btrace_call_history): Add 'self'
7133 2014-02-19 Tom Tromey <tromey@redhat.com>
7135 * target.h (struct target_ops) <to_insn_history_range>: Add
7137 * target.c (target_insn_history_range): Add argument.
7138 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7140 (record_btrace_insn_history_from): Update.
7142 2014-02-19 Tom Tromey <tromey@redhat.com>
7144 * target.h (struct target_ops) <to_insn_history_from>: Add
7146 * target.c (target_insn_history_from): Add argument.
7147 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7150 2014-02-19 Tom Tromey <tromey@redhat.com>
7152 * target.h (struct target_ops) <to_insn_history>: Add argument.
7153 * target.c (target_insn_history): Add argument.
7154 * record-btrace.c (record_btrace_insn_history): Add 'self'
7157 2014-02-19 Tom Tromey <tromey@redhat.com>
7159 * target.h (struct target_ops) <to_goto_record>: Add argument.
7160 * target.c (target_goto_record): Add argument.
7161 * record-full.c (record_full_goto): Add 'self' argument.
7162 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7164 2014-02-19 Tom Tromey <tromey@redhat.com>
7166 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7167 * target.c (target_goto_record_end): Add argument.
7168 * record-full.c (record_full_goto_end): Add 'self' argument.
7169 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7171 2014-02-19 Tom Tromey <tromey@redhat.com>
7173 * target.h (struct target_ops) <to_goto_record_begin>: Add
7175 * target.c (target_goto_record_begin): Add argument.
7176 * record-full.c (record_full_goto_begin): Add 'self' argument.
7177 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7180 2014-02-19 Tom Tromey <tromey@redhat.com>
7182 * target.h (struct target_ops) <to_record_is_replaying>: Add
7184 * target.c (target_record_is_replaying): Add argument.
7185 * record-full.c (record_full_is_replaying): Add 'self' argument.
7186 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7188 (record_btrace_xfer_partial, record_btrace_store_registers)
7189 (record_btrace_prepare_to_store, record_btrace_resume)
7190 (record_btrace_wait, record_btrace_decr_pc_after_break)
7191 (record_btrace_find_new_threads, record_btrace_thread_alive):
7194 2014-02-19 Tom Tromey <tromey@redhat.com>
7196 * target.h (struct target_ops) <to_delete_record>: Add argument.
7197 * target.c (target_delete_record): Add argument.
7198 * record-full.c (record_full_delete): Add 'self' argument.
7200 2014-02-19 Tom Tromey <tromey@redhat.com>
7202 * target.h (struct target_ops) <to_save_record>: Add argument.
7203 * target.c (target_save_record): Add argument.
7204 * record-full.c (record_full_save): Add 'self' argument.
7205 (record_full_save): Add 'self' argument.
7207 2014-02-19 Tom Tromey <tromey@redhat.com>
7209 * target.h (struct target_ops) <to_info_record>: Add argument.
7210 * target.c (target_info_record): Add argument.
7211 * record.c (info_record_command): Add argument.
7212 * record-full.c (record_full_info): Add 'self' argument.
7213 * record-btrace.c (record_btrace_info): Add 'self' argument.
7215 2014-02-19 Tom Tromey <tromey@redhat.com>
7217 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7218 * target.c (target_stop_recording): Add argument.
7219 * record.c (record_stop): Add argument.
7220 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7223 2014-02-19 Tom Tromey <tromey@redhat.com>
7225 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7226 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7227 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7229 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7230 (_initialize_amd64_linux_nat): Use it.
7231 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7232 (_initialize_i386_linux_nat): Use it.
7234 2014-02-19 Tom Tromey <tromey@redhat.com>
7236 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7237 * target.c (target_teardown_btrace): Add argument.
7238 * remote.c (remote_teardown_btrace): Add 'self' argument.
7239 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7241 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7244 2014-02-19 Tom Tromey <tromey@redhat.com>
7246 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7247 * target.c (target_disable_btrace): Add argument.
7248 * remote.c (remote_disable_btrace): Add 'self' argument.
7249 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7251 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7254 2014-02-19 Tom Tromey <tromey@redhat.com>
7256 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7257 * target.c (target_enable_btrace): Add argument.
7258 * remote.c (remote_enable_btrace): Add 'self' argument.
7259 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7261 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7264 2014-02-19 Tom Tromey <tromey@redhat.com>
7266 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7267 (target_can_use_agent): Add argument.
7268 * target.c (update_current_target): Update.
7269 * remote.c (remote_can_use_agent): Add 'self' argument.
7270 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7272 2014-02-19 Tom Tromey <tromey@redhat.com>
7274 * target.h (struct target_ops) <to_use_agent>: Add argument.
7275 (target_use_agent): Add argument.
7276 * target.c (update_current_target): Update.
7277 * remote.c (remote_use_agent): Add 'self' argument.
7278 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7280 2014-02-19 Tom Tromey <tromey@redhat.com>
7282 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7283 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7284 (target_traceframe_info): Add argument.
7285 * target.c (update_current_target): Update.
7286 * remote.c (remote_traceframe_info): Add 'self' argument.
7287 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7289 2014-02-19 Tom Tromey <tromey@redhat.com>
7291 * target.h (target_static_tracepoint_markers_by_strid): Add
7293 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7295 * target.c (update_current_target): Update.
7296 * remote.c (struct target_ops)
7297 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7298 * linux-nat.c (struct target_ops)
7299 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7301 2014-02-19 Tom Tromey <tromey@redhat.com>
7303 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7305 (target_static_tracepoint_marker_at): Add argument.
7306 * target.c (update_current_target): Update.
7307 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7310 2014-02-19 Tom Tromey <tromey@redhat.com>
7312 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7313 (target_set_permissions): Add argument.
7314 * target.c (update_current_target): Update.
7315 * remote.c (remote_set_permissions): Add 'self' argument.
7316 (remote_start_remote): Update.
7318 2014-02-19 Tom Tromey <tromey@redhat.com>
7320 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7321 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7322 (target_get_tib_address): Add argument.
7323 * target.c (update_current_target): Update.
7324 * remote.c (remote_get_tib_address): Add 'self' argument.
7326 2014-02-19 Tom Tromey <tromey@redhat.com>
7328 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7329 (target_set_trace_notes): Add argument.
7330 * target.c (update_current_target): Update.
7331 * remote.c (remote_set_trace_notes): Add 'self' argument.
7333 2014-02-19 Tom Tromey <tromey@redhat.com>
7335 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7337 (target_set_trace_buffer_size): Add argument.
7338 * target.c (update_current_target): Update.
7339 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7341 2014-02-19 Tom Tromey <tromey@redhat.com>
7343 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7345 (target_set_circular_trace_buffer): Add argument.
7346 * target.c (update_current_target): Update.
7347 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7350 2014-02-19 Tom Tromey <tromey@redhat.com>
7352 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7354 (target_set_disconnected_tracing): Add argument.
7355 * target.c (update_current_target): Update.
7356 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7358 2014-02-19 Tom Tromey <tromey@redhat.com>
7360 * target.h (struct target_ops)
7361 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7362 (target_get_min_fast_tracepoint_insn_len): Add argument.
7363 * target.c (update_current_target): Update.
7364 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7367 2014-02-19 Tom Tromey <tromey@redhat.com>
7369 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7371 (target_get_raw_trace_data): Add argument.
7372 * target.c (update_current_target): Update.
7373 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7375 2014-02-19 Tom Tromey <tromey@redhat.com>
7377 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7379 (target_upload_trace_state_variables): Add argument.
7380 * target.c (update_current_target): Update.
7381 * remote.c (remote_upload_trace_state_variables): Add 'self'
7383 (remote_start_remote): Update.
7385 2014-02-19 Tom Tromey <tromey@redhat.com>
7387 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7389 (target_upload_tracepoints): Add argument.
7390 * target.c (update_current_target): Update.
7391 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7392 (remote_start_remote): Update.
7394 2014-02-19 Tom Tromey <tromey@redhat.com>
7396 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7397 (target_save_trace_data): Add argument.
7398 * target.c (update_current_target): Update.
7399 * remote.c (remote_save_trace_data): Add 'self' argument.
7401 2014-02-19 Tom Tromey <tromey@redhat.com>
7403 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7405 * target.h (struct target_ops)
7406 <to_get_trace_state_variable_value>: Add argument.
7407 (target_get_trace_state_variable_value): Add argument.
7408 * target.c (update_current_target): Update.
7409 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7411 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7413 2014-02-19 Tom Tromey <tromey@redhat.com>
7415 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7416 * target.h (struct target_ops) <to_trace_find>: Add argument.
7417 (target_trace_find): Add argument.
7418 * target.c (update_current_target): Update.
7419 * remote.c (remote_trace_find): Add 'self' argument.
7420 * ctf.c (ctf_trace_find): Add 'self' argument.
7422 2014-02-19 Tom Tromey <tromey@redhat.com>
7424 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7425 (target_trace_stop): Add argument.
7426 * target.c (update_current_target): Update.
7427 * remote.c (remote_trace_stop): Add 'self' argument.
7429 2014-02-19 Tom Tromey <tromey@redhat.com>
7431 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7432 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7434 (target_get_tracepoint_status): Add argument.
7435 * target.c (update_current_target): Update.
7436 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7438 2014-02-19 Tom Tromey <tromey@redhat.com>
7440 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7441 * target.h (struct target_ops) <to_get_trace_status>: Add
7443 (target_get_trace_status): Add argument.
7444 * target.c (update_current_target): Update.
7445 * remote.c (remote_get_trace_status): Add 'self' argument.
7446 (remote_start_remote, remote_can_download_tracepoint): Update.
7447 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7449 2014-02-19 Tom Tromey <tromey@redhat.com>
7451 * target.h (struct target_ops) <to_trace_start>: Add argument.
7452 (target_trace_start): Add argument.
7453 * target.c (update_current_target): Update.
7454 * remote.c (remote_trace_start): Add 'self' argument.
7456 2014-02-19 Tom Tromey <tromey@redhat.com>
7458 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7460 (target_trace_set_readonly_regions): Add argument.
7461 * target.c (update_current_target): Update.
7462 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7465 2014-02-19 Tom Tromey <tromey@redhat.com>
7467 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7469 (target_disable_tracepoint): Add argument.
7470 * target.c (update_current_target): Update.
7471 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7473 2014-02-19 Tom Tromey <tromey@redhat.com>
7475 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7477 (target_enable_tracepoint): Add argument.
7478 * target.c (update_current_target): Update.
7479 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7481 2014-02-19 Tom Tromey <tromey@redhat.com>
7483 * target.h (struct target_ops) <to_download_trace_state_variable>:
7485 (target_download_trace_state_variable): Add argument.
7486 * target.c (update_current_target): Update.
7487 * remote.c (remote_download_trace_state_variable): Add 'self'
7490 2014-02-19 Tom Tromey <tromey@redhat.com>
7492 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7494 (target_can_download_tracepoint): Add argument.
7495 * target.c (update_current_target): Update.
7496 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7498 2014-02-19 Tom Tromey <tromey@redhat.com>
7500 * target.h (struct target_ops) <to_download_tracepoint>: Add
7502 (target_download_tracepoint): Add argument.
7503 * target.c (update_current_target): Update.
7504 * remote.c (remote_download_tracepoint): Add 'self' argument.
7506 2014-02-19 Tom Tromey <tromey@redhat.com>
7508 * target.h (struct target_ops) <to_trace_init>: Add argument.
7509 (target_trace_init): Add argument.
7510 * target.c (update_current_target): Update.
7511 * remote.c (remote_trace_init): Add 'self' argument.
7513 2014-02-19 Tom Tromey <tromey@redhat.com>
7515 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7516 * target.c (target_fileio_readlink): Add argument.
7517 * remote.c (remote_hostio_readlink): Add 'self' argument.
7518 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7520 2014-02-19 Tom Tromey <tromey@redhat.com>
7522 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7523 * target.c (target_fileio_unlink): Add argument.
7524 * remote.c (remote_hostio_unlink): Add 'self' argument.
7525 (remote_file_delete): Update.
7526 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7528 2014-02-19 Tom Tromey <tromey@redhat.com>
7530 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7531 * target.c (target_fileio_close): Add argument.
7532 * remote.c (remote_hostio_close): Add 'self' argument.
7533 (remote_hostio_close_cleanup): Update.
7534 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7536 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7538 2014-02-19 Tom Tromey <tromey@redhat.com>
7540 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7541 * target.c (target_fileio_pread): Add argument.
7542 * remote.c (remote_hostio_pread): Add 'self' argument.
7543 (remote_bfd_iovec_pread, remote_file_get): Update.
7544 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7546 2014-02-19 Tom Tromey <tromey@redhat.com>
7548 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7549 * target.c (target_fileio_pwrite): Add argument.
7550 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7551 (remote_file_put): Update.
7552 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7554 2014-02-19 Tom Tromey <tromey@redhat.com>
7556 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7557 * target.c (target_fileio_open): Add argument.
7558 * remote.c (remote_hostio_open): Add 'self' argument.
7559 (remote_bfd_iovec_open): Add 'self' argument.
7560 (remote_file_put): Add 'self' argument.
7561 (remote_file_get): Add 'self' argument.
7562 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7564 2014-02-19 Tom Tromey <tromey@redhat.com>
7566 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7568 (target_can_run_breakpoint_commands): Add argument.
7569 * target.c (update_current_target): Update.
7570 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7572 (remote_insert_breakpoint): Add 'self' argument.
7573 (remote_insert_hw_breakpoint): Add 'self' argument.
7574 (remote_can_run_breakpoint_commands): Add 'self' argument.
7576 2014-02-19 Tom Tromey <tromey@redhat.com>
7578 * target.h (struct target_ops)
7579 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7580 (target_supports_evaluation_of_breakpoint_conditions): Add
7582 * target.c (update_current_target): Update.
7583 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7585 (remote_insert_breakpoint): Add 'self' argument.
7586 (remote_insert_hw_breakpoint): Add 'self' argument.
7587 (remote_supports_cond_breakpoints): Add 'self' argument.
7589 2014-02-19 Tom Tromey <tromey@redhat.com>
7591 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7593 (target_supports_string_tracing): Add argument.
7594 * target.c (update_current_target): Update.
7595 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7597 2014-02-19 Tom Tromey <tromey@redhat.com>
7599 * target.h (struct target_ops)
7600 <to_supports_disable_randomization>: Add argument.
7601 * target.c (find_default_supports_disable_randomization): Add
7603 (target_supports_disable_randomization): Add argument.
7604 (find_default_supports_disable_randomization): Add 'self'
7606 * remote.c (extended_remote_supports_disable_randomization): Add
7608 (remote_supports_disable_randomization): Add 'self' argument.
7609 (extended_remote_create_inferior): Update.
7610 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7613 2014-02-19 Tom Tromey <tromey@redhat.com>
7615 * target.h (struct target_ops)
7616 <to_supports_enable_disable_tracepoint>: Add argument.
7617 (target_supports_enable_disable_tracepoint): Add argument.
7618 * target.c (update_current_target): Update.
7619 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7624 * target.h (struct target_ops) <to_supports_multi_process>: Add
7626 (target_supports_multi_process): Add argument.
7627 * target.c (update_current_target): Update.
7628 * remote.c (remote_supports_multi_process): Add 'self' argument.
7629 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7631 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7634 2014-02-19 Tom Tromey <tromey@redhat.com>
7636 * target.h (struct target_ops) <to_execution_direction>: Add
7638 (target_execution_direction): Add argument.
7639 * target.c (default_execution_direction): Add 'self' argument.
7640 * record-full.c (record_full_execution_direction): Add 'self'
7643 2014-02-19 Tom Tromey <tromey@redhat.com>
7645 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7647 (target_can_execute_reverse): Add argument.
7648 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7649 * record-full.c (record_full_can_execute_reverse): Add 'self'
7651 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7654 2014-02-19 Tom Tromey <tromey@redhat.com>
7656 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7657 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7659 (target_get_ada_task_ptid): Add argument.
7660 * target.c (update_current_target): Update.
7661 (default_get_ada_task_ptid): Add 'self' argument.
7662 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7663 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7664 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7666 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7668 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7670 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7672 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7673 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7676 2014-02-19 Tom Tromey <tromey@redhat.com>
7678 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7679 (target_goto_bookmark): Add argument.
7680 * target.c (dummy_goto_bookmark): Add 'self' argument.
7681 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7683 2014-02-19 Tom Tromey <tromey@redhat.com>
7685 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7686 (target_get_bookmark): Add argument.
7687 * target.c (dummy_get_bookmark): Add 'self' argument.
7688 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7690 2014-02-19 Tom Tromey <tromey@redhat.com>
7692 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7694 (target_make_corefile_notes): Add argument.
7695 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7696 * procfs.c (procfs_make_note_section): Add 'self' argument.
7697 (procfs_make_note_section): Add 'self' argument.
7698 (procfs_make_note_section): Add 'self' argument.
7699 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7701 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7702 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7703 * exec.c (exec_make_note_section): Add 'self' argument.
7704 (exec_make_note_section): Add 'self' argument.
7706 2014-02-19 Tom Tromey <tromey@redhat.com>
7708 * target.h (struct target_ops) <to_find_memory_regions>: Add
7710 (target_find_memory_regions): Add argument.
7711 * target.c (dummy_find_memory_regions): Add 'self' argument.
7712 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7713 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7714 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7715 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7716 * exec. (exec_do_find_memory_regions): New global.
7717 (exec_set_find_memory_regions): Rewrite.
7718 (exec_find_memory_regions): New function.
7719 (init_exec_ops): Use exec_find_memory_regions.
7721 2014-02-19 Tom Tromey <tromey@redhat.com>
7723 * target.h (struct target_ops) <to_supports_non_stop>: Add
7725 * target.c (find_default_supports_non_stop): Add argument.
7726 (target_supports_non_stop): Add argument.
7727 (find_default_supports_non_stop): Add 'self' argument.
7728 * remote.c (remote_supports_non_stop): Add 'self' argument.
7729 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7731 2014-02-19 Tom Tromey <tromey@redhat.com>
7733 * target.h (struct target_ops) <to_log_command>: Add argument.
7734 (target_log_command): Add argument.
7735 * serial.h (serial_log_command): Add 'self' argument.
7736 * serial.c (serial_log_command): Add 'self' argument.
7738 2014-02-19 Tom Tromey <tromey@redhat.com>
7740 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7741 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7743 (target_pid_to_exec_file): Add argument.
7744 * target.c (debug_to_pid_to_exec_file): Add argument.
7745 (update_current_target): Update.
7746 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7747 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7748 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7749 (linux_handle_extended_wait): Update.
7750 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7751 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7752 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7753 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7755 2014-02-19 Tom Tromey <tromey@redhat.com>
7757 * target.h (struct target_ops) <to_rcmd>: Add argument.
7758 (target_rcmd): Add argument.
7759 * target.c (debug_to_rcmd): Add argument.
7760 (update_current_target, do_monitor_command): Update.
7761 * remote.c (remote_rcmd): Add 'self' argument.
7762 * monitor.c (monitor_rcmd): Add 'self' argument.
7764 2014-02-19 Tom Tromey <tromey@redhat.com>
7766 * windows-nat.c (windows_stop): Add 'self' argument.
7767 * target.h (struct target_ops) <to_stop>: Add argument.
7768 * target.c (target_stop): Add argument.
7769 (debug_to_stop): Add argument.
7770 (update_current_target): Update.
7771 * remote.c (remote_stop): Add 'self' argument.
7772 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7773 (gdbsim_cntrl_c): Update.
7774 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7775 * procfs.c (procfs_stop): Add 'self' argument.
7776 * nto-procfs.c (procfs_stop): Add 'self' argument.
7777 * monitor.c (monitor_stop): Add 'self' argument.
7778 (monitor_open): Update.
7779 * linux-nat.c (linux_nat_stop): Add argument.
7780 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7781 * gnu-nat.c (gnu_stop): Add 'self' argument.
7782 * darwin-nat.c (darwin_stop): Add 'self' argument.
7784 2014-02-19 Tom Tromey <tromey@redhat.com>
7786 * target.h (struct target_ops) <to_thread_name>: Add argument.
7787 * target.c (target_thread_name): Add argument.
7788 (update_current_target): Update.
7789 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7791 2014-02-19 Tom Tromey <tromey@redhat.com>
7793 * target.h (struct target_ops) <to_extra_thread_info>: Add
7795 (target_extra_thread_info): Add argument.
7796 * target.c (update_current_target): Update.
7797 * remote.c (remote_threads_extra_info): Add 'self' argument.
7798 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7800 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7801 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7802 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7804 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7806 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7808 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7811 2014-02-19 Tom Tromey <tromey@redhat.com>
7813 * target.h (struct target_ops) <to_program_signals>: Add argument.
7814 * target.c (target_program_signals): Add argument.
7815 * remote.c (remote_program_signals): Add 'self' argument.
7817 2014-02-19 Tom Tromey <tromey@redhat.com>
7819 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7820 * target.c (target_pass_signals): Add argument.
7821 * remote.c (remote_pass_signals): Add 'self' argument.
7822 (remote_start_remote): Update.
7823 * procfs.c (procfs_pass_signals): Add 'self' argument.
7824 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7825 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7826 (linux_nat_create_inferior, linux_nat_attach): Update.
7828 2014-02-19 Tom Tromey <tromey@redhat.com>
7830 * windows-nat.c (windows_can_run): Add 'self' argument.
7831 * target.h (struct target_ops) <to_can_run>: Add argument.
7832 (target_can_run): Add argument.
7833 * target.c (debug_to_can_run): Add argument.
7834 (update_current_target): Update.
7835 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7836 * inf-child.c (inf_child_can_run): Add 'self' argument.
7837 * go32-nat.c (go32_can_run): Add 'self' argument.
7839 2014-02-19 Tom Tromey <tromey@redhat.com>
7841 * target.h (struct target_ops) <to_has_exited>: Add argument.
7842 (target_has_exited): Add argument.
7843 * target.c (debug_to_has_exited): Add argument.
7844 (update_current_target): Update.
7846 2014-02-19 Tom Tromey <tromey@redhat.com>
7848 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7850 (target_set_syscall_catchpoint): Add argument.
7851 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7853 * target.c (update_current_target): Update.
7855 2014-02-19 Tom Tromey <tromey@redhat.com>
7857 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7859 (target_remove_exec_catchpoint): Add argument.
7860 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7861 (update_current_target): Update.
7862 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7867 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7869 (target_insert_exec_catchpoint): Add argument.
7870 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7871 (update_current_target): Update.
7872 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7875 2014-02-19 Tom Tromey <tromey@redhat.com>
7877 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7879 (target_remove_vfork_catchpoint): Add argument.
7880 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7881 (update_current_target): Update.
7882 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7885 2014-02-19 Tom Tromey <tromey@redhat.com>
7887 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7889 (target_insert_vfork_catchpoint): Add argument.
7890 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7891 (update_current_target): Update.
7892 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7897 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7899 (target_remove_fork_catchpoint): Add argument.
7900 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7901 (update_current_target): Update.
7902 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7905 2014-02-19 Tom Tromey <tromey@redhat.com>
7907 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7909 (target_insert_fork_catchpoint): Add argument.
7910 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7911 (update_current_target): Update.
7912 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7915 2014-02-19 Tom Tromey <tromey@redhat.com>
7917 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7919 (target_post_startup_inferior): Add argument.
7920 * target.c (debug_to_post_startup_inferior): Add argument.
7921 (update_current_target): Update.
7922 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7924 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7926 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7928 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7930 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7932 (super_post_startup_inferior): Likewise.
7933 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7935 (super_post_startup_inferior): Likewise.
7936 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7937 Add 'self' argument.
7938 (super_post_startup_inferior): Likewise.
7940 2014-02-19 Tom Tromey <tromey@redhat.com>
7942 * target.h (struct target_ops) <to_load>: Add argument.
7943 * target.c (target_load): Add argument.
7944 (debug_to_load): Add argument.
7945 (update_current_target): Update.
7946 * remote.c (remote_load): Add 'self' argument.
7947 * remote-sim.c (gdbsim_load): Add 'self' argument.
7948 * remote-mips.c (mips_load): Add 'self' argument.
7949 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7950 * monitor.c (monitor_load): Add 'self' argument.
7951 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7953 2014-02-19 Tom Tromey <tromey@redhat.com>
7955 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7956 (target_terminal_info): Add argument.
7957 * target.c (debug_to_terminal_info): Add argument.
7958 (default_terminal_info): Likewise.
7959 * inflow.c (child_terminal_info): Add 'self' argument.
7960 * inferior.h (child_terminal_info): Add 'self' argument.
7961 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7963 2014-02-19 Tom Tromey <tromey@redhat.com>
7965 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7967 (target_terminal_save_ours): Add argument.
7968 * target.c (debug_to_terminal_save_ours): Add argument.
7969 (update_current_target): Update.
7970 * inflow.c (terminal_save_ours): Add 'self' argument.
7971 * inferior.h (terminal_save_ours): Add 'self' argument.
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7975 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7976 (target_terminal_ours): Add argument.
7977 * target.c (debug_to_terminal_ours): Add argument.
7978 (update_current_target): Update.
7979 * remote.c (remote_terminal_ours): Add 'self' argument.
7980 (remote_close): Update.
7981 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7982 * inflow.c (terminal_ours): Add 'self' argument.
7983 * inferior.h (terminal_ours): Add 'self' argument.
7984 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7986 2014-02-19 Pedro Alves <palves@redhat.com>
7987 Tom Tromey <tromey@redhat.com>
7989 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7991 (target_terminal_ours_for_output): Add argument.
7992 * target.c (debug_to_terminal_ours_for_output): Add argument.
7993 (update_current_target): Update.
7994 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7995 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7996 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7998 2014-02-19 Tom Tromey <tromey@redhat.com>
8000 * target.h (struct target_ops) <to_terminal_inferior>: Add
8002 * target.c (target_terminal_inferior): Add argument.
8003 (update_current_target): Update.
8004 * remote.c (remote_terminal_inferior): Add 'self' argument.
8005 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8006 * inflow.c (terminal_inferior): Add 'self' argument.
8007 * inferior.h (terminal_inferior): Add 'self' argument.
8008 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8009 (go32_terminal_inferior): Add 'self' argument.
8011 2014-02-19 Tom Tromey <tromey@redhat.com>
8013 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8014 (target_terminal_init): Add argument.
8015 * target.c (debug_to_terminal_init): Add argument.
8016 (update_current_target): Update.
8017 * inflow.c (terminal_init_inferior): Add 'self' argument.
8018 * inferior.h (terminal_init_inferior): Add 'self' argument.
8019 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8020 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8022 2014-02-19 Tom Tromey <tromey@redhat.com>
8024 * target.h (struct target_ops)
8025 <to_can_accel_watchpoint_condition>: Add argument.
8026 (target_can_accel_watchpoint_condition): Add argument.
8027 * target.c (debug_to_can_accel_watchpoint_condition): Add
8029 (update_current_target): Update.
8030 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8033 2014-02-19 Tom Tromey <tromey@redhat.com>
8035 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8037 (target_region_ok_for_hw_watchpoint): Add argument.
8038 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8039 (default_region_ok_for_hw_watchpoint): Add argument.
8040 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8041 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8043 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8045 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8047 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8049 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8051 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8053 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8054 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8056 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8057 Add 'self' argument.
8059 2014-02-19 Tom Tromey <tromey@redhat.com>
8061 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8063 (target_insert_watchpoint): Add argument.
8064 * target.c (debug_to_insert_watchpoint): Add argument.
8065 (update_current_target): Update.
8066 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8067 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8068 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8069 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8070 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8071 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8073 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8074 (procfs_insert_hw_watchpoint): Add 'self' argument.
8075 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8077 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8079 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8081 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8082 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8084 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8087 2014-02-19 Tom Tromey <tromey@redhat.com>
8089 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8091 (target_remove_watchpoint): Add argument.
8092 * target.c (debug_to_remove_watchpoint): Add argument.
8093 (update_current_target): Update.
8094 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8095 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8096 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8097 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8098 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8099 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8101 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8102 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8104 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8106 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8108 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8109 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8111 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8116 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8118 (target_remove_hw_breakpoint): Add argument.
8119 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8120 (update_current_target): Update.
8121 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8122 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8124 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8125 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8127 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8130 2014-02-19 Tom Tromey <tromey@redhat.com>
8132 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8134 (target_insert_hw_breakpoint): Add argument.
8135 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8136 (update_current_target): Update.
8137 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8138 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8140 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8141 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8142 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8144 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8147 2014-02-19 Tom Tromey <tromey@redhat.com>
8149 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8151 (target_can_use_hardware_watchpoint): Add argument.
8152 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8153 (update_current_target): Update.
8154 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8156 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8158 * remote.c (remote_check_watch_resources): Add 'self' argument.
8159 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8160 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8162 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8163 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8165 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8167 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8169 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8171 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8173 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8175 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8176 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8178 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8181 2014-02-19 Tom Tromey <tromey@redhat.com>
8183 * target.h (struct target_ops) <to_post_attach>: Add argument.
8184 (target_post_attach): Add argument.
8185 * target.c (debug_to_post_attach): Add argument.
8186 (update_current_target): Update.
8187 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8188 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8189 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8190 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8191 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8193 2014-02-19 Tom Tromey <tromey@redhat.com>
8195 * windows-nat.c (windows_close): Add 'self' argument.
8196 * tracepoint.c (tfile_close): Add 'self' argument.
8197 * target.h (struct target_ops) <to_close>: Add argument.
8198 * target.c (target_close): Add argument.
8199 (update_current_target): Update.
8200 * remote.c (remote_close): Add 'self' argument.
8201 * remote-sim.c (gdbsim_close): Add 'self' argument.
8202 * remote-mips.c (mips_close): Add 'self' argument.
8203 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8204 * record-full.c (record_full_close): Add 'self' argument.
8205 * record-btrace.c (record_btrace_close): Add 'self' argument.
8206 * monitor.h (monitor_close): Add 'self' argument.
8207 * monitor.c (monitor_close): Add 'self' argument.
8208 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8209 * linux-nat.c (linux_nat_close): Add argument.
8210 * go32-nat.c (go32_close): Add 'self' argument.
8211 * exec.c (exec_close_1): Add 'self' argument.
8212 * ctf.c (ctf_close): Add 'self' argument.
8213 * corelow.c (core_close): Add 'self' argument.
8214 (core_close_cleanup): Update.
8215 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8216 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8218 2014-02-19 Tom Tromey <tromey@redhat.com>
8220 * remote.c (remote_load): New function.
8221 (init_remote_ops): Use it.
8223 2014-02-19 Tom Tromey <tromey@redhat.com>
8225 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8227 * common/linux-btrace.h (linux_supports_btrace): Update.
8228 * remote.c (remote_supports_btrace): Add "self" argument.
8229 * target-delegates.c: Rebuild.
8230 * target.c (target_supports_btrace): Remove.
8231 * target.h (struct target_ops) <to_supports_btrace>: Add
8232 target_ops argument.
8233 (target_supports_btrace): New define.
8235 2014-02-19 Tom Tromey <tromey@redhat.com>
8237 * record-full.c (record_full_beneath_to_resume_ops)
8238 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8239 (record_full_beneath_to_wait)
8240 (record_full_beneath_to_store_registers_ops)
8241 (record_full_beneath_to_store_registers)
8242 (record_full_beneath_to_xfer_partial_ops)
8243 (record_full_beneath_to_xfer_partial)
8244 (record_full_beneath_to_insert_breakpoint_ops)
8245 (record_full_beneath_to_insert_breakpoint)
8246 (record_full_beneath_to_remove_breakpoint_ops)
8247 (record_full_beneath_to_remove_breakpoint)
8248 (record_full_beneath_to_stopped_by_watchpoint)
8249 (record_full_beneath_to_stopped_data_address)
8250 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8251 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8252 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8253 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8254 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8255 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8256 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8257 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8258 (record_full_resume, record_full_wait_1)
8259 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8260 (record_full_store_registers, record_full_xfer_partial)
8261 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8262 (record_full_async, record_full_core_xfer_partial): Use target
8264 * target-delegates.c: Rebuild.
8265 * target.c (current_xfer_partial): Remove.
8266 (update_current_target): Do not INHERIT or de_fault
8267 to_insert_breakpoint, to_remove_breakpoint,
8268 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8269 to_is_async_p, to_async. Do not set to_xfer_partial field.
8270 (default_xfer_partial): Simplify.
8271 (current_xfer_partial): Remove.
8272 (target_wait, target_resume): Simplify.
8273 (find_default_can_async_p, find_default_is_async_p): Update.
8274 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8275 to_xfer_partial, to_stopped_by_watchpoint,
8276 to_stopped_data_address.
8277 (target_store_registers): Simplify.
8278 (forward_target_remove_breakpoint)
8279 (forward_target_insert_breakpoint): Remove.
8280 (target_remove_breakpoint, target_insert_breakpoint)
8281 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8282 * target.h (struct target_ops) <to_resume, to_wait,
8283 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8284 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8285 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8287 (forward_target_remove_breakpoint)
8288 (forward_target_insert_breakpoint): Remove.
8289 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8291 (record_btrace_insert_breakpoint): Delegate directly.
8293 2014-02-19 Tom Tromey <tromey@redhat.com>
8296 * target-delegates.c: New file.
8297 * target.c: Include target-delegates.c.
8298 (init_dummy_target): Call install_dummy_methods.
8299 (complete_target_initialization): Call install_delegators.
8300 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8301 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8302 * make-target-delegates: New file.
8304 2014-02-19 Tom Tromey <tromey@redhat.com>
8306 * record.c (find_record_target): Use find_target_at.
8307 * target.c (find_target_at): New function.
8308 * target.h (find_target_at): Declare.
8310 2014-02-19 Tom Tromey <tromey@redhat.com>
8312 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8314 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8316 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8317 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8319 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8321 * linux-nat.c (save_sigtrap): Update.
8322 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8323 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8324 (linux_nat_close): Update.
8325 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8327 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8329 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8330 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8331 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8332 (tmp_to_async): Add 'ops' argument.
8333 (record_full_stopped_by_watchpoint, record_full_async)
8334 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8336 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8337 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8338 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8339 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8340 (remote_is_async_p, remote_async): Add 'ops' argument.
8341 (remote_stopped_data_address): Update.
8342 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8343 * target.c (update_current_target)
8344 (find_default_can_async_p, find_default_is_async_p): Update.
8345 (init_dummy_target): Update.
8346 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8347 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8348 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8349 (target_can_async_p, target_is_async_p, target_async)
8350 (target_stopped_by_watchpoint): Update.
8352 2014-02-19 Yao Qi <yao@codesourcery.com>
8355 * gdbarch.sh: Remove startup_gdbarch.
8356 * gdbarch.c: Regenerated.
8357 * gdbarch.h: Likewise.
8359 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8361 * rl78-tdep.c (rl78_g10_register_name): New function.
8362 (rl78_return_value): Add g10 support.
8363 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8366 2014-02-17 Doug Evans <xdje42@gmail.com>
8368 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8369 (SUBDIR_GUILE_SRCS): Ditto.
8370 (scm-gsmob.o): Ditto.
8372 2014-02-17 Yao Qi <yao@codesourcery.com>
8374 * gnu-nat.c (ILL_RPC): Declare defined function.
8376 2014-02-17 Yao Qi <yao@codesourcery.com>
8378 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8379 mach_msg_type_number_t.
8380 (gnu_write_inferior): Likewise.
8382 2014-02-17 Yao Qi <yao@codesourcery.com>
8384 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8386 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8387 (inf_validate_procs, inf_signal): Likewise.
8388 (S_exception_raise_request): Likewise.
8389 (do_mach_notify_dead_name): Likewise.
8390 (steal_exc_port): Likewise.
8391 (gnu_read_inferior): Change 'copy_count''s type to
8392 mach_msg_type_number_t.
8393 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8396 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8398 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8399 flag. Adjust all users; in particular...
8400 (gnu_wait): ..., don't decrement its value in here...
8401 (gnu_create_inferior): ..., and instead set the flag in here,
8402 around the startup_inferior call, and call that one with
8403 START_INFERIOR_TRAPS_EXPECTED.
8405 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8406 (ILL_RPC): ... new macro.
8407 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8408 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8409 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8410 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8411 functions with ILL_RPC macro.
8412 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8413 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8414 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8415 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8416 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8417 (S_proc_getlogin_reply, S_proc_getsid_reply)
8418 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8419 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8420 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8421 (S_proc_getnports_reply, S_proc_is_important_reply)
8422 (S_proc_get_code_reply): New stub functions, generated with
8425 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8426 collected the type check structures.
8428 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8430 2014-02-14 Doug Evans <dje@google.com>
8432 * target.c (target_write_partial): Fix result type.
8434 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8436 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8437 the proper offsets to access fpregset_t.
8439 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8441 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8442 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8443 * h8300-tdep.c (setmachinelist): Remove global.
8444 * hppa-tdep.c (hppa_sigtramp): Remove global.
8445 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8446 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8447 * ravenscar-thread.c (update_target_observer): Remove global.
8448 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8450 2014-02-12 Tom Tromey <tromey@redhat.com>
8452 * common/rsp-low.c: Update comments.
8453 * common/rsp-low.h: Update comments.
8455 2014-02-12 Tom Tromey <tromey@redhat.com>
8457 * common/rsp-low.c (convert_ascii_to_int): Remove.
8458 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8460 2014-02-12 Tom Tromey <tromey@redhat.com>
8462 * common/rsp-low.h (unhexify): Don't declare.
8463 * common/rsp-low.c (unhexify): Remove.
8465 2014-02-12 Tom Tromey <tromey@redhat.com>
8467 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8468 * common/rsp-low.c (convert_int_to_ascii): Remove.
8470 2014-02-12 Tom Tromey <tromey@redhat.com>
8472 * common/rsp-low.h (hexify): Don't declare.
8473 * common/rsp-low.c (hexify): Remove.
8475 2014-02-12 Tom Tromey <tromey@redhat.com>
8477 * common/rsp-low.c (hexify): Never take strlen of argument.
8479 2014-02-12 Tom Tromey <tromey@redhat.com>
8481 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8482 * remote.c (extended_remote_run, remote_rcmd)
8483 (remote_download_trace_state_variable, remote_save_trace_data)
8484 (remote_set_trace_notes): Update.
8485 * tracepoint.c (encode_source_string, tfile_write_status)
8486 (tfile_write_uploaded_tsv): Update.
8488 2014-02-12 Tom Tromey <tromey@redhat.com>
8490 * tracepoint.c: Include rsp-low.h.
8491 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8492 * remote.c: Include rsp-low.h.
8493 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8494 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8495 (remote_unescape_input): Move to common/rsp-low.c.
8496 * common/rsp-low.h: New file.
8497 * common/rsp-low.c: New file.
8498 * Makefile.in (SFILES): Add common/rsp-low.c.
8499 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8500 (COMMON_OBS): Add rsp-low.o.
8501 (rsp-low.o): New target.
8503 2014-02-12 Tom Tromey <tromey@redhat.com>
8505 * utils.h: Include print-utils.h.
8506 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8507 (int_string, core_addr_to_string, core_addr_to_string_nz)
8508 (hex_string, hex_string_custom): Don't declare.
8509 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8510 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8511 (hex_string_custom, int_string, core_addr_to_string)
8512 (core_addr_to_string_nz, host_address_to_string): Move to
8513 common/print-utils.c.
8514 * common/print-utils.h: New file.
8515 * common/print-utils.c: New file
8516 * Makefile.in (SFILES): Add common/print-utils.c.
8517 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8518 (COMMON_OBS): Add print-utils.o.
8519 (print-utils.o): New target.
8521 2014-02-12 Tom Tromey <tromey@redhat.com>
8523 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8525 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8527 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8529 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8531 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8532 if a PT_IO ptrace request returns sucessfully but indicates that 0
8533 bytes were transferred.
8535 2014-02-12 Pedro Alves <palves@redhat.com>
8536 Kevin Buettner <kevinb@redhat.com>
8538 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8539 TYPE_INSTANCE_FLAG_CODE_SPACE.
8541 2014-02-12 Pedro Alves <palves@redhat.com>
8543 * h8300-tdep.c (pseudo_from_raw_register)
8544 (raw_from_pseudo_register): New functions.
8545 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8548 2014-02-12 Pedro Alves <palves@redhat.com>
8550 * h8300-tdep.c (h8300_register_sim_regno): New function.
8551 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8552 gdbarch_register_sim_regno hook.
8554 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8556 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8558 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8560 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8562 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8564 * obsd-tdep.h (obsd_init_abi): New prototype.
8565 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8566 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8567 (obsd_init_abi): New functions.
8568 * i386obsd-tdep.c: Include "obsd-tdep.h".
8569 (i386obsd_init_abi): Call obsd_init_abi.
8570 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8571 (amd64obsd_init_abi): Call obsd_init_abi.
8572 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8573 obsd-tdep.c to gdb_target_obs.
8575 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8577 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8578 double float arguments to 16-byte in the argument slots.
8580 2014-02-11 Doug Evans <xdje42@gmail.com>
8582 * configure.ac: Don't crash if pkg-config is not found and guile
8583 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8585 * configure: Regenerate.
8587 2014-02-11 Yao Qi <yao@codesourcery.com>
8589 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8590 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8591 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8592 * gnu-nat.c (gnu_xfer_memory): Likewise.
8593 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8594 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8595 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8596 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8598 2014-02-11 Yao Qi <yao@codesourcery.com>
8600 * target.h (enum target_xfer_error): Rename to ...
8601 (enum target_xfer_status): ... it. New. All users updated.
8602 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8604 (TARGET_XFER_STATUS_ERROR_P): New macro.
8605 (target_xfer_error_to_string): Remove declaration.
8606 (target_xfer_status_to_string): Declare.
8607 (target_xfer_partial_ftype): Adjust it.
8608 (struct target_ops) <to_xfer_partial>: Return
8609 target_xfer_status. Add argument xfered_len. Update
8611 * target.c (target_xfer_error_to_string): Rename to ...
8612 (target_xfer_status_to_string): ... it. New. All callers
8614 (target_read_live_memory): Likewise. Call target_xfer_partial
8615 instead of target_read.
8616 (memory_xfer_live_readonly_partial): Return
8617 target_xfer_status. Add argument xfered_len.
8618 (raw_memory_xfer_partial): Likewise.
8619 (memory_xfer_partial_1): Likewise.
8620 (memory_xfer_partial): Likewise.
8621 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8622 properly. Update debug message.
8623 (default_xfer_partial, current_xfer_partial): Likewise.
8624 (target_write_partial): Likewise.
8625 (target_read_partial): Likewise. All callers updated.
8626 (read_whatever_is_readable): Likewise.
8627 (target_write_with_progress): Likewise.
8628 (target_read_alloc_1): Likewise.
8630 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8631 * auxv.c (procfs_xfer_auxv): Likewise.
8632 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8633 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8634 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8635 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8636 * corefile.c (read_memory): Adjust.
8637 * corelow.c (core_xfer_partial): Likewise.
8638 * ctf.c (ctf_xfer_partial): Likewise.
8639 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8641 (darwin_xfer_partial): Likewise.
8642 * exec.c (section_table_xfer_memory_partial): Likewise. All
8644 (exec_xfer_partial): Likewise.
8645 * exec.h (section_table_xfer_memory_partial): Update
8647 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8649 (gnu_xfer_partial): Likewise.
8650 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8651 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8652 (ia64_hpux_xfer_solib_got): Likewise.
8653 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8654 type of 'partial_len' to ULONGEST.
8655 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8656 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8657 (linux_nat_xfer_partial): Likewise.
8658 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8659 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8660 * monitor.c (monitor_xfer_memory): Likewise.
8661 (monitor_xfer_partial): Likewise.
8662 * procfs.c (procfs_xfer_partial): Likewise.
8663 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8664 * record-full.c (record_full_xfer_partial): Likewise.
8665 (record_full_core_xfer_partial): Likewise.
8666 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8667 (gdbsim_xfer_partial): Likewise.
8668 * remote.c (remote_write_bytes_aux): Likewise. All callers
8670 (remote_write_bytes, remote_read_bytes): Likewise. All
8672 (remote_flash_erase): Likewise. All callers updated.
8673 (remote_write_qxfer): Likewise. All callers updated.
8674 (remote_read_qxfer): Likewise. All callers updated.
8675 (remote_xfer_partial): Likewise.
8676 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8677 (rs6000_xfer_shared_libraries): Likewise.
8678 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8679 (sol_thread_xfer_partial): Likewise.
8680 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8681 (sparc_xfer_partial): Likewise.
8682 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8684 (spu_xfer_partial): Likewise.
8685 * spu-multiarch.c (spu_xfer_partial): Likewise.
8686 * tracepoint.c (tfile_xfer_partial): Likewise.
8687 * windows-nat.c (windows_xfer_memory): Likewise.
8688 (windows_xfer_shared_libraries): Likewise.
8689 (windows_xfer_partial): Likewise.
8690 * valprint.c: Replace 'target_xfer_error' with
8691 'target_xfer_status' in comments.
8693 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8695 Checked in by Joel Brobecker <brobecker@adacore.com>.
8696 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8698 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8700 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8701 function parameters.
8703 2014-02-10 Will Newton <will.newton@linaro.org>
8705 * elfread.c (elf_rel_plt_read): Look for a .got section if
8706 looking up .got.plt fails.
8707 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8708 on address passed to elf_gnu_ifunc_record_cache.
8709 (elf_gnu_ifunc_resolve_addr): Likewise.
8710 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8712 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8714 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8715 (X_RETTURN): New macro.
8716 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8718 * sparc64-tdep.c (sparc64_init_abi): Hook
8719 sparc_in_function_epilogue_p.
8721 2014-02-10 Gary Benson <gbenson@redhat.com>
8723 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8724 Rename name_matcher to symbol_matcher.
8726 2014-02-10 Gary Benson <gbenson@redhat.com>
8728 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8729 Use expand_symtabs_file_matcher_ftype and
8730 expand_symtabs_symbol_matcher_ftype.
8732 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8734 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8735 (struct ada_symbol_cache): New.
8736 (ada_free_symbol_cache): Forward declare.
8737 (struct ada_pspace_data): New.
8738 (ada_pspace_data_handle): New static global.
8739 (get_ada_pspace_data, ada_pspace_data_cleanup)
8740 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8741 (cache_space, cache): Delete, now folded inside struct
8743 (ada_get_symbol_cache): New function.
8744 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8746 (_initialize_ada_language): Remove initialization of cache_space.
8747 Move call to observer_attach_inferior_exit up, grouping it
8748 with the other observer registrations inside this function.
8749 Rename command to be more general. Add call to
8750 register_program_space_data_with_cleanup.
8752 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8754 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8755 ada_new_objfile_observer.
8756 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8757 (_initialize_tasks): Update uses of ada_new_objfile_observer
8758 and ada_tasks_normal_stop_observer.
8760 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8762 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8763 returned by the 'Length attribute to integer.
8765 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8767 * ada-lang.c (_initialize_ada_language): Initialize
8768 cache_space obstack.
8770 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8772 * ada-lang.c (HASH_SIZE): New macro.
8773 (struct cache_entry): New type.
8774 (cache_space, cache): New static globals.
8775 (ada_clear_symbol_cache, find_entry): New functions.
8776 (lookup_cached_symbol, cache_symbol): Implement.
8777 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8778 (_initialize_ada_language): Attach ada_new_objfile_observer
8779 and ada_free_objfile_observer.
8781 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8783 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8784 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8785 struct block * parameter.
8786 (ada_lookup_symbol_list_worker): Constify local variable "block".
8787 Remove cast which is no longer necessary.
8789 2014-02-10 Doug Evans <xdje42@gmail.com>
8791 Add Guile as an extension language.
8792 * NEWS: Mention Guile scripting.
8793 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8794 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8795 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8796 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8797 (CLIBS): Add GUILE_LIBS.
8798 (install-guile): New rule.
8799 (guile.o): New rule.
8800 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8801 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8802 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8803 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8804 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8805 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8806 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8807 * configure.ac: New option --with-guile.
8808 * configure: Regenerate.
8809 * config.in: Regenerate.
8810 * auto-load.c: Remove #include "python/python.h". Add #include
8811 "gdb/section-scripts.h".
8812 (source_section_scripts): Handle Guile scripts.
8813 (_initialize_auto_load): Add name of Guile objfile script to
8814 scripts-directory help text.
8815 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8816 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8817 (struct breakpoint): New member scm_bp_object.
8818 * defs.h (enum command_control_type): New value guile_control.
8819 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8821 (show_user): Update comment.
8822 (_initialize_cli_cmds): Update help text for "show user". Update help
8823 text for max-user-call-depth.
8824 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8826 (multi_line_command_p): Add guile_control.
8827 (print_command_lines): Handle guile_control.
8828 (execute_control_command, recurse_read_control_structure): Ditto.
8829 (process_next_line): Recognize "guile" commands.
8830 * disasm.c (gdb_disassemble_info): Make non-static.
8831 * disasm.h: #include "dis-asm.h".
8832 (struct gdbarch): Add forward decl.
8833 (gdb_disassemble_info): Declare.
8834 * extension.c: #include "guile/guile.h".
8835 (extension_languages): Add guile.
8836 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8837 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8838 * gdbtypes.c (get_unsigned_type_max): New function.
8839 (get_signed_type_minmax): New function.
8840 * gdbtypes.h (get_unsigned_type_max): Declare.
8841 (get_signed_type_minmax): Declare.
8842 * guile/README: New file.
8843 * guile/guile-internal.h: New file.
8844 * guile/guile.c: New file.
8845 * guile/guile.h: New file.
8846 * guile/scm-arch.c: New file.
8847 * guile/scm-auto-load.c: New file.
8848 * guile/scm-block.c: New file.
8849 * guile/scm-breakpoint.c: New file.
8850 * guile/scm-disasm.c: New file.
8851 * guile/scm-exception.c: New file.
8852 * guile/scm-frame.c: New file.
8853 * guile/scm-gsmob.c: New file.
8854 * guile/scm-iterator.c: New file.
8855 * guile/scm-lazy-string.c: New file.
8856 * guile/scm-math.c: New file.
8857 * guile/scm-objfile.c: New file.
8858 * guile/scm-ports.c: New file.
8859 * guile/scm-pretty-print.c: New file.
8860 * guile/scm-safe-call.c: New file.
8861 * guile/scm-string.c: New file.
8862 * guile/scm-symbol.c: New file.
8863 * guile/scm-symtab.c: New file.
8864 * guile/scm-type.c: New file.
8865 * guile/scm-utils.c: New file.
8866 * guile/scm-value.c: New file.
8867 * guile/lib/gdb.scm: New file.
8868 * guile/lib/gdb/boot.scm: New file.
8869 * guile/lib/gdb/experimental.scm: New file.
8870 * guile/lib/gdb/init.scm: New file.
8871 * guile/lib/gdb/iterator.scm: New file.
8872 * guile/lib/gdb/printing.scm: New file.
8873 * guile/lib/gdb/types.scm: New file.
8874 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8875 (VPATH): Add $(GUILE_SRCDIR).
8876 (GUILE_DIR): New variable.
8877 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8878 (all): Add stamp-guile dependency.
8879 (stamp-guile): New rule.
8880 (clean-guile, install-guile, uninstall-guile): New rules.
8881 (install-only): Add install-guile dependency.
8882 (uninstall): Add uninstall-guile dependency.
8883 (clean): Add clean-guile dependency.
8885 2014-02-09 Doug Evans <xdje42@gmail.com>
8887 Revert this patch (which I approved, mea culpa).
8889 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8891 * Makefile.in (all-lib): Remove.
8892 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8894 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8896 Fix Python stack corruption.
8897 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8900 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8902 * Makefile.in (all-lib): Remove.
8903 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8905 2014-02-07 Doug Evans <dje@google.com>
8907 * extension-priv.h (extension_language_script_ops): Add comment.
8908 (extension_language_ops): Add comment.
8909 (active_ext_lang_state): Fix typo in comment.
8911 2014-02-07 Pedro Alves <palves@redhat.com>
8913 PR breakpoints/16292
8914 * infrun.c (handle_signal_stop) <signal arrives while stepping
8915 over a breakpoint>: Switch back to the stepping thread.
8917 2014-02-07 Yao Qi <yao@codesourcery.com>
8919 * target.c (target_xfer_partial): Return zero if LEN is zero.
8921 2014-02-07 Yao Qi <yao@codesourcery.com>
8923 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8924 (ld_so_xfer_auxv): Likewise.
8925 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8926 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8927 * corelow.c (core_xfer_partial): Likewise.
8928 * ctf.c (ctf_xfer_partial): Likewise.
8929 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8930 (darwin_xfer_partial): Likewise.
8931 * exec.c (exec_xfer_partial): Likewise.
8932 * gnu-nat.c (gnu_xfer_partial): Likewise.
8933 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8934 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8935 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8936 * linux-nat.c (linux_xfer_siginfo): Likewise.
8937 (linux_proc_xfer_spu): Likewise.
8938 * procfs.c (procfs_xfer_partial): Likewise.
8939 * record-full.c (record_full_xfer_partial): Likewise.
8940 (record_full_core_xfer_partial): Likewise.
8941 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8942 * remote.c (remote_write_qxfer): Likewise.
8943 (remote_write_qxfer, remote_read_qxfer): Likewise.
8944 (remote_xfer_partial): Likewise.
8945 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8946 (rs6000_xfer_shared_libraries): Likewise.
8947 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8948 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8949 (spu_xfer_partial): Likewise.
8950 * target.c (memory_xfer_partial_1): Likewise.
8951 * tracepoint.c (tfile_xfer_partial): Likewise.
8952 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8953 (windows_xfer_partial): Likewise.
8955 2014-02-07 Yao Qi <yao@codesourcery.com>
8957 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8959 (core_xfer_shared_libraries_aix): Likewise.
8960 * gdbarch.c, gdbarch.h: Regenerated.
8961 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8962 ULONGEST. Change 'len_avail' type to ULONGEST.
8963 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8964 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8966 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8968 2014-02-07 Yao Qi <yao@codesourcery.com>
8970 * corefile.c (memory_error): Get 'exception' from ERR and pass
8971 'exception' to throw_error.
8973 2014-02-06 Doug Evans <xdje42@gmail.com>
8975 * configure.ac (libpython checking): Remove all but python.o from
8976 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8977 * configure: Regenerate.
8979 * Makefile.in (SFILES): Add extension.c.
8980 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8981 (COMMON_OBS): Add extension.o.
8982 * extension.h: New file.
8983 * extension-priv.h: New file.
8984 * extension.c: New file.
8986 * python/python-internal.h: #include "extension.h".
8987 (gdbpy_auto_load_enabled): Declare.
8988 (gdbpy_apply_val_pretty_printer): Declare.
8989 (gdbpy_apply_frame_filter): Declare.
8990 (gdbpy_preserve_values): Declare.
8991 (gdbpy_breakpoint_cond_says_stop): Declare.
8992 (gdbpy_breakpoint_has_cond): Declare.
8993 (void source_python_script_for_objfile): Delete.
8994 * python/python.c: #include "extension-priv.h".
8995 Delete inclusion of "observer.h".
8996 (extension_language_python): Moved here and renamed from
8997 script_language_python in py-auto-load.c.
8998 Redefined to be of type extension_language_defn.
8999 (python_extension_script_ops): New global.
9000 (python_extension_ops): New global.
9001 (struct python_env): New member previous_active.
9002 (restore_python_env): Call restore_active_ext_lang.
9003 (ensure_python_env): Call set_active_ext_lang.
9004 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9006 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9008 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9010 (gdbpy_eval_from_control_command): Renamed from
9011 eval_python_from_control_command, made static. New arg extlang.
9012 (gdbpy_source_script) Renamed from source_python_script, made static.
9014 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9015 result to int. New arg extlang.
9016 (gdbpy_source_objfile_script): Renamed from
9017 source_python_script_for_objfile, made static. New arg extlang.
9018 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9019 static. New args extlang, extlang_printers. Change result type to
9021 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9022 static. New arg extlang. Rename arg printers to extlang_printers
9023 and change type to ext_lang_type_printers *.
9024 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9025 static. Replace argument arg with extlang, extlang_printers.
9026 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9027 (!HAVE_PYTHON, source_python_script): Delete.
9028 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9029 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9030 (!HAVE_PYTHON, start_type_printers): Delete.
9031 (!HAVE_PYTHON, apply_type_printers): Delete.
9032 (!HAVE_PYTHON, free_type_printers): Delete.
9033 (_initialize_python): Delete call to observer_attach_before_prompt.
9034 (finalize_python): Set/restore active extension language.
9035 (gdbpy_finish_initialization) Renamed from
9036 finish_python_initialization, made static. New arg extlang.
9037 (gdbpy_initialized): New function.
9038 * python/python.h: #include "extension.h". Delete #include
9039 "value.h", "mi/mi-cmds.h".
9040 (extension_language_python): Declare.
9041 (GDBPY_AUTO_FILE_NAME): Delete.
9042 (enum py_bt_status): Moved to extension.h and renamed to
9044 (enum frame_filter_flags): Moved to extension.h.
9045 (enum py_frame_args): Moved to extension.h and renamed to
9046 ext_lang_frame_args.
9047 (finish_python_initialization): Delete.
9048 (eval_python_from_control_command): Delete.
9049 (source_python_script): Delete.
9050 (apply_val_pretty_printer): Delete.
9051 (apply_frame_filter): Delete.
9052 (preserve_python_values): Delete.
9053 (gdbpy_script_language_defn): Delete.
9054 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9055 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9057 * auto-load.c: #include "extension.h".
9058 (GDB_AUTO_FILE_NAME): Delete.
9059 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9060 (script_language_gdb): Delete, moved to extension.c and renamed to
9061 extension_language_gdb.
9062 (source_gdb_script_for_objfile): Delete.
9063 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9064 (loaded_script): Change type of language member to
9065 struct extension_language_defn *.
9066 (init_loaded_scripts_info): Initialize
9067 unsupported_script_warning_printed.
9068 (maybe_add_script): Make static. Change type of language arg to
9069 struct extension_language_defn *.
9070 (clear_section_scripts): Reset unsupported_script_warning_printed.
9071 (auto_load_objfile_script_1): Rewrite to use extension language API.
9072 (auto_load_objfile_script): Make public. Remove support-compiled-in
9073 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9074 (source_section_scripts): Rewrite to use extension language API.
9075 (load_auto_scripts_for_objfile): Rewrite to use
9076 auto_load_scripts_for_objfile.
9077 (collect_matching_scripts_data): Change type of language member to
9078 struct extension_language_defn *.
9079 (auto_load_info_scripts): Change type of language arg to
9080 struct extension_language_defn *.
9081 (unsupported_script_warning_print): New function.
9082 (script_not_found_warning_print): Make static.
9083 (_initialize_auto_load): Rewrite construction of scripts-directory
9085 * auto-load.h (struct objfile): Add forward decl.
9086 (struct script_language): Delete.
9087 (struct auto_load_pspace_info): Add forward decl.
9088 (struct extension_language_defn): Add forward decl.
9089 (maybe_add_script): Delete.
9090 (auto_load_objfile_script): Declare.
9091 (script_not_found_warning_print): Delete.
9092 (auto_load_info_scripts): Update prototype.
9093 (auto_load_gdb_scripts_enabled): Declare.
9094 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9095 auto_load_python_scripts_enabled and made public.
9096 (script_language_python): Delete, moved to python.c.
9097 (gdbpy_script_language_defn): Delete.
9098 (info_auto_load_python_scripts): Update to use
9099 extension_language_python.
9101 * breakpoint.c (condition_command): Replace call to
9102 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9103 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9104 with call to breakpoint_ext_lang_cond_says_stop.
9105 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9106 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9107 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9108 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9110 (local_setattro): Print name of extension language with existing
9113 * valprint.c (val_print, value_print): Update to call
9114 apply_ext_lang_val_pretty_printer.
9115 * cp-valprint.c (cp_print_value): Update call to
9116 apply_ext_lang_val_pretty_printer.
9117 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9118 (gdbpy_apply_val_pretty_printer): Renamed from
9119 apply_val_pretty_printer. New arg extlang.
9120 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9122 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9123 extension language API.
9124 * cli/cli-script.c (execute_control_command): Update to call
9125 eval_ext_lang_from_control_command.
9127 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9128 enum ext_lang_bt_status values. Update call to
9129 apply_ext_lang_frame_filter.
9130 (mi_cmd_stack_list_locals): Ditto.
9131 (mi_cmd_stack_list_args): Ditto.
9132 (mi_cmd_stack_list_variables): Ditto.
9133 * mi/mi-main.c: Delete #include "python/python-internal.h".
9134 Add #include "extension.h".
9135 (mi_cmd_list_features): Replace reference to python internal variable
9136 gdb_python_initialized with call to ext_lang_initialized_p.
9138 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9139 Update to use enum ext_lang_frame_args. Update to call
9140 apply_ext_lang_frame_filter.
9141 * python/py-framefilter.c (extract_sym): Update to use enum
9143 (extract_value, py_print_type, py_print_value): Ditto.
9144 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9145 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9146 (py_print_frame): Ditto.
9147 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9148 New arg extlang. Update to use enum ext_lang_bt_status.
9150 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9151 finish_python_initialization. Replace with call to
9152 finish_ext_lang_initialization.
9154 * typeprint.c (do_free_global_table): Update to call
9155 free_ext_lang_type_printers.
9156 (create_global_typedef_table): Update to call
9157 start_ext_lang_type_printers.
9158 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9159 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9160 (type_print_options): Change type of global_printers from "void *"
9161 to "struct ext_lang_type_printers *".
9163 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9164 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9165 (gdbpy_preserve_values): Renamed from preserve_python_values.
9167 (!HAVE_PYTHON, preserve_python_values): Delete.
9169 * utils.c (quit_flag): Delete, moved to extension.c.
9170 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9173 * eval.c: Delete #include "python/python.h".
9174 * main.c: Delete #include "python/python.h".
9176 * defs.h: Update comment.
9178 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9182 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9184 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9187 2014-02-05 Yao Qi <yao@codesourcery.com>
9189 * remote.c (remote_pass_signals): Remove local 'buf' and use
9191 (remote_program_signals): Likewise.
9193 2014-02-05 Yao Qi <yao@codesourcery.com>
9195 * ctf.c: Include "inferior.h" and "gdbthread.h".
9196 (CTF_PID): A new macro.
9197 (ctf_open): Call inferior_appeared and add_thread_silent.
9198 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9199 (ctf_thread_alive): New function.
9200 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9202 2014-02-05 Yao Qi <yao@codesourcery.com>
9206 2013-05-24 Yao Qi <yao@codesourcery.com>
9208 * tracepoint.c (TFILE_PID): Remove.
9209 (tfile_open): Don't add thread and inferior.
9210 (tfile_close): Don't set 'inferior_ptid'. Don't call
9211 exit_inferior_silent.
9212 (tfile_thread_alive): Remove.
9213 (init_tfile_ops): Don't set field 'to_thread_alive' of
9216 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9218 * remote.c (remote_start_remote): Call remote_check_symbols even
9219 if only symbol-file (not file) has been given.
9221 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9223 * gdbarch.sh (skip_entrypoint): New callback.
9224 * gdbarch.c, gdbarch.h: Regenerate.
9225 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9226 * infrun.c (fill_in_stop_func): Likewise.
9227 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9228 (ppc_elfv2_elf_make_msymbol_special): New function.
9229 (ppc_elfv2_skip_entrypoint): Likewise.
9230 (ppc_linux_init_abi): Install them for ELFv2.
9232 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9234 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9235 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9236 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9237 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9238 structures returned in GPRs.
9240 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9242 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9243 offset to the stack parameter list for the ELFv2 ABI.
9245 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9247 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9248 set_gdbarch_convert_from_func_ptr_addr and
9249 set_gdbarch_elf_make_msymbol_special for ELFv1.
9250 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9251 function descriptors on ELFv1.
9252 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9253 set up r12 at function entry.
9255 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9257 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9258 (struct gdbarch_tdep): New member elf_abi.
9260 * rs6000-tdep.c: Include "elf/ppc64.h".
9261 (rs6000_gdbarch_init): Detect ELF ABI version.
9263 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9265 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9266 within a register pair holding a DFP 128-bit value on little-endian.
9267 (ppc64_sysv_abi_return_value_base): Likewise.
9268 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9269 (dfp_pseudo_register_write): Likewise.
9271 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9273 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9274 offset on little-endian when passing _Decimal32.
9275 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9277 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9279 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9280 of the overlapped FP register within the VSX register on little-
9282 (efpr_pseudo_register_write): Likewise.
9284 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9286 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9287 offset on little-endian when passing small structures.
9289 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9291 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9292 (struct ppc64_sysv_argpos): New data structure.
9293 (ppc64_sysv_abi_push_float): Remove.
9294 (ppc64_sysv_abi_push_val): New function.
9295 (ppc64_sysv_abi_push_integer): Likewise.
9296 (ppc64_sysv_abi_push_freg): Likewise.
9297 (ppc64_sysv_abi_push_vreg): Likewise.
9298 (ppc64_sysv_abi_push_param): Likewise.
9299 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9300 (ppc64_sysv_abi_return_value_base): New function.
9301 (ppc64_sysv_abi_return_value): Refactor to use it.
9303 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9305 * NEWS: Document new target powerpc64le-*-linux*.
9307 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9309 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9310 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9312 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9313 register set used in ELF core dumps. Add floating-point register set.
9315 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9317 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9318 dwarf2_to_gdb[] table using symbolic constants. Adjust
9319 penultimate entry from number representing the PC register
9320 to symbolic constant representing the MDR register. Add
9321 constant for the PC register to the end of the table.
9323 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9325 * bsd-kvm.c: Include <sys/param.h>
9327 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9329 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9331 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9333 * ada-lang.h (clear_ada_sym_cache): Delete.
9335 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9337 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9339 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9341 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9342 the sigreturn register save area only if the syscall is
9345 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9347 * valops.c (value_slice): Minor reformatting.
9349 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9351 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9353 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9355 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9357 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9358 (ada_ignore_descriptive_types_p): New static global.
9359 (find_parallel_type_by_descriptive_type): Return immediately
9360 if ada_ignore_descriptive_types_p is set.
9361 (_initialize_ada_language): Register new commands "maintenance
9362 set ada", "maintenance show ada", "maintenance set ada
9363 ignore-descriptive-types" and "maintenance show ada
9364 ignore-descriptive-types".
9365 * NEWS: Add entry for new "maint ada set/show
9366 ignore-descriptive-types" commands.
9368 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9370 * record-btrace.c (record_btrace_close): Call btrace_teardown
9373 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9375 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9378 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9380 * ada-typeprint (type_is_full_subrange_of_target_type):
9382 (print_range): Add parameter bounds_prefered_p. If not set,
9383 try printing range types using the name of their base type.
9384 (print_range_type): Add parameter bounds_prefered_p.
9385 Use it in call to print_range.
9386 (print_array_type, ada_print_type): Update calls to print_range
9387 and print_range_type.
9389 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9391 * ada-typeprint.c (print_array_type, print_choices, print_range)
9392 (print_range_bound, print_dynamic_range_bound, print_range_type):
9395 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9397 * ada-typeprint.c (print_range): Add missing empty line
9398 after local declaration.
9400 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9402 * ada-valprint.c (print_optional_low_bound): Get index_type's
9403 target type for as long as it is a TYPE_CODE_RANGE.
9405 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9407 * procfs.c (procfs_make_note_section): Remove assertion and
9410 2014-01-24 Yao Qi <yao@codesourcery.com>
9412 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9413 * corelow.c (get_core_siginfo): Likewise.
9415 2014-01-24 Yao Qi <yao@codesourcery.com>
9417 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9418 ULONGEST. Don't check 'len' is negative.
9419 (remote_write_bytes): Change type of 'len' to ULONGEST.
9421 2014-01-23 Tom Tromey <tromey@redhat.com>
9424 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9425 Handle exception from frame.block.
9426 (FrameVars.fetch_frame_locals): Likewise.
9428 2014-01-23 Tom Tromey <tromey@redhat.com>
9431 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9432 on a NULL pointer. Move "goto error" to correct place.
9434 2014-01-23 Tom Tromey <tromey@redhat.com>
9437 * python/py-framefilter.c (apply_frame_filter): Call
9438 ensure_python_env after computing gdbarch.
9440 2014-01-23 Yao Qi <yao@codesourcery.com>
9442 * target.c (raw_memory_xfer_partial): Change argument type
9443 from void * to gdb_byte *.
9444 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9446 2014-01-22 Doug Evans <dje@google.com>
9448 New gdbserver option --debug-format=timestamp.
9451 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9453 * syscalls/s390x-linux.xml: New file.
9454 * syscalls/s390-linux.xml: New file.
9455 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9456 (XML_SYSCALL_FILENAME_S390X): Likewise.
9457 (op_svc): New enum value for SVC opcode.
9458 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9459 (s390_linux_get_syscall_number): New function.
9460 (s390_gdbarch_init): Register '*get_syscall_number' and the
9461 syscall xml file name.
9462 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9463 "s390-linux.xml" and "s390x-linux.xml".
9464 * NEWS: Announce new feature.
9466 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9468 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9470 2014-01-22 Pedro Alves <palves@redhat.com>
9472 * xtensa-config.c: Include defs.h.
9474 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9476 * common/common-utils.h: Add "ARI:" comment beside __func__
9479 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9481 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9482 documentation a bit.
9484 2014-01-21 Roland McGrath <mcgrathr@google.com>
9486 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9487 * configure: Regenerate.
9488 * aclocal.m4: Regenerate.
9489 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9490 New substituted variables.
9491 (install-strip): New target.
9492 (INSTALL_SCRIPT): New substituted variable.
9493 (FLAGS_TO_PASS): Add it.
9494 (install-only): Use $(INSTALL_SCRIPT) rather than
9495 $(INSTALL_PROGRAM) for gcore.
9497 2014-01-20 Tom Tromey <tromey@redhat.com>
9499 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9502 2014-01-20 Tom Tromey <tromey@redhat.com>
9504 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9505 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9506 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9507 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9508 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9509 (struct cmd_list_element) <flags>: Remove.
9510 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9511 doc_allocated>: New fields.
9512 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9514 * maint.c (maintenance_do_deprecate): Update.
9515 * top.c (execute_command): Update.
9517 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9519 * xtensa-linux-nat.c: Include asm/ptrace.h.
9521 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9523 * Makefile.in (SFILES): Add d-support.c.
9524 (COMMON_OBS): Add d-support.o.
9525 * d-lang.h (d_parse_symbol): Add comment, now defined in
9527 * d-lang.c (parse_call_convention)
9528 (parse_attributes, parse_function_types)
9529 (parse_function_args, parse_type, parse_identifier)
9530 (call_convention_p, d_parse_symbol): Move functions to ...
9531 * d-support.c: ... New file.
9533 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9535 * d-lang.h (d_parse_symbol): Add declaration.
9536 * d-lang.c (extract_identifiers)
9537 (extract_type_info): Remove functions.
9538 (parse_call_convention, parse_attributes)
9539 (parse_function_types, parse_function_args)
9540 (parse_type, parse_identifier, call_convention_p)
9541 (d_parse_symbol): New functions.
9542 (d_demangle): Use d_parse_symbol to demangle D symbols.
9544 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9546 * d-lang.h (struct builtin_d_type): New data type.
9547 (builtin_d_type): Add declaration.
9548 * d-lang.c (d_language_arch_info, build_d_types)
9549 (builtin_d_type): New functions.
9550 (enum d_primitive_types): New data type.
9551 (d_language_defn): Change c_language_arch_info to
9552 d_language_arch_info.
9553 (d_type_data): New static variable.
9554 (_initialize_d_language): Initialize d_type_data.
9556 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9558 * d-lang.h (d_main_name): Add declaration.
9559 * d-lang.c (d_main_name): New function.
9560 * symtab.c (find_main_name): Add call to d_main_name.
9562 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9564 * d-lang.c (d_language_defn): Change macro_expansion_c to
9567 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9569 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9571 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9573 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9574 gdb_exception" declaration.
9575 * remote.c (getpkt_or_notif_sane): Likewise.
9577 2014-01-17 Doug Evans <dje@google.com>
9579 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9580 function, contents of dirnames_to_char_ptr_vec_append moved here.
9581 (delim_string_to_char_ptr_vec): New function.
9582 (dirnames_to_char_ptr_vec_append): Rewrite.
9583 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9585 2014-01-17 Doug Evans <dje@google.com>
9587 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9589 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9590 #include "common-utils.h".
9591 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9592 * common/vec.h (VEC_ASSERT_PASS): Update.
9593 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9594 (MACH_CHECK_ERROR): Update.
9596 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9598 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9600 * gdbarch.h: Regenerate.
9602 2014-01-16 Tom Tromey <tromey@redhat.com>
9604 * value.c (struct value) <regnum>: Move earlier.
9606 2014-01-16 Tom Tromey <tromey@redhat.com>
9608 * remote.c (extended_remote_create_inferior): Rename from
9609 extended_remote_create_inferior_1. Add "ops" argument. Remove
9612 2014-01-16 Pedro Alves <palves@redhat.com>
9614 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9615 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9618 2014-01-16 Doug Evans <dje@google.com>
9620 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9622 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9624 * btrace.h (btrace_thread_flag): New.
9625 (struct btrace_thread_info) <flags>: New.
9626 * record-btrace.c (record_btrace_resume_thread)
9627 (record_btrace_find_thread_to_move, btrace_step_no_history)
9628 (btrace_step_stopped, record_btrace_start_replaying)
9629 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9630 (record_btrace_find_resume_thread): New.
9631 (record_btrace_resume, record_btrace_wait): Extend.
9632 (record_btrace_can_execute_reverse): New.
9633 (record_btrace_open): Fail in non-stop mode.
9634 (record_btrace_set_replay): Split into this, ...
9635 (record_btrace_stop_replaying): ... this, ...
9636 (record_btrace_clear_histories): ... and this.
9637 (init_record_btrace_ops): Init to_can_execute_reverse.
9638 * NEWS: Announce it.
9640 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9642 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9643 (forward_target_decr_pc_after_break)
9644 (target_decr_pc_after_break): New.
9645 * target.c (forward_target_decr_pc_after_break)
9646 (target_decr_pc_after_break): New.
9647 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9648 instead of gdbarch_decr_pc_after_break.
9649 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9650 instead of gdbarch_decr_pc_after_break.
9651 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9652 instead of gdbarch_decr_pc_after_break.
9653 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9654 instead of gdbarch_decr_pc_after_break.
9655 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9656 instead of gdbarch_decr_pc_after_break.
9657 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9658 instead of gdbarch_decr_pc_after_break.
9660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9662 * btrace.c: Include regcache.h.
9663 (btrace_add_pc): New.
9664 (btrace_enable): Call btrace_add_pc.
9665 (btrace_is_empty): New.
9666 * btrace.h (btrace_is_empty): New.
9667 * record-btrace.c (require_btrace, record_btrace_info): Call
9670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9672 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9673 Support delta reads.
9674 (linux_disable_btrace): Change return type.
9675 * common/linux-btrace.h (linux_read_btrace): Change parameters
9676 and return type to allow error reporting. Update users.
9677 (linux_disable_btrace): Change return type. Update users.
9678 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9680 (btrace_error): New.
9681 (btrace_block) <begin>: Comment on BEGIN == 0.
9682 * btrace.c (btrace_compute_ftrace): Start from the end of
9684 (btrace_stitch_trace, btrace_clear_history): New.
9685 (btrace_fetch): Read delta trace, return if replaying.
9686 (btrace_clear): Move clear history code to btrace_clear_history.
9687 (parse_xml_btrace): Throw an error if parsing failed.
9688 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9689 and return type to allow error reporting.
9690 (target_read_btrace): Change parameters and return type to allow
9692 * target.c (target_read_btrace): Update.
9693 * remote.c (remote_read_btrace): Support delta reads. Pass
9695 * NEWS: Announce it.
9697 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9699 * record.h (record_btrace_frame_unwind)
9700 (record_btrace_tailcall_frame_unwind): New declarations.
9701 * dwarf2-frame: Include record.h
9702 (dwarf2_frame_cfa): Throw an error for btrace frames.
9703 * record-btrace.c: Include hashtab.h.
9704 (btrace_get_bfun_name): New.
9705 (btrace_call_history): Call btrace_get_bfun_name.
9706 (struct btrace_frame_cache): New.
9708 (bfcache_hash, bfcache_eq, bfcache_new): New.
9709 (btrace_get_frame_function): New.
9710 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9711 (record_btrace_frame_this_id): Compute own id.
9712 (record_btrace_frame_prev_register): Provide PC, throw_error
9713 for all other registers.
9714 (record_btrace_frame_sniffer): Detect btrace frames.
9715 (record_btrace_tailcall_frame_sniffer): New.
9716 (record_btrace_frame_dealloc_cache): New.
9717 (record_btrace_frame_unwind): Add new functions.
9718 (record_btrace_tailcall_frame_unwind): New.
9719 (_initialize_record_btrace): Allocate cache.
9720 * btrace.c (btrace_clear): Call reinit_frame_cache.
9721 * NEWS: Announce it.
9723 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9725 * record-btrace.c (record_btrace_set_replay)
9726 (record_btrace_goto_begin, record_btrace_goto_end)
9727 (record_btrace_goto): New.
9728 (init_record_btrace_ops): Initialize them.
9729 * NEWS: Announce it.
9731 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9733 * record-btrace.c (record_btrace_find_new_threads)
9734 (record_btrace_thread_alive): New.
9735 (init_record_btrace_ops): Initialize to_find_new_threads and
9738 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9740 * record-btrace.c (record_btrace_resume): New.
9741 (record_btrace_wait): New.
9742 (init_record_btrace_ops): Initialize to_wait and to_resume.
9744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9746 * record-btrace.c (record_btrace_xfer_partial)
9747 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9748 (record_btrace_allow_memory_access): New.
9749 (init_record_btrace_ops): Initialize new methods.
9750 * target.c (raw_memory_xfer_partial): Bail out if target reports
9751 that this memory is not available.
9753 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9755 * target.h (target_ops) <to_insert_breakpoint>
9756 <to_remove_breakpoint>: Add target_ops parameter.
9757 (forward_target_insert_breakpoint): New.
9758 (forward_target_remove_breakpoint): New.
9759 (memory_remove_breakpoint, memory_insert_breakpoint):
9760 Add target_ops parameter.
9761 * target.c (target_insert_breakpoint): Split into this and ...
9762 (forward_target_insert_breakpoint): ... this.
9763 (target_remove_breakpoint): Split into this and ...
9764 (forward_target_remove_breakpoint): ... this.
9765 (debug_to_insert_breakpoint): Add target_ops parameter.
9766 Call forward_target_insert_breakpoint.
9767 (debug_to_remove_breakpoint): Add target_ops parameter.
9768 Call forward_target_remove_breakpoint.
9769 (update_current_target): Do not inherit or default to_insert_breakpoint
9770 and to_remove_breakpoint.
9771 * corelow.c (ignore): Add target_ops parameter.
9772 * exec.c (ignore): Add target_ops parameter.
9773 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9774 Add target_ops parameter.
9775 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9776 Add target_ops parameter.
9777 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9778 Add target_ops parameter.
9779 * record-full.c (record_full_beneath_to_insert_breakpoint)
9780 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9781 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9782 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9783 (record_full_core_remove_breakpoint): Add target_ops parameter.
9785 (record_full_beneath_to_insert_breakpoint_ops)
9786 (record_full_beneath_to_remove_breakpoint_ops)
9787 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9788 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9789 tmp_to_remove_breakpoint_ops,
9790 record_full_beneath_to_insert_breakpoint_ops, and
9791 record_full_beneath_to_remove_breakpoint_ops.
9792 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9793 (m32r_remove_breakpoint): Add target_ops parameter.
9794 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9795 Add target_ops parameter.
9796 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9797 Add target_ops parameter.
9799 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9800 Markus Metzger <markus.t.metzger@intel.com>
9802 * record-btrace.c: Include frame-unwind.h.
9803 (record_btrace_frame_unwind_stop_reason)
9804 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9805 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9807 (init_record_btrace_ops): Install it.
9809 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9811 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9814 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9816 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9819 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9821 * frame-unwind.c: Include target.h.
9822 (frame_unwind_try_unwinder): New function with code from ...
9823 (frame_unwind_find_by_frame): ... here. New variable
9824 unwinder_from_target, call also target_get_unwinder)
9825 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9826 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9827 * target.h (struct target_ops): New fields to_get_unwinder and
9828 to_get_tailcall_unwinder.
9829 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9831 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9833 * record-btrace.c (record_btrace_fetch_registers)
9834 (record_btrace_store_registers)
9835 (record_btrace_to_prepare_to_store): New.
9836 (init_record_btrace_ops): Add the above.
9838 2014-01-16 Tom Tromey <tromey@redhat.com>
9840 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9841 * target.h (struct target_ops) <to_prepare_to_store>: Add
9843 (target_prepare_to_store): Add argument.
9844 * target.c (debug_to_prepare_to_store): Add argument.
9845 (update_current_target): Update.
9846 * remote.c (remote_prepare_to_store): Add 'self' argument.
9847 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9848 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9849 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9850 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9852 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9853 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9854 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9855 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9856 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9858 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9860 * btrace.h (replay) <replay>: New.
9861 (btrace_is_replaying): New.
9862 * btrace.c (btrace_clear): Free replay iterator.
9863 (btrace_is_replaying): New.
9864 * record-btrace.c (record_btrace_is_replaying): New.
9865 (record_btrace_info): Print insn number if replaying.
9866 (record_btrace_insn_history): Start at replay position.
9867 (record_btrace_call_history): Start at replay position.
9868 (init_record_btrace_ops): Init to_record_is_replaying.
9870 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9872 * record-btrace.c (record_btrace_insn_history_range): Include
9874 (record_btrace_insn_history_from): Adjust range.
9875 (record_btrace_call_history_range): Include
9877 (record_btrace_call_history_from): Adjust range.
9878 * NEWS: Announce changes.
9880 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9882 * record.h (enum record_print_flag)
9883 <record_print_indent_calls>: New.
9884 * record.c (get_call_history_modifiers): Recognize /c modifier.
9885 (_initialize_record): Document /c modifier.
9886 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9887 Reorder fields. Optionally indent the function name. Update
9889 * NEWS: Announce changes.
9891 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9893 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9895 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9897 * btrace.c (ftrace_new_function): Start counting at one.
9898 * record-btrace.c (record_btrace_info): Adjust number of calls
9900 * NEWS: Announce it.
9902 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9904 * record-btrace.c (btrace_call_history_insn_range): Print
9905 insn range as [begin, end].
9907 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9909 * btrace.h (struct btrace_func_link): New.
9910 (enum btrace_function_flag): New.
9911 (struct btrace_inst): Rename to ...
9912 (struct btrace_insn): ...this. Update all users.
9913 (struct btrace_func) <ibegin, iend>: Remove.
9914 (struct btrace_func_link): New.
9915 (struct btrace_func): Rename to ...
9916 (struct btrace_function): ...this. Update all users.
9917 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9918 (number, level, flags>: New.
9919 (struct btrace_insn_iterator): Rename to ...
9920 (struct btrace_insn_history): ...this.
9922 (struct btrace_insn_iterator, btrace_call_iterator): New.
9923 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9924 (struct btrace_target_info) <begin, end, level>
9925 <insn_history, call_history>: New.
9926 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9927 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9928 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9929 (btrace_call_number, btrace_call_begin, btrace_call_end)
9930 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9931 (btrace_find_function_by_number, btrace_set_insn_history)
9932 (btrace_set_call_history): New.
9933 * btrace.c (btrace_init_insn_iterator)
9934 (btrace_init_func_iterator, compute_itrace): Remove.
9935 (ftrace_print_function_name, ftrace_print_filename)
9936 (ftrace_skip_file): Change
9938 (ftrace_init_func): Remove.
9939 (ftrace_debug): Use new btrace_function fields.
9940 (ftrace_function_switched): Also consider gaining and
9941 losing symbol information).
9942 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9943 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9944 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9946 (ftrace_new_function): Move. Remove debug print.
9947 (ftrace_update_lines, ftrace_update_insns): New.
9948 (ftrace_update_function): Check for call, ret, and jump.
9949 (compute_ftrace): Renamed to ...
9950 (btrace_compute_ftrace): ...this. Rewritten to compute call
9952 (btrace_fetch, btrace_clear): Updated.
9953 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9954 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9955 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9956 (btrace_call_number, btrace_call_begin, btrace_call_end)
9957 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9958 (btrace_find_function_by_number, btrace_set_insn_history)
9959 (btrace_set_call_history): New.
9960 * record-btrace.c (require_btrace): Use new btrace thread
9962 (record_btrace_info, btrace_insn_history)
9963 (record_btrace_insn_history, record_btrace_insn_history_range):
9964 Use new btrace thread info fields and new iterator.
9965 (btrace_func_history_src_line): Rename to ...
9966 (btrace_call_history_src_line): ...this. Use new btrace
9968 (btrace_func_history): Rename to ...
9969 (btrace_call_history): ...this. Use new btrace thread info
9970 fields and new iterator.
9971 (record_btrace_call_history, record_btrace_call_history_range):
9972 Use new btrace thread info fields and new iterator.
9974 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9976 * frame.h (frame_id_build_unavailable_stack_special): New.
9977 * frame.c (frame_id_build_unavailable_stack_special): New.
9979 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9981 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9982 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9983 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9985 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9986 (i386_insn_is_jump, i386_jmp_p): New.
9987 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9988 insn_is_jump to gdbarch.
9989 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9990 * gdbarch.h: Regenerated.
9991 * gdbarch.c: Regenerated.
9992 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9993 (default_insn_is_jump): New.
9994 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9995 (default_insn_is_jump): New.
9997 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9999 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10001 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10002 (btrace_read_type) <btrace_read_new>: Change to ...
10003 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10005 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10007 * common/linux-btrace.c (linux_read_btrace): Free trace from
10008 previous iteration.
10010 2014-01-15 Doug Evans <dje@google.com>
10012 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10015 2014-01-15 Tom Tromey <tromey@redhat.com>
10017 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10018 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10019 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10020 (set_objfile_main_name): New function.
10021 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10022 language_of_main>: New fields.
10023 (set_objfile_main_name): Declare.
10024 * symtab.c (find_main_name): Loop over objfiles to find the main
10026 (set_main_name): Now static.
10027 (get_main_info): Add comment.
10028 * symtab.h (set_main_name): Don't declare.
10030 2014-01-15 Tom Tromey <tromey@redhat.com>
10032 * symtab.c (main_progspace_key): New global.
10033 (struct main_info): New.
10034 (name_of_main, language_of_main): Remove.
10035 (get_main_info, main_info_cleanup): New function.
10036 (set_main_name, main_name, main_language): Use get_main_info.
10037 (_initialize_symtab): Initialize main_progspace_key.
10039 2014-01-15 Tom Tromey <tromey@redhat.com>
10041 * dbxread.c (process_one_symbol): Update.
10042 * dwarf2read.c (read_partial_die): Update.
10043 * symfile.c (set_initial_language): Call main_language.
10044 * symtab.c (language_of_main): Now static.
10045 (set_main_name): Add 'lang' parameter.
10046 (find_main_name): Update.
10047 (main_language): New function.
10048 (symtab_observer_executable_changed): Update.
10049 * symtab.h (set_main_name): Update.
10050 (language_of_main): Remove.
10051 (main_language): Declare.
10053 2014-01-15 Tom Tromey <tromey@redhat.com>
10055 * symfile.c (init_entry_point_info): Use new "initialized" field.
10057 * objfiles.h (struct entry_point) <initialized>: New field.
10058 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10059 (struct objfile) <ei>: ...here. Remove.
10060 * objfiles.c (entry_point_address_query): Update.
10062 2014-01-15 Tom Tromey <tromey@redhat.com>
10064 * objfiles.c (entry_point_address_query): Relocate entry point
10066 (objfile_relocate1): Do not relocate entry point address.
10067 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10068 <the_bfd_section_index>: New field.
10069 * symfile.c (init_entry_point_info): Find the entry point's
10072 2014-01-15 Tom Tromey <tromey@redhat.com>
10074 * solib-frv.c (enable_break): Use entry_point_address_query.
10076 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10078 * NEWS: Add note on improved process record-replay on
10079 arm*-linux* targets.
10081 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10083 * arm-tdep.c (enum arm_record_result): New enum.
10084 (arm_record_unsupported_insn): New function.
10085 (arm_record_coproc_data_proc): Removed.
10086 (thumb2_record_ld_st_multiple): New function.
10087 (thumb2_record_ld_st_dual_ex_tbb): New function.
10088 (thumb2_record_data_proc_sreg_mimm): New function.
10089 (thumb2_record_ps_dest_generic): New function.
10090 (thumb2_record_branch_misc_cntrl): New function.
10091 (thumb2_record_str_single_data): New function.
10092 (thumb2_record_ld_mem_hints): New function.
10093 (thumb2_record_ld_word): New function.
10094 (thumb2_record_lmul_lmla_div): New function.
10095 (thumb2_record_decode_insn_handler): New function.
10096 (decode_insn): Add thumb32 instruction handlers.
10098 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10100 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10101 (struct arm_linux_record_tdep): Declare.
10102 (arm_canonicalize_syscall): New function.
10103 (arm_all_but_pc_registers_record): New function.
10104 (arm_linux_syscall_record): New function.
10105 (arm_linux_init_abi): Add syscall recording constructs.
10106 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10107 decoding. (arm_record_coproc_data_proc): Update arm syscall
10109 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10110 <arm_syscall_record>: New field.
10111 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10114 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10116 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10117 register for push instruction recording.
10119 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10121 * arm-tdep.c (thumb_record_misc): Update to correct logical
10122 error while recording ldm, ldmia and pop instructions.
10124 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10126 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10128 2014-01-15 Pedro Alves <palves@redhat.com>
10130 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10131 (go32_resume, go32_fetch_registers, store_register)
10132 (go32_store_registers, go32_prepare_to_store)
10133 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10134 (go32_create_inferior, go32_can_run, go32_terminal_init)
10135 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10138 2014-01-15 Tom Tromey <tromey@redhat.com>
10140 * target.h (async_callback_ftype): New typedef.
10141 (struct target_ops) <to_async>: Use it.
10143 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10145 * python/py-value.c (get_field_type): Remove unnecessary curly
10146 braces for single-statement if block.
10148 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10150 * python/py-type.c (convert_field): Add missing empty line
10151 after declarations.
10153 2014-01-14 Doug Evans <dje@google.com>
10155 * symfile.h (expand_symtabs_matching): Renamed from
10156 expand_partial_symbol_names. Update prototype.
10157 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10158 * symfile.c (expand_symtabs_matching): Renamed from
10159 expand_partial_symbol_names. New args file_matcher, kind.
10160 Rename arg fun to symbol_matcher.
10161 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10162 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10163 ada_expand_partial_symbol_name.
10164 (ada_make_symbol_completion_list): Update to call
10165 expand_symtabs_matching.
10166 (ada_add_global_exceptions): Call expand_symtabs_matching.
10167 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10168 call map_symbol_filenames.
10169 * symtab.c (sources_info): Update to call map_symbol_filenames.
10170 (search_symbols): Call expand_symtabs_matching.
10171 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10172 (default_make_symbol_completion_list_break_on): Update to call
10173 expand_symtabs_matching.
10174 (make_source_files_completion_list): Update to call
10175 map_symbol_filenames.
10177 2014-01-14 Doug Evans <dje@google.com>
10179 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10180 (expand_symtabs_symbol_matcher_ftype): New typedef.
10181 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10182 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10183 * symfile.c (expand_partial_symbol_names): Update to use
10184 expand_symtabs_symbol_matcher_ftype.
10185 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10186 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10187 Arg name_matcher renamed to symbol_matcher.
10188 * psymtab.c (recursively_search_psymtabs): Update to use
10189 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10191 (expand_symtabs_matching_via_partial): Update to use
10192 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10193 Arg name_matcher renamed to symbol_matcher.
10195 2014-01-14 Doug Evans <dje@google.com>
10197 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10198 (map_partial_symbol_filenames): Ditto.
10199 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10200 (map_partial_symbol_filenames): Ditto.
10201 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10202 (map_partial_symbol_filenames): Ditto.
10203 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10204 (map_partial_symbol_filenames): Ditto.
10205 * symtab.c: Delete #include "psymtab.h".
10207 2014-01-14 Pedro Alves <palves@redhat.com>
10208 Tom Tromey <tromey@redhat.com>
10210 * infrun.c (use_displaced_stepping): Use find_record_target
10211 instead of RECORD_IS_USED.
10212 (adjust_pc_after_break): Use record_full_is_used instead of
10214 * record-btrace.c (record_btrace_open): Call record_preopen
10215 instead of checking RECORD_IS_USED.
10216 * record-full.c (record_full_shortname)
10217 (record_full_core_shortname): New globals.
10218 (record_full_is_used): New function.
10219 (find_full_open): Call record_preopen instead of checking
10221 (init_record_full_ops): Set the target's shortname to
10222 record_full_shortname.
10223 (init_record_full_core_ops): Set the target's shortname to
10224 record_full_core_shortname.
10225 * record-full.h (record_full_is_used): Declare.
10226 * record.c (find_record_target): Make extern.
10227 (record_preopen): New function.
10228 * record.h (RECORD_IS_USED): Delete macro.
10229 (find_record_target, record_preopen): Declare functions.
10231 2014-01-14 Yao Qi <yao@codesourcery.com>
10233 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10234 'len''s type to ULONGEST.
10235 (core_xfer_shared_libraries_aix): Likewise.
10236 * gdbarch.c, gdbarch.h: Regenerated.
10237 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10238 Change type of 'len' to ULONGEST.
10239 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10240 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10242 2014-01-14 Yao Qi <yao@codesourcery.com>
10244 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10245 type of 'len' to ULONGEST.
10246 (linux_xfer_osdata_processgroups): Likewise.
10247 (linux_xfer_osdata_threads): Likewise.
10248 (linux_xfer_osdata_fds): Likewise.
10249 (linux_xfer_osdata_isockets): Likewise.
10250 (linux_xfer_osdata_shm): Likewise.
10251 (linux_xfer_osdata_sem): Likewise.
10252 (linux_xfer_osdata_msg): Likewise.
10253 (linux_common_xfer_osdata): Likewise.
10254 (struct osdata_type) <getter>: Likewise.
10255 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10258 2014-01-14 Yao Qi <yao@codesourcery.com>
10260 * target.h (target_xfer_partial_ftype): Update.
10261 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10263 * aix-thread.c (aix_thread_xfer_partial): Change type of
10264 argument 'len' to ULONGEST.
10265 * auxv.c (procfs_xfer_auxv): Likewise.
10266 (ld_so_xfer_auxv): Likewise.
10267 (memory_xfer_auxv): Likewise.
10268 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10269 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10270 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10271 * corelow.c (core_xfer_partial): Likewise.
10272 * ctf.c (ctf_xfer_partial): Likewise.
10273 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10275 (darwin_read_dyld_info): Likewise.
10276 (darwin_xfer_partial): Likewise.
10277 * exec.c (section_table_xfer_memory_partial): Likewise.
10278 (exec_xfer_partial): Likewise.
10279 * exec.h (section_table_xfer_memory_partial): Update
10281 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10282 instead of plongest.
10283 (gnu_xfer_partial): Likewise.
10284 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10285 (ia64_hpux_xfer_solib_got): Likewise.
10286 (ia64_hpux_xfer_partial): Likewise.
10287 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10288 * inf-ptrace.c (inf_ptrace_xfer_partial):
10289 * inf-ttrace.c (inf_ttrace_xfer_partial):
10290 * linux-nat.c (linux_xfer_siginfo): Likewise.
10291 (linux_nat_xfer_partial): Likewise.
10292 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10293 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10294 * monitor.c (monitor_xfer_memory): Likewise.
10295 (monitor_xfer_partial): Likewise.
10296 * procfs.c (procfs_xfer_partial): Likewise.
10297 * record-full.c (record_full_xfer_partial): Likewise.
10298 (record_full_core_xfer_partial): Likewise.
10299 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10300 instead of plongest.
10301 (gdbsim_xfer_partial): Likewise.
10302 * remote.c (remote_xfer_partial): Likewise.
10303 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10304 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10306 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10307 (rs6000_xfer_shared_libraries): Likewise.
10308 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10309 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10310 (sparc_xfer_partial): Likewise.
10311 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10312 (spu_xfer_partial): Likewise.
10313 * spu-multiarch.c (spu_xfer_partial): Likewise.
10314 * target.c (target_read_live_memory): Likewise.
10315 (memory_xfer_live_readonly_partial): Likewise.
10316 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10317 (target_xfer_partial, default_xfer_partial): Likewise.
10318 (current_xfer_partial): Likewise.
10319 * tracepoint.c (tfile_xfer_partial): Likewise.
10320 * windows-nat.c (windows_xfer_memory): Likewise. Call
10321 pulongest instead of plongest.
10322 (windows_xfer_partial): Likewise.
10323 (windows_xfer_shared_libraries): Likewise.
10325 2014-01-14 Yao Qi <yao@codesourcery.com>
10327 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10328 target_xfer_partial_ftype.
10330 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10334 * valops.c (value_struct_elt_bitpos): New function
10335 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10336 object to 'None' if the field name is an empty string ("").
10337 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10338 attribute to look for a field when 'name' is 'None'.
10339 (get_field_type): New function
10341 2014-01-13 Doug Evans <dje@google.com>
10344 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10345 (try_open_dwop_file): Ditto.
10346 * gdb_bfd.c: #include "vec.h".
10347 (bfdp): New typedef.
10348 (struct gdb_bfd_data): New member included_bfds.
10349 (gdb_bfd_unref): Unref all included bfds.
10350 (gdb_bfd_record_inclusion): New function.
10351 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10353 2014-01-13 Tom Tromey <tromey@redhat.com>
10355 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10357 2014-01-13 Tom Tromey <tromey@redhat.com>
10359 * defs.h (use_windows): Remove.
10360 * gdb.c (main): Update.
10361 * main.c (captured_main, gdb_main): Update.
10362 * main.h (struct captured_main_args) <use_windows>: Remove.
10363 * top.c (use_windows): Remove.
10365 2014-01-13 Tom Tromey <tromey@redhat.com>
10367 * defs.h (deprecated_flush_hook): Remove.
10369 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10372 * linux-thread-db.c (try_thread_db_load): Add parameter
10373 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10374 (try_thread_db_load_from_pdir_1): Move it there from here.
10375 (try_thread_db_load_from_sdir): Update caller.
10376 (try_thread_db_load_from_dir): Move it there from here.
10378 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10380 * regformats/regdat.sh: Always rewrite the register file.
10382 2014-01-13 Pedro Alves <palves@redhat.com>
10384 * Makefile.in (CHECK_HEADERS): New variable.
10385 (check-headers:): New rule.
10387 2014-01-13 Tom Tromey <tromey@redhat.com>
10389 * cli/cli-setshow.c (do_set_command): Update.
10390 * defs.h (deprecated_set_hook): Remove.
10391 * top.c (deprecated_set_hook): Remove.
10393 2014-01-13 Pedro Alves <palves@redhat.com>
10395 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10396 the tracepoint if the PC is a pseudo-register.
10398 2014-01-13 Tom Tromey <tromey@redhat.com>
10400 * defs.h (XCALLOC): Remove.
10401 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10402 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10403 * dwarf2loc.c (allocate_piece_closure): Likewise.
10404 * elfread.c (elf_symfile_segments): Likewise.
10405 (elf_symfile_segments): Likewise.
10406 * gdbtypes.c (copy_type_recursive): Likewise.
10407 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10408 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10409 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10411 * mt-tdep.c (mt_gdbarch_init): Likewise.
10412 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10414 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10415 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10416 * registry.c (registry_alloc_data): Likewise.
10417 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10418 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10419 * serial.c (serial_fdopen_ops): Likewise.
10420 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10422 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10423 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10426 2014-01-13 Tom Tromey <tromey@redhat.com>
10428 * defs.h (XMALLOC): Remove.
10429 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10430 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10431 * cli-out.c (struct ui_out *): Likewise.
10432 * cli/cli-dump.c (add_dump_command): Likewise.
10433 (add_dump_command): Likewise.
10434 * complaints.c (get_complaints): Likewise.
10435 (find_complaint): Likewise.
10436 * dwarf2-frame.c (execute_cfa_program): Likewise.
10437 * dwarf2read.c (abbrev_table_read_table): Likewise.
10438 * gdbarch.sh: Likewise.
10439 * gdbarch.c: Rebuild.
10440 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10441 * interps.c (interp_new): Likewise.
10442 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10443 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10444 * mi/mi-console.c (mi_console_file_new): Likewise.
10445 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10446 * mi/mi-out.c (mi_out_new): Likewise.
10447 * mi/mi-parse.c (mi_parse): Likewise.
10448 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10449 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10450 * observer.c (xalloc_observer_list_node): Likewise.
10451 * regcache.c (regcache_xmalloc_1): Likewise.
10452 * reggroups.c (reggroup_new): Likewise.
10453 (_initialize_reggroup): Likewise.
10454 * registry.c (register_data_with_cleanup): Likewise.
10455 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10456 * ser-base.c (serial_ttystate): Likewise.
10457 * ser-mingw.c (make_pipe_state): Likewise.
10458 * ser-pipe.c (pipe_open): Likewise.
10459 * serial.c (serial_open): Likewise.
10460 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10461 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10462 (tui_alloc_win_info): Likewise.
10463 (tui_add_content_elements): Likewise.
10464 * tui/tui-file.c (tui_file_new): Likewise.
10465 * tui/tui-out.c (tui_out_new): Likewise.
10466 * ui-file.c (mem_file_new): Likewise.
10467 * ui-out.c (push_level): Likewise.
10468 (make_cleanup_ui_out_end): Likewise.
10469 (append_header_to_list): Likewise.
10470 (ui_out_new): Likewise.
10471 * user-regs.c (user_reg_add_builtin): Likewise.
10473 2014-01-13 Tom Tromey <tromey@redhat.com>
10475 * defs.h (XZALLOC): Remove.
10476 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10477 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10478 (get_ada_tasks_inferior_data): Likewise.
10479 * auto-load.c (get_auto_load_pspace_data): Likewise.
10480 * auxv.c (get_auxv_inferior_data): Likewise.
10481 * bfd-target.c (target_bfd_reopen): Likewise.
10482 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10483 (deprecated_insert_raw_breakpoint): Likewise.
10484 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10485 * corelow.c (core_open): Likewise.
10486 * darwin-nat.c (darwin_check_new_threads): Likewise.
10487 (darwin_attach_pid): Likewise.
10488 * dummy-frame.c (dummy_frame_push): Likewise.
10489 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10490 * dwarf2loc.c (allocate_piece_closure): Likewise.
10491 * elfread.c (elf_symfile_segments): Likewise.
10492 * eval.c (ptrmath_type_p): Likewise.
10493 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10494 * gdbtypes.c (alloc_type_arch): Likewise.
10495 (alloc_type_instance): Likewise.
10496 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10497 * inf-child.c (inf_child_can_use_agent): Likewise.
10498 * inflow.c (get_inflow_inferior_data): Likewise.
10499 * infrun.c (save_infcall_suspend_state): Likewise.
10500 * jit.c (jit_reader_load): Likewise.
10501 (get_jit_objfile_data): Likewise.
10502 (get_jit_program_space_data): Likewise.
10503 (jit_object_open_impl): Likewise.
10504 (jit_symtab_open_impl): Likewise.
10505 (jit_block_open_impl): Likewise.
10506 (jit_frame_sniffer): Likewise.
10507 * linux-fork.c (add_fork): Likewise.
10508 * maint.c (make_command_stats_cleanup): Likewise.
10509 * objfiles.c (get_objfile_pspace_data): Likewise.
10510 * opencl-lang.c (struct lval_closure): Likewise.
10511 * osdata.c (osdata_start_osdata): Likewise.
10512 * progspace.c (new_address_space): Likewise.
10513 (add_program_space): Likewise.
10514 * remote-sim.c (get_sim_inferior_data): Likewise.
10515 * sh-tdep.c (sh_gdbarch_init): Likewise.
10516 * skip.c (Ignore): Likewise.
10517 (skip_delete_command): Likewise.
10518 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10519 (library_list_start_library): Likewise.
10520 (solib_aix_current_sos): Likewise.
10521 * solib-darwin.c (get_darwin_info): Likewise.
10522 (darwin_current_sos): Likewise.
10523 * solib-dsbt.c (get_dsbt_info): Likewise.
10524 * solib-ia64-hpux.c (new_so_list): Likewise.
10525 (ia64_hpux_get_solib_linkage_addr): Likewise.
10526 * solib-spu.c (append_ocl_sos): Likewise.
10527 (spu_current_sos): Likewise.
10528 * solib-svr4.c (get_svr4_info): Likewise.
10529 (svr4_keep_data_in_core): Likewise.
10530 (library_list_start_library): Likewise.
10531 (svr4_default_sos): Likewise.
10532 (svr4_read_so_list): Likewise.
10533 * solib-target.c (library_list_start_library): Likewise.
10534 (solib_target_current_sos): Likewise.
10535 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10536 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10537 * symfile.c (default_symfile_segments): Likewise.
10538 * target-descriptions.c (tdesc_data_init): Likewise.
10539 (tdesc_create_reg): Likewise.
10540 (struct tdesc_type *): Likewise.
10541 (tdesc_create_vector): Likewise.
10542 (tdesc_set_struct_size): Likewise.
10543 (struct tdesc_type *): Likewise.
10544 (tdesc_free_feature): Likewise.
10545 (tdesc_create_feature): Likewise.
10546 * windows-nat.c (windows_add_thread): Likewise.
10547 (windows_make_so): Likewise.
10548 * xml-support.c (gdb_xml_body_text): Likewise.
10549 (gdb_xml_create_parser_and_cleanup): Likewise.
10550 (xml_process_xincludes): Likewise.
10551 * xml-syscall.c (allocate_syscalls_info): Likewise.
10552 (syscall_create_syscall_desc): Likewise.
10554 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10556 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10557 function, with code from i386_stap_parse_special_token.
10558 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10559 (i386_stap_parse_special_token): Move code to the two functions
10560 above; simplify it.
10562 2014-01-09 Pedro Alves <palves@redhat.com>
10563 Hui Zhu <hui@codesourcery.com>
10566 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10567 bp_err_string. Don't mark the location shlib_disabled if the
10568 error thrown wasn't a generic or memory error. Catch errors
10569 thrown while inserting breakpoints in overlayed code. Output
10570 error message of software breakpoints.
10571 * remote.c (remote_insert_breakpoint): If this breakpoint has
10572 target-side commands but this stub doesn't support Z0 packets,
10573 throw NOT_SUPPORTED_ERROR error.
10574 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10575 * target.h (target_insert_breakpoint): Extend comment.
10576 (target_insert_hw_breakpoint): Add comment.
10578 2014-01-08 Pedro Alves <palves@redhat.com>
10580 * remote.c (remote_add_thread): Add threads silently if starting
10582 (remote_notice_new_inferior): If in all-stop, and starting up,
10583 don't call notice_new_inferior.
10584 (get_current_thread): New function, factored out from ...
10585 (add_current_inferior_and_thread): ... this. Adjust.
10586 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10587 found any thread, then select the remote's current thread as GDB's
10588 current thread too.
10590 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10592 * NEWS: Create a new section for the next release branch.
10593 Rename the section of the current branch, now that it has
10596 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10598 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10599 * version.in: Bump version to 7.7.50.DATE-cvs.
10601 2014-01-08 Yao Qi <yao@codesourcery.com>
10603 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10604 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10605 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10607 2014-01-08 Yao Qi <yao@codesourcery.com>
10609 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10610 return value of bfd_get_filename to symbol_file_add_from_bfd.
10612 2014-01-08 Pierre Muller <muller@sourceware.org>
10615 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10616 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10617 to prim_record_mininal_symbol_and_info.
10618 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10619 in call to prim_record_minimal_symbol_and_info.
10620 (read_pe_exported_syms): Set index field of section_data.
10622 2014-01-07 Andrew Pinski <apinski@cavium.com>
10624 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10625 * features/aarch64.c: Regenerate.
10627 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10629 * target.c (return_null): Define.
10630 (update_current_target): Use it instead of return_zero for
10631 functions that return a pointer.
10633 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10635 * source.c (add_path): Fix check for duplicated paths in the previously
10638 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10640 * ada-lang.c: Remove duplicated include statements.
10641 * alphabsd-nat.c: Ditto.
10642 * amd64-darwin-tdep.c: Ditto.
10643 * amd64fbsd-nat.c: Ditto.
10644 * auto-load.c: Ditto.
10646 * breakpoint.c: Ditto.
10647 * dbxread.c: Ditto.
10648 * fork-child.c: Ditto.
10649 * gdb_usleep.c: Ditto.
10650 * i386-darwin-tdep.c: Ditto.
10651 * i386fbsd-nat.c: Ditto.
10653 * inferior.c: Ditto.
10654 * jv-lang.c: Ditto.
10655 * linux-nat.c: Ditto.
10656 * linux-tdep.c: Ditto.
10657 * m68kbsd-nat.c: Ditto.
10658 * m68klinux-nat.c: Ditto.
10659 * microblaze-tdep.c: Ditto.
10660 * mips-linux-tdep.c: Ditto.
10661 * mn10300-tdep.c: Ditto.
10662 * nto-tdep.c: Ditto.
10663 * opencl-lang.c: Ditto.
10665 * printcmd.c: Ditto.
10666 * regcache.c: Ditto.
10667 * remote-m32r-sdi.c: Ditto.
10669 * symfile.c: Ditto.
10671 * tilegx-linux-nat.c: Ditto.
10672 * tilegx-tdep.c: Ditto.
10673 * tracepoint.c: Ditto.
10675 * vaxbsd-nat.c: Ditto.
10676 * windows-nat.c: Ditto.
10677 * xtensa-tdep.c: Ditto.
10679 2014-01-07 Yao Qi <yao@codesourcery.com>
10681 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10683 2014-01-07 Yao Qi <yao@codesourcery.com>
10684 Joel Brobecker <brobecker@adacore.com>
10686 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10687 (pdc_write_regs): Likewise.
10688 (fetch_regs_kernel_thread): Likewise.
10689 (store_regs_kernel_thread): Likewise.
10691 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10693 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10694 tagged type objects to their actual type.
10696 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10698 * ada-valprint.c (print_field_values): Add "language" parameter.
10699 Update calls to print_field_values and print_variant_part.
10700 Pass new parameter "language" in call to val_print instead
10701 of "current_language". Replace call to ada_val_print by call
10703 (print_variant_part): Add "language" parameter.
10704 (ada_val_print_struct_union): Update call to print_field_values.
10706 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10708 * ada-valprint.c (ui_memcpy): Delete.
10709 (ada_print_floating): Update documentation. Add empty line
10710 between between function documentation and implementation.
10711 Delete variable "buffer". Use ui_file_xstrdup in place of
10712 ui_file_put. Minor adjustments following this change.
10714 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10716 * ada-valprint.c (ada_val_print_string): New function,
10717 extracted from ada_val_print_array.
10718 (ada_val_print_array): Replace extracted code by call
10719 to ada_val_print_string followed by a return. Move
10720 "else" branch to the function's top block.
10722 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10724 * ada-valprint.c (ada_val_print_array): Move implementation
10725 down. Rename parameter "offset" and "val" into "offset_aligned"
10726 and "original_value" respectively. Add parameter "offset".
10728 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10730 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10731 re-organizing the code. Change the "???" message printed
10732 when target type is a TYPE_CODE_UNDEF into
10733 "<ref to undefined type>".
10735 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10737 * ada-valprint.c (print_record): Delete, implementation inlined...
10738 (ada_val_print_struct_union): ... here. Remove call to
10739 ada_check_typedef in inlined implementation.
10741 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10743 * ada-valprint.c (ada_val_print_gnat_array): New function,
10744 extracted from ada_val_print_1;
10745 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10746 (ada_val_print_flt, ada_val_print_struct_union)
10747 (ada_val_print_ref): Likewise.
10748 (ada_val_print_1): Delete variables i and elttype.
10749 Replace extracted-out code by call to corresponding
10752 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10754 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10756 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10758 * ada-valprint.c (ada_val_print_1): Replace calls to
10759 ada_val_print_1 by calls to val_print.
10761 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10763 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10764 Update calls to self accordingly. Replace calls to c_val_print
10765 by calls to val_print.
10767 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10769 * ada-valprint.c (print_record): Delete declaration.
10770 (adjust_type_signedness, ada_val_print_1): Likewise.
10771 (ada_val_print): Move function implementation down.
10772 (print_variant_part, print_field_values, print_record):
10773 Move function implementation up.
10775 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10777 * python/py-type.c (typy_get_name): New function.
10778 (type_object_getset): Add entry for attribute "name".
10779 * NEWS: Add entry mentioning this new attribute.
10781 2014-01-07 Yao Qi <yao@codesourcery.com>
10783 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10786 2014-01-07 Yao Qi <yao@codesourcery.com>
10788 * gnu-nat.c (info_port_rights): Add qualifier const to
10791 2014-01-07 Yao Qi <yao@codesourcery.com>
10793 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10795 2014-01-07 Yao Qi <yao@codesourcery.com>
10797 * gnu-nat.c (make_inf) Update declaration.
10798 (make_inf): Make it static.
10799 (inf_set_traced): Likewise.
10800 (inf_port_to_thread, inf_task_died_status): Likewise.
10802 2014-01-07 Yao Qi <yao@codesourcery.com>
10804 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10806 2014-01-07 Yao Qi <yao@codesourcery.com>
10808 * gnu-nat.c (_initialize_gnu_nat): Declare.
10810 2014-01-07 Yao Qi <yao@codesourcery.com>
10812 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10814 (struct gdbarch_info) <byte_order>: Change type to
10816 <byte_order_for_code>: Likewise.
10817 * gdbarch.c, gdbarch.h: Regenerated.
10819 2014-01-06 Sasha Smundak <asmundak@google.com>
10821 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10823 2014-01-06 Tom Tromey <tromey@redhat.com>
10825 * doublest.c (convert_doublest_to_floatformat): Use const, not
10827 * somread.c (som_symtab_read): Likewise.
10829 2014-01-07 Hui Zhu <hui@codesourcery.com>
10831 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10832 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10833 (gdb_bfd_fopen): Ditto.
10834 (gdb_bfd_openr): Ditto.
10835 (gdb_bfd_openw): Ditto.
10836 (gdb_bfd_openr_iovec): Ditto.
10837 (gdb_bfd_fdopenr): Ditto.
10838 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10839 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10841 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10843 * symfile-mem.c (symbol_file_add_from_memory): Removed
10844 gdb_bfd_stash_filename.
10846 2014-01-03 Doug Evans <dje@google.com>
10848 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10851 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10853 Update year range in copyright notice of all files.
10855 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10857 * top.c (print_gdb_version): Set copyright year to 2014.
10859 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10861 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10863 For older changes see ChangeLog-2013.
10869 version-control: never