1 2014-07-27 Doug Evans <xdje42@gmail.com>
3 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5 2014-07-27 Doug Evans <xdje42@gmail.com>
7 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
9 2014-07-26 Ludovic Courtès <ludo@gnu.org>
10 Doug Evans <xdje42@gmail.com>
13 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
14 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
15 * configure.ac: Try to use guild to compile an scm file, if it fails
16 then disable guile support.
17 * configure: Regenerate.
18 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
20 (GUILE_COMPILED_FILES): New variable.
22 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
23 (stamp-guile): Compile scm files.
24 * guile/guile.c (boot_guile_support): New function.
25 (standard_throw_args_p): New function.
26 (print_standard_throw_error, print_throw_error): New functions.
27 (handle_boot_error): New function.
28 (initialize_scheme_side): Rewrite to call boot_guile_support.
29 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
30 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
32 2014-07-26 Ludovic Courtès <ludo@gnu.org>
33 Doug Evans <xdje42@gmail.com>
36 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
37 * guile/lib/gdb/support.scm: New file.
38 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
39 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
41 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
43 (%assert-type): Ditto, and renamed to assert-type.
44 (%exception-print-style): Delete.
46 2014-07-26 Doug Evans <xdje42@gmail.com>
49 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
50 * configure: Regenerate.
51 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
53 (PYTHON_FILES): New variable.
54 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
55 (GUILE_FILES): New variable.
56 (stamp-python, install-python, uninstall-python): Handle empty
58 (stamp-guile, install-guile, uninstall-guile): Ditto.
60 2014-07-26 Doug Evans <xdje42@gmail.com>
63 * guile/lib/gdb.scm (pretty-printers): Export.
64 (set-pretty-printers!): Export.
65 * guile/lib/gdb/printing.scm (gdb module): Update.
66 (prepend-pretty-printer!, append-pretty-printer!): Update.
67 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
68 (pretty_printer_list_var): Delete.
69 (pretty_printer_list): New static global.
70 (gdbscm_pretty_printers): New function.
71 (gdbscm_set_pretty_printers_x): New function.
72 (ppscm_find_pretty_printer_from_gdb): Update.
73 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
74 (gdbscm_initialize_pretty_printers): Update.
76 2014-07-26 Doug Evans <xdje42@gmail.com>
79 * configure.ac: Add check for header gc/gc.h.
80 Add check for function setenv.
81 * configure: Regenerate.
82 * config.in: Regenerate.
83 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
85 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
87 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
88 variation in gdbarch matching.
90 2014-07-25 Tom Tromey <tromey@redhat.com>
92 * exec.c (using_exec_ops): Remove.
93 (exec_close_1): Update. Remove extraneous block, reindent.
94 (add_target_sections): Use target_is_pushed.
96 2014-07-25 Pedro Alves <palves@redhat.com>
98 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
99 * monitor.c (monitor_create_inferior): Likewise.
100 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
101 * remote-sim.c (gdbsim_create_inferior): Likewise.
102 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
103 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
104 * windows-nat.c (do_initial_windows_stuff): Likewise.
106 2014-07-25 Pedro Alves <palves@redhat.com>
108 * NEWS: Mention signal passing and "signal" command changes.
109 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
111 * breakpoint.c (until_break_command): Adjust clear_proceed_status
113 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
114 * infcmd.c (proceed_thread_callback, continue_1, step_once)
115 (jump_command): Adjust clear_proceed_status call.
116 (signal_command): Warn if other thread that are resumed have
117 signals that will be delivered. Adjust clear_proceed_status call.
118 (until_next_command, finish_command)
119 (proceed_after_attach_callback, attach_command_post_wait)
120 (attach_command): Adjust clear_proceed_status call.
121 * infrun.c (proceed_after_vfork_done): Likewise.
122 (proceed_after_attach_callback): Adjust comment.
123 (clear_proceed_status_thread): Clear stop_signal if not in pass
125 (clear_proceed_status_callback): Delete.
126 (clear_proceed_status): New 'step' parameter. Only clear the
127 proceed status of threads the command being prepared is about to
129 (proceed): If passed in an explicit signal, override stop_signal
130 with it. Don't pass the last stop signal to the thread we're
132 (init_wait_for_inferior): Adjust clear_proceed_status call.
133 (switch_back_to_stepped_thread): Clear the signal if it should not
135 * infrun.h (clear_proceed_status): New 'step' parameter.
136 (user_visible_resume_ptid): Add comment.
137 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
138 signal is in pass state.
139 * remote.c (append_pending_thread_resumptions): Likewise.
140 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
142 2014-07-25 Tom Tromey <tromey@redhat.com>
144 * target.h (target_stopped_data_address)
145 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
148 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
150 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
152 (avr_pointer_to_address): Likewise.
154 2014-07-24 Tom Tromey <tromey@redhat.com>
156 * monitor.c (compile_pattern): Update.
157 * target.h (struct target_ops) <to_shortname, to_longname,
160 2014-07-24 Tom Tromey <tromey@redhat.com>
162 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
163 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
164 (add_info_alias, add_com): Make "doc" const.
165 (print_doc_line): Make "str" const.
166 (delete_cmd): Update.
167 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
168 (print_doc_line): Update.
169 * cli/cli-script.c (document_command): Update.
170 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
171 (add_com, add_info, add_info_alias): Update.
172 * guile/scm-cmd.c (cmdscm_destroyer): Update.
173 * python/py-cmd.c (cmdpy_destroyer): Update.
175 2014-07-24 Tom Tromey <tromey@redhat.com>
177 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
178 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
179 (help_cmd_list): Constify.
180 (lookup_cmd): Update.
181 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
183 (help_cmd_list, apropos_cmd): Update.
184 * cli/cli-script.c (show_user): Update.
185 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
186 * cli/cli-setshow.h (cmd_show_list): Update.
187 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
188 (cmd_show_list): Update.
189 * guile/scm-cmd.c (cmdscm_destroyer): Update.
190 * python/py-cmd.c (cmdpy_destroyer): Update.
192 2014-07-24 Tom Tromey <tromey@redhat.com>
194 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
195 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
197 * command.h (deprecate_cmd): Update.
198 * maint.c (maintenance_do_deprecate): Add casts.
200 2014-07-24 Tom Tromey <tromey@redhat.com>
202 * cli/cli-decode.c (help_cmd): Make parameter "const".
203 * cli/cli-decode.h (help_cmd): Update.
205 2014-07-24 Tom Tromey <tromey@redhat.com>
207 * stack.c (up_silently_base, down_silently_base): Make argument
210 2014-07-24 Tom Tromey <tromey@redhat.com>
212 * solib.c (solib_add): Make "pattern" const.
213 * solib.h (solib_add): Update.
215 2014-07-24 Tom Tromey <tromey@redhat.com>
217 * remote.c (remote_serial_open, print_packet, putpkt)
218 (putpkt_binary): Constify.
219 * remote.h (putpkt): Update.
221 2014-07-24 Tom Tromey <tromey@redhat.com>
223 * monitor.c (monitor_open): Make "args" const.
224 * monitor.h (monitor_open): Update.
226 2014-07-24 Tom Tromey <tromey@redhat.com>
228 * maint.c (match_bfd_flags): Make "string" const.
229 (print_bfd_section_info): Remove casts.
230 (print_objfile_section_info): Make "string" const.
232 2014-07-24 Tom Tromey <tromey@redhat.com>
234 * inf-child.c (inf_child_open_target): Make "arg" const.
235 * inf-child.h (inf_child_open_target): Update.
237 2014-07-24 Tom Tromey <tromey@redhat.com>
239 * environ.c (unset_in_environ): Make "var" const.
240 * environ.h (unset_in_environ): Update.
242 2014-07-24 Tom Tromey <tromey@redhat.com>
244 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
246 (scan_filename_with_cleanup): Likewise.
247 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
248 Make arguments const.
249 (restore_command): Update.
251 2014-07-24 Pedro Alves <palves@redhat.com>
253 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
255 2014-07-24 Tom Tromey <tromey@redhat.com>
256 Gary Benson <gbenson@redhat.com>
258 * nat/linux-ptrace.c (additional_flags): New global.
259 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
260 additional_flags; don't check GDBSERVER.
261 (linux_ptrace_set_additional_flags): New function.
262 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
264 * linux-nat.c (_initialize_linux_nat): Call
265 linux_ptrace_set_additional_flags.
267 2014-07-24 Tom Tromey <tromey@redhat.com>
269 * make-target-delegates (munge_type, write_debugmethod): New
271 (debug_names): New global.
272 ($TARGET_DEBUG_PRINTER): New global.
273 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
275 Write debug methods. Generate init_debug_target.
276 * target-debug.h: New file.
277 * target-delegates.c: Rebuild.
278 * target.c: Include target-debug.h.
279 (debug_target): Hoist definition.
280 (target_kill, target_get_section_table, target_memory_map)
281 (target_flash_erase, target_flash_done, target_detach)
282 (target_disconnect, target_wait, target_resume)
283 (target_pass_signals, target_program_signals, target_follow_fork)
284 (target_mourn_inferior, target_search_memory)
285 (target_thread_address_space, target_close)
286 (target_find_new_threads, target_core_of_thread)
287 (target_verify_memory, target_insert_mask_watchpoint)
288 (target_remove_mask_watchpoint): Remove targetdebug code.
289 (debug_to_post_attach, debug_to_prepare_to_store)
290 (debug_to_files_info, debug_to_insert_breakpoint)
291 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
292 (debug_to_region_ok_for_hw_watchpoint)
293 (debug_to_can_accel_watchpoint_condition)
294 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
295 (debug_to_watchpoint_addr_within_range)
296 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
297 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
298 (debug_to_terminal_init, debug_to_terminal_inferior)
299 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
300 (debug_to_terminal_save_ours, debug_to_terminal_info)
301 (debug_to_load, debug_to_post_startup_inferior)
302 (debug_to_insert_fork_catchpoint)
303 (debug_to_remove_fork_catchpoint)
304 (debug_to_insert_vfork_catchpoint)
305 (debug_to_remove_vfork_catchpoint)
306 (debug_to_insert_exec_catchpoint)
307 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
308 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
309 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
310 (setup_target_debug): Call init_debug_target.
311 * target.h (TARGET_DEBUG_PRINTER): New macro.
312 (struct target_ops) <to_resume, to_wait, to_pass_signals,
313 to_program_signals>: Use TARGET_DEBUG_PRINTER.
315 2014-07-24 Gary Benson <gbenson@redhat.com>
317 * exceptions.h (throw_vfatal): Renamed to...
318 (throw_vquit): New declaration.
319 (throw_quit): Likewise.
320 * exceptions.c (throw_vfatal): Renamed to...
321 (throw_vquit): New function.
322 (throw_quit): Likewise.
323 (throw_error): Call throw_verror rather than throw_it.
324 * utils.h (vfatal): Removed.
326 * utils.c (vfatal): Removed.
328 (internal_verror): Replaced call to fatal with call to throw_quit.
329 (quit): Replaced calls to fatal with calls to throw_quit.
331 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
333 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
336 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
338 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
339 less than zero in conditional expression.
341 2014-07-23 Tom Tromey <tromey@redhat.com>
343 * make-target-delegates ($ARGS_PART): Match trailing close paren.
344 ($INTRO_PART): Don't match whitespace.
345 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
347 ($METHOD): Add $METHOD_TRAILER.
349 (scan_target_h): New sub.
350 Change main loop not to collect state.
351 * target-delegates.c: Rebuild.
353 2014-07-23 Gary Benson <gbenson@redhat.com>
355 * cp-support.c (gdb_demangle): Fix build on systems without
358 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
360 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
361 for reference entry value target data value.
363 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
365 * stack.c (read_frame_arg): Verify value_optimized_out before calling
366 value_available_contents_eq.
368 2014-07-22 Pedro Alves <palves@redhat.com>
370 * value.c (allocate_optimized_out_value): Don't mark value as
373 2014-07-22 Jiong Wang <jiong.wang@arm.com>
375 * MAINTAINERS (Write After Approval): Update my email address.
377 2014-07-20 Doug Evans <dje@google.com>
380 * remote.c (putpkt_binary): Add text to error message.
382 2014-07-20 Yao Qi <yao@codesourcery.com>
384 * eval.c: Remove "Chill" from comments.
385 * gdbtypes.h: Likewise.
386 * symtab.h: Likewise.
388 2014-07-20 Yao Qi <yao@codesourcery.com>
390 * std-operator.def: Update comments to TERNOP_SLICE.
392 2014-07-20 Yao Qi <yao@codesourcery.com>
394 * std-operator.def: Remove BINOP_RANGE.
395 * breakpoint.c (watchpoint_exp_is_const): Update.
396 * expprint.c (dump_subexp_body_standard): Likewise.
397 * eval.c (init_array_element): Remove dead code.
398 (evaluate_subexp_standard): Likewise.
400 2014-07-20 Yao Qi <yao@codesourcery.com>
402 * std-operator.def: Remove BINOP_IN.
403 * breakpoint.c (watchpoint_exp_is_const): Update.
404 * eval.c (evaluate_subexp_standard): Likewise.
405 * expprint.c (dump_subexp_body_standard): Likewise.
407 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
409 * microblaze-tdep.c (microblaze_register_names): Add
410 the rshr and rslr register names.
411 (microblaze_gdbarch_init): Use of tdesc_has_registers.
412 Use of tdesc_find_feature. Use of tdesc_data_alloc.
413 Use of tdesc_numbered_register. Use of
414 microblaze_register_g_packet_guesses. Use of
415 tdesc_use_registers. Use of set_gdbarch_register_type.
416 (microblaze_register_g_packet_guesses): New.
417 * microblaze-tdep.h (microblaze_reg_num): Add
418 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
419 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
420 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
421 * features/microblaze-core.xml: New file.
422 * features/microblaze-stack-protect.xml: New file.
423 * features/microblaze-with-stack-protect.c: New file.
424 * features/microblaze-with-stack-protect.xml: New file.
425 * features/microblaze.xml: New file.
426 * features/microblaze.c: New file.
427 * features/Makefile (microblaze-with-stack-protect): Add
428 microblaze-with-stack-protect microblaze and microblaze-expedite.
429 * regformats/microblaze-with-stack-protect.dat: New file.
430 * regformats/microblaze.dat: New file.
431 * doc/gdb.texinfo (MicroBlaze Features): Added.
433 2014-07-18 Tom Tromey <tromey@redhat.com>
435 * exec.c (exec_ops): Now static.
436 * exec.h (exec_ops): Don't declare.
438 2014-07-18 Tom Tromey <tromey@redhat.com>
440 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
441 to find_target_beneath.
442 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
444 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
446 2014-07-18 Tom Tromey <tromey@redhat.com>
449 * utils.c (quit): Use target_supports_terminal_ours.
450 * target.h (target_supports_terminal_ours): Declare.
451 * target.c (target_supports_delete_record): Don't check
452 to_delete_record against NULL.
453 (target_supports_terminal_ours): New function.
455 2014-07-18 Tom Tromey <tromey@redhat.com>
458 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
459 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
460 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
461 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
462 * windows-nat.c (windows_xfer_partial): Always delegate.
463 * record-btrace.c (record_btrace_xfer_partial): Simplify
465 (record_btrace_fetch_registers, record_btrace_store_registers)
466 (record_btrace_prepare_to_store, record_btrace_resume)
467 (record_btrace_wait, record_btrace_find_new_threads)
468 (record_btrace_thread_alive): Likewise.
469 * procfs.c (procfs_xfer_partial): Always delegate.
470 * corelow.c (core_xfer_partial): Always delegate.
471 * sol-thread.c (sol_find_new_threads): Simplify delegation.
473 2014-07-18 Tom Tromey <tromey@redhat.com>
475 * exec.c (exec_make_note_section): Move earlier.
477 2014-07-17 Doug Evans <dje@google.com>
480 * maint.c (count_symtabs_and_blocks): Handle NULL
481 current_program_space.
482 (report_command_stats): Check global enabled flag in addition to
483 recorded enabled flag.
484 (make_command_stats_cleanup): Handle msg_type == 0, startup.
486 2014-07-16 Pedro Alves <palves@redhat.com>
488 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
490 2014-07-16 Tom Tromey <tromey@redhat.com>
492 * target.h (struct target_ops) <to_delete_record>: Reformat
495 2014-07-16 Tom Tromey <tromey@redhat.com>
497 * target-delegates.c: Rebuild.
499 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
501 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
502 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
503 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
504 (avr_pointer_to_address): Likewise.
505 (avr_address_class_type_flags): New function.
506 (avr_address_class_type_flags_to_name): Likewise.
507 (avr_address_class_name_to_type_flags): Likewise.
508 (avr_gdbarch_init): Set address_class_type_flags,
509 address_class_type_flags_to_name and
510 address_class_name_to_type_flags.
512 2014-07-15 Pedro Alves <palves@redhat.com>
514 * linux-nat.c (kill_callback): Save errno and work with saved
517 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
519 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
521 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
523 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
524 breakpoint support correctly.
526 2014-07-14 Pedro Alves <palves@redhat.com>
528 * utils.c (prompt_for_continue): Call target_terminal_ours.
530 2014-07-14 Pedro Alves <palves@redhat.com>
532 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
533 catch_errors. Don't re-enable stdin or notify observers where,
535 (fetch_inferior_event_wrapper): Delete.
537 2014-07-14 Pedro Alves <palves@redhat.com>
540 * top.c: Include "inf-loop.h".
541 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
543 (gdb_readline_wrapper_cleanup): Make the target async again, if it
545 (gdb_readline_wrapper): Store whether the target is async, and
548 2014-07-14 Pedro Alves <palves@redhat.com>
551 * top.c (gdb_readline_wrapper_line): Tweak comment.
552 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
553 the input handler callback.
555 2014-07-14 Pedro Alves <palves@redhat.com>
558 * main.c: Include event-top.h.
559 (handle_command_errors): New function.
560 (catch_command_errors, catch_command_errors_const): Use it.
562 2014-07-14 Pedro Alves <palves@redhat.com>
564 * exceptions.c (catch_command_errors, catch_command_errors_const):
566 * exceptions.h (catch_command_errors_ftype)
567 (catch_command_errors_const_ftype): Moved to main.c.
568 (catch_command_errors, catch_command_errors_const): Delete
570 * main.c (catch_command_errors_ftype)
571 (catch_command_errors_const_ftype): Moved here from exceptions.h.
572 (catch_command_errors, catch_command_errors_const)): Moved here
573 from exceptions.c and make static.
575 2014-07-14 Pedro Alves <palves@redhat.com>
577 * exceptions.c (print_any_exception): Delete.
578 (catch_exceptions_with_msg): Use exception_print instead of
580 (catch_errors): Use exception_fprintf instead of
582 (catch_command_errors, catch_command_errors_const): Use
583 exception_print instead of print_any_exception.
585 2014-07-14 Pedro Alves <palves@redhat.com>
587 * infcall.c (run_inferior_call): Set 'sync_execution' while
588 running the inferior call.
590 2014-07-14 Pedro Alves <palves@redhat.com>
592 * value.c (value_contents_equal): Delete function.
593 * value.h (value_contents_equal): Delete declaration.
595 2014-07-14 Tom Tromey <tromey@redhat.com>
598 * gdbtypes.c (is_dynamic_type_internal): New function, from
600 (is_dynamic_type): Rewrite.
601 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
602 (resolve_dynamic_struct): Likewise.
603 (resolve_dynamic_type_internal): New function, from
604 resolve_dynamic_type.
605 (resolve_dynamic_type): Rewrite.
607 2014-07-14 Tom Tromey <tromey@redhat.com>
609 * target.c (target_require_runnable): Also check record_stratum.
612 2014-07-11 Yao Qi <yao@codesourcery.com>
614 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
615 thumb_instruction_restores_sp return true.
617 2014-07-11 Yao Qi <yao@codesourcery.com>
619 * arm-tdep.c (thumb_instruction_restores_sp): New function.
620 (thumb_in_function_epilogue_p): Call
621 thumb_instruction_restores_sp.
623 2014-07-11 Yao Qi <yao@codesourcery.com>
625 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
627 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
629 2014-07-11 Gary Benson <gbenson@redhat.com>
631 * amd64-linux-nat.c (gdbcore.h): Remove include.
632 (regset.h): Likewise.
633 (nat/linux-btrace.h): Likewise.
634 (btrace.h): Likewise.
635 (gdb_assert.h): Likewise.
636 (string.h): Likewise.
637 (sys/uio.h): Likewise.
638 (sys/debugreg.h): Likewise.
639 (sys/syscall.h): Likewise.
640 (sys/procfs.h): Likewise.
641 (sys/user.h): Likewise.
642 (asm/ptrace.h): Likewise.
643 (i386-nat.h): Likewise.
644 * i386-linux-nat.c (i386-nat.h): Likewise.
645 (regset.h): Likewise.
646 (target.h): Likewise.
647 (linux-nat.h): Likewise.
648 (nat/linux-btrace.h): Likewise.
649 (btrace.h): Likewise.
650 (gdb_assert.h): Likewise.
651 (string.h): Likewise.
652 (sys/uio.h): Likewise.
653 (sys/user.h): Likewise.
654 (sys/procfs.h): Likewise.
655 (sys/reg.h): Likewise.
656 (sys/debugreg.h): Likewise.
657 (ORIG_EAX): Remove definition.
659 2014-07-11 Gary Benson <gbenson@redhat.com>
661 * i386-linux-nat.h: New file.
662 * x86-linux-nat.h: Likewise.
663 * x86-linux-nat.c: Likewise.
664 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
665 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
666 * config/i386/linux64.mh (NATDEPFILES): Likewise.
667 * amd64-linux-nat.c (x86-linux-nat.h): New include.
668 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
669 (PTRACE_SETREGSET): Likewise.
670 (arch_lwp_info): Now in x86-linux-nat.c.
671 (have_ptrace_getregset): Now in x86-linux-nat.h.
672 (x86_linux_dr_get): Now in x86-linux-nat.c.
673 (x86_linux_dr_set): Likewise.
674 (x86_linux_dr_get_addr): Likewise.
675 (x86_linux_dr_get_control): Likewise.
676 (x86_linux_dr_get_status): Likewise.
677 (update_debug_registers_callback): Likewise.
678 (x86_linux_dr_set_control): Likewise.
679 (x86_linux_dr_set_addr): Likewise.
680 (x86_linux_prepare_to_resume): Likewise.
681 (x86_linux_new_thread): Likewise.
682 (x86_linux_new_fork): Likewise.
683 (x86_linux_get_thread_area): Likewise.
684 (super_post_startup_inferior): Likewise.
685 (x86_linux_child_post_startup_inferior): Likewise.
686 (AMD64_LINUX_USER64_CS): Likewise.
687 (AMD64_LINUX_X32_DS): Likewise.
688 (x86_linux_read_description): Likewise.
689 (x86_linux_enable_btrace): Likewise.
690 (x86_linux_disable_btrace): Likewise.
691 (x86_linux_teardown_btrace): Likewise.
692 (x86_linux_read_btrace): Likewise.
693 (x86_linux_create_target): Likewise.
694 (x86_linux_add_target): Likewise.
695 * i386-linux-nat.c (x86-linux-nat.h): New include.
696 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
697 (PTRACE_SETREGSET): Likewise.
698 (arch_lwp_info): Now in x86-linux-nat.c.
699 (have_ptrace_getregset): Now in x86-linux-nat.h.
700 (x86_linux_dr_get): Now in x86-linux-nat.c.
701 (x86_linux_dr_set): Likewise.
702 (x86_linux_dr_get_addr): Likewise.
703 (x86_linux_dr_get_control): Likewise.
704 (x86_linux_dr_get_status): Likewise.
705 (update_debug_registers_callback): Likewise.
706 (x86_linux_dr_set_control): Likewise.
707 (x86_linux_dr_set_addr): Likewise.
708 (x86_linux_prepare_to_resume): Likewise.
709 (x86_linux_new_thread): Likewise.
710 (x86_linux_new_fork): Likewise.
711 (x86_linux_get_thread_area): Likewise.
712 (super_post_startup_inferior): Likewise.
713 (x86_linux_child_post_startup_inferior): Likewise.
714 (AMD64_LINUX_USER64_CS): Likewise.
715 (AMD64_LINUX_X32_DS): Likewise.
716 (x86_linux_read_description): Likewise.
717 (x86_linux_enable_btrace): Likewise.
718 (x86_linux_disable_btrace): Likewise.
719 (x86_linux_teardown_btrace): Likewise.
720 (x86_linux_read_btrace): Likewise.
721 (x86_linux_create_target): Likewise.
722 (x86_linux_add_target): Likewise.
724 2014-07-11 Gary Benson <gbenson@redhat.com>
726 * amd64-linux-nat.c: Comment and whitespace changes.
727 * i386-linux-nat.c: Comment and whitespace changes.
729 2014-07-11 Gary Benson <gbenson@redhat.com>
731 * amd64-linux-nat.c (x86_linux_create_target): New function.
732 (x86_linux_add_target): Likewise.
733 (_initialize_amd64_linux_nat): Delegate to the above new functions.
734 * i386-linux-nat.c (x86_linux_create_target): New function.
735 (x86_linux_add_target): Likewise.
736 (_initialize_i386_linux_nat): Delegate to the above new functions.
738 2014-07-11 Gary Benson <gbenson@redhat.com>
740 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
741 (ps_get_thread_area): Delegate to the above in 32-bit mode.
742 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
743 (ps_get_thread_area): Delegate to the above.
745 2014-07-11 Gary Benson <gbenson@redhat.com>
747 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
748 x86_linux_read_description. All uses updated. amd64-specific
749 code conditionalized. Conditionalized i386-specific code added.
750 Redundant cast removed.
751 * i386-linux-nat.c (i386_linux_read_description): Renamed to
752 x86_linux_read_description. All uses updated. i386-specific
753 code conditionalized. Conditionalized amd64-specific code added.
754 One sizeof replaced with the actual type it is describing.
756 2014-07-11 Gary Benson <gbenson@redhat.com>
758 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
759 x86_linux_dr_get. All uses updated.
760 (amd64_linux_dr_set): Renamed to
761 x86_linux_dr_set. All uses updated.
762 (amd64_linux_dr_get_addr): Renamed to
763 x86_linux_dr_get_addr. All uses updated.
764 (amd64_linux_dr_get_control): Renamed to
765 x86_linux_dr_get_control. All uses updated.
766 (amd64_linux_dr_get_status): Renamed to
767 x86_linux_dr_get_status. All uses updated.
768 (amd64_linux_dr_set_control): Renamed to
769 x86_linux_dr_set_control. All uses updated.
770 (amd64_linux_dr_set_addr): Renamed to
771 x86_linux_dr_set_addr. All uses updated.
772 (amd64_linux_prepare_to_resume): Renamed to
773 x86_linux_prepare_to_resume. All uses updated.
774 (amd64_linux_new_thread): Renamed to
775 x86_linux_new_thread. All uses updated.
776 (amd64_linux_new_fork): Renamed to
777 x86_linux_new_fork. All uses updated.
778 (amd64_linux_child_post_startup_inferior): Renamed to
779 x86_linux_child_post_startup_inferior. All uses updated.
780 (amd64_linux_enable_btrace): Renamed to
781 x86_linux_enable_btrace. All uses updated.
782 (amd64_linux_disable_btrace): Renamed to
783 x86_linux_disable_btrace. All uses updated.
784 (amd64_linux_teardown_btrace): Renamed to
785 x86_linux_teardown_btrace. All uses updated.
786 (amd64_linux_read_btrace): Renamed to
787 x86_linux_read_btrace. All uses updated.
788 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
789 x86_linux_dr_get. All uses updated.
790 (i386_linux_dr_set): Renamed to
791 x86_linux_dr_set. All uses updated.
792 (i386_linux_dr_get_addr): Renamed to
793 x86_linux_dr_get_addr. All uses updated.
794 (i386_linux_dr_get_control): Renamed to
795 x86_linux_dr_get_control. All uses updated.
796 (i386_linux_dr_get_status): Renamed to
797 x86_linux_dr_get_status. All uses updated.
798 (i386_linux_dr_set_control): Renamed to
799 x86_linux_dr_set_control. All uses updated.
800 (i386_linux_dr_set_addr): Renamed to
801 x86_linux_dr_set_addr. All uses updated.
802 (i386_linux_prepare_to_resume): Renamed to
803 x86_linux_prepare_to_resume. All uses updated.
804 (i386_linux_new_thread): Renamed to
805 x86_linux_new_thread. All uses updated.
806 (i386_linux_new_fork): Renamed to
807 x86_linux_new_fork. All uses updated.
808 (i386_linux_child_post_startup_inferior): Renamed to
809 x86_linux_child_post_startup_inferior. All uses updated.
810 (i386_linux_enable_btrace): Renamed to
811 x86_linux_enable_btrace. All uses updated.
812 (i386_linux_disable_btrace): Renamed to
813 x86_linux_disable_btrace. All uses updated.
814 (i386_linux_teardown_btrace): Renamed to
815 x86_linux_teardown_btrace. All uses updated.
816 (i386_linux_read_btrace): Renamed to
817 x86_linux_read_btrace. All uses updated.
819 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
821 * remote.c (extended_remote_post_attach): New function.
822 (init_extended_remote_ops): Install it as to_post_attach method.
824 2014-07-09 Pedro Alves <palves@redhat.com>
826 * infcmd.c (attach_command_post_wait): Don't call
827 target_terminal_inferior here.
828 (attach_command): Call it here instead.
830 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
832 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
834 * c-varobj.c (c_is_path_expr_parent): New function, moved core
835 from varobj.c, with additional checks.
836 (c_varobj_ops): Fill in is_path_expr_parent field.
837 (cplus_varobj_ops): Fill in is_path_expr_parent field.
838 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
840 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
842 (varobj_default_is_path_expr_parent): New function.
843 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
844 (varobj_default_is_path_expr_parent): Declare new function.
846 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
848 * infcmd.c (finish_backward): Turn internal error into normal error.
850 2014-07-07 Pedro Alves <palves@redhat.com>
853 * remote.c (async_handle_remote_sigint)
854 (async_handle_remote_sigint_twice): Call
855 gdb_call_async_signal_handler instead of
856 mark_async_signal_handler.
858 2014-07-07 Tom Tromey <tromey@redhat.com>
860 * target-delegates.c: Rebuild.
861 * target.c (target_info_record): Remove.
862 * record.c (info_record_command): Unconditionally call
864 * target.h (struct target_ops) <to_info_record>: Use
865 TARGET_DEFAULT_IGNORE.
866 (target_info_record): Remove.
868 2014-07-07 Tom Tromey <tromey@redhat.com>
870 * target.h (struct target_ops) <to_get_thread_local_address>: Use
871 TARGET_DEFAULT_NORETURN.
872 * target.c (generic_tls_error): New function.
873 (target_translate_tls_address): Don't search target stack.
874 * target-delegates.c: Rebuild.
875 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
877 * linux-thread-db.c (thread_db_get_thread_local_address):
878 Unconditionally call beneath target.
880 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
882 * cli/cli-logging.c (pop_output_files): Assign targerr to
885 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
887 * MAINTAINERS (Write After Approval): Update my email address.
889 2014-07-02 Gary Benson <gbenson@redhat.com>
891 * proc-service.c (ps_xfer_memory): Update comment.
892 (ps_pstop): Remove unused function.
893 (ps_pcontinue): Likewise.
894 (ps_lstop): Likewise.
895 (ps_lcontinue): Likewise.
896 (ps_lgetxregsize): Likewise.
897 (ps_lgetxregs): Likewise.
898 (ps_lsetxregs): Likewise.
900 (ps_ptread): Likewise.
901 (ps_ptwrite): Likewise.
903 2014-07-01 Mark Wielaard <mjw@redhat.com>
905 * dwarf2read.c (add_array_cv_type): New function.
906 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
907 (read_tag_volatile_type): Likewise.
909 2014-07-01 Tom Tromey <tromey@redhat.com>
911 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
912 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
913 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
914 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
915 * command.h (cmd_cfunc_ftype): Move earlier.
916 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
917 (add_com, add_info): Use cmd_cfunc_ftype.
919 2014-06-30 Tom Tromey <tromey@redhat.com>
921 * symtab.c (operator_chars): Make parameters and return type
923 (file_matches): Make "files" const.
924 (struct search_symbols_data) <files>: Now const.
925 (search_symbols): Make "regexp" and "files" parameters const.
927 (symtab_symbol_info): Remove cast.
928 (rbreak_command): Update.
929 * symtab.h (search_symbols): Update.
931 2014-06-27 Yao Qi <yao@codesourcery.com>
933 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
934 Change parameter type to 'struct thread_info *'. Caller
936 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
938 * dummy-frame.c (struct dummy_frame_id): New.
939 (dummy_frame_id_eq): New function.
940 (struct dummy_frame) <id>: Change its type to 'struct
942 (dummy_frame_push): Add parameter ptid and save it in
944 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
946 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
948 (lookup_dummy_frame): Change parameter type to 'struct
949 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
950 instead of frame_id_eq.
951 (dummy_frame_pop): Add parameter ptid. Callers updated.
952 Update comments. Compose dummy_frame_id and pass it to
954 (dummy_frame_discard): Add parameter ptid.
955 (dummy_frame_sniffer): Compose dummy_frame_id and call
956 dummy_frame_id_eq instead of frame_id_eq.
957 (fprint_dummy_frames): Print ptid.
958 * dummy-frame.h: Remove comments.
959 (dummy_frame_push): Add ptid in declaration.
960 (dummy_frame_pop, dummy_frame_discard): Likewise.
962 2014-06-26 Tom Tromey <tromey@redhat.com>
964 * cli/cli-cmds.c (error_no_arg): Make "why" const.
965 * command.h (error_no_arg): Update.
967 2014-06-26 Tom Tromey <tromey@redhat.com>
969 * cli/cli-setshow.c (do_set_command): Make "arg" const.
970 (do_show_command): Make "arg" const.
971 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
973 2014-06-26 Tom Tromey <tromey@redhat.com>
975 * record-full.c (record_full_get_bookmark): Make "args" const.
976 (record_full_goto_bookmark): Make "raw_bookmark" const.
977 * record.c (record_goto): New function.
978 (cmd_record_goto): Use it. Now static.
979 * record.h (record_goto): Declare.
980 (cmd_record_goto): Remove declaration.
981 * target-delegates.c: Rebuild.
982 * target.h (struct target_ops) <to_get_bookmark,
983 to_goto_bookmark>: Make parameter const.
985 2014-06-26 Tom Tromey <tromey@redhat.com>
987 * defs.h (generic_load): Update.
988 * m32r-rom.c (m32r_load_gen): Make "filename" const.
989 * monitor.c (monitor_load): Make "args" const.
990 * remote-m32r-sdi.c (m32r_load): Make "args" const.
991 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
993 (mips_load): Make "file" const.
994 * remote-sim.c (gdbsim_load): Make "args" const.
995 * remote.c (remote_load): Make "name" const.
996 * symfile.c (generic_load): Make "args" const.
997 * target-delegates.c: Rebuild.
998 * target.c (target_load): Make "arg" const.
999 (debug_to_load): Make "args" const.
1000 * target.h (struct target_ops) <to_load>: Make parameter const.
1001 (target_load): Update.
1003 2014-06-26 Tom Tromey <tromey@redhat.com>
1006 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1007 (dwarf2_physname, read_partial_die)
1008 (guess_partial_die_structure_name, fixup_partial_die)
1009 (guess_full_die_structure_name, anonymous_struct_prefix)
1010 (dwarf2_name): Use per-BFD obstack.
1012 2014-06-26 Yao Qi <yao@codesourcery.com>
1014 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1015 dummyframe and this_id into inner block below.
1017 2014-06-26 Yao Qi <yao@codesourcery.com>
1019 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1020 with "signal_pass[0]" in the initialization of signal_pass.
1022 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1024 * record-btrace.c (record_btrace_generating_corefile)
1025 (record_btrace_prepare_to_generate_core)
1026 (record_btrace_done_generating_core): New.
1027 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1028 (record_btrace_store_registers, record_btrace_prepare_to_store):
1029 Forward request when generating a core file.
1030 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1031 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1032 to_done_generating_core.
1034 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1036 * target.h (target_ops) <to_prepare_to_generate_core>
1037 <to_done_generating_core>: New.
1038 (target_prepare_to_generate_core, target_done_generating_core): New.
1039 * target.c (target_prepare_to_generate_core)
1040 (target_done_generating_core): New.
1041 * target-delegates.c: Regenerate.
1042 * gcore.c: (write_gcore_file): Rename to ...
1043 (write_gcore_file_1): ...this.
1044 (write_gcore_file): Call target_prepare_to_generate_core
1045 and target_done_generating_core.
1047 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1049 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1050 * gcore.c (write_gcore_file): Free memory returned from
1051 make_corefile_notes.
1052 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1053 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1055 2014-06-24 Yao Qi <yao@codesourcery.com>
1057 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1058 (arm_linux_init_abi): Set skip_trampoline_code with
1059 gdbarch_skip_trampoline_code instead of
1060 find_solib_trampoline_target.
1062 2014-06-24 Yao Qi <yao@codesourcery.com>
1064 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1065 arm_skip_bx_reg returns non-zero.
1067 2014-06-24 Yao Qi <yao@codesourcery.com>
1069 * arm-tdep.c (arm_skip_bx_reg): New function.
1070 (arm_skip_stub): Call arm_skip_bx_reg.
1072 2014-06-23 Don Breazeal <donb@codesourcery.com>
1074 * MAINTAINERS: Add myself as write-after-approval maintainer.
1076 2014-06-23 Pedro Alves <palves@redhat.com>
1078 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1079 DR_CONTROL before setting DR0..DR3.
1080 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1081 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1082 bits of DR_CONTROL related to the debug register slot being
1083 disabled. If all slots are vacant, clear local slowdown as well,
1084 and assert DR_CONTROL is 0.
1086 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1088 * python/lib/gdb/command/xmethods.py
1089 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1090 current progspace only if the string "progspace" matches LOCUS_RE.
1092 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1094 Fix --with-system-readline with readline-6.3 patch 5.
1095 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1096 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1099 2014-06-20 Tom Tromey <tromey@redhat.com>
1101 * dwarf2read.c (dw2_get_real_path): Use correct type in
1103 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1105 2014-06-20 Gary Benson <gbenson@redhat.com>
1107 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1108 * common/glibc_thread_db.h: Likewise.
1109 * common/i386-cpuid.h: Likewise.
1110 * common/i386-gcc-cpuid.h: Likewise.
1111 * common/linux-btrace.h: Likewise.
1112 * common/linux-osdata.h: Likewise.
1113 * common/linux-procfs.h: Likewise.
1114 * common/linux-ptrace.h: Likewise.
1115 * common/mips-linux-watch.h: Likewise.
1116 * common/linux-btrace.c: Moved to nat.
1117 * common/linux-osdata.c: Likewise.
1118 * common/linux-procfs.c: Likewise.
1119 * common/linux-ptrace.c: Likewise.
1120 * common/mips-linux-watch.c: Likewise.
1121 * nat/gdb_thread_db.h: Moved from common.
1122 * nat/glibc_thread_db.h: Likewise.
1123 * nat/i386-cpuid.h: Likewise.
1124 * nat/i386-gcc-cpuid.h: Likewise.
1125 * nat/linux-btrace.c: Likewise.
1126 * nat/linux-btrace.h: Likewise.
1127 * nat/linux-osdata.c: Likewise.
1128 * nat/linux-osdata.h: Likewise.
1129 * nat/linux-procfs.c: Likewise.
1130 * nat/linux-procfs.h: Likewise.
1131 * nat/linux-ptrace.c: Likewise.
1132 * nat/linux-ptrace.h: Likewise.
1133 * nat/mips-linux-watch.c: Likewise.
1134 * nat/mips-linux-watch.h: Likewise.
1135 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1136 (object file files): Reordered.
1137 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1138 of glibc_thread_db.h.
1140 2014-06-20 Gary Benson <gbenson@redhat.com>
1142 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1143 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1144 (i386_dr_low): Likewise.
1145 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1146 (i386_dr_low_set_addr): Likewise.
1147 (i386_dr_low_get_addr): Likewise.
1148 (i386_dr_low_can_set_control): Likewise.
1149 (i386_dr_low_set_control): Likewise.
1150 (i386_dr_low_get_control): Likewise.
1151 (i386_dr_low_get_status): Likewise.
1152 (i386_get_debug_register_length): Likewise.
1153 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1154 (i386_dr_low): Likewise.
1155 * nat/i386-dregs.c (i386-low.h): Remove include.
1156 (i386-nat.h): Likewise.
1157 (nat/i386-dregs.h): New include.
1158 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1159 (i386_dr_low_set_addr): Likewise.
1160 (i386_dr_low_get_addr): Likewise.
1161 (i386_dr_low_can_set_control): Likewise.
1162 (i386_dr_low_set_control): Likewise.
1163 (i386_dr_low_get_control): Likewise.
1164 (i386_dr_low_get_status): Likewise.
1165 (i386_get_debug_register_length): Likewise.
1166 (debug_hw_points): Likewise.
1168 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1170 * Makefile.in (SFILES): Add d-exp.y.
1171 (YYFILES): Add d-exp.c.
1172 (YYOBJ): Add d-exp.o.
1173 (local-maintainer-clean): Delete d-exp.c.
1174 * d-exp.y: New file.
1175 * d-lang.h (d_parse): New declaration.
1176 (d_error): New declaration.
1177 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1178 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1179 PREC_ORDER operators.
1180 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1182 2014-06-19 Yao Qi <yao@codesourcery.com>
1184 * gdbthread.h (any_running): Remove the declaration.
1185 * thread.c (any_running): Remove.
1187 2014-06-19 Yao Qi <yao@codesourcery.com>
1189 * gdbthread.h (struct thread_info) <state>: Change its type to
1190 'enum thread_state'. Update comments.
1192 2014-06-19 Pedro Alves <palves@redhat.com>
1194 * gdbthread.h (ALL_THREADS): Delete.
1195 (ALL_NON_EXITED_THREADS): New macro.
1196 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1197 instead of ALL_THREADS.
1198 * infrun.c (find_thread_needs_step_over)
1199 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1200 instead of ALL_THREADS.
1201 * record-btrace.c (record_btrace_open)
1202 (record_btrace_stop_recording, record_btrace_close)
1203 (record_btrace_is_replaying, record_btrace_resume)
1204 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1205 * remote.c (append_pending_thread_resumptions): Likewise.
1206 * thread.c (thread_apply_all_command): Likewise.
1208 2014-06-19 Gary Benson <gbenson@redhat.com>
1210 * i386-nat.c (i386_stopped_by_watchpoint):
1211 Use i386_dr_stopped_by_watchpoint.
1212 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1213 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1215 2014-06-19 Gary Benson <gbenson@redhat.com>
1217 * nat/i386-dregs.c: New file.
1218 * Makefile.in (i386-dregs.o): New rule.
1219 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1220 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1221 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1222 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1223 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1224 * config/i386/go32.mh (NATDEPFILES): Likewise.
1225 * config/i386/linux.mh (NATDEPFILES): Likewise.
1226 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1227 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1228 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1229 * i386-nat.h (debug_hw_points): New declaration.
1230 * i386-nat.c (breakpoint.h): Remove include.
1231 (command.h): Likewise.
1232 (target.h): Likewise.
1233 (gdb_assert.h): Likewise.
1234 (debug_hw_points): Made nonstatic.
1235 (debug_printf): Now in i386-dregs.c.
1236 (TARGET_HAS_DR_LEN_8): Likewise.
1237 (DR_CONTROL_SHIFT): Likewise.
1238 (DR_CONTROL_SIZE): Likewise.
1239 (DR_RW_EXECUTE): Likewise.
1240 (DR_RW_WRITE): Likewise.
1241 (DR_RW_READ): Likewise.
1242 (DR_RW_IORW): Likewise.
1243 (DR_LEN_1): Likewise.
1244 (DR_LEN_2): Likewise.
1245 (DR_LEN_4): Likewise.
1246 (DR_LEN_8): Likewise.
1247 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1248 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1249 (DR_ENABLE_SIZE): Likewise.
1250 (DR_LOCAL_SLOWDOWN): Likewise.
1251 (DR_GLOBAL_SLOWDOWN): Likewise.
1252 (DR_CONTROL_RESERVED): Likewise.
1253 (I386_DR_CONTROL_MASK): Likewise.
1254 (I386_DR_VACANT): Likewise.
1255 (I386_DR_LOCAL_ENABLE): Likewise.
1256 (I386_DR_GLOBAL_ENABLE): Likewise.
1257 (I386_DR_DISABLE): Likewise.
1258 (I386_DR_SET_RW_LEN): Likewise.
1259 (I386_DR_GET_RW_LEN): Likewise.
1260 (I386_DR_WATCH_HIT): Likewise.
1261 (i386_wp_op_t): Likewise.
1262 (i386_show_dr): Likewise.
1263 (i386_length_and_rw_bits): Likewise.
1264 (i386_insert_aligned_watchpoint): Likewise.
1265 (i386_remove_aligned_watchpoint): Likewise.
1266 (i386_handle_nonaligned_watchpoint): Likewise.
1267 (i386_update_inferior_debug_regs): Likewise.
1268 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1269 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1270 (i386_region_ok_for_watchpoint):
1271 Use i386_dr_region_ok_for_watchpoint.
1272 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1274 2014-06-19 Gary Benson <gbenson@redhat.com>
1276 * i386-nat.c (i386_insert_hw_breakpoint): Use
1277 i386_insert_watchpoint.
1278 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1280 2014-06-19 Gary Benson <gbenson@redhat.com>
1282 * i386-nat.c (i386_dr_show): Renamed to
1283 i386_show_dr and made static. All uses updated.
1284 (i386_dr_length_and_rw_bits): Renamed to
1285 i386_length_and_rw_bits and made static.
1287 (i386_dr_insert_aligned_watchpoint): Renamed to
1288 i386_insert_aligned_watchpoint and made static.
1290 (i386_dr_remove_aligned_watchpoint): Renamed to
1291 i386_remove_aligned_watchpoint and made static.
1293 (i386_dr_update_inferior_debug_regs): Renamed to
1294 i386_update_inferior_debug_regs and made static.
1296 * nat/i386-dregs.h (i386_dr_show): Removed.
1297 (i386_dr_length_and_rw_bits): Likewise.
1298 (i386_dr_insert_aligned_watchpoint): Likewise.
1299 (i386_dr_remove_aligned_watchpoint): Likewise.
1300 (i386_dr_update_inferior_debug_regs): Likewise.
1302 2014-06-19 Gary Benson <gbenson@redhat.com>
1304 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1305 * configure: Regenerate.
1306 * config.in: Likewise.
1307 * main.c (signal.h): New include.
1308 (setup_alternate_signal_stack): New function.
1309 (captured_main): Call the above.
1310 * cp-support.c (signal.h): New include.
1311 (catch_demangler_crashes): New flag.
1312 (SIGJMP_BUF): New define.
1313 (SIGSETJMP): Likewise.
1314 (SIGLONGJMP): Likewise.
1315 (gdb_demangle_jmp_buf): New static global.
1316 (gdb_demangle_attempt_core_dump): Likewise.
1317 (gdb_demangle_signal_handler): New function.
1318 (gdb_demangle): If catch_demangler_crashes is set, install the
1319 above signal handler before calling bfd_demangle, and restore
1320 the original signal handler afterwards. Display the offending
1321 symbol and call demangler_warning the first time a segmentation
1323 (_initialize_cp_support): New maint set/show command.
1325 2014-06-19 Gary Benson <gbenson@redhat.com>
1327 * utils.h (resource_limit_kind): New enum.
1328 (can_dump_core): New declaration.
1329 (warn_cant_dump_core): Likewise.
1330 (dump_core): Likewise.
1331 * utils.c (dump_core): Made nonstatic. Added new
1332 parameter "limit_kind".
1333 (can_dump_core): Made nonstatic. Moved printing code to...
1334 (warn_cant_dump_core): New function.
1335 (can_dump_core_warn): Likewise.
1336 (internal_vproblem): Replace calls to can_dump_core with
1337 calls to can_dump_core_warn. Supply new argument to each.
1339 2014-06-19 Gary Benson <gbenson@redhat.com>
1341 * utils.h (demangler_vwarning): New declaration.
1342 (demangler_warning): Likewise.
1343 * utils.c (struct internal_problem)
1344 <user_settable_should_quit>: New field.
1345 <user_settable_should_dump_core>: Likewise
1346 (internal_error_problem): Add values for above new fields.
1347 (internal_warning_problem): Likewise.
1348 (demangler_warning_problem): New static global.
1349 (demangler_vwarning): New function.
1350 (demangler_warning): Likewise.
1351 (add_internal_problem_command): Selectively add commands.
1352 (_initialize_utils): New internal problem command.
1353 * maint.c (maintenance_demangler_warning): New function.
1354 (_initialize_maint_cmds): New command.
1356 2014-06-18 Tom Tromey <tromey@redhat.com>
1358 * f-valprint.c (info_common_command_for_block): Update.
1359 * symtab.h (struct general_symbol_info) <common_block>: Now
1362 2014-06-18 Tom Tromey <tromey@redhat.com>
1364 * symtab.h (struct symtab) <blockvector>: Now const.
1365 * ada-lang.c (ada_add_global_exceptions): Update.
1366 * buildsym.c (augment_type_symtab): Update.
1367 * dwarf2read.c (dw2_lookup_symbol): Update.
1368 * jit.c (finalize_symtab): Update.
1369 * jv-lang.c (add_class_symtab_symbol): Update.
1370 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1372 * objfiles.c (objfile_relocate1): Update.
1373 * psymtab.c (lookup_symbol_aux_psymtabs)
1374 (maintenance_check_psymtabs): Update.
1375 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1377 * spu-tdep.c (spu_catch_start): Update.
1378 * symmisc.c (dump_symtab_1): Update.
1379 * symtab.c (lookup_global_symbol_from_objfile)
1380 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1381 (basic_lookup_transparent_type_quick)
1382 (basic_lookup_transparent_type, find_pc_sect_symtab)
1383 (find_pc_sect_line, search_symbols): Update.
1384 * block.c (find_block_in_blockvector): Make "bl" const.
1385 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1387 (blockvector_contains_pc): Make "bv" const.
1388 (block_for_pc_sect): Update.
1389 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1390 (blockvector_contains_pc): Update.
1391 * breakpoint.c (resolve_sal_pc): Update.
1392 * inline-frame.c (block_starting_point_at): Update.
1394 2014-06-18 Tom Tromey <tromey@redhat.com>
1396 * completer.c (complete_line): Make "line_buffer" const.
1397 * completer.h (complete_line): Update.
1399 2014-06-18 Tom Tromey <tromey@redhat.com>
1401 * symtab.c (add_macro_name): Remove unneeded cast.
1403 2014-06-18 Tom Tromey <tromey@redhat.com>
1405 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1406 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1408 2014-06-18 Tom Tromey <tromey@redhat.com>
1410 * probe.c (info_probes_for_ops): Make "arg" const.
1411 * probe.h (info_probes_for_ops): Update.
1413 2014-06-18 Tom Tromey <tromey@redhat.com>
1415 * varobj.c (varobj_create): Update.
1416 * valops.c (value_of_this): Update.
1417 * tracepoint.c (add_local_symbols, scope_info): Update.
1418 * symtab.h (struct general_symbol_info) <block>: Now const.
1419 * symtab.c (skip_prologue_sal)
1420 (default_make_symbol_completion_list_break_on)
1421 (skip_prologue_using_sal): Update.
1422 * stack.h (iterate_over_block_locals)
1423 (iterate_over_block_local_vars): Update.
1424 * stack.c (print_frame_args): Update.
1425 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1427 (get_selected_block): Make return type const.
1428 * python/py-frame.c (frapy_block): Update.
1429 * python/py-block.c (gdbpy_block_for_pc): Update.
1430 * p-exp.y (%union) <bval>: Now const.
1431 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1432 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1433 * m2-exp.y (%union) <bval>: Now const.
1434 * linespec.c (get_current_search_block): Make return type const.
1435 (create_sals_line_offset, find_label_symbols): Update.
1436 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1438 (block_starting_point_at): Make "block" const.
1439 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1440 (check_exception_resume): Update.
1441 * guile/scm-frame.c (gdbscm_frame_block): Update.
1442 * guile/scm-block.c (gdbscm_lookup_block): Update.
1443 * frame.h (get_frame_block): Update.
1444 (get_selected_block): Make return type const.
1445 * frame.c (frame_id_inner): Update.
1446 * f-valprint.c (info_common_command_for_block)
1447 (info_common_command): Update.
1448 * dwarf2loc.c (dwarf2_find_location_expression)
1449 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1450 (locexpr_describe_location_piece): Update.
1451 * c-exp.y (%union) <bval>: Now const.
1452 * breakpoint.c (resolve_sal_pc): Update.
1453 * blockframe.c (get_frame_block):Make return type const.
1454 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1455 (block_innermost_frame): Update.
1456 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1457 (block_for_pc, block_for_pc_sect): Update.
1458 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1460 (block_for_pc_sect, block_for_pc): Make return type const.
1461 * ax-gdb.c (gen_expr): Update.
1462 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1463 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1464 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1465 (ada_read_var_value): Update.
1466 * ada-exp.y (struct name_info) <block>: Now const.
1468 (block_lookup): Constify.
1470 2014-06-18 Gary Benson <gbenson@redhat.com>
1472 * nat/i386-dregs.h: New file.
1473 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1474 * i386-nat.h (i386-dregs.h): New include.
1475 (DR_FIRSTADDR): Now in i386-dregs.h.
1476 (DR_LASTADDR): Likewise.
1477 (DR_NADDR): Likewise.
1478 (DR_STATUS): Likewise.
1479 (DR_CONTROL): Likewise.
1480 (i386_debug_reg_state): Likewise.
1481 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1483 2014-06-18 Don Breazeal <donb@codesourcery.com>
1485 * breakpoint.c (set_longjmp_breakpoint): Call
1486 momentary_breakpoint_from_master with additional argument.
1487 (set_longjmp_breakpoint_for_call_dummy): Call
1488 momentary_breakpoint_from_master with additional argument.
1489 (set_std_terminate_breakpoint): Call
1490 momentary_breakpoint_from_master with additional argument.
1491 (momentary_breakpoint_from_master): Add argument to function
1492 definition and use it to initialize structure member flag.
1493 (clone_momentary_breakpoint): Call
1494 momentary_breakpoint_from_master with additional argument.
1495 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1496 member flags set in momentary_breakpoint_from_master.
1498 2014-06-18 Gary Benson <gbenson@redhat.com>
1500 * i386-nat.c (i386_show_dr): Renamed to
1501 i386_dr_show and made nonstatic. All uses updated.
1502 (i386_length_and_rw_bits): Renamed to
1503 i386_dr_length_and_rw_bits and made nonstatic.
1505 (i386_insert_aligned_watchpoint): Renamed to
1506 i386_dr_insert_aligned_watchpoint and made nonstatic.
1508 (i386_remove_aligned_watchpoint): Renamed to
1509 i386_dr_remove_aligned_watchpoint and made nonstatic.
1511 (i386_update_inferior_debug_regs): Renamed to
1512 i386_dr_update_inferior_debug_regs and made nonstatic.
1515 2014-06-18 Gary Benson <gbenson@redhat.com>
1517 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1518 (i386_dr_low_can_set_control): Likewise.
1519 (i386_dr_low_set_addr): Likewise.
1520 (i386_dr_low_set_control): Likewise.
1521 (i386_dr_low_get_addr): Likewise.
1522 (i386_dr_low_get_status): Likewise.
1523 (i386_dr_low_get_control): Likewise.
1524 (i386_insert_aligned_watchpoint): Use new macros.
1525 (i386_update_inferior_debug_regs): Likewise.
1526 (i386_stopped_data_address): Likewise.
1528 2014-06-18 Gary Benson <gbenson@redhat.com>
1530 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1531 New parameter. All uses updated.
1533 2014-06-18 Gary Benson <gbenson@redhat.com>
1535 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1538 2014-06-18 Gary Benson <gbenson@redhat.com>
1540 * i386-nat.c (debug_printf): New macro.
1541 (i386_get_debug_register_length): Likewise.
1542 (TARGET_HAS_DR_LEN_8): Use above macro.
1543 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1544 and printf_unfiltered. Use phex to format values.
1546 2014-06-18 Gary Benson <gbenson@redhat.com>
1548 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1551 2014-06-18 Gary Benson <gbenson@redhat.com>
1553 * i386-nat.c: Comment changes.
1555 2014-06-18 Gary Benson <gbenson@redhat.com>
1557 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1559 2014-06-18 Gary Benson <gbenson@redhat.com>
1561 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1562 (i386_insert_aligned_watchpoint): Likewise.
1563 (i386_remove_aligned_watchpoint): Likewise.
1564 (i386_handle_nonaligned_watchpoint): Likewise.
1566 2014-06-18 Gary Benson <gbenson@redhat.com>
1568 * i386-nat.c: Whitespace changes.
1570 2014-06-17 Samuel Bronson <naesten@gmail.com>
1572 * MAINTAINERS: Update Roland McGrath's email address.
1573 Thanks to Sergio Durigan Junior for pointing out that he left
1574 Red Hat a while ago, and giving me a current address.
1576 2014-06-17 Tom Tromey <tromey@redhat.com>
1578 * utils.h (savestring): Remove declaration.
1580 2014-06-17 Tom Tromey <tromey@redhat.com>
1582 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1584 2014-06-16 Keith Seitz <keiths@redhat.com>
1587 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1588 to update the varobj if inferior_ptid is null_ptid.
1590 2014-06-16 Tom Tromey <tromey@redhat.com>
1592 * target.h (struct target_ops) <to_info_proc>: Make parameter
1594 (target_info_proc): Update.
1595 * target.c (target_info_proc): Make "args" const.
1596 * procfs.c (procfs_info_proc): Update.
1597 * linux-tdep.c (linux_info_proc): Update.
1598 (linux_core_info_proc_mappings): Make "args" const.
1599 (linux_core_info_proc): Update.
1600 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1601 * gdbarch.c: Rebuild.
1602 * gdbarch.h: Rebuild.
1603 * corelow.c (core_info_proc): Update.
1605 2014-06-16 Tom Tromey <tromey@redhat.com>
1607 * target.h (struct target_ops) <to_disconnect>: Make parameter
1609 (target_disconnect): Update.
1610 * target.c (target_disconnect): Make "args" const.
1611 * target-delegates.c: Rebuild.
1612 * remote.c (remote_disconnect): Update.
1613 * record.h (record_disconnect): Update.
1614 * record.c (record_disconnect): Update.
1615 * inf-child.c (inf_child_disconnect): Update.
1617 2014-06-16 Tom Tromey <tromey@redhat.com>
1619 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1620 * target.c (debug_to_rcmd, default_rcmd): Update.
1621 * target-delegates.c: Rebuild.
1622 * remote.c (remote_rcmd): Update.
1623 * monitor.c (monitor_rcmd): Update.
1625 2014-06-16 Pedro Alves <palves@redhat.com>
1627 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1628 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1629 have OBJF_SHARED set.
1630 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1631 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1632 instead of OBJF_USERLOADED.
1633 * objfiles.h (OBJF_SHARED): Update comment.
1634 (userloaded_objfile_contains_address_p): Rename to ...
1635 (shared_objfile_contains_address_p): ... this, and update
1637 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1639 (remove_symbol_file_command): Skip objfiles that don't have
1642 2014-06-16 Tom Tromey <tromey@redhat.com>
1644 * minsyms.h (prim_record_minimal_symbol)
1645 (prim_record_minimal_symbol_and_info): Update comments.
1647 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1649 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1650 or --without-guile, according to how GDB was built.
1652 2014-06-13 Tom Tromey <tromey@redhat.com>
1654 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1656 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1658 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1660 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1661 help_list.Pass all_commands, not -1, to help_list.
1662 * cli/cli-dump.c (dump_command, append_command)
1663 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1664 (binary_dump_command, binary_append_command): Pass all_commands,
1665 not -1, to help_list.
1666 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1668 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1670 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1672 * top.c (set_history): Pass all_commands, not -1, to help_list.
1673 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1674 all_commands, not -1, to help_list.
1675 * symfile.c (overlay_command): Pass all_commands, not -1, to
1677 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1679 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1681 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1683 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1684 not -1, to help_list.
1685 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1686 not -1, to help_list.
1687 * maint.c (maintenance_command, maintenance_info_command)
1688 (maintenance_print_command, maintenance_set_cmd): Pass
1689 all_commands, not -1, to help_list.
1690 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1692 * language.c (set_check): Pass all_commands, not -1, to help_list.
1693 * infcmd.c (unset_command): Pass all_commands, not -1, to
1695 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1697 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1699 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1701 * breakpoint.c (save_command): Pass all_commands, not -1, to
1703 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1704 all_commands, not -1, to help_list.
1706 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1708 * regcache.c (struct register_to_invalidate): New structure.
1709 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1711 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1713 2014-06-12 Yao Qi <yao@codesourcery.com>
1715 * varobj.c (varobj_get_num_children): Call
1716 varobj_is_dynamic_p.
1717 (varobj_list_children): Likewise.
1718 (varobj_update): Likewise. Update comments.
1720 2014-06-12 Yao Qi <yao@codesourcery.com>
1722 * varobj.c (varobj_pretty_printed_p): Rename to ...
1723 (varobj_is_dynamic_p): ... this. New function.
1724 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1725 (varobj_is_dynamic_p): Declare.
1726 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1727 (mi_print_value_p, varobj_update_one): Likewise.
1729 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1730 Yao Qi <yao@codesourcery.com>
1732 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1733 (varobj_get_iterator): Wrap up code for pretty-printer by
1734 "#if HAVE_PYTHON" and "#endif".
1735 (update_dynamic_varobj_children): Likewise.
1737 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1738 Yao Qi <yao@codesourcery.com>
1740 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1741 gdb_python_initialized is false. Move some code from varobj.c.
1742 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1743 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1744 (struct varobj_item): Moved to varobj-iter.h".
1745 (varobj_clear_saved_item): New function.
1746 (update_dynamic_varobj_children): Move python-related code to
1748 (free_variable): Call varobj_clear_saved_item and
1751 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1752 Yao Qi <yao@codesourcery.com>
1754 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1755 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1756 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1757 (py-varobj.o): New rule.
1758 * python/py-varobj.c: New file.
1759 * python/python-internal.h (py_varobj_get_iterator): Declare.
1760 * varobj-iter.h: New file.
1761 * varobj.c: Include "varobj-iter.h"
1762 (struct varobj) <child_iter>: Change its type from "PyObject *"
1763 to "struct varobj_iter *".
1764 <saved_item>: Likewise.
1765 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1766 [HAVE_PYTHON] (varobj_get_iterator): New function.
1767 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1768 python-specific code to python/py-varobj.c.
1769 (install_visualizer): Call varobj_iter_delete instead of
1771 * varobj.h (varobj_ensure_python_env): Declare.
1773 2014-06-12 Yao Qi <yao@codesourcery.com>
1775 * varobj.c (struct varobj_item): New structure.
1776 (create_child_with_value): Update declaration.
1777 (varobj_add_child): Replace arguments 'name' and 'value' with
1778 'item'. All callers updated.
1779 (install_dynamic_child): Likewise.
1780 (update_dynamic_varobj_children): Likewise.
1781 (varobj_add_child): Likewise.
1782 (create_child_with_value): Likewise.
1784 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1786 * NEWS: Create a new section for the next release branch.
1787 Rename the section of the current branch, now that it has
1790 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1792 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1793 * version.in: Bump version to 7.8.50.DATE-cvs.
1795 2014-06-11 Pedro Alves <palves@redhat.com>
1798 * ser-mingw.c (net_windows_socket_check_pending): New function.
1799 (net_windows_select_thread): Ignore spurious wakeups. Use
1800 net_windows_socket_check_pending.
1801 (net_windows_wait_handle): Check for pending events with
1802 ioctlsocket, through net_windows_socket_check_pending, instead of
1803 checking the socket's event.
1805 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1807 * python/python-internal.h (gdb_PyObject_GetAttrString)
1808 (gdb_PyObject_HasAttrString): New inline function definitions.
1809 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1810 char * of the second argument to PyObject_GetAttrString.
1812 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1814 * serial.c (serial_write): Fix index of character to be printed
1815 in call to serial_logchar when serial debug traces are enabled.
1817 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1819 * gdbtypes (resolve_dynamic_range): Add function description.
1821 2014-06-09 Pedro Alves <palves@redhat.com>
1823 * linux-nat.c (linux_child_follow_fork): Initialize status with
1824 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1825 inner block. Only pass the signal to PTRACE_DETACH if in pass
1828 2014-06-09 Gary Benson <gbenson@redhat.com>
1830 * common/signals.c (gdb_signal_from_host): Reorder to separate
1831 the always-available ANSI-standard signals from the signals that
1833 (do_gdb_signal_to_host): Likewise.
1834 * proc-events.c (signal_table): Likewise.
1836 2014-06-08 Hui Zhu <hui@codesourcery.com>
1838 * common/linux-ptrace.c (linux_disable_event_reporting): New
1840 * common/linux-ptrace.h (linux_disable_event_reporting): New
1842 * linux-nat.c (linux_child_follow_fork): Do a single step before
1845 2014-06-07 Keith Seitz <keiths@redhat.com>
1849 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1850 from symbol_matches_domain in symtab.c. All local callers
1851 of symbol_matches_domain updated.
1852 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1853 search STRUCT_DOMAIN.
1854 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1855 independently. standard_lookup will do that automatically.
1856 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1857 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1858 (cp_lookup_symbol_in_namespace): Likewise.
1859 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1860 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1861 may return a STRUCT_DOMAIN match.
1862 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1863 * cp-support.c: Include language.h.
1864 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1866 * psymtab.c (match_partial_symbol): Compare the requested
1867 domain with the symbol's domain directly.
1868 (lookup_partial_symbol): Likewise.
1869 * symtab.c (lookup_symbol_in_language): Explain when/why
1870 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1871 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1872 appropriate languages.
1873 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1874 and moved to ada-lang.c
1875 (lookup_block_symbol): Explain that this function only returns
1876 symbol matching the requested DOMAIN.
1877 Compare the requested domain with the symbol's domain directly.
1878 (iterate_over_symbols): Compare the requested domain with the
1879 symbol's domain directly.
1880 * symtab.h (symbol_matches_domain): Remove.
1882 2014-06-06 Doug Evans <xdje42@gmail.com>
1884 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1885 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1886 (gdbscm_guile_version_is_at_least): Declare.
1887 (gdbscm_scm_string_to_int): Declare.
1888 * guile/guile.c (gdbscm_guile_major_version): New global.
1889 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1890 (guile_datadir): New static global.
1891 (gdbscm_guile_data_directory): New function.
1892 (initialize_scheme_side): Update.
1893 (misc_guile_functions): Add guile-data-directory.
1894 (initialize_gdb_module): Fetch guile version number.
1895 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1896 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1897 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1898 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1900 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1901 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1902 * guile/scm-value.c (gdbscm_value_to_string): Only call
1903 scm_port_conversion_strategy if Guile version >= 2.0.6.
1905 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1907 * main.c (print_gdb_help): Add -q and --silent.
1909 2014-06-06 Gary Benson <gbenson@redhat.com>
1911 * common/signals.c: Remove preprocessor conditionals for
1912 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1913 SIGSEGV and SIGTERM.
1914 * proc-events.c: Likewise.
1916 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1918 * symfile.c (symfile_free_objfile): Remove restriction to
1920 * symfile-mem.c (symbol_file_add_from_memory): Call
1921 add_target_sections_of_objfile.
1923 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1925 * guile/scm-value.c (gdbscm_history_append_x): Use
1926 'vlscm_get_value_smob_arg_unsafe' instead of
1927 'vlscm_scm_to_value'.
1929 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1932 * utils.c (printchar): Don't escape at all if quoter is NUL.
1933 Update function documentation to clarify effect of parameter
1935 * remote.c (escape_buffer): Pass '\\' as the quoter to
1936 fputstrn_unfiltered.
1937 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1938 generate the output.
1939 (mi_solib_unloaded): Same.
1941 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1943 * development.sh: Delete.
1944 * Makefile.in (config.status): Adjust dependency on development.sh.
1945 * configure.ac: Adjust development.sh source call.
1946 * configure: Regenerate.
1948 2014-06-04 Doug Evans <xdje42@gmail.com>
1950 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1951 is_scheme_bkpt, spec.
1952 (bpscm_make_breakpoint_smob): Initialize new members.
1953 (gdbscm_create_breakpoint_x): Split into two ...
1954 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1955 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1956 (scheme_function breakpoint_functions): Update.
1957 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1958 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1959 register-breakpoint!.
1961 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1964 * mem-break.c (z_type_supported): Return zero if
1965 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1967 2014-06-04 Tom Tromey <tromey@redhat.com>
1969 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1970 value_from_contents_and_address_unresolved.
1971 (ada_template_to_fixed_record_type_1): Likewise.
1972 (ada_which_variant_applies): Likewise.
1973 * value.h (value_from_contents_and_address_unresolved): Declare.
1974 * value.c (value_from_contents_and_address_unresolved): New
1976 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1977 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1978 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1980 2014-06-04 Tom Tromey <tromey@redhat.com>
1982 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1984 2014-06-04 Tom Tromey <tromey@redhat.com>
1986 * procfs.c (procfs_attach): Make "args" const.
1987 * windows-nat.c (windows_attach): Make "args" const.
1988 * nto-procfs.c (procfs_attach): Make "args" const.
1989 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1990 * go32-nat.c (go32_attach): Make "args" const.
1991 * gnu-nat.c (gnu_attach): Make "args" const.
1992 * darwin-nat.c (darwin_attach): Make "args" const.
1993 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1994 * linux-nat.c (linux_nat_attach): Make "args" const.
1995 * remote.c (extended_remote_attach_1, extended_remote_attach):
1997 * target.h (struct target_ops) <to_attach>: Make "args" const.
1998 (find_default_attach): Likewise.
1999 * utils.c (parse_pid_to_attach): Make "args" const.
2000 * utils.h (parse_pid_to_attach): Update.
2002 2014-06-04 Tom Tromey <tromey@redhat.com>
2004 * target-delegates.c: Rebuild.
2005 * target.c (default_thread_address_space): New function.
2006 (target_thread_address_space): Simplify.
2007 * target.h (struct target_ops) <to_thread_address_space>: Add
2008 TARGET_DEFAULT_FUNC.
2010 2014-06-04 Doug Evans <xdje42@gmail.com>
2012 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2014 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2016 * record-btrace.c: Include event-loop.h and inf-loop.h.
2017 (record_btrace_resume_exec_dir)
2018 (record_btrace_async_inferior_event_handler)
2019 (record_btrace_handle_async_inferior_event): New.
2020 (record_btrace_open): Create async event handler.
2021 (record_btrace_close): Delete async event handler.
2022 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2023 Mark async event handler.
2024 (record_btrace_execution_direction): New.
2025 (init_record_btrace_ops): Initialize to_execution_direction.
2027 2014-06-03 Doug Evans <xdje42@gmail.com>
2029 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2030 (gdbscm_make_parameter): Ditto.
2032 2014-06-03 Doug Evans <dje@google.com>
2034 * exec.c (exec_close_1): Call clear_section_table instead of
2035 resize_section_table.
2036 (clear_section_table): New function.
2037 (resize_section_table): Make static. Rename arg num_added to
2039 * exec.h (clear_section_table): Declare.
2040 (resize_section_table): Delete.
2041 * progspace.c (release_program_space): Call clear_section_table
2042 instead of resize_section_table.
2044 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2046 * NEWS (Python Scripting): Add entry about the new xmethods
2049 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2051 * python/py-xmethods.c: New file.
2052 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2053 (objfpy_dealloc): XDECREF on the new xmethods field.
2054 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2056 (objfpy_get_xmethods): New function.
2057 (objfile_getset): New entry 'xmethods'.
2058 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2059 (pspy_dealloc): XDECREF on the new xmethods field.
2060 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2062 (pspy_get_xmethods): New function.
2063 (pspace_getset): New entry 'xmethods'.
2064 * python/python-internal.h: Add declarations for new functions.
2065 * python/python.c (_initialize_python): Invoke
2066 gdbpy_initialize_xmethods.
2067 * python/lib/gdb/__init__.py (xmethods): New
2069 * python/lib/gdb/xmethod.py: New file.
2070 * python/lib/gdb/command/xmethods.py: New file.
2072 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2074 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2075 best match method returned by find_overload_match is an xmethod.
2076 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2077 the best matching operator returned by find_overload_match is an
2079 * valops.c: #include "extension.h".
2080 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2081 Return void. The list of matching source methods is returned in
2082 "fn_list" and a vector of matching debug method workers is
2083 returned in "xm_worker_vec". Update all callers.
2084 (value_find_oload_method_list): Likewise.
2085 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2086 non-NULL, then the index of the best matching method in this
2087 vector is returned. Update all callers.
2088 (find_overload_match): Include xmethods while performing overload
2091 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2093 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2094 * extension-priv.h (struct extension_language_ops): Add the
2096 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2097 get_matching_xmethod_workers, get_xmethod_argtypes,
2098 invoke_xmethod, free_xmethod_worker,
2099 free_xmethod_worker_vec): New functions.
2100 * extension.h: #include "common/vec.h".
2101 New function declarations.
2102 (struct xmethod_worker): New struct.
2103 (VEC (xmethod_worker_ptr)): New vector type.
2104 (xmethod_worker_ptr): New typedef.
2105 (xmethod_worker_vec): Likewise.
2106 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2108 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2109 (struct builtin_type): New field "xmethod".
2110 * valarith.c (value_ptradd): Assert that the value argument is not
2112 * valops.c (value_must_coerce_to_target): Return 0 for
2113 lval_xcallable values.
2114 * value.c (struct value): New field XM_WORKER in the field
2116 (value_address, value_raw_address): Return 0 for lval_xcallable
2118 (set_value_address): Assert that the value is not an
2120 (value_free): Free the associated xmethod worker when freeing
2121 lval_xcallable values.
2122 (set_value_component_location): Assert that the WHOLE value is not
2124 (value_of_xmethod, call_xmethod): New functions.
2125 * value.h: Declare "struct xmethod_worker".
2126 Declare new functions value_of_xmethod, call_xmethod.
2128 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2129 Pedro Alves <palves@redhat.com>
2131 PR breakpoints/17000
2132 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2133 New function, extracted from software_breakpoint_inserted_here_p.
2134 (software_breakpoint_inserted_here_p): Replace factored out code
2135 by call to find_non_raw_software_breakpoint_inserted_here.
2136 (bp_target_info_copy_insertion_state): New function.
2137 (bkpt_insert_location): Handle the case of a single-step
2138 breakpoint already inserted at the same address.
2139 (bkpt_remove_location): Handle the case of a single-step
2140 breakpoint still inserted at the same address.
2141 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2142 breakpoint already inserted at the same address.
2143 (deprecated_remove_raw_breakpoint): Handle the case of a
2144 non-raw breakpoint still inserted at the same address.
2145 (find_single_step_breakpoint): New function, extracted from
2146 single_step_breakpoint_inserted_here_p.
2147 (find_single_step_breakpoint): New function,
2148 factored out from single_step_breakpoint_inserted_here_p.
2149 (single_step_breakpoint_inserted_here_p): Reimplement.
2151 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2153 Pushed by Joel Brobecker <brobecker@adacore.com>
2154 * source.c (show_substitute_path_command): Fix display of matching
2157 2014-06-03 Gary Benson <gbenson@redhat.com>
2159 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2161 2014-06-02 Doug Evans <xdje42@gmail.com>
2163 Add parameter support for Guile.
2164 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2165 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2166 (scm-param.o): New rule.
2167 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2168 (gdbscm_misc_error): Declare.
2169 (gdbscm_canonicalize_command_name): Declare.
2170 (gdbscm_scm_to_host_string): Declare.
2171 (gdbscm_scm_from_host_string): Declare.
2172 (gdbscm_initialize_parameters): Declare.
2173 * guile/guile.c (initialize_gdb_module): Call
2174 gdbscm_initialize_parameters.
2175 * guile/lib/gdb.scm: Export parameter symbols.
2176 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2177 cmdscm_canonicalize_name and made public. All callers updated.
2178 * guile/scm-exception.c (gdbscm_misc_error): New function.
2179 * guile/scm-param.c: New file.
2180 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2181 (gdbscm_scm_to_host_string): New function.
2182 (gdbscm_scm_from_host_string): New function.
2183 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2185 2014-06-02 Doug Evans <xdje42@gmail.com>
2187 Add command support for Guile.
2188 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2189 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2190 (scm-cmd.o): New rule.
2191 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2192 (gdbscm_user_error_p): Declare.
2193 (gdbscm_parse_command_name): Declare.
2194 (gdbscm_valid_command_class_p): Declare.
2195 (gdbscm_initialize_commands): Declare.
2196 * guile/guile.c (initialize_gdb_module): Call
2197 gdbscm_initialize_commands.
2198 * guile/lib/gdb.scm: Export command symbols.
2199 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2200 (throw-user-error): New function.
2201 * guile/scm-cmd.c: New file.
2202 * guile/scm-exception.c (user_error_symbol): New static global.
2203 (gdbscm_user_error_p): New function.
2204 (gdbscm_initialize_exceptions): Set user_error_symbol.
2205 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2207 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2209 * top.c (command_loop): Handle comments here...
2210 (command_line_input): ... not here.
2212 2014-06-02 Doug Evans <xdje42@gmail.com>
2214 Add progspace support for Guile.
2215 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2216 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2217 (scm-progspace.o): New rule.
2218 * guile/guile-internal.h (pspace_smob): New typedef.
2219 (psscm_pspace_smob_pretty_printers): Declare.
2220 (psscm_pspace_smob_from_pspace): Declare.
2221 (psscm_scm_from_pspace): Declare.
2222 * guile/guile.c (initialize_gdb_module): Call
2223 gdbscm_initialize_pspaces.
2224 * guile/lib/gdb.scm: Export progspace symbols.
2225 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2227 (append-pretty-printer!): Ditto.
2228 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2230 * guile/scm-progspace.c: New file.
2232 2014-06-03 Alan Modra <amodra@gmail.com>
2234 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2235 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2237 2014-06-02 Doug Evans <dje@google.com>
2239 Add support for skeletonless type units.
2240 * dwarf2read.c (struct dwarf2_per_objfile): New member
2241 n_allocated_type_units.
2242 (struct dwarf2_per_objfile) <tu_stats>: New member
2243 nr_all_type_units_reallocs.
2244 (create_signatured_type_table_from_index): Initialize
2245 n_allocated_type_units
2246 (create_all_type_units): Ditto.
2247 (add_type_unit): Move up in file. New arg slot.
2248 All callers updated. Increase space for all_type_units more
2250 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2251 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2252 (lookup_dwp_signatured_type): Ditto.
2253 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2254 All callers updated.
2255 (build_type_psymtabs_1): Leave type_unit_groups as
2256 NULL if no TUs present.
2257 (print_tu_stats): New function.
2258 (process_skeletonless_type_unit): New function.
2259 (process_dwo_file_for_skeletonless_type_units): New
2261 (process_skeletonless_type_units): New function.
2262 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2263 Call print tu_stats if debugging enabled.
2265 2014-06-02 Pedro Alves <palves@redhat.com>
2267 * breakpoint.c (build_target_command_list): Don't build a command
2268 list if we have any duplicate location that isn't a dprintf.
2270 2014-06-02 Pedro Alves <palves@redhat.com>
2272 * breakpoint.c (dprintf_breakpoint_hit): New function.
2273 (initialize_breakpoint_ops): Install it as dprintf's
2274 breakpoint_hit method.
2276 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2278 * source.c (substitute_path_rule_matches): Simplify using
2279 filename_ncmp instead of FILENAME_CMP.
2281 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2283 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2285 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2287 * configure.ac: When Guile is available, check for the
2288 availability of 'scm_new_smob'.
2289 * configure, config.h.in: Regenerate.
2290 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2293 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2295 * frame.c (struct frame_info): Add stop_string field.
2296 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2297 (get_prev_frame_always): Old content moved into
2298 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2299 TRY_CATCH, handle MEMORY_ERROR exceptions.
2300 (frame_stop_reason_string): New function definition.
2301 * frame.h (unwind_stop_reason_to_string): Extend comment to
2302 mention frame_stop_reason_string.
2303 (frame_stop_reason_string): New function declaration.
2304 * stack.c (frame_info): Switch to frame_stop_reason_string.
2305 (backtrace_command_1): Switch to frame_stop_reason_string.
2306 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2307 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2308 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2310 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2312 * frame.c (frame_stop_reason_string): Rename to ...
2313 (unwind_stop_reason_to_string): this.
2314 * frame.h (frame_stop_reason_string): Rename to ...
2315 (unwind_stop_reason_to_string): this.
2316 * stack.c (frame_info): Update call to frame_stop_reason_string.
2317 (backtrace_command_1): Likewise.
2318 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2319 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2321 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2323 * frame.c (remove_prev_frame): New function.
2324 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2327 2014-05-29 Pedro Alves <palves@redhat.com>
2329 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2330 and make it const. When a single-step decays to a continue,
2331 clear 'step', not 'hw_step'. Pass whether the caller wanted
2332 to step to user_visible_resume_ptid, not what we ask the
2335 2014-05-29 Pedro Alves <palves@redhat.com>
2337 * infrun.c (process_event_stop_test, handle_step_into_function)
2338 (handle_step_into_function_backward): Adjust.
2339 Don't set the even thread's stop_step and call stop_waiting before
2340 calling end_stepping_range. Instead do that ...
2341 (end_stepping_range): ... here. Take an ecs pointer parameter.
2343 2014-05-29 Pedro Alves <palves@redhat.com>
2345 * infrun.c (stop_stepping): Rename to ...
2346 (stop_waiting): ... this.
2347 (proceed): Update comment.
2348 (process_event_stop_test, handle_inferior_event)
2349 (handle_signal_stop, handle_step_into_function)
2350 (handle_step_into_function_backward): Update.
2352 2014-05-29 Pedro Alves <palves@redhat.com>
2354 * infcall.c (run_inferior_call): Don't check whether the current
2355 thread is running after the proceed call.
2357 2014-05-29 Pedro Alves <palves@redhat.com>
2358 Tom Tromey <tromey@redhat.com>
2360 * NEWS: Mention "maint set target-async", "set mi-async", and that
2361 background execution commands are now always available.
2362 * target.h (target_async_permitted): Update comment.
2363 * target.c (target_async_permitted, target_async_permitted_1):
2365 (set_target_async_command): Rename to ...
2366 (maint_set_target_async_command): ... this.
2367 (show_target_async_command): Rename to ...
2368 (maint_show_target_async_command): ... this.
2369 (_initialize_target): Adjust.
2370 * infcmd.c (prepare_execution_command): Make extern.
2371 * inferior.h (prepare_execution_command): Declare.
2372 * infrun.c (set_observer_mode): Leave target async alone.
2373 * mi/mi-interp.c (mi_interpreter_init): Install
2374 mi_on_sync_execution_done as sync_execution_done observer.
2375 (mi_on_sync_execution_done): New function.
2376 (mi_execute_command_input_handler): Don't print the prompt if we
2377 just started a synchronous command with an async target.
2378 (mi_on_resume): Check sync_execution before printing prompt.
2379 * mi/mi-main.h (mi_async_p): Declare.
2380 * mi/mi-main.c: Include gdbcmd.h.
2381 (mi_async_p): New function.
2382 (mi_async, mi_async_1): New globals.
2383 (set_mi_async_command, show_mi_async_command, mi_async): New
2385 (exec_continue): Call prepare_execution_command.
2386 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2387 (mi_execute_async_cli_command): Use mi_async_p.
2388 (_initialize_mi_main): Install "set mi-async". Make
2389 "target-async" a deprecated alias.
2391 2014-05-29 Pedro Alves <palves@redhat.com>
2393 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2394 (_initialize_cli_interp): Adjust.
2395 * event-loop.c: Include "observer.h".
2396 (start_event_loop): Notify 'command_error' observers instead of
2397 calling display_gdb_prompt. Remove FIXME comment.
2398 * event-top.c (display_gdb_prompt): Remove call into the
2400 * inf-loop.c: Include "observer.h".
2401 (inferior_event_handler): Notify 'command_error' observers instead
2402 of calling display_gdb_prompt.
2403 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2404 observers instead of calling display_gdb_prompt.
2405 * interps.c (interp_set): Don't call display_gdb_prompt.
2406 (current_interp_display_prompt_p): Delete.
2407 * interps.h (interp_prompt_p): Delete declaration.
2408 (interp_prompt_p_ftype): Delete.
2409 (struct interp_procs) <prompt_proc_p>: Delete field.
2410 (current_interp_display_prompt_p): Delete declaration.
2411 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2412 (_initialize_mi_interp): Adjust.
2413 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2414 'command_error' observers.
2415 (tui_on_sync_execution_done, tui_on_command_error): New
2417 (tui_display_prompt_p): Delete.
2418 (_initialize_tui_interp): Adjust.
2420 2014-05-29 Pedro Alves <palves@redhat.com>
2423 * cli/cli-interp.c: Include infrun.h and observer.h.
2424 (cli_uiout, cli_interp): New globals.
2425 (cli_on_signal_received, cli_on_end_stepping_range)
2426 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2428 (cli_interpreter_init): Install them as 'end_stepping_range',
2429 'signal_received' 'signal_exited', 'exited' and 'no_history'
2431 (_initialize_cli_interp): Remove cli_interp local.
2432 * infrun.c (handle_inferior_event): Call the several stop reason
2433 observers instead of printing the stop reason directly.
2434 (end_stepping_range): New function.
2435 (print_end_stepping_range_reason, print_signal_exited_reason)
2436 (print_exited_reason, print_signal_received_reason)
2437 (print_no_history_reason): Make static, and add an uiout
2438 parameter. Print to that instead of to CURRENT_UIOUT.
2439 * infrun.h (print_end_stepping_range_reason)
2440 (print_signal_exited_reason, print_exited_reason)
2441 (print_signal_received_reason print_no_history_reason): New
2443 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2445 <cli_uiout>: New field.
2446 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2447 uiout for CLI output. Install 'signal_received',
2448 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2450 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2451 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2452 (mi_on_no_history): New functions.
2453 (ui_out_free_cleanup): Delete function.
2454 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2455 instead use the one already stored in the MI interpreter data.
2456 (mi_ui_out): Adjust.
2457 * tui/tui-interp.c: Include infrun.h and observer.h.
2458 (tui_interp): New global.
2459 (tui_on_signal_received, tui_on_end_stepping_range)
2460 (tui_on_signal_exited, tui_on_exited)
2461 (tui_on_no_history): New functions.
2462 (tui_init): Install them as 'end_stepping_range',
2463 'signal_received' 'signal_exited', 'exited' and 'no_history'
2465 (_initialize_tui_interp): Delete tui_interp local.
2467 2014-05-29 Pedro Alves <palves@redhat.com>
2470 * linux-nat.c (linux_nat_resume_callback): Rename the second
2471 parameter to 'except'. Skip LP if it points to EXCEPT.
2472 (linux_nat_resume): Don't mark the event lwp as not stopped
2473 before resuming sibling lwps. Instead ask
2474 linux_nat_resume_callback to skip the event lwp. Mark it as not
2475 stopped after actually resuming it.
2476 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2478 (wait_lwp): Mark the lwp as stopped here.
2479 (stop_wait_callback): Mark the lwp as not stopped right after
2480 resuming it. Don't mark lwps as stopped here.
2481 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2482 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2484 2014-05-29 Pedro Alves <palves@redhat.com>
2487 * infrun.c (resume): Determine how much to resume depending on
2488 whether the caller wanted a step, not whether we can hardware step
2489 the target. Mark all threads that we intend to run as running,
2490 unless we're calling an inferior function.
2491 (normal_stop): If the thread is running an infcall, don't finish
2493 * target.c (target_resume): Don't mark threads as running here.
2495 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2497 * serial.c (_initialize_serial): Remove support for
2498 the "set remotebaud" and "show remotebaud" commands.
2499 * NEWS: Add entry documenting the removal of that command.
2501 2014-05-28 Yao Qi <yao@codesourcery.com>
2503 * charset.c: Fix typo in comments.
2505 2014-05-27 Gary Benson <gbenson@redhat.com>
2507 * utils.c (internal_vproblem): Prompt for a bug report.
2509 2014-05-26 Andy Wingo <wingo@igalia.com>
2511 * guile/scm-arch.c (arscm_mark_arch_smob):
2512 * guile/scm-block.c (bkscm_mark_block_smob)
2513 (bkscm_mark_block_syms_progress_smob):
2514 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2515 * guile/scm-exception.c (exscm_mark_exception_smob):
2516 * guile/scm-frame.c (frscm_mark_frame_smob):
2517 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2518 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2519 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2520 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2521 (ppscm_mark_pretty_printer_worker_smob):
2522 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2523 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2524 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2525 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2527 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2530 2014-05-26 Andy Wingo <wingo@igalia.com>
2531 Doug Evans <xdje42@gmail.com>
2533 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2534 empty_base_class. All uses updated.
2535 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2536 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2538 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2539 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2540 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2541 (gdbscm_gsmob_has_property_p, add_property_name)
2542 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2543 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2544 (gdb-object-has-property?, gdb-object-properties): Remove.
2545 (gdb-object-kind): Renamed from gsmob-kind.
2547 2014-05-26 Andy Wingo <wingo@igalia.com>
2549 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2550 * configure: Regenerate.
2552 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2554 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2556 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2558 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2559 (replay_memory_access_read_only, replay_memory_access_read_write)
2560 (replay_memory_access_types, replay_memory_access)
2561 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2562 (cmd_set_record_btrace, cmd_show_record_btrace)
2563 (cmd_show_replay_memory_access): New.
2564 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2565 (record_btrace_remove_breakpoint): Replace
2566 record_btrace_allow_memory_access with replay_memory_access.
2567 (_initialize_record_btrace): Add commands.
2568 * NEWS: Announce it.
2570 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2572 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2574 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2576 * MAINTAINERS (Write After Approval): Move self back from
2579 2014-05-22 Pedro Alves <palves@redhat.com>
2581 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2582 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2583 (disable_randomization, enum exec_direction_kind)
2584 (execution_direction, stop_registers, start_remote)
2585 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2586 (wait_for_inferior, normal_stop, get_last_target_status)
2587 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2588 (insert_step_resume_breakpoint_at_sal)
2589 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2590 (set_step_info, print_stop_event, signal_stop_state)
2591 (signal_print_state, signal_pass_state, signal_stop_update)
2592 (signal_print_update, signal_pass_update)
2593 (update_signals_program_target, clear_exit_convenience_vars)
2594 (displaced_step_dump_bytes, update_observer_mode)
2595 (signal_catch_update, gdb_signal_from_command): Move
2597 * infrun.h: ... to this new file.
2598 * amd64-tdep.c: Include infrun.h.
2599 * annotate.c: Include infrun.h.
2600 * arch-utils.c: Include infrun.h.
2601 * arm-linux-tdep.c: Include infrun.h.
2602 * arm-tdep.c: Include infrun.h.
2603 * break-catch-sig.c: Include infrun.h.
2604 * breakpoint.c: Include infrun.h.
2605 * common/agent.c: Include infrun.h instead of inferior.h.
2606 * corelow.c: Include infrun.h.
2607 * event-top.c: Include infrun.h.
2608 * go32-nat.c: Include infrun.h.
2609 * i386-tdep.c: Include infrun.h.
2610 * inf-loop.c: Include infrun.h.
2611 * infcall.c: Include infrun.h.
2612 * infcmd.c: Include infrun.h.
2613 * infrun.c: Include infrun.h.
2614 * linux-fork.c: Include infrun.h.
2615 * linux-nat.c: Include infrun.h.
2616 * linux-thread-db.c: Include infrun.h.
2617 * monitor.c: Include infrun.h.
2618 * nto-tdep.c: Include infrun.h.
2619 * procfs.c: Include infrun.h.
2620 * record-btrace.c: Include infrun.h.
2621 * record-full.c: Include infrun.h.
2622 * remote-m32r-sdi.c: Include infrun.h.
2623 * remote-mips.c: Include infrun.h.
2624 * remote-notif.c: Include infrun.h.
2625 * remote-sim.c: Include infrun.h.
2626 * remote.c: Include infrun.h.
2627 * reverse.c: Include infrun.h.
2628 * rs6000-tdep.c: Include infrun.h.
2629 * s390-linux-tdep.c: Include infrun.h.
2630 * solib-irix.c: Include infrun.h.
2631 * solib-osf.c: Include infrun.h.
2632 * solib-svr4.c: Include infrun.h.
2633 * target.c: Include infrun.h.
2634 * top.c: Include infrun.h.
2635 * windows-nat.c: Include infrun.h.
2636 * mi/mi-interp.c: Include infrun.h.
2637 * mi/mi-main.c: Include infrun.h.
2638 * python/py-threadevent.c: Include infrun.h.
2640 2014-05-22 Pedro Alves <palves@redhat.com>
2642 * infrun.c (handle_inferior_event): Store the exit code for
2643 --return-child-result here, instead of ...
2644 (print_exited_reason): ... here.
2646 2014-05-21 Pedro Alves <palves@redhat.com>
2649 * gdbthread.h (struct thread_control_state): New field
2651 * infrun.c (follow_fork): Copy the new thread control field to the
2653 (clear_proceed_status_thread): Clear the new thread control field.
2654 (proceed): Set the new thread control field.
2655 * interps.h (command_interp): Declare.
2656 * interps.c (command_interpreter): New global.
2657 (command_interp): New function.
2658 (interp_exec): Set `command_interpreter' while here.
2659 * cli-out.c (cli_uiout_dtor): New function.
2660 (cli_ui_out_impl): Install it.
2661 * mi/mi-interp.c: Include cli-out.h.
2662 (mi_cmd_interpreter_exec): Add comment.
2663 (restore_current_uiout_cleanup): New function.
2664 (ui_out_free_cleanup): New function.
2665 (mi_on_normal_stop): If finishing an execution command started by
2666 a CLI command, or any kind of breakpoint-like event triggered,
2667 print the stop event to the output (CLI) stream.
2668 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2670 2014-05-21 Pedro Alves <palves@redhat.com>
2672 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2673 current source line having changed.
2674 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2675 * infrun.c (normal_stop): Adjust call to
2676 set_current_sal_from_frame.
2677 * source.c (clear_lines_listed_range): New function.
2678 (set_current_source_symtab_and_line, identify_source_line): Clear
2679 the lines listed range.
2680 (line_info): Handle the first "info line" after the current source
2681 line having changed.
2682 * stack.c (print_stack_frame): Remove center handling.
2683 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2686 2014-05-21 Pedro Alves <palves@redhat.com>
2688 * inf-child.c (inf_child_mourn_inferior): New function.
2689 * inf-child.h (inf_child_mourn_inferior): New declaration.
2690 * darwin-nat.c (darwin_mourn_inferior): Use
2691 inf_child_mourn_inferior.
2692 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2693 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2694 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2695 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2696 * windows-nat.c (windows_mourn_inferior): Likewise.
2698 2014-05-21 Doug Evans <xdje42@gmail.com>
2700 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2702 2014-05-21 Doug Evans <xdje42@gmail.com>
2704 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2705 (gdbscm_out_of_range_error): Ditto.
2706 (gdbscm_memory_error): Ditto.
2707 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2708 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2709 (gdbscm_out_of_range_error): Update.
2710 (gdbscm_memory_error): Update.
2711 (gdbscm_scm_to_target_string_unsafe): Delete.
2713 2014-05-21 Pedro Alves <palves@redhat.com>
2715 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2717 (inf_child_open_target): New function.
2718 (inf_child_open): Use inf_child_open_target to push the target
2719 instead of erroring out.
2720 (inf_child_disconnect, inf_child_close)
2721 (inf_child_maybe_unpush_target): New functions.
2722 (inf_child_target): Install inf_child_disconnect and
2723 inf_child_close. Store a pointer to the returned object.
2724 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2726 * target.c (auto_connect_native_target): New global.
2727 (show_default_run_target): New function.
2728 (find_default_run_target): Return NULL if automatically connecting
2729 to the native target is disabled.
2730 (_initialize_target): Install set/show auto-connect-native-target.
2731 * NEWS: Mention "set auto-connect-native-target", and "target
2733 * linux-nat.c (super_close): New global.
2734 (linux_nat_close): Call super_close.
2735 (linux_nat_add_target): Store a pointer to the base class's
2737 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2738 inf_child_maybe_unpush.
2739 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2741 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2742 the inferior. Use inf_child_maybe_unpush_target.
2743 (inf_ttrace_attach): Don't push the target if it is already
2745 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2746 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2747 after mourning the inferior. Use inf_child_maybe_unpush_target.
2748 (darwin_attach_pid): Don't push the target if it is already
2750 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2751 mourning the inferior. Use inf_child_maybe_unpush_target.
2752 (gnu_detach): Use inf_child_maybe_unpush_target.
2753 * go32-nat.c (go32_create_inferior): Don't push the target if it
2755 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2756 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2757 (procfs_open): Rename to ...
2758 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2759 comments. Can target_preopen before changing node. Call
2760 inf_child_open_target to push the target explicitly.
2761 (procfs_attach): Don't push the target if it is already pushed.
2762 (procfs_detach): Use inf_child_maybe_unpush_target.
2763 (procfs_create_inferior): Don't push the target if it is already
2765 (nto_native_ops): New global.
2766 (procfs_open): Reimplement.
2767 (procfs_native_open): New function.
2768 (init_procfs_targets): Install procfs_native_open as to_open of
2769 "target native". Store a pointer to the "native" target in
2771 * procfs.c (procfs_attach): Don't push the target if it is already
2773 (procfs_detach): Use inf_child_maybe_unpush_target.
2774 (procfs_mourn_inferior): Only unpush the target after mourning the
2775 inferior. Use inf_child_maybe_unpush_target.
2776 (procfs_init_inferior): Don't push the target if it is already
2778 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2779 if it is already pushed.
2781 2014-05-21 Pedro Alves <palves@redhat.com>
2783 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2784 and "procfs" targets are now called "native" instead.
2786 2014-05-21 Pedro Alves <palves@redhat.com>
2788 * go32-nat.c (go32_open): Delete.
2789 (go32_target): Don't override the to_open method.
2791 2014-05-21 Pedro Alves <palves@redhat.com>
2793 * nto-procfs.c (procfs_can_run): New function.
2794 (nto_procfs_ops): New global.
2795 (init_procfs_targets): New, based on procfs_target. Install
2796 "target native" in addition to "target procfs".
2797 (_initialize_procfs): Call init_procfs_targets instead of adding
2800 2014-05-21 Pedro Alves <palves@redhat.com>
2802 * windows-nat.c (windows_target): Don't override to_shortname,
2803 to_longname or to_doc.
2805 2014-05-21 Pedro Alves <palves@redhat.com>
2807 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2810 2014-05-21 Pedro Alves <palves@redhat.com>
2812 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2813 to_shortname, to_longname or to_doc.
2815 2014-05-21 Pedro Alves <palves@redhat.com>
2817 * go32-nat.c (go32_target): Don't override to_shortname,
2818 to_longname or to_doc.
2820 2014-05-21 Pedro Alves <palves@redhat.com>
2822 * inf-child.c (inf_child_open): Remove mention of "child".
2823 (inf_child_target): Rename target to "native" instead of "child".
2825 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2827 * Makefile.in (SFILES): Delete "regset.c".
2828 (COMMON_OBS): Delete "regset.o".
2830 * regset.h (regset_alloc): Delete prototype.
2832 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2834 * sparc-linux-tdep.c (sparc32_linux_gregset)
2835 (sparc32_linux_fpregset): New static regset structures.
2836 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2837 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2839 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2840 (sparc64_linux_fpregset): New static regset structures.
2841 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2842 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2843 New static regset structures.
2844 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2845 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2846 New static regset structures.
2847 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2848 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2849 New static regset structures.
2850 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2851 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2852 New static regset structures.
2853 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2855 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2857 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2858 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2859 register maps ("regmaps") from "*regset" to "*regmap". Do this
2860 for all regmap types and variables.
2861 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2862 (sparc32_linux_supply_core_gregset)
2863 (sparc32_linux_collect_core_gregset)
2864 (sparc32_linux_supply_core_fpregset)
2865 (sparc32_linux_collect_core_fpregset): Likewise.
2866 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2867 (sparc_gregmap, sparc_fpregmap): ... these.
2868 (sparc_supply_gregset, sparc_collect_gregset)
2869 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2870 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2871 (_initialize_sparc_nat): Rename regmaps.
2872 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2873 (sparc_gregmap, sparc_fpregmap): ... these.
2874 (sparc_supply_gregset, sparc_collect_gregset)
2875 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2876 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2878 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2879 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2881 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2883 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2884 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2885 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2887 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2888 (sparc32_bsd_fpregset): Rename to...
2889 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2890 (sparc32_bsd_fpregmap): ... these.
2891 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2892 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2893 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2894 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2895 (struct sparc_gregmap, struct sparc_fpregmap)
2896 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2897 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2898 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2899 (sparc32_supply_regset, sparc32_collect_gregset)
2900 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2902 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2903 (sparc64_linux_ptrace_gregmap): ... this.
2904 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2905 (_initialize_sparc64_linux_nat): Rename regmaps.
2906 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2907 (sparc64_linux_core_gregmap): ... this.
2908 (sparc64_linux_supply_core_gregset)
2909 (sparc64_linux_collect_core_gregset)
2910 (sparc64_linux_supply_core_fpregset)
2911 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2912 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2913 (sparc64_sol2_fpregset): Rename to...
2914 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2915 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2916 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2918 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2919 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2920 (sparc64_bsd_fpregset): Rename to...
2921 (struct sparc_gregmap, sparc64_sol2_gregmap)
2922 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2923 (sparc64_bsd_fpregmap): ... these.
2924 (sparc64_supply_gregset, sparc64_collect_gregset)
2925 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2927 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2928 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2929 (sparc64fbsd_gregmap): ... this.
2930 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2931 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2933 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2934 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2935 (sparc64nbsd_collect_fpregset): Likewise.
2936 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2937 (sparc64nbsd_gregmap): ... this.
2938 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2940 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2941 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2942 (sparc64obsd_gregmap): ... this.
2943 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2945 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2946 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2947 (sparc32nbsd_gregmap): ... this.
2948 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2951 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2953 * score-tdep.c (score7_linux_gregset): New static regset
2955 (score7_linux_regset_from_core_section): Remove dynamic regset
2957 (score_gdbarch_init): Drop allocation of tdep structure.
2958 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2960 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2962 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2964 (am33_regset_from_core_section): Remove dynamic regset
2967 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2969 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2970 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2972 (mips_linux_regset_from_core_section): Remove dynamic regset
2974 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2975 'gregset64', 'fpregset', and 'fpregset64'.
2976 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2977 deleted tdep fields.
2979 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2981 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2983 (amd64_regset_from_core_section): Remove dynamic regset
2985 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2987 (amd64obsd_regset_from_core_section): Remove dynamic regset
2989 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2991 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2992 x86-common regset supply function.
2993 * i386-tdep.c (i386_collect_gregset): Make static.
2994 (i386_gregset): New global regset structure.
2995 (i386_fpregset, i386_xstateregset): New static regset structures.
2996 (i386_regset_from_core_section): Remove dynamic regset
2998 (i386_gdbarch_init): Remove initialization of tdep fields
2999 'gregset', 'fpregset', and 'xstateregset'.
3000 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3001 'fpregset', and 'xstateregset'.
3002 (i386_collect_gregset): Remove prototype.
3003 (i386_gregset): New declaration.
3004 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3006 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3009 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3011 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3012 (arm_linux_vfpregset): New static regset structures.
3013 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3015 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3016 and 'vfpregset' fields.
3018 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3020 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3021 (aarch64_linux_fpregset): New static regset structures.
3022 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3023 of regset structures.
3024 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3027 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3029 * regset.h (struct regset): Remove gdbarch field.
3030 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3031 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3032 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3034 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3035 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3036 (ppc32_linux_vsxregset): Likewise.
3037 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3038 via the regcache instead of the regset.
3039 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3040 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3041 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3042 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3045 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3047 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3048 Constify structures.
3049 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3050 (alphanbsd_aout_gregset): Likewise.
3051 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3052 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3054 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3055 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3057 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3058 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3059 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3060 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3061 * m88k-tdep.c (m88k_gregset): Likewise.
3062 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3063 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3064 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3065 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3066 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3067 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3068 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3069 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3070 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3072 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3073 * sh-tdep.h (sh_corefile_gregset): Likewise.
3074 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3075 * vax-tdep.c (vax_gregset): Likewise.
3077 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3079 Fix TLS access for -static -pthread.
3080 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3081 (try_thread_db_load_1): Initialize it.
3082 (thread_db_get_thread_local_address): Call it if LM is zero.
3083 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3084 * target.h (struct target_ops) (to_get_thread_local_address): Add
3085 load_module_addr comment.
3087 2014-05-21 Pedro Alves <palves@redhat.com>
3089 * dcache.c (dcache_read_memory_partial): If reading the cache line
3090 fails, fallback to reading just the memory the caller wanted.
3092 2014-05-20 Doug Evans <dje@google.com>
3094 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3095 instead of get_current_arch.
3097 2014-05-20 Pedro Alves <palves@redhat.com>
3099 * NEWS: Mention that compare-sections now works with all targets.
3101 * remote.c (PACKET_qCRC): New enum value.
3102 (remote_verify_memory): Don't send qCRC if the target has no
3103 execution. Use packet_support/packet_ok. If the target doesn't
3104 support the qCRC packet, fallback to a deep memory copy.
3105 (compare_sections_command): Say "target image" instead of "remote
3107 (_initialize_remote): Add PACKET_qCRC to the list of config
3108 packets that have no associated command. Extend comment.
3109 * target.c (simple_verify_memory, default_verify_memory): New
3111 * target.h (struct target_ops) <to_verify_memory>: Default to
3112 default_verify_memory.
3113 (simple_verify_memory): New declaration.
3114 * target-delegates.c: Regenerate.
3116 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3118 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3120 2014-05-20 Hui Zhu <hui@codesourcery.com>
3121 Yao Qi <yao@codesourcery.com>
3124 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3125 and change address of sp and pc.
3127 2014-05-19 Tom Tromey <tromey@redhat.com>
3129 * gdbtypes.c (rank_function): Use XNEWVEC.
3130 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3132 2014-05-19 Doug Evans <dje@google.com>
3134 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3135 build_type_unit_groups and moved closer to only caller. Remove
3136 arguments. All references updated. Remove outdated .gdb_index
3138 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3139 build_type_psymtabs_1.
3141 2014-05-19 Doug Evans <dje@google.com>
3143 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3144 n_type_unit_groups, all_type_unit_groups. All uses removed.
3145 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3146 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3147 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3148 (add_type_unit_group_to_table): Delete.
3150 2014-05-19 Doug Evans <dje@google.com>
3152 * eval.c (evaluate_subexp_standard): Add some comments.
3154 2014-05-17 Doug Evans <xdje42@gmail.com>
3156 * progspace.c (remove_program_space): Delete, unused.
3157 * progspace.h (remove_program_space): Ditto.
3159 2014-05-17 Doug Evans <xdje42@gmail.com>
3161 * inferior.c (prune_inferiors): Fix comment.
3162 (remove_inferior_command): Call prune_program_spaces.
3164 2014-05-16 Doug Evans <dje@google.com>
3166 New command line option -D.
3168 * main.c (set_gdb_data_directory): New function.
3169 (captured_main): Recognize -D. Flag error for --data-directory "".
3170 Call set_gdb_data_directory.
3171 (print_gdb_help): Print --data-directory, -D.
3172 * main.h (set_gdb_data_directory): Declare.
3173 * top.c (staged_gdb_datadir): New static global.
3174 (set_gdb_datadir): Call set_gdb_data_directory
3175 (show_gdb_datadir): New function.
3176 (init_main): Update init of data-directory parameter.
3178 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3180 Import the "dirfd" gnulib module.
3181 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3182 * gnulib/aclocal.m4: Update.
3183 * gnulib/config.in: Update.
3184 * gnulib/configure: Update.
3185 * gnulib/import/Makefile.am: Update.
3186 * gnulib/import/Makefile.in: Update.
3187 * gnulib/import/dirfd.c: New.
3188 * gnulib/import/m4/dirfd.m4: New.
3189 * gnulib/import/m4/gnulib-cache.m4: Update.
3190 * gnulib/import/m4/gnulib-comp.m4: Update.
3192 2014-05-16 Pierre Muller <muller@sourceware.org>
3193 Yao Qi <yao@codesourcery.com>
3195 * valprint.c (print_wchar): Move the code on checking whether
3196 W is a printable wide char to the default branch of switch
3197 statement below. Call wchar_printable instead of gdb_iswprint.
3199 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3201 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3202 ldr.w and ldrd instructions.
3204 2014-05-15 Doug Evans <dje@google.com>
3206 * dwarf2read.c (read_structure_type): Delete outdated comments.
3208 2014-05-14 Tom Tromey <tromey@redhat.com>
3210 * macrocmd.c (print_macro_definition): Reindent.
3212 2014-05-13 Doug Evans <xdje42@gmail.com>
3214 * python/py-cmd.c (cmdpy_completer): Add comment.
3215 (completers): Make const.
3217 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3219 * infrun.c (resume): Remove should_resume (unused). Move up
3220 declaration of resume_ptid.
3222 2014-05-13 Tom Tromey <tromey@redhat.com>
3224 * language.h (unop_type_check): Remove.
3225 (binop_type_check): Don't declare.
3227 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3229 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3230 call to regcache_raw_collect.
3232 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3234 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3235 mi_console->quote as the quoting character.
3237 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3239 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3241 2014-04-29 Tom Tromey <tromey@redhat.com>
3243 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3244 "show debug varobj".
3246 2014-05-07 Kyle McMartin <kyle@redhat.com>
3248 Pushed by Joel Brobecker <brobecker@adacore.com>.
3249 * aarch64-tdep.c (aarch64_software_single_step): New function.
3250 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3251 with aarch64_software_single_step.
3253 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3257 2014-05-05 Keith Seitz <keiths@redhat.com>
3259 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3260 variable or history value is successfully parsed.
3262 2014-05-05 Yao Qi <yao@codesourcery.com>
3263 Pedro Alves <palves@redhat.com>
3265 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3266 address of blocks that intersects the requested range. Trim
3267 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3269 * ctf.c (ctf_xfer_partial): Likewise.
3271 2014-05-05 Yao Qi <yao@codesourcery.com>
3273 * printcmd.c (display_command): Remove the check to
3274 target_has_execution.
3276 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3278 * ppcobsd-nat.c: Include "obsd-nat.h".
3279 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3281 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3283 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3285 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3286 and 16-bit signed and unsigned arguments. Update comment.
3287 (stap_parse_probe_arguments): Extend code to handle such
3288 arguments. Use warning instead of complaint to notify about
3289 unrecognized bitness.
3291 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3293 PR breakpoints/16889
3294 * stap-probe.c (stap_parse_probe_arguments): Simplify
3295 check for non-prefixed probes (i.e., probes whose
3296 arguments do not start with "N@"). Always set the
3297 argument type to a sane value.
3299 2014-05-01 David Taylor <dtaylor@emc.com>
3301 * remote.c (compare_sections_command): Add -r option to compare
3302 all loadable read-only sections.
3304 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3306 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3307 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3309 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3310 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3311 Remove unused CORE_ADDR argument. Update all callers.
3313 2014-04-29 Pedro Alves <palves@redhat.com>
3315 * remote.c (struct packet_config) <detect>: Extend comment.
3316 (add_packet_config_cmd): Don't set the config's detect or support
3318 (init_all_packet_configs): Also initialize the config's 'detect'
3320 (reset_all_packet_configs_support): New function.
3321 (remote_open_1): Call reset_all_packet_configs_support instead of
3322 init_all_packet_configs.
3323 (_initialize_remote): Initialize all packet configs. Assert that
3324 all packets have an associated command, except a few known
3327 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3329 * dwarf2read.c (read_subrange_type): Handle dynamic
3330 DW_AT_lower_bound attributes.
3332 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3334 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3335 dynamic bounds before computing its upper bound.
3336 (ada_discrete_type_low_bound): Same as above with the lower bound.
3338 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3340 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3341 range types. Adjust the array handling implementation to
3342 take advantage of this change.
3343 (resolve_dynamic_range): New function, mostly extracted from
3344 resolve_dynamic_bounds.
3345 (resolve_dynamic_array): New function, mostly extracted from
3346 resolve_dynamic_bounds.
3347 (resolve_dynamic_bounds): Delete.
3348 (resolve_dynamic_type): Reimplement. Add handling of
3349 TYPE_CODE_RANGE types.
3351 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3353 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3354 handling of parallel ___XA types.
3356 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3358 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3359 unnecessary second call to static_unwrap_type.
3361 2014-04-27 Hui Zhu <hui@codesourcery.com>
3363 * stack.c (print_frame_info): Call do_gdb_disassembly with
3364 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3366 2014-04-26 Doug Evans <xdje42@gmail.com>
3368 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3370 2014-04-25 Pedro Alves <palves@redhat.com>
3373 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3374 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3375 and newline from built string.
3376 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3377 (linux_ptrace_attach_fail_reason): ... this.
3378 * linux-nat.c (linux_nat_attach): Adjust to use
3379 linux_ptrace_attach_fail_reason.
3381 2014-04-25 Pedro Alves <palves@redhat.com>
3383 * remote.c (struct remote_state): Remove multi_process_aware,
3384 non_stop_aware, cond_tracepoints, cond_breakpoints,
3385 breakpoint_commands, fast_tracepoints, static_tracepoints,
3386 install_in_trace, disconnected_tracing,
3387 enable_disable_tracepoints, string_tracing, and
3388 augmented_libraries_svr4_read fields.
3389 (remote_multi_process_p): Move further below in the file.
3390 (struct packet_config): Add comments.
3391 (update_packet_config): Delete function.
3392 (show_packet_config_cmd): Use packet_config_support.
3393 (add_packet_config_cmd): Use NULL as set callback.
3394 (packet_ok): "set remote foo-packet"-style commands no longer
3395 change config->supported -- adjust.
3396 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3397 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3398 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3399 (PACKET_QNonStop, PACKET_multiprocess_feature)
3400 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3401 (PACKET_DisconnectedTracing_feature)
3402 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3403 (set_remote_protocol_packet_cmd): Delete function.
3404 (packet_config_support, packet_support): New functions.
3405 (set_remote_protocol_Z_packet_cmd): Don't call
3406 update_packet_config.
3407 (remote_query_attached, remote_pass_signals)
3408 (remote_program_signals, remote_threads_info)
3409 (remote_threads_extra_info, remote_start_remote): Use
3411 (remote_start_remote): Use packet_config_support and
3413 (init_all_packet_configs): Set all packets to unknown support,
3414 instead of calling update_packet_config.
3415 (remote_check_symbols): Use packet_support.
3416 (remote_supported_packet): Unconditionally set the packet config's
3418 (remote_multi_process_feature, remote_non_stop_feature)
3419 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3420 (remote_breakpoint_commands_feature)
3421 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3422 (remote_install_in_trace_feature)
3423 (remote_disconnected_tracing_feature)
3424 (remote_enable_disable_tracepoint_feature)
3425 (remote_string_tracing_feature)
3426 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3427 (remote_protocol_features): Adjust to use remote_supported_packet
3428 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3429 "ConditionalTracepoints", "ConditionalBreakpoints",
3430 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3431 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3432 "EnableDisableTracepoints", and "tracenz".
3433 (remote_query_supported): Use packet_support.
3434 (remote_open_1): Adjust.
3435 (extended_remote_attach_1): Use packet_support. Switch on the
3436 result of packet_ok instead of checking whether the packet ended
3438 (remote_vcont_resume): Use packet_support.
3439 (remote_resume, remote_stop_ns, fetch_register_using_p)
3440 (remote_prepare_to_store, store_register_using_P)
3441 (check_binary_download, remote_write_bytes): Use packet_support.
3442 (remote_vkill): Use packet_support. Switch on the result of
3443 packet_ok instead of checking whether the packet ended up
3445 (extended_remote_supports_disable_randomization): Use
3447 (extended_remote_run): Switch on the result of packet_ok instead
3448 of checking whether the packet ended up disabled.
3449 (remote_insert_breakpoint, remote_remove_breakpoint)
3450 (remote_insert_watchpoint, remote_remove_watchpoint)
3451 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3453 (remote_search_memory): Use packet_config_support.
3454 (remote_get_thread_local_address, remote_get_tib_address)
3455 (remote_hostio_send_command, remote_can_execute_reverse): Use
3457 (remote_supports_cond_tracepoints)
3458 (remote_supports_cond_breakpoints)
3459 (remote_supports_fast_tracepoints)
3460 (remote_supports_static_tracepoints)
3461 (remote_supports_install_in_trace)
3462 (remote_supports_enable_disable_tracepoint)
3463 (remote_supports_string_tracing)
3464 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3465 the packet config says the feature is enabled or disabled.
3466 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3467 (remote_get_trace_status): Use packet_support.
3468 (remote_set_disconnected_tracing): Adjust to check whether the
3469 feature is enabled with packet_support.
3470 (remote_set_trace_buffer_size, remote_use_agent)
3471 (remote_can_use_agent, remote_supports_btrace): Use
3473 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3474 Use packet_config_support.
3475 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3476 the packet config says the feature is enabled or disabled.
3477 (set_range_stepping): Use packet_support.
3479 2014-04-25 Tom Tromey <tromey@redhat.com>
3481 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3484 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3486 * NEWS: Mention support for C99 variable length arrays.
3488 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3490 * ada-lang.c (standard_exc): Expand introductory comment.
3492 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3493 Walfred Tedeschi <walfred.tedeschi@intel.com>
3495 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3497 (amd64_linux_read_description): Add code to handle AVX512 xstate
3498 mask and return respective tdesc.
3499 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3500 and features/i386/x32-avx512-linux.c.
3501 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3502 (amd64_linux_core_read_description): Add code to handle AVX512
3503 xstate mask and return respective tdesc.
3504 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3505 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3507 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3508 (tdesc_amd64_avx512_linux): New prototype.
3509 (tdesc_x32_avx512_linux): Likewise.
3510 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3511 features/i386/x32-avx512.c.
3512 (amd64_ymm_avx512_names): New register names for pseudo
3514 (amd64_ymmh_avx512_names): New register names for raw registers
3516 (amd64_k_names): New register names for K registers.
3517 (amd64_zmmh_names): New register names for ZMM raw registers.
3518 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3519 (amd64_xmm_avx512_names): New register names for XMM16-31
3521 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3523 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3524 if feature is present.
3525 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3526 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3527 (AMD64_NUM_REGS): Adjust to new number of registers.
3528 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3529 registers supplied via XSTATE by AVX512 registers.
3530 (i386_linux_read_description): Add case for AVX512.
3531 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3532 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3533 (i386_linux_core_read_description): Add case for AVX512.
3534 (i386_linux_init_abi): Install supported register note section
3536 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3538 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3539 registers to be number of zmm7h + 1.
3540 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3541 * i386-tdep.c: Include features/i386/i386-avx512.c.
3542 (i386_zmm_names): Add ZMM pseudo register names array.
3543 (i386_zmmh_names): Add ZMM raw register names array.
3544 (i386_k_names): Add K raw register names array.
3545 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3546 registers. AVX512 has 16 more ZMM registers than there are YMM
3548 (i386_zmmh_regnum_p): Add function to look up register number of
3550 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3551 (i386_k_regnum_p): Likewise for K raw registers.
3552 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3553 registers added by AVX512.
3554 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3555 registers added by AVX512.
3556 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3558 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3559 (i386_pseudo_register_name): Add ZMM pseudo registers.
3560 (i386_zmm_type): Construct and return vector registers type for ZMM
3562 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3563 ZMM0-31 pseudo registers and K registers.
3564 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3565 and YMM16-31 registers from register cache.
3566 (i386_pseudo_register_write): Add code to write K, ZMM and
3568 (i386_register_reggroup_p): Add code to include/exclude AVX512
3569 registers in/from respective register groups.
3570 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3571 registers if feature is present in xcr0.
3572 (i386_gdbarch_init): Add code to initialize AVX512 feature
3573 variables in tdep structure, wire in pseudo registers and call
3574 initialize_tdesc_i386_avx512.
3575 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3577 (i386_regnum): Add AVX512 registers.
3578 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3579 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3580 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3581 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3583 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3584 (i386_ymm_avx512_regnum_p): Likewise.
3585 (i386_k_regnum_p): Likewise.
3586 (i386_zmm_regnum_p): Likewise.
3587 (i386_zmmh_regnum_p): Likewise.
3588 * i387-tdep.c : Update year in copyright notice.
3589 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3591 (XSAVE_YMM_AVX512_ADDR): New macro.
3592 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3594 (XSAVE_XMM_AVX512_ADDR): New macro.
3595 (xsave_avx512_k_offset): New table for K register offsets in
3597 (XSAVE_AVX512_K_ADDR): New macro.
3598 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3600 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3601 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3603 (i387_collect_xsave): Add code to collect AVX512 registers from
3605 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3606 of XMM16-31 registers.
3607 (I387_NUM_K_REGS): New define for number of K registers.
3608 (I387_K0_REGNUM): New define for K0 register number.
3609 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3610 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3611 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3613 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3614 (I387_XMM16_REGNUM): New define for XMM16 register number.
3615 (I387_YMM0_REGNUM): New define for YMM0 register number.
3616 (I387_KEND_REGNUM): New define for last K register number.
3617 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3618 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3620 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3622 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3624 * features/Makefile: Add AVX512 related files.
3625 * features/i386/32bit-avx512.xml: New file.
3626 * features/i386/64bit-avx512.xml: Likewise.
3627 * features/i386/amd64-avx512-linux.c: Likewise.
3628 * features/i386/amd64-avx512-linux.xml: Likewise.
3629 * features/i386/amd64-avx512.c: Likewise.
3630 * features/i386/amd64-avx512.xml: Likewise.
3631 * features/i386/i386-avx512-linux.c: Likewise.
3632 * features/i386/i386-avx512-linux.xml: Likewise.
3633 * features/i386/i386-avx512.c: Likewise.
3634 * features/i386/i386-avx512.xml: Likewise.
3635 * features/i386/x32-avx512-linux.c: Likewise.
3636 * features/i386/x32-avx512-linux.xml: Likewise.
3637 * features/i386/x32-avx512.c: Likewise.
3638 * features/i386/x32-avx512.xml: Likewise.
3639 * regformats/i386/amd64-avx512-linux.dat: New file.
3640 * regformats/i386/amd64-avx512.dat: Likewise.
3641 * regformats/i386/i386-avx512-linux.dat: Likewise.
3642 * regformats/i386/i386-avx512.dat: Likewise.
3643 * regformats/i386/x32-avx512-linux.dat: Likewise.
3644 * regformats/i386/x32-avx512.dat: Likewise.
3645 * NEWS: Add note about new support for AVX512.
3648 2014-04-23 Pedro Alves <palves@redhat.com>
3650 * breakpoint.c (insert_bp_location): Tolerate errors if the
3651 breakpoint is set in a user-loaded objfile.
3652 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3653 location is marked shlib_disabled. If the breakpoint is set in a
3654 user-loaded objfile is a GDB-side memory breakpoint, validate it
3655 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3656 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3658 * mem-break.c (memory_validate_breakpoint): New function.
3659 * objfiles.c (userloaded_objfile_contains_address_p): New
3661 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3662 * target.h (memory_validate_breakpoint): New declaration.
3664 2014-04-23 Pedro Alves <palves@redhat.com>
3666 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3667 the breakpoint is set in a shared library, only suppress
3668 errors for software breakpoints, not hardware breakpoints.
3670 2014-04-22 Pedro Alves <palves@redhat.com>
3672 * infrun.c (schedlock_applies): New function, factored out from
3673 find_thread_needs_step_over.
3674 (find_thread_needs_step_over): Use it.
3675 (switch_back_to_stepped_thread): Always clear trap_expected if the
3676 step over is finished. Return early if scheduler locking applies.
3677 Look for the stepping thread and a potential step-over thread with
3679 (currently_stepping_or_nexting_callback): Delete.
3681 2014-04-22 Nick Clifton <nickc@redhat.com>
3683 * NEWS: Mention that ARM sim now supports tracing.
3685 2014-04-22 Yao Qi <yao@codesourcery.com>
3687 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3689 * tracefile.c (tracefile_fetch_registers): ... it. New
3691 * tracefile.h (tracefile_fetch_registers): Declare.
3692 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3693 tracefile_fetch_registers.
3695 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3698 * windows-nat.c (thread_rec): Don't display a warning when
3699 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3700 fails for any reason, set th->suspended to -1, so that we don't
3701 try to resume such a thread. Also, don't return NULL in these
3702 cases, to avoid completely ruin the session due to "PC register is
3703 not available" error.
3704 (do_windows_fetch_inferior_registers): Check errors in
3705 GetThreadContext call.
3706 (windows_continue): Accept an additional argument KILLED; if not
3707 zero, ignore errors in the SetThreadContext call, since the
3708 inferior was killed and is shutting down.
3709 (windows_resume, get_windows_debug_event)
3710 (windows_create_inferior, windows_mourn_inferior)
3711 (windows_kill_inferior): All callers of windows_continue changed
3712 to adjust to its new calling sequence.
3714 2014-04-19 Yao Qi <yao@codesourcery.com>
3716 * ctf.c (ctf_open): Call post_create_inferior.
3718 2014-04-19 Yao Qi <yao@codesourcery.com>
3720 * ctf.c (handle_id): New static variable.
3721 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3722 value. Get the declaration of event "register" and get length
3723 of field "contents".
3725 2014-04-19 Yao Qi <yao@codesourcery.com>
3727 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3729 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3731 * valops.c (oload_method_static): Remove unnecessary argument
3732 METHOD. Update all callers.
3734 2014-04-18 Pedro alves <palves@redhat.com>
3735 Tom Tromey <tromey@redhat.com>
3738 * frame.c (get_prev_frame_1): Rename to ...
3739 (get_prev_frame_always): ... this, and make extern. Adjust.
3740 (skip_artificial_frames): Use get_prev_frame_always.
3741 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3742 (get_frame_unwind_stop_reason): Adjust to rename.
3743 * frame.h (get_prev_frame_always): Declare.
3744 * inline-frame.c: Include frame.h.
3745 (inline_frame_this_id): Use get_prev_frame_always.
3747 2014-04-18 Tristan Gingold <gingold@adacore.com>
3749 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3750 code by using bfd_mach_o_get_base_address.
3752 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3754 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3755 (spu_ax_pseudo_register_collect): New function.
3756 (spu_ax_pseudo_register_push_stack): Likewise.
3757 (spu_dwarf_reg_to_regnum): Likewise.
3758 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3760 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3762 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3763 Replace FRAME argument with FRAME_ID.
3764 * gdbarch.c, gdbarch.h: Regenerate.
3765 * findvar.c (default_value_from_register): Add GDBARCH argument;
3766 replace FRAME by FRAME_ID. No longer call get_frame_id.
3767 (value_from_register): Update call to gdbarch_value_from_register.
3768 * value.h (default_value_from_register): Update prototype.
3769 * s390-linux-tdep.c (s390_value_from_register): Update interface
3770 and call to default_value_from_register.
3771 * spu-tdep.c (spu_value_from_register): Likewise.
3773 * findvar.c (address_from_register): Remove TYPE argument.
3774 Do not call value_from_register; use gdbarch_value_from_register
3775 with null_frame_id instead.
3776 * value.h (address_from_register): Update prototype.
3777 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3778 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3779 address_from_register interface change.
3781 2014-04-17 Yao Qi <yao@codesourcery.com>
3783 * gdbtypes.h: Update comments to link to types and macros'
3786 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3788 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3790 2014-04-16 Keith Seitz <keiths@redhat.com>
3793 * dwarf2read.c (skip_one_die): Check that all relative-offset
3794 sibling DIEs fall within range of the current reader's buffer.
3795 (read_partial_die): Likewise.
3797 2014-04-16 Keith Seitz <keiths@redhat.com>
3800 * cp-namespace.c (lookup_symbol_file): If the type name of
3801 `this' is NULL, return immediately.
3803 2014-04-14 Keith Seitz <keiths@redhat.com>
3806 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3807 from symbol_matches_domain in symtab.c. All local callers
3808 of symbol_matches_domain updated.
3809 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3810 search STRUCT_DOMAIN.
3811 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3812 independently. standard_lookup will do that automatically.
3813 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3814 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3815 (cp_lookup_symbol_in_namespace): Likewise.
3816 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3817 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3818 may return a STRUCT_DOMAIN match.
3819 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3820 * cp-support.c: Include language.h.
3821 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3823 * psymtab.c (match_partial_symbol): Compare the requested
3824 domain with the symbol's domain directly.
3825 (lookup_partial_symbol): Likewise.
3826 * symtab.c (lookup_symbol_in_language): Explain when/why
3827 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3828 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3829 appropriate languages.
3830 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3831 and moved to ada-lang.c
3832 (lookup_block_symbol): Explain that this function only returns
3833 symbol matching the requested DOMAIN.
3834 Compare the requested domain with the symbol's domain directly.
3835 (iterate_over_symbols): Compare the requested domain with the
3836 symbol's domain directly.
3837 * symtab.h (symbol_matches_domain): Remove.
3839 2014-04-14 Tom Tromey <tromey@redhat.com>
3842 * c-exp.y (type_aggregate_p): New function.
3843 (qualified_name, classify_inner_name): Use it.
3844 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3845 and TYPE_TARGET_TYPE of an enum type.
3846 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3848 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3849 handle TYPE_DECLARED_CLASS.
3850 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3852 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3853 * valops.c (enum_constant_from_type): New function.
3854 (value_aggregate_elt): Use it.
3855 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3858 2014-04-14 Tom Tromey <tromey@redhat.com>
3860 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3861 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3863 * value.h (value_aggregate_elt): Update.
3865 2014-04-14 Tom Tromey <tromey@redhat.com>
3867 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3869 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3871 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3872 (evaluate_subexp_standard): Pass noside argument.
3873 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3874 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3875 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3876 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3877 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3879 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3881 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3882 points to a constant blob.
3884 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3886 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3887 property and store it as the high bound and flag the range accordingly.
3888 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3889 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3890 * gdbtypes.h (enum range_flags): New enum.
3891 (struct range_bounds): Add flags member.
3893 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3895 * c-typeprint.c (c_type_print_varspec_suffix): Added
3896 check for not yet resolved high bound. If unresolved, print
3897 "variable length" string to the console instead of random
3900 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3902 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3904 (ada_template_to_fixed_record_type_1): Likewise.
3905 (ada_to_fixed_type_1): Likewise.
3906 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3907 (cp_print_value): Likewise.
3908 * d-valprint.c (dynamic_array_type): Likewise.
3909 * findvar.c (address_of_variable): Likewise.
3910 * jv-valprint.c (java_value_print): Likewise.
3911 * valops.c (value_ind): Likewise.
3912 * value.c (coerce_ref): Likewise.
3914 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3916 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3917 value and retrieve the dynamic type size.
3919 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3921 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3922 passed to sizeof is dynamic evaluate the argument to compute the length.
3924 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3925 Joel Brobecker <brobecker@adacore.com>
3927 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3928 (dwarf2_evaluate_property): New function.
3929 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3930 * dwarf2read.c (attr_to_dynamic_prop): New function.
3931 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3933 * gdbtypes.c: Include dwarf2loc.h.
3934 (is_dynamic_type): New function.
3935 (resolve_dynamic_type): New function.
3936 (resolve_dynamic_bounds): New function.
3937 (get_type_length): New function.
3938 (check_typedef): Use get_type_length to compute type length.
3939 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3940 (TYPE_LOW_BOUND_KIND): New macro.
3941 (is_dynamic_type): New function prototype.
3942 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3943 to resolve dynamic properties of the type. Update comment.
3944 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3946 2014-04-14 Richard Henderson <rth@redhat.com>
3948 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3950 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3951 Doug Evans <xdje42@gmail.com>
3953 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3954 dereference TYPE_CODE_REF values.
3956 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3958 Revert the following changes due to regressions:
3960 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3961 (dwarf2_evaluate_property): New function.
3962 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3963 * dwarf2read.c (attr_to_dynamic_prop): New function.
3964 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3966 * gdbtypes.c: Include dwarf2loc.h.
3967 (is_dynamic_type): New function.
3968 (resolve_dynamic_type): New function.
3969 (resolve_dynamic_bounds): New function.
3970 (get_type_length): New function.
3971 (check_typedef): Use get_type_length to compute type length.
3972 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3973 (TYPE_LOW_BOUND_KIND): New macro.
3974 (is_dynamic_type): New function prototype.
3975 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3976 to resolve dynamic properties of the type. Update comment.
3977 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3979 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3980 passed to sizeof is dynamic evaluate the argument to compute the length.
3982 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3983 value and retrieve the dynamic type size.
3985 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3986 (ada_template_to_fixed_record_type_1): Likewise.
3987 (ada_to_fixed_type_1): Likewise.
3988 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3989 (cp_print_value): Likewise.
3990 * d-valprint.c (dynamic_array_type): Likewise.
3991 * eval.c (evaluate_subexp_with_coercion): Likewise.
3992 * findvar.c (address_of_variable): Likewise.
3993 * jv-valprint.c (java_value_print): Likewise.
3994 * valops.c (value_ind): Likewise.
3995 * value.c (coerce_ref): Likewise.
3997 * c-typeprint.c (c_type_print_varspec_suffix): Added
3998 check for not yet resolved high bound. If unresolved, print
3999 "variable length" string to the console instead of random
4002 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4003 property and store it as the high bound and flag the range accordingly.
4004 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4005 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4006 * gdbtypes.h (enum range_flags): New enum.
4007 (struct range_bounds): Add flags member.
4009 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4010 points to a constant blob.
4012 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4013 (evaluate_subexp_standard): Pass noside argument.
4014 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4015 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4016 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4017 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4018 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4020 2014-04-11 Keith Seitz <keiths@redhat.com>
4023 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4024 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4027 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4029 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4030 (evaluate_subexp_standard): Pass noside argument.
4031 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4032 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4033 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4034 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4035 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4037 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4039 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4040 points to a constant blob.
4042 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4044 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4045 property and store it as the high bound and flag the range accordingly.
4046 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4047 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4048 * gdbtypes.h (enum range_flags): New enum.
4049 (struct range_bounds): Add flags member.
4051 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4053 * c-typeprint.c (c_type_print_varspec_suffix): Added
4054 check for not yet resolved high bound. If unresolved, print
4055 "variable length" string to the console instead of random
4058 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4060 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4061 (ada_template_to_fixed_record_type_1): Likewise.
4062 (ada_to_fixed_type_1): Likewise.
4063 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4064 (cp_print_value): Likewise.
4065 * d-valprint.c (dynamic_array_type): Likewise.
4066 * eval.c (evaluate_subexp_with_coercion): Likewise.
4067 * findvar.c (address_of_variable): Likewise.
4068 * jv-valprint.c (java_value_print): Likewise.
4069 * valops.c (value_ind): Likewise.
4070 * value.c (coerce_ref): Likewise.
4072 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4074 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4075 value and retrieve the dynamic type size.
4077 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4079 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4080 passed to sizeof is dynamic evaluate the argument to compute the length.
4082 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4084 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4085 (dwarf2_evaluate_property): New function.
4086 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4087 * dwarf2read.c (attr_to_dynamic_prop): New function.
4088 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4090 * gdbtypes.c: Include dwarf2loc.h.
4091 (is_dynamic_type): New function.
4092 (resolve_dynamic_type): New function.
4093 (resolve_dynamic_bounds): New function.
4094 (get_type_length): New function.
4095 (check_typedef): Use get_type_length to compute type length.
4096 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4097 (TYPE_LOW_BOUND_KIND): New macro.
4098 (is_dynamic_type): New function prototype.
4099 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4100 to resolve dynamic properties of the type. Update comment.
4101 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4103 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4105 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4106 declaring high/low bounds and change uses accordingly. Call
4107 create_range_type instead of create_static_range_type.
4108 * gdbtypes.c (create_range_type): New function.
4109 (create_range_type): Convert bounds into struct bound_prop and pass
4110 them to create_range_type.
4111 * gdbtypes.h (struct bound_prop): New struct.
4112 (create_range_type): New function prototype.
4113 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4114 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4115 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4117 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4119 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4121 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4122 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4123 * ada-lang.c: All uses of create_range_type updated.
4124 * coffread.c: All uses of create_range_type updated.
4125 * dwarf2read.c: All uses of create_range_type updated.
4126 * f-exp.y: All uses of create_range_type updated.
4127 * m2-valprint.c: All uses of create_range_type updated.
4128 * mdebugread.c: All uses of create_range_type updated.
4129 * stabsread.c: All uses of create_range_type updated.
4130 * valops.c: All uses of create_range_type updated.
4131 * valprint.c: All uses of create_range_type updated.
4133 2014-04-10 Pedro Alves <palves@redhat.com>
4135 * breakpoint.c (single_step_breakpoints)
4136 (single_step_gdbarch): Move up in the file.
4137 (one_breakpoint_xfer_memory): New function, factored out from ...
4138 (breakpoint_xfer_memory): ... here. Also process single-step
4141 2014-04-09 Tristan Gingold <gingold@adacore.com>
4143 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4145 (darwin_decode_exception_message): Free port only after use.
4147 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4149 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4150 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4151 when setting the size of call_length.
4153 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4155 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4156 dereference TYPE_CODE_REF values.
4158 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4160 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4161 end of warning message.
4163 2014-04-03 Doug Evans <dje@google.com>
4165 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4166 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4168 2014-04-02 Alan Modra <amodra@gmail.com>
4170 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4171 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4172 (struct symbol_file_add_from_memory_args): Add size field.
4173 (find_vdso_size): New function.
4174 (add_vsyscall_page): Attempt to find vdso size.
4176 2014-04-01 Doug Evans <dje@google.com>
4178 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4180 2014-04-01 Tristan Gingold <gingold@adacore.com>
4182 * darwin-nat.c (darwin_encode_reply): Add prototype.
4183 (darwin_decode_exception_message): Reply to unknown inferiors.
4184 (darwin_decode_message): Handle message by id. Ignore message
4185 to unknown inferior.
4186 (darwin_wait): Discard unknown messages, add debug trace.
4188 2014-03-31 Doug Evans <dje@google.com>
4190 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4193 2014-03-31 Doug Evans <dje@google.com>
4195 New option "set print symbol-loading".
4197 * solib.c (solib_read_symbols): Only print symbol loading messages
4199 (solib_add): If symbol loading is in "brief" mode, notify user
4200 symbols are being loaded.
4201 (reload_shared_libraries_1): Ditto.
4202 * symfile.c (print_symbol_loading_off): New static global.
4203 (print_symbol_loading_brief): New static global.
4204 (print_symbol_loading_full): New static global.
4205 (print_symbol_loading_enums): New static global.
4206 (print_symbol_loading): New static global.
4207 (print_symbol_loading_p): New function.
4208 (symbol_file_add_with_addrs): Only print symbol loading messages
4210 (_initialize_symfile): Register "print symbol-loading" set/show
4212 * symfile.h (print_symbol_loading_p): Declare.
4214 2014-03-30 Doug Evans <xdje42@gmail.com>
4216 * infrun.c (set_last_target_status): New function.
4217 (handle_inferior_event): Call it.
4219 2014-03-30 Doug Evans <xdje42@gmail.com>
4221 * inferior.h (enum stop_kind): Improve comment.
4223 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4225 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4226 a reference, strip the reference layer before calling
4227 the lang_ops value_has_mutated callback.
4229 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4231 Remove some globals from our parser.
4232 * language.c (unk_lang_parser): Add "struct parser_state"
4234 * language.h (struct language_defn) <la_parser>: Likewise.
4235 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4236 (initialize_expout): Add "struct parser_state" argument.
4237 Rewrite function to use the parser state.
4238 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4239 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4240 write_exp_elt_longcst, write_exp_elt_dblcst,
4241 write_exp_elt_decfloatcst, write_exp_elt_type,
4242 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4243 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4244 write_dollar_variable): Likewise.
4245 (parse_exp_in_context_1): Use parser state.
4246 (insert_type_address_space): Add "struct parser_state" argument.
4248 (increase_expout_size): New function.
4249 * parser-defs.h: Forward declare "struct language_defn" and
4250 "struct parser_state".
4251 (expout, expout_size, expout_ptr): Remove extern declarations.
4252 (parse_gdbarch, parse_language): Rewrite macro declarations to
4253 accept the parser state.
4254 (struct parser_state): New struct.
4255 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4256 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4257 write_exp_elt_decfloatcst, write_exp_elt_type,
4258 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4259 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4260 write_exp_msymbol, write_dollar_variable,
4261 mark_struct_expression, insert_type_address_space): Add "struct
4262 parser_state" argument.
4263 (increase_expout_size): New function.
4264 * utils.c (do_clear_parser_state): New function.
4265 (make_cleanup_clear_parser_state): Likewise.
4266 * utils.h (make_cleanup_clear_parser_state): New function
4268 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4269 Update calls to write_exp* in order to pass the parser state.
4270 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4271 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4272 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4273 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4274 * stap-probe.c (stap_parse_register_operand): Likewise.
4275 (stap_parse_single_operand): Likewise.
4276 (stap_parse_argument_1): Likewise.
4277 (stap_parse_argument): Use parser state.
4278 * stap-probe.h: Include "parser-defs.h".
4279 (struct stap_parse_info) <pstate>: New field.
4280 * c-exp.y (parse_type): Rewrite to use parser state.
4281 (yyparse): Redefine to c_parse_internal.
4282 (pstate): New global variable.
4283 (parse_number): Add "struct parser_state" argument.
4284 (write_destructor_name): Likewise.
4285 (type_exp): Update calls to write_exp* and similars in order to
4287 (exp1, exp, variable, qualified_name, space_identifier,
4288 typename, typebase): Likewise.
4289 (write_destructor_name, parse_number, lex_one_token,
4290 classify_name, classify_inner_name, c_parse): Add "struct
4291 parser_state" argument. Update function to use parser state.
4292 * c-lang.h: Forward declare "struct parser_state".
4293 (c_parse): Add "struct parser_state" argument.
4294 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4295 (yyparse): Redefine macro to ada_parse_internal.
4296 (pstate): New variable.
4297 (write_int, write_object_renaming, write_var_or_type,
4298 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4299 type_int, type_long, type_long_long, type_float, type_double,
4300 type_long_double, type_char, type_boolean, type_system_address):
4301 Add "struct parser_state" argument.
4302 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4303 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4304 var_or_type, aggregate, aggregate_component_list,
4305 positional_list, others, component_group,
4306 component_associations): Update calls to write_exp* and similar
4307 functions in order to use parser state.
4308 (ada_parse, write_var_from_sym, write_int,
4309 write_exp_op_with_string, write_object_renaming,
4310 find_primitive_type, write_selectors, write_ambiguous_var,
4311 write_var_or_type, write_name_assoc, type_int, type_long,
4312 type_long_long, type_float, type_double, type_long_double,
4313 type_char, type_boolean, type_system_address): Add "struct
4314 parser_state" argument. Adjust function to use parser state.
4315 * ada-lang.c (parse): Likewise.
4316 * ada-lang.h: Forward declare "struct parser_state".
4317 (ada_parse): Add "struct parser_state" argument.
4318 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4319 calls to both functions.
4320 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4322 (yyparse): Redefine macro to f_parse_internal.
4323 (pstate): New variable.
4324 (parse_number): Add "struct parser_state" argument.
4325 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4326 and similars in order to use parser state.
4327 (parse_number): Adjust code to use parser state.
4329 (f_parse): New function.
4330 * f-lang.h: Forward declare "struct parser_state".
4331 (f_parse): Add "struct parser_state" argument.
4332 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4334 (yyparse): Redefine macro for java_parse_internal.
4335 (pstate): New variable.
4336 (push_expression_name, push_expression_name, insert_exp): Add
4337 "struct parser_state" argument.
4338 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4339 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4340 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4341 PostIncrementExpression, PostDecrementExpression,
4342 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4343 UnaryExpressionNotPlusMinus, CastExpression,
4344 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4345 RelationalExpression, EqualityExpression, AndExpression,
4346 ExclusiveOrExpression, InclusiveOrExpression,
4347 ConditionalAndExpression, ConditionalOrExpression,
4348 ConditionalExpression, Assignment, LeftHandSide): Update
4349 calls to write_exp* and similars in order to use parser state.
4350 (parse_number): Ajust code to use parser state.
4352 (java_parse): New function.
4353 (push_variable): Add "struct parser_state" argument. Adjust
4354 code to user parser state.
4355 (push_fieldnames, push_qualified_expression_name,
4356 push_expression_name, insert_exp): Likewise.
4357 * jv-lang.h: Forward declare "struct parser_state".
4358 (java_parse): Add "struct parser_state" argument.
4359 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4361 (yyparse): Redefine macro to m2_parse_internal.
4362 (pstate): New variable.
4363 (type_exp, exp, fblock, variable, type): Update calls to
4364 write_exp* and similars to use parser state.
4366 (m2_parse): New function.
4367 * m2-lang.h: Forward declare "struct parser_state".
4368 (m2_parse): Add "struct parser_state" argument.
4369 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4370 * objc-lang.h: Forward declare "struct parser_state".
4371 (end_msglist): Add "struct parser_state" argument.
4372 * p-exp.y (parse_type): Rewrite macro to use parser state.
4373 (yyparse): Redefine macro to pascal_parse_internal.
4374 (pstate): New variable.
4375 (parse_number): Add "struct parser_state" argument.
4376 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4377 write_exp* and similars in order to use parser state.
4378 (parse_number, yylex): Adjust code to use parser state.
4379 (pascal_parse): New function.
4380 * p-lang.h: Forward declare "struct parser_state".
4381 (pascal_parse): Add "struct parser_state" argument.
4382 * go-exp.y (parse_type): Rewrite macro to use parser state.
4383 (yyparse): Redefine macro to go_parse_internal.
4384 (pstate): New variable.
4385 (parse_number): Add "struct parser_state" argument.
4386 (type_exp, exp1, exp, variable, type): Update calls to
4387 write_exp* and similars in order to use parser state.
4388 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4389 to use parser state.
4390 (go_parse): Likewise.
4391 * go-lang.h: Forward declare "struct parser_state".
4392 (go_parse): Add "struct parser_state" argument.
4394 2014-03-27 Doug Evans <dje@google.com>
4396 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4398 2014-03-27 Doug Evans <dje@google.com>
4400 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4401 Remove argument abbrev_section. All callers updated.
4403 2014-03-27 Doug Evans <dje@google.com>
4405 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4406 addr_base, ranges_base.
4408 2014-03-26 Keith Seitz <keiths@redhat.com>
4410 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4411 types, not VAR_DOMAIN.
4413 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4415 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4417 * features/nios2-linux.c: Regenerated.
4418 * features/nios2.c: Regenerated.
4420 2014-03-25 Pedro Alves <palves@redhat.com>
4422 * cli/cli-script.c (script_from_file): Force the interpreter to
4425 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4427 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4428 small stack allocation.
4430 2014-03-24 Tristan Gingold <gingold@adacore.com>
4432 * darwin-nat.c (exc_server): Remove unused prototype.
4433 (darwin_dump_message): Correctly display data on x86_64.
4434 (darwin_encode_reply): Fix style.
4435 Add comments and fix indentation.
4437 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4439 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4441 2014-03-22 Doug Evans <xdje42@gmail.com>
4443 * infcmd.c: Whitespace fixes.
4444 (interrupt_command): Merge two function comments into one.
4446 2014-03-22 Doug Evans <xdje42@gmail.com>
4448 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4451 2014-03-22 Yao Qi <yao@codesourcery.com>
4453 * remote.c (target_read_live_memory): Remove.
4454 (memory_xfer_live_readonly_partial): Rename it to
4455 remote_xfer_live_readonly_partial. Remove argument 'object'.
4456 All callers updated. Call remote_read_bytes_1
4457 instead of target_read_live_memory.
4458 * tracepoint.c (set_traceframe_number): Remove.
4459 (make_cleanup_restore_traceframe_number): Likewise .
4460 * tracepoint.h (set_traceframe_number): Remove declaration.
4461 (make_cleanup_restore_traceframe_number): Likewise.
4463 2014-03-22 Yao Qi <yao@codesourcery.com>
4465 * remote.c (remote_read_bytes): Move code on reading from the
4467 (remote_read_bytes_1): ... here. New function.
4469 2014-03-22 Yao Qi <yao@codesourcery.com>
4471 * ctf.c (ctf_xfer_partial): Check the return value of
4472 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4473 return TARGET_XFER_UNAVAILABLE.
4474 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4475 * target.c (target_read_live_memory): Move it to remote.c.
4476 (memory_xfer_live_readonly_partial): Likewise.
4477 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4478 * remote.c (target_read_live_memory): Moved from target.c.
4479 (memory_xfer_live_readonly_partial): Likewise.
4480 (remote_read_bytes): Factored out from
4481 memory_xfer_partial_1.
4483 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4485 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4488 2014-03-21 Pedro Alves <palves@redhat.com>
4490 * infrun.c (normal_stop): Extend comment.
4492 2014-03-21 Hui Zhu <hui@codesourcery.com>
4493 Pedro Alves <palves@redhat.com>
4495 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4497 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4498 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4499 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4501 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4503 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4504 `z' formatted output modifier.
4506 2014-03-20 Tom Tromey <tromey@redhat.com>
4507 Sergio Durigan Junior <sergiodj@redhat.com>
4509 * probe.c (parse_probes): Turn assert into an ordinary error.
4510 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4511 exceptions when parsing probes. Rearrange the code for clarity.
4513 2014-03-20 Tom Tromey <tromey@redhat.com>
4516 * top.c (execute_command): Only dispatch events if the command
4519 2014-03-20 Tom Tromey <tromey@redhat.com>
4522 * infcall.c: Include event-top.h.
4523 (run_inferior_call): Call async_disable_stdin if needed.
4525 2014-03-20 Pedro Alves <palves@redhat.com>
4527 * infrun.c (prepare_to_proceed): Delete.
4528 (thread_still_needs_step_over): New function.
4529 (find_thread_needs_step_over): New function.
4530 (proceed): If the current thread needs a step-over, set its
4531 steping_over_breakpoint flag. Adjust to use
4532 find_thread_needs_step_over instead of prepare_to_proceed.
4533 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4534 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4536 (switch_back_to_stepped_thread): Step over breakpoints of all
4537 threads not the stepping thread, before switching back to the
4540 2014-03-20 Pedro Alves <palves@redhat.com>
4542 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4544 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4545 * infrun.c (saved_singlestep_ptid)
4546 (stepping_past_singlestep_breakpoint): Delete.
4547 (resume): Remove stepping_past_singlestep_breakpoint handling.
4548 (proceed): Store the prev_pc of the stepping thread too.
4549 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4551 (enum infwait_states): Delete infwait_thread_hop_state.
4552 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4554 (handle_inferior_event): Adjust.
4555 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4556 handling and the thread-hop code. Before removing single-step
4557 breakpoints, check whether the thread hit a single-step breakpoint
4558 of another thread. If it did, the trap is not a random signal.
4559 (switch_back_to_stepped_thread): If the event thread hit a
4560 single-step breakpoint, unblock it before switching to the
4561 stepping thread. Handle the case of the stepped thread having
4563 (keep_going): Handle the case of the current thread moving past a
4564 single-step breakpoint.
4566 2014-03-20 Pedro Alves <palves@redhat.com>
4569 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4570 are being stepped over.
4571 (breakpoint_address_match): Make extern.
4572 * breakpoint.h (breakpoint_address_match): New declaration.
4573 * inferior.h (stepping_past_instruction_at): New declaration.
4574 * infrun.c (struct step_over_info): New type.
4575 (step_over_info): New global.
4576 (set_step_over_info, clear_step_over_info)
4577 (stepping_past_instruction_at): New functions.
4578 (handle_inferior_event): Clear the step-over info when
4579 trap_expected is cleared.
4580 (resume): Remove now stale comment.
4581 (clear_proceed_status): Clear step-over info.
4582 (proceed): Adjust step-over handling to set or clear the step-over
4583 info instead of removing all breakpoints.
4584 (handle_signal_stop): When setting up a thread-hop, don't remove
4586 (stop_stepping): Clear step-over info.
4587 (keep_going): Adjust step-over handling to set or clear step-over
4588 info and then always inserting breakpoints, instead of removing
4589 all breakpoints when stepping over one.
4591 2014-03-20 Pedro Alves <palves@redhat.com>
4593 * infrun.c (previous_inferior_ptid): Adjust comment.
4594 (deferred_step_ptid): Delete.
4595 (infrun_thread_ptid_changed, prepare_to_proceed)
4596 (init_wait_for_inferior): Adjust.
4597 (handle_signal_stop): Delete deferred_step_ptid handling.
4599 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4602 * defs.h (sync_quit_force_run): New declaration.
4603 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4604 * event-top.c (async_sigterm_handler): New declaration.
4605 (async_sigterm_token): New variable.
4606 (async_init_signals): Create also async_sigterm_token.
4607 (async_sigterm_handler): New function.
4608 (sync_quit_force_run): New variable.
4609 (handle_sigterm): Replace quit_force call by other calls.
4610 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4612 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4614 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4615 offset into SPE pseudo registers.
4617 2014-03-18 Pedro Alves <palves@redhat.com>
4620 * inferior.h (print_stop_event): Declare.
4621 * infrun.c (print_stop_event): New, factored out from ...
4622 (normal_stop): ... this.
4623 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4624 of bpstat_print/print_stack_frame.
4626 2014-03-17 Tom Tromey <tromey@redhat.com>
4628 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4630 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4632 * ada-lang.c (decode_constrained_packed_array): Perform a
4633 minimal coercion for reference with coerce_ref instead of
4636 2014-03-17 Tristan Gingold <gingold@adacore.com>
4638 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4639 (darwin_solib_create_inferior_hook): Emit a warning if version
4642 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4644 * python/py-value.c (get_field_flag): Cast flag_name argument to
4645 PyObject_GetAttrString to support Python 2.4.
4647 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4649 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4650 (Global Maintainers): Remove Jan Kratochvil.
4652 2014-03-14 Pedro Alves <palves@redhat.com>
4654 * inferior.h (terminal_ours_for_output): Rename to ...
4655 (child_terminal_ours_for_output): ... this.
4656 (terminal_save_ours): Rename to ...
4657 (child_terminal_save_ours): ... this.
4658 (terminal_ours): Rename to ...
4659 (child_terminal_ours): ... this.
4660 (terminal_inferior): Rename to ...
4661 (child_terminal_inferior): ... this.
4662 (terminal_init_inferior): Rename to ...
4663 (child_terminal_init_inferior): ... this.
4664 (terminal_init_inferior_with_pgrp): Rename to ...
4665 (child_terminal_init_inferior_with_pgrp): ... this.
4666 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4667 (child_terminal_init_with_pgrp): ... this.
4668 (terminal_save_ours): Rename to ...
4669 (child_terminal_save_ours): ... this.
4670 (terminal_init_inferior): Rename to ...
4671 (child_terminal_init): ... this. Adjust.
4672 (terminal_inferior): Rename to ...
4673 (child_terminal_inferior): ... this.
4674 (terminal_ours_for_output): Rename to ...
4675 (child_terminal_ours_for_output): ... this. Adjust.
4676 (terminal_ours): Rename to ...
4677 (child_terminal_ours): ... this.
4678 (terminal_ours_1): Rename to ...
4679 (child_terminal_ours_1): ... this. Adjust.
4680 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4681 * windows-nat.c (do_initial_windows_stuff): Adjust.
4682 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4683 (gnu_terminal_init): ... this. Adjust.
4684 (gnu_target): Adjust.
4685 * inf-child.c (inf_child_target): Adjust.
4687 2014-03-13 Doug Evans <xdje42@gmail.com>
4690 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4693 2014-03-13 Doug Evans <xdje42@gmail.com>
4695 * value.c (record_latest_value): Call release_value_or_incref
4696 instead of release_value.
4698 2014-03-13 Pedro Alves <palves@redhat.com>
4700 * procfs.c (procfs_target): Don't override to_shortname,
4701 to_longname or to_doc.
4703 2014-03-13 Pedro Alves <palves@redhat.com>
4705 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4706 Unix in user visible strings.
4708 2014-03-12 Stan Shebs <stan@codesourcery.com>
4710 * gdbtypes.h: Annotate comments for Doxygen, add a page
4711 block comment with some general info.
4713 2014-03-12 Pedro Alves <palves@redhat.com>
4715 * infcmd.c (prepare_execution_command): New function, factored out
4716 from several execution commands.
4717 (run_command_1, continue_command, step_1, jump_command)
4718 (signal_command, until_command, advance_command, finish_command)
4719 (attach_command): Use prepare_execution_command.
4721 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4723 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4726 (struct arm_linux_thread_points): Removed.
4727 (struct arm_linux_process_info): New.
4728 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4729 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4730 (arm_linux_find_breakpoints_by_tid): Removed.
4731 (struct arch_lwp_info): New.
4732 (arm_linux_find_process_pid): New functions.
4733 (arm_linux_add_process): New functions.
4734 (arm_linux_process_info_get): New functions.
4735 (arm_linux_forget_process): New function.
4736 (arm_linux_get_debug_reg_state): New function.
4737 (struct update_registers_data): New.
4738 (update_registers_callback): New function.
4739 (arm_linux_insert_hw_breakpoint1): Updated.
4740 (arm_linux_remove_hw_breakpoint1): Updated.
4741 (arm_linux_insert_hw_breakpoint): Updated.
4742 (arm_linux_remove_hw_breakpoint): Updated.
4743 (arm_linux_insert_watchpoint): Updated.
4744 (arm_linux_remove_watchpoint): Updated.
4745 (arm_linux_new_thread): Updated.
4746 (arm_linux_prepare_to_resume): New function.
4747 (arm_linux_new_fork): New function.
4748 (_initialize_arm_linux_nat): Updated.
4750 2014-03-12 Pedro Alves <palves@redhat.com>
4752 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4754 2014-03-12 Tom Tromey <tromey@redhat.com>
4756 * inf-child.c (return_zero): New function.
4757 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4758 * aix-thread.c (aix_thread_inferior_created): New function.
4759 (aix_thread_attach): Remove.
4760 (init_aix_thread_ops): Don't set to_attach.
4761 (_initialize_aix_thread): Register inferior_created observer.
4762 * corelow.c (init_core_ops): Don't set to_attach or
4764 * exec.c (init_exec_ops): Don't set to_attach or
4766 * infcmd.c (run_command_1): Use find_run_target. Make direct
4768 (attach_command): Use find_attach_target. Make direct target
4770 * record-btrace.c (init_record_btrace_ops): Don't set
4772 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4774 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4775 set to_create_inferior.
4776 * target.c (complete_target_initialization): Add assertion.
4777 (target_create_inferior): Remove.
4778 (find_default_attach, find_default_create_inferior): Remove.
4779 (find_attach_target, find_run_target): New functions.
4780 (find_default_is_async_p, find_default_can_async_p)
4781 (target_supports_non_stop, target_attach): Remove.
4782 (init_dummy_target): Don't set to_create_inferior or
4783 to_supports_non_stop.
4784 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4785 TARGET_DEFAULT_FUNC.
4786 <to_create_inferior>: Add comment.
4787 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4788 TARGET_DEFAULT_RETURN.
4789 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4790 (find_attach_target, find_run_target): Declare.
4791 (target_create_inferior): Remove.
4792 (target_has_execution_1): Update comment.
4793 (target_supports_non_stop): Remove.
4794 * target-delegates.c: Rebuild.
4796 2014-03-12 Pedro Alves <palves@redhat.com>
4798 * inf-child.h: Update comment to not mention Unix.
4800 2014-03-12 Pedro Alves <palves@redhat.com>
4802 * inf-child.c: Update top comment to not mention Unix. Add
4803 generic comment describing how this target is meant to be used.
4804 (inf_child_post_attach, inf_child_post_startup_inferior)
4805 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4808 2014-03-12 Pedro Alves <palves@redhat.com>
4810 * nto-procfs.c: Include inf-child.h.
4811 (procfs_ops): Delete global.
4812 (procfs_can_run): Delete method.
4813 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4814 target pointer instead of referencing procfs_ops.
4815 (procfs_prepare_to_store): Delete.
4816 (init_procfs_ops): Delete function.
4817 (procfs_target): New function, based on init_procfs_ops, but
4818 inherit inf_child_target.
4819 (_initialize_procfs): Use procfs_target.
4821 2014-03-12 Pedro Alves <palves@redhat.com>
4823 * windows-nat.c: Include inf-child.h.
4824 (windows_ops): Delete global.
4825 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4827 (init_windows_ops): Delete function.
4828 (windows_target): New function, based on init_windows_ops, but
4829 inherit inf_child_target.
4830 (_initialize_windows_nat): Use windows_target. Install x86
4831 specific target methods here.
4833 2014-03-10 Doug Evans <xdje42@gmail.com>
4835 * guile/guile.c (call_initialize_gdb_module): New function.
4836 (initialize_guile): Replace call to scm_init_guile with call to
4839 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4841 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4842 in call to TYPE_CODE macro.
4844 2014-03-10 Jerome Guitton <guitton@adacore.com>
4846 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4847 Resolve tagged types to full view.
4849 2014-03-10 Hui Zhu <hui@codesourcery.com>
4851 * target.h (target_insert_breakpoint): Remove "hardware" from its
4854 2014-03-07 Doug Evans <dje@google.com>
4856 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4858 2014-03-07 Doug Evans <dje@google.com>
4860 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4861 Remove unused local comp_dir_attr. Assert exactly one of
4862 stub_comp_unit_die, stub_comp_dir is non-NULL.
4864 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4866 * target.h (complete_target_initialization, add_target):
4869 2014-03-07 Pedro Alves <palves@redhat.com>
4871 * go32-nat.c: Include inf-child.h.
4872 (go32_ops): Delete global.
4873 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4875 (go32_create_inferior): Push the passed in target pointer instead
4876 of referencing go32_ops.
4877 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4878 (go32_target): New function, based on init_go32_ops, but inherit
4880 (_initialize_go32_nat): Use go32_target. Move parts of
4883 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4885 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4886 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4887 SYMBOL_VALUE_ADDRESS.
4888 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4890 2014-03-06 Yao Qi <yao@codesourcery.com>
4892 * breakpoint.c (get_tracepoint_by_number): Remove argument
4893 optional_p. All callers updated. Adjust comments. Update
4895 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4897 2014-03-06 Yao Qi <yao@codesourcery.com>
4899 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4900 early if get_number returns zero. Use 'p' instead of 'args'.
4902 2014-03-06 Yao Qi <yao@codesourcery.com>
4904 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4907 2014-03-06 Yao Qi <yao@codesourcery.com>
4909 PR breakpoints/16508
4910 * tracepoint.c (check_trace_running): New function.
4911 (trace_find_command): Move code to check_trace_running and
4912 call check_trace_running.
4913 (trace_find_pc_command): Likewise.
4914 (trace_find_tracepoint_command): Likewise.
4915 (trace_find_line_command): Likewise.
4916 (trace_find_range_command): Likewise.
4917 * tracepoint.h (check_trace_running): Likewise.
4918 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4920 2014-03-06 Yao Qi <yao@codesourcery.com>
4922 * target.h (struct target_ops) <to_traceframe_info>: Use
4923 TARGET_DEFAULT_NORETURN (tcomplain ()).
4924 * target-delegates.c: Regenerated.
4926 2014-03-05 Pedro Alves <palves@redhat.com>
4929 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4930 void. Update comment.
4931 (dcache_xfer_memory): Delete.
4932 (dcache_read_memory_partial): New, based on the read bits of
4934 (dcache_update): Add status parameter. Use ULONGEST for len, and
4935 adjust. Discard cache lines if the reason for the update was
4937 * dcache.h (dcache_xfer_memory): Delete declaration.
4938 (dcache_read_memory_partial): New declaration.
4939 (dcache_update): Update prototype.
4940 * target.c (raw_memory_xfer_partial): Update the dcache here.
4941 (memory_xfer_partial_1): Don't handle dcache writes here.
4943 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4945 * remote-sim.c (gdbsim_load): Add const to prog.
4947 2014-03-03 Tom Tromey <tromey@redhat.com>
4949 * elfread.c (probe_key): Change to bfd_data.
4950 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4951 now per-BFD, not per-objfile.
4952 * stap-probe.c (stap_probe_destroy): Update comment.
4953 (handle_stap_probe): Allocate on the per-BFD obstack.
4955 2014-03-03 Tom Tromey <tromey@redhat.com>
4957 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4958 * breakpoint.c (create_longjmp_master_breakpoint): Use
4960 (add_location_to_breakpoint, bkpt_probe_insert_location)
4961 (bkpt_probe_remove_location): Update.
4962 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4963 * elfread.c (elf_symfile_relocate_probe): Remove.
4964 (elf_probe_fns): Update.
4965 (insert_exception_resume_breakpoint): Change type of "probe"
4966 parameter to bound_probe.
4967 (check_exception_resume): Update.
4968 * objfiles.c (objfile_relocate1): Don't relocate probes.
4969 * probe.c (bound_probe_s): New typedef.
4970 (parse_probes): Use get_probe_address. Set sal's objfile.
4971 (find_probe_by_pc): Return a bound_probe.
4972 (collect_probes): Return a VEC(bound_probe_s).
4973 (compare_probes): Update.
4974 (gen_ui_out_table_header_info): Change type of "probes"
4976 (info_probes_for_ops): Update.
4977 (get_probe_address): New function.
4978 (probe_safe_evaluate_at_pc): Update.
4979 * probe.h (struct probe_ops) <get_probe_address>: New field.
4980 <set_semaphore, clear_semaphore>: Add objfile parameter.
4981 (struct probe) <objfile>: Remove field.
4983 <address>: Update comment.
4984 (struct bound_probe): New.
4985 (find_probe_by_pc): Return a bound_probe.
4986 (get_probe_address): Declare.
4987 * solib-svr4.c (struct probe_and_action) <address>: New field.
4988 (hash_probe_and_action, equal_probe_and_action): Update.
4989 (register_solib_event_probe): Add address parameter.
4990 (solib_event_probe_at): Update.
4991 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4993 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4994 (stap_get_probe_address): New function.
4995 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4996 (compile_probe_arg): Update.
4997 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4999 (handle_stap_probe): Don't relocate the probe.
5000 (stap_relocate): Remove.
5001 (stap_gen_info_probes_table_values): Update.
5002 (stap_probe_ops): Remove stap_relocate.
5003 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5004 (debug_sym_probe_fns): Update.
5005 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5006 * symtab.c (init_sal): Use memset.
5007 * symtab.h (struct symtab_and_line) <objfile>: New field.
5008 * tracepoint.c (start_tracing, stop_tracing): Update.
5010 2014-03-03 Tom Tromey <tromey@redhat.com>
5012 * probe.h (parse_probes, find_probe_by_pc)
5013 (find_probes_in_objfile): Fix comments.
5015 2014-03-02 Doug Evans <xdje42@gmail.com>
5017 * infrun.c (handle_signal_stop): Replace test for
5018 TARGET_WAITKIND_STOPPED with an assert.
5020 2014-03-02 Doug Evans <xdje42@gmail.com>
5022 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5024 2014-03-02 Doug Evans <xdje42@gmail.com>
5026 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5028 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5030 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5032 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5034 * i386obsd-nat.c: Include "obsd-nat.h".
5035 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5037 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5039 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5041 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5043 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5045 * mips64obsd-nat.c: Include "obsd-nath".
5046 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5048 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5050 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5052 * amd64obsd-nat.c: Include "obsd-nat,h.
5053 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5055 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5057 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5059 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5060 (find_overload_match): Update call to find_oload_champ.
5061 (find_oload_champ_namespace_loop): Likewise
5063 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5065 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5067 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5068 * config/sparc/obsd64.mh: New file.
5069 * sparc64obsd-nat.c: New file.
5071 * obsd-nat.h: New file.
5072 * obsd-nat.c: New file.
5073 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5074 (ALLDEPFILES): Add obsd-nat.c.
5076 2014-02-28 Tom Tromey <tromey@redhat.com>
5078 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5079 * cli-out.h (cli_ui_out_impl): Now const.
5080 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5081 * ui-out.c (struct ui_out) <impl>: Now const.
5082 (default_ui_out_impl): Now const.
5083 (ui_out_new): Make 'impl' parameter const.
5084 * ui-out.h (ui_out_new): Update.
5086 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5088 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5090 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5092 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5094 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5096 Additional PR 8882 fix.
5097 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5099 2014-02-27 Pedro Alves <palves@redhat.com>
5101 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5104 2014-02-27 Pedro Alves <palves@redhat.com>
5107 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5108 * nat/linux-waitpid.c: Include string.h.
5109 (status_to_str): Moved here and made extern.
5110 * nat/linux-waitpid.h (status_to_str): New declaration.
5112 2014-02-27 Hui Zhu <hui@codesourcery.com>
5115 * infrun.c (ptid_match): Move ...
5116 * common/ptid.c (ptid_match): ... here.
5117 * inferior.h (ptid_match): Move ...
5118 * common/ptid.h (ptid_match): ... here.
5120 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5122 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5123 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5126 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5128 * obsd-tdep.c (obsd_auxv_parse): New function.
5129 (obsd_init_abi): Set auxv_parse.
5131 * gdbarch.sh (auxv_parse): New.
5132 * gdbarch.h: Regenerated.
5133 * gdbarch.c: Regenerated.
5134 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5136 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5138 * guile/scm-value.c (gdbscm_history_append_x): New function.
5139 (value_functions): Add it.
5141 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5143 * dwarf2read.c (attr_value_as_address): New function.
5144 (dwarf2_find_base_address, read_call_site_scope): Use
5145 attr_value_as_address in place of DW_ADDR.
5146 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5147 the low and high addresses. Slight rework of the handling
5148 of the high pc being a constant form, and limit it to
5149 DWARF verson 4 or higher.
5150 (dwarf2_record_block_ranges): Likewise.
5151 (read_partial_die): Likewise.
5152 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5154 2014-02-26 Tom Tromey <tromey@redhat.com>
5156 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5158 2014-02-26 Tom Tromey <tromey@redhat.com>
5160 * elfread.c (elf_read_minimal_symbols): Return early if
5161 minimal symbols have already been read. Add "ei" parameter.
5162 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5163 * minsyms.c (prim_record_minimal_symbol_full): Update.
5164 * objfiles.h (struct objstats) <n_minsyms>: Move...
5165 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5166 * symmisc.c (print_objfile_statistics): Update.
5168 2014-02-26 Tom Tromey <tromey@redhat.com>
5170 * elfread.c (elf_read_minimal_symbols): New function, from
5172 (elf_symfile_read): Call it.
5174 2014-02-26 Tom Tromey <tromey@redhat.com>
5176 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5177 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5178 (lookup_minimal_symbol_solib_trampoline)
5179 (lookup_minimal_symbol_by_pc_section_1)
5180 (lookup_minimal_symbol_and_objfile): Update.
5181 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5182 Don't allocate a minimal symbol if minsyms have already been read.
5183 (build_minimal_symbol_hash_tables): Update.
5184 (install_minimal_symbols): Do nothing if minsyms already read.
5185 Use the per-BFD obstack.
5186 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5187 * objfiles.c (allocate_objfile): Call
5188 terminate_minimal_symbol_table later.
5189 (have_minimal_symbols): Update.
5190 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5191 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5192 Move from struct objfile.
5193 <minsyms_read>: New field.
5194 (struct objfile) <msymbols, minimal_symbol_count,
5195 msymbol_hash, msymbol_demangled_hash>: Move.
5196 (ALL_OBJFILE_MSYMBOLS): Update.
5197 * symfile.c (read_symbols): Set minsyms_read.
5198 (reread_symbols): Update.
5199 * symmisc.c (dump_objfile, dump_msymbols): Update.
5201 2014-02-26 Tom Tromey <tromey@redhat.com>
5203 * minsyms.c (msymbols_sort): Remove.
5204 * minsyms.h (msymbols_sort): Remove.
5205 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5206 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5207 * elfread.c (elf_symtab_read): Don't add section offsets.
5208 * xcoffread.c (record_minimal_symbol): Don't add section offset
5209 to minimal symbol address.
5210 * somread.c (text_offset, data_offset): Remove.
5211 (som_symtab_read): Don't add section offsets to minimal symbol
5213 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5214 Don't add section offsets to minimal symbols.
5215 * coffread.c (coff_symtab_read): Don't add section offsets
5216 to minimal symbol addresses.
5217 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5218 to minimal symbol addresses.
5219 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5220 section offset to minimal symbol addresses.
5221 * mdebugread.c (parse_partial_symbols): Don't add section
5222 offset to minimal symbol addresses.
5223 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5224 offset to minimal symbol addresses.
5226 2014-02-26 Tom Tromey <tromey@redhat.com>
5228 * ada-lang.c (ada_main_name): Update.
5229 (ada_add_standard_exceptions): Update.
5230 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5231 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5232 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5233 * auxv.c (ld_so_xfer_auxv): Update.
5234 * avr-tdep.c (avr_scan_prologue): Update.
5235 * ax-gdb.c (gen_var_ref): Update.
5236 * blockframe.c (get_pc_function_start)
5237 (find_pc_partial_function_gnu_ifunc): Update.
5238 * breakpoint.c (create_overlay_event_breakpoint)
5239 (create_longjmp_master_breakpoint)
5240 (create_std_terminate_master_breakpoint)
5241 (create_exception_master_breakpoint): Update.
5242 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5243 * c-valprint.c (c_val_print): Update.
5244 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5245 * common/agent.c (agent_look_up_symbols): Update.
5246 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5247 * dwarf2loc.c (call_site_to_target_addr): Update.
5248 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5249 * elfread.c (elf_gnu_ifunc_record_cache)
5250 (elf_gnu_ifunc_resolve_by_got): Update.
5251 * findvar.c (default_read_var_value): Update.
5252 * frame.c (inside_main_func): Update.
5253 * frv-tdep.c (frv_frame_this_id): Update.
5254 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5255 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5257 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5258 (hppa_hpux_find_dummy_bpaddr): Update.
5259 * hppa-tdep.c (hppa_symbol_address): Update.
5260 * infcmd.c (until_next_command): Update.
5261 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5263 * linespec.c (minsym_found, add_minsym): Update.
5264 * linux-nat.c (get_signo): Update.
5265 * linux-thread-db.c (inferior_has_bug): Update.
5266 * m32c-tdep.c (m32c_return_value)
5267 (m32c_m16c_address_to_pointer): Update.
5268 * m32r-tdep.c (m32r_frame_this_id): Update.
5269 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5270 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5271 * maint.c (maintenance_translate_address): Update.
5272 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5273 (frob_address): New function.
5274 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5275 frob_address. Rename parameter to "pc_in".
5276 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5278 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5280 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5281 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5282 * objc-lang.c (find_objc_msgsend): Update.
5283 * objfiles.c (objfile_relocate1): Update.
5284 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5285 * p-valprint.c (pascal_val_print): Update.
5286 * parse.c (write_exp_msymbol): Update.
5287 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5288 (ppc_elfv2_skip_entrypoint): Update.
5289 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5290 * printcmd.c (build_address_symbolic, msym_info)
5291 (address_info): Update.
5292 * proc-service.c (ps_pglobal_lookup): Update.
5293 * psymtab.c (find_pc_sect_psymtab_closer)
5294 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5295 Change msymbol parameter to bound_minimal_symbol.
5296 * ravenscar-thread.c (get_running_thread_id): Update.
5297 * remote.c (remote_check_symbols): Update.
5298 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5300 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5301 * solib-dsbt.c (lm_base): Update.
5302 * solib-frv.c (lm_base, main_got): Update.
5303 * solib-irix.c (locate_base): Update.
5304 * solib-som.c (som_solib_create_inferior_hook)
5305 (link_map_start): Update.
5306 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5307 * solib-svr4.c (elf_locate_base, enable_break): Update.
5308 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5309 (flush_ea_cache): Update.
5310 * stabsread.c (define_symbol, scan_file_globals): Update.
5311 * stack.c (find_frame_funname): Update.
5312 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5313 (debug_qf_find_pc_sect_symtab): Update.
5314 * symfile.c (simple_read_overlay_table)
5315 (simple_overlay_update): Update.
5316 * symfile.h (struct quick_symbol_functions)
5317 <find_pc_sect_symtab>: Change type of msymbol to
5318 bound_minimal_symbol.
5319 * symmisc.c (dump_msymbols): Update.
5320 * symtab.c (find_pc_sect_symtab_via_partial)
5321 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5322 (search_symbols, print_msymbol_info): Update.
5323 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5324 (MSYMBOL_VALUE_ADDRESS): Redefine.
5325 (BMSYMBOL_VALUE_ADDRESS): New macro.
5326 * tracepoint.c (scope_info): Update.
5327 * tui/tui-disasm.c (tui_find_disassembly_address)
5328 (tui_get_begin_asm_address): Update.
5329 * valops.c (find_function_in_inferior): Update.
5330 * value.c (value_static_field, value_fn_field): Update.
5332 2014-02-26 Tom Tromey <tromey@redhat.com>
5334 * ada-lang.c (ada_update_initial_language): Update.
5335 (ada_main_name, ada_has_this_exception_support): Update.
5336 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5337 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5338 * arm-tdep.c (arm_skip_stub): Update.
5339 * auxv.c (ld_so_xfer_auxv): Update.
5340 * avr-tdep.c (avr_scan_prologue): Update.
5341 * ax-gdb.c (gen_var_ref): Update.
5342 * breakpoint.c (struct breakpoint_objfile_data)
5343 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5344 type to bound_minimal_symbol.
5345 (create_overlay_event_breakpoint)
5346 (create_longjmp_master_breakpoint)
5347 (create_std_terminate_master_breakpoint)
5348 (create_exception_master_breakpoint): Update.
5349 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5350 * c-exp.y (classify_name): Update.
5351 * coffread.c (coff_symfile_read): Update.
5352 * common/agent.c (agent_look_up_symbols): Update.
5353 * d-lang.c (d_main_name): Update.
5354 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5355 * dec-thread.c (enable_dec_thread): Update.
5356 * dwarf2loc.c (call_site_to_target_addr): Update.
5357 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5358 * eval.c (evaluate_subexp_standard): Update.
5359 * findvar.c (struct minsym_lookup_data) <result>: Change type
5360 to bound_minimal_symbol.
5362 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5363 * frame.c (inside_main_func): Update.
5364 * frv-tdep.c (frv_frame_this_id): Update.
5365 * gcore.c (call_target_sbrk): Update.
5366 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5367 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5369 * go-lang.c (go_main_name): Update.
5370 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5371 (hppa_hpux_find_import_stub_for_addr): Update.
5372 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5373 Update. Change return type.
5374 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5376 * jit.c (jit_breakpoint_re_set_internal): Update.
5377 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5379 * linux-nat.c (get_signo): Update.
5380 * linux-thread-db.c (inferior_has_bug): Update
5381 * m32c-tdep.c (m32c_return_value)
5382 (m32c_m16c_address_to_pointer): Update.
5383 * m32r-tdep.c (m32r_frame_this_id): Update.
5384 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5385 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5386 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5387 lookup_minimal_symbol. Change return type.
5388 (lookup_minimal_symbol): Remove.
5389 (lookup_bound_minimal_symbol): Update.
5390 (lookup_minimal_symbol_text): Change return type.
5391 (lookup_minimal_symbol_solib_trampoline): Change return type.
5392 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5393 (lookup_minimal_symbol_solib_trampoline): Change return type.
5394 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5395 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5396 (value_nsstring, find_imps): Update.
5397 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5398 * p-lang.c (pascal_main_name): Update.
5399 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5400 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5401 * proc-service.c (ps_pglobal_lookup): Update.
5402 * ravenscar-thread.c (get_running_thread_msymbol): Change
5404 (has_ravenscar_runtime, get_running_thread_id): Update.
5405 * remote.c (remote_check_symbols): Update.
5406 * sol-thread.c (ps_pglobal_lookup): Update.
5407 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5408 * solib-dsbt.c (lm_base): Update.
5409 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5411 * solib-irix.c (locate_base): Update.
5412 * solib-som.c (som_solib_create_inferior_hook)
5413 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5415 * solib-spu.c (spu_enable_break): Update.
5416 * solib-svr4.c (elf_locate_base, enable_break): Update.
5417 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5418 (flush_ea_cache): Update.
5419 * stabsread.c (define_symbol): Update.
5420 * symfile.c (simple_read_overlay_table): Update.
5421 * symtab.c (find_pc_sect_line): Update.
5422 * tracepoint.c (scope_info): Update.
5423 * tui-disasm.c (tui_get_begin_asm_address): Update.
5424 * value.c (value_static_field): Update.
5426 2014-02-26 Tom Tromey <tromey@redhat.com>
5428 * minsyms.c (prim_record_minimal_symbol_full): Use
5429 SET_MSYMBOL_VALUE_ADDRESS.
5430 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5431 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5432 SET_MSYMBOL_VALUE_ADDRESS.
5433 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5434 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5436 2014-02-26 Tom Tromey <tromey@redhat.com>
5438 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5439 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5440 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5441 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5442 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5443 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5444 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5445 * ada-lang.c (ada_main_name): Update.
5446 (ada_lookup_simple_minsym): Update.
5447 (ada_make_symbol_completion_list): Update.
5448 (ada_add_standard_exceptions): Update.
5449 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5450 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5451 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5452 * arm-tdep.c (skip_prologue_function): Update.
5453 (arm_skip_stack_protector, arm_skip_stub): Update.
5454 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5455 (arm_wince_skip_main_prologue): Update.
5456 * auxv.c (ld_so_xfer_auxv): Update.
5457 * avr-tdep.c (avr_scan_prologue): Update.
5458 * ax-gdb.c (gen_var_ref): Update.
5459 * block.c (call_site_for_pc): Update.
5460 * blockframe.c (get_pc_function_start): Update.
5461 (find_pc_partial_function_gnu_ifunc): Update.
5462 * breakpoint.c (create_overlay_event_breakpoint): Update.
5463 (create_longjmp_master_breakpoint): Update.
5464 (create_std_terminate_master_breakpoint): Update.
5465 (create_exception_master_breakpoint): Update.
5466 (resolve_sal_pc): Update.
5467 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5468 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5470 * c-valprint.c (c_val_print): Update.
5471 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5472 * coffread.c (coff_symfile_read): Update.
5473 * common/agent.c (agent_look_up_symbols): Update.
5474 * dbxread.c (find_stab_function_addr): Update.
5475 (end_psymtab): Update.
5476 * dwarf2loc.c (call_site_to_target_addr): Update.
5477 (func_verify_no_selftailcall): Update.
5478 (tailcall_dump): Update.
5479 (call_site_find_chain_1): Update.
5480 (dwarf_expr_reg_to_entry_parameter): Update.
5481 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5482 (elf_gnu_ifunc_resolve_by_got): Update.
5483 * f-valprint.c (info_common_command): Update.
5484 * findvar.c (read_var_value): Update.
5485 * frame.c (get_prev_frame_1): Update.
5486 (inside_main_func): Update.
5487 * frv-tdep.c (frv_skip_main_prologue): Update.
5488 (frv_frame_this_id): Update.
5489 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5490 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5491 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5492 (gnuv3_skip_trampoline): Update.
5493 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5494 (hppa64_hpux_in_solib_call_trampoline): Update.
5495 (hppa_hpux_skip_trampoline_code): Update.
5496 (hppa64_hpux_search_dummy_call_sequence): Update.
5497 (hppa_hpux_find_import_stub_for_addr): Update.
5498 (hppa_hpux_find_dummy_bpaddr): Update.
5499 * hppa-tdep.c (hppa_symbol_address)
5500 (hppa_lookup_stub_minimal_symbol): Update.
5501 * i386-tdep.c (i386_skip_main_prologue): Update.
5502 (i386_pe_skip_trampoline_code): Update.
5503 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5504 * infcall.c (get_function_name): Update.
5505 * infcmd.c (until_next_command): Update.
5506 * jit.c (jit_breakpoint_re_set_internal): Update.
5507 (jit_inferior_init): Update.
5508 * linespec.c (minsym_found): Update.
5509 (add_minsym): Update.
5510 * linux-fork.c (info_checkpoints_command): Update.
5511 * linux-nat.c (get_signo): Update.
5512 * linux-thread-db.c (inferior_has_bug): Update.
5513 * m32c-tdep.c (m32c_return_value): Update.
5514 (m32c_m16c_address_to_pointer): Update.
5515 (m32c_m16c_pointer_to_address): Update.
5516 * m32r-tdep.c (m32r_frame_this_id): Update.
5517 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5518 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5519 * maint.c (maintenance_translate_address): Update.
5520 * minsyms.c (add_minsym_to_hash_table): Update.
5521 (add_minsym_to_demangled_hash_table): Update.
5522 (msymbol_objfile): Update.
5523 (lookup_minimal_symbol): Update.
5524 (iterate_over_minimal_symbols): Update.
5525 (lookup_minimal_symbol_text): Update.
5526 (lookup_minimal_symbol_by_pc_name): Update.
5527 (lookup_minimal_symbol_solib_trampoline): Update.
5528 (lookup_minimal_symbol_by_pc_section_1): Update.
5529 (lookup_minimal_symbol_and_objfile): Update.
5530 (prim_record_minimal_symbol_full): Update.
5531 (compare_minimal_symbols): Update.
5532 (compact_minimal_symbols): Update.
5533 (build_minimal_symbol_hash_tables): Update.
5534 (install_minimal_symbols): Update.
5535 (terminate_minimal_symbol_table): Update.
5536 (find_solib_trampoline_target): Update.
5537 (minimal_symbol_upper_bound): Update.
5538 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5539 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5540 (mips_skip_pic_trampoline_code): Update.
5541 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5542 * objc-lang.c (selectors_info): Update.
5543 (classes_info): Update.
5544 (find_methods): Update.
5545 (find_imps): Update.
5546 (find_objc_msgsend): Update.
5547 * objfiles.c (objfile_relocate1): Update.
5548 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5549 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5550 * p-valprint.c (pascal_val_print): Update.
5551 * parse.c (write_exp_msymbol): Update.
5552 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5553 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5554 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5555 * printcmd.c (build_address_symbolic): Update.
5557 (address_info): Update.
5558 * proc-service.c (ps_pglobal_lookup): Update.
5559 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5560 (find_pc_sect_psymtab): Update.
5561 * python/py-framefilter.c (py_print_frame): Update.
5562 * ravenscar-thread.c (get_running_thread_id): Update.
5563 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5565 * remote.c (remote_check_symbols): Update.
5566 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5567 (rs6000_skip_trampoline_code): Update.
5568 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5569 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5570 * solib-dsbt.c (lm_base): Update.
5571 * solib-frv.c (lm_base): Update.
5573 * solib-irix.c (locate_base): Update.
5574 * solib-som.c (som_solib_create_inferior_hook): Update.
5575 (som_solib_desire_dynamic_linker_symbols): Update.
5576 (link_map_start): Update.
5577 * solib-spu.c (spu_enable_break): Update.
5578 (ocl_enable_break): Update.
5579 * solib-svr4.c (elf_locate_base): Update.
5580 (enable_break): Update.
5581 * spu-tdep.c (spu_get_overlay_table): Update.
5582 (spu_catch_start): Update.
5583 (flush_ea_cache): Update.
5584 * stabsread.c (define_symbol): Update.
5585 (scan_file_globals): Update.
5586 * stack.c (find_frame_funname): Update.
5587 (frame_info): Update.
5588 * symfile.c (simple_read_overlay_table): Update.
5589 (simple_overlay_update): Update.
5590 * symmisc.c (dump_msymbols): Update.
5591 * symtab.c (fixup_section): Update.
5592 (find_pc_sect_line): Update.
5593 (skip_prologue_sal): Update.
5594 (search_symbols): Update.
5595 (print_msymbol_info): Update.
5596 (rbreak_command): Update.
5597 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5598 (completion_list_objc_symbol): Update.
5599 (default_make_symbol_completion_list_break_on): Update.
5600 * tracepoint.c (scope_info): Update.
5601 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5602 (tui_get_begin_asm_address): Update.
5603 * valops.c (find_function_in_inferior): Update.
5604 * value.c (value_static_field): Update.
5605 (value_fn_field): Update.
5607 2014-02-26 Tom Tromey <tromey@redhat.com>
5609 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5610 bound minimal symbols. Move code that knows about minsym
5612 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5614 * minsyms.h (minimal_symbol_upper_bound): Declare.
5615 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5616 minimal_symbol_upper_bound.
5618 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5620 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5621 Use the type's name if its basic type does not have a tag.
5623 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5625 * dwarf2read.c (read_subrange_type): Add comment.
5627 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5629 * dwarf2read.c (update_enumeration_type_from_children): New
5630 function, mostly extracted from process_structure_scope.
5631 (read_enumeration_type): Call update_enumeration_type_from_children.
5632 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5633 and flag_flag_enum fields.
5635 2014-02-26 Pedro Alves <palves@redhat.com>
5637 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5638 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5639 to_xfer_partial method.
5641 2014-02-26 Pedro Alves <palves@redhat.com>
5643 * target.c (complete_target_initialization): Don't install
5644 default_xfer_partial as to_xfer_partial hook.
5646 (update_current_target): Don't INHERIT nor de_fault
5647 deprecated_xfer_memory. Delete de_fault macro.
5648 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5649 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5650 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5653 2014-02-26 Pedro Alves <palves@redhat.com>
5655 * go32-nat.c (my_write_child): New function.
5656 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5657 (go32_xfer_partial): New function.
5658 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5659 Instead install a to_xfer_partial hook.
5661 2014-02-26 Pedro Alves <palves@redhat.com>
5663 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5664 to_xfer_partial helper. Rewrite.
5665 (procfs_xfer_partial): New function.
5666 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5667 Install a to_xfer_partial hook.
5669 2014-02-26 Pedro Alves <palves@redhat.com>
5671 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5672 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5673 (m32r_xfer_partial): New function.
5674 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5675 Install a to_xfer_partial hook.
5677 2014-02-26 Pedro Alves <palves@redhat.com>
5679 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5681 (mips_xfer_partial): New function.
5682 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5683 hook. Install a to_xfer_partial hook.
5685 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5687 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5688 * gdbtypes.c (create_array_type_with_stride): New function,
5689 renaming create_array_type, but with an added parameter
5690 called "bit_stride".
5691 (create_array_type): Re-implement using
5692 create_array_type_with_stride.
5693 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5694 and DW_AT_bit_stride attributes.
5696 2014-02-26 Pedro Alves <palves@redhat.com>
5698 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5699 task-specific breakpoints.
5701 2014-02-25 Pedro Alves <palves@redhat.com>
5703 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5704 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5706 2014-02-25 Stan Shebs <stan@codesourcery.com>
5708 * defs.h: Annotate comments for Doxygen.
5710 2014-02-25 Tom Tromey <tromey@redhat.com>
5712 * target.h (target_ignore): Don't declare.
5713 * target.c (target_ignore): Remove.
5715 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5718 * auto-load.c (auto_load_objfile_script_1): Change filename to
5721 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5723 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5724 documentation. Adjust prototype to match the target_ops
5725 to_xfer_partial method. Adjust implementation accordingly.
5727 2014-02-25 Hui Zhu <hui@codesourcery.com>
5729 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5732 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5734 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5735 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5736 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5737 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5738 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5739 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5740 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5741 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5743 (rl78_register_type): Use a data pointer type for SP and
5744 new pseudo registers mentioned above. Use a 16 bit integer
5745 type for all other register pairs.
5746 (rl78_register_name, rl78_g10_register_name): Update for
5747 new pseudo registers.
5748 (rl78_pseudo_register_read): Likewise.
5749 (rl78_pseudo_register_write): Likewise.
5750 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5751 to the newly added pseudo registers.
5753 2014-02-24 Doug Evans <dje@google.com>
5755 * value.c (record_latest_value): Fix comment.
5756 * printcmd.c (print_command_1): Remove code to handle -1 return from
5757 record_latest_value.
5759 2014-02-24 Pedro Alves <palves@redhat.com>
5761 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5762 deprecated_xfer_memory hook.
5763 (procfs_xfer_partial): Call procfs_xfer_memory instead
5764 of the deprecated_xfer_memory target hook.
5765 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5768 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5770 * windows-nat.c (windows_xfer_shared_libraries): Return
5771 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5772 requested object is TARGET_OBJECT_LIBRARIES.
5774 2014-02-24 Yao Qi <yao@codesourcery.com>
5776 * target.h (enum target_xfer_status)
5777 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5778 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5780 * corefile.c (memory_error_message): User updated.
5781 * exec.c (section_table_read_available_memory): Likewise.
5782 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5783 * target.c (target_xfer_status_to_string): Likewise.
5784 (raw_memory_xfer_partial): Likewise.
5785 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5786 * valops.c (read_value_memory): Likewise.
5787 * exec.h: Update comments.
5789 2014-02-24 Yao Qi <yao@codesourcery.com>
5791 * target.c (target_xfer_status_to_string): Rename argument err
5793 * target.h (target_xfer_status_to_string): Update declaration.
5794 Replace target_xfer_error_to_string with
5795 target_xfer_status_to_string in comment.
5797 2014-02-24 Yao Qi <yao@codesourcery.com>
5799 * mips-linux-nat.c (super_close): Update its type.
5800 (mips_linux_close): Pass 'self' to super_close.
5802 2014-02-24 Yao Qi <yao@codesourcery.com>
5804 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5805 * corefile.c (read_memory): Adjusted.
5806 * target.c (target_write_with_progress): Adjusted.
5808 2014-02-23 Yao Qi <yao@codesourcery.com>
5812 2013-10-25 Yao Qi <yao@codesourcery.com>
5814 * remote.c (remote_traceframe_info): Return early if
5815 traceframe is not selected.
5817 2013-07-19 Yao Qi <yao@codesourcery.com>
5819 * target.c (update_current_target): Change the default action
5820 of 'to_traceframe_info' from tcomplain to return_zero.
5821 * target.h (struct target_ops) <to_traceframe_info>: Add more
5824 2014-02-23 Yao Qi <yao@codesourcery.com>
5826 * valops.c (read_value_memory): Rewrite it. Call
5827 target_xfer_partial in a loop.
5828 * exec.h (section_table_available_memory): Remove declaration.
5829 Move comments to ...
5830 * exec.c (section_table_available_memory): ... here. Make it
5833 2014-02-23 Yao Qi <yao@codesourcery.com>
5835 * exec.c (section_table_read_available_memory): New function.
5836 * exec.h (section_table_read_available_memory): Declare.
5837 * ctf.c (ctf_xfer_partial): Call
5838 section_table_read_available_memory.
5839 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5841 2014-02-23 Yao Qi <yao@codesourcery.com>
5843 * ctf.c (ctf_xfer_partial): Move code to ...
5844 * exec.c (exec_read_partial_read_only): ... it. New function.
5845 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5846 * tracefile.c: Include "exec.h".
5847 * exec.h (exec_read_partial_read_only): Declare.
5849 2014-02-23 Yao Qi <yao@codesourcery.com>
5851 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5852 (tfile_has_memory): Remove.
5853 (init_tfile_ops): Don't set fields to_has_all_memory and
5854 to_has_memory of tfile_ops.
5855 * tracefile.c (tracefile_has_all_memory): New function.
5856 (tracefile_has_memory): New function.
5857 (init_tracefile_ops): Initialize fields to_has_all_memory and
5858 to_has_memory of 'ops'.
5860 2014-02-23 Yao Qi <yao@codesourcery.com>
5862 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5863 (ctf_thread_alive, ctf_get_trace_status): Remove.
5864 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5866 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5867 (tfile_has_stack, tfile_has_registers): Remove.
5868 (tfile_thread_alive): Remove.
5869 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5871 * tracefile.c (tracefile_has_stack): New function.
5872 (tracefile_has_registers): New function.
5873 (tracefile_thread_alive): New function.
5874 (tracefile_get_trace_status): New function.
5875 (init_tracefile_ops): New function.
5876 * tracefile.h (init_tracefile_ops): Declare.
5878 2014-02-23 Yao Qi <yao@codesourcery.com>
5880 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5881 (O_LARGEFILE): Likewise.
5882 (tfile_ops): Likewise.
5883 (TRACE_HEADER_SIZE): Likewise.
5884 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5885 (cur_data_size): Likewise.
5886 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5887 (tfile_close, tfile_files_info): Likewise.
5888 (tfile_get_trace_status): Likewise.
5889 (tfile_get_tracepoint_status): Likewise.
5890 (tfile_get_traceframe_address): Likewise.
5891 (tfile_trace_find, match_blocktype): Likewise.
5892 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5893 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5894 (tfile_get_trace_state_variable_value): Likewise.
5895 (tfile_has_all_memory, tfile_has_memory): Likewise.
5896 (tfile_has_stack, tfile_has_registers): Likewise.
5897 (tfile_thread_alive, build_traceframe_info): Likewise.
5898 (tfile_traceframe_info, init_tfile_ops): Likewise.
5899 (_initialize_tracepoint): Don't call init_tfile_ops
5900 and add_target_with_completer.
5901 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5902 exec.h, completer.h and filenames.h.
5903 (_initialize_tracefile_tfile): New function.
5905 2014-02-23 Yao Qi <yao@codesourcery.com>
5907 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5909 (HFILES_NO_SRCDIR): Add tracefile.h.
5910 * ctf.c: Include "tracefile.h".
5911 * tracefile.h: New file.
5912 * tracefile.c: New file
5913 * tracefile-tfile.c: New file.
5914 * tracepoint.c: Include "tracefile.h".
5915 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5916 (stop_reason_names): Add const.
5917 (trace_file_writer_xfree): Move it to tracefile.c.
5918 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5919 (trace_save_ctf): Likewise.
5920 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5921 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5922 (tfile_write_header, tfile_write_regblock_type): Likewise.
5923 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5924 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5925 (tfile_write_raw_data, tfile_end): Likewise.
5926 (tfile_trace_file_writer_new): Likewise.
5927 (free_uploaded_tp): Make it extern.
5928 (free_uploaded_tsv): Make it extern.
5929 (_initialize_tracepoint): Move code to register command 'tsave'
5931 * tracepoint.h (stop_reason_names): Declare.
5932 (struct trace_frame_write_ops): Move it to tracefile.h.
5933 (struct trace_file_write_ops): Likewise.
5934 (struct trace_file_writer): Likewise.
5935 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5937 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5940 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5942 (get_cores_used_by_process): New parameter num_cores, use it.
5943 (linux_xfer_osdata_processes): Pass num_cores to it.
5944 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5947 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5949 * target.c (memory_xfer_partial): Fix length arg in call to
5950 breakpoint_xfer_memory.
5952 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5955 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5956 number comes after the + or - signs. Adjust length of register
5957 name to be extracted.
5959 2014-02-20 Tom Tromey <tromey@redhat.com>
5961 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5962 (ada_varobj_ops): Mark "extern".
5964 2014-02-20 Tom Tromey <tromey@redhat.com>
5966 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5968 2014-02-20 Doug Evans <xdje42@gmail.com>
5970 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5971 All callers updated.
5972 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5973 All callers updated.
5974 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5975 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5977 2014-02-20 lin zuojian <manjian2006@gmail.com>
5978 Joel Brobecker <brobecker@adacore.com>
5979 Doug Evans <xdje42@gmail.com>
5982 * dwarf2read.c (struct die_info): New member in_process.
5983 (reset_die_in_process): New function.
5984 (process_die): Set it at the start, reset when returning.
5985 (inherit_abstract_dies): Only call process_die if origin_child_die
5986 not already being processed.
5988 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5990 * windows-nat.c (handle_unload_dll): Add function documentation.
5991 (do_initial_windows_stuff): Add comment explaining why we wait
5992 until after inferior initialization has finished before
5993 processing all DLLs.
5995 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5997 * windows-nat.c (get_module_name): Delete.
5998 (windows_get_exec_module_filename): New function, mostly
5999 inspired from get_module_name.
6000 (windows_pid_to_exec_file): Replace call to get_module_name
6001 by call to windows_get_exec_module_filename.
6003 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6005 * windows-nat.c (handle_load_dll): Rewrite this function's
6006 introductory comment. Remove code using get_module_name
6007 to get the DLL's name.
6009 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6011 * windows-nat.c (get_windows_debug_event): Ignore
6012 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6013 if windows_initialization_done == 0.
6014 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6015 Adjust implementation to always load all DLLs.
6016 (do_initial_windows_stuff): Replace call to
6017 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6019 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6021 * windows-nat.c (_initialize_windows_nat): Deprecate the
6022 "dll-symbols" command. Turn the "add-shared-symbol-files"
6023 and "assf" aliases into commands, and deprecate them as well.
6024 * NEWS: Add entry explaining that "dll-symbols" and its two
6025 aliases are now deprecated.
6027 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6029 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6030 new-line in debug string. Remove trailing spaces.
6032 2014-02-19 Stan Shebs <stan@codesourcery.com>
6034 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6036 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6038 * NEWS: Add entry for the new feature
6039 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6042 2014-02-19 Stan Shebs <stan@codesourcery.com>
6044 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6046 2014-02-19 Pedro Alves <palves@redhat.com>
6048 * common/ptid.h (struct ptid): Mention that process_stratum
6049 targets should prefer ptid.lwp.
6051 2014-02-19 Pedro Alves <palves@redhat.com>
6053 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6054 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6055 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6056 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6057 store remote thread ids rather than ptid.tid.
6058 (_initialize_remote): Adjust.
6060 2014-02-19 Tom Tromey <tromey@redhat.com>
6062 * target.c (target_get_unwinder): Rewrite.
6063 (target_get_tailcall_unwinder): Rewrite.
6064 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6065 (record_btrace_to_get_tailcall_unwinder): New function.
6066 (init_record_btrace_ops): Update.
6067 * target.h (struct target_ops) <to_get_unwinder,
6068 to_get_tailcall_unwinder>: Now function pointers. Use
6069 TARGET_DEFAULT_RETURN.
6071 2014-02-19 Tom Tromey <tromey@redhat.com>
6073 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6075 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6077 2014-02-19 Tom Tromey <tromey@redhat.com>
6079 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6081 * target-delegates.c: Rebuild.
6082 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6083 TARGET_DEFAULT_FUNC.
6084 * target.c (default_target_decr_pc_after_break): Rename from
6085 forward_target_decr_pc_after_break. Simplify.
6086 (target_decr_pc_after_break): Rely on delegation.
6088 2014-02-19 Tom Tromey <tromey@redhat.com>
6090 * target.c (update_current_target): Do not INHERIT to_doc or
6091 to_magic. Do not de_fault to_open or to_close.
6093 2014-02-19 Tom Tromey <tromey@redhat.com>
6095 * gcore.h (objfile_find_memory_regions): Declare.
6096 * gcore.c (objfile_find_memory_regions): No longer static. Add
6098 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6099 * exec.c: Include gcore.h.
6100 (exec_set_find_memory_regions): Remove.
6101 (exec_find_memory_regions): Remove.
6102 (exec_do_find_memory_regions): Remove.
6103 (init_exec_ops): Update.
6104 * defs.h (exec_set_find_memory_regions): Remove.
6106 2014-02-19 Tom Tromey <tromey@redhat.com>
6108 * target-delegates.c: Rebuild.
6109 * target.h (struct target_ops) <to_extra_thread_info,
6110 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6111 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6112 not 0, in TARGET_DEFAULT_RETURN.
6114 2014-02-19 Tom Tromey <tromey@redhat.com>
6116 * target.c (complete_target_initialization): Remove casts. Use
6117 return_zero_has_execution.
6118 (return_zero): Add "ignore" argument.
6119 (return_zero_has_execution): New function.
6120 (init_dummy_target): Remove casts. Use
6121 return_zero_has_execution.
6123 2014-02-19 Tom Tromey <tromey@redhat.com>
6125 * target.c (update_current_target): Update comments. Do not
6128 2014-02-19 Tom Tromey <tromey@redhat.com>
6130 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6132 * corelow.c (core_read_description): Delegate when needed.
6133 * remote.c (remote_read_description): Delegate when needed.
6134 * target-delegates.c: Rebuild.
6135 * target.c (target_read_description): Rewrite.
6136 * target.h (struct target_ops) <to_read_description>: Update
6137 comment. Use TARGET_DEFAULT_RETURN.
6139 2014-02-19 Tom Tromey <tromey@redhat.com>
6141 * target-delegates.c: Rebuild.
6142 * target.c (update_current_target): Don't inherit or default
6144 (find_default_run_target): Check against delegate_can_run.
6145 * target.h (struct target_ops) <to_can_run>: Use
6146 TARGET_DEFAULT_RETURN.
6148 2014-02-19 Tom Tromey <tromey@redhat.com>
6150 * target-delegates.c: Rebuild.
6151 * target.c (target_disconnect): Unconditionally delegate.
6152 * target.h (struct target_ops) <to_disconnect>: Use
6153 TARGET_DEFAULT_NORETURN.
6155 2014-02-19 Tom Tromey <tromey@redhat.com>
6157 * record.c (record_stop): Unconditionally delegate.
6158 * target-delegates.c: Rebuild.
6159 * target.c (target_stop_recording): Unconditionally delegate.
6160 * target.h (struct target_ops) <to_stop_recording>: Use
6161 TARGET_DEFAULT_IGNORE.
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6165 * target-delegates.c: Rebuild.
6166 * target.c (target_enable_btrace): Unconditionally delegate.
6167 * target.h (struct target_ops) <to_enable_btrace>: Use
6168 TARGET_DEFAULT_NORETURN.
6170 2014-02-19 Tom Tromey <tromey@redhat.com>
6172 * target-delegates.c: Rebuild.
6173 * target.c (target_read_btrace): Unconditionally delegate.
6174 * target.h (struct target_ops) <to_read_btrace>: Use
6175 TARGET_DEFAULT_NORETURN.
6177 2014-02-19 Tom Tromey <tromey@redhat.com>
6179 * target-delegates.c: Rebuild.
6180 * target.c (target_teardown_btrace): Unconditionally delegate.
6181 * target.h (struct target_ops) <to_teardown_btrace>: Use
6182 TARGET_DEFAULT_NORETURN.
6184 2014-02-19 Tom Tromey <tromey@redhat.com>
6186 * target-delegates.c: Rebuild.
6187 * target.c (target_disable_btrace): Unconditionally delegate.
6188 * target.h (struct target_ops) <to_disable_btrace>: Use
6189 TARGET_DEFAULT_NORETURN.
6191 2014-02-19 Tom Tromey <tromey@redhat.com>
6193 * target-delegates.c: Rebuild.
6194 * target.c (default_search_memory): New function.
6195 (simple_search_memory): Update comment.
6196 (target_search_memory): Unconditionally delegate.
6197 * target.h (struct target_ops) <to_search_memory>: Use
6198 TARGET_DEFAULT_FUNC.
6200 2014-02-19 Tom Tromey <tromey@redhat.com>
6202 * auxv.c (default_auxv_parse): No longer static.
6203 (target_auxv_parse): Unconditionally delegate.
6204 * auxv.h (default_auxv_parse): Declare.
6205 * target-delegates.c: Rebuild.
6206 * target.c: Include auxv.h.
6207 * target.h (struct target_ops) <to_auxv_parse>: Use
6208 TARGET_DEFAULT_FUNC.
6210 2014-02-19 Tom Tromey <tromey@redhat.com>
6212 * target-delegates.c: Rebuild.
6213 * target.c (target_memory_map): Unconditionally delegate.
6214 * target.h (struct target_ops) <to_memory_map>: Use
6215 TARGET_DEFAULT_RETURN.
6217 2014-02-19 Tom Tromey <tromey@redhat.com>
6219 * target-delegates.c: Rebuild.
6220 * target.c (target_thread_alive): Unconditionally delegate.
6221 * target.h (struct target_ops) <to_thread_alive>: Use
6222 TARGET_DEFAULT_RETURN.
6224 2014-02-19 Tom Tromey <tromey@redhat.com>
6226 * target-delegates.c: Rebuild.
6227 * target.c (target_save_record): Unconditionally delegate.
6228 * target.h (struct target_ops) <to_save_record>: Use
6229 TARGET_DEFAULT_NORETURN.
6231 2014-02-19 Tom Tromey <tromey@redhat.com>
6233 * target-delegates.c: Rebuild.
6234 * target.c (target_delete_record): Unconditionally delegate.
6235 * target.h (struct target_ops) <to_delete_record>: Use
6236 TARGET_DEFAULT_NORETURN.
6238 2014-02-19 Tom Tromey <tromey@redhat.com>
6240 * target-delegates.c: Rebuild.
6241 * target.c (target_record_is_replaying): Unconditionally
6243 * target.h (struct target_ops) <to_record_is_replaying>: Use
6244 TARGET_DEFAULT_RETURN.
6246 2014-02-19 Tom Tromey <tromey@redhat.com>
6248 * target-delegates.c: Rebuild.
6249 * target.c (target_goto_record_begin): Unconditionally delegate.
6250 * target.h (struct target_ops) <to_goto_record_begin>: Use
6251 TARGET_DEFAULT_NORETURN.
6253 2014-02-19 Tom Tromey <tromey@redhat.com>
6255 * target-delegates.c: Rebuild.
6256 * target.c (target_goto_record_end): Unconditionally delegate.
6257 * target.h (struct target_ops) <to_goto_record_end>: Use
6258 TARGET_DEFAULT_NORETURN.
6260 2014-02-19 Tom Tromey <tromey@redhat.com>
6262 * target-delegates.c: Rebuild.
6263 * target.c (target_goto_record): Unconditionally delegate.
6264 * target.h (struct target_ops) <to_goto_record>: Use
6265 TARGET_DEFAULT_NORETURN.
6267 2014-02-19 Tom Tromey <tromey@redhat.com>
6269 * target-delegates.c: Rebuild.
6270 * target.c (target_insn_history): Unconditionally delegate.
6271 * target.h (struct target_ops) <to_insn_history>: Use
6272 TARGET_DEFAULT_NORETURN.
6274 2014-02-19 Tom Tromey <tromey@redhat.com>
6276 * target-delegates.c: Rebuild.
6277 * target.c (target_insn_history_from): Unconditionally delegate.
6278 * target.h (struct target_ops) <to_insn_history_from>: Use
6279 TARGET_DEFAULT_NORETURN.
6281 2014-02-19 Tom Tromey <tromey@redhat.com>
6283 * target-delegates.c: Rebuild.
6284 * target.c (target_insn_history_range): Unconditionally delegate.
6285 * target.h (struct target_ops) <to_insn_history_range>: Use
6286 TARGET_DEFAULT_NORETURN.
6288 2014-02-19 Tom Tromey <tromey@redhat.com>
6290 * target-delegates.c: Rebuild.
6291 * target.c (target_call_history): Unconditionally delegate.
6292 * target.h (struct target_ops) <to_call_history>: Use
6293 TARGET_DEFAULT_NORETURN.
6295 2014-02-19 Tom Tromey <tromey@redhat.com>
6297 * target-delegates.c: Rebuild.
6298 * target.c (target_call_history_from): Unconditionally delegate.
6299 * target.h (struct target_ops) <to_call_history_from>: Use
6300 TARGET_DEFAULT_NORETURN.
6302 2014-02-19 Tom Tromey <tromey@redhat.com>
6304 * target-delegates.c: Rebuild.
6305 * target.c (target_call_history_range): Unconditionally delegate.
6306 * target.h (struct target_ops) <to_call_history_range>: Use
6307 TARGET_DEFAULT_NORETURN.
6309 2014-02-19 Tom Tromey <tromey@redhat.com>
6311 * target-delegates.c: Rebuild.
6312 * target.c (target_verify_memory): Unconditionally delegate.
6313 * target.h (struct target_ops) <to_verify_memory>: Use
6314 TARGET_DEFAULT_NORETURN.
6316 2014-02-19 Tom Tromey <tromey@redhat.com>
6318 * target-delegates.c: Rebuild.
6319 * target.c (target_core_of_thread): Unconditionally delegate.
6320 * target.h (struct target_ops) <to_core_of_thread>: Use
6321 TARGET_DEFAULT_RETURN.
6323 2014-02-19 Tom Tromey <tromey@redhat.com>
6325 * target-delegates.c: Rebuild.
6326 * target.c (target_flash_done): Unconditionally delegate.
6327 * target.h (struct target_ops) <to_flash_done>: Use
6328 TARGET_DEFAULT_NORETURN.
6330 2014-02-19 Tom Tromey <tromey@redhat.com>
6332 * target-delegates.c: Rebuild.
6333 * target.c (target_flash_erase): Unconditionally delegate.
6334 * target.h (struct target_ops) <to_flash_erase>: Use
6335 TARGET_DEFAULT_NORETURN.
6337 2014-02-19 Tom Tromey <tromey@redhat.com>
6339 * target-delegates.c: Rebuild.
6340 * target.c (target_get_section_table): Unconditionally delegate.
6341 * target.h (struct target_ops) <to_get_section_table>: Use
6342 TARGET_DEFAULT_RETURN.
6344 2014-02-19 Tom Tromey <tromey@redhat.com>
6346 * target-delegates.c: Rebuild.
6347 * target.c (target_pid_to_str): Unconditionally delegate.
6348 (init_dummy_target): Don't initialize to_pid_to_str.
6349 (default_pid_to_str): Rename from dummy_pid_to_str.
6350 * target.h (struct target_ops) <to_pid_to_str>: Use
6351 TARGET_DEFAULT_FUNC.
6353 2014-02-19 Tom Tromey <tromey@redhat.com>
6355 * target-delegates.c: Rebuild.
6356 * target.c (target_find_new_threads): Unconditionally delegate.
6357 * target.h (struct target_ops) <to_find_new_threads>: Use
6358 TARGET_DEFAULT_RETURN.
6360 2014-02-19 Tom Tromey <tromey@redhat.com>
6362 * target-delegates.c: Rebuild.
6363 * target.c (target_program_signals): Unconditionally delegate.
6364 * target.h (struct target_ops) <to_program_signals>: Use
6365 TARGET_DEFAULT_IGNORE.
6367 2014-02-19 Tom Tromey <tromey@redhat.com>
6369 * target-delegates.c: Rebuild.
6370 * target.c (target_pass_signals): Unconditionally delegate.
6371 * target.h (struct target_ops) <to_pass_signals>: Use
6372 TARGET_DEFAULT_IGNORE.
6374 2014-02-19 Tom Tromey <tromey@redhat.com>
6376 * target-delegates.c: Rebuild.
6377 * target.c (default_mourn_inferior): New function.
6378 (target_mourn_inferior): Unconditionally delegate.
6379 * target.h (struct target_ops) <to_mourn_inferior>: Use
6380 TARGET_DEFAULT_FUNC.
6382 2014-02-19 Tom Tromey <tromey@redhat.com>
6384 * target-delegates.c: Rebuild.
6385 * target.c (default_follow_fork): New function.
6386 (target_follow_fork): Unconditionally delegate.
6387 * target.h (struct target_ops) <to_follow_fork>: Use
6388 TARGET_DEFAULT_FUNC.
6390 2014-02-19 Tom Tromey <tromey@redhat.com>
6392 * target-delegates.c: Rebuild.
6393 * target.c (target_kill): Unconditionally delegate.
6394 * target.h (struct target_ops) <to_kill>: Use
6395 TARGET_DEFAULT_NORETURN.
6397 2014-02-19 Tom Tromey <tromey@redhat.com>
6399 * target-delegates.c: Rebuild.
6400 * target.c (target_masked_watch_num_registers): Unconditionally
6402 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6403 Use TARGET_DEFAULT_RETURN.
6405 2014-02-19 Tom Tromey <tromey@redhat.com>
6407 * target-delegates.c: Rebuild.
6408 * target.c (target_remove_mask_watchpoint): Unconditionally
6410 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6411 TARGET_DEFAULT_RETURN.
6413 2014-02-19 Tom Tromey <tromey@redhat.com>
6415 * target-delegates.c: Rebuild.
6416 * target.c (target_insert_mask_watchpoint): Unconditionally
6418 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6419 TARGET_DEFAULT_RETURN.
6421 2014-02-19 Tom Tromey <tromey@redhat.com>
6423 * target-delegates.c: Rebuild.
6424 * target.c (target_ranged_break_num_registers): Unconditionally
6426 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6427 Use TARGET_DEFAULT_RETURN.
6429 2014-02-19 Tom Tromey <tromey@redhat.com>
6431 * target-delegates.c: Rebuild.
6432 * target.c (target_fetch_registers): Unconditionally delegate.
6433 * target.h (struct target_ops) <to_fetch_registers>: Use
6434 TARGET_DEFAULT_NORETURN.
6436 2014-02-19 Tom Tromey <tromey@redhat.com>
6438 * target-delegates.c: Rebuild.
6439 * target.c (update_current_target): Don't inherit or default
6441 * target.h (struct target_ops) <to_stop>: Use
6442 TARGET_DEFAULT_IGNORE.
6444 2014-02-19 Tom Tromey <tromey@redhat.com>
6446 * target-delegates.c: Rebuild.
6447 * target.c (update_current_target): Don't inherit or default
6448 to_can_run_breakpoint_commands.
6449 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6450 Use TARGET_DEFAULT_RETURN.
6452 2014-02-19 Tom Tromey <tromey@redhat.com>
6454 * target-delegates.c: Rebuild.
6455 * target.c (update_current_target): Don't inherit or default
6456 to_supports_evaluation_of_breakpoint_conditions.
6457 * target.h (struct target_ops)
6458 <to_supports_evaluation_of_breakpoint_conditions>: Use
6459 TARGET_DEFAULT_RETURN.
6461 2014-02-19 Tom Tromey <tromey@redhat.com>
6463 * target-delegates.c: Rebuild.
6464 * target.c (update_current_target): Don't inherit or default
6465 to_augmented_libraries_svr4_read.
6466 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6467 Use TARGET_DEFAULT_RETURN.
6469 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * target-delegates.c: Rebuild.
6472 * target.c (update_current_target): Don't inherit or default
6474 * target.h (struct target_ops) <to_can_use_agent>: Use
6475 TARGET_DEFAULT_RETURN.
6477 2014-02-19 Tom Tromey <tromey@redhat.com>
6479 * target-delegates.c: Rebuild.
6480 * target.c (update_current_target): Don't inherit or default
6482 * target.h (struct target_ops) <to_use_agent>: Use
6483 TARGET_DEFAULT_NORETURN.
6485 2014-02-19 Tom Tromey <tromey@redhat.com>
6487 * target-delegates.c: Rebuild.
6488 * target.c (update_current_target): Don't inherit or default
6490 (return_null): Remove.
6491 * target.h (struct target_ops) <to_traceframe_info>: Use
6492 TARGET_DEFAULT_RETURN.
6494 2014-02-19 Tom Tromey <tromey@redhat.com>
6496 * target-delegates.c: Rebuild.
6497 * target.c (update_current_target): Don't inherit or default
6498 to_static_tracepoint_markers_by_strid.
6499 * target.h (struct target_ops)
6500 <to_static_tracepoint_markers_by_strid>: Use
6501 TARGET_DEFAULT_NORETURN.
6503 2014-02-19 Tom Tromey <tromey@redhat.com>
6505 * target-delegates.c: Rebuild.
6506 * target.c (update_current_target): Don't inherit or default
6507 to_static_tracepoint_marker_at.
6508 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6509 Use TARGET_DEFAULT_RETURN.
6511 2014-02-19 Tom Tromey <tromey@redhat.com>
6513 * target-delegates.c: Rebuild.
6514 * target.c (update_current_target): Don't inherit or default
6516 * target.h (struct target_ops) <to_set_permissions>: Use
6517 TARGET_DEFAULT_IGNORE.
6519 2014-02-19 Tom Tromey <tromey@redhat.com>
6521 * target-delegates.c: Rebuild.
6522 * target.c (update_current_target): Don't inherit or default
6524 * target.h (struct target_ops) <to_get_tib_address>: Use
6525 TARGET_DEFAULT_NORETURN.
6527 2014-02-19 Tom Tromey <tromey@redhat.com>
6529 * target-delegates.c: Rebuild.
6530 * target.c (update_current_target): Don't inherit or default
6532 * target.h (struct target_ops) <to_set_trace_notes>: Use
6533 TARGET_DEFAULT_RETURN.
6535 2014-02-19 Tom Tromey <tromey@redhat.com>
6537 * target-delegates.c: Rebuild.
6538 * target.c (update_current_target): Don't initialize
6539 to_set_trace_buffer_size.
6540 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6541 TARGET_DEFAULT_IGNORE.
6543 2014-02-19 Tom Tromey <tromey@redhat.com>
6545 * target-delegates.c: Rebuild.
6546 * target.c (update_current_target): Don't inherit or default
6547 to_set_circular_trace_buffer.
6548 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6549 TARGET_DEFAULT_IGNORE.
6551 2014-02-19 Tom Tromey <tromey@redhat.com>
6553 * target-delegates.c: Rebuild.
6554 * target.c (update_current_target): Don't inherit or default
6555 to_set_disconnected_tracing.
6556 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6557 TARGET_DEFAULT_IGNORE.
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
6563 to_get_min_fast_tracepoint_insn_len.
6564 (return_minus_one): Remove.
6565 * target.h (struct target_ops)
6566 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6568 2014-02-19 Tom Tromey <tromey@redhat.com>
6570 * target-delegates.c: Rebuild.
6571 * target.c (update_current_target): Don't inherit or default
6572 to_get_raw_trace_data.
6573 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6574 TARGET_DEFAULT_NORETURN.
6576 2014-02-19 Tom Tromey <tromey@redhat.com>
6578 * target-delegates.c: Rebuild.
6579 * target.c (update_current_target): Don't inherit or default
6580 to_upload_trace_state_variables.
6581 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6582 Use 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_upload_tracepoints.
6589 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6590 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_save_trace_data>: Use
6598 TARGET_DEFAULT_NORETURN.
6600 2014-02-19 Tom Tromey <tromey@redhat.com>
6602 * target-delegates.c: Rebuild.
6603 * target.c (update_current_target): Don't inherit or default
6604 to_get_trace_state_variable_value.
6605 * target.h (struct target_ops)
6606 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6608 2014-02-19 Tom Tromey <tromey@redhat.com>
6610 * target-delegates.c: Rebuild.
6611 * target.c (update_current_target): Don't inherit or default
6613 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6615 2014-02-19 Tom Tromey <tromey@redhat.com>
6617 * target-delegates.c: Rebuild.
6618 * target.c (update_current_target): Don't inherit or default
6620 * target.h (struct target_ops) <to_trace_stop>: Use
6621 TARGET_DEFAULT_NORETURN.
6623 2014-02-19 Tom Tromey <tromey@redhat.com>
6625 * target-delegates.c: Rebuild.
6626 * target.c (update_current_target): Don't inherit or default
6627 to_get_tracepoint_status.
6628 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6629 TARGET_DEFAULT_NORETURN.
6631 2014-02-19 Tom Tromey <tromey@redhat.com>
6633 * target-delegates.c: Rebuild.
6634 * target.c (update_current_target): Don't inherit or default
6635 to_get_trace_status.
6636 * target.h (struct target_ops) <to_get_trace_status>: Use
6637 TARGET_DEFAULT_RETURN.
6639 2014-02-19 Tom Tromey <tromey@redhat.com>
6641 * target-delegates.c: Rebuild.
6642 * target.c (update_current_target): Don't inherit or default
6644 * target.h (struct target_ops) <to_trace_start>: Use
6645 TARGET_DEFAULT_NORETURN.
6647 2014-02-19 Tom Tromey <tromey@redhat.com>
6649 * target-delegates.c: Rebuild.
6650 * target.c (update_current_target): Don't inherit or default
6651 to_trace_set_readonly_regions.
6652 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6653 Use TARGET_DEFAULT_NORETURN.
6655 2014-02-19 Tom Tromey <tromey@redhat.com>
6657 * target-delegates.c: Rebuild.
6658 * target.c (update_current_target): Don't inherit or default
6659 to_disable_tracepoint.
6660 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6661 TARGET_DEFAULT_NORETURN.
6663 2014-02-19 Tom Tromey <tromey@redhat.com>
6665 * target-delegates.c: Rebuild.
6666 * target.c (update_current_target): Don't inherit or default
6667 to_enable_tracepoint.
6668 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6669 TARGET_DEFAULT_NORETURN.
6671 2014-02-19 Tom Tromey <tromey@redhat.com>
6673 * target-delegates.c: Rebuild.
6674 * target.c (update_current_target): Don't inherit or default
6675 to_download_trace_state_variable.
6676 * target.h (struct target_ops) <to_download_trace_state_variable>:
6677 Use TARGET_DEFAULT_NORETURN.
6679 2014-02-19 Tom Tromey <tromey@redhat.com>
6681 * target-delegates.c: Rebuild.
6682 * target.c (update_current_target): Don't inherit or default
6683 to_can_download_tracepoint.
6684 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6685 TARGET_DEFAULT_RETURN.
6687 2014-02-19 Tom Tromey <tromey@redhat.com>
6689 * target-delegates.c: Rebuild.
6690 * target.c (update_current_target): Don't inherit or default
6691 to_download_tracepoint.
6692 * target.h (struct target_ops) <to_download_tracepoint>: Use
6693 TARGET_DEFAULT_NORETURN.
6695 2014-02-19 Tom Tromey <tromey@redhat.com>
6697 * target-delegates.c: Rebuild.
6698 * target.c (update_current_target): Don't inherit or default
6700 * target.h (struct target_ops) <to_trace_init>: Use
6701 TARGET_DEFAULT_RETURN.
6703 2014-02-19 Tom Tromey <tromey@redhat.com>
6705 * target-delegates.c: Rebuild.
6706 * target.c (update_current_target): Don't inherit or default
6707 to_supports_string_tracing.
6708 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6709 TARGET_DEFAULT_RETURN.
6711 2014-02-19 Tom Tromey <tromey@redhat.com>
6713 * target-delegates.c: Rebuild.
6714 * target.c (update_current_target): Don't inherit or default
6715 to_supports_enable_disable_tracepoint.
6716 * target.h (struct target_ops)
6717 <to_supports_enable_disable_tracepoint>: Use
6718 TARGET_DEFAULT_RETURN.
6720 2014-02-19 Tom Tromey <tromey@redhat.com>
6722 * target-delegates.c: Rebuild.
6723 * target.c (update_current_target): Don't inherit or default
6724 to_supports_multi_process.
6725 * target.h (struct target_ops) <to_supports_multi_process>: Use
6726 TARGET_DEFAULT_RETURN.
6728 2014-02-19 Tom Tromey <tromey@redhat.com>
6730 * target-delegates.c: Rebuild.
6731 * target.c (update_current_target): Don't inherit or default
6732 to_get_ada_task_ptid.
6733 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6734 TARGET_DEFAULT_FUNC.
6736 2014-02-19 Tom Tromey <tromey@redhat.com>
6738 * target-delegates.c: Rebuild.
6739 * target.c (update_current_target): Don't inherit or default
6740 to_thread_architecture.
6741 * target.h (struct target_ops) <to_thread_architecture>: Use
6742 TARGET_DEFAULT_FUNC.
6744 2014-02-19 Tom Tromey <tromey@redhat.com>
6746 * target-delegates.c: Rebuild.
6747 * target.c (update_current_target): Don't inherit or default
6748 to_execution_direction.
6749 * target.h (struct target_ops) <to_execution_direction>: Use
6750 TARGET_DEFAULT_FUNC.
6752 2014-02-19 Tom Tromey <tromey@redhat.com>
6754 * target-delegates.c: Rebuild.
6755 * target.c (update_current_target): Don't inherit or default
6756 to_can_execute_reverse.
6757 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6758 TARGET_DEFAULT_RETURN.
6759 (target_can_execute_reverse): Unconditionally delegate.
6761 2014-02-19 Tom Tromey <tromey@redhat.com>
6763 * target-delegates.c: Rebuild.
6764 * target.c (update_current_target): Don't inherit or default
6766 (dummy_goto_bookmark): Remove.
6767 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6768 * target.h (struct target_ops) <to_goto_bookmark>: Use
6769 TARGET_DEFAULT_NORETURN.
6771 2014-02-19 Tom Tromey <tromey@redhat.com>
6773 * target-delegates.c: Rebuild.
6774 * target.c (update_current_target): Don't inherit or default
6776 (dummy_get_bookmark): Remove.
6777 (init_dummy_target): Don't inherit or default to_get_bookmark.
6778 * target.h (struct target_ops) <to_get_bookmark>: Use
6779 TARGET_DEFAULT_NORETURN
6781 2014-02-19 Tom Tromey <tromey@redhat.com>
6783 * target-delegates.c: Rebuild.
6784 * target.c (update_current_target): Don't inherit or default
6785 to_make_corefile_notes.
6786 (init_dummy_target): Don't initialize to_make_corefile_notes.
6787 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6788 TARGET_DEFAULT_FUNC.
6790 2014-02-19 Tom Tromey <tromey@redhat.com>
6792 * target-delegates.c: Rebuild.
6793 * target.c (update_current_target): Don't inherit or default
6794 to_find_memory_regions.
6795 (init_dummy_target): Don't initialize to_find_memory_regions.
6796 * target.h (struct target_ops) <to_find_memory_regions>: Use
6797 TARGET_DEFAULT_FUNC.
6799 2014-02-19 Tom Tromey <tromey@redhat.com>
6801 * target-delegates.c: Rebuild.
6802 * target.c (update_current_target): Don't inherit or default
6804 * target.h (struct target_ops) <to_log_command>: Use
6805 TARGET_DEFAULT_IGNORE.
6806 (target_log_command): Unconditionally delegate.
6808 2014-02-19 Tom Tromey <tromey@redhat.com>
6810 * target-delegates.c: Rebuild.
6811 * target.c (update_current_target): Don't inherit or default
6812 to_pid_to_exec_file.
6813 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6814 TARGET_DEFAULT_RETURN.
6816 2014-02-19 Tom Tromey <tromey@redhat.com>
6818 * target-delegates.c: Rebuild.
6819 * target.c (update_current_target): Don't inherit or default
6821 (target_thread_name): Unconditionally delegate.
6822 * target.h (struct target_ops) <to_thread_name>: Use
6823 TARGET_DEFAULT_RETURN.
6825 2014-02-19 Tom Tromey <tromey@redhat.com>
6827 * target-delegates.c: Rebuild.
6828 * target.c (update_current_target): Don't inherit or default
6829 to_extra_thread_info.
6830 * target.h (struct target_ops) <to_extra_thread_info>: Use
6831 TARGET_DEFAULT_RETURN.
6833 2014-02-19 Tom Tromey <tromey@redhat.com>
6835 * target-delegates.c: Rebuild.
6836 * target.c (update_current_target): Don't inherit or default
6838 * target.h (struct target_ops) <to_has_exited>: Use
6839 TARGET_DEFAULT_RETURN..
6841 2014-02-19 Tom Tromey <tromey@redhat.com>
6843 * target-delegates.c: Rebuild.
6844 * target.c (update_current_target): Don't inherit or default
6845 to_set_syscall_catchpoint.
6846 (return_one): Remove.
6847 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6848 TARGET_DEFAULT_RETURN.
6850 2014-02-19 Tom Tromey <tromey@redhat.com>
6852 * target-delegates.c: Rebuild.
6853 * target.c (update_current_target): Don't inherit or default
6854 to_insert_exec_catchpoint.
6855 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6856 TARGET_DEFAULT_RETURN.
6858 2014-01-08 Tom Tromey <tromey@redhat.com>
6860 * target-delegates.c: Rebuild.
6861 * target.c (update_current_target): Don't inherit or default
6862 to_insert_exec_catchpoint.
6863 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6864 TARGET_DEFAULT_RETURN.
6866 2014-02-19 Tom Tromey <tromey@redhat.com>
6868 * target-delegates.c: Rebuild.
6869 * target.c (update_current_target): Don't inherit or default
6870 to_remove_vfork_catchpoint.
6871 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6872 TARGET_DEFAULT_RETURN.
6874 2014-02-19 Tom Tromey <tromey@redhat.com>
6876 * target-delegates.c: Rebuild.
6877 * target.c (update_current_target): Don't inherit or default
6878 to_insert_vfork_catchpoint.
6879 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6880 TARGET_DEFAULT_RETURN.
6882 2014-02-19 Tom Tromey <tromey@redhat.com>
6884 * target-delegates.c: Rebuild.
6885 * target.c (update_current_target): Don't inherit or default
6886 to_remove_fork_catchpoint.
6887 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6888 TARGET_DEFAULT_RETURN.
6890 2014-02-19 Tom Tromey <tromey@redhat.com>
6892 * target-delegates.c: Rebuild.
6893 * target.c (update_current_target): Don't inherit or default
6894 to_insert_fork_catchpoint.
6895 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6896 TARGET_DEFAULT_RETURN.
6898 2014-02-19 Tom Tromey <tromey@redhat.com>
6900 * target-delegates.c: Rebuild.
6901 * target.c (update_current_target): Don't inherit or default
6902 to_post_startup_inferior.
6903 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6904 TARGET_DEFAULT_IGNORE.
6906 2014-02-19 Tom Tromey <tromey@redhat.com>
6908 * target-delegates.c: Rebuild.
6909 * target.c (update_current_target): Don't inherit or default
6911 * target.h (struct target_ops) <to_load>: Use
6912 TARGET_DEFAULT_NORETURN.
6914 2014-02-19 Tom Tromey <tromey@redhat.com>
6916 * target-delegates.c: Rebuild.
6917 * target.c (update_current_target): Don't inherit or default
6919 * target.h (struct target_ops) <to_terminal_info>: 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
6926 to_terminal_save_ours.
6927 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6928 TARGET_DEFAULT_IGNORE.
6930 2014-02-19 Tom Tromey <tromey@redhat.com>
6932 * target-delegates.c: Rebuild.
6933 * target.c (update_current_target): Don't inherit or default
6935 * target.h (struct target_ops) <to_terminal_ours>: Use
6936 TARGET_DEFAULT_IGNORE.
6938 2014-02-19 Tom Tromey <tromey@redhat.com>
6940 * target-delegates.c: Rebuild.
6941 * target.c (update_current_target): Don't inherit or default
6942 to_terminal_ours_for_output.
6943 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6944 TARGET_DEFAULT_IGNORE.
6946 2014-02-19 Tom Tromey <tromey@redhat.com>
6948 * target-delegates.c: Rebuild.
6949 * target.c (update_current_target): Don't inherit or default
6950 to_terminal_inferior.
6951 * target.h (struct target_ops) <to_terminal_inferior>: Use
6952 TARGET_DEFAULT_IGNORE.
6954 2014-02-19 Tom Tromey <tromey@redhat.com>
6956 * target-delegates.c: Rebuild.
6957 * target.c (update_current_target): Don't inherit or default
6959 * target.h (struct target_ops) <to_terminal_init>: Use
6960 TARGET_DEFAULT_IGNORE.
6962 2014-02-19 Tom Tromey <tromey@redhat.com>
6964 * target-delegates.c: Rebuild.
6965 * target.c (update_current_target): Don't inherit or default
6966 to_can_accel_watchpoint_condition.
6967 * target.h (struct target_ops)
6968 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6970 2014-02-19 Tom Tromey <tromey@redhat.com>
6972 * target-delegates.c: Rebuild.
6973 * target.c (update_current_target): Don't inherit or default
6974 to_region_ok_for_hw_watchpoint.
6975 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6976 Use TARGET_DEFAULT_FUNC.
6978 2014-02-19 Tom Tromey <tromey@redhat.com>
6980 * target-delegates.c: Rebuild.
6981 * target.c (update_current_target): Don't inherit or default
6982 to_watchpoint_addr_within_range.
6983 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6984 Use TARGET_DEFAULT_FUNC.
6986 2014-02-19 Tom Tromey <tromey@redhat.com>
6988 * target-delegates.c: Rebuild.
6989 * target.c (update_current_target): Don't inherit or default
6990 to_remove_watchpoint.
6991 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6992 TARGET_DEFAULT_NORETURN.
6994 2014-02-19 Tom Tromey <tromey@redhat.com>
6996 * target-delegates.c: Rebuild.
6997 * target.c (update_current_target): Don't inherit or default
6998 to_insert_watchpoint.
6999 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7000 TARGET_DEFAULT_RETURN.
7002 2014-02-19 Tom Tromey <tromey@redhat.com>
7004 * target-delegates.c: Rebuild.
7005 * target.c (update_current_target): Don't inherit or default
7006 to_remove_hw_breakpoint.
7007 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7008 TARGET_DEFAULT_RETURN.
7010 2014-02-19 Tom Tromey <tromey@redhat.com>
7012 * target-delegates.c: Rebuild.
7013 * target.c (update_current_target): Don't inherit or default
7014 to_insert_hw_breakpoint.
7015 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7016 TARGET_DEFAULT_RETURN.
7018 2014-02-19 Tom Tromey <tromey@redhat.com>
7020 * target-delegates.c: Rebuild.
7021 * target.c (update_current_target): Don't inherit or default
7022 to_can_use_hw_breakpoint.
7023 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7024 TARGET_DEFAULT_RETURN.
7026 2014-02-19 Tom Tromey <tromey@redhat.com>
7028 * target-delegates.c: Rebuild.
7029 * target.c (update_current_target): Don't inherit or default
7031 * target.h (struct target_ops) <to_files_info>: Use
7032 TARGET_DEFAULT_IGNORE.
7034 2014-02-19 Tom Tromey <tromey@redhat.com>
7036 * target-delegates.c: Rebuild.
7037 * target.c (update_current_target): Don't inherit or default
7039 * target.h (struct target_ops) <to_store>: Use
7040 TARGET_DEFAULT_NORETURN.
7042 2014-02-19 Tom Tromey <tromey@redhat.com>
7044 * target-delegates.c: Rebuild.
7045 * target.c (update_current_target): Don't inherit or default
7047 * target.h (struct target_ops) <to_post_attach>: Use
7048 TARGET_DEFAULT_IGNORE.
7050 2014-02-19 Tom Tromey <tromey@redhat.com>
7052 * target-delegates.c: Rebuild.
7053 * target.c (update_current_target): Don't inherit or default
7055 (default_rcmd): New function.
7056 (do_monitor_command): Unconditionally delegate.
7057 * target.h (struct target_ops) <to_rmcd>: Use
7058 TARGET_DEFAULT_FUNC.
7060 2014-02-19 Tom Tromey <tromey@redhat.com>
7062 * target-delegates.c: Rebuild.
7063 * target.c (init_dummy_target): Don't initialize to_attach.
7064 (target_attach): Unconditionally delegate.
7065 * target.h (struct target_ops) <to_attach>: Use
7066 TARGET_DEFAULT_FUNC.
7068 2014-02-19 Tom Tromey <tromey@redhat.com>
7070 * target-delegates.c: Rebuild.
7071 * target.c (target_detach): Unconditionally delegate.
7072 (init_dummy_target): Don't initialize to_detach.
7073 * target.h (struct target_ops) <to_detach>: Use
7074 TARGET_DEFAULT_IGNORE.
7076 2014-02-19 Tom Tromey <tromey@redhat.com>
7078 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7080 (target_augmented_libraries_svr4_read): Add argument.
7081 * target.c (update_current_target): Update.
7082 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7085 2014-02-19 Tom Tromey <tromey@redhat.com>
7087 * target.h (struct target_ops) <to_call_history_range>: Add
7089 * target.c (target_call_history_range): Add argument.
7090 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7092 (record_btrace_call_history_from): Update.
7094 2014-02-19 Tom Tromey <tromey@redhat.com>
7096 * target.h (struct target_ops) <to_call_history_from>: Add
7098 * target.c (target_call_history_from): Add argument.
7099 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7102 2014-02-19 Tom Tromey <tromey@redhat.com>
7104 * target.h (struct target_ops) <to_call_history>: Add argument.
7105 * target.c (target_call_history): Add argument.
7106 * record-btrace.c (record_btrace_call_history): Add 'self'
7109 2014-02-19 Tom Tromey <tromey@redhat.com>
7111 * target.h (struct target_ops) <to_insn_history_range>: Add
7113 * target.c (target_insn_history_range): Add argument.
7114 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7116 (record_btrace_insn_history_from): Update.
7118 2014-02-19 Tom Tromey <tromey@redhat.com>
7120 * target.h (struct target_ops) <to_insn_history_from>: Add
7122 * target.c (target_insn_history_from): Add argument.
7123 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7126 2014-02-19 Tom Tromey <tromey@redhat.com>
7128 * target.h (struct target_ops) <to_insn_history>: Add argument.
7129 * target.c (target_insn_history): Add argument.
7130 * record-btrace.c (record_btrace_insn_history): Add 'self'
7133 2014-02-19 Tom Tromey <tromey@redhat.com>
7135 * target.h (struct target_ops) <to_goto_record>: Add argument.
7136 * target.c (target_goto_record): Add argument.
7137 * record-full.c (record_full_goto): Add 'self' argument.
7138 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7140 2014-02-19 Tom Tromey <tromey@redhat.com>
7142 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7143 * target.c (target_goto_record_end): Add argument.
7144 * record-full.c (record_full_goto_end): Add 'self' argument.
7145 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7147 2014-02-19 Tom Tromey <tromey@redhat.com>
7149 * target.h (struct target_ops) <to_goto_record_begin>: Add
7151 * target.c (target_goto_record_begin): Add argument.
7152 * record-full.c (record_full_goto_begin): Add 'self' argument.
7153 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7156 2014-02-19 Tom Tromey <tromey@redhat.com>
7158 * target.h (struct target_ops) <to_record_is_replaying>: Add
7160 * target.c (target_record_is_replaying): Add argument.
7161 * record-full.c (record_full_is_replaying): Add 'self' argument.
7162 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7164 (record_btrace_xfer_partial, record_btrace_store_registers)
7165 (record_btrace_prepare_to_store, record_btrace_resume)
7166 (record_btrace_wait, record_btrace_decr_pc_after_break)
7167 (record_btrace_find_new_threads, record_btrace_thread_alive):
7170 2014-02-19 Tom Tromey <tromey@redhat.com>
7172 * target.h (struct target_ops) <to_delete_record>: Add argument.
7173 * target.c (target_delete_record): Add argument.
7174 * record-full.c (record_full_delete): Add 'self' argument.
7176 2014-02-19 Tom Tromey <tromey@redhat.com>
7178 * target.h (struct target_ops) <to_save_record>: Add argument.
7179 * target.c (target_save_record): Add argument.
7180 * record-full.c (record_full_save): Add 'self' argument.
7181 (record_full_save): Add 'self' argument.
7183 2014-02-19 Tom Tromey <tromey@redhat.com>
7185 * target.h (struct target_ops) <to_info_record>: Add argument.
7186 * target.c (target_info_record): Add argument.
7187 * record.c (info_record_command): Add argument.
7188 * record-full.c (record_full_info): Add 'self' argument.
7189 * record-btrace.c (record_btrace_info): Add 'self' argument.
7191 2014-02-19 Tom Tromey <tromey@redhat.com>
7193 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7194 * target.c (target_stop_recording): Add argument.
7195 * record.c (record_stop): Add argument.
7196 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7199 2014-02-19 Tom Tromey <tromey@redhat.com>
7201 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7202 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7203 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7205 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7206 (_initialize_amd64_linux_nat): Use it.
7207 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7208 (_initialize_i386_linux_nat): Use it.
7210 2014-02-19 Tom Tromey <tromey@redhat.com>
7212 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7213 * target.c (target_teardown_btrace): Add argument.
7214 * remote.c (remote_teardown_btrace): Add 'self' argument.
7215 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7217 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7220 2014-02-19 Tom Tromey <tromey@redhat.com>
7222 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7223 * target.c (target_disable_btrace): Add argument.
7224 * remote.c (remote_disable_btrace): Add 'self' argument.
7225 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7227 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7230 2014-02-19 Tom Tromey <tromey@redhat.com>
7232 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7233 * target.c (target_enable_btrace): Add argument.
7234 * remote.c (remote_enable_btrace): Add 'self' argument.
7235 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7237 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7240 2014-02-19 Tom Tromey <tromey@redhat.com>
7242 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7243 (target_can_use_agent): Add argument.
7244 * target.c (update_current_target): Update.
7245 * remote.c (remote_can_use_agent): Add 'self' argument.
7246 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7248 2014-02-19 Tom Tromey <tromey@redhat.com>
7250 * target.h (struct target_ops) <to_use_agent>: Add argument.
7251 (target_use_agent): Add argument.
7252 * target.c (update_current_target): Update.
7253 * remote.c (remote_use_agent): Add 'self' argument.
7254 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7256 2014-02-19 Tom Tromey <tromey@redhat.com>
7258 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7259 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7260 (target_traceframe_info): Add argument.
7261 * target.c (update_current_target): Update.
7262 * remote.c (remote_traceframe_info): Add 'self' argument.
7263 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7265 2014-02-19 Tom Tromey <tromey@redhat.com>
7267 * target.h (target_static_tracepoint_markers_by_strid): Add
7269 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7271 * target.c (update_current_target): Update.
7272 * remote.c (struct target_ops)
7273 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7274 * linux-nat.c (struct target_ops)
7275 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7277 2014-02-19 Tom Tromey <tromey@redhat.com>
7279 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7281 (target_static_tracepoint_marker_at): Add argument.
7282 * target.c (update_current_target): Update.
7283 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7286 2014-02-19 Tom Tromey <tromey@redhat.com>
7288 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7289 (target_set_permissions): Add argument.
7290 * target.c (update_current_target): Update.
7291 * remote.c (remote_set_permissions): Add 'self' argument.
7292 (remote_start_remote): Update.
7294 2014-02-19 Tom Tromey <tromey@redhat.com>
7296 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7297 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7298 (target_get_tib_address): Add argument.
7299 * target.c (update_current_target): Update.
7300 * remote.c (remote_get_tib_address): Add 'self' argument.
7302 2014-02-19 Tom Tromey <tromey@redhat.com>
7304 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7305 (target_set_trace_notes): Add argument.
7306 * target.c (update_current_target): Update.
7307 * remote.c (remote_set_trace_notes): Add 'self' argument.
7309 2014-02-19 Tom Tromey <tromey@redhat.com>
7311 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7313 (target_set_trace_buffer_size): Add argument.
7314 * target.c (update_current_target): Update.
7315 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7317 2014-02-19 Tom Tromey <tromey@redhat.com>
7319 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7321 (target_set_circular_trace_buffer): Add argument.
7322 * target.c (update_current_target): Update.
7323 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7326 2014-02-19 Tom Tromey <tromey@redhat.com>
7328 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7330 (target_set_disconnected_tracing): Add argument.
7331 * target.c (update_current_target): Update.
7332 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7334 2014-02-19 Tom Tromey <tromey@redhat.com>
7336 * target.h (struct target_ops)
7337 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7338 (target_get_min_fast_tracepoint_insn_len): Add argument.
7339 * target.c (update_current_target): Update.
7340 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7343 2014-02-19 Tom Tromey <tromey@redhat.com>
7345 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7347 (target_get_raw_trace_data): Add argument.
7348 * target.c (update_current_target): Update.
7349 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7351 2014-02-19 Tom Tromey <tromey@redhat.com>
7353 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7355 (target_upload_trace_state_variables): Add argument.
7356 * target.c (update_current_target): Update.
7357 * remote.c (remote_upload_trace_state_variables): Add 'self'
7359 (remote_start_remote): Update.
7361 2014-02-19 Tom Tromey <tromey@redhat.com>
7363 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7365 (target_upload_tracepoints): Add argument.
7366 * target.c (update_current_target): Update.
7367 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7368 (remote_start_remote): Update.
7370 2014-02-19 Tom Tromey <tromey@redhat.com>
7372 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7373 (target_save_trace_data): Add argument.
7374 * target.c (update_current_target): Update.
7375 * remote.c (remote_save_trace_data): Add 'self' argument.
7377 2014-02-19 Tom Tromey <tromey@redhat.com>
7379 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7381 * target.h (struct target_ops)
7382 <to_get_trace_state_variable_value>: Add argument.
7383 (target_get_trace_state_variable_value): Add argument.
7384 * target.c (update_current_target): Update.
7385 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7387 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7389 2014-02-19 Tom Tromey <tromey@redhat.com>
7391 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7392 * target.h (struct target_ops) <to_trace_find>: Add argument.
7393 (target_trace_find): Add argument.
7394 * target.c (update_current_target): Update.
7395 * remote.c (remote_trace_find): Add 'self' argument.
7396 * ctf.c (ctf_trace_find): Add 'self' argument.
7398 2014-02-19 Tom Tromey <tromey@redhat.com>
7400 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7401 (target_trace_stop): Add argument.
7402 * target.c (update_current_target): Update.
7403 * remote.c (remote_trace_stop): Add 'self' argument.
7405 2014-02-19 Tom Tromey <tromey@redhat.com>
7407 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7408 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7410 (target_get_tracepoint_status): Add argument.
7411 * target.c (update_current_target): Update.
7412 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7414 2014-02-19 Tom Tromey <tromey@redhat.com>
7416 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7417 * target.h (struct target_ops) <to_get_trace_status>: Add
7419 (target_get_trace_status): Add argument.
7420 * target.c (update_current_target): Update.
7421 * remote.c (remote_get_trace_status): Add 'self' argument.
7422 (remote_start_remote, remote_can_download_tracepoint): Update.
7423 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7425 2014-02-19 Tom Tromey <tromey@redhat.com>
7427 * target.h (struct target_ops) <to_trace_start>: Add argument.
7428 (target_trace_start): Add argument.
7429 * target.c (update_current_target): Update.
7430 * remote.c (remote_trace_start): Add 'self' argument.
7432 2014-02-19 Tom Tromey <tromey@redhat.com>
7434 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7436 (target_trace_set_readonly_regions): Add argument.
7437 * target.c (update_current_target): Update.
7438 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7441 2014-02-19 Tom Tromey <tromey@redhat.com>
7443 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7445 (target_disable_tracepoint): Add argument.
7446 * target.c (update_current_target): Update.
7447 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7449 2014-02-19 Tom Tromey <tromey@redhat.com>
7451 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7453 (target_enable_tracepoint): Add argument.
7454 * target.c (update_current_target): Update.
7455 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7457 2014-02-19 Tom Tromey <tromey@redhat.com>
7459 * target.h (struct target_ops) <to_download_trace_state_variable>:
7461 (target_download_trace_state_variable): Add argument.
7462 * target.c (update_current_target): Update.
7463 * remote.c (remote_download_trace_state_variable): Add 'self'
7466 2014-02-19 Tom Tromey <tromey@redhat.com>
7468 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7470 (target_can_download_tracepoint): Add argument.
7471 * target.c (update_current_target): Update.
7472 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7474 2014-02-19 Tom Tromey <tromey@redhat.com>
7476 * target.h (struct target_ops) <to_download_tracepoint>: Add
7478 (target_download_tracepoint): Add argument.
7479 * target.c (update_current_target): Update.
7480 * remote.c (remote_download_tracepoint): Add 'self' argument.
7482 2014-02-19 Tom Tromey <tromey@redhat.com>
7484 * target.h (struct target_ops) <to_trace_init>: Add argument.
7485 (target_trace_init): Add argument.
7486 * target.c (update_current_target): Update.
7487 * remote.c (remote_trace_init): Add 'self' argument.
7489 2014-02-19 Tom Tromey <tromey@redhat.com>
7491 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7492 * target.c (target_fileio_readlink): Add argument.
7493 * remote.c (remote_hostio_readlink): Add 'self' argument.
7494 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7496 2014-02-19 Tom Tromey <tromey@redhat.com>
7498 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7499 * target.c (target_fileio_unlink): Add argument.
7500 * remote.c (remote_hostio_unlink): Add 'self' argument.
7501 (remote_file_delete): Update.
7502 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7504 2014-02-19 Tom Tromey <tromey@redhat.com>
7506 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7507 * target.c (target_fileio_close): Add argument.
7508 * remote.c (remote_hostio_close): Add 'self' argument.
7509 (remote_hostio_close_cleanup): Update.
7510 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7512 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7514 2014-02-19 Tom Tromey <tromey@redhat.com>
7516 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7517 * target.c (target_fileio_pread): Add argument.
7518 * remote.c (remote_hostio_pread): Add 'self' argument.
7519 (remote_bfd_iovec_pread, remote_file_get): Update.
7520 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7522 2014-02-19 Tom Tromey <tromey@redhat.com>
7524 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7525 * target.c (target_fileio_pwrite): Add argument.
7526 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7527 (remote_file_put): Update.
7528 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7530 2014-02-19 Tom Tromey <tromey@redhat.com>
7532 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7533 * target.c (target_fileio_open): Add argument.
7534 * remote.c (remote_hostio_open): Add 'self' argument.
7535 (remote_bfd_iovec_open): Add 'self' argument.
7536 (remote_file_put): Add 'self' argument.
7537 (remote_file_get): Add 'self' argument.
7538 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7540 2014-02-19 Tom Tromey <tromey@redhat.com>
7542 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7544 (target_can_run_breakpoint_commands): Add argument.
7545 * target.c (update_current_target): Update.
7546 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7548 (remote_insert_breakpoint): Add 'self' argument.
7549 (remote_insert_hw_breakpoint): Add 'self' argument.
7550 (remote_can_run_breakpoint_commands): Add 'self' argument.
7552 2014-02-19 Tom Tromey <tromey@redhat.com>
7554 * target.h (struct target_ops)
7555 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7556 (target_supports_evaluation_of_breakpoint_conditions): Add
7558 * target.c (update_current_target): Update.
7559 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7561 (remote_insert_breakpoint): Add 'self' argument.
7562 (remote_insert_hw_breakpoint): Add 'self' argument.
7563 (remote_supports_cond_breakpoints): Add 'self' argument.
7565 2014-02-19 Tom Tromey <tromey@redhat.com>
7567 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7569 (target_supports_string_tracing): Add argument.
7570 * target.c (update_current_target): Update.
7571 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7573 2014-02-19 Tom Tromey <tromey@redhat.com>
7575 * target.h (struct target_ops)
7576 <to_supports_disable_randomization>: Add argument.
7577 * target.c (find_default_supports_disable_randomization): Add
7579 (target_supports_disable_randomization): Add argument.
7580 (find_default_supports_disable_randomization): Add 'self'
7582 * remote.c (extended_remote_supports_disable_randomization): Add
7584 (remote_supports_disable_randomization): Add 'self' argument.
7585 (extended_remote_create_inferior): Update.
7586 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7589 2014-02-19 Tom Tromey <tromey@redhat.com>
7591 * target.h (struct target_ops)
7592 <to_supports_enable_disable_tracepoint>: Add argument.
7593 (target_supports_enable_disable_tracepoint): Add argument.
7594 * target.c (update_current_target): Update.
7595 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7598 2014-02-19 Tom Tromey <tromey@redhat.com>
7600 * target.h (struct target_ops) <to_supports_multi_process>: Add
7602 (target_supports_multi_process): Add argument.
7603 * target.c (update_current_target): Update.
7604 * remote.c (remote_supports_multi_process): Add 'self' argument.
7605 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7607 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7610 2014-02-19 Tom Tromey <tromey@redhat.com>
7612 * target.h (struct target_ops) <to_execution_direction>: Add
7614 (target_execution_direction): Add argument.
7615 * target.c (default_execution_direction): Add 'self' argument.
7616 * record-full.c (record_full_execution_direction): Add 'self'
7619 2014-02-19 Tom Tromey <tromey@redhat.com>
7621 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7623 (target_can_execute_reverse): Add argument.
7624 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7625 * record-full.c (record_full_can_execute_reverse): Add 'self'
7627 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7630 2014-02-19 Tom Tromey <tromey@redhat.com>
7632 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7633 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7635 (target_get_ada_task_ptid): Add argument.
7636 * target.c (update_current_target): Update.
7637 (default_get_ada_task_ptid): Add 'self' argument.
7638 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7639 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7640 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7642 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7644 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7646 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7648 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7649 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7652 2014-02-19 Tom Tromey <tromey@redhat.com>
7654 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7655 (target_goto_bookmark): Add argument.
7656 * target.c (dummy_goto_bookmark): Add 'self' argument.
7657 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7659 2014-02-19 Tom Tromey <tromey@redhat.com>
7661 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7662 (target_get_bookmark): Add argument.
7663 * target.c (dummy_get_bookmark): Add 'self' argument.
7664 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7666 2014-02-19 Tom Tromey <tromey@redhat.com>
7668 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7670 (target_make_corefile_notes): Add argument.
7671 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7672 * procfs.c (procfs_make_note_section): Add 'self' argument.
7673 (procfs_make_note_section): Add 'self' argument.
7674 (procfs_make_note_section): Add 'self' argument.
7675 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7677 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7678 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7679 * exec.c (exec_make_note_section): Add 'self' argument.
7680 (exec_make_note_section): Add 'self' argument.
7682 2014-02-19 Tom Tromey <tromey@redhat.com>
7684 * target.h (struct target_ops) <to_find_memory_regions>: Add
7686 (target_find_memory_regions): Add argument.
7687 * target.c (dummy_find_memory_regions): Add 'self' argument.
7688 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7689 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7690 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7691 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7692 * exec. (exec_do_find_memory_regions): New global.
7693 (exec_set_find_memory_regions): Rewrite.
7694 (exec_find_memory_regions): New function.
7695 (init_exec_ops): Use exec_find_memory_regions.
7697 2014-02-19 Tom Tromey <tromey@redhat.com>
7699 * target.h (struct target_ops) <to_supports_non_stop>: Add
7701 * target.c (find_default_supports_non_stop): Add argument.
7702 (target_supports_non_stop): Add argument.
7703 (find_default_supports_non_stop): Add 'self' argument.
7704 * remote.c (remote_supports_non_stop): Add 'self' argument.
7705 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7707 2014-02-19 Tom Tromey <tromey@redhat.com>
7709 * target.h (struct target_ops) <to_log_command>: Add argument.
7710 (target_log_command): Add argument.
7711 * serial.h (serial_log_command): Add 'self' argument.
7712 * serial.c (serial_log_command): Add 'self' argument.
7714 2014-02-19 Tom Tromey <tromey@redhat.com>
7716 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7717 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7719 (target_pid_to_exec_file): Add argument.
7720 * target.c (debug_to_pid_to_exec_file): Add argument.
7721 (update_current_target): Update.
7722 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7723 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7724 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7725 (linux_handle_extended_wait): Update.
7726 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7727 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7728 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7729 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7731 2014-02-19 Tom Tromey <tromey@redhat.com>
7733 * target.h (struct target_ops) <to_rcmd>: Add argument.
7734 (target_rcmd): Add argument.
7735 * target.c (debug_to_rcmd): Add argument.
7736 (update_current_target, do_monitor_command): Update.
7737 * remote.c (remote_rcmd): Add 'self' argument.
7738 * monitor.c (monitor_rcmd): Add 'self' argument.
7740 2014-02-19 Tom Tromey <tromey@redhat.com>
7742 * windows-nat.c (windows_stop): Add 'self' argument.
7743 * target.h (struct target_ops) <to_stop>: Add argument.
7744 * target.c (target_stop): Add argument.
7745 (debug_to_stop): Add argument.
7746 (update_current_target): Update.
7747 * remote.c (remote_stop): Add 'self' argument.
7748 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7749 (gdbsim_cntrl_c): Update.
7750 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7751 * procfs.c (procfs_stop): Add 'self' argument.
7752 * nto-procfs.c (procfs_stop): Add 'self' argument.
7753 * monitor.c (monitor_stop): Add 'self' argument.
7754 (monitor_open): Update.
7755 * linux-nat.c (linux_nat_stop): Add argument.
7756 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7757 * gnu-nat.c (gnu_stop): Add 'self' argument.
7758 * darwin-nat.c (darwin_stop): Add 'self' argument.
7760 2014-02-19 Tom Tromey <tromey@redhat.com>
7762 * target.h (struct target_ops) <to_thread_name>: Add argument.
7763 * target.c (target_thread_name): Add argument.
7764 (update_current_target): Update.
7765 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7767 2014-02-19 Tom Tromey <tromey@redhat.com>
7769 * target.h (struct target_ops) <to_extra_thread_info>: Add
7771 (target_extra_thread_info): Add argument.
7772 * target.c (update_current_target): Update.
7773 * remote.c (remote_threads_extra_info): Add 'self' argument.
7774 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7776 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7777 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7778 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7780 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7782 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7784 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7787 2014-02-19 Tom Tromey <tromey@redhat.com>
7789 * target.h (struct target_ops) <to_program_signals>: Add argument.
7790 * target.c (target_program_signals): Add argument.
7791 * remote.c (remote_program_signals): Add 'self' argument.
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7795 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7796 * target.c (target_pass_signals): Add argument.
7797 * remote.c (remote_pass_signals): Add 'self' argument.
7798 (remote_start_remote): Update.
7799 * procfs.c (procfs_pass_signals): Add 'self' argument.
7800 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7801 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7802 (linux_nat_create_inferior, linux_nat_attach): Update.
7804 2014-02-19 Tom Tromey <tromey@redhat.com>
7806 * windows-nat.c (windows_can_run): Add 'self' argument.
7807 * target.h (struct target_ops) <to_can_run>: Add argument.
7808 (target_can_run): Add argument.
7809 * target.c (debug_to_can_run): Add argument.
7810 (update_current_target): Update.
7811 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7812 * inf-child.c (inf_child_can_run): Add 'self' argument.
7813 * go32-nat.c (go32_can_run): Add 'self' argument.
7815 2014-02-19 Tom Tromey <tromey@redhat.com>
7817 * target.h (struct target_ops) <to_has_exited>: Add argument.
7818 (target_has_exited): Add argument.
7819 * target.c (debug_to_has_exited): Add argument.
7820 (update_current_target): Update.
7822 2014-02-19 Tom Tromey <tromey@redhat.com>
7824 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7826 (target_set_syscall_catchpoint): Add argument.
7827 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7829 * target.c (update_current_target): Update.
7831 2014-02-19 Tom Tromey <tromey@redhat.com>
7833 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7835 (target_remove_exec_catchpoint): Add argument.
7836 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7837 (update_current_target): Update.
7838 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7841 2014-02-19 Tom Tromey <tromey@redhat.com>
7843 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7845 (target_insert_exec_catchpoint): Add argument.
7846 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7847 (update_current_target): Update.
7848 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7851 2014-02-19 Tom Tromey <tromey@redhat.com>
7853 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7855 (target_remove_vfork_catchpoint): Add argument.
7856 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7857 (update_current_target): Update.
7858 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7861 2014-02-19 Tom Tromey <tromey@redhat.com>
7863 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7865 (target_insert_vfork_catchpoint): Add argument.
7866 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7867 (update_current_target): Update.
7868 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7871 2014-02-19 Tom Tromey <tromey@redhat.com>
7873 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7875 (target_remove_fork_catchpoint): Add argument.
7876 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7877 (update_current_target): Update.
7878 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7881 2014-02-19 Tom Tromey <tromey@redhat.com>
7883 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7885 (target_insert_fork_catchpoint): Add argument.
7886 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7887 (update_current_target): Update.
7888 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7891 2014-02-19 Tom Tromey <tromey@redhat.com>
7893 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7895 (target_post_startup_inferior): Add argument.
7896 * target.c (debug_to_post_startup_inferior): Add argument.
7897 (update_current_target): Update.
7898 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7900 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7902 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7904 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7906 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7908 (super_post_startup_inferior): Likewise.
7909 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7911 (super_post_startup_inferior): Likewise.
7912 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7913 Add 'self' argument.
7914 (super_post_startup_inferior): Likewise.
7916 2014-02-19 Tom Tromey <tromey@redhat.com>
7918 * target.h (struct target_ops) <to_load>: Add argument.
7919 * target.c (target_load): Add argument.
7920 (debug_to_load): Add argument.
7921 (update_current_target): Update.
7922 * remote.c (remote_load): Add 'self' argument.
7923 * remote-sim.c (gdbsim_load): Add 'self' argument.
7924 * remote-mips.c (mips_load): Add 'self' argument.
7925 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7926 * monitor.c (monitor_load): Add 'self' argument.
7927 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7929 2014-02-19 Tom Tromey <tromey@redhat.com>
7931 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7932 (target_terminal_info): Add argument.
7933 * target.c (debug_to_terminal_info): Add argument.
7934 (default_terminal_info): Likewise.
7935 * inflow.c (child_terminal_info): Add 'self' argument.
7936 * inferior.h (child_terminal_info): Add 'self' argument.
7937 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7941 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7943 (target_terminal_save_ours): Add argument.
7944 * target.c (debug_to_terminal_save_ours): Add argument.
7945 (update_current_target): Update.
7946 * inflow.c (terminal_save_ours): Add 'self' argument.
7947 * inferior.h (terminal_save_ours): Add 'self' argument.
7949 2014-02-19 Tom Tromey <tromey@redhat.com>
7951 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7952 (target_terminal_ours): Add argument.
7953 * target.c (debug_to_terminal_ours): Add argument.
7954 (update_current_target): Update.
7955 * remote.c (remote_terminal_ours): Add 'self' argument.
7956 (remote_close): Update.
7957 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7958 * inflow.c (terminal_ours): Add 'self' argument.
7959 * inferior.h (terminal_ours): Add 'self' argument.
7960 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7962 2014-02-19 Pedro Alves <palves@redhat.com>
7963 Tom Tromey <tromey@redhat.com>
7965 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7967 (target_terminal_ours_for_output): Add argument.
7968 * target.c (debug_to_terminal_ours_for_output): Add argument.
7969 (update_current_target): Update.
7970 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7971 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7972 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7974 2014-02-19 Tom Tromey <tromey@redhat.com>
7976 * target.h (struct target_ops) <to_terminal_inferior>: Add
7978 * target.c (target_terminal_inferior): Add argument.
7979 (update_current_target): Update.
7980 * remote.c (remote_terminal_inferior): Add 'self' argument.
7981 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7982 * inflow.c (terminal_inferior): Add 'self' argument.
7983 * inferior.h (terminal_inferior): Add 'self' argument.
7984 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7985 (go32_terminal_inferior): Add 'self' argument.
7987 2014-02-19 Tom Tromey <tromey@redhat.com>
7989 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7990 (target_terminal_init): Add argument.
7991 * target.c (debug_to_terminal_init): Add argument.
7992 (update_current_target): Update.
7993 * inflow.c (terminal_init_inferior): Add 'self' argument.
7994 * inferior.h (terminal_init_inferior): Add 'self' argument.
7995 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7996 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7998 2014-02-19 Tom Tromey <tromey@redhat.com>
8000 * target.h (struct target_ops)
8001 <to_can_accel_watchpoint_condition>: Add argument.
8002 (target_can_accel_watchpoint_condition): Add argument.
8003 * target.c (debug_to_can_accel_watchpoint_condition): Add
8005 (update_current_target): Update.
8006 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8011 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8013 (target_region_ok_for_hw_watchpoint): Add argument.
8014 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8015 (default_region_ok_for_hw_watchpoint): Add argument.
8016 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8017 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8019 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8021 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8023 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8025 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8027 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8029 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8030 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8032 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8033 Add 'self' argument.
8035 2014-02-19 Tom Tromey <tromey@redhat.com>
8037 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8039 (target_insert_watchpoint): Add argument.
8040 * target.c (debug_to_insert_watchpoint): Add argument.
8041 (update_current_target): Update.
8042 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8043 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8044 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8045 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8046 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8047 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8049 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8050 (procfs_insert_hw_watchpoint): Add 'self' argument.
8051 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8053 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8055 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8057 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8058 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8060 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8063 2014-02-19 Tom Tromey <tromey@redhat.com>
8065 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8067 (target_remove_watchpoint): Add argument.
8068 * target.c (debug_to_remove_watchpoint): Add argument.
8069 (update_current_target): Update.
8070 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8071 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8072 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8073 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8074 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8075 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8077 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8078 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8080 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8082 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8084 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8085 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8087 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8090 2014-02-19 Tom Tromey <tromey@redhat.com>
8092 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8094 (target_remove_hw_breakpoint): Add argument.
8095 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8096 (update_current_target): Update.
8097 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8098 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8100 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8101 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8103 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8106 2014-02-19 Tom Tromey <tromey@redhat.com>
8108 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8110 (target_insert_hw_breakpoint): Add argument.
8111 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8112 (update_current_target): Update.
8113 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8114 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8116 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8117 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8118 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8120 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8123 2014-02-19 Tom Tromey <tromey@redhat.com>
8125 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8127 (target_can_use_hardware_watchpoint): Add argument.
8128 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8129 (update_current_target): Update.
8130 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8132 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8134 * remote.c (remote_check_watch_resources): Add 'self' argument.
8135 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8136 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8138 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8139 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8141 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8143 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8145 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8147 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8149 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8151 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8152 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8154 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8157 2014-02-19 Tom Tromey <tromey@redhat.com>
8159 * target.h (struct target_ops) <to_post_attach>: Add argument.
8160 (target_post_attach): Add argument.
8161 * target.c (debug_to_post_attach): Add argument.
8162 (update_current_target): Update.
8163 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8164 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8165 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8166 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8167 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8169 2014-02-19 Tom Tromey <tromey@redhat.com>
8171 * windows-nat.c (windows_close): Add 'self' argument.
8172 * tracepoint.c (tfile_close): Add 'self' argument.
8173 * target.h (struct target_ops) <to_close>: Add argument.
8174 * target.c (target_close): Add argument.
8175 (update_current_target): Update.
8176 * remote.c (remote_close): Add 'self' argument.
8177 * remote-sim.c (gdbsim_close): Add 'self' argument.
8178 * remote-mips.c (mips_close): Add 'self' argument.
8179 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8180 * record-full.c (record_full_close): Add 'self' argument.
8181 * record-btrace.c (record_btrace_close): Add 'self' argument.
8182 * monitor.h (monitor_close): Add 'self' argument.
8183 * monitor.c (monitor_close): Add 'self' argument.
8184 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8185 * linux-nat.c (linux_nat_close): Add argument.
8186 * go32-nat.c (go32_close): Add 'self' argument.
8187 * exec.c (exec_close_1): Add 'self' argument.
8188 * ctf.c (ctf_close): Add 'self' argument.
8189 * corelow.c (core_close): Add 'self' argument.
8190 (core_close_cleanup): Update.
8191 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8192 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8194 2014-02-19 Tom Tromey <tromey@redhat.com>
8196 * remote.c (remote_load): New function.
8197 (init_remote_ops): Use it.
8199 2014-02-19 Tom Tromey <tromey@redhat.com>
8201 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8203 * common/linux-btrace.h (linux_supports_btrace): Update.
8204 * remote.c (remote_supports_btrace): Add "self" argument.
8205 * target-delegates.c: Rebuild.
8206 * target.c (target_supports_btrace): Remove.
8207 * target.h (struct target_ops) <to_supports_btrace>: Add
8208 target_ops argument.
8209 (target_supports_btrace): New define.
8211 2014-02-19 Tom Tromey <tromey@redhat.com>
8213 * record-full.c (record_full_beneath_to_resume_ops)
8214 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8215 (record_full_beneath_to_wait)
8216 (record_full_beneath_to_store_registers_ops)
8217 (record_full_beneath_to_store_registers)
8218 (record_full_beneath_to_xfer_partial_ops)
8219 (record_full_beneath_to_xfer_partial)
8220 (record_full_beneath_to_insert_breakpoint_ops)
8221 (record_full_beneath_to_insert_breakpoint)
8222 (record_full_beneath_to_remove_breakpoint_ops)
8223 (record_full_beneath_to_remove_breakpoint)
8224 (record_full_beneath_to_stopped_by_watchpoint)
8225 (record_full_beneath_to_stopped_data_address)
8226 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8227 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8228 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8229 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8230 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8231 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8232 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8233 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8234 (record_full_resume, record_full_wait_1)
8235 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8236 (record_full_store_registers, record_full_xfer_partial)
8237 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8238 (record_full_async, record_full_core_xfer_partial): Use target
8240 * target-delegates.c: Rebuild.
8241 * target.c (current_xfer_partial): Remove.
8242 (update_current_target): Do not INHERIT or de_fault
8243 to_insert_breakpoint, to_remove_breakpoint,
8244 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8245 to_is_async_p, to_async. Do not set to_xfer_partial field.
8246 (default_xfer_partial): Simplify.
8247 (current_xfer_partial): Remove.
8248 (target_wait, target_resume): Simplify.
8249 (find_default_can_async_p, find_default_is_async_p): Update.
8250 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8251 to_xfer_partial, to_stopped_by_watchpoint,
8252 to_stopped_data_address.
8253 (target_store_registers): Simplify.
8254 (forward_target_remove_breakpoint)
8255 (forward_target_insert_breakpoint): Remove.
8256 (target_remove_breakpoint, target_insert_breakpoint)
8257 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8258 * target.h (struct target_ops) <to_resume, to_wait,
8259 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8260 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8261 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8263 (forward_target_remove_breakpoint)
8264 (forward_target_insert_breakpoint): Remove.
8265 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8267 (record_btrace_insert_breakpoint): Delegate directly.
8269 2014-02-19 Tom Tromey <tromey@redhat.com>
8272 * target-delegates.c: New file.
8273 * target.c: Include target-delegates.c.
8274 (init_dummy_target): Call install_dummy_methods.
8275 (complete_target_initialization): Call install_delegators.
8276 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8277 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8278 * make-target-delegates: New file.
8280 2014-02-19 Tom Tromey <tromey@redhat.com>
8282 * record.c (find_record_target): Use find_target_at.
8283 * target.c (find_target_at): New function.
8284 * target.h (find_target_at): Declare.
8286 2014-02-19 Tom Tromey <tromey@redhat.com>
8288 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8290 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8292 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8293 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8295 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8297 * linux-nat.c (save_sigtrap): Update.
8298 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8299 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8300 (linux_nat_close): Update.
8301 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8303 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8305 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8306 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8307 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8308 (tmp_to_async): Add 'ops' argument.
8309 (record_full_stopped_by_watchpoint, record_full_async)
8310 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8312 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8313 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8314 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8315 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8316 (remote_is_async_p, remote_async): Add 'ops' argument.
8317 (remote_stopped_data_address): Update.
8318 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8319 * target.c (update_current_target)
8320 (find_default_can_async_p, find_default_is_async_p): Update.
8321 (init_dummy_target): Update.
8322 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8323 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8324 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8325 (target_can_async_p, target_is_async_p, target_async)
8326 (target_stopped_by_watchpoint): Update.
8328 2014-02-19 Yao Qi <yao@codesourcery.com>
8331 * gdbarch.sh: Remove startup_gdbarch.
8332 * gdbarch.c: Regenerated.
8333 * gdbarch.h: Likewise.
8335 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8337 * rl78-tdep.c (rl78_g10_register_name): New function.
8338 (rl78_return_value): Add g10 support.
8339 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8342 2014-02-17 Doug Evans <xdje42@gmail.com>
8344 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8345 (SUBDIR_GUILE_SRCS): Ditto.
8346 (scm-gsmob.o): Ditto.
8348 2014-02-17 Yao Qi <yao@codesourcery.com>
8350 * gnu-nat.c (ILL_RPC): Declare defined function.
8352 2014-02-17 Yao Qi <yao@codesourcery.com>
8354 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8355 mach_msg_type_number_t.
8356 (gnu_write_inferior): Likewise.
8358 2014-02-17 Yao Qi <yao@codesourcery.com>
8360 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8362 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8363 (inf_validate_procs, inf_signal): Likewise.
8364 (S_exception_raise_request): Likewise.
8365 (do_mach_notify_dead_name): Likewise.
8366 (steal_exc_port): Likewise.
8367 (gnu_read_inferior): Change 'copy_count''s type to
8368 mach_msg_type_number_t.
8369 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8372 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8374 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8375 flag. Adjust all users; in particular...
8376 (gnu_wait): ..., don't decrement its value in here...
8377 (gnu_create_inferior): ..., and instead set the flag in here,
8378 around the startup_inferior call, and call that one with
8379 START_INFERIOR_TRAPS_EXPECTED.
8381 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8382 (ILL_RPC): ... new macro.
8383 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8384 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8385 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8386 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8387 functions with ILL_RPC macro.
8388 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8389 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8390 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8391 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8392 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8393 (S_proc_getlogin_reply, S_proc_getsid_reply)
8394 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8395 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8396 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8397 (S_proc_getnports_reply, S_proc_is_important_reply)
8398 (S_proc_get_code_reply): New stub functions, generated with
8401 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8402 collected the type check structures.
8404 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8406 2014-02-14 Doug Evans <dje@google.com>
8408 * target.c (target_write_partial): Fix result type.
8410 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8412 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8413 the proper offsets to access fpregset_t.
8415 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8417 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8418 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8419 * h8300-tdep.c (setmachinelist): Remove global.
8420 * hppa-tdep.c (hppa_sigtramp): Remove global.
8421 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8422 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8423 * ravenscar-thread.c (update_target_observer): Remove global.
8424 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8426 2014-02-12 Tom Tromey <tromey@redhat.com>
8428 * common/rsp-low.c: Update comments.
8429 * common/rsp-low.h: Update comments.
8431 2014-02-12 Tom Tromey <tromey@redhat.com>
8433 * common/rsp-low.c (convert_ascii_to_int): Remove.
8434 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8436 2014-02-12 Tom Tromey <tromey@redhat.com>
8438 * common/rsp-low.h (unhexify): Don't declare.
8439 * common/rsp-low.c (unhexify): Remove.
8441 2014-02-12 Tom Tromey <tromey@redhat.com>
8443 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8444 * common/rsp-low.c (convert_int_to_ascii): Remove.
8446 2014-02-12 Tom Tromey <tromey@redhat.com>
8448 * common/rsp-low.h (hexify): Don't declare.
8449 * common/rsp-low.c (hexify): Remove.
8451 2014-02-12 Tom Tromey <tromey@redhat.com>
8453 * common/rsp-low.c (hexify): Never take strlen of argument.
8455 2014-02-12 Tom Tromey <tromey@redhat.com>
8457 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8458 * remote.c (extended_remote_run, remote_rcmd)
8459 (remote_download_trace_state_variable, remote_save_trace_data)
8460 (remote_set_trace_notes): Update.
8461 * tracepoint.c (encode_source_string, tfile_write_status)
8462 (tfile_write_uploaded_tsv): Update.
8464 2014-02-12 Tom Tromey <tromey@redhat.com>
8466 * tracepoint.c: Include rsp-low.h.
8467 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8468 * remote.c: Include rsp-low.h.
8469 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8470 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8471 (remote_unescape_input): Move to common/rsp-low.c.
8472 * common/rsp-low.h: New file.
8473 * common/rsp-low.c: New file.
8474 * Makefile.in (SFILES): Add common/rsp-low.c.
8475 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8476 (COMMON_OBS): Add rsp-low.o.
8477 (rsp-low.o): New target.
8479 2014-02-12 Tom Tromey <tromey@redhat.com>
8481 * utils.h: Include print-utils.h.
8482 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8483 (int_string, core_addr_to_string, core_addr_to_string_nz)
8484 (hex_string, hex_string_custom): Don't declare.
8485 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8486 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8487 (hex_string_custom, int_string, core_addr_to_string)
8488 (core_addr_to_string_nz, host_address_to_string): Move to
8489 common/print-utils.c.
8490 * common/print-utils.h: New file.
8491 * common/print-utils.c: New file
8492 * Makefile.in (SFILES): Add common/print-utils.c.
8493 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8494 (COMMON_OBS): Add print-utils.o.
8495 (print-utils.o): New target.
8497 2014-02-12 Tom Tromey <tromey@redhat.com>
8499 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8501 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8503 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8505 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8507 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8508 if a PT_IO ptrace request returns sucessfully but indicates that 0
8509 bytes were transferred.
8511 2014-02-12 Pedro Alves <palves@redhat.com>
8512 Kevin Buettner <kevinb@redhat.com>
8514 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8515 TYPE_INSTANCE_FLAG_CODE_SPACE.
8517 2014-02-12 Pedro Alves <palves@redhat.com>
8519 * h8300-tdep.c (pseudo_from_raw_register)
8520 (raw_from_pseudo_register): New functions.
8521 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8524 2014-02-12 Pedro Alves <palves@redhat.com>
8526 * h8300-tdep.c (h8300_register_sim_regno): New function.
8527 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8528 gdbarch_register_sim_regno hook.
8530 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8532 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8534 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8536 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8538 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8540 * obsd-tdep.h (obsd_init_abi): New prototype.
8541 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8542 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8543 (obsd_init_abi): New functions.
8544 * i386obsd-tdep.c: Include "obsd-tdep.h".
8545 (i386obsd_init_abi): Call obsd_init_abi.
8546 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8547 (amd64obsd_init_abi): Call obsd_init_abi.
8548 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8549 obsd-tdep.c to gdb_target_obs.
8551 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8553 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8554 double float arguments to 16-byte in the argument slots.
8556 2014-02-11 Doug Evans <xdje42@gmail.com>
8558 * configure.ac: Don't crash if pkg-config is not found and guile
8559 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8561 * configure: Regenerate.
8563 2014-02-11 Yao Qi <yao@codesourcery.com>
8565 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8566 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8567 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8568 * gnu-nat.c (gnu_xfer_memory): Likewise.
8569 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8570 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8571 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8572 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8574 2014-02-11 Yao Qi <yao@codesourcery.com>
8576 * target.h (enum target_xfer_error): Rename to ...
8577 (enum target_xfer_status): ... it. New. All users updated.
8578 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8580 (TARGET_XFER_STATUS_ERROR_P): New macro.
8581 (target_xfer_error_to_string): Remove declaration.
8582 (target_xfer_status_to_string): Declare.
8583 (target_xfer_partial_ftype): Adjust it.
8584 (struct target_ops) <to_xfer_partial>: Return
8585 target_xfer_status. Add argument xfered_len. Update
8587 * target.c (target_xfer_error_to_string): Rename to ...
8588 (target_xfer_status_to_string): ... it. New. All callers
8590 (target_read_live_memory): Likewise. Call target_xfer_partial
8591 instead of target_read.
8592 (memory_xfer_live_readonly_partial): Return
8593 target_xfer_status. Add argument xfered_len.
8594 (raw_memory_xfer_partial): Likewise.
8595 (memory_xfer_partial_1): Likewise.
8596 (memory_xfer_partial): Likewise.
8597 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8598 properly. Update debug message.
8599 (default_xfer_partial, current_xfer_partial): Likewise.
8600 (target_write_partial): Likewise.
8601 (target_read_partial): Likewise. All callers updated.
8602 (read_whatever_is_readable): Likewise.
8603 (target_write_with_progress): Likewise.
8604 (target_read_alloc_1): Likewise.
8606 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8607 * auxv.c (procfs_xfer_auxv): Likewise.
8608 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8609 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8610 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8611 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8612 * corefile.c (read_memory): Adjust.
8613 * corelow.c (core_xfer_partial): Likewise.
8614 * ctf.c (ctf_xfer_partial): Likewise.
8615 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8617 (darwin_xfer_partial): Likewise.
8618 * exec.c (section_table_xfer_memory_partial): Likewise. All
8620 (exec_xfer_partial): Likewise.
8621 * exec.h (section_table_xfer_memory_partial): Update
8623 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8625 (gnu_xfer_partial): Likewise.
8626 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8627 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8628 (ia64_hpux_xfer_solib_got): Likewise.
8629 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8630 type of 'partial_len' to ULONGEST.
8631 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8632 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8633 (linux_nat_xfer_partial): Likewise.
8634 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8635 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8636 * monitor.c (monitor_xfer_memory): Likewise.
8637 (monitor_xfer_partial): Likewise.
8638 * procfs.c (procfs_xfer_partial): Likewise.
8639 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8640 * record-full.c (record_full_xfer_partial): Likewise.
8641 (record_full_core_xfer_partial): Likewise.
8642 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8643 (gdbsim_xfer_partial): Likewise.
8644 * remote.c (remote_write_bytes_aux): Likewise. All callers
8646 (remote_write_bytes, remote_read_bytes): Likewise. All
8648 (remote_flash_erase): Likewise. All callers updated.
8649 (remote_write_qxfer): Likewise. All callers updated.
8650 (remote_read_qxfer): Likewise. All callers updated.
8651 (remote_xfer_partial): Likewise.
8652 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8653 (rs6000_xfer_shared_libraries): Likewise.
8654 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8655 (sol_thread_xfer_partial): Likewise.
8656 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8657 (sparc_xfer_partial): Likewise.
8658 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8660 (spu_xfer_partial): Likewise.
8661 * spu-multiarch.c (spu_xfer_partial): Likewise.
8662 * tracepoint.c (tfile_xfer_partial): Likewise.
8663 * windows-nat.c (windows_xfer_memory): Likewise.
8664 (windows_xfer_shared_libraries): Likewise.
8665 (windows_xfer_partial): Likewise.
8666 * valprint.c: Replace 'target_xfer_error' with
8667 'target_xfer_status' in comments.
8669 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8671 Checked in by Joel Brobecker <brobecker@adacore.com>.
8672 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8674 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8676 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8677 function parameters.
8679 2014-02-10 Will Newton <will.newton@linaro.org>
8681 * elfread.c (elf_rel_plt_read): Look for a .got section if
8682 looking up .got.plt fails.
8683 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8684 on address passed to elf_gnu_ifunc_record_cache.
8685 (elf_gnu_ifunc_resolve_addr): Likewise.
8686 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8688 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8690 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8691 (X_RETTURN): New macro.
8692 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8694 * sparc64-tdep.c (sparc64_init_abi): Hook
8695 sparc_in_function_epilogue_p.
8697 2014-02-10 Gary Benson <gbenson@redhat.com>
8699 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8700 Rename name_matcher to symbol_matcher.
8702 2014-02-10 Gary Benson <gbenson@redhat.com>
8704 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8705 Use expand_symtabs_file_matcher_ftype and
8706 expand_symtabs_symbol_matcher_ftype.
8708 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8710 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8711 (struct ada_symbol_cache): New.
8712 (ada_free_symbol_cache): Forward declare.
8713 (struct ada_pspace_data): New.
8714 (ada_pspace_data_handle): New static global.
8715 (get_ada_pspace_data, ada_pspace_data_cleanup)
8716 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8717 (cache_space, cache): Delete, now folded inside struct
8719 (ada_get_symbol_cache): New function.
8720 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8722 (_initialize_ada_language): Remove initialization of cache_space.
8723 Move call to observer_attach_inferior_exit up, grouping it
8724 with the other observer registrations inside this function.
8725 Rename command to be more general. Add call to
8726 register_program_space_data_with_cleanup.
8728 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8730 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8731 ada_new_objfile_observer.
8732 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8733 (_initialize_tasks): Update uses of ada_new_objfile_observer
8734 and ada_tasks_normal_stop_observer.
8736 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8738 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8739 returned by the 'Length attribute to integer.
8741 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8743 * ada-lang.c (_initialize_ada_language): Initialize
8744 cache_space obstack.
8746 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8748 * ada-lang.c (HASH_SIZE): New macro.
8749 (struct cache_entry): New type.
8750 (cache_space, cache): New static globals.
8751 (ada_clear_symbol_cache, find_entry): New functions.
8752 (lookup_cached_symbol, cache_symbol): Implement.
8753 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8754 (_initialize_ada_language): Attach ada_new_objfile_observer
8755 and ada_free_objfile_observer.
8757 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8759 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8760 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8761 struct block * parameter.
8762 (ada_lookup_symbol_list_worker): Constify local variable "block".
8763 Remove cast which is no longer necessary.
8765 2014-02-10 Doug Evans <xdje42@gmail.com>
8767 Add Guile as an extension language.
8768 * NEWS: Mention Guile scripting.
8769 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8770 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8771 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8772 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8773 (CLIBS): Add GUILE_LIBS.
8774 (install-guile): New rule.
8775 (guile.o): New rule.
8776 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8777 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8778 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8779 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8780 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8781 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8782 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8783 * configure.ac: New option --with-guile.
8784 * configure: Regenerate.
8785 * config.in: Regenerate.
8786 * auto-load.c: Remove #include "python/python.h". Add #include
8787 "gdb/section-scripts.h".
8788 (source_section_scripts): Handle Guile scripts.
8789 (_initialize_auto_load): Add name of Guile objfile script to
8790 scripts-directory help text.
8791 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8792 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8793 (struct breakpoint): New member scm_bp_object.
8794 * defs.h (enum command_control_type): New value guile_control.
8795 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8797 (show_user): Update comment.
8798 (_initialize_cli_cmds): Update help text for "show user". Update help
8799 text for max-user-call-depth.
8800 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8802 (multi_line_command_p): Add guile_control.
8803 (print_command_lines): Handle guile_control.
8804 (execute_control_command, recurse_read_control_structure): Ditto.
8805 (process_next_line): Recognize "guile" commands.
8806 * disasm.c (gdb_disassemble_info): Make non-static.
8807 * disasm.h: #include "dis-asm.h".
8808 (struct gdbarch): Add forward decl.
8809 (gdb_disassemble_info): Declare.
8810 * extension.c: #include "guile/guile.h".
8811 (extension_languages): Add guile.
8812 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8813 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8814 * gdbtypes.c (get_unsigned_type_max): New function.
8815 (get_signed_type_minmax): New function.
8816 * gdbtypes.h (get_unsigned_type_max): Declare.
8817 (get_signed_type_minmax): Declare.
8818 * guile/README: New file.
8819 * guile/guile-internal.h: New file.
8820 * guile/guile.c: New file.
8821 * guile/guile.h: New file.
8822 * guile/scm-arch.c: New file.
8823 * guile/scm-auto-load.c: New file.
8824 * guile/scm-block.c: New file.
8825 * guile/scm-breakpoint.c: New file.
8826 * guile/scm-disasm.c: New file.
8827 * guile/scm-exception.c: New file.
8828 * guile/scm-frame.c: New file.
8829 * guile/scm-gsmob.c: New file.
8830 * guile/scm-iterator.c: New file.
8831 * guile/scm-lazy-string.c: New file.
8832 * guile/scm-math.c: New file.
8833 * guile/scm-objfile.c: New file.
8834 * guile/scm-ports.c: New file.
8835 * guile/scm-pretty-print.c: New file.
8836 * guile/scm-safe-call.c: New file.
8837 * guile/scm-string.c: New file.
8838 * guile/scm-symbol.c: New file.
8839 * guile/scm-symtab.c: New file.
8840 * guile/scm-type.c: New file.
8841 * guile/scm-utils.c: New file.
8842 * guile/scm-value.c: New file.
8843 * guile/lib/gdb.scm: New file.
8844 * guile/lib/gdb/boot.scm: New file.
8845 * guile/lib/gdb/experimental.scm: New file.
8846 * guile/lib/gdb/init.scm: New file.
8847 * guile/lib/gdb/iterator.scm: New file.
8848 * guile/lib/gdb/printing.scm: New file.
8849 * guile/lib/gdb/types.scm: New file.
8850 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8851 (VPATH): Add $(GUILE_SRCDIR).
8852 (GUILE_DIR): New variable.
8853 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8854 (all): Add stamp-guile dependency.
8855 (stamp-guile): New rule.
8856 (clean-guile, install-guile, uninstall-guile): New rules.
8857 (install-only): Add install-guile dependency.
8858 (uninstall): Add uninstall-guile dependency.
8859 (clean): Add clean-guile dependency.
8861 2014-02-09 Doug Evans <xdje42@gmail.com>
8863 Revert this patch (which I approved, mea culpa).
8865 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8867 * Makefile.in (all-lib): Remove.
8868 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8870 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8872 Fix Python stack corruption.
8873 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8876 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8878 * Makefile.in (all-lib): Remove.
8879 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8881 2014-02-07 Doug Evans <dje@google.com>
8883 * extension-priv.h (extension_language_script_ops): Add comment.
8884 (extension_language_ops): Add comment.
8885 (active_ext_lang_state): Fix typo in comment.
8887 2014-02-07 Pedro Alves <palves@redhat.com>
8889 PR breakpoints/16292
8890 * infrun.c (handle_signal_stop) <signal arrives while stepping
8891 over a breakpoint>: Switch back to the stepping thread.
8893 2014-02-07 Yao Qi <yao@codesourcery.com>
8895 * target.c (target_xfer_partial): Return zero if LEN is zero.
8897 2014-02-07 Yao Qi <yao@codesourcery.com>
8899 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8900 (ld_so_xfer_auxv): Likewise.
8901 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8902 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8903 * corelow.c (core_xfer_partial): Likewise.
8904 * ctf.c (ctf_xfer_partial): Likewise.
8905 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8906 (darwin_xfer_partial): Likewise.
8907 * exec.c (exec_xfer_partial): Likewise.
8908 * gnu-nat.c (gnu_xfer_partial): Likewise.
8909 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8910 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8911 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8912 * linux-nat.c (linux_xfer_siginfo): Likewise.
8913 (linux_proc_xfer_spu): Likewise.
8914 * procfs.c (procfs_xfer_partial): Likewise.
8915 * record-full.c (record_full_xfer_partial): Likewise.
8916 (record_full_core_xfer_partial): Likewise.
8917 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8918 * remote.c (remote_write_qxfer): Likewise.
8919 (remote_write_qxfer, remote_read_qxfer): Likewise.
8920 (remote_xfer_partial): Likewise.
8921 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8922 (rs6000_xfer_shared_libraries): Likewise.
8923 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8924 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8925 (spu_xfer_partial): Likewise.
8926 * target.c (memory_xfer_partial_1): Likewise.
8927 * tracepoint.c (tfile_xfer_partial): Likewise.
8928 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8929 (windows_xfer_partial): Likewise.
8931 2014-02-07 Yao Qi <yao@codesourcery.com>
8933 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8935 (core_xfer_shared_libraries_aix): Likewise.
8936 * gdbarch.c, gdbarch.h: Regenerated.
8937 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8938 ULONGEST. Change 'len_avail' type to ULONGEST.
8939 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8940 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8942 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8944 2014-02-07 Yao Qi <yao@codesourcery.com>
8946 * corefile.c (memory_error): Get 'exception' from ERR and pass
8947 'exception' to throw_error.
8949 2014-02-06 Doug Evans <xdje42@gmail.com>
8951 * configure.ac (libpython checking): Remove all but python.o from
8952 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8953 * configure: Regenerate.
8955 * Makefile.in (SFILES): Add extension.c.
8956 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8957 (COMMON_OBS): Add extension.o.
8958 * extension.h: New file.
8959 * extension-priv.h: New file.
8960 * extension.c: New file.
8962 * python/python-internal.h: #include "extension.h".
8963 (gdbpy_auto_load_enabled): Declare.
8964 (gdbpy_apply_val_pretty_printer): Declare.
8965 (gdbpy_apply_frame_filter): Declare.
8966 (gdbpy_preserve_values): Declare.
8967 (gdbpy_breakpoint_cond_says_stop): Declare.
8968 (gdbpy_breakpoint_has_cond): Declare.
8969 (void source_python_script_for_objfile): Delete.
8970 * python/python.c: #include "extension-priv.h".
8971 Delete inclusion of "observer.h".
8972 (extension_language_python): Moved here and renamed from
8973 script_language_python in py-auto-load.c.
8974 Redefined to be of type extension_language_defn.
8975 (python_extension_script_ops): New global.
8976 (python_extension_ops): New global.
8977 (struct python_env): New member previous_active.
8978 (restore_python_env): Call restore_active_ext_lang.
8979 (ensure_python_env): Call set_active_ext_lang.
8980 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8982 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8984 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8986 (gdbpy_eval_from_control_command): Renamed from
8987 eval_python_from_control_command, made static. New arg extlang.
8988 (gdbpy_source_script) Renamed from source_python_script, made static.
8990 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8991 result to int. New arg extlang.
8992 (gdbpy_source_objfile_script): Renamed from
8993 source_python_script_for_objfile, made static. New arg extlang.
8994 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8995 static. New args extlang, extlang_printers. Change result type to
8997 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8998 static. New arg extlang. Rename arg printers to extlang_printers
8999 and change type to ext_lang_type_printers *.
9000 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9001 static. Replace argument arg with extlang, extlang_printers.
9002 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9003 (!HAVE_PYTHON, source_python_script): Delete.
9004 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9005 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9006 (!HAVE_PYTHON, start_type_printers): Delete.
9007 (!HAVE_PYTHON, apply_type_printers): Delete.
9008 (!HAVE_PYTHON, free_type_printers): Delete.
9009 (_initialize_python): Delete call to observer_attach_before_prompt.
9010 (finalize_python): Set/restore active extension language.
9011 (gdbpy_finish_initialization) Renamed from
9012 finish_python_initialization, made static. New arg extlang.
9013 (gdbpy_initialized): New function.
9014 * python/python.h: #include "extension.h". Delete #include
9015 "value.h", "mi/mi-cmds.h".
9016 (extension_language_python): Declare.
9017 (GDBPY_AUTO_FILE_NAME): Delete.
9018 (enum py_bt_status): Moved to extension.h and renamed to
9020 (enum frame_filter_flags): Moved to extension.h.
9021 (enum py_frame_args): Moved to extension.h and renamed to
9022 ext_lang_frame_args.
9023 (finish_python_initialization): Delete.
9024 (eval_python_from_control_command): Delete.
9025 (source_python_script): Delete.
9026 (apply_val_pretty_printer): Delete.
9027 (apply_frame_filter): Delete.
9028 (preserve_python_values): Delete.
9029 (gdbpy_script_language_defn): Delete.
9030 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9031 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9033 * auto-load.c: #include "extension.h".
9034 (GDB_AUTO_FILE_NAME): Delete.
9035 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9036 (script_language_gdb): Delete, moved to extension.c and renamed to
9037 extension_language_gdb.
9038 (source_gdb_script_for_objfile): Delete.
9039 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9040 (loaded_script): Change type of language member to
9041 struct extension_language_defn *.
9042 (init_loaded_scripts_info): Initialize
9043 unsupported_script_warning_printed.
9044 (maybe_add_script): Make static. Change type of language arg to
9045 struct extension_language_defn *.
9046 (clear_section_scripts): Reset unsupported_script_warning_printed.
9047 (auto_load_objfile_script_1): Rewrite to use extension language API.
9048 (auto_load_objfile_script): Make public. Remove support-compiled-in
9049 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9050 (source_section_scripts): Rewrite to use extension language API.
9051 (load_auto_scripts_for_objfile): Rewrite to use
9052 auto_load_scripts_for_objfile.
9053 (collect_matching_scripts_data): Change type of language member to
9054 struct extension_language_defn *.
9055 (auto_load_info_scripts): Change type of language arg to
9056 struct extension_language_defn *.
9057 (unsupported_script_warning_print): New function.
9058 (script_not_found_warning_print): Make static.
9059 (_initialize_auto_load): Rewrite construction of scripts-directory
9061 * auto-load.h (struct objfile): Add forward decl.
9062 (struct script_language): Delete.
9063 (struct auto_load_pspace_info): Add forward decl.
9064 (struct extension_language_defn): Add forward decl.
9065 (maybe_add_script): Delete.
9066 (auto_load_objfile_script): Declare.
9067 (script_not_found_warning_print): Delete.
9068 (auto_load_info_scripts): Update prototype.
9069 (auto_load_gdb_scripts_enabled): Declare.
9070 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9071 auto_load_python_scripts_enabled and made public.
9072 (script_language_python): Delete, moved to python.c.
9073 (gdbpy_script_language_defn): Delete.
9074 (info_auto_load_python_scripts): Update to use
9075 extension_language_python.
9077 * breakpoint.c (condition_command): Replace call to
9078 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9079 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9080 with call to breakpoint_ext_lang_cond_says_stop.
9081 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9082 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9083 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9084 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9086 (local_setattro): Print name of extension language with existing
9089 * valprint.c (val_print, value_print): Update to call
9090 apply_ext_lang_val_pretty_printer.
9091 * cp-valprint.c (cp_print_value): Update call to
9092 apply_ext_lang_val_pretty_printer.
9093 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9094 (gdbpy_apply_val_pretty_printer): Renamed from
9095 apply_val_pretty_printer. New arg extlang.
9096 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9098 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9099 extension language API.
9100 * cli/cli-script.c (execute_control_command): Update to call
9101 eval_ext_lang_from_control_command.
9103 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9104 enum ext_lang_bt_status values. Update call to
9105 apply_ext_lang_frame_filter.
9106 (mi_cmd_stack_list_locals): Ditto.
9107 (mi_cmd_stack_list_args): Ditto.
9108 (mi_cmd_stack_list_variables): Ditto.
9109 * mi/mi-main.c: Delete #include "python/python-internal.h".
9110 Add #include "extension.h".
9111 (mi_cmd_list_features): Replace reference to python internal variable
9112 gdb_python_initialized with call to ext_lang_initialized_p.
9114 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9115 Update to use enum ext_lang_frame_args. Update to call
9116 apply_ext_lang_frame_filter.
9117 * python/py-framefilter.c (extract_sym): Update to use enum
9119 (extract_value, py_print_type, py_print_value): Ditto.
9120 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9121 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9122 (py_print_frame): Ditto.
9123 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9124 New arg extlang. Update to use enum ext_lang_bt_status.
9126 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9127 finish_python_initialization. Replace with call to
9128 finish_ext_lang_initialization.
9130 * typeprint.c (do_free_global_table): Update to call
9131 free_ext_lang_type_printers.
9132 (create_global_typedef_table): Update to call
9133 start_ext_lang_type_printers.
9134 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9135 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9136 (type_print_options): Change type of global_printers from "void *"
9137 to "struct ext_lang_type_printers *".
9139 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9140 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9141 (gdbpy_preserve_values): Renamed from preserve_python_values.
9143 (!HAVE_PYTHON, preserve_python_values): Delete.
9145 * utils.c (quit_flag): Delete, moved to extension.c.
9146 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9149 * eval.c: Delete #include "python/python.h".
9150 * main.c: Delete #include "python/python.h".
9152 * defs.h: Update comment.
9154 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9158 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9160 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9163 2014-02-05 Yao Qi <yao@codesourcery.com>
9165 * remote.c (remote_pass_signals): Remove local 'buf' and use
9167 (remote_program_signals): Likewise.
9169 2014-02-05 Yao Qi <yao@codesourcery.com>
9171 * ctf.c: Include "inferior.h" and "gdbthread.h".
9172 (CTF_PID): A new macro.
9173 (ctf_open): Call inferior_appeared and add_thread_silent.
9174 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9175 (ctf_thread_alive): New function.
9176 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9178 2014-02-05 Yao Qi <yao@codesourcery.com>
9182 2013-05-24 Yao Qi <yao@codesourcery.com>
9184 * tracepoint.c (TFILE_PID): Remove.
9185 (tfile_open): Don't add thread and inferior.
9186 (tfile_close): Don't set 'inferior_ptid'. Don't call
9187 exit_inferior_silent.
9188 (tfile_thread_alive): Remove.
9189 (init_tfile_ops): Don't set field 'to_thread_alive' of
9192 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9194 * remote.c (remote_start_remote): Call remote_check_symbols even
9195 if only symbol-file (not file) has been given.
9197 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9199 * gdbarch.sh (skip_entrypoint): New callback.
9200 * gdbarch.c, gdbarch.h: Regenerate.
9201 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9202 * infrun.c (fill_in_stop_func): Likewise.
9203 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9204 (ppc_elfv2_elf_make_msymbol_special): New function.
9205 (ppc_elfv2_skip_entrypoint): Likewise.
9206 (ppc_linux_init_abi): Install them for ELFv2.
9208 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9210 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9211 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9212 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9213 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9214 structures returned in GPRs.
9216 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9218 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9219 offset to the stack parameter list for the ELFv2 ABI.
9221 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9223 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9224 set_gdbarch_convert_from_func_ptr_addr and
9225 set_gdbarch_elf_make_msymbol_special for ELFv1.
9226 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9227 function descriptors on ELFv1.
9228 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9229 set up r12 at function entry.
9231 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9233 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9234 (struct gdbarch_tdep): New member elf_abi.
9236 * rs6000-tdep.c: Include "elf/ppc64.h".
9237 (rs6000_gdbarch_init): Detect ELF ABI version.
9239 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9241 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9242 within a register pair holding a DFP 128-bit value on little-endian.
9243 (ppc64_sysv_abi_return_value_base): Likewise.
9244 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9245 (dfp_pseudo_register_write): Likewise.
9247 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9249 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9250 offset on little-endian when passing _Decimal32.
9251 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9253 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9255 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9256 of the overlapped FP register within the VSX register on little-
9258 (efpr_pseudo_register_write): Likewise.
9260 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9262 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9263 offset on little-endian when passing small structures.
9265 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9267 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9268 (struct ppc64_sysv_argpos): New data structure.
9269 (ppc64_sysv_abi_push_float): Remove.
9270 (ppc64_sysv_abi_push_val): New function.
9271 (ppc64_sysv_abi_push_integer): Likewise.
9272 (ppc64_sysv_abi_push_freg): Likewise.
9273 (ppc64_sysv_abi_push_vreg): Likewise.
9274 (ppc64_sysv_abi_push_param): Likewise.
9275 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9276 (ppc64_sysv_abi_return_value_base): New function.
9277 (ppc64_sysv_abi_return_value): Refactor to use it.
9279 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9281 * NEWS: Document new target powerpc64le-*-linux*.
9283 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9285 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9286 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9288 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9289 register set used in ELF core dumps. Add floating-point register set.
9291 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9293 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9294 dwarf2_to_gdb[] table using symbolic constants. Adjust
9295 penultimate entry from number representing the PC register
9296 to symbolic constant representing the MDR register. Add
9297 constant for the PC register to the end of the table.
9299 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9301 * bsd-kvm.c: Include <sys/param.h>
9303 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9305 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9307 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9309 * ada-lang.h (clear_ada_sym_cache): Delete.
9311 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9313 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9315 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9317 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9318 the sigreturn register save area only if the syscall is
9321 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9323 * valops.c (value_slice): Minor reformatting.
9325 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9327 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9329 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9331 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9333 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9334 (ada_ignore_descriptive_types_p): New static global.
9335 (find_parallel_type_by_descriptive_type): Return immediately
9336 if ada_ignore_descriptive_types_p is set.
9337 (_initialize_ada_language): Register new commands "maintenance
9338 set ada", "maintenance show ada", "maintenance set ada
9339 ignore-descriptive-types" and "maintenance show ada
9340 ignore-descriptive-types".
9341 * NEWS: Add entry for new "maint ada set/show
9342 ignore-descriptive-types" commands.
9344 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9346 * record-btrace.c (record_btrace_close): Call btrace_teardown
9349 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9351 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9354 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9356 * ada-typeprint (type_is_full_subrange_of_target_type):
9358 (print_range): Add parameter bounds_prefered_p. If not set,
9359 try printing range types using the name of their base type.
9360 (print_range_type): Add parameter bounds_prefered_p.
9361 Use it in call to print_range.
9362 (print_array_type, ada_print_type): Update calls to print_range
9363 and print_range_type.
9365 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9367 * ada-typeprint.c (print_array_type, print_choices, print_range)
9368 (print_range_bound, print_dynamic_range_bound, print_range_type):
9371 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9373 * ada-typeprint.c (print_range): Add missing empty line
9374 after local declaration.
9376 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9378 * ada-valprint.c (print_optional_low_bound): Get index_type's
9379 target type for as long as it is a TYPE_CODE_RANGE.
9381 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9383 * procfs.c (procfs_make_note_section): Remove assertion and
9386 2014-01-24 Yao Qi <yao@codesourcery.com>
9388 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9389 * corelow.c (get_core_siginfo): Likewise.
9391 2014-01-24 Yao Qi <yao@codesourcery.com>
9393 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9394 ULONGEST. Don't check 'len' is negative.
9395 (remote_write_bytes): Change type of 'len' to ULONGEST.
9397 2014-01-23 Tom Tromey <tromey@redhat.com>
9400 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9401 Handle exception from frame.block.
9402 (FrameVars.fetch_frame_locals): Likewise.
9404 2014-01-23 Tom Tromey <tromey@redhat.com>
9407 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9408 on a NULL pointer. Move "goto error" to correct place.
9410 2014-01-23 Tom Tromey <tromey@redhat.com>
9413 * python/py-framefilter.c (apply_frame_filter): Call
9414 ensure_python_env after computing gdbarch.
9416 2014-01-23 Yao Qi <yao@codesourcery.com>
9418 * target.c (raw_memory_xfer_partial): Change argument type
9419 from void * to gdb_byte *.
9420 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9422 2014-01-22 Doug Evans <dje@google.com>
9424 New gdbserver option --debug-format=timestamp.
9427 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9429 * syscalls/s390x-linux.xml: New file.
9430 * syscalls/s390-linux.xml: New file.
9431 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9432 (XML_SYSCALL_FILENAME_S390X): Likewise.
9433 (op_svc): New enum value for SVC opcode.
9434 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9435 (s390_linux_get_syscall_number): New function.
9436 (s390_gdbarch_init): Register '*get_syscall_number' and the
9437 syscall xml file name.
9438 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9439 "s390-linux.xml" and "s390x-linux.xml".
9440 * NEWS: Announce new feature.
9442 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9444 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9446 2014-01-22 Pedro Alves <palves@redhat.com>
9448 * xtensa-config.c: Include defs.h.
9450 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9452 * common/common-utils.h: Add "ARI:" comment beside __func__
9455 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9457 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9458 documentation a bit.
9460 2014-01-21 Roland McGrath <mcgrathr@google.com>
9462 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9463 * configure: Regenerate.
9464 * aclocal.m4: Regenerate.
9465 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9466 New substituted variables.
9467 (install-strip): New target.
9468 (INSTALL_SCRIPT): New substituted variable.
9469 (FLAGS_TO_PASS): Add it.
9470 (install-only): Use $(INSTALL_SCRIPT) rather than
9471 $(INSTALL_PROGRAM) for gcore.
9473 2014-01-20 Tom Tromey <tromey@redhat.com>
9475 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9478 2014-01-20 Tom Tromey <tromey@redhat.com>
9480 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9481 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9482 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9483 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9484 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9485 (struct cmd_list_element) <flags>: Remove.
9486 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9487 doc_allocated>: New fields.
9488 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9490 * maint.c (maintenance_do_deprecate): Update.
9491 * top.c (execute_command): Update.
9493 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9495 * xtensa-linux-nat.c: Include asm/ptrace.h.
9497 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9499 * Makefile.in (SFILES): Add d-support.c.
9500 (COMMON_OBS): Add d-support.o.
9501 * d-lang.h (d_parse_symbol): Add comment, now defined in
9503 * d-lang.c (parse_call_convention)
9504 (parse_attributes, parse_function_types)
9505 (parse_function_args, parse_type, parse_identifier)
9506 (call_convention_p, d_parse_symbol): Move functions to ...
9507 * d-support.c: ... New file.
9509 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9511 * d-lang.h (d_parse_symbol): Add declaration.
9512 * d-lang.c (extract_identifiers)
9513 (extract_type_info): Remove functions.
9514 (parse_call_convention, parse_attributes)
9515 (parse_function_types, parse_function_args)
9516 (parse_type, parse_identifier, call_convention_p)
9517 (d_parse_symbol): New functions.
9518 (d_demangle): Use d_parse_symbol to demangle D symbols.
9520 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9522 * d-lang.h (struct builtin_d_type): New data type.
9523 (builtin_d_type): Add declaration.
9524 * d-lang.c (d_language_arch_info, build_d_types)
9525 (builtin_d_type): New functions.
9526 (enum d_primitive_types): New data type.
9527 (d_language_defn): Change c_language_arch_info to
9528 d_language_arch_info.
9529 (d_type_data): New static variable.
9530 (_initialize_d_language): Initialize d_type_data.
9532 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9534 * d-lang.h (d_main_name): Add declaration.
9535 * d-lang.c (d_main_name): New function.
9536 * symtab.c (find_main_name): Add call to d_main_name.
9538 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9540 * d-lang.c (d_language_defn): Change macro_expansion_c to
9543 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9545 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9547 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9549 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9550 gdb_exception" declaration.
9551 * remote.c (getpkt_or_notif_sane): Likewise.
9553 2014-01-17 Doug Evans <dje@google.com>
9555 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9556 function, contents of dirnames_to_char_ptr_vec_append moved here.
9557 (delim_string_to_char_ptr_vec): New function.
9558 (dirnames_to_char_ptr_vec_append): Rewrite.
9559 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9561 2014-01-17 Doug Evans <dje@google.com>
9563 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9565 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9566 #include "common-utils.h".
9567 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9568 * common/vec.h (VEC_ASSERT_PASS): Update.
9569 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9570 (MACH_CHECK_ERROR): Update.
9572 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9574 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9576 * gdbarch.h: Regenerate.
9578 2014-01-16 Tom Tromey <tromey@redhat.com>
9580 * value.c (struct value) <regnum>: Move earlier.
9582 2014-01-16 Tom Tromey <tromey@redhat.com>
9584 * remote.c (extended_remote_create_inferior): Rename from
9585 extended_remote_create_inferior_1. Add "ops" argument. Remove
9588 2014-01-16 Pedro Alves <palves@redhat.com>
9590 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9591 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9594 2014-01-16 Doug Evans <dje@google.com>
9596 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9600 * btrace.h (btrace_thread_flag): New.
9601 (struct btrace_thread_info) <flags>: New.
9602 * record-btrace.c (record_btrace_resume_thread)
9603 (record_btrace_find_thread_to_move, btrace_step_no_history)
9604 (btrace_step_stopped, record_btrace_start_replaying)
9605 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9606 (record_btrace_find_resume_thread): New.
9607 (record_btrace_resume, record_btrace_wait): Extend.
9608 (record_btrace_can_execute_reverse): New.
9609 (record_btrace_open): Fail in non-stop mode.
9610 (record_btrace_set_replay): Split into this, ...
9611 (record_btrace_stop_replaying): ... this, ...
9612 (record_btrace_clear_histories): ... and this.
9613 (init_record_btrace_ops): Init to_can_execute_reverse.
9614 * NEWS: Announce it.
9616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9618 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9619 (forward_target_decr_pc_after_break)
9620 (target_decr_pc_after_break): New.
9621 * target.c (forward_target_decr_pc_after_break)
9622 (target_decr_pc_after_break): New.
9623 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9624 instead of gdbarch_decr_pc_after_break.
9625 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9626 instead of gdbarch_decr_pc_after_break.
9627 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9628 instead of gdbarch_decr_pc_after_break.
9629 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9630 instead of gdbarch_decr_pc_after_break.
9631 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9632 instead of gdbarch_decr_pc_after_break.
9633 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9634 instead of gdbarch_decr_pc_after_break.
9636 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9638 * btrace.c: Include regcache.h.
9639 (btrace_add_pc): New.
9640 (btrace_enable): Call btrace_add_pc.
9641 (btrace_is_empty): New.
9642 * btrace.h (btrace_is_empty): New.
9643 * record-btrace.c (require_btrace, record_btrace_info): Call
9646 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9648 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9649 Support delta reads.
9650 (linux_disable_btrace): Change return type.
9651 * common/linux-btrace.h (linux_read_btrace): Change parameters
9652 and return type to allow error reporting. Update users.
9653 (linux_disable_btrace): Change return type. Update users.
9654 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9656 (btrace_error): New.
9657 (btrace_block) <begin>: Comment on BEGIN == 0.
9658 * btrace.c (btrace_compute_ftrace): Start from the end of
9660 (btrace_stitch_trace, btrace_clear_history): New.
9661 (btrace_fetch): Read delta trace, return if replaying.
9662 (btrace_clear): Move clear history code to btrace_clear_history.
9663 (parse_xml_btrace): Throw an error if parsing failed.
9664 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9665 and return type to allow error reporting.
9666 (target_read_btrace): Change parameters and return type to allow
9668 * target.c (target_read_btrace): Update.
9669 * remote.c (remote_read_btrace): Support delta reads. Pass
9671 * NEWS: Announce it.
9673 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9675 * record.h (record_btrace_frame_unwind)
9676 (record_btrace_tailcall_frame_unwind): New declarations.
9677 * dwarf2-frame: Include record.h
9678 (dwarf2_frame_cfa): Throw an error for btrace frames.
9679 * record-btrace.c: Include hashtab.h.
9680 (btrace_get_bfun_name): New.
9681 (btrace_call_history): Call btrace_get_bfun_name.
9682 (struct btrace_frame_cache): New.
9684 (bfcache_hash, bfcache_eq, bfcache_new): New.
9685 (btrace_get_frame_function): New.
9686 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9687 (record_btrace_frame_this_id): Compute own id.
9688 (record_btrace_frame_prev_register): Provide PC, throw_error
9689 for all other registers.
9690 (record_btrace_frame_sniffer): Detect btrace frames.
9691 (record_btrace_tailcall_frame_sniffer): New.
9692 (record_btrace_frame_dealloc_cache): New.
9693 (record_btrace_frame_unwind): Add new functions.
9694 (record_btrace_tailcall_frame_unwind): New.
9695 (_initialize_record_btrace): Allocate cache.
9696 * btrace.c (btrace_clear): Call reinit_frame_cache.
9697 * NEWS: Announce it.
9699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9701 * record-btrace.c (record_btrace_set_replay)
9702 (record_btrace_goto_begin, record_btrace_goto_end)
9703 (record_btrace_goto): New.
9704 (init_record_btrace_ops): Initialize them.
9705 * NEWS: Announce it.
9707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9709 * record-btrace.c (record_btrace_find_new_threads)
9710 (record_btrace_thread_alive): New.
9711 (init_record_btrace_ops): Initialize to_find_new_threads and
9714 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9716 * record-btrace.c (record_btrace_resume): New.
9717 (record_btrace_wait): New.
9718 (init_record_btrace_ops): Initialize to_wait and to_resume.
9720 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9722 * record-btrace.c (record_btrace_xfer_partial)
9723 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9724 (record_btrace_allow_memory_access): New.
9725 (init_record_btrace_ops): Initialize new methods.
9726 * target.c (raw_memory_xfer_partial): Bail out if target reports
9727 that this memory is not available.
9729 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9731 * target.h (target_ops) <to_insert_breakpoint>
9732 <to_remove_breakpoint>: Add target_ops parameter.
9733 (forward_target_insert_breakpoint): New.
9734 (forward_target_remove_breakpoint): New.
9735 (memory_remove_breakpoint, memory_insert_breakpoint):
9736 Add target_ops parameter.
9737 * target.c (target_insert_breakpoint): Split into this and ...
9738 (forward_target_insert_breakpoint): ... this.
9739 (target_remove_breakpoint): Split into this and ...
9740 (forward_target_remove_breakpoint): ... this.
9741 (debug_to_insert_breakpoint): Add target_ops parameter.
9742 Call forward_target_insert_breakpoint.
9743 (debug_to_remove_breakpoint): Add target_ops parameter.
9744 Call forward_target_remove_breakpoint.
9745 (update_current_target): Do not inherit or default to_insert_breakpoint
9746 and to_remove_breakpoint.
9747 * corelow.c (ignore): Add target_ops parameter.
9748 * exec.c (ignore): Add target_ops parameter.
9749 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9750 Add target_ops parameter.
9751 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9752 Add target_ops parameter.
9753 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9754 Add target_ops parameter.
9755 * record-full.c (record_full_beneath_to_insert_breakpoint)
9756 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9757 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9758 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9759 (record_full_core_remove_breakpoint): Add target_ops parameter.
9761 (record_full_beneath_to_insert_breakpoint_ops)
9762 (record_full_beneath_to_remove_breakpoint_ops)
9763 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9764 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9765 tmp_to_remove_breakpoint_ops,
9766 record_full_beneath_to_insert_breakpoint_ops, and
9767 record_full_beneath_to_remove_breakpoint_ops.
9768 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9769 (m32r_remove_breakpoint): Add target_ops parameter.
9770 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9771 Add target_ops parameter.
9772 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9773 Add target_ops parameter.
9775 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9776 Markus Metzger <markus.t.metzger@intel.com>
9778 * record-btrace.c: Include frame-unwind.h.
9779 (record_btrace_frame_unwind_stop_reason)
9780 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9781 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9783 (init_record_btrace_ops): Install it.
9785 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9787 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9790 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9792 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9795 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9797 * frame-unwind.c: Include target.h.
9798 (frame_unwind_try_unwinder): New function with code from ...
9799 (frame_unwind_find_by_frame): ... here. New variable
9800 unwinder_from_target, call also target_get_unwinder)
9801 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9802 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9803 * target.h (struct target_ops): New fields to_get_unwinder and
9804 to_get_tailcall_unwinder.
9805 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9809 * record-btrace.c (record_btrace_fetch_registers)
9810 (record_btrace_store_registers)
9811 (record_btrace_to_prepare_to_store): New.
9812 (init_record_btrace_ops): Add the above.
9814 2014-01-16 Tom Tromey <tromey@redhat.com>
9816 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9817 * target.h (struct target_ops) <to_prepare_to_store>: Add
9819 (target_prepare_to_store): Add argument.
9820 * target.c (debug_to_prepare_to_store): Add argument.
9821 (update_current_target): Update.
9822 * remote.c (remote_prepare_to_store): Add 'self' argument.
9823 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9824 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9825 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9826 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9828 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9829 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9830 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9831 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9832 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9834 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9836 * btrace.h (replay) <replay>: New.
9837 (btrace_is_replaying): New.
9838 * btrace.c (btrace_clear): Free replay iterator.
9839 (btrace_is_replaying): New.
9840 * record-btrace.c (record_btrace_is_replaying): New.
9841 (record_btrace_info): Print insn number if replaying.
9842 (record_btrace_insn_history): Start at replay position.
9843 (record_btrace_call_history): Start at replay position.
9844 (init_record_btrace_ops): Init to_record_is_replaying.
9846 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9848 * record-btrace.c (record_btrace_insn_history_range): Include
9850 (record_btrace_insn_history_from): Adjust range.
9851 (record_btrace_call_history_range): Include
9853 (record_btrace_call_history_from): Adjust range.
9854 * NEWS: Announce changes.
9856 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9858 * record.h (enum record_print_flag)
9859 <record_print_indent_calls>: New.
9860 * record.c (get_call_history_modifiers): Recognize /c modifier.
9861 (_initialize_record): Document /c modifier.
9862 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9863 Reorder fields. Optionally indent the function name. Update
9865 * NEWS: Announce changes.
9867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9869 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9871 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9873 * btrace.c (ftrace_new_function): Start counting at one.
9874 * record-btrace.c (record_btrace_info): Adjust number of calls
9876 * NEWS: Announce it.
9878 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9880 * record-btrace.c (btrace_call_history_insn_range): Print
9881 insn range as [begin, end].
9883 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9885 * btrace.h (struct btrace_func_link): New.
9886 (enum btrace_function_flag): New.
9887 (struct btrace_inst): Rename to ...
9888 (struct btrace_insn): ...this. Update all users.
9889 (struct btrace_func) <ibegin, iend>: Remove.
9890 (struct btrace_func_link): New.
9891 (struct btrace_func): Rename to ...
9892 (struct btrace_function): ...this. Update all users.
9893 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9894 (number, level, flags>: New.
9895 (struct btrace_insn_iterator): Rename to ...
9896 (struct btrace_insn_history): ...this.
9898 (struct btrace_insn_iterator, btrace_call_iterator): New.
9899 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9900 (struct btrace_target_info) <begin, end, level>
9901 <insn_history, call_history>: New.
9902 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9903 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9904 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9905 (btrace_call_number, btrace_call_begin, btrace_call_end)
9906 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9907 (btrace_find_function_by_number, btrace_set_insn_history)
9908 (btrace_set_call_history): New.
9909 * btrace.c (btrace_init_insn_iterator)
9910 (btrace_init_func_iterator, compute_itrace): Remove.
9911 (ftrace_print_function_name, ftrace_print_filename)
9912 (ftrace_skip_file): Change
9914 (ftrace_init_func): Remove.
9915 (ftrace_debug): Use new btrace_function fields.
9916 (ftrace_function_switched): Also consider gaining and
9917 losing symbol information).
9918 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9919 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9920 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9922 (ftrace_new_function): Move. Remove debug print.
9923 (ftrace_update_lines, ftrace_update_insns): New.
9924 (ftrace_update_function): Check for call, ret, and jump.
9925 (compute_ftrace): Renamed to ...
9926 (btrace_compute_ftrace): ...this. Rewritten to compute call
9928 (btrace_fetch, btrace_clear): Updated.
9929 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9930 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9931 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9932 (btrace_call_number, btrace_call_begin, btrace_call_end)
9933 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9934 (btrace_find_function_by_number, btrace_set_insn_history)
9935 (btrace_set_call_history): New.
9936 * record-btrace.c (require_btrace): Use new btrace thread
9938 (record_btrace_info, btrace_insn_history)
9939 (record_btrace_insn_history, record_btrace_insn_history_range):
9940 Use new btrace thread info fields and new iterator.
9941 (btrace_func_history_src_line): Rename to ...
9942 (btrace_call_history_src_line): ...this. Use new btrace
9944 (btrace_func_history): Rename to ...
9945 (btrace_call_history): ...this. Use new btrace thread info
9946 fields and new iterator.
9947 (record_btrace_call_history, record_btrace_call_history_range):
9948 Use new btrace thread info fields and new iterator.
9950 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9952 * frame.h (frame_id_build_unavailable_stack_special): New.
9953 * frame.c (frame_id_build_unavailable_stack_special): New.
9955 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9957 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9958 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9959 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9961 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9962 (i386_insn_is_jump, i386_jmp_p): New.
9963 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9964 insn_is_jump to gdbarch.
9965 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9966 * gdbarch.h: Regenerated.
9967 * gdbarch.c: Regenerated.
9968 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9969 (default_insn_is_jump): New.
9970 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9971 (default_insn_is_jump): New.
9973 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9975 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9977 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9978 (btrace_read_type) <btrace_read_new>: Change to ...
9979 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9981 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9983 * common/linux-btrace.c (linux_read_btrace): Free trace from
9986 2014-01-15 Doug Evans <dje@google.com>
9988 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9991 2014-01-15 Tom Tromey <tromey@redhat.com>
9993 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9994 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9995 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9996 (set_objfile_main_name): New function.
9997 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9998 language_of_main>: New fields.
9999 (set_objfile_main_name): Declare.
10000 * symtab.c (find_main_name): Loop over objfiles to find the main
10002 (set_main_name): Now static.
10003 (get_main_info): Add comment.
10004 * symtab.h (set_main_name): Don't declare.
10006 2014-01-15 Tom Tromey <tromey@redhat.com>
10008 * symtab.c (main_progspace_key): New global.
10009 (struct main_info): New.
10010 (name_of_main, language_of_main): Remove.
10011 (get_main_info, main_info_cleanup): New function.
10012 (set_main_name, main_name, main_language): Use get_main_info.
10013 (_initialize_symtab): Initialize main_progspace_key.
10015 2014-01-15 Tom Tromey <tromey@redhat.com>
10017 * dbxread.c (process_one_symbol): Update.
10018 * dwarf2read.c (read_partial_die): Update.
10019 * symfile.c (set_initial_language): Call main_language.
10020 * symtab.c (language_of_main): Now static.
10021 (set_main_name): Add 'lang' parameter.
10022 (find_main_name): Update.
10023 (main_language): New function.
10024 (symtab_observer_executable_changed): Update.
10025 * symtab.h (set_main_name): Update.
10026 (language_of_main): Remove.
10027 (main_language): Declare.
10029 2014-01-15 Tom Tromey <tromey@redhat.com>
10031 * symfile.c (init_entry_point_info): Use new "initialized" field.
10033 * objfiles.h (struct entry_point) <initialized>: New field.
10034 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10035 (struct objfile) <ei>: ...here. Remove.
10036 * objfiles.c (entry_point_address_query): Update.
10038 2014-01-15 Tom Tromey <tromey@redhat.com>
10040 * objfiles.c (entry_point_address_query): Relocate entry point
10042 (objfile_relocate1): Do not relocate entry point address.
10043 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10044 <the_bfd_section_index>: New field.
10045 * symfile.c (init_entry_point_info): Find the entry point's
10048 2014-01-15 Tom Tromey <tromey@redhat.com>
10050 * solib-frv.c (enable_break): Use entry_point_address_query.
10052 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10054 * NEWS: Add note on improved process record-replay on
10055 arm*-linux* targets.
10057 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10059 * arm-tdep.c (enum arm_record_result): New enum.
10060 (arm_record_unsupported_insn): New function.
10061 (arm_record_coproc_data_proc): Removed.
10062 (thumb2_record_ld_st_multiple): New function.
10063 (thumb2_record_ld_st_dual_ex_tbb): New function.
10064 (thumb2_record_data_proc_sreg_mimm): New function.
10065 (thumb2_record_ps_dest_generic): New function.
10066 (thumb2_record_branch_misc_cntrl): New function.
10067 (thumb2_record_str_single_data): New function.
10068 (thumb2_record_ld_mem_hints): New function.
10069 (thumb2_record_ld_word): New function.
10070 (thumb2_record_lmul_lmla_div): New function.
10071 (thumb2_record_decode_insn_handler): New function.
10072 (decode_insn): Add thumb32 instruction handlers.
10074 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10076 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10077 (struct arm_linux_record_tdep): Declare.
10078 (arm_canonicalize_syscall): New function.
10079 (arm_all_but_pc_registers_record): New function.
10080 (arm_linux_syscall_record): New function.
10081 (arm_linux_init_abi): Add syscall recording constructs.
10082 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10083 decoding. (arm_record_coproc_data_proc): Update arm syscall
10085 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10086 <arm_syscall_record>: New field.
10087 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10090 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10092 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10093 register for push instruction recording.
10095 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10097 * arm-tdep.c (thumb_record_misc): Update to correct logical
10098 error while recording ldm, ldmia and pop instructions.
10100 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10102 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10104 2014-01-15 Pedro Alves <palves@redhat.com>
10106 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10107 (go32_resume, go32_fetch_registers, store_register)
10108 (go32_store_registers, go32_prepare_to_store)
10109 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10110 (go32_create_inferior, go32_can_run, go32_terminal_init)
10111 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10114 2014-01-15 Tom Tromey <tromey@redhat.com>
10116 * target.h (async_callback_ftype): New typedef.
10117 (struct target_ops) <to_async>: Use it.
10119 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10121 * python/py-value.c (get_field_type): Remove unnecessary curly
10122 braces for single-statement if block.
10124 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10126 * python/py-type.c (convert_field): Add missing empty line
10127 after declarations.
10129 2014-01-14 Doug Evans <dje@google.com>
10131 * symfile.h (expand_symtabs_matching): Renamed from
10132 expand_partial_symbol_names. Update prototype.
10133 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10134 * symfile.c (expand_symtabs_matching): Renamed from
10135 expand_partial_symbol_names. New args file_matcher, kind.
10136 Rename arg fun to symbol_matcher.
10137 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10138 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10139 ada_expand_partial_symbol_name.
10140 (ada_make_symbol_completion_list): Update to call
10141 expand_symtabs_matching.
10142 (ada_add_global_exceptions): Call expand_symtabs_matching.
10143 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10144 call map_symbol_filenames.
10145 * symtab.c (sources_info): Update to call map_symbol_filenames.
10146 (search_symbols): Call expand_symtabs_matching.
10147 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10148 (default_make_symbol_completion_list_break_on): Update to call
10149 expand_symtabs_matching.
10150 (make_source_files_completion_list): Update to call
10151 map_symbol_filenames.
10153 2014-01-14 Doug Evans <dje@google.com>
10155 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10156 (expand_symtabs_symbol_matcher_ftype): New typedef.
10157 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10158 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10159 * symfile.c (expand_partial_symbol_names): Update to use
10160 expand_symtabs_symbol_matcher_ftype.
10161 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10162 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10163 Arg name_matcher renamed to symbol_matcher.
10164 * psymtab.c (recursively_search_psymtabs): Update to use
10165 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10167 (expand_symtabs_matching_via_partial): Update to use
10168 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10169 Arg name_matcher renamed to symbol_matcher.
10171 2014-01-14 Doug Evans <dje@google.com>
10173 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10174 (map_partial_symbol_filenames): Ditto.
10175 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10176 (map_partial_symbol_filenames): Ditto.
10177 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10178 (map_partial_symbol_filenames): Ditto.
10179 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10180 (map_partial_symbol_filenames): Ditto.
10181 * symtab.c: Delete #include "psymtab.h".
10183 2014-01-14 Pedro Alves <palves@redhat.com>
10184 Tom Tromey <tromey@redhat.com>
10186 * infrun.c (use_displaced_stepping): Use find_record_target
10187 instead of RECORD_IS_USED.
10188 (adjust_pc_after_break): Use record_full_is_used instead of
10190 * record-btrace.c (record_btrace_open): Call record_preopen
10191 instead of checking RECORD_IS_USED.
10192 * record-full.c (record_full_shortname)
10193 (record_full_core_shortname): New globals.
10194 (record_full_is_used): New function.
10195 (find_full_open): Call record_preopen instead of checking
10197 (init_record_full_ops): Set the target's shortname to
10198 record_full_shortname.
10199 (init_record_full_core_ops): Set the target's shortname to
10200 record_full_core_shortname.
10201 * record-full.h (record_full_is_used): Declare.
10202 * record.c (find_record_target): Make extern.
10203 (record_preopen): New function.
10204 * record.h (RECORD_IS_USED): Delete macro.
10205 (find_record_target, record_preopen): Declare functions.
10207 2014-01-14 Yao Qi <yao@codesourcery.com>
10209 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10210 'len''s type to ULONGEST.
10211 (core_xfer_shared_libraries_aix): Likewise.
10212 * gdbarch.c, gdbarch.h: Regenerated.
10213 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10214 Change type of 'len' to ULONGEST.
10215 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10216 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10218 2014-01-14 Yao Qi <yao@codesourcery.com>
10220 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10221 type of 'len' to ULONGEST.
10222 (linux_xfer_osdata_processgroups): Likewise.
10223 (linux_xfer_osdata_threads): Likewise.
10224 (linux_xfer_osdata_fds): Likewise.
10225 (linux_xfer_osdata_isockets): Likewise.
10226 (linux_xfer_osdata_shm): Likewise.
10227 (linux_xfer_osdata_sem): Likewise.
10228 (linux_xfer_osdata_msg): Likewise.
10229 (linux_common_xfer_osdata): Likewise.
10230 (struct osdata_type) <getter>: Likewise.
10231 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10234 2014-01-14 Yao Qi <yao@codesourcery.com>
10236 * target.h (target_xfer_partial_ftype): Update.
10237 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10239 * aix-thread.c (aix_thread_xfer_partial): Change type of
10240 argument 'len' to ULONGEST.
10241 * auxv.c (procfs_xfer_auxv): Likewise.
10242 (ld_so_xfer_auxv): Likewise.
10243 (memory_xfer_auxv): Likewise.
10244 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10245 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10246 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10247 * corelow.c (core_xfer_partial): Likewise.
10248 * ctf.c (ctf_xfer_partial): Likewise.
10249 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10251 (darwin_read_dyld_info): Likewise.
10252 (darwin_xfer_partial): Likewise.
10253 * exec.c (section_table_xfer_memory_partial): Likewise.
10254 (exec_xfer_partial): Likewise.
10255 * exec.h (section_table_xfer_memory_partial): Update
10257 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10258 instead of plongest.
10259 (gnu_xfer_partial): Likewise.
10260 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10261 (ia64_hpux_xfer_solib_got): Likewise.
10262 (ia64_hpux_xfer_partial): Likewise.
10263 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10264 * inf-ptrace.c (inf_ptrace_xfer_partial):
10265 * inf-ttrace.c (inf_ttrace_xfer_partial):
10266 * linux-nat.c (linux_xfer_siginfo): Likewise.
10267 (linux_nat_xfer_partial): Likewise.
10268 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10269 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10270 * monitor.c (monitor_xfer_memory): Likewise.
10271 (monitor_xfer_partial): Likewise.
10272 * procfs.c (procfs_xfer_partial): Likewise.
10273 * record-full.c (record_full_xfer_partial): Likewise.
10274 (record_full_core_xfer_partial): Likewise.
10275 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10276 instead of plongest.
10277 (gdbsim_xfer_partial): Likewise.
10278 * remote.c (remote_xfer_partial): Likewise.
10279 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10280 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10282 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10283 (rs6000_xfer_shared_libraries): Likewise.
10284 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10285 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10286 (sparc_xfer_partial): Likewise.
10287 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10288 (spu_xfer_partial): Likewise.
10289 * spu-multiarch.c (spu_xfer_partial): Likewise.
10290 * target.c (target_read_live_memory): Likewise.
10291 (memory_xfer_live_readonly_partial): Likewise.
10292 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10293 (target_xfer_partial, default_xfer_partial): Likewise.
10294 (current_xfer_partial): Likewise.
10295 * tracepoint.c (tfile_xfer_partial): Likewise.
10296 * windows-nat.c (windows_xfer_memory): Likewise. Call
10297 pulongest instead of plongest.
10298 (windows_xfer_partial): Likewise.
10299 (windows_xfer_shared_libraries): Likewise.
10301 2014-01-14 Yao Qi <yao@codesourcery.com>
10303 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10304 target_xfer_partial_ftype.
10306 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10310 * valops.c (value_struct_elt_bitpos): New function
10311 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10312 object to 'None' if the field name is an empty string ("").
10313 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10314 attribute to look for a field when 'name' is 'None'.
10315 (get_field_type): New function
10317 2014-01-13 Doug Evans <dje@google.com>
10320 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10321 (try_open_dwop_file): Ditto.
10322 * gdb_bfd.c: #include "vec.h".
10323 (bfdp): New typedef.
10324 (struct gdb_bfd_data): New member included_bfds.
10325 (gdb_bfd_unref): Unref all included bfds.
10326 (gdb_bfd_record_inclusion): New function.
10327 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10329 2014-01-13 Tom Tromey <tromey@redhat.com>
10331 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10333 2014-01-13 Tom Tromey <tromey@redhat.com>
10335 * defs.h (use_windows): Remove.
10336 * gdb.c (main): Update.
10337 * main.c (captured_main, gdb_main): Update.
10338 * main.h (struct captured_main_args) <use_windows>: Remove.
10339 * top.c (use_windows): Remove.
10341 2014-01-13 Tom Tromey <tromey@redhat.com>
10343 * defs.h (deprecated_flush_hook): Remove.
10345 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10348 * linux-thread-db.c (try_thread_db_load): Add parameter
10349 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10350 (try_thread_db_load_from_pdir_1): Move it there from here.
10351 (try_thread_db_load_from_sdir): Update caller.
10352 (try_thread_db_load_from_dir): Move it there from here.
10354 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10356 * regformats/regdat.sh: Always rewrite the register file.
10358 2014-01-13 Pedro Alves <palves@redhat.com>
10360 * Makefile.in (CHECK_HEADERS): New variable.
10361 (check-headers:): New rule.
10363 2014-01-13 Tom Tromey <tromey@redhat.com>
10365 * cli/cli-setshow.c (do_set_command): Update.
10366 * defs.h (deprecated_set_hook): Remove.
10367 * top.c (deprecated_set_hook): Remove.
10369 2014-01-13 Pedro Alves <palves@redhat.com>
10371 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10372 the tracepoint if the PC is a pseudo-register.
10374 2014-01-13 Tom Tromey <tromey@redhat.com>
10376 * defs.h (XCALLOC): Remove.
10377 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10378 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10379 * dwarf2loc.c (allocate_piece_closure): Likewise.
10380 * elfread.c (elf_symfile_segments): Likewise.
10381 (elf_symfile_segments): Likewise.
10382 * gdbtypes.c (copy_type_recursive): Likewise.
10383 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10384 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10385 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10387 * mt-tdep.c (mt_gdbarch_init): Likewise.
10388 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10390 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10391 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10392 * registry.c (registry_alloc_data): Likewise.
10393 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10394 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10395 * serial.c (serial_fdopen_ops): Likewise.
10396 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10398 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10399 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10402 2014-01-13 Tom Tromey <tromey@redhat.com>
10404 * defs.h (XMALLOC): Remove.
10405 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10406 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10407 * cli-out.c (struct ui_out *): Likewise.
10408 * cli/cli-dump.c (add_dump_command): Likewise.
10409 (add_dump_command): Likewise.
10410 * complaints.c (get_complaints): Likewise.
10411 (find_complaint): Likewise.
10412 * dwarf2-frame.c (execute_cfa_program): Likewise.
10413 * dwarf2read.c (abbrev_table_read_table): Likewise.
10414 * gdbarch.sh: Likewise.
10415 * gdbarch.c: Rebuild.
10416 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10417 * interps.c (interp_new): Likewise.
10418 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10419 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10420 * mi/mi-console.c (mi_console_file_new): Likewise.
10421 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10422 * mi/mi-out.c (mi_out_new): Likewise.
10423 * mi/mi-parse.c (mi_parse): Likewise.
10424 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10425 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10426 * observer.c (xalloc_observer_list_node): Likewise.
10427 * regcache.c (regcache_xmalloc_1): Likewise.
10428 * reggroups.c (reggroup_new): Likewise.
10429 (_initialize_reggroup): Likewise.
10430 * registry.c (register_data_with_cleanup): Likewise.
10431 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10432 * ser-base.c (serial_ttystate): Likewise.
10433 * ser-mingw.c (make_pipe_state): Likewise.
10434 * ser-pipe.c (pipe_open): Likewise.
10435 * serial.c (serial_open): Likewise.
10436 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10437 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10438 (tui_alloc_win_info): Likewise.
10439 (tui_add_content_elements): Likewise.
10440 * tui/tui-file.c (tui_file_new): Likewise.
10441 * tui/tui-out.c (tui_out_new): Likewise.
10442 * ui-file.c (mem_file_new): Likewise.
10443 * ui-out.c (push_level): Likewise.
10444 (make_cleanup_ui_out_end): Likewise.
10445 (append_header_to_list): Likewise.
10446 (ui_out_new): Likewise.
10447 * user-regs.c (user_reg_add_builtin): Likewise.
10449 2014-01-13 Tom Tromey <tromey@redhat.com>
10451 * defs.h (XZALLOC): Remove.
10452 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10453 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10454 (get_ada_tasks_inferior_data): Likewise.
10455 * auto-load.c (get_auto_load_pspace_data): Likewise.
10456 * auxv.c (get_auxv_inferior_data): Likewise.
10457 * bfd-target.c (target_bfd_reopen): Likewise.
10458 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10459 (deprecated_insert_raw_breakpoint): Likewise.
10460 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10461 * corelow.c (core_open): Likewise.
10462 * darwin-nat.c (darwin_check_new_threads): Likewise.
10463 (darwin_attach_pid): Likewise.
10464 * dummy-frame.c (dummy_frame_push): Likewise.
10465 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10466 * dwarf2loc.c (allocate_piece_closure): Likewise.
10467 * elfread.c (elf_symfile_segments): Likewise.
10468 * eval.c (ptrmath_type_p): Likewise.
10469 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10470 * gdbtypes.c (alloc_type_arch): Likewise.
10471 (alloc_type_instance): Likewise.
10472 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10473 * inf-child.c (inf_child_can_use_agent): Likewise.
10474 * inflow.c (get_inflow_inferior_data): Likewise.
10475 * infrun.c (save_infcall_suspend_state): Likewise.
10476 * jit.c (jit_reader_load): Likewise.
10477 (get_jit_objfile_data): Likewise.
10478 (get_jit_program_space_data): Likewise.
10479 (jit_object_open_impl): Likewise.
10480 (jit_symtab_open_impl): Likewise.
10481 (jit_block_open_impl): Likewise.
10482 (jit_frame_sniffer): Likewise.
10483 * linux-fork.c (add_fork): Likewise.
10484 * maint.c (make_command_stats_cleanup): Likewise.
10485 * objfiles.c (get_objfile_pspace_data): Likewise.
10486 * opencl-lang.c (struct lval_closure): Likewise.
10487 * osdata.c (osdata_start_osdata): Likewise.
10488 * progspace.c (new_address_space): Likewise.
10489 (add_program_space): Likewise.
10490 * remote-sim.c (get_sim_inferior_data): Likewise.
10491 * sh-tdep.c (sh_gdbarch_init): Likewise.
10492 * skip.c (Ignore): Likewise.
10493 (skip_delete_command): Likewise.
10494 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10495 (library_list_start_library): Likewise.
10496 (solib_aix_current_sos): Likewise.
10497 * solib-darwin.c (get_darwin_info): Likewise.
10498 (darwin_current_sos): Likewise.
10499 * solib-dsbt.c (get_dsbt_info): Likewise.
10500 * solib-ia64-hpux.c (new_so_list): Likewise.
10501 (ia64_hpux_get_solib_linkage_addr): Likewise.
10502 * solib-spu.c (append_ocl_sos): Likewise.
10503 (spu_current_sos): Likewise.
10504 * solib-svr4.c (get_svr4_info): Likewise.
10505 (svr4_keep_data_in_core): Likewise.
10506 (library_list_start_library): Likewise.
10507 (svr4_default_sos): Likewise.
10508 (svr4_read_so_list): Likewise.
10509 * solib-target.c (library_list_start_library): Likewise.
10510 (solib_target_current_sos): Likewise.
10511 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10512 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10513 * symfile.c (default_symfile_segments): Likewise.
10514 * target-descriptions.c (tdesc_data_init): Likewise.
10515 (tdesc_create_reg): Likewise.
10516 (struct tdesc_type *): Likewise.
10517 (tdesc_create_vector): Likewise.
10518 (tdesc_set_struct_size): Likewise.
10519 (struct tdesc_type *): Likewise.
10520 (tdesc_free_feature): Likewise.
10521 (tdesc_create_feature): Likewise.
10522 * windows-nat.c (windows_add_thread): Likewise.
10523 (windows_make_so): Likewise.
10524 * xml-support.c (gdb_xml_body_text): Likewise.
10525 (gdb_xml_create_parser_and_cleanup): Likewise.
10526 (xml_process_xincludes): Likewise.
10527 * xml-syscall.c (allocate_syscalls_info): Likewise.
10528 (syscall_create_syscall_desc): Likewise.
10530 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10532 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10533 function, with code from i386_stap_parse_special_token.
10534 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10535 (i386_stap_parse_special_token): Move code to the two functions
10536 above; simplify it.
10538 2014-01-09 Pedro Alves <palves@redhat.com>
10539 Hui Zhu <hui@codesourcery.com>
10542 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10543 bp_err_string. Don't mark the location shlib_disabled if the
10544 error thrown wasn't a generic or memory error. Catch errors
10545 thrown while inserting breakpoints in overlayed code. Output
10546 error message of software breakpoints.
10547 * remote.c (remote_insert_breakpoint): If this breakpoint has
10548 target-side commands but this stub doesn't support Z0 packets,
10549 throw NOT_SUPPORTED_ERROR error.
10550 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10551 * target.h (target_insert_breakpoint): Extend comment.
10552 (target_insert_hw_breakpoint): Add comment.
10554 2014-01-08 Pedro Alves <palves@redhat.com>
10556 * remote.c (remote_add_thread): Add threads silently if starting
10558 (remote_notice_new_inferior): If in all-stop, and starting up,
10559 don't call notice_new_inferior.
10560 (get_current_thread): New function, factored out from ...
10561 (add_current_inferior_and_thread): ... this. Adjust.
10562 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10563 found any thread, then select the remote's current thread as GDB's
10564 current thread too.
10566 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10568 * NEWS: Create a new section for the next release branch.
10569 Rename the section of the current branch, now that it has
10572 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10574 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10575 * version.in: Bump version to 7.7.50.DATE-cvs.
10577 2014-01-08 Yao Qi <yao@codesourcery.com>
10579 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10580 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10581 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10583 2014-01-08 Yao Qi <yao@codesourcery.com>
10585 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10586 return value of bfd_get_filename to symbol_file_add_from_bfd.
10588 2014-01-08 Pierre Muller <muller@sourceware.org>
10591 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10592 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10593 to prim_record_mininal_symbol_and_info.
10594 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10595 in call to prim_record_minimal_symbol_and_info.
10596 (read_pe_exported_syms): Set index field of section_data.
10598 2014-01-07 Andrew Pinski <apinski@cavium.com>
10600 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10601 * features/aarch64.c: Regenerate.
10603 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10605 * target.c (return_null): Define.
10606 (update_current_target): Use it instead of return_zero for
10607 functions that return a pointer.
10609 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10611 * source.c (add_path): Fix check for duplicated paths in the previously
10614 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10616 * ada-lang.c: Remove duplicated include statements.
10617 * alphabsd-nat.c: Ditto.
10618 * amd64-darwin-tdep.c: Ditto.
10619 * amd64fbsd-nat.c: Ditto.
10620 * auto-load.c: Ditto.
10622 * breakpoint.c: Ditto.
10623 * dbxread.c: Ditto.
10624 * fork-child.c: Ditto.
10625 * gdb_usleep.c: Ditto.
10626 * i386-darwin-tdep.c: Ditto.
10627 * i386fbsd-nat.c: Ditto.
10629 * inferior.c: Ditto.
10630 * jv-lang.c: Ditto.
10631 * linux-nat.c: Ditto.
10632 * linux-tdep.c: Ditto.
10633 * m68kbsd-nat.c: Ditto.
10634 * m68klinux-nat.c: Ditto.
10635 * microblaze-tdep.c: Ditto.
10636 * mips-linux-tdep.c: Ditto.
10637 * mn10300-tdep.c: Ditto.
10638 * nto-tdep.c: Ditto.
10639 * opencl-lang.c: Ditto.
10641 * printcmd.c: Ditto.
10642 * regcache.c: Ditto.
10643 * remote-m32r-sdi.c: Ditto.
10645 * symfile.c: Ditto.
10647 * tilegx-linux-nat.c: Ditto.
10648 * tilegx-tdep.c: Ditto.
10649 * tracepoint.c: Ditto.
10651 * vaxbsd-nat.c: Ditto.
10652 * windows-nat.c: Ditto.
10653 * xtensa-tdep.c: Ditto.
10655 2014-01-07 Yao Qi <yao@codesourcery.com>
10657 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10659 2014-01-07 Yao Qi <yao@codesourcery.com>
10660 Joel Brobecker <brobecker@adacore.com>
10662 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10663 (pdc_write_regs): Likewise.
10664 (fetch_regs_kernel_thread): Likewise.
10665 (store_regs_kernel_thread): Likewise.
10667 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10669 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10670 tagged type objects to their actual type.
10672 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10674 * ada-valprint.c (print_field_values): Add "language" parameter.
10675 Update calls to print_field_values and print_variant_part.
10676 Pass new parameter "language" in call to val_print instead
10677 of "current_language". Replace call to ada_val_print by call
10679 (print_variant_part): Add "language" parameter.
10680 (ada_val_print_struct_union): Update call to print_field_values.
10682 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10684 * ada-valprint.c (ui_memcpy): Delete.
10685 (ada_print_floating): Update documentation. Add empty line
10686 between between function documentation and implementation.
10687 Delete variable "buffer". Use ui_file_xstrdup in place of
10688 ui_file_put. Minor adjustments following this change.
10690 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10692 * ada-valprint.c (ada_val_print_string): New function,
10693 extracted from ada_val_print_array.
10694 (ada_val_print_array): Replace extracted code by call
10695 to ada_val_print_string followed by a return. Move
10696 "else" branch to the function's top block.
10698 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10700 * ada-valprint.c (ada_val_print_array): Move implementation
10701 down. Rename parameter "offset" and "val" into "offset_aligned"
10702 and "original_value" respectively. Add parameter "offset".
10704 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10706 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10707 re-organizing the code. Change the "???" message printed
10708 when target type is a TYPE_CODE_UNDEF into
10709 "<ref to undefined type>".
10711 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10713 * ada-valprint.c (print_record): Delete, implementation inlined...
10714 (ada_val_print_struct_union): ... here. Remove call to
10715 ada_check_typedef in inlined implementation.
10717 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10719 * ada-valprint.c (ada_val_print_gnat_array): New function,
10720 extracted from ada_val_print_1;
10721 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10722 (ada_val_print_flt, ada_val_print_struct_union)
10723 (ada_val_print_ref): Likewise.
10724 (ada_val_print_1): Delete variables i and elttype.
10725 Replace extracted-out code by call to corresponding
10728 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10730 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10734 * ada-valprint.c (ada_val_print_1): Replace calls to
10735 ada_val_print_1 by calls to val_print.
10737 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10739 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10740 Update calls to self accordingly. Replace calls to c_val_print
10741 by calls to val_print.
10743 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10745 * ada-valprint.c (print_record): Delete declaration.
10746 (adjust_type_signedness, ada_val_print_1): Likewise.
10747 (ada_val_print): Move function implementation down.
10748 (print_variant_part, print_field_values, print_record):
10749 Move function implementation up.
10751 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10753 * python/py-type.c (typy_get_name): New function.
10754 (type_object_getset): Add entry for attribute "name".
10755 * NEWS: Add entry mentioning this new attribute.
10757 2014-01-07 Yao Qi <yao@codesourcery.com>
10759 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10762 2014-01-07 Yao Qi <yao@codesourcery.com>
10764 * gnu-nat.c (info_port_rights): Add qualifier const to
10767 2014-01-07 Yao Qi <yao@codesourcery.com>
10769 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10771 2014-01-07 Yao Qi <yao@codesourcery.com>
10773 * gnu-nat.c (make_inf) Update declaration.
10774 (make_inf): Make it static.
10775 (inf_set_traced): Likewise.
10776 (inf_port_to_thread, inf_task_died_status): Likewise.
10778 2014-01-07 Yao Qi <yao@codesourcery.com>
10780 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10782 2014-01-07 Yao Qi <yao@codesourcery.com>
10784 * gnu-nat.c (_initialize_gnu_nat): Declare.
10786 2014-01-07 Yao Qi <yao@codesourcery.com>
10788 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10790 (struct gdbarch_info) <byte_order>: Change type to
10792 <byte_order_for_code>: Likewise.
10793 * gdbarch.c, gdbarch.h: Regenerated.
10795 2014-01-06 Sasha Smundak <asmundak@google.com>
10797 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10799 2014-01-06 Tom Tromey <tromey@redhat.com>
10801 * doublest.c (convert_doublest_to_floatformat): Use const, not
10803 * somread.c (som_symtab_read): Likewise.
10805 2014-01-07 Hui Zhu <hui@codesourcery.com>
10807 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10808 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10809 (gdb_bfd_fopen): Ditto.
10810 (gdb_bfd_openr): Ditto.
10811 (gdb_bfd_openw): Ditto.
10812 (gdb_bfd_openr_iovec): Ditto.
10813 (gdb_bfd_fdopenr): Ditto.
10814 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10815 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10817 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10819 * symfile-mem.c (symbol_file_add_from_memory): Removed
10820 gdb_bfd_stash_filename.
10822 2014-01-03 Doug Evans <dje@google.com>
10824 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10827 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10829 Update year range in copyright notice of all files.
10831 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10833 * top.c (print_gdb_version): Set copyright year to 2014.
10835 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10837 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10839 For older changes see ChangeLog-2013.
10845 version-control: never