1 2014-07-30 Gary Benson <gbenson@redhat.com>
3 * btrace.c: Include defs.h.
4 * common/ptid.c: Include defs.h or server.h as appropriate.
5 * nat/mips-linux-watch.c: Likewise.
7 2014-07-29 Tom Tromey <tromey@redhat.com>
9 * target.c (target_is_pushed): Simplify.
11 2014-07-29 Joel Brobecker <brobecker@adacore.com>
15 2014-07-29 Yao Qi <yao@codesourcery.com>
18 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
20 2014-07-28 Doug Evans <xdje42@gmail.com>
23 * guile/scm-param.c (pascm_parameter_defined_p): New function.
24 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
27 2014-07-28 Will Newton <will.newton@linaro.org>
29 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
30 (THUMB2_SET_R7_SIGRETURN2): Likewise.
31 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
32 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
33 (THUMB2_EABI_SYSCALL): Likewise.
34 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
36 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
37 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
39 2014-07-27 Doug Evans <xdje42@gmail.com>
41 * guile/scm-param.c (pascm_print_param_smob): Fix output.
43 2014-07-27 Doug Evans <xdje42@gmail.com>
45 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
47 2014-07-26 Ludovic Courtès <ludo@gnu.org>
48 Doug Evans <xdje42@gmail.com>
51 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
52 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
53 * configure.ac: Try to use guild to compile an scm file, if it fails
54 then disable guile support.
55 * configure: Regenerate.
56 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
58 (GUILE_COMPILED_FILES): New variable.
60 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
61 (stamp-guile): Compile scm files.
62 * guile/guile.c (boot_guile_support): New function.
63 (standard_throw_args_p): New function.
64 (print_standard_throw_error, print_throw_error): New functions.
65 (handle_boot_error): New function.
66 (initialize_scheme_side): Rewrite to call boot_guile_support.
67 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
68 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
70 2014-07-26 Ludovic Courtès <ludo@gnu.org>
71 Doug Evans <xdje42@gmail.com>
74 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
75 * guile/lib/gdb/support.scm: New file.
76 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
77 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
79 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
81 (%assert-type): Ditto, and renamed to assert-type.
82 (%exception-print-style): Delete.
84 2014-07-26 Doug Evans <xdje42@gmail.com>
87 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
88 * configure: Regenerate.
89 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
91 (PYTHON_FILES): New variable.
92 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
93 (GUILE_FILES): New variable.
94 (stamp-python, install-python, uninstall-python): Handle empty
96 (stamp-guile, install-guile, uninstall-guile): Ditto.
98 2014-07-26 Doug Evans <xdje42@gmail.com>
101 * guile/lib/gdb.scm (pretty-printers): Export.
102 (set-pretty-printers!): Export.
103 * guile/lib/gdb/printing.scm (gdb module): Update.
104 (prepend-pretty-printer!, append-pretty-printer!): Update.
105 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
106 (pretty_printer_list_var): Delete.
107 (pretty_printer_list): New static global.
108 (gdbscm_pretty_printers): New function.
109 (gdbscm_set_pretty_printers_x): New function.
110 (ppscm_find_pretty_printer_from_gdb): Update.
111 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
112 (gdbscm_initialize_pretty_printers): Update.
114 2014-07-26 Doug Evans <xdje42@gmail.com>
117 * configure.ac: Add check for header gc/gc.h.
118 Add check for function setenv.
119 * configure: Regenerate.
120 * config.in: Regenerate.
121 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
123 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
125 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
126 variation in gdbarch matching.
128 2014-07-25 Tom Tromey <tromey@redhat.com>
130 * exec.c (using_exec_ops): Remove.
131 (exec_close_1): Update. Remove extraneous block, reindent.
132 (add_target_sections): Use target_is_pushed.
134 2014-07-25 Pedro Alves <palves@redhat.com>
136 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
137 * monitor.c (monitor_create_inferior): Likewise.
138 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
139 * remote-sim.c (gdbsim_create_inferior): Likewise.
140 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
141 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
142 * windows-nat.c (do_initial_windows_stuff): Likewise.
144 2014-07-25 Pedro Alves <palves@redhat.com>
146 * NEWS: Mention signal passing and "signal" command changes.
147 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
149 * breakpoint.c (until_break_command): Adjust clear_proceed_status
151 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
152 * infcmd.c (proceed_thread_callback, continue_1, step_once)
153 (jump_command): Adjust clear_proceed_status call.
154 (signal_command): Warn if other thread that are resumed have
155 signals that will be delivered. Adjust clear_proceed_status call.
156 (until_next_command, finish_command)
157 (proceed_after_attach_callback, attach_command_post_wait)
158 (attach_command): Adjust clear_proceed_status call.
159 * infrun.c (proceed_after_vfork_done): Likewise.
160 (proceed_after_attach_callback): Adjust comment.
161 (clear_proceed_status_thread): Clear stop_signal if not in pass
163 (clear_proceed_status_callback): Delete.
164 (clear_proceed_status): New 'step' parameter. Only clear the
165 proceed status of threads the command being prepared is about to
167 (proceed): If passed in an explicit signal, override stop_signal
168 with it. Don't pass the last stop signal to the thread we're
170 (init_wait_for_inferior): Adjust clear_proceed_status call.
171 (switch_back_to_stepped_thread): Clear the signal if it should not
173 * infrun.h (clear_proceed_status): New 'step' parameter.
174 (user_visible_resume_ptid): Add comment.
175 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
176 signal is in pass state.
177 * remote.c (append_pending_thread_resumptions): Likewise.
178 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
180 2014-07-25 Tom Tromey <tromey@redhat.com>
182 * target.h (target_stopped_data_address)
183 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
186 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
188 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
190 (avr_pointer_to_address): Likewise.
192 2014-07-24 Tom Tromey <tromey@redhat.com>
194 * monitor.c (compile_pattern): Update.
195 * target.h (struct target_ops) <to_shortname, to_longname,
198 2014-07-24 Tom Tromey <tromey@redhat.com>
200 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
201 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
202 (add_info_alias, add_com): Make "doc" const.
203 (print_doc_line): Make "str" const.
204 (delete_cmd): Update.
205 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
206 (print_doc_line): Update.
207 * cli/cli-script.c (document_command): Update.
208 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
209 (add_com, add_info, add_info_alias): Update.
210 * guile/scm-cmd.c (cmdscm_destroyer): Update.
211 * python/py-cmd.c (cmdpy_destroyer): Update.
213 2014-07-24 Tom Tromey <tromey@redhat.com>
215 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
216 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
217 (help_cmd_list): Constify.
218 (lookup_cmd): Update.
219 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
221 (help_cmd_list, apropos_cmd): Update.
222 * cli/cli-script.c (show_user): Update.
223 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
224 * cli/cli-setshow.h (cmd_show_list): Update.
225 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
226 (cmd_show_list): Update.
227 * guile/scm-cmd.c (cmdscm_destroyer): Update.
228 * python/py-cmd.c (cmdpy_destroyer): Update.
230 2014-07-24 Tom Tromey <tromey@redhat.com>
232 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
233 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
235 * command.h (deprecate_cmd): Update.
236 * maint.c (maintenance_do_deprecate): Add casts.
238 2014-07-24 Tom Tromey <tromey@redhat.com>
240 * cli/cli-decode.c (help_cmd): Make parameter "const".
241 * cli/cli-decode.h (help_cmd): Update.
243 2014-07-24 Tom Tromey <tromey@redhat.com>
245 * stack.c (up_silently_base, down_silently_base): Make argument
248 2014-07-24 Tom Tromey <tromey@redhat.com>
250 * solib.c (solib_add): Make "pattern" const.
251 * solib.h (solib_add): Update.
253 2014-07-24 Tom Tromey <tromey@redhat.com>
255 * remote.c (remote_serial_open, print_packet, putpkt)
256 (putpkt_binary): Constify.
257 * remote.h (putpkt): Update.
259 2014-07-24 Tom Tromey <tromey@redhat.com>
261 * monitor.c (monitor_open): Make "args" const.
262 * monitor.h (monitor_open): Update.
264 2014-07-24 Tom Tromey <tromey@redhat.com>
266 * maint.c (match_bfd_flags): Make "string" const.
267 (print_bfd_section_info): Remove casts.
268 (print_objfile_section_info): Make "string" const.
270 2014-07-24 Tom Tromey <tromey@redhat.com>
272 * inf-child.c (inf_child_open_target): Make "arg" const.
273 * inf-child.h (inf_child_open_target): Update.
275 2014-07-24 Tom Tromey <tromey@redhat.com>
277 * environ.c (unset_in_environ): Make "var" const.
278 * environ.h (unset_in_environ): Update.
280 2014-07-24 Tom Tromey <tromey@redhat.com>
282 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
284 (scan_filename_with_cleanup): Likewise.
285 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
286 Make arguments const.
287 (restore_command): Update.
289 2014-07-24 Pedro Alves <palves@redhat.com>
291 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
293 2014-07-24 Tom Tromey <tromey@redhat.com>
294 Gary Benson <gbenson@redhat.com>
296 * nat/linux-ptrace.c (additional_flags): New global.
297 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
298 additional_flags; don't check GDBSERVER.
299 (linux_ptrace_set_additional_flags): New function.
300 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
302 * linux-nat.c (_initialize_linux_nat): Call
303 linux_ptrace_set_additional_flags.
305 2014-07-24 Tom Tromey <tromey@redhat.com>
307 * make-target-delegates (munge_type, write_debugmethod): New
309 (debug_names): New global.
310 ($TARGET_DEBUG_PRINTER): New global.
311 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
313 Write debug methods. Generate init_debug_target.
314 * target-debug.h: New file.
315 * target-delegates.c: Rebuild.
316 * target.c: Include target-debug.h.
317 (debug_target): Hoist definition.
318 (target_kill, target_get_section_table, target_memory_map)
319 (target_flash_erase, target_flash_done, target_detach)
320 (target_disconnect, target_wait, target_resume)
321 (target_pass_signals, target_program_signals, target_follow_fork)
322 (target_mourn_inferior, target_search_memory)
323 (target_thread_address_space, target_close)
324 (target_find_new_threads, target_core_of_thread)
325 (target_verify_memory, target_insert_mask_watchpoint)
326 (target_remove_mask_watchpoint): Remove targetdebug code.
327 (debug_to_post_attach, debug_to_prepare_to_store)
328 (debug_to_files_info, debug_to_insert_breakpoint)
329 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
330 (debug_to_region_ok_for_hw_watchpoint)
331 (debug_to_can_accel_watchpoint_condition)
332 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
333 (debug_to_watchpoint_addr_within_range)
334 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
335 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
336 (debug_to_terminal_init, debug_to_terminal_inferior)
337 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
338 (debug_to_terminal_save_ours, debug_to_terminal_info)
339 (debug_to_load, debug_to_post_startup_inferior)
340 (debug_to_insert_fork_catchpoint)
341 (debug_to_remove_fork_catchpoint)
342 (debug_to_insert_vfork_catchpoint)
343 (debug_to_remove_vfork_catchpoint)
344 (debug_to_insert_exec_catchpoint)
345 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
346 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
347 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
348 (setup_target_debug): Call init_debug_target.
349 * target.h (TARGET_DEBUG_PRINTER): New macro.
350 (struct target_ops) <to_resume, to_wait, to_pass_signals,
351 to_program_signals>: Use TARGET_DEBUG_PRINTER.
353 2014-07-24 Gary Benson <gbenson@redhat.com>
355 * exceptions.h (throw_vfatal): Renamed to...
356 (throw_vquit): New declaration.
357 (throw_quit): Likewise.
358 * exceptions.c (throw_vfatal): Renamed to...
359 (throw_vquit): New function.
360 (throw_quit): Likewise.
361 (throw_error): Call throw_verror rather than throw_it.
362 * utils.h (vfatal): Removed.
364 * utils.c (vfatal): Removed.
366 (internal_verror): Replaced call to fatal with call to throw_quit.
367 (quit): Replaced calls to fatal with calls to throw_quit.
369 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
371 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
374 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
376 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
377 less than zero in conditional expression.
379 2014-07-23 Tom Tromey <tromey@redhat.com>
381 * make-target-delegates ($ARGS_PART): Match trailing close paren.
382 ($INTRO_PART): Don't match whitespace.
383 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
385 ($METHOD): Add $METHOD_TRAILER.
387 (scan_target_h): New sub.
388 Change main loop not to collect state.
389 * target-delegates.c: Rebuild.
391 2014-07-23 Gary Benson <gbenson@redhat.com>
393 * cp-support.c (gdb_demangle): Fix build on systems without
396 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
398 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
399 for reference entry value target data value.
401 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
403 * stack.c (read_frame_arg): Verify value_optimized_out before calling
404 value_available_contents_eq.
406 2014-07-22 Pedro Alves <palves@redhat.com>
408 * value.c (allocate_optimized_out_value): Don't mark value as
411 2014-07-22 Jiong Wang <jiong.wang@arm.com>
413 * MAINTAINERS (Write After Approval): Update my email address.
415 2014-07-20 Doug Evans <dje@google.com>
418 * remote.c (putpkt_binary): Add text to error message.
420 2014-07-20 Yao Qi <yao@codesourcery.com>
422 * eval.c: Remove "Chill" from comments.
423 * gdbtypes.h: Likewise.
424 * symtab.h: Likewise.
426 2014-07-20 Yao Qi <yao@codesourcery.com>
428 * std-operator.def: Update comments to TERNOP_SLICE.
430 2014-07-20 Yao Qi <yao@codesourcery.com>
432 * std-operator.def: Remove BINOP_RANGE.
433 * breakpoint.c (watchpoint_exp_is_const): Update.
434 * expprint.c (dump_subexp_body_standard): Likewise.
435 * eval.c (init_array_element): Remove dead code.
436 (evaluate_subexp_standard): Likewise.
438 2014-07-20 Yao Qi <yao@codesourcery.com>
440 * std-operator.def: Remove BINOP_IN.
441 * breakpoint.c (watchpoint_exp_is_const): Update.
442 * eval.c (evaluate_subexp_standard): Likewise.
443 * expprint.c (dump_subexp_body_standard): Likewise.
445 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
447 * microblaze-tdep.c (microblaze_register_names): Add
448 the rshr and rslr register names.
449 (microblaze_gdbarch_init): Use of tdesc_has_registers.
450 Use of tdesc_find_feature. Use of tdesc_data_alloc.
451 Use of tdesc_numbered_register. Use of
452 microblaze_register_g_packet_guesses. Use of
453 tdesc_use_registers. Use of set_gdbarch_register_type.
454 (microblaze_register_g_packet_guesses): New.
455 * microblaze-tdep.h (microblaze_reg_num): Add
456 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
457 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
458 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
459 * features/microblaze-core.xml: New file.
460 * features/microblaze-stack-protect.xml: New file.
461 * features/microblaze-with-stack-protect.c: New file.
462 * features/microblaze-with-stack-protect.xml: New file.
463 * features/microblaze.xml: New file.
464 * features/microblaze.c: New file.
465 * features/Makefile (microblaze-with-stack-protect): Add
466 microblaze-with-stack-protect microblaze and microblaze-expedite.
467 * regformats/microblaze-with-stack-protect.dat: New file.
468 * regformats/microblaze.dat: New file.
469 * doc/gdb.texinfo (MicroBlaze Features): Added.
471 2014-07-18 Tom Tromey <tromey@redhat.com>
473 * exec.c (exec_ops): Now static.
474 * exec.h (exec_ops): Don't declare.
476 2014-07-18 Tom Tromey <tromey@redhat.com>
478 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
479 to find_target_beneath.
480 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
482 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
484 2014-07-18 Tom Tromey <tromey@redhat.com>
487 * utils.c (quit): Use target_supports_terminal_ours.
488 * target.h (target_supports_terminal_ours): Declare.
489 * target.c (target_supports_delete_record): Don't check
490 to_delete_record against NULL.
491 (target_supports_terminal_ours): New function.
493 2014-07-18 Tom Tromey <tromey@redhat.com>
496 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
497 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
498 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
499 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
500 * windows-nat.c (windows_xfer_partial): Always delegate.
501 * record-btrace.c (record_btrace_xfer_partial): Simplify
503 (record_btrace_fetch_registers, record_btrace_store_registers)
504 (record_btrace_prepare_to_store, record_btrace_resume)
505 (record_btrace_wait, record_btrace_find_new_threads)
506 (record_btrace_thread_alive): Likewise.
507 * procfs.c (procfs_xfer_partial): Always delegate.
508 * corelow.c (core_xfer_partial): Always delegate.
509 * sol-thread.c (sol_find_new_threads): Simplify delegation.
511 2014-07-18 Tom Tromey <tromey@redhat.com>
513 * exec.c (exec_make_note_section): Move earlier.
515 2014-07-17 Doug Evans <dje@google.com>
518 * maint.c (count_symtabs_and_blocks): Handle NULL
519 current_program_space.
520 (report_command_stats): Check global enabled flag in addition to
521 recorded enabled flag.
522 (make_command_stats_cleanup): Handle msg_type == 0, startup.
524 2014-07-16 Pedro Alves <palves@redhat.com>
526 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
528 2014-07-16 Tom Tromey <tromey@redhat.com>
530 * target.h (struct target_ops) <to_delete_record>: Reformat
533 2014-07-16 Tom Tromey <tromey@redhat.com>
535 * target-delegates.c: Rebuild.
537 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
539 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
540 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
541 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
542 (avr_pointer_to_address): Likewise.
543 (avr_address_class_type_flags): New function.
544 (avr_address_class_type_flags_to_name): Likewise.
545 (avr_address_class_name_to_type_flags): Likewise.
546 (avr_gdbarch_init): Set address_class_type_flags,
547 address_class_type_flags_to_name and
548 address_class_name_to_type_flags.
550 2014-07-15 Pedro Alves <palves@redhat.com>
552 * linux-nat.c (kill_callback): Save errno and work with saved
555 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
557 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
559 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
561 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
562 breakpoint support correctly.
564 2014-07-14 Pedro Alves <palves@redhat.com>
566 * utils.c (prompt_for_continue): Call target_terminal_ours.
568 2014-07-14 Pedro Alves <palves@redhat.com>
570 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
571 catch_errors. Don't re-enable stdin or notify observers where,
573 (fetch_inferior_event_wrapper): Delete.
575 2014-07-14 Pedro Alves <palves@redhat.com>
578 * top.c: Include "inf-loop.h".
579 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
581 (gdb_readline_wrapper_cleanup): Make the target async again, if it
583 (gdb_readline_wrapper): Store whether the target is async, and
586 2014-07-14 Pedro Alves <palves@redhat.com>
589 * top.c (gdb_readline_wrapper_line): Tweak comment.
590 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
591 the input handler callback.
593 2014-07-14 Pedro Alves <palves@redhat.com>
596 * main.c: Include event-top.h.
597 (handle_command_errors): New function.
598 (catch_command_errors, catch_command_errors_const): Use it.
600 2014-07-14 Pedro Alves <palves@redhat.com>
602 * exceptions.c (catch_command_errors, catch_command_errors_const):
604 * exceptions.h (catch_command_errors_ftype)
605 (catch_command_errors_const_ftype): Moved to main.c.
606 (catch_command_errors, catch_command_errors_const): Delete
608 * main.c (catch_command_errors_ftype)
609 (catch_command_errors_const_ftype): Moved here from exceptions.h.
610 (catch_command_errors, catch_command_errors_const)): Moved here
611 from exceptions.c and make static.
613 2014-07-14 Pedro Alves <palves@redhat.com>
615 * exceptions.c (print_any_exception): Delete.
616 (catch_exceptions_with_msg): Use exception_print instead of
618 (catch_errors): Use exception_fprintf instead of
620 (catch_command_errors, catch_command_errors_const): Use
621 exception_print instead of print_any_exception.
623 2014-07-14 Pedro Alves <palves@redhat.com>
625 * infcall.c (run_inferior_call): Set 'sync_execution' while
626 running the inferior call.
628 2014-07-14 Pedro Alves <palves@redhat.com>
630 * value.c (value_contents_equal): Delete function.
631 * value.h (value_contents_equal): Delete declaration.
633 2014-07-14 Tom Tromey <tromey@redhat.com>
636 * gdbtypes.c (is_dynamic_type_internal): New function, from
638 (is_dynamic_type): Rewrite.
639 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
640 (resolve_dynamic_struct): Likewise.
641 (resolve_dynamic_type_internal): New function, from
642 resolve_dynamic_type.
643 (resolve_dynamic_type): Rewrite.
645 2014-07-14 Tom Tromey <tromey@redhat.com>
647 * target.c (target_require_runnable): Also check record_stratum.
650 2014-07-11 Yao Qi <yao@codesourcery.com>
652 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
653 thumb_instruction_restores_sp return true.
655 2014-07-11 Yao Qi <yao@codesourcery.com>
657 * arm-tdep.c (thumb_instruction_restores_sp): New function.
658 (thumb_in_function_epilogue_p): Call
659 thumb_instruction_restores_sp.
661 2014-07-11 Yao Qi <yao@codesourcery.com>
663 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
665 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
667 2014-07-11 Gary Benson <gbenson@redhat.com>
669 * amd64-linux-nat.c (gdbcore.h): Remove include.
670 (regset.h): Likewise.
671 (nat/linux-btrace.h): Likewise.
672 (btrace.h): Likewise.
673 (gdb_assert.h): Likewise.
674 (string.h): Likewise.
675 (sys/uio.h): Likewise.
676 (sys/debugreg.h): Likewise.
677 (sys/syscall.h): Likewise.
678 (sys/procfs.h): Likewise.
679 (sys/user.h): Likewise.
680 (asm/ptrace.h): Likewise.
681 (i386-nat.h): Likewise.
682 * i386-linux-nat.c (i386-nat.h): Likewise.
683 (regset.h): Likewise.
684 (target.h): Likewise.
685 (linux-nat.h): Likewise.
686 (nat/linux-btrace.h): Likewise.
687 (btrace.h): Likewise.
688 (gdb_assert.h): Likewise.
689 (string.h): Likewise.
690 (sys/uio.h): Likewise.
691 (sys/user.h): Likewise.
692 (sys/procfs.h): Likewise.
693 (sys/reg.h): Likewise.
694 (sys/debugreg.h): Likewise.
695 (ORIG_EAX): Remove definition.
697 2014-07-11 Gary Benson <gbenson@redhat.com>
699 * i386-linux-nat.h: New file.
700 * x86-linux-nat.h: Likewise.
701 * x86-linux-nat.c: Likewise.
702 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
703 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
704 * config/i386/linux64.mh (NATDEPFILES): Likewise.
705 * amd64-linux-nat.c (x86-linux-nat.h): New include.
706 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
707 (PTRACE_SETREGSET): Likewise.
708 (arch_lwp_info): Now in x86-linux-nat.c.
709 (have_ptrace_getregset): Now in x86-linux-nat.h.
710 (x86_linux_dr_get): Now in x86-linux-nat.c.
711 (x86_linux_dr_set): Likewise.
712 (x86_linux_dr_get_addr): Likewise.
713 (x86_linux_dr_get_control): Likewise.
714 (x86_linux_dr_get_status): Likewise.
715 (update_debug_registers_callback): Likewise.
716 (x86_linux_dr_set_control): Likewise.
717 (x86_linux_dr_set_addr): Likewise.
718 (x86_linux_prepare_to_resume): Likewise.
719 (x86_linux_new_thread): Likewise.
720 (x86_linux_new_fork): Likewise.
721 (x86_linux_get_thread_area): Likewise.
722 (super_post_startup_inferior): Likewise.
723 (x86_linux_child_post_startup_inferior): Likewise.
724 (AMD64_LINUX_USER64_CS): Likewise.
725 (AMD64_LINUX_X32_DS): Likewise.
726 (x86_linux_read_description): Likewise.
727 (x86_linux_enable_btrace): Likewise.
728 (x86_linux_disable_btrace): Likewise.
729 (x86_linux_teardown_btrace): Likewise.
730 (x86_linux_read_btrace): Likewise.
731 (x86_linux_create_target): Likewise.
732 (x86_linux_add_target): Likewise.
733 * i386-linux-nat.c (x86-linux-nat.h): New include.
734 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
735 (PTRACE_SETREGSET): Likewise.
736 (arch_lwp_info): Now in x86-linux-nat.c.
737 (have_ptrace_getregset): Now in x86-linux-nat.h.
738 (x86_linux_dr_get): Now in x86-linux-nat.c.
739 (x86_linux_dr_set): Likewise.
740 (x86_linux_dr_get_addr): Likewise.
741 (x86_linux_dr_get_control): Likewise.
742 (x86_linux_dr_get_status): Likewise.
743 (update_debug_registers_callback): Likewise.
744 (x86_linux_dr_set_control): Likewise.
745 (x86_linux_dr_set_addr): Likewise.
746 (x86_linux_prepare_to_resume): Likewise.
747 (x86_linux_new_thread): Likewise.
748 (x86_linux_new_fork): Likewise.
749 (x86_linux_get_thread_area): Likewise.
750 (super_post_startup_inferior): Likewise.
751 (x86_linux_child_post_startup_inferior): Likewise.
752 (AMD64_LINUX_USER64_CS): Likewise.
753 (AMD64_LINUX_X32_DS): Likewise.
754 (x86_linux_read_description): Likewise.
755 (x86_linux_enable_btrace): Likewise.
756 (x86_linux_disable_btrace): Likewise.
757 (x86_linux_teardown_btrace): Likewise.
758 (x86_linux_read_btrace): Likewise.
759 (x86_linux_create_target): Likewise.
760 (x86_linux_add_target): Likewise.
762 2014-07-11 Gary Benson <gbenson@redhat.com>
764 * amd64-linux-nat.c: Comment and whitespace changes.
765 * i386-linux-nat.c: Comment and whitespace changes.
767 2014-07-11 Gary Benson <gbenson@redhat.com>
769 * amd64-linux-nat.c (x86_linux_create_target): New function.
770 (x86_linux_add_target): Likewise.
771 (_initialize_amd64_linux_nat): Delegate to the above new functions.
772 * i386-linux-nat.c (x86_linux_create_target): New function.
773 (x86_linux_add_target): Likewise.
774 (_initialize_i386_linux_nat): Delegate to the above new functions.
776 2014-07-11 Gary Benson <gbenson@redhat.com>
778 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
779 (ps_get_thread_area): Delegate to the above in 32-bit mode.
780 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
781 (ps_get_thread_area): Delegate to the above.
783 2014-07-11 Gary Benson <gbenson@redhat.com>
785 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
786 x86_linux_read_description. All uses updated. amd64-specific
787 code conditionalized. Conditionalized i386-specific code added.
788 Redundant cast removed.
789 * i386-linux-nat.c (i386_linux_read_description): Renamed to
790 x86_linux_read_description. All uses updated. i386-specific
791 code conditionalized. Conditionalized amd64-specific code added.
792 One sizeof replaced with the actual type it is describing.
794 2014-07-11 Gary Benson <gbenson@redhat.com>
796 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
797 x86_linux_dr_get. All uses updated.
798 (amd64_linux_dr_set): Renamed to
799 x86_linux_dr_set. All uses updated.
800 (amd64_linux_dr_get_addr): Renamed to
801 x86_linux_dr_get_addr. All uses updated.
802 (amd64_linux_dr_get_control): Renamed to
803 x86_linux_dr_get_control. All uses updated.
804 (amd64_linux_dr_get_status): Renamed to
805 x86_linux_dr_get_status. All uses updated.
806 (amd64_linux_dr_set_control): Renamed to
807 x86_linux_dr_set_control. All uses updated.
808 (amd64_linux_dr_set_addr): Renamed to
809 x86_linux_dr_set_addr. All uses updated.
810 (amd64_linux_prepare_to_resume): Renamed to
811 x86_linux_prepare_to_resume. All uses updated.
812 (amd64_linux_new_thread): Renamed to
813 x86_linux_new_thread. All uses updated.
814 (amd64_linux_new_fork): Renamed to
815 x86_linux_new_fork. All uses updated.
816 (amd64_linux_child_post_startup_inferior): Renamed to
817 x86_linux_child_post_startup_inferior. All uses updated.
818 (amd64_linux_enable_btrace): Renamed to
819 x86_linux_enable_btrace. All uses updated.
820 (amd64_linux_disable_btrace): Renamed to
821 x86_linux_disable_btrace. All uses updated.
822 (amd64_linux_teardown_btrace): Renamed to
823 x86_linux_teardown_btrace. All uses updated.
824 (amd64_linux_read_btrace): Renamed to
825 x86_linux_read_btrace. All uses updated.
826 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
827 x86_linux_dr_get. All uses updated.
828 (i386_linux_dr_set): Renamed to
829 x86_linux_dr_set. All uses updated.
830 (i386_linux_dr_get_addr): Renamed to
831 x86_linux_dr_get_addr. All uses updated.
832 (i386_linux_dr_get_control): Renamed to
833 x86_linux_dr_get_control. All uses updated.
834 (i386_linux_dr_get_status): Renamed to
835 x86_linux_dr_get_status. All uses updated.
836 (i386_linux_dr_set_control): Renamed to
837 x86_linux_dr_set_control. All uses updated.
838 (i386_linux_dr_set_addr): Renamed to
839 x86_linux_dr_set_addr. All uses updated.
840 (i386_linux_prepare_to_resume): Renamed to
841 x86_linux_prepare_to_resume. All uses updated.
842 (i386_linux_new_thread): Renamed to
843 x86_linux_new_thread. All uses updated.
844 (i386_linux_new_fork): Renamed to
845 x86_linux_new_fork. All uses updated.
846 (i386_linux_child_post_startup_inferior): Renamed to
847 x86_linux_child_post_startup_inferior. All uses updated.
848 (i386_linux_enable_btrace): Renamed to
849 x86_linux_enable_btrace. All uses updated.
850 (i386_linux_disable_btrace): Renamed to
851 x86_linux_disable_btrace. All uses updated.
852 (i386_linux_teardown_btrace): Renamed to
853 x86_linux_teardown_btrace. All uses updated.
854 (i386_linux_read_btrace): Renamed to
855 x86_linux_read_btrace. All uses updated.
857 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
859 * remote.c (extended_remote_post_attach): New function.
860 (init_extended_remote_ops): Install it as to_post_attach method.
862 2014-07-09 Pedro Alves <palves@redhat.com>
864 * infcmd.c (attach_command_post_wait): Don't call
865 target_terminal_inferior here.
866 (attach_command): Call it here instead.
868 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
870 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
872 * c-varobj.c (c_is_path_expr_parent): New function, moved core
873 from varobj.c, with additional checks.
874 (c_varobj_ops): Fill in is_path_expr_parent field.
875 (cplus_varobj_ops): Fill in is_path_expr_parent field.
876 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
878 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
880 (varobj_default_is_path_expr_parent): New function.
881 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
882 (varobj_default_is_path_expr_parent): Declare new function.
884 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
886 * infcmd.c (finish_backward): Turn internal error into normal error.
888 2014-07-07 Pedro Alves <palves@redhat.com>
891 * remote.c (async_handle_remote_sigint)
892 (async_handle_remote_sigint_twice): Call
893 gdb_call_async_signal_handler instead of
894 mark_async_signal_handler.
896 2014-07-07 Tom Tromey <tromey@redhat.com>
898 * target-delegates.c: Rebuild.
899 * target.c (target_info_record): Remove.
900 * record.c (info_record_command): Unconditionally call
902 * target.h (struct target_ops) <to_info_record>: Use
903 TARGET_DEFAULT_IGNORE.
904 (target_info_record): Remove.
906 2014-07-07 Tom Tromey <tromey@redhat.com>
908 * target.h (struct target_ops) <to_get_thread_local_address>: Use
909 TARGET_DEFAULT_NORETURN.
910 * target.c (generic_tls_error): New function.
911 (target_translate_tls_address): Don't search target stack.
912 * target-delegates.c: Rebuild.
913 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
915 * linux-thread-db.c (thread_db_get_thread_local_address):
916 Unconditionally call beneath target.
918 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
920 * cli/cli-logging.c (pop_output_files): Assign targerr to
923 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
925 * MAINTAINERS (Write After Approval): Update my email address.
927 2014-07-02 Gary Benson <gbenson@redhat.com>
929 * proc-service.c (ps_xfer_memory): Update comment.
930 (ps_pstop): Remove unused function.
931 (ps_pcontinue): Likewise.
932 (ps_lstop): Likewise.
933 (ps_lcontinue): Likewise.
934 (ps_lgetxregsize): Likewise.
935 (ps_lgetxregs): Likewise.
936 (ps_lsetxregs): Likewise.
938 (ps_ptread): Likewise.
939 (ps_ptwrite): Likewise.
941 2014-07-01 Mark Wielaard <mjw@redhat.com>
943 * dwarf2read.c (add_array_cv_type): New function.
944 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
945 (read_tag_volatile_type): Likewise.
947 2014-07-01 Tom Tromey <tromey@redhat.com>
949 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
950 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
951 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
952 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
953 * command.h (cmd_cfunc_ftype): Move earlier.
954 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
955 (add_com, add_info): Use cmd_cfunc_ftype.
957 2014-06-30 Tom Tromey <tromey@redhat.com>
959 * symtab.c (operator_chars): Make parameters and return type
961 (file_matches): Make "files" const.
962 (struct search_symbols_data) <files>: Now const.
963 (search_symbols): Make "regexp" and "files" parameters const.
965 (symtab_symbol_info): Remove cast.
966 (rbreak_command): Update.
967 * symtab.h (search_symbols): Update.
969 2014-06-27 Yao Qi <yao@codesourcery.com>
971 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
972 Change parameter type to 'struct thread_info *'. Caller
974 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
976 * dummy-frame.c (struct dummy_frame_id): New.
977 (dummy_frame_id_eq): New function.
978 (struct dummy_frame) <id>: Change its type to 'struct
980 (dummy_frame_push): Add parameter ptid and save it in
982 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
984 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
986 (lookup_dummy_frame): Change parameter type to 'struct
987 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
988 instead of frame_id_eq.
989 (dummy_frame_pop): Add parameter ptid. Callers updated.
990 Update comments. Compose dummy_frame_id and pass it to
992 (dummy_frame_discard): Add parameter ptid.
993 (dummy_frame_sniffer): Compose dummy_frame_id and call
994 dummy_frame_id_eq instead of frame_id_eq.
995 (fprint_dummy_frames): Print ptid.
996 * dummy-frame.h: Remove comments.
997 (dummy_frame_push): Add ptid in declaration.
998 (dummy_frame_pop, dummy_frame_discard): Likewise.
1000 2014-06-26 Tom Tromey <tromey@redhat.com>
1002 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1003 * command.h (error_no_arg): Update.
1005 2014-06-26 Tom Tromey <tromey@redhat.com>
1007 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1008 (do_show_command): Make "arg" const.
1009 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1011 2014-06-26 Tom Tromey <tromey@redhat.com>
1013 * record-full.c (record_full_get_bookmark): Make "args" const.
1014 (record_full_goto_bookmark): Make "raw_bookmark" const.
1015 * record.c (record_goto): New function.
1016 (cmd_record_goto): Use it. Now static.
1017 * record.h (record_goto): Declare.
1018 (cmd_record_goto): Remove declaration.
1019 * target-delegates.c: Rebuild.
1020 * target.h (struct target_ops) <to_get_bookmark,
1021 to_goto_bookmark>: Make parameter const.
1023 2014-06-26 Tom Tromey <tromey@redhat.com>
1025 * defs.h (generic_load): Update.
1026 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1027 * monitor.c (monitor_load): Make "args" const.
1028 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1029 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1031 (mips_load): Make "file" const.
1032 * remote-sim.c (gdbsim_load): Make "args" const.
1033 * remote.c (remote_load): Make "name" const.
1034 * symfile.c (generic_load): Make "args" const.
1035 * target-delegates.c: Rebuild.
1036 * target.c (target_load): Make "arg" const.
1037 (debug_to_load): Make "args" const.
1038 * target.h (struct target_ops) <to_load>: Make parameter const.
1039 (target_load): Update.
1041 2014-06-26 Tom Tromey <tromey@redhat.com>
1044 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1045 (dwarf2_physname, read_partial_die)
1046 (guess_partial_die_structure_name, fixup_partial_die)
1047 (guess_full_die_structure_name, anonymous_struct_prefix)
1048 (dwarf2_name): Use per-BFD obstack.
1050 2014-06-26 Yao Qi <yao@codesourcery.com>
1052 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1053 dummyframe and this_id into inner block below.
1055 2014-06-26 Yao Qi <yao@codesourcery.com>
1057 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1058 with "signal_pass[0]" in the initialization of signal_pass.
1060 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1062 * record-btrace.c (record_btrace_generating_corefile)
1063 (record_btrace_prepare_to_generate_core)
1064 (record_btrace_done_generating_core): New.
1065 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1066 (record_btrace_store_registers, record_btrace_prepare_to_store):
1067 Forward request when generating a core file.
1068 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1069 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1070 to_done_generating_core.
1072 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1074 * target.h (target_ops) <to_prepare_to_generate_core>
1075 <to_done_generating_core>: New.
1076 (target_prepare_to_generate_core, target_done_generating_core): New.
1077 * target.c (target_prepare_to_generate_core)
1078 (target_done_generating_core): New.
1079 * target-delegates.c: Regenerate.
1080 * gcore.c: (write_gcore_file): Rename to ...
1081 (write_gcore_file_1): ...this.
1082 (write_gcore_file): Call target_prepare_to_generate_core
1083 and target_done_generating_core.
1085 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1087 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1088 * gcore.c (write_gcore_file): Free memory returned from
1089 make_corefile_notes.
1090 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1091 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1093 2014-06-24 Yao Qi <yao@codesourcery.com>
1095 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1096 (arm_linux_init_abi): Set skip_trampoline_code with
1097 gdbarch_skip_trampoline_code instead of
1098 find_solib_trampoline_target.
1100 2014-06-24 Yao Qi <yao@codesourcery.com>
1102 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1103 arm_skip_bx_reg returns non-zero.
1105 2014-06-24 Yao Qi <yao@codesourcery.com>
1107 * arm-tdep.c (arm_skip_bx_reg): New function.
1108 (arm_skip_stub): Call arm_skip_bx_reg.
1110 2014-06-23 Don Breazeal <donb@codesourcery.com>
1112 * MAINTAINERS: Add myself as write-after-approval maintainer.
1114 2014-06-23 Pedro Alves <palves@redhat.com>
1116 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1117 DR_CONTROL before setting DR0..DR3.
1118 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1119 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1120 bits of DR_CONTROL related to the debug register slot being
1121 disabled. If all slots are vacant, clear local slowdown as well,
1122 and assert DR_CONTROL is 0.
1124 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1126 * python/lib/gdb/command/xmethods.py
1127 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1128 current progspace only if the string "progspace" matches LOCUS_RE.
1130 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1132 Fix --with-system-readline with readline-6.3 patch 5.
1133 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1134 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1137 2014-06-20 Tom Tromey <tromey@redhat.com>
1139 * dwarf2read.c (dw2_get_real_path): Use correct type in
1141 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1143 2014-06-20 Gary Benson <gbenson@redhat.com>
1145 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1146 * common/glibc_thread_db.h: Likewise.
1147 * common/i386-cpuid.h: Likewise.
1148 * common/i386-gcc-cpuid.h: Likewise.
1149 * common/linux-btrace.h: Likewise.
1150 * common/linux-osdata.h: Likewise.
1151 * common/linux-procfs.h: Likewise.
1152 * common/linux-ptrace.h: Likewise.
1153 * common/mips-linux-watch.h: Likewise.
1154 * common/linux-btrace.c: Moved to nat.
1155 * common/linux-osdata.c: Likewise.
1156 * common/linux-procfs.c: Likewise.
1157 * common/linux-ptrace.c: Likewise.
1158 * common/mips-linux-watch.c: Likewise.
1159 * nat/gdb_thread_db.h: Moved from common.
1160 * nat/glibc_thread_db.h: Likewise.
1161 * nat/i386-cpuid.h: Likewise.
1162 * nat/i386-gcc-cpuid.h: Likewise.
1163 * nat/linux-btrace.c: Likewise.
1164 * nat/linux-btrace.h: Likewise.
1165 * nat/linux-osdata.c: Likewise.
1166 * nat/linux-osdata.h: Likewise.
1167 * nat/linux-procfs.c: Likewise.
1168 * nat/linux-procfs.h: Likewise.
1169 * nat/linux-ptrace.c: Likewise.
1170 * nat/linux-ptrace.h: Likewise.
1171 * nat/mips-linux-watch.c: Likewise.
1172 * nat/mips-linux-watch.h: Likewise.
1173 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1174 (object file files): Reordered.
1175 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1176 of glibc_thread_db.h.
1178 2014-06-20 Gary Benson <gbenson@redhat.com>
1180 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1181 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1182 (i386_dr_low): Likewise.
1183 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1184 (i386_dr_low_set_addr): Likewise.
1185 (i386_dr_low_get_addr): Likewise.
1186 (i386_dr_low_can_set_control): Likewise.
1187 (i386_dr_low_set_control): Likewise.
1188 (i386_dr_low_get_control): Likewise.
1189 (i386_dr_low_get_status): Likewise.
1190 (i386_get_debug_register_length): Likewise.
1191 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1192 (i386_dr_low): Likewise.
1193 * nat/i386-dregs.c (i386-low.h): Remove include.
1194 (i386-nat.h): Likewise.
1195 (nat/i386-dregs.h): New include.
1196 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1197 (i386_dr_low_set_addr): Likewise.
1198 (i386_dr_low_get_addr): Likewise.
1199 (i386_dr_low_can_set_control): Likewise.
1200 (i386_dr_low_set_control): Likewise.
1201 (i386_dr_low_get_control): Likewise.
1202 (i386_dr_low_get_status): Likewise.
1203 (i386_get_debug_register_length): Likewise.
1204 (debug_hw_points): Likewise.
1206 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1208 * Makefile.in (SFILES): Add d-exp.y.
1209 (YYFILES): Add d-exp.c.
1210 (YYOBJ): Add d-exp.o.
1211 (local-maintainer-clean): Delete d-exp.c.
1212 * d-exp.y: New file.
1213 * d-lang.h (d_parse): New declaration.
1214 (d_error): New declaration.
1215 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1216 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1217 PREC_ORDER operators.
1218 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1220 2014-06-19 Yao Qi <yao@codesourcery.com>
1222 * gdbthread.h (any_running): Remove the declaration.
1223 * thread.c (any_running): Remove.
1225 2014-06-19 Yao Qi <yao@codesourcery.com>
1227 * gdbthread.h (struct thread_info) <state>: Change its type to
1228 'enum thread_state'. Update comments.
1230 2014-06-19 Pedro Alves <palves@redhat.com>
1232 * gdbthread.h (ALL_THREADS): Delete.
1233 (ALL_NON_EXITED_THREADS): New macro.
1234 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1235 instead of ALL_THREADS.
1236 * infrun.c (find_thread_needs_step_over)
1237 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1238 instead of ALL_THREADS.
1239 * record-btrace.c (record_btrace_open)
1240 (record_btrace_stop_recording, record_btrace_close)
1241 (record_btrace_is_replaying, record_btrace_resume)
1242 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1243 * remote.c (append_pending_thread_resumptions): Likewise.
1244 * thread.c (thread_apply_all_command): Likewise.
1246 2014-06-19 Gary Benson <gbenson@redhat.com>
1248 * i386-nat.c (i386_stopped_by_watchpoint):
1249 Use i386_dr_stopped_by_watchpoint.
1250 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1251 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1253 2014-06-19 Gary Benson <gbenson@redhat.com>
1255 * nat/i386-dregs.c: New file.
1256 * Makefile.in (i386-dregs.o): New rule.
1257 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1258 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1259 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1260 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1261 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1262 * config/i386/go32.mh (NATDEPFILES): Likewise.
1263 * config/i386/linux.mh (NATDEPFILES): Likewise.
1264 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1265 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1266 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1267 * i386-nat.h (debug_hw_points): New declaration.
1268 * i386-nat.c (breakpoint.h): Remove include.
1269 (command.h): Likewise.
1270 (target.h): Likewise.
1271 (gdb_assert.h): Likewise.
1272 (debug_hw_points): Made nonstatic.
1273 (debug_printf): Now in i386-dregs.c.
1274 (TARGET_HAS_DR_LEN_8): Likewise.
1275 (DR_CONTROL_SHIFT): Likewise.
1276 (DR_CONTROL_SIZE): Likewise.
1277 (DR_RW_EXECUTE): Likewise.
1278 (DR_RW_WRITE): Likewise.
1279 (DR_RW_READ): Likewise.
1280 (DR_RW_IORW): Likewise.
1281 (DR_LEN_1): Likewise.
1282 (DR_LEN_2): Likewise.
1283 (DR_LEN_4): Likewise.
1284 (DR_LEN_8): Likewise.
1285 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1286 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1287 (DR_ENABLE_SIZE): Likewise.
1288 (DR_LOCAL_SLOWDOWN): Likewise.
1289 (DR_GLOBAL_SLOWDOWN): Likewise.
1290 (DR_CONTROL_RESERVED): Likewise.
1291 (I386_DR_CONTROL_MASK): Likewise.
1292 (I386_DR_VACANT): Likewise.
1293 (I386_DR_LOCAL_ENABLE): Likewise.
1294 (I386_DR_GLOBAL_ENABLE): Likewise.
1295 (I386_DR_DISABLE): Likewise.
1296 (I386_DR_SET_RW_LEN): Likewise.
1297 (I386_DR_GET_RW_LEN): Likewise.
1298 (I386_DR_WATCH_HIT): Likewise.
1299 (i386_wp_op_t): Likewise.
1300 (i386_show_dr): Likewise.
1301 (i386_length_and_rw_bits): Likewise.
1302 (i386_insert_aligned_watchpoint): Likewise.
1303 (i386_remove_aligned_watchpoint): Likewise.
1304 (i386_handle_nonaligned_watchpoint): Likewise.
1305 (i386_update_inferior_debug_regs): Likewise.
1306 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1307 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1308 (i386_region_ok_for_watchpoint):
1309 Use i386_dr_region_ok_for_watchpoint.
1310 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1312 2014-06-19 Gary Benson <gbenson@redhat.com>
1314 * i386-nat.c (i386_insert_hw_breakpoint): Use
1315 i386_insert_watchpoint.
1316 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1318 2014-06-19 Gary Benson <gbenson@redhat.com>
1320 * i386-nat.c (i386_dr_show): Renamed to
1321 i386_show_dr and made static. All uses updated.
1322 (i386_dr_length_and_rw_bits): Renamed to
1323 i386_length_and_rw_bits and made static.
1325 (i386_dr_insert_aligned_watchpoint): Renamed to
1326 i386_insert_aligned_watchpoint and made static.
1328 (i386_dr_remove_aligned_watchpoint): Renamed to
1329 i386_remove_aligned_watchpoint and made static.
1331 (i386_dr_update_inferior_debug_regs): Renamed to
1332 i386_update_inferior_debug_regs and made static.
1334 * nat/i386-dregs.h (i386_dr_show): Removed.
1335 (i386_dr_length_and_rw_bits): Likewise.
1336 (i386_dr_insert_aligned_watchpoint): Likewise.
1337 (i386_dr_remove_aligned_watchpoint): Likewise.
1338 (i386_dr_update_inferior_debug_regs): Likewise.
1340 2014-06-19 Gary Benson <gbenson@redhat.com>
1342 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1343 * configure: Regenerate.
1344 * config.in: Likewise.
1345 * main.c (signal.h): New include.
1346 (setup_alternate_signal_stack): New function.
1347 (captured_main): Call the above.
1348 * cp-support.c (signal.h): New include.
1349 (catch_demangler_crashes): New flag.
1350 (SIGJMP_BUF): New define.
1351 (SIGSETJMP): Likewise.
1352 (SIGLONGJMP): Likewise.
1353 (gdb_demangle_jmp_buf): New static global.
1354 (gdb_demangle_attempt_core_dump): Likewise.
1355 (gdb_demangle_signal_handler): New function.
1356 (gdb_demangle): If catch_demangler_crashes is set, install the
1357 above signal handler before calling bfd_demangle, and restore
1358 the original signal handler afterwards. Display the offending
1359 symbol and call demangler_warning the first time a segmentation
1361 (_initialize_cp_support): New maint set/show command.
1363 2014-06-19 Gary Benson <gbenson@redhat.com>
1365 * utils.h (resource_limit_kind): New enum.
1366 (can_dump_core): New declaration.
1367 (warn_cant_dump_core): Likewise.
1368 (dump_core): Likewise.
1369 * utils.c (dump_core): Made nonstatic. Added new
1370 parameter "limit_kind".
1371 (can_dump_core): Made nonstatic. Moved printing code to...
1372 (warn_cant_dump_core): New function.
1373 (can_dump_core_warn): Likewise.
1374 (internal_vproblem): Replace calls to can_dump_core with
1375 calls to can_dump_core_warn. Supply new argument to each.
1377 2014-06-19 Gary Benson <gbenson@redhat.com>
1379 * utils.h (demangler_vwarning): New declaration.
1380 (demangler_warning): Likewise.
1381 * utils.c (struct internal_problem)
1382 <user_settable_should_quit>: New field.
1383 <user_settable_should_dump_core>: Likewise
1384 (internal_error_problem): Add values for above new fields.
1385 (internal_warning_problem): Likewise.
1386 (demangler_warning_problem): New static global.
1387 (demangler_vwarning): New function.
1388 (demangler_warning): Likewise.
1389 (add_internal_problem_command): Selectively add commands.
1390 (_initialize_utils): New internal problem command.
1391 * maint.c (maintenance_demangler_warning): New function.
1392 (_initialize_maint_cmds): New command.
1394 2014-06-18 Tom Tromey <tromey@redhat.com>
1396 * f-valprint.c (info_common_command_for_block): Update.
1397 * symtab.h (struct general_symbol_info) <common_block>: Now
1400 2014-06-18 Tom Tromey <tromey@redhat.com>
1402 * symtab.h (struct symtab) <blockvector>: Now const.
1403 * ada-lang.c (ada_add_global_exceptions): Update.
1404 * buildsym.c (augment_type_symtab): Update.
1405 * dwarf2read.c (dw2_lookup_symbol): Update.
1406 * jit.c (finalize_symtab): Update.
1407 * jv-lang.c (add_class_symtab_symbol): Update.
1408 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1410 * objfiles.c (objfile_relocate1): Update.
1411 * psymtab.c (lookup_symbol_aux_psymtabs)
1412 (maintenance_check_psymtabs): Update.
1413 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1415 * spu-tdep.c (spu_catch_start): Update.
1416 * symmisc.c (dump_symtab_1): Update.
1417 * symtab.c (lookup_global_symbol_from_objfile)
1418 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1419 (basic_lookup_transparent_type_quick)
1420 (basic_lookup_transparent_type, find_pc_sect_symtab)
1421 (find_pc_sect_line, search_symbols): Update.
1422 * block.c (find_block_in_blockvector): Make "bl" const.
1423 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1425 (blockvector_contains_pc): Make "bv" const.
1426 (block_for_pc_sect): Update.
1427 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1428 (blockvector_contains_pc): Update.
1429 * breakpoint.c (resolve_sal_pc): Update.
1430 * inline-frame.c (block_starting_point_at): Update.
1432 2014-06-18 Tom Tromey <tromey@redhat.com>
1434 * completer.c (complete_line): Make "line_buffer" const.
1435 * completer.h (complete_line): Update.
1437 2014-06-18 Tom Tromey <tromey@redhat.com>
1439 * symtab.c (add_macro_name): Remove unneeded cast.
1441 2014-06-18 Tom Tromey <tromey@redhat.com>
1443 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1444 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1446 2014-06-18 Tom Tromey <tromey@redhat.com>
1448 * probe.c (info_probes_for_ops): Make "arg" const.
1449 * probe.h (info_probes_for_ops): Update.
1451 2014-06-18 Tom Tromey <tromey@redhat.com>
1453 * varobj.c (varobj_create): Update.
1454 * valops.c (value_of_this): Update.
1455 * tracepoint.c (add_local_symbols, scope_info): Update.
1456 * symtab.h (struct general_symbol_info) <block>: Now const.
1457 * symtab.c (skip_prologue_sal)
1458 (default_make_symbol_completion_list_break_on)
1459 (skip_prologue_using_sal): Update.
1460 * stack.h (iterate_over_block_locals)
1461 (iterate_over_block_local_vars): Update.
1462 * stack.c (print_frame_args): Update.
1463 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1465 (get_selected_block): Make return type const.
1466 * python/py-frame.c (frapy_block): Update.
1467 * python/py-block.c (gdbpy_block_for_pc): Update.
1468 * p-exp.y (%union) <bval>: Now const.
1469 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1470 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1471 * m2-exp.y (%union) <bval>: Now const.
1472 * linespec.c (get_current_search_block): Make return type const.
1473 (create_sals_line_offset, find_label_symbols): Update.
1474 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1476 (block_starting_point_at): Make "block" const.
1477 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1478 (check_exception_resume): Update.
1479 * guile/scm-frame.c (gdbscm_frame_block): Update.
1480 * guile/scm-block.c (gdbscm_lookup_block): Update.
1481 * frame.h (get_frame_block): Update.
1482 (get_selected_block): Make return type const.
1483 * frame.c (frame_id_inner): Update.
1484 * f-valprint.c (info_common_command_for_block)
1485 (info_common_command): Update.
1486 * dwarf2loc.c (dwarf2_find_location_expression)
1487 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1488 (locexpr_describe_location_piece): Update.
1489 * c-exp.y (%union) <bval>: Now const.
1490 * breakpoint.c (resolve_sal_pc): Update.
1491 * blockframe.c (get_frame_block):Make return type const.
1492 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1493 (block_innermost_frame): Update.
1494 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1495 (block_for_pc, block_for_pc_sect): Update.
1496 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1498 (block_for_pc_sect, block_for_pc): Make return type const.
1499 * ax-gdb.c (gen_expr): Update.
1500 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1501 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1502 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1503 (ada_read_var_value): Update.
1504 * ada-exp.y (struct name_info) <block>: Now const.
1506 (block_lookup): Constify.
1508 2014-06-18 Gary Benson <gbenson@redhat.com>
1510 * nat/i386-dregs.h: New file.
1511 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1512 * i386-nat.h (i386-dregs.h): New include.
1513 (DR_FIRSTADDR): Now in i386-dregs.h.
1514 (DR_LASTADDR): Likewise.
1515 (DR_NADDR): Likewise.
1516 (DR_STATUS): Likewise.
1517 (DR_CONTROL): Likewise.
1518 (i386_debug_reg_state): Likewise.
1519 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1521 2014-06-18 Don Breazeal <donb@codesourcery.com>
1523 * breakpoint.c (set_longjmp_breakpoint): Call
1524 momentary_breakpoint_from_master with additional argument.
1525 (set_longjmp_breakpoint_for_call_dummy): Call
1526 momentary_breakpoint_from_master with additional argument.
1527 (set_std_terminate_breakpoint): Call
1528 momentary_breakpoint_from_master with additional argument.
1529 (momentary_breakpoint_from_master): Add argument to function
1530 definition and use it to initialize structure member flag.
1531 (clone_momentary_breakpoint): Call
1532 momentary_breakpoint_from_master with additional argument.
1533 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1534 member flags set in momentary_breakpoint_from_master.
1536 2014-06-18 Gary Benson <gbenson@redhat.com>
1538 * i386-nat.c (i386_show_dr): Renamed to
1539 i386_dr_show and made nonstatic. All uses updated.
1540 (i386_length_and_rw_bits): Renamed to
1541 i386_dr_length_and_rw_bits and made nonstatic.
1543 (i386_insert_aligned_watchpoint): Renamed to
1544 i386_dr_insert_aligned_watchpoint and made nonstatic.
1546 (i386_remove_aligned_watchpoint): Renamed to
1547 i386_dr_remove_aligned_watchpoint and made nonstatic.
1549 (i386_update_inferior_debug_regs): Renamed to
1550 i386_dr_update_inferior_debug_regs and made nonstatic.
1553 2014-06-18 Gary Benson <gbenson@redhat.com>
1555 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1556 (i386_dr_low_can_set_control): Likewise.
1557 (i386_dr_low_set_addr): Likewise.
1558 (i386_dr_low_set_control): Likewise.
1559 (i386_dr_low_get_addr): Likewise.
1560 (i386_dr_low_get_status): Likewise.
1561 (i386_dr_low_get_control): Likewise.
1562 (i386_insert_aligned_watchpoint): Use new macros.
1563 (i386_update_inferior_debug_regs): Likewise.
1564 (i386_stopped_data_address): Likewise.
1566 2014-06-18 Gary Benson <gbenson@redhat.com>
1568 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1569 New parameter. All uses updated.
1571 2014-06-18 Gary Benson <gbenson@redhat.com>
1573 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1576 2014-06-18 Gary Benson <gbenson@redhat.com>
1578 * i386-nat.c (debug_printf): New macro.
1579 (i386_get_debug_register_length): Likewise.
1580 (TARGET_HAS_DR_LEN_8): Use above macro.
1581 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1582 and printf_unfiltered. Use phex to format values.
1584 2014-06-18 Gary Benson <gbenson@redhat.com>
1586 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1589 2014-06-18 Gary Benson <gbenson@redhat.com>
1591 * i386-nat.c: Comment changes.
1593 2014-06-18 Gary Benson <gbenson@redhat.com>
1595 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1597 2014-06-18 Gary Benson <gbenson@redhat.com>
1599 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1600 (i386_insert_aligned_watchpoint): Likewise.
1601 (i386_remove_aligned_watchpoint): Likewise.
1602 (i386_handle_nonaligned_watchpoint): Likewise.
1604 2014-06-18 Gary Benson <gbenson@redhat.com>
1606 * i386-nat.c: Whitespace changes.
1608 2014-06-17 Samuel Bronson <naesten@gmail.com>
1610 * MAINTAINERS: Update Roland McGrath's email address.
1611 Thanks to Sergio Durigan Junior for pointing out that he left
1612 Red Hat a while ago, and giving me a current address.
1614 2014-06-17 Tom Tromey <tromey@redhat.com>
1616 * utils.h (savestring): Remove declaration.
1618 2014-06-17 Tom Tromey <tromey@redhat.com>
1620 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1622 2014-06-16 Keith Seitz <keiths@redhat.com>
1625 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1626 to update the varobj if inferior_ptid is null_ptid.
1628 2014-06-16 Tom Tromey <tromey@redhat.com>
1630 * target.h (struct target_ops) <to_info_proc>: Make parameter
1632 (target_info_proc): Update.
1633 * target.c (target_info_proc): Make "args" const.
1634 * procfs.c (procfs_info_proc): Update.
1635 * linux-tdep.c (linux_info_proc): Update.
1636 (linux_core_info_proc_mappings): Make "args" const.
1637 (linux_core_info_proc): Update.
1638 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1639 * gdbarch.c: Rebuild.
1640 * gdbarch.h: Rebuild.
1641 * corelow.c (core_info_proc): Update.
1643 2014-06-16 Tom Tromey <tromey@redhat.com>
1645 * target.h (struct target_ops) <to_disconnect>: Make parameter
1647 (target_disconnect): Update.
1648 * target.c (target_disconnect): Make "args" const.
1649 * target-delegates.c: Rebuild.
1650 * remote.c (remote_disconnect): Update.
1651 * record.h (record_disconnect): Update.
1652 * record.c (record_disconnect): Update.
1653 * inf-child.c (inf_child_disconnect): Update.
1655 2014-06-16 Tom Tromey <tromey@redhat.com>
1657 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1658 * target.c (debug_to_rcmd, default_rcmd): Update.
1659 * target-delegates.c: Rebuild.
1660 * remote.c (remote_rcmd): Update.
1661 * monitor.c (monitor_rcmd): Update.
1663 2014-06-16 Pedro Alves <palves@redhat.com>
1665 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1666 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1667 have OBJF_SHARED set.
1668 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1669 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1670 instead of OBJF_USERLOADED.
1671 * objfiles.h (OBJF_SHARED): Update comment.
1672 (userloaded_objfile_contains_address_p): Rename to ...
1673 (shared_objfile_contains_address_p): ... this, and update
1675 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1677 (remove_symbol_file_command): Skip objfiles that don't have
1680 2014-06-16 Tom Tromey <tromey@redhat.com>
1682 * minsyms.h (prim_record_minimal_symbol)
1683 (prim_record_minimal_symbol_and_info): Update comments.
1685 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1687 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1688 or --without-guile, according to how GDB was built.
1690 2014-06-13 Tom Tromey <tromey@redhat.com>
1692 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1694 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1696 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1698 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1699 help_list.Pass all_commands, not -1, to help_list.
1700 * cli/cli-dump.c (dump_command, append_command)
1701 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1702 (binary_dump_command, binary_append_command): Pass all_commands,
1703 not -1, to help_list.
1704 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1706 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1708 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1710 * top.c (set_history): Pass all_commands, not -1, to help_list.
1711 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1712 all_commands, not -1, to help_list.
1713 * symfile.c (overlay_command): Pass all_commands, not -1, to
1715 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1717 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1719 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1721 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1722 not -1, to help_list.
1723 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1724 not -1, to help_list.
1725 * maint.c (maintenance_command, maintenance_info_command)
1726 (maintenance_print_command, maintenance_set_cmd): Pass
1727 all_commands, not -1, to help_list.
1728 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1730 * language.c (set_check): Pass all_commands, not -1, to help_list.
1731 * infcmd.c (unset_command): Pass all_commands, not -1, to
1733 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1735 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1737 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1739 * breakpoint.c (save_command): Pass all_commands, not -1, to
1741 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1742 all_commands, not -1, to help_list.
1744 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1746 * regcache.c (struct register_to_invalidate): New structure.
1747 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1749 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1751 2014-06-12 Yao Qi <yao@codesourcery.com>
1753 * varobj.c (varobj_get_num_children): Call
1754 varobj_is_dynamic_p.
1755 (varobj_list_children): Likewise.
1756 (varobj_update): Likewise. Update comments.
1758 2014-06-12 Yao Qi <yao@codesourcery.com>
1760 * varobj.c (varobj_pretty_printed_p): Rename to ...
1761 (varobj_is_dynamic_p): ... this. New function.
1762 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1763 (varobj_is_dynamic_p): Declare.
1764 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1765 (mi_print_value_p, varobj_update_one): Likewise.
1767 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1768 Yao Qi <yao@codesourcery.com>
1770 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1771 (varobj_get_iterator): Wrap up code for pretty-printer by
1772 "#if HAVE_PYTHON" and "#endif".
1773 (update_dynamic_varobj_children): Likewise.
1775 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1776 Yao Qi <yao@codesourcery.com>
1778 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1779 gdb_python_initialized is false. Move some code from varobj.c.
1780 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1781 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1782 (struct varobj_item): Moved to varobj-iter.h".
1783 (varobj_clear_saved_item): New function.
1784 (update_dynamic_varobj_children): Move python-related code to
1786 (free_variable): Call varobj_clear_saved_item and
1789 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1790 Yao Qi <yao@codesourcery.com>
1792 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1793 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1794 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1795 (py-varobj.o): New rule.
1796 * python/py-varobj.c: New file.
1797 * python/python-internal.h (py_varobj_get_iterator): Declare.
1798 * varobj-iter.h: New file.
1799 * varobj.c: Include "varobj-iter.h"
1800 (struct varobj) <child_iter>: Change its type from "PyObject *"
1801 to "struct varobj_iter *".
1802 <saved_item>: Likewise.
1803 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1804 [HAVE_PYTHON] (varobj_get_iterator): New function.
1805 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1806 python-specific code to python/py-varobj.c.
1807 (install_visualizer): Call varobj_iter_delete instead of
1809 * varobj.h (varobj_ensure_python_env): Declare.
1811 2014-06-12 Yao Qi <yao@codesourcery.com>
1813 * varobj.c (struct varobj_item): New structure.
1814 (create_child_with_value): Update declaration.
1815 (varobj_add_child): Replace arguments 'name' and 'value' with
1816 'item'. All callers updated.
1817 (install_dynamic_child): Likewise.
1818 (update_dynamic_varobj_children): Likewise.
1819 (varobj_add_child): Likewise.
1820 (create_child_with_value): Likewise.
1822 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1824 * NEWS: Create a new section for the next release branch.
1825 Rename the section of the current branch, now that it has
1828 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1830 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1831 * version.in: Bump version to 7.8.50.DATE-cvs.
1833 2014-06-11 Pedro Alves <palves@redhat.com>
1836 * ser-mingw.c (net_windows_socket_check_pending): New function.
1837 (net_windows_select_thread): Ignore spurious wakeups. Use
1838 net_windows_socket_check_pending.
1839 (net_windows_wait_handle): Check for pending events with
1840 ioctlsocket, through net_windows_socket_check_pending, instead of
1841 checking the socket's event.
1843 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1845 * python/python-internal.h (gdb_PyObject_GetAttrString)
1846 (gdb_PyObject_HasAttrString): New inline function definitions.
1847 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1848 char * of the second argument to PyObject_GetAttrString.
1850 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1852 * serial.c (serial_write): Fix index of character to be printed
1853 in call to serial_logchar when serial debug traces are enabled.
1855 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1857 * gdbtypes (resolve_dynamic_range): Add function description.
1859 2014-06-09 Pedro Alves <palves@redhat.com>
1861 * linux-nat.c (linux_child_follow_fork): Initialize status with
1862 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1863 inner block. Only pass the signal to PTRACE_DETACH if in pass
1866 2014-06-09 Gary Benson <gbenson@redhat.com>
1868 * common/signals.c (gdb_signal_from_host): Reorder to separate
1869 the always-available ANSI-standard signals from the signals that
1871 (do_gdb_signal_to_host): Likewise.
1872 * proc-events.c (signal_table): Likewise.
1874 2014-06-08 Hui Zhu <hui@codesourcery.com>
1876 * common/linux-ptrace.c (linux_disable_event_reporting): New
1878 * common/linux-ptrace.h (linux_disable_event_reporting): New
1880 * linux-nat.c (linux_child_follow_fork): Do a single step before
1883 2014-06-07 Keith Seitz <keiths@redhat.com>
1887 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1888 from symbol_matches_domain in symtab.c. All local callers
1889 of symbol_matches_domain updated.
1890 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1891 search STRUCT_DOMAIN.
1892 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1893 independently. standard_lookup will do that automatically.
1894 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1895 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1896 (cp_lookup_symbol_in_namespace): Likewise.
1897 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1898 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1899 may return a STRUCT_DOMAIN match.
1900 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1901 * cp-support.c: Include language.h.
1902 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1904 * psymtab.c (match_partial_symbol): Compare the requested
1905 domain with the symbol's domain directly.
1906 (lookup_partial_symbol): Likewise.
1907 * symtab.c (lookup_symbol_in_language): Explain when/why
1908 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1909 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1910 appropriate languages.
1911 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1912 and moved to ada-lang.c
1913 (lookup_block_symbol): Explain that this function only returns
1914 symbol matching the requested DOMAIN.
1915 Compare the requested domain with the symbol's domain directly.
1916 (iterate_over_symbols): Compare the requested domain with the
1917 symbol's domain directly.
1918 * symtab.h (symbol_matches_domain): Remove.
1920 2014-06-06 Doug Evans <xdje42@gmail.com>
1922 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1923 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1924 (gdbscm_guile_version_is_at_least): Declare.
1925 (gdbscm_scm_string_to_int): Declare.
1926 * guile/guile.c (gdbscm_guile_major_version): New global.
1927 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1928 (guile_datadir): New static global.
1929 (gdbscm_guile_data_directory): New function.
1930 (initialize_scheme_side): Update.
1931 (misc_guile_functions): Add guile-data-directory.
1932 (initialize_gdb_module): Fetch guile version number.
1933 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1934 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1935 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1936 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1938 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1939 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1940 * guile/scm-value.c (gdbscm_value_to_string): Only call
1941 scm_port_conversion_strategy if Guile version >= 2.0.6.
1943 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1945 * main.c (print_gdb_help): Add -q and --silent.
1947 2014-06-06 Gary Benson <gbenson@redhat.com>
1949 * common/signals.c: Remove preprocessor conditionals for
1950 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1951 SIGSEGV and SIGTERM.
1952 * proc-events.c: Likewise.
1954 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1956 * symfile.c (symfile_free_objfile): Remove restriction to
1958 * symfile-mem.c (symbol_file_add_from_memory): Call
1959 add_target_sections_of_objfile.
1961 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1963 * guile/scm-value.c (gdbscm_history_append_x): Use
1964 'vlscm_get_value_smob_arg_unsafe' instead of
1965 'vlscm_scm_to_value'.
1967 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1970 * utils.c (printchar): Don't escape at all if quoter is NUL.
1971 Update function documentation to clarify effect of parameter
1973 * remote.c (escape_buffer): Pass '\\' as the quoter to
1974 fputstrn_unfiltered.
1975 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1976 generate the output.
1977 (mi_solib_unloaded): Same.
1979 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1981 * development.sh: Delete.
1982 * Makefile.in (config.status): Adjust dependency on development.sh.
1983 * configure.ac: Adjust development.sh source call.
1984 * configure: Regenerate.
1986 2014-06-04 Doug Evans <xdje42@gmail.com>
1988 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1989 is_scheme_bkpt, spec.
1990 (bpscm_make_breakpoint_smob): Initialize new members.
1991 (gdbscm_create_breakpoint_x): Split into two ...
1992 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1993 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1994 (scheme_function breakpoint_functions): Update.
1995 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1996 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1997 register-breakpoint!.
1999 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2002 * mem-break.c (z_type_supported): Return zero if
2003 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2005 2014-06-04 Tom Tromey <tromey@redhat.com>
2007 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2008 value_from_contents_and_address_unresolved.
2009 (ada_template_to_fixed_record_type_1): Likewise.
2010 (ada_which_variant_applies): Likewise.
2011 * value.h (value_from_contents_and_address_unresolved): Declare.
2012 * value.c (value_from_contents_and_address_unresolved): New
2014 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2015 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2016 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2018 2014-06-04 Tom Tromey <tromey@redhat.com>
2020 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2022 2014-06-04 Tom Tromey <tromey@redhat.com>
2024 * procfs.c (procfs_attach): Make "args" const.
2025 * windows-nat.c (windows_attach): Make "args" const.
2026 * nto-procfs.c (procfs_attach): Make "args" const.
2027 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2028 * go32-nat.c (go32_attach): Make "args" const.
2029 * gnu-nat.c (gnu_attach): Make "args" const.
2030 * darwin-nat.c (darwin_attach): Make "args" const.
2031 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2032 * linux-nat.c (linux_nat_attach): Make "args" const.
2033 * remote.c (extended_remote_attach_1, extended_remote_attach):
2035 * target.h (struct target_ops) <to_attach>: Make "args" const.
2036 (find_default_attach): Likewise.
2037 * utils.c (parse_pid_to_attach): Make "args" const.
2038 * utils.h (parse_pid_to_attach): Update.
2040 2014-06-04 Tom Tromey <tromey@redhat.com>
2042 * target-delegates.c: Rebuild.
2043 * target.c (default_thread_address_space): New function.
2044 (target_thread_address_space): Simplify.
2045 * target.h (struct target_ops) <to_thread_address_space>: Add
2046 TARGET_DEFAULT_FUNC.
2048 2014-06-04 Doug Evans <xdje42@gmail.com>
2050 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2052 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2054 * record-btrace.c: Include event-loop.h and inf-loop.h.
2055 (record_btrace_resume_exec_dir)
2056 (record_btrace_async_inferior_event_handler)
2057 (record_btrace_handle_async_inferior_event): New.
2058 (record_btrace_open): Create async event handler.
2059 (record_btrace_close): Delete async event handler.
2060 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2061 Mark async event handler.
2062 (record_btrace_execution_direction): New.
2063 (init_record_btrace_ops): Initialize to_execution_direction.
2065 2014-06-03 Doug Evans <xdje42@gmail.com>
2067 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2068 (gdbscm_make_parameter): Ditto.
2070 2014-06-03 Doug Evans <dje@google.com>
2072 * exec.c (exec_close_1): Call clear_section_table instead of
2073 resize_section_table.
2074 (clear_section_table): New function.
2075 (resize_section_table): Make static. Rename arg num_added to
2077 * exec.h (clear_section_table): Declare.
2078 (resize_section_table): Delete.
2079 * progspace.c (release_program_space): Call clear_section_table
2080 instead of resize_section_table.
2082 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2084 * NEWS (Python Scripting): Add entry about the new xmethods
2087 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2089 * python/py-xmethods.c: New file.
2090 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2091 (objfpy_dealloc): XDECREF on the new xmethods field.
2092 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2094 (objfpy_get_xmethods): New function.
2095 (objfile_getset): New entry 'xmethods'.
2096 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2097 (pspy_dealloc): XDECREF on the new xmethods field.
2098 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2100 (pspy_get_xmethods): New function.
2101 (pspace_getset): New entry 'xmethods'.
2102 * python/python-internal.h: Add declarations for new functions.
2103 * python/python.c (_initialize_python): Invoke
2104 gdbpy_initialize_xmethods.
2105 * python/lib/gdb/__init__.py (xmethods): New
2107 * python/lib/gdb/xmethod.py: New file.
2108 * python/lib/gdb/command/xmethods.py: New file.
2110 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2112 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2113 best match method returned by find_overload_match is an xmethod.
2114 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2115 the best matching operator returned by find_overload_match is an
2117 * valops.c: #include "extension.h".
2118 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2119 Return void. The list of matching source methods is returned in
2120 "fn_list" and a vector of matching debug method workers is
2121 returned in "xm_worker_vec". Update all callers.
2122 (value_find_oload_method_list): Likewise.
2123 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2124 non-NULL, then the index of the best matching method in this
2125 vector is returned. Update all callers.
2126 (find_overload_match): Include xmethods while performing overload
2129 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2131 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2132 * extension-priv.h (struct extension_language_ops): Add the
2134 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2135 get_matching_xmethod_workers, get_xmethod_argtypes,
2136 invoke_xmethod, free_xmethod_worker,
2137 free_xmethod_worker_vec): New functions.
2138 * extension.h: #include "common/vec.h".
2139 New function declarations.
2140 (struct xmethod_worker): New struct.
2141 (VEC (xmethod_worker_ptr)): New vector type.
2142 (xmethod_worker_ptr): New typedef.
2143 (xmethod_worker_vec): Likewise.
2144 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2146 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2147 (struct builtin_type): New field "xmethod".
2148 * valarith.c (value_ptradd): Assert that the value argument is not
2150 * valops.c (value_must_coerce_to_target): Return 0 for
2151 lval_xcallable values.
2152 * value.c (struct value): New field XM_WORKER in the field
2154 (value_address, value_raw_address): Return 0 for lval_xcallable
2156 (set_value_address): Assert that the value is not an
2158 (value_free): Free the associated xmethod worker when freeing
2159 lval_xcallable values.
2160 (set_value_component_location): Assert that the WHOLE value is not
2162 (value_of_xmethod, call_xmethod): New functions.
2163 * value.h: Declare "struct xmethod_worker".
2164 Declare new functions value_of_xmethod, call_xmethod.
2166 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2167 Pedro Alves <palves@redhat.com>
2169 PR breakpoints/17000
2170 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2171 New function, extracted from software_breakpoint_inserted_here_p.
2172 (software_breakpoint_inserted_here_p): Replace factored out code
2173 by call to find_non_raw_software_breakpoint_inserted_here.
2174 (bp_target_info_copy_insertion_state): New function.
2175 (bkpt_insert_location): Handle the case of a single-step
2176 breakpoint already inserted at the same address.
2177 (bkpt_remove_location): Handle the case of a single-step
2178 breakpoint still inserted at the same address.
2179 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2180 breakpoint already inserted at the same address.
2181 (deprecated_remove_raw_breakpoint): Handle the case of a
2182 non-raw breakpoint still inserted at the same address.
2183 (find_single_step_breakpoint): New function, extracted from
2184 single_step_breakpoint_inserted_here_p.
2185 (find_single_step_breakpoint): New function,
2186 factored out from single_step_breakpoint_inserted_here_p.
2187 (single_step_breakpoint_inserted_here_p): Reimplement.
2189 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2191 Pushed by Joel Brobecker <brobecker@adacore.com>
2192 * source.c (show_substitute_path_command): Fix display of matching
2195 2014-06-03 Gary Benson <gbenson@redhat.com>
2197 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2199 2014-06-02 Doug Evans <xdje42@gmail.com>
2201 Add parameter support for Guile.
2202 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2203 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2204 (scm-param.o): New rule.
2205 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2206 (gdbscm_misc_error): Declare.
2207 (gdbscm_canonicalize_command_name): Declare.
2208 (gdbscm_scm_to_host_string): Declare.
2209 (gdbscm_scm_from_host_string): Declare.
2210 (gdbscm_initialize_parameters): Declare.
2211 * guile/guile.c (initialize_gdb_module): Call
2212 gdbscm_initialize_parameters.
2213 * guile/lib/gdb.scm: Export parameter symbols.
2214 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2215 cmdscm_canonicalize_name and made public. All callers updated.
2216 * guile/scm-exception.c (gdbscm_misc_error): New function.
2217 * guile/scm-param.c: New file.
2218 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2219 (gdbscm_scm_to_host_string): New function.
2220 (gdbscm_scm_from_host_string): New function.
2221 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2223 2014-06-02 Doug Evans <xdje42@gmail.com>
2225 Add command support for Guile.
2226 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2227 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2228 (scm-cmd.o): New rule.
2229 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2230 (gdbscm_user_error_p): Declare.
2231 (gdbscm_parse_command_name): Declare.
2232 (gdbscm_valid_command_class_p): Declare.
2233 (gdbscm_initialize_commands): Declare.
2234 * guile/guile.c (initialize_gdb_module): Call
2235 gdbscm_initialize_commands.
2236 * guile/lib/gdb.scm: Export command symbols.
2237 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2238 (throw-user-error): New function.
2239 * guile/scm-cmd.c: New file.
2240 * guile/scm-exception.c (user_error_symbol): New static global.
2241 (gdbscm_user_error_p): New function.
2242 (gdbscm_initialize_exceptions): Set user_error_symbol.
2243 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2245 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2247 * top.c (command_loop): Handle comments here...
2248 (command_line_input): ... not here.
2250 2014-06-02 Doug Evans <xdje42@gmail.com>
2252 Add progspace support for Guile.
2253 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2254 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2255 (scm-progspace.o): New rule.
2256 * guile/guile-internal.h (pspace_smob): New typedef.
2257 (psscm_pspace_smob_pretty_printers): Declare.
2258 (psscm_pspace_smob_from_pspace): Declare.
2259 (psscm_scm_from_pspace): Declare.
2260 * guile/guile.c (initialize_gdb_module): Call
2261 gdbscm_initialize_pspaces.
2262 * guile/lib/gdb.scm: Export progspace symbols.
2263 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2265 (append-pretty-printer!): Ditto.
2266 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2268 * guile/scm-progspace.c: New file.
2270 2014-06-03 Alan Modra <amodra@gmail.com>
2272 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2273 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2275 2014-06-02 Doug Evans <dje@google.com>
2277 Add support for skeletonless type units.
2278 * dwarf2read.c (struct dwarf2_per_objfile): New member
2279 n_allocated_type_units.
2280 (struct dwarf2_per_objfile) <tu_stats>: New member
2281 nr_all_type_units_reallocs.
2282 (create_signatured_type_table_from_index): Initialize
2283 n_allocated_type_units
2284 (create_all_type_units): Ditto.
2285 (add_type_unit): Move up in file. New arg slot.
2286 All callers updated. Increase space for all_type_units more
2288 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2289 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2290 (lookup_dwp_signatured_type): Ditto.
2291 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2292 All callers updated.
2293 (build_type_psymtabs_1): Leave type_unit_groups as
2294 NULL if no TUs present.
2295 (print_tu_stats): New function.
2296 (process_skeletonless_type_unit): New function.
2297 (process_dwo_file_for_skeletonless_type_units): New
2299 (process_skeletonless_type_units): New function.
2300 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2301 Call print tu_stats if debugging enabled.
2303 2014-06-02 Pedro Alves <palves@redhat.com>
2305 * breakpoint.c (build_target_command_list): Don't build a command
2306 list if we have any duplicate location that isn't a dprintf.
2308 2014-06-02 Pedro Alves <palves@redhat.com>
2310 * breakpoint.c (dprintf_breakpoint_hit): New function.
2311 (initialize_breakpoint_ops): Install it as dprintf's
2312 breakpoint_hit method.
2314 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2316 * source.c (substitute_path_rule_matches): Simplify using
2317 filename_ncmp instead of FILENAME_CMP.
2319 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2321 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2323 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2325 * configure.ac: When Guile is available, check for the
2326 availability of 'scm_new_smob'.
2327 * configure, config.h.in: Regenerate.
2328 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2331 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2333 * frame.c (struct frame_info): Add stop_string field.
2334 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2335 (get_prev_frame_always): Old content moved into
2336 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2337 TRY_CATCH, handle MEMORY_ERROR exceptions.
2338 (frame_stop_reason_string): New function definition.
2339 * frame.h (unwind_stop_reason_to_string): Extend comment to
2340 mention frame_stop_reason_string.
2341 (frame_stop_reason_string): New function declaration.
2342 * stack.c (frame_info): Switch to frame_stop_reason_string.
2343 (backtrace_command_1): Switch to frame_stop_reason_string.
2344 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2345 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2346 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2348 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2350 * frame.c (frame_stop_reason_string): Rename to ...
2351 (unwind_stop_reason_to_string): this.
2352 * frame.h (frame_stop_reason_string): Rename to ...
2353 (unwind_stop_reason_to_string): this.
2354 * stack.c (frame_info): Update call to frame_stop_reason_string.
2355 (backtrace_command_1): Likewise.
2356 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2357 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2359 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2361 * frame.c (remove_prev_frame): New function.
2362 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2365 2014-05-29 Pedro Alves <palves@redhat.com>
2367 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2368 and make it const. When a single-step decays to a continue,
2369 clear 'step', not 'hw_step'. Pass whether the caller wanted
2370 to step to user_visible_resume_ptid, not what we ask the
2373 2014-05-29 Pedro Alves <palves@redhat.com>
2375 * infrun.c (process_event_stop_test, handle_step_into_function)
2376 (handle_step_into_function_backward): Adjust.
2377 Don't set the even thread's stop_step and call stop_waiting before
2378 calling end_stepping_range. Instead do that ...
2379 (end_stepping_range): ... here. Take an ecs pointer parameter.
2381 2014-05-29 Pedro Alves <palves@redhat.com>
2383 * infrun.c (stop_stepping): Rename to ...
2384 (stop_waiting): ... this.
2385 (proceed): Update comment.
2386 (process_event_stop_test, handle_inferior_event)
2387 (handle_signal_stop, handle_step_into_function)
2388 (handle_step_into_function_backward): Update.
2390 2014-05-29 Pedro Alves <palves@redhat.com>
2392 * infcall.c (run_inferior_call): Don't check whether the current
2393 thread is running after the proceed call.
2395 2014-05-29 Pedro Alves <palves@redhat.com>
2396 Tom Tromey <tromey@redhat.com>
2398 * NEWS: Mention "maint set target-async", "set mi-async", and that
2399 background execution commands are now always available.
2400 * target.h (target_async_permitted): Update comment.
2401 * target.c (target_async_permitted, target_async_permitted_1):
2403 (set_target_async_command): Rename to ...
2404 (maint_set_target_async_command): ... this.
2405 (show_target_async_command): Rename to ...
2406 (maint_show_target_async_command): ... this.
2407 (_initialize_target): Adjust.
2408 * infcmd.c (prepare_execution_command): Make extern.
2409 * inferior.h (prepare_execution_command): Declare.
2410 * infrun.c (set_observer_mode): Leave target async alone.
2411 * mi/mi-interp.c (mi_interpreter_init): Install
2412 mi_on_sync_execution_done as sync_execution_done observer.
2413 (mi_on_sync_execution_done): New function.
2414 (mi_execute_command_input_handler): Don't print the prompt if we
2415 just started a synchronous command with an async target.
2416 (mi_on_resume): Check sync_execution before printing prompt.
2417 * mi/mi-main.h (mi_async_p): Declare.
2418 * mi/mi-main.c: Include gdbcmd.h.
2419 (mi_async_p): New function.
2420 (mi_async, mi_async_1): New globals.
2421 (set_mi_async_command, show_mi_async_command, mi_async): New
2423 (exec_continue): Call prepare_execution_command.
2424 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2425 (mi_execute_async_cli_command): Use mi_async_p.
2426 (_initialize_mi_main): Install "set mi-async". Make
2427 "target-async" a deprecated alias.
2429 2014-05-29 Pedro Alves <palves@redhat.com>
2431 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2432 (_initialize_cli_interp): Adjust.
2433 * event-loop.c: Include "observer.h".
2434 (start_event_loop): Notify 'command_error' observers instead of
2435 calling display_gdb_prompt. Remove FIXME comment.
2436 * event-top.c (display_gdb_prompt): Remove call into the
2438 * inf-loop.c: Include "observer.h".
2439 (inferior_event_handler): Notify 'command_error' observers instead
2440 of calling display_gdb_prompt.
2441 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2442 observers instead of calling display_gdb_prompt.
2443 * interps.c (interp_set): Don't call display_gdb_prompt.
2444 (current_interp_display_prompt_p): Delete.
2445 * interps.h (interp_prompt_p): Delete declaration.
2446 (interp_prompt_p_ftype): Delete.
2447 (struct interp_procs) <prompt_proc_p>: Delete field.
2448 (current_interp_display_prompt_p): Delete declaration.
2449 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2450 (_initialize_mi_interp): Adjust.
2451 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2452 'command_error' observers.
2453 (tui_on_sync_execution_done, tui_on_command_error): New
2455 (tui_display_prompt_p): Delete.
2456 (_initialize_tui_interp): Adjust.
2458 2014-05-29 Pedro Alves <palves@redhat.com>
2461 * cli/cli-interp.c: Include infrun.h and observer.h.
2462 (cli_uiout, cli_interp): New globals.
2463 (cli_on_signal_received, cli_on_end_stepping_range)
2464 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2466 (cli_interpreter_init): Install them as 'end_stepping_range',
2467 'signal_received' 'signal_exited', 'exited' and 'no_history'
2469 (_initialize_cli_interp): Remove cli_interp local.
2470 * infrun.c (handle_inferior_event): Call the several stop reason
2471 observers instead of printing the stop reason directly.
2472 (end_stepping_range): New function.
2473 (print_end_stepping_range_reason, print_signal_exited_reason)
2474 (print_exited_reason, print_signal_received_reason)
2475 (print_no_history_reason): Make static, and add an uiout
2476 parameter. Print to that instead of to CURRENT_UIOUT.
2477 * infrun.h (print_end_stepping_range_reason)
2478 (print_signal_exited_reason, print_exited_reason)
2479 (print_signal_received_reason print_no_history_reason): New
2481 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2483 <cli_uiout>: New field.
2484 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2485 uiout for CLI output. Install 'signal_received',
2486 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2488 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2489 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2490 (mi_on_no_history): New functions.
2491 (ui_out_free_cleanup): Delete function.
2492 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2493 instead use the one already stored in the MI interpreter data.
2494 (mi_ui_out): Adjust.
2495 * tui/tui-interp.c: Include infrun.h and observer.h.
2496 (tui_interp): New global.
2497 (tui_on_signal_received, tui_on_end_stepping_range)
2498 (tui_on_signal_exited, tui_on_exited)
2499 (tui_on_no_history): New functions.
2500 (tui_init): Install them as 'end_stepping_range',
2501 'signal_received' 'signal_exited', 'exited' and 'no_history'
2503 (_initialize_tui_interp): Delete tui_interp local.
2505 2014-05-29 Pedro Alves <palves@redhat.com>
2508 * linux-nat.c (linux_nat_resume_callback): Rename the second
2509 parameter to 'except'. Skip LP if it points to EXCEPT.
2510 (linux_nat_resume): Don't mark the event lwp as not stopped
2511 before resuming sibling lwps. Instead ask
2512 linux_nat_resume_callback to skip the event lwp. Mark it as not
2513 stopped after actually resuming it.
2514 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2516 (wait_lwp): Mark the lwp as stopped here.
2517 (stop_wait_callback): Mark the lwp as not stopped right after
2518 resuming it. Don't mark lwps as stopped here.
2519 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2520 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2522 2014-05-29 Pedro Alves <palves@redhat.com>
2525 * infrun.c (resume): Determine how much to resume depending on
2526 whether the caller wanted a step, not whether we can hardware step
2527 the target. Mark all threads that we intend to run as running,
2528 unless we're calling an inferior function.
2529 (normal_stop): If the thread is running an infcall, don't finish
2531 * target.c (target_resume): Don't mark threads as running here.
2533 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2535 * serial.c (_initialize_serial): Remove support for
2536 the "set remotebaud" and "show remotebaud" commands.
2537 * NEWS: Add entry documenting the removal of that command.
2539 2014-05-28 Yao Qi <yao@codesourcery.com>
2541 * charset.c: Fix typo in comments.
2543 2014-05-27 Gary Benson <gbenson@redhat.com>
2545 * utils.c (internal_vproblem): Prompt for a bug report.
2547 2014-05-26 Andy Wingo <wingo@igalia.com>
2549 * guile/scm-arch.c (arscm_mark_arch_smob):
2550 * guile/scm-block.c (bkscm_mark_block_smob)
2551 (bkscm_mark_block_syms_progress_smob):
2552 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2553 * guile/scm-exception.c (exscm_mark_exception_smob):
2554 * guile/scm-frame.c (frscm_mark_frame_smob):
2555 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2556 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2557 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2558 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2559 (ppscm_mark_pretty_printer_worker_smob):
2560 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2561 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2562 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2563 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2565 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2568 2014-05-26 Andy Wingo <wingo@igalia.com>
2569 Doug Evans <xdje42@gmail.com>
2571 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2572 empty_base_class. All uses updated.
2573 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2574 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2576 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2577 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2578 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2579 (gdbscm_gsmob_has_property_p, add_property_name)
2580 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2581 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2582 (gdb-object-has-property?, gdb-object-properties): Remove.
2583 (gdb-object-kind): Renamed from gsmob-kind.
2585 2014-05-26 Andy Wingo <wingo@igalia.com>
2587 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2588 * configure: Regenerate.
2590 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2592 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2594 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2596 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2597 (replay_memory_access_read_only, replay_memory_access_read_write)
2598 (replay_memory_access_types, replay_memory_access)
2599 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2600 (cmd_set_record_btrace, cmd_show_record_btrace)
2601 (cmd_show_replay_memory_access): New.
2602 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2603 (record_btrace_remove_breakpoint): Replace
2604 record_btrace_allow_memory_access with replay_memory_access.
2605 (_initialize_record_btrace): Add commands.
2606 * NEWS: Announce it.
2608 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2610 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2612 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2614 * MAINTAINERS (Write After Approval): Move self back from
2617 2014-05-22 Pedro Alves <palves@redhat.com>
2619 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2620 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2621 (disable_randomization, enum exec_direction_kind)
2622 (execution_direction, stop_registers, start_remote)
2623 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2624 (wait_for_inferior, normal_stop, get_last_target_status)
2625 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2626 (insert_step_resume_breakpoint_at_sal)
2627 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2628 (set_step_info, print_stop_event, signal_stop_state)
2629 (signal_print_state, signal_pass_state, signal_stop_update)
2630 (signal_print_update, signal_pass_update)
2631 (update_signals_program_target, clear_exit_convenience_vars)
2632 (displaced_step_dump_bytes, update_observer_mode)
2633 (signal_catch_update, gdb_signal_from_command): Move
2635 * infrun.h: ... to this new file.
2636 * amd64-tdep.c: Include infrun.h.
2637 * annotate.c: Include infrun.h.
2638 * arch-utils.c: Include infrun.h.
2639 * arm-linux-tdep.c: Include infrun.h.
2640 * arm-tdep.c: Include infrun.h.
2641 * break-catch-sig.c: Include infrun.h.
2642 * breakpoint.c: Include infrun.h.
2643 * common/agent.c: Include infrun.h instead of inferior.h.
2644 * corelow.c: Include infrun.h.
2645 * event-top.c: Include infrun.h.
2646 * go32-nat.c: Include infrun.h.
2647 * i386-tdep.c: Include infrun.h.
2648 * inf-loop.c: Include infrun.h.
2649 * infcall.c: Include infrun.h.
2650 * infcmd.c: Include infrun.h.
2651 * infrun.c: Include infrun.h.
2652 * linux-fork.c: Include infrun.h.
2653 * linux-nat.c: Include infrun.h.
2654 * linux-thread-db.c: Include infrun.h.
2655 * monitor.c: Include infrun.h.
2656 * nto-tdep.c: Include infrun.h.
2657 * procfs.c: Include infrun.h.
2658 * record-btrace.c: Include infrun.h.
2659 * record-full.c: Include infrun.h.
2660 * remote-m32r-sdi.c: Include infrun.h.
2661 * remote-mips.c: Include infrun.h.
2662 * remote-notif.c: Include infrun.h.
2663 * remote-sim.c: Include infrun.h.
2664 * remote.c: Include infrun.h.
2665 * reverse.c: Include infrun.h.
2666 * rs6000-tdep.c: Include infrun.h.
2667 * s390-linux-tdep.c: Include infrun.h.
2668 * solib-irix.c: Include infrun.h.
2669 * solib-osf.c: Include infrun.h.
2670 * solib-svr4.c: Include infrun.h.
2671 * target.c: Include infrun.h.
2672 * top.c: Include infrun.h.
2673 * windows-nat.c: Include infrun.h.
2674 * mi/mi-interp.c: Include infrun.h.
2675 * mi/mi-main.c: Include infrun.h.
2676 * python/py-threadevent.c: Include infrun.h.
2678 2014-05-22 Pedro Alves <palves@redhat.com>
2680 * infrun.c (handle_inferior_event): Store the exit code for
2681 --return-child-result here, instead of ...
2682 (print_exited_reason): ... here.
2684 2014-05-21 Pedro Alves <palves@redhat.com>
2687 * gdbthread.h (struct thread_control_state): New field
2689 * infrun.c (follow_fork): Copy the new thread control field to the
2691 (clear_proceed_status_thread): Clear the new thread control field.
2692 (proceed): Set the new thread control field.
2693 * interps.h (command_interp): Declare.
2694 * interps.c (command_interpreter): New global.
2695 (command_interp): New function.
2696 (interp_exec): Set `command_interpreter' while here.
2697 * cli-out.c (cli_uiout_dtor): New function.
2698 (cli_ui_out_impl): Install it.
2699 * mi/mi-interp.c: Include cli-out.h.
2700 (mi_cmd_interpreter_exec): Add comment.
2701 (restore_current_uiout_cleanup): New function.
2702 (ui_out_free_cleanup): New function.
2703 (mi_on_normal_stop): If finishing an execution command started by
2704 a CLI command, or any kind of breakpoint-like event triggered,
2705 print the stop event to the output (CLI) stream.
2706 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2708 2014-05-21 Pedro Alves <palves@redhat.com>
2710 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2711 current source line having changed.
2712 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2713 * infrun.c (normal_stop): Adjust call to
2714 set_current_sal_from_frame.
2715 * source.c (clear_lines_listed_range): New function.
2716 (set_current_source_symtab_and_line, identify_source_line): Clear
2717 the lines listed range.
2718 (line_info): Handle the first "info line" after the current source
2719 line having changed.
2720 * stack.c (print_stack_frame): Remove center handling.
2721 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2724 2014-05-21 Pedro Alves <palves@redhat.com>
2726 * inf-child.c (inf_child_mourn_inferior): New function.
2727 * inf-child.h (inf_child_mourn_inferior): New declaration.
2728 * darwin-nat.c (darwin_mourn_inferior): Use
2729 inf_child_mourn_inferior.
2730 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2731 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2732 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2733 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2734 * windows-nat.c (windows_mourn_inferior): Likewise.
2736 2014-05-21 Doug Evans <xdje42@gmail.com>
2738 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2740 2014-05-21 Doug Evans <xdje42@gmail.com>
2742 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2743 (gdbscm_out_of_range_error): Ditto.
2744 (gdbscm_memory_error): Ditto.
2745 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2746 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2747 (gdbscm_out_of_range_error): Update.
2748 (gdbscm_memory_error): Update.
2749 (gdbscm_scm_to_target_string_unsafe): Delete.
2751 2014-05-21 Pedro Alves <palves@redhat.com>
2753 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2755 (inf_child_open_target): New function.
2756 (inf_child_open): Use inf_child_open_target to push the target
2757 instead of erroring out.
2758 (inf_child_disconnect, inf_child_close)
2759 (inf_child_maybe_unpush_target): New functions.
2760 (inf_child_target): Install inf_child_disconnect and
2761 inf_child_close. Store a pointer to the returned object.
2762 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2764 * target.c (auto_connect_native_target): New global.
2765 (show_default_run_target): New function.
2766 (find_default_run_target): Return NULL if automatically connecting
2767 to the native target is disabled.
2768 (_initialize_target): Install set/show auto-connect-native-target.
2769 * NEWS: Mention "set auto-connect-native-target", and "target
2771 * linux-nat.c (super_close): New global.
2772 (linux_nat_close): Call super_close.
2773 (linux_nat_add_target): Store a pointer to the base class's
2775 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2776 inf_child_maybe_unpush.
2777 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2779 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2780 the inferior. Use inf_child_maybe_unpush_target.
2781 (inf_ttrace_attach): Don't push the target if it is already
2783 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2784 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2785 after mourning the inferior. Use inf_child_maybe_unpush_target.
2786 (darwin_attach_pid): Don't push the target if it is already
2788 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2789 mourning the inferior. Use inf_child_maybe_unpush_target.
2790 (gnu_detach): Use inf_child_maybe_unpush_target.
2791 * go32-nat.c (go32_create_inferior): Don't push the target if it
2793 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2794 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2795 (procfs_open): Rename to ...
2796 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2797 comments. Can target_preopen before changing node. Call
2798 inf_child_open_target to push the target explicitly.
2799 (procfs_attach): Don't push the target if it is already pushed.
2800 (procfs_detach): Use inf_child_maybe_unpush_target.
2801 (procfs_create_inferior): Don't push the target if it is already
2803 (nto_native_ops): New global.
2804 (procfs_open): Reimplement.
2805 (procfs_native_open): New function.
2806 (init_procfs_targets): Install procfs_native_open as to_open of
2807 "target native". Store a pointer to the "native" target in
2809 * procfs.c (procfs_attach): Don't push the target if it is already
2811 (procfs_detach): Use inf_child_maybe_unpush_target.
2812 (procfs_mourn_inferior): Only unpush the target after mourning the
2813 inferior. Use inf_child_maybe_unpush_target.
2814 (procfs_init_inferior): Don't push the target if it is already
2816 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2817 if it is already pushed.
2819 2014-05-21 Pedro Alves <palves@redhat.com>
2821 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2822 and "procfs" targets are now called "native" instead.
2824 2014-05-21 Pedro Alves <palves@redhat.com>
2826 * go32-nat.c (go32_open): Delete.
2827 (go32_target): Don't override the to_open method.
2829 2014-05-21 Pedro Alves <palves@redhat.com>
2831 * nto-procfs.c (procfs_can_run): New function.
2832 (nto_procfs_ops): New global.
2833 (init_procfs_targets): New, based on procfs_target. Install
2834 "target native" in addition to "target procfs".
2835 (_initialize_procfs): Call init_procfs_targets instead of adding
2838 2014-05-21 Pedro Alves <palves@redhat.com>
2840 * windows-nat.c (windows_target): Don't override to_shortname,
2841 to_longname or to_doc.
2843 2014-05-21 Pedro Alves <palves@redhat.com>
2845 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2848 2014-05-21 Pedro Alves <palves@redhat.com>
2850 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2851 to_shortname, to_longname or to_doc.
2853 2014-05-21 Pedro Alves <palves@redhat.com>
2855 * go32-nat.c (go32_target): Don't override to_shortname,
2856 to_longname or to_doc.
2858 2014-05-21 Pedro Alves <palves@redhat.com>
2860 * inf-child.c (inf_child_open): Remove mention of "child".
2861 (inf_child_target): Rename target to "native" instead of "child".
2863 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2865 * Makefile.in (SFILES): Delete "regset.c".
2866 (COMMON_OBS): Delete "regset.o".
2868 * regset.h (regset_alloc): Delete prototype.
2870 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2872 * sparc-linux-tdep.c (sparc32_linux_gregset)
2873 (sparc32_linux_fpregset): New static regset structures.
2874 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2875 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2877 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2878 (sparc64_linux_fpregset): New static regset structures.
2879 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2880 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2881 New static regset structures.
2882 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2883 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2884 New static regset structures.
2885 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2886 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2887 New static regset structures.
2888 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2889 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2890 New static regset structures.
2891 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2893 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2895 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2896 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2897 register maps ("regmaps") from "*regset" to "*regmap". Do this
2898 for all regmap types and variables.
2899 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2900 (sparc32_linux_supply_core_gregset)
2901 (sparc32_linux_collect_core_gregset)
2902 (sparc32_linux_supply_core_fpregset)
2903 (sparc32_linux_collect_core_fpregset): Likewise.
2904 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2905 (sparc_gregmap, sparc_fpregmap): ... these.
2906 (sparc_supply_gregset, sparc_collect_gregset)
2907 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2908 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2909 (_initialize_sparc_nat): Rename regmaps.
2910 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2911 (sparc_gregmap, sparc_fpregmap): ... these.
2912 (sparc_supply_gregset, sparc_collect_gregset)
2913 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2914 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2916 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2917 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2919 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2921 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2922 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2923 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2925 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2926 (sparc32_bsd_fpregset): Rename to...
2927 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2928 (sparc32_bsd_fpregmap): ... these.
2929 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2930 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2931 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2932 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2933 (struct sparc_gregmap, struct sparc_fpregmap)
2934 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2935 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2936 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2937 (sparc32_supply_regset, sparc32_collect_gregset)
2938 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2940 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2941 (sparc64_linux_ptrace_gregmap): ... this.
2942 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2943 (_initialize_sparc64_linux_nat): Rename regmaps.
2944 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2945 (sparc64_linux_core_gregmap): ... this.
2946 (sparc64_linux_supply_core_gregset)
2947 (sparc64_linux_collect_core_gregset)
2948 (sparc64_linux_supply_core_fpregset)
2949 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2950 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2951 (sparc64_sol2_fpregset): Rename to...
2952 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2953 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2954 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2956 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2957 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2958 (sparc64_bsd_fpregset): Rename to...
2959 (struct sparc_gregmap, sparc64_sol2_gregmap)
2960 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2961 (sparc64_bsd_fpregmap): ... these.
2962 (sparc64_supply_gregset, sparc64_collect_gregset)
2963 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2965 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2966 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2967 (sparc64fbsd_gregmap): ... this.
2968 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2969 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2971 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2972 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2973 (sparc64nbsd_collect_fpregset): Likewise.
2974 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2975 (sparc64nbsd_gregmap): ... this.
2976 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2978 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2979 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2980 (sparc64obsd_gregmap): ... this.
2981 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2983 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2984 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2985 (sparc32nbsd_gregmap): ... this.
2986 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2989 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2991 * score-tdep.c (score7_linux_gregset): New static regset
2993 (score7_linux_regset_from_core_section): Remove dynamic regset
2995 (score_gdbarch_init): Drop allocation of tdep structure.
2996 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2998 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3000 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3002 (am33_regset_from_core_section): Remove dynamic regset
3005 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3007 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3008 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3010 (mips_linux_regset_from_core_section): Remove dynamic regset
3012 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3013 'gregset64', 'fpregset', and 'fpregset64'.
3014 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3015 deleted tdep fields.
3017 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3019 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3021 (amd64_regset_from_core_section): Remove dynamic regset
3023 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3025 (amd64obsd_regset_from_core_section): Remove dynamic regset
3027 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3029 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3030 x86-common regset supply function.
3031 * i386-tdep.c (i386_collect_gregset): Make static.
3032 (i386_gregset): New global regset structure.
3033 (i386_fpregset, i386_xstateregset): New static regset structures.
3034 (i386_regset_from_core_section): Remove dynamic regset
3036 (i386_gdbarch_init): Remove initialization of tdep fields
3037 'gregset', 'fpregset', and 'xstateregset'.
3038 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3039 'fpregset', and 'xstateregset'.
3040 (i386_collect_gregset): Remove prototype.
3041 (i386_gregset): New declaration.
3042 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3044 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3047 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3049 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3050 (arm_linux_vfpregset): New static regset structures.
3051 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3053 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3054 and 'vfpregset' fields.
3056 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3058 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3059 (aarch64_linux_fpregset): New static regset structures.
3060 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3061 of regset structures.
3062 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3065 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3067 * regset.h (struct regset): Remove gdbarch field.
3068 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3069 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3070 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3072 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3073 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3074 (ppc32_linux_vsxregset): Likewise.
3075 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3076 via the regcache instead of the regset.
3077 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3078 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3079 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3080 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3083 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3085 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3086 Constify structures.
3087 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3088 (alphanbsd_aout_gregset): Likewise.
3089 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3090 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3092 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3093 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3095 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3096 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3097 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3098 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3099 * m88k-tdep.c (m88k_gregset): Likewise.
3100 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3101 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3102 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3103 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3104 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3105 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3106 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3107 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3108 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3110 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3111 * sh-tdep.h (sh_corefile_gregset): Likewise.
3112 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3113 * vax-tdep.c (vax_gregset): Likewise.
3115 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3117 Fix TLS access for -static -pthread.
3118 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3119 (try_thread_db_load_1): Initialize it.
3120 (thread_db_get_thread_local_address): Call it if LM is zero.
3121 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3122 * target.h (struct target_ops) (to_get_thread_local_address): Add
3123 load_module_addr comment.
3125 2014-05-21 Pedro Alves <palves@redhat.com>
3127 * dcache.c (dcache_read_memory_partial): If reading the cache line
3128 fails, fallback to reading just the memory the caller wanted.
3130 2014-05-20 Doug Evans <dje@google.com>
3132 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3133 instead of get_current_arch.
3135 2014-05-20 Pedro Alves <palves@redhat.com>
3137 * NEWS: Mention that compare-sections now works with all targets.
3139 * remote.c (PACKET_qCRC): New enum value.
3140 (remote_verify_memory): Don't send qCRC if the target has no
3141 execution. Use packet_support/packet_ok. If the target doesn't
3142 support the qCRC packet, fallback to a deep memory copy.
3143 (compare_sections_command): Say "target image" instead of "remote
3145 (_initialize_remote): Add PACKET_qCRC to the list of config
3146 packets that have no associated command. Extend comment.
3147 * target.c (simple_verify_memory, default_verify_memory): New
3149 * target.h (struct target_ops) <to_verify_memory>: Default to
3150 default_verify_memory.
3151 (simple_verify_memory): New declaration.
3152 * target-delegates.c: Regenerate.
3154 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3156 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3158 2014-05-20 Hui Zhu <hui@codesourcery.com>
3159 Yao Qi <yao@codesourcery.com>
3162 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3163 and change address of sp and pc.
3165 2014-05-19 Tom Tromey <tromey@redhat.com>
3167 * gdbtypes.c (rank_function): Use XNEWVEC.
3168 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3170 2014-05-19 Doug Evans <dje@google.com>
3172 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3173 build_type_unit_groups and moved closer to only caller. Remove
3174 arguments. All references updated. Remove outdated .gdb_index
3176 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3177 build_type_psymtabs_1.
3179 2014-05-19 Doug Evans <dje@google.com>
3181 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3182 n_type_unit_groups, all_type_unit_groups. All uses removed.
3183 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3184 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3185 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3186 (add_type_unit_group_to_table): Delete.
3188 2014-05-19 Doug Evans <dje@google.com>
3190 * eval.c (evaluate_subexp_standard): Add some comments.
3192 2014-05-17 Doug Evans <xdje42@gmail.com>
3194 * progspace.c (remove_program_space): Delete, unused.
3195 * progspace.h (remove_program_space): Ditto.
3197 2014-05-17 Doug Evans <xdje42@gmail.com>
3199 * inferior.c (prune_inferiors): Fix comment.
3200 (remove_inferior_command): Call prune_program_spaces.
3202 2014-05-16 Doug Evans <dje@google.com>
3204 New command line option -D.
3206 * main.c (set_gdb_data_directory): New function.
3207 (captured_main): Recognize -D. Flag error for --data-directory "".
3208 Call set_gdb_data_directory.
3209 (print_gdb_help): Print --data-directory, -D.
3210 * main.h (set_gdb_data_directory): Declare.
3211 * top.c (staged_gdb_datadir): New static global.
3212 (set_gdb_datadir): Call set_gdb_data_directory
3213 (show_gdb_datadir): New function.
3214 (init_main): Update init of data-directory parameter.
3216 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3218 Import the "dirfd" gnulib module.
3219 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3220 * gnulib/aclocal.m4: Update.
3221 * gnulib/config.in: Update.
3222 * gnulib/configure: Update.
3223 * gnulib/import/Makefile.am: Update.
3224 * gnulib/import/Makefile.in: Update.
3225 * gnulib/import/dirfd.c: New.
3226 * gnulib/import/m4/dirfd.m4: New.
3227 * gnulib/import/m4/gnulib-cache.m4: Update.
3228 * gnulib/import/m4/gnulib-comp.m4: Update.
3230 2014-05-16 Pierre Muller <muller@sourceware.org>
3231 Yao Qi <yao@codesourcery.com>
3233 * valprint.c (print_wchar): Move the code on checking whether
3234 W is a printable wide char to the default branch of switch
3235 statement below. Call wchar_printable instead of gdb_iswprint.
3237 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3239 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3240 ldr.w and ldrd instructions.
3242 2014-05-15 Doug Evans <dje@google.com>
3244 * dwarf2read.c (read_structure_type): Delete outdated comments.
3246 2014-05-14 Tom Tromey <tromey@redhat.com>
3248 * macrocmd.c (print_macro_definition): Reindent.
3250 2014-05-13 Doug Evans <xdje42@gmail.com>
3252 * python/py-cmd.c (cmdpy_completer): Add comment.
3253 (completers): Make const.
3255 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3257 * infrun.c (resume): Remove should_resume (unused). Move up
3258 declaration of resume_ptid.
3260 2014-05-13 Tom Tromey <tromey@redhat.com>
3262 * language.h (unop_type_check): Remove.
3263 (binop_type_check): Don't declare.
3265 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3267 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3268 call to regcache_raw_collect.
3270 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3272 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3273 mi_console->quote as the quoting character.
3275 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3277 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3279 2014-04-29 Tom Tromey <tromey@redhat.com>
3281 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3282 "show debug varobj".
3284 2014-05-07 Kyle McMartin <kyle@redhat.com>
3286 Pushed by Joel Brobecker <brobecker@adacore.com>.
3287 * aarch64-tdep.c (aarch64_software_single_step): New function.
3288 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3289 with aarch64_software_single_step.
3291 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3295 2014-05-05 Keith Seitz <keiths@redhat.com>
3297 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3298 variable or history value is successfully parsed.
3300 2014-05-05 Yao Qi <yao@codesourcery.com>
3301 Pedro Alves <palves@redhat.com>
3303 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3304 address of blocks that intersects the requested range. Trim
3305 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3307 * ctf.c (ctf_xfer_partial): Likewise.
3309 2014-05-05 Yao Qi <yao@codesourcery.com>
3311 * printcmd.c (display_command): Remove the check to
3312 target_has_execution.
3314 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3316 * ppcobsd-nat.c: Include "obsd-nat.h".
3317 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3319 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3321 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3323 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3324 and 16-bit signed and unsigned arguments. Update comment.
3325 (stap_parse_probe_arguments): Extend code to handle such
3326 arguments. Use warning instead of complaint to notify about
3327 unrecognized bitness.
3329 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3331 PR breakpoints/16889
3332 * stap-probe.c (stap_parse_probe_arguments): Simplify
3333 check for non-prefixed probes (i.e., probes whose
3334 arguments do not start with "N@"). Always set the
3335 argument type to a sane value.
3337 2014-05-01 David Taylor <dtaylor@emc.com>
3339 * remote.c (compare_sections_command): Add -r option to compare
3340 all loadable read-only sections.
3342 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3344 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3345 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3347 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3348 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3349 Remove unused CORE_ADDR argument. Update all callers.
3351 2014-04-29 Pedro Alves <palves@redhat.com>
3353 * remote.c (struct packet_config) <detect>: Extend comment.
3354 (add_packet_config_cmd): Don't set the config's detect or support
3356 (init_all_packet_configs): Also initialize the config's 'detect'
3358 (reset_all_packet_configs_support): New function.
3359 (remote_open_1): Call reset_all_packet_configs_support instead of
3360 init_all_packet_configs.
3361 (_initialize_remote): Initialize all packet configs. Assert that
3362 all packets have an associated command, except a few known
3365 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3367 * dwarf2read.c (read_subrange_type): Handle dynamic
3368 DW_AT_lower_bound attributes.
3370 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3372 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3373 dynamic bounds before computing its upper bound.
3374 (ada_discrete_type_low_bound): Same as above with the lower bound.
3376 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3378 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3379 range types. Adjust the array handling implementation to
3380 take advantage of this change.
3381 (resolve_dynamic_range): New function, mostly extracted from
3382 resolve_dynamic_bounds.
3383 (resolve_dynamic_array): New function, mostly extracted from
3384 resolve_dynamic_bounds.
3385 (resolve_dynamic_bounds): Delete.
3386 (resolve_dynamic_type): Reimplement. Add handling of
3387 TYPE_CODE_RANGE types.
3389 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3391 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3392 handling of parallel ___XA types.
3394 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3396 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3397 unnecessary second call to static_unwrap_type.
3399 2014-04-27 Hui Zhu <hui@codesourcery.com>
3401 * stack.c (print_frame_info): Call do_gdb_disassembly with
3402 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3404 2014-04-26 Doug Evans <xdje42@gmail.com>
3406 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3408 2014-04-25 Pedro Alves <palves@redhat.com>
3411 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3412 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3413 and newline from built string.
3414 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3415 (linux_ptrace_attach_fail_reason): ... this.
3416 * linux-nat.c (linux_nat_attach): Adjust to use
3417 linux_ptrace_attach_fail_reason.
3419 2014-04-25 Pedro Alves <palves@redhat.com>
3421 * remote.c (struct remote_state): Remove multi_process_aware,
3422 non_stop_aware, cond_tracepoints, cond_breakpoints,
3423 breakpoint_commands, fast_tracepoints, static_tracepoints,
3424 install_in_trace, disconnected_tracing,
3425 enable_disable_tracepoints, string_tracing, and
3426 augmented_libraries_svr4_read fields.
3427 (remote_multi_process_p): Move further below in the file.
3428 (struct packet_config): Add comments.
3429 (update_packet_config): Delete function.
3430 (show_packet_config_cmd): Use packet_config_support.
3431 (add_packet_config_cmd): Use NULL as set callback.
3432 (packet_ok): "set remote foo-packet"-style commands no longer
3433 change config->supported -- adjust.
3434 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3435 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3436 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3437 (PACKET_QNonStop, PACKET_multiprocess_feature)
3438 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3439 (PACKET_DisconnectedTracing_feature)
3440 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3441 (set_remote_protocol_packet_cmd): Delete function.
3442 (packet_config_support, packet_support): New functions.
3443 (set_remote_protocol_Z_packet_cmd): Don't call
3444 update_packet_config.
3445 (remote_query_attached, remote_pass_signals)
3446 (remote_program_signals, remote_threads_info)
3447 (remote_threads_extra_info, remote_start_remote): Use
3449 (remote_start_remote): Use packet_config_support and
3451 (init_all_packet_configs): Set all packets to unknown support,
3452 instead of calling update_packet_config.
3453 (remote_check_symbols): Use packet_support.
3454 (remote_supported_packet): Unconditionally set the packet config's
3456 (remote_multi_process_feature, remote_non_stop_feature)
3457 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3458 (remote_breakpoint_commands_feature)
3459 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3460 (remote_install_in_trace_feature)
3461 (remote_disconnected_tracing_feature)
3462 (remote_enable_disable_tracepoint_feature)
3463 (remote_string_tracing_feature)
3464 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3465 (remote_protocol_features): Adjust to use remote_supported_packet
3466 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3467 "ConditionalTracepoints", "ConditionalBreakpoints",
3468 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3469 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3470 "EnableDisableTracepoints", and "tracenz".
3471 (remote_query_supported): Use packet_support.
3472 (remote_open_1): Adjust.
3473 (extended_remote_attach_1): Use packet_support. Switch on the
3474 result of packet_ok instead of checking whether the packet ended
3476 (remote_vcont_resume): Use packet_support.
3477 (remote_resume, remote_stop_ns, fetch_register_using_p)
3478 (remote_prepare_to_store, store_register_using_P)
3479 (check_binary_download, remote_write_bytes): Use packet_support.
3480 (remote_vkill): Use packet_support. Switch on the result of
3481 packet_ok instead of checking whether the packet ended up
3483 (extended_remote_supports_disable_randomization): Use
3485 (extended_remote_run): Switch on the result of packet_ok instead
3486 of checking whether the packet ended up disabled.
3487 (remote_insert_breakpoint, remote_remove_breakpoint)
3488 (remote_insert_watchpoint, remote_remove_watchpoint)
3489 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3491 (remote_search_memory): Use packet_config_support.
3492 (remote_get_thread_local_address, remote_get_tib_address)
3493 (remote_hostio_send_command, remote_can_execute_reverse): Use
3495 (remote_supports_cond_tracepoints)
3496 (remote_supports_cond_breakpoints)
3497 (remote_supports_fast_tracepoints)
3498 (remote_supports_static_tracepoints)
3499 (remote_supports_install_in_trace)
3500 (remote_supports_enable_disable_tracepoint)
3501 (remote_supports_string_tracing)
3502 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3503 the packet config says the feature is enabled or disabled.
3504 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3505 (remote_get_trace_status): Use packet_support.
3506 (remote_set_disconnected_tracing): Adjust to check whether the
3507 feature is enabled with packet_support.
3508 (remote_set_trace_buffer_size, remote_use_agent)
3509 (remote_can_use_agent, remote_supports_btrace): Use
3511 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3512 Use packet_config_support.
3513 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3514 the packet config says the feature is enabled or disabled.
3515 (set_range_stepping): Use packet_support.
3517 2014-04-25 Tom Tromey <tromey@redhat.com>
3519 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3522 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3524 * NEWS: Mention support for C99 variable length arrays.
3526 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3528 * ada-lang.c (standard_exc): Expand introductory comment.
3530 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3531 Walfred Tedeschi <walfred.tedeschi@intel.com>
3533 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3535 (amd64_linux_read_description): Add code to handle AVX512 xstate
3536 mask and return respective tdesc.
3537 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3538 and features/i386/x32-avx512-linux.c.
3539 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3540 (amd64_linux_core_read_description): Add code to handle AVX512
3541 xstate mask and return respective tdesc.
3542 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3543 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3545 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3546 (tdesc_amd64_avx512_linux): New prototype.
3547 (tdesc_x32_avx512_linux): Likewise.
3548 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3549 features/i386/x32-avx512.c.
3550 (amd64_ymm_avx512_names): New register names for pseudo
3552 (amd64_ymmh_avx512_names): New register names for raw registers
3554 (amd64_k_names): New register names for K registers.
3555 (amd64_zmmh_names): New register names for ZMM raw registers.
3556 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3557 (amd64_xmm_avx512_names): New register names for XMM16-31
3559 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3561 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3562 if feature is present.
3563 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3564 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3565 (AMD64_NUM_REGS): Adjust to new number of registers.
3566 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3567 registers supplied via XSTATE by AVX512 registers.
3568 (i386_linux_read_description): Add case for AVX512.
3569 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3570 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3571 (i386_linux_core_read_description): Add case for AVX512.
3572 (i386_linux_init_abi): Install supported register note section
3574 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3576 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3577 registers to be number of zmm7h + 1.
3578 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3579 * i386-tdep.c: Include features/i386/i386-avx512.c.
3580 (i386_zmm_names): Add ZMM pseudo register names array.
3581 (i386_zmmh_names): Add ZMM raw register names array.
3582 (i386_k_names): Add K raw register names array.
3583 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3584 registers. AVX512 has 16 more ZMM registers than there are YMM
3586 (i386_zmmh_regnum_p): Add function to look up register number of
3588 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3589 (i386_k_regnum_p): Likewise for K raw registers.
3590 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3591 registers added by AVX512.
3592 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3593 registers added by AVX512.
3594 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3596 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3597 (i386_pseudo_register_name): Add ZMM pseudo registers.
3598 (i386_zmm_type): Construct and return vector registers type for ZMM
3600 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3601 ZMM0-31 pseudo registers and K registers.
3602 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3603 and YMM16-31 registers from register cache.
3604 (i386_pseudo_register_write): Add code to write K, ZMM and
3606 (i386_register_reggroup_p): Add code to include/exclude AVX512
3607 registers in/from respective register groups.
3608 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3609 registers if feature is present in xcr0.
3610 (i386_gdbarch_init): Add code to initialize AVX512 feature
3611 variables in tdep structure, wire in pseudo registers and call
3612 initialize_tdesc_i386_avx512.
3613 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3615 (i386_regnum): Add AVX512 registers.
3616 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3617 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3618 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3619 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3621 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3622 (i386_ymm_avx512_regnum_p): Likewise.
3623 (i386_k_regnum_p): Likewise.
3624 (i386_zmm_regnum_p): Likewise.
3625 (i386_zmmh_regnum_p): Likewise.
3626 * i387-tdep.c : Update year in copyright notice.
3627 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3629 (XSAVE_YMM_AVX512_ADDR): New macro.
3630 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3632 (XSAVE_XMM_AVX512_ADDR): New macro.
3633 (xsave_avx512_k_offset): New table for K register offsets in
3635 (XSAVE_AVX512_K_ADDR): New macro.
3636 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3638 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3639 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3641 (i387_collect_xsave): Add code to collect AVX512 registers from
3643 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3644 of XMM16-31 registers.
3645 (I387_NUM_K_REGS): New define for number of K registers.
3646 (I387_K0_REGNUM): New define for K0 register number.
3647 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3648 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3649 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3651 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3652 (I387_XMM16_REGNUM): New define for XMM16 register number.
3653 (I387_YMM0_REGNUM): New define for YMM0 register number.
3654 (I387_KEND_REGNUM): New define for last K register number.
3655 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3656 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3658 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3660 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3662 * features/Makefile: Add AVX512 related files.
3663 * features/i386/32bit-avx512.xml: New file.
3664 * features/i386/64bit-avx512.xml: Likewise.
3665 * features/i386/amd64-avx512-linux.c: Likewise.
3666 * features/i386/amd64-avx512-linux.xml: Likewise.
3667 * features/i386/amd64-avx512.c: Likewise.
3668 * features/i386/amd64-avx512.xml: Likewise.
3669 * features/i386/i386-avx512-linux.c: Likewise.
3670 * features/i386/i386-avx512-linux.xml: Likewise.
3671 * features/i386/i386-avx512.c: Likewise.
3672 * features/i386/i386-avx512.xml: Likewise.
3673 * features/i386/x32-avx512-linux.c: Likewise.
3674 * features/i386/x32-avx512-linux.xml: Likewise.
3675 * features/i386/x32-avx512.c: Likewise.
3676 * features/i386/x32-avx512.xml: Likewise.
3677 * regformats/i386/amd64-avx512-linux.dat: New file.
3678 * regformats/i386/amd64-avx512.dat: Likewise.
3679 * regformats/i386/i386-avx512-linux.dat: Likewise.
3680 * regformats/i386/i386-avx512.dat: Likewise.
3681 * regformats/i386/x32-avx512-linux.dat: Likewise.
3682 * regformats/i386/x32-avx512.dat: Likewise.
3683 * NEWS: Add note about new support for AVX512.
3686 2014-04-23 Pedro Alves <palves@redhat.com>
3688 * breakpoint.c (insert_bp_location): Tolerate errors if the
3689 breakpoint is set in a user-loaded objfile.
3690 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3691 location is marked shlib_disabled. If the breakpoint is set in a
3692 user-loaded objfile is a GDB-side memory breakpoint, validate it
3693 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3694 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3696 * mem-break.c (memory_validate_breakpoint): New function.
3697 * objfiles.c (userloaded_objfile_contains_address_p): New
3699 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3700 * target.h (memory_validate_breakpoint): New declaration.
3702 2014-04-23 Pedro Alves <palves@redhat.com>
3704 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3705 the breakpoint is set in a shared library, only suppress
3706 errors for software breakpoints, not hardware breakpoints.
3708 2014-04-22 Pedro Alves <palves@redhat.com>
3710 * infrun.c (schedlock_applies): New function, factored out from
3711 find_thread_needs_step_over.
3712 (find_thread_needs_step_over): Use it.
3713 (switch_back_to_stepped_thread): Always clear trap_expected if the
3714 step over is finished. Return early if scheduler locking applies.
3715 Look for the stepping thread and a potential step-over thread with
3717 (currently_stepping_or_nexting_callback): Delete.
3719 2014-04-22 Nick Clifton <nickc@redhat.com>
3721 * NEWS: Mention that ARM sim now supports tracing.
3723 2014-04-22 Yao Qi <yao@codesourcery.com>
3725 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3727 * tracefile.c (tracefile_fetch_registers): ... it. New
3729 * tracefile.h (tracefile_fetch_registers): Declare.
3730 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3731 tracefile_fetch_registers.
3733 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3736 * windows-nat.c (thread_rec): Don't display a warning when
3737 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3738 fails for any reason, set th->suspended to -1, so that we don't
3739 try to resume such a thread. Also, don't return NULL in these
3740 cases, to avoid completely ruin the session due to "PC register is
3741 not available" error.
3742 (do_windows_fetch_inferior_registers): Check errors in
3743 GetThreadContext call.
3744 (windows_continue): Accept an additional argument KILLED; if not
3745 zero, ignore errors in the SetThreadContext call, since the
3746 inferior was killed and is shutting down.
3747 (windows_resume, get_windows_debug_event)
3748 (windows_create_inferior, windows_mourn_inferior)
3749 (windows_kill_inferior): All callers of windows_continue changed
3750 to adjust to its new calling sequence.
3752 2014-04-19 Yao Qi <yao@codesourcery.com>
3754 * ctf.c (ctf_open): Call post_create_inferior.
3756 2014-04-19 Yao Qi <yao@codesourcery.com>
3758 * ctf.c (handle_id): New static variable.
3759 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3760 value. Get the declaration of event "register" and get length
3761 of field "contents".
3763 2014-04-19 Yao Qi <yao@codesourcery.com>
3765 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3767 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3769 * valops.c (oload_method_static): Remove unnecessary argument
3770 METHOD. Update all callers.
3772 2014-04-18 Pedro alves <palves@redhat.com>
3773 Tom Tromey <tromey@redhat.com>
3776 * frame.c (get_prev_frame_1): Rename to ...
3777 (get_prev_frame_always): ... this, and make extern. Adjust.
3778 (skip_artificial_frames): Use get_prev_frame_always.
3779 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3780 (get_frame_unwind_stop_reason): Adjust to rename.
3781 * frame.h (get_prev_frame_always): Declare.
3782 * inline-frame.c: Include frame.h.
3783 (inline_frame_this_id): Use get_prev_frame_always.
3785 2014-04-18 Tristan Gingold <gingold@adacore.com>
3787 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3788 code by using bfd_mach_o_get_base_address.
3790 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3792 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3793 (spu_ax_pseudo_register_collect): New function.
3794 (spu_ax_pseudo_register_push_stack): Likewise.
3795 (spu_dwarf_reg_to_regnum): Likewise.
3796 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3798 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3800 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3801 Replace FRAME argument with FRAME_ID.
3802 * gdbarch.c, gdbarch.h: Regenerate.
3803 * findvar.c (default_value_from_register): Add GDBARCH argument;
3804 replace FRAME by FRAME_ID. No longer call get_frame_id.
3805 (value_from_register): Update call to gdbarch_value_from_register.
3806 * value.h (default_value_from_register): Update prototype.
3807 * s390-linux-tdep.c (s390_value_from_register): Update interface
3808 and call to default_value_from_register.
3809 * spu-tdep.c (spu_value_from_register): Likewise.
3811 * findvar.c (address_from_register): Remove TYPE argument.
3812 Do not call value_from_register; use gdbarch_value_from_register
3813 with null_frame_id instead.
3814 * value.h (address_from_register): Update prototype.
3815 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3816 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3817 address_from_register interface change.
3819 2014-04-17 Yao Qi <yao@codesourcery.com>
3821 * gdbtypes.h: Update comments to link to types and macros'
3824 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3826 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3828 2014-04-16 Keith Seitz <keiths@redhat.com>
3831 * dwarf2read.c (skip_one_die): Check that all relative-offset
3832 sibling DIEs fall within range of the current reader's buffer.
3833 (read_partial_die): Likewise.
3835 2014-04-16 Keith Seitz <keiths@redhat.com>
3838 * cp-namespace.c (lookup_symbol_file): If the type name of
3839 `this' is NULL, return immediately.
3841 2014-04-14 Keith Seitz <keiths@redhat.com>
3844 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3845 from symbol_matches_domain in symtab.c. All local callers
3846 of symbol_matches_domain updated.
3847 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3848 search STRUCT_DOMAIN.
3849 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3850 independently. standard_lookup will do that automatically.
3851 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3852 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3853 (cp_lookup_symbol_in_namespace): Likewise.
3854 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3855 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3856 may return a STRUCT_DOMAIN match.
3857 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3858 * cp-support.c: Include language.h.
3859 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3861 * psymtab.c (match_partial_symbol): Compare the requested
3862 domain with the symbol's domain directly.
3863 (lookup_partial_symbol): Likewise.
3864 * symtab.c (lookup_symbol_in_language): Explain when/why
3865 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3866 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3867 appropriate languages.
3868 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3869 and moved to ada-lang.c
3870 (lookup_block_symbol): Explain that this function only returns
3871 symbol matching the requested DOMAIN.
3872 Compare the requested domain with the symbol's domain directly.
3873 (iterate_over_symbols): Compare the requested domain with the
3874 symbol's domain directly.
3875 * symtab.h (symbol_matches_domain): Remove.
3877 2014-04-14 Tom Tromey <tromey@redhat.com>
3880 * c-exp.y (type_aggregate_p): New function.
3881 (qualified_name, classify_inner_name): Use it.
3882 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3883 and TYPE_TARGET_TYPE of an enum type.
3884 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3886 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3887 handle TYPE_DECLARED_CLASS.
3888 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3890 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3891 * valops.c (enum_constant_from_type): New function.
3892 (value_aggregate_elt): Use it.
3893 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3896 2014-04-14 Tom Tromey <tromey@redhat.com>
3898 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3899 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3901 * value.h (value_aggregate_elt): Update.
3903 2014-04-14 Tom Tromey <tromey@redhat.com>
3905 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3907 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3909 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3910 (evaluate_subexp_standard): Pass noside argument.
3911 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3912 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3913 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3914 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3915 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3917 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3919 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3920 points to a constant blob.
3922 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3924 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3925 property and store it as the high bound and flag the range accordingly.
3926 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3927 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3928 * gdbtypes.h (enum range_flags): New enum.
3929 (struct range_bounds): Add flags member.
3931 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3933 * c-typeprint.c (c_type_print_varspec_suffix): Added
3934 check for not yet resolved high bound. If unresolved, print
3935 "variable length" string to the console instead of random
3938 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3940 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3942 (ada_template_to_fixed_record_type_1): Likewise.
3943 (ada_to_fixed_type_1): Likewise.
3944 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3945 (cp_print_value): Likewise.
3946 * d-valprint.c (dynamic_array_type): Likewise.
3947 * findvar.c (address_of_variable): Likewise.
3948 * jv-valprint.c (java_value_print): Likewise.
3949 * valops.c (value_ind): Likewise.
3950 * value.c (coerce_ref): Likewise.
3952 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3954 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3955 value and retrieve the dynamic type size.
3957 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3959 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3960 passed to sizeof is dynamic evaluate the argument to compute the length.
3962 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3963 Joel Brobecker <brobecker@adacore.com>
3965 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3966 (dwarf2_evaluate_property): New function.
3967 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3968 * dwarf2read.c (attr_to_dynamic_prop): New function.
3969 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3971 * gdbtypes.c: Include dwarf2loc.h.
3972 (is_dynamic_type): New function.
3973 (resolve_dynamic_type): New function.
3974 (resolve_dynamic_bounds): New function.
3975 (get_type_length): New function.
3976 (check_typedef): Use get_type_length to compute type length.
3977 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3978 (TYPE_LOW_BOUND_KIND): New macro.
3979 (is_dynamic_type): New function prototype.
3980 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3981 to resolve dynamic properties of the type. Update comment.
3982 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3984 2014-04-14 Richard Henderson <rth@redhat.com>
3986 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3988 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3989 Doug Evans <xdje42@gmail.com>
3991 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3992 dereference TYPE_CODE_REF values.
3994 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3996 Revert the following changes due to regressions:
3998 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3999 (dwarf2_evaluate_property): New function.
4000 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4001 * dwarf2read.c (attr_to_dynamic_prop): New function.
4002 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4004 * gdbtypes.c: Include dwarf2loc.h.
4005 (is_dynamic_type): New function.
4006 (resolve_dynamic_type): New function.
4007 (resolve_dynamic_bounds): New function.
4008 (get_type_length): New function.
4009 (check_typedef): Use get_type_length to compute type length.
4010 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4011 (TYPE_LOW_BOUND_KIND): New macro.
4012 (is_dynamic_type): New function prototype.
4013 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4014 to resolve dynamic properties of the type. Update comment.
4015 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4017 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4018 passed to sizeof is dynamic evaluate the argument to compute the length.
4020 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4021 value and retrieve the dynamic type size.
4023 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4024 (ada_template_to_fixed_record_type_1): Likewise.
4025 (ada_to_fixed_type_1): Likewise.
4026 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4027 (cp_print_value): Likewise.
4028 * d-valprint.c (dynamic_array_type): Likewise.
4029 * eval.c (evaluate_subexp_with_coercion): Likewise.
4030 * findvar.c (address_of_variable): Likewise.
4031 * jv-valprint.c (java_value_print): Likewise.
4032 * valops.c (value_ind): Likewise.
4033 * value.c (coerce_ref): Likewise.
4035 * c-typeprint.c (c_type_print_varspec_suffix): Added
4036 check for not yet resolved high bound. If unresolved, print
4037 "variable length" string to the console instead of random
4040 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4041 property and store it as the high bound and flag the range accordingly.
4042 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4043 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4044 * gdbtypes.h (enum range_flags): New enum.
4045 (struct range_bounds): Add flags member.
4047 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4048 points to a constant blob.
4050 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4051 (evaluate_subexp_standard): Pass noside argument.
4052 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4053 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4054 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4055 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4056 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4058 2014-04-11 Keith Seitz <keiths@redhat.com>
4061 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4062 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4065 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4067 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4068 (evaluate_subexp_standard): Pass noside argument.
4069 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4070 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4071 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4072 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4073 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4075 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4077 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4078 points to a constant blob.
4080 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4082 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4083 property and store it as the high bound and flag the range accordingly.
4084 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4085 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4086 * gdbtypes.h (enum range_flags): New enum.
4087 (struct range_bounds): Add flags member.
4089 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4091 * c-typeprint.c (c_type_print_varspec_suffix): Added
4092 check for not yet resolved high bound. If unresolved, print
4093 "variable length" string to the console instead of random
4096 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4098 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4099 (ada_template_to_fixed_record_type_1): Likewise.
4100 (ada_to_fixed_type_1): Likewise.
4101 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4102 (cp_print_value): Likewise.
4103 * d-valprint.c (dynamic_array_type): Likewise.
4104 * eval.c (evaluate_subexp_with_coercion): Likewise.
4105 * findvar.c (address_of_variable): Likewise.
4106 * jv-valprint.c (java_value_print): Likewise.
4107 * valops.c (value_ind): Likewise.
4108 * value.c (coerce_ref): Likewise.
4110 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4112 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4113 value and retrieve the dynamic type size.
4115 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4117 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4118 passed to sizeof is dynamic evaluate the argument to compute the length.
4120 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4122 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4123 (dwarf2_evaluate_property): New function.
4124 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4125 * dwarf2read.c (attr_to_dynamic_prop): New function.
4126 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4128 * gdbtypes.c: Include dwarf2loc.h.
4129 (is_dynamic_type): New function.
4130 (resolve_dynamic_type): New function.
4131 (resolve_dynamic_bounds): New function.
4132 (get_type_length): New function.
4133 (check_typedef): Use get_type_length to compute type length.
4134 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4135 (TYPE_LOW_BOUND_KIND): New macro.
4136 (is_dynamic_type): New function prototype.
4137 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4138 to resolve dynamic properties of the type. Update comment.
4139 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4141 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4143 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4144 declaring high/low bounds and change uses accordingly. Call
4145 create_range_type instead of create_static_range_type.
4146 * gdbtypes.c (create_range_type): New function.
4147 (create_range_type): Convert bounds into struct bound_prop and pass
4148 them to create_range_type.
4149 * gdbtypes.h (struct bound_prop): New struct.
4150 (create_range_type): New function prototype.
4151 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4152 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4153 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4155 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4157 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4159 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4160 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4161 * ada-lang.c: All uses of create_range_type updated.
4162 * coffread.c: All uses of create_range_type updated.
4163 * dwarf2read.c: All uses of create_range_type updated.
4164 * f-exp.y: All uses of create_range_type updated.
4165 * m2-valprint.c: All uses of create_range_type updated.
4166 * mdebugread.c: All uses of create_range_type updated.
4167 * stabsread.c: All uses of create_range_type updated.
4168 * valops.c: All uses of create_range_type updated.
4169 * valprint.c: All uses of create_range_type updated.
4171 2014-04-10 Pedro Alves <palves@redhat.com>
4173 * breakpoint.c (single_step_breakpoints)
4174 (single_step_gdbarch): Move up in the file.
4175 (one_breakpoint_xfer_memory): New function, factored out from ...
4176 (breakpoint_xfer_memory): ... here. Also process single-step
4179 2014-04-09 Tristan Gingold <gingold@adacore.com>
4181 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4183 (darwin_decode_exception_message): Free port only after use.
4185 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4187 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4188 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4189 when setting the size of call_length.
4191 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4193 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4194 dereference TYPE_CODE_REF values.
4196 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4198 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4199 end of warning message.
4201 2014-04-03 Doug Evans <dje@google.com>
4203 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4204 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4206 2014-04-02 Alan Modra <amodra@gmail.com>
4208 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4209 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4210 (struct symbol_file_add_from_memory_args): Add size field.
4211 (find_vdso_size): New function.
4212 (add_vsyscall_page): Attempt to find vdso size.
4214 2014-04-01 Doug Evans <dje@google.com>
4216 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4218 2014-04-01 Tristan Gingold <gingold@adacore.com>
4220 * darwin-nat.c (darwin_encode_reply): Add prototype.
4221 (darwin_decode_exception_message): Reply to unknown inferiors.
4222 (darwin_decode_message): Handle message by id. Ignore message
4223 to unknown inferior.
4224 (darwin_wait): Discard unknown messages, add debug trace.
4226 2014-03-31 Doug Evans <dje@google.com>
4228 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4231 2014-03-31 Doug Evans <dje@google.com>
4233 New option "set print symbol-loading".
4235 * solib.c (solib_read_symbols): Only print symbol loading messages
4237 (solib_add): If symbol loading is in "brief" mode, notify user
4238 symbols are being loaded.
4239 (reload_shared_libraries_1): Ditto.
4240 * symfile.c (print_symbol_loading_off): New static global.
4241 (print_symbol_loading_brief): New static global.
4242 (print_symbol_loading_full): New static global.
4243 (print_symbol_loading_enums): New static global.
4244 (print_symbol_loading): New static global.
4245 (print_symbol_loading_p): New function.
4246 (symbol_file_add_with_addrs): Only print symbol loading messages
4248 (_initialize_symfile): Register "print symbol-loading" set/show
4250 * symfile.h (print_symbol_loading_p): Declare.
4252 2014-03-30 Doug Evans <xdje42@gmail.com>
4254 * infrun.c (set_last_target_status): New function.
4255 (handle_inferior_event): Call it.
4257 2014-03-30 Doug Evans <xdje42@gmail.com>
4259 * inferior.h (enum stop_kind): Improve comment.
4261 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4263 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4264 a reference, strip the reference layer before calling
4265 the lang_ops value_has_mutated callback.
4267 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4269 Remove some globals from our parser.
4270 * language.c (unk_lang_parser): Add "struct parser_state"
4272 * language.h (struct language_defn) <la_parser>: Likewise.
4273 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4274 (initialize_expout): Add "struct parser_state" argument.
4275 Rewrite function to use the parser state.
4276 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4277 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4278 write_exp_elt_longcst, write_exp_elt_dblcst,
4279 write_exp_elt_decfloatcst, write_exp_elt_type,
4280 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4281 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4282 write_dollar_variable): Likewise.
4283 (parse_exp_in_context_1): Use parser state.
4284 (insert_type_address_space): Add "struct parser_state" argument.
4286 (increase_expout_size): New function.
4287 * parser-defs.h: Forward declare "struct language_defn" and
4288 "struct parser_state".
4289 (expout, expout_size, expout_ptr): Remove extern declarations.
4290 (parse_gdbarch, parse_language): Rewrite macro declarations to
4291 accept the parser state.
4292 (struct parser_state): New struct.
4293 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4294 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4295 write_exp_elt_decfloatcst, write_exp_elt_type,
4296 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4297 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4298 write_exp_msymbol, write_dollar_variable,
4299 mark_struct_expression, insert_type_address_space): Add "struct
4300 parser_state" argument.
4301 (increase_expout_size): New function.
4302 * utils.c (do_clear_parser_state): New function.
4303 (make_cleanup_clear_parser_state): Likewise.
4304 * utils.h (make_cleanup_clear_parser_state): New function
4306 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4307 Update calls to write_exp* in order to pass the parser state.
4308 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4309 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4310 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4311 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4312 * stap-probe.c (stap_parse_register_operand): Likewise.
4313 (stap_parse_single_operand): Likewise.
4314 (stap_parse_argument_1): Likewise.
4315 (stap_parse_argument): Use parser state.
4316 * stap-probe.h: Include "parser-defs.h".
4317 (struct stap_parse_info) <pstate>: New field.
4318 * c-exp.y (parse_type): Rewrite to use parser state.
4319 (yyparse): Redefine to c_parse_internal.
4320 (pstate): New global variable.
4321 (parse_number): Add "struct parser_state" argument.
4322 (write_destructor_name): Likewise.
4323 (type_exp): Update calls to write_exp* and similars in order to
4325 (exp1, exp, variable, qualified_name, space_identifier,
4326 typename, typebase): Likewise.
4327 (write_destructor_name, parse_number, lex_one_token,
4328 classify_name, classify_inner_name, c_parse): Add "struct
4329 parser_state" argument. Update function to use parser state.
4330 * c-lang.h: Forward declare "struct parser_state".
4331 (c_parse): Add "struct parser_state" argument.
4332 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4333 (yyparse): Redefine macro to ada_parse_internal.
4334 (pstate): New variable.
4335 (write_int, write_object_renaming, write_var_or_type,
4336 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4337 type_int, type_long, type_long_long, type_float, type_double,
4338 type_long_double, type_char, type_boolean, type_system_address):
4339 Add "struct parser_state" argument.
4340 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4341 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4342 var_or_type, aggregate, aggregate_component_list,
4343 positional_list, others, component_group,
4344 component_associations): Update calls to write_exp* and similar
4345 functions in order to use parser state.
4346 (ada_parse, write_var_from_sym, write_int,
4347 write_exp_op_with_string, write_object_renaming,
4348 find_primitive_type, write_selectors, write_ambiguous_var,
4349 write_var_or_type, write_name_assoc, type_int, type_long,
4350 type_long_long, type_float, type_double, type_long_double,
4351 type_char, type_boolean, type_system_address): Add "struct
4352 parser_state" argument. Adjust function to use parser state.
4353 * ada-lang.c (parse): Likewise.
4354 * ada-lang.h: Forward declare "struct parser_state".
4355 (ada_parse): Add "struct parser_state" argument.
4356 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4357 calls to both functions.
4358 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4360 (yyparse): Redefine macro to f_parse_internal.
4361 (pstate): New variable.
4362 (parse_number): Add "struct parser_state" argument.
4363 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4364 and similars in order to use parser state.
4365 (parse_number): Adjust code to use parser state.
4367 (f_parse): New function.
4368 * f-lang.h: Forward declare "struct parser_state".
4369 (f_parse): Add "struct parser_state" argument.
4370 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4372 (yyparse): Redefine macro for java_parse_internal.
4373 (pstate): New variable.
4374 (push_expression_name, push_expression_name, insert_exp): Add
4375 "struct parser_state" argument.
4376 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4377 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4378 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4379 PostIncrementExpression, PostDecrementExpression,
4380 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4381 UnaryExpressionNotPlusMinus, CastExpression,
4382 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4383 RelationalExpression, EqualityExpression, AndExpression,
4384 ExclusiveOrExpression, InclusiveOrExpression,
4385 ConditionalAndExpression, ConditionalOrExpression,
4386 ConditionalExpression, Assignment, LeftHandSide): Update
4387 calls to write_exp* and similars in order to use parser state.
4388 (parse_number): Ajust code to use parser state.
4390 (java_parse): New function.
4391 (push_variable): Add "struct parser_state" argument. Adjust
4392 code to user parser state.
4393 (push_fieldnames, push_qualified_expression_name,
4394 push_expression_name, insert_exp): Likewise.
4395 * jv-lang.h: Forward declare "struct parser_state".
4396 (java_parse): Add "struct parser_state" argument.
4397 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4399 (yyparse): Redefine macro to m2_parse_internal.
4400 (pstate): New variable.
4401 (type_exp, exp, fblock, variable, type): Update calls to
4402 write_exp* and similars to use parser state.
4404 (m2_parse): New function.
4405 * m2-lang.h: Forward declare "struct parser_state".
4406 (m2_parse): Add "struct parser_state" argument.
4407 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4408 * objc-lang.h: Forward declare "struct parser_state".
4409 (end_msglist): Add "struct parser_state" argument.
4410 * p-exp.y (parse_type): Rewrite macro to use parser state.
4411 (yyparse): Redefine macro to pascal_parse_internal.
4412 (pstate): New variable.
4413 (parse_number): Add "struct parser_state" argument.
4414 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4415 write_exp* and similars in order to use parser state.
4416 (parse_number, yylex): Adjust code to use parser state.
4417 (pascal_parse): New function.
4418 * p-lang.h: Forward declare "struct parser_state".
4419 (pascal_parse): Add "struct parser_state" argument.
4420 * go-exp.y (parse_type): Rewrite macro to use parser state.
4421 (yyparse): Redefine macro to go_parse_internal.
4422 (pstate): New variable.
4423 (parse_number): Add "struct parser_state" argument.
4424 (type_exp, exp1, exp, variable, type): Update calls to
4425 write_exp* and similars in order to use parser state.
4426 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4427 to use parser state.
4428 (go_parse): Likewise.
4429 * go-lang.h: Forward declare "struct parser_state".
4430 (go_parse): Add "struct parser_state" argument.
4432 2014-03-27 Doug Evans <dje@google.com>
4434 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4436 2014-03-27 Doug Evans <dje@google.com>
4438 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4439 Remove argument abbrev_section. All callers updated.
4441 2014-03-27 Doug Evans <dje@google.com>
4443 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4444 addr_base, ranges_base.
4446 2014-03-26 Keith Seitz <keiths@redhat.com>
4448 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4449 types, not VAR_DOMAIN.
4451 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4453 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4455 * features/nios2-linux.c: Regenerated.
4456 * features/nios2.c: Regenerated.
4458 2014-03-25 Pedro Alves <palves@redhat.com>
4460 * cli/cli-script.c (script_from_file): Force the interpreter to
4463 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4465 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4466 small stack allocation.
4468 2014-03-24 Tristan Gingold <gingold@adacore.com>
4470 * darwin-nat.c (exc_server): Remove unused prototype.
4471 (darwin_dump_message): Correctly display data on x86_64.
4472 (darwin_encode_reply): Fix style.
4473 Add comments and fix indentation.
4475 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4477 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4479 2014-03-22 Doug Evans <xdje42@gmail.com>
4481 * infcmd.c: Whitespace fixes.
4482 (interrupt_command): Merge two function comments into one.
4484 2014-03-22 Doug Evans <xdje42@gmail.com>
4486 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4489 2014-03-22 Yao Qi <yao@codesourcery.com>
4491 * remote.c (target_read_live_memory): Remove.
4492 (memory_xfer_live_readonly_partial): Rename it to
4493 remote_xfer_live_readonly_partial. Remove argument 'object'.
4494 All callers updated. Call remote_read_bytes_1
4495 instead of target_read_live_memory.
4496 * tracepoint.c (set_traceframe_number): Remove.
4497 (make_cleanup_restore_traceframe_number): Likewise .
4498 * tracepoint.h (set_traceframe_number): Remove declaration.
4499 (make_cleanup_restore_traceframe_number): Likewise.
4501 2014-03-22 Yao Qi <yao@codesourcery.com>
4503 * remote.c (remote_read_bytes): Move code on reading from the
4505 (remote_read_bytes_1): ... here. New function.
4507 2014-03-22 Yao Qi <yao@codesourcery.com>
4509 * ctf.c (ctf_xfer_partial): Check the return value of
4510 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4511 return TARGET_XFER_UNAVAILABLE.
4512 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4513 * target.c (target_read_live_memory): Move it to remote.c.
4514 (memory_xfer_live_readonly_partial): Likewise.
4515 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4516 * remote.c (target_read_live_memory): Moved from target.c.
4517 (memory_xfer_live_readonly_partial): Likewise.
4518 (remote_read_bytes): Factored out from
4519 memory_xfer_partial_1.
4521 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4523 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4526 2014-03-21 Pedro Alves <palves@redhat.com>
4528 * infrun.c (normal_stop): Extend comment.
4530 2014-03-21 Hui Zhu <hui@codesourcery.com>
4531 Pedro Alves <palves@redhat.com>
4533 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4535 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4536 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4537 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4539 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4541 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4542 `z' formatted output modifier.
4544 2014-03-20 Tom Tromey <tromey@redhat.com>
4545 Sergio Durigan Junior <sergiodj@redhat.com>
4547 * probe.c (parse_probes): Turn assert into an ordinary error.
4548 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4549 exceptions when parsing probes. Rearrange the code for clarity.
4551 2014-03-20 Tom Tromey <tromey@redhat.com>
4554 * top.c (execute_command): Only dispatch events if the command
4557 2014-03-20 Tom Tromey <tromey@redhat.com>
4560 * infcall.c: Include event-top.h.
4561 (run_inferior_call): Call async_disable_stdin if needed.
4563 2014-03-20 Pedro Alves <palves@redhat.com>
4565 * infrun.c (prepare_to_proceed): Delete.
4566 (thread_still_needs_step_over): New function.
4567 (find_thread_needs_step_over): New function.
4568 (proceed): If the current thread needs a step-over, set its
4569 steping_over_breakpoint flag. Adjust to use
4570 find_thread_needs_step_over instead of prepare_to_proceed.
4571 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4572 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4574 (switch_back_to_stepped_thread): Step over breakpoints of all
4575 threads not the stepping thread, before switching back to the
4578 2014-03-20 Pedro Alves <palves@redhat.com>
4580 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4582 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4583 * infrun.c (saved_singlestep_ptid)
4584 (stepping_past_singlestep_breakpoint): Delete.
4585 (resume): Remove stepping_past_singlestep_breakpoint handling.
4586 (proceed): Store the prev_pc of the stepping thread too.
4587 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4589 (enum infwait_states): Delete infwait_thread_hop_state.
4590 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4592 (handle_inferior_event): Adjust.
4593 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4594 handling and the thread-hop code. Before removing single-step
4595 breakpoints, check whether the thread hit a single-step breakpoint
4596 of another thread. If it did, the trap is not a random signal.
4597 (switch_back_to_stepped_thread): If the event thread hit a
4598 single-step breakpoint, unblock it before switching to the
4599 stepping thread. Handle the case of the stepped thread having
4601 (keep_going): Handle the case of the current thread moving past a
4602 single-step breakpoint.
4604 2014-03-20 Pedro Alves <palves@redhat.com>
4607 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4608 are being stepped over.
4609 (breakpoint_address_match): Make extern.
4610 * breakpoint.h (breakpoint_address_match): New declaration.
4611 * inferior.h (stepping_past_instruction_at): New declaration.
4612 * infrun.c (struct step_over_info): New type.
4613 (step_over_info): New global.
4614 (set_step_over_info, clear_step_over_info)
4615 (stepping_past_instruction_at): New functions.
4616 (handle_inferior_event): Clear the step-over info when
4617 trap_expected is cleared.
4618 (resume): Remove now stale comment.
4619 (clear_proceed_status): Clear step-over info.
4620 (proceed): Adjust step-over handling to set or clear the step-over
4621 info instead of removing all breakpoints.
4622 (handle_signal_stop): When setting up a thread-hop, don't remove
4624 (stop_stepping): Clear step-over info.
4625 (keep_going): Adjust step-over handling to set or clear step-over
4626 info and then always inserting breakpoints, instead of removing
4627 all breakpoints when stepping over one.
4629 2014-03-20 Pedro Alves <palves@redhat.com>
4631 * infrun.c (previous_inferior_ptid): Adjust comment.
4632 (deferred_step_ptid): Delete.
4633 (infrun_thread_ptid_changed, prepare_to_proceed)
4634 (init_wait_for_inferior): Adjust.
4635 (handle_signal_stop): Delete deferred_step_ptid handling.
4637 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4640 * defs.h (sync_quit_force_run): New declaration.
4641 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4642 * event-top.c (async_sigterm_handler): New declaration.
4643 (async_sigterm_token): New variable.
4644 (async_init_signals): Create also async_sigterm_token.
4645 (async_sigterm_handler): New function.
4646 (sync_quit_force_run): New variable.
4647 (handle_sigterm): Replace quit_force call by other calls.
4648 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4650 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4652 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4653 offset into SPE pseudo registers.
4655 2014-03-18 Pedro Alves <palves@redhat.com>
4658 * inferior.h (print_stop_event): Declare.
4659 * infrun.c (print_stop_event): New, factored out from ...
4660 (normal_stop): ... this.
4661 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4662 of bpstat_print/print_stack_frame.
4664 2014-03-17 Tom Tromey <tromey@redhat.com>
4666 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4668 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4670 * ada-lang.c (decode_constrained_packed_array): Perform a
4671 minimal coercion for reference with coerce_ref instead of
4674 2014-03-17 Tristan Gingold <gingold@adacore.com>
4676 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4677 (darwin_solib_create_inferior_hook): Emit a warning if version
4680 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4682 * python/py-value.c (get_field_flag): Cast flag_name argument to
4683 PyObject_GetAttrString to support Python 2.4.
4685 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4687 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4688 (Global Maintainers): Remove Jan Kratochvil.
4690 2014-03-14 Pedro Alves <palves@redhat.com>
4692 * inferior.h (terminal_ours_for_output): Rename to ...
4693 (child_terminal_ours_for_output): ... this.
4694 (terminal_save_ours): Rename to ...
4695 (child_terminal_save_ours): ... this.
4696 (terminal_ours): Rename to ...
4697 (child_terminal_ours): ... this.
4698 (terminal_inferior): Rename to ...
4699 (child_terminal_inferior): ... this.
4700 (terminal_init_inferior): Rename to ...
4701 (child_terminal_init_inferior): ... this.
4702 (terminal_init_inferior_with_pgrp): Rename to ...
4703 (child_terminal_init_inferior_with_pgrp): ... this.
4704 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4705 (child_terminal_init_with_pgrp): ... this.
4706 (terminal_save_ours): Rename to ...
4707 (child_terminal_save_ours): ... this.
4708 (terminal_init_inferior): Rename to ...
4709 (child_terminal_init): ... this. Adjust.
4710 (terminal_inferior): Rename to ...
4711 (child_terminal_inferior): ... this.
4712 (terminal_ours_for_output): Rename to ...
4713 (child_terminal_ours_for_output): ... this. Adjust.
4714 (terminal_ours): Rename to ...
4715 (child_terminal_ours): ... this.
4716 (terminal_ours_1): Rename to ...
4717 (child_terminal_ours_1): ... this. Adjust.
4718 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4719 * windows-nat.c (do_initial_windows_stuff): Adjust.
4720 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4721 (gnu_terminal_init): ... this. Adjust.
4722 (gnu_target): Adjust.
4723 * inf-child.c (inf_child_target): Adjust.
4725 2014-03-13 Doug Evans <xdje42@gmail.com>
4728 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4731 2014-03-13 Doug Evans <xdje42@gmail.com>
4733 * value.c (record_latest_value): Call release_value_or_incref
4734 instead of release_value.
4736 2014-03-13 Pedro Alves <palves@redhat.com>
4738 * procfs.c (procfs_target): Don't override to_shortname,
4739 to_longname or to_doc.
4741 2014-03-13 Pedro Alves <palves@redhat.com>
4743 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4744 Unix in user visible strings.
4746 2014-03-12 Stan Shebs <stan@codesourcery.com>
4748 * gdbtypes.h: Annotate comments for Doxygen, add a page
4749 block comment with some general info.
4751 2014-03-12 Pedro Alves <palves@redhat.com>
4753 * infcmd.c (prepare_execution_command): New function, factored out
4754 from several execution commands.
4755 (run_command_1, continue_command, step_1, jump_command)
4756 (signal_command, until_command, advance_command, finish_command)
4757 (attach_command): Use prepare_execution_command.
4759 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4761 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4764 (struct arm_linux_thread_points): Removed.
4765 (struct arm_linux_process_info): New.
4766 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4767 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4768 (arm_linux_find_breakpoints_by_tid): Removed.
4769 (struct arch_lwp_info): New.
4770 (arm_linux_find_process_pid): New functions.
4771 (arm_linux_add_process): New functions.
4772 (arm_linux_process_info_get): New functions.
4773 (arm_linux_forget_process): New function.
4774 (arm_linux_get_debug_reg_state): New function.
4775 (struct update_registers_data): New.
4776 (update_registers_callback): New function.
4777 (arm_linux_insert_hw_breakpoint1): Updated.
4778 (arm_linux_remove_hw_breakpoint1): Updated.
4779 (arm_linux_insert_hw_breakpoint): Updated.
4780 (arm_linux_remove_hw_breakpoint): Updated.
4781 (arm_linux_insert_watchpoint): Updated.
4782 (arm_linux_remove_watchpoint): Updated.
4783 (arm_linux_new_thread): Updated.
4784 (arm_linux_prepare_to_resume): New function.
4785 (arm_linux_new_fork): New function.
4786 (_initialize_arm_linux_nat): Updated.
4788 2014-03-12 Pedro Alves <palves@redhat.com>
4790 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4792 2014-03-12 Tom Tromey <tromey@redhat.com>
4794 * inf-child.c (return_zero): New function.
4795 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4796 * aix-thread.c (aix_thread_inferior_created): New function.
4797 (aix_thread_attach): Remove.
4798 (init_aix_thread_ops): Don't set to_attach.
4799 (_initialize_aix_thread): Register inferior_created observer.
4800 * corelow.c (init_core_ops): Don't set to_attach or
4802 * exec.c (init_exec_ops): Don't set to_attach or
4804 * infcmd.c (run_command_1): Use find_run_target. Make direct
4806 (attach_command): Use find_attach_target. Make direct target
4808 * record-btrace.c (init_record_btrace_ops): Don't set
4810 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4812 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4813 set to_create_inferior.
4814 * target.c (complete_target_initialization): Add assertion.
4815 (target_create_inferior): Remove.
4816 (find_default_attach, find_default_create_inferior): Remove.
4817 (find_attach_target, find_run_target): New functions.
4818 (find_default_is_async_p, find_default_can_async_p)
4819 (target_supports_non_stop, target_attach): Remove.
4820 (init_dummy_target): Don't set to_create_inferior or
4821 to_supports_non_stop.
4822 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4823 TARGET_DEFAULT_FUNC.
4824 <to_create_inferior>: Add comment.
4825 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4826 TARGET_DEFAULT_RETURN.
4827 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4828 (find_attach_target, find_run_target): Declare.
4829 (target_create_inferior): Remove.
4830 (target_has_execution_1): Update comment.
4831 (target_supports_non_stop): Remove.
4832 * target-delegates.c: Rebuild.
4834 2014-03-12 Pedro Alves <palves@redhat.com>
4836 * inf-child.h: Update comment to not mention Unix.
4838 2014-03-12 Pedro Alves <palves@redhat.com>
4840 * inf-child.c: Update top comment to not mention Unix. Add
4841 generic comment describing how this target is meant to be used.
4842 (inf_child_post_attach, inf_child_post_startup_inferior)
4843 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4846 2014-03-12 Pedro Alves <palves@redhat.com>
4848 * nto-procfs.c: Include inf-child.h.
4849 (procfs_ops): Delete global.
4850 (procfs_can_run): Delete method.
4851 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4852 target pointer instead of referencing procfs_ops.
4853 (procfs_prepare_to_store): Delete.
4854 (init_procfs_ops): Delete function.
4855 (procfs_target): New function, based on init_procfs_ops, but
4856 inherit inf_child_target.
4857 (_initialize_procfs): Use procfs_target.
4859 2014-03-12 Pedro Alves <palves@redhat.com>
4861 * windows-nat.c: Include inf-child.h.
4862 (windows_ops): Delete global.
4863 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4865 (init_windows_ops): Delete function.
4866 (windows_target): New function, based on init_windows_ops, but
4867 inherit inf_child_target.
4868 (_initialize_windows_nat): Use windows_target. Install x86
4869 specific target methods here.
4871 2014-03-10 Doug Evans <xdje42@gmail.com>
4873 * guile/guile.c (call_initialize_gdb_module): New function.
4874 (initialize_guile): Replace call to scm_init_guile with call to
4877 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4879 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4880 in call to TYPE_CODE macro.
4882 2014-03-10 Jerome Guitton <guitton@adacore.com>
4884 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4885 Resolve tagged types to full view.
4887 2014-03-10 Hui Zhu <hui@codesourcery.com>
4889 * target.h (target_insert_breakpoint): Remove "hardware" from its
4892 2014-03-07 Doug Evans <dje@google.com>
4894 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4896 2014-03-07 Doug Evans <dje@google.com>
4898 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4899 Remove unused local comp_dir_attr. Assert exactly one of
4900 stub_comp_unit_die, stub_comp_dir is non-NULL.
4902 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4904 * target.h (complete_target_initialization, add_target):
4907 2014-03-07 Pedro Alves <palves@redhat.com>
4909 * go32-nat.c: Include inf-child.h.
4910 (go32_ops): Delete global.
4911 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4913 (go32_create_inferior): Push the passed in target pointer instead
4914 of referencing go32_ops.
4915 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4916 (go32_target): New function, based on init_go32_ops, but inherit
4918 (_initialize_go32_nat): Use go32_target. Move parts of
4921 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4923 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4924 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4925 SYMBOL_VALUE_ADDRESS.
4926 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4928 2014-03-06 Yao Qi <yao@codesourcery.com>
4930 * breakpoint.c (get_tracepoint_by_number): Remove argument
4931 optional_p. All callers updated. Adjust comments. Update
4933 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4935 2014-03-06 Yao Qi <yao@codesourcery.com>
4937 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4938 early if get_number returns zero. Use 'p' instead of 'args'.
4940 2014-03-06 Yao Qi <yao@codesourcery.com>
4942 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4945 2014-03-06 Yao Qi <yao@codesourcery.com>
4947 PR breakpoints/16508
4948 * tracepoint.c (check_trace_running): New function.
4949 (trace_find_command): Move code to check_trace_running and
4950 call check_trace_running.
4951 (trace_find_pc_command): Likewise.
4952 (trace_find_tracepoint_command): Likewise.
4953 (trace_find_line_command): Likewise.
4954 (trace_find_range_command): Likewise.
4955 * tracepoint.h (check_trace_running): Likewise.
4956 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4958 2014-03-06 Yao Qi <yao@codesourcery.com>
4960 * target.h (struct target_ops) <to_traceframe_info>: Use
4961 TARGET_DEFAULT_NORETURN (tcomplain ()).
4962 * target-delegates.c: Regenerated.
4964 2014-03-05 Pedro Alves <palves@redhat.com>
4967 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4968 void. Update comment.
4969 (dcache_xfer_memory): Delete.
4970 (dcache_read_memory_partial): New, based on the read bits of
4972 (dcache_update): Add status parameter. Use ULONGEST for len, and
4973 adjust. Discard cache lines if the reason for the update was
4975 * dcache.h (dcache_xfer_memory): Delete declaration.
4976 (dcache_read_memory_partial): New declaration.
4977 (dcache_update): Update prototype.
4978 * target.c (raw_memory_xfer_partial): Update the dcache here.
4979 (memory_xfer_partial_1): Don't handle dcache writes here.
4981 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4983 * remote-sim.c (gdbsim_load): Add const to prog.
4985 2014-03-03 Tom Tromey <tromey@redhat.com>
4987 * elfread.c (probe_key): Change to bfd_data.
4988 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4989 now per-BFD, not per-objfile.
4990 * stap-probe.c (stap_probe_destroy): Update comment.
4991 (handle_stap_probe): Allocate on the per-BFD obstack.
4993 2014-03-03 Tom Tromey <tromey@redhat.com>
4995 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4996 * breakpoint.c (create_longjmp_master_breakpoint): Use
4998 (add_location_to_breakpoint, bkpt_probe_insert_location)
4999 (bkpt_probe_remove_location): Update.
5000 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5001 * elfread.c (elf_symfile_relocate_probe): Remove.
5002 (elf_probe_fns): Update.
5003 (insert_exception_resume_breakpoint): Change type of "probe"
5004 parameter to bound_probe.
5005 (check_exception_resume): Update.
5006 * objfiles.c (objfile_relocate1): Don't relocate probes.
5007 * probe.c (bound_probe_s): New typedef.
5008 (parse_probes): Use get_probe_address. Set sal's objfile.
5009 (find_probe_by_pc): Return a bound_probe.
5010 (collect_probes): Return a VEC(bound_probe_s).
5011 (compare_probes): Update.
5012 (gen_ui_out_table_header_info): Change type of "probes"
5014 (info_probes_for_ops): Update.
5015 (get_probe_address): New function.
5016 (probe_safe_evaluate_at_pc): Update.
5017 * probe.h (struct probe_ops) <get_probe_address>: New field.
5018 <set_semaphore, clear_semaphore>: Add objfile parameter.
5019 (struct probe) <objfile>: Remove field.
5021 <address>: Update comment.
5022 (struct bound_probe): New.
5023 (find_probe_by_pc): Return a bound_probe.
5024 (get_probe_address): Declare.
5025 * solib-svr4.c (struct probe_and_action) <address>: New field.
5026 (hash_probe_and_action, equal_probe_and_action): Update.
5027 (register_solib_event_probe): Add address parameter.
5028 (solib_event_probe_at): Update.
5029 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5031 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5032 (stap_get_probe_address): New function.
5033 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5034 (compile_probe_arg): Update.
5035 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5037 (handle_stap_probe): Don't relocate the probe.
5038 (stap_relocate): Remove.
5039 (stap_gen_info_probes_table_values): Update.
5040 (stap_probe_ops): Remove stap_relocate.
5041 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5042 (debug_sym_probe_fns): Update.
5043 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5044 * symtab.c (init_sal): Use memset.
5045 * symtab.h (struct symtab_and_line) <objfile>: New field.
5046 * tracepoint.c (start_tracing, stop_tracing): Update.
5048 2014-03-03 Tom Tromey <tromey@redhat.com>
5050 * probe.h (parse_probes, find_probe_by_pc)
5051 (find_probes_in_objfile): Fix comments.
5053 2014-03-02 Doug Evans <xdje42@gmail.com>
5055 * infrun.c (handle_signal_stop): Replace test for
5056 TARGET_WAITKIND_STOPPED with an assert.
5058 2014-03-02 Doug Evans <xdje42@gmail.com>
5060 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5062 2014-03-02 Doug Evans <xdje42@gmail.com>
5064 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5066 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5068 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5070 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5072 * i386obsd-nat.c: Include "obsd-nat.h".
5073 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5075 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5077 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5079 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5081 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5083 * mips64obsd-nat.c: Include "obsd-nath".
5084 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5086 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5088 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5090 * amd64obsd-nat.c: Include "obsd-nat,h.
5091 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5093 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5095 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5097 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5098 (find_overload_match): Update call to find_oload_champ.
5099 (find_oload_champ_namespace_loop): Likewise
5101 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5103 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5105 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5106 * config/sparc/obsd64.mh: New file.
5107 * sparc64obsd-nat.c: New file.
5109 * obsd-nat.h: New file.
5110 * obsd-nat.c: New file.
5111 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5112 (ALLDEPFILES): Add obsd-nat.c.
5114 2014-02-28 Tom Tromey <tromey@redhat.com>
5116 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5117 * cli-out.h (cli_ui_out_impl): Now const.
5118 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5119 * ui-out.c (struct ui_out) <impl>: Now const.
5120 (default_ui_out_impl): Now const.
5121 (ui_out_new): Make 'impl' parameter const.
5122 * ui-out.h (ui_out_new): Update.
5124 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5126 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5128 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5130 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5132 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5134 Additional PR 8882 fix.
5135 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5137 2014-02-27 Pedro Alves <palves@redhat.com>
5139 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5142 2014-02-27 Pedro Alves <palves@redhat.com>
5145 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5146 * nat/linux-waitpid.c: Include string.h.
5147 (status_to_str): Moved here and made extern.
5148 * nat/linux-waitpid.h (status_to_str): New declaration.
5150 2014-02-27 Hui Zhu <hui@codesourcery.com>
5153 * infrun.c (ptid_match): Move ...
5154 * common/ptid.c (ptid_match): ... here.
5155 * inferior.h (ptid_match): Move ...
5156 * common/ptid.h (ptid_match): ... here.
5158 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5160 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5161 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5164 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5166 * obsd-tdep.c (obsd_auxv_parse): New function.
5167 (obsd_init_abi): Set auxv_parse.
5169 * gdbarch.sh (auxv_parse): New.
5170 * gdbarch.h: Regenerated.
5171 * gdbarch.c: Regenerated.
5172 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5174 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5176 * guile/scm-value.c (gdbscm_history_append_x): New function.
5177 (value_functions): Add it.
5179 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5181 * dwarf2read.c (attr_value_as_address): New function.
5182 (dwarf2_find_base_address, read_call_site_scope): Use
5183 attr_value_as_address in place of DW_ADDR.
5184 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5185 the low and high addresses. Slight rework of the handling
5186 of the high pc being a constant form, and limit it to
5187 DWARF verson 4 or higher.
5188 (dwarf2_record_block_ranges): Likewise.
5189 (read_partial_die): Likewise.
5190 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5192 2014-02-26 Tom Tromey <tromey@redhat.com>
5194 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5196 2014-02-26 Tom Tromey <tromey@redhat.com>
5198 * elfread.c (elf_read_minimal_symbols): Return early if
5199 minimal symbols have already been read. Add "ei" parameter.
5200 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5201 * minsyms.c (prim_record_minimal_symbol_full): Update.
5202 * objfiles.h (struct objstats) <n_minsyms>: Move...
5203 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5204 * symmisc.c (print_objfile_statistics): Update.
5206 2014-02-26 Tom Tromey <tromey@redhat.com>
5208 * elfread.c (elf_read_minimal_symbols): New function, from
5210 (elf_symfile_read): Call it.
5212 2014-02-26 Tom Tromey <tromey@redhat.com>
5214 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5215 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5216 (lookup_minimal_symbol_solib_trampoline)
5217 (lookup_minimal_symbol_by_pc_section_1)
5218 (lookup_minimal_symbol_and_objfile): Update.
5219 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5220 Don't allocate a minimal symbol if minsyms have already been read.
5221 (build_minimal_symbol_hash_tables): Update.
5222 (install_minimal_symbols): Do nothing if minsyms already read.
5223 Use the per-BFD obstack.
5224 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5225 * objfiles.c (allocate_objfile): Call
5226 terminate_minimal_symbol_table later.
5227 (have_minimal_symbols): Update.
5228 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5229 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5230 Move from struct objfile.
5231 <minsyms_read>: New field.
5232 (struct objfile) <msymbols, minimal_symbol_count,
5233 msymbol_hash, msymbol_demangled_hash>: Move.
5234 (ALL_OBJFILE_MSYMBOLS): Update.
5235 * symfile.c (read_symbols): Set minsyms_read.
5236 (reread_symbols): Update.
5237 * symmisc.c (dump_objfile, dump_msymbols): Update.
5239 2014-02-26 Tom Tromey <tromey@redhat.com>
5241 * minsyms.c (msymbols_sort): Remove.
5242 * minsyms.h (msymbols_sort): Remove.
5243 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5244 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5245 * elfread.c (elf_symtab_read): Don't add section offsets.
5246 * xcoffread.c (record_minimal_symbol): Don't add section offset
5247 to minimal symbol address.
5248 * somread.c (text_offset, data_offset): Remove.
5249 (som_symtab_read): Don't add section offsets to minimal symbol
5251 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5252 Don't add section offsets to minimal symbols.
5253 * coffread.c (coff_symtab_read): Don't add section offsets
5254 to minimal symbol addresses.
5255 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5256 to minimal symbol addresses.
5257 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5258 section offset to minimal symbol addresses.
5259 * mdebugread.c (parse_partial_symbols): Don't add section
5260 offset to minimal symbol addresses.
5261 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5262 offset to minimal symbol addresses.
5264 2014-02-26 Tom Tromey <tromey@redhat.com>
5266 * ada-lang.c (ada_main_name): Update.
5267 (ada_add_standard_exceptions): Update.
5268 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5269 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5270 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5271 * auxv.c (ld_so_xfer_auxv): Update.
5272 * avr-tdep.c (avr_scan_prologue): Update.
5273 * ax-gdb.c (gen_var_ref): Update.
5274 * blockframe.c (get_pc_function_start)
5275 (find_pc_partial_function_gnu_ifunc): Update.
5276 * breakpoint.c (create_overlay_event_breakpoint)
5277 (create_longjmp_master_breakpoint)
5278 (create_std_terminate_master_breakpoint)
5279 (create_exception_master_breakpoint): Update.
5280 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5281 * c-valprint.c (c_val_print): Update.
5282 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5283 * common/agent.c (agent_look_up_symbols): Update.
5284 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5285 * dwarf2loc.c (call_site_to_target_addr): Update.
5286 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5287 * elfread.c (elf_gnu_ifunc_record_cache)
5288 (elf_gnu_ifunc_resolve_by_got): Update.
5289 * findvar.c (default_read_var_value): Update.
5290 * frame.c (inside_main_func): Update.
5291 * frv-tdep.c (frv_frame_this_id): Update.
5292 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5293 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5295 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5296 (hppa_hpux_find_dummy_bpaddr): Update.
5297 * hppa-tdep.c (hppa_symbol_address): Update.
5298 * infcmd.c (until_next_command): Update.
5299 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5301 * linespec.c (minsym_found, add_minsym): Update.
5302 * linux-nat.c (get_signo): Update.
5303 * linux-thread-db.c (inferior_has_bug): Update.
5304 * m32c-tdep.c (m32c_return_value)
5305 (m32c_m16c_address_to_pointer): Update.
5306 * m32r-tdep.c (m32r_frame_this_id): Update.
5307 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5308 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5309 * maint.c (maintenance_translate_address): Update.
5310 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5311 (frob_address): New function.
5312 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5313 frob_address. Rename parameter to "pc_in".
5314 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5316 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5318 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5319 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5320 * objc-lang.c (find_objc_msgsend): Update.
5321 * objfiles.c (objfile_relocate1): Update.
5322 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5323 * p-valprint.c (pascal_val_print): Update.
5324 * parse.c (write_exp_msymbol): Update.
5325 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5326 (ppc_elfv2_skip_entrypoint): Update.
5327 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5328 * printcmd.c (build_address_symbolic, msym_info)
5329 (address_info): Update.
5330 * proc-service.c (ps_pglobal_lookup): Update.
5331 * psymtab.c (find_pc_sect_psymtab_closer)
5332 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5333 Change msymbol parameter to bound_minimal_symbol.
5334 * ravenscar-thread.c (get_running_thread_id): Update.
5335 * remote.c (remote_check_symbols): Update.
5336 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5338 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5339 * solib-dsbt.c (lm_base): Update.
5340 * solib-frv.c (lm_base, main_got): Update.
5341 * solib-irix.c (locate_base): Update.
5342 * solib-som.c (som_solib_create_inferior_hook)
5343 (link_map_start): Update.
5344 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5345 * solib-svr4.c (elf_locate_base, enable_break): Update.
5346 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5347 (flush_ea_cache): Update.
5348 * stabsread.c (define_symbol, scan_file_globals): Update.
5349 * stack.c (find_frame_funname): Update.
5350 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5351 (debug_qf_find_pc_sect_symtab): Update.
5352 * symfile.c (simple_read_overlay_table)
5353 (simple_overlay_update): Update.
5354 * symfile.h (struct quick_symbol_functions)
5355 <find_pc_sect_symtab>: Change type of msymbol to
5356 bound_minimal_symbol.
5357 * symmisc.c (dump_msymbols): Update.
5358 * symtab.c (find_pc_sect_symtab_via_partial)
5359 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5360 (search_symbols, print_msymbol_info): Update.
5361 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5362 (MSYMBOL_VALUE_ADDRESS): Redefine.
5363 (BMSYMBOL_VALUE_ADDRESS): New macro.
5364 * tracepoint.c (scope_info): Update.
5365 * tui/tui-disasm.c (tui_find_disassembly_address)
5366 (tui_get_begin_asm_address): Update.
5367 * valops.c (find_function_in_inferior): Update.
5368 * value.c (value_static_field, value_fn_field): Update.
5370 2014-02-26 Tom Tromey <tromey@redhat.com>
5372 * ada-lang.c (ada_update_initial_language): Update.
5373 (ada_main_name, ada_has_this_exception_support): Update.
5374 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5375 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5376 * arm-tdep.c (arm_skip_stub): Update.
5377 * auxv.c (ld_so_xfer_auxv): Update.
5378 * avr-tdep.c (avr_scan_prologue): Update.
5379 * ax-gdb.c (gen_var_ref): Update.
5380 * breakpoint.c (struct breakpoint_objfile_data)
5381 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5382 type to bound_minimal_symbol.
5383 (create_overlay_event_breakpoint)
5384 (create_longjmp_master_breakpoint)
5385 (create_std_terminate_master_breakpoint)
5386 (create_exception_master_breakpoint): Update.
5387 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5388 * c-exp.y (classify_name): Update.
5389 * coffread.c (coff_symfile_read): Update.
5390 * common/agent.c (agent_look_up_symbols): Update.
5391 * d-lang.c (d_main_name): Update.
5392 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5393 * dec-thread.c (enable_dec_thread): Update.
5394 * dwarf2loc.c (call_site_to_target_addr): Update.
5395 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5396 * eval.c (evaluate_subexp_standard): Update.
5397 * findvar.c (struct minsym_lookup_data) <result>: Change type
5398 to bound_minimal_symbol.
5400 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5401 * frame.c (inside_main_func): Update.
5402 * frv-tdep.c (frv_frame_this_id): Update.
5403 * gcore.c (call_target_sbrk): Update.
5404 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5405 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5407 * go-lang.c (go_main_name): Update.
5408 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5409 (hppa_hpux_find_import_stub_for_addr): Update.
5410 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5411 Update. Change return type.
5412 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5414 * jit.c (jit_breakpoint_re_set_internal): Update.
5415 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5417 * linux-nat.c (get_signo): Update.
5418 * linux-thread-db.c (inferior_has_bug): Update
5419 * m32c-tdep.c (m32c_return_value)
5420 (m32c_m16c_address_to_pointer): Update.
5421 * m32r-tdep.c (m32r_frame_this_id): Update.
5422 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5423 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5424 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5425 lookup_minimal_symbol. Change return type.
5426 (lookup_minimal_symbol): Remove.
5427 (lookup_bound_minimal_symbol): Update.
5428 (lookup_minimal_symbol_text): Change return type.
5429 (lookup_minimal_symbol_solib_trampoline): Change return type.
5430 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5431 (lookup_minimal_symbol_solib_trampoline): Change return type.
5432 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5433 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5434 (value_nsstring, find_imps): Update.
5435 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5436 * p-lang.c (pascal_main_name): Update.
5437 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5438 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5439 * proc-service.c (ps_pglobal_lookup): Update.
5440 * ravenscar-thread.c (get_running_thread_msymbol): Change
5442 (has_ravenscar_runtime, get_running_thread_id): Update.
5443 * remote.c (remote_check_symbols): Update.
5444 * sol-thread.c (ps_pglobal_lookup): Update.
5445 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5446 * solib-dsbt.c (lm_base): Update.
5447 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5449 * solib-irix.c (locate_base): Update.
5450 * solib-som.c (som_solib_create_inferior_hook)
5451 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5453 * solib-spu.c (spu_enable_break): Update.
5454 * solib-svr4.c (elf_locate_base, enable_break): Update.
5455 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5456 (flush_ea_cache): Update.
5457 * stabsread.c (define_symbol): Update.
5458 * symfile.c (simple_read_overlay_table): Update.
5459 * symtab.c (find_pc_sect_line): Update.
5460 * tracepoint.c (scope_info): Update.
5461 * tui-disasm.c (tui_get_begin_asm_address): Update.
5462 * value.c (value_static_field): Update.
5464 2014-02-26 Tom Tromey <tromey@redhat.com>
5466 * minsyms.c (prim_record_minimal_symbol_full): Use
5467 SET_MSYMBOL_VALUE_ADDRESS.
5468 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5469 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5470 SET_MSYMBOL_VALUE_ADDRESS.
5471 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5472 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5474 2014-02-26 Tom Tromey <tromey@redhat.com>
5476 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5477 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5478 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5479 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5480 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5481 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5482 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5483 * ada-lang.c (ada_main_name): Update.
5484 (ada_lookup_simple_minsym): Update.
5485 (ada_make_symbol_completion_list): Update.
5486 (ada_add_standard_exceptions): Update.
5487 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5488 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5489 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5490 * arm-tdep.c (skip_prologue_function): Update.
5491 (arm_skip_stack_protector, arm_skip_stub): Update.
5492 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5493 (arm_wince_skip_main_prologue): Update.
5494 * auxv.c (ld_so_xfer_auxv): Update.
5495 * avr-tdep.c (avr_scan_prologue): Update.
5496 * ax-gdb.c (gen_var_ref): Update.
5497 * block.c (call_site_for_pc): Update.
5498 * blockframe.c (get_pc_function_start): Update.
5499 (find_pc_partial_function_gnu_ifunc): Update.
5500 * breakpoint.c (create_overlay_event_breakpoint): Update.
5501 (create_longjmp_master_breakpoint): Update.
5502 (create_std_terminate_master_breakpoint): Update.
5503 (create_exception_master_breakpoint): Update.
5504 (resolve_sal_pc): Update.
5505 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5506 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5508 * c-valprint.c (c_val_print): Update.
5509 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5510 * coffread.c (coff_symfile_read): Update.
5511 * common/agent.c (agent_look_up_symbols): Update.
5512 * dbxread.c (find_stab_function_addr): Update.
5513 (end_psymtab): Update.
5514 * dwarf2loc.c (call_site_to_target_addr): Update.
5515 (func_verify_no_selftailcall): Update.
5516 (tailcall_dump): Update.
5517 (call_site_find_chain_1): Update.
5518 (dwarf_expr_reg_to_entry_parameter): Update.
5519 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5520 (elf_gnu_ifunc_resolve_by_got): Update.
5521 * f-valprint.c (info_common_command): Update.
5522 * findvar.c (read_var_value): Update.
5523 * frame.c (get_prev_frame_1): Update.
5524 (inside_main_func): Update.
5525 * frv-tdep.c (frv_skip_main_prologue): Update.
5526 (frv_frame_this_id): Update.
5527 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5528 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5529 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5530 (gnuv3_skip_trampoline): Update.
5531 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5532 (hppa64_hpux_in_solib_call_trampoline): Update.
5533 (hppa_hpux_skip_trampoline_code): Update.
5534 (hppa64_hpux_search_dummy_call_sequence): Update.
5535 (hppa_hpux_find_import_stub_for_addr): Update.
5536 (hppa_hpux_find_dummy_bpaddr): Update.
5537 * hppa-tdep.c (hppa_symbol_address)
5538 (hppa_lookup_stub_minimal_symbol): Update.
5539 * i386-tdep.c (i386_skip_main_prologue): Update.
5540 (i386_pe_skip_trampoline_code): Update.
5541 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5542 * infcall.c (get_function_name): Update.
5543 * infcmd.c (until_next_command): Update.
5544 * jit.c (jit_breakpoint_re_set_internal): Update.
5545 (jit_inferior_init): Update.
5546 * linespec.c (minsym_found): Update.
5547 (add_minsym): Update.
5548 * linux-fork.c (info_checkpoints_command): Update.
5549 * linux-nat.c (get_signo): Update.
5550 * linux-thread-db.c (inferior_has_bug): Update.
5551 * m32c-tdep.c (m32c_return_value): Update.
5552 (m32c_m16c_address_to_pointer): Update.
5553 (m32c_m16c_pointer_to_address): Update.
5554 * m32r-tdep.c (m32r_frame_this_id): Update.
5555 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5556 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5557 * maint.c (maintenance_translate_address): Update.
5558 * minsyms.c (add_minsym_to_hash_table): Update.
5559 (add_minsym_to_demangled_hash_table): Update.
5560 (msymbol_objfile): Update.
5561 (lookup_minimal_symbol): Update.
5562 (iterate_over_minimal_symbols): Update.
5563 (lookup_minimal_symbol_text): Update.
5564 (lookup_minimal_symbol_by_pc_name): Update.
5565 (lookup_minimal_symbol_solib_trampoline): Update.
5566 (lookup_minimal_symbol_by_pc_section_1): Update.
5567 (lookup_minimal_symbol_and_objfile): Update.
5568 (prim_record_minimal_symbol_full): Update.
5569 (compare_minimal_symbols): Update.
5570 (compact_minimal_symbols): Update.
5571 (build_minimal_symbol_hash_tables): Update.
5572 (install_minimal_symbols): Update.
5573 (terminate_minimal_symbol_table): Update.
5574 (find_solib_trampoline_target): Update.
5575 (minimal_symbol_upper_bound): Update.
5576 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5577 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5578 (mips_skip_pic_trampoline_code): Update.
5579 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5580 * objc-lang.c (selectors_info): Update.
5581 (classes_info): Update.
5582 (find_methods): Update.
5583 (find_imps): Update.
5584 (find_objc_msgsend): Update.
5585 * objfiles.c (objfile_relocate1): Update.
5586 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5587 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5588 * p-valprint.c (pascal_val_print): Update.
5589 * parse.c (write_exp_msymbol): Update.
5590 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5591 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5592 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5593 * printcmd.c (build_address_symbolic): Update.
5595 (address_info): Update.
5596 * proc-service.c (ps_pglobal_lookup): Update.
5597 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5598 (find_pc_sect_psymtab): Update.
5599 * python/py-framefilter.c (py_print_frame): Update.
5600 * ravenscar-thread.c (get_running_thread_id): Update.
5601 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5603 * remote.c (remote_check_symbols): Update.
5604 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5605 (rs6000_skip_trampoline_code): Update.
5606 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5607 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5608 * solib-dsbt.c (lm_base): Update.
5609 * solib-frv.c (lm_base): Update.
5611 * solib-irix.c (locate_base): Update.
5612 * solib-som.c (som_solib_create_inferior_hook): Update.
5613 (som_solib_desire_dynamic_linker_symbols): Update.
5614 (link_map_start): Update.
5615 * solib-spu.c (spu_enable_break): Update.
5616 (ocl_enable_break): Update.
5617 * solib-svr4.c (elf_locate_base): Update.
5618 (enable_break): Update.
5619 * spu-tdep.c (spu_get_overlay_table): Update.
5620 (spu_catch_start): Update.
5621 (flush_ea_cache): Update.
5622 * stabsread.c (define_symbol): Update.
5623 (scan_file_globals): Update.
5624 * stack.c (find_frame_funname): Update.
5625 (frame_info): Update.
5626 * symfile.c (simple_read_overlay_table): Update.
5627 (simple_overlay_update): Update.
5628 * symmisc.c (dump_msymbols): Update.
5629 * symtab.c (fixup_section): Update.
5630 (find_pc_sect_line): Update.
5631 (skip_prologue_sal): Update.
5632 (search_symbols): Update.
5633 (print_msymbol_info): Update.
5634 (rbreak_command): Update.
5635 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5636 (completion_list_objc_symbol): Update.
5637 (default_make_symbol_completion_list_break_on): Update.
5638 * tracepoint.c (scope_info): Update.
5639 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5640 (tui_get_begin_asm_address): Update.
5641 * valops.c (find_function_in_inferior): Update.
5642 * value.c (value_static_field): Update.
5643 (value_fn_field): Update.
5645 2014-02-26 Tom Tromey <tromey@redhat.com>
5647 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5648 bound minimal symbols. Move code that knows about minsym
5650 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5652 * minsyms.h (minimal_symbol_upper_bound): Declare.
5653 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5654 minimal_symbol_upper_bound.
5656 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5658 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5659 Use the type's name if its basic type does not have a tag.
5661 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5663 * dwarf2read.c (read_subrange_type): Add comment.
5665 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5667 * dwarf2read.c (update_enumeration_type_from_children): New
5668 function, mostly extracted from process_structure_scope.
5669 (read_enumeration_type): Call update_enumeration_type_from_children.
5670 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5671 and flag_flag_enum fields.
5673 2014-02-26 Pedro Alves <palves@redhat.com>
5675 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5676 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5677 to_xfer_partial method.
5679 2014-02-26 Pedro Alves <palves@redhat.com>
5681 * target.c (complete_target_initialization): Don't install
5682 default_xfer_partial as to_xfer_partial hook.
5684 (update_current_target): Don't INHERIT nor de_fault
5685 deprecated_xfer_memory. Delete de_fault macro.
5686 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5687 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5688 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5691 2014-02-26 Pedro Alves <palves@redhat.com>
5693 * go32-nat.c (my_write_child): New function.
5694 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5695 (go32_xfer_partial): New function.
5696 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5697 Instead install a to_xfer_partial hook.
5699 2014-02-26 Pedro Alves <palves@redhat.com>
5701 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5702 to_xfer_partial helper. Rewrite.
5703 (procfs_xfer_partial): New function.
5704 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5705 Install a to_xfer_partial hook.
5707 2014-02-26 Pedro Alves <palves@redhat.com>
5709 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5710 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5711 (m32r_xfer_partial): New function.
5712 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5713 Install a to_xfer_partial hook.
5715 2014-02-26 Pedro Alves <palves@redhat.com>
5717 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5719 (mips_xfer_partial): New function.
5720 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5721 hook. Install a to_xfer_partial hook.
5723 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5725 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5726 * gdbtypes.c (create_array_type_with_stride): New function,
5727 renaming create_array_type, but with an added parameter
5728 called "bit_stride".
5729 (create_array_type): Re-implement using
5730 create_array_type_with_stride.
5731 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5732 and DW_AT_bit_stride attributes.
5734 2014-02-26 Pedro Alves <palves@redhat.com>
5736 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5737 task-specific breakpoints.
5739 2014-02-25 Pedro Alves <palves@redhat.com>
5741 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5742 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5744 2014-02-25 Stan Shebs <stan@codesourcery.com>
5746 * defs.h: Annotate comments for Doxygen.
5748 2014-02-25 Tom Tromey <tromey@redhat.com>
5750 * target.h (target_ignore): Don't declare.
5751 * target.c (target_ignore): Remove.
5753 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5756 * auto-load.c (auto_load_objfile_script_1): Change filename to
5759 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5761 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5762 documentation. Adjust prototype to match the target_ops
5763 to_xfer_partial method. Adjust implementation accordingly.
5765 2014-02-25 Hui Zhu <hui@codesourcery.com>
5767 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5770 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5772 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5773 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5774 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5775 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5776 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5777 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5778 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5779 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5781 (rl78_register_type): Use a data pointer type for SP and
5782 new pseudo registers mentioned above. Use a 16 bit integer
5783 type for all other register pairs.
5784 (rl78_register_name, rl78_g10_register_name): Update for
5785 new pseudo registers.
5786 (rl78_pseudo_register_read): Likewise.
5787 (rl78_pseudo_register_write): Likewise.
5788 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5789 to the newly added pseudo registers.
5791 2014-02-24 Doug Evans <dje@google.com>
5793 * value.c (record_latest_value): Fix comment.
5794 * printcmd.c (print_command_1): Remove code to handle -1 return from
5795 record_latest_value.
5797 2014-02-24 Pedro Alves <palves@redhat.com>
5799 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5800 deprecated_xfer_memory hook.
5801 (procfs_xfer_partial): Call procfs_xfer_memory instead
5802 of the deprecated_xfer_memory target hook.
5803 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5806 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5808 * windows-nat.c (windows_xfer_shared_libraries): Return
5809 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5810 requested object is TARGET_OBJECT_LIBRARIES.
5812 2014-02-24 Yao Qi <yao@codesourcery.com>
5814 * target.h (enum target_xfer_status)
5815 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5816 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5818 * corefile.c (memory_error_message): User updated.
5819 * exec.c (section_table_read_available_memory): Likewise.
5820 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5821 * target.c (target_xfer_status_to_string): Likewise.
5822 (raw_memory_xfer_partial): Likewise.
5823 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5824 * valops.c (read_value_memory): Likewise.
5825 * exec.h: Update comments.
5827 2014-02-24 Yao Qi <yao@codesourcery.com>
5829 * target.c (target_xfer_status_to_string): Rename argument err
5831 * target.h (target_xfer_status_to_string): Update declaration.
5832 Replace target_xfer_error_to_string with
5833 target_xfer_status_to_string in comment.
5835 2014-02-24 Yao Qi <yao@codesourcery.com>
5837 * mips-linux-nat.c (super_close): Update its type.
5838 (mips_linux_close): Pass 'self' to super_close.
5840 2014-02-24 Yao Qi <yao@codesourcery.com>
5842 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5843 * corefile.c (read_memory): Adjusted.
5844 * target.c (target_write_with_progress): Adjusted.
5846 2014-02-23 Yao Qi <yao@codesourcery.com>
5850 2013-10-25 Yao Qi <yao@codesourcery.com>
5852 * remote.c (remote_traceframe_info): Return early if
5853 traceframe is not selected.
5855 2013-07-19 Yao Qi <yao@codesourcery.com>
5857 * target.c (update_current_target): Change the default action
5858 of 'to_traceframe_info' from tcomplain to return_zero.
5859 * target.h (struct target_ops) <to_traceframe_info>: Add more
5862 2014-02-23 Yao Qi <yao@codesourcery.com>
5864 * valops.c (read_value_memory): Rewrite it. Call
5865 target_xfer_partial in a loop.
5866 * exec.h (section_table_available_memory): Remove declaration.
5867 Move comments to ...
5868 * exec.c (section_table_available_memory): ... here. Make it
5871 2014-02-23 Yao Qi <yao@codesourcery.com>
5873 * exec.c (section_table_read_available_memory): New function.
5874 * exec.h (section_table_read_available_memory): Declare.
5875 * ctf.c (ctf_xfer_partial): Call
5876 section_table_read_available_memory.
5877 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5879 2014-02-23 Yao Qi <yao@codesourcery.com>
5881 * ctf.c (ctf_xfer_partial): Move code to ...
5882 * exec.c (exec_read_partial_read_only): ... it. New function.
5883 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5884 * tracefile.c: Include "exec.h".
5885 * exec.h (exec_read_partial_read_only): Declare.
5887 2014-02-23 Yao Qi <yao@codesourcery.com>
5889 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5890 (tfile_has_memory): Remove.
5891 (init_tfile_ops): Don't set fields to_has_all_memory and
5892 to_has_memory of tfile_ops.
5893 * tracefile.c (tracefile_has_all_memory): New function.
5894 (tracefile_has_memory): New function.
5895 (init_tracefile_ops): Initialize fields to_has_all_memory and
5896 to_has_memory of 'ops'.
5898 2014-02-23 Yao Qi <yao@codesourcery.com>
5900 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5901 (ctf_thread_alive, ctf_get_trace_status): Remove.
5902 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5904 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5905 (tfile_has_stack, tfile_has_registers): Remove.
5906 (tfile_thread_alive): Remove.
5907 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5909 * tracefile.c (tracefile_has_stack): New function.
5910 (tracefile_has_registers): New function.
5911 (tracefile_thread_alive): New function.
5912 (tracefile_get_trace_status): New function.
5913 (init_tracefile_ops): New function.
5914 * tracefile.h (init_tracefile_ops): Declare.
5916 2014-02-23 Yao Qi <yao@codesourcery.com>
5918 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5919 (O_LARGEFILE): Likewise.
5920 (tfile_ops): Likewise.
5921 (TRACE_HEADER_SIZE): Likewise.
5922 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5923 (cur_data_size): Likewise.
5924 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5925 (tfile_close, tfile_files_info): Likewise.
5926 (tfile_get_trace_status): Likewise.
5927 (tfile_get_tracepoint_status): Likewise.
5928 (tfile_get_traceframe_address): Likewise.
5929 (tfile_trace_find, match_blocktype): Likewise.
5930 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5931 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5932 (tfile_get_trace_state_variable_value): Likewise.
5933 (tfile_has_all_memory, tfile_has_memory): Likewise.
5934 (tfile_has_stack, tfile_has_registers): Likewise.
5935 (tfile_thread_alive, build_traceframe_info): Likewise.
5936 (tfile_traceframe_info, init_tfile_ops): Likewise.
5937 (_initialize_tracepoint): Don't call init_tfile_ops
5938 and add_target_with_completer.
5939 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5940 exec.h, completer.h and filenames.h.
5941 (_initialize_tracefile_tfile): New function.
5943 2014-02-23 Yao Qi <yao@codesourcery.com>
5945 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5947 (HFILES_NO_SRCDIR): Add tracefile.h.
5948 * ctf.c: Include "tracefile.h".
5949 * tracefile.h: New file.
5950 * tracefile.c: New file
5951 * tracefile-tfile.c: New file.
5952 * tracepoint.c: Include "tracefile.h".
5953 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5954 (stop_reason_names): Add const.
5955 (trace_file_writer_xfree): Move it to tracefile.c.
5956 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5957 (trace_save_ctf): Likewise.
5958 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5959 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5960 (tfile_write_header, tfile_write_regblock_type): Likewise.
5961 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5962 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5963 (tfile_write_raw_data, tfile_end): Likewise.
5964 (tfile_trace_file_writer_new): Likewise.
5965 (free_uploaded_tp): Make it extern.
5966 (free_uploaded_tsv): Make it extern.
5967 (_initialize_tracepoint): Move code to register command 'tsave'
5969 * tracepoint.h (stop_reason_names): Declare.
5970 (struct trace_frame_write_ops): Move it to tracefile.h.
5971 (struct trace_file_write_ops): Likewise.
5972 (struct trace_file_writer): Likewise.
5973 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5975 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5978 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5980 (get_cores_used_by_process): New parameter num_cores, use it.
5981 (linux_xfer_osdata_processes): Pass num_cores to it.
5982 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5985 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5987 * target.c (memory_xfer_partial): Fix length arg in call to
5988 breakpoint_xfer_memory.
5990 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5993 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5994 number comes after the + or - signs. Adjust length of register
5995 name to be extracted.
5997 2014-02-20 Tom Tromey <tromey@redhat.com>
5999 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6000 (ada_varobj_ops): Mark "extern".
6002 2014-02-20 Tom Tromey <tromey@redhat.com>
6004 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6006 2014-02-20 Doug Evans <xdje42@gmail.com>
6008 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6009 All callers updated.
6010 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6011 All callers updated.
6012 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6013 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6015 2014-02-20 lin zuojian <manjian2006@gmail.com>
6016 Joel Brobecker <brobecker@adacore.com>
6017 Doug Evans <xdje42@gmail.com>
6020 * dwarf2read.c (struct die_info): New member in_process.
6021 (reset_die_in_process): New function.
6022 (process_die): Set it at the start, reset when returning.
6023 (inherit_abstract_dies): Only call process_die if origin_child_die
6024 not already being processed.
6026 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6028 * windows-nat.c (handle_unload_dll): Add function documentation.
6029 (do_initial_windows_stuff): Add comment explaining why we wait
6030 until after inferior initialization has finished before
6031 processing all DLLs.
6033 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6035 * windows-nat.c (get_module_name): Delete.
6036 (windows_get_exec_module_filename): New function, mostly
6037 inspired from get_module_name.
6038 (windows_pid_to_exec_file): Replace call to get_module_name
6039 by call to windows_get_exec_module_filename.
6041 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6043 * windows-nat.c (handle_load_dll): Rewrite this function's
6044 introductory comment. Remove code using get_module_name
6045 to get the DLL's name.
6047 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6049 * windows-nat.c (get_windows_debug_event): Ignore
6050 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6051 if windows_initialization_done == 0.
6052 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6053 Adjust implementation to always load all DLLs.
6054 (do_initial_windows_stuff): Replace call to
6055 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6057 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6059 * windows-nat.c (_initialize_windows_nat): Deprecate the
6060 "dll-symbols" command. Turn the "add-shared-symbol-files"
6061 and "assf" aliases into commands, and deprecate them as well.
6062 * NEWS: Add entry explaining that "dll-symbols" and its two
6063 aliases are now deprecated.
6065 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6067 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6068 new-line in debug string. Remove trailing spaces.
6070 2014-02-19 Stan Shebs <stan@codesourcery.com>
6072 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6074 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6076 * NEWS: Add entry for the new feature
6077 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6080 2014-02-19 Stan Shebs <stan@codesourcery.com>
6082 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6084 2014-02-19 Pedro Alves <palves@redhat.com>
6086 * common/ptid.h (struct ptid): Mention that process_stratum
6087 targets should prefer ptid.lwp.
6089 2014-02-19 Pedro Alves <palves@redhat.com>
6091 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6092 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6093 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6094 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6095 store remote thread ids rather than ptid.tid.
6096 (_initialize_remote): Adjust.
6098 2014-02-19 Tom Tromey <tromey@redhat.com>
6100 * target.c (target_get_unwinder): Rewrite.
6101 (target_get_tailcall_unwinder): Rewrite.
6102 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6103 (record_btrace_to_get_tailcall_unwinder): New function.
6104 (init_record_btrace_ops): Update.
6105 * target.h (struct target_ops) <to_get_unwinder,
6106 to_get_tailcall_unwinder>: Now function pointers. Use
6107 TARGET_DEFAULT_RETURN.
6109 2014-02-19 Tom Tromey <tromey@redhat.com>
6111 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6113 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6115 2014-02-19 Tom Tromey <tromey@redhat.com>
6117 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6119 * target-delegates.c: Rebuild.
6120 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6121 TARGET_DEFAULT_FUNC.
6122 * target.c (default_target_decr_pc_after_break): Rename from
6123 forward_target_decr_pc_after_break. Simplify.
6124 (target_decr_pc_after_break): Rely on delegation.
6126 2014-02-19 Tom Tromey <tromey@redhat.com>
6128 * target.c (update_current_target): Do not INHERIT to_doc or
6129 to_magic. Do not de_fault to_open or to_close.
6131 2014-02-19 Tom Tromey <tromey@redhat.com>
6133 * gcore.h (objfile_find_memory_regions): Declare.
6134 * gcore.c (objfile_find_memory_regions): No longer static. Add
6136 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6137 * exec.c: Include gcore.h.
6138 (exec_set_find_memory_regions): Remove.
6139 (exec_find_memory_regions): Remove.
6140 (exec_do_find_memory_regions): Remove.
6141 (init_exec_ops): Update.
6142 * defs.h (exec_set_find_memory_regions): Remove.
6144 2014-02-19 Tom Tromey <tromey@redhat.com>
6146 * target-delegates.c: Rebuild.
6147 * target.h (struct target_ops) <to_extra_thread_info,
6148 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6149 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6150 not 0, in TARGET_DEFAULT_RETURN.
6152 2014-02-19 Tom Tromey <tromey@redhat.com>
6154 * target.c (complete_target_initialization): Remove casts. Use
6155 return_zero_has_execution.
6156 (return_zero): Add "ignore" argument.
6157 (return_zero_has_execution): New function.
6158 (init_dummy_target): Remove casts. Use
6159 return_zero_has_execution.
6161 2014-02-19 Tom Tromey <tromey@redhat.com>
6163 * target.c (update_current_target): Update comments. Do not
6166 2014-02-19 Tom Tromey <tromey@redhat.com>
6168 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6170 * corelow.c (core_read_description): Delegate when needed.
6171 * remote.c (remote_read_description): Delegate when needed.
6172 * target-delegates.c: Rebuild.
6173 * target.c (target_read_description): Rewrite.
6174 * target.h (struct target_ops) <to_read_description>: Update
6175 comment. Use TARGET_DEFAULT_RETURN.
6177 2014-02-19 Tom Tromey <tromey@redhat.com>
6179 * target-delegates.c: Rebuild.
6180 * target.c (update_current_target): Don't inherit or default
6182 (find_default_run_target): Check against delegate_can_run.
6183 * target.h (struct target_ops) <to_can_run>: Use
6184 TARGET_DEFAULT_RETURN.
6186 2014-02-19 Tom Tromey <tromey@redhat.com>
6188 * target-delegates.c: Rebuild.
6189 * target.c (target_disconnect): Unconditionally delegate.
6190 * target.h (struct target_ops) <to_disconnect>: Use
6191 TARGET_DEFAULT_NORETURN.
6193 2014-02-19 Tom Tromey <tromey@redhat.com>
6195 * record.c (record_stop): Unconditionally delegate.
6196 * target-delegates.c: Rebuild.
6197 * target.c (target_stop_recording): Unconditionally delegate.
6198 * target.h (struct target_ops) <to_stop_recording>: Use
6199 TARGET_DEFAULT_IGNORE.
6201 2014-02-19 Tom Tromey <tromey@redhat.com>
6203 * target-delegates.c: Rebuild.
6204 * target.c (target_enable_btrace): Unconditionally delegate.
6205 * target.h (struct target_ops) <to_enable_btrace>: Use
6206 TARGET_DEFAULT_NORETURN.
6208 2014-02-19 Tom Tromey <tromey@redhat.com>
6210 * target-delegates.c: Rebuild.
6211 * target.c (target_read_btrace): Unconditionally delegate.
6212 * target.h (struct target_ops) <to_read_btrace>: Use
6213 TARGET_DEFAULT_NORETURN.
6215 2014-02-19 Tom Tromey <tromey@redhat.com>
6217 * target-delegates.c: Rebuild.
6218 * target.c (target_teardown_btrace): Unconditionally delegate.
6219 * target.h (struct target_ops) <to_teardown_btrace>: Use
6220 TARGET_DEFAULT_NORETURN.
6222 2014-02-19 Tom Tromey <tromey@redhat.com>
6224 * target-delegates.c: Rebuild.
6225 * target.c (target_disable_btrace): Unconditionally delegate.
6226 * target.h (struct target_ops) <to_disable_btrace>: Use
6227 TARGET_DEFAULT_NORETURN.
6229 2014-02-19 Tom Tromey <tromey@redhat.com>
6231 * target-delegates.c: Rebuild.
6232 * target.c (default_search_memory): New function.
6233 (simple_search_memory): Update comment.
6234 (target_search_memory): Unconditionally delegate.
6235 * target.h (struct target_ops) <to_search_memory>: Use
6236 TARGET_DEFAULT_FUNC.
6238 2014-02-19 Tom Tromey <tromey@redhat.com>
6240 * auxv.c (default_auxv_parse): No longer static.
6241 (target_auxv_parse): Unconditionally delegate.
6242 * auxv.h (default_auxv_parse): Declare.
6243 * target-delegates.c: Rebuild.
6244 * target.c: Include auxv.h.
6245 * target.h (struct target_ops) <to_auxv_parse>: Use
6246 TARGET_DEFAULT_FUNC.
6248 2014-02-19 Tom Tromey <tromey@redhat.com>
6250 * target-delegates.c: Rebuild.
6251 * target.c (target_memory_map): Unconditionally delegate.
6252 * target.h (struct target_ops) <to_memory_map>: Use
6253 TARGET_DEFAULT_RETURN.
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6257 * target-delegates.c: Rebuild.
6258 * target.c (target_thread_alive): Unconditionally delegate.
6259 * target.h (struct target_ops) <to_thread_alive>: Use
6260 TARGET_DEFAULT_RETURN.
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6264 * target-delegates.c: Rebuild.
6265 * target.c (target_save_record): Unconditionally delegate.
6266 * target.h (struct target_ops) <to_save_record>: Use
6267 TARGET_DEFAULT_NORETURN.
6269 2014-02-19 Tom Tromey <tromey@redhat.com>
6271 * target-delegates.c: Rebuild.
6272 * target.c (target_delete_record): Unconditionally delegate.
6273 * target.h (struct target_ops) <to_delete_record>: Use
6274 TARGET_DEFAULT_NORETURN.
6276 2014-02-19 Tom Tromey <tromey@redhat.com>
6278 * target-delegates.c: Rebuild.
6279 * target.c (target_record_is_replaying): Unconditionally
6281 * target.h (struct target_ops) <to_record_is_replaying>: Use
6282 TARGET_DEFAULT_RETURN.
6284 2014-02-19 Tom Tromey <tromey@redhat.com>
6286 * target-delegates.c: Rebuild.
6287 * target.c (target_goto_record_begin): Unconditionally delegate.
6288 * target.h (struct target_ops) <to_goto_record_begin>: Use
6289 TARGET_DEFAULT_NORETURN.
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * target-delegates.c: Rebuild.
6294 * target.c (target_goto_record_end): Unconditionally delegate.
6295 * target.h (struct target_ops) <to_goto_record_end>: Use
6296 TARGET_DEFAULT_NORETURN.
6298 2014-02-19 Tom Tromey <tromey@redhat.com>
6300 * target-delegates.c: Rebuild.
6301 * target.c (target_goto_record): Unconditionally delegate.
6302 * target.h (struct target_ops) <to_goto_record>: Use
6303 TARGET_DEFAULT_NORETURN.
6305 2014-02-19 Tom Tromey <tromey@redhat.com>
6307 * target-delegates.c: Rebuild.
6308 * target.c (target_insn_history): Unconditionally delegate.
6309 * target.h (struct target_ops) <to_insn_history>: Use
6310 TARGET_DEFAULT_NORETURN.
6312 2014-02-19 Tom Tromey <tromey@redhat.com>
6314 * target-delegates.c: Rebuild.
6315 * target.c (target_insn_history_from): Unconditionally delegate.
6316 * target.h (struct target_ops) <to_insn_history_from>: Use
6317 TARGET_DEFAULT_NORETURN.
6319 2014-02-19 Tom Tromey <tromey@redhat.com>
6321 * target-delegates.c: Rebuild.
6322 * target.c (target_insn_history_range): Unconditionally delegate.
6323 * target.h (struct target_ops) <to_insn_history_range>: Use
6324 TARGET_DEFAULT_NORETURN.
6326 2014-02-19 Tom Tromey <tromey@redhat.com>
6328 * target-delegates.c: Rebuild.
6329 * target.c (target_call_history): Unconditionally delegate.
6330 * target.h (struct target_ops) <to_call_history>: Use
6331 TARGET_DEFAULT_NORETURN.
6333 2014-02-19 Tom Tromey <tromey@redhat.com>
6335 * target-delegates.c: Rebuild.
6336 * target.c (target_call_history_from): Unconditionally delegate.
6337 * target.h (struct target_ops) <to_call_history_from>: Use
6338 TARGET_DEFAULT_NORETURN.
6340 2014-02-19 Tom Tromey <tromey@redhat.com>
6342 * target-delegates.c: Rebuild.
6343 * target.c (target_call_history_range): Unconditionally delegate.
6344 * target.h (struct target_ops) <to_call_history_range>: Use
6345 TARGET_DEFAULT_NORETURN.
6347 2014-02-19 Tom Tromey <tromey@redhat.com>
6349 * target-delegates.c: Rebuild.
6350 * target.c (target_verify_memory): Unconditionally delegate.
6351 * target.h (struct target_ops) <to_verify_memory>: Use
6352 TARGET_DEFAULT_NORETURN.
6354 2014-02-19 Tom Tromey <tromey@redhat.com>
6356 * target-delegates.c: Rebuild.
6357 * target.c (target_core_of_thread): Unconditionally delegate.
6358 * target.h (struct target_ops) <to_core_of_thread>: Use
6359 TARGET_DEFAULT_RETURN.
6361 2014-02-19 Tom Tromey <tromey@redhat.com>
6363 * target-delegates.c: Rebuild.
6364 * target.c (target_flash_done): Unconditionally delegate.
6365 * target.h (struct target_ops) <to_flash_done>: Use
6366 TARGET_DEFAULT_NORETURN.
6368 2014-02-19 Tom Tromey <tromey@redhat.com>
6370 * target-delegates.c: Rebuild.
6371 * target.c (target_flash_erase): Unconditionally delegate.
6372 * target.h (struct target_ops) <to_flash_erase>: Use
6373 TARGET_DEFAULT_NORETURN.
6375 2014-02-19 Tom Tromey <tromey@redhat.com>
6377 * target-delegates.c: Rebuild.
6378 * target.c (target_get_section_table): Unconditionally delegate.
6379 * target.h (struct target_ops) <to_get_section_table>: Use
6380 TARGET_DEFAULT_RETURN.
6382 2014-02-19 Tom Tromey <tromey@redhat.com>
6384 * target-delegates.c: Rebuild.
6385 * target.c (target_pid_to_str): Unconditionally delegate.
6386 (init_dummy_target): Don't initialize to_pid_to_str.
6387 (default_pid_to_str): Rename from dummy_pid_to_str.
6388 * target.h (struct target_ops) <to_pid_to_str>: Use
6389 TARGET_DEFAULT_FUNC.
6391 2014-02-19 Tom Tromey <tromey@redhat.com>
6393 * target-delegates.c: Rebuild.
6394 * target.c (target_find_new_threads): Unconditionally delegate.
6395 * target.h (struct target_ops) <to_find_new_threads>: Use
6396 TARGET_DEFAULT_RETURN.
6398 2014-02-19 Tom Tromey <tromey@redhat.com>
6400 * target-delegates.c: Rebuild.
6401 * target.c (target_program_signals): Unconditionally delegate.
6402 * target.h (struct target_ops) <to_program_signals>: Use
6403 TARGET_DEFAULT_IGNORE.
6405 2014-02-19 Tom Tromey <tromey@redhat.com>
6407 * target-delegates.c: Rebuild.
6408 * target.c (target_pass_signals): Unconditionally delegate.
6409 * target.h (struct target_ops) <to_pass_signals>: Use
6410 TARGET_DEFAULT_IGNORE.
6412 2014-02-19 Tom Tromey <tromey@redhat.com>
6414 * target-delegates.c: Rebuild.
6415 * target.c (default_mourn_inferior): New function.
6416 (target_mourn_inferior): Unconditionally delegate.
6417 * target.h (struct target_ops) <to_mourn_inferior>: Use
6418 TARGET_DEFAULT_FUNC.
6420 2014-02-19 Tom Tromey <tromey@redhat.com>
6422 * target-delegates.c: Rebuild.
6423 * target.c (default_follow_fork): New function.
6424 (target_follow_fork): Unconditionally delegate.
6425 * target.h (struct target_ops) <to_follow_fork>: Use
6426 TARGET_DEFAULT_FUNC.
6428 2014-02-19 Tom Tromey <tromey@redhat.com>
6430 * target-delegates.c: Rebuild.
6431 * target.c (target_kill): Unconditionally delegate.
6432 * target.h (struct target_ops) <to_kill>: Use
6433 TARGET_DEFAULT_NORETURN.
6435 2014-02-19 Tom Tromey <tromey@redhat.com>
6437 * target-delegates.c: Rebuild.
6438 * target.c (target_masked_watch_num_registers): Unconditionally
6440 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6441 Use TARGET_DEFAULT_RETURN.
6443 2014-02-19 Tom Tromey <tromey@redhat.com>
6445 * target-delegates.c: Rebuild.
6446 * target.c (target_remove_mask_watchpoint): Unconditionally
6448 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6449 TARGET_DEFAULT_RETURN.
6451 2014-02-19 Tom Tromey <tromey@redhat.com>
6453 * target-delegates.c: Rebuild.
6454 * target.c (target_insert_mask_watchpoint): Unconditionally
6456 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6457 TARGET_DEFAULT_RETURN.
6459 2014-02-19 Tom Tromey <tromey@redhat.com>
6461 * target-delegates.c: Rebuild.
6462 * target.c (target_ranged_break_num_registers): Unconditionally
6464 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6465 Use TARGET_DEFAULT_RETURN.
6467 2014-02-19 Tom Tromey <tromey@redhat.com>
6469 * target-delegates.c: Rebuild.
6470 * target.c (target_fetch_registers): Unconditionally delegate.
6471 * target.h (struct target_ops) <to_fetch_registers>: Use
6472 TARGET_DEFAULT_NORETURN.
6474 2014-02-19 Tom Tromey <tromey@redhat.com>
6476 * target-delegates.c: Rebuild.
6477 * target.c (update_current_target): Don't inherit or default
6479 * target.h (struct target_ops) <to_stop>: Use
6480 TARGET_DEFAULT_IGNORE.
6482 2014-02-19 Tom Tromey <tromey@redhat.com>
6484 * target-delegates.c: Rebuild.
6485 * target.c (update_current_target): Don't inherit or default
6486 to_can_run_breakpoint_commands.
6487 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6488 Use TARGET_DEFAULT_RETURN.
6490 2014-02-19 Tom Tromey <tromey@redhat.com>
6492 * target-delegates.c: Rebuild.
6493 * target.c (update_current_target): Don't inherit or default
6494 to_supports_evaluation_of_breakpoint_conditions.
6495 * target.h (struct target_ops)
6496 <to_supports_evaluation_of_breakpoint_conditions>: Use
6497 TARGET_DEFAULT_RETURN.
6499 2014-02-19 Tom Tromey <tromey@redhat.com>
6501 * target-delegates.c: Rebuild.
6502 * target.c (update_current_target): Don't inherit or default
6503 to_augmented_libraries_svr4_read.
6504 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6505 Use TARGET_DEFAULT_RETURN.
6507 2014-02-19 Tom Tromey <tromey@redhat.com>
6509 * target-delegates.c: Rebuild.
6510 * target.c (update_current_target): Don't inherit or default
6512 * target.h (struct target_ops) <to_can_use_agent>: Use
6513 TARGET_DEFAULT_RETURN.
6515 2014-02-19 Tom Tromey <tromey@redhat.com>
6517 * target-delegates.c: Rebuild.
6518 * target.c (update_current_target): Don't inherit or default
6520 * target.h (struct target_ops) <to_use_agent>: Use
6521 TARGET_DEFAULT_NORETURN.
6523 2014-02-19 Tom Tromey <tromey@redhat.com>
6525 * target-delegates.c: Rebuild.
6526 * target.c (update_current_target): Don't inherit or default
6528 (return_null): Remove.
6529 * target.h (struct target_ops) <to_traceframe_info>: Use
6530 TARGET_DEFAULT_RETURN.
6532 2014-02-19 Tom Tromey <tromey@redhat.com>
6534 * target-delegates.c: Rebuild.
6535 * target.c (update_current_target): Don't inherit or default
6536 to_static_tracepoint_markers_by_strid.
6537 * target.h (struct target_ops)
6538 <to_static_tracepoint_markers_by_strid>: Use
6539 TARGET_DEFAULT_NORETURN.
6541 2014-02-19 Tom Tromey <tromey@redhat.com>
6543 * target-delegates.c: Rebuild.
6544 * target.c (update_current_target): Don't inherit or default
6545 to_static_tracepoint_marker_at.
6546 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6547 Use TARGET_DEFAULT_RETURN.
6549 2014-02-19 Tom Tromey <tromey@redhat.com>
6551 * target-delegates.c: Rebuild.
6552 * target.c (update_current_target): Don't inherit or default
6554 * target.h (struct target_ops) <to_set_permissions>: Use
6555 TARGET_DEFAULT_IGNORE.
6557 2014-02-19 Tom Tromey <tromey@redhat.com>
6559 * target-delegates.c: Rebuild.
6560 * target.c (update_current_target): Don't inherit or default
6562 * target.h (struct target_ops) <to_get_tib_address>: Use
6563 TARGET_DEFAULT_NORETURN.
6565 2014-02-19 Tom Tromey <tromey@redhat.com>
6567 * target-delegates.c: Rebuild.
6568 * target.c (update_current_target): Don't inherit or default
6570 * target.h (struct target_ops) <to_set_trace_notes>: Use
6571 TARGET_DEFAULT_RETURN.
6573 2014-02-19 Tom Tromey <tromey@redhat.com>
6575 * target-delegates.c: Rebuild.
6576 * target.c (update_current_target): Don't initialize
6577 to_set_trace_buffer_size.
6578 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6579 TARGET_DEFAULT_IGNORE.
6581 2014-02-19 Tom Tromey <tromey@redhat.com>
6583 * target-delegates.c: Rebuild.
6584 * target.c (update_current_target): Don't inherit or default
6585 to_set_circular_trace_buffer.
6586 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6587 TARGET_DEFAULT_IGNORE.
6589 2014-02-19 Tom Tromey <tromey@redhat.com>
6591 * target-delegates.c: Rebuild.
6592 * target.c (update_current_target): Don't inherit or default
6593 to_set_disconnected_tracing.
6594 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6595 TARGET_DEFAULT_IGNORE.
6597 2014-02-19 Tom Tromey <tromey@redhat.com>
6599 * target-delegates.c: Rebuild.
6600 * target.c (update_current_target): Don't inherit or default
6601 to_get_min_fast_tracepoint_insn_len.
6602 (return_minus_one): Remove.
6603 * target.h (struct target_ops)
6604 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6606 2014-02-19 Tom Tromey <tromey@redhat.com>
6608 * target-delegates.c: Rebuild.
6609 * target.c (update_current_target): Don't inherit or default
6610 to_get_raw_trace_data.
6611 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6612 TARGET_DEFAULT_NORETURN.
6614 2014-02-19 Tom Tromey <tromey@redhat.com>
6616 * target-delegates.c: Rebuild.
6617 * target.c (update_current_target): Don't inherit or default
6618 to_upload_trace_state_variables.
6619 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6620 Use TARGET_DEFAULT_RETURN.
6622 2014-02-19 Tom Tromey <tromey@redhat.com>
6624 * target-delegates.c: Rebuild.
6625 * target.c (update_current_target): Don't inherit or default
6626 to_upload_tracepoints.
6627 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6628 TARGET_DEFAULT_RETURN.
6630 2014-02-19 Tom Tromey <tromey@redhat.com>
6632 * target-delegates.c: Rebuild.
6633 * target.c (update_current_target): Don't inherit or default
6635 * target.h (struct target_ops) <to_save_trace_data>: Use
6636 TARGET_DEFAULT_NORETURN.
6638 2014-02-19 Tom Tromey <tromey@redhat.com>
6640 * target-delegates.c: Rebuild.
6641 * target.c (update_current_target): Don't inherit or default
6642 to_get_trace_state_variable_value.
6643 * target.h (struct target_ops)
6644 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6646 2014-02-19 Tom Tromey <tromey@redhat.com>
6648 * target-delegates.c: Rebuild.
6649 * target.c (update_current_target): Don't inherit or default
6651 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6653 2014-02-19 Tom Tromey <tromey@redhat.com>
6655 * target-delegates.c: Rebuild.
6656 * target.c (update_current_target): Don't inherit or default
6658 * target.h (struct target_ops) <to_trace_stop>: Use
6659 TARGET_DEFAULT_NORETURN.
6661 2014-02-19 Tom Tromey <tromey@redhat.com>
6663 * target-delegates.c: Rebuild.
6664 * target.c (update_current_target): Don't inherit or default
6665 to_get_tracepoint_status.
6666 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6667 TARGET_DEFAULT_NORETURN.
6669 2014-02-19 Tom Tromey <tromey@redhat.com>
6671 * target-delegates.c: Rebuild.
6672 * target.c (update_current_target): Don't inherit or default
6673 to_get_trace_status.
6674 * target.h (struct target_ops) <to_get_trace_status>: Use
6675 TARGET_DEFAULT_RETURN.
6677 2014-02-19 Tom Tromey <tromey@redhat.com>
6679 * target-delegates.c: Rebuild.
6680 * target.c (update_current_target): Don't inherit or default
6682 * target.h (struct target_ops) <to_trace_start>: Use
6683 TARGET_DEFAULT_NORETURN.
6685 2014-02-19 Tom Tromey <tromey@redhat.com>
6687 * target-delegates.c: Rebuild.
6688 * target.c (update_current_target): Don't inherit or default
6689 to_trace_set_readonly_regions.
6690 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6691 Use TARGET_DEFAULT_NORETURN.
6693 2014-02-19 Tom Tromey <tromey@redhat.com>
6695 * target-delegates.c: Rebuild.
6696 * target.c (update_current_target): Don't inherit or default
6697 to_disable_tracepoint.
6698 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6699 TARGET_DEFAULT_NORETURN.
6701 2014-02-19 Tom Tromey <tromey@redhat.com>
6703 * target-delegates.c: Rebuild.
6704 * target.c (update_current_target): Don't inherit or default
6705 to_enable_tracepoint.
6706 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6707 TARGET_DEFAULT_NORETURN.
6709 2014-02-19 Tom Tromey <tromey@redhat.com>
6711 * target-delegates.c: Rebuild.
6712 * target.c (update_current_target): Don't inherit or default
6713 to_download_trace_state_variable.
6714 * target.h (struct target_ops) <to_download_trace_state_variable>:
6715 Use TARGET_DEFAULT_NORETURN.
6717 2014-02-19 Tom Tromey <tromey@redhat.com>
6719 * target-delegates.c: Rebuild.
6720 * target.c (update_current_target): Don't inherit or default
6721 to_can_download_tracepoint.
6722 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6723 TARGET_DEFAULT_RETURN.
6725 2014-02-19 Tom Tromey <tromey@redhat.com>
6727 * target-delegates.c: Rebuild.
6728 * target.c (update_current_target): Don't inherit or default
6729 to_download_tracepoint.
6730 * target.h (struct target_ops) <to_download_tracepoint>: Use
6731 TARGET_DEFAULT_NORETURN.
6733 2014-02-19 Tom Tromey <tromey@redhat.com>
6735 * target-delegates.c: Rebuild.
6736 * target.c (update_current_target): Don't inherit or default
6738 * target.h (struct target_ops) <to_trace_init>: Use
6739 TARGET_DEFAULT_RETURN.
6741 2014-02-19 Tom Tromey <tromey@redhat.com>
6743 * target-delegates.c: Rebuild.
6744 * target.c (update_current_target): Don't inherit or default
6745 to_supports_string_tracing.
6746 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6747 TARGET_DEFAULT_RETURN.
6749 2014-02-19 Tom Tromey <tromey@redhat.com>
6751 * target-delegates.c: Rebuild.
6752 * target.c (update_current_target): Don't inherit or default
6753 to_supports_enable_disable_tracepoint.
6754 * target.h (struct target_ops)
6755 <to_supports_enable_disable_tracepoint>: Use
6756 TARGET_DEFAULT_RETURN.
6758 2014-02-19 Tom Tromey <tromey@redhat.com>
6760 * target-delegates.c: Rebuild.
6761 * target.c (update_current_target): Don't inherit or default
6762 to_supports_multi_process.
6763 * target.h (struct target_ops) <to_supports_multi_process>: Use
6764 TARGET_DEFAULT_RETURN.
6766 2014-02-19 Tom Tromey <tromey@redhat.com>
6768 * target-delegates.c: Rebuild.
6769 * target.c (update_current_target): Don't inherit or default
6770 to_get_ada_task_ptid.
6771 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6772 TARGET_DEFAULT_FUNC.
6774 2014-02-19 Tom Tromey <tromey@redhat.com>
6776 * target-delegates.c: Rebuild.
6777 * target.c (update_current_target): Don't inherit or default
6778 to_thread_architecture.
6779 * target.h (struct target_ops) <to_thread_architecture>: Use
6780 TARGET_DEFAULT_FUNC.
6782 2014-02-19 Tom Tromey <tromey@redhat.com>
6784 * target-delegates.c: Rebuild.
6785 * target.c (update_current_target): Don't inherit or default
6786 to_execution_direction.
6787 * target.h (struct target_ops) <to_execution_direction>: Use
6788 TARGET_DEFAULT_FUNC.
6790 2014-02-19 Tom Tromey <tromey@redhat.com>
6792 * target-delegates.c: Rebuild.
6793 * target.c (update_current_target): Don't inherit or default
6794 to_can_execute_reverse.
6795 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6796 TARGET_DEFAULT_RETURN.
6797 (target_can_execute_reverse): Unconditionally delegate.
6799 2014-02-19 Tom Tromey <tromey@redhat.com>
6801 * target-delegates.c: Rebuild.
6802 * target.c (update_current_target): Don't inherit or default
6804 (dummy_goto_bookmark): Remove.
6805 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6806 * target.h (struct target_ops) <to_goto_bookmark>: Use
6807 TARGET_DEFAULT_NORETURN.
6809 2014-02-19 Tom Tromey <tromey@redhat.com>
6811 * target-delegates.c: Rebuild.
6812 * target.c (update_current_target): Don't inherit or default
6814 (dummy_get_bookmark): Remove.
6815 (init_dummy_target): Don't inherit or default to_get_bookmark.
6816 * target.h (struct target_ops) <to_get_bookmark>: Use
6817 TARGET_DEFAULT_NORETURN
6819 2014-02-19 Tom Tromey <tromey@redhat.com>
6821 * target-delegates.c: Rebuild.
6822 * target.c (update_current_target): Don't inherit or default
6823 to_make_corefile_notes.
6824 (init_dummy_target): Don't initialize to_make_corefile_notes.
6825 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6826 TARGET_DEFAULT_FUNC.
6828 2014-02-19 Tom Tromey <tromey@redhat.com>
6830 * target-delegates.c: Rebuild.
6831 * target.c (update_current_target): Don't inherit or default
6832 to_find_memory_regions.
6833 (init_dummy_target): Don't initialize to_find_memory_regions.
6834 * target.h (struct target_ops) <to_find_memory_regions>: Use
6835 TARGET_DEFAULT_FUNC.
6837 2014-02-19 Tom Tromey <tromey@redhat.com>
6839 * target-delegates.c: Rebuild.
6840 * target.c (update_current_target): Don't inherit or default
6842 * target.h (struct target_ops) <to_log_command>: Use
6843 TARGET_DEFAULT_IGNORE.
6844 (target_log_command): Unconditionally delegate.
6846 2014-02-19 Tom Tromey <tromey@redhat.com>
6848 * target-delegates.c: Rebuild.
6849 * target.c (update_current_target): Don't inherit or default
6850 to_pid_to_exec_file.
6851 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6852 TARGET_DEFAULT_RETURN.
6854 2014-02-19 Tom Tromey <tromey@redhat.com>
6856 * target-delegates.c: Rebuild.
6857 * target.c (update_current_target): Don't inherit or default
6859 (target_thread_name): Unconditionally delegate.
6860 * target.h (struct target_ops) <to_thread_name>: Use
6861 TARGET_DEFAULT_RETURN.
6863 2014-02-19 Tom Tromey <tromey@redhat.com>
6865 * target-delegates.c: Rebuild.
6866 * target.c (update_current_target): Don't inherit or default
6867 to_extra_thread_info.
6868 * target.h (struct target_ops) <to_extra_thread_info>: Use
6869 TARGET_DEFAULT_RETURN.
6871 2014-02-19 Tom Tromey <tromey@redhat.com>
6873 * target-delegates.c: Rebuild.
6874 * target.c (update_current_target): Don't inherit or default
6876 * target.h (struct target_ops) <to_has_exited>: Use
6877 TARGET_DEFAULT_RETURN..
6879 2014-02-19 Tom Tromey <tromey@redhat.com>
6881 * target-delegates.c: Rebuild.
6882 * target.c (update_current_target): Don't inherit or default
6883 to_set_syscall_catchpoint.
6884 (return_one): Remove.
6885 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6886 TARGET_DEFAULT_RETURN.
6888 2014-02-19 Tom Tromey <tromey@redhat.com>
6890 * target-delegates.c: Rebuild.
6891 * target.c (update_current_target): Don't inherit or default
6892 to_insert_exec_catchpoint.
6893 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6894 TARGET_DEFAULT_RETURN.
6896 2014-01-08 Tom Tromey <tromey@redhat.com>
6898 * target-delegates.c: Rebuild.
6899 * target.c (update_current_target): Don't inherit or default
6900 to_insert_exec_catchpoint.
6901 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6902 TARGET_DEFAULT_RETURN.
6904 2014-02-19 Tom Tromey <tromey@redhat.com>
6906 * target-delegates.c: Rebuild.
6907 * target.c (update_current_target): Don't inherit or default
6908 to_remove_vfork_catchpoint.
6909 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6910 TARGET_DEFAULT_RETURN.
6912 2014-02-19 Tom Tromey <tromey@redhat.com>
6914 * target-delegates.c: Rebuild.
6915 * target.c (update_current_target): Don't inherit or default
6916 to_insert_vfork_catchpoint.
6917 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6918 TARGET_DEFAULT_RETURN.
6920 2014-02-19 Tom Tromey <tromey@redhat.com>
6922 * target-delegates.c: Rebuild.
6923 * target.c (update_current_target): Don't inherit or default
6924 to_remove_fork_catchpoint.
6925 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6926 TARGET_DEFAULT_RETURN.
6928 2014-02-19 Tom Tromey <tromey@redhat.com>
6930 * target-delegates.c: Rebuild.
6931 * target.c (update_current_target): Don't inherit or default
6932 to_insert_fork_catchpoint.
6933 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6934 TARGET_DEFAULT_RETURN.
6936 2014-02-19 Tom Tromey <tromey@redhat.com>
6938 * target-delegates.c: Rebuild.
6939 * target.c (update_current_target): Don't inherit or default
6940 to_post_startup_inferior.
6941 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6942 TARGET_DEFAULT_IGNORE.
6944 2014-02-19 Tom Tromey <tromey@redhat.com>
6946 * target-delegates.c: Rebuild.
6947 * target.c (update_current_target): Don't inherit or default
6949 * target.h (struct target_ops) <to_load>: Use
6950 TARGET_DEFAULT_NORETURN.
6952 2014-02-19 Tom Tromey <tromey@redhat.com>
6954 * target-delegates.c: Rebuild.
6955 * target.c (update_current_target): Don't inherit or default
6957 * target.h (struct target_ops) <to_terminal_info>: Use
6958 TARGET_DEFAULT_FUNC.
6960 2014-02-19 Tom Tromey <tromey@redhat.com>
6962 * target-delegates.c: Rebuild.
6963 * target.c (update_current_target): Don't inherit or default
6964 to_terminal_save_ours.
6965 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6966 TARGET_DEFAULT_IGNORE.
6968 2014-02-19 Tom Tromey <tromey@redhat.com>
6970 * target-delegates.c: Rebuild.
6971 * target.c (update_current_target): Don't inherit or default
6973 * target.h (struct target_ops) <to_terminal_ours>: Use
6974 TARGET_DEFAULT_IGNORE.
6976 2014-02-19 Tom Tromey <tromey@redhat.com>
6978 * target-delegates.c: Rebuild.
6979 * target.c (update_current_target): Don't inherit or default
6980 to_terminal_ours_for_output.
6981 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6982 TARGET_DEFAULT_IGNORE.
6984 2014-02-19 Tom Tromey <tromey@redhat.com>
6986 * target-delegates.c: Rebuild.
6987 * target.c (update_current_target): Don't inherit or default
6988 to_terminal_inferior.
6989 * target.h (struct target_ops) <to_terminal_inferior>: Use
6990 TARGET_DEFAULT_IGNORE.
6992 2014-02-19 Tom Tromey <tromey@redhat.com>
6994 * target-delegates.c: Rebuild.
6995 * target.c (update_current_target): Don't inherit or default
6997 * target.h (struct target_ops) <to_terminal_init>: Use
6998 TARGET_DEFAULT_IGNORE.
7000 2014-02-19 Tom Tromey <tromey@redhat.com>
7002 * target-delegates.c: Rebuild.
7003 * target.c (update_current_target): Don't inherit or default
7004 to_can_accel_watchpoint_condition.
7005 * target.h (struct target_ops)
7006 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7008 2014-02-19 Tom Tromey <tromey@redhat.com>
7010 * target-delegates.c: Rebuild.
7011 * target.c (update_current_target): Don't inherit or default
7012 to_region_ok_for_hw_watchpoint.
7013 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7014 Use TARGET_DEFAULT_FUNC.
7016 2014-02-19 Tom Tromey <tromey@redhat.com>
7018 * target-delegates.c: Rebuild.
7019 * target.c (update_current_target): Don't inherit or default
7020 to_watchpoint_addr_within_range.
7021 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7022 Use TARGET_DEFAULT_FUNC.
7024 2014-02-19 Tom Tromey <tromey@redhat.com>
7026 * target-delegates.c: Rebuild.
7027 * target.c (update_current_target): Don't inherit or default
7028 to_remove_watchpoint.
7029 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7030 TARGET_DEFAULT_NORETURN.
7032 2014-02-19 Tom Tromey <tromey@redhat.com>
7034 * target-delegates.c: Rebuild.
7035 * target.c (update_current_target): Don't inherit or default
7036 to_insert_watchpoint.
7037 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7038 TARGET_DEFAULT_RETURN.
7040 2014-02-19 Tom Tromey <tromey@redhat.com>
7042 * target-delegates.c: Rebuild.
7043 * target.c (update_current_target): Don't inherit or default
7044 to_remove_hw_breakpoint.
7045 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7046 TARGET_DEFAULT_RETURN.
7048 2014-02-19 Tom Tromey <tromey@redhat.com>
7050 * target-delegates.c: Rebuild.
7051 * target.c (update_current_target): Don't inherit or default
7052 to_insert_hw_breakpoint.
7053 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7054 TARGET_DEFAULT_RETURN.
7056 2014-02-19 Tom Tromey <tromey@redhat.com>
7058 * target-delegates.c: Rebuild.
7059 * target.c (update_current_target): Don't inherit or default
7060 to_can_use_hw_breakpoint.
7061 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7062 TARGET_DEFAULT_RETURN.
7064 2014-02-19 Tom Tromey <tromey@redhat.com>
7066 * target-delegates.c: Rebuild.
7067 * target.c (update_current_target): Don't inherit or default
7069 * target.h (struct target_ops) <to_files_info>: Use
7070 TARGET_DEFAULT_IGNORE.
7072 2014-02-19 Tom Tromey <tromey@redhat.com>
7074 * target-delegates.c: Rebuild.
7075 * target.c (update_current_target): Don't inherit or default
7077 * target.h (struct target_ops) <to_store>: Use
7078 TARGET_DEFAULT_NORETURN.
7080 2014-02-19 Tom Tromey <tromey@redhat.com>
7082 * target-delegates.c: Rebuild.
7083 * target.c (update_current_target): Don't inherit or default
7085 * target.h (struct target_ops) <to_post_attach>: Use
7086 TARGET_DEFAULT_IGNORE.
7088 2014-02-19 Tom Tromey <tromey@redhat.com>
7090 * target-delegates.c: Rebuild.
7091 * target.c (update_current_target): Don't inherit or default
7093 (default_rcmd): New function.
7094 (do_monitor_command): Unconditionally delegate.
7095 * target.h (struct target_ops) <to_rmcd>: Use
7096 TARGET_DEFAULT_FUNC.
7098 2014-02-19 Tom Tromey <tromey@redhat.com>
7100 * target-delegates.c: Rebuild.
7101 * target.c (init_dummy_target): Don't initialize to_attach.
7102 (target_attach): Unconditionally delegate.
7103 * target.h (struct target_ops) <to_attach>: Use
7104 TARGET_DEFAULT_FUNC.
7106 2014-02-19 Tom Tromey <tromey@redhat.com>
7108 * target-delegates.c: Rebuild.
7109 * target.c (target_detach): Unconditionally delegate.
7110 (init_dummy_target): Don't initialize to_detach.
7111 * target.h (struct target_ops) <to_detach>: Use
7112 TARGET_DEFAULT_IGNORE.
7114 2014-02-19 Tom Tromey <tromey@redhat.com>
7116 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7118 (target_augmented_libraries_svr4_read): Add argument.
7119 * target.c (update_current_target): Update.
7120 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7123 2014-02-19 Tom Tromey <tromey@redhat.com>
7125 * target.h (struct target_ops) <to_call_history_range>: Add
7127 * target.c (target_call_history_range): Add argument.
7128 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7130 (record_btrace_call_history_from): Update.
7132 2014-02-19 Tom Tromey <tromey@redhat.com>
7134 * target.h (struct target_ops) <to_call_history_from>: Add
7136 * target.c (target_call_history_from): Add argument.
7137 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7140 2014-02-19 Tom Tromey <tromey@redhat.com>
7142 * target.h (struct target_ops) <to_call_history>: Add argument.
7143 * target.c (target_call_history): Add argument.
7144 * record-btrace.c (record_btrace_call_history): Add 'self'
7147 2014-02-19 Tom Tromey <tromey@redhat.com>
7149 * target.h (struct target_ops) <to_insn_history_range>: Add
7151 * target.c (target_insn_history_range): Add argument.
7152 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7154 (record_btrace_insn_history_from): Update.
7156 2014-02-19 Tom Tromey <tromey@redhat.com>
7158 * target.h (struct target_ops) <to_insn_history_from>: Add
7160 * target.c (target_insn_history_from): Add argument.
7161 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7164 2014-02-19 Tom Tromey <tromey@redhat.com>
7166 * target.h (struct target_ops) <to_insn_history>: Add argument.
7167 * target.c (target_insn_history): Add argument.
7168 * record-btrace.c (record_btrace_insn_history): Add 'self'
7171 2014-02-19 Tom Tromey <tromey@redhat.com>
7173 * target.h (struct target_ops) <to_goto_record>: Add argument.
7174 * target.c (target_goto_record): Add argument.
7175 * record-full.c (record_full_goto): Add 'self' argument.
7176 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7178 2014-02-19 Tom Tromey <tromey@redhat.com>
7180 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7181 * target.c (target_goto_record_end): Add argument.
7182 * record-full.c (record_full_goto_end): Add 'self' argument.
7183 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7185 2014-02-19 Tom Tromey <tromey@redhat.com>
7187 * target.h (struct target_ops) <to_goto_record_begin>: Add
7189 * target.c (target_goto_record_begin): Add argument.
7190 * record-full.c (record_full_goto_begin): Add 'self' argument.
7191 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7194 2014-02-19 Tom Tromey <tromey@redhat.com>
7196 * target.h (struct target_ops) <to_record_is_replaying>: Add
7198 * target.c (target_record_is_replaying): Add argument.
7199 * record-full.c (record_full_is_replaying): Add 'self' argument.
7200 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7202 (record_btrace_xfer_partial, record_btrace_store_registers)
7203 (record_btrace_prepare_to_store, record_btrace_resume)
7204 (record_btrace_wait, record_btrace_decr_pc_after_break)
7205 (record_btrace_find_new_threads, record_btrace_thread_alive):
7208 2014-02-19 Tom Tromey <tromey@redhat.com>
7210 * target.h (struct target_ops) <to_delete_record>: Add argument.
7211 * target.c (target_delete_record): Add argument.
7212 * record-full.c (record_full_delete): Add 'self' argument.
7214 2014-02-19 Tom Tromey <tromey@redhat.com>
7216 * target.h (struct target_ops) <to_save_record>: Add argument.
7217 * target.c (target_save_record): Add argument.
7218 * record-full.c (record_full_save): Add 'self' argument.
7219 (record_full_save): Add 'self' argument.
7221 2014-02-19 Tom Tromey <tromey@redhat.com>
7223 * target.h (struct target_ops) <to_info_record>: Add argument.
7224 * target.c (target_info_record): Add argument.
7225 * record.c (info_record_command): Add argument.
7226 * record-full.c (record_full_info): Add 'self' argument.
7227 * record-btrace.c (record_btrace_info): Add 'self' argument.
7229 2014-02-19 Tom Tromey <tromey@redhat.com>
7231 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7232 * target.c (target_stop_recording): Add argument.
7233 * record.c (record_stop): Add argument.
7234 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7237 2014-02-19 Tom Tromey <tromey@redhat.com>
7239 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7240 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7241 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7243 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7244 (_initialize_amd64_linux_nat): Use it.
7245 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7246 (_initialize_i386_linux_nat): Use it.
7248 2014-02-19 Tom Tromey <tromey@redhat.com>
7250 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7251 * target.c (target_teardown_btrace): Add argument.
7252 * remote.c (remote_teardown_btrace): Add 'self' argument.
7253 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7255 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7258 2014-02-19 Tom Tromey <tromey@redhat.com>
7260 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7261 * target.c (target_disable_btrace): Add argument.
7262 * remote.c (remote_disable_btrace): Add 'self' argument.
7263 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7265 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7268 2014-02-19 Tom Tromey <tromey@redhat.com>
7270 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7271 * target.c (target_enable_btrace): Add argument.
7272 * remote.c (remote_enable_btrace): Add 'self' argument.
7273 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7275 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7278 2014-02-19 Tom Tromey <tromey@redhat.com>
7280 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7281 (target_can_use_agent): Add argument.
7282 * target.c (update_current_target): Update.
7283 * remote.c (remote_can_use_agent): Add 'self' argument.
7284 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7286 2014-02-19 Tom Tromey <tromey@redhat.com>
7288 * target.h (struct target_ops) <to_use_agent>: Add argument.
7289 (target_use_agent): Add argument.
7290 * target.c (update_current_target): Update.
7291 * remote.c (remote_use_agent): Add 'self' argument.
7292 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7294 2014-02-19 Tom Tromey <tromey@redhat.com>
7296 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7297 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7298 (target_traceframe_info): Add argument.
7299 * target.c (update_current_target): Update.
7300 * remote.c (remote_traceframe_info): Add 'self' argument.
7301 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7303 2014-02-19 Tom Tromey <tromey@redhat.com>
7305 * target.h (target_static_tracepoint_markers_by_strid): Add
7307 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7309 * target.c (update_current_target): Update.
7310 * remote.c (struct target_ops)
7311 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7312 * linux-nat.c (struct target_ops)
7313 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7315 2014-02-19 Tom Tromey <tromey@redhat.com>
7317 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7319 (target_static_tracepoint_marker_at): Add argument.
7320 * target.c (update_current_target): Update.
7321 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7324 2014-02-19 Tom Tromey <tromey@redhat.com>
7326 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7327 (target_set_permissions): Add argument.
7328 * target.c (update_current_target): Update.
7329 * remote.c (remote_set_permissions): Add 'self' argument.
7330 (remote_start_remote): Update.
7332 2014-02-19 Tom Tromey <tromey@redhat.com>
7334 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7335 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7336 (target_get_tib_address): Add argument.
7337 * target.c (update_current_target): Update.
7338 * remote.c (remote_get_tib_address): Add 'self' argument.
7340 2014-02-19 Tom Tromey <tromey@redhat.com>
7342 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7343 (target_set_trace_notes): Add argument.
7344 * target.c (update_current_target): Update.
7345 * remote.c (remote_set_trace_notes): Add 'self' argument.
7347 2014-02-19 Tom Tromey <tromey@redhat.com>
7349 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7351 (target_set_trace_buffer_size): Add argument.
7352 * target.c (update_current_target): Update.
7353 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7355 2014-02-19 Tom Tromey <tromey@redhat.com>
7357 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7359 (target_set_circular_trace_buffer): Add argument.
7360 * target.c (update_current_target): Update.
7361 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7364 2014-02-19 Tom Tromey <tromey@redhat.com>
7366 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7368 (target_set_disconnected_tracing): Add argument.
7369 * target.c (update_current_target): Update.
7370 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7372 2014-02-19 Tom Tromey <tromey@redhat.com>
7374 * target.h (struct target_ops)
7375 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7376 (target_get_min_fast_tracepoint_insn_len): Add argument.
7377 * target.c (update_current_target): Update.
7378 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7381 2014-02-19 Tom Tromey <tromey@redhat.com>
7383 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7385 (target_get_raw_trace_data): Add argument.
7386 * target.c (update_current_target): Update.
7387 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7389 2014-02-19 Tom Tromey <tromey@redhat.com>
7391 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7393 (target_upload_trace_state_variables): Add argument.
7394 * target.c (update_current_target): Update.
7395 * remote.c (remote_upload_trace_state_variables): Add 'self'
7397 (remote_start_remote): Update.
7399 2014-02-19 Tom Tromey <tromey@redhat.com>
7401 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7403 (target_upload_tracepoints): Add argument.
7404 * target.c (update_current_target): Update.
7405 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7406 (remote_start_remote): Update.
7408 2014-02-19 Tom Tromey <tromey@redhat.com>
7410 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7411 (target_save_trace_data): Add argument.
7412 * target.c (update_current_target): Update.
7413 * remote.c (remote_save_trace_data): Add 'self' argument.
7415 2014-02-19 Tom Tromey <tromey@redhat.com>
7417 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7419 * target.h (struct target_ops)
7420 <to_get_trace_state_variable_value>: Add argument.
7421 (target_get_trace_state_variable_value): Add argument.
7422 * target.c (update_current_target): Update.
7423 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7425 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7427 2014-02-19 Tom Tromey <tromey@redhat.com>
7429 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7430 * target.h (struct target_ops) <to_trace_find>: Add argument.
7431 (target_trace_find): Add argument.
7432 * target.c (update_current_target): Update.
7433 * remote.c (remote_trace_find): Add 'self' argument.
7434 * ctf.c (ctf_trace_find): Add 'self' argument.
7436 2014-02-19 Tom Tromey <tromey@redhat.com>
7438 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7439 (target_trace_stop): Add argument.
7440 * target.c (update_current_target): Update.
7441 * remote.c (remote_trace_stop): Add 'self' argument.
7443 2014-02-19 Tom Tromey <tromey@redhat.com>
7445 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7446 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7448 (target_get_tracepoint_status): Add argument.
7449 * target.c (update_current_target): Update.
7450 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7452 2014-02-19 Tom Tromey <tromey@redhat.com>
7454 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7455 * target.h (struct target_ops) <to_get_trace_status>: Add
7457 (target_get_trace_status): Add argument.
7458 * target.c (update_current_target): Update.
7459 * remote.c (remote_get_trace_status): Add 'self' argument.
7460 (remote_start_remote, remote_can_download_tracepoint): Update.
7461 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7463 2014-02-19 Tom Tromey <tromey@redhat.com>
7465 * target.h (struct target_ops) <to_trace_start>: Add argument.
7466 (target_trace_start): Add argument.
7467 * target.c (update_current_target): Update.
7468 * remote.c (remote_trace_start): Add 'self' argument.
7470 2014-02-19 Tom Tromey <tromey@redhat.com>
7472 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7474 (target_trace_set_readonly_regions): Add argument.
7475 * target.c (update_current_target): Update.
7476 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7479 2014-02-19 Tom Tromey <tromey@redhat.com>
7481 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7483 (target_disable_tracepoint): Add argument.
7484 * target.c (update_current_target): Update.
7485 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7487 2014-02-19 Tom Tromey <tromey@redhat.com>
7489 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7491 (target_enable_tracepoint): Add argument.
7492 * target.c (update_current_target): Update.
7493 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7495 2014-02-19 Tom Tromey <tromey@redhat.com>
7497 * target.h (struct target_ops) <to_download_trace_state_variable>:
7499 (target_download_trace_state_variable): Add argument.
7500 * target.c (update_current_target): Update.
7501 * remote.c (remote_download_trace_state_variable): Add 'self'
7504 2014-02-19 Tom Tromey <tromey@redhat.com>
7506 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7508 (target_can_download_tracepoint): Add argument.
7509 * target.c (update_current_target): Update.
7510 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7512 2014-02-19 Tom Tromey <tromey@redhat.com>
7514 * target.h (struct target_ops) <to_download_tracepoint>: Add
7516 (target_download_tracepoint): Add argument.
7517 * target.c (update_current_target): Update.
7518 * remote.c (remote_download_tracepoint): Add 'self' argument.
7520 2014-02-19 Tom Tromey <tromey@redhat.com>
7522 * target.h (struct target_ops) <to_trace_init>: Add argument.
7523 (target_trace_init): Add argument.
7524 * target.c (update_current_target): Update.
7525 * remote.c (remote_trace_init): Add 'self' argument.
7527 2014-02-19 Tom Tromey <tromey@redhat.com>
7529 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7530 * target.c (target_fileio_readlink): Add argument.
7531 * remote.c (remote_hostio_readlink): Add 'self' argument.
7532 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7534 2014-02-19 Tom Tromey <tromey@redhat.com>
7536 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7537 * target.c (target_fileio_unlink): Add argument.
7538 * remote.c (remote_hostio_unlink): Add 'self' argument.
7539 (remote_file_delete): Update.
7540 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7542 2014-02-19 Tom Tromey <tromey@redhat.com>
7544 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7545 * target.c (target_fileio_close): Add argument.
7546 * remote.c (remote_hostio_close): Add 'self' argument.
7547 (remote_hostio_close_cleanup): Update.
7548 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7550 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7552 2014-02-19 Tom Tromey <tromey@redhat.com>
7554 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7555 * target.c (target_fileio_pread): Add argument.
7556 * remote.c (remote_hostio_pread): Add 'self' argument.
7557 (remote_bfd_iovec_pread, remote_file_get): Update.
7558 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7560 2014-02-19 Tom Tromey <tromey@redhat.com>
7562 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7563 * target.c (target_fileio_pwrite): Add argument.
7564 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7565 (remote_file_put): Update.
7566 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7568 2014-02-19 Tom Tromey <tromey@redhat.com>
7570 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7571 * target.c (target_fileio_open): Add argument.
7572 * remote.c (remote_hostio_open): Add 'self' argument.
7573 (remote_bfd_iovec_open): Add 'self' argument.
7574 (remote_file_put): Add 'self' argument.
7575 (remote_file_get): Add 'self' argument.
7576 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7578 2014-02-19 Tom Tromey <tromey@redhat.com>
7580 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7582 (target_can_run_breakpoint_commands): Add argument.
7583 * target.c (update_current_target): Update.
7584 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7586 (remote_insert_breakpoint): Add 'self' argument.
7587 (remote_insert_hw_breakpoint): Add 'self' argument.
7588 (remote_can_run_breakpoint_commands): Add 'self' argument.
7590 2014-02-19 Tom Tromey <tromey@redhat.com>
7592 * target.h (struct target_ops)
7593 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7594 (target_supports_evaluation_of_breakpoint_conditions): Add
7596 * target.c (update_current_target): Update.
7597 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7599 (remote_insert_breakpoint): Add 'self' argument.
7600 (remote_insert_hw_breakpoint): Add 'self' argument.
7601 (remote_supports_cond_breakpoints): Add 'self' argument.
7603 2014-02-19 Tom Tromey <tromey@redhat.com>
7605 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7607 (target_supports_string_tracing): Add argument.
7608 * target.c (update_current_target): Update.
7609 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7611 2014-02-19 Tom Tromey <tromey@redhat.com>
7613 * target.h (struct target_ops)
7614 <to_supports_disable_randomization>: Add argument.
7615 * target.c (find_default_supports_disable_randomization): Add
7617 (target_supports_disable_randomization): Add argument.
7618 (find_default_supports_disable_randomization): Add 'self'
7620 * remote.c (extended_remote_supports_disable_randomization): Add
7622 (remote_supports_disable_randomization): Add 'self' argument.
7623 (extended_remote_create_inferior): Update.
7624 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7627 2014-02-19 Tom Tromey <tromey@redhat.com>
7629 * target.h (struct target_ops)
7630 <to_supports_enable_disable_tracepoint>: Add argument.
7631 (target_supports_enable_disable_tracepoint): Add argument.
7632 * target.c (update_current_target): Update.
7633 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7636 2014-02-19 Tom Tromey <tromey@redhat.com>
7638 * target.h (struct target_ops) <to_supports_multi_process>: Add
7640 (target_supports_multi_process): Add argument.
7641 * target.c (update_current_target): Update.
7642 * remote.c (remote_supports_multi_process): Add 'self' argument.
7643 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7645 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7648 2014-02-19 Tom Tromey <tromey@redhat.com>
7650 * target.h (struct target_ops) <to_execution_direction>: Add
7652 (target_execution_direction): Add argument.
7653 * target.c (default_execution_direction): Add 'self' argument.
7654 * record-full.c (record_full_execution_direction): Add 'self'
7657 2014-02-19 Tom Tromey <tromey@redhat.com>
7659 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7661 (target_can_execute_reverse): Add argument.
7662 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7663 * record-full.c (record_full_can_execute_reverse): Add 'self'
7665 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7668 2014-02-19 Tom Tromey <tromey@redhat.com>
7670 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7671 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7673 (target_get_ada_task_ptid): Add argument.
7674 * target.c (update_current_target): Update.
7675 (default_get_ada_task_ptid): Add 'self' argument.
7676 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7677 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7678 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7680 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7682 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7684 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7686 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7687 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7690 2014-02-19 Tom Tromey <tromey@redhat.com>
7692 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7693 (target_goto_bookmark): Add argument.
7694 * target.c (dummy_goto_bookmark): Add 'self' argument.
7695 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7697 2014-02-19 Tom Tromey <tromey@redhat.com>
7699 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7700 (target_get_bookmark): Add argument.
7701 * target.c (dummy_get_bookmark): Add 'self' argument.
7702 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7704 2014-02-19 Tom Tromey <tromey@redhat.com>
7706 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7708 (target_make_corefile_notes): Add argument.
7709 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7710 * procfs.c (procfs_make_note_section): Add 'self' argument.
7711 (procfs_make_note_section): Add 'self' argument.
7712 (procfs_make_note_section): Add 'self' argument.
7713 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7715 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7716 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7717 * exec.c (exec_make_note_section): Add 'self' argument.
7718 (exec_make_note_section): Add 'self' argument.
7720 2014-02-19 Tom Tromey <tromey@redhat.com>
7722 * target.h (struct target_ops) <to_find_memory_regions>: Add
7724 (target_find_memory_regions): Add argument.
7725 * target.c (dummy_find_memory_regions): Add 'self' argument.
7726 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7727 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7728 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7729 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7730 * exec. (exec_do_find_memory_regions): New global.
7731 (exec_set_find_memory_regions): Rewrite.
7732 (exec_find_memory_regions): New function.
7733 (init_exec_ops): Use exec_find_memory_regions.
7735 2014-02-19 Tom Tromey <tromey@redhat.com>
7737 * target.h (struct target_ops) <to_supports_non_stop>: Add
7739 * target.c (find_default_supports_non_stop): Add argument.
7740 (target_supports_non_stop): Add argument.
7741 (find_default_supports_non_stop): Add 'self' argument.
7742 * remote.c (remote_supports_non_stop): Add 'self' argument.
7743 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7745 2014-02-19 Tom Tromey <tromey@redhat.com>
7747 * target.h (struct target_ops) <to_log_command>: Add argument.
7748 (target_log_command): Add argument.
7749 * serial.h (serial_log_command): Add 'self' argument.
7750 * serial.c (serial_log_command): Add 'self' argument.
7752 2014-02-19 Tom Tromey <tromey@redhat.com>
7754 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7755 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7757 (target_pid_to_exec_file): Add argument.
7758 * target.c (debug_to_pid_to_exec_file): Add argument.
7759 (update_current_target): Update.
7760 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7761 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7762 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7763 (linux_handle_extended_wait): Update.
7764 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7765 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7766 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7767 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7769 2014-02-19 Tom Tromey <tromey@redhat.com>
7771 * target.h (struct target_ops) <to_rcmd>: Add argument.
7772 (target_rcmd): Add argument.
7773 * target.c (debug_to_rcmd): Add argument.
7774 (update_current_target, do_monitor_command): Update.
7775 * remote.c (remote_rcmd): Add 'self' argument.
7776 * monitor.c (monitor_rcmd): Add 'self' argument.
7778 2014-02-19 Tom Tromey <tromey@redhat.com>
7780 * windows-nat.c (windows_stop): Add 'self' argument.
7781 * target.h (struct target_ops) <to_stop>: Add argument.
7782 * target.c (target_stop): Add argument.
7783 (debug_to_stop): Add argument.
7784 (update_current_target): Update.
7785 * remote.c (remote_stop): Add 'self' argument.
7786 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7787 (gdbsim_cntrl_c): Update.
7788 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7789 * procfs.c (procfs_stop): Add 'self' argument.
7790 * nto-procfs.c (procfs_stop): Add 'self' argument.
7791 * monitor.c (monitor_stop): Add 'self' argument.
7792 (monitor_open): Update.
7793 * linux-nat.c (linux_nat_stop): Add argument.
7794 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7795 * gnu-nat.c (gnu_stop): Add 'self' argument.
7796 * darwin-nat.c (darwin_stop): Add 'self' argument.
7798 2014-02-19 Tom Tromey <tromey@redhat.com>
7800 * target.h (struct target_ops) <to_thread_name>: Add argument.
7801 * target.c (target_thread_name): Add argument.
7802 (update_current_target): Update.
7803 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7805 2014-02-19 Tom Tromey <tromey@redhat.com>
7807 * target.h (struct target_ops) <to_extra_thread_info>: Add
7809 (target_extra_thread_info): Add argument.
7810 * target.c (update_current_target): Update.
7811 * remote.c (remote_threads_extra_info): Add 'self' argument.
7812 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7814 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7815 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7816 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7818 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7820 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7822 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7825 2014-02-19 Tom Tromey <tromey@redhat.com>
7827 * target.h (struct target_ops) <to_program_signals>: Add argument.
7828 * target.c (target_program_signals): Add argument.
7829 * remote.c (remote_program_signals): Add 'self' argument.
7831 2014-02-19 Tom Tromey <tromey@redhat.com>
7833 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7834 * target.c (target_pass_signals): Add argument.
7835 * remote.c (remote_pass_signals): Add 'self' argument.
7836 (remote_start_remote): Update.
7837 * procfs.c (procfs_pass_signals): Add 'self' argument.
7838 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7839 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7840 (linux_nat_create_inferior, linux_nat_attach): Update.
7842 2014-02-19 Tom Tromey <tromey@redhat.com>
7844 * windows-nat.c (windows_can_run): Add 'self' argument.
7845 * target.h (struct target_ops) <to_can_run>: Add argument.
7846 (target_can_run): Add argument.
7847 * target.c (debug_to_can_run): Add argument.
7848 (update_current_target): Update.
7849 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7850 * inf-child.c (inf_child_can_run): Add 'self' argument.
7851 * go32-nat.c (go32_can_run): Add 'self' argument.
7853 2014-02-19 Tom Tromey <tromey@redhat.com>
7855 * target.h (struct target_ops) <to_has_exited>: Add argument.
7856 (target_has_exited): Add argument.
7857 * target.c (debug_to_has_exited): Add argument.
7858 (update_current_target): Update.
7860 2014-02-19 Tom Tromey <tromey@redhat.com>
7862 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7864 (target_set_syscall_catchpoint): Add argument.
7865 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7867 * target.c (update_current_target): Update.
7869 2014-02-19 Tom Tromey <tromey@redhat.com>
7871 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7873 (target_remove_exec_catchpoint): Add argument.
7874 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7875 (update_current_target): Update.
7876 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7879 2014-02-19 Tom Tromey <tromey@redhat.com>
7881 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7883 (target_insert_exec_catchpoint): Add argument.
7884 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7885 (update_current_target): Update.
7886 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7889 2014-02-19 Tom Tromey <tromey@redhat.com>
7891 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7893 (target_remove_vfork_catchpoint): Add argument.
7894 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7895 (update_current_target): Update.
7896 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7899 2014-02-19 Tom Tromey <tromey@redhat.com>
7901 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7903 (target_insert_vfork_catchpoint): Add argument.
7904 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7905 (update_current_target): Update.
7906 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7909 2014-02-19 Tom Tromey <tromey@redhat.com>
7911 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7913 (target_remove_fork_catchpoint): Add argument.
7914 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7915 (update_current_target): Update.
7916 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7919 2014-02-19 Tom Tromey <tromey@redhat.com>
7921 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7923 (target_insert_fork_catchpoint): Add argument.
7924 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7925 (update_current_target): Update.
7926 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7929 2014-02-19 Tom Tromey <tromey@redhat.com>
7931 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7933 (target_post_startup_inferior): Add argument.
7934 * target.c (debug_to_post_startup_inferior): Add argument.
7935 (update_current_target): Update.
7936 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7938 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7940 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7942 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7944 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7946 (super_post_startup_inferior): Likewise.
7947 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7949 (super_post_startup_inferior): Likewise.
7950 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7951 Add 'self' argument.
7952 (super_post_startup_inferior): Likewise.
7954 2014-02-19 Tom Tromey <tromey@redhat.com>
7956 * target.h (struct target_ops) <to_load>: Add argument.
7957 * target.c (target_load): Add argument.
7958 (debug_to_load): Add argument.
7959 (update_current_target): Update.
7960 * remote.c (remote_load): Add 'self' argument.
7961 * remote-sim.c (gdbsim_load): Add 'self' argument.
7962 * remote-mips.c (mips_load): Add 'self' argument.
7963 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7964 * monitor.c (monitor_load): Add 'self' argument.
7965 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7967 2014-02-19 Tom Tromey <tromey@redhat.com>
7969 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7970 (target_terminal_info): Add argument.
7971 * target.c (debug_to_terminal_info): Add argument.
7972 (default_terminal_info): Likewise.
7973 * inflow.c (child_terminal_info): Add 'self' argument.
7974 * inferior.h (child_terminal_info): Add 'self' argument.
7975 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7977 2014-02-19 Tom Tromey <tromey@redhat.com>
7979 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7981 (target_terminal_save_ours): Add argument.
7982 * target.c (debug_to_terminal_save_ours): Add argument.
7983 (update_current_target): Update.
7984 * inflow.c (terminal_save_ours): Add 'self' argument.
7985 * inferior.h (terminal_save_ours): Add 'self' argument.
7987 2014-02-19 Tom Tromey <tromey@redhat.com>
7989 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7990 (target_terminal_ours): Add argument.
7991 * target.c (debug_to_terminal_ours): Add argument.
7992 (update_current_target): Update.
7993 * remote.c (remote_terminal_ours): Add 'self' argument.
7994 (remote_close): Update.
7995 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7996 * inflow.c (terminal_ours): Add 'self' argument.
7997 * inferior.h (terminal_ours): Add 'self' argument.
7998 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8000 2014-02-19 Pedro Alves <palves@redhat.com>
8001 Tom Tromey <tromey@redhat.com>
8003 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8005 (target_terminal_ours_for_output): Add argument.
8006 * target.c (debug_to_terminal_ours_for_output): Add argument.
8007 (update_current_target): Update.
8008 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8009 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8010 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8014 * target.h (struct target_ops) <to_terminal_inferior>: Add
8016 * target.c (target_terminal_inferior): Add argument.
8017 (update_current_target): Update.
8018 * remote.c (remote_terminal_inferior): Add 'self' argument.
8019 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8020 * inflow.c (terminal_inferior): Add 'self' argument.
8021 * inferior.h (terminal_inferior): Add 'self' argument.
8022 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8023 (go32_terminal_inferior): Add 'self' argument.
8025 2014-02-19 Tom Tromey <tromey@redhat.com>
8027 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8028 (target_terminal_init): Add argument.
8029 * target.c (debug_to_terminal_init): Add argument.
8030 (update_current_target): Update.
8031 * inflow.c (terminal_init_inferior): Add 'self' argument.
8032 * inferior.h (terminal_init_inferior): Add 'self' argument.
8033 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8034 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8036 2014-02-19 Tom Tromey <tromey@redhat.com>
8038 * target.h (struct target_ops)
8039 <to_can_accel_watchpoint_condition>: Add argument.
8040 (target_can_accel_watchpoint_condition): Add argument.
8041 * target.c (debug_to_can_accel_watchpoint_condition): Add
8043 (update_current_target): Update.
8044 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8047 2014-02-19 Tom Tromey <tromey@redhat.com>
8049 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8051 (target_region_ok_for_hw_watchpoint): Add argument.
8052 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8053 (default_region_ok_for_hw_watchpoint): Add argument.
8054 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8055 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8057 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8059 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8061 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8063 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8065 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8067 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8068 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8070 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8071 Add 'self' argument.
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8075 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8077 (target_insert_watchpoint): Add argument.
8078 * target.c (debug_to_insert_watchpoint): Add argument.
8079 (update_current_target): Update.
8080 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8081 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8082 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8083 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8084 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8085 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8087 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8088 (procfs_insert_hw_watchpoint): Add 'self' argument.
8089 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8091 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8093 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8095 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8096 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8098 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8101 2014-02-19 Tom Tromey <tromey@redhat.com>
8103 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8105 (target_remove_watchpoint): Add argument.
8106 * target.c (debug_to_remove_watchpoint): Add argument.
8107 (update_current_target): Update.
8108 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8109 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8110 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8111 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8112 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8113 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8115 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8116 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8118 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8120 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8122 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8123 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8125 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8128 2014-02-19 Tom Tromey <tromey@redhat.com>
8130 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8132 (target_remove_hw_breakpoint): Add argument.
8133 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8134 (update_current_target): Update.
8135 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8136 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8138 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8139 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8141 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8146 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8148 (target_insert_hw_breakpoint): Add argument.
8149 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8150 (update_current_target): Update.
8151 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8152 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8154 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8155 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8156 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8158 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8161 2014-02-19 Tom Tromey <tromey@redhat.com>
8163 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8165 (target_can_use_hardware_watchpoint): Add argument.
8166 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8167 (update_current_target): Update.
8168 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8170 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8172 * remote.c (remote_check_watch_resources): Add 'self' argument.
8173 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8174 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8176 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8177 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8179 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8181 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8183 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8185 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8187 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8189 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8190 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8192 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8195 2014-02-19 Tom Tromey <tromey@redhat.com>
8197 * target.h (struct target_ops) <to_post_attach>: Add argument.
8198 (target_post_attach): Add argument.
8199 * target.c (debug_to_post_attach): Add argument.
8200 (update_current_target): Update.
8201 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8202 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8203 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8204 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8205 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8207 2014-02-19 Tom Tromey <tromey@redhat.com>
8209 * windows-nat.c (windows_close): Add 'self' argument.
8210 * tracepoint.c (tfile_close): Add 'self' argument.
8211 * target.h (struct target_ops) <to_close>: Add argument.
8212 * target.c (target_close): Add argument.
8213 (update_current_target): Update.
8214 * remote.c (remote_close): Add 'self' argument.
8215 * remote-sim.c (gdbsim_close): Add 'self' argument.
8216 * remote-mips.c (mips_close): Add 'self' argument.
8217 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8218 * record-full.c (record_full_close): Add 'self' argument.
8219 * record-btrace.c (record_btrace_close): Add 'self' argument.
8220 * monitor.h (monitor_close): Add 'self' argument.
8221 * monitor.c (monitor_close): Add 'self' argument.
8222 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8223 * linux-nat.c (linux_nat_close): Add argument.
8224 * go32-nat.c (go32_close): Add 'self' argument.
8225 * exec.c (exec_close_1): Add 'self' argument.
8226 * ctf.c (ctf_close): Add 'self' argument.
8227 * corelow.c (core_close): Add 'self' argument.
8228 (core_close_cleanup): Update.
8229 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8230 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8232 2014-02-19 Tom Tromey <tromey@redhat.com>
8234 * remote.c (remote_load): New function.
8235 (init_remote_ops): Use it.
8237 2014-02-19 Tom Tromey <tromey@redhat.com>
8239 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8241 * common/linux-btrace.h (linux_supports_btrace): Update.
8242 * remote.c (remote_supports_btrace): Add "self" argument.
8243 * target-delegates.c: Rebuild.
8244 * target.c (target_supports_btrace): Remove.
8245 * target.h (struct target_ops) <to_supports_btrace>: Add
8246 target_ops argument.
8247 (target_supports_btrace): New define.
8249 2014-02-19 Tom Tromey <tromey@redhat.com>
8251 * record-full.c (record_full_beneath_to_resume_ops)
8252 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8253 (record_full_beneath_to_wait)
8254 (record_full_beneath_to_store_registers_ops)
8255 (record_full_beneath_to_store_registers)
8256 (record_full_beneath_to_xfer_partial_ops)
8257 (record_full_beneath_to_xfer_partial)
8258 (record_full_beneath_to_insert_breakpoint_ops)
8259 (record_full_beneath_to_insert_breakpoint)
8260 (record_full_beneath_to_remove_breakpoint_ops)
8261 (record_full_beneath_to_remove_breakpoint)
8262 (record_full_beneath_to_stopped_by_watchpoint)
8263 (record_full_beneath_to_stopped_data_address)
8264 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8265 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8266 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8267 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8268 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8269 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8270 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8271 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8272 (record_full_resume, record_full_wait_1)
8273 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8274 (record_full_store_registers, record_full_xfer_partial)
8275 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8276 (record_full_async, record_full_core_xfer_partial): Use target
8278 * target-delegates.c: Rebuild.
8279 * target.c (current_xfer_partial): Remove.
8280 (update_current_target): Do not INHERIT or de_fault
8281 to_insert_breakpoint, to_remove_breakpoint,
8282 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8283 to_is_async_p, to_async. Do not set to_xfer_partial field.
8284 (default_xfer_partial): Simplify.
8285 (current_xfer_partial): Remove.
8286 (target_wait, target_resume): Simplify.
8287 (find_default_can_async_p, find_default_is_async_p): Update.
8288 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8289 to_xfer_partial, to_stopped_by_watchpoint,
8290 to_stopped_data_address.
8291 (target_store_registers): Simplify.
8292 (forward_target_remove_breakpoint)
8293 (forward_target_insert_breakpoint): Remove.
8294 (target_remove_breakpoint, target_insert_breakpoint)
8295 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8296 * target.h (struct target_ops) <to_resume, to_wait,
8297 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8298 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8299 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8301 (forward_target_remove_breakpoint)
8302 (forward_target_insert_breakpoint): Remove.
8303 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8305 (record_btrace_insert_breakpoint): Delegate directly.
8307 2014-02-19 Tom Tromey <tromey@redhat.com>
8310 * target-delegates.c: New file.
8311 * target.c: Include target-delegates.c.
8312 (init_dummy_target): Call install_dummy_methods.
8313 (complete_target_initialization): Call install_delegators.
8314 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8315 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8316 * make-target-delegates: New file.
8318 2014-02-19 Tom Tromey <tromey@redhat.com>
8320 * record.c (find_record_target): Use find_target_at.
8321 * target.c (find_target_at): New function.
8322 * target.h (find_target_at): Declare.
8324 2014-02-19 Tom Tromey <tromey@redhat.com>
8326 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8328 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8330 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8331 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8333 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8335 * linux-nat.c (save_sigtrap): Update.
8336 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8337 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8338 (linux_nat_close): Update.
8339 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8341 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8343 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8344 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8345 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8346 (tmp_to_async): Add 'ops' argument.
8347 (record_full_stopped_by_watchpoint, record_full_async)
8348 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8350 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8351 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8352 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8353 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8354 (remote_is_async_p, remote_async): Add 'ops' argument.
8355 (remote_stopped_data_address): Update.
8356 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8357 * target.c (update_current_target)
8358 (find_default_can_async_p, find_default_is_async_p): Update.
8359 (init_dummy_target): Update.
8360 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8361 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8362 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8363 (target_can_async_p, target_is_async_p, target_async)
8364 (target_stopped_by_watchpoint): Update.
8366 2014-02-19 Yao Qi <yao@codesourcery.com>
8369 * gdbarch.sh: Remove startup_gdbarch.
8370 * gdbarch.c: Regenerated.
8371 * gdbarch.h: Likewise.
8373 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8375 * rl78-tdep.c (rl78_g10_register_name): New function.
8376 (rl78_return_value): Add g10 support.
8377 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8380 2014-02-17 Doug Evans <xdje42@gmail.com>
8382 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8383 (SUBDIR_GUILE_SRCS): Ditto.
8384 (scm-gsmob.o): Ditto.
8386 2014-02-17 Yao Qi <yao@codesourcery.com>
8388 * gnu-nat.c (ILL_RPC): Declare defined function.
8390 2014-02-17 Yao Qi <yao@codesourcery.com>
8392 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8393 mach_msg_type_number_t.
8394 (gnu_write_inferior): Likewise.
8396 2014-02-17 Yao Qi <yao@codesourcery.com>
8398 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8400 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8401 (inf_validate_procs, inf_signal): Likewise.
8402 (S_exception_raise_request): Likewise.
8403 (do_mach_notify_dead_name): Likewise.
8404 (steal_exc_port): Likewise.
8405 (gnu_read_inferior): Change 'copy_count''s type to
8406 mach_msg_type_number_t.
8407 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8410 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8412 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8413 flag. Adjust all users; in particular...
8414 (gnu_wait): ..., don't decrement its value in here...
8415 (gnu_create_inferior): ..., and instead set the flag in here,
8416 around the startup_inferior call, and call that one with
8417 START_INFERIOR_TRAPS_EXPECTED.
8419 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8420 (ILL_RPC): ... new macro.
8421 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8422 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8423 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8424 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8425 functions with ILL_RPC macro.
8426 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8427 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8428 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8429 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8430 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8431 (S_proc_getlogin_reply, S_proc_getsid_reply)
8432 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8433 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8434 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8435 (S_proc_getnports_reply, S_proc_is_important_reply)
8436 (S_proc_get_code_reply): New stub functions, generated with
8439 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8440 collected the type check structures.
8442 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8444 2014-02-14 Doug Evans <dje@google.com>
8446 * target.c (target_write_partial): Fix result type.
8448 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8450 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8451 the proper offsets to access fpregset_t.
8453 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8455 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8456 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8457 * h8300-tdep.c (setmachinelist): Remove global.
8458 * hppa-tdep.c (hppa_sigtramp): Remove global.
8459 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8460 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8461 * ravenscar-thread.c (update_target_observer): Remove global.
8462 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8464 2014-02-12 Tom Tromey <tromey@redhat.com>
8466 * common/rsp-low.c: Update comments.
8467 * common/rsp-low.h: Update comments.
8469 2014-02-12 Tom Tromey <tromey@redhat.com>
8471 * common/rsp-low.c (convert_ascii_to_int): Remove.
8472 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8474 2014-02-12 Tom Tromey <tromey@redhat.com>
8476 * common/rsp-low.h (unhexify): Don't declare.
8477 * common/rsp-low.c (unhexify): Remove.
8479 2014-02-12 Tom Tromey <tromey@redhat.com>
8481 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8482 * common/rsp-low.c (convert_int_to_ascii): Remove.
8484 2014-02-12 Tom Tromey <tromey@redhat.com>
8486 * common/rsp-low.h (hexify): Don't declare.
8487 * common/rsp-low.c (hexify): Remove.
8489 2014-02-12 Tom Tromey <tromey@redhat.com>
8491 * common/rsp-low.c (hexify): Never take strlen of argument.
8493 2014-02-12 Tom Tromey <tromey@redhat.com>
8495 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8496 * remote.c (extended_remote_run, remote_rcmd)
8497 (remote_download_trace_state_variable, remote_save_trace_data)
8498 (remote_set_trace_notes): Update.
8499 * tracepoint.c (encode_source_string, tfile_write_status)
8500 (tfile_write_uploaded_tsv): Update.
8502 2014-02-12 Tom Tromey <tromey@redhat.com>
8504 * tracepoint.c: Include rsp-low.h.
8505 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8506 * remote.c: Include rsp-low.h.
8507 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8508 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8509 (remote_unescape_input): Move to common/rsp-low.c.
8510 * common/rsp-low.h: New file.
8511 * common/rsp-low.c: New file.
8512 * Makefile.in (SFILES): Add common/rsp-low.c.
8513 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8514 (COMMON_OBS): Add rsp-low.o.
8515 (rsp-low.o): New target.
8517 2014-02-12 Tom Tromey <tromey@redhat.com>
8519 * utils.h: Include print-utils.h.
8520 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8521 (int_string, core_addr_to_string, core_addr_to_string_nz)
8522 (hex_string, hex_string_custom): Don't declare.
8523 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8524 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8525 (hex_string_custom, int_string, core_addr_to_string)
8526 (core_addr_to_string_nz, host_address_to_string): Move to
8527 common/print-utils.c.
8528 * common/print-utils.h: New file.
8529 * common/print-utils.c: New file
8530 * Makefile.in (SFILES): Add common/print-utils.c.
8531 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8532 (COMMON_OBS): Add print-utils.o.
8533 (print-utils.o): New target.
8535 2014-02-12 Tom Tromey <tromey@redhat.com>
8537 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8539 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8541 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8543 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8545 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8546 if a PT_IO ptrace request returns sucessfully but indicates that 0
8547 bytes were transferred.
8549 2014-02-12 Pedro Alves <palves@redhat.com>
8550 Kevin Buettner <kevinb@redhat.com>
8552 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8553 TYPE_INSTANCE_FLAG_CODE_SPACE.
8555 2014-02-12 Pedro Alves <palves@redhat.com>
8557 * h8300-tdep.c (pseudo_from_raw_register)
8558 (raw_from_pseudo_register): New functions.
8559 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8562 2014-02-12 Pedro Alves <palves@redhat.com>
8564 * h8300-tdep.c (h8300_register_sim_regno): New function.
8565 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8566 gdbarch_register_sim_regno hook.
8568 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8570 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8572 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8574 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8576 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8578 * obsd-tdep.h (obsd_init_abi): New prototype.
8579 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8580 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8581 (obsd_init_abi): New functions.
8582 * i386obsd-tdep.c: Include "obsd-tdep.h".
8583 (i386obsd_init_abi): Call obsd_init_abi.
8584 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8585 (amd64obsd_init_abi): Call obsd_init_abi.
8586 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8587 obsd-tdep.c to gdb_target_obs.
8589 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8591 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8592 double float arguments to 16-byte in the argument slots.
8594 2014-02-11 Doug Evans <xdje42@gmail.com>
8596 * configure.ac: Don't crash if pkg-config is not found and guile
8597 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8599 * configure: Regenerate.
8601 2014-02-11 Yao Qi <yao@codesourcery.com>
8603 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8604 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8605 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8606 * gnu-nat.c (gnu_xfer_memory): Likewise.
8607 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8608 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8609 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8610 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8612 2014-02-11 Yao Qi <yao@codesourcery.com>
8614 * target.h (enum target_xfer_error): Rename to ...
8615 (enum target_xfer_status): ... it. New. All users updated.
8616 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8618 (TARGET_XFER_STATUS_ERROR_P): New macro.
8619 (target_xfer_error_to_string): Remove declaration.
8620 (target_xfer_status_to_string): Declare.
8621 (target_xfer_partial_ftype): Adjust it.
8622 (struct target_ops) <to_xfer_partial>: Return
8623 target_xfer_status. Add argument xfered_len. Update
8625 * target.c (target_xfer_error_to_string): Rename to ...
8626 (target_xfer_status_to_string): ... it. New. All callers
8628 (target_read_live_memory): Likewise. Call target_xfer_partial
8629 instead of target_read.
8630 (memory_xfer_live_readonly_partial): Return
8631 target_xfer_status. Add argument xfered_len.
8632 (raw_memory_xfer_partial): Likewise.
8633 (memory_xfer_partial_1): Likewise.
8634 (memory_xfer_partial): Likewise.
8635 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8636 properly. Update debug message.
8637 (default_xfer_partial, current_xfer_partial): Likewise.
8638 (target_write_partial): Likewise.
8639 (target_read_partial): Likewise. All callers updated.
8640 (read_whatever_is_readable): Likewise.
8641 (target_write_with_progress): Likewise.
8642 (target_read_alloc_1): Likewise.
8644 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8645 * auxv.c (procfs_xfer_auxv): Likewise.
8646 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8647 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8648 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8649 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8650 * corefile.c (read_memory): Adjust.
8651 * corelow.c (core_xfer_partial): Likewise.
8652 * ctf.c (ctf_xfer_partial): Likewise.
8653 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8655 (darwin_xfer_partial): Likewise.
8656 * exec.c (section_table_xfer_memory_partial): Likewise. All
8658 (exec_xfer_partial): Likewise.
8659 * exec.h (section_table_xfer_memory_partial): Update
8661 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8663 (gnu_xfer_partial): Likewise.
8664 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8665 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8666 (ia64_hpux_xfer_solib_got): Likewise.
8667 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8668 type of 'partial_len' to ULONGEST.
8669 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8670 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8671 (linux_nat_xfer_partial): Likewise.
8672 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8673 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8674 * monitor.c (monitor_xfer_memory): Likewise.
8675 (monitor_xfer_partial): Likewise.
8676 * procfs.c (procfs_xfer_partial): Likewise.
8677 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8678 * record-full.c (record_full_xfer_partial): Likewise.
8679 (record_full_core_xfer_partial): Likewise.
8680 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8681 (gdbsim_xfer_partial): Likewise.
8682 * remote.c (remote_write_bytes_aux): Likewise. All callers
8684 (remote_write_bytes, remote_read_bytes): Likewise. All
8686 (remote_flash_erase): Likewise. All callers updated.
8687 (remote_write_qxfer): Likewise. All callers updated.
8688 (remote_read_qxfer): Likewise. All callers updated.
8689 (remote_xfer_partial): Likewise.
8690 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8691 (rs6000_xfer_shared_libraries): Likewise.
8692 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8693 (sol_thread_xfer_partial): Likewise.
8694 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8695 (sparc_xfer_partial): Likewise.
8696 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8698 (spu_xfer_partial): Likewise.
8699 * spu-multiarch.c (spu_xfer_partial): Likewise.
8700 * tracepoint.c (tfile_xfer_partial): Likewise.
8701 * windows-nat.c (windows_xfer_memory): Likewise.
8702 (windows_xfer_shared_libraries): Likewise.
8703 (windows_xfer_partial): Likewise.
8704 * valprint.c: Replace 'target_xfer_error' with
8705 'target_xfer_status' in comments.
8707 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8709 Checked in by Joel Brobecker <brobecker@adacore.com>.
8710 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8712 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8714 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8715 function parameters.
8717 2014-02-10 Will Newton <will.newton@linaro.org>
8719 * elfread.c (elf_rel_plt_read): Look for a .got section if
8720 looking up .got.plt fails.
8721 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8722 on address passed to elf_gnu_ifunc_record_cache.
8723 (elf_gnu_ifunc_resolve_addr): Likewise.
8724 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8726 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8728 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8729 (X_RETTURN): New macro.
8730 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8732 * sparc64-tdep.c (sparc64_init_abi): Hook
8733 sparc_in_function_epilogue_p.
8735 2014-02-10 Gary Benson <gbenson@redhat.com>
8737 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8738 Rename name_matcher to symbol_matcher.
8740 2014-02-10 Gary Benson <gbenson@redhat.com>
8742 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8743 Use expand_symtabs_file_matcher_ftype and
8744 expand_symtabs_symbol_matcher_ftype.
8746 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8748 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8749 (struct ada_symbol_cache): New.
8750 (ada_free_symbol_cache): Forward declare.
8751 (struct ada_pspace_data): New.
8752 (ada_pspace_data_handle): New static global.
8753 (get_ada_pspace_data, ada_pspace_data_cleanup)
8754 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8755 (cache_space, cache): Delete, now folded inside struct
8757 (ada_get_symbol_cache): New function.
8758 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8760 (_initialize_ada_language): Remove initialization of cache_space.
8761 Move call to observer_attach_inferior_exit up, grouping it
8762 with the other observer registrations inside this function.
8763 Rename command to be more general. Add call to
8764 register_program_space_data_with_cleanup.
8766 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8768 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8769 ada_new_objfile_observer.
8770 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8771 (_initialize_tasks): Update uses of ada_new_objfile_observer
8772 and ada_tasks_normal_stop_observer.
8774 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8776 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8777 returned by the 'Length attribute to integer.
8779 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8781 * ada-lang.c (_initialize_ada_language): Initialize
8782 cache_space obstack.
8784 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8786 * ada-lang.c (HASH_SIZE): New macro.
8787 (struct cache_entry): New type.
8788 (cache_space, cache): New static globals.
8789 (ada_clear_symbol_cache, find_entry): New functions.
8790 (lookup_cached_symbol, cache_symbol): Implement.
8791 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8792 (_initialize_ada_language): Attach ada_new_objfile_observer
8793 and ada_free_objfile_observer.
8795 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8797 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8798 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8799 struct block * parameter.
8800 (ada_lookup_symbol_list_worker): Constify local variable "block".
8801 Remove cast which is no longer necessary.
8803 2014-02-10 Doug Evans <xdje42@gmail.com>
8805 Add Guile as an extension language.
8806 * NEWS: Mention Guile scripting.
8807 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8808 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8809 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8810 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8811 (CLIBS): Add GUILE_LIBS.
8812 (install-guile): New rule.
8813 (guile.o): New rule.
8814 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8815 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8816 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8817 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8818 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8819 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8820 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8821 * configure.ac: New option --with-guile.
8822 * configure: Regenerate.
8823 * config.in: Regenerate.
8824 * auto-load.c: Remove #include "python/python.h". Add #include
8825 "gdb/section-scripts.h".
8826 (source_section_scripts): Handle Guile scripts.
8827 (_initialize_auto_load): Add name of Guile objfile script to
8828 scripts-directory help text.
8829 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8830 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8831 (struct breakpoint): New member scm_bp_object.
8832 * defs.h (enum command_control_type): New value guile_control.
8833 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8835 (show_user): Update comment.
8836 (_initialize_cli_cmds): Update help text for "show user". Update help
8837 text for max-user-call-depth.
8838 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8840 (multi_line_command_p): Add guile_control.
8841 (print_command_lines): Handle guile_control.
8842 (execute_control_command, recurse_read_control_structure): Ditto.
8843 (process_next_line): Recognize "guile" commands.
8844 * disasm.c (gdb_disassemble_info): Make non-static.
8845 * disasm.h: #include "dis-asm.h".
8846 (struct gdbarch): Add forward decl.
8847 (gdb_disassemble_info): Declare.
8848 * extension.c: #include "guile/guile.h".
8849 (extension_languages): Add guile.
8850 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8851 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8852 * gdbtypes.c (get_unsigned_type_max): New function.
8853 (get_signed_type_minmax): New function.
8854 * gdbtypes.h (get_unsigned_type_max): Declare.
8855 (get_signed_type_minmax): Declare.
8856 * guile/README: New file.
8857 * guile/guile-internal.h: New file.
8858 * guile/guile.c: New file.
8859 * guile/guile.h: New file.
8860 * guile/scm-arch.c: New file.
8861 * guile/scm-auto-load.c: New file.
8862 * guile/scm-block.c: New file.
8863 * guile/scm-breakpoint.c: New file.
8864 * guile/scm-disasm.c: New file.
8865 * guile/scm-exception.c: New file.
8866 * guile/scm-frame.c: New file.
8867 * guile/scm-gsmob.c: New file.
8868 * guile/scm-iterator.c: New file.
8869 * guile/scm-lazy-string.c: New file.
8870 * guile/scm-math.c: New file.
8871 * guile/scm-objfile.c: New file.
8872 * guile/scm-ports.c: New file.
8873 * guile/scm-pretty-print.c: New file.
8874 * guile/scm-safe-call.c: New file.
8875 * guile/scm-string.c: New file.
8876 * guile/scm-symbol.c: New file.
8877 * guile/scm-symtab.c: New file.
8878 * guile/scm-type.c: New file.
8879 * guile/scm-utils.c: New file.
8880 * guile/scm-value.c: New file.
8881 * guile/lib/gdb.scm: New file.
8882 * guile/lib/gdb/boot.scm: New file.
8883 * guile/lib/gdb/experimental.scm: New file.
8884 * guile/lib/gdb/init.scm: New file.
8885 * guile/lib/gdb/iterator.scm: New file.
8886 * guile/lib/gdb/printing.scm: New file.
8887 * guile/lib/gdb/types.scm: New file.
8888 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8889 (VPATH): Add $(GUILE_SRCDIR).
8890 (GUILE_DIR): New variable.
8891 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8892 (all): Add stamp-guile dependency.
8893 (stamp-guile): New rule.
8894 (clean-guile, install-guile, uninstall-guile): New rules.
8895 (install-only): Add install-guile dependency.
8896 (uninstall): Add uninstall-guile dependency.
8897 (clean): Add clean-guile dependency.
8899 2014-02-09 Doug Evans <xdje42@gmail.com>
8901 Revert this patch (which I approved, mea culpa).
8903 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8905 * Makefile.in (all-lib): Remove.
8906 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8908 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8910 Fix Python stack corruption.
8911 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8914 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8916 * Makefile.in (all-lib): Remove.
8917 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8919 2014-02-07 Doug Evans <dje@google.com>
8921 * extension-priv.h (extension_language_script_ops): Add comment.
8922 (extension_language_ops): Add comment.
8923 (active_ext_lang_state): Fix typo in comment.
8925 2014-02-07 Pedro Alves <palves@redhat.com>
8927 PR breakpoints/16292
8928 * infrun.c (handle_signal_stop) <signal arrives while stepping
8929 over a breakpoint>: Switch back to the stepping thread.
8931 2014-02-07 Yao Qi <yao@codesourcery.com>
8933 * target.c (target_xfer_partial): Return zero if LEN is zero.
8935 2014-02-07 Yao Qi <yao@codesourcery.com>
8937 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8938 (ld_so_xfer_auxv): Likewise.
8939 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8940 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8941 * corelow.c (core_xfer_partial): Likewise.
8942 * ctf.c (ctf_xfer_partial): Likewise.
8943 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8944 (darwin_xfer_partial): Likewise.
8945 * exec.c (exec_xfer_partial): Likewise.
8946 * gnu-nat.c (gnu_xfer_partial): Likewise.
8947 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8948 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8949 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8950 * linux-nat.c (linux_xfer_siginfo): Likewise.
8951 (linux_proc_xfer_spu): Likewise.
8952 * procfs.c (procfs_xfer_partial): Likewise.
8953 * record-full.c (record_full_xfer_partial): Likewise.
8954 (record_full_core_xfer_partial): Likewise.
8955 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8956 * remote.c (remote_write_qxfer): Likewise.
8957 (remote_write_qxfer, remote_read_qxfer): Likewise.
8958 (remote_xfer_partial): Likewise.
8959 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8960 (rs6000_xfer_shared_libraries): Likewise.
8961 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8962 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8963 (spu_xfer_partial): Likewise.
8964 * target.c (memory_xfer_partial_1): Likewise.
8965 * tracepoint.c (tfile_xfer_partial): Likewise.
8966 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8967 (windows_xfer_partial): Likewise.
8969 2014-02-07 Yao Qi <yao@codesourcery.com>
8971 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8973 (core_xfer_shared_libraries_aix): Likewise.
8974 * gdbarch.c, gdbarch.h: Regenerated.
8975 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8976 ULONGEST. Change 'len_avail' type to ULONGEST.
8977 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8978 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8980 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8982 2014-02-07 Yao Qi <yao@codesourcery.com>
8984 * corefile.c (memory_error): Get 'exception' from ERR and pass
8985 'exception' to throw_error.
8987 2014-02-06 Doug Evans <xdje42@gmail.com>
8989 * configure.ac (libpython checking): Remove all but python.o from
8990 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8991 * configure: Regenerate.
8993 * Makefile.in (SFILES): Add extension.c.
8994 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8995 (COMMON_OBS): Add extension.o.
8996 * extension.h: New file.
8997 * extension-priv.h: New file.
8998 * extension.c: New file.
9000 * python/python-internal.h: #include "extension.h".
9001 (gdbpy_auto_load_enabled): Declare.
9002 (gdbpy_apply_val_pretty_printer): Declare.
9003 (gdbpy_apply_frame_filter): Declare.
9004 (gdbpy_preserve_values): Declare.
9005 (gdbpy_breakpoint_cond_says_stop): Declare.
9006 (gdbpy_breakpoint_has_cond): Declare.
9007 (void source_python_script_for_objfile): Delete.
9008 * python/python.c: #include "extension-priv.h".
9009 Delete inclusion of "observer.h".
9010 (extension_language_python): Moved here and renamed from
9011 script_language_python in py-auto-load.c.
9012 Redefined to be of type extension_language_defn.
9013 (python_extension_script_ops): New global.
9014 (python_extension_ops): New global.
9015 (struct python_env): New member previous_active.
9016 (restore_python_env): Call restore_active_ext_lang.
9017 (ensure_python_env): Call set_active_ext_lang.
9018 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9020 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9022 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9024 (gdbpy_eval_from_control_command): Renamed from
9025 eval_python_from_control_command, made static. New arg extlang.
9026 (gdbpy_source_script) Renamed from source_python_script, made static.
9028 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9029 result to int. New arg extlang.
9030 (gdbpy_source_objfile_script): Renamed from
9031 source_python_script_for_objfile, made static. New arg extlang.
9032 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9033 static. New args extlang, extlang_printers. Change result type to
9035 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9036 static. New arg extlang. Rename arg printers to extlang_printers
9037 and change type to ext_lang_type_printers *.
9038 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9039 static. Replace argument arg with extlang, extlang_printers.
9040 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9041 (!HAVE_PYTHON, source_python_script): Delete.
9042 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9043 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9044 (!HAVE_PYTHON, start_type_printers): Delete.
9045 (!HAVE_PYTHON, apply_type_printers): Delete.
9046 (!HAVE_PYTHON, free_type_printers): Delete.
9047 (_initialize_python): Delete call to observer_attach_before_prompt.
9048 (finalize_python): Set/restore active extension language.
9049 (gdbpy_finish_initialization) Renamed from
9050 finish_python_initialization, made static. New arg extlang.
9051 (gdbpy_initialized): New function.
9052 * python/python.h: #include "extension.h". Delete #include
9053 "value.h", "mi/mi-cmds.h".
9054 (extension_language_python): Declare.
9055 (GDBPY_AUTO_FILE_NAME): Delete.
9056 (enum py_bt_status): Moved to extension.h and renamed to
9058 (enum frame_filter_flags): Moved to extension.h.
9059 (enum py_frame_args): Moved to extension.h and renamed to
9060 ext_lang_frame_args.
9061 (finish_python_initialization): Delete.
9062 (eval_python_from_control_command): Delete.
9063 (source_python_script): Delete.
9064 (apply_val_pretty_printer): Delete.
9065 (apply_frame_filter): Delete.
9066 (preserve_python_values): Delete.
9067 (gdbpy_script_language_defn): Delete.
9068 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9069 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9071 * auto-load.c: #include "extension.h".
9072 (GDB_AUTO_FILE_NAME): Delete.
9073 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9074 (script_language_gdb): Delete, moved to extension.c and renamed to
9075 extension_language_gdb.
9076 (source_gdb_script_for_objfile): Delete.
9077 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9078 (loaded_script): Change type of language member to
9079 struct extension_language_defn *.
9080 (init_loaded_scripts_info): Initialize
9081 unsupported_script_warning_printed.
9082 (maybe_add_script): Make static. Change type of language arg to
9083 struct extension_language_defn *.
9084 (clear_section_scripts): Reset unsupported_script_warning_printed.
9085 (auto_load_objfile_script_1): Rewrite to use extension language API.
9086 (auto_load_objfile_script): Make public. Remove support-compiled-in
9087 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9088 (source_section_scripts): Rewrite to use extension language API.
9089 (load_auto_scripts_for_objfile): Rewrite to use
9090 auto_load_scripts_for_objfile.
9091 (collect_matching_scripts_data): Change type of language member to
9092 struct extension_language_defn *.
9093 (auto_load_info_scripts): Change type of language arg to
9094 struct extension_language_defn *.
9095 (unsupported_script_warning_print): New function.
9096 (script_not_found_warning_print): Make static.
9097 (_initialize_auto_load): Rewrite construction of scripts-directory
9099 * auto-load.h (struct objfile): Add forward decl.
9100 (struct script_language): Delete.
9101 (struct auto_load_pspace_info): Add forward decl.
9102 (struct extension_language_defn): Add forward decl.
9103 (maybe_add_script): Delete.
9104 (auto_load_objfile_script): Declare.
9105 (script_not_found_warning_print): Delete.
9106 (auto_load_info_scripts): Update prototype.
9107 (auto_load_gdb_scripts_enabled): Declare.
9108 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9109 auto_load_python_scripts_enabled and made public.
9110 (script_language_python): Delete, moved to python.c.
9111 (gdbpy_script_language_defn): Delete.
9112 (info_auto_load_python_scripts): Update to use
9113 extension_language_python.
9115 * breakpoint.c (condition_command): Replace call to
9116 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9117 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9118 with call to breakpoint_ext_lang_cond_says_stop.
9119 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9120 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9121 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9122 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9124 (local_setattro): Print name of extension language with existing
9127 * valprint.c (val_print, value_print): Update to call
9128 apply_ext_lang_val_pretty_printer.
9129 * cp-valprint.c (cp_print_value): Update call to
9130 apply_ext_lang_val_pretty_printer.
9131 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9132 (gdbpy_apply_val_pretty_printer): Renamed from
9133 apply_val_pretty_printer. New arg extlang.
9134 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9136 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9137 extension language API.
9138 * cli/cli-script.c (execute_control_command): Update to call
9139 eval_ext_lang_from_control_command.
9141 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9142 enum ext_lang_bt_status values. Update call to
9143 apply_ext_lang_frame_filter.
9144 (mi_cmd_stack_list_locals): Ditto.
9145 (mi_cmd_stack_list_args): Ditto.
9146 (mi_cmd_stack_list_variables): Ditto.
9147 * mi/mi-main.c: Delete #include "python/python-internal.h".
9148 Add #include "extension.h".
9149 (mi_cmd_list_features): Replace reference to python internal variable
9150 gdb_python_initialized with call to ext_lang_initialized_p.
9152 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9153 Update to use enum ext_lang_frame_args. Update to call
9154 apply_ext_lang_frame_filter.
9155 * python/py-framefilter.c (extract_sym): Update to use enum
9157 (extract_value, py_print_type, py_print_value): Ditto.
9158 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9159 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9160 (py_print_frame): Ditto.
9161 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9162 New arg extlang. Update to use enum ext_lang_bt_status.
9164 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9165 finish_python_initialization. Replace with call to
9166 finish_ext_lang_initialization.
9168 * typeprint.c (do_free_global_table): Update to call
9169 free_ext_lang_type_printers.
9170 (create_global_typedef_table): Update to call
9171 start_ext_lang_type_printers.
9172 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9173 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9174 (type_print_options): Change type of global_printers from "void *"
9175 to "struct ext_lang_type_printers *".
9177 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9178 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9179 (gdbpy_preserve_values): Renamed from preserve_python_values.
9181 (!HAVE_PYTHON, preserve_python_values): Delete.
9183 * utils.c (quit_flag): Delete, moved to extension.c.
9184 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9187 * eval.c: Delete #include "python/python.h".
9188 * main.c: Delete #include "python/python.h".
9190 * defs.h: Update comment.
9192 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9196 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9198 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9201 2014-02-05 Yao Qi <yao@codesourcery.com>
9203 * remote.c (remote_pass_signals): Remove local 'buf' and use
9205 (remote_program_signals): Likewise.
9207 2014-02-05 Yao Qi <yao@codesourcery.com>
9209 * ctf.c: Include "inferior.h" and "gdbthread.h".
9210 (CTF_PID): A new macro.
9211 (ctf_open): Call inferior_appeared and add_thread_silent.
9212 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9213 (ctf_thread_alive): New function.
9214 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9216 2014-02-05 Yao Qi <yao@codesourcery.com>
9220 2013-05-24 Yao Qi <yao@codesourcery.com>
9222 * tracepoint.c (TFILE_PID): Remove.
9223 (tfile_open): Don't add thread and inferior.
9224 (tfile_close): Don't set 'inferior_ptid'. Don't call
9225 exit_inferior_silent.
9226 (tfile_thread_alive): Remove.
9227 (init_tfile_ops): Don't set field 'to_thread_alive' of
9230 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9232 * remote.c (remote_start_remote): Call remote_check_symbols even
9233 if only symbol-file (not file) has been given.
9235 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9237 * gdbarch.sh (skip_entrypoint): New callback.
9238 * gdbarch.c, gdbarch.h: Regenerate.
9239 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9240 * infrun.c (fill_in_stop_func): Likewise.
9241 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9242 (ppc_elfv2_elf_make_msymbol_special): New function.
9243 (ppc_elfv2_skip_entrypoint): Likewise.
9244 (ppc_linux_init_abi): Install them for ELFv2.
9246 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9248 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9249 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9250 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9251 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9252 structures returned in GPRs.
9254 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9256 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9257 offset to the stack parameter list for the ELFv2 ABI.
9259 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9261 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9262 set_gdbarch_convert_from_func_ptr_addr and
9263 set_gdbarch_elf_make_msymbol_special for ELFv1.
9264 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9265 function descriptors on ELFv1.
9266 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9267 set up r12 at function entry.
9269 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9271 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9272 (struct gdbarch_tdep): New member elf_abi.
9274 * rs6000-tdep.c: Include "elf/ppc64.h".
9275 (rs6000_gdbarch_init): Detect ELF ABI version.
9277 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9279 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9280 within a register pair holding a DFP 128-bit value on little-endian.
9281 (ppc64_sysv_abi_return_value_base): Likewise.
9282 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9283 (dfp_pseudo_register_write): Likewise.
9285 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9287 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9288 offset on little-endian when passing _Decimal32.
9289 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9291 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9293 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9294 of the overlapped FP register within the VSX register on little-
9296 (efpr_pseudo_register_write): Likewise.
9298 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9300 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9301 offset on little-endian when passing small structures.
9303 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9305 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9306 (struct ppc64_sysv_argpos): New data structure.
9307 (ppc64_sysv_abi_push_float): Remove.
9308 (ppc64_sysv_abi_push_val): New function.
9309 (ppc64_sysv_abi_push_integer): Likewise.
9310 (ppc64_sysv_abi_push_freg): Likewise.
9311 (ppc64_sysv_abi_push_vreg): Likewise.
9312 (ppc64_sysv_abi_push_param): Likewise.
9313 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9314 (ppc64_sysv_abi_return_value_base): New function.
9315 (ppc64_sysv_abi_return_value): Refactor to use it.
9317 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9319 * NEWS: Document new target powerpc64le-*-linux*.
9321 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9323 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9324 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9326 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9327 register set used in ELF core dumps. Add floating-point register set.
9329 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9331 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9332 dwarf2_to_gdb[] table using symbolic constants. Adjust
9333 penultimate entry from number representing the PC register
9334 to symbolic constant representing the MDR register. Add
9335 constant for the PC register to the end of the table.
9337 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9339 * bsd-kvm.c: Include <sys/param.h>
9341 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9343 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9345 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9347 * ada-lang.h (clear_ada_sym_cache): Delete.
9349 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9351 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9353 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9355 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9356 the sigreturn register save area only if the syscall is
9359 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9361 * valops.c (value_slice): Minor reformatting.
9363 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9365 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9367 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9369 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9371 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9372 (ada_ignore_descriptive_types_p): New static global.
9373 (find_parallel_type_by_descriptive_type): Return immediately
9374 if ada_ignore_descriptive_types_p is set.
9375 (_initialize_ada_language): Register new commands "maintenance
9376 set ada", "maintenance show ada", "maintenance set ada
9377 ignore-descriptive-types" and "maintenance show ada
9378 ignore-descriptive-types".
9379 * NEWS: Add entry for new "maint ada set/show
9380 ignore-descriptive-types" commands.
9382 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9384 * record-btrace.c (record_btrace_close): Call btrace_teardown
9387 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9389 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9392 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9394 * ada-typeprint (type_is_full_subrange_of_target_type):
9396 (print_range): Add parameter bounds_prefered_p. If not set,
9397 try printing range types using the name of their base type.
9398 (print_range_type): Add parameter bounds_prefered_p.
9399 Use it in call to print_range.
9400 (print_array_type, ada_print_type): Update calls to print_range
9401 and print_range_type.
9403 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9405 * ada-typeprint.c (print_array_type, print_choices, print_range)
9406 (print_range_bound, print_dynamic_range_bound, print_range_type):
9409 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9411 * ada-typeprint.c (print_range): Add missing empty line
9412 after local declaration.
9414 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9416 * ada-valprint.c (print_optional_low_bound): Get index_type's
9417 target type for as long as it is a TYPE_CODE_RANGE.
9419 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9421 * procfs.c (procfs_make_note_section): Remove assertion and
9424 2014-01-24 Yao Qi <yao@codesourcery.com>
9426 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9427 * corelow.c (get_core_siginfo): Likewise.
9429 2014-01-24 Yao Qi <yao@codesourcery.com>
9431 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9432 ULONGEST. Don't check 'len' is negative.
9433 (remote_write_bytes): Change type of 'len' to ULONGEST.
9435 2014-01-23 Tom Tromey <tromey@redhat.com>
9438 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9439 Handle exception from frame.block.
9440 (FrameVars.fetch_frame_locals): Likewise.
9442 2014-01-23 Tom Tromey <tromey@redhat.com>
9445 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9446 on a NULL pointer. Move "goto error" to correct place.
9448 2014-01-23 Tom Tromey <tromey@redhat.com>
9451 * python/py-framefilter.c (apply_frame_filter): Call
9452 ensure_python_env after computing gdbarch.
9454 2014-01-23 Yao Qi <yao@codesourcery.com>
9456 * target.c (raw_memory_xfer_partial): Change argument type
9457 from void * to gdb_byte *.
9458 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9460 2014-01-22 Doug Evans <dje@google.com>
9462 New gdbserver option --debug-format=timestamp.
9465 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9467 * syscalls/s390x-linux.xml: New file.
9468 * syscalls/s390-linux.xml: New file.
9469 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9470 (XML_SYSCALL_FILENAME_S390X): Likewise.
9471 (op_svc): New enum value for SVC opcode.
9472 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9473 (s390_linux_get_syscall_number): New function.
9474 (s390_gdbarch_init): Register '*get_syscall_number' and the
9475 syscall xml file name.
9476 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9477 "s390-linux.xml" and "s390x-linux.xml".
9478 * NEWS: Announce new feature.
9480 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9482 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9484 2014-01-22 Pedro Alves <palves@redhat.com>
9486 * xtensa-config.c: Include defs.h.
9488 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9490 * common/common-utils.h: Add "ARI:" comment beside __func__
9493 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9495 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9496 documentation a bit.
9498 2014-01-21 Roland McGrath <mcgrathr@google.com>
9500 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9501 * configure: Regenerate.
9502 * aclocal.m4: Regenerate.
9503 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9504 New substituted variables.
9505 (install-strip): New target.
9506 (INSTALL_SCRIPT): New substituted variable.
9507 (FLAGS_TO_PASS): Add it.
9508 (install-only): Use $(INSTALL_SCRIPT) rather than
9509 $(INSTALL_PROGRAM) for gcore.
9511 2014-01-20 Tom Tromey <tromey@redhat.com>
9513 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9516 2014-01-20 Tom Tromey <tromey@redhat.com>
9518 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9519 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9520 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9521 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9522 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9523 (struct cmd_list_element) <flags>: Remove.
9524 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9525 doc_allocated>: New fields.
9526 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9528 * maint.c (maintenance_do_deprecate): Update.
9529 * top.c (execute_command): Update.
9531 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9533 * xtensa-linux-nat.c: Include asm/ptrace.h.
9535 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9537 * Makefile.in (SFILES): Add d-support.c.
9538 (COMMON_OBS): Add d-support.o.
9539 * d-lang.h (d_parse_symbol): Add comment, now defined in
9541 * d-lang.c (parse_call_convention)
9542 (parse_attributes, parse_function_types)
9543 (parse_function_args, parse_type, parse_identifier)
9544 (call_convention_p, d_parse_symbol): Move functions to ...
9545 * d-support.c: ... New file.
9547 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9549 * d-lang.h (d_parse_symbol): Add declaration.
9550 * d-lang.c (extract_identifiers)
9551 (extract_type_info): Remove functions.
9552 (parse_call_convention, parse_attributes)
9553 (parse_function_types, parse_function_args)
9554 (parse_type, parse_identifier, call_convention_p)
9555 (d_parse_symbol): New functions.
9556 (d_demangle): Use d_parse_symbol to demangle D symbols.
9558 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9560 * d-lang.h (struct builtin_d_type): New data type.
9561 (builtin_d_type): Add declaration.
9562 * d-lang.c (d_language_arch_info, build_d_types)
9563 (builtin_d_type): New functions.
9564 (enum d_primitive_types): New data type.
9565 (d_language_defn): Change c_language_arch_info to
9566 d_language_arch_info.
9567 (d_type_data): New static variable.
9568 (_initialize_d_language): Initialize d_type_data.
9570 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9572 * d-lang.h (d_main_name): Add declaration.
9573 * d-lang.c (d_main_name): New function.
9574 * symtab.c (find_main_name): Add call to d_main_name.
9576 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9578 * d-lang.c (d_language_defn): Change macro_expansion_c to
9581 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9583 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9585 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9587 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9588 gdb_exception" declaration.
9589 * remote.c (getpkt_or_notif_sane): Likewise.
9591 2014-01-17 Doug Evans <dje@google.com>
9593 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9594 function, contents of dirnames_to_char_ptr_vec_append moved here.
9595 (delim_string_to_char_ptr_vec): New function.
9596 (dirnames_to_char_ptr_vec_append): Rewrite.
9597 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9599 2014-01-17 Doug Evans <dje@google.com>
9601 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9603 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9604 #include "common-utils.h".
9605 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9606 * common/vec.h (VEC_ASSERT_PASS): Update.
9607 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9608 (MACH_CHECK_ERROR): Update.
9610 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9612 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9614 * gdbarch.h: Regenerate.
9616 2014-01-16 Tom Tromey <tromey@redhat.com>
9618 * value.c (struct value) <regnum>: Move earlier.
9620 2014-01-16 Tom Tromey <tromey@redhat.com>
9622 * remote.c (extended_remote_create_inferior): Rename from
9623 extended_remote_create_inferior_1. Add "ops" argument. Remove
9626 2014-01-16 Pedro Alves <palves@redhat.com>
9628 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9629 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9632 2014-01-16 Doug Evans <dje@google.com>
9634 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9636 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9638 * btrace.h (btrace_thread_flag): New.
9639 (struct btrace_thread_info) <flags>: New.
9640 * record-btrace.c (record_btrace_resume_thread)
9641 (record_btrace_find_thread_to_move, btrace_step_no_history)
9642 (btrace_step_stopped, record_btrace_start_replaying)
9643 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9644 (record_btrace_find_resume_thread): New.
9645 (record_btrace_resume, record_btrace_wait): Extend.
9646 (record_btrace_can_execute_reverse): New.
9647 (record_btrace_open): Fail in non-stop mode.
9648 (record_btrace_set_replay): Split into this, ...
9649 (record_btrace_stop_replaying): ... this, ...
9650 (record_btrace_clear_histories): ... and this.
9651 (init_record_btrace_ops): Init to_can_execute_reverse.
9652 * NEWS: Announce it.
9654 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9656 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9657 (forward_target_decr_pc_after_break)
9658 (target_decr_pc_after_break): New.
9659 * target.c (forward_target_decr_pc_after_break)
9660 (target_decr_pc_after_break): New.
9661 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9662 instead of gdbarch_decr_pc_after_break.
9663 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9664 instead of gdbarch_decr_pc_after_break.
9665 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9666 instead of gdbarch_decr_pc_after_break.
9667 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9668 instead of gdbarch_decr_pc_after_break.
9669 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9670 instead of gdbarch_decr_pc_after_break.
9671 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9672 instead of gdbarch_decr_pc_after_break.
9674 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9676 * btrace.c: Include regcache.h.
9677 (btrace_add_pc): New.
9678 (btrace_enable): Call btrace_add_pc.
9679 (btrace_is_empty): New.
9680 * btrace.h (btrace_is_empty): New.
9681 * record-btrace.c (require_btrace, record_btrace_info): Call
9684 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9686 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9687 Support delta reads.
9688 (linux_disable_btrace): Change return type.
9689 * common/linux-btrace.h (linux_read_btrace): Change parameters
9690 and return type to allow error reporting. Update users.
9691 (linux_disable_btrace): Change return type. Update users.
9692 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9694 (btrace_error): New.
9695 (btrace_block) <begin>: Comment on BEGIN == 0.
9696 * btrace.c (btrace_compute_ftrace): Start from the end of
9698 (btrace_stitch_trace, btrace_clear_history): New.
9699 (btrace_fetch): Read delta trace, return if replaying.
9700 (btrace_clear): Move clear history code to btrace_clear_history.
9701 (parse_xml_btrace): Throw an error if parsing failed.
9702 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9703 and return type to allow error reporting.
9704 (target_read_btrace): Change parameters and return type to allow
9706 * target.c (target_read_btrace): Update.
9707 * remote.c (remote_read_btrace): Support delta reads. Pass
9709 * NEWS: Announce it.
9711 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9713 * record.h (record_btrace_frame_unwind)
9714 (record_btrace_tailcall_frame_unwind): New declarations.
9715 * dwarf2-frame: Include record.h
9716 (dwarf2_frame_cfa): Throw an error for btrace frames.
9717 * record-btrace.c: Include hashtab.h.
9718 (btrace_get_bfun_name): New.
9719 (btrace_call_history): Call btrace_get_bfun_name.
9720 (struct btrace_frame_cache): New.
9722 (bfcache_hash, bfcache_eq, bfcache_new): New.
9723 (btrace_get_frame_function): New.
9724 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9725 (record_btrace_frame_this_id): Compute own id.
9726 (record_btrace_frame_prev_register): Provide PC, throw_error
9727 for all other registers.
9728 (record_btrace_frame_sniffer): Detect btrace frames.
9729 (record_btrace_tailcall_frame_sniffer): New.
9730 (record_btrace_frame_dealloc_cache): New.
9731 (record_btrace_frame_unwind): Add new functions.
9732 (record_btrace_tailcall_frame_unwind): New.
9733 (_initialize_record_btrace): Allocate cache.
9734 * btrace.c (btrace_clear): Call reinit_frame_cache.
9735 * NEWS: Announce it.
9737 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9739 * record-btrace.c (record_btrace_set_replay)
9740 (record_btrace_goto_begin, record_btrace_goto_end)
9741 (record_btrace_goto): New.
9742 (init_record_btrace_ops): Initialize them.
9743 * NEWS: Announce it.
9745 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9747 * record-btrace.c (record_btrace_find_new_threads)
9748 (record_btrace_thread_alive): New.
9749 (init_record_btrace_ops): Initialize to_find_new_threads and
9752 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9754 * record-btrace.c (record_btrace_resume): New.
9755 (record_btrace_wait): New.
9756 (init_record_btrace_ops): Initialize to_wait and to_resume.
9758 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9760 * record-btrace.c (record_btrace_xfer_partial)
9761 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9762 (record_btrace_allow_memory_access): New.
9763 (init_record_btrace_ops): Initialize new methods.
9764 * target.c (raw_memory_xfer_partial): Bail out if target reports
9765 that this memory is not available.
9767 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9769 * target.h (target_ops) <to_insert_breakpoint>
9770 <to_remove_breakpoint>: Add target_ops parameter.
9771 (forward_target_insert_breakpoint): New.
9772 (forward_target_remove_breakpoint): New.
9773 (memory_remove_breakpoint, memory_insert_breakpoint):
9774 Add target_ops parameter.
9775 * target.c (target_insert_breakpoint): Split into this and ...
9776 (forward_target_insert_breakpoint): ... this.
9777 (target_remove_breakpoint): Split into this and ...
9778 (forward_target_remove_breakpoint): ... this.
9779 (debug_to_insert_breakpoint): Add target_ops parameter.
9780 Call forward_target_insert_breakpoint.
9781 (debug_to_remove_breakpoint): Add target_ops parameter.
9782 Call forward_target_remove_breakpoint.
9783 (update_current_target): Do not inherit or default to_insert_breakpoint
9784 and to_remove_breakpoint.
9785 * corelow.c (ignore): Add target_ops parameter.
9786 * exec.c (ignore): Add target_ops parameter.
9787 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9788 Add target_ops parameter.
9789 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9790 Add target_ops parameter.
9791 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9792 Add target_ops parameter.
9793 * record-full.c (record_full_beneath_to_insert_breakpoint)
9794 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9795 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9796 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9797 (record_full_core_remove_breakpoint): Add target_ops parameter.
9799 (record_full_beneath_to_insert_breakpoint_ops)
9800 (record_full_beneath_to_remove_breakpoint_ops)
9801 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9802 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9803 tmp_to_remove_breakpoint_ops,
9804 record_full_beneath_to_insert_breakpoint_ops, and
9805 record_full_beneath_to_remove_breakpoint_ops.
9806 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9807 (m32r_remove_breakpoint): Add target_ops parameter.
9808 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9809 Add target_ops parameter.
9810 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9811 Add target_ops parameter.
9813 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9814 Markus Metzger <markus.t.metzger@intel.com>
9816 * record-btrace.c: Include frame-unwind.h.
9817 (record_btrace_frame_unwind_stop_reason)
9818 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9819 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9821 (init_record_btrace_ops): Install it.
9823 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9825 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9828 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9830 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9833 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9835 * frame-unwind.c: Include target.h.
9836 (frame_unwind_try_unwinder): New function with code from ...
9837 (frame_unwind_find_by_frame): ... here. New variable
9838 unwinder_from_target, call also target_get_unwinder)
9839 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9840 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9841 * target.h (struct target_ops): New fields to_get_unwinder and
9842 to_get_tailcall_unwinder.
9843 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9847 * record-btrace.c (record_btrace_fetch_registers)
9848 (record_btrace_store_registers)
9849 (record_btrace_to_prepare_to_store): New.
9850 (init_record_btrace_ops): Add the above.
9852 2014-01-16 Tom Tromey <tromey@redhat.com>
9854 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9855 * target.h (struct target_ops) <to_prepare_to_store>: Add
9857 (target_prepare_to_store): Add argument.
9858 * target.c (debug_to_prepare_to_store): Add argument.
9859 (update_current_target): Update.
9860 * remote.c (remote_prepare_to_store): Add 'self' argument.
9861 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9862 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9863 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9864 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9866 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9867 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9868 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9869 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9870 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9872 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9874 * btrace.h (replay) <replay>: New.
9875 (btrace_is_replaying): New.
9876 * btrace.c (btrace_clear): Free replay iterator.
9877 (btrace_is_replaying): New.
9878 * record-btrace.c (record_btrace_is_replaying): New.
9879 (record_btrace_info): Print insn number if replaying.
9880 (record_btrace_insn_history): Start at replay position.
9881 (record_btrace_call_history): Start at replay position.
9882 (init_record_btrace_ops): Init to_record_is_replaying.
9884 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9886 * record-btrace.c (record_btrace_insn_history_range): Include
9888 (record_btrace_insn_history_from): Adjust range.
9889 (record_btrace_call_history_range): Include
9891 (record_btrace_call_history_from): Adjust range.
9892 * NEWS: Announce changes.
9894 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9896 * record.h (enum record_print_flag)
9897 <record_print_indent_calls>: New.
9898 * record.c (get_call_history_modifiers): Recognize /c modifier.
9899 (_initialize_record): Document /c modifier.
9900 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9901 Reorder fields. Optionally indent the function name. Update
9903 * NEWS: Announce changes.
9905 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9907 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9909 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9911 * btrace.c (ftrace_new_function): Start counting at one.
9912 * record-btrace.c (record_btrace_info): Adjust number of calls
9914 * NEWS: Announce it.
9916 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9918 * record-btrace.c (btrace_call_history_insn_range): Print
9919 insn range as [begin, end].
9921 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9923 * btrace.h (struct btrace_func_link): New.
9924 (enum btrace_function_flag): New.
9925 (struct btrace_inst): Rename to ...
9926 (struct btrace_insn): ...this. Update all users.
9927 (struct btrace_func) <ibegin, iend>: Remove.
9928 (struct btrace_func_link): New.
9929 (struct btrace_func): Rename to ...
9930 (struct btrace_function): ...this. Update all users.
9931 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9932 (number, level, flags>: New.
9933 (struct btrace_insn_iterator): Rename to ...
9934 (struct btrace_insn_history): ...this.
9936 (struct btrace_insn_iterator, btrace_call_iterator): New.
9937 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9938 (struct btrace_target_info) <begin, end, level>
9939 <insn_history, call_history>: New.
9940 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9941 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9942 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9943 (btrace_call_number, btrace_call_begin, btrace_call_end)
9944 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9945 (btrace_find_function_by_number, btrace_set_insn_history)
9946 (btrace_set_call_history): New.
9947 * btrace.c (btrace_init_insn_iterator)
9948 (btrace_init_func_iterator, compute_itrace): Remove.
9949 (ftrace_print_function_name, ftrace_print_filename)
9950 (ftrace_skip_file): Change
9952 (ftrace_init_func): Remove.
9953 (ftrace_debug): Use new btrace_function fields.
9954 (ftrace_function_switched): Also consider gaining and
9955 losing symbol information).
9956 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9957 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9958 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9960 (ftrace_new_function): Move. Remove debug print.
9961 (ftrace_update_lines, ftrace_update_insns): New.
9962 (ftrace_update_function): Check for call, ret, and jump.
9963 (compute_ftrace): Renamed to ...
9964 (btrace_compute_ftrace): ...this. Rewritten to compute call
9966 (btrace_fetch, btrace_clear): Updated.
9967 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9968 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9969 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9970 (btrace_call_number, btrace_call_begin, btrace_call_end)
9971 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9972 (btrace_find_function_by_number, btrace_set_insn_history)
9973 (btrace_set_call_history): New.
9974 * record-btrace.c (require_btrace): Use new btrace thread
9976 (record_btrace_info, btrace_insn_history)
9977 (record_btrace_insn_history, record_btrace_insn_history_range):
9978 Use new btrace thread info fields and new iterator.
9979 (btrace_func_history_src_line): Rename to ...
9980 (btrace_call_history_src_line): ...this. Use new btrace
9982 (btrace_func_history): Rename to ...
9983 (btrace_call_history): ...this. Use new btrace thread info
9984 fields and new iterator.
9985 (record_btrace_call_history, record_btrace_call_history_range):
9986 Use new btrace thread info fields and new iterator.
9988 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9990 * frame.h (frame_id_build_unavailable_stack_special): New.
9991 * frame.c (frame_id_build_unavailable_stack_special): New.
9993 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9995 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9996 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9997 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9999 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10000 (i386_insn_is_jump, i386_jmp_p): New.
10001 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10002 insn_is_jump to gdbarch.
10003 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10004 * gdbarch.h: Regenerated.
10005 * gdbarch.c: Regenerated.
10006 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10007 (default_insn_is_jump): New.
10008 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10009 (default_insn_is_jump): New.
10011 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10013 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10015 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10016 (btrace_read_type) <btrace_read_new>: Change to ...
10017 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10019 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10021 * common/linux-btrace.c (linux_read_btrace): Free trace from
10022 previous iteration.
10024 2014-01-15 Doug Evans <dje@google.com>
10026 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10029 2014-01-15 Tom Tromey <tromey@redhat.com>
10031 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10032 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10033 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10034 (set_objfile_main_name): New function.
10035 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10036 language_of_main>: New fields.
10037 (set_objfile_main_name): Declare.
10038 * symtab.c (find_main_name): Loop over objfiles to find the main
10040 (set_main_name): Now static.
10041 (get_main_info): Add comment.
10042 * symtab.h (set_main_name): Don't declare.
10044 2014-01-15 Tom Tromey <tromey@redhat.com>
10046 * symtab.c (main_progspace_key): New global.
10047 (struct main_info): New.
10048 (name_of_main, language_of_main): Remove.
10049 (get_main_info, main_info_cleanup): New function.
10050 (set_main_name, main_name, main_language): Use get_main_info.
10051 (_initialize_symtab): Initialize main_progspace_key.
10053 2014-01-15 Tom Tromey <tromey@redhat.com>
10055 * dbxread.c (process_one_symbol): Update.
10056 * dwarf2read.c (read_partial_die): Update.
10057 * symfile.c (set_initial_language): Call main_language.
10058 * symtab.c (language_of_main): Now static.
10059 (set_main_name): Add 'lang' parameter.
10060 (find_main_name): Update.
10061 (main_language): New function.
10062 (symtab_observer_executable_changed): Update.
10063 * symtab.h (set_main_name): Update.
10064 (language_of_main): Remove.
10065 (main_language): Declare.
10067 2014-01-15 Tom Tromey <tromey@redhat.com>
10069 * symfile.c (init_entry_point_info): Use new "initialized" field.
10071 * objfiles.h (struct entry_point) <initialized>: New field.
10072 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10073 (struct objfile) <ei>: ...here. Remove.
10074 * objfiles.c (entry_point_address_query): Update.
10076 2014-01-15 Tom Tromey <tromey@redhat.com>
10078 * objfiles.c (entry_point_address_query): Relocate entry point
10080 (objfile_relocate1): Do not relocate entry point address.
10081 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10082 <the_bfd_section_index>: New field.
10083 * symfile.c (init_entry_point_info): Find the entry point's
10086 2014-01-15 Tom Tromey <tromey@redhat.com>
10088 * solib-frv.c (enable_break): Use entry_point_address_query.
10090 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10092 * NEWS: Add note on improved process record-replay on
10093 arm*-linux* targets.
10095 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10097 * arm-tdep.c (enum arm_record_result): New enum.
10098 (arm_record_unsupported_insn): New function.
10099 (arm_record_coproc_data_proc): Removed.
10100 (thumb2_record_ld_st_multiple): New function.
10101 (thumb2_record_ld_st_dual_ex_tbb): New function.
10102 (thumb2_record_data_proc_sreg_mimm): New function.
10103 (thumb2_record_ps_dest_generic): New function.
10104 (thumb2_record_branch_misc_cntrl): New function.
10105 (thumb2_record_str_single_data): New function.
10106 (thumb2_record_ld_mem_hints): New function.
10107 (thumb2_record_ld_word): New function.
10108 (thumb2_record_lmul_lmla_div): New function.
10109 (thumb2_record_decode_insn_handler): New function.
10110 (decode_insn): Add thumb32 instruction handlers.
10112 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10114 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10115 (struct arm_linux_record_tdep): Declare.
10116 (arm_canonicalize_syscall): New function.
10117 (arm_all_but_pc_registers_record): New function.
10118 (arm_linux_syscall_record): New function.
10119 (arm_linux_init_abi): Add syscall recording constructs.
10120 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10121 decoding. (arm_record_coproc_data_proc): Update arm syscall
10123 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10124 <arm_syscall_record>: New field.
10125 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10128 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10130 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10131 register for push instruction recording.
10133 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10135 * arm-tdep.c (thumb_record_misc): Update to correct logical
10136 error while recording ldm, ldmia and pop instructions.
10138 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10140 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10142 2014-01-15 Pedro Alves <palves@redhat.com>
10144 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10145 (go32_resume, go32_fetch_registers, store_register)
10146 (go32_store_registers, go32_prepare_to_store)
10147 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10148 (go32_create_inferior, go32_can_run, go32_terminal_init)
10149 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10152 2014-01-15 Tom Tromey <tromey@redhat.com>
10154 * target.h (async_callback_ftype): New typedef.
10155 (struct target_ops) <to_async>: Use it.
10157 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10159 * python/py-value.c (get_field_type): Remove unnecessary curly
10160 braces for single-statement if block.
10162 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10164 * python/py-type.c (convert_field): Add missing empty line
10165 after declarations.
10167 2014-01-14 Doug Evans <dje@google.com>
10169 * symfile.h (expand_symtabs_matching): Renamed from
10170 expand_partial_symbol_names. Update prototype.
10171 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10172 * symfile.c (expand_symtabs_matching): Renamed from
10173 expand_partial_symbol_names. New args file_matcher, kind.
10174 Rename arg fun to symbol_matcher.
10175 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10176 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10177 ada_expand_partial_symbol_name.
10178 (ada_make_symbol_completion_list): Update to call
10179 expand_symtabs_matching.
10180 (ada_add_global_exceptions): Call expand_symtabs_matching.
10181 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10182 call map_symbol_filenames.
10183 * symtab.c (sources_info): Update to call map_symbol_filenames.
10184 (search_symbols): Call expand_symtabs_matching.
10185 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10186 (default_make_symbol_completion_list_break_on): Update to call
10187 expand_symtabs_matching.
10188 (make_source_files_completion_list): Update to call
10189 map_symbol_filenames.
10191 2014-01-14 Doug Evans <dje@google.com>
10193 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10194 (expand_symtabs_symbol_matcher_ftype): New typedef.
10195 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10196 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10197 * symfile.c (expand_partial_symbol_names): Update to use
10198 expand_symtabs_symbol_matcher_ftype.
10199 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10200 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10201 Arg name_matcher renamed to symbol_matcher.
10202 * psymtab.c (recursively_search_psymtabs): Update to use
10203 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10205 (expand_symtabs_matching_via_partial): Update to use
10206 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10207 Arg name_matcher renamed to symbol_matcher.
10209 2014-01-14 Doug Evans <dje@google.com>
10211 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10212 (map_partial_symbol_filenames): Ditto.
10213 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10214 (map_partial_symbol_filenames): Ditto.
10215 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10216 (map_partial_symbol_filenames): Ditto.
10217 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10218 (map_partial_symbol_filenames): Ditto.
10219 * symtab.c: Delete #include "psymtab.h".
10221 2014-01-14 Pedro Alves <palves@redhat.com>
10222 Tom Tromey <tromey@redhat.com>
10224 * infrun.c (use_displaced_stepping): Use find_record_target
10225 instead of RECORD_IS_USED.
10226 (adjust_pc_after_break): Use record_full_is_used instead of
10228 * record-btrace.c (record_btrace_open): Call record_preopen
10229 instead of checking RECORD_IS_USED.
10230 * record-full.c (record_full_shortname)
10231 (record_full_core_shortname): New globals.
10232 (record_full_is_used): New function.
10233 (find_full_open): Call record_preopen instead of checking
10235 (init_record_full_ops): Set the target's shortname to
10236 record_full_shortname.
10237 (init_record_full_core_ops): Set the target's shortname to
10238 record_full_core_shortname.
10239 * record-full.h (record_full_is_used): Declare.
10240 * record.c (find_record_target): Make extern.
10241 (record_preopen): New function.
10242 * record.h (RECORD_IS_USED): Delete macro.
10243 (find_record_target, record_preopen): Declare functions.
10245 2014-01-14 Yao Qi <yao@codesourcery.com>
10247 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10248 'len''s type to ULONGEST.
10249 (core_xfer_shared_libraries_aix): Likewise.
10250 * gdbarch.c, gdbarch.h: Regenerated.
10251 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10252 Change type of 'len' to ULONGEST.
10253 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10254 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10256 2014-01-14 Yao Qi <yao@codesourcery.com>
10258 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10259 type of 'len' to ULONGEST.
10260 (linux_xfer_osdata_processgroups): Likewise.
10261 (linux_xfer_osdata_threads): Likewise.
10262 (linux_xfer_osdata_fds): Likewise.
10263 (linux_xfer_osdata_isockets): Likewise.
10264 (linux_xfer_osdata_shm): Likewise.
10265 (linux_xfer_osdata_sem): Likewise.
10266 (linux_xfer_osdata_msg): Likewise.
10267 (linux_common_xfer_osdata): Likewise.
10268 (struct osdata_type) <getter>: Likewise.
10269 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10272 2014-01-14 Yao Qi <yao@codesourcery.com>
10274 * target.h (target_xfer_partial_ftype): Update.
10275 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10277 * aix-thread.c (aix_thread_xfer_partial): Change type of
10278 argument 'len' to ULONGEST.
10279 * auxv.c (procfs_xfer_auxv): Likewise.
10280 (ld_so_xfer_auxv): Likewise.
10281 (memory_xfer_auxv): Likewise.
10282 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10283 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10284 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10285 * corelow.c (core_xfer_partial): Likewise.
10286 * ctf.c (ctf_xfer_partial): Likewise.
10287 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10289 (darwin_read_dyld_info): Likewise.
10290 (darwin_xfer_partial): Likewise.
10291 * exec.c (section_table_xfer_memory_partial): Likewise.
10292 (exec_xfer_partial): Likewise.
10293 * exec.h (section_table_xfer_memory_partial): Update
10295 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10296 instead of plongest.
10297 (gnu_xfer_partial): Likewise.
10298 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10299 (ia64_hpux_xfer_solib_got): Likewise.
10300 (ia64_hpux_xfer_partial): Likewise.
10301 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10302 * inf-ptrace.c (inf_ptrace_xfer_partial):
10303 * inf-ttrace.c (inf_ttrace_xfer_partial):
10304 * linux-nat.c (linux_xfer_siginfo): Likewise.
10305 (linux_nat_xfer_partial): Likewise.
10306 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10307 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10308 * monitor.c (monitor_xfer_memory): Likewise.
10309 (monitor_xfer_partial): Likewise.
10310 * procfs.c (procfs_xfer_partial): Likewise.
10311 * record-full.c (record_full_xfer_partial): Likewise.
10312 (record_full_core_xfer_partial): Likewise.
10313 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10314 instead of plongest.
10315 (gdbsim_xfer_partial): Likewise.
10316 * remote.c (remote_xfer_partial): Likewise.
10317 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10318 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10320 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10321 (rs6000_xfer_shared_libraries): Likewise.
10322 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10323 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10324 (sparc_xfer_partial): Likewise.
10325 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10326 (spu_xfer_partial): Likewise.
10327 * spu-multiarch.c (spu_xfer_partial): Likewise.
10328 * target.c (target_read_live_memory): Likewise.
10329 (memory_xfer_live_readonly_partial): Likewise.
10330 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10331 (target_xfer_partial, default_xfer_partial): Likewise.
10332 (current_xfer_partial): Likewise.
10333 * tracepoint.c (tfile_xfer_partial): Likewise.
10334 * windows-nat.c (windows_xfer_memory): Likewise. Call
10335 pulongest instead of plongest.
10336 (windows_xfer_partial): Likewise.
10337 (windows_xfer_shared_libraries): Likewise.
10339 2014-01-14 Yao Qi <yao@codesourcery.com>
10341 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10342 target_xfer_partial_ftype.
10344 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10348 * valops.c (value_struct_elt_bitpos): New function
10349 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10350 object to 'None' if the field name is an empty string ("").
10351 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10352 attribute to look for a field when 'name' is 'None'.
10353 (get_field_type): New function
10355 2014-01-13 Doug Evans <dje@google.com>
10358 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10359 (try_open_dwop_file): Ditto.
10360 * gdb_bfd.c: #include "vec.h".
10361 (bfdp): New typedef.
10362 (struct gdb_bfd_data): New member included_bfds.
10363 (gdb_bfd_unref): Unref all included bfds.
10364 (gdb_bfd_record_inclusion): New function.
10365 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10367 2014-01-13 Tom Tromey <tromey@redhat.com>
10369 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10371 2014-01-13 Tom Tromey <tromey@redhat.com>
10373 * defs.h (use_windows): Remove.
10374 * gdb.c (main): Update.
10375 * main.c (captured_main, gdb_main): Update.
10376 * main.h (struct captured_main_args) <use_windows>: Remove.
10377 * top.c (use_windows): Remove.
10379 2014-01-13 Tom Tromey <tromey@redhat.com>
10381 * defs.h (deprecated_flush_hook): Remove.
10383 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10386 * linux-thread-db.c (try_thread_db_load): Add parameter
10387 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10388 (try_thread_db_load_from_pdir_1): Move it there from here.
10389 (try_thread_db_load_from_sdir): Update caller.
10390 (try_thread_db_load_from_dir): Move it there from here.
10392 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10394 * regformats/regdat.sh: Always rewrite the register file.
10396 2014-01-13 Pedro Alves <palves@redhat.com>
10398 * Makefile.in (CHECK_HEADERS): New variable.
10399 (check-headers:): New rule.
10401 2014-01-13 Tom Tromey <tromey@redhat.com>
10403 * cli/cli-setshow.c (do_set_command): Update.
10404 * defs.h (deprecated_set_hook): Remove.
10405 * top.c (deprecated_set_hook): Remove.
10407 2014-01-13 Pedro Alves <palves@redhat.com>
10409 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10410 the tracepoint if the PC is a pseudo-register.
10412 2014-01-13 Tom Tromey <tromey@redhat.com>
10414 * defs.h (XCALLOC): Remove.
10415 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10416 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10417 * dwarf2loc.c (allocate_piece_closure): Likewise.
10418 * elfread.c (elf_symfile_segments): Likewise.
10419 (elf_symfile_segments): Likewise.
10420 * gdbtypes.c (copy_type_recursive): Likewise.
10421 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10422 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10423 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10425 * mt-tdep.c (mt_gdbarch_init): Likewise.
10426 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10428 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10429 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10430 * registry.c (registry_alloc_data): Likewise.
10431 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10432 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10433 * serial.c (serial_fdopen_ops): Likewise.
10434 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10436 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10437 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10440 2014-01-13 Tom Tromey <tromey@redhat.com>
10442 * defs.h (XMALLOC): Remove.
10443 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10444 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10445 * cli-out.c (struct ui_out *): Likewise.
10446 * cli/cli-dump.c (add_dump_command): Likewise.
10447 (add_dump_command): Likewise.
10448 * complaints.c (get_complaints): Likewise.
10449 (find_complaint): Likewise.
10450 * dwarf2-frame.c (execute_cfa_program): Likewise.
10451 * dwarf2read.c (abbrev_table_read_table): Likewise.
10452 * gdbarch.sh: Likewise.
10453 * gdbarch.c: Rebuild.
10454 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10455 * interps.c (interp_new): Likewise.
10456 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10457 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10458 * mi/mi-console.c (mi_console_file_new): Likewise.
10459 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10460 * mi/mi-out.c (mi_out_new): Likewise.
10461 * mi/mi-parse.c (mi_parse): Likewise.
10462 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10463 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10464 * observer.c (xalloc_observer_list_node): Likewise.
10465 * regcache.c (regcache_xmalloc_1): Likewise.
10466 * reggroups.c (reggroup_new): Likewise.
10467 (_initialize_reggroup): Likewise.
10468 * registry.c (register_data_with_cleanup): Likewise.
10469 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10470 * ser-base.c (serial_ttystate): Likewise.
10471 * ser-mingw.c (make_pipe_state): Likewise.
10472 * ser-pipe.c (pipe_open): Likewise.
10473 * serial.c (serial_open): Likewise.
10474 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10475 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10476 (tui_alloc_win_info): Likewise.
10477 (tui_add_content_elements): Likewise.
10478 * tui/tui-file.c (tui_file_new): Likewise.
10479 * tui/tui-out.c (tui_out_new): Likewise.
10480 * ui-file.c (mem_file_new): Likewise.
10481 * ui-out.c (push_level): Likewise.
10482 (make_cleanup_ui_out_end): Likewise.
10483 (append_header_to_list): Likewise.
10484 (ui_out_new): Likewise.
10485 * user-regs.c (user_reg_add_builtin): Likewise.
10487 2014-01-13 Tom Tromey <tromey@redhat.com>
10489 * defs.h (XZALLOC): Remove.
10490 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10491 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10492 (get_ada_tasks_inferior_data): Likewise.
10493 * auto-load.c (get_auto_load_pspace_data): Likewise.
10494 * auxv.c (get_auxv_inferior_data): Likewise.
10495 * bfd-target.c (target_bfd_reopen): Likewise.
10496 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10497 (deprecated_insert_raw_breakpoint): Likewise.
10498 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10499 * corelow.c (core_open): Likewise.
10500 * darwin-nat.c (darwin_check_new_threads): Likewise.
10501 (darwin_attach_pid): Likewise.
10502 * dummy-frame.c (dummy_frame_push): Likewise.
10503 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10504 * dwarf2loc.c (allocate_piece_closure): Likewise.
10505 * elfread.c (elf_symfile_segments): Likewise.
10506 * eval.c (ptrmath_type_p): Likewise.
10507 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10508 * gdbtypes.c (alloc_type_arch): Likewise.
10509 (alloc_type_instance): Likewise.
10510 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10511 * inf-child.c (inf_child_can_use_agent): Likewise.
10512 * inflow.c (get_inflow_inferior_data): Likewise.
10513 * infrun.c (save_infcall_suspend_state): Likewise.
10514 * jit.c (jit_reader_load): Likewise.
10515 (get_jit_objfile_data): Likewise.
10516 (get_jit_program_space_data): Likewise.
10517 (jit_object_open_impl): Likewise.
10518 (jit_symtab_open_impl): Likewise.
10519 (jit_block_open_impl): Likewise.
10520 (jit_frame_sniffer): Likewise.
10521 * linux-fork.c (add_fork): Likewise.
10522 * maint.c (make_command_stats_cleanup): Likewise.
10523 * objfiles.c (get_objfile_pspace_data): Likewise.
10524 * opencl-lang.c (struct lval_closure): Likewise.
10525 * osdata.c (osdata_start_osdata): Likewise.
10526 * progspace.c (new_address_space): Likewise.
10527 (add_program_space): Likewise.
10528 * remote-sim.c (get_sim_inferior_data): Likewise.
10529 * sh-tdep.c (sh_gdbarch_init): Likewise.
10530 * skip.c (Ignore): Likewise.
10531 (skip_delete_command): Likewise.
10532 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10533 (library_list_start_library): Likewise.
10534 (solib_aix_current_sos): Likewise.
10535 * solib-darwin.c (get_darwin_info): Likewise.
10536 (darwin_current_sos): Likewise.
10537 * solib-dsbt.c (get_dsbt_info): Likewise.
10538 * solib-ia64-hpux.c (new_so_list): Likewise.
10539 (ia64_hpux_get_solib_linkage_addr): Likewise.
10540 * solib-spu.c (append_ocl_sos): Likewise.
10541 (spu_current_sos): Likewise.
10542 * solib-svr4.c (get_svr4_info): Likewise.
10543 (svr4_keep_data_in_core): Likewise.
10544 (library_list_start_library): Likewise.
10545 (svr4_default_sos): Likewise.
10546 (svr4_read_so_list): Likewise.
10547 * solib-target.c (library_list_start_library): Likewise.
10548 (solib_target_current_sos): Likewise.
10549 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10550 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10551 * symfile.c (default_symfile_segments): Likewise.
10552 * target-descriptions.c (tdesc_data_init): Likewise.
10553 (tdesc_create_reg): Likewise.
10554 (struct tdesc_type *): Likewise.
10555 (tdesc_create_vector): Likewise.
10556 (tdesc_set_struct_size): Likewise.
10557 (struct tdesc_type *): Likewise.
10558 (tdesc_free_feature): Likewise.
10559 (tdesc_create_feature): Likewise.
10560 * windows-nat.c (windows_add_thread): Likewise.
10561 (windows_make_so): Likewise.
10562 * xml-support.c (gdb_xml_body_text): Likewise.
10563 (gdb_xml_create_parser_and_cleanup): Likewise.
10564 (xml_process_xincludes): Likewise.
10565 * xml-syscall.c (allocate_syscalls_info): Likewise.
10566 (syscall_create_syscall_desc): Likewise.
10568 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10570 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10571 function, with code from i386_stap_parse_special_token.
10572 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10573 (i386_stap_parse_special_token): Move code to the two functions
10574 above; simplify it.
10576 2014-01-09 Pedro Alves <palves@redhat.com>
10577 Hui Zhu <hui@codesourcery.com>
10580 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10581 bp_err_string. Don't mark the location shlib_disabled if the
10582 error thrown wasn't a generic or memory error. Catch errors
10583 thrown while inserting breakpoints in overlayed code. Output
10584 error message of software breakpoints.
10585 * remote.c (remote_insert_breakpoint): If this breakpoint has
10586 target-side commands but this stub doesn't support Z0 packets,
10587 throw NOT_SUPPORTED_ERROR error.
10588 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10589 * target.h (target_insert_breakpoint): Extend comment.
10590 (target_insert_hw_breakpoint): Add comment.
10592 2014-01-08 Pedro Alves <palves@redhat.com>
10594 * remote.c (remote_add_thread): Add threads silently if starting
10596 (remote_notice_new_inferior): If in all-stop, and starting up,
10597 don't call notice_new_inferior.
10598 (get_current_thread): New function, factored out from ...
10599 (add_current_inferior_and_thread): ... this. Adjust.
10600 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10601 found any thread, then select the remote's current thread as GDB's
10602 current thread too.
10604 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10606 * NEWS: Create a new section for the next release branch.
10607 Rename the section of the current branch, now that it has
10610 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10612 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10613 * version.in: Bump version to 7.7.50.DATE-cvs.
10615 2014-01-08 Yao Qi <yao@codesourcery.com>
10617 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10618 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10619 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10621 2014-01-08 Yao Qi <yao@codesourcery.com>
10623 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10624 return value of bfd_get_filename to symbol_file_add_from_bfd.
10626 2014-01-08 Pierre Muller <muller@sourceware.org>
10629 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10630 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10631 to prim_record_mininal_symbol_and_info.
10632 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10633 in call to prim_record_minimal_symbol_and_info.
10634 (read_pe_exported_syms): Set index field of section_data.
10636 2014-01-07 Andrew Pinski <apinski@cavium.com>
10638 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10639 * features/aarch64.c: Regenerate.
10641 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10643 * target.c (return_null): Define.
10644 (update_current_target): Use it instead of return_zero for
10645 functions that return a pointer.
10647 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10649 * source.c (add_path): Fix check for duplicated paths in the previously
10652 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10654 * ada-lang.c: Remove duplicated include statements.
10655 * alphabsd-nat.c: Ditto.
10656 * amd64-darwin-tdep.c: Ditto.
10657 * amd64fbsd-nat.c: Ditto.
10658 * auto-load.c: Ditto.
10660 * breakpoint.c: Ditto.
10661 * dbxread.c: Ditto.
10662 * fork-child.c: Ditto.
10663 * gdb_usleep.c: Ditto.
10664 * i386-darwin-tdep.c: Ditto.
10665 * i386fbsd-nat.c: Ditto.
10667 * inferior.c: Ditto.
10668 * jv-lang.c: Ditto.
10669 * linux-nat.c: Ditto.
10670 * linux-tdep.c: Ditto.
10671 * m68kbsd-nat.c: Ditto.
10672 * m68klinux-nat.c: Ditto.
10673 * microblaze-tdep.c: Ditto.
10674 * mips-linux-tdep.c: Ditto.
10675 * mn10300-tdep.c: Ditto.
10676 * nto-tdep.c: Ditto.
10677 * opencl-lang.c: Ditto.
10679 * printcmd.c: Ditto.
10680 * regcache.c: Ditto.
10681 * remote-m32r-sdi.c: Ditto.
10683 * symfile.c: Ditto.
10685 * tilegx-linux-nat.c: Ditto.
10686 * tilegx-tdep.c: Ditto.
10687 * tracepoint.c: Ditto.
10689 * vaxbsd-nat.c: Ditto.
10690 * windows-nat.c: Ditto.
10691 * xtensa-tdep.c: Ditto.
10693 2014-01-07 Yao Qi <yao@codesourcery.com>
10695 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10697 2014-01-07 Yao Qi <yao@codesourcery.com>
10698 Joel Brobecker <brobecker@adacore.com>
10700 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10701 (pdc_write_regs): Likewise.
10702 (fetch_regs_kernel_thread): Likewise.
10703 (store_regs_kernel_thread): Likewise.
10705 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10707 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10708 tagged type objects to their actual type.
10710 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10712 * ada-valprint.c (print_field_values): Add "language" parameter.
10713 Update calls to print_field_values and print_variant_part.
10714 Pass new parameter "language" in call to val_print instead
10715 of "current_language". Replace call to ada_val_print by call
10717 (print_variant_part): Add "language" parameter.
10718 (ada_val_print_struct_union): Update call to print_field_values.
10720 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10722 * ada-valprint.c (ui_memcpy): Delete.
10723 (ada_print_floating): Update documentation. Add empty line
10724 between between function documentation and implementation.
10725 Delete variable "buffer". Use ui_file_xstrdup in place of
10726 ui_file_put. Minor adjustments following this change.
10728 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10730 * ada-valprint.c (ada_val_print_string): New function,
10731 extracted from ada_val_print_array.
10732 (ada_val_print_array): Replace extracted code by call
10733 to ada_val_print_string followed by a return. Move
10734 "else" branch to the function's top block.
10736 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10738 * ada-valprint.c (ada_val_print_array): Move implementation
10739 down. Rename parameter "offset" and "val" into "offset_aligned"
10740 and "original_value" respectively. Add parameter "offset".
10742 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10744 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10745 re-organizing the code. Change the "???" message printed
10746 when target type is a TYPE_CODE_UNDEF into
10747 "<ref to undefined type>".
10749 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10751 * ada-valprint.c (print_record): Delete, implementation inlined...
10752 (ada_val_print_struct_union): ... here. Remove call to
10753 ada_check_typedef in inlined implementation.
10755 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10757 * ada-valprint.c (ada_val_print_gnat_array): New function,
10758 extracted from ada_val_print_1;
10759 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10760 (ada_val_print_flt, ada_val_print_struct_union)
10761 (ada_val_print_ref): Likewise.
10762 (ada_val_print_1): Delete variables i and elttype.
10763 Replace extracted-out code by call to corresponding
10766 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10768 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10770 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10772 * ada-valprint.c (ada_val_print_1): Replace calls to
10773 ada_val_print_1 by calls to val_print.
10775 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10777 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10778 Update calls to self accordingly. Replace calls to c_val_print
10779 by calls to val_print.
10781 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10783 * ada-valprint.c (print_record): Delete declaration.
10784 (adjust_type_signedness, ada_val_print_1): Likewise.
10785 (ada_val_print): Move function implementation down.
10786 (print_variant_part, print_field_values, print_record):
10787 Move function implementation up.
10789 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10791 * python/py-type.c (typy_get_name): New function.
10792 (type_object_getset): Add entry for attribute "name".
10793 * NEWS: Add entry mentioning this new attribute.
10795 2014-01-07 Yao Qi <yao@codesourcery.com>
10797 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10800 2014-01-07 Yao Qi <yao@codesourcery.com>
10802 * gnu-nat.c (info_port_rights): Add qualifier const to
10805 2014-01-07 Yao Qi <yao@codesourcery.com>
10807 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10809 2014-01-07 Yao Qi <yao@codesourcery.com>
10811 * gnu-nat.c (make_inf) Update declaration.
10812 (make_inf): Make it static.
10813 (inf_set_traced): Likewise.
10814 (inf_port_to_thread, inf_task_died_status): Likewise.
10816 2014-01-07 Yao Qi <yao@codesourcery.com>
10818 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10820 2014-01-07 Yao Qi <yao@codesourcery.com>
10822 * gnu-nat.c (_initialize_gnu_nat): Declare.
10824 2014-01-07 Yao Qi <yao@codesourcery.com>
10826 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10828 (struct gdbarch_info) <byte_order>: Change type to
10830 <byte_order_for_code>: Likewise.
10831 * gdbarch.c, gdbarch.h: Regenerated.
10833 2014-01-06 Sasha Smundak <asmundak@google.com>
10835 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10837 2014-01-06 Tom Tromey <tromey@redhat.com>
10839 * doublest.c (convert_doublest_to_floatformat): Use const, not
10841 * somread.c (som_symtab_read): Likewise.
10843 2014-01-07 Hui Zhu <hui@codesourcery.com>
10845 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10846 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10847 (gdb_bfd_fopen): Ditto.
10848 (gdb_bfd_openr): Ditto.
10849 (gdb_bfd_openw): Ditto.
10850 (gdb_bfd_openr_iovec): Ditto.
10851 (gdb_bfd_fdopenr): Ditto.
10852 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10853 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10855 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10857 * symfile-mem.c (symbol_file_add_from_memory): Removed
10858 gdb_bfd_stash_filename.
10860 2014-01-03 Doug Evans <dje@google.com>
10862 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10865 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10867 Update year range in copyright notice of all files.
10869 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10871 * top.c (print_gdb_version): Set copyright year to 2014.
10873 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10875 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10877 For older changes see ChangeLog-2013.
10883 version-control: never