1 2014-07-31 Gary Benson <gbenson@redhat.com>
3 * common/btrace-common.h: Do not include defs.h or server.h.
4 * nat/mips-linux-watch.h: Likewise.
5 * gdb-dlfcn.h: Do not include defs.h.
6 * tracefile.h: Likewise.
8 2014-07-30 Roland McGrath <mcgrathr@google.com>
10 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
12 2014-07-30 Tom Tromey <tromey@redhat.com>
14 * bsd-kvm.c (bsd_kvm_open): Constify.
15 * corelow.c (core_open): Constify.
16 * ctf.c (ctf_open): Constify.
17 * dbug-rom.c (dbug_open): Constify.
18 * exec.c (exec_open): Constify.
19 * m32r-rom.c (m32r_open, mon2000_open): Constify.
20 * microblaze-rom.c (picobug_open): Constify.
21 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
23 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
24 * record-btrace.c (record_btrace_open): Constify.
25 * record-full.c (record_full_core_open_1, record_full_open_1)
26 (record_full_open): Constify.
27 * remote-m32r-sdi.c (m32r_open): Constify.
28 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
29 (rockhopper_open, lsi_open): Constify.
30 * remote-sim.c (gdbsim_open): Constify.
31 * remote.c (remote_open, extended_remote_open, remote_open_1):
33 * target.h (struct target_ops) <to_open>: Make "arg" const.
34 * tracefile-tfile.c (tfile_open): Constify.
36 2014-07-30 Tom Tromey <tromey@redhat.com>
38 * breakpoint.c (map_breakpoint_numbers): Update.
39 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
40 (get_number_const): New function.
41 (get_number): Rewrite using get_number_const.
42 (init_number_or_range): Make "string" const.
43 (number_is_in_list): Make "list" const.
44 * cli/cli-utils.h (get_number_const): Declare.
45 (struct get_number_or_range_state) <string, end_ptr>: Now const.
46 (init_number_or_range, number_is_in_list): Update.
47 * printcmd.c (map_display_numbers): Update.
48 * value.c (value_from_history_ref): Constify.
49 * value.h (value_from_history_ref): Update.
51 2014-07-30 Tom Tromey <tromey@redhat.com>
53 * corefile.c (hook_type, call_extra_exec_file_hooks)
54 (specify_exec_file_hook): Constify.
55 * exec.c (exec_file_attach): Make "filename" const.
56 * gdbcore.h (deprecated_exec_file_display_hook)
57 (specify_exec_file_hook, exec_file_attach): Constify.
58 * main.c (captured_main): Use catch_command_errors_const.
60 2014-07-30 Tom Tromey <tromey@redhat.com>
62 * target.c (open_target): New function.
63 (add_target_with_completer, add_deprecated_target_alias): Use
64 set_cmd_sfunc, set_cmd_context.
65 (debug_to_open): Remove.
66 (setup_target_debug): Update.
68 2014-07-30 Yao Qi <yao@codesourcery.com>
70 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
72 * parse.c (exp_iterate): Update comments.
74 2014-07-30 Gary Benson <gbenson@redhat.com>
76 * common/common-defs.h: New file.
77 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
78 * defs.h: Include common-defs.h.
79 Do not include config.h or build-gnulib/config.h.
81 2014-07-30 Gary Benson <gbenson@redhat.com>
83 * common/common-utils.h: Do not include config.h.
84 * nat/linux-btrace.h: Likewise.
86 2014-07-30 Gary Benson <gbenson@redhat.com>
88 * btrace.c: Include defs.h.
89 * common/ptid.c: Include defs.h or server.h as appropriate.
90 * nat/mips-linux-watch.c: Likewise.
92 2014-07-29 Tom Tromey <tromey@redhat.com>
94 * target.c (target_is_pushed): Simplify.
96 2014-07-29 Joel Brobecker <brobecker@adacore.com>
100 2014-07-29 Yao Qi <yao@codesourcery.com>
103 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
105 2014-07-28 Doug Evans <xdje42@gmail.com>
108 * guile/scm-param.c (pascm_parameter_defined_p): New function.
109 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
112 2014-07-28 Will Newton <will.newton@linaro.org>
114 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
115 (THUMB2_SET_R7_SIGRETURN2): Likewise.
116 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
117 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
118 (THUMB2_EABI_SYSCALL): Likewise.
119 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
121 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
122 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
124 2014-07-27 Doug Evans <xdje42@gmail.com>
126 * guile/scm-param.c (pascm_print_param_smob): Fix output.
128 2014-07-27 Doug Evans <xdje42@gmail.com>
130 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
132 2014-07-26 Ludovic Courtès <ludo@gnu.org>
133 Doug Evans <xdje42@gmail.com>
136 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
137 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
138 * configure.ac: Try to use guild to compile an scm file, if it fails
139 then disable guile support.
140 * configure: Regenerate.
141 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
143 (GUILE_COMPILED_FILES): New variable.
144 (GUILE_FILES) Update.
145 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
146 (stamp-guile): Compile scm files.
147 * guile/guile.c (boot_guile_support): New function.
148 (standard_throw_args_p): New function.
149 (print_standard_throw_error, print_throw_error): New functions.
150 (handle_boot_error): New function.
151 (initialize_scheme_side): Rewrite to call boot_guile_support.
152 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
153 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
155 2014-07-26 Ludovic Courtès <ludo@gnu.org>
156 Doug Evans <xdje42@gmail.com>
159 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
160 * guile/lib/gdb/support.scm: New file.
161 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
162 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
164 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
166 (%assert-type): Ditto, and renamed to assert-type.
167 (%exception-print-style): Delete.
169 2014-07-26 Doug Evans <xdje42@gmail.com>
172 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
173 * configure: Regenerate.
174 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
176 (PYTHON_FILES): New variable.
177 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
178 (GUILE_FILES): New variable.
179 (stamp-python, install-python, uninstall-python): Handle empty
181 (stamp-guile, install-guile, uninstall-guile): Ditto.
183 2014-07-26 Doug Evans <xdje42@gmail.com>
186 * guile/lib/gdb.scm (pretty-printers): Export.
187 (set-pretty-printers!): Export.
188 * guile/lib/gdb/printing.scm (gdb module): Update.
189 (prepend-pretty-printer!, append-pretty-printer!): Update.
190 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
191 (pretty_printer_list_var): Delete.
192 (pretty_printer_list): New static global.
193 (gdbscm_pretty_printers): New function.
194 (gdbscm_set_pretty_printers_x): New function.
195 (ppscm_find_pretty_printer_from_gdb): Update.
196 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
197 (gdbscm_initialize_pretty_printers): Update.
199 2014-07-26 Doug Evans <xdje42@gmail.com>
202 * configure.ac: Add check for header gc/gc.h.
203 Add check for function setenv.
204 * configure: Regenerate.
205 * config.in: Regenerate.
206 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
208 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
210 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
211 variation in gdbarch matching.
213 2014-07-25 Tom Tromey <tromey@redhat.com>
215 * exec.c (using_exec_ops): Remove.
216 (exec_close_1): Update. Remove extraneous block, reindent.
217 (add_target_sections): Use target_is_pushed.
219 2014-07-25 Pedro Alves <palves@redhat.com>
221 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
222 * monitor.c (monitor_create_inferior): Likewise.
223 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
224 * remote-sim.c (gdbsim_create_inferior): Likewise.
225 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
226 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
227 * windows-nat.c (do_initial_windows_stuff): Likewise.
229 2014-07-25 Pedro Alves <palves@redhat.com>
231 * NEWS: Mention signal passing and "signal" command changes.
232 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
234 * breakpoint.c (until_break_command): Adjust clear_proceed_status
236 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
237 * infcmd.c (proceed_thread_callback, continue_1, step_once)
238 (jump_command): Adjust clear_proceed_status call.
239 (signal_command): Warn if other thread that are resumed have
240 signals that will be delivered. Adjust clear_proceed_status call.
241 (until_next_command, finish_command)
242 (proceed_after_attach_callback, attach_command_post_wait)
243 (attach_command): Adjust clear_proceed_status call.
244 * infrun.c (proceed_after_vfork_done): Likewise.
245 (proceed_after_attach_callback): Adjust comment.
246 (clear_proceed_status_thread): Clear stop_signal if not in pass
248 (clear_proceed_status_callback): Delete.
249 (clear_proceed_status): New 'step' parameter. Only clear the
250 proceed status of threads the command being prepared is about to
252 (proceed): If passed in an explicit signal, override stop_signal
253 with it. Don't pass the last stop signal to the thread we're
255 (init_wait_for_inferior): Adjust clear_proceed_status call.
256 (switch_back_to_stepped_thread): Clear the signal if it should not
258 * infrun.h (clear_proceed_status): New 'step' parameter.
259 (user_visible_resume_ptid): Add comment.
260 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
261 signal is in pass state.
262 * remote.c (append_pending_thread_resumptions): Likewise.
263 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
265 2014-07-25 Tom Tromey <tromey@redhat.com>
267 * target.h (target_stopped_data_address)
268 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
271 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
273 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
275 (avr_pointer_to_address): Likewise.
277 2014-07-24 Tom Tromey <tromey@redhat.com>
279 * monitor.c (compile_pattern): Update.
280 * target.h (struct target_ops) <to_shortname, to_longname,
283 2014-07-24 Tom Tromey <tromey@redhat.com>
285 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
286 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
287 (add_info_alias, add_com): Make "doc" const.
288 (print_doc_line): Make "str" const.
289 (delete_cmd): Update.
290 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
291 (print_doc_line): Update.
292 * cli/cli-script.c (document_command): Update.
293 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
294 (add_com, add_info, add_info_alias): Update.
295 * guile/scm-cmd.c (cmdscm_destroyer): Update.
296 * python/py-cmd.c (cmdpy_destroyer): Update.
298 2014-07-24 Tom Tromey <tromey@redhat.com>
300 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
301 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
302 (help_cmd_list): Constify.
303 (lookup_cmd): Update.
304 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
306 (help_cmd_list, apropos_cmd): Update.
307 * cli/cli-script.c (show_user): Update.
308 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
309 * cli/cli-setshow.h (cmd_show_list): Update.
310 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
311 (cmd_show_list): Update.
312 * guile/scm-cmd.c (cmdscm_destroyer): Update.
313 * python/py-cmd.c (cmdpy_destroyer): Update.
315 2014-07-24 Tom Tromey <tromey@redhat.com>
317 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
318 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
320 * command.h (deprecate_cmd): Update.
321 * maint.c (maintenance_do_deprecate): Add casts.
323 2014-07-24 Tom Tromey <tromey@redhat.com>
325 * cli/cli-decode.c (help_cmd): Make parameter "const".
326 * cli/cli-decode.h (help_cmd): Update.
328 2014-07-24 Tom Tromey <tromey@redhat.com>
330 * stack.c (up_silently_base, down_silently_base): Make argument
333 2014-07-24 Tom Tromey <tromey@redhat.com>
335 * solib.c (solib_add): Make "pattern" const.
336 * solib.h (solib_add): Update.
338 2014-07-24 Tom Tromey <tromey@redhat.com>
340 * remote.c (remote_serial_open, print_packet, putpkt)
341 (putpkt_binary): Constify.
342 * remote.h (putpkt): Update.
344 2014-07-24 Tom Tromey <tromey@redhat.com>
346 * monitor.c (monitor_open): Make "args" const.
347 * monitor.h (monitor_open): Update.
349 2014-07-24 Tom Tromey <tromey@redhat.com>
351 * maint.c (match_bfd_flags): Make "string" const.
352 (print_bfd_section_info): Remove casts.
353 (print_objfile_section_info): Make "string" const.
355 2014-07-24 Tom Tromey <tromey@redhat.com>
357 * inf-child.c (inf_child_open_target): Make "arg" const.
358 * inf-child.h (inf_child_open_target): Update.
360 2014-07-24 Tom Tromey <tromey@redhat.com>
362 * environ.c (unset_in_environ): Make "var" const.
363 * environ.h (unset_in_environ): Update.
365 2014-07-24 Tom Tromey <tromey@redhat.com>
367 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
369 (scan_filename_with_cleanup): Likewise.
370 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
371 Make arguments const.
372 (restore_command): Update.
374 2014-07-24 Pedro Alves <palves@redhat.com>
376 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
378 2014-07-24 Tom Tromey <tromey@redhat.com>
379 Gary Benson <gbenson@redhat.com>
381 * nat/linux-ptrace.c (additional_flags): New global.
382 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
383 additional_flags; don't check GDBSERVER.
384 (linux_ptrace_set_additional_flags): New function.
385 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
387 * linux-nat.c (_initialize_linux_nat): Call
388 linux_ptrace_set_additional_flags.
390 2014-07-24 Tom Tromey <tromey@redhat.com>
392 * make-target-delegates (munge_type, write_debugmethod): New
394 (debug_names): New global.
395 ($TARGET_DEBUG_PRINTER): New global.
396 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
398 Write debug methods. Generate init_debug_target.
399 * target-debug.h: New file.
400 * target-delegates.c: Rebuild.
401 * target.c: Include target-debug.h.
402 (debug_target): Hoist definition.
403 (target_kill, target_get_section_table, target_memory_map)
404 (target_flash_erase, target_flash_done, target_detach)
405 (target_disconnect, target_wait, target_resume)
406 (target_pass_signals, target_program_signals, target_follow_fork)
407 (target_mourn_inferior, target_search_memory)
408 (target_thread_address_space, target_close)
409 (target_find_new_threads, target_core_of_thread)
410 (target_verify_memory, target_insert_mask_watchpoint)
411 (target_remove_mask_watchpoint): Remove targetdebug code.
412 (debug_to_post_attach, debug_to_prepare_to_store)
413 (debug_to_files_info, debug_to_insert_breakpoint)
414 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
415 (debug_to_region_ok_for_hw_watchpoint)
416 (debug_to_can_accel_watchpoint_condition)
417 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
418 (debug_to_watchpoint_addr_within_range)
419 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
420 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
421 (debug_to_terminal_init, debug_to_terminal_inferior)
422 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
423 (debug_to_terminal_save_ours, debug_to_terminal_info)
424 (debug_to_load, debug_to_post_startup_inferior)
425 (debug_to_insert_fork_catchpoint)
426 (debug_to_remove_fork_catchpoint)
427 (debug_to_insert_vfork_catchpoint)
428 (debug_to_remove_vfork_catchpoint)
429 (debug_to_insert_exec_catchpoint)
430 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
431 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
432 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
433 (setup_target_debug): Call init_debug_target.
434 * target.h (TARGET_DEBUG_PRINTER): New macro.
435 (struct target_ops) <to_resume, to_wait, to_pass_signals,
436 to_program_signals>: Use TARGET_DEBUG_PRINTER.
438 2014-07-24 Gary Benson <gbenson@redhat.com>
440 * exceptions.h (throw_vfatal): Renamed to...
441 (throw_vquit): New declaration.
442 (throw_quit): Likewise.
443 * exceptions.c (throw_vfatal): Renamed to...
444 (throw_vquit): New function.
445 (throw_quit): Likewise.
446 (throw_error): Call throw_verror rather than throw_it.
447 * utils.h (vfatal): Removed.
449 * utils.c (vfatal): Removed.
451 (internal_verror): Replaced call to fatal with call to throw_quit.
452 (quit): Replaced calls to fatal with calls to throw_quit.
454 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
456 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
459 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
461 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
462 less than zero in conditional expression.
464 2014-07-23 Tom Tromey <tromey@redhat.com>
466 * make-target-delegates ($ARGS_PART): Match trailing close paren.
467 ($INTRO_PART): Don't match whitespace.
468 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
470 ($METHOD): Add $METHOD_TRAILER.
472 (scan_target_h): New sub.
473 Change main loop not to collect state.
474 * target-delegates.c: Rebuild.
476 2014-07-23 Gary Benson <gbenson@redhat.com>
478 * cp-support.c (gdb_demangle): Fix build on systems without
481 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
483 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
484 for reference entry value target data value.
486 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
488 * stack.c (read_frame_arg): Verify value_optimized_out before calling
489 value_available_contents_eq.
491 2014-07-22 Pedro Alves <palves@redhat.com>
493 * value.c (allocate_optimized_out_value): Don't mark value as
496 2014-07-22 Jiong Wang <jiong.wang@arm.com>
498 * MAINTAINERS (Write After Approval): Update my email address.
500 2014-07-20 Doug Evans <dje@google.com>
503 * remote.c (putpkt_binary): Add text to error message.
505 2014-07-20 Yao Qi <yao@codesourcery.com>
507 * eval.c: Remove "Chill" from comments.
508 * gdbtypes.h: Likewise.
509 * symtab.h: Likewise.
511 2014-07-20 Yao Qi <yao@codesourcery.com>
513 * std-operator.def: Update comments to TERNOP_SLICE.
515 2014-07-20 Yao Qi <yao@codesourcery.com>
517 * std-operator.def: Remove BINOP_RANGE.
518 * breakpoint.c (watchpoint_exp_is_const): Update.
519 * expprint.c (dump_subexp_body_standard): Likewise.
520 * eval.c (init_array_element): Remove dead code.
521 (evaluate_subexp_standard): Likewise.
523 2014-07-20 Yao Qi <yao@codesourcery.com>
525 * std-operator.def: Remove BINOP_IN.
526 * breakpoint.c (watchpoint_exp_is_const): Update.
527 * eval.c (evaluate_subexp_standard): Likewise.
528 * expprint.c (dump_subexp_body_standard): Likewise.
530 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
532 * microblaze-tdep.c (microblaze_register_names): Add
533 the rshr and rslr register names.
534 (microblaze_gdbarch_init): Use of tdesc_has_registers.
535 Use of tdesc_find_feature. Use of tdesc_data_alloc.
536 Use of tdesc_numbered_register. Use of
537 microblaze_register_g_packet_guesses. Use of
538 tdesc_use_registers. Use of set_gdbarch_register_type.
539 (microblaze_register_g_packet_guesses): New.
540 * microblaze-tdep.h (microblaze_reg_num): Add
541 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
542 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
543 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
544 * features/microblaze-core.xml: New file.
545 * features/microblaze-stack-protect.xml: New file.
546 * features/microblaze-with-stack-protect.c: New file.
547 * features/microblaze-with-stack-protect.xml: New file.
548 * features/microblaze.xml: New file.
549 * features/microblaze.c: New file.
550 * features/Makefile (microblaze-with-stack-protect): Add
551 microblaze-with-stack-protect microblaze and microblaze-expedite.
552 * regformats/microblaze-with-stack-protect.dat: New file.
553 * regformats/microblaze.dat: New file.
554 * doc/gdb.texinfo (MicroBlaze Features): Added.
556 2014-07-18 Tom Tromey <tromey@redhat.com>
558 * exec.c (exec_ops): Now static.
559 * exec.h (exec_ops): Don't declare.
561 2014-07-18 Tom Tromey <tromey@redhat.com>
563 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
564 to find_target_beneath.
565 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
567 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
569 2014-07-18 Tom Tromey <tromey@redhat.com>
572 * utils.c (quit): Use target_supports_terminal_ours.
573 * target.h (target_supports_terminal_ours): Declare.
574 * target.c (target_supports_delete_record): Don't check
575 to_delete_record against NULL.
576 (target_supports_terminal_ours): New function.
578 2014-07-18 Tom Tromey <tromey@redhat.com>
581 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
582 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
583 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
584 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
585 * windows-nat.c (windows_xfer_partial): Always delegate.
586 * record-btrace.c (record_btrace_xfer_partial): Simplify
588 (record_btrace_fetch_registers, record_btrace_store_registers)
589 (record_btrace_prepare_to_store, record_btrace_resume)
590 (record_btrace_wait, record_btrace_find_new_threads)
591 (record_btrace_thread_alive): Likewise.
592 * procfs.c (procfs_xfer_partial): Always delegate.
593 * corelow.c (core_xfer_partial): Always delegate.
594 * sol-thread.c (sol_find_new_threads): Simplify delegation.
596 2014-07-18 Tom Tromey <tromey@redhat.com>
598 * exec.c (exec_make_note_section): Move earlier.
600 2014-07-17 Doug Evans <dje@google.com>
603 * maint.c (count_symtabs_and_blocks): Handle NULL
604 current_program_space.
605 (report_command_stats): Check global enabled flag in addition to
606 recorded enabled flag.
607 (make_command_stats_cleanup): Handle msg_type == 0, startup.
609 2014-07-16 Pedro Alves <palves@redhat.com>
611 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
613 2014-07-16 Tom Tromey <tromey@redhat.com>
615 * target.h (struct target_ops) <to_delete_record>: Reformat
618 2014-07-16 Tom Tromey <tromey@redhat.com>
620 * target-delegates.c: Rebuild.
622 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
624 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
625 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
626 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
627 (avr_pointer_to_address): Likewise.
628 (avr_address_class_type_flags): New function.
629 (avr_address_class_type_flags_to_name): Likewise.
630 (avr_address_class_name_to_type_flags): Likewise.
631 (avr_gdbarch_init): Set address_class_type_flags,
632 address_class_type_flags_to_name and
633 address_class_name_to_type_flags.
635 2014-07-15 Pedro Alves <palves@redhat.com>
637 * linux-nat.c (kill_callback): Save errno and work with saved
640 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
642 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
644 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
646 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
647 breakpoint support correctly.
649 2014-07-14 Pedro Alves <palves@redhat.com>
651 * utils.c (prompt_for_continue): Call target_terminal_ours.
653 2014-07-14 Pedro Alves <palves@redhat.com>
655 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
656 catch_errors. Don't re-enable stdin or notify observers where,
658 (fetch_inferior_event_wrapper): Delete.
660 2014-07-14 Pedro Alves <palves@redhat.com>
663 * top.c: Include "inf-loop.h".
664 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
666 (gdb_readline_wrapper_cleanup): Make the target async again, if it
668 (gdb_readline_wrapper): Store whether the target is async, and
671 2014-07-14 Pedro Alves <palves@redhat.com>
674 * top.c (gdb_readline_wrapper_line): Tweak comment.
675 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
676 the input handler callback.
678 2014-07-14 Pedro Alves <palves@redhat.com>
681 * main.c: Include event-top.h.
682 (handle_command_errors): New function.
683 (catch_command_errors, catch_command_errors_const): Use it.
685 2014-07-14 Pedro Alves <palves@redhat.com>
687 * exceptions.c (catch_command_errors, catch_command_errors_const):
689 * exceptions.h (catch_command_errors_ftype)
690 (catch_command_errors_const_ftype): Moved to main.c.
691 (catch_command_errors, catch_command_errors_const): Delete
693 * main.c (catch_command_errors_ftype)
694 (catch_command_errors_const_ftype): Moved here from exceptions.h.
695 (catch_command_errors, catch_command_errors_const)): Moved here
696 from exceptions.c and make static.
698 2014-07-14 Pedro Alves <palves@redhat.com>
700 * exceptions.c (print_any_exception): Delete.
701 (catch_exceptions_with_msg): Use exception_print instead of
703 (catch_errors): Use exception_fprintf instead of
705 (catch_command_errors, catch_command_errors_const): Use
706 exception_print instead of print_any_exception.
708 2014-07-14 Pedro Alves <palves@redhat.com>
710 * infcall.c (run_inferior_call): Set 'sync_execution' while
711 running the inferior call.
713 2014-07-14 Pedro Alves <palves@redhat.com>
715 * value.c (value_contents_equal): Delete function.
716 * value.h (value_contents_equal): Delete declaration.
718 2014-07-14 Tom Tromey <tromey@redhat.com>
721 * gdbtypes.c (is_dynamic_type_internal): New function, from
723 (is_dynamic_type): Rewrite.
724 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
725 (resolve_dynamic_struct): Likewise.
726 (resolve_dynamic_type_internal): New function, from
727 resolve_dynamic_type.
728 (resolve_dynamic_type): Rewrite.
730 2014-07-14 Tom Tromey <tromey@redhat.com>
732 * target.c (target_require_runnable): Also check record_stratum.
735 2014-07-11 Yao Qi <yao@codesourcery.com>
737 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
738 thumb_instruction_restores_sp return true.
740 2014-07-11 Yao Qi <yao@codesourcery.com>
742 * arm-tdep.c (thumb_instruction_restores_sp): New function.
743 (thumb_in_function_epilogue_p): Call
744 thumb_instruction_restores_sp.
746 2014-07-11 Yao Qi <yao@codesourcery.com>
748 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
750 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
752 2014-07-11 Gary Benson <gbenson@redhat.com>
754 * amd64-linux-nat.c (gdbcore.h): Remove include.
755 (regset.h): Likewise.
756 (nat/linux-btrace.h): Likewise.
757 (btrace.h): Likewise.
758 (gdb_assert.h): Likewise.
759 (string.h): Likewise.
760 (sys/uio.h): Likewise.
761 (sys/debugreg.h): Likewise.
762 (sys/syscall.h): Likewise.
763 (sys/procfs.h): Likewise.
764 (sys/user.h): Likewise.
765 (asm/ptrace.h): Likewise.
766 (i386-nat.h): Likewise.
767 * i386-linux-nat.c (i386-nat.h): Likewise.
768 (regset.h): Likewise.
769 (target.h): Likewise.
770 (linux-nat.h): Likewise.
771 (nat/linux-btrace.h): Likewise.
772 (btrace.h): Likewise.
773 (gdb_assert.h): Likewise.
774 (string.h): Likewise.
775 (sys/uio.h): Likewise.
776 (sys/user.h): Likewise.
777 (sys/procfs.h): Likewise.
778 (sys/reg.h): Likewise.
779 (sys/debugreg.h): Likewise.
780 (ORIG_EAX): Remove definition.
782 2014-07-11 Gary Benson <gbenson@redhat.com>
784 * i386-linux-nat.h: New file.
785 * x86-linux-nat.h: Likewise.
786 * x86-linux-nat.c: Likewise.
787 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
788 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
789 * config/i386/linux64.mh (NATDEPFILES): Likewise.
790 * amd64-linux-nat.c (x86-linux-nat.h): New include.
791 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
792 (PTRACE_SETREGSET): Likewise.
793 (arch_lwp_info): Now in x86-linux-nat.c.
794 (have_ptrace_getregset): Now in x86-linux-nat.h.
795 (x86_linux_dr_get): Now in x86-linux-nat.c.
796 (x86_linux_dr_set): Likewise.
797 (x86_linux_dr_get_addr): Likewise.
798 (x86_linux_dr_get_control): Likewise.
799 (x86_linux_dr_get_status): Likewise.
800 (update_debug_registers_callback): Likewise.
801 (x86_linux_dr_set_control): Likewise.
802 (x86_linux_dr_set_addr): Likewise.
803 (x86_linux_prepare_to_resume): Likewise.
804 (x86_linux_new_thread): Likewise.
805 (x86_linux_new_fork): Likewise.
806 (x86_linux_get_thread_area): Likewise.
807 (super_post_startup_inferior): Likewise.
808 (x86_linux_child_post_startup_inferior): Likewise.
809 (AMD64_LINUX_USER64_CS): Likewise.
810 (AMD64_LINUX_X32_DS): Likewise.
811 (x86_linux_read_description): Likewise.
812 (x86_linux_enable_btrace): Likewise.
813 (x86_linux_disable_btrace): Likewise.
814 (x86_linux_teardown_btrace): Likewise.
815 (x86_linux_read_btrace): Likewise.
816 (x86_linux_create_target): Likewise.
817 (x86_linux_add_target): Likewise.
818 * i386-linux-nat.c (x86-linux-nat.h): New include.
819 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
820 (PTRACE_SETREGSET): Likewise.
821 (arch_lwp_info): Now in x86-linux-nat.c.
822 (have_ptrace_getregset): Now in x86-linux-nat.h.
823 (x86_linux_dr_get): Now in x86-linux-nat.c.
824 (x86_linux_dr_set): Likewise.
825 (x86_linux_dr_get_addr): Likewise.
826 (x86_linux_dr_get_control): Likewise.
827 (x86_linux_dr_get_status): Likewise.
828 (update_debug_registers_callback): Likewise.
829 (x86_linux_dr_set_control): Likewise.
830 (x86_linux_dr_set_addr): Likewise.
831 (x86_linux_prepare_to_resume): Likewise.
832 (x86_linux_new_thread): Likewise.
833 (x86_linux_new_fork): Likewise.
834 (x86_linux_get_thread_area): Likewise.
835 (super_post_startup_inferior): Likewise.
836 (x86_linux_child_post_startup_inferior): Likewise.
837 (AMD64_LINUX_USER64_CS): Likewise.
838 (AMD64_LINUX_X32_DS): Likewise.
839 (x86_linux_read_description): Likewise.
840 (x86_linux_enable_btrace): Likewise.
841 (x86_linux_disable_btrace): Likewise.
842 (x86_linux_teardown_btrace): Likewise.
843 (x86_linux_read_btrace): Likewise.
844 (x86_linux_create_target): Likewise.
845 (x86_linux_add_target): Likewise.
847 2014-07-11 Gary Benson <gbenson@redhat.com>
849 * amd64-linux-nat.c: Comment and whitespace changes.
850 * i386-linux-nat.c: Comment and whitespace changes.
852 2014-07-11 Gary Benson <gbenson@redhat.com>
854 * amd64-linux-nat.c (x86_linux_create_target): New function.
855 (x86_linux_add_target): Likewise.
856 (_initialize_amd64_linux_nat): Delegate to the above new functions.
857 * i386-linux-nat.c (x86_linux_create_target): New function.
858 (x86_linux_add_target): Likewise.
859 (_initialize_i386_linux_nat): Delegate to the above new functions.
861 2014-07-11 Gary Benson <gbenson@redhat.com>
863 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
864 (ps_get_thread_area): Delegate to the above in 32-bit mode.
865 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
866 (ps_get_thread_area): Delegate to the above.
868 2014-07-11 Gary Benson <gbenson@redhat.com>
870 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
871 x86_linux_read_description. All uses updated. amd64-specific
872 code conditionalized. Conditionalized i386-specific code added.
873 Redundant cast removed.
874 * i386-linux-nat.c (i386_linux_read_description): Renamed to
875 x86_linux_read_description. All uses updated. i386-specific
876 code conditionalized. Conditionalized amd64-specific code added.
877 One sizeof replaced with the actual type it is describing.
879 2014-07-11 Gary Benson <gbenson@redhat.com>
881 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
882 x86_linux_dr_get. All uses updated.
883 (amd64_linux_dr_set): Renamed to
884 x86_linux_dr_set. All uses updated.
885 (amd64_linux_dr_get_addr): Renamed to
886 x86_linux_dr_get_addr. All uses updated.
887 (amd64_linux_dr_get_control): Renamed to
888 x86_linux_dr_get_control. All uses updated.
889 (amd64_linux_dr_get_status): Renamed to
890 x86_linux_dr_get_status. All uses updated.
891 (amd64_linux_dr_set_control): Renamed to
892 x86_linux_dr_set_control. All uses updated.
893 (amd64_linux_dr_set_addr): Renamed to
894 x86_linux_dr_set_addr. All uses updated.
895 (amd64_linux_prepare_to_resume): Renamed to
896 x86_linux_prepare_to_resume. All uses updated.
897 (amd64_linux_new_thread): Renamed to
898 x86_linux_new_thread. All uses updated.
899 (amd64_linux_new_fork): Renamed to
900 x86_linux_new_fork. All uses updated.
901 (amd64_linux_child_post_startup_inferior): Renamed to
902 x86_linux_child_post_startup_inferior. All uses updated.
903 (amd64_linux_enable_btrace): Renamed to
904 x86_linux_enable_btrace. All uses updated.
905 (amd64_linux_disable_btrace): Renamed to
906 x86_linux_disable_btrace. All uses updated.
907 (amd64_linux_teardown_btrace): Renamed to
908 x86_linux_teardown_btrace. All uses updated.
909 (amd64_linux_read_btrace): Renamed to
910 x86_linux_read_btrace. All uses updated.
911 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
912 x86_linux_dr_get. All uses updated.
913 (i386_linux_dr_set): Renamed to
914 x86_linux_dr_set. All uses updated.
915 (i386_linux_dr_get_addr): Renamed to
916 x86_linux_dr_get_addr. All uses updated.
917 (i386_linux_dr_get_control): Renamed to
918 x86_linux_dr_get_control. All uses updated.
919 (i386_linux_dr_get_status): Renamed to
920 x86_linux_dr_get_status. All uses updated.
921 (i386_linux_dr_set_control): Renamed to
922 x86_linux_dr_set_control. All uses updated.
923 (i386_linux_dr_set_addr): Renamed to
924 x86_linux_dr_set_addr. All uses updated.
925 (i386_linux_prepare_to_resume): Renamed to
926 x86_linux_prepare_to_resume. All uses updated.
927 (i386_linux_new_thread): Renamed to
928 x86_linux_new_thread. All uses updated.
929 (i386_linux_new_fork): Renamed to
930 x86_linux_new_fork. All uses updated.
931 (i386_linux_child_post_startup_inferior): Renamed to
932 x86_linux_child_post_startup_inferior. All uses updated.
933 (i386_linux_enable_btrace): Renamed to
934 x86_linux_enable_btrace. All uses updated.
935 (i386_linux_disable_btrace): Renamed to
936 x86_linux_disable_btrace. All uses updated.
937 (i386_linux_teardown_btrace): Renamed to
938 x86_linux_teardown_btrace. All uses updated.
939 (i386_linux_read_btrace): Renamed to
940 x86_linux_read_btrace. All uses updated.
942 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
944 * remote.c (extended_remote_post_attach): New function.
945 (init_extended_remote_ops): Install it as to_post_attach method.
947 2014-07-09 Pedro Alves <palves@redhat.com>
949 * infcmd.c (attach_command_post_wait): Don't call
950 target_terminal_inferior here.
951 (attach_command): Call it here instead.
953 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
955 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
957 * c-varobj.c (c_is_path_expr_parent): New function, moved core
958 from varobj.c, with additional checks.
959 (c_varobj_ops): Fill in is_path_expr_parent field.
960 (cplus_varobj_ops): Fill in is_path_expr_parent field.
961 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
963 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
965 (varobj_default_is_path_expr_parent): New function.
966 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
967 (varobj_default_is_path_expr_parent): Declare new function.
969 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
971 * infcmd.c (finish_backward): Turn internal error into normal error.
973 2014-07-07 Pedro Alves <palves@redhat.com>
976 * remote.c (async_handle_remote_sigint)
977 (async_handle_remote_sigint_twice): Call
978 gdb_call_async_signal_handler instead of
979 mark_async_signal_handler.
981 2014-07-07 Tom Tromey <tromey@redhat.com>
983 * target-delegates.c: Rebuild.
984 * target.c (target_info_record): Remove.
985 * record.c (info_record_command): Unconditionally call
987 * target.h (struct target_ops) <to_info_record>: Use
988 TARGET_DEFAULT_IGNORE.
989 (target_info_record): Remove.
991 2014-07-07 Tom Tromey <tromey@redhat.com>
993 * target.h (struct target_ops) <to_get_thread_local_address>: Use
994 TARGET_DEFAULT_NORETURN.
995 * target.c (generic_tls_error): New function.
996 (target_translate_tls_address): Don't search target stack.
997 * target-delegates.c: Rebuild.
998 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1000 * linux-thread-db.c (thread_db_get_thread_local_address):
1001 Unconditionally call beneath target.
1003 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1005 * cli/cli-logging.c (pop_output_files): Assign targerr to
1008 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1010 * MAINTAINERS (Write After Approval): Update my email address.
1012 2014-07-02 Gary Benson <gbenson@redhat.com>
1014 * proc-service.c (ps_xfer_memory): Update comment.
1015 (ps_pstop): Remove unused function.
1016 (ps_pcontinue): Likewise.
1017 (ps_lstop): Likewise.
1018 (ps_lcontinue): Likewise.
1019 (ps_lgetxregsize): Likewise.
1020 (ps_lgetxregs): Likewise.
1021 (ps_lsetxregs): Likewise.
1022 (ps_plog): Likewise.
1023 (ps_ptread): Likewise.
1024 (ps_ptwrite): Likewise.
1026 2014-07-01 Mark Wielaard <mjw@redhat.com>
1028 * dwarf2read.c (add_array_cv_type): New function.
1029 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1030 (read_tag_volatile_type): Likewise.
1032 2014-07-01 Tom Tromey <tromey@redhat.com>
1034 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1035 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1036 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1037 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1038 * command.h (cmd_cfunc_ftype): Move earlier.
1039 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1040 (add_com, add_info): Use cmd_cfunc_ftype.
1042 2014-06-30 Tom Tromey <tromey@redhat.com>
1044 * symtab.c (operator_chars): Make parameters and return type
1046 (file_matches): Make "files" const.
1047 (struct search_symbols_data) <files>: Now const.
1048 (search_symbols): Make "regexp" and "files" parameters const.
1050 (symtab_symbol_info): Remove cast.
1051 (rbreak_command): Update.
1052 * symtab.h (search_symbols): Update.
1054 2014-06-27 Yao Qi <yao@codesourcery.com>
1056 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1057 Change parameter type to 'struct thread_info *'. Caller
1059 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1061 * dummy-frame.c (struct dummy_frame_id): New.
1062 (dummy_frame_id_eq): New function.
1063 (struct dummy_frame) <id>: Change its type to 'struct
1065 (dummy_frame_push): Add parameter ptid and save it in
1067 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1069 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1071 (lookup_dummy_frame): Change parameter type to 'struct
1072 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1073 instead of frame_id_eq.
1074 (dummy_frame_pop): Add parameter ptid. Callers updated.
1075 Update comments. Compose dummy_frame_id and pass it to
1077 (dummy_frame_discard): Add parameter ptid.
1078 (dummy_frame_sniffer): Compose dummy_frame_id and call
1079 dummy_frame_id_eq instead of frame_id_eq.
1080 (fprint_dummy_frames): Print ptid.
1081 * dummy-frame.h: Remove comments.
1082 (dummy_frame_push): Add ptid in declaration.
1083 (dummy_frame_pop, dummy_frame_discard): Likewise.
1085 2014-06-26 Tom Tromey <tromey@redhat.com>
1087 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1088 * command.h (error_no_arg): Update.
1090 2014-06-26 Tom Tromey <tromey@redhat.com>
1092 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1093 (do_show_command): Make "arg" const.
1094 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1096 2014-06-26 Tom Tromey <tromey@redhat.com>
1098 * record-full.c (record_full_get_bookmark): Make "args" const.
1099 (record_full_goto_bookmark): Make "raw_bookmark" const.
1100 * record.c (record_goto): New function.
1101 (cmd_record_goto): Use it. Now static.
1102 * record.h (record_goto): Declare.
1103 (cmd_record_goto): Remove declaration.
1104 * target-delegates.c: Rebuild.
1105 * target.h (struct target_ops) <to_get_bookmark,
1106 to_goto_bookmark>: Make parameter const.
1108 2014-06-26 Tom Tromey <tromey@redhat.com>
1110 * defs.h (generic_load): Update.
1111 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1112 * monitor.c (monitor_load): Make "args" const.
1113 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1114 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1116 (mips_load): Make "file" const.
1117 * remote-sim.c (gdbsim_load): Make "args" const.
1118 * remote.c (remote_load): Make "name" const.
1119 * symfile.c (generic_load): Make "args" const.
1120 * target-delegates.c: Rebuild.
1121 * target.c (target_load): Make "arg" const.
1122 (debug_to_load): Make "args" const.
1123 * target.h (struct target_ops) <to_load>: Make parameter const.
1124 (target_load): Update.
1126 2014-06-26 Tom Tromey <tromey@redhat.com>
1129 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1130 (dwarf2_physname, read_partial_die)
1131 (guess_partial_die_structure_name, fixup_partial_die)
1132 (guess_full_die_structure_name, anonymous_struct_prefix)
1133 (dwarf2_name): Use per-BFD obstack.
1135 2014-06-26 Yao Qi <yao@codesourcery.com>
1137 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1138 dummyframe and this_id into inner block below.
1140 2014-06-26 Yao Qi <yao@codesourcery.com>
1142 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1143 with "signal_pass[0]" in the initialization of signal_pass.
1145 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1147 * record-btrace.c (record_btrace_generating_corefile)
1148 (record_btrace_prepare_to_generate_core)
1149 (record_btrace_done_generating_core): New.
1150 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1151 (record_btrace_store_registers, record_btrace_prepare_to_store):
1152 Forward request when generating a core file.
1153 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1154 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1155 to_done_generating_core.
1157 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1159 * target.h (target_ops) <to_prepare_to_generate_core>
1160 <to_done_generating_core>: New.
1161 (target_prepare_to_generate_core, target_done_generating_core): New.
1162 * target.c (target_prepare_to_generate_core)
1163 (target_done_generating_core): New.
1164 * target-delegates.c: Regenerate.
1165 * gcore.c: (write_gcore_file): Rename to ...
1166 (write_gcore_file_1): ...this.
1167 (write_gcore_file): Call target_prepare_to_generate_core
1168 and target_done_generating_core.
1170 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1172 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1173 * gcore.c (write_gcore_file): Free memory returned from
1174 make_corefile_notes.
1175 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1176 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1178 2014-06-24 Yao Qi <yao@codesourcery.com>
1180 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1181 (arm_linux_init_abi): Set skip_trampoline_code with
1182 gdbarch_skip_trampoline_code instead of
1183 find_solib_trampoline_target.
1185 2014-06-24 Yao Qi <yao@codesourcery.com>
1187 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1188 arm_skip_bx_reg returns non-zero.
1190 2014-06-24 Yao Qi <yao@codesourcery.com>
1192 * arm-tdep.c (arm_skip_bx_reg): New function.
1193 (arm_skip_stub): Call arm_skip_bx_reg.
1195 2014-06-23 Don Breazeal <donb@codesourcery.com>
1197 * MAINTAINERS: Add myself as write-after-approval maintainer.
1199 2014-06-23 Pedro Alves <palves@redhat.com>
1201 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1202 DR_CONTROL before setting DR0..DR3.
1203 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1204 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1205 bits of DR_CONTROL related to the debug register slot being
1206 disabled. If all slots are vacant, clear local slowdown as well,
1207 and assert DR_CONTROL is 0.
1209 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1211 * python/lib/gdb/command/xmethods.py
1212 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1213 current progspace only if the string "progspace" matches LOCUS_RE.
1215 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1217 Fix --with-system-readline with readline-6.3 patch 5.
1218 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1219 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1222 2014-06-20 Tom Tromey <tromey@redhat.com>
1224 * dwarf2read.c (dw2_get_real_path): Use correct type in
1226 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1228 2014-06-20 Gary Benson <gbenson@redhat.com>
1230 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1231 * common/glibc_thread_db.h: Likewise.
1232 * common/i386-cpuid.h: Likewise.
1233 * common/i386-gcc-cpuid.h: Likewise.
1234 * common/linux-btrace.h: Likewise.
1235 * common/linux-osdata.h: Likewise.
1236 * common/linux-procfs.h: Likewise.
1237 * common/linux-ptrace.h: Likewise.
1238 * common/mips-linux-watch.h: Likewise.
1239 * common/linux-btrace.c: Moved to nat.
1240 * common/linux-osdata.c: Likewise.
1241 * common/linux-procfs.c: Likewise.
1242 * common/linux-ptrace.c: Likewise.
1243 * common/mips-linux-watch.c: Likewise.
1244 * nat/gdb_thread_db.h: Moved from common.
1245 * nat/glibc_thread_db.h: Likewise.
1246 * nat/i386-cpuid.h: Likewise.
1247 * nat/i386-gcc-cpuid.h: Likewise.
1248 * nat/linux-btrace.c: Likewise.
1249 * nat/linux-btrace.h: Likewise.
1250 * nat/linux-osdata.c: Likewise.
1251 * nat/linux-osdata.h: Likewise.
1252 * nat/linux-procfs.c: Likewise.
1253 * nat/linux-procfs.h: Likewise.
1254 * nat/linux-ptrace.c: Likewise.
1255 * nat/linux-ptrace.h: Likewise.
1256 * nat/mips-linux-watch.c: Likewise.
1257 * nat/mips-linux-watch.h: Likewise.
1258 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1259 (object file files): Reordered.
1260 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1261 of glibc_thread_db.h.
1263 2014-06-20 Gary Benson <gbenson@redhat.com>
1265 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1266 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1267 (i386_dr_low): Likewise.
1268 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1269 (i386_dr_low_set_addr): Likewise.
1270 (i386_dr_low_get_addr): Likewise.
1271 (i386_dr_low_can_set_control): Likewise.
1272 (i386_dr_low_set_control): Likewise.
1273 (i386_dr_low_get_control): Likewise.
1274 (i386_dr_low_get_status): Likewise.
1275 (i386_get_debug_register_length): Likewise.
1276 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1277 (i386_dr_low): Likewise.
1278 * nat/i386-dregs.c (i386-low.h): Remove include.
1279 (i386-nat.h): Likewise.
1280 (nat/i386-dregs.h): New include.
1281 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1282 (i386_dr_low_set_addr): Likewise.
1283 (i386_dr_low_get_addr): Likewise.
1284 (i386_dr_low_can_set_control): Likewise.
1285 (i386_dr_low_set_control): Likewise.
1286 (i386_dr_low_get_control): Likewise.
1287 (i386_dr_low_get_status): Likewise.
1288 (i386_get_debug_register_length): Likewise.
1289 (debug_hw_points): Likewise.
1291 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1293 * Makefile.in (SFILES): Add d-exp.y.
1294 (YYFILES): Add d-exp.c.
1295 (YYOBJ): Add d-exp.o.
1296 (local-maintainer-clean): Delete d-exp.c.
1297 * d-exp.y: New file.
1298 * d-lang.h (d_parse): New declaration.
1299 (d_error): New declaration.
1300 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1301 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1302 PREC_ORDER operators.
1303 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1305 2014-06-19 Yao Qi <yao@codesourcery.com>
1307 * gdbthread.h (any_running): Remove the declaration.
1308 * thread.c (any_running): Remove.
1310 2014-06-19 Yao Qi <yao@codesourcery.com>
1312 * gdbthread.h (struct thread_info) <state>: Change its type to
1313 'enum thread_state'. Update comments.
1315 2014-06-19 Pedro Alves <palves@redhat.com>
1317 * gdbthread.h (ALL_THREADS): Delete.
1318 (ALL_NON_EXITED_THREADS): New macro.
1319 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1320 instead of ALL_THREADS.
1321 * infrun.c (find_thread_needs_step_over)
1322 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1323 instead of ALL_THREADS.
1324 * record-btrace.c (record_btrace_open)
1325 (record_btrace_stop_recording, record_btrace_close)
1326 (record_btrace_is_replaying, record_btrace_resume)
1327 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1328 * remote.c (append_pending_thread_resumptions): Likewise.
1329 * thread.c (thread_apply_all_command): Likewise.
1331 2014-06-19 Gary Benson <gbenson@redhat.com>
1333 * i386-nat.c (i386_stopped_by_watchpoint):
1334 Use i386_dr_stopped_by_watchpoint.
1335 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1336 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1338 2014-06-19 Gary Benson <gbenson@redhat.com>
1340 * nat/i386-dregs.c: New file.
1341 * Makefile.in (i386-dregs.o): New rule.
1342 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1343 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1344 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1345 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1346 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1347 * config/i386/go32.mh (NATDEPFILES): Likewise.
1348 * config/i386/linux.mh (NATDEPFILES): Likewise.
1349 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1350 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1351 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1352 * i386-nat.h (debug_hw_points): New declaration.
1353 * i386-nat.c (breakpoint.h): Remove include.
1354 (command.h): Likewise.
1355 (target.h): Likewise.
1356 (gdb_assert.h): Likewise.
1357 (debug_hw_points): Made nonstatic.
1358 (debug_printf): Now in i386-dregs.c.
1359 (TARGET_HAS_DR_LEN_8): Likewise.
1360 (DR_CONTROL_SHIFT): Likewise.
1361 (DR_CONTROL_SIZE): Likewise.
1362 (DR_RW_EXECUTE): Likewise.
1363 (DR_RW_WRITE): Likewise.
1364 (DR_RW_READ): Likewise.
1365 (DR_RW_IORW): Likewise.
1366 (DR_LEN_1): Likewise.
1367 (DR_LEN_2): Likewise.
1368 (DR_LEN_4): Likewise.
1369 (DR_LEN_8): Likewise.
1370 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1371 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1372 (DR_ENABLE_SIZE): Likewise.
1373 (DR_LOCAL_SLOWDOWN): Likewise.
1374 (DR_GLOBAL_SLOWDOWN): Likewise.
1375 (DR_CONTROL_RESERVED): Likewise.
1376 (I386_DR_CONTROL_MASK): Likewise.
1377 (I386_DR_VACANT): Likewise.
1378 (I386_DR_LOCAL_ENABLE): Likewise.
1379 (I386_DR_GLOBAL_ENABLE): Likewise.
1380 (I386_DR_DISABLE): Likewise.
1381 (I386_DR_SET_RW_LEN): Likewise.
1382 (I386_DR_GET_RW_LEN): Likewise.
1383 (I386_DR_WATCH_HIT): Likewise.
1384 (i386_wp_op_t): Likewise.
1385 (i386_show_dr): Likewise.
1386 (i386_length_and_rw_bits): Likewise.
1387 (i386_insert_aligned_watchpoint): Likewise.
1388 (i386_remove_aligned_watchpoint): Likewise.
1389 (i386_handle_nonaligned_watchpoint): Likewise.
1390 (i386_update_inferior_debug_regs): Likewise.
1391 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1392 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1393 (i386_region_ok_for_watchpoint):
1394 Use i386_dr_region_ok_for_watchpoint.
1395 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1397 2014-06-19 Gary Benson <gbenson@redhat.com>
1399 * i386-nat.c (i386_insert_hw_breakpoint): Use
1400 i386_insert_watchpoint.
1401 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1403 2014-06-19 Gary Benson <gbenson@redhat.com>
1405 * i386-nat.c (i386_dr_show): Renamed to
1406 i386_show_dr and made static. All uses updated.
1407 (i386_dr_length_and_rw_bits): Renamed to
1408 i386_length_and_rw_bits and made static.
1410 (i386_dr_insert_aligned_watchpoint): Renamed to
1411 i386_insert_aligned_watchpoint and made static.
1413 (i386_dr_remove_aligned_watchpoint): Renamed to
1414 i386_remove_aligned_watchpoint and made static.
1416 (i386_dr_update_inferior_debug_regs): Renamed to
1417 i386_update_inferior_debug_regs and made static.
1419 * nat/i386-dregs.h (i386_dr_show): Removed.
1420 (i386_dr_length_and_rw_bits): Likewise.
1421 (i386_dr_insert_aligned_watchpoint): Likewise.
1422 (i386_dr_remove_aligned_watchpoint): Likewise.
1423 (i386_dr_update_inferior_debug_regs): Likewise.
1425 2014-06-19 Gary Benson <gbenson@redhat.com>
1427 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1428 * configure: Regenerate.
1429 * config.in: Likewise.
1430 * main.c (signal.h): New include.
1431 (setup_alternate_signal_stack): New function.
1432 (captured_main): Call the above.
1433 * cp-support.c (signal.h): New include.
1434 (catch_demangler_crashes): New flag.
1435 (SIGJMP_BUF): New define.
1436 (SIGSETJMP): Likewise.
1437 (SIGLONGJMP): Likewise.
1438 (gdb_demangle_jmp_buf): New static global.
1439 (gdb_demangle_attempt_core_dump): Likewise.
1440 (gdb_demangle_signal_handler): New function.
1441 (gdb_demangle): If catch_demangler_crashes is set, install the
1442 above signal handler before calling bfd_demangle, and restore
1443 the original signal handler afterwards. Display the offending
1444 symbol and call demangler_warning the first time a segmentation
1446 (_initialize_cp_support): New maint set/show command.
1448 2014-06-19 Gary Benson <gbenson@redhat.com>
1450 * utils.h (resource_limit_kind): New enum.
1451 (can_dump_core): New declaration.
1452 (warn_cant_dump_core): Likewise.
1453 (dump_core): Likewise.
1454 * utils.c (dump_core): Made nonstatic. Added new
1455 parameter "limit_kind".
1456 (can_dump_core): Made nonstatic. Moved printing code to...
1457 (warn_cant_dump_core): New function.
1458 (can_dump_core_warn): Likewise.
1459 (internal_vproblem): Replace calls to can_dump_core with
1460 calls to can_dump_core_warn. Supply new argument to each.
1462 2014-06-19 Gary Benson <gbenson@redhat.com>
1464 * utils.h (demangler_vwarning): New declaration.
1465 (demangler_warning): Likewise.
1466 * utils.c (struct internal_problem)
1467 <user_settable_should_quit>: New field.
1468 <user_settable_should_dump_core>: Likewise
1469 (internal_error_problem): Add values for above new fields.
1470 (internal_warning_problem): Likewise.
1471 (demangler_warning_problem): New static global.
1472 (demangler_vwarning): New function.
1473 (demangler_warning): Likewise.
1474 (add_internal_problem_command): Selectively add commands.
1475 (_initialize_utils): New internal problem command.
1476 * maint.c (maintenance_demangler_warning): New function.
1477 (_initialize_maint_cmds): New command.
1479 2014-06-18 Tom Tromey <tromey@redhat.com>
1481 * f-valprint.c (info_common_command_for_block): Update.
1482 * symtab.h (struct general_symbol_info) <common_block>: Now
1485 2014-06-18 Tom Tromey <tromey@redhat.com>
1487 * symtab.h (struct symtab) <blockvector>: Now const.
1488 * ada-lang.c (ada_add_global_exceptions): Update.
1489 * buildsym.c (augment_type_symtab): Update.
1490 * dwarf2read.c (dw2_lookup_symbol): Update.
1491 * jit.c (finalize_symtab): Update.
1492 * jv-lang.c (add_class_symtab_symbol): Update.
1493 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1495 * objfiles.c (objfile_relocate1): Update.
1496 * psymtab.c (lookup_symbol_aux_psymtabs)
1497 (maintenance_check_psymtabs): Update.
1498 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1500 * spu-tdep.c (spu_catch_start): Update.
1501 * symmisc.c (dump_symtab_1): Update.
1502 * symtab.c (lookup_global_symbol_from_objfile)
1503 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1504 (basic_lookup_transparent_type_quick)
1505 (basic_lookup_transparent_type, find_pc_sect_symtab)
1506 (find_pc_sect_line, search_symbols): Update.
1507 * block.c (find_block_in_blockvector): Make "bl" const.
1508 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1510 (blockvector_contains_pc): Make "bv" const.
1511 (block_for_pc_sect): Update.
1512 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1513 (blockvector_contains_pc): Update.
1514 * breakpoint.c (resolve_sal_pc): Update.
1515 * inline-frame.c (block_starting_point_at): Update.
1517 2014-06-18 Tom Tromey <tromey@redhat.com>
1519 * completer.c (complete_line): Make "line_buffer" const.
1520 * completer.h (complete_line): Update.
1522 2014-06-18 Tom Tromey <tromey@redhat.com>
1524 * symtab.c (add_macro_name): Remove unneeded cast.
1526 2014-06-18 Tom Tromey <tromey@redhat.com>
1528 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1529 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1531 2014-06-18 Tom Tromey <tromey@redhat.com>
1533 * probe.c (info_probes_for_ops): Make "arg" const.
1534 * probe.h (info_probes_for_ops): Update.
1536 2014-06-18 Tom Tromey <tromey@redhat.com>
1538 * varobj.c (varobj_create): Update.
1539 * valops.c (value_of_this): Update.
1540 * tracepoint.c (add_local_symbols, scope_info): Update.
1541 * symtab.h (struct general_symbol_info) <block>: Now const.
1542 * symtab.c (skip_prologue_sal)
1543 (default_make_symbol_completion_list_break_on)
1544 (skip_prologue_using_sal): Update.
1545 * stack.h (iterate_over_block_locals)
1546 (iterate_over_block_local_vars): Update.
1547 * stack.c (print_frame_args): Update.
1548 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1550 (get_selected_block): Make return type const.
1551 * python/py-frame.c (frapy_block): Update.
1552 * python/py-block.c (gdbpy_block_for_pc): Update.
1553 * p-exp.y (%union) <bval>: Now const.
1554 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1555 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1556 * m2-exp.y (%union) <bval>: Now const.
1557 * linespec.c (get_current_search_block): Make return type const.
1558 (create_sals_line_offset, find_label_symbols): Update.
1559 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1561 (block_starting_point_at): Make "block" const.
1562 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1563 (check_exception_resume): Update.
1564 * guile/scm-frame.c (gdbscm_frame_block): Update.
1565 * guile/scm-block.c (gdbscm_lookup_block): Update.
1566 * frame.h (get_frame_block): Update.
1567 (get_selected_block): Make return type const.
1568 * frame.c (frame_id_inner): Update.
1569 * f-valprint.c (info_common_command_for_block)
1570 (info_common_command): Update.
1571 * dwarf2loc.c (dwarf2_find_location_expression)
1572 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1573 (locexpr_describe_location_piece): Update.
1574 * c-exp.y (%union) <bval>: Now const.
1575 * breakpoint.c (resolve_sal_pc): Update.
1576 * blockframe.c (get_frame_block):Make return type const.
1577 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1578 (block_innermost_frame): Update.
1579 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1580 (block_for_pc, block_for_pc_sect): Update.
1581 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1583 (block_for_pc_sect, block_for_pc): Make return type const.
1584 * ax-gdb.c (gen_expr): Update.
1585 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1586 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1587 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1588 (ada_read_var_value): Update.
1589 * ada-exp.y (struct name_info) <block>: Now const.
1591 (block_lookup): Constify.
1593 2014-06-18 Gary Benson <gbenson@redhat.com>
1595 * nat/i386-dregs.h: New file.
1596 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1597 * i386-nat.h (i386-dregs.h): New include.
1598 (DR_FIRSTADDR): Now in i386-dregs.h.
1599 (DR_LASTADDR): Likewise.
1600 (DR_NADDR): Likewise.
1601 (DR_STATUS): Likewise.
1602 (DR_CONTROL): Likewise.
1603 (i386_debug_reg_state): Likewise.
1604 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1606 2014-06-18 Don Breazeal <donb@codesourcery.com>
1608 * breakpoint.c (set_longjmp_breakpoint): Call
1609 momentary_breakpoint_from_master with additional argument.
1610 (set_longjmp_breakpoint_for_call_dummy): Call
1611 momentary_breakpoint_from_master with additional argument.
1612 (set_std_terminate_breakpoint): Call
1613 momentary_breakpoint_from_master with additional argument.
1614 (momentary_breakpoint_from_master): Add argument to function
1615 definition and use it to initialize structure member flag.
1616 (clone_momentary_breakpoint): Call
1617 momentary_breakpoint_from_master with additional argument.
1618 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1619 member flags set in momentary_breakpoint_from_master.
1621 2014-06-18 Gary Benson <gbenson@redhat.com>
1623 * i386-nat.c (i386_show_dr): Renamed to
1624 i386_dr_show and made nonstatic. All uses updated.
1625 (i386_length_and_rw_bits): Renamed to
1626 i386_dr_length_and_rw_bits and made nonstatic.
1628 (i386_insert_aligned_watchpoint): Renamed to
1629 i386_dr_insert_aligned_watchpoint and made nonstatic.
1631 (i386_remove_aligned_watchpoint): Renamed to
1632 i386_dr_remove_aligned_watchpoint and made nonstatic.
1634 (i386_update_inferior_debug_regs): Renamed to
1635 i386_dr_update_inferior_debug_regs and made nonstatic.
1638 2014-06-18 Gary Benson <gbenson@redhat.com>
1640 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1641 (i386_dr_low_can_set_control): Likewise.
1642 (i386_dr_low_set_addr): Likewise.
1643 (i386_dr_low_set_control): Likewise.
1644 (i386_dr_low_get_addr): Likewise.
1645 (i386_dr_low_get_status): Likewise.
1646 (i386_dr_low_get_control): Likewise.
1647 (i386_insert_aligned_watchpoint): Use new macros.
1648 (i386_update_inferior_debug_regs): Likewise.
1649 (i386_stopped_data_address): Likewise.
1651 2014-06-18 Gary Benson <gbenson@redhat.com>
1653 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1654 New parameter. All uses updated.
1656 2014-06-18 Gary Benson <gbenson@redhat.com>
1658 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1661 2014-06-18 Gary Benson <gbenson@redhat.com>
1663 * i386-nat.c (debug_printf): New macro.
1664 (i386_get_debug_register_length): Likewise.
1665 (TARGET_HAS_DR_LEN_8): Use above macro.
1666 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1667 and printf_unfiltered. Use phex to format values.
1669 2014-06-18 Gary Benson <gbenson@redhat.com>
1671 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1674 2014-06-18 Gary Benson <gbenson@redhat.com>
1676 * i386-nat.c: Comment changes.
1678 2014-06-18 Gary Benson <gbenson@redhat.com>
1680 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1682 2014-06-18 Gary Benson <gbenson@redhat.com>
1684 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1685 (i386_insert_aligned_watchpoint): Likewise.
1686 (i386_remove_aligned_watchpoint): Likewise.
1687 (i386_handle_nonaligned_watchpoint): Likewise.
1689 2014-06-18 Gary Benson <gbenson@redhat.com>
1691 * i386-nat.c: Whitespace changes.
1693 2014-06-17 Samuel Bronson <naesten@gmail.com>
1695 * MAINTAINERS: Update Roland McGrath's email address.
1696 Thanks to Sergio Durigan Junior for pointing out that he left
1697 Red Hat a while ago, and giving me a current address.
1699 2014-06-17 Tom Tromey <tromey@redhat.com>
1701 * utils.h (savestring): Remove declaration.
1703 2014-06-17 Tom Tromey <tromey@redhat.com>
1705 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1707 2014-06-16 Keith Seitz <keiths@redhat.com>
1710 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1711 to update the varobj if inferior_ptid is null_ptid.
1713 2014-06-16 Tom Tromey <tromey@redhat.com>
1715 * target.h (struct target_ops) <to_info_proc>: Make parameter
1717 (target_info_proc): Update.
1718 * target.c (target_info_proc): Make "args" const.
1719 * procfs.c (procfs_info_proc): Update.
1720 * linux-tdep.c (linux_info_proc): Update.
1721 (linux_core_info_proc_mappings): Make "args" const.
1722 (linux_core_info_proc): Update.
1723 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1724 * gdbarch.c: Rebuild.
1725 * gdbarch.h: Rebuild.
1726 * corelow.c (core_info_proc): Update.
1728 2014-06-16 Tom Tromey <tromey@redhat.com>
1730 * target.h (struct target_ops) <to_disconnect>: Make parameter
1732 (target_disconnect): Update.
1733 * target.c (target_disconnect): Make "args" const.
1734 * target-delegates.c: Rebuild.
1735 * remote.c (remote_disconnect): Update.
1736 * record.h (record_disconnect): Update.
1737 * record.c (record_disconnect): Update.
1738 * inf-child.c (inf_child_disconnect): Update.
1740 2014-06-16 Tom Tromey <tromey@redhat.com>
1742 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1743 * target.c (debug_to_rcmd, default_rcmd): Update.
1744 * target-delegates.c: Rebuild.
1745 * remote.c (remote_rcmd): Update.
1746 * monitor.c (monitor_rcmd): Update.
1748 2014-06-16 Pedro Alves <palves@redhat.com>
1750 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1751 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1752 have OBJF_SHARED set.
1753 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1754 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1755 instead of OBJF_USERLOADED.
1756 * objfiles.h (OBJF_SHARED): Update comment.
1757 (userloaded_objfile_contains_address_p): Rename to ...
1758 (shared_objfile_contains_address_p): ... this, and update
1760 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1762 (remove_symbol_file_command): Skip objfiles that don't have
1765 2014-06-16 Tom Tromey <tromey@redhat.com>
1767 * minsyms.h (prim_record_minimal_symbol)
1768 (prim_record_minimal_symbol_and_info): Update comments.
1770 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1772 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1773 or --without-guile, according to how GDB was built.
1775 2014-06-13 Tom Tromey <tromey@redhat.com>
1777 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1779 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1781 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1783 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1784 help_list.Pass all_commands, not -1, to help_list.
1785 * cli/cli-dump.c (dump_command, append_command)
1786 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1787 (binary_dump_command, binary_append_command): Pass all_commands,
1788 not -1, to help_list.
1789 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1791 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1793 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1795 * top.c (set_history): Pass all_commands, not -1, to help_list.
1796 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1797 all_commands, not -1, to help_list.
1798 * symfile.c (overlay_command): Pass all_commands, not -1, to
1800 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1802 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1804 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1806 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1807 not -1, to help_list.
1808 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1809 not -1, to help_list.
1810 * maint.c (maintenance_command, maintenance_info_command)
1811 (maintenance_print_command, maintenance_set_cmd): Pass
1812 all_commands, not -1, to help_list.
1813 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1815 * language.c (set_check): Pass all_commands, not -1, to help_list.
1816 * infcmd.c (unset_command): Pass all_commands, not -1, to
1818 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1820 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1822 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1824 * breakpoint.c (save_command): Pass all_commands, not -1, to
1826 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1827 all_commands, not -1, to help_list.
1829 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1831 * regcache.c (struct register_to_invalidate): New structure.
1832 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1834 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1836 2014-06-12 Yao Qi <yao@codesourcery.com>
1838 * varobj.c (varobj_get_num_children): Call
1839 varobj_is_dynamic_p.
1840 (varobj_list_children): Likewise.
1841 (varobj_update): Likewise. Update comments.
1843 2014-06-12 Yao Qi <yao@codesourcery.com>
1845 * varobj.c (varobj_pretty_printed_p): Rename to ...
1846 (varobj_is_dynamic_p): ... this. New function.
1847 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1848 (varobj_is_dynamic_p): Declare.
1849 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1850 (mi_print_value_p, varobj_update_one): Likewise.
1852 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1853 Yao Qi <yao@codesourcery.com>
1855 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1856 (varobj_get_iterator): Wrap up code for pretty-printer by
1857 "#if HAVE_PYTHON" and "#endif".
1858 (update_dynamic_varobj_children): Likewise.
1860 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1861 Yao Qi <yao@codesourcery.com>
1863 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1864 gdb_python_initialized is false. Move some code from varobj.c.
1865 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1866 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1867 (struct varobj_item): Moved to varobj-iter.h".
1868 (varobj_clear_saved_item): New function.
1869 (update_dynamic_varobj_children): Move python-related code to
1871 (free_variable): Call varobj_clear_saved_item and
1874 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1875 Yao Qi <yao@codesourcery.com>
1877 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1878 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1879 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1880 (py-varobj.o): New rule.
1881 * python/py-varobj.c: New file.
1882 * python/python-internal.h (py_varobj_get_iterator): Declare.
1883 * varobj-iter.h: New file.
1884 * varobj.c: Include "varobj-iter.h"
1885 (struct varobj) <child_iter>: Change its type from "PyObject *"
1886 to "struct varobj_iter *".
1887 <saved_item>: Likewise.
1888 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1889 [HAVE_PYTHON] (varobj_get_iterator): New function.
1890 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1891 python-specific code to python/py-varobj.c.
1892 (install_visualizer): Call varobj_iter_delete instead of
1894 * varobj.h (varobj_ensure_python_env): Declare.
1896 2014-06-12 Yao Qi <yao@codesourcery.com>
1898 * varobj.c (struct varobj_item): New structure.
1899 (create_child_with_value): Update declaration.
1900 (varobj_add_child): Replace arguments 'name' and 'value' with
1901 'item'. All callers updated.
1902 (install_dynamic_child): Likewise.
1903 (update_dynamic_varobj_children): Likewise.
1904 (varobj_add_child): Likewise.
1905 (create_child_with_value): Likewise.
1907 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1909 * NEWS: Create a new section for the next release branch.
1910 Rename the section of the current branch, now that it has
1913 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1915 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1916 * version.in: Bump version to 7.8.50.DATE-cvs.
1918 2014-06-11 Pedro Alves <palves@redhat.com>
1921 * ser-mingw.c (net_windows_socket_check_pending): New function.
1922 (net_windows_select_thread): Ignore spurious wakeups. Use
1923 net_windows_socket_check_pending.
1924 (net_windows_wait_handle): Check for pending events with
1925 ioctlsocket, through net_windows_socket_check_pending, instead of
1926 checking the socket's event.
1928 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1930 * python/python-internal.h (gdb_PyObject_GetAttrString)
1931 (gdb_PyObject_HasAttrString): New inline function definitions.
1932 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1933 char * of the second argument to PyObject_GetAttrString.
1935 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1937 * serial.c (serial_write): Fix index of character to be printed
1938 in call to serial_logchar when serial debug traces are enabled.
1940 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1942 * gdbtypes (resolve_dynamic_range): Add function description.
1944 2014-06-09 Pedro Alves <palves@redhat.com>
1946 * linux-nat.c (linux_child_follow_fork): Initialize status with
1947 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1948 inner block. Only pass the signal to PTRACE_DETACH if in pass
1951 2014-06-09 Gary Benson <gbenson@redhat.com>
1953 * common/signals.c (gdb_signal_from_host): Reorder to separate
1954 the always-available ANSI-standard signals from the signals that
1956 (do_gdb_signal_to_host): Likewise.
1957 * proc-events.c (signal_table): Likewise.
1959 2014-06-08 Hui Zhu <hui@codesourcery.com>
1961 * common/linux-ptrace.c (linux_disable_event_reporting): New
1963 * common/linux-ptrace.h (linux_disable_event_reporting): New
1965 * linux-nat.c (linux_child_follow_fork): Do a single step before
1968 2014-06-07 Keith Seitz <keiths@redhat.com>
1972 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1973 from symbol_matches_domain in symtab.c. All local callers
1974 of symbol_matches_domain updated.
1975 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1976 search STRUCT_DOMAIN.
1977 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1978 independently. standard_lookup will do that automatically.
1979 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1980 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1981 (cp_lookup_symbol_in_namespace): Likewise.
1982 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1983 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1984 may return a STRUCT_DOMAIN match.
1985 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1986 * cp-support.c: Include language.h.
1987 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1989 * psymtab.c (match_partial_symbol): Compare the requested
1990 domain with the symbol's domain directly.
1991 (lookup_partial_symbol): Likewise.
1992 * symtab.c (lookup_symbol_in_language): Explain when/why
1993 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1994 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1995 appropriate languages.
1996 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1997 and moved to ada-lang.c
1998 (lookup_block_symbol): Explain that this function only returns
1999 symbol matching the requested DOMAIN.
2000 Compare the requested domain with the symbol's domain directly.
2001 (iterate_over_symbols): Compare the requested domain with the
2002 symbol's domain directly.
2003 * symtab.h (symbol_matches_domain): Remove.
2005 2014-06-06 Doug Evans <xdje42@gmail.com>
2007 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2008 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2009 (gdbscm_guile_version_is_at_least): Declare.
2010 (gdbscm_scm_string_to_int): Declare.
2011 * guile/guile.c (gdbscm_guile_major_version): New global.
2012 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2013 (guile_datadir): New static global.
2014 (gdbscm_guile_data_directory): New function.
2015 (initialize_scheme_side): Update.
2016 (misc_guile_functions): Add guile-data-directory.
2017 (initialize_gdb_module): Fetch guile version number.
2018 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2019 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2020 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2021 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2023 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2024 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2025 * guile/scm-value.c (gdbscm_value_to_string): Only call
2026 scm_port_conversion_strategy if Guile version >= 2.0.6.
2028 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2030 * main.c (print_gdb_help): Add -q and --silent.
2032 2014-06-06 Gary Benson <gbenson@redhat.com>
2034 * common/signals.c: Remove preprocessor conditionals for
2035 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2036 SIGSEGV and SIGTERM.
2037 * proc-events.c: Likewise.
2039 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2041 * symfile.c (symfile_free_objfile): Remove restriction to
2043 * symfile-mem.c (symbol_file_add_from_memory): Call
2044 add_target_sections_of_objfile.
2046 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2048 * guile/scm-value.c (gdbscm_history_append_x): Use
2049 'vlscm_get_value_smob_arg_unsafe' instead of
2050 'vlscm_scm_to_value'.
2052 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2055 * utils.c (printchar): Don't escape at all if quoter is NUL.
2056 Update function documentation to clarify effect of parameter
2058 * remote.c (escape_buffer): Pass '\\' as the quoter to
2059 fputstrn_unfiltered.
2060 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2061 generate the output.
2062 (mi_solib_unloaded): Same.
2064 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2066 * development.sh: Delete.
2067 * Makefile.in (config.status): Adjust dependency on development.sh.
2068 * configure.ac: Adjust development.sh source call.
2069 * configure: Regenerate.
2071 2014-06-04 Doug Evans <xdje42@gmail.com>
2073 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2074 is_scheme_bkpt, spec.
2075 (bpscm_make_breakpoint_smob): Initialize new members.
2076 (gdbscm_create_breakpoint_x): Split into two ...
2077 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2078 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2079 (scheme_function breakpoint_functions): Update.
2080 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2081 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2082 register-breakpoint!.
2084 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2087 * mem-break.c (z_type_supported): Return zero if
2088 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2090 2014-06-04 Tom Tromey <tromey@redhat.com>
2092 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2093 value_from_contents_and_address_unresolved.
2094 (ada_template_to_fixed_record_type_1): Likewise.
2095 (ada_which_variant_applies): Likewise.
2096 * value.h (value_from_contents_and_address_unresolved): Declare.
2097 * value.c (value_from_contents_and_address_unresolved): New
2099 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2100 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2101 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2103 2014-06-04 Tom Tromey <tromey@redhat.com>
2105 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2107 2014-06-04 Tom Tromey <tromey@redhat.com>
2109 * procfs.c (procfs_attach): Make "args" const.
2110 * windows-nat.c (windows_attach): Make "args" const.
2111 * nto-procfs.c (procfs_attach): Make "args" const.
2112 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2113 * go32-nat.c (go32_attach): Make "args" const.
2114 * gnu-nat.c (gnu_attach): Make "args" const.
2115 * darwin-nat.c (darwin_attach): Make "args" const.
2116 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2117 * linux-nat.c (linux_nat_attach): Make "args" const.
2118 * remote.c (extended_remote_attach_1, extended_remote_attach):
2120 * target.h (struct target_ops) <to_attach>: Make "args" const.
2121 (find_default_attach): Likewise.
2122 * utils.c (parse_pid_to_attach): Make "args" const.
2123 * utils.h (parse_pid_to_attach): Update.
2125 2014-06-04 Tom Tromey <tromey@redhat.com>
2127 * target-delegates.c: Rebuild.
2128 * target.c (default_thread_address_space): New function.
2129 (target_thread_address_space): Simplify.
2130 * target.h (struct target_ops) <to_thread_address_space>: Add
2131 TARGET_DEFAULT_FUNC.
2133 2014-06-04 Doug Evans <xdje42@gmail.com>
2135 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2137 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2139 * record-btrace.c: Include event-loop.h and inf-loop.h.
2140 (record_btrace_resume_exec_dir)
2141 (record_btrace_async_inferior_event_handler)
2142 (record_btrace_handle_async_inferior_event): New.
2143 (record_btrace_open): Create async event handler.
2144 (record_btrace_close): Delete async event handler.
2145 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2146 Mark async event handler.
2147 (record_btrace_execution_direction): New.
2148 (init_record_btrace_ops): Initialize to_execution_direction.
2150 2014-06-03 Doug Evans <xdje42@gmail.com>
2152 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2153 (gdbscm_make_parameter): Ditto.
2155 2014-06-03 Doug Evans <dje@google.com>
2157 * exec.c (exec_close_1): Call clear_section_table instead of
2158 resize_section_table.
2159 (clear_section_table): New function.
2160 (resize_section_table): Make static. Rename arg num_added to
2162 * exec.h (clear_section_table): Declare.
2163 (resize_section_table): Delete.
2164 * progspace.c (release_program_space): Call clear_section_table
2165 instead of resize_section_table.
2167 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2169 * NEWS (Python Scripting): Add entry about the new xmethods
2172 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2174 * python/py-xmethods.c: New file.
2175 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2176 (objfpy_dealloc): XDECREF on the new xmethods field.
2177 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2179 (objfpy_get_xmethods): New function.
2180 (objfile_getset): New entry 'xmethods'.
2181 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2182 (pspy_dealloc): XDECREF on the new xmethods field.
2183 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2185 (pspy_get_xmethods): New function.
2186 (pspace_getset): New entry 'xmethods'.
2187 * python/python-internal.h: Add declarations for new functions.
2188 * python/python.c (_initialize_python): Invoke
2189 gdbpy_initialize_xmethods.
2190 * python/lib/gdb/__init__.py (xmethods): New
2192 * python/lib/gdb/xmethod.py: New file.
2193 * python/lib/gdb/command/xmethods.py: New file.
2195 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2197 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2198 best match method returned by find_overload_match is an xmethod.
2199 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2200 the best matching operator returned by find_overload_match is an
2202 * valops.c: #include "extension.h".
2203 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2204 Return void. The list of matching source methods is returned in
2205 "fn_list" and a vector of matching debug method workers is
2206 returned in "xm_worker_vec". Update all callers.
2207 (value_find_oload_method_list): Likewise.
2208 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2209 non-NULL, then the index of the best matching method in this
2210 vector is returned. Update all callers.
2211 (find_overload_match): Include xmethods while performing overload
2214 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2216 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2217 * extension-priv.h (struct extension_language_ops): Add the
2219 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2220 get_matching_xmethod_workers, get_xmethod_argtypes,
2221 invoke_xmethod, free_xmethod_worker,
2222 free_xmethod_worker_vec): New functions.
2223 * extension.h: #include "common/vec.h".
2224 New function declarations.
2225 (struct xmethod_worker): New struct.
2226 (VEC (xmethod_worker_ptr)): New vector type.
2227 (xmethod_worker_ptr): New typedef.
2228 (xmethod_worker_vec): Likewise.
2229 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2231 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2232 (struct builtin_type): New field "xmethod".
2233 * valarith.c (value_ptradd): Assert that the value argument is not
2235 * valops.c (value_must_coerce_to_target): Return 0 for
2236 lval_xcallable values.
2237 * value.c (struct value): New field XM_WORKER in the field
2239 (value_address, value_raw_address): Return 0 for lval_xcallable
2241 (set_value_address): Assert that the value is not an
2243 (value_free): Free the associated xmethod worker when freeing
2244 lval_xcallable values.
2245 (set_value_component_location): Assert that the WHOLE value is not
2247 (value_of_xmethod, call_xmethod): New functions.
2248 * value.h: Declare "struct xmethod_worker".
2249 Declare new functions value_of_xmethod, call_xmethod.
2251 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2252 Pedro Alves <palves@redhat.com>
2254 PR breakpoints/17000
2255 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2256 New function, extracted from software_breakpoint_inserted_here_p.
2257 (software_breakpoint_inserted_here_p): Replace factored out code
2258 by call to find_non_raw_software_breakpoint_inserted_here.
2259 (bp_target_info_copy_insertion_state): New function.
2260 (bkpt_insert_location): Handle the case of a single-step
2261 breakpoint already inserted at the same address.
2262 (bkpt_remove_location): Handle the case of a single-step
2263 breakpoint still inserted at the same address.
2264 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2265 breakpoint already inserted at the same address.
2266 (deprecated_remove_raw_breakpoint): Handle the case of a
2267 non-raw breakpoint still inserted at the same address.
2268 (find_single_step_breakpoint): New function, extracted from
2269 single_step_breakpoint_inserted_here_p.
2270 (find_single_step_breakpoint): New function,
2271 factored out from single_step_breakpoint_inserted_here_p.
2272 (single_step_breakpoint_inserted_here_p): Reimplement.
2274 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2276 Pushed by Joel Brobecker <brobecker@adacore.com>
2277 * source.c (show_substitute_path_command): Fix display of matching
2280 2014-06-03 Gary Benson <gbenson@redhat.com>
2282 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2284 2014-06-02 Doug Evans <xdje42@gmail.com>
2286 Add parameter support for Guile.
2287 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2288 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2289 (scm-param.o): New rule.
2290 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2291 (gdbscm_misc_error): Declare.
2292 (gdbscm_canonicalize_command_name): Declare.
2293 (gdbscm_scm_to_host_string): Declare.
2294 (gdbscm_scm_from_host_string): Declare.
2295 (gdbscm_initialize_parameters): Declare.
2296 * guile/guile.c (initialize_gdb_module): Call
2297 gdbscm_initialize_parameters.
2298 * guile/lib/gdb.scm: Export parameter symbols.
2299 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2300 cmdscm_canonicalize_name and made public. All callers updated.
2301 * guile/scm-exception.c (gdbscm_misc_error): New function.
2302 * guile/scm-param.c: New file.
2303 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2304 (gdbscm_scm_to_host_string): New function.
2305 (gdbscm_scm_from_host_string): New function.
2306 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2308 2014-06-02 Doug Evans <xdje42@gmail.com>
2310 Add command support for Guile.
2311 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2312 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2313 (scm-cmd.o): New rule.
2314 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2315 (gdbscm_user_error_p): Declare.
2316 (gdbscm_parse_command_name): Declare.
2317 (gdbscm_valid_command_class_p): Declare.
2318 (gdbscm_initialize_commands): Declare.
2319 * guile/guile.c (initialize_gdb_module): Call
2320 gdbscm_initialize_commands.
2321 * guile/lib/gdb.scm: Export command symbols.
2322 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2323 (throw-user-error): New function.
2324 * guile/scm-cmd.c: New file.
2325 * guile/scm-exception.c (user_error_symbol): New static global.
2326 (gdbscm_user_error_p): New function.
2327 (gdbscm_initialize_exceptions): Set user_error_symbol.
2328 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2330 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2332 * top.c (command_loop): Handle comments here...
2333 (command_line_input): ... not here.
2335 2014-06-02 Doug Evans <xdje42@gmail.com>
2337 Add progspace support for Guile.
2338 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2339 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2340 (scm-progspace.o): New rule.
2341 * guile/guile-internal.h (pspace_smob): New typedef.
2342 (psscm_pspace_smob_pretty_printers): Declare.
2343 (psscm_pspace_smob_from_pspace): Declare.
2344 (psscm_scm_from_pspace): Declare.
2345 * guile/guile.c (initialize_gdb_module): Call
2346 gdbscm_initialize_pspaces.
2347 * guile/lib/gdb.scm: Export progspace symbols.
2348 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2350 (append-pretty-printer!): Ditto.
2351 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2353 * guile/scm-progspace.c: New file.
2355 2014-06-03 Alan Modra <amodra@gmail.com>
2357 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2358 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2360 2014-06-02 Doug Evans <dje@google.com>
2362 Add support for skeletonless type units.
2363 * dwarf2read.c (struct dwarf2_per_objfile): New member
2364 n_allocated_type_units.
2365 (struct dwarf2_per_objfile) <tu_stats>: New member
2366 nr_all_type_units_reallocs.
2367 (create_signatured_type_table_from_index): Initialize
2368 n_allocated_type_units
2369 (create_all_type_units): Ditto.
2370 (add_type_unit): Move up in file. New arg slot.
2371 All callers updated. Increase space for all_type_units more
2373 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2374 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2375 (lookup_dwp_signatured_type): Ditto.
2376 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2377 All callers updated.
2378 (build_type_psymtabs_1): Leave type_unit_groups as
2379 NULL if no TUs present.
2380 (print_tu_stats): New function.
2381 (process_skeletonless_type_unit): New function.
2382 (process_dwo_file_for_skeletonless_type_units): New
2384 (process_skeletonless_type_units): New function.
2385 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2386 Call print tu_stats if debugging enabled.
2388 2014-06-02 Pedro Alves <palves@redhat.com>
2390 * breakpoint.c (build_target_command_list): Don't build a command
2391 list if we have any duplicate location that isn't a dprintf.
2393 2014-06-02 Pedro Alves <palves@redhat.com>
2395 * breakpoint.c (dprintf_breakpoint_hit): New function.
2396 (initialize_breakpoint_ops): Install it as dprintf's
2397 breakpoint_hit method.
2399 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2401 * source.c (substitute_path_rule_matches): Simplify using
2402 filename_ncmp instead of FILENAME_CMP.
2404 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2406 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2408 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2410 * configure.ac: When Guile is available, check for the
2411 availability of 'scm_new_smob'.
2412 * configure, config.h.in: Regenerate.
2413 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2416 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2418 * frame.c (struct frame_info): Add stop_string field.
2419 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2420 (get_prev_frame_always): Old content moved into
2421 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2422 TRY_CATCH, handle MEMORY_ERROR exceptions.
2423 (frame_stop_reason_string): New function definition.
2424 * frame.h (unwind_stop_reason_to_string): Extend comment to
2425 mention frame_stop_reason_string.
2426 (frame_stop_reason_string): New function declaration.
2427 * stack.c (frame_info): Switch to frame_stop_reason_string.
2428 (backtrace_command_1): Switch to frame_stop_reason_string.
2429 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2430 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2431 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2433 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2435 * frame.c (frame_stop_reason_string): Rename to ...
2436 (unwind_stop_reason_to_string): this.
2437 * frame.h (frame_stop_reason_string): Rename to ...
2438 (unwind_stop_reason_to_string): this.
2439 * stack.c (frame_info): Update call to frame_stop_reason_string.
2440 (backtrace_command_1): Likewise.
2441 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2442 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2444 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2446 * frame.c (remove_prev_frame): New function.
2447 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2450 2014-05-29 Pedro Alves <palves@redhat.com>
2452 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2453 and make it const. When a single-step decays to a continue,
2454 clear 'step', not 'hw_step'. Pass whether the caller wanted
2455 to step to user_visible_resume_ptid, not what we ask the
2458 2014-05-29 Pedro Alves <palves@redhat.com>
2460 * infrun.c (process_event_stop_test, handle_step_into_function)
2461 (handle_step_into_function_backward): Adjust.
2462 Don't set the even thread's stop_step and call stop_waiting before
2463 calling end_stepping_range. Instead do that ...
2464 (end_stepping_range): ... here. Take an ecs pointer parameter.
2466 2014-05-29 Pedro Alves <palves@redhat.com>
2468 * infrun.c (stop_stepping): Rename to ...
2469 (stop_waiting): ... this.
2470 (proceed): Update comment.
2471 (process_event_stop_test, handle_inferior_event)
2472 (handle_signal_stop, handle_step_into_function)
2473 (handle_step_into_function_backward): Update.
2475 2014-05-29 Pedro Alves <palves@redhat.com>
2477 * infcall.c (run_inferior_call): Don't check whether the current
2478 thread is running after the proceed call.
2480 2014-05-29 Pedro Alves <palves@redhat.com>
2481 Tom Tromey <tromey@redhat.com>
2483 * NEWS: Mention "maint set target-async", "set mi-async", and that
2484 background execution commands are now always available.
2485 * target.h (target_async_permitted): Update comment.
2486 * target.c (target_async_permitted, target_async_permitted_1):
2488 (set_target_async_command): Rename to ...
2489 (maint_set_target_async_command): ... this.
2490 (show_target_async_command): Rename to ...
2491 (maint_show_target_async_command): ... this.
2492 (_initialize_target): Adjust.
2493 * infcmd.c (prepare_execution_command): Make extern.
2494 * inferior.h (prepare_execution_command): Declare.
2495 * infrun.c (set_observer_mode): Leave target async alone.
2496 * mi/mi-interp.c (mi_interpreter_init): Install
2497 mi_on_sync_execution_done as sync_execution_done observer.
2498 (mi_on_sync_execution_done): New function.
2499 (mi_execute_command_input_handler): Don't print the prompt if we
2500 just started a synchronous command with an async target.
2501 (mi_on_resume): Check sync_execution before printing prompt.
2502 * mi/mi-main.h (mi_async_p): Declare.
2503 * mi/mi-main.c: Include gdbcmd.h.
2504 (mi_async_p): New function.
2505 (mi_async, mi_async_1): New globals.
2506 (set_mi_async_command, show_mi_async_command, mi_async): New
2508 (exec_continue): Call prepare_execution_command.
2509 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2510 (mi_execute_async_cli_command): Use mi_async_p.
2511 (_initialize_mi_main): Install "set mi-async". Make
2512 "target-async" a deprecated alias.
2514 2014-05-29 Pedro Alves <palves@redhat.com>
2516 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2517 (_initialize_cli_interp): Adjust.
2518 * event-loop.c: Include "observer.h".
2519 (start_event_loop): Notify 'command_error' observers instead of
2520 calling display_gdb_prompt. Remove FIXME comment.
2521 * event-top.c (display_gdb_prompt): Remove call into the
2523 * inf-loop.c: Include "observer.h".
2524 (inferior_event_handler): Notify 'command_error' observers instead
2525 of calling display_gdb_prompt.
2526 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2527 observers instead of calling display_gdb_prompt.
2528 * interps.c (interp_set): Don't call display_gdb_prompt.
2529 (current_interp_display_prompt_p): Delete.
2530 * interps.h (interp_prompt_p): Delete declaration.
2531 (interp_prompt_p_ftype): Delete.
2532 (struct interp_procs) <prompt_proc_p>: Delete field.
2533 (current_interp_display_prompt_p): Delete declaration.
2534 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2535 (_initialize_mi_interp): Adjust.
2536 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2537 'command_error' observers.
2538 (tui_on_sync_execution_done, tui_on_command_error): New
2540 (tui_display_prompt_p): Delete.
2541 (_initialize_tui_interp): Adjust.
2543 2014-05-29 Pedro Alves <palves@redhat.com>
2546 * cli/cli-interp.c: Include infrun.h and observer.h.
2547 (cli_uiout, cli_interp): New globals.
2548 (cli_on_signal_received, cli_on_end_stepping_range)
2549 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2551 (cli_interpreter_init): Install them as 'end_stepping_range',
2552 'signal_received' 'signal_exited', 'exited' and 'no_history'
2554 (_initialize_cli_interp): Remove cli_interp local.
2555 * infrun.c (handle_inferior_event): Call the several stop reason
2556 observers instead of printing the stop reason directly.
2557 (end_stepping_range): New function.
2558 (print_end_stepping_range_reason, print_signal_exited_reason)
2559 (print_exited_reason, print_signal_received_reason)
2560 (print_no_history_reason): Make static, and add an uiout
2561 parameter. Print to that instead of to CURRENT_UIOUT.
2562 * infrun.h (print_end_stepping_range_reason)
2563 (print_signal_exited_reason, print_exited_reason)
2564 (print_signal_received_reason print_no_history_reason): New
2566 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2568 <cli_uiout>: New field.
2569 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2570 uiout for CLI output. Install 'signal_received',
2571 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2573 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2574 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2575 (mi_on_no_history): New functions.
2576 (ui_out_free_cleanup): Delete function.
2577 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2578 instead use the one already stored in the MI interpreter data.
2579 (mi_ui_out): Adjust.
2580 * tui/tui-interp.c: Include infrun.h and observer.h.
2581 (tui_interp): New global.
2582 (tui_on_signal_received, tui_on_end_stepping_range)
2583 (tui_on_signal_exited, tui_on_exited)
2584 (tui_on_no_history): New functions.
2585 (tui_init): Install them as 'end_stepping_range',
2586 'signal_received' 'signal_exited', 'exited' and 'no_history'
2588 (_initialize_tui_interp): Delete tui_interp local.
2590 2014-05-29 Pedro Alves <palves@redhat.com>
2593 * linux-nat.c (linux_nat_resume_callback): Rename the second
2594 parameter to 'except'. Skip LP if it points to EXCEPT.
2595 (linux_nat_resume): Don't mark the event lwp as not stopped
2596 before resuming sibling lwps. Instead ask
2597 linux_nat_resume_callback to skip the event lwp. Mark it as not
2598 stopped after actually resuming it.
2599 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2601 (wait_lwp): Mark the lwp as stopped here.
2602 (stop_wait_callback): Mark the lwp as not stopped right after
2603 resuming it. Don't mark lwps as stopped here.
2604 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2605 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2607 2014-05-29 Pedro Alves <palves@redhat.com>
2610 * infrun.c (resume): Determine how much to resume depending on
2611 whether the caller wanted a step, not whether we can hardware step
2612 the target. Mark all threads that we intend to run as running,
2613 unless we're calling an inferior function.
2614 (normal_stop): If the thread is running an infcall, don't finish
2616 * target.c (target_resume): Don't mark threads as running here.
2618 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2620 * serial.c (_initialize_serial): Remove support for
2621 the "set remotebaud" and "show remotebaud" commands.
2622 * NEWS: Add entry documenting the removal of that command.
2624 2014-05-28 Yao Qi <yao@codesourcery.com>
2626 * charset.c: Fix typo in comments.
2628 2014-05-27 Gary Benson <gbenson@redhat.com>
2630 * utils.c (internal_vproblem): Prompt for a bug report.
2632 2014-05-26 Andy Wingo <wingo@igalia.com>
2634 * guile/scm-arch.c (arscm_mark_arch_smob):
2635 * guile/scm-block.c (bkscm_mark_block_smob)
2636 (bkscm_mark_block_syms_progress_smob):
2637 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2638 * guile/scm-exception.c (exscm_mark_exception_smob):
2639 * guile/scm-frame.c (frscm_mark_frame_smob):
2640 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2641 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2642 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2643 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2644 (ppscm_mark_pretty_printer_worker_smob):
2645 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2646 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2647 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2648 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2650 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2653 2014-05-26 Andy Wingo <wingo@igalia.com>
2654 Doug Evans <xdje42@gmail.com>
2656 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2657 empty_base_class. All uses updated.
2658 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2659 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2661 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2662 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2663 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2664 (gdbscm_gsmob_has_property_p, add_property_name)
2665 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2666 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2667 (gdb-object-has-property?, gdb-object-properties): Remove.
2668 (gdb-object-kind): Renamed from gsmob-kind.
2670 2014-05-26 Andy Wingo <wingo@igalia.com>
2672 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2673 * configure: Regenerate.
2675 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2677 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2679 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2681 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2682 (replay_memory_access_read_only, replay_memory_access_read_write)
2683 (replay_memory_access_types, replay_memory_access)
2684 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2685 (cmd_set_record_btrace, cmd_show_record_btrace)
2686 (cmd_show_replay_memory_access): New.
2687 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2688 (record_btrace_remove_breakpoint): Replace
2689 record_btrace_allow_memory_access with replay_memory_access.
2690 (_initialize_record_btrace): Add commands.
2691 * NEWS: Announce it.
2693 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2695 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2697 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2699 * MAINTAINERS (Write After Approval): Move self back from
2702 2014-05-22 Pedro Alves <palves@redhat.com>
2704 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2705 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2706 (disable_randomization, enum exec_direction_kind)
2707 (execution_direction, stop_registers, start_remote)
2708 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2709 (wait_for_inferior, normal_stop, get_last_target_status)
2710 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2711 (insert_step_resume_breakpoint_at_sal)
2712 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2713 (set_step_info, print_stop_event, signal_stop_state)
2714 (signal_print_state, signal_pass_state, signal_stop_update)
2715 (signal_print_update, signal_pass_update)
2716 (update_signals_program_target, clear_exit_convenience_vars)
2717 (displaced_step_dump_bytes, update_observer_mode)
2718 (signal_catch_update, gdb_signal_from_command): Move
2720 * infrun.h: ... to this new file.
2721 * amd64-tdep.c: Include infrun.h.
2722 * annotate.c: Include infrun.h.
2723 * arch-utils.c: Include infrun.h.
2724 * arm-linux-tdep.c: Include infrun.h.
2725 * arm-tdep.c: Include infrun.h.
2726 * break-catch-sig.c: Include infrun.h.
2727 * breakpoint.c: Include infrun.h.
2728 * common/agent.c: Include infrun.h instead of inferior.h.
2729 * corelow.c: Include infrun.h.
2730 * event-top.c: Include infrun.h.
2731 * go32-nat.c: Include infrun.h.
2732 * i386-tdep.c: Include infrun.h.
2733 * inf-loop.c: Include infrun.h.
2734 * infcall.c: Include infrun.h.
2735 * infcmd.c: Include infrun.h.
2736 * infrun.c: Include infrun.h.
2737 * linux-fork.c: Include infrun.h.
2738 * linux-nat.c: Include infrun.h.
2739 * linux-thread-db.c: Include infrun.h.
2740 * monitor.c: Include infrun.h.
2741 * nto-tdep.c: Include infrun.h.
2742 * procfs.c: Include infrun.h.
2743 * record-btrace.c: Include infrun.h.
2744 * record-full.c: Include infrun.h.
2745 * remote-m32r-sdi.c: Include infrun.h.
2746 * remote-mips.c: Include infrun.h.
2747 * remote-notif.c: Include infrun.h.
2748 * remote-sim.c: Include infrun.h.
2749 * remote.c: Include infrun.h.
2750 * reverse.c: Include infrun.h.
2751 * rs6000-tdep.c: Include infrun.h.
2752 * s390-linux-tdep.c: Include infrun.h.
2753 * solib-irix.c: Include infrun.h.
2754 * solib-osf.c: Include infrun.h.
2755 * solib-svr4.c: Include infrun.h.
2756 * target.c: Include infrun.h.
2757 * top.c: Include infrun.h.
2758 * windows-nat.c: Include infrun.h.
2759 * mi/mi-interp.c: Include infrun.h.
2760 * mi/mi-main.c: Include infrun.h.
2761 * python/py-threadevent.c: Include infrun.h.
2763 2014-05-22 Pedro Alves <palves@redhat.com>
2765 * infrun.c (handle_inferior_event): Store the exit code for
2766 --return-child-result here, instead of ...
2767 (print_exited_reason): ... here.
2769 2014-05-21 Pedro Alves <palves@redhat.com>
2772 * gdbthread.h (struct thread_control_state): New field
2774 * infrun.c (follow_fork): Copy the new thread control field to the
2776 (clear_proceed_status_thread): Clear the new thread control field.
2777 (proceed): Set the new thread control field.
2778 * interps.h (command_interp): Declare.
2779 * interps.c (command_interpreter): New global.
2780 (command_interp): New function.
2781 (interp_exec): Set `command_interpreter' while here.
2782 * cli-out.c (cli_uiout_dtor): New function.
2783 (cli_ui_out_impl): Install it.
2784 * mi/mi-interp.c: Include cli-out.h.
2785 (mi_cmd_interpreter_exec): Add comment.
2786 (restore_current_uiout_cleanup): New function.
2787 (ui_out_free_cleanup): New function.
2788 (mi_on_normal_stop): If finishing an execution command started by
2789 a CLI command, or any kind of breakpoint-like event triggered,
2790 print the stop event to the output (CLI) stream.
2791 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2793 2014-05-21 Pedro Alves <palves@redhat.com>
2795 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2796 current source line having changed.
2797 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2798 * infrun.c (normal_stop): Adjust call to
2799 set_current_sal_from_frame.
2800 * source.c (clear_lines_listed_range): New function.
2801 (set_current_source_symtab_and_line, identify_source_line): Clear
2802 the lines listed range.
2803 (line_info): Handle the first "info line" after the current source
2804 line having changed.
2805 * stack.c (print_stack_frame): Remove center handling.
2806 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2809 2014-05-21 Pedro Alves <palves@redhat.com>
2811 * inf-child.c (inf_child_mourn_inferior): New function.
2812 * inf-child.h (inf_child_mourn_inferior): New declaration.
2813 * darwin-nat.c (darwin_mourn_inferior): Use
2814 inf_child_mourn_inferior.
2815 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2816 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2817 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2818 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2819 * windows-nat.c (windows_mourn_inferior): Likewise.
2821 2014-05-21 Doug Evans <xdje42@gmail.com>
2823 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2825 2014-05-21 Doug Evans <xdje42@gmail.com>
2827 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2828 (gdbscm_out_of_range_error): Ditto.
2829 (gdbscm_memory_error): Ditto.
2830 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2831 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2832 (gdbscm_out_of_range_error): Update.
2833 (gdbscm_memory_error): Update.
2834 (gdbscm_scm_to_target_string_unsafe): Delete.
2836 2014-05-21 Pedro Alves <palves@redhat.com>
2838 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2840 (inf_child_open_target): New function.
2841 (inf_child_open): Use inf_child_open_target to push the target
2842 instead of erroring out.
2843 (inf_child_disconnect, inf_child_close)
2844 (inf_child_maybe_unpush_target): New functions.
2845 (inf_child_target): Install inf_child_disconnect and
2846 inf_child_close. Store a pointer to the returned object.
2847 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2849 * target.c (auto_connect_native_target): New global.
2850 (show_default_run_target): New function.
2851 (find_default_run_target): Return NULL if automatically connecting
2852 to the native target is disabled.
2853 (_initialize_target): Install set/show auto-connect-native-target.
2854 * NEWS: Mention "set auto-connect-native-target", and "target
2856 * linux-nat.c (super_close): New global.
2857 (linux_nat_close): Call super_close.
2858 (linux_nat_add_target): Store a pointer to the base class's
2860 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2861 inf_child_maybe_unpush.
2862 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2864 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2865 the inferior. Use inf_child_maybe_unpush_target.
2866 (inf_ttrace_attach): Don't push the target if it is already
2868 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2869 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2870 after mourning the inferior. Use inf_child_maybe_unpush_target.
2871 (darwin_attach_pid): Don't push the target if it is already
2873 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2874 mourning the inferior. Use inf_child_maybe_unpush_target.
2875 (gnu_detach): Use inf_child_maybe_unpush_target.
2876 * go32-nat.c (go32_create_inferior): Don't push the target if it
2878 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2879 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2880 (procfs_open): Rename to ...
2881 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2882 comments. Can target_preopen before changing node. Call
2883 inf_child_open_target to push the target explicitly.
2884 (procfs_attach): Don't push the target if it is already pushed.
2885 (procfs_detach): Use inf_child_maybe_unpush_target.
2886 (procfs_create_inferior): Don't push the target if it is already
2888 (nto_native_ops): New global.
2889 (procfs_open): Reimplement.
2890 (procfs_native_open): New function.
2891 (init_procfs_targets): Install procfs_native_open as to_open of
2892 "target native". Store a pointer to the "native" target in
2894 * procfs.c (procfs_attach): Don't push the target if it is already
2896 (procfs_detach): Use inf_child_maybe_unpush_target.
2897 (procfs_mourn_inferior): Only unpush the target after mourning the
2898 inferior. Use inf_child_maybe_unpush_target.
2899 (procfs_init_inferior): Don't push the target if it is already
2901 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2902 if it is already pushed.
2904 2014-05-21 Pedro Alves <palves@redhat.com>
2906 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2907 and "procfs" targets are now called "native" instead.
2909 2014-05-21 Pedro Alves <palves@redhat.com>
2911 * go32-nat.c (go32_open): Delete.
2912 (go32_target): Don't override the to_open method.
2914 2014-05-21 Pedro Alves <palves@redhat.com>
2916 * nto-procfs.c (procfs_can_run): New function.
2917 (nto_procfs_ops): New global.
2918 (init_procfs_targets): New, based on procfs_target. Install
2919 "target native" in addition to "target procfs".
2920 (_initialize_procfs): Call init_procfs_targets instead of adding
2923 2014-05-21 Pedro Alves <palves@redhat.com>
2925 * windows-nat.c (windows_target): Don't override to_shortname,
2926 to_longname or to_doc.
2928 2014-05-21 Pedro Alves <palves@redhat.com>
2930 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2933 2014-05-21 Pedro Alves <palves@redhat.com>
2935 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2936 to_shortname, to_longname or to_doc.
2938 2014-05-21 Pedro Alves <palves@redhat.com>
2940 * go32-nat.c (go32_target): Don't override to_shortname,
2941 to_longname or to_doc.
2943 2014-05-21 Pedro Alves <palves@redhat.com>
2945 * inf-child.c (inf_child_open): Remove mention of "child".
2946 (inf_child_target): Rename target to "native" instead of "child".
2948 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2950 * Makefile.in (SFILES): Delete "regset.c".
2951 (COMMON_OBS): Delete "regset.o".
2953 * regset.h (regset_alloc): Delete prototype.
2955 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2957 * sparc-linux-tdep.c (sparc32_linux_gregset)
2958 (sparc32_linux_fpregset): New static regset structures.
2959 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2960 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2962 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2963 (sparc64_linux_fpregset): New static regset structures.
2964 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2965 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2966 New static regset structures.
2967 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2968 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2969 New static regset structures.
2970 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2971 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2972 New static regset structures.
2973 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2974 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2975 New static regset structures.
2976 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2978 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2980 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2981 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2982 register maps ("regmaps") from "*regset" to "*regmap". Do this
2983 for all regmap types and variables.
2984 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2985 (sparc32_linux_supply_core_gregset)
2986 (sparc32_linux_collect_core_gregset)
2987 (sparc32_linux_supply_core_fpregset)
2988 (sparc32_linux_collect_core_fpregset): Likewise.
2989 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2990 (sparc_gregmap, sparc_fpregmap): ... these.
2991 (sparc_supply_gregset, sparc_collect_gregset)
2992 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2993 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2994 (_initialize_sparc_nat): Rename regmaps.
2995 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2996 (sparc_gregmap, sparc_fpregmap): ... these.
2997 (sparc_supply_gregset, sparc_collect_gregset)
2998 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2999 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3001 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3002 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3004 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3006 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3007 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3008 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3010 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3011 (sparc32_bsd_fpregset): Rename to...
3012 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3013 (sparc32_bsd_fpregmap): ... these.
3014 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3015 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3016 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3017 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3018 (struct sparc_gregmap, struct sparc_fpregmap)
3019 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3020 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3021 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3022 (sparc32_supply_regset, sparc32_collect_gregset)
3023 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3025 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3026 (sparc64_linux_ptrace_gregmap): ... this.
3027 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3028 (_initialize_sparc64_linux_nat): Rename regmaps.
3029 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3030 (sparc64_linux_core_gregmap): ... this.
3031 (sparc64_linux_supply_core_gregset)
3032 (sparc64_linux_collect_core_gregset)
3033 (sparc64_linux_supply_core_fpregset)
3034 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3035 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3036 (sparc64_sol2_fpregset): Rename to...
3037 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3038 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3039 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3041 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3042 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3043 (sparc64_bsd_fpregset): Rename to...
3044 (struct sparc_gregmap, sparc64_sol2_gregmap)
3045 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3046 (sparc64_bsd_fpregmap): ... these.
3047 (sparc64_supply_gregset, sparc64_collect_gregset)
3048 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3050 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3051 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3052 (sparc64fbsd_gregmap): ... this.
3053 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3054 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3056 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3057 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3058 (sparc64nbsd_collect_fpregset): Likewise.
3059 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3060 (sparc64nbsd_gregmap): ... this.
3061 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3063 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3064 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3065 (sparc64obsd_gregmap): ... this.
3066 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3068 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3069 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3070 (sparc32nbsd_gregmap): ... this.
3071 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3074 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3076 * score-tdep.c (score7_linux_gregset): New static regset
3078 (score7_linux_regset_from_core_section): Remove dynamic regset
3080 (score_gdbarch_init): Drop allocation of tdep structure.
3081 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3083 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3085 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3087 (am33_regset_from_core_section): Remove dynamic regset
3090 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3092 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3093 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3095 (mips_linux_regset_from_core_section): Remove dynamic regset
3097 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3098 'gregset64', 'fpregset', and 'fpregset64'.
3099 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3100 deleted tdep fields.
3102 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3104 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3106 (amd64_regset_from_core_section): Remove dynamic regset
3108 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3110 (amd64obsd_regset_from_core_section): Remove dynamic regset
3112 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3114 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3115 x86-common regset supply function.
3116 * i386-tdep.c (i386_collect_gregset): Make static.
3117 (i386_gregset): New global regset structure.
3118 (i386_fpregset, i386_xstateregset): New static regset structures.
3119 (i386_regset_from_core_section): Remove dynamic regset
3121 (i386_gdbarch_init): Remove initialization of tdep fields
3122 'gregset', 'fpregset', and 'xstateregset'.
3123 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3124 'fpregset', and 'xstateregset'.
3125 (i386_collect_gregset): Remove prototype.
3126 (i386_gregset): New declaration.
3127 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3129 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3132 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3134 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3135 (arm_linux_vfpregset): New static regset structures.
3136 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3138 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3139 and 'vfpregset' fields.
3141 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3143 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3144 (aarch64_linux_fpregset): New static regset structures.
3145 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3146 of regset structures.
3147 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3150 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3152 * regset.h (struct regset): Remove gdbarch field.
3153 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3154 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3155 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3157 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3158 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3159 (ppc32_linux_vsxregset): Likewise.
3160 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3161 via the regcache instead of the regset.
3162 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3163 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3164 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3165 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3168 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3170 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3171 Constify structures.
3172 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3173 (alphanbsd_aout_gregset): Likewise.
3174 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3175 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3177 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3178 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3180 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3181 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3182 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3183 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3184 * m88k-tdep.c (m88k_gregset): Likewise.
3185 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3186 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3187 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3188 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3189 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3190 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3191 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3192 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3193 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3195 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3196 * sh-tdep.h (sh_corefile_gregset): Likewise.
3197 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3198 * vax-tdep.c (vax_gregset): Likewise.
3200 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3202 Fix TLS access for -static -pthread.
3203 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3204 (try_thread_db_load_1): Initialize it.
3205 (thread_db_get_thread_local_address): Call it if LM is zero.
3206 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3207 * target.h (struct target_ops) (to_get_thread_local_address): Add
3208 load_module_addr comment.
3210 2014-05-21 Pedro Alves <palves@redhat.com>
3212 * dcache.c (dcache_read_memory_partial): If reading the cache line
3213 fails, fallback to reading just the memory the caller wanted.
3215 2014-05-20 Doug Evans <dje@google.com>
3217 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3218 instead of get_current_arch.
3220 2014-05-20 Pedro Alves <palves@redhat.com>
3222 * NEWS: Mention that compare-sections now works with all targets.
3224 * remote.c (PACKET_qCRC): New enum value.
3225 (remote_verify_memory): Don't send qCRC if the target has no
3226 execution. Use packet_support/packet_ok. If the target doesn't
3227 support the qCRC packet, fallback to a deep memory copy.
3228 (compare_sections_command): Say "target image" instead of "remote
3230 (_initialize_remote): Add PACKET_qCRC to the list of config
3231 packets that have no associated command. Extend comment.
3232 * target.c (simple_verify_memory, default_verify_memory): New
3234 * target.h (struct target_ops) <to_verify_memory>: Default to
3235 default_verify_memory.
3236 (simple_verify_memory): New declaration.
3237 * target-delegates.c: Regenerate.
3239 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3241 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3243 2014-05-20 Hui Zhu <hui@codesourcery.com>
3244 Yao Qi <yao@codesourcery.com>
3247 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3248 and change address of sp and pc.
3250 2014-05-19 Tom Tromey <tromey@redhat.com>
3252 * gdbtypes.c (rank_function): Use XNEWVEC.
3253 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3255 2014-05-19 Doug Evans <dje@google.com>
3257 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3258 build_type_unit_groups and moved closer to only caller. Remove
3259 arguments. All references updated. Remove outdated .gdb_index
3261 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3262 build_type_psymtabs_1.
3264 2014-05-19 Doug Evans <dje@google.com>
3266 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3267 n_type_unit_groups, all_type_unit_groups. All uses removed.
3268 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3269 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3270 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3271 (add_type_unit_group_to_table): Delete.
3273 2014-05-19 Doug Evans <dje@google.com>
3275 * eval.c (evaluate_subexp_standard): Add some comments.
3277 2014-05-17 Doug Evans <xdje42@gmail.com>
3279 * progspace.c (remove_program_space): Delete, unused.
3280 * progspace.h (remove_program_space): Ditto.
3282 2014-05-17 Doug Evans <xdje42@gmail.com>
3284 * inferior.c (prune_inferiors): Fix comment.
3285 (remove_inferior_command): Call prune_program_spaces.
3287 2014-05-16 Doug Evans <dje@google.com>
3289 New command line option -D.
3291 * main.c (set_gdb_data_directory): New function.
3292 (captured_main): Recognize -D. Flag error for --data-directory "".
3293 Call set_gdb_data_directory.
3294 (print_gdb_help): Print --data-directory, -D.
3295 * main.h (set_gdb_data_directory): Declare.
3296 * top.c (staged_gdb_datadir): New static global.
3297 (set_gdb_datadir): Call set_gdb_data_directory
3298 (show_gdb_datadir): New function.
3299 (init_main): Update init of data-directory parameter.
3301 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3303 Import the "dirfd" gnulib module.
3304 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3305 * gnulib/aclocal.m4: Update.
3306 * gnulib/config.in: Update.
3307 * gnulib/configure: Update.
3308 * gnulib/import/Makefile.am: Update.
3309 * gnulib/import/Makefile.in: Update.
3310 * gnulib/import/dirfd.c: New.
3311 * gnulib/import/m4/dirfd.m4: New.
3312 * gnulib/import/m4/gnulib-cache.m4: Update.
3313 * gnulib/import/m4/gnulib-comp.m4: Update.
3315 2014-05-16 Pierre Muller <muller@sourceware.org>
3316 Yao Qi <yao@codesourcery.com>
3318 * valprint.c (print_wchar): Move the code on checking whether
3319 W is a printable wide char to the default branch of switch
3320 statement below. Call wchar_printable instead of gdb_iswprint.
3322 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3324 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3325 ldr.w and ldrd instructions.
3327 2014-05-15 Doug Evans <dje@google.com>
3329 * dwarf2read.c (read_structure_type): Delete outdated comments.
3331 2014-05-14 Tom Tromey <tromey@redhat.com>
3333 * macrocmd.c (print_macro_definition): Reindent.
3335 2014-05-13 Doug Evans <xdje42@gmail.com>
3337 * python/py-cmd.c (cmdpy_completer): Add comment.
3338 (completers): Make const.
3340 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3342 * infrun.c (resume): Remove should_resume (unused). Move up
3343 declaration of resume_ptid.
3345 2014-05-13 Tom Tromey <tromey@redhat.com>
3347 * language.h (unop_type_check): Remove.
3348 (binop_type_check): Don't declare.
3350 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3352 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3353 call to regcache_raw_collect.
3355 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3357 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3358 mi_console->quote as the quoting character.
3360 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3362 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3364 2014-04-29 Tom Tromey <tromey@redhat.com>
3366 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3367 "show debug varobj".
3369 2014-05-07 Kyle McMartin <kyle@redhat.com>
3371 Pushed by Joel Brobecker <brobecker@adacore.com>.
3372 * aarch64-tdep.c (aarch64_software_single_step): New function.
3373 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3374 with aarch64_software_single_step.
3376 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3380 2014-05-05 Keith Seitz <keiths@redhat.com>
3382 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3383 variable or history value is successfully parsed.
3385 2014-05-05 Yao Qi <yao@codesourcery.com>
3386 Pedro Alves <palves@redhat.com>
3388 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3389 address of blocks that intersects the requested range. Trim
3390 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3392 * ctf.c (ctf_xfer_partial): Likewise.
3394 2014-05-05 Yao Qi <yao@codesourcery.com>
3396 * printcmd.c (display_command): Remove the check to
3397 target_has_execution.
3399 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3401 * ppcobsd-nat.c: Include "obsd-nat.h".
3402 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3404 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3406 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3408 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3409 and 16-bit signed and unsigned arguments. Update comment.
3410 (stap_parse_probe_arguments): Extend code to handle such
3411 arguments. Use warning instead of complaint to notify about
3412 unrecognized bitness.
3414 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3416 PR breakpoints/16889
3417 * stap-probe.c (stap_parse_probe_arguments): Simplify
3418 check for non-prefixed probes (i.e., probes whose
3419 arguments do not start with "N@"). Always set the
3420 argument type to a sane value.
3422 2014-05-01 David Taylor <dtaylor@emc.com>
3424 * remote.c (compare_sections_command): Add -r option to compare
3425 all loadable read-only sections.
3427 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3429 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3430 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3432 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3433 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3434 Remove unused CORE_ADDR argument. Update all callers.
3436 2014-04-29 Pedro Alves <palves@redhat.com>
3438 * remote.c (struct packet_config) <detect>: Extend comment.
3439 (add_packet_config_cmd): Don't set the config's detect or support
3441 (init_all_packet_configs): Also initialize the config's 'detect'
3443 (reset_all_packet_configs_support): New function.
3444 (remote_open_1): Call reset_all_packet_configs_support instead of
3445 init_all_packet_configs.
3446 (_initialize_remote): Initialize all packet configs. Assert that
3447 all packets have an associated command, except a few known
3450 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3452 * dwarf2read.c (read_subrange_type): Handle dynamic
3453 DW_AT_lower_bound attributes.
3455 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3457 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3458 dynamic bounds before computing its upper bound.
3459 (ada_discrete_type_low_bound): Same as above with the lower bound.
3461 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3463 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3464 range types. Adjust the array handling implementation to
3465 take advantage of this change.
3466 (resolve_dynamic_range): New function, mostly extracted from
3467 resolve_dynamic_bounds.
3468 (resolve_dynamic_array): New function, mostly extracted from
3469 resolve_dynamic_bounds.
3470 (resolve_dynamic_bounds): Delete.
3471 (resolve_dynamic_type): Reimplement. Add handling of
3472 TYPE_CODE_RANGE types.
3474 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3476 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3477 handling of parallel ___XA types.
3479 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3481 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3482 unnecessary second call to static_unwrap_type.
3484 2014-04-27 Hui Zhu <hui@codesourcery.com>
3486 * stack.c (print_frame_info): Call do_gdb_disassembly with
3487 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3489 2014-04-26 Doug Evans <xdje42@gmail.com>
3491 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3493 2014-04-25 Pedro Alves <palves@redhat.com>
3496 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3497 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3498 and newline from built string.
3499 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3500 (linux_ptrace_attach_fail_reason): ... this.
3501 * linux-nat.c (linux_nat_attach): Adjust to use
3502 linux_ptrace_attach_fail_reason.
3504 2014-04-25 Pedro Alves <palves@redhat.com>
3506 * remote.c (struct remote_state): Remove multi_process_aware,
3507 non_stop_aware, cond_tracepoints, cond_breakpoints,
3508 breakpoint_commands, fast_tracepoints, static_tracepoints,
3509 install_in_trace, disconnected_tracing,
3510 enable_disable_tracepoints, string_tracing, and
3511 augmented_libraries_svr4_read fields.
3512 (remote_multi_process_p): Move further below in the file.
3513 (struct packet_config): Add comments.
3514 (update_packet_config): Delete function.
3515 (show_packet_config_cmd): Use packet_config_support.
3516 (add_packet_config_cmd): Use NULL as set callback.
3517 (packet_ok): "set remote foo-packet"-style commands no longer
3518 change config->supported -- adjust.
3519 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3520 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3521 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3522 (PACKET_QNonStop, PACKET_multiprocess_feature)
3523 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3524 (PACKET_DisconnectedTracing_feature)
3525 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3526 (set_remote_protocol_packet_cmd): Delete function.
3527 (packet_config_support, packet_support): New functions.
3528 (set_remote_protocol_Z_packet_cmd): Don't call
3529 update_packet_config.
3530 (remote_query_attached, remote_pass_signals)
3531 (remote_program_signals, remote_threads_info)
3532 (remote_threads_extra_info, remote_start_remote): Use
3534 (remote_start_remote): Use packet_config_support and
3536 (init_all_packet_configs): Set all packets to unknown support,
3537 instead of calling update_packet_config.
3538 (remote_check_symbols): Use packet_support.
3539 (remote_supported_packet): Unconditionally set the packet config's
3541 (remote_multi_process_feature, remote_non_stop_feature)
3542 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3543 (remote_breakpoint_commands_feature)
3544 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3545 (remote_install_in_trace_feature)
3546 (remote_disconnected_tracing_feature)
3547 (remote_enable_disable_tracepoint_feature)
3548 (remote_string_tracing_feature)
3549 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3550 (remote_protocol_features): Adjust to use remote_supported_packet
3551 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3552 "ConditionalTracepoints", "ConditionalBreakpoints",
3553 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3554 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3555 "EnableDisableTracepoints", and "tracenz".
3556 (remote_query_supported): Use packet_support.
3557 (remote_open_1): Adjust.
3558 (extended_remote_attach_1): Use packet_support. Switch on the
3559 result of packet_ok instead of checking whether the packet ended
3561 (remote_vcont_resume): Use packet_support.
3562 (remote_resume, remote_stop_ns, fetch_register_using_p)
3563 (remote_prepare_to_store, store_register_using_P)
3564 (check_binary_download, remote_write_bytes): Use packet_support.
3565 (remote_vkill): Use packet_support. Switch on the result of
3566 packet_ok instead of checking whether the packet ended up
3568 (extended_remote_supports_disable_randomization): Use
3570 (extended_remote_run): Switch on the result of packet_ok instead
3571 of checking whether the packet ended up disabled.
3572 (remote_insert_breakpoint, remote_remove_breakpoint)
3573 (remote_insert_watchpoint, remote_remove_watchpoint)
3574 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3576 (remote_search_memory): Use packet_config_support.
3577 (remote_get_thread_local_address, remote_get_tib_address)
3578 (remote_hostio_send_command, remote_can_execute_reverse): Use
3580 (remote_supports_cond_tracepoints)
3581 (remote_supports_cond_breakpoints)
3582 (remote_supports_fast_tracepoints)
3583 (remote_supports_static_tracepoints)
3584 (remote_supports_install_in_trace)
3585 (remote_supports_enable_disable_tracepoint)
3586 (remote_supports_string_tracing)
3587 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3588 the packet config says the feature is enabled or disabled.
3589 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3590 (remote_get_trace_status): Use packet_support.
3591 (remote_set_disconnected_tracing): Adjust to check whether the
3592 feature is enabled with packet_support.
3593 (remote_set_trace_buffer_size, remote_use_agent)
3594 (remote_can_use_agent, remote_supports_btrace): Use
3596 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3597 Use packet_config_support.
3598 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3599 the packet config says the feature is enabled or disabled.
3600 (set_range_stepping): Use packet_support.
3602 2014-04-25 Tom Tromey <tromey@redhat.com>
3604 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3607 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3609 * NEWS: Mention support for C99 variable length arrays.
3611 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3613 * ada-lang.c (standard_exc): Expand introductory comment.
3615 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3616 Walfred Tedeschi <walfred.tedeschi@intel.com>
3618 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3620 (amd64_linux_read_description): Add code to handle AVX512 xstate
3621 mask and return respective tdesc.
3622 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3623 and features/i386/x32-avx512-linux.c.
3624 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3625 (amd64_linux_core_read_description): Add code to handle AVX512
3626 xstate mask and return respective tdesc.
3627 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3628 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3630 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3631 (tdesc_amd64_avx512_linux): New prototype.
3632 (tdesc_x32_avx512_linux): Likewise.
3633 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3634 features/i386/x32-avx512.c.
3635 (amd64_ymm_avx512_names): New register names for pseudo
3637 (amd64_ymmh_avx512_names): New register names for raw registers
3639 (amd64_k_names): New register names for K registers.
3640 (amd64_zmmh_names): New register names for ZMM raw registers.
3641 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3642 (amd64_xmm_avx512_names): New register names for XMM16-31
3644 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3646 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3647 if feature is present.
3648 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3649 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3650 (AMD64_NUM_REGS): Adjust to new number of registers.
3651 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3652 registers supplied via XSTATE by AVX512 registers.
3653 (i386_linux_read_description): Add case for AVX512.
3654 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3655 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3656 (i386_linux_core_read_description): Add case for AVX512.
3657 (i386_linux_init_abi): Install supported register note section
3659 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3661 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3662 registers to be number of zmm7h + 1.
3663 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3664 * i386-tdep.c: Include features/i386/i386-avx512.c.
3665 (i386_zmm_names): Add ZMM pseudo register names array.
3666 (i386_zmmh_names): Add ZMM raw register names array.
3667 (i386_k_names): Add K raw register names array.
3668 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3669 registers. AVX512 has 16 more ZMM registers than there are YMM
3671 (i386_zmmh_regnum_p): Add function to look up register number of
3673 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3674 (i386_k_regnum_p): Likewise for K raw registers.
3675 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3676 registers added by AVX512.
3677 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3678 registers added by AVX512.
3679 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3681 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3682 (i386_pseudo_register_name): Add ZMM pseudo registers.
3683 (i386_zmm_type): Construct and return vector registers type for ZMM
3685 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3686 ZMM0-31 pseudo registers and K registers.
3687 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3688 and YMM16-31 registers from register cache.
3689 (i386_pseudo_register_write): Add code to write K, ZMM and
3691 (i386_register_reggroup_p): Add code to include/exclude AVX512
3692 registers in/from respective register groups.
3693 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3694 registers if feature is present in xcr0.
3695 (i386_gdbarch_init): Add code to initialize AVX512 feature
3696 variables in tdep structure, wire in pseudo registers and call
3697 initialize_tdesc_i386_avx512.
3698 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3700 (i386_regnum): Add AVX512 registers.
3701 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3702 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3703 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3704 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3706 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3707 (i386_ymm_avx512_regnum_p): Likewise.
3708 (i386_k_regnum_p): Likewise.
3709 (i386_zmm_regnum_p): Likewise.
3710 (i386_zmmh_regnum_p): Likewise.
3711 * i387-tdep.c : Update year in copyright notice.
3712 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3714 (XSAVE_YMM_AVX512_ADDR): New macro.
3715 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3717 (XSAVE_XMM_AVX512_ADDR): New macro.
3718 (xsave_avx512_k_offset): New table for K register offsets in
3720 (XSAVE_AVX512_K_ADDR): New macro.
3721 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3723 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3724 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3726 (i387_collect_xsave): Add code to collect AVX512 registers from
3728 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3729 of XMM16-31 registers.
3730 (I387_NUM_K_REGS): New define for number of K registers.
3731 (I387_K0_REGNUM): New define for K0 register number.
3732 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3733 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3734 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3736 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3737 (I387_XMM16_REGNUM): New define for XMM16 register number.
3738 (I387_YMM0_REGNUM): New define for YMM0 register number.
3739 (I387_KEND_REGNUM): New define for last K register number.
3740 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3741 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3743 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3745 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3747 * features/Makefile: Add AVX512 related files.
3748 * features/i386/32bit-avx512.xml: New file.
3749 * features/i386/64bit-avx512.xml: Likewise.
3750 * features/i386/amd64-avx512-linux.c: Likewise.
3751 * features/i386/amd64-avx512-linux.xml: Likewise.
3752 * features/i386/amd64-avx512.c: Likewise.
3753 * features/i386/amd64-avx512.xml: Likewise.
3754 * features/i386/i386-avx512-linux.c: Likewise.
3755 * features/i386/i386-avx512-linux.xml: Likewise.
3756 * features/i386/i386-avx512.c: Likewise.
3757 * features/i386/i386-avx512.xml: Likewise.
3758 * features/i386/x32-avx512-linux.c: Likewise.
3759 * features/i386/x32-avx512-linux.xml: Likewise.
3760 * features/i386/x32-avx512.c: Likewise.
3761 * features/i386/x32-avx512.xml: Likewise.
3762 * regformats/i386/amd64-avx512-linux.dat: New file.
3763 * regformats/i386/amd64-avx512.dat: Likewise.
3764 * regformats/i386/i386-avx512-linux.dat: Likewise.
3765 * regformats/i386/i386-avx512.dat: Likewise.
3766 * regformats/i386/x32-avx512-linux.dat: Likewise.
3767 * regformats/i386/x32-avx512.dat: Likewise.
3768 * NEWS: Add note about new support for AVX512.
3771 2014-04-23 Pedro Alves <palves@redhat.com>
3773 * breakpoint.c (insert_bp_location): Tolerate errors if the
3774 breakpoint is set in a user-loaded objfile.
3775 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3776 location is marked shlib_disabled. If the breakpoint is set in a
3777 user-loaded objfile is a GDB-side memory breakpoint, validate it
3778 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3779 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3781 * mem-break.c (memory_validate_breakpoint): New function.
3782 * objfiles.c (userloaded_objfile_contains_address_p): New
3784 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3785 * target.h (memory_validate_breakpoint): New declaration.
3787 2014-04-23 Pedro Alves <palves@redhat.com>
3789 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3790 the breakpoint is set in a shared library, only suppress
3791 errors for software breakpoints, not hardware breakpoints.
3793 2014-04-22 Pedro Alves <palves@redhat.com>
3795 * infrun.c (schedlock_applies): New function, factored out from
3796 find_thread_needs_step_over.
3797 (find_thread_needs_step_over): Use it.
3798 (switch_back_to_stepped_thread): Always clear trap_expected if the
3799 step over is finished. Return early if scheduler locking applies.
3800 Look for the stepping thread and a potential step-over thread with
3802 (currently_stepping_or_nexting_callback): Delete.
3804 2014-04-22 Nick Clifton <nickc@redhat.com>
3806 * NEWS: Mention that ARM sim now supports tracing.
3808 2014-04-22 Yao Qi <yao@codesourcery.com>
3810 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3812 * tracefile.c (tracefile_fetch_registers): ... it. New
3814 * tracefile.h (tracefile_fetch_registers): Declare.
3815 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3816 tracefile_fetch_registers.
3818 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3821 * windows-nat.c (thread_rec): Don't display a warning when
3822 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3823 fails for any reason, set th->suspended to -1, so that we don't
3824 try to resume such a thread. Also, don't return NULL in these
3825 cases, to avoid completely ruin the session due to "PC register is
3826 not available" error.
3827 (do_windows_fetch_inferior_registers): Check errors in
3828 GetThreadContext call.
3829 (windows_continue): Accept an additional argument KILLED; if not
3830 zero, ignore errors in the SetThreadContext call, since the
3831 inferior was killed and is shutting down.
3832 (windows_resume, get_windows_debug_event)
3833 (windows_create_inferior, windows_mourn_inferior)
3834 (windows_kill_inferior): All callers of windows_continue changed
3835 to adjust to its new calling sequence.
3837 2014-04-19 Yao Qi <yao@codesourcery.com>
3839 * ctf.c (ctf_open): Call post_create_inferior.
3841 2014-04-19 Yao Qi <yao@codesourcery.com>
3843 * ctf.c (handle_id): New static variable.
3844 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3845 value. Get the declaration of event "register" and get length
3846 of field "contents".
3848 2014-04-19 Yao Qi <yao@codesourcery.com>
3850 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3852 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3854 * valops.c (oload_method_static): Remove unnecessary argument
3855 METHOD. Update all callers.
3857 2014-04-18 Pedro alves <palves@redhat.com>
3858 Tom Tromey <tromey@redhat.com>
3861 * frame.c (get_prev_frame_1): Rename to ...
3862 (get_prev_frame_always): ... this, and make extern. Adjust.
3863 (skip_artificial_frames): Use get_prev_frame_always.
3864 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3865 (get_frame_unwind_stop_reason): Adjust to rename.
3866 * frame.h (get_prev_frame_always): Declare.
3867 * inline-frame.c: Include frame.h.
3868 (inline_frame_this_id): Use get_prev_frame_always.
3870 2014-04-18 Tristan Gingold <gingold@adacore.com>
3872 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3873 code by using bfd_mach_o_get_base_address.
3875 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3877 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3878 (spu_ax_pseudo_register_collect): New function.
3879 (spu_ax_pseudo_register_push_stack): Likewise.
3880 (spu_dwarf_reg_to_regnum): Likewise.
3881 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3883 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3885 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3886 Replace FRAME argument with FRAME_ID.
3887 * gdbarch.c, gdbarch.h: Regenerate.
3888 * findvar.c (default_value_from_register): Add GDBARCH argument;
3889 replace FRAME by FRAME_ID. No longer call get_frame_id.
3890 (value_from_register): Update call to gdbarch_value_from_register.
3891 * value.h (default_value_from_register): Update prototype.
3892 * s390-linux-tdep.c (s390_value_from_register): Update interface
3893 and call to default_value_from_register.
3894 * spu-tdep.c (spu_value_from_register): Likewise.
3896 * findvar.c (address_from_register): Remove TYPE argument.
3897 Do not call value_from_register; use gdbarch_value_from_register
3898 with null_frame_id instead.
3899 * value.h (address_from_register): Update prototype.
3900 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3901 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3902 address_from_register interface change.
3904 2014-04-17 Yao Qi <yao@codesourcery.com>
3906 * gdbtypes.h: Update comments to link to types and macros'
3909 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3911 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3913 2014-04-16 Keith Seitz <keiths@redhat.com>
3916 * dwarf2read.c (skip_one_die): Check that all relative-offset
3917 sibling DIEs fall within range of the current reader's buffer.
3918 (read_partial_die): Likewise.
3920 2014-04-16 Keith Seitz <keiths@redhat.com>
3923 * cp-namespace.c (lookup_symbol_file): If the type name of
3924 `this' is NULL, return immediately.
3926 2014-04-14 Keith Seitz <keiths@redhat.com>
3929 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3930 from symbol_matches_domain in symtab.c. All local callers
3931 of symbol_matches_domain updated.
3932 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3933 search STRUCT_DOMAIN.
3934 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3935 independently. standard_lookup will do that automatically.
3936 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3937 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3938 (cp_lookup_symbol_in_namespace): Likewise.
3939 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3940 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3941 may return a STRUCT_DOMAIN match.
3942 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3943 * cp-support.c: Include language.h.
3944 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3946 * psymtab.c (match_partial_symbol): Compare the requested
3947 domain with the symbol's domain directly.
3948 (lookup_partial_symbol): Likewise.
3949 * symtab.c (lookup_symbol_in_language): Explain when/why
3950 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3951 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3952 appropriate languages.
3953 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3954 and moved to ada-lang.c
3955 (lookup_block_symbol): Explain that this function only returns
3956 symbol matching the requested DOMAIN.
3957 Compare the requested domain with the symbol's domain directly.
3958 (iterate_over_symbols): Compare the requested domain with the
3959 symbol's domain directly.
3960 * symtab.h (symbol_matches_domain): Remove.
3962 2014-04-14 Tom Tromey <tromey@redhat.com>
3965 * c-exp.y (type_aggregate_p): New function.
3966 (qualified_name, classify_inner_name): Use it.
3967 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3968 and TYPE_TARGET_TYPE of an enum type.
3969 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3971 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3972 handle TYPE_DECLARED_CLASS.
3973 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3975 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3976 * valops.c (enum_constant_from_type): New function.
3977 (value_aggregate_elt): Use it.
3978 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3981 2014-04-14 Tom Tromey <tromey@redhat.com>
3983 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3984 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3986 * value.h (value_aggregate_elt): Update.
3988 2014-04-14 Tom Tromey <tromey@redhat.com>
3990 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3992 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3994 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3995 (evaluate_subexp_standard): Pass noside argument.
3996 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3997 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3998 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3999 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4000 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4002 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4004 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4005 points to a constant blob.
4007 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4009 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4010 property and store it as the high bound and flag the range accordingly.
4011 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4012 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4013 * gdbtypes.h (enum range_flags): New enum.
4014 (struct range_bounds): Add flags member.
4016 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4018 * c-typeprint.c (c_type_print_varspec_suffix): Added
4019 check for not yet resolved high bound. If unresolved, print
4020 "variable length" string to the console instead of random
4023 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4025 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4027 (ada_template_to_fixed_record_type_1): Likewise.
4028 (ada_to_fixed_type_1): Likewise.
4029 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4030 (cp_print_value): Likewise.
4031 * d-valprint.c (dynamic_array_type): Likewise.
4032 * findvar.c (address_of_variable): Likewise.
4033 * jv-valprint.c (java_value_print): Likewise.
4034 * valops.c (value_ind): Likewise.
4035 * value.c (coerce_ref): Likewise.
4037 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4039 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4040 value and retrieve the dynamic type size.
4042 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4044 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4045 passed to sizeof is dynamic evaluate the argument to compute the length.
4047 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4048 Joel Brobecker <brobecker@adacore.com>
4050 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4051 (dwarf2_evaluate_property): New function.
4052 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4053 * dwarf2read.c (attr_to_dynamic_prop): New function.
4054 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4056 * gdbtypes.c: Include dwarf2loc.h.
4057 (is_dynamic_type): New function.
4058 (resolve_dynamic_type): New function.
4059 (resolve_dynamic_bounds): New function.
4060 (get_type_length): New function.
4061 (check_typedef): Use get_type_length to compute type length.
4062 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4063 (TYPE_LOW_BOUND_KIND): New macro.
4064 (is_dynamic_type): New function prototype.
4065 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4066 to resolve dynamic properties of the type. Update comment.
4067 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4069 2014-04-14 Richard Henderson <rth@redhat.com>
4071 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4073 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4074 Doug Evans <xdje42@gmail.com>
4076 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4077 dereference TYPE_CODE_REF values.
4079 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4081 Revert the following changes due to regressions:
4083 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4084 (dwarf2_evaluate_property): New function.
4085 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4086 * dwarf2read.c (attr_to_dynamic_prop): New function.
4087 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4089 * gdbtypes.c: Include dwarf2loc.h.
4090 (is_dynamic_type): New function.
4091 (resolve_dynamic_type): New function.
4092 (resolve_dynamic_bounds): New function.
4093 (get_type_length): New function.
4094 (check_typedef): Use get_type_length to compute type length.
4095 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4096 (TYPE_LOW_BOUND_KIND): New macro.
4097 (is_dynamic_type): New function prototype.
4098 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4099 to resolve dynamic properties of the type. Update comment.
4100 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4102 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4103 passed to sizeof is dynamic evaluate the argument to compute the length.
4105 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4106 value and retrieve the dynamic type size.
4108 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4109 (ada_template_to_fixed_record_type_1): Likewise.
4110 (ada_to_fixed_type_1): Likewise.
4111 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4112 (cp_print_value): Likewise.
4113 * d-valprint.c (dynamic_array_type): Likewise.
4114 * eval.c (evaluate_subexp_with_coercion): Likewise.
4115 * findvar.c (address_of_variable): Likewise.
4116 * jv-valprint.c (java_value_print): Likewise.
4117 * valops.c (value_ind): Likewise.
4118 * value.c (coerce_ref): Likewise.
4120 * c-typeprint.c (c_type_print_varspec_suffix): Added
4121 check for not yet resolved high bound. If unresolved, print
4122 "variable length" string to the console instead of random
4125 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4126 property and store it as the high bound and flag the range accordingly.
4127 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4128 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4129 * gdbtypes.h (enum range_flags): New enum.
4130 (struct range_bounds): Add flags member.
4132 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4133 points to a constant blob.
4135 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4136 (evaluate_subexp_standard): Pass noside argument.
4137 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4138 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4139 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4140 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4141 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4143 2014-04-11 Keith Seitz <keiths@redhat.com>
4146 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4147 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4150 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4152 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4153 (evaluate_subexp_standard): Pass noside argument.
4154 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4155 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4156 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4157 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4158 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4160 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4162 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4163 points to a constant blob.
4165 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4167 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4168 property and store it as the high bound and flag the range accordingly.
4169 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4170 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4171 * gdbtypes.h (enum range_flags): New enum.
4172 (struct range_bounds): Add flags member.
4174 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4176 * c-typeprint.c (c_type_print_varspec_suffix): Added
4177 check for not yet resolved high bound. If unresolved, print
4178 "variable length" string to the console instead of random
4181 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4183 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4184 (ada_template_to_fixed_record_type_1): Likewise.
4185 (ada_to_fixed_type_1): Likewise.
4186 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4187 (cp_print_value): Likewise.
4188 * d-valprint.c (dynamic_array_type): Likewise.
4189 * eval.c (evaluate_subexp_with_coercion): Likewise.
4190 * findvar.c (address_of_variable): Likewise.
4191 * jv-valprint.c (java_value_print): Likewise.
4192 * valops.c (value_ind): Likewise.
4193 * value.c (coerce_ref): Likewise.
4195 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4197 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4198 value and retrieve the dynamic type size.
4200 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4202 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4203 passed to sizeof is dynamic evaluate the argument to compute the length.
4205 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4207 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4208 (dwarf2_evaluate_property): New function.
4209 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4210 * dwarf2read.c (attr_to_dynamic_prop): New function.
4211 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4213 * gdbtypes.c: Include dwarf2loc.h.
4214 (is_dynamic_type): New function.
4215 (resolve_dynamic_type): New function.
4216 (resolve_dynamic_bounds): New function.
4217 (get_type_length): New function.
4218 (check_typedef): Use get_type_length to compute type length.
4219 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4220 (TYPE_LOW_BOUND_KIND): New macro.
4221 (is_dynamic_type): New function prototype.
4222 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4223 to resolve dynamic properties of the type. Update comment.
4224 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4226 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4228 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4229 declaring high/low bounds and change uses accordingly. Call
4230 create_range_type instead of create_static_range_type.
4231 * gdbtypes.c (create_range_type): New function.
4232 (create_range_type): Convert bounds into struct bound_prop and pass
4233 them to create_range_type.
4234 * gdbtypes.h (struct bound_prop): New struct.
4235 (create_range_type): New function prototype.
4236 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4237 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4238 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4240 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4242 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4244 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4245 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4246 * ada-lang.c: All uses of create_range_type updated.
4247 * coffread.c: All uses of create_range_type updated.
4248 * dwarf2read.c: All uses of create_range_type updated.
4249 * f-exp.y: All uses of create_range_type updated.
4250 * m2-valprint.c: All uses of create_range_type updated.
4251 * mdebugread.c: All uses of create_range_type updated.
4252 * stabsread.c: All uses of create_range_type updated.
4253 * valops.c: All uses of create_range_type updated.
4254 * valprint.c: All uses of create_range_type updated.
4256 2014-04-10 Pedro Alves <palves@redhat.com>
4258 * breakpoint.c (single_step_breakpoints)
4259 (single_step_gdbarch): Move up in the file.
4260 (one_breakpoint_xfer_memory): New function, factored out from ...
4261 (breakpoint_xfer_memory): ... here. Also process single-step
4264 2014-04-09 Tristan Gingold <gingold@adacore.com>
4266 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4268 (darwin_decode_exception_message): Free port only after use.
4270 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4272 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4273 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4274 when setting the size of call_length.
4276 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4278 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4279 dereference TYPE_CODE_REF values.
4281 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4283 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4284 end of warning message.
4286 2014-04-03 Doug Evans <dje@google.com>
4288 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4289 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4291 2014-04-02 Alan Modra <amodra@gmail.com>
4293 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4294 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4295 (struct symbol_file_add_from_memory_args): Add size field.
4296 (find_vdso_size): New function.
4297 (add_vsyscall_page): Attempt to find vdso size.
4299 2014-04-01 Doug Evans <dje@google.com>
4301 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4303 2014-04-01 Tristan Gingold <gingold@adacore.com>
4305 * darwin-nat.c (darwin_encode_reply): Add prototype.
4306 (darwin_decode_exception_message): Reply to unknown inferiors.
4307 (darwin_decode_message): Handle message by id. Ignore message
4308 to unknown inferior.
4309 (darwin_wait): Discard unknown messages, add debug trace.
4311 2014-03-31 Doug Evans <dje@google.com>
4313 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4316 2014-03-31 Doug Evans <dje@google.com>
4318 New option "set print symbol-loading".
4320 * solib.c (solib_read_symbols): Only print symbol loading messages
4322 (solib_add): If symbol loading is in "brief" mode, notify user
4323 symbols are being loaded.
4324 (reload_shared_libraries_1): Ditto.
4325 * symfile.c (print_symbol_loading_off): New static global.
4326 (print_symbol_loading_brief): New static global.
4327 (print_symbol_loading_full): New static global.
4328 (print_symbol_loading_enums): New static global.
4329 (print_symbol_loading): New static global.
4330 (print_symbol_loading_p): New function.
4331 (symbol_file_add_with_addrs): Only print symbol loading messages
4333 (_initialize_symfile): Register "print symbol-loading" set/show
4335 * symfile.h (print_symbol_loading_p): Declare.
4337 2014-03-30 Doug Evans <xdje42@gmail.com>
4339 * infrun.c (set_last_target_status): New function.
4340 (handle_inferior_event): Call it.
4342 2014-03-30 Doug Evans <xdje42@gmail.com>
4344 * inferior.h (enum stop_kind): Improve comment.
4346 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4348 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4349 a reference, strip the reference layer before calling
4350 the lang_ops value_has_mutated callback.
4352 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4354 Remove some globals from our parser.
4355 * language.c (unk_lang_parser): Add "struct parser_state"
4357 * language.h (struct language_defn) <la_parser>: Likewise.
4358 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4359 (initialize_expout): Add "struct parser_state" argument.
4360 Rewrite function to use the parser state.
4361 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4362 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4363 write_exp_elt_longcst, write_exp_elt_dblcst,
4364 write_exp_elt_decfloatcst, write_exp_elt_type,
4365 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4366 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4367 write_dollar_variable): Likewise.
4368 (parse_exp_in_context_1): Use parser state.
4369 (insert_type_address_space): Add "struct parser_state" argument.
4371 (increase_expout_size): New function.
4372 * parser-defs.h: Forward declare "struct language_defn" and
4373 "struct parser_state".
4374 (expout, expout_size, expout_ptr): Remove extern declarations.
4375 (parse_gdbarch, parse_language): Rewrite macro declarations to
4376 accept the parser state.
4377 (struct parser_state): New struct.
4378 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4379 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4380 write_exp_elt_decfloatcst, write_exp_elt_type,
4381 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4382 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4383 write_exp_msymbol, write_dollar_variable,
4384 mark_struct_expression, insert_type_address_space): Add "struct
4385 parser_state" argument.
4386 (increase_expout_size): New function.
4387 * utils.c (do_clear_parser_state): New function.
4388 (make_cleanup_clear_parser_state): Likewise.
4389 * utils.h (make_cleanup_clear_parser_state): New function
4391 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4392 Update calls to write_exp* in order to pass the parser state.
4393 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4394 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4395 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4396 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4397 * stap-probe.c (stap_parse_register_operand): Likewise.
4398 (stap_parse_single_operand): Likewise.
4399 (stap_parse_argument_1): Likewise.
4400 (stap_parse_argument): Use parser state.
4401 * stap-probe.h: Include "parser-defs.h".
4402 (struct stap_parse_info) <pstate>: New field.
4403 * c-exp.y (parse_type): Rewrite to use parser state.
4404 (yyparse): Redefine to c_parse_internal.
4405 (pstate): New global variable.
4406 (parse_number): Add "struct parser_state" argument.
4407 (write_destructor_name): Likewise.
4408 (type_exp): Update calls to write_exp* and similars in order to
4410 (exp1, exp, variable, qualified_name, space_identifier,
4411 typename, typebase): Likewise.
4412 (write_destructor_name, parse_number, lex_one_token,
4413 classify_name, classify_inner_name, c_parse): Add "struct
4414 parser_state" argument. Update function to use parser state.
4415 * c-lang.h: Forward declare "struct parser_state".
4416 (c_parse): Add "struct parser_state" argument.
4417 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4418 (yyparse): Redefine macro to ada_parse_internal.
4419 (pstate): New variable.
4420 (write_int, write_object_renaming, write_var_or_type,
4421 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4422 type_int, type_long, type_long_long, type_float, type_double,
4423 type_long_double, type_char, type_boolean, type_system_address):
4424 Add "struct parser_state" argument.
4425 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4426 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4427 var_or_type, aggregate, aggregate_component_list,
4428 positional_list, others, component_group,
4429 component_associations): Update calls to write_exp* and similar
4430 functions in order to use parser state.
4431 (ada_parse, write_var_from_sym, write_int,
4432 write_exp_op_with_string, write_object_renaming,
4433 find_primitive_type, write_selectors, write_ambiguous_var,
4434 write_var_or_type, write_name_assoc, type_int, type_long,
4435 type_long_long, type_float, type_double, type_long_double,
4436 type_char, type_boolean, type_system_address): Add "struct
4437 parser_state" argument. Adjust function to use parser state.
4438 * ada-lang.c (parse): Likewise.
4439 * ada-lang.h: Forward declare "struct parser_state".
4440 (ada_parse): Add "struct parser_state" argument.
4441 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4442 calls to both functions.
4443 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4445 (yyparse): Redefine macro to f_parse_internal.
4446 (pstate): New variable.
4447 (parse_number): Add "struct parser_state" argument.
4448 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4449 and similars in order to use parser state.
4450 (parse_number): Adjust code to use parser state.
4452 (f_parse): New function.
4453 * f-lang.h: Forward declare "struct parser_state".
4454 (f_parse): Add "struct parser_state" argument.
4455 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4457 (yyparse): Redefine macro for java_parse_internal.
4458 (pstate): New variable.
4459 (push_expression_name, push_expression_name, insert_exp): Add
4460 "struct parser_state" argument.
4461 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4462 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4463 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4464 PostIncrementExpression, PostDecrementExpression,
4465 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4466 UnaryExpressionNotPlusMinus, CastExpression,
4467 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4468 RelationalExpression, EqualityExpression, AndExpression,
4469 ExclusiveOrExpression, InclusiveOrExpression,
4470 ConditionalAndExpression, ConditionalOrExpression,
4471 ConditionalExpression, Assignment, LeftHandSide): Update
4472 calls to write_exp* and similars in order to use parser state.
4473 (parse_number): Ajust code to use parser state.
4475 (java_parse): New function.
4476 (push_variable): Add "struct parser_state" argument. Adjust
4477 code to user parser state.
4478 (push_fieldnames, push_qualified_expression_name,
4479 push_expression_name, insert_exp): Likewise.
4480 * jv-lang.h: Forward declare "struct parser_state".
4481 (java_parse): Add "struct parser_state" argument.
4482 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4484 (yyparse): Redefine macro to m2_parse_internal.
4485 (pstate): New variable.
4486 (type_exp, exp, fblock, variable, type): Update calls to
4487 write_exp* and similars to use parser state.
4489 (m2_parse): New function.
4490 * m2-lang.h: Forward declare "struct parser_state".
4491 (m2_parse): Add "struct parser_state" argument.
4492 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4493 * objc-lang.h: Forward declare "struct parser_state".
4494 (end_msglist): Add "struct parser_state" argument.
4495 * p-exp.y (parse_type): Rewrite macro to use parser state.
4496 (yyparse): Redefine macro to pascal_parse_internal.
4497 (pstate): New variable.
4498 (parse_number): Add "struct parser_state" argument.
4499 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4500 write_exp* and similars in order to use parser state.
4501 (parse_number, yylex): Adjust code to use parser state.
4502 (pascal_parse): New function.
4503 * p-lang.h: Forward declare "struct parser_state".
4504 (pascal_parse): Add "struct parser_state" argument.
4505 * go-exp.y (parse_type): Rewrite macro to use parser state.
4506 (yyparse): Redefine macro to go_parse_internal.
4507 (pstate): New variable.
4508 (parse_number): Add "struct parser_state" argument.
4509 (type_exp, exp1, exp, variable, type): Update calls to
4510 write_exp* and similars in order to use parser state.
4511 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4512 to use parser state.
4513 (go_parse): Likewise.
4514 * go-lang.h: Forward declare "struct parser_state".
4515 (go_parse): Add "struct parser_state" argument.
4517 2014-03-27 Doug Evans <dje@google.com>
4519 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4521 2014-03-27 Doug Evans <dje@google.com>
4523 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4524 Remove argument abbrev_section. All callers updated.
4526 2014-03-27 Doug Evans <dje@google.com>
4528 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4529 addr_base, ranges_base.
4531 2014-03-26 Keith Seitz <keiths@redhat.com>
4533 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4534 types, not VAR_DOMAIN.
4536 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4538 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4540 * features/nios2-linux.c: Regenerated.
4541 * features/nios2.c: Regenerated.
4543 2014-03-25 Pedro Alves <palves@redhat.com>
4545 * cli/cli-script.c (script_from_file): Force the interpreter to
4548 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4550 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4551 small stack allocation.
4553 2014-03-24 Tristan Gingold <gingold@adacore.com>
4555 * darwin-nat.c (exc_server): Remove unused prototype.
4556 (darwin_dump_message): Correctly display data on x86_64.
4557 (darwin_encode_reply): Fix style.
4558 Add comments and fix indentation.
4560 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4562 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4564 2014-03-22 Doug Evans <xdje42@gmail.com>
4566 * infcmd.c: Whitespace fixes.
4567 (interrupt_command): Merge two function comments into one.
4569 2014-03-22 Doug Evans <xdje42@gmail.com>
4571 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4574 2014-03-22 Yao Qi <yao@codesourcery.com>
4576 * remote.c (target_read_live_memory): Remove.
4577 (memory_xfer_live_readonly_partial): Rename it to
4578 remote_xfer_live_readonly_partial. Remove argument 'object'.
4579 All callers updated. Call remote_read_bytes_1
4580 instead of target_read_live_memory.
4581 * tracepoint.c (set_traceframe_number): Remove.
4582 (make_cleanup_restore_traceframe_number): Likewise .
4583 * tracepoint.h (set_traceframe_number): Remove declaration.
4584 (make_cleanup_restore_traceframe_number): Likewise.
4586 2014-03-22 Yao Qi <yao@codesourcery.com>
4588 * remote.c (remote_read_bytes): Move code on reading from the
4590 (remote_read_bytes_1): ... here. New function.
4592 2014-03-22 Yao Qi <yao@codesourcery.com>
4594 * ctf.c (ctf_xfer_partial): Check the return value of
4595 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4596 return TARGET_XFER_UNAVAILABLE.
4597 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4598 * target.c (target_read_live_memory): Move it to remote.c.
4599 (memory_xfer_live_readonly_partial): Likewise.
4600 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4601 * remote.c (target_read_live_memory): Moved from target.c.
4602 (memory_xfer_live_readonly_partial): Likewise.
4603 (remote_read_bytes): Factored out from
4604 memory_xfer_partial_1.
4606 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4608 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4611 2014-03-21 Pedro Alves <palves@redhat.com>
4613 * infrun.c (normal_stop): Extend comment.
4615 2014-03-21 Hui Zhu <hui@codesourcery.com>
4616 Pedro Alves <palves@redhat.com>
4618 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4620 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4621 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4622 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4624 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4626 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4627 `z' formatted output modifier.
4629 2014-03-20 Tom Tromey <tromey@redhat.com>
4630 Sergio Durigan Junior <sergiodj@redhat.com>
4632 * probe.c (parse_probes): Turn assert into an ordinary error.
4633 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4634 exceptions when parsing probes. Rearrange the code for clarity.
4636 2014-03-20 Tom Tromey <tromey@redhat.com>
4639 * top.c (execute_command): Only dispatch events if the command
4642 2014-03-20 Tom Tromey <tromey@redhat.com>
4645 * infcall.c: Include event-top.h.
4646 (run_inferior_call): Call async_disable_stdin if needed.
4648 2014-03-20 Pedro Alves <palves@redhat.com>
4650 * infrun.c (prepare_to_proceed): Delete.
4651 (thread_still_needs_step_over): New function.
4652 (find_thread_needs_step_over): New function.
4653 (proceed): If the current thread needs a step-over, set its
4654 steping_over_breakpoint flag. Adjust to use
4655 find_thread_needs_step_over instead of prepare_to_proceed.
4656 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4657 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4659 (switch_back_to_stepped_thread): Step over breakpoints of all
4660 threads not the stepping thread, before switching back to the
4663 2014-03-20 Pedro Alves <palves@redhat.com>
4665 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4667 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4668 * infrun.c (saved_singlestep_ptid)
4669 (stepping_past_singlestep_breakpoint): Delete.
4670 (resume): Remove stepping_past_singlestep_breakpoint handling.
4671 (proceed): Store the prev_pc of the stepping thread too.
4672 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4674 (enum infwait_states): Delete infwait_thread_hop_state.
4675 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4677 (handle_inferior_event): Adjust.
4678 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4679 handling and the thread-hop code. Before removing single-step
4680 breakpoints, check whether the thread hit a single-step breakpoint
4681 of another thread. If it did, the trap is not a random signal.
4682 (switch_back_to_stepped_thread): If the event thread hit a
4683 single-step breakpoint, unblock it before switching to the
4684 stepping thread. Handle the case of the stepped thread having
4686 (keep_going): Handle the case of the current thread moving past a
4687 single-step breakpoint.
4689 2014-03-20 Pedro Alves <palves@redhat.com>
4692 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4693 are being stepped over.
4694 (breakpoint_address_match): Make extern.
4695 * breakpoint.h (breakpoint_address_match): New declaration.
4696 * inferior.h (stepping_past_instruction_at): New declaration.
4697 * infrun.c (struct step_over_info): New type.
4698 (step_over_info): New global.
4699 (set_step_over_info, clear_step_over_info)
4700 (stepping_past_instruction_at): New functions.
4701 (handle_inferior_event): Clear the step-over info when
4702 trap_expected is cleared.
4703 (resume): Remove now stale comment.
4704 (clear_proceed_status): Clear step-over info.
4705 (proceed): Adjust step-over handling to set or clear the step-over
4706 info instead of removing all breakpoints.
4707 (handle_signal_stop): When setting up a thread-hop, don't remove
4709 (stop_stepping): Clear step-over info.
4710 (keep_going): Adjust step-over handling to set or clear step-over
4711 info and then always inserting breakpoints, instead of removing
4712 all breakpoints when stepping over one.
4714 2014-03-20 Pedro Alves <palves@redhat.com>
4716 * infrun.c (previous_inferior_ptid): Adjust comment.
4717 (deferred_step_ptid): Delete.
4718 (infrun_thread_ptid_changed, prepare_to_proceed)
4719 (init_wait_for_inferior): Adjust.
4720 (handle_signal_stop): Delete deferred_step_ptid handling.
4722 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4725 * defs.h (sync_quit_force_run): New declaration.
4726 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4727 * event-top.c (async_sigterm_handler): New declaration.
4728 (async_sigterm_token): New variable.
4729 (async_init_signals): Create also async_sigterm_token.
4730 (async_sigterm_handler): New function.
4731 (sync_quit_force_run): New variable.
4732 (handle_sigterm): Replace quit_force call by other calls.
4733 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4735 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4737 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4738 offset into SPE pseudo registers.
4740 2014-03-18 Pedro Alves <palves@redhat.com>
4743 * inferior.h (print_stop_event): Declare.
4744 * infrun.c (print_stop_event): New, factored out from ...
4745 (normal_stop): ... this.
4746 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4747 of bpstat_print/print_stack_frame.
4749 2014-03-17 Tom Tromey <tromey@redhat.com>
4751 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4753 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4755 * ada-lang.c (decode_constrained_packed_array): Perform a
4756 minimal coercion for reference with coerce_ref instead of
4759 2014-03-17 Tristan Gingold <gingold@adacore.com>
4761 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4762 (darwin_solib_create_inferior_hook): Emit a warning if version
4765 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4767 * python/py-value.c (get_field_flag): Cast flag_name argument to
4768 PyObject_GetAttrString to support Python 2.4.
4770 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4772 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4773 (Global Maintainers): Remove Jan Kratochvil.
4775 2014-03-14 Pedro Alves <palves@redhat.com>
4777 * inferior.h (terminal_ours_for_output): Rename to ...
4778 (child_terminal_ours_for_output): ... this.
4779 (terminal_save_ours): Rename to ...
4780 (child_terminal_save_ours): ... this.
4781 (terminal_ours): Rename to ...
4782 (child_terminal_ours): ... this.
4783 (terminal_inferior): Rename to ...
4784 (child_terminal_inferior): ... this.
4785 (terminal_init_inferior): Rename to ...
4786 (child_terminal_init_inferior): ... this.
4787 (terminal_init_inferior_with_pgrp): Rename to ...
4788 (child_terminal_init_inferior_with_pgrp): ... this.
4789 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4790 (child_terminal_init_with_pgrp): ... this.
4791 (terminal_save_ours): Rename to ...
4792 (child_terminal_save_ours): ... this.
4793 (terminal_init_inferior): Rename to ...
4794 (child_terminal_init): ... this. Adjust.
4795 (terminal_inferior): Rename to ...
4796 (child_terminal_inferior): ... this.
4797 (terminal_ours_for_output): Rename to ...
4798 (child_terminal_ours_for_output): ... this. Adjust.
4799 (terminal_ours): Rename to ...
4800 (child_terminal_ours): ... this.
4801 (terminal_ours_1): Rename to ...
4802 (child_terminal_ours_1): ... this. Adjust.
4803 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4804 * windows-nat.c (do_initial_windows_stuff): Adjust.
4805 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4806 (gnu_terminal_init): ... this. Adjust.
4807 (gnu_target): Adjust.
4808 * inf-child.c (inf_child_target): Adjust.
4810 2014-03-13 Doug Evans <xdje42@gmail.com>
4813 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4816 2014-03-13 Doug Evans <xdje42@gmail.com>
4818 * value.c (record_latest_value): Call release_value_or_incref
4819 instead of release_value.
4821 2014-03-13 Pedro Alves <palves@redhat.com>
4823 * procfs.c (procfs_target): Don't override to_shortname,
4824 to_longname or to_doc.
4826 2014-03-13 Pedro Alves <palves@redhat.com>
4828 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4829 Unix in user visible strings.
4831 2014-03-12 Stan Shebs <stan@codesourcery.com>
4833 * gdbtypes.h: Annotate comments for Doxygen, add a page
4834 block comment with some general info.
4836 2014-03-12 Pedro Alves <palves@redhat.com>
4838 * infcmd.c (prepare_execution_command): New function, factored out
4839 from several execution commands.
4840 (run_command_1, continue_command, step_1, jump_command)
4841 (signal_command, until_command, advance_command, finish_command)
4842 (attach_command): Use prepare_execution_command.
4844 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4846 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4849 (struct arm_linux_thread_points): Removed.
4850 (struct arm_linux_process_info): New.
4851 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4852 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4853 (arm_linux_find_breakpoints_by_tid): Removed.
4854 (struct arch_lwp_info): New.
4855 (arm_linux_find_process_pid): New functions.
4856 (arm_linux_add_process): New functions.
4857 (arm_linux_process_info_get): New functions.
4858 (arm_linux_forget_process): New function.
4859 (arm_linux_get_debug_reg_state): New function.
4860 (struct update_registers_data): New.
4861 (update_registers_callback): New function.
4862 (arm_linux_insert_hw_breakpoint1): Updated.
4863 (arm_linux_remove_hw_breakpoint1): Updated.
4864 (arm_linux_insert_hw_breakpoint): Updated.
4865 (arm_linux_remove_hw_breakpoint): Updated.
4866 (arm_linux_insert_watchpoint): Updated.
4867 (arm_linux_remove_watchpoint): Updated.
4868 (arm_linux_new_thread): Updated.
4869 (arm_linux_prepare_to_resume): New function.
4870 (arm_linux_new_fork): New function.
4871 (_initialize_arm_linux_nat): Updated.
4873 2014-03-12 Pedro Alves <palves@redhat.com>
4875 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4877 2014-03-12 Tom Tromey <tromey@redhat.com>
4879 * inf-child.c (return_zero): New function.
4880 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4881 * aix-thread.c (aix_thread_inferior_created): New function.
4882 (aix_thread_attach): Remove.
4883 (init_aix_thread_ops): Don't set to_attach.
4884 (_initialize_aix_thread): Register inferior_created observer.
4885 * corelow.c (init_core_ops): Don't set to_attach or
4887 * exec.c (init_exec_ops): Don't set to_attach or
4889 * infcmd.c (run_command_1): Use find_run_target. Make direct
4891 (attach_command): Use find_attach_target. Make direct target
4893 * record-btrace.c (init_record_btrace_ops): Don't set
4895 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4897 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4898 set to_create_inferior.
4899 * target.c (complete_target_initialization): Add assertion.
4900 (target_create_inferior): Remove.
4901 (find_default_attach, find_default_create_inferior): Remove.
4902 (find_attach_target, find_run_target): New functions.
4903 (find_default_is_async_p, find_default_can_async_p)
4904 (target_supports_non_stop, target_attach): Remove.
4905 (init_dummy_target): Don't set to_create_inferior or
4906 to_supports_non_stop.
4907 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4908 TARGET_DEFAULT_FUNC.
4909 <to_create_inferior>: Add comment.
4910 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4911 TARGET_DEFAULT_RETURN.
4912 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4913 (find_attach_target, find_run_target): Declare.
4914 (target_create_inferior): Remove.
4915 (target_has_execution_1): Update comment.
4916 (target_supports_non_stop): Remove.
4917 * target-delegates.c: Rebuild.
4919 2014-03-12 Pedro Alves <palves@redhat.com>
4921 * inf-child.h: Update comment to not mention Unix.
4923 2014-03-12 Pedro Alves <palves@redhat.com>
4925 * inf-child.c: Update top comment to not mention Unix. Add
4926 generic comment describing how this target is meant to be used.
4927 (inf_child_post_attach, inf_child_post_startup_inferior)
4928 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4931 2014-03-12 Pedro Alves <palves@redhat.com>
4933 * nto-procfs.c: Include inf-child.h.
4934 (procfs_ops): Delete global.
4935 (procfs_can_run): Delete method.
4936 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4937 target pointer instead of referencing procfs_ops.
4938 (procfs_prepare_to_store): Delete.
4939 (init_procfs_ops): Delete function.
4940 (procfs_target): New function, based on init_procfs_ops, but
4941 inherit inf_child_target.
4942 (_initialize_procfs): Use procfs_target.
4944 2014-03-12 Pedro Alves <palves@redhat.com>
4946 * windows-nat.c: Include inf-child.h.
4947 (windows_ops): Delete global.
4948 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4950 (init_windows_ops): Delete function.
4951 (windows_target): New function, based on init_windows_ops, but
4952 inherit inf_child_target.
4953 (_initialize_windows_nat): Use windows_target. Install x86
4954 specific target methods here.
4956 2014-03-10 Doug Evans <xdje42@gmail.com>
4958 * guile/guile.c (call_initialize_gdb_module): New function.
4959 (initialize_guile): Replace call to scm_init_guile with call to
4962 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4964 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4965 in call to TYPE_CODE macro.
4967 2014-03-10 Jerome Guitton <guitton@adacore.com>
4969 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4970 Resolve tagged types to full view.
4972 2014-03-10 Hui Zhu <hui@codesourcery.com>
4974 * target.h (target_insert_breakpoint): Remove "hardware" from its
4977 2014-03-07 Doug Evans <dje@google.com>
4979 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4981 2014-03-07 Doug Evans <dje@google.com>
4983 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4984 Remove unused local comp_dir_attr. Assert exactly one of
4985 stub_comp_unit_die, stub_comp_dir is non-NULL.
4987 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4989 * target.h (complete_target_initialization, add_target):
4992 2014-03-07 Pedro Alves <palves@redhat.com>
4994 * go32-nat.c: Include inf-child.h.
4995 (go32_ops): Delete global.
4996 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4998 (go32_create_inferior): Push the passed in target pointer instead
4999 of referencing go32_ops.
5000 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5001 (go32_target): New function, based on init_go32_ops, but inherit
5003 (_initialize_go32_nat): Use go32_target. Move parts of
5006 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5008 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5009 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5010 SYMBOL_VALUE_ADDRESS.
5011 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5013 2014-03-06 Yao Qi <yao@codesourcery.com>
5015 * breakpoint.c (get_tracepoint_by_number): Remove argument
5016 optional_p. All callers updated. Adjust comments. Update
5018 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5020 2014-03-06 Yao Qi <yao@codesourcery.com>
5022 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5023 early if get_number returns zero. Use 'p' instead of 'args'.
5025 2014-03-06 Yao Qi <yao@codesourcery.com>
5027 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5030 2014-03-06 Yao Qi <yao@codesourcery.com>
5032 PR breakpoints/16508
5033 * tracepoint.c (check_trace_running): New function.
5034 (trace_find_command): Move code to check_trace_running and
5035 call check_trace_running.
5036 (trace_find_pc_command): Likewise.
5037 (trace_find_tracepoint_command): Likewise.
5038 (trace_find_line_command): Likewise.
5039 (trace_find_range_command): Likewise.
5040 * tracepoint.h (check_trace_running): Likewise.
5041 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5043 2014-03-06 Yao Qi <yao@codesourcery.com>
5045 * target.h (struct target_ops) <to_traceframe_info>: Use
5046 TARGET_DEFAULT_NORETURN (tcomplain ()).
5047 * target-delegates.c: Regenerated.
5049 2014-03-05 Pedro Alves <palves@redhat.com>
5052 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5053 void. Update comment.
5054 (dcache_xfer_memory): Delete.
5055 (dcache_read_memory_partial): New, based on the read bits of
5057 (dcache_update): Add status parameter. Use ULONGEST for len, and
5058 adjust. Discard cache lines if the reason for the update was
5060 * dcache.h (dcache_xfer_memory): Delete declaration.
5061 (dcache_read_memory_partial): New declaration.
5062 (dcache_update): Update prototype.
5063 * target.c (raw_memory_xfer_partial): Update the dcache here.
5064 (memory_xfer_partial_1): Don't handle dcache writes here.
5066 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5068 * remote-sim.c (gdbsim_load): Add const to prog.
5070 2014-03-03 Tom Tromey <tromey@redhat.com>
5072 * elfread.c (probe_key): Change to bfd_data.
5073 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5074 now per-BFD, not per-objfile.
5075 * stap-probe.c (stap_probe_destroy): Update comment.
5076 (handle_stap_probe): Allocate on the per-BFD obstack.
5078 2014-03-03 Tom Tromey <tromey@redhat.com>
5080 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5081 * breakpoint.c (create_longjmp_master_breakpoint): Use
5083 (add_location_to_breakpoint, bkpt_probe_insert_location)
5084 (bkpt_probe_remove_location): Update.
5085 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5086 * elfread.c (elf_symfile_relocate_probe): Remove.
5087 (elf_probe_fns): Update.
5088 (insert_exception_resume_breakpoint): Change type of "probe"
5089 parameter to bound_probe.
5090 (check_exception_resume): Update.
5091 * objfiles.c (objfile_relocate1): Don't relocate probes.
5092 * probe.c (bound_probe_s): New typedef.
5093 (parse_probes): Use get_probe_address. Set sal's objfile.
5094 (find_probe_by_pc): Return a bound_probe.
5095 (collect_probes): Return a VEC(bound_probe_s).
5096 (compare_probes): Update.
5097 (gen_ui_out_table_header_info): Change type of "probes"
5099 (info_probes_for_ops): Update.
5100 (get_probe_address): New function.
5101 (probe_safe_evaluate_at_pc): Update.
5102 * probe.h (struct probe_ops) <get_probe_address>: New field.
5103 <set_semaphore, clear_semaphore>: Add objfile parameter.
5104 (struct probe) <objfile>: Remove field.
5106 <address>: Update comment.
5107 (struct bound_probe): New.
5108 (find_probe_by_pc): Return a bound_probe.
5109 (get_probe_address): Declare.
5110 * solib-svr4.c (struct probe_and_action) <address>: New field.
5111 (hash_probe_and_action, equal_probe_and_action): Update.
5112 (register_solib_event_probe): Add address parameter.
5113 (solib_event_probe_at): Update.
5114 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5116 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5117 (stap_get_probe_address): New function.
5118 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5119 (compile_probe_arg): Update.
5120 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5122 (handle_stap_probe): Don't relocate the probe.
5123 (stap_relocate): Remove.
5124 (stap_gen_info_probes_table_values): Update.
5125 (stap_probe_ops): Remove stap_relocate.
5126 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5127 (debug_sym_probe_fns): Update.
5128 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5129 * symtab.c (init_sal): Use memset.
5130 * symtab.h (struct symtab_and_line) <objfile>: New field.
5131 * tracepoint.c (start_tracing, stop_tracing): Update.
5133 2014-03-03 Tom Tromey <tromey@redhat.com>
5135 * probe.h (parse_probes, find_probe_by_pc)
5136 (find_probes_in_objfile): Fix comments.
5138 2014-03-02 Doug Evans <xdje42@gmail.com>
5140 * infrun.c (handle_signal_stop): Replace test for
5141 TARGET_WAITKIND_STOPPED with an assert.
5143 2014-03-02 Doug Evans <xdje42@gmail.com>
5145 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5147 2014-03-02 Doug Evans <xdje42@gmail.com>
5149 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5151 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5153 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5155 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5157 * i386obsd-nat.c: Include "obsd-nat.h".
5158 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5160 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5162 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5164 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5166 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5168 * mips64obsd-nat.c: Include "obsd-nath".
5169 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5171 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5173 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5175 * amd64obsd-nat.c: Include "obsd-nat,h.
5176 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5178 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5180 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5182 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5183 (find_overload_match): Update call to find_oload_champ.
5184 (find_oload_champ_namespace_loop): Likewise
5186 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5188 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5190 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5191 * config/sparc/obsd64.mh: New file.
5192 * sparc64obsd-nat.c: New file.
5194 * obsd-nat.h: New file.
5195 * obsd-nat.c: New file.
5196 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5197 (ALLDEPFILES): Add obsd-nat.c.
5199 2014-02-28 Tom Tromey <tromey@redhat.com>
5201 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5202 * cli-out.h (cli_ui_out_impl): Now const.
5203 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5204 * ui-out.c (struct ui_out) <impl>: Now const.
5205 (default_ui_out_impl): Now const.
5206 (ui_out_new): Make 'impl' parameter const.
5207 * ui-out.h (ui_out_new): Update.
5209 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5211 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5213 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5215 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5217 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5219 Additional PR 8882 fix.
5220 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5222 2014-02-27 Pedro Alves <palves@redhat.com>
5224 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5227 2014-02-27 Pedro Alves <palves@redhat.com>
5230 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5231 * nat/linux-waitpid.c: Include string.h.
5232 (status_to_str): Moved here and made extern.
5233 * nat/linux-waitpid.h (status_to_str): New declaration.
5235 2014-02-27 Hui Zhu <hui@codesourcery.com>
5238 * infrun.c (ptid_match): Move ...
5239 * common/ptid.c (ptid_match): ... here.
5240 * inferior.h (ptid_match): Move ...
5241 * common/ptid.h (ptid_match): ... here.
5243 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5245 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5246 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5249 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5251 * obsd-tdep.c (obsd_auxv_parse): New function.
5252 (obsd_init_abi): Set auxv_parse.
5254 * gdbarch.sh (auxv_parse): New.
5255 * gdbarch.h: Regenerated.
5256 * gdbarch.c: Regenerated.
5257 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5259 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5261 * guile/scm-value.c (gdbscm_history_append_x): New function.
5262 (value_functions): Add it.
5264 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5266 * dwarf2read.c (attr_value_as_address): New function.
5267 (dwarf2_find_base_address, read_call_site_scope): Use
5268 attr_value_as_address in place of DW_ADDR.
5269 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5270 the low and high addresses. Slight rework of the handling
5271 of the high pc being a constant form, and limit it to
5272 DWARF verson 4 or higher.
5273 (dwarf2_record_block_ranges): Likewise.
5274 (read_partial_die): Likewise.
5275 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5277 2014-02-26 Tom Tromey <tromey@redhat.com>
5279 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5281 2014-02-26 Tom Tromey <tromey@redhat.com>
5283 * elfread.c (elf_read_minimal_symbols): Return early if
5284 minimal symbols have already been read. Add "ei" parameter.
5285 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5286 * minsyms.c (prim_record_minimal_symbol_full): Update.
5287 * objfiles.h (struct objstats) <n_minsyms>: Move...
5288 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5289 * symmisc.c (print_objfile_statistics): Update.
5291 2014-02-26 Tom Tromey <tromey@redhat.com>
5293 * elfread.c (elf_read_minimal_symbols): New function, from
5295 (elf_symfile_read): Call it.
5297 2014-02-26 Tom Tromey <tromey@redhat.com>
5299 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5300 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5301 (lookup_minimal_symbol_solib_trampoline)
5302 (lookup_minimal_symbol_by_pc_section_1)
5303 (lookup_minimal_symbol_and_objfile): Update.
5304 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5305 Don't allocate a minimal symbol if minsyms have already been read.
5306 (build_minimal_symbol_hash_tables): Update.
5307 (install_minimal_symbols): Do nothing if minsyms already read.
5308 Use the per-BFD obstack.
5309 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5310 * objfiles.c (allocate_objfile): Call
5311 terminate_minimal_symbol_table later.
5312 (have_minimal_symbols): Update.
5313 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5314 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5315 Move from struct objfile.
5316 <minsyms_read>: New field.
5317 (struct objfile) <msymbols, minimal_symbol_count,
5318 msymbol_hash, msymbol_demangled_hash>: Move.
5319 (ALL_OBJFILE_MSYMBOLS): Update.
5320 * symfile.c (read_symbols): Set minsyms_read.
5321 (reread_symbols): Update.
5322 * symmisc.c (dump_objfile, dump_msymbols): Update.
5324 2014-02-26 Tom Tromey <tromey@redhat.com>
5326 * minsyms.c (msymbols_sort): Remove.
5327 * minsyms.h (msymbols_sort): Remove.
5328 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5329 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5330 * elfread.c (elf_symtab_read): Don't add section offsets.
5331 * xcoffread.c (record_minimal_symbol): Don't add section offset
5332 to minimal symbol address.
5333 * somread.c (text_offset, data_offset): Remove.
5334 (som_symtab_read): Don't add section offsets to minimal symbol
5336 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5337 Don't add section offsets to minimal symbols.
5338 * coffread.c (coff_symtab_read): Don't add section offsets
5339 to minimal symbol addresses.
5340 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5341 to minimal symbol addresses.
5342 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5343 section offset to minimal symbol addresses.
5344 * mdebugread.c (parse_partial_symbols): Don't add section
5345 offset to minimal symbol addresses.
5346 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5347 offset to minimal symbol addresses.
5349 2014-02-26 Tom Tromey <tromey@redhat.com>
5351 * ada-lang.c (ada_main_name): Update.
5352 (ada_add_standard_exceptions): Update.
5353 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5354 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5355 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5356 * auxv.c (ld_so_xfer_auxv): Update.
5357 * avr-tdep.c (avr_scan_prologue): Update.
5358 * ax-gdb.c (gen_var_ref): Update.
5359 * blockframe.c (get_pc_function_start)
5360 (find_pc_partial_function_gnu_ifunc): Update.
5361 * breakpoint.c (create_overlay_event_breakpoint)
5362 (create_longjmp_master_breakpoint)
5363 (create_std_terminate_master_breakpoint)
5364 (create_exception_master_breakpoint): Update.
5365 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5366 * c-valprint.c (c_val_print): Update.
5367 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5368 * common/agent.c (agent_look_up_symbols): Update.
5369 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5370 * dwarf2loc.c (call_site_to_target_addr): Update.
5371 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5372 * elfread.c (elf_gnu_ifunc_record_cache)
5373 (elf_gnu_ifunc_resolve_by_got): Update.
5374 * findvar.c (default_read_var_value): Update.
5375 * frame.c (inside_main_func): Update.
5376 * frv-tdep.c (frv_frame_this_id): Update.
5377 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5378 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5380 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5381 (hppa_hpux_find_dummy_bpaddr): Update.
5382 * hppa-tdep.c (hppa_symbol_address): Update.
5383 * infcmd.c (until_next_command): Update.
5384 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5386 * linespec.c (minsym_found, add_minsym): Update.
5387 * linux-nat.c (get_signo): Update.
5388 * linux-thread-db.c (inferior_has_bug): Update.
5389 * m32c-tdep.c (m32c_return_value)
5390 (m32c_m16c_address_to_pointer): Update.
5391 * m32r-tdep.c (m32r_frame_this_id): Update.
5392 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5393 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5394 * maint.c (maintenance_translate_address): Update.
5395 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5396 (frob_address): New function.
5397 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5398 frob_address. Rename parameter to "pc_in".
5399 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5401 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5403 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5404 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5405 * objc-lang.c (find_objc_msgsend): Update.
5406 * objfiles.c (objfile_relocate1): Update.
5407 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5408 * p-valprint.c (pascal_val_print): Update.
5409 * parse.c (write_exp_msymbol): Update.
5410 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5411 (ppc_elfv2_skip_entrypoint): Update.
5412 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5413 * printcmd.c (build_address_symbolic, msym_info)
5414 (address_info): Update.
5415 * proc-service.c (ps_pglobal_lookup): Update.
5416 * psymtab.c (find_pc_sect_psymtab_closer)
5417 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5418 Change msymbol parameter to bound_minimal_symbol.
5419 * ravenscar-thread.c (get_running_thread_id): Update.
5420 * remote.c (remote_check_symbols): Update.
5421 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5423 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5424 * solib-dsbt.c (lm_base): Update.
5425 * solib-frv.c (lm_base, main_got): Update.
5426 * solib-irix.c (locate_base): Update.
5427 * solib-som.c (som_solib_create_inferior_hook)
5428 (link_map_start): Update.
5429 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5430 * solib-svr4.c (elf_locate_base, enable_break): Update.
5431 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5432 (flush_ea_cache): Update.
5433 * stabsread.c (define_symbol, scan_file_globals): Update.
5434 * stack.c (find_frame_funname): Update.
5435 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5436 (debug_qf_find_pc_sect_symtab): Update.
5437 * symfile.c (simple_read_overlay_table)
5438 (simple_overlay_update): Update.
5439 * symfile.h (struct quick_symbol_functions)
5440 <find_pc_sect_symtab>: Change type of msymbol to
5441 bound_minimal_symbol.
5442 * symmisc.c (dump_msymbols): Update.
5443 * symtab.c (find_pc_sect_symtab_via_partial)
5444 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5445 (search_symbols, print_msymbol_info): Update.
5446 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5447 (MSYMBOL_VALUE_ADDRESS): Redefine.
5448 (BMSYMBOL_VALUE_ADDRESS): New macro.
5449 * tracepoint.c (scope_info): Update.
5450 * tui/tui-disasm.c (tui_find_disassembly_address)
5451 (tui_get_begin_asm_address): Update.
5452 * valops.c (find_function_in_inferior): Update.
5453 * value.c (value_static_field, value_fn_field): Update.
5455 2014-02-26 Tom Tromey <tromey@redhat.com>
5457 * ada-lang.c (ada_update_initial_language): Update.
5458 (ada_main_name, ada_has_this_exception_support): Update.
5459 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5460 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5461 * arm-tdep.c (arm_skip_stub): Update.
5462 * auxv.c (ld_so_xfer_auxv): Update.
5463 * avr-tdep.c (avr_scan_prologue): Update.
5464 * ax-gdb.c (gen_var_ref): Update.
5465 * breakpoint.c (struct breakpoint_objfile_data)
5466 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5467 type to bound_minimal_symbol.
5468 (create_overlay_event_breakpoint)
5469 (create_longjmp_master_breakpoint)
5470 (create_std_terminate_master_breakpoint)
5471 (create_exception_master_breakpoint): Update.
5472 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5473 * c-exp.y (classify_name): Update.
5474 * coffread.c (coff_symfile_read): Update.
5475 * common/agent.c (agent_look_up_symbols): Update.
5476 * d-lang.c (d_main_name): Update.
5477 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5478 * dec-thread.c (enable_dec_thread): Update.
5479 * dwarf2loc.c (call_site_to_target_addr): Update.
5480 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5481 * eval.c (evaluate_subexp_standard): Update.
5482 * findvar.c (struct minsym_lookup_data) <result>: Change type
5483 to bound_minimal_symbol.
5485 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5486 * frame.c (inside_main_func): Update.
5487 * frv-tdep.c (frv_frame_this_id): Update.
5488 * gcore.c (call_target_sbrk): Update.
5489 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5490 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5492 * go-lang.c (go_main_name): Update.
5493 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5494 (hppa_hpux_find_import_stub_for_addr): Update.
5495 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5496 Update. Change return type.
5497 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5499 * jit.c (jit_breakpoint_re_set_internal): Update.
5500 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5502 * linux-nat.c (get_signo): Update.
5503 * linux-thread-db.c (inferior_has_bug): Update
5504 * m32c-tdep.c (m32c_return_value)
5505 (m32c_m16c_address_to_pointer): Update.
5506 * m32r-tdep.c (m32r_frame_this_id): Update.
5507 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5508 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5509 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5510 lookup_minimal_symbol. Change return type.
5511 (lookup_minimal_symbol): Remove.
5512 (lookup_bound_minimal_symbol): Update.
5513 (lookup_minimal_symbol_text): Change return type.
5514 (lookup_minimal_symbol_solib_trampoline): Change return type.
5515 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5516 (lookup_minimal_symbol_solib_trampoline): Change return type.
5517 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5518 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5519 (value_nsstring, find_imps): Update.
5520 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5521 * p-lang.c (pascal_main_name): Update.
5522 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5523 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5524 * proc-service.c (ps_pglobal_lookup): Update.
5525 * ravenscar-thread.c (get_running_thread_msymbol): Change
5527 (has_ravenscar_runtime, get_running_thread_id): Update.
5528 * remote.c (remote_check_symbols): Update.
5529 * sol-thread.c (ps_pglobal_lookup): Update.
5530 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5531 * solib-dsbt.c (lm_base): Update.
5532 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5534 * solib-irix.c (locate_base): Update.
5535 * solib-som.c (som_solib_create_inferior_hook)
5536 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5538 * solib-spu.c (spu_enable_break): Update.
5539 * solib-svr4.c (elf_locate_base, enable_break): Update.
5540 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5541 (flush_ea_cache): Update.
5542 * stabsread.c (define_symbol): Update.
5543 * symfile.c (simple_read_overlay_table): Update.
5544 * symtab.c (find_pc_sect_line): Update.
5545 * tracepoint.c (scope_info): Update.
5546 * tui-disasm.c (tui_get_begin_asm_address): Update.
5547 * value.c (value_static_field): Update.
5549 2014-02-26 Tom Tromey <tromey@redhat.com>
5551 * minsyms.c (prim_record_minimal_symbol_full): Use
5552 SET_MSYMBOL_VALUE_ADDRESS.
5553 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5554 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5555 SET_MSYMBOL_VALUE_ADDRESS.
5556 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5557 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5559 2014-02-26 Tom Tromey <tromey@redhat.com>
5561 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5562 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5563 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5564 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5565 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5566 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5567 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5568 * ada-lang.c (ada_main_name): Update.
5569 (ada_lookup_simple_minsym): Update.
5570 (ada_make_symbol_completion_list): Update.
5571 (ada_add_standard_exceptions): Update.
5572 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5573 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5574 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5575 * arm-tdep.c (skip_prologue_function): Update.
5576 (arm_skip_stack_protector, arm_skip_stub): Update.
5577 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5578 (arm_wince_skip_main_prologue): Update.
5579 * auxv.c (ld_so_xfer_auxv): Update.
5580 * avr-tdep.c (avr_scan_prologue): Update.
5581 * ax-gdb.c (gen_var_ref): Update.
5582 * block.c (call_site_for_pc): Update.
5583 * blockframe.c (get_pc_function_start): Update.
5584 (find_pc_partial_function_gnu_ifunc): Update.
5585 * breakpoint.c (create_overlay_event_breakpoint): Update.
5586 (create_longjmp_master_breakpoint): Update.
5587 (create_std_terminate_master_breakpoint): Update.
5588 (create_exception_master_breakpoint): Update.
5589 (resolve_sal_pc): Update.
5590 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5591 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5593 * c-valprint.c (c_val_print): Update.
5594 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5595 * coffread.c (coff_symfile_read): Update.
5596 * common/agent.c (agent_look_up_symbols): Update.
5597 * dbxread.c (find_stab_function_addr): Update.
5598 (end_psymtab): Update.
5599 * dwarf2loc.c (call_site_to_target_addr): Update.
5600 (func_verify_no_selftailcall): Update.
5601 (tailcall_dump): Update.
5602 (call_site_find_chain_1): Update.
5603 (dwarf_expr_reg_to_entry_parameter): Update.
5604 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5605 (elf_gnu_ifunc_resolve_by_got): Update.
5606 * f-valprint.c (info_common_command): Update.
5607 * findvar.c (read_var_value): Update.
5608 * frame.c (get_prev_frame_1): Update.
5609 (inside_main_func): Update.
5610 * frv-tdep.c (frv_skip_main_prologue): Update.
5611 (frv_frame_this_id): Update.
5612 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5613 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5614 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5615 (gnuv3_skip_trampoline): Update.
5616 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5617 (hppa64_hpux_in_solib_call_trampoline): Update.
5618 (hppa_hpux_skip_trampoline_code): Update.
5619 (hppa64_hpux_search_dummy_call_sequence): Update.
5620 (hppa_hpux_find_import_stub_for_addr): Update.
5621 (hppa_hpux_find_dummy_bpaddr): Update.
5622 * hppa-tdep.c (hppa_symbol_address)
5623 (hppa_lookup_stub_minimal_symbol): Update.
5624 * i386-tdep.c (i386_skip_main_prologue): Update.
5625 (i386_pe_skip_trampoline_code): Update.
5626 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5627 * infcall.c (get_function_name): Update.
5628 * infcmd.c (until_next_command): Update.
5629 * jit.c (jit_breakpoint_re_set_internal): Update.
5630 (jit_inferior_init): Update.
5631 * linespec.c (minsym_found): Update.
5632 (add_minsym): Update.
5633 * linux-fork.c (info_checkpoints_command): Update.
5634 * linux-nat.c (get_signo): Update.
5635 * linux-thread-db.c (inferior_has_bug): Update.
5636 * m32c-tdep.c (m32c_return_value): Update.
5637 (m32c_m16c_address_to_pointer): Update.
5638 (m32c_m16c_pointer_to_address): Update.
5639 * m32r-tdep.c (m32r_frame_this_id): Update.
5640 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5641 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5642 * maint.c (maintenance_translate_address): Update.
5643 * minsyms.c (add_minsym_to_hash_table): Update.
5644 (add_minsym_to_demangled_hash_table): Update.
5645 (msymbol_objfile): Update.
5646 (lookup_minimal_symbol): Update.
5647 (iterate_over_minimal_symbols): Update.
5648 (lookup_minimal_symbol_text): Update.
5649 (lookup_minimal_symbol_by_pc_name): Update.
5650 (lookup_minimal_symbol_solib_trampoline): Update.
5651 (lookup_minimal_symbol_by_pc_section_1): Update.
5652 (lookup_minimal_symbol_and_objfile): Update.
5653 (prim_record_minimal_symbol_full): Update.
5654 (compare_minimal_symbols): Update.
5655 (compact_minimal_symbols): Update.
5656 (build_minimal_symbol_hash_tables): Update.
5657 (install_minimal_symbols): Update.
5658 (terminate_minimal_symbol_table): Update.
5659 (find_solib_trampoline_target): Update.
5660 (minimal_symbol_upper_bound): Update.
5661 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5662 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5663 (mips_skip_pic_trampoline_code): Update.
5664 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5665 * objc-lang.c (selectors_info): Update.
5666 (classes_info): Update.
5667 (find_methods): Update.
5668 (find_imps): Update.
5669 (find_objc_msgsend): Update.
5670 * objfiles.c (objfile_relocate1): Update.
5671 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5672 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5673 * p-valprint.c (pascal_val_print): Update.
5674 * parse.c (write_exp_msymbol): Update.
5675 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5676 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5677 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5678 * printcmd.c (build_address_symbolic): Update.
5680 (address_info): Update.
5681 * proc-service.c (ps_pglobal_lookup): Update.
5682 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5683 (find_pc_sect_psymtab): Update.
5684 * python/py-framefilter.c (py_print_frame): Update.
5685 * ravenscar-thread.c (get_running_thread_id): Update.
5686 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5688 * remote.c (remote_check_symbols): Update.
5689 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5690 (rs6000_skip_trampoline_code): Update.
5691 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5692 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5693 * solib-dsbt.c (lm_base): Update.
5694 * solib-frv.c (lm_base): Update.
5696 * solib-irix.c (locate_base): Update.
5697 * solib-som.c (som_solib_create_inferior_hook): Update.
5698 (som_solib_desire_dynamic_linker_symbols): Update.
5699 (link_map_start): Update.
5700 * solib-spu.c (spu_enable_break): Update.
5701 (ocl_enable_break): Update.
5702 * solib-svr4.c (elf_locate_base): Update.
5703 (enable_break): Update.
5704 * spu-tdep.c (spu_get_overlay_table): Update.
5705 (spu_catch_start): Update.
5706 (flush_ea_cache): Update.
5707 * stabsread.c (define_symbol): Update.
5708 (scan_file_globals): Update.
5709 * stack.c (find_frame_funname): Update.
5710 (frame_info): Update.
5711 * symfile.c (simple_read_overlay_table): Update.
5712 (simple_overlay_update): Update.
5713 * symmisc.c (dump_msymbols): Update.
5714 * symtab.c (fixup_section): Update.
5715 (find_pc_sect_line): Update.
5716 (skip_prologue_sal): Update.
5717 (search_symbols): Update.
5718 (print_msymbol_info): Update.
5719 (rbreak_command): Update.
5720 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5721 (completion_list_objc_symbol): Update.
5722 (default_make_symbol_completion_list_break_on): Update.
5723 * tracepoint.c (scope_info): Update.
5724 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5725 (tui_get_begin_asm_address): Update.
5726 * valops.c (find_function_in_inferior): Update.
5727 * value.c (value_static_field): Update.
5728 (value_fn_field): Update.
5730 2014-02-26 Tom Tromey <tromey@redhat.com>
5732 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5733 bound minimal symbols. Move code that knows about minsym
5735 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5737 * minsyms.h (minimal_symbol_upper_bound): Declare.
5738 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5739 minimal_symbol_upper_bound.
5741 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5743 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5744 Use the type's name if its basic type does not have a tag.
5746 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5748 * dwarf2read.c (read_subrange_type): Add comment.
5750 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5752 * dwarf2read.c (update_enumeration_type_from_children): New
5753 function, mostly extracted from process_structure_scope.
5754 (read_enumeration_type): Call update_enumeration_type_from_children.
5755 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5756 and flag_flag_enum fields.
5758 2014-02-26 Pedro Alves <palves@redhat.com>
5760 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5761 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5762 to_xfer_partial method.
5764 2014-02-26 Pedro Alves <palves@redhat.com>
5766 * target.c (complete_target_initialization): Don't install
5767 default_xfer_partial as to_xfer_partial hook.
5769 (update_current_target): Don't INHERIT nor de_fault
5770 deprecated_xfer_memory. Delete de_fault macro.
5771 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5772 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5773 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5776 2014-02-26 Pedro Alves <palves@redhat.com>
5778 * go32-nat.c (my_write_child): New function.
5779 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5780 (go32_xfer_partial): New function.
5781 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5782 Instead install a to_xfer_partial hook.
5784 2014-02-26 Pedro Alves <palves@redhat.com>
5786 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5787 to_xfer_partial helper. Rewrite.
5788 (procfs_xfer_partial): New function.
5789 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5790 Install a to_xfer_partial hook.
5792 2014-02-26 Pedro Alves <palves@redhat.com>
5794 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5795 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5796 (m32r_xfer_partial): New function.
5797 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5798 Install a to_xfer_partial hook.
5800 2014-02-26 Pedro Alves <palves@redhat.com>
5802 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5804 (mips_xfer_partial): New function.
5805 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5806 hook. Install a to_xfer_partial hook.
5808 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5810 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5811 * gdbtypes.c (create_array_type_with_stride): New function,
5812 renaming create_array_type, but with an added parameter
5813 called "bit_stride".
5814 (create_array_type): Re-implement using
5815 create_array_type_with_stride.
5816 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5817 and DW_AT_bit_stride attributes.
5819 2014-02-26 Pedro Alves <palves@redhat.com>
5821 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5822 task-specific breakpoints.
5824 2014-02-25 Pedro Alves <palves@redhat.com>
5826 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5827 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5829 2014-02-25 Stan Shebs <stan@codesourcery.com>
5831 * defs.h: Annotate comments for Doxygen.
5833 2014-02-25 Tom Tromey <tromey@redhat.com>
5835 * target.h (target_ignore): Don't declare.
5836 * target.c (target_ignore): Remove.
5838 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5841 * auto-load.c (auto_load_objfile_script_1): Change filename to
5844 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5846 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5847 documentation. Adjust prototype to match the target_ops
5848 to_xfer_partial method. Adjust implementation accordingly.
5850 2014-02-25 Hui Zhu <hui@codesourcery.com>
5852 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5855 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5857 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5858 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5859 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5860 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5861 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5862 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5863 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5864 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5866 (rl78_register_type): Use a data pointer type for SP and
5867 new pseudo registers mentioned above. Use a 16 bit integer
5868 type for all other register pairs.
5869 (rl78_register_name, rl78_g10_register_name): Update for
5870 new pseudo registers.
5871 (rl78_pseudo_register_read): Likewise.
5872 (rl78_pseudo_register_write): Likewise.
5873 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5874 to the newly added pseudo registers.
5876 2014-02-24 Doug Evans <dje@google.com>
5878 * value.c (record_latest_value): Fix comment.
5879 * printcmd.c (print_command_1): Remove code to handle -1 return from
5880 record_latest_value.
5882 2014-02-24 Pedro Alves <palves@redhat.com>
5884 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5885 deprecated_xfer_memory hook.
5886 (procfs_xfer_partial): Call procfs_xfer_memory instead
5887 of the deprecated_xfer_memory target hook.
5888 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5891 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5893 * windows-nat.c (windows_xfer_shared_libraries): Return
5894 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5895 requested object is TARGET_OBJECT_LIBRARIES.
5897 2014-02-24 Yao Qi <yao@codesourcery.com>
5899 * target.h (enum target_xfer_status)
5900 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5901 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5903 * corefile.c (memory_error_message): User updated.
5904 * exec.c (section_table_read_available_memory): Likewise.
5905 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5906 * target.c (target_xfer_status_to_string): Likewise.
5907 (raw_memory_xfer_partial): Likewise.
5908 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5909 * valops.c (read_value_memory): Likewise.
5910 * exec.h: Update comments.
5912 2014-02-24 Yao Qi <yao@codesourcery.com>
5914 * target.c (target_xfer_status_to_string): Rename argument err
5916 * target.h (target_xfer_status_to_string): Update declaration.
5917 Replace target_xfer_error_to_string with
5918 target_xfer_status_to_string in comment.
5920 2014-02-24 Yao Qi <yao@codesourcery.com>
5922 * mips-linux-nat.c (super_close): Update its type.
5923 (mips_linux_close): Pass 'self' to super_close.
5925 2014-02-24 Yao Qi <yao@codesourcery.com>
5927 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5928 * corefile.c (read_memory): Adjusted.
5929 * target.c (target_write_with_progress): Adjusted.
5931 2014-02-23 Yao Qi <yao@codesourcery.com>
5935 2013-10-25 Yao Qi <yao@codesourcery.com>
5937 * remote.c (remote_traceframe_info): Return early if
5938 traceframe is not selected.
5940 2013-07-19 Yao Qi <yao@codesourcery.com>
5942 * target.c (update_current_target): Change the default action
5943 of 'to_traceframe_info' from tcomplain to return_zero.
5944 * target.h (struct target_ops) <to_traceframe_info>: Add more
5947 2014-02-23 Yao Qi <yao@codesourcery.com>
5949 * valops.c (read_value_memory): Rewrite it. Call
5950 target_xfer_partial in a loop.
5951 * exec.h (section_table_available_memory): Remove declaration.
5952 Move comments to ...
5953 * exec.c (section_table_available_memory): ... here. Make it
5956 2014-02-23 Yao Qi <yao@codesourcery.com>
5958 * exec.c (section_table_read_available_memory): New function.
5959 * exec.h (section_table_read_available_memory): Declare.
5960 * ctf.c (ctf_xfer_partial): Call
5961 section_table_read_available_memory.
5962 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5964 2014-02-23 Yao Qi <yao@codesourcery.com>
5966 * ctf.c (ctf_xfer_partial): Move code to ...
5967 * exec.c (exec_read_partial_read_only): ... it. New function.
5968 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5969 * tracefile.c: Include "exec.h".
5970 * exec.h (exec_read_partial_read_only): Declare.
5972 2014-02-23 Yao Qi <yao@codesourcery.com>
5974 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5975 (tfile_has_memory): Remove.
5976 (init_tfile_ops): Don't set fields to_has_all_memory and
5977 to_has_memory of tfile_ops.
5978 * tracefile.c (tracefile_has_all_memory): New function.
5979 (tracefile_has_memory): New function.
5980 (init_tracefile_ops): Initialize fields to_has_all_memory and
5981 to_has_memory of 'ops'.
5983 2014-02-23 Yao Qi <yao@codesourcery.com>
5985 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5986 (ctf_thread_alive, ctf_get_trace_status): Remove.
5987 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5989 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5990 (tfile_has_stack, tfile_has_registers): Remove.
5991 (tfile_thread_alive): Remove.
5992 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5994 * tracefile.c (tracefile_has_stack): New function.
5995 (tracefile_has_registers): New function.
5996 (tracefile_thread_alive): New function.
5997 (tracefile_get_trace_status): New function.
5998 (init_tracefile_ops): New function.
5999 * tracefile.h (init_tracefile_ops): Declare.
6001 2014-02-23 Yao Qi <yao@codesourcery.com>
6003 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6004 (O_LARGEFILE): Likewise.
6005 (tfile_ops): Likewise.
6006 (TRACE_HEADER_SIZE): Likewise.
6007 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6008 (cur_data_size): Likewise.
6009 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6010 (tfile_close, tfile_files_info): Likewise.
6011 (tfile_get_trace_status): Likewise.
6012 (tfile_get_tracepoint_status): Likewise.
6013 (tfile_get_traceframe_address): Likewise.
6014 (tfile_trace_find, match_blocktype): Likewise.
6015 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6016 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6017 (tfile_get_trace_state_variable_value): Likewise.
6018 (tfile_has_all_memory, tfile_has_memory): Likewise.
6019 (tfile_has_stack, tfile_has_registers): Likewise.
6020 (tfile_thread_alive, build_traceframe_info): Likewise.
6021 (tfile_traceframe_info, init_tfile_ops): Likewise.
6022 (_initialize_tracepoint): Don't call init_tfile_ops
6023 and add_target_with_completer.
6024 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6025 exec.h, completer.h and filenames.h.
6026 (_initialize_tracefile_tfile): New function.
6028 2014-02-23 Yao Qi <yao@codesourcery.com>
6030 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6032 (HFILES_NO_SRCDIR): Add tracefile.h.
6033 * ctf.c: Include "tracefile.h".
6034 * tracefile.h: New file.
6035 * tracefile.c: New file
6036 * tracefile-tfile.c: New file.
6037 * tracepoint.c: Include "tracefile.h".
6038 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6039 (stop_reason_names): Add const.
6040 (trace_file_writer_xfree): Move it to tracefile.c.
6041 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6042 (trace_save_ctf): Likewise.
6043 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6044 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6045 (tfile_write_header, tfile_write_regblock_type): Likewise.
6046 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6047 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6048 (tfile_write_raw_data, tfile_end): Likewise.
6049 (tfile_trace_file_writer_new): Likewise.
6050 (free_uploaded_tp): Make it extern.
6051 (free_uploaded_tsv): Make it extern.
6052 (_initialize_tracepoint): Move code to register command 'tsave'
6054 * tracepoint.h (stop_reason_names): Declare.
6055 (struct trace_frame_write_ops): Move it to tracefile.h.
6056 (struct trace_file_write_ops): Likewise.
6057 (struct trace_file_writer): Likewise.
6058 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6060 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6063 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6065 (get_cores_used_by_process): New parameter num_cores, use it.
6066 (linux_xfer_osdata_processes): Pass num_cores to it.
6067 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6070 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6072 * target.c (memory_xfer_partial): Fix length arg in call to
6073 breakpoint_xfer_memory.
6075 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6078 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6079 number comes after the + or - signs. Adjust length of register
6080 name to be extracted.
6082 2014-02-20 Tom Tromey <tromey@redhat.com>
6084 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6085 (ada_varobj_ops): Mark "extern".
6087 2014-02-20 Tom Tromey <tromey@redhat.com>
6089 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6091 2014-02-20 Doug Evans <xdje42@gmail.com>
6093 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6094 All callers updated.
6095 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6096 All callers updated.
6097 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6098 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6100 2014-02-20 lin zuojian <manjian2006@gmail.com>
6101 Joel Brobecker <brobecker@adacore.com>
6102 Doug Evans <xdje42@gmail.com>
6105 * dwarf2read.c (struct die_info): New member in_process.
6106 (reset_die_in_process): New function.
6107 (process_die): Set it at the start, reset when returning.
6108 (inherit_abstract_dies): Only call process_die if origin_child_die
6109 not already being processed.
6111 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6113 * windows-nat.c (handle_unload_dll): Add function documentation.
6114 (do_initial_windows_stuff): Add comment explaining why we wait
6115 until after inferior initialization has finished before
6116 processing all DLLs.
6118 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6120 * windows-nat.c (get_module_name): Delete.
6121 (windows_get_exec_module_filename): New function, mostly
6122 inspired from get_module_name.
6123 (windows_pid_to_exec_file): Replace call to get_module_name
6124 by call to windows_get_exec_module_filename.
6126 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6128 * windows-nat.c (handle_load_dll): Rewrite this function's
6129 introductory comment. Remove code using get_module_name
6130 to get the DLL's name.
6132 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6134 * windows-nat.c (get_windows_debug_event): Ignore
6135 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6136 if windows_initialization_done == 0.
6137 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6138 Adjust implementation to always load all DLLs.
6139 (do_initial_windows_stuff): Replace call to
6140 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6142 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6144 * windows-nat.c (_initialize_windows_nat): Deprecate the
6145 "dll-symbols" command. Turn the "add-shared-symbol-files"
6146 and "assf" aliases into commands, and deprecate them as well.
6147 * NEWS: Add entry explaining that "dll-symbols" and its two
6148 aliases are now deprecated.
6150 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6152 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6153 new-line in debug string. Remove trailing spaces.
6155 2014-02-19 Stan Shebs <stan@codesourcery.com>
6157 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6159 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6161 * NEWS: Add entry for the new feature
6162 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6165 2014-02-19 Stan Shebs <stan@codesourcery.com>
6167 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6169 2014-02-19 Pedro Alves <palves@redhat.com>
6171 * common/ptid.h (struct ptid): Mention that process_stratum
6172 targets should prefer ptid.lwp.
6174 2014-02-19 Pedro Alves <palves@redhat.com>
6176 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6177 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6178 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6179 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6180 store remote thread ids rather than ptid.tid.
6181 (_initialize_remote): Adjust.
6183 2014-02-19 Tom Tromey <tromey@redhat.com>
6185 * target.c (target_get_unwinder): Rewrite.
6186 (target_get_tailcall_unwinder): Rewrite.
6187 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6188 (record_btrace_to_get_tailcall_unwinder): New function.
6189 (init_record_btrace_ops): Update.
6190 * target.h (struct target_ops) <to_get_unwinder,
6191 to_get_tailcall_unwinder>: Now function pointers. Use
6192 TARGET_DEFAULT_RETURN.
6194 2014-02-19 Tom Tromey <tromey@redhat.com>
6196 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6198 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6200 2014-02-19 Tom Tromey <tromey@redhat.com>
6202 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6204 * target-delegates.c: Rebuild.
6205 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6206 TARGET_DEFAULT_FUNC.
6207 * target.c (default_target_decr_pc_after_break): Rename from
6208 forward_target_decr_pc_after_break. Simplify.
6209 (target_decr_pc_after_break): Rely on delegation.
6211 2014-02-19 Tom Tromey <tromey@redhat.com>
6213 * target.c (update_current_target): Do not INHERIT to_doc or
6214 to_magic. Do not de_fault to_open or to_close.
6216 2014-02-19 Tom Tromey <tromey@redhat.com>
6218 * gcore.h (objfile_find_memory_regions): Declare.
6219 * gcore.c (objfile_find_memory_regions): No longer static. Add
6221 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6222 * exec.c: Include gcore.h.
6223 (exec_set_find_memory_regions): Remove.
6224 (exec_find_memory_regions): Remove.
6225 (exec_do_find_memory_regions): Remove.
6226 (init_exec_ops): Update.
6227 * defs.h (exec_set_find_memory_regions): Remove.
6229 2014-02-19 Tom Tromey <tromey@redhat.com>
6231 * target-delegates.c: Rebuild.
6232 * target.h (struct target_ops) <to_extra_thread_info,
6233 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6234 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6235 not 0, in TARGET_DEFAULT_RETURN.
6237 2014-02-19 Tom Tromey <tromey@redhat.com>
6239 * target.c (complete_target_initialization): Remove casts. Use
6240 return_zero_has_execution.
6241 (return_zero): Add "ignore" argument.
6242 (return_zero_has_execution): New function.
6243 (init_dummy_target): Remove casts. Use
6244 return_zero_has_execution.
6246 2014-02-19 Tom Tromey <tromey@redhat.com>
6248 * target.c (update_current_target): Update comments. Do not
6251 2014-02-19 Tom Tromey <tromey@redhat.com>
6253 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6255 * corelow.c (core_read_description): Delegate when needed.
6256 * remote.c (remote_read_description): Delegate when needed.
6257 * target-delegates.c: Rebuild.
6258 * target.c (target_read_description): Rewrite.
6259 * target.h (struct target_ops) <to_read_description>: Update
6260 comment. Use TARGET_DEFAULT_RETURN.
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6264 * target-delegates.c: Rebuild.
6265 * target.c (update_current_target): Don't inherit or default
6267 (find_default_run_target): Check against delegate_can_run.
6268 * target.h (struct target_ops) <to_can_run>: Use
6269 TARGET_DEFAULT_RETURN.
6271 2014-02-19 Tom Tromey <tromey@redhat.com>
6273 * target-delegates.c: Rebuild.
6274 * target.c (target_disconnect): Unconditionally delegate.
6275 * target.h (struct target_ops) <to_disconnect>: Use
6276 TARGET_DEFAULT_NORETURN.
6278 2014-02-19 Tom Tromey <tromey@redhat.com>
6280 * record.c (record_stop): Unconditionally delegate.
6281 * target-delegates.c: Rebuild.
6282 * target.c (target_stop_recording): Unconditionally delegate.
6283 * target.h (struct target_ops) <to_stop_recording>: Use
6284 TARGET_DEFAULT_IGNORE.
6286 2014-02-19 Tom Tromey <tromey@redhat.com>
6288 * target-delegates.c: Rebuild.
6289 * target.c (target_enable_btrace): Unconditionally delegate.
6290 * target.h (struct target_ops) <to_enable_btrace>: Use
6291 TARGET_DEFAULT_NORETURN.
6293 2014-02-19 Tom Tromey <tromey@redhat.com>
6295 * target-delegates.c: Rebuild.
6296 * target.c (target_read_btrace): Unconditionally delegate.
6297 * target.h (struct target_ops) <to_read_btrace>: Use
6298 TARGET_DEFAULT_NORETURN.
6300 2014-02-19 Tom Tromey <tromey@redhat.com>
6302 * target-delegates.c: Rebuild.
6303 * target.c (target_teardown_btrace): Unconditionally delegate.
6304 * target.h (struct target_ops) <to_teardown_btrace>: Use
6305 TARGET_DEFAULT_NORETURN.
6307 2014-02-19 Tom Tromey <tromey@redhat.com>
6309 * target-delegates.c: Rebuild.
6310 * target.c (target_disable_btrace): Unconditionally delegate.
6311 * target.h (struct target_ops) <to_disable_btrace>: Use
6312 TARGET_DEFAULT_NORETURN.
6314 2014-02-19 Tom Tromey <tromey@redhat.com>
6316 * target-delegates.c: Rebuild.
6317 * target.c (default_search_memory): New function.
6318 (simple_search_memory): Update comment.
6319 (target_search_memory): Unconditionally delegate.
6320 * target.h (struct target_ops) <to_search_memory>: Use
6321 TARGET_DEFAULT_FUNC.
6323 2014-02-19 Tom Tromey <tromey@redhat.com>
6325 * auxv.c (default_auxv_parse): No longer static.
6326 (target_auxv_parse): Unconditionally delegate.
6327 * auxv.h (default_auxv_parse): Declare.
6328 * target-delegates.c: Rebuild.
6329 * target.c: Include auxv.h.
6330 * target.h (struct target_ops) <to_auxv_parse>: Use
6331 TARGET_DEFAULT_FUNC.
6333 2014-02-19 Tom Tromey <tromey@redhat.com>
6335 * target-delegates.c: Rebuild.
6336 * target.c (target_memory_map): Unconditionally delegate.
6337 * target.h (struct target_ops) <to_memory_map>: Use
6338 TARGET_DEFAULT_RETURN.
6340 2014-02-19 Tom Tromey <tromey@redhat.com>
6342 * target-delegates.c: Rebuild.
6343 * target.c (target_thread_alive): Unconditionally delegate.
6344 * target.h (struct target_ops) <to_thread_alive>: Use
6345 TARGET_DEFAULT_RETURN.
6347 2014-02-19 Tom Tromey <tromey@redhat.com>
6349 * target-delegates.c: Rebuild.
6350 * target.c (target_save_record): Unconditionally delegate.
6351 * target.h (struct target_ops) <to_save_record>: Use
6352 TARGET_DEFAULT_NORETURN.
6354 2014-02-19 Tom Tromey <tromey@redhat.com>
6356 * target-delegates.c: Rebuild.
6357 * target.c (target_delete_record): Unconditionally delegate.
6358 * target.h (struct target_ops) <to_delete_record>: Use
6359 TARGET_DEFAULT_NORETURN.
6361 2014-02-19 Tom Tromey <tromey@redhat.com>
6363 * target-delegates.c: Rebuild.
6364 * target.c (target_record_is_replaying): Unconditionally
6366 * target.h (struct target_ops) <to_record_is_replaying>: Use
6367 TARGET_DEFAULT_RETURN.
6369 2014-02-19 Tom Tromey <tromey@redhat.com>
6371 * target-delegates.c: Rebuild.
6372 * target.c (target_goto_record_begin): Unconditionally delegate.
6373 * target.h (struct target_ops) <to_goto_record_begin>: Use
6374 TARGET_DEFAULT_NORETURN.
6376 2014-02-19 Tom Tromey <tromey@redhat.com>
6378 * target-delegates.c: Rebuild.
6379 * target.c (target_goto_record_end): Unconditionally delegate.
6380 * target.h (struct target_ops) <to_goto_record_end>: Use
6381 TARGET_DEFAULT_NORETURN.
6383 2014-02-19 Tom Tromey <tromey@redhat.com>
6385 * target-delegates.c: Rebuild.
6386 * target.c (target_goto_record): Unconditionally delegate.
6387 * target.h (struct target_ops) <to_goto_record>: Use
6388 TARGET_DEFAULT_NORETURN.
6390 2014-02-19 Tom Tromey <tromey@redhat.com>
6392 * target-delegates.c: Rebuild.
6393 * target.c (target_insn_history): Unconditionally delegate.
6394 * target.h (struct target_ops) <to_insn_history>: Use
6395 TARGET_DEFAULT_NORETURN.
6397 2014-02-19 Tom Tromey <tromey@redhat.com>
6399 * target-delegates.c: Rebuild.
6400 * target.c (target_insn_history_from): Unconditionally delegate.
6401 * target.h (struct target_ops) <to_insn_history_from>: Use
6402 TARGET_DEFAULT_NORETURN.
6404 2014-02-19 Tom Tromey <tromey@redhat.com>
6406 * target-delegates.c: Rebuild.
6407 * target.c (target_insn_history_range): Unconditionally delegate.
6408 * target.h (struct target_ops) <to_insn_history_range>: Use
6409 TARGET_DEFAULT_NORETURN.
6411 2014-02-19 Tom Tromey <tromey@redhat.com>
6413 * target-delegates.c: Rebuild.
6414 * target.c (target_call_history): Unconditionally delegate.
6415 * target.h (struct target_ops) <to_call_history>: Use
6416 TARGET_DEFAULT_NORETURN.
6418 2014-02-19 Tom Tromey <tromey@redhat.com>
6420 * target-delegates.c: Rebuild.
6421 * target.c (target_call_history_from): Unconditionally delegate.
6422 * target.h (struct target_ops) <to_call_history_from>: Use
6423 TARGET_DEFAULT_NORETURN.
6425 2014-02-19 Tom Tromey <tromey@redhat.com>
6427 * target-delegates.c: Rebuild.
6428 * target.c (target_call_history_range): Unconditionally delegate.
6429 * target.h (struct target_ops) <to_call_history_range>: Use
6430 TARGET_DEFAULT_NORETURN.
6432 2014-02-19 Tom Tromey <tromey@redhat.com>
6434 * target-delegates.c: Rebuild.
6435 * target.c (target_verify_memory): Unconditionally delegate.
6436 * target.h (struct target_ops) <to_verify_memory>: Use
6437 TARGET_DEFAULT_NORETURN.
6439 2014-02-19 Tom Tromey <tromey@redhat.com>
6441 * target-delegates.c: Rebuild.
6442 * target.c (target_core_of_thread): Unconditionally delegate.
6443 * target.h (struct target_ops) <to_core_of_thread>: Use
6444 TARGET_DEFAULT_RETURN.
6446 2014-02-19 Tom Tromey <tromey@redhat.com>
6448 * target-delegates.c: Rebuild.
6449 * target.c (target_flash_done): Unconditionally delegate.
6450 * target.h (struct target_ops) <to_flash_done>: Use
6451 TARGET_DEFAULT_NORETURN.
6453 2014-02-19 Tom Tromey <tromey@redhat.com>
6455 * target-delegates.c: Rebuild.
6456 * target.c (target_flash_erase): Unconditionally delegate.
6457 * target.h (struct target_ops) <to_flash_erase>: Use
6458 TARGET_DEFAULT_NORETURN.
6460 2014-02-19 Tom Tromey <tromey@redhat.com>
6462 * target-delegates.c: Rebuild.
6463 * target.c (target_get_section_table): Unconditionally delegate.
6464 * target.h (struct target_ops) <to_get_section_table>: Use
6465 TARGET_DEFAULT_RETURN.
6467 2014-02-19 Tom Tromey <tromey@redhat.com>
6469 * target-delegates.c: Rebuild.
6470 * target.c (target_pid_to_str): Unconditionally delegate.
6471 (init_dummy_target): Don't initialize to_pid_to_str.
6472 (default_pid_to_str): Rename from dummy_pid_to_str.
6473 * target.h (struct target_ops) <to_pid_to_str>: Use
6474 TARGET_DEFAULT_FUNC.
6476 2014-02-19 Tom Tromey <tromey@redhat.com>
6478 * target-delegates.c: Rebuild.
6479 * target.c (target_find_new_threads): Unconditionally delegate.
6480 * target.h (struct target_ops) <to_find_new_threads>: Use
6481 TARGET_DEFAULT_RETURN.
6483 2014-02-19 Tom Tromey <tromey@redhat.com>
6485 * target-delegates.c: Rebuild.
6486 * target.c (target_program_signals): Unconditionally delegate.
6487 * target.h (struct target_ops) <to_program_signals>: Use
6488 TARGET_DEFAULT_IGNORE.
6490 2014-02-19 Tom Tromey <tromey@redhat.com>
6492 * target-delegates.c: Rebuild.
6493 * target.c (target_pass_signals): Unconditionally delegate.
6494 * target.h (struct target_ops) <to_pass_signals>: Use
6495 TARGET_DEFAULT_IGNORE.
6497 2014-02-19 Tom Tromey <tromey@redhat.com>
6499 * target-delegates.c: Rebuild.
6500 * target.c (default_mourn_inferior): New function.
6501 (target_mourn_inferior): Unconditionally delegate.
6502 * target.h (struct target_ops) <to_mourn_inferior>: Use
6503 TARGET_DEFAULT_FUNC.
6505 2014-02-19 Tom Tromey <tromey@redhat.com>
6507 * target-delegates.c: Rebuild.
6508 * target.c (default_follow_fork): New function.
6509 (target_follow_fork): Unconditionally delegate.
6510 * target.h (struct target_ops) <to_follow_fork>: Use
6511 TARGET_DEFAULT_FUNC.
6513 2014-02-19 Tom Tromey <tromey@redhat.com>
6515 * target-delegates.c: Rebuild.
6516 * target.c (target_kill): Unconditionally delegate.
6517 * target.h (struct target_ops) <to_kill>: Use
6518 TARGET_DEFAULT_NORETURN.
6520 2014-02-19 Tom Tromey <tromey@redhat.com>
6522 * target-delegates.c: Rebuild.
6523 * target.c (target_masked_watch_num_registers): Unconditionally
6525 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6526 Use TARGET_DEFAULT_RETURN.
6528 2014-02-19 Tom Tromey <tromey@redhat.com>
6530 * target-delegates.c: Rebuild.
6531 * target.c (target_remove_mask_watchpoint): Unconditionally
6533 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6534 TARGET_DEFAULT_RETURN.
6536 2014-02-19 Tom Tromey <tromey@redhat.com>
6538 * target-delegates.c: Rebuild.
6539 * target.c (target_insert_mask_watchpoint): Unconditionally
6541 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6542 TARGET_DEFAULT_RETURN.
6544 2014-02-19 Tom Tromey <tromey@redhat.com>
6546 * target-delegates.c: Rebuild.
6547 * target.c (target_ranged_break_num_registers): Unconditionally
6549 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6550 Use TARGET_DEFAULT_RETURN.
6552 2014-02-19 Tom Tromey <tromey@redhat.com>
6554 * target-delegates.c: Rebuild.
6555 * target.c (target_fetch_registers): Unconditionally delegate.
6556 * target.h (struct target_ops) <to_fetch_registers>: Use
6557 TARGET_DEFAULT_NORETURN.
6559 2014-02-19 Tom Tromey <tromey@redhat.com>
6561 * target-delegates.c: Rebuild.
6562 * target.c (update_current_target): Don't inherit or default
6564 * target.h (struct target_ops) <to_stop>: Use
6565 TARGET_DEFAULT_IGNORE.
6567 2014-02-19 Tom Tromey <tromey@redhat.com>
6569 * target-delegates.c: Rebuild.
6570 * target.c (update_current_target): Don't inherit or default
6571 to_can_run_breakpoint_commands.
6572 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6573 Use TARGET_DEFAULT_RETURN.
6575 2014-02-19 Tom Tromey <tromey@redhat.com>
6577 * target-delegates.c: Rebuild.
6578 * target.c (update_current_target): Don't inherit or default
6579 to_supports_evaluation_of_breakpoint_conditions.
6580 * target.h (struct target_ops)
6581 <to_supports_evaluation_of_breakpoint_conditions>: Use
6582 TARGET_DEFAULT_RETURN.
6584 2014-02-19 Tom Tromey <tromey@redhat.com>
6586 * target-delegates.c: Rebuild.
6587 * target.c (update_current_target): Don't inherit or default
6588 to_augmented_libraries_svr4_read.
6589 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6590 Use TARGET_DEFAULT_RETURN.
6592 2014-02-19 Tom Tromey <tromey@redhat.com>
6594 * target-delegates.c: Rebuild.
6595 * target.c (update_current_target): Don't inherit or default
6597 * target.h (struct target_ops) <to_can_use_agent>: Use
6598 TARGET_DEFAULT_RETURN.
6600 2014-02-19 Tom Tromey <tromey@redhat.com>
6602 * target-delegates.c: Rebuild.
6603 * target.c (update_current_target): Don't inherit or default
6605 * target.h (struct target_ops) <to_use_agent>: Use
6606 TARGET_DEFAULT_NORETURN.
6608 2014-02-19 Tom Tromey <tromey@redhat.com>
6610 * target-delegates.c: Rebuild.
6611 * target.c (update_current_target): Don't inherit or default
6613 (return_null): Remove.
6614 * target.h (struct target_ops) <to_traceframe_info>: Use
6615 TARGET_DEFAULT_RETURN.
6617 2014-02-19 Tom Tromey <tromey@redhat.com>
6619 * target-delegates.c: Rebuild.
6620 * target.c (update_current_target): Don't inherit or default
6621 to_static_tracepoint_markers_by_strid.
6622 * target.h (struct target_ops)
6623 <to_static_tracepoint_markers_by_strid>: Use
6624 TARGET_DEFAULT_NORETURN.
6626 2014-02-19 Tom Tromey <tromey@redhat.com>
6628 * target-delegates.c: Rebuild.
6629 * target.c (update_current_target): Don't inherit or default
6630 to_static_tracepoint_marker_at.
6631 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6632 Use TARGET_DEFAULT_RETURN.
6634 2014-02-19 Tom Tromey <tromey@redhat.com>
6636 * target-delegates.c: Rebuild.
6637 * target.c (update_current_target): Don't inherit or default
6639 * target.h (struct target_ops) <to_set_permissions>: Use
6640 TARGET_DEFAULT_IGNORE.
6642 2014-02-19 Tom Tromey <tromey@redhat.com>
6644 * target-delegates.c: Rebuild.
6645 * target.c (update_current_target): Don't inherit or default
6647 * target.h (struct target_ops) <to_get_tib_address>: Use
6648 TARGET_DEFAULT_NORETURN.
6650 2014-02-19 Tom Tromey <tromey@redhat.com>
6652 * target-delegates.c: Rebuild.
6653 * target.c (update_current_target): Don't inherit or default
6655 * target.h (struct target_ops) <to_set_trace_notes>: Use
6656 TARGET_DEFAULT_RETURN.
6658 2014-02-19 Tom Tromey <tromey@redhat.com>
6660 * target-delegates.c: Rebuild.
6661 * target.c (update_current_target): Don't initialize
6662 to_set_trace_buffer_size.
6663 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6664 TARGET_DEFAULT_IGNORE.
6666 2014-02-19 Tom Tromey <tromey@redhat.com>
6668 * target-delegates.c: Rebuild.
6669 * target.c (update_current_target): Don't inherit or default
6670 to_set_circular_trace_buffer.
6671 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6672 TARGET_DEFAULT_IGNORE.
6674 2014-02-19 Tom Tromey <tromey@redhat.com>
6676 * target-delegates.c: Rebuild.
6677 * target.c (update_current_target): Don't inherit or default
6678 to_set_disconnected_tracing.
6679 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6680 TARGET_DEFAULT_IGNORE.
6682 2014-02-19 Tom Tromey <tromey@redhat.com>
6684 * target-delegates.c: Rebuild.
6685 * target.c (update_current_target): Don't inherit or default
6686 to_get_min_fast_tracepoint_insn_len.
6687 (return_minus_one): Remove.
6688 * target.h (struct target_ops)
6689 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6691 2014-02-19 Tom Tromey <tromey@redhat.com>
6693 * target-delegates.c: Rebuild.
6694 * target.c (update_current_target): Don't inherit or default
6695 to_get_raw_trace_data.
6696 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6697 TARGET_DEFAULT_NORETURN.
6699 2014-02-19 Tom Tromey <tromey@redhat.com>
6701 * target-delegates.c: Rebuild.
6702 * target.c (update_current_target): Don't inherit or default
6703 to_upload_trace_state_variables.
6704 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6705 Use TARGET_DEFAULT_RETURN.
6707 2014-02-19 Tom Tromey <tromey@redhat.com>
6709 * target-delegates.c: Rebuild.
6710 * target.c (update_current_target): Don't inherit or default
6711 to_upload_tracepoints.
6712 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6713 TARGET_DEFAULT_RETURN.
6715 2014-02-19 Tom Tromey <tromey@redhat.com>
6717 * target-delegates.c: Rebuild.
6718 * target.c (update_current_target): Don't inherit or default
6720 * target.h (struct target_ops) <to_save_trace_data>: Use
6721 TARGET_DEFAULT_NORETURN.
6723 2014-02-19 Tom Tromey <tromey@redhat.com>
6725 * target-delegates.c: Rebuild.
6726 * target.c (update_current_target): Don't inherit or default
6727 to_get_trace_state_variable_value.
6728 * target.h (struct target_ops)
6729 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6731 2014-02-19 Tom Tromey <tromey@redhat.com>
6733 * target-delegates.c: Rebuild.
6734 * target.c (update_current_target): Don't inherit or default
6736 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6738 2014-02-19 Tom Tromey <tromey@redhat.com>
6740 * target-delegates.c: Rebuild.
6741 * target.c (update_current_target): Don't inherit or default
6743 * target.h (struct target_ops) <to_trace_stop>: Use
6744 TARGET_DEFAULT_NORETURN.
6746 2014-02-19 Tom Tromey <tromey@redhat.com>
6748 * target-delegates.c: Rebuild.
6749 * target.c (update_current_target): Don't inherit or default
6750 to_get_tracepoint_status.
6751 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6752 TARGET_DEFAULT_NORETURN.
6754 2014-02-19 Tom Tromey <tromey@redhat.com>
6756 * target-delegates.c: Rebuild.
6757 * target.c (update_current_target): Don't inherit or default
6758 to_get_trace_status.
6759 * target.h (struct target_ops) <to_get_trace_status>: Use
6760 TARGET_DEFAULT_RETURN.
6762 2014-02-19 Tom Tromey <tromey@redhat.com>
6764 * target-delegates.c: Rebuild.
6765 * target.c (update_current_target): Don't inherit or default
6767 * target.h (struct target_ops) <to_trace_start>: Use
6768 TARGET_DEFAULT_NORETURN.
6770 2014-02-19 Tom Tromey <tromey@redhat.com>
6772 * target-delegates.c: Rebuild.
6773 * target.c (update_current_target): Don't inherit or default
6774 to_trace_set_readonly_regions.
6775 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6776 Use TARGET_DEFAULT_NORETURN.
6778 2014-02-19 Tom Tromey <tromey@redhat.com>
6780 * target-delegates.c: Rebuild.
6781 * target.c (update_current_target): Don't inherit or default
6782 to_disable_tracepoint.
6783 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6784 TARGET_DEFAULT_NORETURN.
6786 2014-02-19 Tom Tromey <tromey@redhat.com>
6788 * target-delegates.c: Rebuild.
6789 * target.c (update_current_target): Don't inherit or default
6790 to_enable_tracepoint.
6791 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6792 TARGET_DEFAULT_NORETURN.
6794 2014-02-19 Tom Tromey <tromey@redhat.com>
6796 * target-delegates.c: Rebuild.
6797 * target.c (update_current_target): Don't inherit or default
6798 to_download_trace_state_variable.
6799 * target.h (struct target_ops) <to_download_trace_state_variable>:
6800 Use TARGET_DEFAULT_NORETURN.
6802 2014-02-19 Tom Tromey <tromey@redhat.com>
6804 * target-delegates.c: Rebuild.
6805 * target.c (update_current_target): Don't inherit or default
6806 to_can_download_tracepoint.
6807 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6808 TARGET_DEFAULT_RETURN.
6810 2014-02-19 Tom Tromey <tromey@redhat.com>
6812 * target-delegates.c: Rebuild.
6813 * target.c (update_current_target): Don't inherit or default
6814 to_download_tracepoint.
6815 * target.h (struct target_ops) <to_download_tracepoint>: Use
6816 TARGET_DEFAULT_NORETURN.
6818 2014-02-19 Tom Tromey <tromey@redhat.com>
6820 * target-delegates.c: Rebuild.
6821 * target.c (update_current_target): Don't inherit or default
6823 * target.h (struct target_ops) <to_trace_init>: Use
6824 TARGET_DEFAULT_RETURN.
6826 2014-02-19 Tom Tromey <tromey@redhat.com>
6828 * target-delegates.c: Rebuild.
6829 * target.c (update_current_target): Don't inherit or default
6830 to_supports_string_tracing.
6831 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6832 TARGET_DEFAULT_RETURN.
6834 2014-02-19 Tom Tromey <tromey@redhat.com>
6836 * target-delegates.c: Rebuild.
6837 * target.c (update_current_target): Don't inherit or default
6838 to_supports_enable_disable_tracepoint.
6839 * target.h (struct target_ops)
6840 <to_supports_enable_disable_tracepoint>: Use
6841 TARGET_DEFAULT_RETURN.
6843 2014-02-19 Tom Tromey <tromey@redhat.com>
6845 * target-delegates.c: Rebuild.
6846 * target.c (update_current_target): Don't inherit or default
6847 to_supports_multi_process.
6848 * target.h (struct target_ops) <to_supports_multi_process>: Use
6849 TARGET_DEFAULT_RETURN.
6851 2014-02-19 Tom Tromey <tromey@redhat.com>
6853 * target-delegates.c: Rebuild.
6854 * target.c (update_current_target): Don't inherit or default
6855 to_get_ada_task_ptid.
6856 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6857 TARGET_DEFAULT_FUNC.
6859 2014-02-19 Tom Tromey <tromey@redhat.com>
6861 * target-delegates.c: Rebuild.
6862 * target.c (update_current_target): Don't inherit or default
6863 to_thread_architecture.
6864 * target.h (struct target_ops) <to_thread_architecture>: Use
6865 TARGET_DEFAULT_FUNC.
6867 2014-02-19 Tom Tromey <tromey@redhat.com>
6869 * target-delegates.c: Rebuild.
6870 * target.c (update_current_target): Don't inherit or default
6871 to_execution_direction.
6872 * target.h (struct target_ops) <to_execution_direction>: Use
6873 TARGET_DEFAULT_FUNC.
6875 2014-02-19 Tom Tromey <tromey@redhat.com>
6877 * target-delegates.c: Rebuild.
6878 * target.c (update_current_target): Don't inherit or default
6879 to_can_execute_reverse.
6880 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6881 TARGET_DEFAULT_RETURN.
6882 (target_can_execute_reverse): Unconditionally delegate.
6884 2014-02-19 Tom Tromey <tromey@redhat.com>
6886 * target-delegates.c: Rebuild.
6887 * target.c (update_current_target): Don't inherit or default
6889 (dummy_goto_bookmark): Remove.
6890 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6891 * target.h (struct target_ops) <to_goto_bookmark>: Use
6892 TARGET_DEFAULT_NORETURN.
6894 2014-02-19 Tom Tromey <tromey@redhat.com>
6896 * target-delegates.c: Rebuild.
6897 * target.c (update_current_target): Don't inherit or default
6899 (dummy_get_bookmark): Remove.
6900 (init_dummy_target): Don't inherit or default to_get_bookmark.
6901 * target.h (struct target_ops) <to_get_bookmark>: Use
6902 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
6909 (init_dummy_target): Don't initialize to_make_corefile_notes.
6910 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6911 TARGET_DEFAULT_FUNC.
6913 2014-02-19 Tom Tromey <tromey@redhat.com>
6915 * target-delegates.c: Rebuild.
6916 * target.c (update_current_target): Don't inherit or default
6917 to_find_memory_regions.
6918 (init_dummy_target): Don't initialize to_find_memory_regions.
6919 * target.h (struct target_ops) <to_find_memory_regions>: Use
6920 TARGET_DEFAULT_FUNC.
6922 2014-02-19 Tom Tromey <tromey@redhat.com>
6924 * target-delegates.c: Rebuild.
6925 * target.c (update_current_target): Don't inherit or default
6927 * target.h (struct target_ops) <to_log_command>: Use
6928 TARGET_DEFAULT_IGNORE.
6929 (target_log_command): Unconditionally delegate.
6931 2014-02-19 Tom Tromey <tromey@redhat.com>
6933 * target-delegates.c: Rebuild.
6934 * target.c (update_current_target): Don't inherit or default
6935 to_pid_to_exec_file.
6936 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6937 TARGET_DEFAULT_RETURN.
6939 2014-02-19 Tom Tromey <tromey@redhat.com>
6941 * target-delegates.c: Rebuild.
6942 * target.c (update_current_target): Don't inherit or default
6944 (target_thread_name): Unconditionally delegate.
6945 * target.h (struct target_ops) <to_thread_name>: Use
6946 TARGET_DEFAULT_RETURN.
6948 2014-02-19 Tom Tromey <tromey@redhat.com>
6950 * target-delegates.c: Rebuild.
6951 * target.c (update_current_target): Don't inherit or default
6952 to_extra_thread_info.
6953 * target.h (struct target_ops) <to_extra_thread_info>: Use
6954 TARGET_DEFAULT_RETURN.
6956 2014-02-19 Tom Tromey <tromey@redhat.com>
6958 * target-delegates.c: Rebuild.
6959 * target.c (update_current_target): Don't inherit or default
6961 * target.h (struct target_ops) <to_has_exited>: Use
6962 TARGET_DEFAULT_RETURN..
6964 2014-02-19 Tom Tromey <tromey@redhat.com>
6966 * target-delegates.c: Rebuild.
6967 * target.c (update_current_target): Don't inherit or default
6968 to_set_syscall_catchpoint.
6969 (return_one): Remove.
6970 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6971 TARGET_DEFAULT_RETURN.
6973 2014-02-19 Tom Tromey <tromey@redhat.com>
6975 * target-delegates.c: Rebuild.
6976 * target.c (update_current_target): Don't inherit or default
6977 to_insert_exec_catchpoint.
6978 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6979 TARGET_DEFAULT_RETURN.
6981 2014-01-08 Tom Tromey <tromey@redhat.com>
6983 * target-delegates.c: Rebuild.
6984 * target.c (update_current_target): Don't inherit or default
6985 to_insert_exec_catchpoint.
6986 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6987 TARGET_DEFAULT_RETURN.
6989 2014-02-19 Tom Tromey <tromey@redhat.com>
6991 * target-delegates.c: Rebuild.
6992 * target.c (update_current_target): Don't inherit or default
6993 to_remove_vfork_catchpoint.
6994 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6995 TARGET_DEFAULT_RETURN.
6997 2014-02-19 Tom Tromey <tromey@redhat.com>
6999 * target-delegates.c: Rebuild.
7000 * target.c (update_current_target): Don't inherit or default
7001 to_insert_vfork_catchpoint.
7002 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7003 TARGET_DEFAULT_RETURN.
7005 2014-02-19 Tom Tromey <tromey@redhat.com>
7007 * target-delegates.c: Rebuild.
7008 * target.c (update_current_target): Don't inherit or default
7009 to_remove_fork_catchpoint.
7010 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7011 TARGET_DEFAULT_RETURN.
7013 2014-02-19 Tom Tromey <tromey@redhat.com>
7015 * target-delegates.c: Rebuild.
7016 * target.c (update_current_target): Don't inherit or default
7017 to_insert_fork_catchpoint.
7018 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7019 TARGET_DEFAULT_RETURN.
7021 2014-02-19 Tom Tromey <tromey@redhat.com>
7023 * target-delegates.c: Rebuild.
7024 * target.c (update_current_target): Don't inherit or default
7025 to_post_startup_inferior.
7026 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7027 TARGET_DEFAULT_IGNORE.
7029 2014-02-19 Tom Tromey <tromey@redhat.com>
7031 * target-delegates.c: Rebuild.
7032 * target.c (update_current_target): Don't inherit or default
7034 * target.h (struct target_ops) <to_load>: Use
7035 TARGET_DEFAULT_NORETURN.
7037 2014-02-19 Tom Tromey <tromey@redhat.com>
7039 * target-delegates.c: Rebuild.
7040 * target.c (update_current_target): Don't inherit or default
7042 * target.h (struct target_ops) <to_terminal_info>: Use
7043 TARGET_DEFAULT_FUNC.
7045 2014-02-19 Tom Tromey <tromey@redhat.com>
7047 * target-delegates.c: Rebuild.
7048 * target.c (update_current_target): Don't inherit or default
7049 to_terminal_save_ours.
7050 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7051 TARGET_DEFAULT_IGNORE.
7053 2014-02-19 Tom Tromey <tromey@redhat.com>
7055 * target-delegates.c: Rebuild.
7056 * target.c (update_current_target): Don't inherit or default
7058 * target.h (struct target_ops) <to_terminal_ours>: Use
7059 TARGET_DEFAULT_IGNORE.
7061 2014-02-19 Tom Tromey <tromey@redhat.com>
7063 * target-delegates.c: Rebuild.
7064 * target.c (update_current_target): Don't inherit or default
7065 to_terminal_ours_for_output.
7066 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7067 TARGET_DEFAULT_IGNORE.
7069 2014-02-19 Tom Tromey <tromey@redhat.com>
7071 * target-delegates.c: Rebuild.
7072 * target.c (update_current_target): Don't inherit or default
7073 to_terminal_inferior.
7074 * target.h (struct target_ops) <to_terminal_inferior>: Use
7075 TARGET_DEFAULT_IGNORE.
7077 2014-02-19 Tom Tromey <tromey@redhat.com>
7079 * target-delegates.c: Rebuild.
7080 * target.c (update_current_target): Don't inherit or default
7082 * target.h (struct target_ops) <to_terminal_init>: Use
7083 TARGET_DEFAULT_IGNORE.
7085 2014-02-19 Tom Tromey <tromey@redhat.com>
7087 * target-delegates.c: Rebuild.
7088 * target.c (update_current_target): Don't inherit or default
7089 to_can_accel_watchpoint_condition.
7090 * target.h (struct target_ops)
7091 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7093 2014-02-19 Tom Tromey <tromey@redhat.com>
7095 * target-delegates.c: Rebuild.
7096 * target.c (update_current_target): Don't inherit or default
7097 to_region_ok_for_hw_watchpoint.
7098 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7099 Use TARGET_DEFAULT_FUNC.
7101 2014-02-19 Tom Tromey <tromey@redhat.com>
7103 * target-delegates.c: Rebuild.
7104 * target.c (update_current_target): Don't inherit or default
7105 to_watchpoint_addr_within_range.
7106 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7107 Use TARGET_DEFAULT_FUNC.
7109 2014-02-19 Tom Tromey <tromey@redhat.com>
7111 * target-delegates.c: Rebuild.
7112 * target.c (update_current_target): Don't inherit or default
7113 to_remove_watchpoint.
7114 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7115 TARGET_DEFAULT_NORETURN.
7117 2014-02-19 Tom Tromey <tromey@redhat.com>
7119 * target-delegates.c: Rebuild.
7120 * target.c (update_current_target): Don't inherit or default
7121 to_insert_watchpoint.
7122 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7123 TARGET_DEFAULT_RETURN.
7125 2014-02-19 Tom Tromey <tromey@redhat.com>
7127 * target-delegates.c: Rebuild.
7128 * target.c (update_current_target): Don't inherit or default
7129 to_remove_hw_breakpoint.
7130 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7131 TARGET_DEFAULT_RETURN.
7133 2014-02-19 Tom Tromey <tromey@redhat.com>
7135 * target-delegates.c: Rebuild.
7136 * target.c (update_current_target): Don't inherit or default
7137 to_insert_hw_breakpoint.
7138 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7139 TARGET_DEFAULT_RETURN.
7141 2014-02-19 Tom Tromey <tromey@redhat.com>
7143 * target-delegates.c: Rebuild.
7144 * target.c (update_current_target): Don't inherit or default
7145 to_can_use_hw_breakpoint.
7146 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7147 TARGET_DEFAULT_RETURN.
7149 2014-02-19 Tom Tromey <tromey@redhat.com>
7151 * target-delegates.c: Rebuild.
7152 * target.c (update_current_target): Don't inherit or default
7154 * target.h (struct target_ops) <to_files_info>: Use
7155 TARGET_DEFAULT_IGNORE.
7157 2014-02-19 Tom Tromey <tromey@redhat.com>
7159 * target-delegates.c: Rebuild.
7160 * target.c (update_current_target): Don't inherit or default
7162 * target.h (struct target_ops) <to_store>: Use
7163 TARGET_DEFAULT_NORETURN.
7165 2014-02-19 Tom Tromey <tromey@redhat.com>
7167 * target-delegates.c: Rebuild.
7168 * target.c (update_current_target): Don't inherit or default
7170 * target.h (struct target_ops) <to_post_attach>: Use
7171 TARGET_DEFAULT_IGNORE.
7173 2014-02-19 Tom Tromey <tromey@redhat.com>
7175 * target-delegates.c: Rebuild.
7176 * target.c (update_current_target): Don't inherit or default
7178 (default_rcmd): New function.
7179 (do_monitor_command): Unconditionally delegate.
7180 * target.h (struct target_ops) <to_rmcd>: Use
7181 TARGET_DEFAULT_FUNC.
7183 2014-02-19 Tom Tromey <tromey@redhat.com>
7185 * target-delegates.c: Rebuild.
7186 * target.c (init_dummy_target): Don't initialize to_attach.
7187 (target_attach): Unconditionally delegate.
7188 * target.h (struct target_ops) <to_attach>: Use
7189 TARGET_DEFAULT_FUNC.
7191 2014-02-19 Tom Tromey <tromey@redhat.com>
7193 * target-delegates.c: Rebuild.
7194 * target.c (target_detach): Unconditionally delegate.
7195 (init_dummy_target): Don't initialize to_detach.
7196 * target.h (struct target_ops) <to_detach>: Use
7197 TARGET_DEFAULT_IGNORE.
7199 2014-02-19 Tom Tromey <tromey@redhat.com>
7201 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7203 (target_augmented_libraries_svr4_read): Add argument.
7204 * target.c (update_current_target): Update.
7205 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7208 2014-02-19 Tom Tromey <tromey@redhat.com>
7210 * target.h (struct target_ops) <to_call_history_range>: Add
7212 * target.c (target_call_history_range): Add argument.
7213 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7215 (record_btrace_call_history_from): Update.
7217 2014-02-19 Tom Tromey <tromey@redhat.com>
7219 * target.h (struct target_ops) <to_call_history_from>: Add
7221 * target.c (target_call_history_from): Add argument.
7222 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7225 2014-02-19 Tom Tromey <tromey@redhat.com>
7227 * target.h (struct target_ops) <to_call_history>: Add argument.
7228 * target.c (target_call_history): Add argument.
7229 * record-btrace.c (record_btrace_call_history): Add 'self'
7232 2014-02-19 Tom Tromey <tromey@redhat.com>
7234 * target.h (struct target_ops) <to_insn_history_range>: Add
7236 * target.c (target_insn_history_range): Add argument.
7237 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7239 (record_btrace_insn_history_from): Update.
7241 2014-02-19 Tom Tromey <tromey@redhat.com>
7243 * target.h (struct target_ops) <to_insn_history_from>: Add
7245 * target.c (target_insn_history_from): Add argument.
7246 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7249 2014-02-19 Tom Tromey <tromey@redhat.com>
7251 * target.h (struct target_ops) <to_insn_history>: Add argument.
7252 * target.c (target_insn_history): Add argument.
7253 * record-btrace.c (record_btrace_insn_history): Add 'self'
7256 2014-02-19 Tom Tromey <tromey@redhat.com>
7258 * target.h (struct target_ops) <to_goto_record>: Add argument.
7259 * target.c (target_goto_record): Add argument.
7260 * record-full.c (record_full_goto): Add 'self' argument.
7261 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7263 2014-02-19 Tom Tromey <tromey@redhat.com>
7265 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7266 * target.c (target_goto_record_end): Add argument.
7267 * record-full.c (record_full_goto_end): Add 'self' argument.
7268 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7270 2014-02-19 Tom Tromey <tromey@redhat.com>
7272 * target.h (struct target_ops) <to_goto_record_begin>: Add
7274 * target.c (target_goto_record_begin): Add argument.
7275 * record-full.c (record_full_goto_begin): Add 'self' argument.
7276 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7279 2014-02-19 Tom Tromey <tromey@redhat.com>
7281 * target.h (struct target_ops) <to_record_is_replaying>: Add
7283 * target.c (target_record_is_replaying): Add argument.
7284 * record-full.c (record_full_is_replaying): Add 'self' argument.
7285 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7287 (record_btrace_xfer_partial, record_btrace_store_registers)
7288 (record_btrace_prepare_to_store, record_btrace_resume)
7289 (record_btrace_wait, record_btrace_decr_pc_after_break)
7290 (record_btrace_find_new_threads, record_btrace_thread_alive):
7293 2014-02-19 Tom Tromey <tromey@redhat.com>
7295 * target.h (struct target_ops) <to_delete_record>: Add argument.
7296 * target.c (target_delete_record): Add argument.
7297 * record-full.c (record_full_delete): Add 'self' argument.
7299 2014-02-19 Tom Tromey <tromey@redhat.com>
7301 * target.h (struct target_ops) <to_save_record>: Add argument.
7302 * target.c (target_save_record): Add argument.
7303 * record-full.c (record_full_save): Add 'self' argument.
7304 (record_full_save): Add 'self' argument.
7306 2014-02-19 Tom Tromey <tromey@redhat.com>
7308 * target.h (struct target_ops) <to_info_record>: Add argument.
7309 * target.c (target_info_record): Add argument.
7310 * record.c (info_record_command): Add argument.
7311 * record-full.c (record_full_info): Add 'self' argument.
7312 * record-btrace.c (record_btrace_info): Add 'self' argument.
7314 2014-02-19 Tom Tromey <tromey@redhat.com>
7316 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7317 * target.c (target_stop_recording): Add argument.
7318 * record.c (record_stop): Add argument.
7319 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7322 2014-02-19 Tom Tromey <tromey@redhat.com>
7324 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7325 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7326 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7328 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7329 (_initialize_amd64_linux_nat): Use it.
7330 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7331 (_initialize_i386_linux_nat): Use it.
7333 2014-02-19 Tom Tromey <tromey@redhat.com>
7335 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7336 * target.c (target_teardown_btrace): Add argument.
7337 * remote.c (remote_teardown_btrace): Add 'self' argument.
7338 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7340 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7343 2014-02-19 Tom Tromey <tromey@redhat.com>
7345 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7346 * target.c (target_disable_btrace): Add argument.
7347 * remote.c (remote_disable_btrace): Add 'self' argument.
7348 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7350 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7353 2014-02-19 Tom Tromey <tromey@redhat.com>
7355 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7356 * target.c (target_enable_btrace): Add argument.
7357 * remote.c (remote_enable_btrace): Add 'self' argument.
7358 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7360 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7363 2014-02-19 Tom Tromey <tromey@redhat.com>
7365 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7366 (target_can_use_agent): Add argument.
7367 * target.c (update_current_target): Update.
7368 * remote.c (remote_can_use_agent): Add 'self' argument.
7369 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7371 2014-02-19 Tom Tromey <tromey@redhat.com>
7373 * target.h (struct target_ops) <to_use_agent>: Add argument.
7374 (target_use_agent): Add argument.
7375 * target.c (update_current_target): Update.
7376 * remote.c (remote_use_agent): Add 'self' argument.
7377 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7379 2014-02-19 Tom Tromey <tromey@redhat.com>
7381 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7382 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7383 (target_traceframe_info): Add argument.
7384 * target.c (update_current_target): Update.
7385 * remote.c (remote_traceframe_info): Add 'self' argument.
7386 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7388 2014-02-19 Tom Tromey <tromey@redhat.com>
7390 * target.h (target_static_tracepoint_markers_by_strid): Add
7392 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7394 * target.c (update_current_target): Update.
7395 * remote.c (struct target_ops)
7396 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7397 * linux-nat.c (struct target_ops)
7398 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7400 2014-02-19 Tom Tromey <tromey@redhat.com>
7402 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7404 (target_static_tracepoint_marker_at): Add argument.
7405 * target.c (update_current_target): Update.
7406 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7409 2014-02-19 Tom Tromey <tromey@redhat.com>
7411 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7412 (target_set_permissions): Add argument.
7413 * target.c (update_current_target): Update.
7414 * remote.c (remote_set_permissions): Add 'self' argument.
7415 (remote_start_remote): Update.
7417 2014-02-19 Tom Tromey <tromey@redhat.com>
7419 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7420 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7421 (target_get_tib_address): Add argument.
7422 * target.c (update_current_target): Update.
7423 * remote.c (remote_get_tib_address): Add 'self' argument.
7425 2014-02-19 Tom Tromey <tromey@redhat.com>
7427 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7428 (target_set_trace_notes): Add argument.
7429 * target.c (update_current_target): Update.
7430 * remote.c (remote_set_trace_notes): Add 'self' argument.
7432 2014-02-19 Tom Tromey <tromey@redhat.com>
7434 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7436 (target_set_trace_buffer_size): Add argument.
7437 * target.c (update_current_target): Update.
7438 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7440 2014-02-19 Tom Tromey <tromey@redhat.com>
7442 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7444 (target_set_circular_trace_buffer): Add argument.
7445 * target.c (update_current_target): Update.
7446 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7449 2014-02-19 Tom Tromey <tromey@redhat.com>
7451 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7453 (target_set_disconnected_tracing): Add argument.
7454 * target.c (update_current_target): Update.
7455 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7457 2014-02-19 Tom Tromey <tromey@redhat.com>
7459 * target.h (struct target_ops)
7460 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7461 (target_get_min_fast_tracepoint_insn_len): Add argument.
7462 * target.c (update_current_target): Update.
7463 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7466 2014-02-19 Tom Tromey <tromey@redhat.com>
7468 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7470 (target_get_raw_trace_data): Add argument.
7471 * target.c (update_current_target): Update.
7472 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7474 2014-02-19 Tom Tromey <tromey@redhat.com>
7476 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7478 (target_upload_trace_state_variables): Add argument.
7479 * target.c (update_current_target): Update.
7480 * remote.c (remote_upload_trace_state_variables): Add 'self'
7482 (remote_start_remote): Update.
7484 2014-02-19 Tom Tromey <tromey@redhat.com>
7486 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7488 (target_upload_tracepoints): Add argument.
7489 * target.c (update_current_target): Update.
7490 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7491 (remote_start_remote): Update.
7493 2014-02-19 Tom Tromey <tromey@redhat.com>
7495 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7496 (target_save_trace_data): Add argument.
7497 * target.c (update_current_target): Update.
7498 * remote.c (remote_save_trace_data): Add 'self' argument.
7500 2014-02-19 Tom Tromey <tromey@redhat.com>
7502 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7504 * target.h (struct target_ops)
7505 <to_get_trace_state_variable_value>: Add argument.
7506 (target_get_trace_state_variable_value): Add argument.
7507 * target.c (update_current_target): Update.
7508 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7510 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7512 2014-02-19 Tom Tromey <tromey@redhat.com>
7514 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7515 * target.h (struct target_ops) <to_trace_find>: Add argument.
7516 (target_trace_find): Add argument.
7517 * target.c (update_current_target): Update.
7518 * remote.c (remote_trace_find): Add 'self' argument.
7519 * ctf.c (ctf_trace_find): Add 'self' argument.
7521 2014-02-19 Tom Tromey <tromey@redhat.com>
7523 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7524 (target_trace_stop): Add argument.
7525 * target.c (update_current_target): Update.
7526 * remote.c (remote_trace_stop): Add 'self' argument.
7528 2014-02-19 Tom Tromey <tromey@redhat.com>
7530 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7531 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7533 (target_get_tracepoint_status): Add argument.
7534 * target.c (update_current_target): Update.
7535 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7537 2014-02-19 Tom Tromey <tromey@redhat.com>
7539 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7540 * target.h (struct target_ops) <to_get_trace_status>: Add
7542 (target_get_trace_status): Add argument.
7543 * target.c (update_current_target): Update.
7544 * remote.c (remote_get_trace_status): Add 'self' argument.
7545 (remote_start_remote, remote_can_download_tracepoint): Update.
7546 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7548 2014-02-19 Tom Tromey <tromey@redhat.com>
7550 * target.h (struct target_ops) <to_trace_start>: Add argument.
7551 (target_trace_start): Add argument.
7552 * target.c (update_current_target): Update.
7553 * remote.c (remote_trace_start): Add 'self' argument.
7555 2014-02-19 Tom Tromey <tromey@redhat.com>
7557 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7559 (target_trace_set_readonly_regions): Add argument.
7560 * target.c (update_current_target): Update.
7561 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7564 2014-02-19 Tom Tromey <tromey@redhat.com>
7566 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7568 (target_disable_tracepoint): Add argument.
7569 * target.c (update_current_target): Update.
7570 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7572 2014-02-19 Tom Tromey <tromey@redhat.com>
7574 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7576 (target_enable_tracepoint): Add argument.
7577 * target.c (update_current_target): Update.
7578 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7580 2014-02-19 Tom Tromey <tromey@redhat.com>
7582 * target.h (struct target_ops) <to_download_trace_state_variable>:
7584 (target_download_trace_state_variable): Add argument.
7585 * target.c (update_current_target): Update.
7586 * remote.c (remote_download_trace_state_variable): Add 'self'
7589 2014-02-19 Tom Tromey <tromey@redhat.com>
7591 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7593 (target_can_download_tracepoint): Add argument.
7594 * target.c (update_current_target): Update.
7595 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7597 2014-02-19 Tom Tromey <tromey@redhat.com>
7599 * target.h (struct target_ops) <to_download_tracepoint>: Add
7601 (target_download_tracepoint): Add argument.
7602 * target.c (update_current_target): Update.
7603 * remote.c (remote_download_tracepoint): Add 'self' argument.
7605 2014-02-19 Tom Tromey <tromey@redhat.com>
7607 * target.h (struct target_ops) <to_trace_init>: Add argument.
7608 (target_trace_init): Add argument.
7609 * target.c (update_current_target): Update.
7610 * remote.c (remote_trace_init): Add 'self' argument.
7612 2014-02-19 Tom Tromey <tromey@redhat.com>
7614 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7615 * target.c (target_fileio_readlink): Add argument.
7616 * remote.c (remote_hostio_readlink): Add 'self' argument.
7617 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7619 2014-02-19 Tom Tromey <tromey@redhat.com>
7621 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7622 * target.c (target_fileio_unlink): Add argument.
7623 * remote.c (remote_hostio_unlink): Add 'self' argument.
7624 (remote_file_delete): Update.
7625 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7627 2014-02-19 Tom Tromey <tromey@redhat.com>
7629 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7630 * target.c (target_fileio_close): Add argument.
7631 * remote.c (remote_hostio_close): Add 'self' argument.
7632 (remote_hostio_close_cleanup): Update.
7633 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7635 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7637 2014-02-19 Tom Tromey <tromey@redhat.com>
7639 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7640 * target.c (target_fileio_pread): Add argument.
7641 * remote.c (remote_hostio_pread): Add 'self' argument.
7642 (remote_bfd_iovec_pread, remote_file_get): Update.
7643 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7645 2014-02-19 Tom Tromey <tromey@redhat.com>
7647 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7648 * target.c (target_fileio_pwrite): Add argument.
7649 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7650 (remote_file_put): Update.
7651 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7653 2014-02-19 Tom Tromey <tromey@redhat.com>
7655 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7656 * target.c (target_fileio_open): Add argument.
7657 * remote.c (remote_hostio_open): Add 'self' argument.
7658 (remote_bfd_iovec_open): Add 'self' argument.
7659 (remote_file_put): Add 'self' argument.
7660 (remote_file_get): Add 'self' argument.
7661 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7663 2014-02-19 Tom Tromey <tromey@redhat.com>
7665 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7667 (target_can_run_breakpoint_commands): Add argument.
7668 * target.c (update_current_target): Update.
7669 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7671 (remote_insert_breakpoint): Add 'self' argument.
7672 (remote_insert_hw_breakpoint): Add 'self' argument.
7673 (remote_can_run_breakpoint_commands): Add 'self' argument.
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7677 * target.h (struct target_ops)
7678 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7679 (target_supports_evaluation_of_breakpoint_conditions): Add
7681 * target.c (update_current_target): Update.
7682 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7684 (remote_insert_breakpoint): Add 'self' argument.
7685 (remote_insert_hw_breakpoint): Add 'self' argument.
7686 (remote_supports_cond_breakpoints): Add 'self' argument.
7688 2014-02-19 Tom Tromey <tromey@redhat.com>
7690 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7692 (target_supports_string_tracing): Add argument.
7693 * target.c (update_current_target): Update.
7694 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7696 2014-02-19 Tom Tromey <tromey@redhat.com>
7698 * target.h (struct target_ops)
7699 <to_supports_disable_randomization>: Add argument.
7700 * target.c (find_default_supports_disable_randomization): Add
7702 (target_supports_disable_randomization): Add argument.
7703 (find_default_supports_disable_randomization): Add 'self'
7705 * remote.c (extended_remote_supports_disable_randomization): Add
7707 (remote_supports_disable_randomization): Add 'self' argument.
7708 (extended_remote_create_inferior): Update.
7709 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7712 2014-02-19 Tom Tromey <tromey@redhat.com>
7714 * target.h (struct target_ops)
7715 <to_supports_enable_disable_tracepoint>: Add argument.
7716 (target_supports_enable_disable_tracepoint): Add argument.
7717 * target.c (update_current_target): Update.
7718 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7721 2014-02-19 Tom Tromey <tromey@redhat.com>
7723 * target.h (struct target_ops) <to_supports_multi_process>: Add
7725 (target_supports_multi_process): Add argument.
7726 * target.c (update_current_target): Update.
7727 * remote.c (remote_supports_multi_process): Add 'self' argument.
7728 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7730 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7733 2014-02-19 Tom Tromey <tromey@redhat.com>
7735 * target.h (struct target_ops) <to_execution_direction>: Add
7737 (target_execution_direction): Add argument.
7738 * target.c (default_execution_direction): Add 'self' argument.
7739 * record-full.c (record_full_execution_direction): Add 'self'
7742 2014-02-19 Tom Tromey <tromey@redhat.com>
7744 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7746 (target_can_execute_reverse): Add argument.
7747 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7748 * record-full.c (record_full_can_execute_reverse): Add 'self'
7750 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7753 2014-02-19 Tom Tromey <tromey@redhat.com>
7755 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7756 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7758 (target_get_ada_task_ptid): Add argument.
7759 * target.c (update_current_target): Update.
7760 (default_get_ada_task_ptid): Add 'self' argument.
7761 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7762 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7763 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7765 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7767 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7769 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7771 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7772 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7775 2014-02-19 Tom Tromey <tromey@redhat.com>
7777 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7778 (target_goto_bookmark): Add argument.
7779 * target.c (dummy_goto_bookmark): Add 'self' argument.
7780 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7782 2014-02-19 Tom Tromey <tromey@redhat.com>
7784 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7785 (target_get_bookmark): Add argument.
7786 * target.c (dummy_get_bookmark): Add 'self' argument.
7787 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7789 2014-02-19 Tom Tromey <tromey@redhat.com>
7791 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7793 (target_make_corefile_notes): Add argument.
7794 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7795 * procfs.c (procfs_make_note_section): Add 'self' argument.
7796 (procfs_make_note_section): Add 'self' argument.
7797 (procfs_make_note_section): Add 'self' argument.
7798 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7800 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7801 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7802 * exec.c (exec_make_note_section): Add 'self' argument.
7803 (exec_make_note_section): Add 'self' argument.
7805 2014-02-19 Tom Tromey <tromey@redhat.com>
7807 * target.h (struct target_ops) <to_find_memory_regions>: Add
7809 (target_find_memory_regions): Add argument.
7810 * target.c (dummy_find_memory_regions): Add 'self' argument.
7811 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7812 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7813 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7814 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7815 * exec. (exec_do_find_memory_regions): New global.
7816 (exec_set_find_memory_regions): Rewrite.
7817 (exec_find_memory_regions): New function.
7818 (init_exec_ops): Use exec_find_memory_regions.
7820 2014-02-19 Tom Tromey <tromey@redhat.com>
7822 * target.h (struct target_ops) <to_supports_non_stop>: Add
7824 * target.c (find_default_supports_non_stop): Add argument.
7825 (target_supports_non_stop): Add argument.
7826 (find_default_supports_non_stop): Add 'self' argument.
7827 * remote.c (remote_supports_non_stop): Add 'self' argument.
7828 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7830 2014-02-19 Tom Tromey <tromey@redhat.com>
7832 * target.h (struct target_ops) <to_log_command>: Add argument.
7833 (target_log_command): Add argument.
7834 * serial.h (serial_log_command): Add 'self' argument.
7835 * serial.c (serial_log_command): Add 'self' argument.
7837 2014-02-19 Tom Tromey <tromey@redhat.com>
7839 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7840 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7842 (target_pid_to_exec_file): Add argument.
7843 * target.c (debug_to_pid_to_exec_file): Add argument.
7844 (update_current_target): Update.
7845 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7846 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7847 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7848 (linux_handle_extended_wait): Update.
7849 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7850 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7851 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7852 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7854 2014-02-19 Tom Tromey <tromey@redhat.com>
7856 * target.h (struct target_ops) <to_rcmd>: Add argument.
7857 (target_rcmd): Add argument.
7858 * target.c (debug_to_rcmd): Add argument.
7859 (update_current_target, do_monitor_command): Update.
7860 * remote.c (remote_rcmd): Add 'self' argument.
7861 * monitor.c (monitor_rcmd): Add 'self' argument.
7863 2014-02-19 Tom Tromey <tromey@redhat.com>
7865 * windows-nat.c (windows_stop): Add 'self' argument.
7866 * target.h (struct target_ops) <to_stop>: Add argument.
7867 * target.c (target_stop): Add argument.
7868 (debug_to_stop): Add argument.
7869 (update_current_target): Update.
7870 * remote.c (remote_stop): Add 'self' argument.
7871 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7872 (gdbsim_cntrl_c): Update.
7873 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7874 * procfs.c (procfs_stop): Add 'self' argument.
7875 * nto-procfs.c (procfs_stop): Add 'self' argument.
7876 * monitor.c (monitor_stop): Add 'self' argument.
7877 (monitor_open): Update.
7878 * linux-nat.c (linux_nat_stop): Add argument.
7879 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7880 * gnu-nat.c (gnu_stop): Add 'self' argument.
7881 * darwin-nat.c (darwin_stop): Add 'self' argument.
7883 2014-02-19 Tom Tromey <tromey@redhat.com>
7885 * target.h (struct target_ops) <to_thread_name>: Add argument.
7886 * target.c (target_thread_name): Add argument.
7887 (update_current_target): Update.
7888 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7890 2014-02-19 Tom Tromey <tromey@redhat.com>
7892 * target.h (struct target_ops) <to_extra_thread_info>: Add
7894 (target_extra_thread_info): Add argument.
7895 * target.c (update_current_target): Update.
7896 * remote.c (remote_threads_extra_info): Add 'self' argument.
7897 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7899 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7900 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7901 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7903 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7905 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7907 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7910 2014-02-19 Tom Tromey <tromey@redhat.com>
7912 * target.h (struct target_ops) <to_program_signals>: Add argument.
7913 * target.c (target_program_signals): Add argument.
7914 * remote.c (remote_program_signals): Add 'self' argument.
7916 2014-02-19 Tom Tromey <tromey@redhat.com>
7918 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7919 * target.c (target_pass_signals): Add argument.
7920 * remote.c (remote_pass_signals): Add 'self' argument.
7921 (remote_start_remote): Update.
7922 * procfs.c (procfs_pass_signals): Add 'self' argument.
7923 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7924 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7925 (linux_nat_create_inferior, linux_nat_attach): Update.
7927 2014-02-19 Tom Tromey <tromey@redhat.com>
7929 * windows-nat.c (windows_can_run): Add 'self' argument.
7930 * target.h (struct target_ops) <to_can_run>: Add argument.
7931 (target_can_run): Add argument.
7932 * target.c (debug_to_can_run): Add argument.
7933 (update_current_target): Update.
7934 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7935 * inf-child.c (inf_child_can_run): Add 'self' argument.
7936 * go32-nat.c (go32_can_run): Add 'self' argument.
7938 2014-02-19 Tom Tromey <tromey@redhat.com>
7940 * target.h (struct target_ops) <to_has_exited>: Add argument.
7941 (target_has_exited): Add argument.
7942 * target.c (debug_to_has_exited): Add argument.
7943 (update_current_target): Update.
7945 2014-02-19 Tom Tromey <tromey@redhat.com>
7947 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7949 (target_set_syscall_catchpoint): Add argument.
7950 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7952 * target.c (update_current_target): Update.
7954 2014-02-19 Tom Tromey <tromey@redhat.com>
7956 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7958 (target_remove_exec_catchpoint): Add argument.
7959 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7960 (update_current_target): Update.
7961 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7964 2014-02-19 Tom Tromey <tromey@redhat.com>
7966 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7968 (target_insert_exec_catchpoint): Add argument.
7969 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7970 (update_current_target): Update.
7971 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7974 2014-02-19 Tom Tromey <tromey@redhat.com>
7976 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7978 (target_remove_vfork_catchpoint): Add argument.
7979 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7980 (update_current_target): Update.
7981 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7984 2014-02-19 Tom Tromey <tromey@redhat.com>
7986 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7988 (target_insert_vfork_catchpoint): Add argument.
7989 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7990 (update_current_target): Update.
7991 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7994 2014-02-19 Tom Tromey <tromey@redhat.com>
7996 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7998 (target_remove_fork_catchpoint): Add argument.
7999 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8000 (update_current_target): Update.
8001 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8004 2014-02-19 Tom Tromey <tromey@redhat.com>
8006 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8008 (target_insert_fork_catchpoint): Add argument.
8009 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8010 (update_current_target): Update.
8011 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8014 2014-02-19 Tom Tromey <tromey@redhat.com>
8016 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8018 (target_post_startup_inferior): Add argument.
8019 * target.c (debug_to_post_startup_inferior): Add argument.
8020 (update_current_target): Update.
8021 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8023 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8025 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8027 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8029 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8031 (super_post_startup_inferior): Likewise.
8032 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8034 (super_post_startup_inferior): Likewise.
8035 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8036 Add 'self' argument.
8037 (super_post_startup_inferior): Likewise.
8039 2014-02-19 Tom Tromey <tromey@redhat.com>
8041 * target.h (struct target_ops) <to_load>: Add argument.
8042 * target.c (target_load): Add argument.
8043 (debug_to_load): Add argument.
8044 (update_current_target): Update.
8045 * remote.c (remote_load): Add 'self' argument.
8046 * remote-sim.c (gdbsim_load): Add 'self' argument.
8047 * remote-mips.c (mips_load): Add 'self' argument.
8048 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8049 * monitor.c (monitor_load): Add 'self' argument.
8050 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8054 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8055 (target_terminal_info): Add argument.
8056 * target.c (debug_to_terminal_info): Add argument.
8057 (default_terminal_info): Likewise.
8058 * inflow.c (child_terminal_info): Add 'self' argument.
8059 * inferior.h (child_terminal_info): Add 'self' argument.
8060 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8062 2014-02-19 Tom Tromey <tromey@redhat.com>
8064 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8066 (target_terminal_save_ours): Add argument.
8067 * target.c (debug_to_terminal_save_ours): Add argument.
8068 (update_current_target): Update.
8069 * inflow.c (terminal_save_ours): Add 'self' argument.
8070 * inferior.h (terminal_save_ours): Add 'self' argument.
8072 2014-02-19 Tom Tromey <tromey@redhat.com>
8074 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8075 (target_terminal_ours): Add argument.
8076 * target.c (debug_to_terminal_ours): Add argument.
8077 (update_current_target): Update.
8078 * remote.c (remote_terminal_ours): Add 'self' argument.
8079 (remote_close): Update.
8080 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8081 * inflow.c (terminal_ours): Add 'self' argument.
8082 * inferior.h (terminal_ours): Add 'self' argument.
8083 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8085 2014-02-19 Pedro Alves <palves@redhat.com>
8086 Tom Tromey <tromey@redhat.com>
8088 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8090 (target_terminal_ours_for_output): Add argument.
8091 * target.c (debug_to_terminal_ours_for_output): Add argument.
8092 (update_current_target): Update.
8093 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8094 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8095 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8097 2014-02-19 Tom Tromey <tromey@redhat.com>
8099 * target.h (struct target_ops) <to_terminal_inferior>: Add
8101 * target.c (target_terminal_inferior): Add argument.
8102 (update_current_target): Update.
8103 * remote.c (remote_terminal_inferior): Add 'self' argument.
8104 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8105 * inflow.c (terminal_inferior): Add 'self' argument.
8106 * inferior.h (terminal_inferior): Add 'self' argument.
8107 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8108 (go32_terminal_inferior): Add 'self' argument.
8110 2014-02-19 Tom Tromey <tromey@redhat.com>
8112 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8113 (target_terminal_init): Add argument.
8114 * target.c (debug_to_terminal_init): Add argument.
8115 (update_current_target): Update.
8116 * inflow.c (terminal_init_inferior): Add 'self' argument.
8117 * inferior.h (terminal_init_inferior): Add 'self' argument.
8118 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8119 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8123 * target.h (struct target_ops)
8124 <to_can_accel_watchpoint_condition>: Add argument.
8125 (target_can_accel_watchpoint_condition): Add argument.
8126 * target.c (debug_to_can_accel_watchpoint_condition): Add
8128 (update_current_target): Update.
8129 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8132 2014-02-19 Tom Tromey <tromey@redhat.com>
8134 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8136 (target_region_ok_for_hw_watchpoint): Add argument.
8137 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8138 (default_region_ok_for_hw_watchpoint): Add argument.
8139 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8140 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8142 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8144 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8146 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8148 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8150 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8152 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8153 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8155 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8156 Add 'self' argument.
8158 2014-02-19 Tom Tromey <tromey@redhat.com>
8160 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8162 (target_insert_watchpoint): Add argument.
8163 * target.c (debug_to_insert_watchpoint): Add argument.
8164 (update_current_target): Update.
8165 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8166 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8167 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8168 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8169 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8170 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8172 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8173 (procfs_insert_hw_watchpoint): Add 'self' argument.
8174 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8176 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8178 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8180 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8181 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8183 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8186 2014-02-19 Tom Tromey <tromey@redhat.com>
8188 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8190 (target_remove_watchpoint): Add argument.
8191 * target.c (debug_to_remove_watchpoint): Add argument.
8192 (update_current_target): Update.
8193 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8194 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8195 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8196 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8197 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8198 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8200 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8201 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8203 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8205 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8207 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8208 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8210 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8213 2014-02-19 Tom Tromey <tromey@redhat.com>
8215 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8217 (target_remove_hw_breakpoint): Add argument.
8218 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8219 (update_current_target): Update.
8220 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8221 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8223 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8224 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8226 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8229 2014-02-19 Tom Tromey <tromey@redhat.com>
8231 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8233 (target_insert_hw_breakpoint): Add argument.
8234 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8235 (update_current_target): Update.
8236 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8237 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8239 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8240 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8241 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8243 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8246 2014-02-19 Tom Tromey <tromey@redhat.com>
8248 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8250 (target_can_use_hardware_watchpoint): Add argument.
8251 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8252 (update_current_target): Update.
8253 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8255 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8257 * remote.c (remote_check_watch_resources): Add 'self' argument.
8258 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8259 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8261 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8262 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8264 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8266 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8268 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8270 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8272 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8274 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8275 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8277 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8280 2014-02-19 Tom Tromey <tromey@redhat.com>
8282 * target.h (struct target_ops) <to_post_attach>: Add argument.
8283 (target_post_attach): Add argument.
8284 * target.c (debug_to_post_attach): Add argument.
8285 (update_current_target): Update.
8286 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8287 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8288 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8289 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8290 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8292 2014-02-19 Tom Tromey <tromey@redhat.com>
8294 * windows-nat.c (windows_close): Add 'self' argument.
8295 * tracepoint.c (tfile_close): Add 'self' argument.
8296 * target.h (struct target_ops) <to_close>: Add argument.
8297 * target.c (target_close): Add argument.
8298 (update_current_target): Update.
8299 * remote.c (remote_close): Add 'self' argument.
8300 * remote-sim.c (gdbsim_close): Add 'self' argument.
8301 * remote-mips.c (mips_close): Add 'self' argument.
8302 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8303 * record-full.c (record_full_close): Add 'self' argument.
8304 * record-btrace.c (record_btrace_close): Add 'self' argument.
8305 * monitor.h (monitor_close): Add 'self' argument.
8306 * monitor.c (monitor_close): Add 'self' argument.
8307 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8308 * linux-nat.c (linux_nat_close): Add argument.
8309 * go32-nat.c (go32_close): Add 'self' argument.
8310 * exec.c (exec_close_1): Add 'self' argument.
8311 * ctf.c (ctf_close): Add 'self' argument.
8312 * corelow.c (core_close): Add 'self' argument.
8313 (core_close_cleanup): Update.
8314 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8315 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8317 2014-02-19 Tom Tromey <tromey@redhat.com>
8319 * remote.c (remote_load): New function.
8320 (init_remote_ops): Use it.
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8324 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8326 * common/linux-btrace.h (linux_supports_btrace): Update.
8327 * remote.c (remote_supports_btrace): Add "self" argument.
8328 * target-delegates.c: Rebuild.
8329 * target.c (target_supports_btrace): Remove.
8330 * target.h (struct target_ops) <to_supports_btrace>: Add
8331 target_ops argument.
8332 (target_supports_btrace): New define.
8334 2014-02-19 Tom Tromey <tromey@redhat.com>
8336 * record-full.c (record_full_beneath_to_resume_ops)
8337 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8338 (record_full_beneath_to_wait)
8339 (record_full_beneath_to_store_registers_ops)
8340 (record_full_beneath_to_store_registers)
8341 (record_full_beneath_to_xfer_partial_ops)
8342 (record_full_beneath_to_xfer_partial)
8343 (record_full_beneath_to_insert_breakpoint_ops)
8344 (record_full_beneath_to_insert_breakpoint)
8345 (record_full_beneath_to_remove_breakpoint_ops)
8346 (record_full_beneath_to_remove_breakpoint)
8347 (record_full_beneath_to_stopped_by_watchpoint)
8348 (record_full_beneath_to_stopped_data_address)
8349 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8350 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8351 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8352 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8353 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8354 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8355 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8356 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8357 (record_full_resume, record_full_wait_1)
8358 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8359 (record_full_store_registers, record_full_xfer_partial)
8360 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8361 (record_full_async, record_full_core_xfer_partial): Use target
8363 * target-delegates.c: Rebuild.
8364 * target.c (current_xfer_partial): Remove.
8365 (update_current_target): Do not INHERIT or de_fault
8366 to_insert_breakpoint, to_remove_breakpoint,
8367 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8368 to_is_async_p, to_async. Do not set to_xfer_partial field.
8369 (default_xfer_partial): Simplify.
8370 (current_xfer_partial): Remove.
8371 (target_wait, target_resume): Simplify.
8372 (find_default_can_async_p, find_default_is_async_p): Update.
8373 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8374 to_xfer_partial, to_stopped_by_watchpoint,
8375 to_stopped_data_address.
8376 (target_store_registers): Simplify.
8377 (forward_target_remove_breakpoint)
8378 (forward_target_insert_breakpoint): Remove.
8379 (target_remove_breakpoint, target_insert_breakpoint)
8380 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8381 * target.h (struct target_ops) <to_resume, to_wait,
8382 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8383 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8384 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8386 (forward_target_remove_breakpoint)
8387 (forward_target_insert_breakpoint): Remove.
8388 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8390 (record_btrace_insert_breakpoint): Delegate directly.
8392 2014-02-19 Tom Tromey <tromey@redhat.com>
8395 * target-delegates.c: New file.
8396 * target.c: Include target-delegates.c.
8397 (init_dummy_target): Call install_dummy_methods.
8398 (complete_target_initialization): Call install_delegators.
8399 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8400 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8401 * make-target-delegates: New file.
8403 2014-02-19 Tom Tromey <tromey@redhat.com>
8405 * record.c (find_record_target): Use find_target_at.
8406 * target.c (find_target_at): New function.
8407 * target.h (find_target_at): Declare.
8409 2014-02-19 Tom Tromey <tromey@redhat.com>
8411 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8413 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8415 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8416 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8418 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8420 * linux-nat.c (save_sigtrap): Update.
8421 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8422 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8423 (linux_nat_close): Update.
8424 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8426 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8428 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8429 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8430 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8431 (tmp_to_async): Add 'ops' argument.
8432 (record_full_stopped_by_watchpoint, record_full_async)
8433 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8435 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8436 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8437 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8438 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8439 (remote_is_async_p, remote_async): Add 'ops' argument.
8440 (remote_stopped_data_address): Update.
8441 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8442 * target.c (update_current_target)
8443 (find_default_can_async_p, find_default_is_async_p): Update.
8444 (init_dummy_target): Update.
8445 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8446 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8447 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8448 (target_can_async_p, target_is_async_p, target_async)
8449 (target_stopped_by_watchpoint): Update.
8451 2014-02-19 Yao Qi <yao@codesourcery.com>
8454 * gdbarch.sh: Remove startup_gdbarch.
8455 * gdbarch.c: Regenerated.
8456 * gdbarch.h: Likewise.
8458 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8460 * rl78-tdep.c (rl78_g10_register_name): New function.
8461 (rl78_return_value): Add g10 support.
8462 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8465 2014-02-17 Doug Evans <xdje42@gmail.com>
8467 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8468 (SUBDIR_GUILE_SRCS): Ditto.
8469 (scm-gsmob.o): Ditto.
8471 2014-02-17 Yao Qi <yao@codesourcery.com>
8473 * gnu-nat.c (ILL_RPC): Declare defined function.
8475 2014-02-17 Yao Qi <yao@codesourcery.com>
8477 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8478 mach_msg_type_number_t.
8479 (gnu_write_inferior): Likewise.
8481 2014-02-17 Yao Qi <yao@codesourcery.com>
8483 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8485 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8486 (inf_validate_procs, inf_signal): Likewise.
8487 (S_exception_raise_request): Likewise.
8488 (do_mach_notify_dead_name): Likewise.
8489 (steal_exc_port): Likewise.
8490 (gnu_read_inferior): Change 'copy_count''s type to
8491 mach_msg_type_number_t.
8492 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8495 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8497 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8498 flag. Adjust all users; in particular...
8499 (gnu_wait): ..., don't decrement its value in here...
8500 (gnu_create_inferior): ..., and instead set the flag in here,
8501 around the startup_inferior call, and call that one with
8502 START_INFERIOR_TRAPS_EXPECTED.
8504 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8505 (ILL_RPC): ... new macro.
8506 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8507 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8508 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8509 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8510 functions with ILL_RPC macro.
8511 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8512 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8513 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8514 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8515 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8516 (S_proc_getlogin_reply, S_proc_getsid_reply)
8517 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8518 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8519 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8520 (S_proc_getnports_reply, S_proc_is_important_reply)
8521 (S_proc_get_code_reply): New stub functions, generated with
8524 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8525 collected the type check structures.
8527 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8529 2014-02-14 Doug Evans <dje@google.com>
8531 * target.c (target_write_partial): Fix result type.
8533 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8535 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8536 the proper offsets to access fpregset_t.
8538 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8540 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8541 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8542 * h8300-tdep.c (setmachinelist): Remove global.
8543 * hppa-tdep.c (hppa_sigtramp): Remove global.
8544 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8545 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8546 * ravenscar-thread.c (update_target_observer): Remove global.
8547 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8549 2014-02-12 Tom Tromey <tromey@redhat.com>
8551 * common/rsp-low.c: Update comments.
8552 * common/rsp-low.h: Update comments.
8554 2014-02-12 Tom Tromey <tromey@redhat.com>
8556 * common/rsp-low.c (convert_ascii_to_int): Remove.
8557 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8559 2014-02-12 Tom Tromey <tromey@redhat.com>
8561 * common/rsp-low.h (unhexify): Don't declare.
8562 * common/rsp-low.c (unhexify): Remove.
8564 2014-02-12 Tom Tromey <tromey@redhat.com>
8566 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8567 * common/rsp-low.c (convert_int_to_ascii): Remove.
8569 2014-02-12 Tom Tromey <tromey@redhat.com>
8571 * common/rsp-low.h (hexify): Don't declare.
8572 * common/rsp-low.c (hexify): Remove.
8574 2014-02-12 Tom Tromey <tromey@redhat.com>
8576 * common/rsp-low.c (hexify): Never take strlen of argument.
8578 2014-02-12 Tom Tromey <tromey@redhat.com>
8580 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8581 * remote.c (extended_remote_run, remote_rcmd)
8582 (remote_download_trace_state_variable, remote_save_trace_data)
8583 (remote_set_trace_notes): Update.
8584 * tracepoint.c (encode_source_string, tfile_write_status)
8585 (tfile_write_uploaded_tsv): Update.
8587 2014-02-12 Tom Tromey <tromey@redhat.com>
8589 * tracepoint.c: Include rsp-low.h.
8590 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8591 * remote.c: Include rsp-low.h.
8592 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8593 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8594 (remote_unescape_input): Move to common/rsp-low.c.
8595 * common/rsp-low.h: New file.
8596 * common/rsp-low.c: New file.
8597 * Makefile.in (SFILES): Add common/rsp-low.c.
8598 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8599 (COMMON_OBS): Add rsp-low.o.
8600 (rsp-low.o): New target.
8602 2014-02-12 Tom Tromey <tromey@redhat.com>
8604 * utils.h: Include print-utils.h.
8605 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8606 (int_string, core_addr_to_string, core_addr_to_string_nz)
8607 (hex_string, hex_string_custom): Don't declare.
8608 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8609 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8610 (hex_string_custom, int_string, core_addr_to_string)
8611 (core_addr_to_string_nz, host_address_to_string): Move to
8612 common/print-utils.c.
8613 * common/print-utils.h: New file.
8614 * common/print-utils.c: New file
8615 * Makefile.in (SFILES): Add common/print-utils.c.
8616 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8617 (COMMON_OBS): Add print-utils.o.
8618 (print-utils.o): New target.
8620 2014-02-12 Tom Tromey <tromey@redhat.com>
8622 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8624 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8626 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8628 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8630 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8631 if a PT_IO ptrace request returns sucessfully but indicates that 0
8632 bytes were transferred.
8634 2014-02-12 Pedro Alves <palves@redhat.com>
8635 Kevin Buettner <kevinb@redhat.com>
8637 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8638 TYPE_INSTANCE_FLAG_CODE_SPACE.
8640 2014-02-12 Pedro Alves <palves@redhat.com>
8642 * h8300-tdep.c (pseudo_from_raw_register)
8643 (raw_from_pseudo_register): New functions.
8644 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8647 2014-02-12 Pedro Alves <palves@redhat.com>
8649 * h8300-tdep.c (h8300_register_sim_regno): New function.
8650 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8651 gdbarch_register_sim_regno hook.
8653 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8655 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8657 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8659 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8661 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8663 * obsd-tdep.h (obsd_init_abi): New prototype.
8664 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8665 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8666 (obsd_init_abi): New functions.
8667 * i386obsd-tdep.c: Include "obsd-tdep.h".
8668 (i386obsd_init_abi): Call obsd_init_abi.
8669 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8670 (amd64obsd_init_abi): Call obsd_init_abi.
8671 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8672 obsd-tdep.c to gdb_target_obs.
8674 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8676 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8677 double float arguments to 16-byte in the argument slots.
8679 2014-02-11 Doug Evans <xdje42@gmail.com>
8681 * configure.ac: Don't crash if pkg-config is not found and guile
8682 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8684 * configure: Regenerate.
8686 2014-02-11 Yao Qi <yao@codesourcery.com>
8688 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8689 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8690 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8691 * gnu-nat.c (gnu_xfer_memory): Likewise.
8692 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8693 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8694 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8695 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8697 2014-02-11 Yao Qi <yao@codesourcery.com>
8699 * target.h (enum target_xfer_error): Rename to ...
8700 (enum target_xfer_status): ... it. New. All users updated.
8701 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8703 (TARGET_XFER_STATUS_ERROR_P): New macro.
8704 (target_xfer_error_to_string): Remove declaration.
8705 (target_xfer_status_to_string): Declare.
8706 (target_xfer_partial_ftype): Adjust it.
8707 (struct target_ops) <to_xfer_partial>: Return
8708 target_xfer_status. Add argument xfered_len. Update
8710 * target.c (target_xfer_error_to_string): Rename to ...
8711 (target_xfer_status_to_string): ... it. New. All callers
8713 (target_read_live_memory): Likewise. Call target_xfer_partial
8714 instead of target_read.
8715 (memory_xfer_live_readonly_partial): Return
8716 target_xfer_status. Add argument xfered_len.
8717 (raw_memory_xfer_partial): Likewise.
8718 (memory_xfer_partial_1): Likewise.
8719 (memory_xfer_partial): Likewise.
8720 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8721 properly. Update debug message.
8722 (default_xfer_partial, current_xfer_partial): Likewise.
8723 (target_write_partial): Likewise.
8724 (target_read_partial): Likewise. All callers updated.
8725 (read_whatever_is_readable): Likewise.
8726 (target_write_with_progress): Likewise.
8727 (target_read_alloc_1): Likewise.
8729 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8730 * auxv.c (procfs_xfer_auxv): Likewise.
8731 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8732 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8733 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8734 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8735 * corefile.c (read_memory): Adjust.
8736 * corelow.c (core_xfer_partial): Likewise.
8737 * ctf.c (ctf_xfer_partial): Likewise.
8738 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8740 (darwin_xfer_partial): Likewise.
8741 * exec.c (section_table_xfer_memory_partial): Likewise. All
8743 (exec_xfer_partial): Likewise.
8744 * exec.h (section_table_xfer_memory_partial): Update
8746 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8748 (gnu_xfer_partial): Likewise.
8749 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8750 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8751 (ia64_hpux_xfer_solib_got): Likewise.
8752 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8753 type of 'partial_len' to ULONGEST.
8754 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8755 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8756 (linux_nat_xfer_partial): Likewise.
8757 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8758 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8759 * monitor.c (monitor_xfer_memory): Likewise.
8760 (monitor_xfer_partial): Likewise.
8761 * procfs.c (procfs_xfer_partial): Likewise.
8762 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8763 * record-full.c (record_full_xfer_partial): Likewise.
8764 (record_full_core_xfer_partial): Likewise.
8765 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8766 (gdbsim_xfer_partial): Likewise.
8767 * remote.c (remote_write_bytes_aux): Likewise. All callers
8769 (remote_write_bytes, remote_read_bytes): Likewise. All
8771 (remote_flash_erase): Likewise. All callers updated.
8772 (remote_write_qxfer): Likewise. All callers updated.
8773 (remote_read_qxfer): Likewise. All callers updated.
8774 (remote_xfer_partial): Likewise.
8775 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8776 (rs6000_xfer_shared_libraries): Likewise.
8777 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8778 (sol_thread_xfer_partial): Likewise.
8779 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8780 (sparc_xfer_partial): Likewise.
8781 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8783 (spu_xfer_partial): Likewise.
8784 * spu-multiarch.c (spu_xfer_partial): Likewise.
8785 * tracepoint.c (tfile_xfer_partial): Likewise.
8786 * windows-nat.c (windows_xfer_memory): Likewise.
8787 (windows_xfer_shared_libraries): Likewise.
8788 (windows_xfer_partial): Likewise.
8789 * valprint.c: Replace 'target_xfer_error' with
8790 'target_xfer_status' in comments.
8792 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8794 Checked in by Joel Brobecker <brobecker@adacore.com>.
8795 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8797 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8799 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8800 function parameters.
8802 2014-02-10 Will Newton <will.newton@linaro.org>
8804 * elfread.c (elf_rel_plt_read): Look for a .got section if
8805 looking up .got.plt fails.
8806 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8807 on address passed to elf_gnu_ifunc_record_cache.
8808 (elf_gnu_ifunc_resolve_addr): Likewise.
8809 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8811 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8813 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8814 (X_RETTURN): New macro.
8815 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8817 * sparc64-tdep.c (sparc64_init_abi): Hook
8818 sparc_in_function_epilogue_p.
8820 2014-02-10 Gary Benson <gbenson@redhat.com>
8822 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8823 Rename name_matcher to symbol_matcher.
8825 2014-02-10 Gary Benson <gbenson@redhat.com>
8827 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8828 Use expand_symtabs_file_matcher_ftype and
8829 expand_symtabs_symbol_matcher_ftype.
8831 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8833 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8834 (struct ada_symbol_cache): New.
8835 (ada_free_symbol_cache): Forward declare.
8836 (struct ada_pspace_data): New.
8837 (ada_pspace_data_handle): New static global.
8838 (get_ada_pspace_data, ada_pspace_data_cleanup)
8839 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8840 (cache_space, cache): Delete, now folded inside struct
8842 (ada_get_symbol_cache): New function.
8843 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8845 (_initialize_ada_language): Remove initialization of cache_space.
8846 Move call to observer_attach_inferior_exit up, grouping it
8847 with the other observer registrations inside this function.
8848 Rename command to be more general. Add call to
8849 register_program_space_data_with_cleanup.
8851 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8853 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8854 ada_new_objfile_observer.
8855 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8856 (_initialize_tasks): Update uses of ada_new_objfile_observer
8857 and ada_tasks_normal_stop_observer.
8859 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8861 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8862 returned by the 'Length attribute to integer.
8864 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8866 * ada-lang.c (_initialize_ada_language): Initialize
8867 cache_space obstack.
8869 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8871 * ada-lang.c (HASH_SIZE): New macro.
8872 (struct cache_entry): New type.
8873 (cache_space, cache): New static globals.
8874 (ada_clear_symbol_cache, find_entry): New functions.
8875 (lookup_cached_symbol, cache_symbol): Implement.
8876 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8877 (_initialize_ada_language): Attach ada_new_objfile_observer
8878 and ada_free_objfile_observer.
8880 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8882 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8883 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8884 struct block * parameter.
8885 (ada_lookup_symbol_list_worker): Constify local variable "block".
8886 Remove cast which is no longer necessary.
8888 2014-02-10 Doug Evans <xdje42@gmail.com>
8890 Add Guile as an extension language.
8891 * NEWS: Mention Guile scripting.
8892 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8893 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8894 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8895 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8896 (CLIBS): Add GUILE_LIBS.
8897 (install-guile): New rule.
8898 (guile.o): New rule.
8899 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8900 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8901 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8902 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8903 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8904 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8905 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8906 * configure.ac: New option --with-guile.
8907 * configure: Regenerate.
8908 * config.in: Regenerate.
8909 * auto-load.c: Remove #include "python/python.h". Add #include
8910 "gdb/section-scripts.h".
8911 (source_section_scripts): Handle Guile scripts.
8912 (_initialize_auto_load): Add name of Guile objfile script to
8913 scripts-directory help text.
8914 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8915 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8916 (struct breakpoint): New member scm_bp_object.
8917 * defs.h (enum command_control_type): New value guile_control.
8918 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8920 (show_user): Update comment.
8921 (_initialize_cli_cmds): Update help text for "show user". Update help
8922 text for max-user-call-depth.
8923 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8925 (multi_line_command_p): Add guile_control.
8926 (print_command_lines): Handle guile_control.
8927 (execute_control_command, recurse_read_control_structure): Ditto.
8928 (process_next_line): Recognize "guile" commands.
8929 * disasm.c (gdb_disassemble_info): Make non-static.
8930 * disasm.h: #include "dis-asm.h".
8931 (struct gdbarch): Add forward decl.
8932 (gdb_disassemble_info): Declare.
8933 * extension.c: #include "guile/guile.h".
8934 (extension_languages): Add guile.
8935 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8936 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8937 * gdbtypes.c (get_unsigned_type_max): New function.
8938 (get_signed_type_minmax): New function.
8939 * gdbtypes.h (get_unsigned_type_max): Declare.
8940 (get_signed_type_minmax): Declare.
8941 * guile/README: New file.
8942 * guile/guile-internal.h: New file.
8943 * guile/guile.c: New file.
8944 * guile/guile.h: New file.
8945 * guile/scm-arch.c: New file.
8946 * guile/scm-auto-load.c: New file.
8947 * guile/scm-block.c: New file.
8948 * guile/scm-breakpoint.c: New file.
8949 * guile/scm-disasm.c: New file.
8950 * guile/scm-exception.c: New file.
8951 * guile/scm-frame.c: New file.
8952 * guile/scm-gsmob.c: New file.
8953 * guile/scm-iterator.c: New file.
8954 * guile/scm-lazy-string.c: New file.
8955 * guile/scm-math.c: New file.
8956 * guile/scm-objfile.c: New file.
8957 * guile/scm-ports.c: New file.
8958 * guile/scm-pretty-print.c: New file.
8959 * guile/scm-safe-call.c: New file.
8960 * guile/scm-string.c: New file.
8961 * guile/scm-symbol.c: New file.
8962 * guile/scm-symtab.c: New file.
8963 * guile/scm-type.c: New file.
8964 * guile/scm-utils.c: New file.
8965 * guile/scm-value.c: New file.
8966 * guile/lib/gdb.scm: New file.
8967 * guile/lib/gdb/boot.scm: New file.
8968 * guile/lib/gdb/experimental.scm: New file.
8969 * guile/lib/gdb/init.scm: New file.
8970 * guile/lib/gdb/iterator.scm: New file.
8971 * guile/lib/gdb/printing.scm: New file.
8972 * guile/lib/gdb/types.scm: New file.
8973 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8974 (VPATH): Add $(GUILE_SRCDIR).
8975 (GUILE_DIR): New variable.
8976 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8977 (all): Add stamp-guile dependency.
8978 (stamp-guile): New rule.
8979 (clean-guile, install-guile, uninstall-guile): New rules.
8980 (install-only): Add install-guile dependency.
8981 (uninstall): Add uninstall-guile dependency.
8982 (clean): Add clean-guile dependency.
8984 2014-02-09 Doug Evans <xdje42@gmail.com>
8986 Revert this patch (which I approved, mea culpa).
8988 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8990 * Makefile.in (all-lib): Remove.
8991 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8993 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8995 Fix Python stack corruption.
8996 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8999 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9001 * Makefile.in (all-lib): Remove.
9002 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9004 2014-02-07 Doug Evans <dje@google.com>
9006 * extension-priv.h (extension_language_script_ops): Add comment.
9007 (extension_language_ops): Add comment.
9008 (active_ext_lang_state): Fix typo in comment.
9010 2014-02-07 Pedro Alves <palves@redhat.com>
9012 PR breakpoints/16292
9013 * infrun.c (handle_signal_stop) <signal arrives while stepping
9014 over a breakpoint>: Switch back to the stepping thread.
9016 2014-02-07 Yao Qi <yao@codesourcery.com>
9018 * target.c (target_xfer_partial): Return zero if LEN is zero.
9020 2014-02-07 Yao Qi <yao@codesourcery.com>
9022 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9023 (ld_so_xfer_auxv): Likewise.
9024 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9025 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9026 * corelow.c (core_xfer_partial): Likewise.
9027 * ctf.c (ctf_xfer_partial): Likewise.
9028 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9029 (darwin_xfer_partial): Likewise.
9030 * exec.c (exec_xfer_partial): Likewise.
9031 * gnu-nat.c (gnu_xfer_partial): Likewise.
9032 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9033 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9034 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9035 * linux-nat.c (linux_xfer_siginfo): Likewise.
9036 (linux_proc_xfer_spu): Likewise.
9037 * procfs.c (procfs_xfer_partial): Likewise.
9038 * record-full.c (record_full_xfer_partial): Likewise.
9039 (record_full_core_xfer_partial): Likewise.
9040 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9041 * remote.c (remote_write_qxfer): Likewise.
9042 (remote_write_qxfer, remote_read_qxfer): Likewise.
9043 (remote_xfer_partial): Likewise.
9044 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9045 (rs6000_xfer_shared_libraries): Likewise.
9046 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9047 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9048 (spu_xfer_partial): Likewise.
9049 * target.c (memory_xfer_partial_1): Likewise.
9050 * tracepoint.c (tfile_xfer_partial): Likewise.
9051 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9052 (windows_xfer_partial): Likewise.
9054 2014-02-07 Yao Qi <yao@codesourcery.com>
9056 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9058 (core_xfer_shared_libraries_aix): Likewise.
9059 * gdbarch.c, gdbarch.h: Regenerated.
9060 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9061 ULONGEST. Change 'len_avail' type to ULONGEST.
9062 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9063 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9065 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9067 2014-02-07 Yao Qi <yao@codesourcery.com>
9069 * corefile.c (memory_error): Get 'exception' from ERR and pass
9070 'exception' to throw_error.
9072 2014-02-06 Doug Evans <xdje42@gmail.com>
9074 * configure.ac (libpython checking): Remove all but python.o from
9075 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9076 * configure: Regenerate.
9078 * Makefile.in (SFILES): Add extension.c.
9079 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9080 (COMMON_OBS): Add extension.o.
9081 * extension.h: New file.
9082 * extension-priv.h: New file.
9083 * extension.c: New file.
9085 * python/python-internal.h: #include "extension.h".
9086 (gdbpy_auto_load_enabled): Declare.
9087 (gdbpy_apply_val_pretty_printer): Declare.
9088 (gdbpy_apply_frame_filter): Declare.
9089 (gdbpy_preserve_values): Declare.
9090 (gdbpy_breakpoint_cond_says_stop): Declare.
9091 (gdbpy_breakpoint_has_cond): Declare.
9092 (void source_python_script_for_objfile): Delete.
9093 * python/python.c: #include "extension-priv.h".
9094 Delete inclusion of "observer.h".
9095 (extension_language_python): Moved here and renamed from
9096 script_language_python in py-auto-load.c.
9097 Redefined to be of type extension_language_defn.
9098 (python_extension_script_ops): New global.
9099 (python_extension_ops): New global.
9100 (struct python_env): New member previous_active.
9101 (restore_python_env): Call restore_active_ext_lang.
9102 (ensure_python_env): Call set_active_ext_lang.
9103 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9105 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9107 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9109 (gdbpy_eval_from_control_command): Renamed from
9110 eval_python_from_control_command, made static. New arg extlang.
9111 (gdbpy_source_script) Renamed from source_python_script, made static.
9113 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9114 result to int. New arg extlang.
9115 (gdbpy_source_objfile_script): Renamed from
9116 source_python_script_for_objfile, made static. New arg extlang.
9117 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9118 static. New args extlang, extlang_printers. Change result type to
9120 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9121 static. New arg extlang. Rename arg printers to extlang_printers
9122 and change type to ext_lang_type_printers *.
9123 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9124 static. Replace argument arg with extlang, extlang_printers.
9125 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9126 (!HAVE_PYTHON, source_python_script): Delete.
9127 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9128 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9129 (!HAVE_PYTHON, start_type_printers): Delete.
9130 (!HAVE_PYTHON, apply_type_printers): Delete.
9131 (!HAVE_PYTHON, free_type_printers): Delete.
9132 (_initialize_python): Delete call to observer_attach_before_prompt.
9133 (finalize_python): Set/restore active extension language.
9134 (gdbpy_finish_initialization) Renamed from
9135 finish_python_initialization, made static. New arg extlang.
9136 (gdbpy_initialized): New function.
9137 * python/python.h: #include "extension.h". Delete #include
9138 "value.h", "mi/mi-cmds.h".
9139 (extension_language_python): Declare.
9140 (GDBPY_AUTO_FILE_NAME): Delete.
9141 (enum py_bt_status): Moved to extension.h and renamed to
9143 (enum frame_filter_flags): Moved to extension.h.
9144 (enum py_frame_args): Moved to extension.h and renamed to
9145 ext_lang_frame_args.
9146 (finish_python_initialization): Delete.
9147 (eval_python_from_control_command): Delete.
9148 (source_python_script): Delete.
9149 (apply_val_pretty_printer): Delete.
9150 (apply_frame_filter): Delete.
9151 (preserve_python_values): Delete.
9152 (gdbpy_script_language_defn): Delete.
9153 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9154 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9156 * auto-load.c: #include "extension.h".
9157 (GDB_AUTO_FILE_NAME): Delete.
9158 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9159 (script_language_gdb): Delete, moved to extension.c and renamed to
9160 extension_language_gdb.
9161 (source_gdb_script_for_objfile): Delete.
9162 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9163 (loaded_script): Change type of language member to
9164 struct extension_language_defn *.
9165 (init_loaded_scripts_info): Initialize
9166 unsupported_script_warning_printed.
9167 (maybe_add_script): Make static. Change type of language arg to
9168 struct extension_language_defn *.
9169 (clear_section_scripts): Reset unsupported_script_warning_printed.
9170 (auto_load_objfile_script_1): Rewrite to use extension language API.
9171 (auto_load_objfile_script): Make public. Remove support-compiled-in
9172 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9173 (source_section_scripts): Rewrite to use extension language API.
9174 (load_auto_scripts_for_objfile): Rewrite to use
9175 auto_load_scripts_for_objfile.
9176 (collect_matching_scripts_data): Change type of language member to
9177 struct extension_language_defn *.
9178 (auto_load_info_scripts): Change type of language arg to
9179 struct extension_language_defn *.
9180 (unsupported_script_warning_print): New function.
9181 (script_not_found_warning_print): Make static.
9182 (_initialize_auto_load): Rewrite construction of scripts-directory
9184 * auto-load.h (struct objfile): Add forward decl.
9185 (struct script_language): Delete.
9186 (struct auto_load_pspace_info): Add forward decl.
9187 (struct extension_language_defn): Add forward decl.
9188 (maybe_add_script): Delete.
9189 (auto_load_objfile_script): Declare.
9190 (script_not_found_warning_print): Delete.
9191 (auto_load_info_scripts): Update prototype.
9192 (auto_load_gdb_scripts_enabled): Declare.
9193 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9194 auto_load_python_scripts_enabled and made public.
9195 (script_language_python): Delete, moved to python.c.
9196 (gdbpy_script_language_defn): Delete.
9197 (info_auto_load_python_scripts): Update to use
9198 extension_language_python.
9200 * breakpoint.c (condition_command): Replace call to
9201 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9202 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9203 with call to breakpoint_ext_lang_cond_says_stop.
9204 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9205 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9206 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9207 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9209 (local_setattro): Print name of extension language with existing
9212 * valprint.c (val_print, value_print): Update to call
9213 apply_ext_lang_val_pretty_printer.
9214 * cp-valprint.c (cp_print_value): Update call to
9215 apply_ext_lang_val_pretty_printer.
9216 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9217 (gdbpy_apply_val_pretty_printer): Renamed from
9218 apply_val_pretty_printer. New arg extlang.
9219 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9221 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9222 extension language API.
9223 * cli/cli-script.c (execute_control_command): Update to call
9224 eval_ext_lang_from_control_command.
9226 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9227 enum ext_lang_bt_status values. Update call to
9228 apply_ext_lang_frame_filter.
9229 (mi_cmd_stack_list_locals): Ditto.
9230 (mi_cmd_stack_list_args): Ditto.
9231 (mi_cmd_stack_list_variables): Ditto.
9232 * mi/mi-main.c: Delete #include "python/python-internal.h".
9233 Add #include "extension.h".
9234 (mi_cmd_list_features): Replace reference to python internal variable
9235 gdb_python_initialized with call to ext_lang_initialized_p.
9237 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9238 Update to use enum ext_lang_frame_args. Update to call
9239 apply_ext_lang_frame_filter.
9240 * python/py-framefilter.c (extract_sym): Update to use enum
9242 (extract_value, py_print_type, py_print_value): Ditto.
9243 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9244 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9245 (py_print_frame): Ditto.
9246 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9247 New arg extlang. Update to use enum ext_lang_bt_status.
9249 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9250 finish_python_initialization. Replace with call to
9251 finish_ext_lang_initialization.
9253 * typeprint.c (do_free_global_table): Update to call
9254 free_ext_lang_type_printers.
9255 (create_global_typedef_table): Update to call
9256 start_ext_lang_type_printers.
9257 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9258 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9259 (type_print_options): Change type of global_printers from "void *"
9260 to "struct ext_lang_type_printers *".
9262 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9263 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9264 (gdbpy_preserve_values): Renamed from preserve_python_values.
9266 (!HAVE_PYTHON, preserve_python_values): Delete.
9268 * utils.c (quit_flag): Delete, moved to extension.c.
9269 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9272 * eval.c: Delete #include "python/python.h".
9273 * main.c: Delete #include "python/python.h".
9275 * defs.h: Update comment.
9277 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9281 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9283 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9286 2014-02-05 Yao Qi <yao@codesourcery.com>
9288 * remote.c (remote_pass_signals): Remove local 'buf' and use
9290 (remote_program_signals): Likewise.
9292 2014-02-05 Yao Qi <yao@codesourcery.com>
9294 * ctf.c: Include "inferior.h" and "gdbthread.h".
9295 (CTF_PID): A new macro.
9296 (ctf_open): Call inferior_appeared and add_thread_silent.
9297 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9298 (ctf_thread_alive): New function.
9299 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9301 2014-02-05 Yao Qi <yao@codesourcery.com>
9305 2013-05-24 Yao Qi <yao@codesourcery.com>
9307 * tracepoint.c (TFILE_PID): Remove.
9308 (tfile_open): Don't add thread and inferior.
9309 (tfile_close): Don't set 'inferior_ptid'. Don't call
9310 exit_inferior_silent.
9311 (tfile_thread_alive): Remove.
9312 (init_tfile_ops): Don't set field 'to_thread_alive' of
9315 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9317 * remote.c (remote_start_remote): Call remote_check_symbols even
9318 if only symbol-file (not file) has been given.
9320 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9322 * gdbarch.sh (skip_entrypoint): New callback.
9323 * gdbarch.c, gdbarch.h: Regenerate.
9324 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9325 * infrun.c (fill_in_stop_func): Likewise.
9326 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9327 (ppc_elfv2_elf_make_msymbol_special): New function.
9328 (ppc_elfv2_skip_entrypoint): Likewise.
9329 (ppc_linux_init_abi): Install them for ELFv2.
9331 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9333 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9334 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9335 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9336 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9337 structures returned in GPRs.
9339 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9341 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9342 offset to the stack parameter list for the ELFv2 ABI.
9344 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9346 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9347 set_gdbarch_convert_from_func_ptr_addr and
9348 set_gdbarch_elf_make_msymbol_special for ELFv1.
9349 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9350 function descriptors on ELFv1.
9351 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9352 set up r12 at function entry.
9354 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9356 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9357 (struct gdbarch_tdep): New member elf_abi.
9359 * rs6000-tdep.c: Include "elf/ppc64.h".
9360 (rs6000_gdbarch_init): Detect ELF ABI version.
9362 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9364 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9365 within a register pair holding a DFP 128-bit value on little-endian.
9366 (ppc64_sysv_abi_return_value_base): Likewise.
9367 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9368 (dfp_pseudo_register_write): Likewise.
9370 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9372 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9373 offset on little-endian when passing _Decimal32.
9374 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9376 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9378 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9379 of the overlapped FP register within the VSX register on little-
9381 (efpr_pseudo_register_write): Likewise.
9383 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9385 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9386 offset on little-endian when passing small structures.
9388 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9390 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9391 (struct ppc64_sysv_argpos): New data structure.
9392 (ppc64_sysv_abi_push_float): Remove.
9393 (ppc64_sysv_abi_push_val): New function.
9394 (ppc64_sysv_abi_push_integer): Likewise.
9395 (ppc64_sysv_abi_push_freg): Likewise.
9396 (ppc64_sysv_abi_push_vreg): Likewise.
9397 (ppc64_sysv_abi_push_param): Likewise.
9398 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9399 (ppc64_sysv_abi_return_value_base): New function.
9400 (ppc64_sysv_abi_return_value): Refactor to use it.
9402 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9404 * NEWS: Document new target powerpc64le-*-linux*.
9406 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9408 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9409 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9411 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9412 register set used in ELF core dumps. Add floating-point register set.
9414 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9416 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9417 dwarf2_to_gdb[] table using symbolic constants. Adjust
9418 penultimate entry from number representing the PC register
9419 to symbolic constant representing the MDR register. Add
9420 constant for the PC register to the end of the table.
9422 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9424 * bsd-kvm.c: Include <sys/param.h>
9426 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9428 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9430 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9432 * ada-lang.h (clear_ada_sym_cache): Delete.
9434 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9436 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9438 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9440 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9441 the sigreturn register save area only if the syscall is
9444 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9446 * valops.c (value_slice): Minor reformatting.
9448 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9450 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9452 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9454 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9456 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9457 (ada_ignore_descriptive_types_p): New static global.
9458 (find_parallel_type_by_descriptive_type): Return immediately
9459 if ada_ignore_descriptive_types_p is set.
9460 (_initialize_ada_language): Register new commands "maintenance
9461 set ada", "maintenance show ada", "maintenance set ada
9462 ignore-descriptive-types" and "maintenance show ada
9463 ignore-descriptive-types".
9464 * NEWS: Add entry for new "maint ada set/show
9465 ignore-descriptive-types" commands.
9467 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9469 * record-btrace.c (record_btrace_close): Call btrace_teardown
9472 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9474 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9477 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9479 * ada-typeprint (type_is_full_subrange_of_target_type):
9481 (print_range): Add parameter bounds_prefered_p. If not set,
9482 try printing range types using the name of their base type.
9483 (print_range_type): Add parameter bounds_prefered_p.
9484 Use it in call to print_range.
9485 (print_array_type, ada_print_type): Update calls to print_range
9486 and print_range_type.
9488 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9490 * ada-typeprint.c (print_array_type, print_choices, print_range)
9491 (print_range_bound, print_dynamic_range_bound, print_range_type):
9494 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9496 * ada-typeprint.c (print_range): Add missing empty line
9497 after local declaration.
9499 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9501 * ada-valprint.c (print_optional_low_bound): Get index_type's
9502 target type for as long as it is a TYPE_CODE_RANGE.
9504 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9506 * procfs.c (procfs_make_note_section): Remove assertion and
9509 2014-01-24 Yao Qi <yao@codesourcery.com>
9511 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9512 * corelow.c (get_core_siginfo): Likewise.
9514 2014-01-24 Yao Qi <yao@codesourcery.com>
9516 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9517 ULONGEST. Don't check 'len' is negative.
9518 (remote_write_bytes): Change type of 'len' to ULONGEST.
9520 2014-01-23 Tom Tromey <tromey@redhat.com>
9523 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9524 Handle exception from frame.block.
9525 (FrameVars.fetch_frame_locals): Likewise.
9527 2014-01-23 Tom Tromey <tromey@redhat.com>
9530 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9531 on a NULL pointer. Move "goto error" to correct place.
9533 2014-01-23 Tom Tromey <tromey@redhat.com>
9536 * python/py-framefilter.c (apply_frame_filter): Call
9537 ensure_python_env after computing gdbarch.
9539 2014-01-23 Yao Qi <yao@codesourcery.com>
9541 * target.c (raw_memory_xfer_partial): Change argument type
9542 from void * to gdb_byte *.
9543 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9545 2014-01-22 Doug Evans <dje@google.com>
9547 New gdbserver option --debug-format=timestamp.
9550 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9552 * syscalls/s390x-linux.xml: New file.
9553 * syscalls/s390-linux.xml: New file.
9554 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9555 (XML_SYSCALL_FILENAME_S390X): Likewise.
9556 (op_svc): New enum value for SVC opcode.
9557 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9558 (s390_linux_get_syscall_number): New function.
9559 (s390_gdbarch_init): Register '*get_syscall_number' and the
9560 syscall xml file name.
9561 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9562 "s390-linux.xml" and "s390x-linux.xml".
9563 * NEWS: Announce new feature.
9565 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9567 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9569 2014-01-22 Pedro Alves <palves@redhat.com>
9571 * xtensa-config.c: Include defs.h.
9573 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9575 * common/common-utils.h: Add "ARI:" comment beside __func__
9578 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9580 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9581 documentation a bit.
9583 2014-01-21 Roland McGrath <mcgrathr@google.com>
9585 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9586 * configure: Regenerate.
9587 * aclocal.m4: Regenerate.
9588 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9589 New substituted variables.
9590 (install-strip): New target.
9591 (INSTALL_SCRIPT): New substituted variable.
9592 (FLAGS_TO_PASS): Add it.
9593 (install-only): Use $(INSTALL_SCRIPT) rather than
9594 $(INSTALL_PROGRAM) for gcore.
9596 2014-01-20 Tom Tromey <tromey@redhat.com>
9598 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9601 2014-01-20 Tom Tromey <tromey@redhat.com>
9603 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9604 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9605 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9606 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9607 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9608 (struct cmd_list_element) <flags>: Remove.
9609 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9610 doc_allocated>: New fields.
9611 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9613 * maint.c (maintenance_do_deprecate): Update.
9614 * top.c (execute_command): Update.
9616 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9618 * xtensa-linux-nat.c: Include asm/ptrace.h.
9620 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9622 * Makefile.in (SFILES): Add d-support.c.
9623 (COMMON_OBS): Add d-support.o.
9624 * d-lang.h (d_parse_symbol): Add comment, now defined in
9626 * d-lang.c (parse_call_convention)
9627 (parse_attributes, parse_function_types)
9628 (parse_function_args, parse_type, parse_identifier)
9629 (call_convention_p, d_parse_symbol): Move functions to ...
9630 * d-support.c: ... New file.
9632 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9634 * d-lang.h (d_parse_symbol): Add declaration.
9635 * d-lang.c (extract_identifiers)
9636 (extract_type_info): Remove functions.
9637 (parse_call_convention, parse_attributes)
9638 (parse_function_types, parse_function_args)
9639 (parse_type, parse_identifier, call_convention_p)
9640 (d_parse_symbol): New functions.
9641 (d_demangle): Use d_parse_symbol to demangle D symbols.
9643 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9645 * d-lang.h (struct builtin_d_type): New data type.
9646 (builtin_d_type): Add declaration.
9647 * d-lang.c (d_language_arch_info, build_d_types)
9648 (builtin_d_type): New functions.
9649 (enum d_primitive_types): New data type.
9650 (d_language_defn): Change c_language_arch_info to
9651 d_language_arch_info.
9652 (d_type_data): New static variable.
9653 (_initialize_d_language): Initialize d_type_data.
9655 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9657 * d-lang.h (d_main_name): Add declaration.
9658 * d-lang.c (d_main_name): New function.
9659 * symtab.c (find_main_name): Add call to d_main_name.
9661 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9663 * d-lang.c (d_language_defn): Change macro_expansion_c to
9666 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9668 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9670 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9672 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9673 gdb_exception" declaration.
9674 * remote.c (getpkt_or_notif_sane): Likewise.
9676 2014-01-17 Doug Evans <dje@google.com>
9678 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9679 function, contents of dirnames_to_char_ptr_vec_append moved here.
9680 (delim_string_to_char_ptr_vec): New function.
9681 (dirnames_to_char_ptr_vec_append): Rewrite.
9682 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9684 2014-01-17 Doug Evans <dje@google.com>
9686 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9688 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9689 #include "common-utils.h".
9690 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9691 * common/vec.h (VEC_ASSERT_PASS): Update.
9692 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9693 (MACH_CHECK_ERROR): Update.
9695 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9697 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9699 * gdbarch.h: Regenerate.
9701 2014-01-16 Tom Tromey <tromey@redhat.com>
9703 * value.c (struct value) <regnum>: Move earlier.
9705 2014-01-16 Tom Tromey <tromey@redhat.com>
9707 * remote.c (extended_remote_create_inferior): Rename from
9708 extended_remote_create_inferior_1. Add "ops" argument. Remove
9711 2014-01-16 Pedro Alves <palves@redhat.com>
9713 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9714 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9717 2014-01-16 Doug Evans <dje@google.com>
9719 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9721 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9723 * btrace.h (btrace_thread_flag): New.
9724 (struct btrace_thread_info) <flags>: New.
9725 * record-btrace.c (record_btrace_resume_thread)
9726 (record_btrace_find_thread_to_move, btrace_step_no_history)
9727 (btrace_step_stopped, record_btrace_start_replaying)
9728 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9729 (record_btrace_find_resume_thread): New.
9730 (record_btrace_resume, record_btrace_wait): Extend.
9731 (record_btrace_can_execute_reverse): New.
9732 (record_btrace_open): Fail in non-stop mode.
9733 (record_btrace_set_replay): Split into this, ...
9734 (record_btrace_stop_replaying): ... this, ...
9735 (record_btrace_clear_histories): ... and this.
9736 (init_record_btrace_ops): Init to_can_execute_reverse.
9737 * NEWS: Announce it.
9739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9741 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9742 (forward_target_decr_pc_after_break)
9743 (target_decr_pc_after_break): New.
9744 * target.c (forward_target_decr_pc_after_break)
9745 (target_decr_pc_after_break): New.
9746 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9747 instead of gdbarch_decr_pc_after_break.
9748 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9749 instead of gdbarch_decr_pc_after_break.
9750 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9751 instead of gdbarch_decr_pc_after_break.
9752 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9753 instead of gdbarch_decr_pc_after_break.
9754 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9755 instead of gdbarch_decr_pc_after_break.
9756 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9757 instead of gdbarch_decr_pc_after_break.
9759 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9761 * btrace.c: Include regcache.h.
9762 (btrace_add_pc): New.
9763 (btrace_enable): Call btrace_add_pc.
9764 (btrace_is_empty): New.
9765 * btrace.h (btrace_is_empty): New.
9766 * record-btrace.c (require_btrace, record_btrace_info): Call
9769 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9771 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9772 Support delta reads.
9773 (linux_disable_btrace): Change return type.
9774 * common/linux-btrace.h (linux_read_btrace): Change parameters
9775 and return type to allow error reporting. Update users.
9776 (linux_disable_btrace): Change return type. Update users.
9777 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9779 (btrace_error): New.
9780 (btrace_block) <begin>: Comment on BEGIN == 0.
9781 * btrace.c (btrace_compute_ftrace): Start from the end of
9783 (btrace_stitch_trace, btrace_clear_history): New.
9784 (btrace_fetch): Read delta trace, return if replaying.
9785 (btrace_clear): Move clear history code to btrace_clear_history.
9786 (parse_xml_btrace): Throw an error if parsing failed.
9787 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9788 and return type to allow error reporting.
9789 (target_read_btrace): Change parameters and return type to allow
9791 * target.c (target_read_btrace): Update.
9792 * remote.c (remote_read_btrace): Support delta reads. Pass
9794 * NEWS: Announce it.
9796 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9798 * record.h (record_btrace_frame_unwind)
9799 (record_btrace_tailcall_frame_unwind): New declarations.
9800 * dwarf2-frame: Include record.h
9801 (dwarf2_frame_cfa): Throw an error for btrace frames.
9802 * record-btrace.c: Include hashtab.h.
9803 (btrace_get_bfun_name): New.
9804 (btrace_call_history): Call btrace_get_bfun_name.
9805 (struct btrace_frame_cache): New.
9807 (bfcache_hash, bfcache_eq, bfcache_new): New.
9808 (btrace_get_frame_function): New.
9809 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9810 (record_btrace_frame_this_id): Compute own id.
9811 (record_btrace_frame_prev_register): Provide PC, throw_error
9812 for all other registers.
9813 (record_btrace_frame_sniffer): Detect btrace frames.
9814 (record_btrace_tailcall_frame_sniffer): New.
9815 (record_btrace_frame_dealloc_cache): New.
9816 (record_btrace_frame_unwind): Add new functions.
9817 (record_btrace_tailcall_frame_unwind): New.
9818 (_initialize_record_btrace): Allocate cache.
9819 * btrace.c (btrace_clear): Call reinit_frame_cache.
9820 * NEWS: Announce it.
9822 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9824 * record-btrace.c (record_btrace_set_replay)
9825 (record_btrace_goto_begin, record_btrace_goto_end)
9826 (record_btrace_goto): New.
9827 (init_record_btrace_ops): Initialize them.
9828 * NEWS: Announce it.
9830 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9832 * record-btrace.c (record_btrace_find_new_threads)
9833 (record_btrace_thread_alive): New.
9834 (init_record_btrace_ops): Initialize to_find_new_threads and
9837 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9839 * record-btrace.c (record_btrace_resume): New.
9840 (record_btrace_wait): New.
9841 (init_record_btrace_ops): Initialize to_wait and to_resume.
9843 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9845 * record-btrace.c (record_btrace_xfer_partial)
9846 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9847 (record_btrace_allow_memory_access): New.
9848 (init_record_btrace_ops): Initialize new methods.
9849 * target.c (raw_memory_xfer_partial): Bail out if target reports
9850 that this memory is not available.
9852 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9854 * target.h (target_ops) <to_insert_breakpoint>
9855 <to_remove_breakpoint>: Add target_ops parameter.
9856 (forward_target_insert_breakpoint): New.
9857 (forward_target_remove_breakpoint): New.
9858 (memory_remove_breakpoint, memory_insert_breakpoint):
9859 Add target_ops parameter.
9860 * target.c (target_insert_breakpoint): Split into this and ...
9861 (forward_target_insert_breakpoint): ... this.
9862 (target_remove_breakpoint): Split into this and ...
9863 (forward_target_remove_breakpoint): ... this.
9864 (debug_to_insert_breakpoint): Add target_ops parameter.
9865 Call forward_target_insert_breakpoint.
9866 (debug_to_remove_breakpoint): Add target_ops parameter.
9867 Call forward_target_remove_breakpoint.
9868 (update_current_target): Do not inherit or default to_insert_breakpoint
9869 and to_remove_breakpoint.
9870 * corelow.c (ignore): Add target_ops parameter.
9871 * exec.c (ignore): Add target_ops parameter.
9872 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9873 Add target_ops parameter.
9874 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9875 Add target_ops parameter.
9876 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9877 Add target_ops parameter.
9878 * record-full.c (record_full_beneath_to_insert_breakpoint)
9879 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9880 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9881 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9882 (record_full_core_remove_breakpoint): Add target_ops parameter.
9884 (record_full_beneath_to_insert_breakpoint_ops)
9885 (record_full_beneath_to_remove_breakpoint_ops)
9886 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9887 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9888 tmp_to_remove_breakpoint_ops,
9889 record_full_beneath_to_insert_breakpoint_ops, and
9890 record_full_beneath_to_remove_breakpoint_ops.
9891 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9892 (m32r_remove_breakpoint): Add target_ops parameter.
9893 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9894 Add target_ops parameter.
9895 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9896 Add target_ops parameter.
9898 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9899 Markus Metzger <markus.t.metzger@intel.com>
9901 * record-btrace.c: Include frame-unwind.h.
9902 (record_btrace_frame_unwind_stop_reason)
9903 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9904 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9906 (init_record_btrace_ops): Install it.
9908 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9910 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9913 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9915 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9918 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9920 * frame-unwind.c: Include target.h.
9921 (frame_unwind_try_unwinder): New function with code from ...
9922 (frame_unwind_find_by_frame): ... here. New variable
9923 unwinder_from_target, call also target_get_unwinder)
9924 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9925 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9926 * target.h (struct target_ops): New fields to_get_unwinder and
9927 to_get_tailcall_unwinder.
9928 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9930 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9932 * record-btrace.c (record_btrace_fetch_registers)
9933 (record_btrace_store_registers)
9934 (record_btrace_to_prepare_to_store): New.
9935 (init_record_btrace_ops): Add the above.
9937 2014-01-16 Tom Tromey <tromey@redhat.com>
9939 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9940 * target.h (struct target_ops) <to_prepare_to_store>: Add
9942 (target_prepare_to_store): Add argument.
9943 * target.c (debug_to_prepare_to_store): Add argument.
9944 (update_current_target): Update.
9945 * remote.c (remote_prepare_to_store): Add 'self' argument.
9946 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9947 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9948 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9949 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9951 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9952 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9953 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9954 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9955 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9957 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9959 * btrace.h (replay) <replay>: New.
9960 (btrace_is_replaying): New.
9961 * btrace.c (btrace_clear): Free replay iterator.
9962 (btrace_is_replaying): New.
9963 * record-btrace.c (record_btrace_is_replaying): New.
9964 (record_btrace_info): Print insn number if replaying.
9965 (record_btrace_insn_history): Start at replay position.
9966 (record_btrace_call_history): Start at replay position.
9967 (init_record_btrace_ops): Init to_record_is_replaying.
9969 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9971 * record-btrace.c (record_btrace_insn_history_range): Include
9973 (record_btrace_insn_history_from): Adjust range.
9974 (record_btrace_call_history_range): Include
9976 (record_btrace_call_history_from): Adjust range.
9977 * NEWS: Announce changes.
9979 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9981 * record.h (enum record_print_flag)
9982 <record_print_indent_calls>: New.
9983 * record.c (get_call_history_modifiers): Recognize /c modifier.
9984 (_initialize_record): Document /c modifier.
9985 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9986 Reorder fields. Optionally indent the function name. Update
9988 * NEWS: Announce changes.
9990 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9992 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9994 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9996 * btrace.c (ftrace_new_function): Start counting at one.
9997 * record-btrace.c (record_btrace_info): Adjust number of calls
9999 * NEWS: Announce it.
10001 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10003 * record-btrace.c (btrace_call_history_insn_range): Print
10004 insn range as [begin, end].
10006 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10008 * btrace.h (struct btrace_func_link): New.
10009 (enum btrace_function_flag): New.
10010 (struct btrace_inst): Rename to ...
10011 (struct btrace_insn): ...this. Update all users.
10012 (struct btrace_func) <ibegin, iend>: Remove.
10013 (struct btrace_func_link): New.
10014 (struct btrace_func): Rename to ...
10015 (struct btrace_function): ...this. Update all users.
10016 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10017 (number, level, flags>: New.
10018 (struct btrace_insn_iterator): Rename to ...
10019 (struct btrace_insn_history): ...this.
10021 (struct btrace_insn_iterator, btrace_call_iterator): New.
10022 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10023 (struct btrace_target_info) <begin, end, level>
10024 <insn_history, call_history>: New.
10025 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10026 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10027 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10028 (btrace_call_number, btrace_call_begin, btrace_call_end)
10029 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10030 (btrace_find_function_by_number, btrace_set_insn_history)
10031 (btrace_set_call_history): New.
10032 * btrace.c (btrace_init_insn_iterator)
10033 (btrace_init_func_iterator, compute_itrace): Remove.
10034 (ftrace_print_function_name, ftrace_print_filename)
10035 (ftrace_skip_file): Change
10036 parameter to const.
10037 (ftrace_init_func): Remove.
10038 (ftrace_debug): Use new btrace_function fields.
10039 (ftrace_function_switched): Also consider gaining and
10040 losing symbol information).
10041 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10042 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10043 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10045 (ftrace_new_function): Move. Remove debug print.
10046 (ftrace_update_lines, ftrace_update_insns): New.
10047 (ftrace_update_function): Check for call, ret, and jump.
10048 (compute_ftrace): Renamed to ...
10049 (btrace_compute_ftrace): ...this. Rewritten to compute call
10051 (btrace_fetch, btrace_clear): Updated.
10052 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10053 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10054 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10055 (btrace_call_number, btrace_call_begin, btrace_call_end)
10056 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10057 (btrace_find_function_by_number, btrace_set_insn_history)
10058 (btrace_set_call_history): New.
10059 * record-btrace.c (require_btrace): Use new btrace thread
10061 (record_btrace_info, btrace_insn_history)
10062 (record_btrace_insn_history, record_btrace_insn_history_range):
10063 Use new btrace thread info fields and new iterator.
10064 (btrace_func_history_src_line): Rename to ...
10065 (btrace_call_history_src_line): ...this. Use new btrace
10066 thread info fields.
10067 (btrace_func_history): Rename to ...
10068 (btrace_call_history): ...this. Use new btrace thread info
10069 fields and new iterator.
10070 (record_btrace_call_history, record_btrace_call_history_range):
10071 Use new btrace thread info fields and new iterator.
10073 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10075 * frame.h (frame_id_build_unavailable_stack_special): New.
10076 * frame.c (frame_id_build_unavailable_stack_special): New.
10078 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10080 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10081 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10082 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10084 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10085 (i386_insn_is_jump, i386_jmp_p): New.
10086 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10087 insn_is_jump to gdbarch.
10088 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10089 * gdbarch.h: Regenerated.
10090 * gdbarch.c: Regenerated.
10091 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10092 (default_insn_is_jump): New.
10093 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10094 (default_insn_is_jump): New.
10096 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10098 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10100 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10101 (btrace_read_type) <btrace_read_new>: Change to ...
10102 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10104 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10106 * common/linux-btrace.c (linux_read_btrace): Free trace from
10107 previous iteration.
10109 2014-01-15 Doug Evans <dje@google.com>
10111 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10114 2014-01-15 Tom Tromey <tromey@redhat.com>
10116 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10117 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10118 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10119 (set_objfile_main_name): New function.
10120 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10121 language_of_main>: New fields.
10122 (set_objfile_main_name): Declare.
10123 * symtab.c (find_main_name): Loop over objfiles to find the main
10125 (set_main_name): Now static.
10126 (get_main_info): Add comment.
10127 * symtab.h (set_main_name): Don't declare.
10129 2014-01-15 Tom Tromey <tromey@redhat.com>
10131 * symtab.c (main_progspace_key): New global.
10132 (struct main_info): New.
10133 (name_of_main, language_of_main): Remove.
10134 (get_main_info, main_info_cleanup): New function.
10135 (set_main_name, main_name, main_language): Use get_main_info.
10136 (_initialize_symtab): Initialize main_progspace_key.
10138 2014-01-15 Tom Tromey <tromey@redhat.com>
10140 * dbxread.c (process_one_symbol): Update.
10141 * dwarf2read.c (read_partial_die): Update.
10142 * symfile.c (set_initial_language): Call main_language.
10143 * symtab.c (language_of_main): Now static.
10144 (set_main_name): Add 'lang' parameter.
10145 (find_main_name): Update.
10146 (main_language): New function.
10147 (symtab_observer_executable_changed): Update.
10148 * symtab.h (set_main_name): Update.
10149 (language_of_main): Remove.
10150 (main_language): Declare.
10152 2014-01-15 Tom Tromey <tromey@redhat.com>
10154 * symfile.c (init_entry_point_info): Use new "initialized" field.
10156 * objfiles.h (struct entry_point) <initialized>: New field.
10157 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10158 (struct objfile) <ei>: ...here. Remove.
10159 * objfiles.c (entry_point_address_query): Update.
10161 2014-01-15 Tom Tromey <tromey@redhat.com>
10163 * objfiles.c (entry_point_address_query): Relocate entry point
10165 (objfile_relocate1): Do not relocate entry point address.
10166 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10167 <the_bfd_section_index>: New field.
10168 * symfile.c (init_entry_point_info): Find the entry point's
10171 2014-01-15 Tom Tromey <tromey@redhat.com>
10173 * solib-frv.c (enable_break): Use entry_point_address_query.
10175 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10177 * NEWS: Add note on improved process record-replay on
10178 arm*-linux* targets.
10180 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10182 * arm-tdep.c (enum arm_record_result): New enum.
10183 (arm_record_unsupported_insn): New function.
10184 (arm_record_coproc_data_proc): Removed.
10185 (thumb2_record_ld_st_multiple): New function.
10186 (thumb2_record_ld_st_dual_ex_tbb): New function.
10187 (thumb2_record_data_proc_sreg_mimm): New function.
10188 (thumb2_record_ps_dest_generic): New function.
10189 (thumb2_record_branch_misc_cntrl): New function.
10190 (thumb2_record_str_single_data): New function.
10191 (thumb2_record_ld_mem_hints): New function.
10192 (thumb2_record_ld_word): New function.
10193 (thumb2_record_lmul_lmla_div): New function.
10194 (thumb2_record_decode_insn_handler): New function.
10195 (decode_insn): Add thumb32 instruction handlers.
10197 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10199 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10200 (struct arm_linux_record_tdep): Declare.
10201 (arm_canonicalize_syscall): New function.
10202 (arm_all_but_pc_registers_record): New function.
10203 (arm_linux_syscall_record): New function.
10204 (arm_linux_init_abi): Add syscall recording constructs.
10205 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10206 decoding. (arm_record_coproc_data_proc): Update arm syscall
10208 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10209 <arm_syscall_record>: New field.
10210 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10213 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10215 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10216 register for push instruction recording.
10218 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10220 * arm-tdep.c (thumb_record_misc): Update to correct logical
10221 error while recording ldm, ldmia and pop instructions.
10223 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10225 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10227 2014-01-15 Pedro Alves <palves@redhat.com>
10229 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10230 (go32_resume, go32_fetch_registers, store_register)
10231 (go32_store_registers, go32_prepare_to_store)
10232 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10233 (go32_create_inferior, go32_can_run, go32_terminal_init)
10234 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10237 2014-01-15 Tom Tromey <tromey@redhat.com>
10239 * target.h (async_callback_ftype): New typedef.
10240 (struct target_ops) <to_async>: Use it.
10242 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10244 * python/py-value.c (get_field_type): Remove unnecessary curly
10245 braces for single-statement if block.
10247 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10249 * python/py-type.c (convert_field): Add missing empty line
10250 after declarations.
10252 2014-01-14 Doug Evans <dje@google.com>
10254 * symfile.h (expand_symtabs_matching): Renamed from
10255 expand_partial_symbol_names. Update prototype.
10256 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10257 * symfile.c (expand_symtabs_matching): Renamed from
10258 expand_partial_symbol_names. New args file_matcher, kind.
10259 Rename arg fun to symbol_matcher.
10260 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10261 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10262 ada_expand_partial_symbol_name.
10263 (ada_make_symbol_completion_list): Update to call
10264 expand_symtabs_matching.
10265 (ada_add_global_exceptions): Call expand_symtabs_matching.
10266 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10267 call map_symbol_filenames.
10268 * symtab.c (sources_info): Update to call map_symbol_filenames.
10269 (search_symbols): Call expand_symtabs_matching.
10270 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10271 (default_make_symbol_completion_list_break_on): Update to call
10272 expand_symtabs_matching.
10273 (make_source_files_completion_list): Update to call
10274 map_symbol_filenames.
10276 2014-01-14 Doug Evans <dje@google.com>
10278 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10279 (expand_symtabs_symbol_matcher_ftype): New typedef.
10280 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10281 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10282 * symfile.c (expand_partial_symbol_names): Update to use
10283 expand_symtabs_symbol_matcher_ftype.
10284 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10285 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10286 Arg name_matcher renamed to symbol_matcher.
10287 * psymtab.c (recursively_search_psymtabs): Update to use
10288 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10290 (expand_symtabs_matching_via_partial): Update to use
10291 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10292 Arg name_matcher renamed to symbol_matcher.
10294 2014-01-14 Doug Evans <dje@google.com>
10296 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10297 (map_partial_symbol_filenames): Ditto.
10298 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10299 (map_partial_symbol_filenames): Ditto.
10300 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10301 (map_partial_symbol_filenames): Ditto.
10302 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10303 (map_partial_symbol_filenames): Ditto.
10304 * symtab.c: Delete #include "psymtab.h".
10306 2014-01-14 Pedro Alves <palves@redhat.com>
10307 Tom Tromey <tromey@redhat.com>
10309 * infrun.c (use_displaced_stepping): Use find_record_target
10310 instead of RECORD_IS_USED.
10311 (adjust_pc_after_break): Use record_full_is_used instead of
10313 * record-btrace.c (record_btrace_open): Call record_preopen
10314 instead of checking RECORD_IS_USED.
10315 * record-full.c (record_full_shortname)
10316 (record_full_core_shortname): New globals.
10317 (record_full_is_used): New function.
10318 (find_full_open): Call record_preopen instead of checking
10320 (init_record_full_ops): Set the target's shortname to
10321 record_full_shortname.
10322 (init_record_full_core_ops): Set the target's shortname to
10323 record_full_core_shortname.
10324 * record-full.h (record_full_is_used): Declare.
10325 * record.c (find_record_target): Make extern.
10326 (record_preopen): New function.
10327 * record.h (RECORD_IS_USED): Delete macro.
10328 (find_record_target, record_preopen): Declare functions.
10330 2014-01-14 Yao Qi <yao@codesourcery.com>
10332 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10333 'len''s type to ULONGEST.
10334 (core_xfer_shared_libraries_aix): Likewise.
10335 * gdbarch.c, gdbarch.h: Regenerated.
10336 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10337 Change type of 'len' to ULONGEST.
10338 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10339 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10341 2014-01-14 Yao Qi <yao@codesourcery.com>
10343 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10344 type of 'len' to ULONGEST.
10345 (linux_xfer_osdata_processgroups): Likewise.
10346 (linux_xfer_osdata_threads): Likewise.
10347 (linux_xfer_osdata_fds): Likewise.
10348 (linux_xfer_osdata_isockets): Likewise.
10349 (linux_xfer_osdata_shm): Likewise.
10350 (linux_xfer_osdata_sem): Likewise.
10351 (linux_xfer_osdata_msg): Likewise.
10352 (linux_common_xfer_osdata): Likewise.
10353 (struct osdata_type) <getter>: Likewise.
10354 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10357 2014-01-14 Yao Qi <yao@codesourcery.com>
10359 * target.h (target_xfer_partial_ftype): Update.
10360 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10362 * aix-thread.c (aix_thread_xfer_partial): Change type of
10363 argument 'len' to ULONGEST.
10364 * auxv.c (procfs_xfer_auxv): Likewise.
10365 (ld_so_xfer_auxv): Likewise.
10366 (memory_xfer_auxv): Likewise.
10367 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10368 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10369 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10370 * corelow.c (core_xfer_partial): Likewise.
10371 * ctf.c (ctf_xfer_partial): Likewise.
10372 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10374 (darwin_read_dyld_info): Likewise.
10375 (darwin_xfer_partial): Likewise.
10376 * exec.c (section_table_xfer_memory_partial): Likewise.
10377 (exec_xfer_partial): Likewise.
10378 * exec.h (section_table_xfer_memory_partial): Update
10380 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10381 instead of plongest.
10382 (gnu_xfer_partial): Likewise.
10383 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10384 (ia64_hpux_xfer_solib_got): Likewise.
10385 (ia64_hpux_xfer_partial): Likewise.
10386 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10387 * inf-ptrace.c (inf_ptrace_xfer_partial):
10388 * inf-ttrace.c (inf_ttrace_xfer_partial):
10389 * linux-nat.c (linux_xfer_siginfo): Likewise.
10390 (linux_nat_xfer_partial): Likewise.
10391 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10392 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10393 * monitor.c (monitor_xfer_memory): Likewise.
10394 (monitor_xfer_partial): Likewise.
10395 * procfs.c (procfs_xfer_partial): Likewise.
10396 * record-full.c (record_full_xfer_partial): Likewise.
10397 (record_full_core_xfer_partial): Likewise.
10398 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10399 instead of plongest.
10400 (gdbsim_xfer_partial): Likewise.
10401 * remote.c (remote_xfer_partial): Likewise.
10402 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10403 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10405 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10406 (rs6000_xfer_shared_libraries): Likewise.
10407 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10408 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10409 (sparc_xfer_partial): Likewise.
10410 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10411 (spu_xfer_partial): Likewise.
10412 * spu-multiarch.c (spu_xfer_partial): Likewise.
10413 * target.c (target_read_live_memory): Likewise.
10414 (memory_xfer_live_readonly_partial): Likewise.
10415 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10416 (target_xfer_partial, default_xfer_partial): Likewise.
10417 (current_xfer_partial): Likewise.
10418 * tracepoint.c (tfile_xfer_partial): Likewise.
10419 * windows-nat.c (windows_xfer_memory): Likewise. Call
10420 pulongest instead of plongest.
10421 (windows_xfer_partial): Likewise.
10422 (windows_xfer_shared_libraries): Likewise.
10424 2014-01-14 Yao Qi <yao@codesourcery.com>
10426 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10427 target_xfer_partial_ftype.
10429 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10433 * valops.c (value_struct_elt_bitpos): New function
10434 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10435 object to 'None' if the field name is an empty string ("").
10436 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10437 attribute to look for a field when 'name' is 'None'.
10438 (get_field_type): New function
10440 2014-01-13 Doug Evans <dje@google.com>
10443 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10444 (try_open_dwop_file): Ditto.
10445 * gdb_bfd.c: #include "vec.h".
10446 (bfdp): New typedef.
10447 (struct gdb_bfd_data): New member included_bfds.
10448 (gdb_bfd_unref): Unref all included bfds.
10449 (gdb_bfd_record_inclusion): New function.
10450 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10452 2014-01-13 Tom Tromey <tromey@redhat.com>
10454 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10456 2014-01-13 Tom Tromey <tromey@redhat.com>
10458 * defs.h (use_windows): Remove.
10459 * gdb.c (main): Update.
10460 * main.c (captured_main, gdb_main): Update.
10461 * main.h (struct captured_main_args) <use_windows>: Remove.
10462 * top.c (use_windows): Remove.
10464 2014-01-13 Tom Tromey <tromey@redhat.com>
10466 * defs.h (deprecated_flush_hook): Remove.
10468 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10471 * linux-thread-db.c (try_thread_db_load): Add parameter
10472 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10473 (try_thread_db_load_from_pdir_1): Move it there from here.
10474 (try_thread_db_load_from_sdir): Update caller.
10475 (try_thread_db_load_from_dir): Move it there from here.
10477 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10479 * regformats/regdat.sh: Always rewrite the register file.
10481 2014-01-13 Pedro Alves <palves@redhat.com>
10483 * Makefile.in (CHECK_HEADERS): New variable.
10484 (check-headers:): New rule.
10486 2014-01-13 Tom Tromey <tromey@redhat.com>
10488 * cli/cli-setshow.c (do_set_command): Update.
10489 * defs.h (deprecated_set_hook): Remove.
10490 * top.c (deprecated_set_hook): Remove.
10492 2014-01-13 Pedro Alves <palves@redhat.com>
10494 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10495 the tracepoint if the PC is a pseudo-register.
10497 2014-01-13 Tom Tromey <tromey@redhat.com>
10499 * defs.h (XCALLOC): Remove.
10500 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10501 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10502 * dwarf2loc.c (allocate_piece_closure): Likewise.
10503 * elfread.c (elf_symfile_segments): Likewise.
10504 (elf_symfile_segments): Likewise.
10505 * gdbtypes.c (copy_type_recursive): Likewise.
10506 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10507 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10508 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10510 * mt-tdep.c (mt_gdbarch_init): Likewise.
10511 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10513 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10514 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10515 * registry.c (registry_alloc_data): Likewise.
10516 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10517 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10518 * serial.c (serial_fdopen_ops): Likewise.
10519 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10521 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10522 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10525 2014-01-13 Tom Tromey <tromey@redhat.com>
10527 * defs.h (XMALLOC): Remove.
10528 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10529 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10530 * cli-out.c (struct ui_out *): Likewise.
10531 * cli/cli-dump.c (add_dump_command): Likewise.
10532 (add_dump_command): Likewise.
10533 * complaints.c (get_complaints): Likewise.
10534 (find_complaint): Likewise.
10535 * dwarf2-frame.c (execute_cfa_program): Likewise.
10536 * dwarf2read.c (abbrev_table_read_table): Likewise.
10537 * gdbarch.sh: Likewise.
10538 * gdbarch.c: Rebuild.
10539 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10540 * interps.c (interp_new): Likewise.
10541 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10542 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10543 * mi/mi-console.c (mi_console_file_new): Likewise.
10544 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10545 * mi/mi-out.c (mi_out_new): Likewise.
10546 * mi/mi-parse.c (mi_parse): Likewise.
10547 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10548 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10549 * observer.c (xalloc_observer_list_node): Likewise.
10550 * regcache.c (regcache_xmalloc_1): Likewise.
10551 * reggroups.c (reggroup_new): Likewise.
10552 (_initialize_reggroup): Likewise.
10553 * registry.c (register_data_with_cleanup): Likewise.
10554 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10555 * ser-base.c (serial_ttystate): Likewise.
10556 * ser-mingw.c (make_pipe_state): Likewise.
10557 * ser-pipe.c (pipe_open): Likewise.
10558 * serial.c (serial_open): Likewise.
10559 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10560 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10561 (tui_alloc_win_info): Likewise.
10562 (tui_add_content_elements): Likewise.
10563 * tui/tui-file.c (tui_file_new): Likewise.
10564 * tui/tui-out.c (tui_out_new): Likewise.
10565 * ui-file.c (mem_file_new): Likewise.
10566 * ui-out.c (push_level): Likewise.
10567 (make_cleanup_ui_out_end): Likewise.
10568 (append_header_to_list): Likewise.
10569 (ui_out_new): Likewise.
10570 * user-regs.c (user_reg_add_builtin): Likewise.
10572 2014-01-13 Tom Tromey <tromey@redhat.com>
10574 * defs.h (XZALLOC): Remove.
10575 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10576 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10577 (get_ada_tasks_inferior_data): Likewise.
10578 * auto-load.c (get_auto_load_pspace_data): Likewise.
10579 * auxv.c (get_auxv_inferior_data): Likewise.
10580 * bfd-target.c (target_bfd_reopen): Likewise.
10581 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10582 (deprecated_insert_raw_breakpoint): Likewise.
10583 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10584 * corelow.c (core_open): Likewise.
10585 * darwin-nat.c (darwin_check_new_threads): Likewise.
10586 (darwin_attach_pid): Likewise.
10587 * dummy-frame.c (dummy_frame_push): Likewise.
10588 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10589 * dwarf2loc.c (allocate_piece_closure): Likewise.
10590 * elfread.c (elf_symfile_segments): Likewise.
10591 * eval.c (ptrmath_type_p): Likewise.
10592 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10593 * gdbtypes.c (alloc_type_arch): Likewise.
10594 (alloc_type_instance): Likewise.
10595 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10596 * inf-child.c (inf_child_can_use_agent): Likewise.
10597 * inflow.c (get_inflow_inferior_data): Likewise.
10598 * infrun.c (save_infcall_suspend_state): Likewise.
10599 * jit.c (jit_reader_load): Likewise.
10600 (get_jit_objfile_data): Likewise.
10601 (get_jit_program_space_data): Likewise.
10602 (jit_object_open_impl): Likewise.
10603 (jit_symtab_open_impl): Likewise.
10604 (jit_block_open_impl): Likewise.
10605 (jit_frame_sniffer): Likewise.
10606 * linux-fork.c (add_fork): Likewise.
10607 * maint.c (make_command_stats_cleanup): Likewise.
10608 * objfiles.c (get_objfile_pspace_data): Likewise.
10609 * opencl-lang.c (struct lval_closure): Likewise.
10610 * osdata.c (osdata_start_osdata): Likewise.
10611 * progspace.c (new_address_space): Likewise.
10612 (add_program_space): Likewise.
10613 * remote-sim.c (get_sim_inferior_data): Likewise.
10614 * sh-tdep.c (sh_gdbarch_init): Likewise.
10615 * skip.c (Ignore): Likewise.
10616 (skip_delete_command): Likewise.
10617 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10618 (library_list_start_library): Likewise.
10619 (solib_aix_current_sos): Likewise.
10620 * solib-darwin.c (get_darwin_info): Likewise.
10621 (darwin_current_sos): Likewise.
10622 * solib-dsbt.c (get_dsbt_info): Likewise.
10623 * solib-ia64-hpux.c (new_so_list): Likewise.
10624 (ia64_hpux_get_solib_linkage_addr): Likewise.
10625 * solib-spu.c (append_ocl_sos): Likewise.
10626 (spu_current_sos): Likewise.
10627 * solib-svr4.c (get_svr4_info): Likewise.
10628 (svr4_keep_data_in_core): Likewise.
10629 (library_list_start_library): Likewise.
10630 (svr4_default_sos): Likewise.
10631 (svr4_read_so_list): Likewise.
10632 * solib-target.c (library_list_start_library): Likewise.
10633 (solib_target_current_sos): Likewise.
10634 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10635 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10636 * symfile.c (default_symfile_segments): Likewise.
10637 * target-descriptions.c (tdesc_data_init): Likewise.
10638 (tdesc_create_reg): Likewise.
10639 (struct tdesc_type *): Likewise.
10640 (tdesc_create_vector): Likewise.
10641 (tdesc_set_struct_size): Likewise.
10642 (struct tdesc_type *): Likewise.
10643 (tdesc_free_feature): Likewise.
10644 (tdesc_create_feature): Likewise.
10645 * windows-nat.c (windows_add_thread): Likewise.
10646 (windows_make_so): Likewise.
10647 * xml-support.c (gdb_xml_body_text): Likewise.
10648 (gdb_xml_create_parser_and_cleanup): Likewise.
10649 (xml_process_xincludes): Likewise.
10650 * xml-syscall.c (allocate_syscalls_info): Likewise.
10651 (syscall_create_syscall_desc): Likewise.
10653 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10655 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10656 function, with code from i386_stap_parse_special_token.
10657 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10658 (i386_stap_parse_special_token): Move code to the two functions
10659 above; simplify it.
10661 2014-01-09 Pedro Alves <palves@redhat.com>
10662 Hui Zhu <hui@codesourcery.com>
10665 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10666 bp_err_string. Don't mark the location shlib_disabled if the
10667 error thrown wasn't a generic or memory error. Catch errors
10668 thrown while inserting breakpoints in overlayed code. Output
10669 error message of software breakpoints.
10670 * remote.c (remote_insert_breakpoint): If this breakpoint has
10671 target-side commands but this stub doesn't support Z0 packets,
10672 throw NOT_SUPPORTED_ERROR error.
10673 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10674 * target.h (target_insert_breakpoint): Extend comment.
10675 (target_insert_hw_breakpoint): Add comment.
10677 2014-01-08 Pedro Alves <palves@redhat.com>
10679 * remote.c (remote_add_thread): Add threads silently if starting
10681 (remote_notice_new_inferior): If in all-stop, and starting up,
10682 don't call notice_new_inferior.
10683 (get_current_thread): New function, factored out from ...
10684 (add_current_inferior_and_thread): ... this. Adjust.
10685 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10686 found any thread, then select the remote's current thread as GDB's
10687 current thread too.
10689 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10691 * NEWS: Create a new section for the next release branch.
10692 Rename the section of the current branch, now that it has
10695 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10697 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10698 * version.in: Bump version to 7.7.50.DATE-cvs.
10700 2014-01-08 Yao Qi <yao@codesourcery.com>
10702 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10703 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10704 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10706 2014-01-08 Yao Qi <yao@codesourcery.com>
10708 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10709 return value of bfd_get_filename to symbol_file_add_from_bfd.
10711 2014-01-08 Pierre Muller <muller@sourceware.org>
10714 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10715 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10716 to prim_record_mininal_symbol_and_info.
10717 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10718 in call to prim_record_minimal_symbol_and_info.
10719 (read_pe_exported_syms): Set index field of section_data.
10721 2014-01-07 Andrew Pinski <apinski@cavium.com>
10723 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10724 * features/aarch64.c: Regenerate.
10726 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10728 * target.c (return_null): Define.
10729 (update_current_target): Use it instead of return_zero for
10730 functions that return a pointer.
10732 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10734 * source.c (add_path): Fix check for duplicated paths in the previously
10737 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10739 * ada-lang.c: Remove duplicated include statements.
10740 * alphabsd-nat.c: Ditto.
10741 * amd64-darwin-tdep.c: Ditto.
10742 * amd64fbsd-nat.c: Ditto.
10743 * auto-load.c: Ditto.
10745 * breakpoint.c: Ditto.
10746 * dbxread.c: Ditto.
10747 * fork-child.c: Ditto.
10748 * gdb_usleep.c: Ditto.
10749 * i386-darwin-tdep.c: Ditto.
10750 * i386fbsd-nat.c: Ditto.
10752 * inferior.c: Ditto.
10753 * jv-lang.c: Ditto.
10754 * linux-nat.c: Ditto.
10755 * linux-tdep.c: Ditto.
10756 * m68kbsd-nat.c: Ditto.
10757 * m68klinux-nat.c: Ditto.
10758 * microblaze-tdep.c: Ditto.
10759 * mips-linux-tdep.c: Ditto.
10760 * mn10300-tdep.c: Ditto.
10761 * nto-tdep.c: Ditto.
10762 * opencl-lang.c: Ditto.
10764 * printcmd.c: Ditto.
10765 * regcache.c: Ditto.
10766 * remote-m32r-sdi.c: Ditto.
10768 * symfile.c: Ditto.
10770 * tilegx-linux-nat.c: Ditto.
10771 * tilegx-tdep.c: Ditto.
10772 * tracepoint.c: Ditto.
10774 * vaxbsd-nat.c: Ditto.
10775 * windows-nat.c: Ditto.
10776 * xtensa-tdep.c: Ditto.
10778 2014-01-07 Yao Qi <yao@codesourcery.com>
10780 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10782 2014-01-07 Yao Qi <yao@codesourcery.com>
10783 Joel Brobecker <brobecker@adacore.com>
10785 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10786 (pdc_write_regs): Likewise.
10787 (fetch_regs_kernel_thread): Likewise.
10788 (store_regs_kernel_thread): Likewise.
10790 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10792 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10793 tagged type objects to their actual type.
10795 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10797 * ada-valprint.c (print_field_values): Add "language" parameter.
10798 Update calls to print_field_values and print_variant_part.
10799 Pass new parameter "language" in call to val_print instead
10800 of "current_language". Replace call to ada_val_print by call
10802 (print_variant_part): Add "language" parameter.
10803 (ada_val_print_struct_union): Update call to print_field_values.
10805 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10807 * ada-valprint.c (ui_memcpy): Delete.
10808 (ada_print_floating): Update documentation. Add empty line
10809 between between function documentation and implementation.
10810 Delete variable "buffer". Use ui_file_xstrdup in place of
10811 ui_file_put. Minor adjustments following this change.
10813 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10815 * ada-valprint.c (ada_val_print_string): New function,
10816 extracted from ada_val_print_array.
10817 (ada_val_print_array): Replace extracted code by call
10818 to ada_val_print_string followed by a return. Move
10819 "else" branch to the function's top block.
10821 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10823 * ada-valprint.c (ada_val_print_array): Move implementation
10824 down. Rename parameter "offset" and "val" into "offset_aligned"
10825 and "original_value" respectively. Add parameter "offset".
10827 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10829 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10830 re-organizing the code. Change the "???" message printed
10831 when target type is a TYPE_CODE_UNDEF into
10832 "<ref to undefined type>".
10834 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10836 * ada-valprint.c (print_record): Delete, implementation inlined...
10837 (ada_val_print_struct_union): ... here. Remove call to
10838 ada_check_typedef in inlined implementation.
10840 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10842 * ada-valprint.c (ada_val_print_gnat_array): New function,
10843 extracted from ada_val_print_1;
10844 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10845 (ada_val_print_flt, ada_val_print_struct_union)
10846 (ada_val_print_ref): Likewise.
10847 (ada_val_print_1): Delete variables i and elttype.
10848 Replace extracted-out code by call to corresponding
10851 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10853 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10855 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10857 * ada-valprint.c (ada_val_print_1): Replace calls to
10858 ada_val_print_1 by calls to val_print.
10860 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10862 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10863 Update calls to self accordingly. Replace calls to c_val_print
10864 by calls to val_print.
10866 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10868 * ada-valprint.c (print_record): Delete declaration.
10869 (adjust_type_signedness, ada_val_print_1): Likewise.
10870 (ada_val_print): Move function implementation down.
10871 (print_variant_part, print_field_values, print_record):
10872 Move function implementation up.
10874 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10876 * python/py-type.c (typy_get_name): New function.
10877 (type_object_getset): Add entry for attribute "name".
10878 * NEWS: Add entry mentioning this new attribute.
10880 2014-01-07 Yao Qi <yao@codesourcery.com>
10882 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10885 2014-01-07 Yao Qi <yao@codesourcery.com>
10887 * gnu-nat.c (info_port_rights): Add qualifier const to
10890 2014-01-07 Yao Qi <yao@codesourcery.com>
10892 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10894 2014-01-07 Yao Qi <yao@codesourcery.com>
10896 * gnu-nat.c (make_inf) Update declaration.
10897 (make_inf): Make it static.
10898 (inf_set_traced): Likewise.
10899 (inf_port_to_thread, inf_task_died_status): Likewise.
10901 2014-01-07 Yao Qi <yao@codesourcery.com>
10903 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10905 2014-01-07 Yao Qi <yao@codesourcery.com>
10907 * gnu-nat.c (_initialize_gnu_nat): Declare.
10909 2014-01-07 Yao Qi <yao@codesourcery.com>
10911 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10913 (struct gdbarch_info) <byte_order>: Change type to
10915 <byte_order_for_code>: Likewise.
10916 * gdbarch.c, gdbarch.h: Regenerated.
10918 2014-01-06 Sasha Smundak <asmundak@google.com>
10920 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10922 2014-01-06 Tom Tromey <tromey@redhat.com>
10924 * doublest.c (convert_doublest_to_floatformat): Use const, not
10926 * somread.c (som_symtab_read): Likewise.
10928 2014-01-07 Hui Zhu <hui@codesourcery.com>
10930 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10931 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10932 (gdb_bfd_fopen): Ditto.
10933 (gdb_bfd_openr): Ditto.
10934 (gdb_bfd_openw): Ditto.
10935 (gdb_bfd_openr_iovec): Ditto.
10936 (gdb_bfd_fdopenr): Ditto.
10937 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10938 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10940 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10942 * symfile-mem.c (symbol_file_add_from_memory): Removed
10943 gdb_bfd_stash_filename.
10945 2014-01-03 Doug Evans <dje@google.com>
10947 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10950 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10952 Update year range in copyright notice of all files.
10954 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10956 * top.c (print_gdb_version): Set copyright year to 2014.
10958 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10960 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10962 For older changes see ChangeLog-2013.
10968 version-control: never