1 2014-07-30 Gary Benson <gbenson@redhat.com>
3 * common/common-utils.h: Do not include config.h.
4 * nat/linux-btrace.h: Likewise.
6 2014-07-30 Gary Benson <gbenson@redhat.com>
8 * btrace.c: Include defs.h.
9 * common/ptid.c: Include defs.h or server.h as appropriate.
10 * nat/mips-linux-watch.c: Likewise.
12 2014-07-29 Tom Tromey <tromey@redhat.com>
14 * target.c (target_is_pushed): Simplify.
16 2014-07-29 Joel Brobecker <brobecker@adacore.com>
20 2014-07-29 Yao Qi <yao@codesourcery.com>
23 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
25 2014-07-28 Doug Evans <xdje42@gmail.com>
28 * guile/scm-param.c (pascm_parameter_defined_p): New function.
29 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
32 2014-07-28 Will Newton <will.newton@linaro.org>
34 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
35 (THUMB2_SET_R7_SIGRETURN2): Likewise.
36 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
37 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
38 (THUMB2_EABI_SYSCALL): Likewise.
39 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
41 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
42 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
44 2014-07-27 Doug Evans <xdje42@gmail.com>
46 * guile/scm-param.c (pascm_print_param_smob): Fix output.
48 2014-07-27 Doug Evans <xdje42@gmail.com>
50 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
52 2014-07-26 Ludovic Courtès <ludo@gnu.org>
53 Doug Evans <xdje42@gmail.com>
56 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
57 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
58 * configure.ac: Try to use guild to compile an scm file, if it fails
59 then disable guile support.
60 * configure: Regenerate.
61 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
63 (GUILE_COMPILED_FILES): New variable.
65 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
66 (stamp-guile): Compile scm files.
67 * guile/guile.c (boot_guile_support): New function.
68 (standard_throw_args_p): New function.
69 (print_standard_throw_error, print_throw_error): New functions.
70 (handle_boot_error): New function.
71 (initialize_scheme_side): Rewrite to call boot_guile_support.
72 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
73 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
75 2014-07-26 Ludovic Courtès <ludo@gnu.org>
76 Doug Evans <xdje42@gmail.com>
79 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
80 * guile/lib/gdb/support.scm: New file.
81 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
82 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
84 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
86 (%assert-type): Ditto, and renamed to assert-type.
87 (%exception-print-style): Delete.
89 2014-07-26 Doug Evans <xdje42@gmail.com>
92 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
93 * configure: Regenerate.
94 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
96 (PYTHON_FILES): New variable.
97 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
98 (GUILE_FILES): New variable.
99 (stamp-python, install-python, uninstall-python): Handle empty
101 (stamp-guile, install-guile, uninstall-guile): Ditto.
103 2014-07-26 Doug Evans <xdje42@gmail.com>
106 * guile/lib/gdb.scm (pretty-printers): Export.
107 (set-pretty-printers!): Export.
108 * guile/lib/gdb/printing.scm (gdb module): Update.
109 (prepend-pretty-printer!, append-pretty-printer!): Update.
110 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
111 (pretty_printer_list_var): Delete.
112 (pretty_printer_list): New static global.
113 (gdbscm_pretty_printers): New function.
114 (gdbscm_set_pretty_printers_x): New function.
115 (ppscm_find_pretty_printer_from_gdb): Update.
116 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
117 (gdbscm_initialize_pretty_printers): Update.
119 2014-07-26 Doug Evans <xdje42@gmail.com>
122 * configure.ac: Add check for header gc/gc.h.
123 Add check for function setenv.
124 * configure: Regenerate.
125 * config.in: Regenerate.
126 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
128 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
130 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
131 variation in gdbarch matching.
133 2014-07-25 Tom Tromey <tromey@redhat.com>
135 * exec.c (using_exec_ops): Remove.
136 (exec_close_1): Update. Remove extraneous block, reindent.
137 (add_target_sections): Use target_is_pushed.
139 2014-07-25 Pedro Alves <palves@redhat.com>
141 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
142 * monitor.c (monitor_create_inferior): Likewise.
143 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
144 * remote-sim.c (gdbsim_create_inferior): Likewise.
145 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
146 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
147 * windows-nat.c (do_initial_windows_stuff): Likewise.
149 2014-07-25 Pedro Alves <palves@redhat.com>
151 * NEWS: Mention signal passing and "signal" command changes.
152 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
154 * breakpoint.c (until_break_command): Adjust clear_proceed_status
156 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
157 * infcmd.c (proceed_thread_callback, continue_1, step_once)
158 (jump_command): Adjust clear_proceed_status call.
159 (signal_command): Warn if other thread that are resumed have
160 signals that will be delivered. Adjust clear_proceed_status call.
161 (until_next_command, finish_command)
162 (proceed_after_attach_callback, attach_command_post_wait)
163 (attach_command): Adjust clear_proceed_status call.
164 * infrun.c (proceed_after_vfork_done): Likewise.
165 (proceed_after_attach_callback): Adjust comment.
166 (clear_proceed_status_thread): Clear stop_signal if not in pass
168 (clear_proceed_status_callback): Delete.
169 (clear_proceed_status): New 'step' parameter. Only clear the
170 proceed status of threads the command being prepared is about to
172 (proceed): If passed in an explicit signal, override stop_signal
173 with it. Don't pass the last stop signal to the thread we're
175 (init_wait_for_inferior): Adjust clear_proceed_status call.
176 (switch_back_to_stepped_thread): Clear the signal if it should not
178 * infrun.h (clear_proceed_status): New 'step' parameter.
179 (user_visible_resume_ptid): Add comment.
180 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
181 signal is in pass state.
182 * remote.c (append_pending_thread_resumptions): Likewise.
183 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
185 2014-07-25 Tom Tromey <tromey@redhat.com>
187 * target.h (target_stopped_data_address)
188 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
191 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
193 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
195 (avr_pointer_to_address): Likewise.
197 2014-07-24 Tom Tromey <tromey@redhat.com>
199 * monitor.c (compile_pattern): Update.
200 * target.h (struct target_ops) <to_shortname, to_longname,
203 2014-07-24 Tom Tromey <tromey@redhat.com>
205 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
206 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
207 (add_info_alias, add_com): Make "doc" const.
208 (print_doc_line): Make "str" const.
209 (delete_cmd): Update.
210 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
211 (print_doc_line): Update.
212 * cli/cli-script.c (document_command): Update.
213 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
214 (add_com, add_info, add_info_alias): Update.
215 * guile/scm-cmd.c (cmdscm_destroyer): Update.
216 * python/py-cmd.c (cmdpy_destroyer): Update.
218 2014-07-24 Tom Tromey <tromey@redhat.com>
220 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
221 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
222 (help_cmd_list): Constify.
223 (lookup_cmd): Update.
224 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
226 (help_cmd_list, apropos_cmd): Update.
227 * cli/cli-script.c (show_user): Update.
228 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
229 * cli/cli-setshow.h (cmd_show_list): Update.
230 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
231 (cmd_show_list): Update.
232 * guile/scm-cmd.c (cmdscm_destroyer): Update.
233 * python/py-cmd.c (cmdpy_destroyer): Update.
235 2014-07-24 Tom Tromey <tromey@redhat.com>
237 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
238 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
240 * command.h (deprecate_cmd): Update.
241 * maint.c (maintenance_do_deprecate): Add casts.
243 2014-07-24 Tom Tromey <tromey@redhat.com>
245 * cli/cli-decode.c (help_cmd): Make parameter "const".
246 * cli/cli-decode.h (help_cmd): Update.
248 2014-07-24 Tom Tromey <tromey@redhat.com>
250 * stack.c (up_silently_base, down_silently_base): Make argument
253 2014-07-24 Tom Tromey <tromey@redhat.com>
255 * solib.c (solib_add): Make "pattern" const.
256 * solib.h (solib_add): Update.
258 2014-07-24 Tom Tromey <tromey@redhat.com>
260 * remote.c (remote_serial_open, print_packet, putpkt)
261 (putpkt_binary): Constify.
262 * remote.h (putpkt): Update.
264 2014-07-24 Tom Tromey <tromey@redhat.com>
266 * monitor.c (monitor_open): Make "args" const.
267 * monitor.h (monitor_open): Update.
269 2014-07-24 Tom Tromey <tromey@redhat.com>
271 * maint.c (match_bfd_flags): Make "string" const.
272 (print_bfd_section_info): Remove casts.
273 (print_objfile_section_info): Make "string" const.
275 2014-07-24 Tom Tromey <tromey@redhat.com>
277 * inf-child.c (inf_child_open_target): Make "arg" const.
278 * inf-child.h (inf_child_open_target): Update.
280 2014-07-24 Tom Tromey <tromey@redhat.com>
282 * environ.c (unset_in_environ): Make "var" const.
283 * environ.h (unset_in_environ): Update.
285 2014-07-24 Tom Tromey <tromey@redhat.com>
287 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
289 (scan_filename_with_cleanup): Likewise.
290 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
291 Make arguments const.
292 (restore_command): Update.
294 2014-07-24 Pedro Alves <palves@redhat.com>
296 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
298 2014-07-24 Tom Tromey <tromey@redhat.com>
299 Gary Benson <gbenson@redhat.com>
301 * nat/linux-ptrace.c (additional_flags): New global.
302 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
303 additional_flags; don't check GDBSERVER.
304 (linux_ptrace_set_additional_flags): New function.
305 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
307 * linux-nat.c (_initialize_linux_nat): Call
308 linux_ptrace_set_additional_flags.
310 2014-07-24 Tom Tromey <tromey@redhat.com>
312 * make-target-delegates (munge_type, write_debugmethod): New
314 (debug_names): New global.
315 ($TARGET_DEBUG_PRINTER): New global.
316 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
318 Write debug methods. Generate init_debug_target.
319 * target-debug.h: New file.
320 * target-delegates.c: Rebuild.
321 * target.c: Include target-debug.h.
322 (debug_target): Hoist definition.
323 (target_kill, target_get_section_table, target_memory_map)
324 (target_flash_erase, target_flash_done, target_detach)
325 (target_disconnect, target_wait, target_resume)
326 (target_pass_signals, target_program_signals, target_follow_fork)
327 (target_mourn_inferior, target_search_memory)
328 (target_thread_address_space, target_close)
329 (target_find_new_threads, target_core_of_thread)
330 (target_verify_memory, target_insert_mask_watchpoint)
331 (target_remove_mask_watchpoint): Remove targetdebug code.
332 (debug_to_post_attach, debug_to_prepare_to_store)
333 (debug_to_files_info, debug_to_insert_breakpoint)
334 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
335 (debug_to_region_ok_for_hw_watchpoint)
336 (debug_to_can_accel_watchpoint_condition)
337 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
338 (debug_to_watchpoint_addr_within_range)
339 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
340 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
341 (debug_to_terminal_init, debug_to_terminal_inferior)
342 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
343 (debug_to_terminal_save_ours, debug_to_terminal_info)
344 (debug_to_load, debug_to_post_startup_inferior)
345 (debug_to_insert_fork_catchpoint)
346 (debug_to_remove_fork_catchpoint)
347 (debug_to_insert_vfork_catchpoint)
348 (debug_to_remove_vfork_catchpoint)
349 (debug_to_insert_exec_catchpoint)
350 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
351 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
352 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
353 (setup_target_debug): Call init_debug_target.
354 * target.h (TARGET_DEBUG_PRINTER): New macro.
355 (struct target_ops) <to_resume, to_wait, to_pass_signals,
356 to_program_signals>: Use TARGET_DEBUG_PRINTER.
358 2014-07-24 Gary Benson <gbenson@redhat.com>
360 * exceptions.h (throw_vfatal): Renamed to...
361 (throw_vquit): New declaration.
362 (throw_quit): Likewise.
363 * exceptions.c (throw_vfatal): Renamed to...
364 (throw_vquit): New function.
365 (throw_quit): Likewise.
366 (throw_error): Call throw_verror rather than throw_it.
367 * utils.h (vfatal): Removed.
369 * utils.c (vfatal): Removed.
371 (internal_verror): Replaced call to fatal with call to throw_quit.
372 (quit): Replaced calls to fatal with calls to throw_quit.
374 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
376 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
379 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
381 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
382 less than zero in conditional expression.
384 2014-07-23 Tom Tromey <tromey@redhat.com>
386 * make-target-delegates ($ARGS_PART): Match trailing close paren.
387 ($INTRO_PART): Don't match whitespace.
388 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
390 ($METHOD): Add $METHOD_TRAILER.
392 (scan_target_h): New sub.
393 Change main loop not to collect state.
394 * target-delegates.c: Rebuild.
396 2014-07-23 Gary Benson <gbenson@redhat.com>
398 * cp-support.c (gdb_demangle): Fix build on systems without
401 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
403 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
404 for reference entry value target data value.
406 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
408 * stack.c (read_frame_arg): Verify value_optimized_out before calling
409 value_available_contents_eq.
411 2014-07-22 Pedro Alves <palves@redhat.com>
413 * value.c (allocate_optimized_out_value): Don't mark value as
416 2014-07-22 Jiong Wang <jiong.wang@arm.com>
418 * MAINTAINERS (Write After Approval): Update my email address.
420 2014-07-20 Doug Evans <dje@google.com>
423 * remote.c (putpkt_binary): Add text to error message.
425 2014-07-20 Yao Qi <yao@codesourcery.com>
427 * eval.c: Remove "Chill" from comments.
428 * gdbtypes.h: Likewise.
429 * symtab.h: Likewise.
431 2014-07-20 Yao Qi <yao@codesourcery.com>
433 * std-operator.def: Update comments to TERNOP_SLICE.
435 2014-07-20 Yao Qi <yao@codesourcery.com>
437 * std-operator.def: Remove BINOP_RANGE.
438 * breakpoint.c (watchpoint_exp_is_const): Update.
439 * expprint.c (dump_subexp_body_standard): Likewise.
440 * eval.c (init_array_element): Remove dead code.
441 (evaluate_subexp_standard): Likewise.
443 2014-07-20 Yao Qi <yao@codesourcery.com>
445 * std-operator.def: Remove BINOP_IN.
446 * breakpoint.c (watchpoint_exp_is_const): Update.
447 * eval.c (evaluate_subexp_standard): Likewise.
448 * expprint.c (dump_subexp_body_standard): Likewise.
450 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
452 * microblaze-tdep.c (microblaze_register_names): Add
453 the rshr and rslr register names.
454 (microblaze_gdbarch_init): Use of tdesc_has_registers.
455 Use of tdesc_find_feature. Use of tdesc_data_alloc.
456 Use of tdesc_numbered_register. Use of
457 microblaze_register_g_packet_guesses. Use of
458 tdesc_use_registers. Use of set_gdbarch_register_type.
459 (microblaze_register_g_packet_guesses): New.
460 * microblaze-tdep.h (microblaze_reg_num): Add
461 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
462 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
463 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
464 * features/microblaze-core.xml: New file.
465 * features/microblaze-stack-protect.xml: New file.
466 * features/microblaze-with-stack-protect.c: New file.
467 * features/microblaze-with-stack-protect.xml: New file.
468 * features/microblaze.xml: New file.
469 * features/microblaze.c: New file.
470 * features/Makefile (microblaze-with-stack-protect): Add
471 microblaze-with-stack-protect microblaze and microblaze-expedite.
472 * regformats/microblaze-with-stack-protect.dat: New file.
473 * regformats/microblaze.dat: New file.
474 * doc/gdb.texinfo (MicroBlaze Features): Added.
476 2014-07-18 Tom Tromey <tromey@redhat.com>
478 * exec.c (exec_ops): Now static.
479 * exec.h (exec_ops): Don't declare.
481 2014-07-18 Tom Tromey <tromey@redhat.com>
483 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
484 to find_target_beneath.
485 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
487 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
489 2014-07-18 Tom Tromey <tromey@redhat.com>
492 * utils.c (quit): Use target_supports_terminal_ours.
493 * target.h (target_supports_terminal_ours): Declare.
494 * target.c (target_supports_delete_record): Don't check
495 to_delete_record against NULL.
496 (target_supports_terminal_ours): New function.
498 2014-07-18 Tom Tromey <tromey@redhat.com>
501 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
502 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
503 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
504 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
505 * windows-nat.c (windows_xfer_partial): Always delegate.
506 * record-btrace.c (record_btrace_xfer_partial): Simplify
508 (record_btrace_fetch_registers, record_btrace_store_registers)
509 (record_btrace_prepare_to_store, record_btrace_resume)
510 (record_btrace_wait, record_btrace_find_new_threads)
511 (record_btrace_thread_alive): Likewise.
512 * procfs.c (procfs_xfer_partial): Always delegate.
513 * corelow.c (core_xfer_partial): Always delegate.
514 * sol-thread.c (sol_find_new_threads): Simplify delegation.
516 2014-07-18 Tom Tromey <tromey@redhat.com>
518 * exec.c (exec_make_note_section): Move earlier.
520 2014-07-17 Doug Evans <dje@google.com>
523 * maint.c (count_symtabs_and_blocks): Handle NULL
524 current_program_space.
525 (report_command_stats): Check global enabled flag in addition to
526 recorded enabled flag.
527 (make_command_stats_cleanup): Handle msg_type == 0, startup.
529 2014-07-16 Pedro Alves <palves@redhat.com>
531 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
533 2014-07-16 Tom Tromey <tromey@redhat.com>
535 * target.h (struct target_ops) <to_delete_record>: Reformat
538 2014-07-16 Tom Tromey <tromey@redhat.com>
540 * target-delegates.c: Rebuild.
542 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
544 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
545 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
546 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
547 (avr_pointer_to_address): Likewise.
548 (avr_address_class_type_flags): New function.
549 (avr_address_class_type_flags_to_name): Likewise.
550 (avr_address_class_name_to_type_flags): Likewise.
551 (avr_gdbarch_init): Set address_class_type_flags,
552 address_class_type_flags_to_name and
553 address_class_name_to_type_flags.
555 2014-07-15 Pedro Alves <palves@redhat.com>
557 * linux-nat.c (kill_callback): Save errno and work with saved
560 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
562 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
564 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
566 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
567 breakpoint support correctly.
569 2014-07-14 Pedro Alves <palves@redhat.com>
571 * utils.c (prompt_for_continue): Call target_terminal_ours.
573 2014-07-14 Pedro Alves <palves@redhat.com>
575 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
576 catch_errors. Don't re-enable stdin or notify observers where,
578 (fetch_inferior_event_wrapper): Delete.
580 2014-07-14 Pedro Alves <palves@redhat.com>
583 * top.c: Include "inf-loop.h".
584 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
586 (gdb_readline_wrapper_cleanup): Make the target async again, if it
588 (gdb_readline_wrapper): Store whether the target is async, and
591 2014-07-14 Pedro Alves <palves@redhat.com>
594 * top.c (gdb_readline_wrapper_line): Tweak comment.
595 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
596 the input handler callback.
598 2014-07-14 Pedro Alves <palves@redhat.com>
601 * main.c: Include event-top.h.
602 (handle_command_errors): New function.
603 (catch_command_errors, catch_command_errors_const): Use it.
605 2014-07-14 Pedro Alves <palves@redhat.com>
607 * exceptions.c (catch_command_errors, catch_command_errors_const):
609 * exceptions.h (catch_command_errors_ftype)
610 (catch_command_errors_const_ftype): Moved to main.c.
611 (catch_command_errors, catch_command_errors_const): Delete
613 * main.c (catch_command_errors_ftype)
614 (catch_command_errors_const_ftype): Moved here from exceptions.h.
615 (catch_command_errors, catch_command_errors_const)): Moved here
616 from exceptions.c and make static.
618 2014-07-14 Pedro Alves <palves@redhat.com>
620 * exceptions.c (print_any_exception): Delete.
621 (catch_exceptions_with_msg): Use exception_print instead of
623 (catch_errors): Use exception_fprintf instead of
625 (catch_command_errors, catch_command_errors_const): Use
626 exception_print instead of print_any_exception.
628 2014-07-14 Pedro Alves <palves@redhat.com>
630 * infcall.c (run_inferior_call): Set 'sync_execution' while
631 running the inferior call.
633 2014-07-14 Pedro Alves <palves@redhat.com>
635 * value.c (value_contents_equal): Delete function.
636 * value.h (value_contents_equal): Delete declaration.
638 2014-07-14 Tom Tromey <tromey@redhat.com>
641 * gdbtypes.c (is_dynamic_type_internal): New function, from
643 (is_dynamic_type): Rewrite.
644 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
645 (resolve_dynamic_struct): Likewise.
646 (resolve_dynamic_type_internal): New function, from
647 resolve_dynamic_type.
648 (resolve_dynamic_type): Rewrite.
650 2014-07-14 Tom Tromey <tromey@redhat.com>
652 * target.c (target_require_runnable): Also check record_stratum.
655 2014-07-11 Yao Qi <yao@codesourcery.com>
657 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
658 thumb_instruction_restores_sp return true.
660 2014-07-11 Yao Qi <yao@codesourcery.com>
662 * arm-tdep.c (thumb_instruction_restores_sp): New function.
663 (thumb_in_function_epilogue_p): Call
664 thumb_instruction_restores_sp.
666 2014-07-11 Yao Qi <yao@codesourcery.com>
668 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
670 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
672 2014-07-11 Gary Benson <gbenson@redhat.com>
674 * amd64-linux-nat.c (gdbcore.h): Remove include.
675 (regset.h): Likewise.
676 (nat/linux-btrace.h): Likewise.
677 (btrace.h): Likewise.
678 (gdb_assert.h): Likewise.
679 (string.h): Likewise.
680 (sys/uio.h): Likewise.
681 (sys/debugreg.h): Likewise.
682 (sys/syscall.h): Likewise.
683 (sys/procfs.h): Likewise.
684 (sys/user.h): Likewise.
685 (asm/ptrace.h): Likewise.
686 (i386-nat.h): Likewise.
687 * i386-linux-nat.c (i386-nat.h): Likewise.
688 (regset.h): Likewise.
689 (target.h): Likewise.
690 (linux-nat.h): Likewise.
691 (nat/linux-btrace.h): Likewise.
692 (btrace.h): Likewise.
693 (gdb_assert.h): Likewise.
694 (string.h): Likewise.
695 (sys/uio.h): Likewise.
696 (sys/user.h): Likewise.
697 (sys/procfs.h): Likewise.
698 (sys/reg.h): Likewise.
699 (sys/debugreg.h): Likewise.
700 (ORIG_EAX): Remove definition.
702 2014-07-11 Gary Benson <gbenson@redhat.com>
704 * i386-linux-nat.h: New file.
705 * x86-linux-nat.h: Likewise.
706 * x86-linux-nat.c: Likewise.
707 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
708 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
709 * config/i386/linux64.mh (NATDEPFILES): Likewise.
710 * amd64-linux-nat.c (x86-linux-nat.h): New include.
711 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
712 (PTRACE_SETREGSET): Likewise.
713 (arch_lwp_info): Now in x86-linux-nat.c.
714 (have_ptrace_getregset): Now in x86-linux-nat.h.
715 (x86_linux_dr_get): Now in x86-linux-nat.c.
716 (x86_linux_dr_set): Likewise.
717 (x86_linux_dr_get_addr): Likewise.
718 (x86_linux_dr_get_control): Likewise.
719 (x86_linux_dr_get_status): Likewise.
720 (update_debug_registers_callback): Likewise.
721 (x86_linux_dr_set_control): Likewise.
722 (x86_linux_dr_set_addr): Likewise.
723 (x86_linux_prepare_to_resume): Likewise.
724 (x86_linux_new_thread): Likewise.
725 (x86_linux_new_fork): Likewise.
726 (x86_linux_get_thread_area): Likewise.
727 (super_post_startup_inferior): Likewise.
728 (x86_linux_child_post_startup_inferior): Likewise.
729 (AMD64_LINUX_USER64_CS): Likewise.
730 (AMD64_LINUX_X32_DS): Likewise.
731 (x86_linux_read_description): Likewise.
732 (x86_linux_enable_btrace): Likewise.
733 (x86_linux_disable_btrace): Likewise.
734 (x86_linux_teardown_btrace): Likewise.
735 (x86_linux_read_btrace): Likewise.
736 (x86_linux_create_target): Likewise.
737 (x86_linux_add_target): Likewise.
738 * i386-linux-nat.c (x86-linux-nat.h): New include.
739 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
740 (PTRACE_SETREGSET): Likewise.
741 (arch_lwp_info): Now in x86-linux-nat.c.
742 (have_ptrace_getregset): Now in x86-linux-nat.h.
743 (x86_linux_dr_get): Now in x86-linux-nat.c.
744 (x86_linux_dr_set): Likewise.
745 (x86_linux_dr_get_addr): Likewise.
746 (x86_linux_dr_get_control): Likewise.
747 (x86_linux_dr_get_status): Likewise.
748 (update_debug_registers_callback): Likewise.
749 (x86_linux_dr_set_control): Likewise.
750 (x86_linux_dr_set_addr): Likewise.
751 (x86_linux_prepare_to_resume): Likewise.
752 (x86_linux_new_thread): Likewise.
753 (x86_linux_new_fork): Likewise.
754 (x86_linux_get_thread_area): Likewise.
755 (super_post_startup_inferior): Likewise.
756 (x86_linux_child_post_startup_inferior): Likewise.
757 (AMD64_LINUX_USER64_CS): Likewise.
758 (AMD64_LINUX_X32_DS): Likewise.
759 (x86_linux_read_description): Likewise.
760 (x86_linux_enable_btrace): Likewise.
761 (x86_linux_disable_btrace): Likewise.
762 (x86_linux_teardown_btrace): Likewise.
763 (x86_linux_read_btrace): Likewise.
764 (x86_linux_create_target): Likewise.
765 (x86_linux_add_target): Likewise.
767 2014-07-11 Gary Benson <gbenson@redhat.com>
769 * amd64-linux-nat.c: Comment and whitespace changes.
770 * i386-linux-nat.c: Comment and whitespace changes.
772 2014-07-11 Gary Benson <gbenson@redhat.com>
774 * amd64-linux-nat.c (x86_linux_create_target): New function.
775 (x86_linux_add_target): Likewise.
776 (_initialize_amd64_linux_nat): Delegate to the above new functions.
777 * i386-linux-nat.c (x86_linux_create_target): New function.
778 (x86_linux_add_target): Likewise.
779 (_initialize_i386_linux_nat): Delegate to the above new functions.
781 2014-07-11 Gary Benson <gbenson@redhat.com>
783 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
784 (ps_get_thread_area): Delegate to the above in 32-bit mode.
785 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
786 (ps_get_thread_area): Delegate to the above.
788 2014-07-11 Gary Benson <gbenson@redhat.com>
790 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
791 x86_linux_read_description. All uses updated. amd64-specific
792 code conditionalized. Conditionalized i386-specific code added.
793 Redundant cast removed.
794 * i386-linux-nat.c (i386_linux_read_description): Renamed to
795 x86_linux_read_description. All uses updated. i386-specific
796 code conditionalized. Conditionalized amd64-specific code added.
797 One sizeof replaced with the actual type it is describing.
799 2014-07-11 Gary Benson <gbenson@redhat.com>
801 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
802 x86_linux_dr_get. All uses updated.
803 (amd64_linux_dr_set): Renamed to
804 x86_linux_dr_set. All uses updated.
805 (amd64_linux_dr_get_addr): Renamed to
806 x86_linux_dr_get_addr. All uses updated.
807 (amd64_linux_dr_get_control): Renamed to
808 x86_linux_dr_get_control. All uses updated.
809 (amd64_linux_dr_get_status): Renamed to
810 x86_linux_dr_get_status. All uses updated.
811 (amd64_linux_dr_set_control): Renamed to
812 x86_linux_dr_set_control. All uses updated.
813 (amd64_linux_dr_set_addr): Renamed to
814 x86_linux_dr_set_addr. All uses updated.
815 (amd64_linux_prepare_to_resume): Renamed to
816 x86_linux_prepare_to_resume. All uses updated.
817 (amd64_linux_new_thread): Renamed to
818 x86_linux_new_thread. All uses updated.
819 (amd64_linux_new_fork): Renamed to
820 x86_linux_new_fork. All uses updated.
821 (amd64_linux_child_post_startup_inferior): Renamed to
822 x86_linux_child_post_startup_inferior. All uses updated.
823 (amd64_linux_enable_btrace): Renamed to
824 x86_linux_enable_btrace. All uses updated.
825 (amd64_linux_disable_btrace): Renamed to
826 x86_linux_disable_btrace. All uses updated.
827 (amd64_linux_teardown_btrace): Renamed to
828 x86_linux_teardown_btrace. All uses updated.
829 (amd64_linux_read_btrace): Renamed to
830 x86_linux_read_btrace. All uses updated.
831 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
832 x86_linux_dr_get. All uses updated.
833 (i386_linux_dr_set): Renamed to
834 x86_linux_dr_set. All uses updated.
835 (i386_linux_dr_get_addr): Renamed to
836 x86_linux_dr_get_addr. All uses updated.
837 (i386_linux_dr_get_control): Renamed to
838 x86_linux_dr_get_control. All uses updated.
839 (i386_linux_dr_get_status): Renamed to
840 x86_linux_dr_get_status. All uses updated.
841 (i386_linux_dr_set_control): Renamed to
842 x86_linux_dr_set_control. All uses updated.
843 (i386_linux_dr_set_addr): Renamed to
844 x86_linux_dr_set_addr. All uses updated.
845 (i386_linux_prepare_to_resume): Renamed to
846 x86_linux_prepare_to_resume. All uses updated.
847 (i386_linux_new_thread): Renamed to
848 x86_linux_new_thread. All uses updated.
849 (i386_linux_new_fork): Renamed to
850 x86_linux_new_fork. All uses updated.
851 (i386_linux_child_post_startup_inferior): Renamed to
852 x86_linux_child_post_startup_inferior. All uses updated.
853 (i386_linux_enable_btrace): Renamed to
854 x86_linux_enable_btrace. All uses updated.
855 (i386_linux_disable_btrace): Renamed to
856 x86_linux_disable_btrace. All uses updated.
857 (i386_linux_teardown_btrace): Renamed to
858 x86_linux_teardown_btrace. All uses updated.
859 (i386_linux_read_btrace): Renamed to
860 x86_linux_read_btrace. All uses updated.
862 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
864 * remote.c (extended_remote_post_attach): New function.
865 (init_extended_remote_ops): Install it as to_post_attach method.
867 2014-07-09 Pedro Alves <palves@redhat.com>
869 * infcmd.c (attach_command_post_wait): Don't call
870 target_terminal_inferior here.
871 (attach_command): Call it here instead.
873 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
875 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
877 * c-varobj.c (c_is_path_expr_parent): New function, moved core
878 from varobj.c, with additional checks.
879 (c_varobj_ops): Fill in is_path_expr_parent field.
880 (cplus_varobj_ops): Fill in is_path_expr_parent field.
881 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
883 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
885 (varobj_default_is_path_expr_parent): New function.
886 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
887 (varobj_default_is_path_expr_parent): Declare new function.
889 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
891 * infcmd.c (finish_backward): Turn internal error into normal error.
893 2014-07-07 Pedro Alves <palves@redhat.com>
896 * remote.c (async_handle_remote_sigint)
897 (async_handle_remote_sigint_twice): Call
898 gdb_call_async_signal_handler instead of
899 mark_async_signal_handler.
901 2014-07-07 Tom Tromey <tromey@redhat.com>
903 * target-delegates.c: Rebuild.
904 * target.c (target_info_record): Remove.
905 * record.c (info_record_command): Unconditionally call
907 * target.h (struct target_ops) <to_info_record>: Use
908 TARGET_DEFAULT_IGNORE.
909 (target_info_record): Remove.
911 2014-07-07 Tom Tromey <tromey@redhat.com>
913 * target.h (struct target_ops) <to_get_thread_local_address>: Use
914 TARGET_DEFAULT_NORETURN.
915 * target.c (generic_tls_error): New function.
916 (target_translate_tls_address): Don't search target stack.
917 * target-delegates.c: Rebuild.
918 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
920 * linux-thread-db.c (thread_db_get_thread_local_address):
921 Unconditionally call beneath target.
923 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
925 * cli/cli-logging.c (pop_output_files): Assign targerr to
928 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
930 * MAINTAINERS (Write After Approval): Update my email address.
932 2014-07-02 Gary Benson <gbenson@redhat.com>
934 * proc-service.c (ps_xfer_memory): Update comment.
935 (ps_pstop): Remove unused function.
936 (ps_pcontinue): Likewise.
937 (ps_lstop): Likewise.
938 (ps_lcontinue): Likewise.
939 (ps_lgetxregsize): Likewise.
940 (ps_lgetxregs): Likewise.
941 (ps_lsetxregs): Likewise.
943 (ps_ptread): Likewise.
944 (ps_ptwrite): Likewise.
946 2014-07-01 Mark Wielaard <mjw@redhat.com>
948 * dwarf2read.c (add_array_cv_type): New function.
949 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
950 (read_tag_volatile_type): Likewise.
952 2014-07-01 Tom Tromey <tromey@redhat.com>
954 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
955 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
956 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
957 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
958 * command.h (cmd_cfunc_ftype): Move earlier.
959 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
960 (add_com, add_info): Use cmd_cfunc_ftype.
962 2014-06-30 Tom Tromey <tromey@redhat.com>
964 * symtab.c (operator_chars): Make parameters and return type
966 (file_matches): Make "files" const.
967 (struct search_symbols_data) <files>: Now const.
968 (search_symbols): Make "regexp" and "files" parameters const.
970 (symtab_symbol_info): Remove cast.
971 (rbreak_command): Update.
972 * symtab.h (search_symbols): Update.
974 2014-06-27 Yao Qi <yao@codesourcery.com>
976 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
977 Change parameter type to 'struct thread_info *'. Caller
979 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
981 * dummy-frame.c (struct dummy_frame_id): New.
982 (dummy_frame_id_eq): New function.
983 (struct dummy_frame) <id>: Change its type to 'struct
985 (dummy_frame_push): Add parameter ptid and save it in
987 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
989 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
991 (lookup_dummy_frame): Change parameter type to 'struct
992 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
993 instead of frame_id_eq.
994 (dummy_frame_pop): Add parameter ptid. Callers updated.
995 Update comments. Compose dummy_frame_id and pass it to
997 (dummy_frame_discard): Add parameter ptid.
998 (dummy_frame_sniffer): Compose dummy_frame_id and call
999 dummy_frame_id_eq instead of frame_id_eq.
1000 (fprint_dummy_frames): Print ptid.
1001 * dummy-frame.h: Remove comments.
1002 (dummy_frame_push): Add ptid in declaration.
1003 (dummy_frame_pop, dummy_frame_discard): Likewise.
1005 2014-06-26 Tom Tromey <tromey@redhat.com>
1007 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1008 * command.h (error_no_arg): Update.
1010 2014-06-26 Tom Tromey <tromey@redhat.com>
1012 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1013 (do_show_command): Make "arg" const.
1014 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1016 2014-06-26 Tom Tromey <tromey@redhat.com>
1018 * record-full.c (record_full_get_bookmark): Make "args" const.
1019 (record_full_goto_bookmark): Make "raw_bookmark" const.
1020 * record.c (record_goto): New function.
1021 (cmd_record_goto): Use it. Now static.
1022 * record.h (record_goto): Declare.
1023 (cmd_record_goto): Remove declaration.
1024 * target-delegates.c: Rebuild.
1025 * target.h (struct target_ops) <to_get_bookmark,
1026 to_goto_bookmark>: Make parameter const.
1028 2014-06-26 Tom Tromey <tromey@redhat.com>
1030 * defs.h (generic_load): Update.
1031 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1032 * monitor.c (monitor_load): Make "args" const.
1033 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1034 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1036 (mips_load): Make "file" const.
1037 * remote-sim.c (gdbsim_load): Make "args" const.
1038 * remote.c (remote_load): Make "name" const.
1039 * symfile.c (generic_load): Make "args" const.
1040 * target-delegates.c: Rebuild.
1041 * target.c (target_load): Make "arg" const.
1042 (debug_to_load): Make "args" const.
1043 * target.h (struct target_ops) <to_load>: Make parameter const.
1044 (target_load): Update.
1046 2014-06-26 Tom Tromey <tromey@redhat.com>
1049 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1050 (dwarf2_physname, read_partial_die)
1051 (guess_partial_die_structure_name, fixup_partial_die)
1052 (guess_full_die_structure_name, anonymous_struct_prefix)
1053 (dwarf2_name): Use per-BFD obstack.
1055 2014-06-26 Yao Qi <yao@codesourcery.com>
1057 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1058 dummyframe and this_id into inner block below.
1060 2014-06-26 Yao Qi <yao@codesourcery.com>
1062 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1063 with "signal_pass[0]" in the initialization of signal_pass.
1065 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1067 * record-btrace.c (record_btrace_generating_corefile)
1068 (record_btrace_prepare_to_generate_core)
1069 (record_btrace_done_generating_core): New.
1070 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1071 (record_btrace_store_registers, record_btrace_prepare_to_store):
1072 Forward request when generating a core file.
1073 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1074 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1075 to_done_generating_core.
1077 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1079 * target.h (target_ops) <to_prepare_to_generate_core>
1080 <to_done_generating_core>: New.
1081 (target_prepare_to_generate_core, target_done_generating_core): New.
1082 * target.c (target_prepare_to_generate_core)
1083 (target_done_generating_core): New.
1084 * target-delegates.c: Regenerate.
1085 * gcore.c: (write_gcore_file): Rename to ...
1086 (write_gcore_file_1): ...this.
1087 (write_gcore_file): Call target_prepare_to_generate_core
1088 and target_done_generating_core.
1090 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1092 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1093 * gcore.c (write_gcore_file): Free memory returned from
1094 make_corefile_notes.
1095 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1096 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1098 2014-06-24 Yao Qi <yao@codesourcery.com>
1100 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1101 (arm_linux_init_abi): Set skip_trampoline_code with
1102 gdbarch_skip_trampoline_code instead of
1103 find_solib_trampoline_target.
1105 2014-06-24 Yao Qi <yao@codesourcery.com>
1107 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1108 arm_skip_bx_reg returns non-zero.
1110 2014-06-24 Yao Qi <yao@codesourcery.com>
1112 * arm-tdep.c (arm_skip_bx_reg): New function.
1113 (arm_skip_stub): Call arm_skip_bx_reg.
1115 2014-06-23 Don Breazeal <donb@codesourcery.com>
1117 * MAINTAINERS: Add myself as write-after-approval maintainer.
1119 2014-06-23 Pedro Alves <palves@redhat.com>
1121 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1122 DR_CONTROL before setting DR0..DR3.
1123 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1124 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1125 bits of DR_CONTROL related to the debug register slot being
1126 disabled. If all slots are vacant, clear local slowdown as well,
1127 and assert DR_CONTROL is 0.
1129 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1131 * python/lib/gdb/command/xmethods.py
1132 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1133 current progspace only if the string "progspace" matches LOCUS_RE.
1135 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1137 Fix --with-system-readline with readline-6.3 patch 5.
1138 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1139 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1142 2014-06-20 Tom Tromey <tromey@redhat.com>
1144 * dwarf2read.c (dw2_get_real_path): Use correct type in
1146 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1148 2014-06-20 Gary Benson <gbenson@redhat.com>
1150 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1151 * common/glibc_thread_db.h: Likewise.
1152 * common/i386-cpuid.h: Likewise.
1153 * common/i386-gcc-cpuid.h: Likewise.
1154 * common/linux-btrace.h: Likewise.
1155 * common/linux-osdata.h: Likewise.
1156 * common/linux-procfs.h: Likewise.
1157 * common/linux-ptrace.h: Likewise.
1158 * common/mips-linux-watch.h: Likewise.
1159 * common/linux-btrace.c: Moved to nat.
1160 * common/linux-osdata.c: Likewise.
1161 * common/linux-procfs.c: Likewise.
1162 * common/linux-ptrace.c: Likewise.
1163 * common/mips-linux-watch.c: Likewise.
1164 * nat/gdb_thread_db.h: Moved from common.
1165 * nat/glibc_thread_db.h: Likewise.
1166 * nat/i386-cpuid.h: Likewise.
1167 * nat/i386-gcc-cpuid.h: Likewise.
1168 * nat/linux-btrace.c: Likewise.
1169 * nat/linux-btrace.h: Likewise.
1170 * nat/linux-osdata.c: Likewise.
1171 * nat/linux-osdata.h: Likewise.
1172 * nat/linux-procfs.c: Likewise.
1173 * nat/linux-procfs.h: Likewise.
1174 * nat/linux-ptrace.c: Likewise.
1175 * nat/linux-ptrace.h: Likewise.
1176 * nat/mips-linux-watch.c: Likewise.
1177 * nat/mips-linux-watch.h: Likewise.
1178 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1179 (object file files): Reordered.
1180 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1181 of glibc_thread_db.h.
1183 2014-06-20 Gary Benson <gbenson@redhat.com>
1185 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1186 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1187 (i386_dr_low): Likewise.
1188 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1189 (i386_dr_low_set_addr): Likewise.
1190 (i386_dr_low_get_addr): Likewise.
1191 (i386_dr_low_can_set_control): Likewise.
1192 (i386_dr_low_set_control): Likewise.
1193 (i386_dr_low_get_control): Likewise.
1194 (i386_dr_low_get_status): Likewise.
1195 (i386_get_debug_register_length): Likewise.
1196 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1197 (i386_dr_low): Likewise.
1198 * nat/i386-dregs.c (i386-low.h): Remove include.
1199 (i386-nat.h): Likewise.
1200 (nat/i386-dregs.h): New include.
1201 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1202 (i386_dr_low_set_addr): Likewise.
1203 (i386_dr_low_get_addr): Likewise.
1204 (i386_dr_low_can_set_control): Likewise.
1205 (i386_dr_low_set_control): Likewise.
1206 (i386_dr_low_get_control): Likewise.
1207 (i386_dr_low_get_status): Likewise.
1208 (i386_get_debug_register_length): Likewise.
1209 (debug_hw_points): Likewise.
1211 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1213 * Makefile.in (SFILES): Add d-exp.y.
1214 (YYFILES): Add d-exp.c.
1215 (YYOBJ): Add d-exp.o.
1216 (local-maintainer-clean): Delete d-exp.c.
1217 * d-exp.y: New file.
1218 * d-lang.h (d_parse): New declaration.
1219 (d_error): New declaration.
1220 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1221 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1222 PREC_ORDER operators.
1223 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1225 2014-06-19 Yao Qi <yao@codesourcery.com>
1227 * gdbthread.h (any_running): Remove the declaration.
1228 * thread.c (any_running): Remove.
1230 2014-06-19 Yao Qi <yao@codesourcery.com>
1232 * gdbthread.h (struct thread_info) <state>: Change its type to
1233 'enum thread_state'. Update comments.
1235 2014-06-19 Pedro Alves <palves@redhat.com>
1237 * gdbthread.h (ALL_THREADS): Delete.
1238 (ALL_NON_EXITED_THREADS): New macro.
1239 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1240 instead of ALL_THREADS.
1241 * infrun.c (find_thread_needs_step_over)
1242 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1243 instead of ALL_THREADS.
1244 * record-btrace.c (record_btrace_open)
1245 (record_btrace_stop_recording, record_btrace_close)
1246 (record_btrace_is_replaying, record_btrace_resume)
1247 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1248 * remote.c (append_pending_thread_resumptions): Likewise.
1249 * thread.c (thread_apply_all_command): Likewise.
1251 2014-06-19 Gary Benson <gbenson@redhat.com>
1253 * i386-nat.c (i386_stopped_by_watchpoint):
1254 Use i386_dr_stopped_by_watchpoint.
1255 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1256 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1258 2014-06-19 Gary Benson <gbenson@redhat.com>
1260 * nat/i386-dregs.c: New file.
1261 * Makefile.in (i386-dregs.o): New rule.
1262 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1263 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1264 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1265 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1266 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1267 * config/i386/go32.mh (NATDEPFILES): Likewise.
1268 * config/i386/linux.mh (NATDEPFILES): Likewise.
1269 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1270 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1271 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1272 * i386-nat.h (debug_hw_points): New declaration.
1273 * i386-nat.c (breakpoint.h): Remove include.
1274 (command.h): Likewise.
1275 (target.h): Likewise.
1276 (gdb_assert.h): Likewise.
1277 (debug_hw_points): Made nonstatic.
1278 (debug_printf): Now in i386-dregs.c.
1279 (TARGET_HAS_DR_LEN_8): Likewise.
1280 (DR_CONTROL_SHIFT): Likewise.
1281 (DR_CONTROL_SIZE): Likewise.
1282 (DR_RW_EXECUTE): Likewise.
1283 (DR_RW_WRITE): Likewise.
1284 (DR_RW_READ): Likewise.
1285 (DR_RW_IORW): Likewise.
1286 (DR_LEN_1): Likewise.
1287 (DR_LEN_2): Likewise.
1288 (DR_LEN_4): Likewise.
1289 (DR_LEN_8): Likewise.
1290 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1291 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1292 (DR_ENABLE_SIZE): Likewise.
1293 (DR_LOCAL_SLOWDOWN): Likewise.
1294 (DR_GLOBAL_SLOWDOWN): Likewise.
1295 (DR_CONTROL_RESERVED): Likewise.
1296 (I386_DR_CONTROL_MASK): Likewise.
1297 (I386_DR_VACANT): Likewise.
1298 (I386_DR_LOCAL_ENABLE): Likewise.
1299 (I386_DR_GLOBAL_ENABLE): Likewise.
1300 (I386_DR_DISABLE): Likewise.
1301 (I386_DR_SET_RW_LEN): Likewise.
1302 (I386_DR_GET_RW_LEN): Likewise.
1303 (I386_DR_WATCH_HIT): Likewise.
1304 (i386_wp_op_t): Likewise.
1305 (i386_show_dr): Likewise.
1306 (i386_length_and_rw_bits): Likewise.
1307 (i386_insert_aligned_watchpoint): Likewise.
1308 (i386_remove_aligned_watchpoint): Likewise.
1309 (i386_handle_nonaligned_watchpoint): Likewise.
1310 (i386_update_inferior_debug_regs): Likewise.
1311 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1312 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1313 (i386_region_ok_for_watchpoint):
1314 Use i386_dr_region_ok_for_watchpoint.
1315 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1317 2014-06-19 Gary Benson <gbenson@redhat.com>
1319 * i386-nat.c (i386_insert_hw_breakpoint): Use
1320 i386_insert_watchpoint.
1321 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1323 2014-06-19 Gary Benson <gbenson@redhat.com>
1325 * i386-nat.c (i386_dr_show): Renamed to
1326 i386_show_dr and made static. All uses updated.
1327 (i386_dr_length_and_rw_bits): Renamed to
1328 i386_length_and_rw_bits and made static.
1330 (i386_dr_insert_aligned_watchpoint): Renamed to
1331 i386_insert_aligned_watchpoint and made static.
1333 (i386_dr_remove_aligned_watchpoint): Renamed to
1334 i386_remove_aligned_watchpoint and made static.
1336 (i386_dr_update_inferior_debug_regs): Renamed to
1337 i386_update_inferior_debug_regs and made static.
1339 * nat/i386-dregs.h (i386_dr_show): Removed.
1340 (i386_dr_length_and_rw_bits): Likewise.
1341 (i386_dr_insert_aligned_watchpoint): Likewise.
1342 (i386_dr_remove_aligned_watchpoint): Likewise.
1343 (i386_dr_update_inferior_debug_regs): Likewise.
1345 2014-06-19 Gary Benson <gbenson@redhat.com>
1347 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1348 * configure: Regenerate.
1349 * config.in: Likewise.
1350 * main.c (signal.h): New include.
1351 (setup_alternate_signal_stack): New function.
1352 (captured_main): Call the above.
1353 * cp-support.c (signal.h): New include.
1354 (catch_demangler_crashes): New flag.
1355 (SIGJMP_BUF): New define.
1356 (SIGSETJMP): Likewise.
1357 (SIGLONGJMP): Likewise.
1358 (gdb_demangle_jmp_buf): New static global.
1359 (gdb_demangle_attempt_core_dump): Likewise.
1360 (gdb_demangle_signal_handler): New function.
1361 (gdb_demangle): If catch_demangler_crashes is set, install the
1362 above signal handler before calling bfd_demangle, and restore
1363 the original signal handler afterwards. Display the offending
1364 symbol and call demangler_warning the first time a segmentation
1366 (_initialize_cp_support): New maint set/show command.
1368 2014-06-19 Gary Benson <gbenson@redhat.com>
1370 * utils.h (resource_limit_kind): New enum.
1371 (can_dump_core): New declaration.
1372 (warn_cant_dump_core): Likewise.
1373 (dump_core): Likewise.
1374 * utils.c (dump_core): Made nonstatic. Added new
1375 parameter "limit_kind".
1376 (can_dump_core): Made nonstatic. Moved printing code to...
1377 (warn_cant_dump_core): New function.
1378 (can_dump_core_warn): Likewise.
1379 (internal_vproblem): Replace calls to can_dump_core with
1380 calls to can_dump_core_warn. Supply new argument to each.
1382 2014-06-19 Gary Benson <gbenson@redhat.com>
1384 * utils.h (demangler_vwarning): New declaration.
1385 (demangler_warning): Likewise.
1386 * utils.c (struct internal_problem)
1387 <user_settable_should_quit>: New field.
1388 <user_settable_should_dump_core>: Likewise
1389 (internal_error_problem): Add values for above new fields.
1390 (internal_warning_problem): Likewise.
1391 (demangler_warning_problem): New static global.
1392 (demangler_vwarning): New function.
1393 (demangler_warning): Likewise.
1394 (add_internal_problem_command): Selectively add commands.
1395 (_initialize_utils): New internal problem command.
1396 * maint.c (maintenance_demangler_warning): New function.
1397 (_initialize_maint_cmds): New command.
1399 2014-06-18 Tom Tromey <tromey@redhat.com>
1401 * f-valprint.c (info_common_command_for_block): Update.
1402 * symtab.h (struct general_symbol_info) <common_block>: Now
1405 2014-06-18 Tom Tromey <tromey@redhat.com>
1407 * symtab.h (struct symtab) <blockvector>: Now const.
1408 * ada-lang.c (ada_add_global_exceptions): Update.
1409 * buildsym.c (augment_type_symtab): Update.
1410 * dwarf2read.c (dw2_lookup_symbol): Update.
1411 * jit.c (finalize_symtab): Update.
1412 * jv-lang.c (add_class_symtab_symbol): Update.
1413 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1415 * objfiles.c (objfile_relocate1): Update.
1416 * psymtab.c (lookup_symbol_aux_psymtabs)
1417 (maintenance_check_psymtabs): Update.
1418 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1420 * spu-tdep.c (spu_catch_start): Update.
1421 * symmisc.c (dump_symtab_1): Update.
1422 * symtab.c (lookup_global_symbol_from_objfile)
1423 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1424 (basic_lookup_transparent_type_quick)
1425 (basic_lookup_transparent_type, find_pc_sect_symtab)
1426 (find_pc_sect_line, search_symbols): Update.
1427 * block.c (find_block_in_blockvector): Make "bl" const.
1428 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1430 (blockvector_contains_pc): Make "bv" const.
1431 (block_for_pc_sect): Update.
1432 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1433 (blockvector_contains_pc): Update.
1434 * breakpoint.c (resolve_sal_pc): Update.
1435 * inline-frame.c (block_starting_point_at): Update.
1437 2014-06-18 Tom Tromey <tromey@redhat.com>
1439 * completer.c (complete_line): Make "line_buffer" const.
1440 * completer.h (complete_line): Update.
1442 2014-06-18 Tom Tromey <tromey@redhat.com>
1444 * symtab.c (add_macro_name): Remove unneeded cast.
1446 2014-06-18 Tom Tromey <tromey@redhat.com>
1448 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1449 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1451 2014-06-18 Tom Tromey <tromey@redhat.com>
1453 * probe.c (info_probes_for_ops): Make "arg" const.
1454 * probe.h (info_probes_for_ops): Update.
1456 2014-06-18 Tom Tromey <tromey@redhat.com>
1458 * varobj.c (varobj_create): Update.
1459 * valops.c (value_of_this): Update.
1460 * tracepoint.c (add_local_symbols, scope_info): Update.
1461 * symtab.h (struct general_symbol_info) <block>: Now const.
1462 * symtab.c (skip_prologue_sal)
1463 (default_make_symbol_completion_list_break_on)
1464 (skip_prologue_using_sal): Update.
1465 * stack.h (iterate_over_block_locals)
1466 (iterate_over_block_local_vars): Update.
1467 * stack.c (print_frame_args): Update.
1468 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1470 (get_selected_block): Make return type const.
1471 * python/py-frame.c (frapy_block): Update.
1472 * python/py-block.c (gdbpy_block_for_pc): Update.
1473 * p-exp.y (%union) <bval>: Now const.
1474 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1475 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1476 * m2-exp.y (%union) <bval>: Now const.
1477 * linespec.c (get_current_search_block): Make return type const.
1478 (create_sals_line_offset, find_label_symbols): Update.
1479 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1481 (block_starting_point_at): Make "block" const.
1482 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1483 (check_exception_resume): Update.
1484 * guile/scm-frame.c (gdbscm_frame_block): Update.
1485 * guile/scm-block.c (gdbscm_lookup_block): Update.
1486 * frame.h (get_frame_block): Update.
1487 (get_selected_block): Make return type const.
1488 * frame.c (frame_id_inner): Update.
1489 * f-valprint.c (info_common_command_for_block)
1490 (info_common_command): Update.
1491 * dwarf2loc.c (dwarf2_find_location_expression)
1492 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1493 (locexpr_describe_location_piece): Update.
1494 * c-exp.y (%union) <bval>: Now const.
1495 * breakpoint.c (resolve_sal_pc): Update.
1496 * blockframe.c (get_frame_block):Make return type const.
1497 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1498 (block_innermost_frame): Update.
1499 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1500 (block_for_pc, block_for_pc_sect): Update.
1501 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1503 (block_for_pc_sect, block_for_pc): Make return type const.
1504 * ax-gdb.c (gen_expr): Update.
1505 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1506 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1507 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1508 (ada_read_var_value): Update.
1509 * ada-exp.y (struct name_info) <block>: Now const.
1511 (block_lookup): Constify.
1513 2014-06-18 Gary Benson <gbenson@redhat.com>
1515 * nat/i386-dregs.h: New file.
1516 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1517 * i386-nat.h (i386-dregs.h): New include.
1518 (DR_FIRSTADDR): Now in i386-dregs.h.
1519 (DR_LASTADDR): Likewise.
1520 (DR_NADDR): Likewise.
1521 (DR_STATUS): Likewise.
1522 (DR_CONTROL): Likewise.
1523 (i386_debug_reg_state): Likewise.
1524 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1526 2014-06-18 Don Breazeal <donb@codesourcery.com>
1528 * breakpoint.c (set_longjmp_breakpoint): Call
1529 momentary_breakpoint_from_master with additional argument.
1530 (set_longjmp_breakpoint_for_call_dummy): Call
1531 momentary_breakpoint_from_master with additional argument.
1532 (set_std_terminate_breakpoint): Call
1533 momentary_breakpoint_from_master with additional argument.
1534 (momentary_breakpoint_from_master): Add argument to function
1535 definition and use it to initialize structure member flag.
1536 (clone_momentary_breakpoint): Call
1537 momentary_breakpoint_from_master with additional argument.
1538 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1539 member flags set in momentary_breakpoint_from_master.
1541 2014-06-18 Gary Benson <gbenson@redhat.com>
1543 * i386-nat.c (i386_show_dr): Renamed to
1544 i386_dr_show and made nonstatic. All uses updated.
1545 (i386_length_and_rw_bits): Renamed to
1546 i386_dr_length_and_rw_bits and made nonstatic.
1548 (i386_insert_aligned_watchpoint): Renamed to
1549 i386_dr_insert_aligned_watchpoint and made nonstatic.
1551 (i386_remove_aligned_watchpoint): Renamed to
1552 i386_dr_remove_aligned_watchpoint and made nonstatic.
1554 (i386_update_inferior_debug_regs): Renamed to
1555 i386_dr_update_inferior_debug_regs and made nonstatic.
1558 2014-06-18 Gary Benson <gbenson@redhat.com>
1560 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1561 (i386_dr_low_can_set_control): Likewise.
1562 (i386_dr_low_set_addr): Likewise.
1563 (i386_dr_low_set_control): Likewise.
1564 (i386_dr_low_get_addr): Likewise.
1565 (i386_dr_low_get_status): Likewise.
1566 (i386_dr_low_get_control): Likewise.
1567 (i386_insert_aligned_watchpoint): Use new macros.
1568 (i386_update_inferior_debug_regs): Likewise.
1569 (i386_stopped_data_address): Likewise.
1571 2014-06-18 Gary Benson <gbenson@redhat.com>
1573 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1574 New parameter. All uses updated.
1576 2014-06-18 Gary Benson <gbenson@redhat.com>
1578 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1581 2014-06-18 Gary Benson <gbenson@redhat.com>
1583 * i386-nat.c (debug_printf): New macro.
1584 (i386_get_debug_register_length): Likewise.
1585 (TARGET_HAS_DR_LEN_8): Use above macro.
1586 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1587 and printf_unfiltered. Use phex to format values.
1589 2014-06-18 Gary Benson <gbenson@redhat.com>
1591 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1594 2014-06-18 Gary Benson <gbenson@redhat.com>
1596 * i386-nat.c: Comment changes.
1598 2014-06-18 Gary Benson <gbenson@redhat.com>
1600 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1602 2014-06-18 Gary Benson <gbenson@redhat.com>
1604 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1605 (i386_insert_aligned_watchpoint): Likewise.
1606 (i386_remove_aligned_watchpoint): Likewise.
1607 (i386_handle_nonaligned_watchpoint): Likewise.
1609 2014-06-18 Gary Benson <gbenson@redhat.com>
1611 * i386-nat.c: Whitespace changes.
1613 2014-06-17 Samuel Bronson <naesten@gmail.com>
1615 * MAINTAINERS: Update Roland McGrath's email address.
1616 Thanks to Sergio Durigan Junior for pointing out that he left
1617 Red Hat a while ago, and giving me a current address.
1619 2014-06-17 Tom Tromey <tromey@redhat.com>
1621 * utils.h (savestring): Remove declaration.
1623 2014-06-17 Tom Tromey <tromey@redhat.com>
1625 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1627 2014-06-16 Keith Seitz <keiths@redhat.com>
1630 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1631 to update the varobj if inferior_ptid is null_ptid.
1633 2014-06-16 Tom Tromey <tromey@redhat.com>
1635 * target.h (struct target_ops) <to_info_proc>: Make parameter
1637 (target_info_proc): Update.
1638 * target.c (target_info_proc): Make "args" const.
1639 * procfs.c (procfs_info_proc): Update.
1640 * linux-tdep.c (linux_info_proc): Update.
1641 (linux_core_info_proc_mappings): Make "args" const.
1642 (linux_core_info_proc): Update.
1643 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1644 * gdbarch.c: Rebuild.
1645 * gdbarch.h: Rebuild.
1646 * corelow.c (core_info_proc): Update.
1648 2014-06-16 Tom Tromey <tromey@redhat.com>
1650 * target.h (struct target_ops) <to_disconnect>: Make parameter
1652 (target_disconnect): Update.
1653 * target.c (target_disconnect): Make "args" const.
1654 * target-delegates.c: Rebuild.
1655 * remote.c (remote_disconnect): Update.
1656 * record.h (record_disconnect): Update.
1657 * record.c (record_disconnect): Update.
1658 * inf-child.c (inf_child_disconnect): Update.
1660 2014-06-16 Tom Tromey <tromey@redhat.com>
1662 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1663 * target.c (debug_to_rcmd, default_rcmd): Update.
1664 * target-delegates.c: Rebuild.
1665 * remote.c (remote_rcmd): Update.
1666 * monitor.c (monitor_rcmd): Update.
1668 2014-06-16 Pedro Alves <palves@redhat.com>
1670 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1671 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1672 have OBJF_SHARED set.
1673 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1674 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1675 instead of OBJF_USERLOADED.
1676 * objfiles.h (OBJF_SHARED): Update comment.
1677 (userloaded_objfile_contains_address_p): Rename to ...
1678 (shared_objfile_contains_address_p): ... this, and update
1680 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1682 (remove_symbol_file_command): Skip objfiles that don't have
1685 2014-06-16 Tom Tromey <tromey@redhat.com>
1687 * minsyms.h (prim_record_minimal_symbol)
1688 (prim_record_minimal_symbol_and_info): Update comments.
1690 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1692 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1693 or --without-guile, according to how GDB was built.
1695 2014-06-13 Tom Tromey <tromey@redhat.com>
1697 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1699 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1701 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1703 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1704 help_list.Pass all_commands, not -1, to help_list.
1705 * cli/cli-dump.c (dump_command, append_command)
1706 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1707 (binary_dump_command, binary_append_command): Pass all_commands,
1708 not -1, to help_list.
1709 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1711 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1713 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1715 * top.c (set_history): Pass all_commands, not -1, to help_list.
1716 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1717 all_commands, not -1, to help_list.
1718 * symfile.c (overlay_command): Pass all_commands, not -1, to
1720 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1722 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1724 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1726 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1727 not -1, to help_list.
1728 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1729 not -1, to help_list.
1730 * maint.c (maintenance_command, maintenance_info_command)
1731 (maintenance_print_command, maintenance_set_cmd): Pass
1732 all_commands, not -1, to help_list.
1733 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1735 * language.c (set_check): Pass all_commands, not -1, to help_list.
1736 * infcmd.c (unset_command): Pass all_commands, not -1, to
1738 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1740 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1742 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1744 * breakpoint.c (save_command): Pass all_commands, not -1, to
1746 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1747 all_commands, not -1, to help_list.
1749 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1751 * regcache.c (struct register_to_invalidate): New structure.
1752 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1754 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1756 2014-06-12 Yao Qi <yao@codesourcery.com>
1758 * varobj.c (varobj_get_num_children): Call
1759 varobj_is_dynamic_p.
1760 (varobj_list_children): Likewise.
1761 (varobj_update): Likewise. Update comments.
1763 2014-06-12 Yao Qi <yao@codesourcery.com>
1765 * varobj.c (varobj_pretty_printed_p): Rename to ...
1766 (varobj_is_dynamic_p): ... this. New function.
1767 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1768 (varobj_is_dynamic_p): Declare.
1769 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1770 (mi_print_value_p, varobj_update_one): Likewise.
1772 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1773 Yao Qi <yao@codesourcery.com>
1775 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1776 (varobj_get_iterator): Wrap up code for pretty-printer by
1777 "#if HAVE_PYTHON" and "#endif".
1778 (update_dynamic_varobj_children): Likewise.
1780 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1781 Yao Qi <yao@codesourcery.com>
1783 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1784 gdb_python_initialized is false. Move some code from varobj.c.
1785 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1786 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1787 (struct varobj_item): Moved to varobj-iter.h".
1788 (varobj_clear_saved_item): New function.
1789 (update_dynamic_varobj_children): Move python-related code to
1791 (free_variable): Call varobj_clear_saved_item and
1794 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1795 Yao Qi <yao@codesourcery.com>
1797 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1798 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1799 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1800 (py-varobj.o): New rule.
1801 * python/py-varobj.c: New file.
1802 * python/python-internal.h (py_varobj_get_iterator): Declare.
1803 * varobj-iter.h: New file.
1804 * varobj.c: Include "varobj-iter.h"
1805 (struct varobj) <child_iter>: Change its type from "PyObject *"
1806 to "struct varobj_iter *".
1807 <saved_item>: Likewise.
1808 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1809 [HAVE_PYTHON] (varobj_get_iterator): New function.
1810 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1811 python-specific code to python/py-varobj.c.
1812 (install_visualizer): Call varobj_iter_delete instead of
1814 * varobj.h (varobj_ensure_python_env): Declare.
1816 2014-06-12 Yao Qi <yao@codesourcery.com>
1818 * varobj.c (struct varobj_item): New structure.
1819 (create_child_with_value): Update declaration.
1820 (varobj_add_child): Replace arguments 'name' and 'value' with
1821 'item'. All callers updated.
1822 (install_dynamic_child): Likewise.
1823 (update_dynamic_varobj_children): Likewise.
1824 (varobj_add_child): Likewise.
1825 (create_child_with_value): Likewise.
1827 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1829 * NEWS: Create a new section for the next release branch.
1830 Rename the section of the current branch, now that it has
1833 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1835 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1836 * version.in: Bump version to 7.8.50.DATE-cvs.
1838 2014-06-11 Pedro Alves <palves@redhat.com>
1841 * ser-mingw.c (net_windows_socket_check_pending): New function.
1842 (net_windows_select_thread): Ignore spurious wakeups. Use
1843 net_windows_socket_check_pending.
1844 (net_windows_wait_handle): Check for pending events with
1845 ioctlsocket, through net_windows_socket_check_pending, instead of
1846 checking the socket's event.
1848 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1850 * python/python-internal.h (gdb_PyObject_GetAttrString)
1851 (gdb_PyObject_HasAttrString): New inline function definitions.
1852 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1853 char * of the second argument to PyObject_GetAttrString.
1855 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1857 * serial.c (serial_write): Fix index of character to be printed
1858 in call to serial_logchar when serial debug traces are enabled.
1860 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1862 * gdbtypes (resolve_dynamic_range): Add function description.
1864 2014-06-09 Pedro Alves <palves@redhat.com>
1866 * linux-nat.c (linux_child_follow_fork): Initialize status with
1867 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1868 inner block. Only pass the signal to PTRACE_DETACH if in pass
1871 2014-06-09 Gary Benson <gbenson@redhat.com>
1873 * common/signals.c (gdb_signal_from_host): Reorder to separate
1874 the always-available ANSI-standard signals from the signals that
1876 (do_gdb_signal_to_host): Likewise.
1877 * proc-events.c (signal_table): Likewise.
1879 2014-06-08 Hui Zhu <hui@codesourcery.com>
1881 * common/linux-ptrace.c (linux_disable_event_reporting): New
1883 * common/linux-ptrace.h (linux_disable_event_reporting): New
1885 * linux-nat.c (linux_child_follow_fork): Do a single step before
1888 2014-06-07 Keith Seitz <keiths@redhat.com>
1892 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1893 from symbol_matches_domain in symtab.c. All local callers
1894 of symbol_matches_domain updated.
1895 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1896 search STRUCT_DOMAIN.
1897 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1898 independently. standard_lookup will do that automatically.
1899 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1900 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1901 (cp_lookup_symbol_in_namespace): Likewise.
1902 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1903 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1904 may return a STRUCT_DOMAIN match.
1905 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1906 * cp-support.c: Include language.h.
1907 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1909 * psymtab.c (match_partial_symbol): Compare the requested
1910 domain with the symbol's domain directly.
1911 (lookup_partial_symbol): Likewise.
1912 * symtab.c (lookup_symbol_in_language): Explain when/why
1913 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1914 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1915 appropriate languages.
1916 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1917 and moved to ada-lang.c
1918 (lookup_block_symbol): Explain that this function only returns
1919 symbol matching the requested DOMAIN.
1920 Compare the requested domain with the symbol's domain directly.
1921 (iterate_over_symbols): Compare the requested domain with the
1922 symbol's domain directly.
1923 * symtab.h (symbol_matches_domain): Remove.
1925 2014-06-06 Doug Evans <xdje42@gmail.com>
1927 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1928 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1929 (gdbscm_guile_version_is_at_least): Declare.
1930 (gdbscm_scm_string_to_int): Declare.
1931 * guile/guile.c (gdbscm_guile_major_version): New global.
1932 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1933 (guile_datadir): New static global.
1934 (gdbscm_guile_data_directory): New function.
1935 (initialize_scheme_side): Update.
1936 (misc_guile_functions): Add guile-data-directory.
1937 (initialize_gdb_module): Fetch guile version number.
1938 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1939 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1940 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1941 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1943 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1944 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1945 * guile/scm-value.c (gdbscm_value_to_string): Only call
1946 scm_port_conversion_strategy if Guile version >= 2.0.6.
1948 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1950 * main.c (print_gdb_help): Add -q and --silent.
1952 2014-06-06 Gary Benson <gbenson@redhat.com>
1954 * common/signals.c: Remove preprocessor conditionals for
1955 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1956 SIGSEGV and SIGTERM.
1957 * proc-events.c: Likewise.
1959 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1961 * symfile.c (symfile_free_objfile): Remove restriction to
1963 * symfile-mem.c (symbol_file_add_from_memory): Call
1964 add_target_sections_of_objfile.
1966 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1968 * guile/scm-value.c (gdbscm_history_append_x): Use
1969 'vlscm_get_value_smob_arg_unsafe' instead of
1970 'vlscm_scm_to_value'.
1972 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1975 * utils.c (printchar): Don't escape at all if quoter is NUL.
1976 Update function documentation to clarify effect of parameter
1978 * remote.c (escape_buffer): Pass '\\' as the quoter to
1979 fputstrn_unfiltered.
1980 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1981 generate the output.
1982 (mi_solib_unloaded): Same.
1984 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1986 * development.sh: Delete.
1987 * Makefile.in (config.status): Adjust dependency on development.sh.
1988 * configure.ac: Adjust development.sh source call.
1989 * configure: Regenerate.
1991 2014-06-04 Doug Evans <xdje42@gmail.com>
1993 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1994 is_scheme_bkpt, spec.
1995 (bpscm_make_breakpoint_smob): Initialize new members.
1996 (gdbscm_create_breakpoint_x): Split into two ...
1997 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1998 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1999 (scheme_function breakpoint_functions): Update.
2000 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2001 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2002 register-breakpoint!.
2004 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2007 * mem-break.c (z_type_supported): Return zero if
2008 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2010 2014-06-04 Tom Tromey <tromey@redhat.com>
2012 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2013 value_from_contents_and_address_unresolved.
2014 (ada_template_to_fixed_record_type_1): Likewise.
2015 (ada_which_variant_applies): Likewise.
2016 * value.h (value_from_contents_and_address_unresolved): Declare.
2017 * value.c (value_from_contents_and_address_unresolved): New
2019 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2020 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2021 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2023 2014-06-04 Tom Tromey <tromey@redhat.com>
2025 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2027 2014-06-04 Tom Tromey <tromey@redhat.com>
2029 * procfs.c (procfs_attach): Make "args" const.
2030 * windows-nat.c (windows_attach): Make "args" const.
2031 * nto-procfs.c (procfs_attach): Make "args" const.
2032 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2033 * go32-nat.c (go32_attach): Make "args" const.
2034 * gnu-nat.c (gnu_attach): Make "args" const.
2035 * darwin-nat.c (darwin_attach): Make "args" const.
2036 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2037 * linux-nat.c (linux_nat_attach): Make "args" const.
2038 * remote.c (extended_remote_attach_1, extended_remote_attach):
2040 * target.h (struct target_ops) <to_attach>: Make "args" const.
2041 (find_default_attach): Likewise.
2042 * utils.c (parse_pid_to_attach): Make "args" const.
2043 * utils.h (parse_pid_to_attach): Update.
2045 2014-06-04 Tom Tromey <tromey@redhat.com>
2047 * target-delegates.c: Rebuild.
2048 * target.c (default_thread_address_space): New function.
2049 (target_thread_address_space): Simplify.
2050 * target.h (struct target_ops) <to_thread_address_space>: Add
2051 TARGET_DEFAULT_FUNC.
2053 2014-06-04 Doug Evans <xdje42@gmail.com>
2055 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2057 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2059 * record-btrace.c: Include event-loop.h and inf-loop.h.
2060 (record_btrace_resume_exec_dir)
2061 (record_btrace_async_inferior_event_handler)
2062 (record_btrace_handle_async_inferior_event): New.
2063 (record_btrace_open): Create async event handler.
2064 (record_btrace_close): Delete async event handler.
2065 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2066 Mark async event handler.
2067 (record_btrace_execution_direction): New.
2068 (init_record_btrace_ops): Initialize to_execution_direction.
2070 2014-06-03 Doug Evans <xdje42@gmail.com>
2072 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2073 (gdbscm_make_parameter): Ditto.
2075 2014-06-03 Doug Evans <dje@google.com>
2077 * exec.c (exec_close_1): Call clear_section_table instead of
2078 resize_section_table.
2079 (clear_section_table): New function.
2080 (resize_section_table): Make static. Rename arg num_added to
2082 * exec.h (clear_section_table): Declare.
2083 (resize_section_table): Delete.
2084 * progspace.c (release_program_space): Call clear_section_table
2085 instead of resize_section_table.
2087 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2089 * NEWS (Python Scripting): Add entry about the new xmethods
2092 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2094 * python/py-xmethods.c: New file.
2095 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2096 (objfpy_dealloc): XDECREF on the new xmethods field.
2097 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2099 (objfpy_get_xmethods): New function.
2100 (objfile_getset): New entry 'xmethods'.
2101 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2102 (pspy_dealloc): XDECREF on the new xmethods field.
2103 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2105 (pspy_get_xmethods): New function.
2106 (pspace_getset): New entry 'xmethods'.
2107 * python/python-internal.h: Add declarations for new functions.
2108 * python/python.c (_initialize_python): Invoke
2109 gdbpy_initialize_xmethods.
2110 * python/lib/gdb/__init__.py (xmethods): New
2112 * python/lib/gdb/xmethod.py: New file.
2113 * python/lib/gdb/command/xmethods.py: New file.
2115 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2117 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2118 best match method returned by find_overload_match is an xmethod.
2119 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2120 the best matching operator returned by find_overload_match is an
2122 * valops.c: #include "extension.h".
2123 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2124 Return void. The list of matching source methods is returned in
2125 "fn_list" and a vector of matching debug method workers is
2126 returned in "xm_worker_vec". Update all callers.
2127 (value_find_oload_method_list): Likewise.
2128 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2129 non-NULL, then the index of the best matching method in this
2130 vector is returned. Update all callers.
2131 (find_overload_match): Include xmethods while performing overload
2134 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2136 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2137 * extension-priv.h (struct extension_language_ops): Add the
2139 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2140 get_matching_xmethod_workers, get_xmethod_argtypes,
2141 invoke_xmethod, free_xmethod_worker,
2142 free_xmethod_worker_vec): New functions.
2143 * extension.h: #include "common/vec.h".
2144 New function declarations.
2145 (struct xmethod_worker): New struct.
2146 (VEC (xmethod_worker_ptr)): New vector type.
2147 (xmethod_worker_ptr): New typedef.
2148 (xmethod_worker_vec): Likewise.
2149 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2151 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2152 (struct builtin_type): New field "xmethod".
2153 * valarith.c (value_ptradd): Assert that the value argument is not
2155 * valops.c (value_must_coerce_to_target): Return 0 for
2156 lval_xcallable values.
2157 * value.c (struct value): New field XM_WORKER in the field
2159 (value_address, value_raw_address): Return 0 for lval_xcallable
2161 (set_value_address): Assert that the value is not an
2163 (value_free): Free the associated xmethod worker when freeing
2164 lval_xcallable values.
2165 (set_value_component_location): Assert that the WHOLE value is not
2167 (value_of_xmethod, call_xmethod): New functions.
2168 * value.h: Declare "struct xmethod_worker".
2169 Declare new functions value_of_xmethod, call_xmethod.
2171 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2172 Pedro Alves <palves@redhat.com>
2174 PR breakpoints/17000
2175 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2176 New function, extracted from software_breakpoint_inserted_here_p.
2177 (software_breakpoint_inserted_here_p): Replace factored out code
2178 by call to find_non_raw_software_breakpoint_inserted_here.
2179 (bp_target_info_copy_insertion_state): New function.
2180 (bkpt_insert_location): Handle the case of a single-step
2181 breakpoint already inserted at the same address.
2182 (bkpt_remove_location): Handle the case of a single-step
2183 breakpoint still inserted at the same address.
2184 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2185 breakpoint already inserted at the same address.
2186 (deprecated_remove_raw_breakpoint): Handle the case of a
2187 non-raw breakpoint still inserted at the same address.
2188 (find_single_step_breakpoint): New function, extracted from
2189 single_step_breakpoint_inserted_here_p.
2190 (find_single_step_breakpoint): New function,
2191 factored out from single_step_breakpoint_inserted_here_p.
2192 (single_step_breakpoint_inserted_here_p): Reimplement.
2194 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2196 Pushed by Joel Brobecker <brobecker@adacore.com>
2197 * source.c (show_substitute_path_command): Fix display of matching
2200 2014-06-03 Gary Benson <gbenson@redhat.com>
2202 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2204 2014-06-02 Doug Evans <xdje42@gmail.com>
2206 Add parameter support for Guile.
2207 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2208 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2209 (scm-param.o): New rule.
2210 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2211 (gdbscm_misc_error): Declare.
2212 (gdbscm_canonicalize_command_name): Declare.
2213 (gdbscm_scm_to_host_string): Declare.
2214 (gdbscm_scm_from_host_string): Declare.
2215 (gdbscm_initialize_parameters): Declare.
2216 * guile/guile.c (initialize_gdb_module): Call
2217 gdbscm_initialize_parameters.
2218 * guile/lib/gdb.scm: Export parameter symbols.
2219 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2220 cmdscm_canonicalize_name and made public. All callers updated.
2221 * guile/scm-exception.c (gdbscm_misc_error): New function.
2222 * guile/scm-param.c: New file.
2223 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2224 (gdbscm_scm_to_host_string): New function.
2225 (gdbscm_scm_from_host_string): New function.
2226 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2228 2014-06-02 Doug Evans <xdje42@gmail.com>
2230 Add command support for Guile.
2231 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2232 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2233 (scm-cmd.o): New rule.
2234 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2235 (gdbscm_user_error_p): Declare.
2236 (gdbscm_parse_command_name): Declare.
2237 (gdbscm_valid_command_class_p): Declare.
2238 (gdbscm_initialize_commands): Declare.
2239 * guile/guile.c (initialize_gdb_module): Call
2240 gdbscm_initialize_commands.
2241 * guile/lib/gdb.scm: Export command symbols.
2242 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2243 (throw-user-error): New function.
2244 * guile/scm-cmd.c: New file.
2245 * guile/scm-exception.c (user_error_symbol): New static global.
2246 (gdbscm_user_error_p): New function.
2247 (gdbscm_initialize_exceptions): Set user_error_symbol.
2248 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2250 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2252 * top.c (command_loop): Handle comments here...
2253 (command_line_input): ... not here.
2255 2014-06-02 Doug Evans <xdje42@gmail.com>
2257 Add progspace support for Guile.
2258 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2259 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2260 (scm-progspace.o): New rule.
2261 * guile/guile-internal.h (pspace_smob): New typedef.
2262 (psscm_pspace_smob_pretty_printers): Declare.
2263 (psscm_pspace_smob_from_pspace): Declare.
2264 (psscm_scm_from_pspace): Declare.
2265 * guile/guile.c (initialize_gdb_module): Call
2266 gdbscm_initialize_pspaces.
2267 * guile/lib/gdb.scm: Export progspace symbols.
2268 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2270 (append-pretty-printer!): Ditto.
2271 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2273 * guile/scm-progspace.c: New file.
2275 2014-06-03 Alan Modra <amodra@gmail.com>
2277 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2278 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2280 2014-06-02 Doug Evans <dje@google.com>
2282 Add support for skeletonless type units.
2283 * dwarf2read.c (struct dwarf2_per_objfile): New member
2284 n_allocated_type_units.
2285 (struct dwarf2_per_objfile) <tu_stats>: New member
2286 nr_all_type_units_reallocs.
2287 (create_signatured_type_table_from_index): Initialize
2288 n_allocated_type_units
2289 (create_all_type_units): Ditto.
2290 (add_type_unit): Move up in file. New arg slot.
2291 All callers updated. Increase space for all_type_units more
2293 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2294 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2295 (lookup_dwp_signatured_type): Ditto.
2296 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2297 All callers updated.
2298 (build_type_psymtabs_1): Leave type_unit_groups as
2299 NULL if no TUs present.
2300 (print_tu_stats): New function.
2301 (process_skeletonless_type_unit): New function.
2302 (process_dwo_file_for_skeletonless_type_units): New
2304 (process_skeletonless_type_units): New function.
2305 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2306 Call print tu_stats if debugging enabled.
2308 2014-06-02 Pedro Alves <palves@redhat.com>
2310 * breakpoint.c (build_target_command_list): Don't build a command
2311 list if we have any duplicate location that isn't a dprintf.
2313 2014-06-02 Pedro Alves <palves@redhat.com>
2315 * breakpoint.c (dprintf_breakpoint_hit): New function.
2316 (initialize_breakpoint_ops): Install it as dprintf's
2317 breakpoint_hit method.
2319 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2321 * source.c (substitute_path_rule_matches): Simplify using
2322 filename_ncmp instead of FILENAME_CMP.
2324 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2326 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2328 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2330 * configure.ac: When Guile is available, check for the
2331 availability of 'scm_new_smob'.
2332 * configure, config.h.in: Regenerate.
2333 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2336 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2338 * frame.c (struct frame_info): Add stop_string field.
2339 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2340 (get_prev_frame_always): Old content moved into
2341 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2342 TRY_CATCH, handle MEMORY_ERROR exceptions.
2343 (frame_stop_reason_string): New function definition.
2344 * frame.h (unwind_stop_reason_to_string): Extend comment to
2345 mention frame_stop_reason_string.
2346 (frame_stop_reason_string): New function declaration.
2347 * stack.c (frame_info): Switch to frame_stop_reason_string.
2348 (backtrace_command_1): Switch to frame_stop_reason_string.
2349 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2350 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2351 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2353 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2355 * frame.c (frame_stop_reason_string): Rename to ...
2356 (unwind_stop_reason_to_string): this.
2357 * frame.h (frame_stop_reason_string): Rename to ...
2358 (unwind_stop_reason_to_string): this.
2359 * stack.c (frame_info): Update call to frame_stop_reason_string.
2360 (backtrace_command_1): Likewise.
2361 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2362 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2364 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2366 * frame.c (remove_prev_frame): New function.
2367 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2370 2014-05-29 Pedro Alves <palves@redhat.com>
2372 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2373 and make it const. When a single-step decays to a continue,
2374 clear 'step', not 'hw_step'. Pass whether the caller wanted
2375 to step to user_visible_resume_ptid, not what we ask the
2378 2014-05-29 Pedro Alves <palves@redhat.com>
2380 * infrun.c (process_event_stop_test, handle_step_into_function)
2381 (handle_step_into_function_backward): Adjust.
2382 Don't set the even thread's stop_step and call stop_waiting before
2383 calling end_stepping_range. Instead do that ...
2384 (end_stepping_range): ... here. Take an ecs pointer parameter.
2386 2014-05-29 Pedro Alves <palves@redhat.com>
2388 * infrun.c (stop_stepping): Rename to ...
2389 (stop_waiting): ... this.
2390 (proceed): Update comment.
2391 (process_event_stop_test, handle_inferior_event)
2392 (handle_signal_stop, handle_step_into_function)
2393 (handle_step_into_function_backward): Update.
2395 2014-05-29 Pedro Alves <palves@redhat.com>
2397 * infcall.c (run_inferior_call): Don't check whether the current
2398 thread is running after the proceed call.
2400 2014-05-29 Pedro Alves <palves@redhat.com>
2401 Tom Tromey <tromey@redhat.com>
2403 * NEWS: Mention "maint set target-async", "set mi-async", and that
2404 background execution commands are now always available.
2405 * target.h (target_async_permitted): Update comment.
2406 * target.c (target_async_permitted, target_async_permitted_1):
2408 (set_target_async_command): Rename to ...
2409 (maint_set_target_async_command): ... this.
2410 (show_target_async_command): Rename to ...
2411 (maint_show_target_async_command): ... this.
2412 (_initialize_target): Adjust.
2413 * infcmd.c (prepare_execution_command): Make extern.
2414 * inferior.h (prepare_execution_command): Declare.
2415 * infrun.c (set_observer_mode): Leave target async alone.
2416 * mi/mi-interp.c (mi_interpreter_init): Install
2417 mi_on_sync_execution_done as sync_execution_done observer.
2418 (mi_on_sync_execution_done): New function.
2419 (mi_execute_command_input_handler): Don't print the prompt if we
2420 just started a synchronous command with an async target.
2421 (mi_on_resume): Check sync_execution before printing prompt.
2422 * mi/mi-main.h (mi_async_p): Declare.
2423 * mi/mi-main.c: Include gdbcmd.h.
2424 (mi_async_p): New function.
2425 (mi_async, mi_async_1): New globals.
2426 (set_mi_async_command, show_mi_async_command, mi_async): New
2428 (exec_continue): Call prepare_execution_command.
2429 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2430 (mi_execute_async_cli_command): Use mi_async_p.
2431 (_initialize_mi_main): Install "set mi-async". Make
2432 "target-async" a deprecated alias.
2434 2014-05-29 Pedro Alves <palves@redhat.com>
2436 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2437 (_initialize_cli_interp): Adjust.
2438 * event-loop.c: Include "observer.h".
2439 (start_event_loop): Notify 'command_error' observers instead of
2440 calling display_gdb_prompt. Remove FIXME comment.
2441 * event-top.c (display_gdb_prompt): Remove call into the
2443 * inf-loop.c: Include "observer.h".
2444 (inferior_event_handler): Notify 'command_error' observers instead
2445 of calling display_gdb_prompt.
2446 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2447 observers instead of calling display_gdb_prompt.
2448 * interps.c (interp_set): Don't call display_gdb_prompt.
2449 (current_interp_display_prompt_p): Delete.
2450 * interps.h (interp_prompt_p): Delete declaration.
2451 (interp_prompt_p_ftype): Delete.
2452 (struct interp_procs) <prompt_proc_p>: Delete field.
2453 (current_interp_display_prompt_p): Delete declaration.
2454 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2455 (_initialize_mi_interp): Adjust.
2456 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2457 'command_error' observers.
2458 (tui_on_sync_execution_done, tui_on_command_error): New
2460 (tui_display_prompt_p): Delete.
2461 (_initialize_tui_interp): Adjust.
2463 2014-05-29 Pedro Alves <palves@redhat.com>
2466 * cli/cli-interp.c: Include infrun.h and observer.h.
2467 (cli_uiout, cli_interp): New globals.
2468 (cli_on_signal_received, cli_on_end_stepping_range)
2469 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2471 (cli_interpreter_init): Install them as 'end_stepping_range',
2472 'signal_received' 'signal_exited', 'exited' and 'no_history'
2474 (_initialize_cli_interp): Remove cli_interp local.
2475 * infrun.c (handle_inferior_event): Call the several stop reason
2476 observers instead of printing the stop reason directly.
2477 (end_stepping_range): New function.
2478 (print_end_stepping_range_reason, print_signal_exited_reason)
2479 (print_exited_reason, print_signal_received_reason)
2480 (print_no_history_reason): Make static, and add an uiout
2481 parameter. Print to that instead of to CURRENT_UIOUT.
2482 * infrun.h (print_end_stepping_range_reason)
2483 (print_signal_exited_reason, print_exited_reason)
2484 (print_signal_received_reason print_no_history_reason): New
2486 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2488 <cli_uiout>: New field.
2489 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2490 uiout for CLI output. Install 'signal_received',
2491 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2493 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2494 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2495 (mi_on_no_history): New functions.
2496 (ui_out_free_cleanup): Delete function.
2497 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2498 instead use the one already stored in the MI interpreter data.
2499 (mi_ui_out): Adjust.
2500 * tui/tui-interp.c: Include infrun.h and observer.h.
2501 (tui_interp): New global.
2502 (tui_on_signal_received, tui_on_end_stepping_range)
2503 (tui_on_signal_exited, tui_on_exited)
2504 (tui_on_no_history): New functions.
2505 (tui_init): Install them as 'end_stepping_range',
2506 'signal_received' 'signal_exited', 'exited' and 'no_history'
2508 (_initialize_tui_interp): Delete tui_interp local.
2510 2014-05-29 Pedro Alves <palves@redhat.com>
2513 * linux-nat.c (linux_nat_resume_callback): Rename the second
2514 parameter to 'except'. Skip LP if it points to EXCEPT.
2515 (linux_nat_resume): Don't mark the event lwp as not stopped
2516 before resuming sibling lwps. Instead ask
2517 linux_nat_resume_callback to skip the event lwp. Mark it as not
2518 stopped after actually resuming it.
2519 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2521 (wait_lwp): Mark the lwp as stopped here.
2522 (stop_wait_callback): Mark the lwp as not stopped right after
2523 resuming it. Don't mark lwps as stopped here.
2524 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2525 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2527 2014-05-29 Pedro Alves <palves@redhat.com>
2530 * infrun.c (resume): Determine how much to resume depending on
2531 whether the caller wanted a step, not whether we can hardware step
2532 the target. Mark all threads that we intend to run as running,
2533 unless we're calling an inferior function.
2534 (normal_stop): If the thread is running an infcall, don't finish
2536 * target.c (target_resume): Don't mark threads as running here.
2538 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2540 * serial.c (_initialize_serial): Remove support for
2541 the "set remotebaud" and "show remotebaud" commands.
2542 * NEWS: Add entry documenting the removal of that command.
2544 2014-05-28 Yao Qi <yao@codesourcery.com>
2546 * charset.c: Fix typo in comments.
2548 2014-05-27 Gary Benson <gbenson@redhat.com>
2550 * utils.c (internal_vproblem): Prompt for a bug report.
2552 2014-05-26 Andy Wingo <wingo@igalia.com>
2554 * guile/scm-arch.c (arscm_mark_arch_smob):
2555 * guile/scm-block.c (bkscm_mark_block_smob)
2556 (bkscm_mark_block_syms_progress_smob):
2557 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2558 * guile/scm-exception.c (exscm_mark_exception_smob):
2559 * guile/scm-frame.c (frscm_mark_frame_smob):
2560 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2561 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2562 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2563 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2564 (ppscm_mark_pretty_printer_worker_smob):
2565 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2566 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2567 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2568 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2570 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2573 2014-05-26 Andy Wingo <wingo@igalia.com>
2574 Doug Evans <xdje42@gmail.com>
2576 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2577 empty_base_class. All uses updated.
2578 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2579 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2581 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2582 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2583 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2584 (gdbscm_gsmob_has_property_p, add_property_name)
2585 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2586 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2587 (gdb-object-has-property?, gdb-object-properties): Remove.
2588 (gdb-object-kind): Renamed from gsmob-kind.
2590 2014-05-26 Andy Wingo <wingo@igalia.com>
2592 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2593 * configure: Regenerate.
2595 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2597 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2599 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2601 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2602 (replay_memory_access_read_only, replay_memory_access_read_write)
2603 (replay_memory_access_types, replay_memory_access)
2604 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2605 (cmd_set_record_btrace, cmd_show_record_btrace)
2606 (cmd_show_replay_memory_access): New.
2607 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2608 (record_btrace_remove_breakpoint): Replace
2609 record_btrace_allow_memory_access with replay_memory_access.
2610 (_initialize_record_btrace): Add commands.
2611 * NEWS: Announce it.
2613 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2615 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2617 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2619 * MAINTAINERS (Write After Approval): Move self back from
2622 2014-05-22 Pedro Alves <palves@redhat.com>
2624 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2625 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2626 (disable_randomization, enum exec_direction_kind)
2627 (execution_direction, stop_registers, start_remote)
2628 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2629 (wait_for_inferior, normal_stop, get_last_target_status)
2630 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2631 (insert_step_resume_breakpoint_at_sal)
2632 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2633 (set_step_info, print_stop_event, signal_stop_state)
2634 (signal_print_state, signal_pass_state, signal_stop_update)
2635 (signal_print_update, signal_pass_update)
2636 (update_signals_program_target, clear_exit_convenience_vars)
2637 (displaced_step_dump_bytes, update_observer_mode)
2638 (signal_catch_update, gdb_signal_from_command): Move
2640 * infrun.h: ... to this new file.
2641 * amd64-tdep.c: Include infrun.h.
2642 * annotate.c: Include infrun.h.
2643 * arch-utils.c: Include infrun.h.
2644 * arm-linux-tdep.c: Include infrun.h.
2645 * arm-tdep.c: Include infrun.h.
2646 * break-catch-sig.c: Include infrun.h.
2647 * breakpoint.c: Include infrun.h.
2648 * common/agent.c: Include infrun.h instead of inferior.h.
2649 * corelow.c: Include infrun.h.
2650 * event-top.c: Include infrun.h.
2651 * go32-nat.c: Include infrun.h.
2652 * i386-tdep.c: Include infrun.h.
2653 * inf-loop.c: Include infrun.h.
2654 * infcall.c: Include infrun.h.
2655 * infcmd.c: Include infrun.h.
2656 * infrun.c: Include infrun.h.
2657 * linux-fork.c: Include infrun.h.
2658 * linux-nat.c: Include infrun.h.
2659 * linux-thread-db.c: Include infrun.h.
2660 * monitor.c: Include infrun.h.
2661 * nto-tdep.c: Include infrun.h.
2662 * procfs.c: Include infrun.h.
2663 * record-btrace.c: Include infrun.h.
2664 * record-full.c: Include infrun.h.
2665 * remote-m32r-sdi.c: Include infrun.h.
2666 * remote-mips.c: Include infrun.h.
2667 * remote-notif.c: Include infrun.h.
2668 * remote-sim.c: Include infrun.h.
2669 * remote.c: Include infrun.h.
2670 * reverse.c: Include infrun.h.
2671 * rs6000-tdep.c: Include infrun.h.
2672 * s390-linux-tdep.c: Include infrun.h.
2673 * solib-irix.c: Include infrun.h.
2674 * solib-osf.c: Include infrun.h.
2675 * solib-svr4.c: Include infrun.h.
2676 * target.c: Include infrun.h.
2677 * top.c: Include infrun.h.
2678 * windows-nat.c: Include infrun.h.
2679 * mi/mi-interp.c: Include infrun.h.
2680 * mi/mi-main.c: Include infrun.h.
2681 * python/py-threadevent.c: Include infrun.h.
2683 2014-05-22 Pedro Alves <palves@redhat.com>
2685 * infrun.c (handle_inferior_event): Store the exit code for
2686 --return-child-result here, instead of ...
2687 (print_exited_reason): ... here.
2689 2014-05-21 Pedro Alves <palves@redhat.com>
2692 * gdbthread.h (struct thread_control_state): New field
2694 * infrun.c (follow_fork): Copy the new thread control field to the
2696 (clear_proceed_status_thread): Clear the new thread control field.
2697 (proceed): Set the new thread control field.
2698 * interps.h (command_interp): Declare.
2699 * interps.c (command_interpreter): New global.
2700 (command_interp): New function.
2701 (interp_exec): Set `command_interpreter' while here.
2702 * cli-out.c (cli_uiout_dtor): New function.
2703 (cli_ui_out_impl): Install it.
2704 * mi/mi-interp.c: Include cli-out.h.
2705 (mi_cmd_interpreter_exec): Add comment.
2706 (restore_current_uiout_cleanup): New function.
2707 (ui_out_free_cleanup): New function.
2708 (mi_on_normal_stop): If finishing an execution command started by
2709 a CLI command, or any kind of breakpoint-like event triggered,
2710 print the stop event to the output (CLI) stream.
2711 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2713 2014-05-21 Pedro Alves <palves@redhat.com>
2715 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2716 current source line having changed.
2717 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2718 * infrun.c (normal_stop): Adjust call to
2719 set_current_sal_from_frame.
2720 * source.c (clear_lines_listed_range): New function.
2721 (set_current_source_symtab_and_line, identify_source_line): Clear
2722 the lines listed range.
2723 (line_info): Handle the first "info line" after the current source
2724 line having changed.
2725 * stack.c (print_stack_frame): Remove center handling.
2726 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2729 2014-05-21 Pedro Alves <palves@redhat.com>
2731 * inf-child.c (inf_child_mourn_inferior): New function.
2732 * inf-child.h (inf_child_mourn_inferior): New declaration.
2733 * darwin-nat.c (darwin_mourn_inferior): Use
2734 inf_child_mourn_inferior.
2735 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2736 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2737 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2738 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2739 * windows-nat.c (windows_mourn_inferior): Likewise.
2741 2014-05-21 Doug Evans <xdje42@gmail.com>
2743 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2745 2014-05-21 Doug Evans <xdje42@gmail.com>
2747 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2748 (gdbscm_out_of_range_error): Ditto.
2749 (gdbscm_memory_error): Ditto.
2750 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2751 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2752 (gdbscm_out_of_range_error): Update.
2753 (gdbscm_memory_error): Update.
2754 (gdbscm_scm_to_target_string_unsafe): Delete.
2756 2014-05-21 Pedro Alves <palves@redhat.com>
2758 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2760 (inf_child_open_target): New function.
2761 (inf_child_open): Use inf_child_open_target to push the target
2762 instead of erroring out.
2763 (inf_child_disconnect, inf_child_close)
2764 (inf_child_maybe_unpush_target): New functions.
2765 (inf_child_target): Install inf_child_disconnect and
2766 inf_child_close. Store a pointer to the returned object.
2767 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2769 * target.c (auto_connect_native_target): New global.
2770 (show_default_run_target): New function.
2771 (find_default_run_target): Return NULL if automatically connecting
2772 to the native target is disabled.
2773 (_initialize_target): Install set/show auto-connect-native-target.
2774 * NEWS: Mention "set auto-connect-native-target", and "target
2776 * linux-nat.c (super_close): New global.
2777 (linux_nat_close): Call super_close.
2778 (linux_nat_add_target): Store a pointer to the base class's
2780 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2781 inf_child_maybe_unpush.
2782 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2784 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2785 the inferior. Use inf_child_maybe_unpush_target.
2786 (inf_ttrace_attach): Don't push the target if it is already
2788 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2789 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2790 after mourning the inferior. Use inf_child_maybe_unpush_target.
2791 (darwin_attach_pid): Don't push the target if it is already
2793 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2794 mourning the inferior. Use inf_child_maybe_unpush_target.
2795 (gnu_detach): Use inf_child_maybe_unpush_target.
2796 * go32-nat.c (go32_create_inferior): Don't push the target if it
2798 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2799 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2800 (procfs_open): Rename to ...
2801 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2802 comments. Can target_preopen before changing node. Call
2803 inf_child_open_target to push the target explicitly.
2804 (procfs_attach): Don't push the target if it is already pushed.
2805 (procfs_detach): Use inf_child_maybe_unpush_target.
2806 (procfs_create_inferior): Don't push the target if it is already
2808 (nto_native_ops): New global.
2809 (procfs_open): Reimplement.
2810 (procfs_native_open): New function.
2811 (init_procfs_targets): Install procfs_native_open as to_open of
2812 "target native". Store a pointer to the "native" target in
2814 * procfs.c (procfs_attach): Don't push the target if it is already
2816 (procfs_detach): Use inf_child_maybe_unpush_target.
2817 (procfs_mourn_inferior): Only unpush the target after mourning the
2818 inferior. Use inf_child_maybe_unpush_target.
2819 (procfs_init_inferior): Don't push the target if it is already
2821 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2822 if it is already pushed.
2824 2014-05-21 Pedro Alves <palves@redhat.com>
2826 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2827 and "procfs" targets are now called "native" instead.
2829 2014-05-21 Pedro Alves <palves@redhat.com>
2831 * go32-nat.c (go32_open): Delete.
2832 (go32_target): Don't override the to_open method.
2834 2014-05-21 Pedro Alves <palves@redhat.com>
2836 * nto-procfs.c (procfs_can_run): New function.
2837 (nto_procfs_ops): New global.
2838 (init_procfs_targets): New, based on procfs_target. Install
2839 "target native" in addition to "target procfs".
2840 (_initialize_procfs): Call init_procfs_targets instead of adding
2843 2014-05-21 Pedro Alves <palves@redhat.com>
2845 * windows-nat.c (windows_target): Don't override to_shortname,
2846 to_longname or to_doc.
2848 2014-05-21 Pedro Alves <palves@redhat.com>
2850 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2853 2014-05-21 Pedro Alves <palves@redhat.com>
2855 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2856 to_shortname, to_longname or to_doc.
2858 2014-05-21 Pedro Alves <palves@redhat.com>
2860 * go32-nat.c (go32_target): Don't override to_shortname,
2861 to_longname or to_doc.
2863 2014-05-21 Pedro Alves <palves@redhat.com>
2865 * inf-child.c (inf_child_open): Remove mention of "child".
2866 (inf_child_target): Rename target to "native" instead of "child".
2868 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2870 * Makefile.in (SFILES): Delete "regset.c".
2871 (COMMON_OBS): Delete "regset.o".
2873 * regset.h (regset_alloc): Delete prototype.
2875 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2877 * sparc-linux-tdep.c (sparc32_linux_gregset)
2878 (sparc32_linux_fpregset): New static regset structures.
2879 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2880 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2882 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2883 (sparc64_linux_fpregset): New static regset structures.
2884 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2885 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2886 New static regset structures.
2887 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2888 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2889 New static regset structures.
2890 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2891 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2892 New static regset structures.
2893 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2894 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2895 New static regset structures.
2896 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2898 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2900 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2901 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2902 register maps ("regmaps") from "*regset" to "*regmap". Do this
2903 for all regmap types and variables.
2904 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2905 (sparc32_linux_supply_core_gregset)
2906 (sparc32_linux_collect_core_gregset)
2907 (sparc32_linux_supply_core_fpregset)
2908 (sparc32_linux_collect_core_fpregset): Likewise.
2909 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2910 (sparc_gregmap, sparc_fpregmap): ... these.
2911 (sparc_supply_gregset, sparc_collect_gregset)
2912 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2913 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2914 (_initialize_sparc_nat): Rename regmaps.
2915 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2916 (sparc_gregmap, sparc_fpregmap): ... these.
2917 (sparc_supply_gregset, sparc_collect_gregset)
2918 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2919 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2921 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2922 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2924 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2926 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2927 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2928 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2930 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2931 (sparc32_bsd_fpregset): Rename to...
2932 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2933 (sparc32_bsd_fpregmap): ... these.
2934 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2935 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2936 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2937 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2938 (struct sparc_gregmap, struct sparc_fpregmap)
2939 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2940 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2941 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2942 (sparc32_supply_regset, sparc32_collect_gregset)
2943 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2945 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2946 (sparc64_linux_ptrace_gregmap): ... this.
2947 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2948 (_initialize_sparc64_linux_nat): Rename regmaps.
2949 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2950 (sparc64_linux_core_gregmap): ... this.
2951 (sparc64_linux_supply_core_gregset)
2952 (sparc64_linux_collect_core_gregset)
2953 (sparc64_linux_supply_core_fpregset)
2954 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2955 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2956 (sparc64_sol2_fpregset): Rename to...
2957 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2958 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2959 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2961 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2962 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2963 (sparc64_bsd_fpregset): Rename to...
2964 (struct sparc_gregmap, sparc64_sol2_gregmap)
2965 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2966 (sparc64_bsd_fpregmap): ... these.
2967 (sparc64_supply_gregset, sparc64_collect_gregset)
2968 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2970 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2971 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2972 (sparc64fbsd_gregmap): ... this.
2973 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2974 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2976 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2977 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2978 (sparc64nbsd_collect_fpregset): Likewise.
2979 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2980 (sparc64nbsd_gregmap): ... this.
2981 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2983 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2984 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2985 (sparc64obsd_gregmap): ... this.
2986 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2988 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2989 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2990 (sparc32nbsd_gregmap): ... this.
2991 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2994 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2996 * score-tdep.c (score7_linux_gregset): New static regset
2998 (score7_linux_regset_from_core_section): Remove dynamic regset
3000 (score_gdbarch_init): Drop allocation of tdep structure.
3001 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3003 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3005 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3007 (am33_regset_from_core_section): Remove dynamic regset
3010 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3012 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3013 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3015 (mips_linux_regset_from_core_section): Remove dynamic regset
3017 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3018 'gregset64', 'fpregset', and 'fpregset64'.
3019 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3020 deleted tdep fields.
3022 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3024 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3026 (amd64_regset_from_core_section): Remove dynamic regset
3028 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3030 (amd64obsd_regset_from_core_section): Remove dynamic regset
3032 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3034 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3035 x86-common regset supply function.
3036 * i386-tdep.c (i386_collect_gregset): Make static.
3037 (i386_gregset): New global regset structure.
3038 (i386_fpregset, i386_xstateregset): New static regset structures.
3039 (i386_regset_from_core_section): Remove dynamic regset
3041 (i386_gdbarch_init): Remove initialization of tdep fields
3042 'gregset', 'fpregset', and 'xstateregset'.
3043 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3044 'fpregset', and 'xstateregset'.
3045 (i386_collect_gregset): Remove prototype.
3046 (i386_gregset): New declaration.
3047 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3049 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3052 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3054 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3055 (arm_linux_vfpregset): New static regset structures.
3056 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3058 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3059 and 'vfpregset' fields.
3061 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3063 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3064 (aarch64_linux_fpregset): New static regset structures.
3065 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3066 of regset structures.
3067 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3070 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3072 * regset.h (struct regset): Remove gdbarch field.
3073 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3074 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3075 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3077 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3078 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3079 (ppc32_linux_vsxregset): Likewise.
3080 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3081 via the regcache instead of the regset.
3082 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3083 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3084 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3085 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3088 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3090 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3091 Constify structures.
3092 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3093 (alphanbsd_aout_gregset): Likewise.
3094 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3095 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3097 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3098 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3100 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3101 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3102 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3103 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3104 * m88k-tdep.c (m88k_gregset): Likewise.
3105 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3106 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3107 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3108 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3109 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3110 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3111 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3112 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3113 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3115 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3116 * sh-tdep.h (sh_corefile_gregset): Likewise.
3117 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3118 * vax-tdep.c (vax_gregset): Likewise.
3120 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3122 Fix TLS access for -static -pthread.
3123 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3124 (try_thread_db_load_1): Initialize it.
3125 (thread_db_get_thread_local_address): Call it if LM is zero.
3126 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3127 * target.h (struct target_ops) (to_get_thread_local_address): Add
3128 load_module_addr comment.
3130 2014-05-21 Pedro Alves <palves@redhat.com>
3132 * dcache.c (dcache_read_memory_partial): If reading the cache line
3133 fails, fallback to reading just the memory the caller wanted.
3135 2014-05-20 Doug Evans <dje@google.com>
3137 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3138 instead of get_current_arch.
3140 2014-05-20 Pedro Alves <palves@redhat.com>
3142 * NEWS: Mention that compare-sections now works with all targets.
3144 * remote.c (PACKET_qCRC): New enum value.
3145 (remote_verify_memory): Don't send qCRC if the target has no
3146 execution. Use packet_support/packet_ok. If the target doesn't
3147 support the qCRC packet, fallback to a deep memory copy.
3148 (compare_sections_command): Say "target image" instead of "remote
3150 (_initialize_remote): Add PACKET_qCRC to the list of config
3151 packets that have no associated command. Extend comment.
3152 * target.c (simple_verify_memory, default_verify_memory): New
3154 * target.h (struct target_ops) <to_verify_memory>: Default to
3155 default_verify_memory.
3156 (simple_verify_memory): New declaration.
3157 * target-delegates.c: Regenerate.
3159 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3161 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3163 2014-05-20 Hui Zhu <hui@codesourcery.com>
3164 Yao Qi <yao@codesourcery.com>
3167 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3168 and change address of sp and pc.
3170 2014-05-19 Tom Tromey <tromey@redhat.com>
3172 * gdbtypes.c (rank_function): Use XNEWVEC.
3173 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3175 2014-05-19 Doug Evans <dje@google.com>
3177 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3178 build_type_unit_groups and moved closer to only caller. Remove
3179 arguments. All references updated. Remove outdated .gdb_index
3181 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3182 build_type_psymtabs_1.
3184 2014-05-19 Doug Evans <dje@google.com>
3186 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3187 n_type_unit_groups, all_type_unit_groups. All uses removed.
3188 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3189 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3190 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3191 (add_type_unit_group_to_table): Delete.
3193 2014-05-19 Doug Evans <dje@google.com>
3195 * eval.c (evaluate_subexp_standard): Add some comments.
3197 2014-05-17 Doug Evans <xdje42@gmail.com>
3199 * progspace.c (remove_program_space): Delete, unused.
3200 * progspace.h (remove_program_space): Ditto.
3202 2014-05-17 Doug Evans <xdje42@gmail.com>
3204 * inferior.c (prune_inferiors): Fix comment.
3205 (remove_inferior_command): Call prune_program_spaces.
3207 2014-05-16 Doug Evans <dje@google.com>
3209 New command line option -D.
3211 * main.c (set_gdb_data_directory): New function.
3212 (captured_main): Recognize -D. Flag error for --data-directory "".
3213 Call set_gdb_data_directory.
3214 (print_gdb_help): Print --data-directory, -D.
3215 * main.h (set_gdb_data_directory): Declare.
3216 * top.c (staged_gdb_datadir): New static global.
3217 (set_gdb_datadir): Call set_gdb_data_directory
3218 (show_gdb_datadir): New function.
3219 (init_main): Update init of data-directory parameter.
3221 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3223 Import the "dirfd" gnulib module.
3224 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3225 * gnulib/aclocal.m4: Update.
3226 * gnulib/config.in: Update.
3227 * gnulib/configure: Update.
3228 * gnulib/import/Makefile.am: Update.
3229 * gnulib/import/Makefile.in: Update.
3230 * gnulib/import/dirfd.c: New.
3231 * gnulib/import/m4/dirfd.m4: New.
3232 * gnulib/import/m4/gnulib-cache.m4: Update.
3233 * gnulib/import/m4/gnulib-comp.m4: Update.
3235 2014-05-16 Pierre Muller <muller@sourceware.org>
3236 Yao Qi <yao@codesourcery.com>
3238 * valprint.c (print_wchar): Move the code on checking whether
3239 W is a printable wide char to the default branch of switch
3240 statement below. Call wchar_printable instead of gdb_iswprint.
3242 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3244 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3245 ldr.w and ldrd instructions.
3247 2014-05-15 Doug Evans <dje@google.com>
3249 * dwarf2read.c (read_structure_type): Delete outdated comments.
3251 2014-05-14 Tom Tromey <tromey@redhat.com>
3253 * macrocmd.c (print_macro_definition): Reindent.
3255 2014-05-13 Doug Evans <xdje42@gmail.com>
3257 * python/py-cmd.c (cmdpy_completer): Add comment.
3258 (completers): Make const.
3260 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3262 * infrun.c (resume): Remove should_resume (unused). Move up
3263 declaration of resume_ptid.
3265 2014-05-13 Tom Tromey <tromey@redhat.com>
3267 * language.h (unop_type_check): Remove.
3268 (binop_type_check): Don't declare.
3270 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3272 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3273 call to regcache_raw_collect.
3275 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3277 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3278 mi_console->quote as the quoting character.
3280 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3282 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3284 2014-04-29 Tom Tromey <tromey@redhat.com>
3286 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3287 "show debug varobj".
3289 2014-05-07 Kyle McMartin <kyle@redhat.com>
3291 Pushed by Joel Brobecker <brobecker@adacore.com>.
3292 * aarch64-tdep.c (aarch64_software_single_step): New function.
3293 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3294 with aarch64_software_single_step.
3296 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3300 2014-05-05 Keith Seitz <keiths@redhat.com>
3302 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3303 variable or history value is successfully parsed.
3305 2014-05-05 Yao Qi <yao@codesourcery.com>
3306 Pedro Alves <palves@redhat.com>
3308 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3309 address of blocks that intersects the requested range. Trim
3310 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3312 * ctf.c (ctf_xfer_partial): Likewise.
3314 2014-05-05 Yao Qi <yao@codesourcery.com>
3316 * printcmd.c (display_command): Remove the check to
3317 target_has_execution.
3319 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3321 * ppcobsd-nat.c: Include "obsd-nat.h".
3322 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3324 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3326 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3328 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3329 and 16-bit signed and unsigned arguments. Update comment.
3330 (stap_parse_probe_arguments): Extend code to handle such
3331 arguments. Use warning instead of complaint to notify about
3332 unrecognized bitness.
3334 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3336 PR breakpoints/16889
3337 * stap-probe.c (stap_parse_probe_arguments): Simplify
3338 check for non-prefixed probes (i.e., probes whose
3339 arguments do not start with "N@"). Always set the
3340 argument type to a sane value.
3342 2014-05-01 David Taylor <dtaylor@emc.com>
3344 * remote.c (compare_sections_command): Add -r option to compare
3345 all loadable read-only sections.
3347 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3349 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3350 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3352 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3353 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3354 Remove unused CORE_ADDR argument. Update all callers.
3356 2014-04-29 Pedro Alves <palves@redhat.com>
3358 * remote.c (struct packet_config) <detect>: Extend comment.
3359 (add_packet_config_cmd): Don't set the config's detect or support
3361 (init_all_packet_configs): Also initialize the config's 'detect'
3363 (reset_all_packet_configs_support): New function.
3364 (remote_open_1): Call reset_all_packet_configs_support instead of
3365 init_all_packet_configs.
3366 (_initialize_remote): Initialize all packet configs. Assert that
3367 all packets have an associated command, except a few known
3370 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3372 * dwarf2read.c (read_subrange_type): Handle dynamic
3373 DW_AT_lower_bound attributes.
3375 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3377 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3378 dynamic bounds before computing its upper bound.
3379 (ada_discrete_type_low_bound): Same as above with the lower bound.
3381 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3383 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3384 range types. Adjust the array handling implementation to
3385 take advantage of this change.
3386 (resolve_dynamic_range): New function, mostly extracted from
3387 resolve_dynamic_bounds.
3388 (resolve_dynamic_array): New function, mostly extracted from
3389 resolve_dynamic_bounds.
3390 (resolve_dynamic_bounds): Delete.
3391 (resolve_dynamic_type): Reimplement. Add handling of
3392 TYPE_CODE_RANGE types.
3394 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3396 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3397 handling of parallel ___XA types.
3399 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3401 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3402 unnecessary second call to static_unwrap_type.
3404 2014-04-27 Hui Zhu <hui@codesourcery.com>
3406 * stack.c (print_frame_info): Call do_gdb_disassembly with
3407 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3409 2014-04-26 Doug Evans <xdje42@gmail.com>
3411 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3413 2014-04-25 Pedro Alves <palves@redhat.com>
3416 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3417 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3418 and newline from built string.
3419 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3420 (linux_ptrace_attach_fail_reason): ... this.
3421 * linux-nat.c (linux_nat_attach): Adjust to use
3422 linux_ptrace_attach_fail_reason.
3424 2014-04-25 Pedro Alves <palves@redhat.com>
3426 * remote.c (struct remote_state): Remove multi_process_aware,
3427 non_stop_aware, cond_tracepoints, cond_breakpoints,
3428 breakpoint_commands, fast_tracepoints, static_tracepoints,
3429 install_in_trace, disconnected_tracing,
3430 enable_disable_tracepoints, string_tracing, and
3431 augmented_libraries_svr4_read fields.
3432 (remote_multi_process_p): Move further below in the file.
3433 (struct packet_config): Add comments.
3434 (update_packet_config): Delete function.
3435 (show_packet_config_cmd): Use packet_config_support.
3436 (add_packet_config_cmd): Use NULL as set callback.
3437 (packet_ok): "set remote foo-packet"-style commands no longer
3438 change config->supported -- adjust.
3439 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3440 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3441 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3442 (PACKET_QNonStop, PACKET_multiprocess_feature)
3443 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3444 (PACKET_DisconnectedTracing_feature)
3445 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3446 (set_remote_protocol_packet_cmd): Delete function.
3447 (packet_config_support, packet_support): New functions.
3448 (set_remote_protocol_Z_packet_cmd): Don't call
3449 update_packet_config.
3450 (remote_query_attached, remote_pass_signals)
3451 (remote_program_signals, remote_threads_info)
3452 (remote_threads_extra_info, remote_start_remote): Use
3454 (remote_start_remote): Use packet_config_support and
3456 (init_all_packet_configs): Set all packets to unknown support,
3457 instead of calling update_packet_config.
3458 (remote_check_symbols): Use packet_support.
3459 (remote_supported_packet): Unconditionally set the packet config's
3461 (remote_multi_process_feature, remote_non_stop_feature)
3462 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3463 (remote_breakpoint_commands_feature)
3464 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3465 (remote_install_in_trace_feature)
3466 (remote_disconnected_tracing_feature)
3467 (remote_enable_disable_tracepoint_feature)
3468 (remote_string_tracing_feature)
3469 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3470 (remote_protocol_features): Adjust to use remote_supported_packet
3471 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3472 "ConditionalTracepoints", "ConditionalBreakpoints",
3473 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3474 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3475 "EnableDisableTracepoints", and "tracenz".
3476 (remote_query_supported): Use packet_support.
3477 (remote_open_1): Adjust.
3478 (extended_remote_attach_1): Use packet_support. Switch on the
3479 result of packet_ok instead of checking whether the packet ended
3481 (remote_vcont_resume): Use packet_support.
3482 (remote_resume, remote_stop_ns, fetch_register_using_p)
3483 (remote_prepare_to_store, store_register_using_P)
3484 (check_binary_download, remote_write_bytes): Use packet_support.
3485 (remote_vkill): Use packet_support. Switch on the result of
3486 packet_ok instead of checking whether the packet ended up
3488 (extended_remote_supports_disable_randomization): Use
3490 (extended_remote_run): Switch on the result of packet_ok instead
3491 of checking whether the packet ended up disabled.
3492 (remote_insert_breakpoint, remote_remove_breakpoint)
3493 (remote_insert_watchpoint, remote_remove_watchpoint)
3494 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3496 (remote_search_memory): Use packet_config_support.
3497 (remote_get_thread_local_address, remote_get_tib_address)
3498 (remote_hostio_send_command, remote_can_execute_reverse): Use
3500 (remote_supports_cond_tracepoints)
3501 (remote_supports_cond_breakpoints)
3502 (remote_supports_fast_tracepoints)
3503 (remote_supports_static_tracepoints)
3504 (remote_supports_install_in_trace)
3505 (remote_supports_enable_disable_tracepoint)
3506 (remote_supports_string_tracing)
3507 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3508 the packet config says the feature is enabled or disabled.
3509 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3510 (remote_get_trace_status): Use packet_support.
3511 (remote_set_disconnected_tracing): Adjust to check whether the
3512 feature is enabled with packet_support.
3513 (remote_set_trace_buffer_size, remote_use_agent)
3514 (remote_can_use_agent, remote_supports_btrace): Use
3516 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3517 Use packet_config_support.
3518 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3519 the packet config says the feature is enabled or disabled.
3520 (set_range_stepping): Use packet_support.
3522 2014-04-25 Tom Tromey <tromey@redhat.com>
3524 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3527 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3529 * NEWS: Mention support for C99 variable length arrays.
3531 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3533 * ada-lang.c (standard_exc): Expand introductory comment.
3535 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3536 Walfred Tedeschi <walfred.tedeschi@intel.com>
3538 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3540 (amd64_linux_read_description): Add code to handle AVX512 xstate
3541 mask and return respective tdesc.
3542 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3543 and features/i386/x32-avx512-linux.c.
3544 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3545 (amd64_linux_core_read_description): Add code to handle AVX512
3546 xstate mask and return respective tdesc.
3547 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3548 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3550 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3551 (tdesc_amd64_avx512_linux): New prototype.
3552 (tdesc_x32_avx512_linux): Likewise.
3553 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3554 features/i386/x32-avx512.c.
3555 (amd64_ymm_avx512_names): New register names for pseudo
3557 (amd64_ymmh_avx512_names): New register names for raw registers
3559 (amd64_k_names): New register names for K registers.
3560 (amd64_zmmh_names): New register names for ZMM raw registers.
3561 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3562 (amd64_xmm_avx512_names): New register names for XMM16-31
3564 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3566 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3567 if feature is present.
3568 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3569 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3570 (AMD64_NUM_REGS): Adjust to new number of registers.
3571 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3572 registers supplied via XSTATE by AVX512 registers.
3573 (i386_linux_read_description): Add case for AVX512.
3574 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3575 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3576 (i386_linux_core_read_description): Add case for AVX512.
3577 (i386_linux_init_abi): Install supported register note section
3579 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3581 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3582 registers to be number of zmm7h + 1.
3583 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3584 * i386-tdep.c: Include features/i386/i386-avx512.c.
3585 (i386_zmm_names): Add ZMM pseudo register names array.
3586 (i386_zmmh_names): Add ZMM raw register names array.
3587 (i386_k_names): Add K raw register names array.
3588 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3589 registers. AVX512 has 16 more ZMM registers than there are YMM
3591 (i386_zmmh_regnum_p): Add function to look up register number of
3593 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3594 (i386_k_regnum_p): Likewise for K raw registers.
3595 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3596 registers added by AVX512.
3597 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3598 registers added by AVX512.
3599 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3601 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3602 (i386_pseudo_register_name): Add ZMM pseudo registers.
3603 (i386_zmm_type): Construct and return vector registers type for ZMM
3605 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3606 ZMM0-31 pseudo registers and K registers.
3607 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3608 and YMM16-31 registers from register cache.
3609 (i386_pseudo_register_write): Add code to write K, ZMM and
3611 (i386_register_reggroup_p): Add code to include/exclude AVX512
3612 registers in/from respective register groups.
3613 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3614 registers if feature is present in xcr0.
3615 (i386_gdbarch_init): Add code to initialize AVX512 feature
3616 variables in tdep structure, wire in pseudo registers and call
3617 initialize_tdesc_i386_avx512.
3618 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3620 (i386_regnum): Add AVX512 registers.
3621 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3622 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3623 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3624 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3626 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3627 (i386_ymm_avx512_regnum_p): Likewise.
3628 (i386_k_regnum_p): Likewise.
3629 (i386_zmm_regnum_p): Likewise.
3630 (i386_zmmh_regnum_p): Likewise.
3631 * i387-tdep.c : Update year in copyright notice.
3632 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3634 (XSAVE_YMM_AVX512_ADDR): New macro.
3635 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3637 (XSAVE_XMM_AVX512_ADDR): New macro.
3638 (xsave_avx512_k_offset): New table for K register offsets in
3640 (XSAVE_AVX512_K_ADDR): New macro.
3641 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3643 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3644 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3646 (i387_collect_xsave): Add code to collect AVX512 registers from
3648 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3649 of XMM16-31 registers.
3650 (I387_NUM_K_REGS): New define for number of K registers.
3651 (I387_K0_REGNUM): New define for K0 register number.
3652 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3653 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3654 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3656 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3657 (I387_XMM16_REGNUM): New define for XMM16 register number.
3658 (I387_YMM0_REGNUM): New define for YMM0 register number.
3659 (I387_KEND_REGNUM): New define for last K register number.
3660 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3661 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3663 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3665 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3667 * features/Makefile: Add AVX512 related files.
3668 * features/i386/32bit-avx512.xml: New file.
3669 * features/i386/64bit-avx512.xml: Likewise.
3670 * features/i386/amd64-avx512-linux.c: Likewise.
3671 * features/i386/amd64-avx512-linux.xml: Likewise.
3672 * features/i386/amd64-avx512.c: Likewise.
3673 * features/i386/amd64-avx512.xml: Likewise.
3674 * features/i386/i386-avx512-linux.c: Likewise.
3675 * features/i386/i386-avx512-linux.xml: Likewise.
3676 * features/i386/i386-avx512.c: Likewise.
3677 * features/i386/i386-avx512.xml: Likewise.
3678 * features/i386/x32-avx512-linux.c: Likewise.
3679 * features/i386/x32-avx512-linux.xml: Likewise.
3680 * features/i386/x32-avx512.c: Likewise.
3681 * features/i386/x32-avx512.xml: Likewise.
3682 * regformats/i386/amd64-avx512-linux.dat: New file.
3683 * regformats/i386/amd64-avx512.dat: Likewise.
3684 * regformats/i386/i386-avx512-linux.dat: Likewise.
3685 * regformats/i386/i386-avx512.dat: Likewise.
3686 * regformats/i386/x32-avx512-linux.dat: Likewise.
3687 * regformats/i386/x32-avx512.dat: Likewise.
3688 * NEWS: Add note about new support for AVX512.
3691 2014-04-23 Pedro Alves <palves@redhat.com>
3693 * breakpoint.c (insert_bp_location): Tolerate errors if the
3694 breakpoint is set in a user-loaded objfile.
3695 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3696 location is marked shlib_disabled. If the breakpoint is set in a
3697 user-loaded objfile is a GDB-side memory breakpoint, validate it
3698 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3699 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3701 * mem-break.c (memory_validate_breakpoint): New function.
3702 * objfiles.c (userloaded_objfile_contains_address_p): New
3704 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3705 * target.h (memory_validate_breakpoint): New declaration.
3707 2014-04-23 Pedro Alves <palves@redhat.com>
3709 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3710 the breakpoint is set in a shared library, only suppress
3711 errors for software breakpoints, not hardware breakpoints.
3713 2014-04-22 Pedro Alves <palves@redhat.com>
3715 * infrun.c (schedlock_applies): New function, factored out from
3716 find_thread_needs_step_over.
3717 (find_thread_needs_step_over): Use it.
3718 (switch_back_to_stepped_thread): Always clear trap_expected if the
3719 step over is finished. Return early if scheduler locking applies.
3720 Look for the stepping thread and a potential step-over thread with
3722 (currently_stepping_or_nexting_callback): Delete.
3724 2014-04-22 Nick Clifton <nickc@redhat.com>
3726 * NEWS: Mention that ARM sim now supports tracing.
3728 2014-04-22 Yao Qi <yao@codesourcery.com>
3730 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3732 * tracefile.c (tracefile_fetch_registers): ... it. New
3734 * tracefile.h (tracefile_fetch_registers): Declare.
3735 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3736 tracefile_fetch_registers.
3738 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3741 * windows-nat.c (thread_rec): Don't display a warning when
3742 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3743 fails for any reason, set th->suspended to -1, so that we don't
3744 try to resume such a thread. Also, don't return NULL in these
3745 cases, to avoid completely ruin the session due to "PC register is
3746 not available" error.
3747 (do_windows_fetch_inferior_registers): Check errors in
3748 GetThreadContext call.
3749 (windows_continue): Accept an additional argument KILLED; if not
3750 zero, ignore errors in the SetThreadContext call, since the
3751 inferior was killed and is shutting down.
3752 (windows_resume, get_windows_debug_event)
3753 (windows_create_inferior, windows_mourn_inferior)
3754 (windows_kill_inferior): All callers of windows_continue changed
3755 to adjust to its new calling sequence.
3757 2014-04-19 Yao Qi <yao@codesourcery.com>
3759 * ctf.c (ctf_open): Call post_create_inferior.
3761 2014-04-19 Yao Qi <yao@codesourcery.com>
3763 * ctf.c (handle_id): New static variable.
3764 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3765 value. Get the declaration of event "register" and get length
3766 of field "contents".
3768 2014-04-19 Yao Qi <yao@codesourcery.com>
3770 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3772 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3774 * valops.c (oload_method_static): Remove unnecessary argument
3775 METHOD. Update all callers.
3777 2014-04-18 Pedro alves <palves@redhat.com>
3778 Tom Tromey <tromey@redhat.com>
3781 * frame.c (get_prev_frame_1): Rename to ...
3782 (get_prev_frame_always): ... this, and make extern. Adjust.
3783 (skip_artificial_frames): Use get_prev_frame_always.
3784 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3785 (get_frame_unwind_stop_reason): Adjust to rename.
3786 * frame.h (get_prev_frame_always): Declare.
3787 * inline-frame.c: Include frame.h.
3788 (inline_frame_this_id): Use get_prev_frame_always.
3790 2014-04-18 Tristan Gingold <gingold@adacore.com>
3792 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3793 code by using bfd_mach_o_get_base_address.
3795 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3797 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3798 (spu_ax_pseudo_register_collect): New function.
3799 (spu_ax_pseudo_register_push_stack): Likewise.
3800 (spu_dwarf_reg_to_regnum): Likewise.
3801 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3803 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3805 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3806 Replace FRAME argument with FRAME_ID.
3807 * gdbarch.c, gdbarch.h: Regenerate.
3808 * findvar.c (default_value_from_register): Add GDBARCH argument;
3809 replace FRAME by FRAME_ID. No longer call get_frame_id.
3810 (value_from_register): Update call to gdbarch_value_from_register.
3811 * value.h (default_value_from_register): Update prototype.
3812 * s390-linux-tdep.c (s390_value_from_register): Update interface
3813 and call to default_value_from_register.
3814 * spu-tdep.c (spu_value_from_register): Likewise.
3816 * findvar.c (address_from_register): Remove TYPE argument.
3817 Do not call value_from_register; use gdbarch_value_from_register
3818 with null_frame_id instead.
3819 * value.h (address_from_register): Update prototype.
3820 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3821 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3822 address_from_register interface change.
3824 2014-04-17 Yao Qi <yao@codesourcery.com>
3826 * gdbtypes.h: Update comments to link to types and macros'
3829 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3831 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3833 2014-04-16 Keith Seitz <keiths@redhat.com>
3836 * dwarf2read.c (skip_one_die): Check that all relative-offset
3837 sibling DIEs fall within range of the current reader's buffer.
3838 (read_partial_die): Likewise.
3840 2014-04-16 Keith Seitz <keiths@redhat.com>
3843 * cp-namespace.c (lookup_symbol_file): If the type name of
3844 `this' is NULL, return immediately.
3846 2014-04-14 Keith Seitz <keiths@redhat.com>
3849 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3850 from symbol_matches_domain in symtab.c. All local callers
3851 of symbol_matches_domain updated.
3852 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3853 search STRUCT_DOMAIN.
3854 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3855 independently. standard_lookup will do that automatically.
3856 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3857 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3858 (cp_lookup_symbol_in_namespace): Likewise.
3859 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3860 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3861 may return a STRUCT_DOMAIN match.
3862 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3863 * cp-support.c: Include language.h.
3864 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3866 * psymtab.c (match_partial_symbol): Compare the requested
3867 domain with the symbol's domain directly.
3868 (lookup_partial_symbol): Likewise.
3869 * symtab.c (lookup_symbol_in_language): Explain when/why
3870 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3871 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3872 appropriate languages.
3873 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3874 and moved to ada-lang.c
3875 (lookup_block_symbol): Explain that this function only returns
3876 symbol matching the requested DOMAIN.
3877 Compare the requested domain with the symbol's domain directly.
3878 (iterate_over_symbols): Compare the requested domain with the
3879 symbol's domain directly.
3880 * symtab.h (symbol_matches_domain): Remove.
3882 2014-04-14 Tom Tromey <tromey@redhat.com>
3885 * c-exp.y (type_aggregate_p): New function.
3886 (qualified_name, classify_inner_name): Use it.
3887 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3888 and TYPE_TARGET_TYPE of an enum type.
3889 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3891 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3892 handle TYPE_DECLARED_CLASS.
3893 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3895 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3896 * valops.c (enum_constant_from_type): New function.
3897 (value_aggregate_elt): Use it.
3898 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3901 2014-04-14 Tom Tromey <tromey@redhat.com>
3903 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3904 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3906 * value.h (value_aggregate_elt): Update.
3908 2014-04-14 Tom Tromey <tromey@redhat.com>
3910 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3912 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3914 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3915 (evaluate_subexp_standard): Pass noside argument.
3916 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3917 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3918 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3919 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3920 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3922 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3924 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3925 points to a constant blob.
3927 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3929 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3930 property and store it as the high bound and flag the range accordingly.
3931 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3932 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3933 * gdbtypes.h (enum range_flags): New enum.
3934 (struct range_bounds): Add flags member.
3936 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3938 * c-typeprint.c (c_type_print_varspec_suffix): Added
3939 check for not yet resolved high bound. If unresolved, print
3940 "variable length" string to the console instead of random
3943 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3945 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3947 (ada_template_to_fixed_record_type_1): Likewise.
3948 (ada_to_fixed_type_1): Likewise.
3949 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3950 (cp_print_value): Likewise.
3951 * d-valprint.c (dynamic_array_type): Likewise.
3952 * findvar.c (address_of_variable): Likewise.
3953 * jv-valprint.c (java_value_print): Likewise.
3954 * valops.c (value_ind): Likewise.
3955 * value.c (coerce_ref): Likewise.
3957 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3959 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3960 value and retrieve the dynamic type size.
3962 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3964 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3965 passed to sizeof is dynamic evaluate the argument to compute the length.
3967 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3968 Joel Brobecker <brobecker@adacore.com>
3970 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3971 (dwarf2_evaluate_property): New function.
3972 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3973 * dwarf2read.c (attr_to_dynamic_prop): New function.
3974 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3976 * gdbtypes.c: Include dwarf2loc.h.
3977 (is_dynamic_type): New function.
3978 (resolve_dynamic_type): New function.
3979 (resolve_dynamic_bounds): New function.
3980 (get_type_length): New function.
3981 (check_typedef): Use get_type_length to compute type length.
3982 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3983 (TYPE_LOW_BOUND_KIND): New macro.
3984 (is_dynamic_type): New function prototype.
3985 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3986 to resolve dynamic properties of the type. Update comment.
3987 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3989 2014-04-14 Richard Henderson <rth@redhat.com>
3991 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3993 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3994 Doug Evans <xdje42@gmail.com>
3996 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3997 dereference TYPE_CODE_REF values.
3999 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4001 Revert the following changes due to regressions:
4003 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4004 (dwarf2_evaluate_property): New function.
4005 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4006 * dwarf2read.c (attr_to_dynamic_prop): New function.
4007 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4009 * gdbtypes.c: Include dwarf2loc.h.
4010 (is_dynamic_type): New function.
4011 (resolve_dynamic_type): New function.
4012 (resolve_dynamic_bounds): New function.
4013 (get_type_length): New function.
4014 (check_typedef): Use get_type_length to compute type length.
4015 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4016 (TYPE_LOW_BOUND_KIND): New macro.
4017 (is_dynamic_type): New function prototype.
4018 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4019 to resolve dynamic properties of the type. Update comment.
4020 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4022 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4023 passed to sizeof is dynamic evaluate the argument to compute the length.
4025 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4026 value and retrieve the dynamic type size.
4028 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4029 (ada_template_to_fixed_record_type_1): Likewise.
4030 (ada_to_fixed_type_1): Likewise.
4031 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4032 (cp_print_value): Likewise.
4033 * d-valprint.c (dynamic_array_type): Likewise.
4034 * eval.c (evaluate_subexp_with_coercion): Likewise.
4035 * findvar.c (address_of_variable): Likewise.
4036 * jv-valprint.c (java_value_print): Likewise.
4037 * valops.c (value_ind): Likewise.
4038 * value.c (coerce_ref): Likewise.
4040 * c-typeprint.c (c_type_print_varspec_suffix): Added
4041 check for not yet resolved high bound. If unresolved, print
4042 "variable length" string to the console instead of random
4045 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4046 property and store it as the high bound and flag the range accordingly.
4047 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4048 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4049 * gdbtypes.h (enum range_flags): New enum.
4050 (struct range_bounds): Add flags member.
4052 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4053 points to a constant blob.
4055 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4056 (evaluate_subexp_standard): Pass noside argument.
4057 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4058 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4059 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4060 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4061 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4063 2014-04-11 Keith Seitz <keiths@redhat.com>
4066 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4067 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4070 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4072 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4073 (evaluate_subexp_standard): Pass noside argument.
4074 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4075 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4076 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4077 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4078 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4080 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4082 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4083 points to a constant blob.
4085 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4087 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4088 property and store it as the high bound and flag the range accordingly.
4089 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4090 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4091 * gdbtypes.h (enum range_flags): New enum.
4092 (struct range_bounds): Add flags member.
4094 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4096 * c-typeprint.c (c_type_print_varspec_suffix): Added
4097 check for not yet resolved high bound. If unresolved, print
4098 "variable length" string to the console instead of random
4101 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4103 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4104 (ada_template_to_fixed_record_type_1): Likewise.
4105 (ada_to_fixed_type_1): Likewise.
4106 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4107 (cp_print_value): Likewise.
4108 * d-valprint.c (dynamic_array_type): Likewise.
4109 * eval.c (evaluate_subexp_with_coercion): Likewise.
4110 * findvar.c (address_of_variable): Likewise.
4111 * jv-valprint.c (java_value_print): Likewise.
4112 * valops.c (value_ind): Likewise.
4113 * value.c (coerce_ref): Likewise.
4115 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4117 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4118 value and retrieve the dynamic type size.
4120 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4122 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4123 passed to sizeof is dynamic evaluate the argument to compute the length.
4125 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4127 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4128 (dwarf2_evaluate_property): New function.
4129 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4130 * dwarf2read.c (attr_to_dynamic_prop): New function.
4131 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4133 * gdbtypes.c: Include dwarf2loc.h.
4134 (is_dynamic_type): New function.
4135 (resolve_dynamic_type): New function.
4136 (resolve_dynamic_bounds): New function.
4137 (get_type_length): New function.
4138 (check_typedef): Use get_type_length to compute type length.
4139 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4140 (TYPE_LOW_BOUND_KIND): New macro.
4141 (is_dynamic_type): New function prototype.
4142 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4143 to resolve dynamic properties of the type. Update comment.
4144 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4146 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4148 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4149 declaring high/low bounds and change uses accordingly. Call
4150 create_range_type instead of create_static_range_type.
4151 * gdbtypes.c (create_range_type): New function.
4152 (create_range_type): Convert bounds into struct bound_prop and pass
4153 them to create_range_type.
4154 * gdbtypes.h (struct bound_prop): New struct.
4155 (create_range_type): New function prototype.
4156 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4157 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4158 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4160 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4162 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4164 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4165 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4166 * ada-lang.c: All uses of create_range_type updated.
4167 * coffread.c: All uses of create_range_type updated.
4168 * dwarf2read.c: All uses of create_range_type updated.
4169 * f-exp.y: All uses of create_range_type updated.
4170 * m2-valprint.c: All uses of create_range_type updated.
4171 * mdebugread.c: All uses of create_range_type updated.
4172 * stabsread.c: All uses of create_range_type updated.
4173 * valops.c: All uses of create_range_type updated.
4174 * valprint.c: All uses of create_range_type updated.
4176 2014-04-10 Pedro Alves <palves@redhat.com>
4178 * breakpoint.c (single_step_breakpoints)
4179 (single_step_gdbarch): Move up in the file.
4180 (one_breakpoint_xfer_memory): New function, factored out from ...
4181 (breakpoint_xfer_memory): ... here. Also process single-step
4184 2014-04-09 Tristan Gingold <gingold@adacore.com>
4186 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4188 (darwin_decode_exception_message): Free port only after use.
4190 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4192 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4193 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4194 when setting the size of call_length.
4196 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4198 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4199 dereference TYPE_CODE_REF values.
4201 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4203 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4204 end of warning message.
4206 2014-04-03 Doug Evans <dje@google.com>
4208 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4209 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4211 2014-04-02 Alan Modra <amodra@gmail.com>
4213 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4214 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4215 (struct symbol_file_add_from_memory_args): Add size field.
4216 (find_vdso_size): New function.
4217 (add_vsyscall_page): Attempt to find vdso size.
4219 2014-04-01 Doug Evans <dje@google.com>
4221 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4223 2014-04-01 Tristan Gingold <gingold@adacore.com>
4225 * darwin-nat.c (darwin_encode_reply): Add prototype.
4226 (darwin_decode_exception_message): Reply to unknown inferiors.
4227 (darwin_decode_message): Handle message by id. Ignore message
4228 to unknown inferior.
4229 (darwin_wait): Discard unknown messages, add debug trace.
4231 2014-03-31 Doug Evans <dje@google.com>
4233 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4236 2014-03-31 Doug Evans <dje@google.com>
4238 New option "set print symbol-loading".
4240 * solib.c (solib_read_symbols): Only print symbol loading messages
4242 (solib_add): If symbol loading is in "brief" mode, notify user
4243 symbols are being loaded.
4244 (reload_shared_libraries_1): Ditto.
4245 * symfile.c (print_symbol_loading_off): New static global.
4246 (print_symbol_loading_brief): New static global.
4247 (print_symbol_loading_full): New static global.
4248 (print_symbol_loading_enums): New static global.
4249 (print_symbol_loading): New static global.
4250 (print_symbol_loading_p): New function.
4251 (symbol_file_add_with_addrs): Only print symbol loading messages
4253 (_initialize_symfile): Register "print symbol-loading" set/show
4255 * symfile.h (print_symbol_loading_p): Declare.
4257 2014-03-30 Doug Evans <xdje42@gmail.com>
4259 * infrun.c (set_last_target_status): New function.
4260 (handle_inferior_event): Call it.
4262 2014-03-30 Doug Evans <xdje42@gmail.com>
4264 * inferior.h (enum stop_kind): Improve comment.
4266 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4268 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4269 a reference, strip the reference layer before calling
4270 the lang_ops value_has_mutated callback.
4272 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4274 Remove some globals from our parser.
4275 * language.c (unk_lang_parser): Add "struct parser_state"
4277 * language.h (struct language_defn) <la_parser>: Likewise.
4278 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4279 (initialize_expout): Add "struct parser_state" argument.
4280 Rewrite function to use the parser state.
4281 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4282 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4283 write_exp_elt_longcst, write_exp_elt_dblcst,
4284 write_exp_elt_decfloatcst, write_exp_elt_type,
4285 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4286 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4287 write_dollar_variable): Likewise.
4288 (parse_exp_in_context_1): Use parser state.
4289 (insert_type_address_space): Add "struct parser_state" argument.
4291 (increase_expout_size): New function.
4292 * parser-defs.h: Forward declare "struct language_defn" and
4293 "struct parser_state".
4294 (expout, expout_size, expout_ptr): Remove extern declarations.
4295 (parse_gdbarch, parse_language): Rewrite macro declarations to
4296 accept the parser state.
4297 (struct parser_state): New struct.
4298 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4299 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4300 write_exp_elt_decfloatcst, write_exp_elt_type,
4301 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4302 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4303 write_exp_msymbol, write_dollar_variable,
4304 mark_struct_expression, insert_type_address_space): Add "struct
4305 parser_state" argument.
4306 (increase_expout_size): New function.
4307 * utils.c (do_clear_parser_state): New function.
4308 (make_cleanup_clear_parser_state): Likewise.
4309 * utils.h (make_cleanup_clear_parser_state): New function
4311 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4312 Update calls to write_exp* in order to pass the parser state.
4313 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4314 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4315 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4316 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4317 * stap-probe.c (stap_parse_register_operand): Likewise.
4318 (stap_parse_single_operand): Likewise.
4319 (stap_parse_argument_1): Likewise.
4320 (stap_parse_argument): Use parser state.
4321 * stap-probe.h: Include "parser-defs.h".
4322 (struct stap_parse_info) <pstate>: New field.
4323 * c-exp.y (parse_type): Rewrite to use parser state.
4324 (yyparse): Redefine to c_parse_internal.
4325 (pstate): New global variable.
4326 (parse_number): Add "struct parser_state" argument.
4327 (write_destructor_name): Likewise.
4328 (type_exp): Update calls to write_exp* and similars in order to
4330 (exp1, exp, variable, qualified_name, space_identifier,
4331 typename, typebase): Likewise.
4332 (write_destructor_name, parse_number, lex_one_token,
4333 classify_name, classify_inner_name, c_parse): Add "struct
4334 parser_state" argument. Update function to use parser state.
4335 * c-lang.h: Forward declare "struct parser_state".
4336 (c_parse): Add "struct parser_state" argument.
4337 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4338 (yyparse): Redefine macro to ada_parse_internal.
4339 (pstate): New variable.
4340 (write_int, write_object_renaming, write_var_or_type,
4341 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4342 type_int, type_long, type_long_long, type_float, type_double,
4343 type_long_double, type_char, type_boolean, type_system_address):
4344 Add "struct parser_state" argument.
4345 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4346 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4347 var_or_type, aggregate, aggregate_component_list,
4348 positional_list, others, component_group,
4349 component_associations): Update calls to write_exp* and similar
4350 functions in order to use parser state.
4351 (ada_parse, write_var_from_sym, write_int,
4352 write_exp_op_with_string, write_object_renaming,
4353 find_primitive_type, write_selectors, write_ambiguous_var,
4354 write_var_or_type, write_name_assoc, type_int, type_long,
4355 type_long_long, type_float, type_double, type_long_double,
4356 type_char, type_boolean, type_system_address): Add "struct
4357 parser_state" argument. Adjust function to use parser state.
4358 * ada-lang.c (parse): Likewise.
4359 * ada-lang.h: Forward declare "struct parser_state".
4360 (ada_parse): Add "struct parser_state" argument.
4361 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4362 calls to both functions.
4363 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4365 (yyparse): Redefine macro to f_parse_internal.
4366 (pstate): New variable.
4367 (parse_number): Add "struct parser_state" argument.
4368 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4369 and similars in order to use parser state.
4370 (parse_number): Adjust code to use parser state.
4372 (f_parse): New function.
4373 * f-lang.h: Forward declare "struct parser_state".
4374 (f_parse): Add "struct parser_state" argument.
4375 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4377 (yyparse): Redefine macro for java_parse_internal.
4378 (pstate): New variable.
4379 (push_expression_name, push_expression_name, insert_exp): Add
4380 "struct parser_state" argument.
4381 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4382 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4383 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4384 PostIncrementExpression, PostDecrementExpression,
4385 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4386 UnaryExpressionNotPlusMinus, CastExpression,
4387 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4388 RelationalExpression, EqualityExpression, AndExpression,
4389 ExclusiveOrExpression, InclusiveOrExpression,
4390 ConditionalAndExpression, ConditionalOrExpression,
4391 ConditionalExpression, Assignment, LeftHandSide): Update
4392 calls to write_exp* and similars in order to use parser state.
4393 (parse_number): Ajust code to use parser state.
4395 (java_parse): New function.
4396 (push_variable): Add "struct parser_state" argument. Adjust
4397 code to user parser state.
4398 (push_fieldnames, push_qualified_expression_name,
4399 push_expression_name, insert_exp): Likewise.
4400 * jv-lang.h: Forward declare "struct parser_state".
4401 (java_parse): Add "struct parser_state" argument.
4402 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4404 (yyparse): Redefine macro to m2_parse_internal.
4405 (pstate): New variable.
4406 (type_exp, exp, fblock, variable, type): Update calls to
4407 write_exp* and similars to use parser state.
4409 (m2_parse): New function.
4410 * m2-lang.h: Forward declare "struct parser_state".
4411 (m2_parse): Add "struct parser_state" argument.
4412 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4413 * objc-lang.h: Forward declare "struct parser_state".
4414 (end_msglist): Add "struct parser_state" argument.
4415 * p-exp.y (parse_type): Rewrite macro to use parser state.
4416 (yyparse): Redefine macro to pascal_parse_internal.
4417 (pstate): New variable.
4418 (parse_number): Add "struct parser_state" argument.
4419 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4420 write_exp* and similars in order to use parser state.
4421 (parse_number, yylex): Adjust code to use parser state.
4422 (pascal_parse): New function.
4423 * p-lang.h: Forward declare "struct parser_state".
4424 (pascal_parse): Add "struct parser_state" argument.
4425 * go-exp.y (parse_type): Rewrite macro to use parser state.
4426 (yyparse): Redefine macro to go_parse_internal.
4427 (pstate): New variable.
4428 (parse_number): Add "struct parser_state" argument.
4429 (type_exp, exp1, exp, variable, type): Update calls to
4430 write_exp* and similars in order to use parser state.
4431 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4432 to use parser state.
4433 (go_parse): Likewise.
4434 * go-lang.h: Forward declare "struct parser_state".
4435 (go_parse): Add "struct parser_state" argument.
4437 2014-03-27 Doug Evans <dje@google.com>
4439 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4441 2014-03-27 Doug Evans <dje@google.com>
4443 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4444 Remove argument abbrev_section. All callers updated.
4446 2014-03-27 Doug Evans <dje@google.com>
4448 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4449 addr_base, ranges_base.
4451 2014-03-26 Keith Seitz <keiths@redhat.com>
4453 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4454 types, not VAR_DOMAIN.
4456 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4458 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4460 * features/nios2-linux.c: Regenerated.
4461 * features/nios2.c: Regenerated.
4463 2014-03-25 Pedro Alves <palves@redhat.com>
4465 * cli/cli-script.c (script_from_file): Force the interpreter to
4468 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4470 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4471 small stack allocation.
4473 2014-03-24 Tristan Gingold <gingold@adacore.com>
4475 * darwin-nat.c (exc_server): Remove unused prototype.
4476 (darwin_dump_message): Correctly display data on x86_64.
4477 (darwin_encode_reply): Fix style.
4478 Add comments and fix indentation.
4480 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4482 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4484 2014-03-22 Doug Evans <xdje42@gmail.com>
4486 * infcmd.c: Whitespace fixes.
4487 (interrupt_command): Merge two function comments into one.
4489 2014-03-22 Doug Evans <xdje42@gmail.com>
4491 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4494 2014-03-22 Yao Qi <yao@codesourcery.com>
4496 * remote.c (target_read_live_memory): Remove.
4497 (memory_xfer_live_readonly_partial): Rename it to
4498 remote_xfer_live_readonly_partial. Remove argument 'object'.
4499 All callers updated. Call remote_read_bytes_1
4500 instead of target_read_live_memory.
4501 * tracepoint.c (set_traceframe_number): Remove.
4502 (make_cleanup_restore_traceframe_number): Likewise .
4503 * tracepoint.h (set_traceframe_number): Remove declaration.
4504 (make_cleanup_restore_traceframe_number): Likewise.
4506 2014-03-22 Yao Qi <yao@codesourcery.com>
4508 * remote.c (remote_read_bytes): Move code on reading from the
4510 (remote_read_bytes_1): ... here. New function.
4512 2014-03-22 Yao Qi <yao@codesourcery.com>
4514 * ctf.c (ctf_xfer_partial): Check the return value of
4515 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4516 return TARGET_XFER_UNAVAILABLE.
4517 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4518 * target.c (target_read_live_memory): Move it to remote.c.
4519 (memory_xfer_live_readonly_partial): Likewise.
4520 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4521 * remote.c (target_read_live_memory): Moved from target.c.
4522 (memory_xfer_live_readonly_partial): Likewise.
4523 (remote_read_bytes): Factored out from
4524 memory_xfer_partial_1.
4526 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4528 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4531 2014-03-21 Pedro Alves <palves@redhat.com>
4533 * infrun.c (normal_stop): Extend comment.
4535 2014-03-21 Hui Zhu <hui@codesourcery.com>
4536 Pedro Alves <palves@redhat.com>
4538 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4540 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4541 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4542 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4544 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4546 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4547 `z' formatted output modifier.
4549 2014-03-20 Tom Tromey <tromey@redhat.com>
4550 Sergio Durigan Junior <sergiodj@redhat.com>
4552 * probe.c (parse_probes): Turn assert into an ordinary error.
4553 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4554 exceptions when parsing probes. Rearrange the code for clarity.
4556 2014-03-20 Tom Tromey <tromey@redhat.com>
4559 * top.c (execute_command): Only dispatch events if the command
4562 2014-03-20 Tom Tromey <tromey@redhat.com>
4565 * infcall.c: Include event-top.h.
4566 (run_inferior_call): Call async_disable_stdin if needed.
4568 2014-03-20 Pedro Alves <palves@redhat.com>
4570 * infrun.c (prepare_to_proceed): Delete.
4571 (thread_still_needs_step_over): New function.
4572 (find_thread_needs_step_over): New function.
4573 (proceed): If the current thread needs a step-over, set its
4574 steping_over_breakpoint flag. Adjust to use
4575 find_thread_needs_step_over instead of prepare_to_proceed.
4576 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4577 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4579 (switch_back_to_stepped_thread): Step over breakpoints of all
4580 threads not the stepping thread, before switching back to the
4583 2014-03-20 Pedro Alves <palves@redhat.com>
4585 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4587 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4588 * infrun.c (saved_singlestep_ptid)
4589 (stepping_past_singlestep_breakpoint): Delete.
4590 (resume): Remove stepping_past_singlestep_breakpoint handling.
4591 (proceed): Store the prev_pc of the stepping thread too.
4592 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4594 (enum infwait_states): Delete infwait_thread_hop_state.
4595 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4597 (handle_inferior_event): Adjust.
4598 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4599 handling and the thread-hop code. Before removing single-step
4600 breakpoints, check whether the thread hit a single-step breakpoint
4601 of another thread. If it did, the trap is not a random signal.
4602 (switch_back_to_stepped_thread): If the event thread hit a
4603 single-step breakpoint, unblock it before switching to the
4604 stepping thread. Handle the case of the stepped thread having
4606 (keep_going): Handle the case of the current thread moving past a
4607 single-step breakpoint.
4609 2014-03-20 Pedro Alves <palves@redhat.com>
4612 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4613 are being stepped over.
4614 (breakpoint_address_match): Make extern.
4615 * breakpoint.h (breakpoint_address_match): New declaration.
4616 * inferior.h (stepping_past_instruction_at): New declaration.
4617 * infrun.c (struct step_over_info): New type.
4618 (step_over_info): New global.
4619 (set_step_over_info, clear_step_over_info)
4620 (stepping_past_instruction_at): New functions.
4621 (handle_inferior_event): Clear the step-over info when
4622 trap_expected is cleared.
4623 (resume): Remove now stale comment.
4624 (clear_proceed_status): Clear step-over info.
4625 (proceed): Adjust step-over handling to set or clear the step-over
4626 info instead of removing all breakpoints.
4627 (handle_signal_stop): When setting up a thread-hop, don't remove
4629 (stop_stepping): Clear step-over info.
4630 (keep_going): Adjust step-over handling to set or clear step-over
4631 info and then always inserting breakpoints, instead of removing
4632 all breakpoints when stepping over one.
4634 2014-03-20 Pedro Alves <palves@redhat.com>
4636 * infrun.c (previous_inferior_ptid): Adjust comment.
4637 (deferred_step_ptid): Delete.
4638 (infrun_thread_ptid_changed, prepare_to_proceed)
4639 (init_wait_for_inferior): Adjust.
4640 (handle_signal_stop): Delete deferred_step_ptid handling.
4642 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4645 * defs.h (sync_quit_force_run): New declaration.
4646 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4647 * event-top.c (async_sigterm_handler): New declaration.
4648 (async_sigterm_token): New variable.
4649 (async_init_signals): Create also async_sigterm_token.
4650 (async_sigterm_handler): New function.
4651 (sync_quit_force_run): New variable.
4652 (handle_sigterm): Replace quit_force call by other calls.
4653 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4655 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4657 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4658 offset into SPE pseudo registers.
4660 2014-03-18 Pedro Alves <palves@redhat.com>
4663 * inferior.h (print_stop_event): Declare.
4664 * infrun.c (print_stop_event): New, factored out from ...
4665 (normal_stop): ... this.
4666 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4667 of bpstat_print/print_stack_frame.
4669 2014-03-17 Tom Tromey <tromey@redhat.com>
4671 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4673 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4675 * ada-lang.c (decode_constrained_packed_array): Perform a
4676 minimal coercion for reference with coerce_ref instead of
4679 2014-03-17 Tristan Gingold <gingold@adacore.com>
4681 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4682 (darwin_solib_create_inferior_hook): Emit a warning if version
4685 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4687 * python/py-value.c (get_field_flag): Cast flag_name argument to
4688 PyObject_GetAttrString to support Python 2.4.
4690 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4692 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4693 (Global Maintainers): Remove Jan Kratochvil.
4695 2014-03-14 Pedro Alves <palves@redhat.com>
4697 * inferior.h (terminal_ours_for_output): Rename to ...
4698 (child_terminal_ours_for_output): ... this.
4699 (terminal_save_ours): Rename to ...
4700 (child_terminal_save_ours): ... this.
4701 (terminal_ours): Rename to ...
4702 (child_terminal_ours): ... this.
4703 (terminal_inferior): Rename to ...
4704 (child_terminal_inferior): ... this.
4705 (terminal_init_inferior): Rename to ...
4706 (child_terminal_init_inferior): ... this.
4707 (terminal_init_inferior_with_pgrp): Rename to ...
4708 (child_terminal_init_inferior_with_pgrp): ... this.
4709 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4710 (child_terminal_init_with_pgrp): ... this.
4711 (terminal_save_ours): Rename to ...
4712 (child_terminal_save_ours): ... this.
4713 (terminal_init_inferior): Rename to ...
4714 (child_terminal_init): ... this. Adjust.
4715 (terminal_inferior): Rename to ...
4716 (child_terminal_inferior): ... this.
4717 (terminal_ours_for_output): Rename to ...
4718 (child_terminal_ours_for_output): ... this. Adjust.
4719 (terminal_ours): Rename to ...
4720 (child_terminal_ours): ... this.
4721 (terminal_ours_1): Rename to ...
4722 (child_terminal_ours_1): ... this. Adjust.
4723 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4724 * windows-nat.c (do_initial_windows_stuff): Adjust.
4725 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4726 (gnu_terminal_init): ... this. Adjust.
4727 (gnu_target): Adjust.
4728 * inf-child.c (inf_child_target): Adjust.
4730 2014-03-13 Doug Evans <xdje42@gmail.com>
4733 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4736 2014-03-13 Doug Evans <xdje42@gmail.com>
4738 * value.c (record_latest_value): Call release_value_or_incref
4739 instead of release_value.
4741 2014-03-13 Pedro Alves <palves@redhat.com>
4743 * procfs.c (procfs_target): Don't override to_shortname,
4744 to_longname or to_doc.
4746 2014-03-13 Pedro Alves <palves@redhat.com>
4748 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4749 Unix in user visible strings.
4751 2014-03-12 Stan Shebs <stan@codesourcery.com>
4753 * gdbtypes.h: Annotate comments for Doxygen, add a page
4754 block comment with some general info.
4756 2014-03-12 Pedro Alves <palves@redhat.com>
4758 * infcmd.c (prepare_execution_command): New function, factored out
4759 from several execution commands.
4760 (run_command_1, continue_command, step_1, jump_command)
4761 (signal_command, until_command, advance_command, finish_command)
4762 (attach_command): Use prepare_execution_command.
4764 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4766 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4769 (struct arm_linux_thread_points): Removed.
4770 (struct arm_linux_process_info): New.
4771 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4772 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4773 (arm_linux_find_breakpoints_by_tid): Removed.
4774 (struct arch_lwp_info): New.
4775 (arm_linux_find_process_pid): New functions.
4776 (arm_linux_add_process): New functions.
4777 (arm_linux_process_info_get): New functions.
4778 (arm_linux_forget_process): New function.
4779 (arm_linux_get_debug_reg_state): New function.
4780 (struct update_registers_data): New.
4781 (update_registers_callback): New function.
4782 (arm_linux_insert_hw_breakpoint1): Updated.
4783 (arm_linux_remove_hw_breakpoint1): Updated.
4784 (arm_linux_insert_hw_breakpoint): Updated.
4785 (arm_linux_remove_hw_breakpoint): Updated.
4786 (arm_linux_insert_watchpoint): Updated.
4787 (arm_linux_remove_watchpoint): Updated.
4788 (arm_linux_new_thread): Updated.
4789 (arm_linux_prepare_to_resume): New function.
4790 (arm_linux_new_fork): New function.
4791 (_initialize_arm_linux_nat): Updated.
4793 2014-03-12 Pedro Alves <palves@redhat.com>
4795 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4797 2014-03-12 Tom Tromey <tromey@redhat.com>
4799 * inf-child.c (return_zero): New function.
4800 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4801 * aix-thread.c (aix_thread_inferior_created): New function.
4802 (aix_thread_attach): Remove.
4803 (init_aix_thread_ops): Don't set to_attach.
4804 (_initialize_aix_thread): Register inferior_created observer.
4805 * corelow.c (init_core_ops): Don't set to_attach or
4807 * exec.c (init_exec_ops): Don't set to_attach or
4809 * infcmd.c (run_command_1): Use find_run_target. Make direct
4811 (attach_command): Use find_attach_target. Make direct target
4813 * record-btrace.c (init_record_btrace_ops): Don't set
4815 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4817 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4818 set to_create_inferior.
4819 * target.c (complete_target_initialization): Add assertion.
4820 (target_create_inferior): Remove.
4821 (find_default_attach, find_default_create_inferior): Remove.
4822 (find_attach_target, find_run_target): New functions.
4823 (find_default_is_async_p, find_default_can_async_p)
4824 (target_supports_non_stop, target_attach): Remove.
4825 (init_dummy_target): Don't set to_create_inferior or
4826 to_supports_non_stop.
4827 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4828 TARGET_DEFAULT_FUNC.
4829 <to_create_inferior>: Add comment.
4830 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4831 TARGET_DEFAULT_RETURN.
4832 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4833 (find_attach_target, find_run_target): Declare.
4834 (target_create_inferior): Remove.
4835 (target_has_execution_1): Update comment.
4836 (target_supports_non_stop): Remove.
4837 * target-delegates.c: Rebuild.
4839 2014-03-12 Pedro Alves <palves@redhat.com>
4841 * inf-child.h: Update comment to not mention Unix.
4843 2014-03-12 Pedro Alves <palves@redhat.com>
4845 * inf-child.c: Update top comment to not mention Unix. Add
4846 generic comment describing how this target is meant to be used.
4847 (inf_child_post_attach, inf_child_post_startup_inferior)
4848 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4851 2014-03-12 Pedro Alves <palves@redhat.com>
4853 * nto-procfs.c: Include inf-child.h.
4854 (procfs_ops): Delete global.
4855 (procfs_can_run): Delete method.
4856 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4857 target pointer instead of referencing procfs_ops.
4858 (procfs_prepare_to_store): Delete.
4859 (init_procfs_ops): Delete function.
4860 (procfs_target): New function, based on init_procfs_ops, but
4861 inherit inf_child_target.
4862 (_initialize_procfs): Use procfs_target.
4864 2014-03-12 Pedro Alves <palves@redhat.com>
4866 * windows-nat.c: Include inf-child.h.
4867 (windows_ops): Delete global.
4868 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4870 (init_windows_ops): Delete function.
4871 (windows_target): New function, based on init_windows_ops, but
4872 inherit inf_child_target.
4873 (_initialize_windows_nat): Use windows_target. Install x86
4874 specific target methods here.
4876 2014-03-10 Doug Evans <xdje42@gmail.com>
4878 * guile/guile.c (call_initialize_gdb_module): New function.
4879 (initialize_guile): Replace call to scm_init_guile with call to
4882 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4884 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4885 in call to TYPE_CODE macro.
4887 2014-03-10 Jerome Guitton <guitton@adacore.com>
4889 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4890 Resolve tagged types to full view.
4892 2014-03-10 Hui Zhu <hui@codesourcery.com>
4894 * target.h (target_insert_breakpoint): Remove "hardware" from its
4897 2014-03-07 Doug Evans <dje@google.com>
4899 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4901 2014-03-07 Doug Evans <dje@google.com>
4903 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4904 Remove unused local comp_dir_attr. Assert exactly one of
4905 stub_comp_unit_die, stub_comp_dir is non-NULL.
4907 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4909 * target.h (complete_target_initialization, add_target):
4912 2014-03-07 Pedro Alves <palves@redhat.com>
4914 * go32-nat.c: Include inf-child.h.
4915 (go32_ops): Delete global.
4916 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4918 (go32_create_inferior): Push the passed in target pointer instead
4919 of referencing go32_ops.
4920 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4921 (go32_target): New function, based on init_go32_ops, but inherit
4923 (_initialize_go32_nat): Use go32_target. Move parts of
4926 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4928 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4929 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4930 SYMBOL_VALUE_ADDRESS.
4931 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4933 2014-03-06 Yao Qi <yao@codesourcery.com>
4935 * breakpoint.c (get_tracepoint_by_number): Remove argument
4936 optional_p. All callers updated. Adjust comments. Update
4938 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4940 2014-03-06 Yao Qi <yao@codesourcery.com>
4942 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4943 early if get_number returns zero. Use 'p' instead of 'args'.
4945 2014-03-06 Yao Qi <yao@codesourcery.com>
4947 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4950 2014-03-06 Yao Qi <yao@codesourcery.com>
4952 PR breakpoints/16508
4953 * tracepoint.c (check_trace_running): New function.
4954 (trace_find_command): Move code to check_trace_running and
4955 call check_trace_running.
4956 (trace_find_pc_command): Likewise.
4957 (trace_find_tracepoint_command): Likewise.
4958 (trace_find_line_command): Likewise.
4959 (trace_find_range_command): Likewise.
4960 * tracepoint.h (check_trace_running): Likewise.
4961 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4963 2014-03-06 Yao Qi <yao@codesourcery.com>
4965 * target.h (struct target_ops) <to_traceframe_info>: Use
4966 TARGET_DEFAULT_NORETURN (tcomplain ()).
4967 * target-delegates.c: Regenerated.
4969 2014-03-05 Pedro Alves <palves@redhat.com>
4972 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4973 void. Update comment.
4974 (dcache_xfer_memory): Delete.
4975 (dcache_read_memory_partial): New, based on the read bits of
4977 (dcache_update): Add status parameter. Use ULONGEST for len, and
4978 adjust. Discard cache lines if the reason for the update was
4980 * dcache.h (dcache_xfer_memory): Delete declaration.
4981 (dcache_read_memory_partial): New declaration.
4982 (dcache_update): Update prototype.
4983 * target.c (raw_memory_xfer_partial): Update the dcache here.
4984 (memory_xfer_partial_1): Don't handle dcache writes here.
4986 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4988 * remote-sim.c (gdbsim_load): Add const to prog.
4990 2014-03-03 Tom Tromey <tromey@redhat.com>
4992 * elfread.c (probe_key): Change to bfd_data.
4993 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4994 now per-BFD, not per-objfile.
4995 * stap-probe.c (stap_probe_destroy): Update comment.
4996 (handle_stap_probe): Allocate on the per-BFD obstack.
4998 2014-03-03 Tom Tromey <tromey@redhat.com>
5000 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5001 * breakpoint.c (create_longjmp_master_breakpoint): Use
5003 (add_location_to_breakpoint, bkpt_probe_insert_location)
5004 (bkpt_probe_remove_location): Update.
5005 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5006 * elfread.c (elf_symfile_relocate_probe): Remove.
5007 (elf_probe_fns): Update.
5008 (insert_exception_resume_breakpoint): Change type of "probe"
5009 parameter to bound_probe.
5010 (check_exception_resume): Update.
5011 * objfiles.c (objfile_relocate1): Don't relocate probes.
5012 * probe.c (bound_probe_s): New typedef.
5013 (parse_probes): Use get_probe_address. Set sal's objfile.
5014 (find_probe_by_pc): Return a bound_probe.
5015 (collect_probes): Return a VEC(bound_probe_s).
5016 (compare_probes): Update.
5017 (gen_ui_out_table_header_info): Change type of "probes"
5019 (info_probes_for_ops): Update.
5020 (get_probe_address): New function.
5021 (probe_safe_evaluate_at_pc): Update.
5022 * probe.h (struct probe_ops) <get_probe_address>: New field.
5023 <set_semaphore, clear_semaphore>: Add objfile parameter.
5024 (struct probe) <objfile>: Remove field.
5026 <address>: Update comment.
5027 (struct bound_probe): New.
5028 (find_probe_by_pc): Return a bound_probe.
5029 (get_probe_address): Declare.
5030 * solib-svr4.c (struct probe_and_action) <address>: New field.
5031 (hash_probe_and_action, equal_probe_and_action): Update.
5032 (register_solib_event_probe): Add address parameter.
5033 (solib_event_probe_at): Update.
5034 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5036 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5037 (stap_get_probe_address): New function.
5038 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5039 (compile_probe_arg): Update.
5040 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5042 (handle_stap_probe): Don't relocate the probe.
5043 (stap_relocate): Remove.
5044 (stap_gen_info_probes_table_values): Update.
5045 (stap_probe_ops): Remove stap_relocate.
5046 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5047 (debug_sym_probe_fns): Update.
5048 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5049 * symtab.c (init_sal): Use memset.
5050 * symtab.h (struct symtab_and_line) <objfile>: New field.
5051 * tracepoint.c (start_tracing, stop_tracing): Update.
5053 2014-03-03 Tom Tromey <tromey@redhat.com>
5055 * probe.h (parse_probes, find_probe_by_pc)
5056 (find_probes_in_objfile): Fix comments.
5058 2014-03-02 Doug Evans <xdje42@gmail.com>
5060 * infrun.c (handle_signal_stop): Replace test for
5061 TARGET_WAITKIND_STOPPED with an assert.
5063 2014-03-02 Doug Evans <xdje42@gmail.com>
5065 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5067 2014-03-02 Doug Evans <xdje42@gmail.com>
5069 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5071 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5073 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5075 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5077 * i386obsd-nat.c: Include "obsd-nat.h".
5078 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5080 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5082 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5084 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5086 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5088 * mips64obsd-nat.c: Include "obsd-nath".
5089 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5091 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5093 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5095 * amd64obsd-nat.c: Include "obsd-nat,h.
5096 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5098 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5100 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5102 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5103 (find_overload_match): Update call to find_oload_champ.
5104 (find_oload_champ_namespace_loop): Likewise
5106 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5108 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5110 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5111 * config/sparc/obsd64.mh: New file.
5112 * sparc64obsd-nat.c: New file.
5114 * obsd-nat.h: New file.
5115 * obsd-nat.c: New file.
5116 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5117 (ALLDEPFILES): Add obsd-nat.c.
5119 2014-02-28 Tom Tromey <tromey@redhat.com>
5121 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5122 * cli-out.h (cli_ui_out_impl): Now const.
5123 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5124 * ui-out.c (struct ui_out) <impl>: Now const.
5125 (default_ui_out_impl): Now const.
5126 (ui_out_new): Make 'impl' parameter const.
5127 * ui-out.h (ui_out_new): Update.
5129 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5131 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5133 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5135 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5137 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5139 Additional PR 8882 fix.
5140 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5142 2014-02-27 Pedro Alves <palves@redhat.com>
5144 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5147 2014-02-27 Pedro Alves <palves@redhat.com>
5150 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5151 * nat/linux-waitpid.c: Include string.h.
5152 (status_to_str): Moved here and made extern.
5153 * nat/linux-waitpid.h (status_to_str): New declaration.
5155 2014-02-27 Hui Zhu <hui@codesourcery.com>
5158 * infrun.c (ptid_match): Move ...
5159 * common/ptid.c (ptid_match): ... here.
5160 * inferior.h (ptid_match): Move ...
5161 * common/ptid.h (ptid_match): ... here.
5163 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5165 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5166 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5169 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5171 * obsd-tdep.c (obsd_auxv_parse): New function.
5172 (obsd_init_abi): Set auxv_parse.
5174 * gdbarch.sh (auxv_parse): New.
5175 * gdbarch.h: Regenerated.
5176 * gdbarch.c: Regenerated.
5177 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5179 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5181 * guile/scm-value.c (gdbscm_history_append_x): New function.
5182 (value_functions): Add it.
5184 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5186 * dwarf2read.c (attr_value_as_address): New function.
5187 (dwarf2_find_base_address, read_call_site_scope): Use
5188 attr_value_as_address in place of DW_ADDR.
5189 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5190 the low and high addresses. Slight rework of the handling
5191 of the high pc being a constant form, and limit it to
5192 DWARF verson 4 or higher.
5193 (dwarf2_record_block_ranges): Likewise.
5194 (read_partial_die): Likewise.
5195 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5197 2014-02-26 Tom Tromey <tromey@redhat.com>
5199 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5201 2014-02-26 Tom Tromey <tromey@redhat.com>
5203 * elfread.c (elf_read_minimal_symbols): Return early if
5204 minimal symbols have already been read. Add "ei" parameter.
5205 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5206 * minsyms.c (prim_record_minimal_symbol_full): Update.
5207 * objfiles.h (struct objstats) <n_minsyms>: Move...
5208 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5209 * symmisc.c (print_objfile_statistics): Update.
5211 2014-02-26 Tom Tromey <tromey@redhat.com>
5213 * elfread.c (elf_read_minimal_symbols): New function, from
5215 (elf_symfile_read): Call it.
5217 2014-02-26 Tom Tromey <tromey@redhat.com>
5219 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5220 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5221 (lookup_minimal_symbol_solib_trampoline)
5222 (lookup_minimal_symbol_by_pc_section_1)
5223 (lookup_minimal_symbol_and_objfile): Update.
5224 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5225 Don't allocate a minimal symbol if minsyms have already been read.
5226 (build_minimal_symbol_hash_tables): Update.
5227 (install_minimal_symbols): Do nothing if minsyms already read.
5228 Use the per-BFD obstack.
5229 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5230 * objfiles.c (allocate_objfile): Call
5231 terminate_minimal_symbol_table later.
5232 (have_minimal_symbols): Update.
5233 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5234 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5235 Move from struct objfile.
5236 <minsyms_read>: New field.
5237 (struct objfile) <msymbols, minimal_symbol_count,
5238 msymbol_hash, msymbol_demangled_hash>: Move.
5239 (ALL_OBJFILE_MSYMBOLS): Update.
5240 * symfile.c (read_symbols): Set minsyms_read.
5241 (reread_symbols): Update.
5242 * symmisc.c (dump_objfile, dump_msymbols): Update.
5244 2014-02-26 Tom Tromey <tromey@redhat.com>
5246 * minsyms.c (msymbols_sort): Remove.
5247 * minsyms.h (msymbols_sort): Remove.
5248 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5249 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5250 * elfread.c (elf_symtab_read): Don't add section offsets.
5251 * xcoffread.c (record_minimal_symbol): Don't add section offset
5252 to minimal symbol address.
5253 * somread.c (text_offset, data_offset): Remove.
5254 (som_symtab_read): Don't add section offsets to minimal symbol
5256 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5257 Don't add section offsets to minimal symbols.
5258 * coffread.c (coff_symtab_read): Don't add section offsets
5259 to minimal symbol addresses.
5260 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5261 to minimal symbol addresses.
5262 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5263 section offset to minimal symbol addresses.
5264 * mdebugread.c (parse_partial_symbols): Don't add section
5265 offset to minimal symbol addresses.
5266 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5267 offset to minimal symbol addresses.
5269 2014-02-26 Tom Tromey <tromey@redhat.com>
5271 * ada-lang.c (ada_main_name): Update.
5272 (ada_add_standard_exceptions): Update.
5273 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5274 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5275 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5276 * auxv.c (ld_so_xfer_auxv): Update.
5277 * avr-tdep.c (avr_scan_prologue): Update.
5278 * ax-gdb.c (gen_var_ref): Update.
5279 * blockframe.c (get_pc_function_start)
5280 (find_pc_partial_function_gnu_ifunc): Update.
5281 * breakpoint.c (create_overlay_event_breakpoint)
5282 (create_longjmp_master_breakpoint)
5283 (create_std_terminate_master_breakpoint)
5284 (create_exception_master_breakpoint): Update.
5285 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5286 * c-valprint.c (c_val_print): Update.
5287 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5288 * common/agent.c (agent_look_up_symbols): Update.
5289 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5290 * dwarf2loc.c (call_site_to_target_addr): Update.
5291 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5292 * elfread.c (elf_gnu_ifunc_record_cache)
5293 (elf_gnu_ifunc_resolve_by_got): Update.
5294 * findvar.c (default_read_var_value): Update.
5295 * frame.c (inside_main_func): Update.
5296 * frv-tdep.c (frv_frame_this_id): Update.
5297 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5298 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5300 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5301 (hppa_hpux_find_dummy_bpaddr): Update.
5302 * hppa-tdep.c (hppa_symbol_address): Update.
5303 * infcmd.c (until_next_command): Update.
5304 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5306 * linespec.c (minsym_found, add_minsym): Update.
5307 * linux-nat.c (get_signo): Update.
5308 * linux-thread-db.c (inferior_has_bug): Update.
5309 * m32c-tdep.c (m32c_return_value)
5310 (m32c_m16c_address_to_pointer): Update.
5311 * m32r-tdep.c (m32r_frame_this_id): Update.
5312 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5313 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5314 * maint.c (maintenance_translate_address): Update.
5315 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5316 (frob_address): New function.
5317 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5318 frob_address. Rename parameter to "pc_in".
5319 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5321 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5323 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5324 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5325 * objc-lang.c (find_objc_msgsend): Update.
5326 * objfiles.c (objfile_relocate1): Update.
5327 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5328 * p-valprint.c (pascal_val_print): Update.
5329 * parse.c (write_exp_msymbol): Update.
5330 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5331 (ppc_elfv2_skip_entrypoint): Update.
5332 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5333 * printcmd.c (build_address_symbolic, msym_info)
5334 (address_info): Update.
5335 * proc-service.c (ps_pglobal_lookup): Update.
5336 * psymtab.c (find_pc_sect_psymtab_closer)
5337 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5338 Change msymbol parameter to bound_minimal_symbol.
5339 * ravenscar-thread.c (get_running_thread_id): Update.
5340 * remote.c (remote_check_symbols): Update.
5341 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5343 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5344 * solib-dsbt.c (lm_base): Update.
5345 * solib-frv.c (lm_base, main_got): Update.
5346 * solib-irix.c (locate_base): Update.
5347 * solib-som.c (som_solib_create_inferior_hook)
5348 (link_map_start): Update.
5349 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5350 * solib-svr4.c (elf_locate_base, enable_break): Update.
5351 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5352 (flush_ea_cache): Update.
5353 * stabsread.c (define_symbol, scan_file_globals): Update.
5354 * stack.c (find_frame_funname): Update.
5355 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5356 (debug_qf_find_pc_sect_symtab): Update.
5357 * symfile.c (simple_read_overlay_table)
5358 (simple_overlay_update): Update.
5359 * symfile.h (struct quick_symbol_functions)
5360 <find_pc_sect_symtab>: Change type of msymbol to
5361 bound_minimal_symbol.
5362 * symmisc.c (dump_msymbols): Update.
5363 * symtab.c (find_pc_sect_symtab_via_partial)
5364 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5365 (search_symbols, print_msymbol_info): Update.
5366 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5367 (MSYMBOL_VALUE_ADDRESS): Redefine.
5368 (BMSYMBOL_VALUE_ADDRESS): New macro.
5369 * tracepoint.c (scope_info): Update.
5370 * tui/tui-disasm.c (tui_find_disassembly_address)
5371 (tui_get_begin_asm_address): Update.
5372 * valops.c (find_function_in_inferior): Update.
5373 * value.c (value_static_field, value_fn_field): Update.
5375 2014-02-26 Tom Tromey <tromey@redhat.com>
5377 * ada-lang.c (ada_update_initial_language): Update.
5378 (ada_main_name, ada_has_this_exception_support): Update.
5379 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5380 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5381 * arm-tdep.c (arm_skip_stub): Update.
5382 * auxv.c (ld_so_xfer_auxv): Update.
5383 * avr-tdep.c (avr_scan_prologue): Update.
5384 * ax-gdb.c (gen_var_ref): Update.
5385 * breakpoint.c (struct breakpoint_objfile_data)
5386 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5387 type to bound_minimal_symbol.
5388 (create_overlay_event_breakpoint)
5389 (create_longjmp_master_breakpoint)
5390 (create_std_terminate_master_breakpoint)
5391 (create_exception_master_breakpoint): Update.
5392 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5393 * c-exp.y (classify_name): Update.
5394 * coffread.c (coff_symfile_read): Update.
5395 * common/agent.c (agent_look_up_symbols): Update.
5396 * d-lang.c (d_main_name): Update.
5397 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5398 * dec-thread.c (enable_dec_thread): Update.
5399 * dwarf2loc.c (call_site_to_target_addr): Update.
5400 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5401 * eval.c (evaluate_subexp_standard): Update.
5402 * findvar.c (struct minsym_lookup_data) <result>: Change type
5403 to bound_minimal_symbol.
5405 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5406 * frame.c (inside_main_func): Update.
5407 * frv-tdep.c (frv_frame_this_id): Update.
5408 * gcore.c (call_target_sbrk): Update.
5409 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5410 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5412 * go-lang.c (go_main_name): Update.
5413 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5414 (hppa_hpux_find_import_stub_for_addr): Update.
5415 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5416 Update. Change return type.
5417 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5419 * jit.c (jit_breakpoint_re_set_internal): Update.
5420 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5422 * linux-nat.c (get_signo): Update.
5423 * linux-thread-db.c (inferior_has_bug): Update
5424 * m32c-tdep.c (m32c_return_value)
5425 (m32c_m16c_address_to_pointer): Update.
5426 * m32r-tdep.c (m32r_frame_this_id): Update.
5427 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5428 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5429 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5430 lookup_minimal_symbol. Change return type.
5431 (lookup_minimal_symbol): Remove.
5432 (lookup_bound_minimal_symbol): Update.
5433 (lookup_minimal_symbol_text): Change return type.
5434 (lookup_minimal_symbol_solib_trampoline): Change return type.
5435 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5436 (lookup_minimal_symbol_solib_trampoline): Change return type.
5437 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5438 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5439 (value_nsstring, find_imps): Update.
5440 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5441 * p-lang.c (pascal_main_name): Update.
5442 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5443 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5444 * proc-service.c (ps_pglobal_lookup): Update.
5445 * ravenscar-thread.c (get_running_thread_msymbol): Change
5447 (has_ravenscar_runtime, get_running_thread_id): Update.
5448 * remote.c (remote_check_symbols): Update.
5449 * sol-thread.c (ps_pglobal_lookup): Update.
5450 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5451 * solib-dsbt.c (lm_base): Update.
5452 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5454 * solib-irix.c (locate_base): Update.
5455 * solib-som.c (som_solib_create_inferior_hook)
5456 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5458 * solib-spu.c (spu_enable_break): Update.
5459 * solib-svr4.c (elf_locate_base, enable_break): Update.
5460 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5461 (flush_ea_cache): Update.
5462 * stabsread.c (define_symbol): Update.
5463 * symfile.c (simple_read_overlay_table): Update.
5464 * symtab.c (find_pc_sect_line): Update.
5465 * tracepoint.c (scope_info): Update.
5466 * tui-disasm.c (tui_get_begin_asm_address): Update.
5467 * value.c (value_static_field): Update.
5469 2014-02-26 Tom Tromey <tromey@redhat.com>
5471 * minsyms.c (prim_record_minimal_symbol_full): Use
5472 SET_MSYMBOL_VALUE_ADDRESS.
5473 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5474 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5475 SET_MSYMBOL_VALUE_ADDRESS.
5476 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5477 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5479 2014-02-26 Tom Tromey <tromey@redhat.com>
5481 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5482 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5483 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5484 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5485 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5486 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5487 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5488 * ada-lang.c (ada_main_name): Update.
5489 (ada_lookup_simple_minsym): Update.
5490 (ada_make_symbol_completion_list): Update.
5491 (ada_add_standard_exceptions): Update.
5492 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5493 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5494 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5495 * arm-tdep.c (skip_prologue_function): Update.
5496 (arm_skip_stack_protector, arm_skip_stub): Update.
5497 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5498 (arm_wince_skip_main_prologue): Update.
5499 * auxv.c (ld_so_xfer_auxv): Update.
5500 * avr-tdep.c (avr_scan_prologue): Update.
5501 * ax-gdb.c (gen_var_ref): Update.
5502 * block.c (call_site_for_pc): Update.
5503 * blockframe.c (get_pc_function_start): Update.
5504 (find_pc_partial_function_gnu_ifunc): Update.
5505 * breakpoint.c (create_overlay_event_breakpoint): Update.
5506 (create_longjmp_master_breakpoint): Update.
5507 (create_std_terminate_master_breakpoint): Update.
5508 (create_exception_master_breakpoint): Update.
5509 (resolve_sal_pc): Update.
5510 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5511 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5513 * c-valprint.c (c_val_print): Update.
5514 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5515 * coffread.c (coff_symfile_read): Update.
5516 * common/agent.c (agent_look_up_symbols): Update.
5517 * dbxread.c (find_stab_function_addr): Update.
5518 (end_psymtab): Update.
5519 * dwarf2loc.c (call_site_to_target_addr): Update.
5520 (func_verify_no_selftailcall): Update.
5521 (tailcall_dump): Update.
5522 (call_site_find_chain_1): Update.
5523 (dwarf_expr_reg_to_entry_parameter): Update.
5524 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5525 (elf_gnu_ifunc_resolve_by_got): Update.
5526 * f-valprint.c (info_common_command): Update.
5527 * findvar.c (read_var_value): Update.
5528 * frame.c (get_prev_frame_1): Update.
5529 (inside_main_func): Update.
5530 * frv-tdep.c (frv_skip_main_prologue): Update.
5531 (frv_frame_this_id): Update.
5532 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5533 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5534 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5535 (gnuv3_skip_trampoline): Update.
5536 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5537 (hppa64_hpux_in_solib_call_trampoline): Update.
5538 (hppa_hpux_skip_trampoline_code): Update.
5539 (hppa64_hpux_search_dummy_call_sequence): Update.
5540 (hppa_hpux_find_import_stub_for_addr): Update.
5541 (hppa_hpux_find_dummy_bpaddr): Update.
5542 * hppa-tdep.c (hppa_symbol_address)
5543 (hppa_lookup_stub_minimal_symbol): Update.
5544 * i386-tdep.c (i386_skip_main_prologue): Update.
5545 (i386_pe_skip_trampoline_code): Update.
5546 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5547 * infcall.c (get_function_name): Update.
5548 * infcmd.c (until_next_command): Update.
5549 * jit.c (jit_breakpoint_re_set_internal): Update.
5550 (jit_inferior_init): Update.
5551 * linespec.c (minsym_found): Update.
5552 (add_minsym): Update.
5553 * linux-fork.c (info_checkpoints_command): Update.
5554 * linux-nat.c (get_signo): Update.
5555 * linux-thread-db.c (inferior_has_bug): Update.
5556 * m32c-tdep.c (m32c_return_value): Update.
5557 (m32c_m16c_address_to_pointer): Update.
5558 (m32c_m16c_pointer_to_address): Update.
5559 * m32r-tdep.c (m32r_frame_this_id): Update.
5560 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5561 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5562 * maint.c (maintenance_translate_address): Update.
5563 * minsyms.c (add_minsym_to_hash_table): Update.
5564 (add_minsym_to_demangled_hash_table): Update.
5565 (msymbol_objfile): Update.
5566 (lookup_minimal_symbol): Update.
5567 (iterate_over_minimal_symbols): Update.
5568 (lookup_minimal_symbol_text): Update.
5569 (lookup_minimal_symbol_by_pc_name): Update.
5570 (lookup_minimal_symbol_solib_trampoline): Update.
5571 (lookup_minimal_symbol_by_pc_section_1): Update.
5572 (lookup_minimal_symbol_and_objfile): Update.
5573 (prim_record_minimal_symbol_full): Update.
5574 (compare_minimal_symbols): Update.
5575 (compact_minimal_symbols): Update.
5576 (build_minimal_symbol_hash_tables): Update.
5577 (install_minimal_symbols): Update.
5578 (terminate_minimal_symbol_table): Update.
5579 (find_solib_trampoline_target): Update.
5580 (minimal_symbol_upper_bound): Update.
5581 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5582 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5583 (mips_skip_pic_trampoline_code): Update.
5584 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5585 * objc-lang.c (selectors_info): Update.
5586 (classes_info): Update.
5587 (find_methods): Update.
5588 (find_imps): Update.
5589 (find_objc_msgsend): Update.
5590 * objfiles.c (objfile_relocate1): Update.
5591 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5592 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5593 * p-valprint.c (pascal_val_print): Update.
5594 * parse.c (write_exp_msymbol): Update.
5595 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5596 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5597 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5598 * printcmd.c (build_address_symbolic): Update.
5600 (address_info): Update.
5601 * proc-service.c (ps_pglobal_lookup): Update.
5602 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5603 (find_pc_sect_psymtab): Update.
5604 * python/py-framefilter.c (py_print_frame): Update.
5605 * ravenscar-thread.c (get_running_thread_id): Update.
5606 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5608 * remote.c (remote_check_symbols): Update.
5609 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5610 (rs6000_skip_trampoline_code): Update.
5611 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5612 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5613 * solib-dsbt.c (lm_base): Update.
5614 * solib-frv.c (lm_base): Update.
5616 * solib-irix.c (locate_base): Update.
5617 * solib-som.c (som_solib_create_inferior_hook): Update.
5618 (som_solib_desire_dynamic_linker_symbols): Update.
5619 (link_map_start): Update.
5620 * solib-spu.c (spu_enable_break): Update.
5621 (ocl_enable_break): Update.
5622 * solib-svr4.c (elf_locate_base): Update.
5623 (enable_break): Update.
5624 * spu-tdep.c (spu_get_overlay_table): Update.
5625 (spu_catch_start): Update.
5626 (flush_ea_cache): Update.
5627 * stabsread.c (define_symbol): Update.
5628 (scan_file_globals): Update.
5629 * stack.c (find_frame_funname): Update.
5630 (frame_info): Update.
5631 * symfile.c (simple_read_overlay_table): Update.
5632 (simple_overlay_update): Update.
5633 * symmisc.c (dump_msymbols): Update.
5634 * symtab.c (fixup_section): Update.
5635 (find_pc_sect_line): Update.
5636 (skip_prologue_sal): Update.
5637 (search_symbols): Update.
5638 (print_msymbol_info): Update.
5639 (rbreak_command): Update.
5640 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5641 (completion_list_objc_symbol): Update.
5642 (default_make_symbol_completion_list_break_on): Update.
5643 * tracepoint.c (scope_info): Update.
5644 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5645 (tui_get_begin_asm_address): Update.
5646 * valops.c (find_function_in_inferior): Update.
5647 * value.c (value_static_field): Update.
5648 (value_fn_field): Update.
5650 2014-02-26 Tom Tromey <tromey@redhat.com>
5652 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5653 bound minimal symbols. Move code that knows about minsym
5655 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5657 * minsyms.h (minimal_symbol_upper_bound): Declare.
5658 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5659 minimal_symbol_upper_bound.
5661 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5663 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5664 Use the type's name if its basic type does not have a tag.
5666 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5668 * dwarf2read.c (read_subrange_type): Add comment.
5670 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5672 * dwarf2read.c (update_enumeration_type_from_children): New
5673 function, mostly extracted from process_structure_scope.
5674 (read_enumeration_type): Call update_enumeration_type_from_children.
5675 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5676 and flag_flag_enum fields.
5678 2014-02-26 Pedro Alves <palves@redhat.com>
5680 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5681 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5682 to_xfer_partial method.
5684 2014-02-26 Pedro Alves <palves@redhat.com>
5686 * target.c (complete_target_initialization): Don't install
5687 default_xfer_partial as to_xfer_partial hook.
5689 (update_current_target): Don't INHERIT nor de_fault
5690 deprecated_xfer_memory. Delete de_fault macro.
5691 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5692 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5693 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5696 2014-02-26 Pedro Alves <palves@redhat.com>
5698 * go32-nat.c (my_write_child): New function.
5699 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5700 (go32_xfer_partial): New function.
5701 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5702 Instead install a to_xfer_partial hook.
5704 2014-02-26 Pedro Alves <palves@redhat.com>
5706 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5707 to_xfer_partial helper. Rewrite.
5708 (procfs_xfer_partial): New function.
5709 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5710 Install a to_xfer_partial hook.
5712 2014-02-26 Pedro Alves <palves@redhat.com>
5714 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5715 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5716 (m32r_xfer_partial): New function.
5717 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5718 Install a to_xfer_partial hook.
5720 2014-02-26 Pedro Alves <palves@redhat.com>
5722 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5724 (mips_xfer_partial): New function.
5725 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5726 hook. Install a to_xfer_partial hook.
5728 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5730 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5731 * gdbtypes.c (create_array_type_with_stride): New function,
5732 renaming create_array_type, but with an added parameter
5733 called "bit_stride".
5734 (create_array_type): Re-implement using
5735 create_array_type_with_stride.
5736 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5737 and DW_AT_bit_stride attributes.
5739 2014-02-26 Pedro Alves <palves@redhat.com>
5741 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5742 task-specific breakpoints.
5744 2014-02-25 Pedro Alves <palves@redhat.com>
5746 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5747 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5749 2014-02-25 Stan Shebs <stan@codesourcery.com>
5751 * defs.h: Annotate comments for Doxygen.
5753 2014-02-25 Tom Tromey <tromey@redhat.com>
5755 * target.h (target_ignore): Don't declare.
5756 * target.c (target_ignore): Remove.
5758 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5761 * auto-load.c (auto_load_objfile_script_1): Change filename to
5764 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5766 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5767 documentation. Adjust prototype to match the target_ops
5768 to_xfer_partial method. Adjust implementation accordingly.
5770 2014-02-25 Hui Zhu <hui@codesourcery.com>
5772 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5775 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5777 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5778 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5779 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5780 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5781 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5782 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5783 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5784 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5786 (rl78_register_type): Use a data pointer type for SP and
5787 new pseudo registers mentioned above. Use a 16 bit integer
5788 type for all other register pairs.
5789 (rl78_register_name, rl78_g10_register_name): Update for
5790 new pseudo registers.
5791 (rl78_pseudo_register_read): Likewise.
5792 (rl78_pseudo_register_write): Likewise.
5793 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5794 to the newly added pseudo registers.
5796 2014-02-24 Doug Evans <dje@google.com>
5798 * value.c (record_latest_value): Fix comment.
5799 * printcmd.c (print_command_1): Remove code to handle -1 return from
5800 record_latest_value.
5802 2014-02-24 Pedro Alves <palves@redhat.com>
5804 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5805 deprecated_xfer_memory hook.
5806 (procfs_xfer_partial): Call procfs_xfer_memory instead
5807 of the deprecated_xfer_memory target hook.
5808 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5811 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5813 * windows-nat.c (windows_xfer_shared_libraries): Return
5814 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5815 requested object is TARGET_OBJECT_LIBRARIES.
5817 2014-02-24 Yao Qi <yao@codesourcery.com>
5819 * target.h (enum target_xfer_status)
5820 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5821 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5823 * corefile.c (memory_error_message): User updated.
5824 * exec.c (section_table_read_available_memory): Likewise.
5825 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5826 * target.c (target_xfer_status_to_string): Likewise.
5827 (raw_memory_xfer_partial): Likewise.
5828 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5829 * valops.c (read_value_memory): Likewise.
5830 * exec.h: Update comments.
5832 2014-02-24 Yao Qi <yao@codesourcery.com>
5834 * target.c (target_xfer_status_to_string): Rename argument err
5836 * target.h (target_xfer_status_to_string): Update declaration.
5837 Replace target_xfer_error_to_string with
5838 target_xfer_status_to_string in comment.
5840 2014-02-24 Yao Qi <yao@codesourcery.com>
5842 * mips-linux-nat.c (super_close): Update its type.
5843 (mips_linux_close): Pass 'self' to super_close.
5845 2014-02-24 Yao Qi <yao@codesourcery.com>
5847 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5848 * corefile.c (read_memory): Adjusted.
5849 * target.c (target_write_with_progress): Adjusted.
5851 2014-02-23 Yao Qi <yao@codesourcery.com>
5855 2013-10-25 Yao Qi <yao@codesourcery.com>
5857 * remote.c (remote_traceframe_info): Return early if
5858 traceframe is not selected.
5860 2013-07-19 Yao Qi <yao@codesourcery.com>
5862 * target.c (update_current_target): Change the default action
5863 of 'to_traceframe_info' from tcomplain to return_zero.
5864 * target.h (struct target_ops) <to_traceframe_info>: Add more
5867 2014-02-23 Yao Qi <yao@codesourcery.com>
5869 * valops.c (read_value_memory): Rewrite it. Call
5870 target_xfer_partial in a loop.
5871 * exec.h (section_table_available_memory): Remove declaration.
5872 Move comments to ...
5873 * exec.c (section_table_available_memory): ... here. Make it
5876 2014-02-23 Yao Qi <yao@codesourcery.com>
5878 * exec.c (section_table_read_available_memory): New function.
5879 * exec.h (section_table_read_available_memory): Declare.
5880 * ctf.c (ctf_xfer_partial): Call
5881 section_table_read_available_memory.
5882 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5884 2014-02-23 Yao Qi <yao@codesourcery.com>
5886 * ctf.c (ctf_xfer_partial): Move code to ...
5887 * exec.c (exec_read_partial_read_only): ... it. New function.
5888 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5889 * tracefile.c: Include "exec.h".
5890 * exec.h (exec_read_partial_read_only): Declare.
5892 2014-02-23 Yao Qi <yao@codesourcery.com>
5894 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5895 (tfile_has_memory): Remove.
5896 (init_tfile_ops): Don't set fields to_has_all_memory and
5897 to_has_memory of tfile_ops.
5898 * tracefile.c (tracefile_has_all_memory): New function.
5899 (tracefile_has_memory): New function.
5900 (init_tracefile_ops): Initialize fields to_has_all_memory and
5901 to_has_memory of 'ops'.
5903 2014-02-23 Yao Qi <yao@codesourcery.com>
5905 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5906 (ctf_thread_alive, ctf_get_trace_status): Remove.
5907 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5909 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5910 (tfile_has_stack, tfile_has_registers): Remove.
5911 (tfile_thread_alive): Remove.
5912 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5914 * tracefile.c (tracefile_has_stack): New function.
5915 (tracefile_has_registers): New function.
5916 (tracefile_thread_alive): New function.
5917 (tracefile_get_trace_status): New function.
5918 (init_tracefile_ops): New function.
5919 * tracefile.h (init_tracefile_ops): Declare.
5921 2014-02-23 Yao Qi <yao@codesourcery.com>
5923 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5924 (O_LARGEFILE): Likewise.
5925 (tfile_ops): Likewise.
5926 (TRACE_HEADER_SIZE): Likewise.
5927 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5928 (cur_data_size): Likewise.
5929 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5930 (tfile_close, tfile_files_info): Likewise.
5931 (tfile_get_trace_status): Likewise.
5932 (tfile_get_tracepoint_status): Likewise.
5933 (tfile_get_traceframe_address): Likewise.
5934 (tfile_trace_find, match_blocktype): Likewise.
5935 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5936 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5937 (tfile_get_trace_state_variable_value): Likewise.
5938 (tfile_has_all_memory, tfile_has_memory): Likewise.
5939 (tfile_has_stack, tfile_has_registers): Likewise.
5940 (tfile_thread_alive, build_traceframe_info): Likewise.
5941 (tfile_traceframe_info, init_tfile_ops): Likewise.
5942 (_initialize_tracepoint): Don't call init_tfile_ops
5943 and add_target_with_completer.
5944 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5945 exec.h, completer.h and filenames.h.
5946 (_initialize_tracefile_tfile): New function.
5948 2014-02-23 Yao Qi <yao@codesourcery.com>
5950 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5952 (HFILES_NO_SRCDIR): Add tracefile.h.
5953 * ctf.c: Include "tracefile.h".
5954 * tracefile.h: New file.
5955 * tracefile.c: New file
5956 * tracefile-tfile.c: New file.
5957 * tracepoint.c: Include "tracefile.h".
5958 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5959 (stop_reason_names): Add const.
5960 (trace_file_writer_xfree): Move it to tracefile.c.
5961 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5962 (trace_save_ctf): Likewise.
5963 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5964 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5965 (tfile_write_header, tfile_write_regblock_type): Likewise.
5966 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5967 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5968 (tfile_write_raw_data, tfile_end): Likewise.
5969 (tfile_trace_file_writer_new): Likewise.
5970 (free_uploaded_tp): Make it extern.
5971 (free_uploaded_tsv): Make it extern.
5972 (_initialize_tracepoint): Move code to register command 'tsave'
5974 * tracepoint.h (stop_reason_names): Declare.
5975 (struct trace_frame_write_ops): Move it to tracefile.h.
5976 (struct trace_file_write_ops): Likewise.
5977 (struct trace_file_writer): Likewise.
5978 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5980 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5983 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5985 (get_cores_used_by_process): New parameter num_cores, use it.
5986 (linux_xfer_osdata_processes): Pass num_cores to it.
5987 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5990 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5992 * target.c (memory_xfer_partial): Fix length arg in call to
5993 breakpoint_xfer_memory.
5995 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5998 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5999 number comes after the + or - signs. Adjust length of register
6000 name to be extracted.
6002 2014-02-20 Tom Tromey <tromey@redhat.com>
6004 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6005 (ada_varobj_ops): Mark "extern".
6007 2014-02-20 Tom Tromey <tromey@redhat.com>
6009 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6011 2014-02-20 Doug Evans <xdje42@gmail.com>
6013 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6014 All callers updated.
6015 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6016 All callers updated.
6017 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6018 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6020 2014-02-20 lin zuojian <manjian2006@gmail.com>
6021 Joel Brobecker <brobecker@adacore.com>
6022 Doug Evans <xdje42@gmail.com>
6025 * dwarf2read.c (struct die_info): New member in_process.
6026 (reset_die_in_process): New function.
6027 (process_die): Set it at the start, reset when returning.
6028 (inherit_abstract_dies): Only call process_die if origin_child_die
6029 not already being processed.
6031 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6033 * windows-nat.c (handle_unload_dll): Add function documentation.
6034 (do_initial_windows_stuff): Add comment explaining why we wait
6035 until after inferior initialization has finished before
6036 processing all DLLs.
6038 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6040 * windows-nat.c (get_module_name): Delete.
6041 (windows_get_exec_module_filename): New function, mostly
6042 inspired from get_module_name.
6043 (windows_pid_to_exec_file): Replace call to get_module_name
6044 by call to windows_get_exec_module_filename.
6046 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6048 * windows-nat.c (handle_load_dll): Rewrite this function's
6049 introductory comment. Remove code using get_module_name
6050 to get the DLL's name.
6052 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6054 * windows-nat.c (get_windows_debug_event): Ignore
6055 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6056 if windows_initialization_done == 0.
6057 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6058 Adjust implementation to always load all DLLs.
6059 (do_initial_windows_stuff): Replace call to
6060 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6062 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6064 * windows-nat.c (_initialize_windows_nat): Deprecate the
6065 "dll-symbols" command. Turn the "add-shared-symbol-files"
6066 and "assf" aliases into commands, and deprecate them as well.
6067 * NEWS: Add entry explaining that "dll-symbols" and its two
6068 aliases are now deprecated.
6070 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6072 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6073 new-line in debug string. Remove trailing spaces.
6075 2014-02-19 Stan Shebs <stan@codesourcery.com>
6077 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6079 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6081 * NEWS: Add entry for the new feature
6082 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6085 2014-02-19 Stan Shebs <stan@codesourcery.com>
6087 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6089 2014-02-19 Pedro Alves <palves@redhat.com>
6091 * common/ptid.h (struct ptid): Mention that process_stratum
6092 targets should prefer ptid.lwp.
6094 2014-02-19 Pedro Alves <palves@redhat.com>
6096 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6097 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6098 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6099 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6100 store remote thread ids rather than ptid.tid.
6101 (_initialize_remote): Adjust.
6103 2014-02-19 Tom Tromey <tromey@redhat.com>
6105 * target.c (target_get_unwinder): Rewrite.
6106 (target_get_tailcall_unwinder): Rewrite.
6107 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6108 (record_btrace_to_get_tailcall_unwinder): New function.
6109 (init_record_btrace_ops): Update.
6110 * target.h (struct target_ops) <to_get_unwinder,
6111 to_get_tailcall_unwinder>: Now function pointers. Use
6112 TARGET_DEFAULT_RETURN.
6114 2014-02-19 Tom Tromey <tromey@redhat.com>
6116 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6118 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6120 2014-02-19 Tom Tromey <tromey@redhat.com>
6122 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6124 * target-delegates.c: Rebuild.
6125 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6126 TARGET_DEFAULT_FUNC.
6127 * target.c (default_target_decr_pc_after_break): Rename from
6128 forward_target_decr_pc_after_break. Simplify.
6129 (target_decr_pc_after_break): Rely on delegation.
6131 2014-02-19 Tom Tromey <tromey@redhat.com>
6133 * target.c (update_current_target): Do not INHERIT to_doc or
6134 to_magic. Do not de_fault to_open or to_close.
6136 2014-02-19 Tom Tromey <tromey@redhat.com>
6138 * gcore.h (objfile_find_memory_regions): Declare.
6139 * gcore.c (objfile_find_memory_regions): No longer static. Add
6141 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6142 * exec.c: Include gcore.h.
6143 (exec_set_find_memory_regions): Remove.
6144 (exec_find_memory_regions): Remove.
6145 (exec_do_find_memory_regions): Remove.
6146 (init_exec_ops): Update.
6147 * defs.h (exec_set_find_memory_regions): Remove.
6149 2014-02-19 Tom Tromey <tromey@redhat.com>
6151 * target-delegates.c: Rebuild.
6152 * target.h (struct target_ops) <to_extra_thread_info,
6153 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6154 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6155 not 0, in TARGET_DEFAULT_RETURN.
6157 2014-02-19 Tom Tromey <tromey@redhat.com>
6159 * target.c (complete_target_initialization): Remove casts. Use
6160 return_zero_has_execution.
6161 (return_zero): Add "ignore" argument.
6162 (return_zero_has_execution): New function.
6163 (init_dummy_target): Remove casts. Use
6164 return_zero_has_execution.
6166 2014-02-19 Tom Tromey <tromey@redhat.com>
6168 * target.c (update_current_target): Update comments. Do not
6171 2014-02-19 Tom Tromey <tromey@redhat.com>
6173 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6175 * corelow.c (core_read_description): Delegate when needed.
6176 * remote.c (remote_read_description): Delegate when needed.
6177 * target-delegates.c: Rebuild.
6178 * target.c (target_read_description): Rewrite.
6179 * target.h (struct target_ops) <to_read_description>: Update
6180 comment. Use TARGET_DEFAULT_RETURN.
6182 2014-02-19 Tom Tromey <tromey@redhat.com>
6184 * target-delegates.c: Rebuild.
6185 * target.c (update_current_target): Don't inherit or default
6187 (find_default_run_target): Check against delegate_can_run.
6188 * target.h (struct target_ops) <to_can_run>: Use
6189 TARGET_DEFAULT_RETURN.
6191 2014-02-19 Tom Tromey <tromey@redhat.com>
6193 * target-delegates.c: Rebuild.
6194 * target.c (target_disconnect): Unconditionally delegate.
6195 * target.h (struct target_ops) <to_disconnect>: Use
6196 TARGET_DEFAULT_NORETURN.
6198 2014-02-19 Tom Tromey <tromey@redhat.com>
6200 * record.c (record_stop): Unconditionally delegate.
6201 * target-delegates.c: Rebuild.
6202 * target.c (target_stop_recording): Unconditionally delegate.
6203 * target.h (struct target_ops) <to_stop_recording>: Use
6204 TARGET_DEFAULT_IGNORE.
6206 2014-02-19 Tom Tromey <tromey@redhat.com>
6208 * target-delegates.c: Rebuild.
6209 * target.c (target_enable_btrace): Unconditionally delegate.
6210 * target.h (struct target_ops) <to_enable_btrace>: Use
6211 TARGET_DEFAULT_NORETURN.
6213 2014-02-19 Tom Tromey <tromey@redhat.com>
6215 * target-delegates.c: Rebuild.
6216 * target.c (target_read_btrace): Unconditionally delegate.
6217 * target.h (struct target_ops) <to_read_btrace>: Use
6218 TARGET_DEFAULT_NORETURN.
6220 2014-02-19 Tom Tromey <tromey@redhat.com>
6222 * target-delegates.c: Rebuild.
6223 * target.c (target_teardown_btrace): Unconditionally delegate.
6224 * target.h (struct target_ops) <to_teardown_btrace>: Use
6225 TARGET_DEFAULT_NORETURN.
6227 2014-02-19 Tom Tromey <tromey@redhat.com>
6229 * target-delegates.c: Rebuild.
6230 * target.c (target_disable_btrace): Unconditionally delegate.
6231 * target.h (struct target_ops) <to_disable_btrace>: Use
6232 TARGET_DEFAULT_NORETURN.
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6236 * target-delegates.c: Rebuild.
6237 * target.c (default_search_memory): New function.
6238 (simple_search_memory): Update comment.
6239 (target_search_memory): Unconditionally delegate.
6240 * target.h (struct target_ops) <to_search_memory>: Use
6241 TARGET_DEFAULT_FUNC.
6243 2014-02-19 Tom Tromey <tromey@redhat.com>
6245 * auxv.c (default_auxv_parse): No longer static.
6246 (target_auxv_parse): Unconditionally delegate.
6247 * auxv.h (default_auxv_parse): Declare.
6248 * target-delegates.c: Rebuild.
6249 * target.c: Include auxv.h.
6250 * target.h (struct target_ops) <to_auxv_parse>: Use
6251 TARGET_DEFAULT_FUNC.
6253 2014-02-19 Tom Tromey <tromey@redhat.com>
6255 * target-delegates.c: Rebuild.
6256 * target.c (target_memory_map): Unconditionally delegate.
6257 * target.h (struct target_ops) <to_memory_map>: Use
6258 TARGET_DEFAULT_RETURN.
6260 2014-02-19 Tom Tromey <tromey@redhat.com>
6262 * target-delegates.c: Rebuild.
6263 * target.c (target_thread_alive): Unconditionally delegate.
6264 * target.h (struct target_ops) <to_thread_alive>: Use
6265 TARGET_DEFAULT_RETURN.
6267 2014-02-19 Tom Tromey <tromey@redhat.com>
6269 * target-delegates.c: Rebuild.
6270 * target.c (target_save_record): Unconditionally delegate.
6271 * target.h (struct target_ops) <to_save_record>: Use
6272 TARGET_DEFAULT_NORETURN.
6274 2014-02-19 Tom Tromey <tromey@redhat.com>
6276 * target-delegates.c: Rebuild.
6277 * target.c (target_delete_record): Unconditionally delegate.
6278 * target.h (struct target_ops) <to_delete_record>: Use
6279 TARGET_DEFAULT_NORETURN.
6281 2014-02-19 Tom Tromey <tromey@redhat.com>
6283 * target-delegates.c: Rebuild.
6284 * target.c (target_record_is_replaying): Unconditionally
6286 * target.h (struct target_ops) <to_record_is_replaying>: Use
6287 TARGET_DEFAULT_RETURN.
6289 2014-02-19 Tom Tromey <tromey@redhat.com>
6291 * target-delegates.c: Rebuild.
6292 * target.c (target_goto_record_begin): Unconditionally delegate.
6293 * target.h (struct target_ops) <to_goto_record_begin>: Use
6294 TARGET_DEFAULT_NORETURN.
6296 2014-02-19 Tom Tromey <tromey@redhat.com>
6298 * target-delegates.c: Rebuild.
6299 * target.c (target_goto_record_end): Unconditionally delegate.
6300 * target.h (struct target_ops) <to_goto_record_end>: Use
6301 TARGET_DEFAULT_NORETURN.
6303 2014-02-19 Tom Tromey <tromey@redhat.com>
6305 * target-delegates.c: Rebuild.
6306 * target.c (target_goto_record): Unconditionally delegate.
6307 * target.h (struct target_ops) <to_goto_record>: Use
6308 TARGET_DEFAULT_NORETURN.
6310 2014-02-19 Tom Tromey <tromey@redhat.com>
6312 * target-delegates.c: Rebuild.
6313 * target.c (target_insn_history): Unconditionally delegate.
6314 * target.h (struct target_ops) <to_insn_history>: Use
6315 TARGET_DEFAULT_NORETURN.
6317 2014-02-19 Tom Tromey <tromey@redhat.com>
6319 * target-delegates.c: Rebuild.
6320 * target.c (target_insn_history_from): Unconditionally delegate.
6321 * target.h (struct target_ops) <to_insn_history_from>: Use
6322 TARGET_DEFAULT_NORETURN.
6324 2014-02-19 Tom Tromey <tromey@redhat.com>
6326 * target-delegates.c: Rebuild.
6327 * target.c (target_insn_history_range): Unconditionally delegate.
6328 * target.h (struct target_ops) <to_insn_history_range>: Use
6329 TARGET_DEFAULT_NORETURN.
6331 2014-02-19 Tom Tromey <tromey@redhat.com>
6333 * target-delegates.c: Rebuild.
6334 * target.c (target_call_history): Unconditionally delegate.
6335 * target.h (struct target_ops) <to_call_history>: Use
6336 TARGET_DEFAULT_NORETURN.
6338 2014-02-19 Tom Tromey <tromey@redhat.com>
6340 * target-delegates.c: Rebuild.
6341 * target.c (target_call_history_from): Unconditionally delegate.
6342 * target.h (struct target_ops) <to_call_history_from>: Use
6343 TARGET_DEFAULT_NORETURN.
6345 2014-02-19 Tom Tromey <tromey@redhat.com>
6347 * target-delegates.c: Rebuild.
6348 * target.c (target_call_history_range): Unconditionally delegate.
6349 * target.h (struct target_ops) <to_call_history_range>: Use
6350 TARGET_DEFAULT_NORETURN.
6352 2014-02-19 Tom Tromey <tromey@redhat.com>
6354 * target-delegates.c: Rebuild.
6355 * target.c (target_verify_memory): Unconditionally delegate.
6356 * target.h (struct target_ops) <to_verify_memory>: Use
6357 TARGET_DEFAULT_NORETURN.
6359 2014-02-19 Tom Tromey <tromey@redhat.com>
6361 * target-delegates.c: Rebuild.
6362 * target.c (target_core_of_thread): Unconditionally delegate.
6363 * target.h (struct target_ops) <to_core_of_thread>: Use
6364 TARGET_DEFAULT_RETURN.
6366 2014-02-19 Tom Tromey <tromey@redhat.com>
6368 * target-delegates.c: Rebuild.
6369 * target.c (target_flash_done): Unconditionally delegate.
6370 * target.h (struct target_ops) <to_flash_done>: Use
6371 TARGET_DEFAULT_NORETURN.
6373 2014-02-19 Tom Tromey <tromey@redhat.com>
6375 * target-delegates.c: Rebuild.
6376 * target.c (target_flash_erase): Unconditionally delegate.
6377 * target.h (struct target_ops) <to_flash_erase>: Use
6378 TARGET_DEFAULT_NORETURN.
6380 2014-02-19 Tom Tromey <tromey@redhat.com>
6382 * target-delegates.c: Rebuild.
6383 * target.c (target_get_section_table): Unconditionally delegate.
6384 * target.h (struct target_ops) <to_get_section_table>: Use
6385 TARGET_DEFAULT_RETURN.
6387 2014-02-19 Tom Tromey <tromey@redhat.com>
6389 * target-delegates.c: Rebuild.
6390 * target.c (target_pid_to_str): Unconditionally delegate.
6391 (init_dummy_target): Don't initialize to_pid_to_str.
6392 (default_pid_to_str): Rename from dummy_pid_to_str.
6393 * target.h (struct target_ops) <to_pid_to_str>: Use
6394 TARGET_DEFAULT_FUNC.
6396 2014-02-19 Tom Tromey <tromey@redhat.com>
6398 * target-delegates.c: Rebuild.
6399 * target.c (target_find_new_threads): Unconditionally delegate.
6400 * target.h (struct target_ops) <to_find_new_threads>: Use
6401 TARGET_DEFAULT_RETURN.
6403 2014-02-19 Tom Tromey <tromey@redhat.com>
6405 * target-delegates.c: Rebuild.
6406 * target.c (target_program_signals): Unconditionally delegate.
6407 * target.h (struct target_ops) <to_program_signals>: Use
6408 TARGET_DEFAULT_IGNORE.
6410 2014-02-19 Tom Tromey <tromey@redhat.com>
6412 * target-delegates.c: Rebuild.
6413 * target.c (target_pass_signals): Unconditionally delegate.
6414 * target.h (struct target_ops) <to_pass_signals>: Use
6415 TARGET_DEFAULT_IGNORE.
6417 2014-02-19 Tom Tromey <tromey@redhat.com>
6419 * target-delegates.c: Rebuild.
6420 * target.c (default_mourn_inferior): New function.
6421 (target_mourn_inferior): Unconditionally delegate.
6422 * target.h (struct target_ops) <to_mourn_inferior>: Use
6423 TARGET_DEFAULT_FUNC.
6425 2014-02-19 Tom Tromey <tromey@redhat.com>
6427 * target-delegates.c: Rebuild.
6428 * target.c (default_follow_fork): New function.
6429 (target_follow_fork): Unconditionally delegate.
6430 * target.h (struct target_ops) <to_follow_fork>: Use
6431 TARGET_DEFAULT_FUNC.
6433 2014-02-19 Tom Tromey <tromey@redhat.com>
6435 * target-delegates.c: Rebuild.
6436 * target.c (target_kill): Unconditionally delegate.
6437 * target.h (struct target_ops) <to_kill>: Use
6438 TARGET_DEFAULT_NORETURN.
6440 2014-02-19 Tom Tromey <tromey@redhat.com>
6442 * target-delegates.c: Rebuild.
6443 * target.c (target_masked_watch_num_registers): Unconditionally
6445 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6446 Use TARGET_DEFAULT_RETURN.
6448 2014-02-19 Tom Tromey <tromey@redhat.com>
6450 * target-delegates.c: Rebuild.
6451 * target.c (target_remove_mask_watchpoint): Unconditionally
6453 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6454 TARGET_DEFAULT_RETURN.
6456 2014-02-19 Tom Tromey <tromey@redhat.com>
6458 * target-delegates.c: Rebuild.
6459 * target.c (target_insert_mask_watchpoint): Unconditionally
6461 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6462 TARGET_DEFAULT_RETURN.
6464 2014-02-19 Tom Tromey <tromey@redhat.com>
6466 * target-delegates.c: Rebuild.
6467 * target.c (target_ranged_break_num_registers): Unconditionally
6469 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6470 Use TARGET_DEFAULT_RETURN.
6472 2014-02-19 Tom Tromey <tromey@redhat.com>
6474 * target-delegates.c: Rebuild.
6475 * target.c (target_fetch_registers): Unconditionally delegate.
6476 * target.h (struct target_ops) <to_fetch_registers>: Use
6477 TARGET_DEFAULT_NORETURN.
6479 2014-02-19 Tom Tromey <tromey@redhat.com>
6481 * target-delegates.c: Rebuild.
6482 * target.c (update_current_target): Don't inherit or default
6484 * target.h (struct target_ops) <to_stop>: Use
6485 TARGET_DEFAULT_IGNORE.
6487 2014-02-19 Tom Tromey <tromey@redhat.com>
6489 * target-delegates.c: Rebuild.
6490 * target.c (update_current_target): Don't inherit or default
6491 to_can_run_breakpoint_commands.
6492 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6493 Use TARGET_DEFAULT_RETURN.
6495 2014-02-19 Tom Tromey <tromey@redhat.com>
6497 * target-delegates.c: Rebuild.
6498 * target.c (update_current_target): Don't inherit or default
6499 to_supports_evaluation_of_breakpoint_conditions.
6500 * target.h (struct target_ops)
6501 <to_supports_evaluation_of_breakpoint_conditions>: Use
6502 TARGET_DEFAULT_RETURN.
6504 2014-02-19 Tom Tromey <tromey@redhat.com>
6506 * target-delegates.c: Rebuild.
6507 * target.c (update_current_target): Don't inherit or default
6508 to_augmented_libraries_svr4_read.
6509 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6510 Use TARGET_DEFAULT_RETURN.
6512 2014-02-19 Tom Tromey <tromey@redhat.com>
6514 * target-delegates.c: Rebuild.
6515 * target.c (update_current_target): Don't inherit or default
6517 * target.h (struct target_ops) <to_can_use_agent>: Use
6518 TARGET_DEFAULT_RETURN.
6520 2014-02-19 Tom Tromey <tromey@redhat.com>
6522 * target-delegates.c: Rebuild.
6523 * target.c (update_current_target): Don't inherit or default
6525 * target.h (struct target_ops) <to_use_agent>: Use
6526 TARGET_DEFAULT_NORETURN.
6528 2014-02-19 Tom Tromey <tromey@redhat.com>
6530 * target-delegates.c: Rebuild.
6531 * target.c (update_current_target): Don't inherit or default
6533 (return_null): Remove.
6534 * target.h (struct target_ops) <to_traceframe_info>: Use
6535 TARGET_DEFAULT_RETURN.
6537 2014-02-19 Tom Tromey <tromey@redhat.com>
6539 * target-delegates.c: Rebuild.
6540 * target.c (update_current_target): Don't inherit or default
6541 to_static_tracepoint_markers_by_strid.
6542 * target.h (struct target_ops)
6543 <to_static_tracepoint_markers_by_strid>: Use
6544 TARGET_DEFAULT_NORETURN.
6546 2014-02-19 Tom Tromey <tromey@redhat.com>
6548 * target-delegates.c: Rebuild.
6549 * target.c (update_current_target): Don't inherit or default
6550 to_static_tracepoint_marker_at.
6551 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6552 Use TARGET_DEFAULT_RETURN.
6554 2014-02-19 Tom Tromey <tromey@redhat.com>
6556 * target-delegates.c: Rebuild.
6557 * target.c (update_current_target): Don't inherit or default
6559 * target.h (struct target_ops) <to_set_permissions>: Use
6560 TARGET_DEFAULT_IGNORE.
6562 2014-02-19 Tom Tromey <tromey@redhat.com>
6564 * target-delegates.c: Rebuild.
6565 * target.c (update_current_target): Don't inherit or default
6567 * target.h (struct target_ops) <to_get_tib_address>: Use
6568 TARGET_DEFAULT_NORETURN.
6570 2014-02-19 Tom Tromey <tromey@redhat.com>
6572 * target-delegates.c: Rebuild.
6573 * target.c (update_current_target): Don't inherit or default
6575 * target.h (struct target_ops) <to_set_trace_notes>: Use
6576 TARGET_DEFAULT_RETURN.
6578 2014-02-19 Tom Tromey <tromey@redhat.com>
6580 * target-delegates.c: Rebuild.
6581 * target.c (update_current_target): Don't initialize
6582 to_set_trace_buffer_size.
6583 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6584 TARGET_DEFAULT_IGNORE.
6586 2014-02-19 Tom Tromey <tromey@redhat.com>
6588 * target-delegates.c: Rebuild.
6589 * target.c (update_current_target): Don't inherit or default
6590 to_set_circular_trace_buffer.
6591 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6592 TARGET_DEFAULT_IGNORE.
6594 2014-02-19 Tom Tromey <tromey@redhat.com>
6596 * target-delegates.c: Rebuild.
6597 * target.c (update_current_target): Don't inherit or default
6598 to_set_disconnected_tracing.
6599 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6600 TARGET_DEFAULT_IGNORE.
6602 2014-02-19 Tom Tromey <tromey@redhat.com>
6604 * target-delegates.c: Rebuild.
6605 * target.c (update_current_target): Don't inherit or default
6606 to_get_min_fast_tracepoint_insn_len.
6607 (return_minus_one): Remove.
6608 * target.h (struct target_ops)
6609 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6611 2014-02-19 Tom Tromey <tromey@redhat.com>
6613 * target-delegates.c: Rebuild.
6614 * target.c (update_current_target): Don't inherit or default
6615 to_get_raw_trace_data.
6616 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6617 TARGET_DEFAULT_NORETURN.
6619 2014-02-19 Tom Tromey <tromey@redhat.com>
6621 * target-delegates.c: Rebuild.
6622 * target.c (update_current_target): Don't inherit or default
6623 to_upload_trace_state_variables.
6624 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6625 Use TARGET_DEFAULT_RETURN.
6627 2014-02-19 Tom Tromey <tromey@redhat.com>
6629 * target-delegates.c: Rebuild.
6630 * target.c (update_current_target): Don't inherit or default
6631 to_upload_tracepoints.
6632 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6633 TARGET_DEFAULT_RETURN.
6635 2014-02-19 Tom Tromey <tromey@redhat.com>
6637 * target-delegates.c: Rebuild.
6638 * target.c (update_current_target): Don't inherit or default
6640 * target.h (struct target_ops) <to_save_trace_data>: Use
6641 TARGET_DEFAULT_NORETURN.
6643 2014-02-19 Tom Tromey <tromey@redhat.com>
6645 * target-delegates.c: Rebuild.
6646 * target.c (update_current_target): Don't inherit or default
6647 to_get_trace_state_variable_value.
6648 * target.h (struct target_ops)
6649 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6651 2014-02-19 Tom Tromey <tromey@redhat.com>
6653 * target-delegates.c: Rebuild.
6654 * target.c (update_current_target): Don't inherit or default
6656 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6658 2014-02-19 Tom Tromey <tromey@redhat.com>
6660 * target-delegates.c: Rebuild.
6661 * target.c (update_current_target): Don't inherit or default
6663 * target.h (struct target_ops) <to_trace_stop>: Use
6664 TARGET_DEFAULT_NORETURN.
6666 2014-02-19 Tom Tromey <tromey@redhat.com>
6668 * target-delegates.c: Rebuild.
6669 * target.c (update_current_target): Don't inherit or default
6670 to_get_tracepoint_status.
6671 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6672 TARGET_DEFAULT_NORETURN.
6674 2014-02-19 Tom Tromey <tromey@redhat.com>
6676 * target-delegates.c: Rebuild.
6677 * target.c (update_current_target): Don't inherit or default
6678 to_get_trace_status.
6679 * target.h (struct target_ops) <to_get_trace_status>: Use
6680 TARGET_DEFAULT_RETURN.
6682 2014-02-19 Tom Tromey <tromey@redhat.com>
6684 * target-delegates.c: Rebuild.
6685 * target.c (update_current_target): Don't inherit or default
6687 * target.h (struct target_ops) <to_trace_start>: Use
6688 TARGET_DEFAULT_NORETURN.
6690 2014-02-19 Tom Tromey <tromey@redhat.com>
6692 * target-delegates.c: Rebuild.
6693 * target.c (update_current_target): Don't inherit or default
6694 to_trace_set_readonly_regions.
6695 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6696 Use TARGET_DEFAULT_NORETURN.
6698 2014-02-19 Tom Tromey <tromey@redhat.com>
6700 * target-delegates.c: Rebuild.
6701 * target.c (update_current_target): Don't inherit or default
6702 to_disable_tracepoint.
6703 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6704 TARGET_DEFAULT_NORETURN.
6706 2014-02-19 Tom Tromey <tromey@redhat.com>
6708 * target-delegates.c: Rebuild.
6709 * target.c (update_current_target): Don't inherit or default
6710 to_enable_tracepoint.
6711 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6712 TARGET_DEFAULT_NORETURN.
6714 2014-02-19 Tom Tromey <tromey@redhat.com>
6716 * target-delegates.c: Rebuild.
6717 * target.c (update_current_target): Don't inherit or default
6718 to_download_trace_state_variable.
6719 * target.h (struct target_ops) <to_download_trace_state_variable>:
6720 Use TARGET_DEFAULT_NORETURN.
6722 2014-02-19 Tom Tromey <tromey@redhat.com>
6724 * target-delegates.c: Rebuild.
6725 * target.c (update_current_target): Don't inherit or default
6726 to_can_download_tracepoint.
6727 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6728 TARGET_DEFAULT_RETURN.
6730 2014-02-19 Tom Tromey <tromey@redhat.com>
6732 * target-delegates.c: Rebuild.
6733 * target.c (update_current_target): Don't inherit or default
6734 to_download_tracepoint.
6735 * target.h (struct target_ops) <to_download_tracepoint>: Use
6736 TARGET_DEFAULT_NORETURN.
6738 2014-02-19 Tom Tromey <tromey@redhat.com>
6740 * target-delegates.c: Rebuild.
6741 * target.c (update_current_target): Don't inherit or default
6743 * target.h (struct target_ops) <to_trace_init>: Use
6744 TARGET_DEFAULT_RETURN.
6746 2014-02-19 Tom Tromey <tromey@redhat.com>
6748 * target-delegates.c: Rebuild.
6749 * target.c (update_current_target): Don't inherit or default
6750 to_supports_string_tracing.
6751 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6752 TARGET_DEFAULT_RETURN.
6754 2014-02-19 Tom Tromey <tromey@redhat.com>
6756 * target-delegates.c: Rebuild.
6757 * target.c (update_current_target): Don't inherit or default
6758 to_supports_enable_disable_tracepoint.
6759 * target.h (struct target_ops)
6760 <to_supports_enable_disable_tracepoint>: Use
6761 TARGET_DEFAULT_RETURN.
6763 2014-02-19 Tom Tromey <tromey@redhat.com>
6765 * target-delegates.c: Rebuild.
6766 * target.c (update_current_target): Don't inherit or default
6767 to_supports_multi_process.
6768 * target.h (struct target_ops) <to_supports_multi_process>: Use
6769 TARGET_DEFAULT_RETURN.
6771 2014-02-19 Tom Tromey <tromey@redhat.com>
6773 * target-delegates.c: Rebuild.
6774 * target.c (update_current_target): Don't inherit or default
6775 to_get_ada_task_ptid.
6776 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6777 TARGET_DEFAULT_FUNC.
6779 2014-02-19 Tom Tromey <tromey@redhat.com>
6781 * target-delegates.c: Rebuild.
6782 * target.c (update_current_target): Don't inherit or default
6783 to_thread_architecture.
6784 * target.h (struct target_ops) <to_thread_architecture>: Use
6785 TARGET_DEFAULT_FUNC.
6787 2014-02-19 Tom Tromey <tromey@redhat.com>
6789 * target-delegates.c: Rebuild.
6790 * target.c (update_current_target): Don't inherit or default
6791 to_execution_direction.
6792 * target.h (struct target_ops) <to_execution_direction>: Use
6793 TARGET_DEFAULT_FUNC.
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
6799 to_can_execute_reverse.
6800 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6801 TARGET_DEFAULT_RETURN.
6802 (target_can_execute_reverse): Unconditionally delegate.
6804 2014-02-19 Tom Tromey <tromey@redhat.com>
6806 * target-delegates.c: Rebuild.
6807 * target.c (update_current_target): Don't inherit or default
6809 (dummy_goto_bookmark): Remove.
6810 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6811 * target.h (struct target_ops) <to_goto_bookmark>: Use
6812 TARGET_DEFAULT_NORETURN.
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
6819 (dummy_get_bookmark): Remove.
6820 (init_dummy_target): Don't inherit or default to_get_bookmark.
6821 * target.h (struct target_ops) <to_get_bookmark>: Use
6822 TARGET_DEFAULT_NORETURN
6824 2014-02-19 Tom Tromey <tromey@redhat.com>
6826 * target-delegates.c: Rebuild.
6827 * target.c (update_current_target): Don't inherit or default
6828 to_make_corefile_notes.
6829 (init_dummy_target): Don't initialize to_make_corefile_notes.
6830 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6831 TARGET_DEFAULT_FUNC.
6833 2014-02-19 Tom Tromey <tromey@redhat.com>
6835 * target-delegates.c: Rebuild.
6836 * target.c (update_current_target): Don't inherit or default
6837 to_find_memory_regions.
6838 (init_dummy_target): Don't initialize to_find_memory_regions.
6839 * target.h (struct target_ops) <to_find_memory_regions>: Use
6840 TARGET_DEFAULT_FUNC.
6842 2014-02-19 Tom Tromey <tromey@redhat.com>
6844 * target-delegates.c: Rebuild.
6845 * target.c (update_current_target): Don't inherit or default
6847 * target.h (struct target_ops) <to_log_command>: Use
6848 TARGET_DEFAULT_IGNORE.
6849 (target_log_command): Unconditionally delegate.
6851 2014-02-19 Tom Tromey <tromey@redhat.com>
6853 * target-delegates.c: Rebuild.
6854 * target.c (update_current_target): Don't inherit or default
6855 to_pid_to_exec_file.
6856 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6857 TARGET_DEFAULT_RETURN.
6859 2014-02-19 Tom Tromey <tromey@redhat.com>
6861 * target-delegates.c: Rebuild.
6862 * target.c (update_current_target): Don't inherit or default
6864 (target_thread_name): Unconditionally delegate.
6865 * target.h (struct target_ops) <to_thread_name>: Use
6866 TARGET_DEFAULT_RETURN.
6868 2014-02-19 Tom Tromey <tromey@redhat.com>
6870 * target-delegates.c: Rebuild.
6871 * target.c (update_current_target): Don't inherit or default
6872 to_extra_thread_info.
6873 * target.h (struct target_ops) <to_extra_thread_info>: Use
6874 TARGET_DEFAULT_RETURN.
6876 2014-02-19 Tom Tromey <tromey@redhat.com>
6878 * target-delegates.c: Rebuild.
6879 * target.c (update_current_target): Don't inherit or default
6881 * target.h (struct target_ops) <to_has_exited>: Use
6882 TARGET_DEFAULT_RETURN..
6884 2014-02-19 Tom Tromey <tromey@redhat.com>
6886 * target-delegates.c: Rebuild.
6887 * target.c (update_current_target): Don't inherit or default
6888 to_set_syscall_catchpoint.
6889 (return_one): Remove.
6890 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6891 TARGET_DEFAULT_RETURN.
6893 2014-02-19 Tom Tromey <tromey@redhat.com>
6895 * target-delegates.c: Rebuild.
6896 * target.c (update_current_target): Don't inherit or default
6897 to_insert_exec_catchpoint.
6898 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6899 TARGET_DEFAULT_RETURN.
6901 2014-01-08 Tom Tromey <tromey@redhat.com>
6903 * target-delegates.c: Rebuild.
6904 * target.c (update_current_target): Don't inherit or default
6905 to_insert_exec_catchpoint.
6906 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6907 TARGET_DEFAULT_RETURN.
6909 2014-02-19 Tom Tromey <tromey@redhat.com>
6911 * target-delegates.c: Rebuild.
6912 * target.c (update_current_target): Don't inherit or default
6913 to_remove_vfork_catchpoint.
6914 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6915 TARGET_DEFAULT_RETURN.
6917 2014-02-19 Tom Tromey <tromey@redhat.com>
6919 * target-delegates.c: Rebuild.
6920 * target.c (update_current_target): Don't inherit or default
6921 to_insert_vfork_catchpoint.
6922 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6923 TARGET_DEFAULT_RETURN.
6925 2014-02-19 Tom Tromey <tromey@redhat.com>
6927 * target-delegates.c: Rebuild.
6928 * target.c (update_current_target): Don't inherit or default
6929 to_remove_fork_catchpoint.
6930 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6931 TARGET_DEFAULT_RETURN.
6933 2014-02-19 Tom Tromey <tromey@redhat.com>
6935 * target-delegates.c: Rebuild.
6936 * target.c (update_current_target): Don't inherit or default
6937 to_insert_fork_catchpoint.
6938 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6939 TARGET_DEFAULT_RETURN.
6941 2014-02-19 Tom Tromey <tromey@redhat.com>
6943 * target-delegates.c: Rebuild.
6944 * target.c (update_current_target): Don't inherit or default
6945 to_post_startup_inferior.
6946 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6947 TARGET_DEFAULT_IGNORE.
6949 2014-02-19 Tom Tromey <tromey@redhat.com>
6951 * target-delegates.c: Rebuild.
6952 * target.c (update_current_target): Don't inherit or default
6954 * target.h (struct target_ops) <to_load>: Use
6955 TARGET_DEFAULT_NORETURN.
6957 2014-02-19 Tom Tromey <tromey@redhat.com>
6959 * target-delegates.c: Rebuild.
6960 * target.c (update_current_target): Don't inherit or default
6962 * target.h (struct target_ops) <to_terminal_info>: Use
6963 TARGET_DEFAULT_FUNC.
6965 2014-02-19 Tom Tromey <tromey@redhat.com>
6967 * target-delegates.c: Rebuild.
6968 * target.c (update_current_target): Don't inherit or default
6969 to_terminal_save_ours.
6970 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6971 TARGET_DEFAULT_IGNORE.
6973 2014-02-19 Tom Tromey <tromey@redhat.com>
6975 * target-delegates.c: Rebuild.
6976 * target.c (update_current_target): Don't inherit or default
6978 * target.h (struct target_ops) <to_terminal_ours>: Use
6979 TARGET_DEFAULT_IGNORE.
6981 2014-02-19 Tom Tromey <tromey@redhat.com>
6983 * target-delegates.c: Rebuild.
6984 * target.c (update_current_target): Don't inherit or default
6985 to_terminal_ours_for_output.
6986 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6987 TARGET_DEFAULT_IGNORE.
6989 2014-02-19 Tom Tromey <tromey@redhat.com>
6991 * target-delegates.c: Rebuild.
6992 * target.c (update_current_target): Don't inherit or default
6993 to_terminal_inferior.
6994 * target.h (struct target_ops) <to_terminal_inferior>: Use
6995 TARGET_DEFAULT_IGNORE.
6997 2014-02-19 Tom Tromey <tromey@redhat.com>
6999 * target-delegates.c: Rebuild.
7000 * target.c (update_current_target): Don't inherit or default
7002 * target.h (struct target_ops) <to_terminal_init>: Use
7003 TARGET_DEFAULT_IGNORE.
7005 2014-02-19 Tom Tromey <tromey@redhat.com>
7007 * target-delegates.c: Rebuild.
7008 * target.c (update_current_target): Don't inherit or default
7009 to_can_accel_watchpoint_condition.
7010 * target.h (struct target_ops)
7011 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7013 2014-02-19 Tom Tromey <tromey@redhat.com>
7015 * target-delegates.c: Rebuild.
7016 * target.c (update_current_target): Don't inherit or default
7017 to_region_ok_for_hw_watchpoint.
7018 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7019 Use TARGET_DEFAULT_FUNC.
7021 2014-02-19 Tom Tromey <tromey@redhat.com>
7023 * target-delegates.c: Rebuild.
7024 * target.c (update_current_target): Don't inherit or default
7025 to_watchpoint_addr_within_range.
7026 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7027 Use TARGET_DEFAULT_FUNC.
7029 2014-02-19 Tom Tromey <tromey@redhat.com>
7031 * target-delegates.c: Rebuild.
7032 * target.c (update_current_target): Don't inherit or default
7033 to_remove_watchpoint.
7034 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7035 TARGET_DEFAULT_NORETURN.
7037 2014-02-19 Tom Tromey <tromey@redhat.com>
7039 * target-delegates.c: Rebuild.
7040 * target.c (update_current_target): Don't inherit or default
7041 to_insert_watchpoint.
7042 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7043 TARGET_DEFAULT_RETURN.
7045 2014-02-19 Tom Tromey <tromey@redhat.com>
7047 * target-delegates.c: Rebuild.
7048 * target.c (update_current_target): Don't inherit or default
7049 to_remove_hw_breakpoint.
7050 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7051 TARGET_DEFAULT_RETURN.
7053 2014-02-19 Tom Tromey <tromey@redhat.com>
7055 * target-delegates.c: Rebuild.
7056 * target.c (update_current_target): Don't inherit or default
7057 to_insert_hw_breakpoint.
7058 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7059 TARGET_DEFAULT_RETURN.
7061 2014-02-19 Tom Tromey <tromey@redhat.com>
7063 * target-delegates.c: Rebuild.
7064 * target.c (update_current_target): Don't inherit or default
7065 to_can_use_hw_breakpoint.
7066 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7067 TARGET_DEFAULT_RETURN.
7069 2014-02-19 Tom Tromey <tromey@redhat.com>
7071 * target-delegates.c: Rebuild.
7072 * target.c (update_current_target): Don't inherit or default
7074 * target.h (struct target_ops) <to_files_info>: Use
7075 TARGET_DEFAULT_IGNORE.
7077 2014-02-19 Tom Tromey <tromey@redhat.com>
7079 * target-delegates.c: Rebuild.
7080 * target.c (update_current_target): Don't inherit or default
7082 * target.h (struct target_ops) <to_store>: Use
7083 TARGET_DEFAULT_NORETURN.
7085 2014-02-19 Tom Tromey <tromey@redhat.com>
7087 * target-delegates.c: Rebuild.
7088 * target.c (update_current_target): Don't inherit or default
7090 * target.h (struct target_ops) <to_post_attach>: Use
7091 TARGET_DEFAULT_IGNORE.
7093 2014-02-19 Tom Tromey <tromey@redhat.com>
7095 * target-delegates.c: Rebuild.
7096 * target.c (update_current_target): Don't inherit or default
7098 (default_rcmd): New function.
7099 (do_monitor_command): Unconditionally delegate.
7100 * target.h (struct target_ops) <to_rmcd>: Use
7101 TARGET_DEFAULT_FUNC.
7103 2014-02-19 Tom Tromey <tromey@redhat.com>
7105 * target-delegates.c: Rebuild.
7106 * target.c (init_dummy_target): Don't initialize to_attach.
7107 (target_attach): Unconditionally delegate.
7108 * target.h (struct target_ops) <to_attach>: Use
7109 TARGET_DEFAULT_FUNC.
7111 2014-02-19 Tom Tromey <tromey@redhat.com>
7113 * target-delegates.c: Rebuild.
7114 * target.c (target_detach): Unconditionally delegate.
7115 (init_dummy_target): Don't initialize to_detach.
7116 * target.h (struct target_ops) <to_detach>: Use
7117 TARGET_DEFAULT_IGNORE.
7119 2014-02-19 Tom Tromey <tromey@redhat.com>
7121 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7123 (target_augmented_libraries_svr4_read): Add argument.
7124 * target.c (update_current_target): Update.
7125 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7128 2014-02-19 Tom Tromey <tromey@redhat.com>
7130 * target.h (struct target_ops) <to_call_history_range>: Add
7132 * target.c (target_call_history_range): Add argument.
7133 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7135 (record_btrace_call_history_from): Update.
7137 2014-02-19 Tom Tromey <tromey@redhat.com>
7139 * target.h (struct target_ops) <to_call_history_from>: Add
7141 * target.c (target_call_history_from): Add argument.
7142 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7145 2014-02-19 Tom Tromey <tromey@redhat.com>
7147 * target.h (struct target_ops) <to_call_history>: Add argument.
7148 * target.c (target_call_history): Add argument.
7149 * record-btrace.c (record_btrace_call_history): Add 'self'
7152 2014-02-19 Tom Tromey <tromey@redhat.com>
7154 * target.h (struct target_ops) <to_insn_history_range>: Add
7156 * target.c (target_insn_history_range): Add argument.
7157 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7159 (record_btrace_insn_history_from): Update.
7161 2014-02-19 Tom Tromey <tromey@redhat.com>
7163 * target.h (struct target_ops) <to_insn_history_from>: Add
7165 * target.c (target_insn_history_from): Add argument.
7166 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7169 2014-02-19 Tom Tromey <tromey@redhat.com>
7171 * target.h (struct target_ops) <to_insn_history>: Add argument.
7172 * target.c (target_insn_history): Add argument.
7173 * record-btrace.c (record_btrace_insn_history): Add 'self'
7176 2014-02-19 Tom Tromey <tromey@redhat.com>
7178 * target.h (struct target_ops) <to_goto_record>: Add argument.
7179 * target.c (target_goto_record): Add argument.
7180 * record-full.c (record_full_goto): Add 'self' argument.
7181 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7183 2014-02-19 Tom Tromey <tromey@redhat.com>
7185 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7186 * target.c (target_goto_record_end): Add argument.
7187 * record-full.c (record_full_goto_end): Add 'self' argument.
7188 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7190 2014-02-19 Tom Tromey <tromey@redhat.com>
7192 * target.h (struct target_ops) <to_goto_record_begin>: Add
7194 * target.c (target_goto_record_begin): Add argument.
7195 * record-full.c (record_full_goto_begin): Add 'self' argument.
7196 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7199 2014-02-19 Tom Tromey <tromey@redhat.com>
7201 * target.h (struct target_ops) <to_record_is_replaying>: Add
7203 * target.c (target_record_is_replaying): Add argument.
7204 * record-full.c (record_full_is_replaying): Add 'self' argument.
7205 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7207 (record_btrace_xfer_partial, record_btrace_store_registers)
7208 (record_btrace_prepare_to_store, record_btrace_resume)
7209 (record_btrace_wait, record_btrace_decr_pc_after_break)
7210 (record_btrace_find_new_threads, record_btrace_thread_alive):
7213 2014-02-19 Tom Tromey <tromey@redhat.com>
7215 * target.h (struct target_ops) <to_delete_record>: Add argument.
7216 * target.c (target_delete_record): Add argument.
7217 * record-full.c (record_full_delete): Add 'self' argument.
7219 2014-02-19 Tom Tromey <tromey@redhat.com>
7221 * target.h (struct target_ops) <to_save_record>: Add argument.
7222 * target.c (target_save_record): Add argument.
7223 * record-full.c (record_full_save): Add 'self' argument.
7224 (record_full_save): Add 'self' argument.
7226 2014-02-19 Tom Tromey <tromey@redhat.com>
7228 * target.h (struct target_ops) <to_info_record>: Add argument.
7229 * target.c (target_info_record): Add argument.
7230 * record.c (info_record_command): Add argument.
7231 * record-full.c (record_full_info): Add 'self' argument.
7232 * record-btrace.c (record_btrace_info): Add 'self' argument.
7234 2014-02-19 Tom Tromey <tromey@redhat.com>
7236 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7237 * target.c (target_stop_recording): Add argument.
7238 * record.c (record_stop): Add argument.
7239 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7242 2014-02-19 Tom Tromey <tromey@redhat.com>
7244 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7245 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7246 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7248 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7249 (_initialize_amd64_linux_nat): Use it.
7250 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7251 (_initialize_i386_linux_nat): Use it.
7253 2014-02-19 Tom Tromey <tromey@redhat.com>
7255 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7256 * target.c (target_teardown_btrace): Add argument.
7257 * remote.c (remote_teardown_btrace): Add 'self' argument.
7258 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7260 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7263 2014-02-19 Tom Tromey <tromey@redhat.com>
7265 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7266 * target.c (target_disable_btrace): Add argument.
7267 * remote.c (remote_disable_btrace): Add 'self' argument.
7268 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7270 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7273 2014-02-19 Tom Tromey <tromey@redhat.com>
7275 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7276 * target.c (target_enable_btrace): Add argument.
7277 * remote.c (remote_enable_btrace): Add 'self' argument.
7278 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7280 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7283 2014-02-19 Tom Tromey <tromey@redhat.com>
7285 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7286 (target_can_use_agent): Add argument.
7287 * target.c (update_current_target): Update.
7288 * remote.c (remote_can_use_agent): Add 'self' argument.
7289 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7291 2014-02-19 Tom Tromey <tromey@redhat.com>
7293 * target.h (struct target_ops) <to_use_agent>: Add argument.
7294 (target_use_agent): Add argument.
7295 * target.c (update_current_target): Update.
7296 * remote.c (remote_use_agent): Add 'self' argument.
7297 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7299 2014-02-19 Tom Tromey <tromey@redhat.com>
7301 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7302 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7303 (target_traceframe_info): Add argument.
7304 * target.c (update_current_target): Update.
7305 * remote.c (remote_traceframe_info): Add 'self' argument.
7306 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7308 2014-02-19 Tom Tromey <tromey@redhat.com>
7310 * target.h (target_static_tracepoint_markers_by_strid): Add
7312 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7314 * target.c (update_current_target): Update.
7315 * remote.c (struct target_ops)
7316 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7317 * linux-nat.c (struct target_ops)
7318 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7320 2014-02-19 Tom Tromey <tromey@redhat.com>
7322 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7324 (target_static_tracepoint_marker_at): Add argument.
7325 * target.c (update_current_target): Update.
7326 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7329 2014-02-19 Tom Tromey <tromey@redhat.com>
7331 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7332 (target_set_permissions): Add argument.
7333 * target.c (update_current_target): Update.
7334 * remote.c (remote_set_permissions): Add 'self' argument.
7335 (remote_start_remote): Update.
7337 2014-02-19 Tom Tromey <tromey@redhat.com>
7339 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7340 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7341 (target_get_tib_address): Add argument.
7342 * target.c (update_current_target): Update.
7343 * remote.c (remote_get_tib_address): Add 'self' argument.
7345 2014-02-19 Tom Tromey <tromey@redhat.com>
7347 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7348 (target_set_trace_notes): Add argument.
7349 * target.c (update_current_target): Update.
7350 * remote.c (remote_set_trace_notes): Add 'self' argument.
7352 2014-02-19 Tom Tromey <tromey@redhat.com>
7354 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7356 (target_set_trace_buffer_size): Add argument.
7357 * target.c (update_current_target): Update.
7358 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7360 2014-02-19 Tom Tromey <tromey@redhat.com>
7362 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7364 (target_set_circular_trace_buffer): Add argument.
7365 * target.c (update_current_target): Update.
7366 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7369 2014-02-19 Tom Tromey <tromey@redhat.com>
7371 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7373 (target_set_disconnected_tracing): Add argument.
7374 * target.c (update_current_target): Update.
7375 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7377 2014-02-19 Tom Tromey <tromey@redhat.com>
7379 * target.h (struct target_ops)
7380 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7381 (target_get_min_fast_tracepoint_insn_len): Add argument.
7382 * target.c (update_current_target): Update.
7383 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7386 2014-02-19 Tom Tromey <tromey@redhat.com>
7388 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7390 (target_get_raw_trace_data): Add argument.
7391 * target.c (update_current_target): Update.
7392 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7394 2014-02-19 Tom Tromey <tromey@redhat.com>
7396 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7398 (target_upload_trace_state_variables): Add argument.
7399 * target.c (update_current_target): Update.
7400 * remote.c (remote_upload_trace_state_variables): Add 'self'
7402 (remote_start_remote): Update.
7404 2014-02-19 Tom Tromey <tromey@redhat.com>
7406 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7408 (target_upload_tracepoints): Add argument.
7409 * target.c (update_current_target): Update.
7410 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7411 (remote_start_remote): Update.
7413 2014-02-19 Tom Tromey <tromey@redhat.com>
7415 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7416 (target_save_trace_data): Add argument.
7417 * target.c (update_current_target): Update.
7418 * remote.c (remote_save_trace_data): Add 'self' argument.
7420 2014-02-19 Tom Tromey <tromey@redhat.com>
7422 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7424 * target.h (struct target_ops)
7425 <to_get_trace_state_variable_value>: Add argument.
7426 (target_get_trace_state_variable_value): Add argument.
7427 * target.c (update_current_target): Update.
7428 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7430 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7432 2014-02-19 Tom Tromey <tromey@redhat.com>
7434 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7435 * target.h (struct target_ops) <to_trace_find>: Add argument.
7436 (target_trace_find): Add argument.
7437 * target.c (update_current_target): Update.
7438 * remote.c (remote_trace_find): Add 'self' argument.
7439 * ctf.c (ctf_trace_find): Add 'self' argument.
7441 2014-02-19 Tom Tromey <tromey@redhat.com>
7443 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7444 (target_trace_stop): Add argument.
7445 * target.c (update_current_target): Update.
7446 * remote.c (remote_trace_stop): Add 'self' argument.
7448 2014-02-19 Tom Tromey <tromey@redhat.com>
7450 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7451 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7453 (target_get_tracepoint_status): Add argument.
7454 * target.c (update_current_target): Update.
7455 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7457 2014-02-19 Tom Tromey <tromey@redhat.com>
7459 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7460 * target.h (struct target_ops) <to_get_trace_status>: Add
7462 (target_get_trace_status): Add argument.
7463 * target.c (update_current_target): Update.
7464 * remote.c (remote_get_trace_status): Add 'self' argument.
7465 (remote_start_remote, remote_can_download_tracepoint): Update.
7466 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7468 2014-02-19 Tom Tromey <tromey@redhat.com>
7470 * target.h (struct target_ops) <to_trace_start>: Add argument.
7471 (target_trace_start): Add argument.
7472 * target.c (update_current_target): Update.
7473 * remote.c (remote_trace_start): Add 'self' argument.
7475 2014-02-19 Tom Tromey <tromey@redhat.com>
7477 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7479 (target_trace_set_readonly_regions): Add argument.
7480 * target.c (update_current_target): Update.
7481 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7484 2014-02-19 Tom Tromey <tromey@redhat.com>
7486 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7488 (target_disable_tracepoint): Add argument.
7489 * target.c (update_current_target): Update.
7490 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7492 2014-02-19 Tom Tromey <tromey@redhat.com>
7494 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7496 (target_enable_tracepoint): Add argument.
7497 * target.c (update_current_target): Update.
7498 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7500 2014-02-19 Tom Tromey <tromey@redhat.com>
7502 * target.h (struct target_ops) <to_download_trace_state_variable>:
7504 (target_download_trace_state_variable): Add argument.
7505 * target.c (update_current_target): Update.
7506 * remote.c (remote_download_trace_state_variable): Add 'self'
7509 2014-02-19 Tom Tromey <tromey@redhat.com>
7511 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7513 (target_can_download_tracepoint): Add argument.
7514 * target.c (update_current_target): Update.
7515 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7517 2014-02-19 Tom Tromey <tromey@redhat.com>
7519 * target.h (struct target_ops) <to_download_tracepoint>: Add
7521 (target_download_tracepoint): Add argument.
7522 * target.c (update_current_target): Update.
7523 * remote.c (remote_download_tracepoint): Add 'self' argument.
7525 2014-02-19 Tom Tromey <tromey@redhat.com>
7527 * target.h (struct target_ops) <to_trace_init>: Add argument.
7528 (target_trace_init): Add argument.
7529 * target.c (update_current_target): Update.
7530 * remote.c (remote_trace_init): Add 'self' argument.
7532 2014-02-19 Tom Tromey <tromey@redhat.com>
7534 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7535 * target.c (target_fileio_readlink): Add argument.
7536 * remote.c (remote_hostio_readlink): Add 'self' argument.
7537 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7539 2014-02-19 Tom Tromey <tromey@redhat.com>
7541 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7542 * target.c (target_fileio_unlink): Add argument.
7543 * remote.c (remote_hostio_unlink): Add 'self' argument.
7544 (remote_file_delete): Update.
7545 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7547 2014-02-19 Tom Tromey <tromey@redhat.com>
7549 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7550 * target.c (target_fileio_close): Add argument.
7551 * remote.c (remote_hostio_close): Add 'self' argument.
7552 (remote_hostio_close_cleanup): Update.
7553 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7555 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7557 2014-02-19 Tom Tromey <tromey@redhat.com>
7559 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7560 * target.c (target_fileio_pread): Add argument.
7561 * remote.c (remote_hostio_pread): Add 'self' argument.
7562 (remote_bfd_iovec_pread, remote_file_get): Update.
7563 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7565 2014-02-19 Tom Tromey <tromey@redhat.com>
7567 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7568 * target.c (target_fileio_pwrite): Add argument.
7569 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7570 (remote_file_put): Update.
7571 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7573 2014-02-19 Tom Tromey <tromey@redhat.com>
7575 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7576 * target.c (target_fileio_open): Add argument.
7577 * remote.c (remote_hostio_open): Add 'self' argument.
7578 (remote_bfd_iovec_open): Add 'self' argument.
7579 (remote_file_put): Add 'self' argument.
7580 (remote_file_get): Add 'self' argument.
7581 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7583 2014-02-19 Tom Tromey <tromey@redhat.com>
7585 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7587 (target_can_run_breakpoint_commands): Add argument.
7588 * target.c (update_current_target): Update.
7589 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7591 (remote_insert_breakpoint): Add 'self' argument.
7592 (remote_insert_hw_breakpoint): Add 'self' argument.
7593 (remote_can_run_breakpoint_commands): Add 'self' argument.
7595 2014-02-19 Tom Tromey <tromey@redhat.com>
7597 * target.h (struct target_ops)
7598 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7599 (target_supports_evaluation_of_breakpoint_conditions): Add
7601 * target.c (update_current_target): Update.
7602 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7604 (remote_insert_breakpoint): Add 'self' argument.
7605 (remote_insert_hw_breakpoint): Add 'self' argument.
7606 (remote_supports_cond_breakpoints): Add 'self' argument.
7608 2014-02-19 Tom Tromey <tromey@redhat.com>
7610 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7612 (target_supports_string_tracing): Add argument.
7613 * target.c (update_current_target): Update.
7614 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7616 2014-02-19 Tom Tromey <tromey@redhat.com>
7618 * target.h (struct target_ops)
7619 <to_supports_disable_randomization>: Add argument.
7620 * target.c (find_default_supports_disable_randomization): Add
7622 (target_supports_disable_randomization): Add argument.
7623 (find_default_supports_disable_randomization): Add 'self'
7625 * remote.c (extended_remote_supports_disable_randomization): Add
7627 (remote_supports_disable_randomization): Add 'self' argument.
7628 (extended_remote_create_inferior): Update.
7629 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7632 2014-02-19 Tom Tromey <tromey@redhat.com>
7634 * target.h (struct target_ops)
7635 <to_supports_enable_disable_tracepoint>: Add argument.
7636 (target_supports_enable_disable_tracepoint): Add argument.
7637 * target.c (update_current_target): Update.
7638 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7641 2014-02-19 Tom Tromey <tromey@redhat.com>
7643 * target.h (struct target_ops) <to_supports_multi_process>: Add
7645 (target_supports_multi_process): Add argument.
7646 * target.c (update_current_target): Update.
7647 * remote.c (remote_supports_multi_process): Add 'self' argument.
7648 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7650 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7653 2014-02-19 Tom Tromey <tromey@redhat.com>
7655 * target.h (struct target_ops) <to_execution_direction>: Add
7657 (target_execution_direction): Add argument.
7658 * target.c (default_execution_direction): Add 'self' argument.
7659 * record-full.c (record_full_execution_direction): Add 'self'
7662 2014-02-19 Tom Tromey <tromey@redhat.com>
7664 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7666 (target_can_execute_reverse): Add argument.
7667 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7668 * record-full.c (record_full_can_execute_reverse): Add 'self'
7670 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7673 2014-02-19 Tom Tromey <tromey@redhat.com>
7675 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7676 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7678 (target_get_ada_task_ptid): Add argument.
7679 * target.c (update_current_target): Update.
7680 (default_get_ada_task_ptid): Add 'self' argument.
7681 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7682 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7683 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7685 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7687 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7689 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7691 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7692 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7695 2014-02-19 Tom Tromey <tromey@redhat.com>
7697 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7698 (target_goto_bookmark): Add argument.
7699 * target.c (dummy_goto_bookmark): Add 'self' argument.
7700 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7702 2014-02-19 Tom Tromey <tromey@redhat.com>
7704 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7705 (target_get_bookmark): Add argument.
7706 * target.c (dummy_get_bookmark): Add 'self' argument.
7707 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7709 2014-02-19 Tom Tromey <tromey@redhat.com>
7711 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7713 (target_make_corefile_notes): Add argument.
7714 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7715 * procfs.c (procfs_make_note_section): Add 'self' argument.
7716 (procfs_make_note_section): Add 'self' argument.
7717 (procfs_make_note_section): Add 'self' argument.
7718 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7720 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7721 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7722 * exec.c (exec_make_note_section): Add 'self' argument.
7723 (exec_make_note_section): Add 'self' argument.
7725 2014-02-19 Tom Tromey <tromey@redhat.com>
7727 * target.h (struct target_ops) <to_find_memory_regions>: Add
7729 (target_find_memory_regions): Add argument.
7730 * target.c (dummy_find_memory_regions): Add 'self' argument.
7731 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7732 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7733 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7734 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7735 * exec. (exec_do_find_memory_regions): New global.
7736 (exec_set_find_memory_regions): Rewrite.
7737 (exec_find_memory_regions): New function.
7738 (init_exec_ops): Use exec_find_memory_regions.
7740 2014-02-19 Tom Tromey <tromey@redhat.com>
7742 * target.h (struct target_ops) <to_supports_non_stop>: Add
7744 * target.c (find_default_supports_non_stop): Add argument.
7745 (target_supports_non_stop): Add argument.
7746 (find_default_supports_non_stop): Add 'self' argument.
7747 * remote.c (remote_supports_non_stop): Add 'self' argument.
7748 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7750 2014-02-19 Tom Tromey <tromey@redhat.com>
7752 * target.h (struct target_ops) <to_log_command>: Add argument.
7753 (target_log_command): Add argument.
7754 * serial.h (serial_log_command): Add 'self' argument.
7755 * serial.c (serial_log_command): Add 'self' argument.
7757 2014-02-19 Tom Tromey <tromey@redhat.com>
7759 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7760 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7762 (target_pid_to_exec_file): Add argument.
7763 * target.c (debug_to_pid_to_exec_file): Add argument.
7764 (update_current_target): Update.
7765 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7766 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7767 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7768 (linux_handle_extended_wait): Update.
7769 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7770 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7771 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7772 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7774 2014-02-19 Tom Tromey <tromey@redhat.com>
7776 * target.h (struct target_ops) <to_rcmd>: Add argument.
7777 (target_rcmd): Add argument.
7778 * target.c (debug_to_rcmd): Add argument.
7779 (update_current_target, do_monitor_command): Update.
7780 * remote.c (remote_rcmd): Add 'self' argument.
7781 * monitor.c (monitor_rcmd): Add 'self' argument.
7783 2014-02-19 Tom Tromey <tromey@redhat.com>
7785 * windows-nat.c (windows_stop): Add 'self' argument.
7786 * target.h (struct target_ops) <to_stop>: Add argument.
7787 * target.c (target_stop): Add argument.
7788 (debug_to_stop): Add argument.
7789 (update_current_target): Update.
7790 * remote.c (remote_stop): Add 'self' argument.
7791 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7792 (gdbsim_cntrl_c): Update.
7793 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7794 * procfs.c (procfs_stop): Add 'self' argument.
7795 * nto-procfs.c (procfs_stop): Add 'self' argument.
7796 * monitor.c (monitor_stop): Add 'self' argument.
7797 (monitor_open): Update.
7798 * linux-nat.c (linux_nat_stop): Add argument.
7799 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7800 * gnu-nat.c (gnu_stop): Add 'self' argument.
7801 * darwin-nat.c (darwin_stop): Add 'self' argument.
7803 2014-02-19 Tom Tromey <tromey@redhat.com>
7805 * target.h (struct target_ops) <to_thread_name>: Add argument.
7806 * target.c (target_thread_name): Add argument.
7807 (update_current_target): Update.
7808 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7810 2014-02-19 Tom Tromey <tromey@redhat.com>
7812 * target.h (struct target_ops) <to_extra_thread_info>: Add
7814 (target_extra_thread_info): Add argument.
7815 * target.c (update_current_target): Update.
7816 * remote.c (remote_threads_extra_info): Add 'self' argument.
7817 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7819 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7820 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7821 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7823 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7825 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7827 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7830 2014-02-19 Tom Tromey <tromey@redhat.com>
7832 * target.h (struct target_ops) <to_program_signals>: Add argument.
7833 * target.c (target_program_signals): Add argument.
7834 * remote.c (remote_program_signals): Add 'self' argument.
7836 2014-02-19 Tom Tromey <tromey@redhat.com>
7838 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7839 * target.c (target_pass_signals): Add argument.
7840 * remote.c (remote_pass_signals): Add 'self' argument.
7841 (remote_start_remote): Update.
7842 * procfs.c (procfs_pass_signals): Add 'self' argument.
7843 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7844 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7845 (linux_nat_create_inferior, linux_nat_attach): Update.
7847 2014-02-19 Tom Tromey <tromey@redhat.com>
7849 * windows-nat.c (windows_can_run): Add 'self' argument.
7850 * target.h (struct target_ops) <to_can_run>: Add argument.
7851 (target_can_run): Add argument.
7852 * target.c (debug_to_can_run): Add argument.
7853 (update_current_target): Update.
7854 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7855 * inf-child.c (inf_child_can_run): Add 'self' argument.
7856 * go32-nat.c (go32_can_run): Add 'self' argument.
7858 2014-02-19 Tom Tromey <tromey@redhat.com>
7860 * target.h (struct target_ops) <to_has_exited>: Add argument.
7861 (target_has_exited): Add argument.
7862 * target.c (debug_to_has_exited): Add argument.
7863 (update_current_target): Update.
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7867 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7869 (target_set_syscall_catchpoint): Add argument.
7870 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7872 * target.c (update_current_target): Update.
7874 2014-02-19 Tom Tromey <tromey@redhat.com>
7876 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7878 (target_remove_exec_catchpoint): Add argument.
7879 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7880 (update_current_target): Update.
7881 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7884 2014-02-19 Tom Tromey <tromey@redhat.com>
7886 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7888 (target_insert_exec_catchpoint): Add argument.
7889 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7890 (update_current_target): Update.
7891 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7894 2014-02-19 Tom Tromey <tromey@redhat.com>
7896 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7898 (target_remove_vfork_catchpoint): Add argument.
7899 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7900 (update_current_target): Update.
7901 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7908 (target_insert_vfork_catchpoint): Add argument.
7909 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7910 (update_current_target): Update.
7911 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7914 2014-02-19 Tom Tromey <tromey@redhat.com>
7916 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7918 (target_remove_fork_catchpoint): Add argument.
7919 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7920 (update_current_target): Update.
7921 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7924 2014-02-19 Tom Tromey <tromey@redhat.com>
7926 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7928 (target_insert_fork_catchpoint): Add argument.
7929 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7930 (update_current_target): Update.
7931 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7934 2014-02-19 Tom Tromey <tromey@redhat.com>
7936 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7938 (target_post_startup_inferior): Add argument.
7939 * target.c (debug_to_post_startup_inferior): Add argument.
7940 (update_current_target): Update.
7941 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7943 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7945 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7947 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7949 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7951 (super_post_startup_inferior): Likewise.
7952 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7954 (super_post_startup_inferior): Likewise.
7955 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7956 Add 'self' argument.
7957 (super_post_startup_inferior): Likewise.
7959 2014-02-19 Tom Tromey <tromey@redhat.com>
7961 * target.h (struct target_ops) <to_load>: Add argument.
7962 * target.c (target_load): Add argument.
7963 (debug_to_load): Add argument.
7964 (update_current_target): Update.
7965 * remote.c (remote_load): Add 'self' argument.
7966 * remote-sim.c (gdbsim_load): Add 'self' argument.
7967 * remote-mips.c (mips_load): Add 'self' argument.
7968 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7969 * monitor.c (monitor_load): Add 'self' argument.
7970 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7972 2014-02-19 Tom Tromey <tromey@redhat.com>
7974 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7975 (target_terminal_info): Add argument.
7976 * target.c (debug_to_terminal_info): Add argument.
7977 (default_terminal_info): Likewise.
7978 * inflow.c (child_terminal_info): Add 'self' argument.
7979 * inferior.h (child_terminal_info): Add 'self' argument.
7980 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7982 2014-02-19 Tom Tromey <tromey@redhat.com>
7984 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7986 (target_terminal_save_ours): Add argument.
7987 * target.c (debug_to_terminal_save_ours): Add argument.
7988 (update_current_target): Update.
7989 * inflow.c (terminal_save_ours): Add 'self' argument.
7990 * inferior.h (terminal_save_ours): Add 'self' argument.
7992 2014-02-19 Tom Tromey <tromey@redhat.com>
7994 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7995 (target_terminal_ours): Add argument.
7996 * target.c (debug_to_terminal_ours): Add argument.
7997 (update_current_target): Update.
7998 * remote.c (remote_terminal_ours): Add 'self' argument.
7999 (remote_close): Update.
8000 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8001 * inflow.c (terminal_ours): Add 'self' argument.
8002 * inferior.h (terminal_ours): Add 'self' argument.
8003 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8005 2014-02-19 Pedro Alves <palves@redhat.com>
8006 Tom Tromey <tromey@redhat.com>
8008 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8010 (target_terminal_ours_for_output): Add argument.
8011 * target.c (debug_to_terminal_ours_for_output): Add argument.
8012 (update_current_target): Update.
8013 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8014 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8015 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8017 2014-02-19 Tom Tromey <tromey@redhat.com>
8019 * target.h (struct target_ops) <to_terminal_inferior>: Add
8021 * target.c (target_terminal_inferior): Add argument.
8022 (update_current_target): Update.
8023 * remote.c (remote_terminal_inferior): Add 'self' argument.
8024 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8025 * inflow.c (terminal_inferior): Add 'self' argument.
8026 * inferior.h (terminal_inferior): Add 'self' argument.
8027 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8028 (go32_terminal_inferior): Add 'self' argument.
8030 2014-02-19 Tom Tromey <tromey@redhat.com>
8032 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8033 (target_terminal_init): Add argument.
8034 * target.c (debug_to_terminal_init): Add argument.
8035 (update_current_target): Update.
8036 * inflow.c (terminal_init_inferior): Add 'self' argument.
8037 * inferior.h (terminal_init_inferior): Add 'self' argument.
8038 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8039 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8043 * target.h (struct target_ops)
8044 <to_can_accel_watchpoint_condition>: Add argument.
8045 (target_can_accel_watchpoint_condition): Add argument.
8046 * target.c (debug_to_can_accel_watchpoint_condition): Add
8048 (update_current_target): Update.
8049 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8054 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8056 (target_region_ok_for_hw_watchpoint): Add argument.
8057 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8058 (default_region_ok_for_hw_watchpoint): Add argument.
8059 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8060 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8062 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8064 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8066 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8068 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8070 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8072 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8073 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8075 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8076 Add 'self' argument.
8078 2014-02-19 Tom Tromey <tromey@redhat.com>
8080 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8082 (target_insert_watchpoint): Add argument.
8083 * target.c (debug_to_insert_watchpoint): Add argument.
8084 (update_current_target): Update.
8085 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8086 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8087 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8088 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8089 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8090 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8092 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8093 (procfs_insert_hw_watchpoint): Add 'self' argument.
8094 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8096 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8098 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8100 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8101 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8103 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8106 2014-02-19 Tom Tromey <tromey@redhat.com>
8108 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8110 (target_remove_watchpoint): Add argument.
8111 * target.c (debug_to_remove_watchpoint): Add argument.
8112 (update_current_target): Update.
8113 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8114 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8115 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8116 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8117 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8118 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8120 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8121 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8123 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8125 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8127 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8128 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8130 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8133 2014-02-19 Tom Tromey <tromey@redhat.com>
8135 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8137 (target_remove_hw_breakpoint): Add argument.
8138 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8139 (update_current_target): Update.
8140 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8141 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8143 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8144 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8146 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8151 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8153 (target_insert_hw_breakpoint): Add argument.
8154 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8155 (update_current_target): Update.
8156 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8157 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8159 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8160 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8161 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8163 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8166 2014-02-19 Tom Tromey <tromey@redhat.com>
8168 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8170 (target_can_use_hardware_watchpoint): Add argument.
8171 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8172 (update_current_target): Update.
8173 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8175 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8177 * remote.c (remote_check_watch_resources): Add 'self' argument.
8178 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8179 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8181 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8182 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8184 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8186 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8188 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8190 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8192 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8194 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8195 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8197 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8200 2014-02-19 Tom Tromey <tromey@redhat.com>
8202 * target.h (struct target_ops) <to_post_attach>: Add argument.
8203 (target_post_attach): Add argument.
8204 * target.c (debug_to_post_attach): Add argument.
8205 (update_current_target): Update.
8206 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8207 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8208 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8209 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8210 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8212 2014-02-19 Tom Tromey <tromey@redhat.com>
8214 * windows-nat.c (windows_close): Add 'self' argument.
8215 * tracepoint.c (tfile_close): Add 'self' argument.
8216 * target.h (struct target_ops) <to_close>: Add argument.
8217 * target.c (target_close): Add argument.
8218 (update_current_target): Update.
8219 * remote.c (remote_close): Add 'self' argument.
8220 * remote-sim.c (gdbsim_close): Add 'self' argument.
8221 * remote-mips.c (mips_close): Add 'self' argument.
8222 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8223 * record-full.c (record_full_close): Add 'self' argument.
8224 * record-btrace.c (record_btrace_close): Add 'self' argument.
8225 * monitor.h (monitor_close): Add 'self' argument.
8226 * monitor.c (monitor_close): Add 'self' argument.
8227 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8228 * linux-nat.c (linux_nat_close): Add argument.
8229 * go32-nat.c (go32_close): Add 'self' argument.
8230 * exec.c (exec_close_1): Add 'self' argument.
8231 * ctf.c (ctf_close): Add 'self' argument.
8232 * corelow.c (core_close): Add 'self' argument.
8233 (core_close_cleanup): Update.
8234 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8235 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8237 2014-02-19 Tom Tromey <tromey@redhat.com>
8239 * remote.c (remote_load): New function.
8240 (init_remote_ops): Use it.
8242 2014-02-19 Tom Tromey <tromey@redhat.com>
8244 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8246 * common/linux-btrace.h (linux_supports_btrace): Update.
8247 * remote.c (remote_supports_btrace): Add "self" argument.
8248 * target-delegates.c: Rebuild.
8249 * target.c (target_supports_btrace): Remove.
8250 * target.h (struct target_ops) <to_supports_btrace>: Add
8251 target_ops argument.
8252 (target_supports_btrace): New define.
8254 2014-02-19 Tom Tromey <tromey@redhat.com>
8256 * record-full.c (record_full_beneath_to_resume_ops)
8257 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8258 (record_full_beneath_to_wait)
8259 (record_full_beneath_to_store_registers_ops)
8260 (record_full_beneath_to_store_registers)
8261 (record_full_beneath_to_xfer_partial_ops)
8262 (record_full_beneath_to_xfer_partial)
8263 (record_full_beneath_to_insert_breakpoint_ops)
8264 (record_full_beneath_to_insert_breakpoint)
8265 (record_full_beneath_to_remove_breakpoint_ops)
8266 (record_full_beneath_to_remove_breakpoint)
8267 (record_full_beneath_to_stopped_by_watchpoint)
8268 (record_full_beneath_to_stopped_data_address)
8269 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8270 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8271 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8272 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8273 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8274 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8275 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8276 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8277 (record_full_resume, record_full_wait_1)
8278 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8279 (record_full_store_registers, record_full_xfer_partial)
8280 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8281 (record_full_async, record_full_core_xfer_partial): Use target
8283 * target-delegates.c: Rebuild.
8284 * target.c (current_xfer_partial): Remove.
8285 (update_current_target): Do not INHERIT or de_fault
8286 to_insert_breakpoint, to_remove_breakpoint,
8287 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8288 to_is_async_p, to_async. Do not set to_xfer_partial field.
8289 (default_xfer_partial): Simplify.
8290 (current_xfer_partial): Remove.
8291 (target_wait, target_resume): Simplify.
8292 (find_default_can_async_p, find_default_is_async_p): Update.
8293 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8294 to_xfer_partial, to_stopped_by_watchpoint,
8295 to_stopped_data_address.
8296 (target_store_registers): Simplify.
8297 (forward_target_remove_breakpoint)
8298 (forward_target_insert_breakpoint): Remove.
8299 (target_remove_breakpoint, target_insert_breakpoint)
8300 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8301 * target.h (struct target_ops) <to_resume, to_wait,
8302 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8303 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8304 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8306 (forward_target_remove_breakpoint)
8307 (forward_target_insert_breakpoint): Remove.
8308 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8310 (record_btrace_insert_breakpoint): Delegate directly.
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8315 * target-delegates.c: New file.
8316 * target.c: Include target-delegates.c.
8317 (init_dummy_target): Call install_dummy_methods.
8318 (complete_target_initialization): Call install_delegators.
8319 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8320 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8321 * make-target-delegates: New file.
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8325 * record.c (find_record_target): Use find_target_at.
8326 * target.c (find_target_at): New function.
8327 * target.h (find_target_at): Declare.
8329 2014-02-19 Tom Tromey <tromey@redhat.com>
8331 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8333 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8335 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8336 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8338 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8340 * linux-nat.c (save_sigtrap): Update.
8341 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8342 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8343 (linux_nat_close): Update.
8344 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8346 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8348 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8349 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8350 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8351 (tmp_to_async): Add 'ops' argument.
8352 (record_full_stopped_by_watchpoint, record_full_async)
8353 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8355 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8356 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8357 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8358 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8359 (remote_is_async_p, remote_async): Add 'ops' argument.
8360 (remote_stopped_data_address): Update.
8361 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8362 * target.c (update_current_target)
8363 (find_default_can_async_p, find_default_is_async_p): Update.
8364 (init_dummy_target): Update.
8365 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8366 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8367 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8368 (target_can_async_p, target_is_async_p, target_async)
8369 (target_stopped_by_watchpoint): Update.
8371 2014-02-19 Yao Qi <yao@codesourcery.com>
8374 * gdbarch.sh: Remove startup_gdbarch.
8375 * gdbarch.c: Regenerated.
8376 * gdbarch.h: Likewise.
8378 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8380 * rl78-tdep.c (rl78_g10_register_name): New function.
8381 (rl78_return_value): Add g10 support.
8382 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8385 2014-02-17 Doug Evans <xdje42@gmail.com>
8387 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8388 (SUBDIR_GUILE_SRCS): Ditto.
8389 (scm-gsmob.o): Ditto.
8391 2014-02-17 Yao Qi <yao@codesourcery.com>
8393 * gnu-nat.c (ILL_RPC): Declare defined function.
8395 2014-02-17 Yao Qi <yao@codesourcery.com>
8397 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8398 mach_msg_type_number_t.
8399 (gnu_write_inferior): Likewise.
8401 2014-02-17 Yao Qi <yao@codesourcery.com>
8403 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8405 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8406 (inf_validate_procs, inf_signal): Likewise.
8407 (S_exception_raise_request): Likewise.
8408 (do_mach_notify_dead_name): Likewise.
8409 (steal_exc_port): Likewise.
8410 (gnu_read_inferior): Change 'copy_count''s type to
8411 mach_msg_type_number_t.
8412 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8415 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8417 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8418 flag. Adjust all users; in particular...
8419 (gnu_wait): ..., don't decrement its value in here...
8420 (gnu_create_inferior): ..., and instead set the flag in here,
8421 around the startup_inferior call, and call that one with
8422 START_INFERIOR_TRAPS_EXPECTED.
8424 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8425 (ILL_RPC): ... new macro.
8426 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8427 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8428 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8429 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8430 functions with ILL_RPC macro.
8431 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8432 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8433 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8434 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8435 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8436 (S_proc_getlogin_reply, S_proc_getsid_reply)
8437 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8438 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8439 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8440 (S_proc_getnports_reply, S_proc_is_important_reply)
8441 (S_proc_get_code_reply): New stub functions, generated with
8444 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8445 collected the type check structures.
8447 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8449 2014-02-14 Doug Evans <dje@google.com>
8451 * target.c (target_write_partial): Fix result type.
8453 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8455 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8456 the proper offsets to access fpregset_t.
8458 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8460 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8461 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8462 * h8300-tdep.c (setmachinelist): Remove global.
8463 * hppa-tdep.c (hppa_sigtramp): Remove global.
8464 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8465 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8466 * ravenscar-thread.c (update_target_observer): Remove global.
8467 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8469 2014-02-12 Tom Tromey <tromey@redhat.com>
8471 * common/rsp-low.c: Update comments.
8472 * common/rsp-low.h: Update comments.
8474 2014-02-12 Tom Tromey <tromey@redhat.com>
8476 * common/rsp-low.c (convert_ascii_to_int): Remove.
8477 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8479 2014-02-12 Tom Tromey <tromey@redhat.com>
8481 * common/rsp-low.h (unhexify): Don't declare.
8482 * common/rsp-low.c (unhexify): Remove.
8484 2014-02-12 Tom Tromey <tromey@redhat.com>
8486 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8487 * common/rsp-low.c (convert_int_to_ascii): Remove.
8489 2014-02-12 Tom Tromey <tromey@redhat.com>
8491 * common/rsp-low.h (hexify): Don't declare.
8492 * common/rsp-low.c (hexify): Remove.
8494 2014-02-12 Tom Tromey <tromey@redhat.com>
8496 * common/rsp-low.c (hexify): Never take strlen of argument.
8498 2014-02-12 Tom Tromey <tromey@redhat.com>
8500 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8501 * remote.c (extended_remote_run, remote_rcmd)
8502 (remote_download_trace_state_variable, remote_save_trace_data)
8503 (remote_set_trace_notes): Update.
8504 * tracepoint.c (encode_source_string, tfile_write_status)
8505 (tfile_write_uploaded_tsv): Update.
8507 2014-02-12 Tom Tromey <tromey@redhat.com>
8509 * tracepoint.c: Include rsp-low.h.
8510 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8511 * remote.c: Include rsp-low.h.
8512 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8513 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8514 (remote_unescape_input): Move to common/rsp-low.c.
8515 * common/rsp-low.h: New file.
8516 * common/rsp-low.c: New file.
8517 * Makefile.in (SFILES): Add common/rsp-low.c.
8518 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8519 (COMMON_OBS): Add rsp-low.o.
8520 (rsp-low.o): New target.
8522 2014-02-12 Tom Tromey <tromey@redhat.com>
8524 * utils.h: Include print-utils.h.
8525 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8526 (int_string, core_addr_to_string, core_addr_to_string_nz)
8527 (hex_string, hex_string_custom): Don't declare.
8528 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8529 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8530 (hex_string_custom, int_string, core_addr_to_string)
8531 (core_addr_to_string_nz, host_address_to_string): Move to
8532 common/print-utils.c.
8533 * common/print-utils.h: New file.
8534 * common/print-utils.c: New file
8535 * Makefile.in (SFILES): Add common/print-utils.c.
8536 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8537 (COMMON_OBS): Add print-utils.o.
8538 (print-utils.o): New target.
8540 2014-02-12 Tom Tromey <tromey@redhat.com>
8542 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8544 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8546 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8548 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8550 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8551 if a PT_IO ptrace request returns sucessfully but indicates that 0
8552 bytes were transferred.
8554 2014-02-12 Pedro Alves <palves@redhat.com>
8555 Kevin Buettner <kevinb@redhat.com>
8557 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8558 TYPE_INSTANCE_FLAG_CODE_SPACE.
8560 2014-02-12 Pedro Alves <palves@redhat.com>
8562 * h8300-tdep.c (pseudo_from_raw_register)
8563 (raw_from_pseudo_register): New functions.
8564 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8567 2014-02-12 Pedro Alves <palves@redhat.com>
8569 * h8300-tdep.c (h8300_register_sim_regno): New function.
8570 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8571 gdbarch_register_sim_regno hook.
8573 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8575 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8577 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8579 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8581 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8583 * obsd-tdep.h (obsd_init_abi): New prototype.
8584 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8585 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8586 (obsd_init_abi): New functions.
8587 * i386obsd-tdep.c: Include "obsd-tdep.h".
8588 (i386obsd_init_abi): Call obsd_init_abi.
8589 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8590 (amd64obsd_init_abi): Call obsd_init_abi.
8591 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8592 obsd-tdep.c to gdb_target_obs.
8594 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8596 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8597 double float arguments to 16-byte in the argument slots.
8599 2014-02-11 Doug Evans <xdje42@gmail.com>
8601 * configure.ac: Don't crash if pkg-config is not found and guile
8602 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8604 * configure: Regenerate.
8606 2014-02-11 Yao Qi <yao@codesourcery.com>
8608 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8609 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8610 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8611 * gnu-nat.c (gnu_xfer_memory): Likewise.
8612 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8613 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8614 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8615 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8617 2014-02-11 Yao Qi <yao@codesourcery.com>
8619 * target.h (enum target_xfer_error): Rename to ...
8620 (enum target_xfer_status): ... it. New. All users updated.
8621 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8623 (TARGET_XFER_STATUS_ERROR_P): New macro.
8624 (target_xfer_error_to_string): Remove declaration.
8625 (target_xfer_status_to_string): Declare.
8626 (target_xfer_partial_ftype): Adjust it.
8627 (struct target_ops) <to_xfer_partial>: Return
8628 target_xfer_status. Add argument xfered_len. Update
8630 * target.c (target_xfer_error_to_string): Rename to ...
8631 (target_xfer_status_to_string): ... it. New. All callers
8633 (target_read_live_memory): Likewise. Call target_xfer_partial
8634 instead of target_read.
8635 (memory_xfer_live_readonly_partial): Return
8636 target_xfer_status. Add argument xfered_len.
8637 (raw_memory_xfer_partial): Likewise.
8638 (memory_xfer_partial_1): Likewise.
8639 (memory_xfer_partial): Likewise.
8640 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8641 properly. Update debug message.
8642 (default_xfer_partial, current_xfer_partial): Likewise.
8643 (target_write_partial): Likewise.
8644 (target_read_partial): Likewise. All callers updated.
8645 (read_whatever_is_readable): Likewise.
8646 (target_write_with_progress): Likewise.
8647 (target_read_alloc_1): Likewise.
8649 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8650 * auxv.c (procfs_xfer_auxv): Likewise.
8651 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8652 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8653 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8654 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8655 * corefile.c (read_memory): Adjust.
8656 * corelow.c (core_xfer_partial): Likewise.
8657 * ctf.c (ctf_xfer_partial): Likewise.
8658 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8660 (darwin_xfer_partial): Likewise.
8661 * exec.c (section_table_xfer_memory_partial): Likewise. All
8663 (exec_xfer_partial): Likewise.
8664 * exec.h (section_table_xfer_memory_partial): Update
8666 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8668 (gnu_xfer_partial): Likewise.
8669 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8670 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8671 (ia64_hpux_xfer_solib_got): Likewise.
8672 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8673 type of 'partial_len' to ULONGEST.
8674 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8675 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8676 (linux_nat_xfer_partial): Likewise.
8677 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8678 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8679 * monitor.c (monitor_xfer_memory): Likewise.
8680 (monitor_xfer_partial): Likewise.
8681 * procfs.c (procfs_xfer_partial): Likewise.
8682 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8683 * record-full.c (record_full_xfer_partial): Likewise.
8684 (record_full_core_xfer_partial): Likewise.
8685 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8686 (gdbsim_xfer_partial): Likewise.
8687 * remote.c (remote_write_bytes_aux): Likewise. All callers
8689 (remote_write_bytes, remote_read_bytes): Likewise. All
8691 (remote_flash_erase): Likewise. All callers updated.
8692 (remote_write_qxfer): Likewise. All callers updated.
8693 (remote_read_qxfer): Likewise. All callers updated.
8694 (remote_xfer_partial): Likewise.
8695 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8696 (rs6000_xfer_shared_libraries): Likewise.
8697 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8698 (sol_thread_xfer_partial): Likewise.
8699 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8700 (sparc_xfer_partial): Likewise.
8701 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8703 (spu_xfer_partial): Likewise.
8704 * spu-multiarch.c (spu_xfer_partial): Likewise.
8705 * tracepoint.c (tfile_xfer_partial): Likewise.
8706 * windows-nat.c (windows_xfer_memory): Likewise.
8707 (windows_xfer_shared_libraries): Likewise.
8708 (windows_xfer_partial): Likewise.
8709 * valprint.c: Replace 'target_xfer_error' with
8710 'target_xfer_status' in comments.
8712 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8714 Checked in by Joel Brobecker <brobecker@adacore.com>.
8715 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8717 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8719 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8720 function parameters.
8722 2014-02-10 Will Newton <will.newton@linaro.org>
8724 * elfread.c (elf_rel_plt_read): Look for a .got section if
8725 looking up .got.plt fails.
8726 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8727 on address passed to elf_gnu_ifunc_record_cache.
8728 (elf_gnu_ifunc_resolve_addr): Likewise.
8729 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8731 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8733 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8734 (X_RETTURN): New macro.
8735 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8737 * sparc64-tdep.c (sparc64_init_abi): Hook
8738 sparc_in_function_epilogue_p.
8740 2014-02-10 Gary Benson <gbenson@redhat.com>
8742 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8743 Rename name_matcher to symbol_matcher.
8745 2014-02-10 Gary Benson <gbenson@redhat.com>
8747 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8748 Use expand_symtabs_file_matcher_ftype and
8749 expand_symtabs_symbol_matcher_ftype.
8751 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8753 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8754 (struct ada_symbol_cache): New.
8755 (ada_free_symbol_cache): Forward declare.
8756 (struct ada_pspace_data): New.
8757 (ada_pspace_data_handle): New static global.
8758 (get_ada_pspace_data, ada_pspace_data_cleanup)
8759 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8760 (cache_space, cache): Delete, now folded inside struct
8762 (ada_get_symbol_cache): New function.
8763 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8765 (_initialize_ada_language): Remove initialization of cache_space.
8766 Move call to observer_attach_inferior_exit up, grouping it
8767 with the other observer registrations inside this function.
8768 Rename command to be more general. Add call to
8769 register_program_space_data_with_cleanup.
8771 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8773 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8774 ada_new_objfile_observer.
8775 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8776 (_initialize_tasks): Update uses of ada_new_objfile_observer
8777 and ada_tasks_normal_stop_observer.
8779 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8781 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8782 returned by the 'Length attribute to integer.
8784 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8786 * ada-lang.c (_initialize_ada_language): Initialize
8787 cache_space obstack.
8789 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8791 * ada-lang.c (HASH_SIZE): New macro.
8792 (struct cache_entry): New type.
8793 (cache_space, cache): New static globals.
8794 (ada_clear_symbol_cache, find_entry): New functions.
8795 (lookup_cached_symbol, cache_symbol): Implement.
8796 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8797 (_initialize_ada_language): Attach ada_new_objfile_observer
8798 and ada_free_objfile_observer.
8800 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8802 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8803 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8804 struct block * parameter.
8805 (ada_lookup_symbol_list_worker): Constify local variable "block".
8806 Remove cast which is no longer necessary.
8808 2014-02-10 Doug Evans <xdje42@gmail.com>
8810 Add Guile as an extension language.
8811 * NEWS: Mention Guile scripting.
8812 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8813 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8814 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8815 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8816 (CLIBS): Add GUILE_LIBS.
8817 (install-guile): New rule.
8818 (guile.o): New rule.
8819 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8820 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8821 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8822 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8823 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8824 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8825 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8826 * configure.ac: New option --with-guile.
8827 * configure: Regenerate.
8828 * config.in: Regenerate.
8829 * auto-load.c: Remove #include "python/python.h". Add #include
8830 "gdb/section-scripts.h".
8831 (source_section_scripts): Handle Guile scripts.
8832 (_initialize_auto_load): Add name of Guile objfile script to
8833 scripts-directory help text.
8834 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8835 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8836 (struct breakpoint): New member scm_bp_object.
8837 * defs.h (enum command_control_type): New value guile_control.
8838 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8840 (show_user): Update comment.
8841 (_initialize_cli_cmds): Update help text for "show user". Update help
8842 text for max-user-call-depth.
8843 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8845 (multi_line_command_p): Add guile_control.
8846 (print_command_lines): Handle guile_control.
8847 (execute_control_command, recurse_read_control_structure): Ditto.
8848 (process_next_line): Recognize "guile" commands.
8849 * disasm.c (gdb_disassemble_info): Make non-static.
8850 * disasm.h: #include "dis-asm.h".
8851 (struct gdbarch): Add forward decl.
8852 (gdb_disassemble_info): Declare.
8853 * extension.c: #include "guile/guile.h".
8854 (extension_languages): Add guile.
8855 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8856 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8857 * gdbtypes.c (get_unsigned_type_max): New function.
8858 (get_signed_type_minmax): New function.
8859 * gdbtypes.h (get_unsigned_type_max): Declare.
8860 (get_signed_type_minmax): Declare.
8861 * guile/README: New file.
8862 * guile/guile-internal.h: New file.
8863 * guile/guile.c: New file.
8864 * guile/guile.h: New file.
8865 * guile/scm-arch.c: New file.
8866 * guile/scm-auto-load.c: New file.
8867 * guile/scm-block.c: New file.
8868 * guile/scm-breakpoint.c: New file.
8869 * guile/scm-disasm.c: New file.
8870 * guile/scm-exception.c: New file.
8871 * guile/scm-frame.c: New file.
8872 * guile/scm-gsmob.c: New file.
8873 * guile/scm-iterator.c: New file.
8874 * guile/scm-lazy-string.c: New file.
8875 * guile/scm-math.c: New file.
8876 * guile/scm-objfile.c: New file.
8877 * guile/scm-ports.c: New file.
8878 * guile/scm-pretty-print.c: New file.
8879 * guile/scm-safe-call.c: New file.
8880 * guile/scm-string.c: New file.
8881 * guile/scm-symbol.c: New file.
8882 * guile/scm-symtab.c: New file.
8883 * guile/scm-type.c: New file.
8884 * guile/scm-utils.c: New file.
8885 * guile/scm-value.c: New file.
8886 * guile/lib/gdb.scm: New file.
8887 * guile/lib/gdb/boot.scm: New file.
8888 * guile/lib/gdb/experimental.scm: New file.
8889 * guile/lib/gdb/init.scm: New file.
8890 * guile/lib/gdb/iterator.scm: New file.
8891 * guile/lib/gdb/printing.scm: New file.
8892 * guile/lib/gdb/types.scm: New file.
8893 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8894 (VPATH): Add $(GUILE_SRCDIR).
8895 (GUILE_DIR): New variable.
8896 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8897 (all): Add stamp-guile dependency.
8898 (stamp-guile): New rule.
8899 (clean-guile, install-guile, uninstall-guile): New rules.
8900 (install-only): Add install-guile dependency.
8901 (uninstall): Add uninstall-guile dependency.
8902 (clean): Add clean-guile dependency.
8904 2014-02-09 Doug Evans <xdje42@gmail.com>
8906 Revert this patch (which I approved, mea culpa).
8908 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8910 * Makefile.in (all-lib): Remove.
8911 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8913 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8915 Fix Python stack corruption.
8916 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8919 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8921 * Makefile.in (all-lib): Remove.
8922 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8924 2014-02-07 Doug Evans <dje@google.com>
8926 * extension-priv.h (extension_language_script_ops): Add comment.
8927 (extension_language_ops): Add comment.
8928 (active_ext_lang_state): Fix typo in comment.
8930 2014-02-07 Pedro Alves <palves@redhat.com>
8932 PR breakpoints/16292
8933 * infrun.c (handle_signal_stop) <signal arrives while stepping
8934 over a breakpoint>: Switch back to the stepping thread.
8936 2014-02-07 Yao Qi <yao@codesourcery.com>
8938 * target.c (target_xfer_partial): Return zero if LEN is zero.
8940 2014-02-07 Yao Qi <yao@codesourcery.com>
8942 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8943 (ld_so_xfer_auxv): Likewise.
8944 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8945 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8946 * corelow.c (core_xfer_partial): Likewise.
8947 * ctf.c (ctf_xfer_partial): Likewise.
8948 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8949 (darwin_xfer_partial): Likewise.
8950 * exec.c (exec_xfer_partial): Likewise.
8951 * gnu-nat.c (gnu_xfer_partial): Likewise.
8952 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8953 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8954 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8955 * linux-nat.c (linux_xfer_siginfo): Likewise.
8956 (linux_proc_xfer_spu): Likewise.
8957 * procfs.c (procfs_xfer_partial): Likewise.
8958 * record-full.c (record_full_xfer_partial): Likewise.
8959 (record_full_core_xfer_partial): Likewise.
8960 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8961 * remote.c (remote_write_qxfer): Likewise.
8962 (remote_write_qxfer, remote_read_qxfer): Likewise.
8963 (remote_xfer_partial): Likewise.
8964 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8965 (rs6000_xfer_shared_libraries): Likewise.
8966 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8967 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8968 (spu_xfer_partial): Likewise.
8969 * target.c (memory_xfer_partial_1): Likewise.
8970 * tracepoint.c (tfile_xfer_partial): Likewise.
8971 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8972 (windows_xfer_partial): Likewise.
8974 2014-02-07 Yao Qi <yao@codesourcery.com>
8976 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8978 (core_xfer_shared_libraries_aix): Likewise.
8979 * gdbarch.c, gdbarch.h: Regenerated.
8980 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8981 ULONGEST. Change 'len_avail' type to ULONGEST.
8982 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8983 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8985 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8987 2014-02-07 Yao Qi <yao@codesourcery.com>
8989 * corefile.c (memory_error): Get 'exception' from ERR and pass
8990 'exception' to throw_error.
8992 2014-02-06 Doug Evans <xdje42@gmail.com>
8994 * configure.ac (libpython checking): Remove all but python.o from
8995 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8996 * configure: Regenerate.
8998 * Makefile.in (SFILES): Add extension.c.
8999 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9000 (COMMON_OBS): Add extension.o.
9001 * extension.h: New file.
9002 * extension-priv.h: New file.
9003 * extension.c: New file.
9005 * python/python-internal.h: #include "extension.h".
9006 (gdbpy_auto_load_enabled): Declare.
9007 (gdbpy_apply_val_pretty_printer): Declare.
9008 (gdbpy_apply_frame_filter): Declare.
9009 (gdbpy_preserve_values): Declare.
9010 (gdbpy_breakpoint_cond_says_stop): Declare.
9011 (gdbpy_breakpoint_has_cond): Declare.
9012 (void source_python_script_for_objfile): Delete.
9013 * python/python.c: #include "extension-priv.h".
9014 Delete inclusion of "observer.h".
9015 (extension_language_python): Moved here and renamed from
9016 script_language_python in py-auto-load.c.
9017 Redefined to be of type extension_language_defn.
9018 (python_extension_script_ops): New global.
9019 (python_extension_ops): New global.
9020 (struct python_env): New member previous_active.
9021 (restore_python_env): Call restore_active_ext_lang.
9022 (ensure_python_env): Call set_active_ext_lang.
9023 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9025 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9027 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9029 (gdbpy_eval_from_control_command): Renamed from
9030 eval_python_from_control_command, made static. New arg extlang.
9031 (gdbpy_source_script) Renamed from source_python_script, made static.
9033 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9034 result to int. New arg extlang.
9035 (gdbpy_source_objfile_script): Renamed from
9036 source_python_script_for_objfile, made static. New arg extlang.
9037 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9038 static. New args extlang, extlang_printers. Change result type to
9040 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9041 static. New arg extlang. Rename arg printers to extlang_printers
9042 and change type to ext_lang_type_printers *.
9043 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9044 static. Replace argument arg with extlang, extlang_printers.
9045 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9046 (!HAVE_PYTHON, source_python_script): Delete.
9047 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9048 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9049 (!HAVE_PYTHON, start_type_printers): Delete.
9050 (!HAVE_PYTHON, apply_type_printers): Delete.
9051 (!HAVE_PYTHON, free_type_printers): Delete.
9052 (_initialize_python): Delete call to observer_attach_before_prompt.
9053 (finalize_python): Set/restore active extension language.
9054 (gdbpy_finish_initialization) Renamed from
9055 finish_python_initialization, made static. New arg extlang.
9056 (gdbpy_initialized): New function.
9057 * python/python.h: #include "extension.h". Delete #include
9058 "value.h", "mi/mi-cmds.h".
9059 (extension_language_python): Declare.
9060 (GDBPY_AUTO_FILE_NAME): Delete.
9061 (enum py_bt_status): Moved to extension.h and renamed to
9063 (enum frame_filter_flags): Moved to extension.h.
9064 (enum py_frame_args): Moved to extension.h and renamed to
9065 ext_lang_frame_args.
9066 (finish_python_initialization): Delete.
9067 (eval_python_from_control_command): Delete.
9068 (source_python_script): Delete.
9069 (apply_val_pretty_printer): Delete.
9070 (apply_frame_filter): Delete.
9071 (preserve_python_values): Delete.
9072 (gdbpy_script_language_defn): Delete.
9073 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9074 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9076 * auto-load.c: #include "extension.h".
9077 (GDB_AUTO_FILE_NAME): Delete.
9078 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9079 (script_language_gdb): Delete, moved to extension.c and renamed to
9080 extension_language_gdb.
9081 (source_gdb_script_for_objfile): Delete.
9082 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9083 (loaded_script): Change type of language member to
9084 struct extension_language_defn *.
9085 (init_loaded_scripts_info): Initialize
9086 unsupported_script_warning_printed.
9087 (maybe_add_script): Make static. Change type of language arg to
9088 struct extension_language_defn *.
9089 (clear_section_scripts): Reset unsupported_script_warning_printed.
9090 (auto_load_objfile_script_1): Rewrite to use extension language API.
9091 (auto_load_objfile_script): Make public. Remove support-compiled-in
9092 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9093 (source_section_scripts): Rewrite to use extension language API.
9094 (load_auto_scripts_for_objfile): Rewrite to use
9095 auto_load_scripts_for_objfile.
9096 (collect_matching_scripts_data): Change type of language member to
9097 struct extension_language_defn *.
9098 (auto_load_info_scripts): Change type of language arg to
9099 struct extension_language_defn *.
9100 (unsupported_script_warning_print): New function.
9101 (script_not_found_warning_print): Make static.
9102 (_initialize_auto_load): Rewrite construction of scripts-directory
9104 * auto-load.h (struct objfile): Add forward decl.
9105 (struct script_language): Delete.
9106 (struct auto_load_pspace_info): Add forward decl.
9107 (struct extension_language_defn): Add forward decl.
9108 (maybe_add_script): Delete.
9109 (auto_load_objfile_script): Declare.
9110 (script_not_found_warning_print): Delete.
9111 (auto_load_info_scripts): Update prototype.
9112 (auto_load_gdb_scripts_enabled): Declare.
9113 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9114 auto_load_python_scripts_enabled and made public.
9115 (script_language_python): Delete, moved to python.c.
9116 (gdbpy_script_language_defn): Delete.
9117 (info_auto_load_python_scripts): Update to use
9118 extension_language_python.
9120 * breakpoint.c (condition_command): Replace call to
9121 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9122 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9123 with call to breakpoint_ext_lang_cond_says_stop.
9124 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9125 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9126 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9127 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9129 (local_setattro): Print name of extension language with existing
9132 * valprint.c (val_print, value_print): Update to call
9133 apply_ext_lang_val_pretty_printer.
9134 * cp-valprint.c (cp_print_value): Update call to
9135 apply_ext_lang_val_pretty_printer.
9136 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9137 (gdbpy_apply_val_pretty_printer): Renamed from
9138 apply_val_pretty_printer. New arg extlang.
9139 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9141 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9142 extension language API.
9143 * cli/cli-script.c (execute_control_command): Update to call
9144 eval_ext_lang_from_control_command.
9146 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9147 enum ext_lang_bt_status values. Update call to
9148 apply_ext_lang_frame_filter.
9149 (mi_cmd_stack_list_locals): Ditto.
9150 (mi_cmd_stack_list_args): Ditto.
9151 (mi_cmd_stack_list_variables): Ditto.
9152 * mi/mi-main.c: Delete #include "python/python-internal.h".
9153 Add #include "extension.h".
9154 (mi_cmd_list_features): Replace reference to python internal variable
9155 gdb_python_initialized with call to ext_lang_initialized_p.
9157 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9158 Update to use enum ext_lang_frame_args. Update to call
9159 apply_ext_lang_frame_filter.
9160 * python/py-framefilter.c (extract_sym): Update to use enum
9162 (extract_value, py_print_type, py_print_value): Ditto.
9163 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9164 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9165 (py_print_frame): Ditto.
9166 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9167 New arg extlang. Update to use enum ext_lang_bt_status.
9169 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9170 finish_python_initialization. Replace with call to
9171 finish_ext_lang_initialization.
9173 * typeprint.c (do_free_global_table): Update to call
9174 free_ext_lang_type_printers.
9175 (create_global_typedef_table): Update to call
9176 start_ext_lang_type_printers.
9177 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9178 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9179 (type_print_options): Change type of global_printers from "void *"
9180 to "struct ext_lang_type_printers *".
9182 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9183 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9184 (gdbpy_preserve_values): Renamed from preserve_python_values.
9186 (!HAVE_PYTHON, preserve_python_values): Delete.
9188 * utils.c (quit_flag): Delete, moved to extension.c.
9189 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9192 * eval.c: Delete #include "python/python.h".
9193 * main.c: Delete #include "python/python.h".
9195 * defs.h: Update comment.
9197 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9201 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9203 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9206 2014-02-05 Yao Qi <yao@codesourcery.com>
9208 * remote.c (remote_pass_signals): Remove local 'buf' and use
9210 (remote_program_signals): Likewise.
9212 2014-02-05 Yao Qi <yao@codesourcery.com>
9214 * ctf.c: Include "inferior.h" and "gdbthread.h".
9215 (CTF_PID): A new macro.
9216 (ctf_open): Call inferior_appeared and add_thread_silent.
9217 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9218 (ctf_thread_alive): New function.
9219 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9221 2014-02-05 Yao Qi <yao@codesourcery.com>
9225 2013-05-24 Yao Qi <yao@codesourcery.com>
9227 * tracepoint.c (TFILE_PID): Remove.
9228 (tfile_open): Don't add thread and inferior.
9229 (tfile_close): Don't set 'inferior_ptid'. Don't call
9230 exit_inferior_silent.
9231 (tfile_thread_alive): Remove.
9232 (init_tfile_ops): Don't set field 'to_thread_alive' of
9235 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9237 * remote.c (remote_start_remote): Call remote_check_symbols even
9238 if only symbol-file (not file) has been given.
9240 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9242 * gdbarch.sh (skip_entrypoint): New callback.
9243 * gdbarch.c, gdbarch.h: Regenerate.
9244 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9245 * infrun.c (fill_in_stop_func): Likewise.
9246 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9247 (ppc_elfv2_elf_make_msymbol_special): New function.
9248 (ppc_elfv2_skip_entrypoint): Likewise.
9249 (ppc_linux_init_abi): Install them for ELFv2.
9251 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9253 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9254 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9255 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9256 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9257 structures returned in GPRs.
9259 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9261 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9262 offset to the stack parameter list for the ELFv2 ABI.
9264 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9266 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9267 set_gdbarch_convert_from_func_ptr_addr and
9268 set_gdbarch_elf_make_msymbol_special for ELFv1.
9269 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9270 function descriptors on ELFv1.
9271 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9272 set up r12 at function entry.
9274 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9276 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9277 (struct gdbarch_tdep): New member elf_abi.
9279 * rs6000-tdep.c: Include "elf/ppc64.h".
9280 (rs6000_gdbarch_init): Detect ELF ABI version.
9282 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9284 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9285 within a register pair holding a DFP 128-bit value on little-endian.
9286 (ppc64_sysv_abi_return_value_base): Likewise.
9287 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9288 (dfp_pseudo_register_write): Likewise.
9290 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9292 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9293 offset on little-endian when passing _Decimal32.
9294 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9296 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9298 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9299 of the overlapped FP register within the VSX register on little-
9301 (efpr_pseudo_register_write): Likewise.
9303 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9305 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9306 offset on little-endian when passing small structures.
9308 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9310 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9311 (struct ppc64_sysv_argpos): New data structure.
9312 (ppc64_sysv_abi_push_float): Remove.
9313 (ppc64_sysv_abi_push_val): New function.
9314 (ppc64_sysv_abi_push_integer): Likewise.
9315 (ppc64_sysv_abi_push_freg): Likewise.
9316 (ppc64_sysv_abi_push_vreg): Likewise.
9317 (ppc64_sysv_abi_push_param): Likewise.
9318 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9319 (ppc64_sysv_abi_return_value_base): New function.
9320 (ppc64_sysv_abi_return_value): Refactor to use it.
9322 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9324 * NEWS: Document new target powerpc64le-*-linux*.
9326 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9328 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9329 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9331 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9332 register set used in ELF core dumps. Add floating-point register set.
9334 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9336 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9337 dwarf2_to_gdb[] table using symbolic constants. Adjust
9338 penultimate entry from number representing the PC register
9339 to symbolic constant representing the MDR register. Add
9340 constant for the PC register to the end of the table.
9342 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9344 * bsd-kvm.c: Include <sys/param.h>
9346 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9348 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9350 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9352 * ada-lang.h (clear_ada_sym_cache): Delete.
9354 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9356 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9358 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9360 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9361 the sigreturn register save area only if the syscall is
9364 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9366 * valops.c (value_slice): Minor reformatting.
9368 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9370 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9372 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9374 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9376 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9377 (ada_ignore_descriptive_types_p): New static global.
9378 (find_parallel_type_by_descriptive_type): Return immediately
9379 if ada_ignore_descriptive_types_p is set.
9380 (_initialize_ada_language): Register new commands "maintenance
9381 set ada", "maintenance show ada", "maintenance set ada
9382 ignore-descriptive-types" and "maintenance show ada
9383 ignore-descriptive-types".
9384 * NEWS: Add entry for new "maint ada set/show
9385 ignore-descriptive-types" commands.
9387 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9389 * record-btrace.c (record_btrace_close): Call btrace_teardown
9392 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9394 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9397 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9399 * ada-typeprint (type_is_full_subrange_of_target_type):
9401 (print_range): Add parameter bounds_prefered_p. If not set,
9402 try printing range types using the name of their base type.
9403 (print_range_type): Add parameter bounds_prefered_p.
9404 Use it in call to print_range.
9405 (print_array_type, ada_print_type): Update calls to print_range
9406 and print_range_type.
9408 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9410 * ada-typeprint.c (print_array_type, print_choices, print_range)
9411 (print_range_bound, print_dynamic_range_bound, print_range_type):
9414 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9416 * ada-typeprint.c (print_range): Add missing empty line
9417 after local declaration.
9419 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9421 * ada-valprint.c (print_optional_low_bound): Get index_type's
9422 target type for as long as it is a TYPE_CODE_RANGE.
9424 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9426 * procfs.c (procfs_make_note_section): Remove assertion and
9429 2014-01-24 Yao Qi <yao@codesourcery.com>
9431 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9432 * corelow.c (get_core_siginfo): Likewise.
9434 2014-01-24 Yao Qi <yao@codesourcery.com>
9436 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9437 ULONGEST. Don't check 'len' is negative.
9438 (remote_write_bytes): Change type of 'len' to ULONGEST.
9440 2014-01-23 Tom Tromey <tromey@redhat.com>
9443 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9444 Handle exception from frame.block.
9445 (FrameVars.fetch_frame_locals): Likewise.
9447 2014-01-23 Tom Tromey <tromey@redhat.com>
9450 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9451 on a NULL pointer. Move "goto error" to correct place.
9453 2014-01-23 Tom Tromey <tromey@redhat.com>
9456 * python/py-framefilter.c (apply_frame_filter): Call
9457 ensure_python_env after computing gdbarch.
9459 2014-01-23 Yao Qi <yao@codesourcery.com>
9461 * target.c (raw_memory_xfer_partial): Change argument type
9462 from void * to gdb_byte *.
9463 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9465 2014-01-22 Doug Evans <dje@google.com>
9467 New gdbserver option --debug-format=timestamp.
9470 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9472 * syscalls/s390x-linux.xml: New file.
9473 * syscalls/s390-linux.xml: New file.
9474 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9475 (XML_SYSCALL_FILENAME_S390X): Likewise.
9476 (op_svc): New enum value for SVC opcode.
9477 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9478 (s390_linux_get_syscall_number): New function.
9479 (s390_gdbarch_init): Register '*get_syscall_number' and the
9480 syscall xml file name.
9481 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9482 "s390-linux.xml" and "s390x-linux.xml".
9483 * NEWS: Announce new feature.
9485 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9487 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9489 2014-01-22 Pedro Alves <palves@redhat.com>
9491 * xtensa-config.c: Include defs.h.
9493 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9495 * common/common-utils.h: Add "ARI:" comment beside __func__
9498 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9500 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9501 documentation a bit.
9503 2014-01-21 Roland McGrath <mcgrathr@google.com>
9505 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9506 * configure: Regenerate.
9507 * aclocal.m4: Regenerate.
9508 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9509 New substituted variables.
9510 (install-strip): New target.
9511 (INSTALL_SCRIPT): New substituted variable.
9512 (FLAGS_TO_PASS): Add it.
9513 (install-only): Use $(INSTALL_SCRIPT) rather than
9514 $(INSTALL_PROGRAM) for gcore.
9516 2014-01-20 Tom Tromey <tromey@redhat.com>
9518 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9521 2014-01-20 Tom Tromey <tromey@redhat.com>
9523 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9524 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9525 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9526 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9527 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9528 (struct cmd_list_element) <flags>: Remove.
9529 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9530 doc_allocated>: New fields.
9531 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9533 * maint.c (maintenance_do_deprecate): Update.
9534 * top.c (execute_command): Update.
9536 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9538 * xtensa-linux-nat.c: Include asm/ptrace.h.
9540 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9542 * Makefile.in (SFILES): Add d-support.c.
9543 (COMMON_OBS): Add d-support.o.
9544 * d-lang.h (d_parse_symbol): Add comment, now defined in
9546 * d-lang.c (parse_call_convention)
9547 (parse_attributes, parse_function_types)
9548 (parse_function_args, parse_type, parse_identifier)
9549 (call_convention_p, d_parse_symbol): Move functions to ...
9550 * d-support.c: ... New file.
9552 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9554 * d-lang.h (d_parse_symbol): Add declaration.
9555 * d-lang.c (extract_identifiers)
9556 (extract_type_info): Remove functions.
9557 (parse_call_convention, parse_attributes)
9558 (parse_function_types, parse_function_args)
9559 (parse_type, parse_identifier, call_convention_p)
9560 (d_parse_symbol): New functions.
9561 (d_demangle): Use d_parse_symbol to demangle D symbols.
9563 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9565 * d-lang.h (struct builtin_d_type): New data type.
9566 (builtin_d_type): Add declaration.
9567 * d-lang.c (d_language_arch_info, build_d_types)
9568 (builtin_d_type): New functions.
9569 (enum d_primitive_types): New data type.
9570 (d_language_defn): Change c_language_arch_info to
9571 d_language_arch_info.
9572 (d_type_data): New static variable.
9573 (_initialize_d_language): Initialize d_type_data.
9575 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9577 * d-lang.h (d_main_name): Add declaration.
9578 * d-lang.c (d_main_name): New function.
9579 * symtab.c (find_main_name): Add call to d_main_name.
9581 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9583 * d-lang.c (d_language_defn): Change macro_expansion_c to
9586 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9588 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9590 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9592 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9593 gdb_exception" declaration.
9594 * remote.c (getpkt_or_notif_sane): Likewise.
9596 2014-01-17 Doug Evans <dje@google.com>
9598 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9599 function, contents of dirnames_to_char_ptr_vec_append moved here.
9600 (delim_string_to_char_ptr_vec): New function.
9601 (dirnames_to_char_ptr_vec_append): Rewrite.
9602 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9604 2014-01-17 Doug Evans <dje@google.com>
9606 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9608 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9609 #include "common-utils.h".
9610 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9611 * common/vec.h (VEC_ASSERT_PASS): Update.
9612 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9613 (MACH_CHECK_ERROR): Update.
9615 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9617 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9619 * gdbarch.h: Regenerate.
9621 2014-01-16 Tom Tromey <tromey@redhat.com>
9623 * value.c (struct value) <regnum>: Move earlier.
9625 2014-01-16 Tom Tromey <tromey@redhat.com>
9627 * remote.c (extended_remote_create_inferior): Rename from
9628 extended_remote_create_inferior_1. Add "ops" argument. Remove
9631 2014-01-16 Pedro Alves <palves@redhat.com>
9633 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9634 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9637 2014-01-16 Doug Evans <dje@google.com>
9639 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9641 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9643 * btrace.h (btrace_thread_flag): New.
9644 (struct btrace_thread_info) <flags>: New.
9645 * record-btrace.c (record_btrace_resume_thread)
9646 (record_btrace_find_thread_to_move, btrace_step_no_history)
9647 (btrace_step_stopped, record_btrace_start_replaying)
9648 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9649 (record_btrace_find_resume_thread): New.
9650 (record_btrace_resume, record_btrace_wait): Extend.
9651 (record_btrace_can_execute_reverse): New.
9652 (record_btrace_open): Fail in non-stop mode.
9653 (record_btrace_set_replay): Split into this, ...
9654 (record_btrace_stop_replaying): ... this, ...
9655 (record_btrace_clear_histories): ... and this.
9656 (init_record_btrace_ops): Init to_can_execute_reverse.
9657 * NEWS: Announce it.
9659 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9661 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9662 (forward_target_decr_pc_after_break)
9663 (target_decr_pc_after_break): New.
9664 * target.c (forward_target_decr_pc_after_break)
9665 (target_decr_pc_after_break): New.
9666 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9667 instead of gdbarch_decr_pc_after_break.
9668 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9669 instead of gdbarch_decr_pc_after_break.
9670 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9671 instead of gdbarch_decr_pc_after_break.
9672 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9673 instead of gdbarch_decr_pc_after_break.
9674 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9675 instead of gdbarch_decr_pc_after_break.
9676 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9677 instead of gdbarch_decr_pc_after_break.
9679 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9681 * btrace.c: Include regcache.h.
9682 (btrace_add_pc): New.
9683 (btrace_enable): Call btrace_add_pc.
9684 (btrace_is_empty): New.
9685 * btrace.h (btrace_is_empty): New.
9686 * record-btrace.c (require_btrace, record_btrace_info): Call
9689 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9691 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9692 Support delta reads.
9693 (linux_disable_btrace): Change return type.
9694 * common/linux-btrace.h (linux_read_btrace): Change parameters
9695 and return type to allow error reporting. Update users.
9696 (linux_disable_btrace): Change return type. Update users.
9697 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9699 (btrace_error): New.
9700 (btrace_block) <begin>: Comment on BEGIN == 0.
9701 * btrace.c (btrace_compute_ftrace): Start from the end of
9703 (btrace_stitch_trace, btrace_clear_history): New.
9704 (btrace_fetch): Read delta trace, return if replaying.
9705 (btrace_clear): Move clear history code to btrace_clear_history.
9706 (parse_xml_btrace): Throw an error if parsing failed.
9707 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9708 and return type to allow error reporting.
9709 (target_read_btrace): Change parameters and return type to allow
9711 * target.c (target_read_btrace): Update.
9712 * remote.c (remote_read_btrace): Support delta reads. Pass
9714 * NEWS: Announce it.
9716 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9718 * record.h (record_btrace_frame_unwind)
9719 (record_btrace_tailcall_frame_unwind): New declarations.
9720 * dwarf2-frame: Include record.h
9721 (dwarf2_frame_cfa): Throw an error for btrace frames.
9722 * record-btrace.c: Include hashtab.h.
9723 (btrace_get_bfun_name): New.
9724 (btrace_call_history): Call btrace_get_bfun_name.
9725 (struct btrace_frame_cache): New.
9727 (bfcache_hash, bfcache_eq, bfcache_new): New.
9728 (btrace_get_frame_function): New.
9729 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9730 (record_btrace_frame_this_id): Compute own id.
9731 (record_btrace_frame_prev_register): Provide PC, throw_error
9732 for all other registers.
9733 (record_btrace_frame_sniffer): Detect btrace frames.
9734 (record_btrace_tailcall_frame_sniffer): New.
9735 (record_btrace_frame_dealloc_cache): New.
9736 (record_btrace_frame_unwind): Add new functions.
9737 (record_btrace_tailcall_frame_unwind): New.
9738 (_initialize_record_btrace): Allocate cache.
9739 * btrace.c (btrace_clear): Call reinit_frame_cache.
9740 * NEWS: Announce it.
9742 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9744 * record-btrace.c (record_btrace_set_replay)
9745 (record_btrace_goto_begin, record_btrace_goto_end)
9746 (record_btrace_goto): New.
9747 (init_record_btrace_ops): Initialize them.
9748 * NEWS: Announce it.
9750 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9752 * record-btrace.c (record_btrace_find_new_threads)
9753 (record_btrace_thread_alive): New.
9754 (init_record_btrace_ops): Initialize to_find_new_threads and
9757 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9759 * record-btrace.c (record_btrace_resume): New.
9760 (record_btrace_wait): New.
9761 (init_record_btrace_ops): Initialize to_wait and to_resume.
9763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9765 * record-btrace.c (record_btrace_xfer_partial)
9766 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9767 (record_btrace_allow_memory_access): New.
9768 (init_record_btrace_ops): Initialize new methods.
9769 * target.c (raw_memory_xfer_partial): Bail out if target reports
9770 that this memory is not available.
9772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9774 * target.h (target_ops) <to_insert_breakpoint>
9775 <to_remove_breakpoint>: Add target_ops parameter.
9776 (forward_target_insert_breakpoint): New.
9777 (forward_target_remove_breakpoint): New.
9778 (memory_remove_breakpoint, memory_insert_breakpoint):
9779 Add target_ops parameter.
9780 * target.c (target_insert_breakpoint): Split into this and ...
9781 (forward_target_insert_breakpoint): ... this.
9782 (target_remove_breakpoint): Split into this and ...
9783 (forward_target_remove_breakpoint): ... this.
9784 (debug_to_insert_breakpoint): Add target_ops parameter.
9785 Call forward_target_insert_breakpoint.
9786 (debug_to_remove_breakpoint): Add target_ops parameter.
9787 Call forward_target_remove_breakpoint.
9788 (update_current_target): Do not inherit or default to_insert_breakpoint
9789 and to_remove_breakpoint.
9790 * corelow.c (ignore): Add target_ops parameter.
9791 * exec.c (ignore): Add target_ops parameter.
9792 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9793 Add target_ops parameter.
9794 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9795 Add target_ops parameter.
9796 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9797 Add target_ops parameter.
9798 * record-full.c (record_full_beneath_to_insert_breakpoint)
9799 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9800 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9801 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9802 (record_full_core_remove_breakpoint): Add target_ops parameter.
9804 (record_full_beneath_to_insert_breakpoint_ops)
9805 (record_full_beneath_to_remove_breakpoint_ops)
9806 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9807 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9808 tmp_to_remove_breakpoint_ops,
9809 record_full_beneath_to_insert_breakpoint_ops, and
9810 record_full_beneath_to_remove_breakpoint_ops.
9811 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9812 (m32r_remove_breakpoint): Add target_ops parameter.
9813 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9814 Add target_ops parameter.
9815 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9816 Add target_ops parameter.
9818 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9819 Markus Metzger <markus.t.metzger@intel.com>
9821 * record-btrace.c: Include frame-unwind.h.
9822 (record_btrace_frame_unwind_stop_reason)
9823 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9824 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9826 (init_record_btrace_ops): Install it.
9828 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9830 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9833 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9835 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9838 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9840 * frame-unwind.c: Include target.h.
9841 (frame_unwind_try_unwinder): New function with code from ...
9842 (frame_unwind_find_by_frame): ... here. New variable
9843 unwinder_from_target, call also target_get_unwinder)
9844 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9845 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9846 * target.h (struct target_ops): New fields to_get_unwinder and
9847 to_get_tailcall_unwinder.
9848 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9850 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9852 * record-btrace.c (record_btrace_fetch_registers)
9853 (record_btrace_store_registers)
9854 (record_btrace_to_prepare_to_store): New.
9855 (init_record_btrace_ops): Add the above.
9857 2014-01-16 Tom Tromey <tromey@redhat.com>
9859 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9860 * target.h (struct target_ops) <to_prepare_to_store>: Add
9862 (target_prepare_to_store): Add argument.
9863 * target.c (debug_to_prepare_to_store): Add argument.
9864 (update_current_target): Update.
9865 * remote.c (remote_prepare_to_store): Add 'self' argument.
9866 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9867 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9868 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9869 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9871 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9872 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9873 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9874 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9875 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9877 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9879 * btrace.h (replay) <replay>: New.
9880 (btrace_is_replaying): New.
9881 * btrace.c (btrace_clear): Free replay iterator.
9882 (btrace_is_replaying): New.
9883 * record-btrace.c (record_btrace_is_replaying): New.
9884 (record_btrace_info): Print insn number if replaying.
9885 (record_btrace_insn_history): Start at replay position.
9886 (record_btrace_call_history): Start at replay position.
9887 (init_record_btrace_ops): Init to_record_is_replaying.
9889 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9891 * record-btrace.c (record_btrace_insn_history_range): Include
9893 (record_btrace_insn_history_from): Adjust range.
9894 (record_btrace_call_history_range): Include
9896 (record_btrace_call_history_from): Adjust range.
9897 * NEWS: Announce changes.
9899 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9901 * record.h (enum record_print_flag)
9902 <record_print_indent_calls>: New.
9903 * record.c (get_call_history_modifiers): Recognize /c modifier.
9904 (_initialize_record): Document /c modifier.
9905 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9906 Reorder fields. Optionally indent the function name. Update
9908 * NEWS: Announce changes.
9910 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9912 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9914 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9916 * btrace.c (ftrace_new_function): Start counting at one.
9917 * record-btrace.c (record_btrace_info): Adjust number of calls
9919 * NEWS: Announce it.
9921 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9923 * record-btrace.c (btrace_call_history_insn_range): Print
9924 insn range as [begin, end].
9926 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9928 * btrace.h (struct btrace_func_link): New.
9929 (enum btrace_function_flag): New.
9930 (struct btrace_inst): Rename to ...
9931 (struct btrace_insn): ...this. Update all users.
9932 (struct btrace_func) <ibegin, iend>: Remove.
9933 (struct btrace_func_link): New.
9934 (struct btrace_func): Rename to ...
9935 (struct btrace_function): ...this. Update all users.
9936 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9937 (number, level, flags>: New.
9938 (struct btrace_insn_iterator): Rename to ...
9939 (struct btrace_insn_history): ...this.
9941 (struct btrace_insn_iterator, btrace_call_iterator): New.
9942 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9943 (struct btrace_target_info) <begin, end, level>
9944 <insn_history, call_history>: New.
9945 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9946 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9947 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9948 (btrace_call_number, btrace_call_begin, btrace_call_end)
9949 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9950 (btrace_find_function_by_number, btrace_set_insn_history)
9951 (btrace_set_call_history): New.
9952 * btrace.c (btrace_init_insn_iterator)
9953 (btrace_init_func_iterator, compute_itrace): Remove.
9954 (ftrace_print_function_name, ftrace_print_filename)
9955 (ftrace_skip_file): Change
9957 (ftrace_init_func): Remove.
9958 (ftrace_debug): Use new btrace_function fields.
9959 (ftrace_function_switched): Also consider gaining and
9960 losing symbol information).
9961 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9962 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9963 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9965 (ftrace_new_function): Move. Remove debug print.
9966 (ftrace_update_lines, ftrace_update_insns): New.
9967 (ftrace_update_function): Check for call, ret, and jump.
9968 (compute_ftrace): Renamed to ...
9969 (btrace_compute_ftrace): ...this. Rewritten to compute call
9971 (btrace_fetch, btrace_clear): Updated.
9972 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9973 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9974 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9975 (btrace_call_number, btrace_call_begin, btrace_call_end)
9976 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9977 (btrace_find_function_by_number, btrace_set_insn_history)
9978 (btrace_set_call_history): New.
9979 * record-btrace.c (require_btrace): Use new btrace thread
9981 (record_btrace_info, btrace_insn_history)
9982 (record_btrace_insn_history, record_btrace_insn_history_range):
9983 Use new btrace thread info fields and new iterator.
9984 (btrace_func_history_src_line): Rename to ...
9985 (btrace_call_history_src_line): ...this. Use new btrace
9987 (btrace_func_history): Rename to ...
9988 (btrace_call_history): ...this. Use new btrace thread info
9989 fields and new iterator.
9990 (record_btrace_call_history, record_btrace_call_history_range):
9991 Use new btrace thread info fields and new iterator.
9993 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9995 * frame.h (frame_id_build_unavailable_stack_special): New.
9996 * frame.c (frame_id_build_unavailable_stack_special): New.
9998 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10000 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10001 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10002 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10004 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10005 (i386_insn_is_jump, i386_jmp_p): New.
10006 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10007 insn_is_jump to gdbarch.
10008 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10009 * gdbarch.h: Regenerated.
10010 * gdbarch.c: Regenerated.
10011 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10012 (default_insn_is_jump): New.
10013 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10014 (default_insn_is_jump): New.
10016 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10018 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10020 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10021 (btrace_read_type) <btrace_read_new>: Change to ...
10022 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10024 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10026 * common/linux-btrace.c (linux_read_btrace): Free trace from
10027 previous iteration.
10029 2014-01-15 Doug Evans <dje@google.com>
10031 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10034 2014-01-15 Tom Tromey <tromey@redhat.com>
10036 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10037 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10038 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10039 (set_objfile_main_name): New function.
10040 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10041 language_of_main>: New fields.
10042 (set_objfile_main_name): Declare.
10043 * symtab.c (find_main_name): Loop over objfiles to find the main
10045 (set_main_name): Now static.
10046 (get_main_info): Add comment.
10047 * symtab.h (set_main_name): Don't declare.
10049 2014-01-15 Tom Tromey <tromey@redhat.com>
10051 * symtab.c (main_progspace_key): New global.
10052 (struct main_info): New.
10053 (name_of_main, language_of_main): Remove.
10054 (get_main_info, main_info_cleanup): New function.
10055 (set_main_name, main_name, main_language): Use get_main_info.
10056 (_initialize_symtab): Initialize main_progspace_key.
10058 2014-01-15 Tom Tromey <tromey@redhat.com>
10060 * dbxread.c (process_one_symbol): Update.
10061 * dwarf2read.c (read_partial_die): Update.
10062 * symfile.c (set_initial_language): Call main_language.
10063 * symtab.c (language_of_main): Now static.
10064 (set_main_name): Add 'lang' parameter.
10065 (find_main_name): Update.
10066 (main_language): New function.
10067 (symtab_observer_executable_changed): Update.
10068 * symtab.h (set_main_name): Update.
10069 (language_of_main): Remove.
10070 (main_language): Declare.
10072 2014-01-15 Tom Tromey <tromey@redhat.com>
10074 * symfile.c (init_entry_point_info): Use new "initialized" field.
10076 * objfiles.h (struct entry_point) <initialized>: New field.
10077 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10078 (struct objfile) <ei>: ...here. Remove.
10079 * objfiles.c (entry_point_address_query): Update.
10081 2014-01-15 Tom Tromey <tromey@redhat.com>
10083 * objfiles.c (entry_point_address_query): Relocate entry point
10085 (objfile_relocate1): Do not relocate entry point address.
10086 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10087 <the_bfd_section_index>: New field.
10088 * symfile.c (init_entry_point_info): Find the entry point's
10091 2014-01-15 Tom Tromey <tromey@redhat.com>
10093 * solib-frv.c (enable_break): Use entry_point_address_query.
10095 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10097 * NEWS: Add note on improved process record-replay on
10098 arm*-linux* targets.
10100 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10102 * arm-tdep.c (enum arm_record_result): New enum.
10103 (arm_record_unsupported_insn): New function.
10104 (arm_record_coproc_data_proc): Removed.
10105 (thumb2_record_ld_st_multiple): New function.
10106 (thumb2_record_ld_st_dual_ex_tbb): New function.
10107 (thumb2_record_data_proc_sreg_mimm): New function.
10108 (thumb2_record_ps_dest_generic): New function.
10109 (thumb2_record_branch_misc_cntrl): New function.
10110 (thumb2_record_str_single_data): New function.
10111 (thumb2_record_ld_mem_hints): New function.
10112 (thumb2_record_ld_word): New function.
10113 (thumb2_record_lmul_lmla_div): New function.
10114 (thumb2_record_decode_insn_handler): New function.
10115 (decode_insn): Add thumb32 instruction handlers.
10117 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10119 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10120 (struct arm_linux_record_tdep): Declare.
10121 (arm_canonicalize_syscall): New function.
10122 (arm_all_but_pc_registers_record): New function.
10123 (arm_linux_syscall_record): New function.
10124 (arm_linux_init_abi): Add syscall recording constructs.
10125 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10126 decoding. (arm_record_coproc_data_proc): Update arm syscall
10128 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10129 <arm_syscall_record>: New field.
10130 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10133 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10135 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10136 register for push instruction recording.
10138 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10140 * arm-tdep.c (thumb_record_misc): Update to correct logical
10141 error while recording ldm, ldmia and pop instructions.
10143 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10145 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10147 2014-01-15 Pedro Alves <palves@redhat.com>
10149 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10150 (go32_resume, go32_fetch_registers, store_register)
10151 (go32_store_registers, go32_prepare_to_store)
10152 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10153 (go32_create_inferior, go32_can_run, go32_terminal_init)
10154 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10157 2014-01-15 Tom Tromey <tromey@redhat.com>
10159 * target.h (async_callback_ftype): New typedef.
10160 (struct target_ops) <to_async>: Use it.
10162 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10164 * python/py-value.c (get_field_type): Remove unnecessary curly
10165 braces for single-statement if block.
10167 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10169 * python/py-type.c (convert_field): Add missing empty line
10170 after declarations.
10172 2014-01-14 Doug Evans <dje@google.com>
10174 * symfile.h (expand_symtabs_matching): Renamed from
10175 expand_partial_symbol_names. Update prototype.
10176 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10177 * symfile.c (expand_symtabs_matching): Renamed from
10178 expand_partial_symbol_names. New args file_matcher, kind.
10179 Rename arg fun to symbol_matcher.
10180 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10181 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10182 ada_expand_partial_symbol_name.
10183 (ada_make_symbol_completion_list): Update to call
10184 expand_symtabs_matching.
10185 (ada_add_global_exceptions): Call expand_symtabs_matching.
10186 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10187 call map_symbol_filenames.
10188 * symtab.c (sources_info): Update to call map_symbol_filenames.
10189 (search_symbols): Call expand_symtabs_matching.
10190 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10191 (default_make_symbol_completion_list_break_on): Update to call
10192 expand_symtabs_matching.
10193 (make_source_files_completion_list): Update to call
10194 map_symbol_filenames.
10196 2014-01-14 Doug Evans <dje@google.com>
10198 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10199 (expand_symtabs_symbol_matcher_ftype): New typedef.
10200 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10201 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10202 * symfile.c (expand_partial_symbol_names): Update to use
10203 expand_symtabs_symbol_matcher_ftype.
10204 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10205 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10206 Arg name_matcher renamed to symbol_matcher.
10207 * psymtab.c (recursively_search_psymtabs): Update to use
10208 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10210 (expand_symtabs_matching_via_partial): Update to use
10211 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10212 Arg name_matcher renamed to symbol_matcher.
10214 2014-01-14 Doug Evans <dje@google.com>
10216 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10217 (map_partial_symbol_filenames): Ditto.
10218 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10219 (map_partial_symbol_filenames): Ditto.
10220 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10221 (map_partial_symbol_filenames): Ditto.
10222 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10223 (map_partial_symbol_filenames): Ditto.
10224 * symtab.c: Delete #include "psymtab.h".
10226 2014-01-14 Pedro Alves <palves@redhat.com>
10227 Tom Tromey <tromey@redhat.com>
10229 * infrun.c (use_displaced_stepping): Use find_record_target
10230 instead of RECORD_IS_USED.
10231 (adjust_pc_after_break): Use record_full_is_used instead of
10233 * record-btrace.c (record_btrace_open): Call record_preopen
10234 instead of checking RECORD_IS_USED.
10235 * record-full.c (record_full_shortname)
10236 (record_full_core_shortname): New globals.
10237 (record_full_is_used): New function.
10238 (find_full_open): Call record_preopen instead of checking
10240 (init_record_full_ops): Set the target's shortname to
10241 record_full_shortname.
10242 (init_record_full_core_ops): Set the target's shortname to
10243 record_full_core_shortname.
10244 * record-full.h (record_full_is_used): Declare.
10245 * record.c (find_record_target): Make extern.
10246 (record_preopen): New function.
10247 * record.h (RECORD_IS_USED): Delete macro.
10248 (find_record_target, record_preopen): Declare functions.
10250 2014-01-14 Yao Qi <yao@codesourcery.com>
10252 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10253 'len''s type to ULONGEST.
10254 (core_xfer_shared_libraries_aix): Likewise.
10255 * gdbarch.c, gdbarch.h: Regenerated.
10256 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10257 Change type of 'len' to ULONGEST.
10258 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10259 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10261 2014-01-14 Yao Qi <yao@codesourcery.com>
10263 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10264 type of 'len' to ULONGEST.
10265 (linux_xfer_osdata_processgroups): Likewise.
10266 (linux_xfer_osdata_threads): Likewise.
10267 (linux_xfer_osdata_fds): Likewise.
10268 (linux_xfer_osdata_isockets): Likewise.
10269 (linux_xfer_osdata_shm): Likewise.
10270 (linux_xfer_osdata_sem): Likewise.
10271 (linux_xfer_osdata_msg): Likewise.
10272 (linux_common_xfer_osdata): Likewise.
10273 (struct osdata_type) <getter>: Likewise.
10274 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10277 2014-01-14 Yao Qi <yao@codesourcery.com>
10279 * target.h (target_xfer_partial_ftype): Update.
10280 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10282 * aix-thread.c (aix_thread_xfer_partial): Change type of
10283 argument 'len' to ULONGEST.
10284 * auxv.c (procfs_xfer_auxv): Likewise.
10285 (ld_so_xfer_auxv): Likewise.
10286 (memory_xfer_auxv): Likewise.
10287 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10288 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10289 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10290 * corelow.c (core_xfer_partial): Likewise.
10291 * ctf.c (ctf_xfer_partial): Likewise.
10292 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10294 (darwin_read_dyld_info): Likewise.
10295 (darwin_xfer_partial): Likewise.
10296 * exec.c (section_table_xfer_memory_partial): Likewise.
10297 (exec_xfer_partial): Likewise.
10298 * exec.h (section_table_xfer_memory_partial): Update
10300 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10301 instead of plongest.
10302 (gnu_xfer_partial): Likewise.
10303 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10304 (ia64_hpux_xfer_solib_got): Likewise.
10305 (ia64_hpux_xfer_partial): Likewise.
10306 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10307 * inf-ptrace.c (inf_ptrace_xfer_partial):
10308 * inf-ttrace.c (inf_ttrace_xfer_partial):
10309 * linux-nat.c (linux_xfer_siginfo): Likewise.
10310 (linux_nat_xfer_partial): Likewise.
10311 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10312 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10313 * monitor.c (monitor_xfer_memory): Likewise.
10314 (monitor_xfer_partial): Likewise.
10315 * procfs.c (procfs_xfer_partial): Likewise.
10316 * record-full.c (record_full_xfer_partial): Likewise.
10317 (record_full_core_xfer_partial): Likewise.
10318 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10319 instead of plongest.
10320 (gdbsim_xfer_partial): Likewise.
10321 * remote.c (remote_xfer_partial): Likewise.
10322 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10323 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10325 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10326 (rs6000_xfer_shared_libraries): Likewise.
10327 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10328 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10329 (sparc_xfer_partial): Likewise.
10330 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10331 (spu_xfer_partial): Likewise.
10332 * spu-multiarch.c (spu_xfer_partial): Likewise.
10333 * target.c (target_read_live_memory): Likewise.
10334 (memory_xfer_live_readonly_partial): Likewise.
10335 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10336 (target_xfer_partial, default_xfer_partial): Likewise.
10337 (current_xfer_partial): Likewise.
10338 * tracepoint.c (tfile_xfer_partial): Likewise.
10339 * windows-nat.c (windows_xfer_memory): Likewise. Call
10340 pulongest instead of plongest.
10341 (windows_xfer_partial): Likewise.
10342 (windows_xfer_shared_libraries): Likewise.
10344 2014-01-14 Yao Qi <yao@codesourcery.com>
10346 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10347 target_xfer_partial_ftype.
10349 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10353 * valops.c (value_struct_elt_bitpos): New function
10354 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10355 object to 'None' if the field name is an empty string ("").
10356 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10357 attribute to look for a field when 'name' is 'None'.
10358 (get_field_type): New function
10360 2014-01-13 Doug Evans <dje@google.com>
10363 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10364 (try_open_dwop_file): Ditto.
10365 * gdb_bfd.c: #include "vec.h".
10366 (bfdp): New typedef.
10367 (struct gdb_bfd_data): New member included_bfds.
10368 (gdb_bfd_unref): Unref all included bfds.
10369 (gdb_bfd_record_inclusion): New function.
10370 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10372 2014-01-13 Tom Tromey <tromey@redhat.com>
10374 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10376 2014-01-13 Tom Tromey <tromey@redhat.com>
10378 * defs.h (use_windows): Remove.
10379 * gdb.c (main): Update.
10380 * main.c (captured_main, gdb_main): Update.
10381 * main.h (struct captured_main_args) <use_windows>: Remove.
10382 * top.c (use_windows): Remove.
10384 2014-01-13 Tom Tromey <tromey@redhat.com>
10386 * defs.h (deprecated_flush_hook): Remove.
10388 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10391 * linux-thread-db.c (try_thread_db_load): Add parameter
10392 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10393 (try_thread_db_load_from_pdir_1): Move it there from here.
10394 (try_thread_db_load_from_sdir): Update caller.
10395 (try_thread_db_load_from_dir): Move it there from here.
10397 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10399 * regformats/regdat.sh: Always rewrite the register file.
10401 2014-01-13 Pedro Alves <palves@redhat.com>
10403 * Makefile.in (CHECK_HEADERS): New variable.
10404 (check-headers:): New rule.
10406 2014-01-13 Tom Tromey <tromey@redhat.com>
10408 * cli/cli-setshow.c (do_set_command): Update.
10409 * defs.h (deprecated_set_hook): Remove.
10410 * top.c (deprecated_set_hook): Remove.
10412 2014-01-13 Pedro Alves <palves@redhat.com>
10414 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10415 the tracepoint if the PC is a pseudo-register.
10417 2014-01-13 Tom Tromey <tromey@redhat.com>
10419 * defs.h (XCALLOC): Remove.
10420 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10421 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10422 * dwarf2loc.c (allocate_piece_closure): Likewise.
10423 * elfread.c (elf_symfile_segments): Likewise.
10424 (elf_symfile_segments): Likewise.
10425 * gdbtypes.c (copy_type_recursive): Likewise.
10426 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10427 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10428 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10430 * mt-tdep.c (mt_gdbarch_init): Likewise.
10431 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10433 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10434 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10435 * registry.c (registry_alloc_data): Likewise.
10436 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10437 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10438 * serial.c (serial_fdopen_ops): Likewise.
10439 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10441 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10442 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10445 2014-01-13 Tom Tromey <tromey@redhat.com>
10447 * defs.h (XMALLOC): Remove.
10448 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10449 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10450 * cli-out.c (struct ui_out *): Likewise.
10451 * cli/cli-dump.c (add_dump_command): Likewise.
10452 (add_dump_command): Likewise.
10453 * complaints.c (get_complaints): Likewise.
10454 (find_complaint): Likewise.
10455 * dwarf2-frame.c (execute_cfa_program): Likewise.
10456 * dwarf2read.c (abbrev_table_read_table): Likewise.
10457 * gdbarch.sh: Likewise.
10458 * gdbarch.c: Rebuild.
10459 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10460 * interps.c (interp_new): Likewise.
10461 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10462 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10463 * mi/mi-console.c (mi_console_file_new): Likewise.
10464 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10465 * mi/mi-out.c (mi_out_new): Likewise.
10466 * mi/mi-parse.c (mi_parse): Likewise.
10467 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10468 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10469 * observer.c (xalloc_observer_list_node): Likewise.
10470 * regcache.c (regcache_xmalloc_1): Likewise.
10471 * reggroups.c (reggroup_new): Likewise.
10472 (_initialize_reggroup): Likewise.
10473 * registry.c (register_data_with_cleanup): Likewise.
10474 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10475 * ser-base.c (serial_ttystate): Likewise.
10476 * ser-mingw.c (make_pipe_state): Likewise.
10477 * ser-pipe.c (pipe_open): Likewise.
10478 * serial.c (serial_open): Likewise.
10479 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10480 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10481 (tui_alloc_win_info): Likewise.
10482 (tui_add_content_elements): Likewise.
10483 * tui/tui-file.c (tui_file_new): Likewise.
10484 * tui/tui-out.c (tui_out_new): Likewise.
10485 * ui-file.c (mem_file_new): Likewise.
10486 * ui-out.c (push_level): Likewise.
10487 (make_cleanup_ui_out_end): Likewise.
10488 (append_header_to_list): Likewise.
10489 (ui_out_new): Likewise.
10490 * user-regs.c (user_reg_add_builtin): Likewise.
10492 2014-01-13 Tom Tromey <tromey@redhat.com>
10494 * defs.h (XZALLOC): Remove.
10495 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10496 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10497 (get_ada_tasks_inferior_data): Likewise.
10498 * auto-load.c (get_auto_load_pspace_data): Likewise.
10499 * auxv.c (get_auxv_inferior_data): Likewise.
10500 * bfd-target.c (target_bfd_reopen): Likewise.
10501 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10502 (deprecated_insert_raw_breakpoint): Likewise.
10503 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10504 * corelow.c (core_open): Likewise.
10505 * darwin-nat.c (darwin_check_new_threads): Likewise.
10506 (darwin_attach_pid): Likewise.
10507 * dummy-frame.c (dummy_frame_push): Likewise.
10508 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10509 * dwarf2loc.c (allocate_piece_closure): Likewise.
10510 * elfread.c (elf_symfile_segments): Likewise.
10511 * eval.c (ptrmath_type_p): Likewise.
10512 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10513 * gdbtypes.c (alloc_type_arch): Likewise.
10514 (alloc_type_instance): Likewise.
10515 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10516 * inf-child.c (inf_child_can_use_agent): Likewise.
10517 * inflow.c (get_inflow_inferior_data): Likewise.
10518 * infrun.c (save_infcall_suspend_state): Likewise.
10519 * jit.c (jit_reader_load): Likewise.
10520 (get_jit_objfile_data): Likewise.
10521 (get_jit_program_space_data): Likewise.
10522 (jit_object_open_impl): Likewise.
10523 (jit_symtab_open_impl): Likewise.
10524 (jit_block_open_impl): Likewise.
10525 (jit_frame_sniffer): Likewise.
10526 * linux-fork.c (add_fork): Likewise.
10527 * maint.c (make_command_stats_cleanup): Likewise.
10528 * objfiles.c (get_objfile_pspace_data): Likewise.
10529 * opencl-lang.c (struct lval_closure): Likewise.
10530 * osdata.c (osdata_start_osdata): Likewise.
10531 * progspace.c (new_address_space): Likewise.
10532 (add_program_space): Likewise.
10533 * remote-sim.c (get_sim_inferior_data): Likewise.
10534 * sh-tdep.c (sh_gdbarch_init): Likewise.
10535 * skip.c (Ignore): Likewise.
10536 (skip_delete_command): Likewise.
10537 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10538 (library_list_start_library): Likewise.
10539 (solib_aix_current_sos): Likewise.
10540 * solib-darwin.c (get_darwin_info): Likewise.
10541 (darwin_current_sos): Likewise.
10542 * solib-dsbt.c (get_dsbt_info): Likewise.
10543 * solib-ia64-hpux.c (new_so_list): Likewise.
10544 (ia64_hpux_get_solib_linkage_addr): Likewise.
10545 * solib-spu.c (append_ocl_sos): Likewise.
10546 (spu_current_sos): Likewise.
10547 * solib-svr4.c (get_svr4_info): Likewise.
10548 (svr4_keep_data_in_core): Likewise.
10549 (library_list_start_library): Likewise.
10550 (svr4_default_sos): Likewise.
10551 (svr4_read_so_list): Likewise.
10552 * solib-target.c (library_list_start_library): Likewise.
10553 (solib_target_current_sos): Likewise.
10554 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10555 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10556 * symfile.c (default_symfile_segments): Likewise.
10557 * target-descriptions.c (tdesc_data_init): Likewise.
10558 (tdesc_create_reg): Likewise.
10559 (struct tdesc_type *): Likewise.
10560 (tdesc_create_vector): Likewise.
10561 (tdesc_set_struct_size): Likewise.
10562 (struct tdesc_type *): Likewise.
10563 (tdesc_free_feature): Likewise.
10564 (tdesc_create_feature): Likewise.
10565 * windows-nat.c (windows_add_thread): Likewise.
10566 (windows_make_so): Likewise.
10567 * xml-support.c (gdb_xml_body_text): Likewise.
10568 (gdb_xml_create_parser_and_cleanup): Likewise.
10569 (xml_process_xincludes): Likewise.
10570 * xml-syscall.c (allocate_syscalls_info): Likewise.
10571 (syscall_create_syscall_desc): Likewise.
10573 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10575 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10576 function, with code from i386_stap_parse_special_token.
10577 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10578 (i386_stap_parse_special_token): Move code to the two functions
10579 above; simplify it.
10581 2014-01-09 Pedro Alves <palves@redhat.com>
10582 Hui Zhu <hui@codesourcery.com>
10585 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10586 bp_err_string. Don't mark the location shlib_disabled if the
10587 error thrown wasn't a generic or memory error. Catch errors
10588 thrown while inserting breakpoints in overlayed code. Output
10589 error message of software breakpoints.
10590 * remote.c (remote_insert_breakpoint): If this breakpoint has
10591 target-side commands but this stub doesn't support Z0 packets,
10592 throw NOT_SUPPORTED_ERROR error.
10593 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10594 * target.h (target_insert_breakpoint): Extend comment.
10595 (target_insert_hw_breakpoint): Add comment.
10597 2014-01-08 Pedro Alves <palves@redhat.com>
10599 * remote.c (remote_add_thread): Add threads silently if starting
10601 (remote_notice_new_inferior): If in all-stop, and starting up,
10602 don't call notice_new_inferior.
10603 (get_current_thread): New function, factored out from ...
10604 (add_current_inferior_and_thread): ... this. Adjust.
10605 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10606 found any thread, then select the remote's current thread as GDB's
10607 current thread too.
10609 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10611 * NEWS: Create a new section for the next release branch.
10612 Rename the section of the current branch, now that it has
10615 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10617 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10618 * version.in: Bump version to 7.7.50.DATE-cvs.
10620 2014-01-08 Yao Qi <yao@codesourcery.com>
10622 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10623 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10624 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10626 2014-01-08 Yao Qi <yao@codesourcery.com>
10628 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10629 return value of bfd_get_filename to symbol_file_add_from_bfd.
10631 2014-01-08 Pierre Muller <muller@sourceware.org>
10634 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10635 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10636 to prim_record_mininal_symbol_and_info.
10637 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10638 in call to prim_record_minimal_symbol_and_info.
10639 (read_pe_exported_syms): Set index field of section_data.
10641 2014-01-07 Andrew Pinski <apinski@cavium.com>
10643 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10644 * features/aarch64.c: Regenerate.
10646 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10648 * target.c (return_null): Define.
10649 (update_current_target): Use it instead of return_zero for
10650 functions that return a pointer.
10652 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10654 * source.c (add_path): Fix check for duplicated paths in the previously
10657 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10659 * ada-lang.c: Remove duplicated include statements.
10660 * alphabsd-nat.c: Ditto.
10661 * amd64-darwin-tdep.c: Ditto.
10662 * amd64fbsd-nat.c: Ditto.
10663 * auto-load.c: Ditto.
10665 * breakpoint.c: Ditto.
10666 * dbxread.c: Ditto.
10667 * fork-child.c: Ditto.
10668 * gdb_usleep.c: Ditto.
10669 * i386-darwin-tdep.c: Ditto.
10670 * i386fbsd-nat.c: Ditto.
10672 * inferior.c: Ditto.
10673 * jv-lang.c: Ditto.
10674 * linux-nat.c: Ditto.
10675 * linux-tdep.c: Ditto.
10676 * m68kbsd-nat.c: Ditto.
10677 * m68klinux-nat.c: Ditto.
10678 * microblaze-tdep.c: Ditto.
10679 * mips-linux-tdep.c: Ditto.
10680 * mn10300-tdep.c: Ditto.
10681 * nto-tdep.c: Ditto.
10682 * opencl-lang.c: Ditto.
10684 * printcmd.c: Ditto.
10685 * regcache.c: Ditto.
10686 * remote-m32r-sdi.c: Ditto.
10688 * symfile.c: Ditto.
10690 * tilegx-linux-nat.c: Ditto.
10691 * tilegx-tdep.c: Ditto.
10692 * tracepoint.c: Ditto.
10694 * vaxbsd-nat.c: Ditto.
10695 * windows-nat.c: Ditto.
10696 * xtensa-tdep.c: Ditto.
10698 2014-01-07 Yao Qi <yao@codesourcery.com>
10700 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10702 2014-01-07 Yao Qi <yao@codesourcery.com>
10703 Joel Brobecker <brobecker@adacore.com>
10705 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10706 (pdc_write_regs): Likewise.
10707 (fetch_regs_kernel_thread): Likewise.
10708 (store_regs_kernel_thread): Likewise.
10710 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10712 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10713 tagged type objects to their actual type.
10715 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10717 * ada-valprint.c (print_field_values): Add "language" parameter.
10718 Update calls to print_field_values and print_variant_part.
10719 Pass new parameter "language" in call to val_print instead
10720 of "current_language". Replace call to ada_val_print by call
10722 (print_variant_part): Add "language" parameter.
10723 (ada_val_print_struct_union): Update call to print_field_values.
10725 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10727 * ada-valprint.c (ui_memcpy): Delete.
10728 (ada_print_floating): Update documentation. Add empty line
10729 between between function documentation and implementation.
10730 Delete variable "buffer". Use ui_file_xstrdup in place of
10731 ui_file_put. Minor adjustments following this change.
10733 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10735 * ada-valprint.c (ada_val_print_string): New function,
10736 extracted from ada_val_print_array.
10737 (ada_val_print_array): Replace extracted code by call
10738 to ada_val_print_string followed by a return. Move
10739 "else" branch to the function's top block.
10741 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10743 * ada-valprint.c (ada_val_print_array): Move implementation
10744 down. Rename parameter "offset" and "val" into "offset_aligned"
10745 and "original_value" respectively. Add parameter "offset".
10747 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10749 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10750 re-organizing the code. Change the "???" message printed
10751 when target type is a TYPE_CODE_UNDEF into
10752 "<ref to undefined type>".
10754 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10756 * ada-valprint.c (print_record): Delete, implementation inlined...
10757 (ada_val_print_struct_union): ... here. Remove call to
10758 ada_check_typedef in inlined implementation.
10760 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10762 * ada-valprint.c (ada_val_print_gnat_array): New function,
10763 extracted from ada_val_print_1;
10764 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10765 (ada_val_print_flt, ada_val_print_struct_union)
10766 (ada_val_print_ref): Likewise.
10767 (ada_val_print_1): Delete variables i and elttype.
10768 Replace extracted-out code by call to corresponding
10771 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10773 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10775 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10777 * ada-valprint.c (ada_val_print_1): Replace calls to
10778 ada_val_print_1 by calls to val_print.
10780 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10782 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10783 Update calls to self accordingly. Replace calls to c_val_print
10784 by calls to val_print.
10786 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10788 * ada-valprint.c (print_record): Delete declaration.
10789 (adjust_type_signedness, ada_val_print_1): Likewise.
10790 (ada_val_print): Move function implementation down.
10791 (print_variant_part, print_field_values, print_record):
10792 Move function implementation up.
10794 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10796 * python/py-type.c (typy_get_name): New function.
10797 (type_object_getset): Add entry for attribute "name".
10798 * NEWS: Add entry mentioning this new attribute.
10800 2014-01-07 Yao Qi <yao@codesourcery.com>
10802 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10805 2014-01-07 Yao Qi <yao@codesourcery.com>
10807 * gnu-nat.c (info_port_rights): Add qualifier const to
10810 2014-01-07 Yao Qi <yao@codesourcery.com>
10812 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10814 2014-01-07 Yao Qi <yao@codesourcery.com>
10816 * gnu-nat.c (make_inf) Update declaration.
10817 (make_inf): Make it static.
10818 (inf_set_traced): Likewise.
10819 (inf_port_to_thread, inf_task_died_status): Likewise.
10821 2014-01-07 Yao Qi <yao@codesourcery.com>
10823 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10825 2014-01-07 Yao Qi <yao@codesourcery.com>
10827 * gnu-nat.c (_initialize_gnu_nat): Declare.
10829 2014-01-07 Yao Qi <yao@codesourcery.com>
10831 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10833 (struct gdbarch_info) <byte_order>: Change type to
10835 <byte_order_for_code>: Likewise.
10836 * gdbarch.c, gdbarch.h: Regenerated.
10838 2014-01-06 Sasha Smundak <asmundak@google.com>
10840 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10842 2014-01-06 Tom Tromey <tromey@redhat.com>
10844 * doublest.c (convert_doublest_to_floatformat): Use const, not
10846 * somread.c (som_symtab_read): Likewise.
10848 2014-01-07 Hui Zhu <hui@codesourcery.com>
10850 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10851 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10852 (gdb_bfd_fopen): Ditto.
10853 (gdb_bfd_openr): Ditto.
10854 (gdb_bfd_openw): Ditto.
10855 (gdb_bfd_openr_iovec): Ditto.
10856 (gdb_bfd_fdopenr): Ditto.
10857 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10858 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10860 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10862 * symfile-mem.c (symbol_file_add_from_memory): Removed
10863 gdb_bfd_stash_filename.
10865 2014-01-03 Doug Evans <dje@google.com>
10867 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10870 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10872 Update year range in copyright notice of all files.
10874 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10876 * top.c (print_gdb_version): Set copyright year to 2014.
10878 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10880 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10882 For older changes see ChangeLog-2013.
10888 version-control: never