1 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4 (scan_dyntag_auxv): Same.
6 2014-08-06 Yao Qi <yao@codesourcery.com>
8 * amd64-linux-nat.c: Remove duplicated include
10 * i386-linux-nat.c: Likewise.
12 2014-08-06 Yao Qi <yao@codesourcery.com>
14 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
15 operand" with "Special opcode" in comments.
17 2014-08-05 Gary Benson <gbenson@redhat.com>
19 * interps.c (initialize_interps): Remove prototype.
20 (interpreter_initialized): Remove static global.
21 (interp_add): Do not call initialize_interps.
22 (initialize_interps): Remove function.
24 2014-08-05 Gary Benson <gbenson@redhat.com>
26 * utils.c (vwarning): Remove spurious va_end.
28 2014-08-05 Alan Modra <amodra@gmail.com>
30 * charset.c (convert_between_encodings): Cast result of obstack_base.
31 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
32 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
33 (read_unwind_info): Use size_t for some locals.
34 * jit.c (finalize_symtab): Likewise.
35 * utils.c (hashtab_obstack_allocate): Likewise.
36 * symmisc.c (print_objfile_statistics): Update format strings.
38 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
40 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
41 (Changes in GDB 7.8): ... here.
43 2014-08-04 Tom Tromey <tromey@redhat.com>
45 * target.c (set_targetdebug): New function.
46 (initialize_targets): Pass set_targetdebug when creating "set
49 2014-08-01 Joel Brobecker <brobecker@adacore.com>
51 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
52 if detecting a variable-sized field that is not the last field.
53 Fix struct type length computation.
55 2014-08-01 Joel Brobecker <brobecker@adacore.com>
57 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
60 2014-08-01 Joel Brobecker <brobecker@adacore.com>
62 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
63 Remove "+ 8" offset in computation of CHAIN_VMA.
65 2014-07-31 Doug Evans <dje@google.com>
67 * inflow.c (child_terminal_inferior): Add comment.
68 (child_terminal_ours_for_output): Add comment.
69 (child_terminal_ours): Add comment.
70 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
71 (linux_nat_terminal_ours): Add comment.
73 2014-07-31 Gary Benson <gbenson@redhat.com>
75 * common/btrace-common.h: Do not include defs.h or server.h.
76 * nat/mips-linux-watch.h: Likewise.
77 * gdb-dlfcn.h: Do not include defs.h.
78 * tracefile.h: Likewise.
80 2014-07-30 Roland McGrath <mcgrathr@google.com>
82 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
84 2014-07-30 Tom Tromey <tromey@redhat.com>
86 * bsd-kvm.c (bsd_kvm_open): Constify.
87 * corelow.c (core_open): Constify.
88 * ctf.c (ctf_open): Constify.
89 * dbug-rom.c (dbug_open): Constify.
90 * exec.c (exec_open): Constify.
91 * m32r-rom.c (m32r_open, mon2000_open): Constify.
92 * microblaze-rom.c (picobug_open): Constify.
93 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
95 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
96 * record-btrace.c (record_btrace_open): Constify.
97 * record-full.c (record_full_core_open_1, record_full_open_1)
98 (record_full_open): Constify.
99 * remote-m32r-sdi.c (m32r_open): Constify.
100 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
101 (rockhopper_open, lsi_open): Constify.
102 * remote-sim.c (gdbsim_open): Constify.
103 * remote.c (remote_open, extended_remote_open, remote_open_1):
105 * target.h (struct target_ops) <to_open>: Make "arg" const.
106 * tracefile-tfile.c (tfile_open): Constify.
108 2014-07-30 Tom Tromey <tromey@redhat.com>
110 * breakpoint.c (map_breakpoint_numbers): Update.
111 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
112 (get_number_const): New function.
113 (get_number): Rewrite using get_number_const.
114 (init_number_or_range): Make "string" const.
115 (number_is_in_list): Make "list" const.
116 * cli/cli-utils.h (get_number_const): Declare.
117 (struct get_number_or_range_state) <string, end_ptr>: Now const.
118 (init_number_or_range, number_is_in_list): Update.
119 * printcmd.c (map_display_numbers): Update.
120 * value.c (value_from_history_ref): Constify.
121 * value.h (value_from_history_ref): Update.
123 2014-07-30 Tom Tromey <tromey@redhat.com>
125 * corefile.c (hook_type, call_extra_exec_file_hooks)
126 (specify_exec_file_hook): Constify.
127 * exec.c (exec_file_attach): Make "filename" const.
128 * gdbcore.h (deprecated_exec_file_display_hook)
129 (specify_exec_file_hook, exec_file_attach): Constify.
130 * main.c (captured_main): Use catch_command_errors_const.
132 2014-07-30 Tom Tromey <tromey@redhat.com>
134 * target.c (open_target): New function.
135 (add_target_with_completer, add_deprecated_target_alias): Use
136 set_cmd_sfunc, set_cmd_context.
137 (debug_to_open): Remove.
138 (setup_target_debug): Update.
140 2014-07-30 Yao Qi <yao@codesourcery.com>
142 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
144 * parse.c (exp_iterate): Update comments.
146 2014-07-30 Gary Benson <gbenson@redhat.com>
148 * common/common-defs.h: New file.
149 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
150 * defs.h: Include common-defs.h.
151 Do not include config.h or build-gnulib/config.h.
153 2014-07-30 Gary Benson <gbenson@redhat.com>
155 * common/common-utils.h: Do not include config.h.
156 * nat/linux-btrace.h: Likewise.
158 2014-07-30 Gary Benson <gbenson@redhat.com>
160 * btrace.c: Include defs.h.
161 * common/ptid.c: Include defs.h or server.h as appropriate.
162 * nat/mips-linux-watch.c: Likewise.
164 2014-07-29 Tom Tromey <tromey@redhat.com>
166 * target.c (target_is_pushed): Simplify.
168 2014-07-29 Joel Brobecker <brobecker@adacore.com>
172 2014-07-29 Yao Qi <yao@codesourcery.com>
175 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
177 2014-07-28 Doug Evans <xdje42@gmail.com>
180 * guile/scm-param.c (pascm_parameter_defined_p): New function.
181 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
184 2014-07-28 Will Newton <will.newton@linaro.org>
186 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
187 (THUMB2_SET_R7_SIGRETURN2): Likewise.
188 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
189 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
190 (THUMB2_EABI_SYSCALL): Likewise.
191 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
193 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
194 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
196 2014-07-27 Doug Evans <xdje42@gmail.com>
198 * guile/scm-param.c (pascm_print_param_smob): Fix output.
200 2014-07-27 Doug Evans <xdje42@gmail.com>
202 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
204 2014-07-26 Ludovic Courtès <ludo@gnu.org>
205 Doug Evans <xdje42@gmail.com>
208 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
209 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
210 * configure.ac: Try to use guild to compile an scm file, if it fails
211 then disable guile support.
212 * configure: Regenerate.
213 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
215 (GUILE_COMPILED_FILES): New variable.
216 (GUILE_FILES) Update.
217 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
218 (stamp-guile): Compile scm files.
219 * guile/guile.c (boot_guile_support): New function.
220 (standard_throw_args_p): New function.
221 (print_standard_throw_error, print_throw_error): New functions.
222 (handle_boot_error): New function.
223 (initialize_scheme_side): Rewrite to call boot_guile_support.
224 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
225 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
227 2014-07-26 Ludovic Courtès <ludo@gnu.org>
228 Doug Evans <xdje42@gmail.com>
231 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
232 * guile/lib/gdb/support.scm: New file.
233 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
234 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
236 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
238 (%assert-type): Ditto, and renamed to assert-type.
239 (%exception-print-style): Delete.
241 2014-07-26 Doug Evans <xdje42@gmail.com>
244 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
245 * configure: Regenerate.
246 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
248 (PYTHON_FILES): New variable.
249 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
250 (GUILE_FILES): New variable.
251 (stamp-python, install-python, uninstall-python): Handle empty
253 (stamp-guile, install-guile, uninstall-guile): Ditto.
255 2014-07-26 Doug Evans <xdje42@gmail.com>
258 * guile/lib/gdb.scm (pretty-printers): Export.
259 (set-pretty-printers!): Export.
260 * guile/lib/gdb/printing.scm (gdb module): Update.
261 (prepend-pretty-printer!, append-pretty-printer!): Update.
262 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
263 (pretty_printer_list_var): Delete.
264 (pretty_printer_list): New static global.
265 (gdbscm_pretty_printers): New function.
266 (gdbscm_set_pretty_printers_x): New function.
267 (ppscm_find_pretty_printer_from_gdb): Update.
268 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
269 (gdbscm_initialize_pretty_printers): Update.
271 2014-07-26 Doug Evans <xdje42@gmail.com>
274 * configure.ac: Add check for header gc/gc.h.
275 Add check for function setenv.
276 * configure: Regenerate.
277 * config.in: Regenerate.
278 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
280 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
282 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
283 variation in gdbarch matching.
285 2014-07-25 Tom Tromey <tromey@redhat.com>
287 * exec.c (using_exec_ops): Remove.
288 (exec_close_1): Update. Remove extraneous block, reindent.
289 (add_target_sections): Use target_is_pushed.
291 2014-07-25 Pedro Alves <palves@redhat.com>
293 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
294 * monitor.c (monitor_create_inferior): Likewise.
295 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
296 * remote-sim.c (gdbsim_create_inferior): Likewise.
297 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
298 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
299 * windows-nat.c (do_initial_windows_stuff): Likewise.
301 2014-07-25 Pedro Alves <palves@redhat.com>
303 * NEWS: Mention signal passing and "signal" command changes.
304 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
306 * breakpoint.c (until_break_command): Adjust clear_proceed_status
308 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
309 * infcmd.c (proceed_thread_callback, continue_1, step_once)
310 (jump_command): Adjust clear_proceed_status call.
311 (signal_command): Warn if other thread that are resumed have
312 signals that will be delivered. Adjust clear_proceed_status call.
313 (until_next_command, finish_command)
314 (proceed_after_attach_callback, attach_command_post_wait)
315 (attach_command): Adjust clear_proceed_status call.
316 * infrun.c (proceed_after_vfork_done): Likewise.
317 (proceed_after_attach_callback): Adjust comment.
318 (clear_proceed_status_thread): Clear stop_signal if not in pass
320 (clear_proceed_status_callback): Delete.
321 (clear_proceed_status): New 'step' parameter. Only clear the
322 proceed status of threads the command being prepared is about to
324 (proceed): If passed in an explicit signal, override stop_signal
325 with it. Don't pass the last stop signal to the thread we're
327 (init_wait_for_inferior): Adjust clear_proceed_status call.
328 (switch_back_to_stepped_thread): Clear the signal if it should not
330 * infrun.h (clear_proceed_status): New 'step' parameter.
331 (user_visible_resume_ptid): Add comment.
332 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
333 signal is in pass state.
334 * remote.c (append_pending_thread_resumptions): Likewise.
335 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
337 2014-07-25 Tom Tromey <tromey@redhat.com>
339 * target.h (target_stopped_data_address)
340 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
343 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
345 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
347 (avr_pointer_to_address): Likewise.
349 2014-07-24 Tom Tromey <tromey@redhat.com>
351 * monitor.c (compile_pattern): Update.
352 * target.h (struct target_ops) <to_shortname, to_longname,
355 2014-07-24 Tom Tromey <tromey@redhat.com>
357 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
358 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
359 (add_info_alias, add_com): Make "doc" const.
360 (print_doc_line): Make "str" const.
361 (delete_cmd): Update.
362 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
363 (print_doc_line): Update.
364 * cli/cli-script.c (document_command): Update.
365 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
366 (add_com, add_info, add_info_alias): Update.
367 * guile/scm-cmd.c (cmdscm_destroyer): Update.
368 * python/py-cmd.c (cmdpy_destroyer): Update.
370 2014-07-24 Tom Tromey <tromey@redhat.com>
372 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
373 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
374 (help_cmd_list): Constify.
375 (lookup_cmd): Update.
376 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
378 (help_cmd_list, apropos_cmd): Update.
379 * cli/cli-script.c (show_user): Update.
380 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
381 * cli/cli-setshow.h (cmd_show_list): Update.
382 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
383 (cmd_show_list): Update.
384 * guile/scm-cmd.c (cmdscm_destroyer): Update.
385 * python/py-cmd.c (cmdpy_destroyer): Update.
387 2014-07-24 Tom Tromey <tromey@redhat.com>
389 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
390 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
392 * command.h (deprecate_cmd): Update.
393 * maint.c (maintenance_do_deprecate): Add casts.
395 2014-07-24 Tom Tromey <tromey@redhat.com>
397 * cli/cli-decode.c (help_cmd): Make parameter "const".
398 * cli/cli-decode.h (help_cmd): Update.
400 2014-07-24 Tom Tromey <tromey@redhat.com>
402 * stack.c (up_silently_base, down_silently_base): Make argument
405 2014-07-24 Tom Tromey <tromey@redhat.com>
407 * solib.c (solib_add): Make "pattern" const.
408 * solib.h (solib_add): Update.
410 2014-07-24 Tom Tromey <tromey@redhat.com>
412 * remote.c (remote_serial_open, print_packet, putpkt)
413 (putpkt_binary): Constify.
414 * remote.h (putpkt): Update.
416 2014-07-24 Tom Tromey <tromey@redhat.com>
418 * monitor.c (monitor_open): Make "args" const.
419 * monitor.h (monitor_open): Update.
421 2014-07-24 Tom Tromey <tromey@redhat.com>
423 * maint.c (match_bfd_flags): Make "string" const.
424 (print_bfd_section_info): Remove casts.
425 (print_objfile_section_info): Make "string" const.
427 2014-07-24 Tom Tromey <tromey@redhat.com>
429 * inf-child.c (inf_child_open_target): Make "arg" const.
430 * inf-child.h (inf_child_open_target): Update.
432 2014-07-24 Tom Tromey <tromey@redhat.com>
434 * environ.c (unset_in_environ): Make "var" const.
435 * environ.h (unset_in_environ): Update.
437 2014-07-24 Tom Tromey <tromey@redhat.com>
439 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
441 (scan_filename_with_cleanup): Likewise.
442 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
443 Make arguments const.
444 (restore_command): Update.
446 2014-07-24 Pedro Alves <palves@redhat.com>
448 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
450 2014-07-24 Tom Tromey <tromey@redhat.com>
451 Gary Benson <gbenson@redhat.com>
453 * nat/linux-ptrace.c (additional_flags): New global.
454 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
455 additional_flags; don't check GDBSERVER.
456 (linux_ptrace_set_additional_flags): New function.
457 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
459 * linux-nat.c (_initialize_linux_nat): Call
460 linux_ptrace_set_additional_flags.
462 2014-07-24 Tom Tromey <tromey@redhat.com>
464 * make-target-delegates (munge_type, write_debugmethod): New
466 (debug_names): New global.
467 ($TARGET_DEBUG_PRINTER): New global.
468 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
470 Write debug methods. Generate init_debug_target.
471 * target-debug.h: New file.
472 * target-delegates.c: Rebuild.
473 * target.c: Include target-debug.h.
474 (debug_target): Hoist definition.
475 (target_kill, target_get_section_table, target_memory_map)
476 (target_flash_erase, target_flash_done, target_detach)
477 (target_disconnect, target_wait, target_resume)
478 (target_pass_signals, target_program_signals, target_follow_fork)
479 (target_mourn_inferior, target_search_memory)
480 (target_thread_address_space, target_close)
481 (target_find_new_threads, target_core_of_thread)
482 (target_verify_memory, target_insert_mask_watchpoint)
483 (target_remove_mask_watchpoint): Remove targetdebug code.
484 (debug_to_post_attach, debug_to_prepare_to_store)
485 (debug_to_files_info, debug_to_insert_breakpoint)
486 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
487 (debug_to_region_ok_for_hw_watchpoint)
488 (debug_to_can_accel_watchpoint_condition)
489 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
490 (debug_to_watchpoint_addr_within_range)
491 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
492 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
493 (debug_to_terminal_init, debug_to_terminal_inferior)
494 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
495 (debug_to_terminal_save_ours, debug_to_terminal_info)
496 (debug_to_load, debug_to_post_startup_inferior)
497 (debug_to_insert_fork_catchpoint)
498 (debug_to_remove_fork_catchpoint)
499 (debug_to_insert_vfork_catchpoint)
500 (debug_to_remove_vfork_catchpoint)
501 (debug_to_insert_exec_catchpoint)
502 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
503 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
504 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
505 (setup_target_debug): Call init_debug_target.
506 * target.h (TARGET_DEBUG_PRINTER): New macro.
507 (struct target_ops) <to_resume, to_wait, to_pass_signals,
508 to_program_signals>: Use TARGET_DEBUG_PRINTER.
510 2014-07-24 Gary Benson <gbenson@redhat.com>
512 * exceptions.h (throw_vfatal): Renamed to...
513 (throw_vquit): New declaration.
514 (throw_quit): Likewise.
515 * exceptions.c (throw_vfatal): Renamed to...
516 (throw_vquit): New function.
517 (throw_quit): Likewise.
518 (throw_error): Call throw_verror rather than throw_it.
519 * utils.h (vfatal): Removed.
521 * utils.c (vfatal): Removed.
523 (internal_verror): Replaced call to fatal with call to throw_quit.
524 (quit): Replaced calls to fatal with calls to throw_quit.
526 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
528 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
531 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
533 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
534 less than zero in conditional expression.
536 2014-07-23 Tom Tromey <tromey@redhat.com>
538 * make-target-delegates ($ARGS_PART): Match trailing close paren.
539 ($INTRO_PART): Don't match whitespace.
540 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
542 ($METHOD): Add $METHOD_TRAILER.
544 (scan_target_h): New sub.
545 Change main loop not to collect state.
546 * target-delegates.c: Rebuild.
548 2014-07-23 Gary Benson <gbenson@redhat.com>
550 * cp-support.c (gdb_demangle): Fix build on systems without
553 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
555 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
556 for reference entry value target data value.
558 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
560 * stack.c (read_frame_arg): Verify value_optimized_out before calling
561 value_available_contents_eq.
563 2014-07-22 Pedro Alves <palves@redhat.com>
565 * value.c (allocate_optimized_out_value): Don't mark value as
568 2014-07-22 Jiong Wang <jiong.wang@arm.com>
570 * MAINTAINERS (Write After Approval): Update my email address.
572 2014-07-20 Doug Evans <dje@google.com>
575 * remote.c (putpkt_binary): Add text to error message.
577 2014-07-20 Yao Qi <yao@codesourcery.com>
579 * eval.c: Remove "Chill" from comments.
580 * gdbtypes.h: Likewise.
581 * symtab.h: Likewise.
583 2014-07-20 Yao Qi <yao@codesourcery.com>
585 * std-operator.def: Update comments to TERNOP_SLICE.
587 2014-07-20 Yao Qi <yao@codesourcery.com>
589 * std-operator.def: Remove BINOP_RANGE.
590 * breakpoint.c (watchpoint_exp_is_const): Update.
591 * expprint.c (dump_subexp_body_standard): Likewise.
592 * eval.c (init_array_element): Remove dead code.
593 (evaluate_subexp_standard): Likewise.
595 2014-07-20 Yao Qi <yao@codesourcery.com>
597 * std-operator.def: Remove BINOP_IN.
598 * breakpoint.c (watchpoint_exp_is_const): Update.
599 * eval.c (evaluate_subexp_standard): Likewise.
600 * expprint.c (dump_subexp_body_standard): Likewise.
602 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
604 * microblaze-tdep.c (microblaze_register_names): Add
605 the rshr and rslr register names.
606 (microblaze_gdbarch_init): Use of tdesc_has_registers.
607 Use of tdesc_find_feature. Use of tdesc_data_alloc.
608 Use of tdesc_numbered_register. Use of
609 microblaze_register_g_packet_guesses. Use of
610 tdesc_use_registers. Use of set_gdbarch_register_type.
611 (microblaze_register_g_packet_guesses): New.
612 * microblaze-tdep.h (microblaze_reg_num): Add
613 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
614 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
615 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
616 * features/microblaze-core.xml: New file.
617 * features/microblaze-stack-protect.xml: New file.
618 * features/microblaze-with-stack-protect.c: New file.
619 * features/microblaze-with-stack-protect.xml: New file.
620 * features/microblaze.xml: New file.
621 * features/microblaze.c: New file.
622 * features/Makefile (microblaze-with-stack-protect): Add
623 microblaze-with-stack-protect microblaze and microblaze-expedite.
624 * regformats/microblaze-with-stack-protect.dat: New file.
625 * regformats/microblaze.dat: New file.
626 * doc/gdb.texinfo (MicroBlaze Features): Added.
628 2014-07-18 Tom Tromey <tromey@redhat.com>
630 * exec.c (exec_ops): Now static.
631 * exec.h (exec_ops): Don't declare.
633 2014-07-18 Tom Tromey <tromey@redhat.com>
635 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
636 to find_target_beneath.
637 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
639 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
641 2014-07-18 Tom Tromey <tromey@redhat.com>
644 * utils.c (quit): Use target_supports_terminal_ours.
645 * target.h (target_supports_terminal_ours): Declare.
646 * target.c (target_supports_delete_record): Don't check
647 to_delete_record against NULL.
648 (target_supports_terminal_ours): New function.
650 2014-07-18 Tom Tromey <tromey@redhat.com>
653 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
654 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
655 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
656 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
657 * windows-nat.c (windows_xfer_partial): Always delegate.
658 * record-btrace.c (record_btrace_xfer_partial): Simplify
660 (record_btrace_fetch_registers, record_btrace_store_registers)
661 (record_btrace_prepare_to_store, record_btrace_resume)
662 (record_btrace_wait, record_btrace_find_new_threads)
663 (record_btrace_thread_alive): Likewise.
664 * procfs.c (procfs_xfer_partial): Always delegate.
665 * corelow.c (core_xfer_partial): Always delegate.
666 * sol-thread.c (sol_find_new_threads): Simplify delegation.
668 2014-07-18 Tom Tromey <tromey@redhat.com>
670 * exec.c (exec_make_note_section): Move earlier.
672 2014-07-17 Doug Evans <dje@google.com>
675 * maint.c (count_symtabs_and_blocks): Handle NULL
676 current_program_space.
677 (report_command_stats): Check global enabled flag in addition to
678 recorded enabled flag.
679 (make_command_stats_cleanup): Handle msg_type == 0, startup.
681 2014-07-16 Pedro Alves <palves@redhat.com>
683 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
685 2014-07-16 Tom Tromey <tromey@redhat.com>
687 * target.h (struct target_ops) <to_delete_record>: Reformat
690 2014-07-16 Tom Tromey <tromey@redhat.com>
692 * target-delegates.c: Rebuild.
694 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
696 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
697 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
698 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
699 (avr_pointer_to_address): Likewise.
700 (avr_address_class_type_flags): New function.
701 (avr_address_class_type_flags_to_name): Likewise.
702 (avr_address_class_name_to_type_flags): Likewise.
703 (avr_gdbarch_init): Set address_class_type_flags,
704 address_class_type_flags_to_name and
705 address_class_name_to_type_flags.
707 2014-07-15 Pedro Alves <palves@redhat.com>
709 * linux-nat.c (kill_callback): Save errno and work with saved
712 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
714 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
716 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
718 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
719 breakpoint support correctly.
721 2014-07-14 Pedro Alves <palves@redhat.com>
723 * utils.c (prompt_for_continue): Call target_terminal_ours.
725 2014-07-14 Pedro Alves <palves@redhat.com>
727 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
728 catch_errors. Don't re-enable stdin or notify observers where,
730 (fetch_inferior_event_wrapper): Delete.
732 2014-07-14 Pedro Alves <palves@redhat.com>
735 * top.c: Include "inf-loop.h".
736 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
738 (gdb_readline_wrapper_cleanup): Make the target async again, if it
740 (gdb_readline_wrapper): Store whether the target is async, and
743 2014-07-14 Pedro Alves <palves@redhat.com>
746 * top.c (gdb_readline_wrapper_line): Tweak comment.
747 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
748 the input handler callback.
750 2014-07-14 Pedro Alves <palves@redhat.com>
753 * main.c: Include event-top.h.
754 (handle_command_errors): New function.
755 (catch_command_errors, catch_command_errors_const): Use it.
757 2014-07-14 Pedro Alves <palves@redhat.com>
759 * exceptions.c (catch_command_errors, catch_command_errors_const):
761 * exceptions.h (catch_command_errors_ftype)
762 (catch_command_errors_const_ftype): Moved to main.c.
763 (catch_command_errors, catch_command_errors_const): Delete
765 * main.c (catch_command_errors_ftype)
766 (catch_command_errors_const_ftype): Moved here from exceptions.h.
767 (catch_command_errors, catch_command_errors_const)): Moved here
768 from exceptions.c and make static.
770 2014-07-14 Pedro Alves <palves@redhat.com>
772 * exceptions.c (print_any_exception): Delete.
773 (catch_exceptions_with_msg): Use exception_print instead of
775 (catch_errors): Use exception_fprintf instead of
777 (catch_command_errors, catch_command_errors_const): Use
778 exception_print instead of print_any_exception.
780 2014-07-14 Pedro Alves <palves@redhat.com>
782 * infcall.c (run_inferior_call): Set 'sync_execution' while
783 running the inferior call.
785 2014-07-14 Pedro Alves <palves@redhat.com>
787 * value.c (value_contents_equal): Delete function.
788 * value.h (value_contents_equal): Delete declaration.
790 2014-07-14 Tom Tromey <tromey@redhat.com>
793 * gdbtypes.c (is_dynamic_type_internal): New function, from
795 (is_dynamic_type): Rewrite.
796 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
797 (resolve_dynamic_struct): Likewise.
798 (resolve_dynamic_type_internal): New function, from
799 resolve_dynamic_type.
800 (resolve_dynamic_type): Rewrite.
802 2014-07-14 Tom Tromey <tromey@redhat.com>
804 * target.c (target_require_runnable): Also check record_stratum.
807 2014-07-11 Yao Qi <yao@codesourcery.com>
809 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
810 thumb_instruction_restores_sp return true.
812 2014-07-11 Yao Qi <yao@codesourcery.com>
814 * arm-tdep.c (thumb_instruction_restores_sp): New function.
815 (thumb_in_function_epilogue_p): Call
816 thumb_instruction_restores_sp.
818 2014-07-11 Yao Qi <yao@codesourcery.com>
820 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
822 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
824 2014-07-11 Gary Benson <gbenson@redhat.com>
826 * amd64-linux-nat.c (gdbcore.h): Remove include.
827 (regset.h): Likewise.
828 (nat/linux-btrace.h): Likewise.
829 (btrace.h): Likewise.
830 (gdb_assert.h): Likewise.
831 (string.h): Likewise.
832 (sys/uio.h): Likewise.
833 (sys/debugreg.h): Likewise.
834 (sys/syscall.h): Likewise.
835 (sys/procfs.h): Likewise.
836 (sys/user.h): Likewise.
837 (asm/ptrace.h): Likewise.
838 (i386-nat.h): Likewise.
839 * i386-linux-nat.c (i386-nat.h): Likewise.
840 (regset.h): Likewise.
841 (target.h): Likewise.
842 (linux-nat.h): Likewise.
843 (nat/linux-btrace.h): Likewise.
844 (btrace.h): Likewise.
845 (gdb_assert.h): Likewise.
846 (string.h): Likewise.
847 (sys/uio.h): Likewise.
848 (sys/user.h): Likewise.
849 (sys/procfs.h): Likewise.
850 (sys/reg.h): Likewise.
851 (sys/debugreg.h): Likewise.
852 (ORIG_EAX): Remove definition.
854 2014-07-11 Gary Benson <gbenson@redhat.com>
856 * i386-linux-nat.h: New file.
857 * x86-linux-nat.h: Likewise.
858 * x86-linux-nat.c: Likewise.
859 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
860 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
861 * config/i386/linux64.mh (NATDEPFILES): Likewise.
862 * amd64-linux-nat.c (x86-linux-nat.h): New include.
863 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
864 (PTRACE_SETREGSET): Likewise.
865 (arch_lwp_info): Now in x86-linux-nat.c.
866 (have_ptrace_getregset): Now in x86-linux-nat.h.
867 (x86_linux_dr_get): Now in x86-linux-nat.c.
868 (x86_linux_dr_set): Likewise.
869 (x86_linux_dr_get_addr): Likewise.
870 (x86_linux_dr_get_control): Likewise.
871 (x86_linux_dr_get_status): Likewise.
872 (update_debug_registers_callback): Likewise.
873 (x86_linux_dr_set_control): Likewise.
874 (x86_linux_dr_set_addr): Likewise.
875 (x86_linux_prepare_to_resume): Likewise.
876 (x86_linux_new_thread): Likewise.
877 (x86_linux_new_fork): Likewise.
878 (x86_linux_get_thread_area): Likewise.
879 (super_post_startup_inferior): Likewise.
880 (x86_linux_child_post_startup_inferior): Likewise.
881 (AMD64_LINUX_USER64_CS): Likewise.
882 (AMD64_LINUX_X32_DS): Likewise.
883 (x86_linux_read_description): Likewise.
884 (x86_linux_enable_btrace): Likewise.
885 (x86_linux_disable_btrace): Likewise.
886 (x86_linux_teardown_btrace): Likewise.
887 (x86_linux_read_btrace): Likewise.
888 (x86_linux_create_target): Likewise.
889 (x86_linux_add_target): Likewise.
890 * i386-linux-nat.c (x86-linux-nat.h): New include.
891 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
892 (PTRACE_SETREGSET): Likewise.
893 (arch_lwp_info): Now in x86-linux-nat.c.
894 (have_ptrace_getregset): Now in x86-linux-nat.h.
895 (x86_linux_dr_get): Now in x86-linux-nat.c.
896 (x86_linux_dr_set): Likewise.
897 (x86_linux_dr_get_addr): Likewise.
898 (x86_linux_dr_get_control): Likewise.
899 (x86_linux_dr_get_status): Likewise.
900 (update_debug_registers_callback): Likewise.
901 (x86_linux_dr_set_control): Likewise.
902 (x86_linux_dr_set_addr): Likewise.
903 (x86_linux_prepare_to_resume): Likewise.
904 (x86_linux_new_thread): Likewise.
905 (x86_linux_new_fork): Likewise.
906 (x86_linux_get_thread_area): Likewise.
907 (super_post_startup_inferior): Likewise.
908 (x86_linux_child_post_startup_inferior): Likewise.
909 (AMD64_LINUX_USER64_CS): Likewise.
910 (AMD64_LINUX_X32_DS): Likewise.
911 (x86_linux_read_description): Likewise.
912 (x86_linux_enable_btrace): Likewise.
913 (x86_linux_disable_btrace): Likewise.
914 (x86_linux_teardown_btrace): Likewise.
915 (x86_linux_read_btrace): Likewise.
916 (x86_linux_create_target): Likewise.
917 (x86_linux_add_target): Likewise.
919 2014-07-11 Gary Benson <gbenson@redhat.com>
921 * amd64-linux-nat.c: Comment and whitespace changes.
922 * i386-linux-nat.c: Comment and whitespace changes.
924 2014-07-11 Gary Benson <gbenson@redhat.com>
926 * amd64-linux-nat.c (x86_linux_create_target): New function.
927 (x86_linux_add_target): Likewise.
928 (_initialize_amd64_linux_nat): Delegate to the above new functions.
929 * i386-linux-nat.c (x86_linux_create_target): New function.
930 (x86_linux_add_target): Likewise.
931 (_initialize_i386_linux_nat): Delegate to the above new functions.
933 2014-07-11 Gary Benson <gbenson@redhat.com>
935 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
936 (ps_get_thread_area): Delegate to the above in 32-bit mode.
937 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
938 (ps_get_thread_area): Delegate to the above.
940 2014-07-11 Gary Benson <gbenson@redhat.com>
942 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
943 x86_linux_read_description. All uses updated. amd64-specific
944 code conditionalized. Conditionalized i386-specific code added.
945 Redundant cast removed.
946 * i386-linux-nat.c (i386_linux_read_description): Renamed to
947 x86_linux_read_description. All uses updated. i386-specific
948 code conditionalized. Conditionalized amd64-specific code added.
949 One sizeof replaced with the actual type it is describing.
951 2014-07-11 Gary Benson <gbenson@redhat.com>
953 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
954 x86_linux_dr_get. All uses updated.
955 (amd64_linux_dr_set): Renamed to
956 x86_linux_dr_set. All uses updated.
957 (amd64_linux_dr_get_addr): Renamed to
958 x86_linux_dr_get_addr. All uses updated.
959 (amd64_linux_dr_get_control): Renamed to
960 x86_linux_dr_get_control. All uses updated.
961 (amd64_linux_dr_get_status): Renamed to
962 x86_linux_dr_get_status. All uses updated.
963 (amd64_linux_dr_set_control): Renamed to
964 x86_linux_dr_set_control. All uses updated.
965 (amd64_linux_dr_set_addr): Renamed to
966 x86_linux_dr_set_addr. All uses updated.
967 (amd64_linux_prepare_to_resume): Renamed to
968 x86_linux_prepare_to_resume. All uses updated.
969 (amd64_linux_new_thread): Renamed to
970 x86_linux_new_thread. All uses updated.
971 (amd64_linux_new_fork): Renamed to
972 x86_linux_new_fork. All uses updated.
973 (amd64_linux_child_post_startup_inferior): Renamed to
974 x86_linux_child_post_startup_inferior. All uses updated.
975 (amd64_linux_enable_btrace): Renamed to
976 x86_linux_enable_btrace. All uses updated.
977 (amd64_linux_disable_btrace): Renamed to
978 x86_linux_disable_btrace. All uses updated.
979 (amd64_linux_teardown_btrace): Renamed to
980 x86_linux_teardown_btrace. All uses updated.
981 (amd64_linux_read_btrace): Renamed to
982 x86_linux_read_btrace. All uses updated.
983 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
984 x86_linux_dr_get. All uses updated.
985 (i386_linux_dr_set): Renamed to
986 x86_linux_dr_set. All uses updated.
987 (i386_linux_dr_get_addr): Renamed to
988 x86_linux_dr_get_addr. All uses updated.
989 (i386_linux_dr_get_control): Renamed to
990 x86_linux_dr_get_control. All uses updated.
991 (i386_linux_dr_get_status): Renamed to
992 x86_linux_dr_get_status. All uses updated.
993 (i386_linux_dr_set_control): Renamed to
994 x86_linux_dr_set_control. All uses updated.
995 (i386_linux_dr_set_addr): Renamed to
996 x86_linux_dr_set_addr. All uses updated.
997 (i386_linux_prepare_to_resume): Renamed to
998 x86_linux_prepare_to_resume. All uses updated.
999 (i386_linux_new_thread): Renamed to
1000 x86_linux_new_thread. All uses updated.
1001 (i386_linux_new_fork): Renamed to
1002 x86_linux_new_fork. All uses updated.
1003 (i386_linux_child_post_startup_inferior): Renamed to
1004 x86_linux_child_post_startup_inferior. All uses updated.
1005 (i386_linux_enable_btrace): Renamed to
1006 x86_linux_enable_btrace. All uses updated.
1007 (i386_linux_disable_btrace): Renamed to
1008 x86_linux_disable_btrace. All uses updated.
1009 (i386_linux_teardown_btrace): Renamed to
1010 x86_linux_teardown_btrace. All uses updated.
1011 (i386_linux_read_btrace): Renamed to
1012 x86_linux_read_btrace. All uses updated.
1014 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1016 * remote.c (extended_remote_post_attach): New function.
1017 (init_extended_remote_ops): Install it as to_post_attach method.
1019 2014-07-09 Pedro Alves <palves@redhat.com>
1021 * infcmd.c (attach_command_post_wait): Don't call
1022 target_terminal_inferior here.
1023 (attach_command): Call it here instead.
1025 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1027 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1029 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1030 from varobj.c, with additional checks.
1031 (c_varobj_ops): Fill in is_path_expr_parent field.
1032 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1033 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1035 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1037 (varobj_default_is_path_expr_parent): New function.
1038 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1039 (varobj_default_is_path_expr_parent): Declare new function.
1041 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1043 * infcmd.c (finish_backward): Turn internal error into normal error.
1045 2014-07-07 Pedro Alves <palves@redhat.com>
1048 * remote.c (async_handle_remote_sigint)
1049 (async_handle_remote_sigint_twice): Call
1050 gdb_call_async_signal_handler instead of
1051 mark_async_signal_handler.
1053 2014-07-07 Tom Tromey <tromey@redhat.com>
1055 * target-delegates.c: Rebuild.
1056 * target.c (target_info_record): Remove.
1057 * record.c (info_record_command): Unconditionally call
1059 * target.h (struct target_ops) <to_info_record>: Use
1060 TARGET_DEFAULT_IGNORE.
1061 (target_info_record): Remove.
1063 2014-07-07 Tom Tromey <tromey@redhat.com>
1065 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1066 TARGET_DEFAULT_NORETURN.
1067 * target.c (generic_tls_error): New function.
1068 (target_translate_tls_address): Don't search target stack.
1069 * target-delegates.c: Rebuild.
1070 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1072 * linux-thread-db.c (thread_db_get_thread_local_address):
1073 Unconditionally call beneath target.
1075 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1077 * cli/cli-logging.c (pop_output_files): Assign targerr to
1080 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1082 * MAINTAINERS (Write After Approval): Update my email address.
1084 2014-07-02 Gary Benson <gbenson@redhat.com>
1086 * proc-service.c (ps_xfer_memory): Update comment.
1087 (ps_pstop): Remove unused function.
1088 (ps_pcontinue): Likewise.
1089 (ps_lstop): Likewise.
1090 (ps_lcontinue): Likewise.
1091 (ps_lgetxregsize): Likewise.
1092 (ps_lgetxregs): Likewise.
1093 (ps_lsetxregs): Likewise.
1094 (ps_plog): Likewise.
1095 (ps_ptread): Likewise.
1096 (ps_ptwrite): Likewise.
1098 2014-07-01 Mark Wielaard <mjw@redhat.com>
1100 * dwarf2read.c (add_array_cv_type): New function.
1101 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1102 (read_tag_volatile_type): Likewise.
1104 2014-07-01 Tom Tromey <tromey@redhat.com>
1106 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1107 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1108 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1109 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1110 * command.h (cmd_cfunc_ftype): Move earlier.
1111 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1112 (add_com, add_info): Use cmd_cfunc_ftype.
1114 2014-06-30 Tom Tromey <tromey@redhat.com>
1116 * symtab.c (operator_chars): Make parameters and return type
1118 (file_matches): Make "files" const.
1119 (struct search_symbols_data) <files>: Now const.
1120 (search_symbols): Make "regexp" and "files" parameters const.
1122 (symtab_symbol_info): Remove cast.
1123 (rbreak_command): Update.
1124 * symtab.h (search_symbols): Update.
1126 2014-06-27 Yao Qi <yao@codesourcery.com>
1128 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1129 Change parameter type to 'struct thread_info *'. Caller
1131 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1133 * dummy-frame.c (struct dummy_frame_id): New.
1134 (dummy_frame_id_eq): New function.
1135 (struct dummy_frame) <id>: Change its type to 'struct
1137 (dummy_frame_push): Add parameter ptid and save it in
1139 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1141 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1143 (lookup_dummy_frame): Change parameter type to 'struct
1144 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1145 instead of frame_id_eq.
1146 (dummy_frame_pop): Add parameter ptid. Callers updated.
1147 Update comments. Compose dummy_frame_id and pass it to
1149 (dummy_frame_discard): Add parameter ptid.
1150 (dummy_frame_sniffer): Compose dummy_frame_id and call
1151 dummy_frame_id_eq instead of frame_id_eq.
1152 (fprint_dummy_frames): Print ptid.
1153 * dummy-frame.h: Remove comments.
1154 (dummy_frame_push): Add ptid in declaration.
1155 (dummy_frame_pop, dummy_frame_discard): Likewise.
1157 2014-06-26 Tom Tromey <tromey@redhat.com>
1159 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1160 * command.h (error_no_arg): Update.
1162 2014-06-26 Tom Tromey <tromey@redhat.com>
1164 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1165 (do_show_command): Make "arg" const.
1166 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1168 2014-06-26 Tom Tromey <tromey@redhat.com>
1170 * record-full.c (record_full_get_bookmark): Make "args" const.
1171 (record_full_goto_bookmark): Make "raw_bookmark" const.
1172 * record.c (record_goto): New function.
1173 (cmd_record_goto): Use it. Now static.
1174 * record.h (record_goto): Declare.
1175 (cmd_record_goto): Remove declaration.
1176 * target-delegates.c: Rebuild.
1177 * target.h (struct target_ops) <to_get_bookmark,
1178 to_goto_bookmark>: Make parameter const.
1180 2014-06-26 Tom Tromey <tromey@redhat.com>
1182 * defs.h (generic_load): Update.
1183 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1184 * monitor.c (monitor_load): Make "args" const.
1185 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1186 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1188 (mips_load): Make "file" const.
1189 * remote-sim.c (gdbsim_load): Make "args" const.
1190 * remote.c (remote_load): Make "name" const.
1191 * symfile.c (generic_load): Make "args" const.
1192 * target-delegates.c: Rebuild.
1193 * target.c (target_load): Make "arg" const.
1194 (debug_to_load): Make "args" const.
1195 * target.h (struct target_ops) <to_load>: Make parameter const.
1196 (target_load): Update.
1198 2014-06-26 Tom Tromey <tromey@redhat.com>
1201 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1202 (dwarf2_physname, read_partial_die)
1203 (guess_partial_die_structure_name, fixup_partial_die)
1204 (guess_full_die_structure_name, anonymous_struct_prefix)
1205 (dwarf2_name): Use per-BFD obstack.
1207 2014-06-26 Yao Qi <yao@codesourcery.com>
1209 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1210 dummyframe and this_id into inner block below.
1212 2014-06-26 Yao Qi <yao@codesourcery.com>
1214 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1215 with "signal_pass[0]" in the initialization of signal_pass.
1217 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1219 * record-btrace.c (record_btrace_generating_corefile)
1220 (record_btrace_prepare_to_generate_core)
1221 (record_btrace_done_generating_core): New.
1222 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1223 (record_btrace_store_registers, record_btrace_prepare_to_store):
1224 Forward request when generating a core file.
1225 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1226 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1227 to_done_generating_core.
1229 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1231 * target.h (target_ops) <to_prepare_to_generate_core>
1232 <to_done_generating_core>: New.
1233 (target_prepare_to_generate_core, target_done_generating_core): New.
1234 * target.c (target_prepare_to_generate_core)
1235 (target_done_generating_core): New.
1236 * target-delegates.c: Regenerate.
1237 * gcore.c: (write_gcore_file): Rename to ...
1238 (write_gcore_file_1): ...this.
1239 (write_gcore_file): Call target_prepare_to_generate_core
1240 and target_done_generating_core.
1242 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1244 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1245 * gcore.c (write_gcore_file): Free memory returned from
1246 make_corefile_notes.
1247 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1248 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1250 2014-06-24 Yao Qi <yao@codesourcery.com>
1252 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1253 (arm_linux_init_abi): Set skip_trampoline_code with
1254 gdbarch_skip_trampoline_code instead of
1255 find_solib_trampoline_target.
1257 2014-06-24 Yao Qi <yao@codesourcery.com>
1259 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1260 arm_skip_bx_reg returns non-zero.
1262 2014-06-24 Yao Qi <yao@codesourcery.com>
1264 * arm-tdep.c (arm_skip_bx_reg): New function.
1265 (arm_skip_stub): Call arm_skip_bx_reg.
1267 2014-06-23 Don Breazeal <donb@codesourcery.com>
1269 * MAINTAINERS: Add myself as write-after-approval maintainer.
1271 2014-06-23 Pedro Alves <palves@redhat.com>
1273 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1274 DR_CONTROL before setting DR0..DR3.
1275 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1276 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1277 bits of DR_CONTROL related to the debug register slot being
1278 disabled. If all slots are vacant, clear local slowdown as well,
1279 and assert DR_CONTROL is 0.
1281 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1283 * python/lib/gdb/command/xmethods.py
1284 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1285 current progspace only if the string "progspace" matches LOCUS_RE.
1287 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1289 Fix --with-system-readline with readline-6.3 patch 5.
1290 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1291 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1294 2014-06-20 Tom Tromey <tromey@redhat.com>
1296 * dwarf2read.c (dw2_get_real_path): Use correct type in
1298 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1300 2014-06-20 Gary Benson <gbenson@redhat.com>
1302 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1303 * common/glibc_thread_db.h: Likewise.
1304 * common/i386-cpuid.h: Likewise.
1305 * common/i386-gcc-cpuid.h: Likewise.
1306 * common/linux-btrace.h: Likewise.
1307 * common/linux-osdata.h: Likewise.
1308 * common/linux-procfs.h: Likewise.
1309 * common/linux-ptrace.h: Likewise.
1310 * common/mips-linux-watch.h: Likewise.
1311 * common/linux-btrace.c: Moved to nat.
1312 * common/linux-osdata.c: Likewise.
1313 * common/linux-procfs.c: Likewise.
1314 * common/linux-ptrace.c: Likewise.
1315 * common/mips-linux-watch.c: Likewise.
1316 * nat/gdb_thread_db.h: Moved from common.
1317 * nat/glibc_thread_db.h: Likewise.
1318 * nat/i386-cpuid.h: Likewise.
1319 * nat/i386-gcc-cpuid.h: Likewise.
1320 * nat/linux-btrace.c: Likewise.
1321 * nat/linux-btrace.h: Likewise.
1322 * nat/linux-osdata.c: Likewise.
1323 * nat/linux-osdata.h: Likewise.
1324 * nat/linux-procfs.c: Likewise.
1325 * nat/linux-procfs.h: Likewise.
1326 * nat/linux-ptrace.c: Likewise.
1327 * nat/linux-ptrace.h: Likewise.
1328 * nat/mips-linux-watch.c: Likewise.
1329 * nat/mips-linux-watch.h: Likewise.
1330 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1331 (object file files): Reordered.
1332 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1333 of glibc_thread_db.h.
1335 2014-06-20 Gary Benson <gbenson@redhat.com>
1337 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1338 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1339 (i386_dr_low): Likewise.
1340 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1341 (i386_dr_low_set_addr): Likewise.
1342 (i386_dr_low_get_addr): Likewise.
1343 (i386_dr_low_can_set_control): Likewise.
1344 (i386_dr_low_set_control): Likewise.
1345 (i386_dr_low_get_control): Likewise.
1346 (i386_dr_low_get_status): Likewise.
1347 (i386_get_debug_register_length): Likewise.
1348 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1349 (i386_dr_low): Likewise.
1350 * nat/i386-dregs.c (i386-low.h): Remove include.
1351 (i386-nat.h): Likewise.
1352 (nat/i386-dregs.h): New include.
1353 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1354 (i386_dr_low_set_addr): Likewise.
1355 (i386_dr_low_get_addr): Likewise.
1356 (i386_dr_low_can_set_control): Likewise.
1357 (i386_dr_low_set_control): Likewise.
1358 (i386_dr_low_get_control): Likewise.
1359 (i386_dr_low_get_status): Likewise.
1360 (i386_get_debug_register_length): Likewise.
1361 (debug_hw_points): Likewise.
1363 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1365 * Makefile.in (SFILES): Add d-exp.y.
1366 (YYFILES): Add d-exp.c.
1367 (YYOBJ): Add d-exp.o.
1368 (local-maintainer-clean): Delete d-exp.c.
1369 * d-exp.y: New file.
1370 * d-lang.h (d_parse): New declaration.
1371 (d_error): New declaration.
1372 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1373 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1374 PREC_ORDER operators.
1375 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1377 2014-06-19 Yao Qi <yao@codesourcery.com>
1379 * gdbthread.h (any_running): Remove the declaration.
1380 * thread.c (any_running): Remove.
1382 2014-06-19 Yao Qi <yao@codesourcery.com>
1384 * gdbthread.h (struct thread_info) <state>: Change its type to
1385 'enum thread_state'. Update comments.
1387 2014-06-19 Pedro Alves <palves@redhat.com>
1389 * gdbthread.h (ALL_THREADS): Delete.
1390 (ALL_NON_EXITED_THREADS): New macro.
1391 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1392 instead of ALL_THREADS.
1393 * infrun.c (find_thread_needs_step_over)
1394 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1395 instead of ALL_THREADS.
1396 * record-btrace.c (record_btrace_open)
1397 (record_btrace_stop_recording, record_btrace_close)
1398 (record_btrace_is_replaying, record_btrace_resume)
1399 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1400 * remote.c (append_pending_thread_resumptions): Likewise.
1401 * thread.c (thread_apply_all_command): Likewise.
1403 2014-06-19 Gary Benson <gbenson@redhat.com>
1405 * i386-nat.c (i386_stopped_by_watchpoint):
1406 Use i386_dr_stopped_by_watchpoint.
1407 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1408 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1410 2014-06-19 Gary Benson <gbenson@redhat.com>
1412 * nat/i386-dregs.c: New file.
1413 * Makefile.in (i386-dregs.o): New rule.
1414 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1415 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1416 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1417 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1418 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1419 * config/i386/go32.mh (NATDEPFILES): Likewise.
1420 * config/i386/linux.mh (NATDEPFILES): Likewise.
1421 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1422 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1423 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1424 * i386-nat.h (debug_hw_points): New declaration.
1425 * i386-nat.c (breakpoint.h): Remove include.
1426 (command.h): Likewise.
1427 (target.h): Likewise.
1428 (gdb_assert.h): Likewise.
1429 (debug_hw_points): Made nonstatic.
1430 (debug_printf): Now in i386-dregs.c.
1431 (TARGET_HAS_DR_LEN_8): Likewise.
1432 (DR_CONTROL_SHIFT): Likewise.
1433 (DR_CONTROL_SIZE): Likewise.
1434 (DR_RW_EXECUTE): Likewise.
1435 (DR_RW_WRITE): Likewise.
1436 (DR_RW_READ): Likewise.
1437 (DR_RW_IORW): Likewise.
1438 (DR_LEN_1): Likewise.
1439 (DR_LEN_2): Likewise.
1440 (DR_LEN_4): Likewise.
1441 (DR_LEN_8): Likewise.
1442 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1443 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1444 (DR_ENABLE_SIZE): Likewise.
1445 (DR_LOCAL_SLOWDOWN): Likewise.
1446 (DR_GLOBAL_SLOWDOWN): Likewise.
1447 (DR_CONTROL_RESERVED): Likewise.
1448 (I386_DR_CONTROL_MASK): Likewise.
1449 (I386_DR_VACANT): Likewise.
1450 (I386_DR_LOCAL_ENABLE): Likewise.
1451 (I386_DR_GLOBAL_ENABLE): Likewise.
1452 (I386_DR_DISABLE): Likewise.
1453 (I386_DR_SET_RW_LEN): Likewise.
1454 (I386_DR_GET_RW_LEN): Likewise.
1455 (I386_DR_WATCH_HIT): Likewise.
1456 (i386_wp_op_t): Likewise.
1457 (i386_show_dr): Likewise.
1458 (i386_length_and_rw_bits): Likewise.
1459 (i386_insert_aligned_watchpoint): Likewise.
1460 (i386_remove_aligned_watchpoint): Likewise.
1461 (i386_handle_nonaligned_watchpoint): Likewise.
1462 (i386_update_inferior_debug_regs): Likewise.
1463 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1464 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1465 (i386_region_ok_for_watchpoint):
1466 Use i386_dr_region_ok_for_watchpoint.
1467 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1469 2014-06-19 Gary Benson <gbenson@redhat.com>
1471 * i386-nat.c (i386_insert_hw_breakpoint): Use
1472 i386_insert_watchpoint.
1473 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1475 2014-06-19 Gary Benson <gbenson@redhat.com>
1477 * i386-nat.c (i386_dr_show): Renamed to
1478 i386_show_dr and made static. All uses updated.
1479 (i386_dr_length_and_rw_bits): Renamed to
1480 i386_length_and_rw_bits and made static.
1482 (i386_dr_insert_aligned_watchpoint): Renamed to
1483 i386_insert_aligned_watchpoint and made static.
1485 (i386_dr_remove_aligned_watchpoint): Renamed to
1486 i386_remove_aligned_watchpoint and made static.
1488 (i386_dr_update_inferior_debug_regs): Renamed to
1489 i386_update_inferior_debug_regs and made static.
1491 * nat/i386-dregs.h (i386_dr_show): Removed.
1492 (i386_dr_length_and_rw_bits): Likewise.
1493 (i386_dr_insert_aligned_watchpoint): Likewise.
1494 (i386_dr_remove_aligned_watchpoint): Likewise.
1495 (i386_dr_update_inferior_debug_regs): Likewise.
1497 2014-06-19 Gary Benson <gbenson@redhat.com>
1499 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1500 * configure: Regenerate.
1501 * config.in: Likewise.
1502 * main.c (signal.h): New include.
1503 (setup_alternate_signal_stack): New function.
1504 (captured_main): Call the above.
1505 * cp-support.c (signal.h): New include.
1506 (catch_demangler_crashes): New flag.
1507 (SIGJMP_BUF): New define.
1508 (SIGSETJMP): Likewise.
1509 (SIGLONGJMP): Likewise.
1510 (gdb_demangle_jmp_buf): New static global.
1511 (gdb_demangle_attempt_core_dump): Likewise.
1512 (gdb_demangle_signal_handler): New function.
1513 (gdb_demangle): If catch_demangler_crashes is set, install the
1514 above signal handler before calling bfd_demangle, and restore
1515 the original signal handler afterwards. Display the offending
1516 symbol and call demangler_warning the first time a segmentation
1518 (_initialize_cp_support): New maint set/show command.
1520 2014-06-19 Gary Benson <gbenson@redhat.com>
1522 * utils.h (resource_limit_kind): New enum.
1523 (can_dump_core): New declaration.
1524 (warn_cant_dump_core): Likewise.
1525 (dump_core): Likewise.
1526 * utils.c (dump_core): Made nonstatic. Added new
1527 parameter "limit_kind".
1528 (can_dump_core): Made nonstatic. Moved printing code to...
1529 (warn_cant_dump_core): New function.
1530 (can_dump_core_warn): Likewise.
1531 (internal_vproblem): Replace calls to can_dump_core with
1532 calls to can_dump_core_warn. Supply new argument to each.
1534 2014-06-19 Gary Benson <gbenson@redhat.com>
1536 * utils.h (demangler_vwarning): New declaration.
1537 (demangler_warning): Likewise.
1538 * utils.c (struct internal_problem)
1539 <user_settable_should_quit>: New field.
1540 <user_settable_should_dump_core>: Likewise
1541 (internal_error_problem): Add values for above new fields.
1542 (internal_warning_problem): Likewise.
1543 (demangler_warning_problem): New static global.
1544 (demangler_vwarning): New function.
1545 (demangler_warning): Likewise.
1546 (add_internal_problem_command): Selectively add commands.
1547 (_initialize_utils): New internal problem command.
1548 * maint.c (maintenance_demangler_warning): New function.
1549 (_initialize_maint_cmds): New command.
1551 2014-06-18 Tom Tromey <tromey@redhat.com>
1553 * f-valprint.c (info_common_command_for_block): Update.
1554 * symtab.h (struct general_symbol_info) <common_block>: Now
1557 2014-06-18 Tom Tromey <tromey@redhat.com>
1559 * symtab.h (struct symtab) <blockvector>: Now const.
1560 * ada-lang.c (ada_add_global_exceptions): Update.
1561 * buildsym.c (augment_type_symtab): Update.
1562 * dwarf2read.c (dw2_lookup_symbol): Update.
1563 * jit.c (finalize_symtab): Update.
1564 * jv-lang.c (add_class_symtab_symbol): Update.
1565 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1567 * objfiles.c (objfile_relocate1): Update.
1568 * psymtab.c (lookup_symbol_aux_psymtabs)
1569 (maintenance_check_psymtabs): Update.
1570 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1572 * spu-tdep.c (spu_catch_start): Update.
1573 * symmisc.c (dump_symtab_1): Update.
1574 * symtab.c (lookup_global_symbol_from_objfile)
1575 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1576 (basic_lookup_transparent_type_quick)
1577 (basic_lookup_transparent_type, find_pc_sect_symtab)
1578 (find_pc_sect_line, search_symbols): Update.
1579 * block.c (find_block_in_blockvector): Make "bl" const.
1580 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1582 (blockvector_contains_pc): Make "bv" const.
1583 (block_for_pc_sect): Update.
1584 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1585 (blockvector_contains_pc): Update.
1586 * breakpoint.c (resolve_sal_pc): Update.
1587 * inline-frame.c (block_starting_point_at): Update.
1589 2014-06-18 Tom Tromey <tromey@redhat.com>
1591 * completer.c (complete_line): Make "line_buffer" const.
1592 * completer.h (complete_line): Update.
1594 2014-06-18 Tom Tromey <tromey@redhat.com>
1596 * symtab.c (add_macro_name): Remove unneeded cast.
1598 2014-06-18 Tom Tromey <tromey@redhat.com>
1600 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1601 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1603 2014-06-18 Tom Tromey <tromey@redhat.com>
1605 * probe.c (info_probes_for_ops): Make "arg" const.
1606 * probe.h (info_probes_for_ops): Update.
1608 2014-06-18 Tom Tromey <tromey@redhat.com>
1610 * varobj.c (varobj_create): Update.
1611 * valops.c (value_of_this): Update.
1612 * tracepoint.c (add_local_symbols, scope_info): Update.
1613 * symtab.h (struct general_symbol_info) <block>: Now const.
1614 * symtab.c (skip_prologue_sal)
1615 (default_make_symbol_completion_list_break_on)
1616 (skip_prologue_using_sal): Update.
1617 * stack.h (iterate_over_block_locals)
1618 (iterate_over_block_local_vars): Update.
1619 * stack.c (print_frame_args): Update.
1620 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1622 (get_selected_block): Make return type const.
1623 * python/py-frame.c (frapy_block): Update.
1624 * python/py-block.c (gdbpy_block_for_pc): Update.
1625 * p-exp.y (%union) <bval>: Now const.
1626 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1627 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1628 * m2-exp.y (%union) <bval>: Now const.
1629 * linespec.c (get_current_search_block): Make return type const.
1630 (create_sals_line_offset, find_label_symbols): Update.
1631 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1633 (block_starting_point_at): Make "block" const.
1634 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1635 (check_exception_resume): Update.
1636 * guile/scm-frame.c (gdbscm_frame_block): Update.
1637 * guile/scm-block.c (gdbscm_lookup_block): Update.
1638 * frame.h (get_frame_block): Update.
1639 (get_selected_block): Make return type const.
1640 * frame.c (frame_id_inner): Update.
1641 * f-valprint.c (info_common_command_for_block)
1642 (info_common_command): Update.
1643 * dwarf2loc.c (dwarf2_find_location_expression)
1644 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1645 (locexpr_describe_location_piece): Update.
1646 * c-exp.y (%union) <bval>: Now const.
1647 * breakpoint.c (resolve_sal_pc): Update.
1648 * blockframe.c (get_frame_block):Make return type const.
1649 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1650 (block_innermost_frame): Update.
1651 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1652 (block_for_pc, block_for_pc_sect): Update.
1653 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1655 (block_for_pc_sect, block_for_pc): Make return type const.
1656 * ax-gdb.c (gen_expr): Update.
1657 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1658 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1659 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1660 (ada_read_var_value): Update.
1661 * ada-exp.y (struct name_info) <block>: Now const.
1663 (block_lookup): Constify.
1665 2014-06-18 Gary Benson <gbenson@redhat.com>
1667 * nat/i386-dregs.h: New file.
1668 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1669 * i386-nat.h (i386-dregs.h): New include.
1670 (DR_FIRSTADDR): Now in i386-dregs.h.
1671 (DR_LASTADDR): Likewise.
1672 (DR_NADDR): Likewise.
1673 (DR_STATUS): Likewise.
1674 (DR_CONTROL): Likewise.
1675 (i386_debug_reg_state): Likewise.
1676 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1678 2014-06-18 Don Breazeal <donb@codesourcery.com>
1680 * breakpoint.c (set_longjmp_breakpoint): Call
1681 momentary_breakpoint_from_master with additional argument.
1682 (set_longjmp_breakpoint_for_call_dummy): Call
1683 momentary_breakpoint_from_master with additional argument.
1684 (set_std_terminate_breakpoint): Call
1685 momentary_breakpoint_from_master with additional argument.
1686 (momentary_breakpoint_from_master): Add argument to function
1687 definition and use it to initialize structure member flag.
1688 (clone_momentary_breakpoint): Call
1689 momentary_breakpoint_from_master with additional argument.
1690 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1691 member flags set in momentary_breakpoint_from_master.
1693 2014-06-18 Gary Benson <gbenson@redhat.com>
1695 * i386-nat.c (i386_show_dr): Renamed to
1696 i386_dr_show and made nonstatic. All uses updated.
1697 (i386_length_and_rw_bits): Renamed to
1698 i386_dr_length_and_rw_bits and made nonstatic.
1700 (i386_insert_aligned_watchpoint): Renamed to
1701 i386_dr_insert_aligned_watchpoint and made nonstatic.
1703 (i386_remove_aligned_watchpoint): Renamed to
1704 i386_dr_remove_aligned_watchpoint and made nonstatic.
1706 (i386_update_inferior_debug_regs): Renamed to
1707 i386_dr_update_inferior_debug_regs and made nonstatic.
1710 2014-06-18 Gary Benson <gbenson@redhat.com>
1712 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1713 (i386_dr_low_can_set_control): Likewise.
1714 (i386_dr_low_set_addr): Likewise.
1715 (i386_dr_low_set_control): Likewise.
1716 (i386_dr_low_get_addr): Likewise.
1717 (i386_dr_low_get_status): Likewise.
1718 (i386_dr_low_get_control): Likewise.
1719 (i386_insert_aligned_watchpoint): Use new macros.
1720 (i386_update_inferior_debug_regs): Likewise.
1721 (i386_stopped_data_address): Likewise.
1723 2014-06-18 Gary Benson <gbenson@redhat.com>
1725 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1726 New parameter. All uses updated.
1728 2014-06-18 Gary Benson <gbenson@redhat.com>
1730 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1733 2014-06-18 Gary Benson <gbenson@redhat.com>
1735 * i386-nat.c (debug_printf): New macro.
1736 (i386_get_debug_register_length): Likewise.
1737 (TARGET_HAS_DR_LEN_8): Use above macro.
1738 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1739 and printf_unfiltered. Use phex to format values.
1741 2014-06-18 Gary Benson <gbenson@redhat.com>
1743 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1746 2014-06-18 Gary Benson <gbenson@redhat.com>
1748 * i386-nat.c: Comment changes.
1750 2014-06-18 Gary Benson <gbenson@redhat.com>
1752 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1754 2014-06-18 Gary Benson <gbenson@redhat.com>
1756 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1757 (i386_insert_aligned_watchpoint): Likewise.
1758 (i386_remove_aligned_watchpoint): Likewise.
1759 (i386_handle_nonaligned_watchpoint): Likewise.
1761 2014-06-18 Gary Benson <gbenson@redhat.com>
1763 * i386-nat.c: Whitespace changes.
1765 2014-06-17 Samuel Bronson <naesten@gmail.com>
1767 * MAINTAINERS: Update Roland McGrath's email address.
1768 Thanks to Sergio Durigan Junior for pointing out that he left
1769 Red Hat a while ago, and giving me a current address.
1771 2014-06-17 Tom Tromey <tromey@redhat.com>
1773 * utils.h (savestring): Remove declaration.
1775 2014-06-17 Tom Tromey <tromey@redhat.com>
1777 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1779 2014-06-16 Keith Seitz <keiths@redhat.com>
1782 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1783 to update the varobj if inferior_ptid is null_ptid.
1785 2014-06-16 Tom Tromey <tromey@redhat.com>
1787 * target.h (struct target_ops) <to_info_proc>: Make parameter
1789 (target_info_proc): Update.
1790 * target.c (target_info_proc): Make "args" const.
1791 * procfs.c (procfs_info_proc): Update.
1792 * linux-tdep.c (linux_info_proc): Update.
1793 (linux_core_info_proc_mappings): Make "args" const.
1794 (linux_core_info_proc): Update.
1795 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1796 * gdbarch.c: Rebuild.
1797 * gdbarch.h: Rebuild.
1798 * corelow.c (core_info_proc): Update.
1800 2014-06-16 Tom Tromey <tromey@redhat.com>
1802 * target.h (struct target_ops) <to_disconnect>: Make parameter
1804 (target_disconnect): Update.
1805 * target.c (target_disconnect): Make "args" const.
1806 * target-delegates.c: Rebuild.
1807 * remote.c (remote_disconnect): Update.
1808 * record.h (record_disconnect): Update.
1809 * record.c (record_disconnect): Update.
1810 * inf-child.c (inf_child_disconnect): Update.
1812 2014-06-16 Tom Tromey <tromey@redhat.com>
1814 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1815 * target.c (debug_to_rcmd, default_rcmd): Update.
1816 * target-delegates.c: Rebuild.
1817 * remote.c (remote_rcmd): Update.
1818 * monitor.c (monitor_rcmd): Update.
1820 2014-06-16 Pedro Alves <palves@redhat.com>
1822 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1823 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1824 have OBJF_SHARED set.
1825 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1826 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1827 instead of OBJF_USERLOADED.
1828 * objfiles.h (OBJF_SHARED): Update comment.
1829 (userloaded_objfile_contains_address_p): Rename to ...
1830 (shared_objfile_contains_address_p): ... this, and update
1832 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1834 (remove_symbol_file_command): Skip objfiles that don't have
1837 2014-06-16 Tom Tromey <tromey@redhat.com>
1839 * minsyms.h (prim_record_minimal_symbol)
1840 (prim_record_minimal_symbol_and_info): Update comments.
1842 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1844 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1845 or --without-guile, according to how GDB was built.
1847 2014-06-13 Tom Tromey <tromey@redhat.com>
1849 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1851 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1853 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1855 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1856 help_list.Pass all_commands, not -1, to help_list.
1857 * cli/cli-dump.c (dump_command, append_command)
1858 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1859 (binary_dump_command, binary_append_command): Pass all_commands,
1860 not -1, to help_list.
1861 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1863 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1865 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1867 * top.c (set_history): Pass all_commands, not -1, to help_list.
1868 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1869 all_commands, not -1, to help_list.
1870 * symfile.c (overlay_command): Pass all_commands, not -1, to
1872 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1874 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1876 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1878 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1879 not -1, to help_list.
1880 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1881 not -1, to help_list.
1882 * maint.c (maintenance_command, maintenance_info_command)
1883 (maintenance_print_command, maintenance_set_cmd): Pass
1884 all_commands, not -1, to help_list.
1885 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1887 * language.c (set_check): Pass all_commands, not -1, to help_list.
1888 * infcmd.c (unset_command): Pass all_commands, not -1, to
1890 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1892 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1894 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1896 * breakpoint.c (save_command): Pass all_commands, not -1, to
1898 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1899 all_commands, not -1, to help_list.
1901 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1903 * regcache.c (struct register_to_invalidate): New structure.
1904 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1906 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1908 2014-06-12 Yao Qi <yao@codesourcery.com>
1910 * varobj.c (varobj_get_num_children): Call
1911 varobj_is_dynamic_p.
1912 (varobj_list_children): Likewise.
1913 (varobj_update): Likewise. Update comments.
1915 2014-06-12 Yao Qi <yao@codesourcery.com>
1917 * varobj.c (varobj_pretty_printed_p): Rename to ...
1918 (varobj_is_dynamic_p): ... this. New function.
1919 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1920 (varobj_is_dynamic_p): Declare.
1921 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1922 (mi_print_value_p, varobj_update_one): Likewise.
1924 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1925 Yao Qi <yao@codesourcery.com>
1927 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1928 (varobj_get_iterator): Wrap up code for pretty-printer by
1929 "#if HAVE_PYTHON" and "#endif".
1930 (update_dynamic_varobj_children): Likewise.
1932 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1933 Yao Qi <yao@codesourcery.com>
1935 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1936 gdb_python_initialized is false. Move some code from varobj.c.
1937 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1938 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1939 (struct varobj_item): Moved to varobj-iter.h".
1940 (varobj_clear_saved_item): New function.
1941 (update_dynamic_varobj_children): Move python-related code to
1943 (free_variable): Call varobj_clear_saved_item and
1946 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1947 Yao Qi <yao@codesourcery.com>
1949 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1950 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1951 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1952 (py-varobj.o): New rule.
1953 * python/py-varobj.c: New file.
1954 * python/python-internal.h (py_varobj_get_iterator): Declare.
1955 * varobj-iter.h: New file.
1956 * varobj.c: Include "varobj-iter.h"
1957 (struct varobj) <child_iter>: Change its type from "PyObject *"
1958 to "struct varobj_iter *".
1959 <saved_item>: Likewise.
1960 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1961 [HAVE_PYTHON] (varobj_get_iterator): New function.
1962 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1963 python-specific code to python/py-varobj.c.
1964 (install_visualizer): Call varobj_iter_delete instead of
1966 * varobj.h (varobj_ensure_python_env): Declare.
1968 2014-06-12 Yao Qi <yao@codesourcery.com>
1970 * varobj.c (struct varobj_item): New structure.
1971 (create_child_with_value): Update declaration.
1972 (varobj_add_child): Replace arguments 'name' and 'value' with
1973 'item'. All callers updated.
1974 (install_dynamic_child): Likewise.
1975 (update_dynamic_varobj_children): Likewise.
1976 (varobj_add_child): Likewise.
1977 (create_child_with_value): Likewise.
1979 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1981 * NEWS: Create a new section for the next release branch.
1982 Rename the section of the current branch, now that it has
1985 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1987 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1988 * version.in: Bump version to 7.8.50.DATE-cvs.
1990 2014-06-11 Pedro Alves <palves@redhat.com>
1993 * ser-mingw.c (net_windows_socket_check_pending): New function.
1994 (net_windows_select_thread): Ignore spurious wakeups. Use
1995 net_windows_socket_check_pending.
1996 (net_windows_wait_handle): Check for pending events with
1997 ioctlsocket, through net_windows_socket_check_pending, instead of
1998 checking the socket's event.
2000 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2002 * python/python-internal.h (gdb_PyObject_GetAttrString)
2003 (gdb_PyObject_HasAttrString): New inline function definitions.
2004 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2005 char * of the second argument to PyObject_GetAttrString.
2007 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2009 * serial.c (serial_write): Fix index of character to be printed
2010 in call to serial_logchar when serial debug traces are enabled.
2012 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2014 * gdbtypes (resolve_dynamic_range): Add function description.
2016 2014-06-09 Pedro Alves <palves@redhat.com>
2018 * linux-nat.c (linux_child_follow_fork): Initialize status with
2019 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2020 inner block. Only pass the signal to PTRACE_DETACH if in pass
2023 2014-06-09 Gary Benson <gbenson@redhat.com>
2025 * common/signals.c (gdb_signal_from_host): Reorder to separate
2026 the always-available ANSI-standard signals from the signals that
2028 (do_gdb_signal_to_host): Likewise.
2029 * proc-events.c (signal_table): Likewise.
2031 2014-06-08 Hui Zhu <hui@codesourcery.com>
2033 * common/linux-ptrace.c (linux_disable_event_reporting): New
2035 * common/linux-ptrace.h (linux_disable_event_reporting): New
2037 * linux-nat.c (linux_child_follow_fork): Do a single step before
2040 2014-06-07 Keith Seitz <keiths@redhat.com>
2044 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2045 from symbol_matches_domain in symtab.c. All local callers
2046 of symbol_matches_domain updated.
2047 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2048 search STRUCT_DOMAIN.
2049 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2050 independently. standard_lookup will do that automatically.
2051 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2052 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2053 (cp_lookup_symbol_in_namespace): Likewise.
2054 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2055 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2056 may return a STRUCT_DOMAIN match.
2057 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2058 * cp-support.c: Include language.h.
2059 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2061 * psymtab.c (match_partial_symbol): Compare the requested
2062 domain with the symbol's domain directly.
2063 (lookup_partial_symbol): Likewise.
2064 * symtab.c (lookup_symbol_in_language): Explain when/why
2065 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2066 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2067 appropriate languages.
2068 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2069 and moved to ada-lang.c
2070 (lookup_block_symbol): Explain that this function only returns
2071 symbol matching the requested DOMAIN.
2072 Compare the requested domain with the symbol's domain directly.
2073 (iterate_over_symbols): Compare the requested domain with the
2074 symbol's domain directly.
2075 * symtab.h (symbol_matches_domain): Remove.
2077 2014-06-06 Doug Evans <xdje42@gmail.com>
2079 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2080 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2081 (gdbscm_guile_version_is_at_least): Declare.
2082 (gdbscm_scm_string_to_int): Declare.
2083 * guile/guile.c (gdbscm_guile_major_version): New global.
2084 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2085 (guile_datadir): New static global.
2086 (gdbscm_guile_data_directory): New function.
2087 (initialize_scheme_side): Update.
2088 (misc_guile_functions): Add guile-data-directory.
2089 (initialize_gdb_module): Fetch guile version number.
2090 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2091 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2092 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2093 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2095 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2096 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2097 * guile/scm-value.c (gdbscm_value_to_string): Only call
2098 scm_port_conversion_strategy if Guile version >= 2.0.6.
2100 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2102 * main.c (print_gdb_help): Add -q and --silent.
2104 2014-06-06 Gary Benson <gbenson@redhat.com>
2106 * common/signals.c: Remove preprocessor conditionals for
2107 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2108 SIGSEGV and SIGTERM.
2109 * proc-events.c: Likewise.
2111 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2113 * symfile.c (symfile_free_objfile): Remove restriction to
2115 * symfile-mem.c (symbol_file_add_from_memory): Call
2116 add_target_sections_of_objfile.
2118 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2120 * guile/scm-value.c (gdbscm_history_append_x): Use
2121 'vlscm_get_value_smob_arg_unsafe' instead of
2122 'vlscm_scm_to_value'.
2124 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2127 * utils.c (printchar): Don't escape at all if quoter is NUL.
2128 Update function documentation to clarify effect of parameter
2130 * remote.c (escape_buffer): Pass '\\' as the quoter to
2131 fputstrn_unfiltered.
2132 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2133 generate the output.
2134 (mi_solib_unloaded): Same.
2136 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2138 * development.sh: Delete.
2139 * Makefile.in (config.status): Adjust dependency on development.sh.
2140 * configure.ac: Adjust development.sh source call.
2141 * configure: Regenerate.
2143 2014-06-04 Doug Evans <xdje42@gmail.com>
2145 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2146 is_scheme_bkpt, spec.
2147 (bpscm_make_breakpoint_smob): Initialize new members.
2148 (gdbscm_create_breakpoint_x): Split into two ...
2149 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2150 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2151 (scheme_function breakpoint_functions): Update.
2152 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2153 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2154 register-breakpoint!.
2156 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2159 * mem-break.c (z_type_supported): Return zero if
2160 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2162 2014-06-04 Tom Tromey <tromey@redhat.com>
2164 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2165 value_from_contents_and_address_unresolved.
2166 (ada_template_to_fixed_record_type_1): Likewise.
2167 (ada_which_variant_applies): Likewise.
2168 * value.h (value_from_contents_and_address_unresolved): Declare.
2169 * value.c (value_from_contents_and_address_unresolved): New
2171 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2172 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2173 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2175 2014-06-04 Tom Tromey <tromey@redhat.com>
2177 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2179 2014-06-04 Tom Tromey <tromey@redhat.com>
2181 * procfs.c (procfs_attach): Make "args" const.
2182 * windows-nat.c (windows_attach): Make "args" const.
2183 * nto-procfs.c (procfs_attach): Make "args" const.
2184 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2185 * go32-nat.c (go32_attach): Make "args" const.
2186 * gnu-nat.c (gnu_attach): Make "args" const.
2187 * darwin-nat.c (darwin_attach): Make "args" const.
2188 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2189 * linux-nat.c (linux_nat_attach): Make "args" const.
2190 * remote.c (extended_remote_attach_1, extended_remote_attach):
2192 * target.h (struct target_ops) <to_attach>: Make "args" const.
2193 (find_default_attach): Likewise.
2194 * utils.c (parse_pid_to_attach): Make "args" const.
2195 * utils.h (parse_pid_to_attach): Update.
2197 2014-06-04 Tom Tromey <tromey@redhat.com>
2199 * target-delegates.c: Rebuild.
2200 * target.c (default_thread_address_space): New function.
2201 (target_thread_address_space): Simplify.
2202 * target.h (struct target_ops) <to_thread_address_space>: Add
2203 TARGET_DEFAULT_FUNC.
2205 2014-06-04 Doug Evans <xdje42@gmail.com>
2207 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2209 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2211 * record-btrace.c: Include event-loop.h and inf-loop.h.
2212 (record_btrace_resume_exec_dir)
2213 (record_btrace_async_inferior_event_handler)
2214 (record_btrace_handle_async_inferior_event): New.
2215 (record_btrace_open): Create async event handler.
2216 (record_btrace_close): Delete async event handler.
2217 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2218 Mark async event handler.
2219 (record_btrace_execution_direction): New.
2220 (init_record_btrace_ops): Initialize to_execution_direction.
2222 2014-06-03 Doug Evans <xdje42@gmail.com>
2224 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2225 (gdbscm_make_parameter): Ditto.
2227 2014-06-03 Doug Evans <dje@google.com>
2229 * exec.c (exec_close_1): Call clear_section_table instead of
2230 resize_section_table.
2231 (clear_section_table): New function.
2232 (resize_section_table): Make static. Rename arg num_added to
2234 * exec.h (clear_section_table): Declare.
2235 (resize_section_table): Delete.
2236 * progspace.c (release_program_space): Call clear_section_table
2237 instead of resize_section_table.
2239 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2241 * NEWS (Python Scripting): Add entry about the new xmethods
2244 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2246 * python/py-xmethods.c: New file.
2247 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2248 (objfpy_dealloc): XDECREF on the new xmethods field.
2249 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2251 (objfpy_get_xmethods): New function.
2252 (objfile_getset): New entry 'xmethods'.
2253 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2254 (pspy_dealloc): XDECREF on the new xmethods field.
2255 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2257 (pspy_get_xmethods): New function.
2258 (pspace_getset): New entry 'xmethods'.
2259 * python/python-internal.h: Add declarations for new functions.
2260 * python/python.c (_initialize_python): Invoke
2261 gdbpy_initialize_xmethods.
2262 * python/lib/gdb/__init__.py (xmethods): New
2264 * python/lib/gdb/xmethod.py: New file.
2265 * python/lib/gdb/command/xmethods.py: New file.
2267 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2269 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2270 best match method returned by find_overload_match is an xmethod.
2271 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2272 the best matching operator returned by find_overload_match is an
2274 * valops.c: #include "extension.h".
2275 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2276 Return void. The list of matching source methods is returned in
2277 "fn_list" and a vector of matching debug method workers is
2278 returned in "xm_worker_vec". Update all callers.
2279 (value_find_oload_method_list): Likewise.
2280 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2281 non-NULL, then the index of the best matching method in this
2282 vector is returned. Update all callers.
2283 (find_overload_match): Include xmethods while performing overload
2286 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2288 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2289 * extension-priv.h (struct extension_language_ops): Add the
2291 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2292 get_matching_xmethod_workers, get_xmethod_argtypes,
2293 invoke_xmethod, free_xmethod_worker,
2294 free_xmethod_worker_vec): New functions.
2295 * extension.h: #include "common/vec.h".
2296 New function declarations.
2297 (struct xmethod_worker): New struct.
2298 (VEC (xmethod_worker_ptr)): New vector type.
2299 (xmethod_worker_ptr): New typedef.
2300 (xmethod_worker_vec): Likewise.
2301 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2303 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2304 (struct builtin_type): New field "xmethod".
2305 * valarith.c (value_ptradd): Assert that the value argument is not
2307 * valops.c (value_must_coerce_to_target): Return 0 for
2308 lval_xcallable values.
2309 * value.c (struct value): New field XM_WORKER in the field
2311 (value_address, value_raw_address): Return 0 for lval_xcallable
2313 (set_value_address): Assert that the value is not an
2315 (value_free): Free the associated xmethod worker when freeing
2316 lval_xcallable values.
2317 (set_value_component_location): Assert that the WHOLE value is not
2319 (value_of_xmethod, call_xmethod): New functions.
2320 * value.h: Declare "struct xmethod_worker".
2321 Declare new functions value_of_xmethod, call_xmethod.
2323 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2324 Pedro Alves <palves@redhat.com>
2326 PR breakpoints/17000
2327 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2328 New function, extracted from software_breakpoint_inserted_here_p.
2329 (software_breakpoint_inserted_here_p): Replace factored out code
2330 by call to find_non_raw_software_breakpoint_inserted_here.
2331 (bp_target_info_copy_insertion_state): New function.
2332 (bkpt_insert_location): Handle the case of a single-step
2333 breakpoint already inserted at the same address.
2334 (bkpt_remove_location): Handle the case of a single-step
2335 breakpoint still inserted at the same address.
2336 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2337 breakpoint already inserted at the same address.
2338 (deprecated_remove_raw_breakpoint): Handle the case of a
2339 non-raw breakpoint still inserted at the same address.
2340 (find_single_step_breakpoint): New function, extracted from
2341 single_step_breakpoint_inserted_here_p.
2342 (find_single_step_breakpoint): New function,
2343 factored out from single_step_breakpoint_inserted_here_p.
2344 (single_step_breakpoint_inserted_here_p): Reimplement.
2346 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2348 Pushed by Joel Brobecker <brobecker@adacore.com>
2349 * source.c (show_substitute_path_command): Fix display of matching
2352 2014-06-03 Gary Benson <gbenson@redhat.com>
2354 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2356 2014-06-02 Doug Evans <xdje42@gmail.com>
2358 Add parameter support for Guile.
2359 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2360 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2361 (scm-param.o): New rule.
2362 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2363 (gdbscm_misc_error): Declare.
2364 (gdbscm_canonicalize_command_name): Declare.
2365 (gdbscm_scm_to_host_string): Declare.
2366 (gdbscm_scm_from_host_string): Declare.
2367 (gdbscm_initialize_parameters): Declare.
2368 * guile/guile.c (initialize_gdb_module): Call
2369 gdbscm_initialize_parameters.
2370 * guile/lib/gdb.scm: Export parameter symbols.
2371 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2372 cmdscm_canonicalize_name and made public. All callers updated.
2373 * guile/scm-exception.c (gdbscm_misc_error): New function.
2374 * guile/scm-param.c: New file.
2375 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2376 (gdbscm_scm_to_host_string): New function.
2377 (gdbscm_scm_from_host_string): New function.
2378 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2380 2014-06-02 Doug Evans <xdje42@gmail.com>
2382 Add command support for Guile.
2383 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2384 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2385 (scm-cmd.o): New rule.
2386 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2387 (gdbscm_user_error_p): Declare.
2388 (gdbscm_parse_command_name): Declare.
2389 (gdbscm_valid_command_class_p): Declare.
2390 (gdbscm_initialize_commands): Declare.
2391 * guile/guile.c (initialize_gdb_module): Call
2392 gdbscm_initialize_commands.
2393 * guile/lib/gdb.scm: Export command symbols.
2394 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2395 (throw-user-error): New function.
2396 * guile/scm-cmd.c: New file.
2397 * guile/scm-exception.c (user_error_symbol): New static global.
2398 (gdbscm_user_error_p): New function.
2399 (gdbscm_initialize_exceptions): Set user_error_symbol.
2400 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2402 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2404 * top.c (command_loop): Handle comments here...
2405 (command_line_input): ... not here.
2407 2014-06-02 Doug Evans <xdje42@gmail.com>
2409 Add progspace support for Guile.
2410 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2411 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2412 (scm-progspace.o): New rule.
2413 * guile/guile-internal.h (pspace_smob): New typedef.
2414 (psscm_pspace_smob_pretty_printers): Declare.
2415 (psscm_pspace_smob_from_pspace): Declare.
2416 (psscm_scm_from_pspace): Declare.
2417 * guile/guile.c (initialize_gdb_module): Call
2418 gdbscm_initialize_pspaces.
2419 * guile/lib/gdb.scm: Export progspace symbols.
2420 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2422 (append-pretty-printer!): Ditto.
2423 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2425 * guile/scm-progspace.c: New file.
2427 2014-06-03 Alan Modra <amodra@gmail.com>
2429 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2430 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2432 2014-06-02 Doug Evans <dje@google.com>
2434 Add support for skeletonless type units.
2435 * dwarf2read.c (struct dwarf2_per_objfile): New member
2436 n_allocated_type_units.
2437 (struct dwarf2_per_objfile) <tu_stats>: New member
2438 nr_all_type_units_reallocs.
2439 (create_signatured_type_table_from_index): Initialize
2440 n_allocated_type_units
2441 (create_all_type_units): Ditto.
2442 (add_type_unit): Move up in file. New arg slot.
2443 All callers updated. Increase space for all_type_units more
2445 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2446 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2447 (lookup_dwp_signatured_type): Ditto.
2448 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2449 All callers updated.
2450 (build_type_psymtabs_1): Leave type_unit_groups as
2451 NULL if no TUs present.
2452 (print_tu_stats): New function.
2453 (process_skeletonless_type_unit): New function.
2454 (process_dwo_file_for_skeletonless_type_units): New
2456 (process_skeletonless_type_units): New function.
2457 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2458 Call print tu_stats if debugging enabled.
2460 2014-06-02 Pedro Alves <palves@redhat.com>
2462 * breakpoint.c (build_target_command_list): Don't build a command
2463 list if we have any duplicate location that isn't a dprintf.
2465 2014-06-02 Pedro Alves <palves@redhat.com>
2467 * breakpoint.c (dprintf_breakpoint_hit): New function.
2468 (initialize_breakpoint_ops): Install it as dprintf's
2469 breakpoint_hit method.
2471 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2473 * source.c (substitute_path_rule_matches): Simplify using
2474 filename_ncmp instead of FILENAME_CMP.
2476 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2478 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2480 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2482 * configure.ac: When Guile is available, check for the
2483 availability of 'scm_new_smob'.
2484 * configure, config.h.in: Regenerate.
2485 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2488 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2490 * frame.c (struct frame_info): Add stop_string field.
2491 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2492 (get_prev_frame_always): Old content moved into
2493 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2494 TRY_CATCH, handle MEMORY_ERROR exceptions.
2495 (frame_stop_reason_string): New function definition.
2496 * frame.h (unwind_stop_reason_to_string): Extend comment to
2497 mention frame_stop_reason_string.
2498 (frame_stop_reason_string): New function declaration.
2499 * stack.c (frame_info): Switch to frame_stop_reason_string.
2500 (backtrace_command_1): Switch to frame_stop_reason_string.
2501 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2502 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2503 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2505 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2507 * frame.c (frame_stop_reason_string): Rename to ...
2508 (unwind_stop_reason_to_string): this.
2509 * frame.h (frame_stop_reason_string): Rename to ...
2510 (unwind_stop_reason_to_string): this.
2511 * stack.c (frame_info): Update call to frame_stop_reason_string.
2512 (backtrace_command_1): Likewise.
2513 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2514 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2516 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2518 * frame.c (remove_prev_frame): New function.
2519 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2522 2014-05-29 Pedro Alves <palves@redhat.com>
2524 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2525 and make it const. When a single-step decays to a continue,
2526 clear 'step', not 'hw_step'. Pass whether the caller wanted
2527 to step to user_visible_resume_ptid, not what we ask the
2530 2014-05-29 Pedro Alves <palves@redhat.com>
2532 * infrun.c (process_event_stop_test, handle_step_into_function)
2533 (handle_step_into_function_backward): Adjust.
2534 Don't set the even thread's stop_step and call stop_waiting before
2535 calling end_stepping_range. Instead do that ...
2536 (end_stepping_range): ... here. Take an ecs pointer parameter.
2538 2014-05-29 Pedro Alves <palves@redhat.com>
2540 * infrun.c (stop_stepping): Rename to ...
2541 (stop_waiting): ... this.
2542 (proceed): Update comment.
2543 (process_event_stop_test, handle_inferior_event)
2544 (handle_signal_stop, handle_step_into_function)
2545 (handle_step_into_function_backward): Update.
2547 2014-05-29 Pedro Alves <palves@redhat.com>
2549 * infcall.c (run_inferior_call): Don't check whether the current
2550 thread is running after the proceed call.
2552 2014-05-29 Pedro Alves <palves@redhat.com>
2553 Tom Tromey <tromey@redhat.com>
2555 * NEWS: Mention "maint set target-async", "set mi-async", and that
2556 background execution commands are now always available.
2557 * target.h (target_async_permitted): Update comment.
2558 * target.c (target_async_permitted, target_async_permitted_1):
2560 (set_target_async_command): Rename to ...
2561 (maint_set_target_async_command): ... this.
2562 (show_target_async_command): Rename to ...
2563 (maint_show_target_async_command): ... this.
2564 (_initialize_target): Adjust.
2565 * infcmd.c (prepare_execution_command): Make extern.
2566 * inferior.h (prepare_execution_command): Declare.
2567 * infrun.c (set_observer_mode): Leave target async alone.
2568 * mi/mi-interp.c (mi_interpreter_init): Install
2569 mi_on_sync_execution_done as sync_execution_done observer.
2570 (mi_on_sync_execution_done): New function.
2571 (mi_execute_command_input_handler): Don't print the prompt if we
2572 just started a synchronous command with an async target.
2573 (mi_on_resume): Check sync_execution before printing prompt.
2574 * mi/mi-main.h (mi_async_p): Declare.
2575 * mi/mi-main.c: Include gdbcmd.h.
2576 (mi_async_p): New function.
2577 (mi_async, mi_async_1): New globals.
2578 (set_mi_async_command, show_mi_async_command, mi_async): New
2580 (exec_continue): Call prepare_execution_command.
2581 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2582 (mi_execute_async_cli_command): Use mi_async_p.
2583 (_initialize_mi_main): Install "set mi-async". Make
2584 "target-async" a deprecated alias.
2586 2014-05-29 Pedro Alves <palves@redhat.com>
2588 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2589 (_initialize_cli_interp): Adjust.
2590 * event-loop.c: Include "observer.h".
2591 (start_event_loop): Notify 'command_error' observers instead of
2592 calling display_gdb_prompt. Remove FIXME comment.
2593 * event-top.c (display_gdb_prompt): Remove call into the
2595 * inf-loop.c: Include "observer.h".
2596 (inferior_event_handler): Notify 'command_error' observers instead
2597 of calling display_gdb_prompt.
2598 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2599 observers instead of calling display_gdb_prompt.
2600 * interps.c (interp_set): Don't call display_gdb_prompt.
2601 (current_interp_display_prompt_p): Delete.
2602 * interps.h (interp_prompt_p): Delete declaration.
2603 (interp_prompt_p_ftype): Delete.
2604 (struct interp_procs) <prompt_proc_p>: Delete field.
2605 (current_interp_display_prompt_p): Delete declaration.
2606 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2607 (_initialize_mi_interp): Adjust.
2608 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2609 'command_error' observers.
2610 (tui_on_sync_execution_done, tui_on_command_error): New
2612 (tui_display_prompt_p): Delete.
2613 (_initialize_tui_interp): Adjust.
2615 2014-05-29 Pedro Alves <palves@redhat.com>
2618 * cli/cli-interp.c: Include infrun.h and observer.h.
2619 (cli_uiout, cli_interp): New globals.
2620 (cli_on_signal_received, cli_on_end_stepping_range)
2621 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2623 (cli_interpreter_init): Install them as 'end_stepping_range',
2624 'signal_received' 'signal_exited', 'exited' and 'no_history'
2626 (_initialize_cli_interp): Remove cli_interp local.
2627 * infrun.c (handle_inferior_event): Call the several stop reason
2628 observers instead of printing the stop reason directly.
2629 (end_stepping_range): New function.
2630 (print_end_stepping_range_reason, print_signal_exited_reason)
2631 (print_exited_reason, print_signal_received_reason)
2632 (print_no_history_reason): Make static, and add an uiout
2633 parameter. Print to that instead of to CURRENT_UIOUT.
2634 * infrun.h (print_end_stepping_range_reason)
2635 (print_signal_exited_reason, print_exited_reason)
2636 (print_signal_received_reason print_no_history_reason): New
2638 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2640 <cli_uiout>: New field.
2641 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2642 uiout for CLI output. Install 'signal_received',
2643 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2645 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2646 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2647 (mi_on_no_history): New functions.
2648 (ui_out_free_cleanup): Delete function.
2649 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2650 instead use the one already stored in the MI interpreter data.
2651 (mi_ui_out): Adjust.
2652 * tui/tui-interp.c: Include infrun.h and observer.h.
2653 (tui_interp): New global.
2654 (tui_on_signal_received, tui_on_end_stepping_range)
2655 (tui_on_signal_exited, tui_on_exited)
2656 (tui_on_no_history): New functions.
2657 (tui_init): Install them as 'end_stepping_range',
2658 'signal_received' 'signal_exited', 'exited' and 'no_history'
2660 (_initialize_tui_interp): Delete tui_interp local.
2662 2014-05-29 Pedro Alves <palves@redhat.com>
2665 * linux-nat.c (linux_nat_resume_callback): Rename the second
2666 parameter to 'except'. Skip LP if it points to EXCEPT.
2667 (linux_nat_resume): Don't mark the event lwp as not stopped
2668 before resuming sibling lwps. Instead ask
2669 linux_nat_resume_callback to skip the event lwp. Mark it as not
2670 stopped after actually resuming it.
2671 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2673 (wait_lwp): Mark the lwp as stopped here.
2674 (stop_wait_callback): Mark the lwp as not stopped right after
2675 resuming it. Don't mark lwps as stopped here.
2676 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2677 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2679 2014-05-29 Pedro Alves <palves@redhat.com>
2682 * infrun.c (resume): Determine how much to resume depending on
2683 whether the caller wanted a step, not whether we can hardware step
2684 the target. Mark all threads that we intend to run as running,
2685 unless we're calling an inferior function.
2686 (normal_stop): If the thread is running an infcall, don't finish
2688 * target.c (target_resume): Don't mark threads as running here.
2690 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2692 * serial.c (_initialize_serial): Remove support for
2693 the "set remotebaud" and "show remotebaud" commands.
2694 * NEWS: Add entry documenting the removal of that command.
2696 2014-05-28 Yao Qi <yao@codesourcery.com>
2698 * charset.c: Fix typo in comments.
2700 2014-05-27 Gary Benson <gbenson@redhat.com>
2702 * utils.c (internal_vproblem): Prompt for a bug report.
2704 2014-05-26 Andy Wingo <wingo@igalia.com>
2706 * guile/scm-arch.c (arscm_mark_arch_smob):
2707 * guile/scm-block.c (bkscm_mark_block_smob)
2708 (bkscm_mark_block_syms_progress_smob):
2709 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2710 * guile/scm-exception.c (exscm_mark_exception_smob):
2711 * guile/scm-frame.c (frscm_mark_frame_smob):
2712 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2713 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2714 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2715 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2716 (ppscm_mark_pretty_printer_worker_smob):
2717 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2718 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2719 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2720 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2722 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2725 2014-05-26 Andy Wingo <wingo@igalia.com>
2726 Doug Evans <xdje42@gmail.com>
2728 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2729 empty_base_class. All uses updated.
2730 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2731 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2733 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2734 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2735 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2736 (gdbscm_gsmob_has_property_p, add_property_name)
2737 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2738 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2739 (gdb-object-has-property?, gdb-object-properties): Remove.
2740 (gdb-object-kind): Renamed from gsmob-kind.
2742 2014-05-26 Andy Wingo <wingo@igalia.com>
2744 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2745 * configure: Regenerate.
2747 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2749 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2751 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2753 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2754 (replay_memory_access_read_only, replay_memory_access_read_write)
2755 (replay_memory_access_types, replay_memory_access)
2756 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2757 (cmd_set_record_btrace, cmd_show_record_btrace)
2758 (cmd_show_replay_memory_access): New.
2759 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2760 (record_btrace_remove_breakpoint): Replace
2761 record_btrace_allow_memory_access with replay_memory_access.
2762 (_initialize_record_btrace): Add commands.
2763 * NEWS: Announce it.
2765 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2767 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2769 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2771 * MAINTAINERS (Write After Approval): Move self back from
2774 2014-05-22 Pedro Alves <palves@redhat.com>
2776 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2777 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2778 (disable_randomization, enum exec_direction_kind)
2779 (execution_direction, stop_registers, start_remote)
2780 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2781 (wait_for_inferior, normal_stop, get_last_target_status)
2782 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2783 (insert_step_resume_breakpoint_at_sal)
2784 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2785 (set_step_info, print_stop_event, signal_stop_state)
2786 (signal_print_state, signal_pass_state, signal_stop_update)
2787 (signal_print_update, signal_pass_update)
2788 (update_signals_program_target, clear_exit_convenience_vars)
2789 (displaced_step_dump_bytes, update_observer_mode)
2790 (signal_catch_update, gdb_signal_from_command): Move
2792 * infrun.h: ... to this new file.
2793 * amd64-tdep.c: Include infrun.h.
2794 * annotate.c: Include infrun.h.
2795 * arch-utils.c: Include infrun.h.
2796 * arm-linux-tdep.c: Include infrun.h.
2797 * arm-tdep.c: Include infrun.h.
2798 * break-catch-sig.c: Include infrun.h.
2799 * breakpoint.c: Include infrun.h.
2800 * common/agent.c: Include infrun.h instead of inferior.h.
2801 * corelow.c: Include infrun.h.
2802 * event-top.c: Include infrun.h.
2803 * go32-nat.c: Include infrun.h.
2804 * i386-tdep.c: Include infrun.h.
2805 * inf-loop.c: Include infrun.h.
2806 * infcall.c: Include infrun.h.
2807 * infcmd.c: Include infrun.h.
2808 * infrun.c: Include infrun.h.
2809 * linux-fork.c: Include infrun.h.
2810 * linux-nat.c: Include infrun.h.
2811 * linux-thread-db.c: Include infrun.h.
2812 * monitor.c: Include infrun.h.
2813 * nto-tdep.c: Include infrun.h.
2814 * procfs.c: Include infrun.h.
2815 * record-btrace.c: Include infrun.h.
2816 * record-full.c: Include infrun.h.
2817 * remote-m32r-sdi.c: Include infrun.h.
2818 * remote-mips.c: Include infrun.h.
2819 * remote-notif.c: Include infrun.h.
2820 * remote-sim.c: Include infrun.h.
2821 * remote.c: Include infrun.h.
2822 * reverse.c: Include infrun.h.
2823 * rs6000-tdep.c: Include infrun.h.
2824 * s390-linux-tdep.c: Include infrun.h.
2825 * solib-irix.c: Include infrun.h.
2826 * solib-osf.c: Include infrun.h.
2827 * solib-svr4.c: Include infrun.h.
2828 * target.c: Include infrun.h.
2829 * top.c: Include infrun.h.
2830 * windows-nat.c: Include infrun.h.
2831 * mi/mi-interp.c: Include infrun.h.
2832 * mi/mi-main.c: Include infrun.h.
2833 * python/py-threadevent.c: Include infrun.h.
2835 2014-05-22 Pedro Alves <palves@redhat.com>
2837 * infrun.c (handle_inferior_event): Store the exit code for
2838 --return-child-result here, instead of ...
2839 (print_exited_reason): ... here.
2841 2014-05-21 Pedro Alves <palves@redhat.com>
2844 * gdbthread.h (struct thread_control_state): New field
2846 * infrun.c (follow_fork): Copy the new thread control field to the
2848 (clear_proceed_status_thread): Clear the new thread control field.
2849 (proceed): Set the new thread control field.
2850 * interps.h (command_interp): Declare.
2851 * interps.c (command_interpreter): New global.
2852 (command_interp): New function.
2853 (interp_exec): Set `command_interpreter' while here.
2854 * cli-out.c (cli_uiout_dtor): New function.
2855 (cli_ui_out_impl): Install it.
2856 * mi/mi-interp.c: Include cli-out.h.
2857 (mi_cmd_interpreter_exec): Add comment.
2858 (restore_current_uiout_cleanup): New function.
2859 (ui_out_free_cleanup): New function.
2860 (mi_on_normal_stop): If finishing an execution command started by
2861 a CLI command, or any kind of breakpoint-like event triggered,
2862 print the stop event to the output (CLI) stream.
2863 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2865 2014-05-21 Pedro Alves <palves@redhat.com>
2867 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2868 current source line having changed.
2869 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2870 * infrun.c (normal_stop): Adjust call to
2871 set_current_sal_from_frame.
2872 * source.c (clear_lines_listed_range): New function.
2873 (set_current_source_symtab_and_line, identify_source_line): Clear
2874 the lines listed range.
2875 (line_info): Handle the first "info line" after the current source
2876 line having changed.
2877 * stack.c (print_stack_frame): Remove center handling.
2878 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2881 2014-05-21 Pedro Alves <palves@redhat.com>
2883 * inf-child.c (inf_child_mourn_inferior): New function.
2884 * inf-child.h (inf_child_mourn_inferior): New declaration.
2885 * darwin-nat.c (darwin_mourn_inferior): Use
2886 inf_child_mourn_inferior.
2887 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2888 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2889 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2890 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2891 * windows-nat.c (windows_mourn_inferior): Likewise.
2893 2014-05-21 Doug Evans <xdje42@gmail.com>
2895 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2897 2014-05-21 Doug Evans <xdje42@gmail.com>
2899 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2900 (gdbscm_out_of_range_error): Ditto.
2901 (gdbscm_memory_error): Ditto.
2902 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2903 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2904 (gdbscm_out_of_range_error): Update.
2905 (gdbscm_memory_error): Update.
2906 (gdbscm_scm_to_target_string_unsafe): Delete.
2908 2014-05-21 Pedro Alves <palves@redhat.com>
2910 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2912 (inf_child_open_target): New function.
2913 (inf_child_open): Use inf_child_open_target to push the target
2914 instead of erroring out.
2915 (inf_child_disconnect, inf_child_close)
2916 (inf_child_maybe_unpush_target): New functions.
2917 (inf_child_target): Install inf_child_disconnect and
2918 inf_child_close. Store a pointer to the returned object.
2919 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2921 * target.c (auto_connect_native_target): New global.
2922 (show_default_run_target): New function.
2923 (find_default_run_target): Return NULL if automatically connecting
2924 to the native target is disabled.
2925 (_initialize_target): Install set/show auto-connect-native-target.
2926 * NEWS: Mention "set auto-connect-native-target", and "target
2928 * linux-nat.c (super_close): New global.
2929 (linux_nat_close): Call super_close.
2930 (linux_nat_add_target): Store a pointer to the base class's
2932 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2933 inf_child_maybe_unpush.
2934 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2936 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2937 the inferior. Use inf_child_maybe_unpush_target.
2938 (inf_ttrace_attach): Don't push the target if it is already
2940 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2941 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2942 after mourning the inferior. Use inf_child_maybe_unpush_target.
2943 (darwin_attach_pid): Don't push the target if it is already
2945 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2946 mourning the inferior. Use inf_child_maybe_unpush_target.
2947 (gnu_detach): Use inf_child_maybe_unpush_target.
2948 * go32-nat.c (go32_create_inferior): Don't push the target if it
2950 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2951 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2952 (procfs_open): Rename to ...
2953 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2954 comments. Can target_preopen before changing node. Call
2955 inf_child_open_target to push the target explicitly.
2956 (procfs_attach): Don't push the target if it is already pushed.
2957 (procfs_detach): Use inf_child_maybe_unpush_target.
2958 (procfs_create_inferior): Don't push the target if it is already
2960 (nto_native_ops): New global.
2961 (procfs_open): Reimplement.
2962 (procfs_native_open): New function.
2963 (init_procfs_targets): Install procfs_native_open as to_open of
2964 "target native". Store a pointer to the "native" target in
2966 * procfs.c (procfs_attach): Don't push the target if it is already
2968 (procfs_detach): Use inf_child_maybe_unpush_target.
2969 (procfs_mourn_inferior): Only unpush the target after mourning the
2970 inferior. Use inf_child_maybe_unpush_target.
2971 (procfs_init_inferior): Don't push the target if it is already
2973 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2974 if it is already pushed.
2976 2014-05-21 Pedro Alves <palves@redhat.com>
2978 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2979 and "procfs" targets are now called "native" instead.
2981 2014-05-21 Pedro Alves <palves@redhat.com>
2983 * go32-nat.c (go32_open): Delete.
2984 (go32_target): Don't override the to_open method.
2986 2014-05-21 Pedro Alves <palves@redhat.com>
2988 * nto-procfs.c (procfs_can_run): New function.
2989 (nto_procfs_ops): New global.
2990 (init_procfs_targets): New, based on procfs_target. Install
2991 "target native" in addition to "target procfs".
2992 (_initialize_procfs): Call init_procfs_targets instead of adding
2995 2014-05-21 Pedro Alves <palves@redhat.com>
2997 * windows-nat.c (windows_target): Don't override to_shortname,
2998 to_longname or to_doc.
3000 2014-05-21 Pedro Alves <palves@redhat.com>
3002 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3005 2014-05-21 Pedro Alves <palves@redhat.com>
3007 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3008 to_shortname, to_longname or to_doc.
3010 2014-05-21 Pedro Alves <palves@redhat.com>
3012 * go32-nat.c (go32_target): Don't override to_shortname,
3013 to_longname or to_doc.
3015 2014-05-21 Pedro Alves <palves@redhat.com>
3017 * inf-child.c (inf_child_open): Remove mention of "child".
3018 (inf_child_target): Rename target to "native" instead of "child".
3020 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3022 * Makefile.in (SFILES): Delete "regset.c".
3023 (COMMON_OBS): Delete "regset.o".
3025 * regset.h (regset_alloc): Delete prototype.
3027 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3029 * sparc-linux-tdep.c (sparc32_linux_gregset)
3030 (sparc32_linux_fpregset): New static regset structures.
3031 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3032 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3034 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3035 (sparc64_linux_fpregset): New static regset structures.
3036 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3037 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3038 New static regset structures.
3039 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3040 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3041 New static regset structures.
3042 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3043 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3044 New static regset structures.
3045 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3046 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3047 New static regset structures.
3048 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3050 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3052 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3053 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3054 register maps ("regmaps") from "*regset" to "*regmap". Do this
3055 for all regmap types and variables.
3056 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3057 (sparc32_linux_supply_core_gregset)
3058 (sparc32_linux_collect_core_gregset)
3059 (sparc32_linux_supply_core_fpregset)
3060 (sparc32_linux_collect_core_fpregset): Likewise.
3061 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3062 (sparc_gregmap, sparc_fpregmap): ... these.
3063 (sparc_supply_gregset, sparc_collect_gregset)
3064 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3065 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3066 (_initialize_sparc_nat): Rename regmaps.
3067 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3068 (sparc_gregmap, sparc_fpregmap): ... these.
3069 (sparc_supply_gregset, sparc_collect_gregset)
3070 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3071 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3073 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3074 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3076 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3078 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3079 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3080 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3082 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3083 (sparc32_bsd_fpregset): Rename to...
3084 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3085 (sparc32_bsd_fpregmap): ... these.
3086 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3087 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3088 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3089 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3090 (struct sparc_gregmap, struct sparc_fpregmap)
3091 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3092 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3093 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3094 (sparc32_supply_regset, sparc32_collect_gregset)
3095 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3097 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3098 (sparc64_linux_ptrace_gregmap): ... this.
3099 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3100 (_initialize_sparc64_linux_nat): Rename regmaps.
3101 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3102 (sparc64_linux_core_gregmap): ... this.
3103 (sparc64_linux_supply_core_gregset)
3104 (sparc64_linux_collect_core_gregset)
3105 (sparc64_linux_supply_core_fpregset)
3106 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3107 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3108 (sparc64_sol2_fpregset): Rename to...
3109 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3110 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3111 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3113 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3114 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3115 (sparc64_bsd_fpregset): Rename to...
3116 (struct sparc_gregmap, sparc64_sol2_gregmap)
3117 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3118 (sparc64_bsd_fpregmap): ... these.
3119 (sparc64_supply_gregset, sparc64_collect_gregset)
3120 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3122 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3123 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3124 (sparc64fbsd_gregmap): ... this.
3125 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3126 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3128 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3129 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3130 (sparc64nbsd_collect_fpregset): Likewise.
3131 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3132 (sparc64nbsd_gregmap): ... this.
3133 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3135 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3136 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3137 (sparc64obsd_gregmap): ... this.
3138 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3140 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3141 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3142 (sparc32nbsd_gregmap): ... this.
3143 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3146 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3148 * score-tdep.c (score7_linux_gregset): New static regset
3150 (score7_linux_regset_from_core_section): Remove dynamic regset
3152 (score_gdbarch_init): Drop allocation of tdep structure.
3153 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3155 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3157 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3159 (am33_regset_from_core_section): Remove dynamic regset
3162 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3164 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3165 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3167 (mips_linux_regset_from_core_section): Remove dynamic regset
3169 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3170 'gregset64', 'fpregset', and 'fpregset64'.
3171 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3172 deleted tdep fields.
3174 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3176 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3178 (amd64_regset_from_core_section): Remove dynamic regset
3180 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3182 (amd64obsd_regset_from_core_section): Remove dynamic regset
3184 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3186 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3187 x86-common regset supply function.
3188 * i386-tdep.c (i386_collect_gregset): Make static.
3189 (i386_gregset): New global regset structure.
3190 (i386_fpregset, i386_xstateregset): New static regset structures.
3191 (i386_regset_from_core_section): Remove dynamic regset
3193 (i386_gdbarch_init): Remove initialization of tdep fields
3194 'gregset', 'fpregset', and 'xstateregset'.
3195 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3196 'fpregset', and 'xstateregset'.
3197 (i386_collect_gregset): Remove prototype.
3198 (i386_gregset): New declaration.
3199 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3201 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3204 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3206 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3207 (arm_linux_vfpregset): New static regset structures.
3208 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3210 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3211 and 'vfpregset' fields.
3213 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3215 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3216 (aarch64_linux_fpregset): New static regset structures.
3217 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3218 of regset structures.
3219 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3222 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3224 * regset.h (struct regset): Remove gdbarch field.
3225 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3226 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3227 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3229 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3230 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3231 (ppc32_linux_vsxregset): Likewise.
3232 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3233 via the regcache instead of the regset.
3234 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3235 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3236 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3237 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3240 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3242 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3243 Constify structures.
3244 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3245 (alphanbsd_aout_gregset): Likewise.
3246 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3247 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3249 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3250 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3252 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3253 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3254 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3255 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3256 * m88k-tdep.c (m88k_gregset): Likewise.
3257 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3258 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3259 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3260 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3261 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3262 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3263 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3264 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3265 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3267 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3268 * sh-tdep.h (sh_corefile_gregset): Likewise.
3269 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3270 * vax-tdep.c (vax_gregset): Likewise.
3272 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3274 Fix TLS access for -static -pthread.
3275 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3276 (try_thread_db_load_1): Initialize it.
3277 (thread_db_get_thread_local_address): Call it if LM is zero.
3278 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3279 * target.h (struct target_ops) (to_get_thread_local_address): Add
3280 load_module_addr comment.
3282 2014-05-21 Pedro Alves <palves@redhat.com>
3284 * dcache.c (dcache_read_memory_partial): If reading the cache line
3285 fails, fallback to reading just the memory the caller wanted.
3287 2014-05-20 Doug Evans <dje@google.com>
3289 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3290 instead of get_current_arch.
3292 2014-05-20 Pedro Alves <palves@redhat.com>
3294 * NEWS: Mention that compare-sections now works with all targets.
3296 * remote.c (PACKET_qCRC): New enum value.
3297 (remote_verify_memory): Don't send qCRC if the target has no
3298 execution. Use packet_support/packet_ok. If the target doesn't
3299 support the qCRC packet, fallback to a deep memory copy.
3300 (compare_sections_command): Say "target image" instead of "remote
3302 (_initialize_remote): Add PACKET_qCRC to the list of config
3303 packets that have no associated command. Extend comment.
3304 * target.c (simple_verify_memory, default_verify_memory): New
3306 * target.h (struct target_ops) <to_verify_memory>: Default to
3307 default_verify_memory.
3308 (simple_verify_memory): New declaration.
3309 * target-delegates.c: Regenerate.
3311 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3313 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3315 2014-05-20 Hui Zhu <hui@codesourcery.com>
3316 Yao Qi <yao@codesourcery.com>
3319 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3320 and change address of sp and pc.
3322 2014-05-19 Tom Tromey <tromey@redhat.com>
3324 * gdbtypes.c (rank_function): Use XNEWVEC.
3325 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3327 2014-05-19 Doug Evans <dje@google.com>
3329 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3330 build_type_unit_groups and moved closer to only caller. Remove
3331 arguments. All references updated. Remove outdated .gdb_index
3333 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3334 build_type_psymtabs_1.
3336 2014-05-19 Doug Evans <dje@google.com>
3338 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3339 n_type_unit_groups, all_type_unit_groups. All uses removed.
3340 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3341 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3342 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3343 (add_type_unit_group_to_table): Delete.
3345 2014-05-19 Doug Evans <dje@google.com>
3347 * eval.c (evaluate_subexp_standard): Add some comments.
3349 2014-05-17 Doug Evans <xdje42@gmail.com>
3351 * progspace.c (remove_program_space): Delete, unused.
3352 * progspace.h (remove_program_space): Ditto.
3354 2014-05-17 Doug Evans <xdje42@gmail.com>
3356 * inferior.c (prune_inferiors): Fix comment.
3357 (remove_inferior_command): Call prune_program_spaces.
3359 2014-05-16 Doug Evans <dje@google.com>
3361 New command line option -D.
3363 * main.c (set_gdb_data_directory): New function.
3364 (captured_main): Recognize -D. Flag error for --data-directory "".
3365 Call set_gdb_data_directory.
3366 (print_gdb_help): Print --data-directory, -D.
3367 * main.h (set_gdb_data_directory): Declare.
3368 * top.c (staged_gdb_datadir): New static global.
3369 (set_gdb_datadir): Call set_gdb_data_directory
3370 (show_gdb_datadir): New function.
3371 (init_main): Update init of data-directory parameter.
3373 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3375 Import the "dirfd" gnulib module.
3376 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3377 * gnulib/aclocal.m4: Update.
3378 * gnulib/config.in: Update.
3379 * gnulib/configure: Update.
3380 * gnulib/import/Makefile.am: Update.
3381 * gnulib/import/Makefile.in: Update.
3382 * gnulib/import/dirfd.c: New.
3383 * gnulib/import/m4/dirfd.m4: New.
3384 * gnulib/import/m4/gnulib-cache.m4: Update.
3385 * gnulib/import/m4/gnulib-comp.m4: Update.
3387 2014-05-16 Pierre Muller <muller@sourceware.org>
3388 Yao Qi <yao@codesourcery.com>
3390 * valprint.c (print_wchar): Move the code on checking whether
3391 W is a printable wide char to the default branch of switch
3392 statement below. Call wchar_printable instead of gdb_iswprint.
3394 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3396 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3397 ldr.w and ldrd instructions.
3399 2014-05-15 Doug Evans <dje@google.com>
3401 * dwarf2read.c (read_structure_type): Delete outdated comments.
3403 2014-05-14 Tom Tromey <tromey@redhat.com>
3405 * macrocmd.c (print_macro_definition): Reindent.
3407 2014-05-13 Doug Evans <xdje42@gmail.com>
3409 * python/py-cmd.c (cmdpy_completer): Add comment.
3410 (completers): Make const.
3412 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3414 * infrun.c (resume): Remove should_resume (unused). Move up
3415 declaration of resume_ptid.
3417 2014-05-13 Tom Tromey <tromey@redhat.com>
3419 * language.h (unop_type_check): Remove.
3420 (binop_type_check): Don't declare.
3422 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3424 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3425 call to regcache_raw_collect.
3427 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3429 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3430 mi_console->quote as the quoting character.
3432 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3434 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3436 2014-04-29 Tom Tromey <tromey@redhat.com>
3438 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3439 "show debug varobj".
3441 2014-05-07 Kyle McMartin <kyle@redhat.com>
3443 Pushed by Joel Brobecker <brobecker@adacore.com>.
3444 * aarch64-tdep.c (aarch64_software_single_step): New function.
3445 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3446 with aarch64_software_single_step.
3448 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3452 2014-05-05 Keith Seitz <keiths@redhat.com>
3454 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3455 variable or history value is successfully parsed.
3457 2014-05-05 Yao Qi <yao@codesourcery.com>
3458 Pedro Alves <palves@redhat.com>
3460 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3461 address of blocks that intersects the requested range. Trim
3462 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3464 * ctf.c (ctf_xfer_partial): Likewise.
3466 2014-05-05 Yao Qi <yao@codesourcery.com>
3468 * printcmd.c (display_command): Remove the check to
3469 target_has_execution.
3471 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3473 * ppcobsd-nat.c: Include "obsd-nat.h".
3474 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3476 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3478 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3480 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3481 and 16-bit signed and unsigned arguments. Update comment.
3482 (stap_parse_probe_arguments): Extend code to handle such
3483 arguments. Use warning instead of complaint to notify about
3484 unrecognized bitness.
3486 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3488 PR breakpoints/16889
3489 * stap-probe.c (stap_parse_probe_arguments): Simplify
3490 check for non-prefixed probes (i.e., probes whose
3491 arguments do not start with "N@"). Always set the
3492 argument type to a sane value.
3494 2014-05-01 David Taylor <dtaylor@emc.com>
3496 * remote.c (compare_sections_command): Add -r option to compare
3497 all loadable read-only sections.
3499 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3501 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3502 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3504 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3505 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3506 Remove unused CORE_ADDR argument. Update all callers.
3508 2014-04-29 Pedro Alves <palves@redhat.com>
3510 * remote.c (struct packet_config) <detect>: Extend comment.
3511 (add_packet_config_cmd): Don't set the config's detect or support
3513 (init_all_packet_configs): Also initialize the config's 'detect'
3515 (reset_all_packet_configs_support): New function.
3516 (remote_open_1): Call reset_all_packet_configs_support instead of
3517 init_all_packet_configs.
3518 (_initialize_remote): Initialize all packet configs. Assert that
3519 all packets have an associated command, except a few known
3522 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3524 * dwarf2read.c (read_subrange_type): Handle dynamic
3525 DW_AT_lower_bound attributes.
3527 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3529 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3530 dynamic bounds before computing its upper bound.
3531 (ada_discrete_type_low_bound): Same as above with the lower bound.
3533 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3535 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3536 range types. Adjust the array handling implementation to
3537 take advantage of this change.
3538 (resolve_dynamic_range): New function, mostly extracted from
3539 resolve_dynamic_bounds.
3540 (resolve_dynamic_array): New function, mostly extracted from
3541 resolve_dynamic_bounds.
3542 (resolve_dynamic_bounds): Delete.
3543 (resolve_dynamic_type): Reimplement. Add handling of
3544 TYPE_CODE_RANGE types.
3546 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3548 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3549 handling of parallel ___XA types.
3551 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3553 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3554 unnecessary second call to static_unwrap_type.
3556 2014-04-27 Hui Zhu <hui@codesourcery.com>
3558 * stack.c (print_frame_info): Call do_gdb_disassembly with
3559 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3561 2014-04-26 Doug Evans <xdje42@gmail.com>
3563 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3565 2014-04-25 Pedro Alves <palves@redhat.com>
3568 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3569 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3570 and newline from built string.
3571 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3572 (linux_ptrace_attach_fail_reason): ... this.
3573 * linux-nat.c (linux_nat_attach): Adjust to use
3574 linux_ptrace_attach_fail_reason.
3576 2014-04-25 Pedro Alves <palves@redhat.com>
3578 * remote.c (struct remote_state): Remove multi_process_aware,
3579 non_stop_aware, cond_tracepoints, cond_breakpoints,
3580 breakpoint_commands, fast_tracepoints, static_tracepoints,
3581 install_in_trace, disconnected_tracing,
3582 enable_disable_tracepoints, string_tracing, and
3583 augmented_libraries_svr4_read fields.
3584 (remote_multi_process_p): Move further below in the file.
3585 (struct packet_config): Add comments.
3586 (update_packet_config): Delete function.
3587 (show_packet_config_cmd): Use packet_config_support.
3588 (add_packet_config_cmd): Use NULL as set callback.
3589 (packet_ok): "set remote foo-packet"-style commands no longer
3590 change config->supported -- adjust.
3591 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3592 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3593 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3594 (PACKET_QNonStop, PACKET_multiprocess_feature)
3595 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3596 (PACKET_DisconnectedTracing_feature)
3597 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3598 (set_remote_protocol_packet_cmd): Delete function.
3599 (packet_config_support, packet_support): New functions.
3600 (set_remote_protocol_Z_packet_cmd): Don't call
3601 update_packet_config.
3602 (remote_query_attached, remote_pass_signals)
3603 (remote_program_signals, remote_threads_info)
3604 (remote_threads_extra_info, remote_start_remote): Use
3606 (remote_start_remote): Use packet_config_support and
3608 (init_all_packet_configs): Set all packets to unknown support,
3609 instead of calling update_packet_config.
3610 (remote_check_symbols): Use packet_support.
3611 (remote_supported_packet): Unconditionally set the packet config's
3613 (remote_multi_process_feature, remote_non_stop_feature)
3614 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3615 (remote_breakpoint_commands_feature)
3616 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3617 (remote_install_in_trace_feature)
3618 (remote_disconnected_tracing_feature)
3619 (remote_enable_disable_tracepoint_feature)
3620 (remote_string_tracing_feature)
3621 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3622 (remote_protocol_features): Adjust to use remote_supported_packet
3623 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3624 "ConditionalTracepoints", "ConditionalBreakpoints",
3625 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3626 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3627 "EnableDisableTracepoints", and "tracenz".
3628 (remote_query_supported): Use packet_support.
3629 (remote_open_1): Adjust.
3630 (extended_remote_attach_1): Use packet_support. Switch on the
3631 result of packet_ok instead of checking whether the packet ended
3633 (remote_vcont_resume): Use packet_support.
3634 (remote_resume, remote_stop_ns, fetch_register_using_p)
3635 (remote_prepare_to_store, store_register_using_P)
3636 (check_binary_download, remote_write_bytes): Use packet_support.
3637 (remote_vkill): Use packet_support. Switch on the result of
3638 packet_ok instead of checking whether the packet ended up
3640 (extended_remote_supports_disable_randomization): Use
3642 (extended_remote_run): Switch on the result of packet_ok instead
3643 of checking whether the packet ended up disabled.
3644 (remote_insert_breakpoint, remote_remove_breakpoint)
3645 (remote_insert_watchpoint, remote_remove_watchpoint)
3646 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3648 (remote_search_memory): Use packet_config_support.
3649 (remote_get_thread_local_address, remote_get_tib_address)
3650 (remote_hostio_send_command, remote_can_execute_reverse): Use
3652 (remote_supports_cond_tracepoints)
3653 (remote_supports_cond_breakpoints)
3654 (remote_supports_fast_tracepoints)
3655 (remote_supports_static_tracepoints)
3656 (remote_supports_install_in_trace)
3657 (remote_supports_enable_disable_tracepoint)
3658 (remote_supports_string_tracing)
3659 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3660 the packet config says the feature is enabled or disabled.
3661 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3662 (remote_get_trace_status): Use packet_support.
3663 (remote_set_disconnected_tracing): Adjust to check whether the
3664 feature is enabled with packet_support.
3665 (remote_set_trace_buffer_size, remote_use_agent)
3666 (remote_can_use_agent, remote_supports_btrace): Use
3668 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3669 Use packet_config_support.
3670 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3671 the packet config says the feature is enabled or disabled.
3672 (set_range_stepping): Use packet_support.
3674 2014-04-25 Tom Tromey <tromey@redhat.com>
3676 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3679 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3681 * NEWS: Mention support for C99 variable length arrays.
3683 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3685 * ada-lang.c (standard_exc): Expand introductory comment.
3687 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3688 Walfred Tedeschi <walfred.tedeschi@intel.com>
3690 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3692 (amd64_linux_read_description): Add code to handle AVX512 xstate
3693 mask and return respective tdesc.
3694 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3695 and features/i386/x32-avx512-linux.c.
3696 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3697 (amd64_linux_core_read_description): Add code to handle AVX512
3698 xstate mask and return respective tdesc.
3699 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3700 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3702 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3703 (tdesc_amd64_avx512_linux): New prototype.
3704 (tdesc_x32_avx512_linux): Likewise.
3705 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3706 features/i386/x32-avx512.c.
3707 (amd64_ymm_avx512_names): New register names for pseudo
3709 (amd64_ymmh_avx512_names): New register names for raw registers
3711 (amd64_k_names): New register names for K registers.
3712 (amd64_zmmh_names): New register names for ZMM raw registers.
3713 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3714 (amd64_xmm_avx512_names): New register names for XMM16-31
3716 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3718 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3719 if feature is present.
3720 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3721 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3722 (AMD64_NUM_REGS): Adjust to new number of registers.
3723 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3724 registers supplied via XSTATE by AVX512 registers.
3725 (i386_linux_read_description): Add case for AVX512.
3726 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3727 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3728 (i386_linux_core_read_description): Add case for AVX512.
3729 (i386_linux_init_abi): Install supported register note section
3731 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3733 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3734 registers to be number of zmm7h + 1.
3735 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3736 * i386-tdep.c: Include features/i386/i386-avx512.c.
3737 (i386_zmm_names): Add ZMM pseudo register names array.
3738 (i386_zmmh_names): Add ZMM raw register names array.
3739 (i386_k_names): Add K raw register names array.
3740 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3741 registers. AVX512 has 16 more ZMM registers than there are YMM
3743 (i386_zmmh_regnum_p): Add function to look up register number of
3745 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3746 (i386_k_regnum_p): Likewise for K raw registers.
3747 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3748 registers added by AVX512.
3749 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3750 registers added by AVX512.
3751 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3753 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3754 (i386_pseudo_register_name): Add ZMM pseudo registers.
3755 (i386_zmm_type): Construct and return vector registers type for ZMM
3757 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3758 ZMM0-31 pseudo registers and K registers.
3759 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3760 and YMM16-31 registers from register cache.
3761 (i386_pseudo_register_write): Add code to write K, ZMM and
3763 (i386_register_reggroup_p): Add code to include/exclude AVX512
3764 registers in/from respective register groups.
3765 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3766 registers if feature is present in xcr0.
3767 (i386_gdbarch_init): Add code to initialize AVX512 feature
3768 variables in tdep structure, wire in pseudo registers and call
3769 initialize_tdesc_i386_avx512.
3770 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3772 (i386_regnum): Add AVX512 registers.
3773 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3774 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3775 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3776 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3778 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3779 (i386_ymm_avx512_regnum_p): Likewise.
3780 (i386_k_regnum_p): Likewise.
3781 (i386_zmm_regnum_p): Likewise.
3782 (i386_zmmh_regnum_p): Likewise.
3783 * i387-tdep.c : Update year in copyright notice.
3784 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3786 (XSAVE_YMM_AVX512_ADDR): New macro.
3787 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3789 (XSAVE_XMM_AVX512_ADDR): New macro.
3790 (xsave_avx512_k_offset): New table for K register offsets in
3792 (XSAVE_AVX512_K_ADDR): New macro.
3793 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3795 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3796 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3798 (i387_collect_xsave): Add code to collect AVX512 registers from
3800 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3801 of XMM16-31 registers.
3802 (I387_NUM_K_REGS): New define for number of K registers.
3803 (I387_K0_REGNUM): New define for K0 register number.
3804 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3805 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3806 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3808 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3809 (I387_XMM16_REGNUM): New define for XMM16 register number.
3810 (I387_YMM0_REGNUM): New define for YMM0 register number.
3811 (I387_KEND_REGNUM): New define for last K register number.
3812 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3813 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3815 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3817 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3819 * features/Makefile: Add AVX512 related files.
3820 * features/i386/32bit-avx512.xml: New file.
3821 * features/i386/64bit-avx512.xml: Likewise.
3822 * features/i386/amd64-avx512-linux.c: Likewise.
3823 * features/i386/amd64-avx512-linux.xml: Likewise.
3824 * features/i386/amd64-avx512.c: Likewise.
3825 * features/i386/amd64-avx512.xml: Likewise.
3826 * features/i386/i386-avx512-linux.c: Likewise.
3827 * features/i386/i386-avx512-linux.xml: Likewise.
3828 * features/i386/i386-avx512.c: Likewise.
3829 * features/i386/i386-avx512.xml: Likewise.
3830 * features/i386/x32-avx512-linux.c: Likewise.
3831 * features/i386/x32-avx512-linux.xml: Likewise.
3832 * features/i386/x32-avx512.c: Likewise.
3833 * features/i386/x32-avx512.xml: Likewise.
3834 * regformats/i386/amd64-avx512-linux.dat: New file.
3835 * regformats/i386/amd64-avx512.dat: Likewise.
3836 * regformats/i386/i386-avx512-linux.dat: Likewise.
3837 * regformats/i386/i386-avx512.dat: Likewise.
3838 * regformats/i386/x32-avx512-linux.dat: Likewise.
3839 * regformats/i386/x32-avx512.dat: Likewise.
3840 * NEWS: Add note about new support for AVX512.
3843 2014-04-23 Pedro Alves <palves@redhat.com>
3845 * breakpoint.c (insert_bp_location): Tolerate errors if the
3846 breakpoint is set in a user-loaded objfile.
3847 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3848 location is marked shlib_disabled. If the breakpoint is set in a
3849 user-loaded objfile is a GDB-side memory breakpoint, validate it
3850 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3851 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3853 * mem-break.c (memory_validate_breakpoint): New function.
3854 * objfiles.c (userloaded_objfile_contains_address_p): New
3856 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3857 * target.h (memory_validate_breakpoint): New declaration.
3859 2014-04-23 Pedro Alves <palves@redhat.com>
3861 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3862 the breakpoint is set in a shared library, only suppress
3863 errors for software breakpoints, not hardware breakpoints.
3865 2014-04-22 Pedro Alves <palves@redhat.com>
3867 * infrun.c (schedlock_applies): New function, factored out from
3868 find_thread_needs_step_over.
3869 (find_thread_needs_step_over): Use it.
3870 (switch_back_to_stepped_thread): Always clear trap_expected if the
3871 step over is finished. Return early if scheduler locking applies.
3872 Look for the stepping thread and a potential step-over thread with
3874 (currently_stepping_or_nexting_callback): Delete.
3876 2014-04-22 Nick Clifton <nickc@redhat.com>
3878 * NEWS: Mention that ARM sim now supports tracing.
3880 2014-04-22 Yao Qi <yao@codesourcery.com>
3882 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3884 * tracefile.c (tracefile_fetch_registers): ... it. New
3886 * tracefile.h (tracefile_fetch_registers): Declare.
3887 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3888 tracefile_fetch_registers.
3890 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3893 * windows-nat.c (thread_rec): Don't display a warning when
3894 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3895 fails for any reason, set th->suspended to -1, so that we don't
3896 try to resume such a thread. Also, don't return NULL in these
3897 cases, to avoid completely ruin the session due to "PC register is
3898 not available" error.
3899 (do_windows_fetch_inferior_registers): Check errors in
3900 GetThreadContext call.
3901 (windows_continue): Accept an additional argument KILLED; if not
3902 zero, ignore errors in the SetThreadContext call, since the
3903 inferior was killed and is shutting down.
3904 (windows_resume, get_windows_debug_event)
3905 (windows_create_inferior, windows_mourn_inferior)
3906 (windows_kill_inferior): All callers of windows_continue changed
3907 to adjust to its new calling sequence.
3909 2014-04-19 Yao Qi <yao@codesourcery.com>
3911 * ctf.c (ctf_open): Call post_create_inferior.
3913 2014-04-19 Yao Qi <yao@codesourcery.com>
3915 * ctf.c (handle_id): New static variable.
3916 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3917 value. Get the declaration of event "register" and get length
3918 of field "contents".
3920 2014-04-19 Yao Qi <yao@codesourcery.com>
3922 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3924 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3926 * valops.c (oload_method_static): Remove unnecessary argument
3927 METHOD. Update all callers.
3929 2014-04-18 Pedro alves <palves@redhat.com>
3930 Tom Tromey <tromey@redhat.com>
3933 * frame.c (get_prev_frame_1): Rename to ...
3934 (get_prev_frame_always): ... this, and make extern. Adjust.
3935 (skip_artificial_frames): Use get_prev_frame_always.
3936 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3937 (get_frame_unwind_stop_reason): Adjust to rename.
3938 * frame.h (get_prev_frame_always): Declare.
3939 * inline-frame.c: Include frame.h.
3940 (inline_frame_this_id): Use get_prev_frame_always.
3942 2014-04-18 Tristan Gingold <gingold@adacore.com>
3944 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3945 code by using bfd_mach_o_get_base_address.
3947 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3949 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3950 (spu_ax_pseudo_register_collect): New function.
3951 (spu_ax_pseudo_register_push_stack): Likewise.
3952 (spu_dwarf_reg_to_regnum): Likewise.
3953 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3955 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3957 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3958 Replace FRAME argument with FRAME_ID.
3959 * gdbarch.c, gdbarch.h: Regenerate.
3960 * findvar.c (default_value_from_register): Add GDBARCH argument;
3961 replace FRAME by FRAME_ID. No longer call get_frame_id.
3962 (value_from_register): Update call to gdbarch_value_from_register.
3963 * value.h (default_value_from_register): Update prototype.
3964 * s390-linux-tdep.c (s390_value_from_register): Update interface
3965 and call to default_value_from_register.
3966 * spu-tdep.c (spu_value_from_register): Likewise.
3968 * findvar.c (address_from_register): Remove TYPE argument.
3969 Do not call value_from_register; use gdbarch_value_from_register
3970 with null_frame_id instead.
3971 * value.h (address_from_register): Update prototype.
3972 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3973 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3974 address_from_register interface change.
3976 2014-04-17 Yao Qi <yao@codesourcery.com>
3978 * gdbtypes.h: Update comments to link to types and macros'
3981 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3983 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3985 2014-04-16 Keith Seitz <keiths@redhat.com>
3988 * dwarf2read.c (skip_one_die): Check that all relative-offset
3989 sibling DIEs fall within range of the current reader's buffer.
3990 (read_partial_die): Likewise.
3992 2014-04-16 Keith Seitz <keiths@redhat.com>
3995 * cp-namespace.c (lookup_symbol_file): If the type name of
3996 `this' is NULL, return immediately.
3998 2014-04-14 Keith Seitz <keiths@redhat.com>
4001 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4002 from symbol_matches_domain in symtab.c. All local callers
4003 of symbol_matches_domain updated.
4004 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4005 search STRUCT_DOMAIN.
4006 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4007 independently. standard_lookup will do that automatically.
4008 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4009 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4010 (cp_lookup_symbol_in_namespace): Likewise.
4011 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4012 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4013 may return a STRUCT_DOMAIN match.
4014 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4015 * cp-support.c: Include language.h.
4016 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4018 * psymtab.c (match_partial_symbol): Compare the requested
4019 domain with the symbol's domain directly.
4020 (lookup_partial_symbol): Likewise.
4021 * symtab.c (lookup_symbol_in_language): Explain when/why
4022 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4023 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4024 appropriate languages.
4025 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4026 and moved to ada-lang.c
4027 (lookup_block_symbol): Explain that this function only returns
4028 symbol matching the requested DOMAIN.
4029 Compare the requested domain with the symbol's domain directly.
4030 (iterate_over_symbols): Compare the requested domain with the
4031 symbol's domain directly.
4032 * symtab.h (symbol_matches_domain): Remove.
4034 2014-04-14 Tom Tromey <tromey@redhat.com>
4037 * c-exp.y (type_aggregate_p): New function.
4038 (qualified_name, classify_inner_name): Use it.
4039 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4040 and TYPE_TARGET_TYPE of an enum type.
4041 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4043 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4044 handle TYPE_DECLARED_CLASS.
4045 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4047 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4048 * valops.c (enum_constant_from_type): New function.
4049 (value_aggregate_elt): Use it.
4050 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4053 2014-04-14 Tom Tromey <tromey@redhat.com>
4055 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4056 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4058 * value.h (value_aggregate_elt): Update.
4060 2014-04-14 Tom Tromey <tromey@redhat.com>
4062 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4064 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4066 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4067 (evaluate_subexp_standard): Pass noside argument.
4068 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4069 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4070 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4071 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4072 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4074 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4076 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4077 points to a constant blob.
4079 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4081 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4082 property and store it as the high bound and flag the range accordingly.
4083 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4084 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4085 * gdbtypes.h (enum range_flags): New enum.
4086 (struct range_bounds): Add flags member.
4088 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4090 * c-typeprint.c (c_type_print_varspec_suffix): Added
4091 check for not yet resolved high bound. If unresolved, print
4092 "variable length" string to the console instead of random
4095 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4097 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4099 (ada_template_to_fixed_record_type_1): Likewise.
4100 (ada_to_fixed_type_1): Likewise.
4101 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4102 (cp_print_value): Likewise.
4103 * d-valprint.c (dynamic_array_type): Likewise.
4104 * findvar.c (address_of_variable): Likewise.
4105 * jv-valprint.c (java_value_print): Likewise.
4106 * valops.c (value_ind): Likewise.
4107 * value.c (coerce_ref): Likewise.
4109 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4111 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4112 value and retrieve the dynamic type size.
4114 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4116 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4117 passed to sizeof is dynamic evaluate the argument to compute the length.
4119 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4120 Joel Brobecker <brobecker@adacore.com>
4122 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4123 (dwarf2_evaluate_property): New function.
4124 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4125 * dwarf2read.c (attr_to_dynamic_prop): New function.
4126 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4128 * gdbtypes.c: Include dwarf2loc.h.
4129 (is_dynamic_type): New function.
4130 (resolve_dynamic_type): New function.
4131 (resolve_dynamic_bounds): New function.
4132 (get_type_length): New function.
4133 (check_typedef): Use get_type_length to compute type length.
4134 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4135 (TYPE_LOW_BOUND_KIND): New macro.
4136 (is_dynamic_type): New function prototype.
4137 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4138 to resolve dynamic properties of the type. Update comment.
4139 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4141 2014-04-14 Richard Henderson <rth@redhat.com>
4143 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4145 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4146 Doug Evans <xdje42@gmail.com>
4148 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4149 dereference TYPE_CODE_REF values.
4151 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4153 Revert the following changes due to regressions:
4155 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4156 (dwarf2_evaluate_property): New function.
4157 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4158 * dwarf2read.c (attr_to_dynamic_prop): New function.
4159 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4161 * gdbtypes.c: Include dwarf2loc.h.
4162 (is_dynamic_type): New function.
4163 (resolve_dynamic_type): New function.
4164 (resolve_dynamic_bounds): New function.
4165 (get_type_length): New function.
4166 (check_typedef): Use get_type_length to compute type length.
4167 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4168 (TYPE_LOW_BOUND_KIND): New macro.
4169 (is_dynamic_type): New function prototype.
4170 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4171 to resolve dynamic properties of the type. Update comment.
4172 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4174 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4175 passed to sizeof is dynamic evaluate the argument to compute the length.
4177 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4178 value and retrieve the dynamic type size.
4180 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4181 (ada_template_to_fixed_record_type_1): Likewise.
4182 (ada_to_fixed_type_1): Likewise.
4183 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4184 (cp_print_value): Likewise.
4185 * d-valprint.c (dynamic_array_type): Likewise.
4186 * eval.c (evaluate_subexp_with_coercion): Likewise.
4187 * findvar.c (address_of_variable): Likewise.
4188 * jv-valprint.c (java_value_print): Likewise.
4189 * valops.c (value_ind): Likewise.
4190 * value.c (coerce_ref): Likewise.
4192 * c-typeprint.c (c_type_print_varspec_suffix): Added
4193 check for not yet resolved high bound. If unresolved, print
4194 "variable length" string to the console instead of random
4197 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4198 property and store it as the high bound and flag the range accordingly.
4199 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4200 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4201 * gdbtypes.h (enum range_flags): New enum.
4202 (struct range_bounds): Add flags member.
4204 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4205 points to a constant blob.
4207 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4208 (evaluate_subexp_standard): Pass noside argument.
4209 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4210 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4211 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4212 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4213 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4215 2014-04-11 Keith Seitz <keiths@redhat.com>
4218 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4219 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4222 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4224 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4225 (evaluate_subexp_standard): Pass noside argument.
4226 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4227 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4228 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4229 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4230 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4232 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4234 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4235 points to a constant blob.
4237 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4239 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4240 property and store it as the high bound and flag the range accordingly.
4241 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4242 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4243 * gdbtypes.h (enum range_flags): New enum.
4244 (struct range_bounds): Add flags member.
4246 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4248 * c-typeprint.c (c_type_print_varspec_suffix): Added
4249 check for not yet resolved high bound. If unresolved, print
4250 "variable length" string to the console instead of random
4253 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4255 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4256 (ada_template_to_fixed_record_type_1): Likewise.
4257 (ada_to_fixed_type_1): Likewise.
4258 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4259 (cp_print_value): Likewise.
4260 * d-valprint.c (dynamic_array_type): Likewise.
4261 * eval.c (evaluate_subexp_with_coercion): Likewise.
4262 * findvar.c (address_of_variable): Likewise.
4263 * jv-valprint.c (java_value_print): Likewise.
4264 * valops.c (value_ind): Likewise.
4265 * value.c (coerce_ref): Likewise.
4267 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4269 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4270 value and retrieve the dynamic type size.
4272 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4274 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4275 passed to sizeof is dynamic evaluate the argument to compute the length.
4277 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4279 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4280 (dwarf2_evaluate_property): New function.
4281 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4282 * dwarf2read.c (attr_to_dynamic_prop): New function.
4283 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4285 * gdbtypes.c: Include dwarf2loc.h.
4286 (is_dynamic_type): New function.
4287 (resolve_dynamic_type): New function.
4288 (resolve_dynamic_bounds): New function.
4289 (get_type_length): New function.
4290 (check_typedef): Use get_type_length to compute type length.
4291 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4292 (TYPE_LOW_BOUND_KIND): New macro.
4293 (is_dynamic_type): New function prototype.
4294 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4295 to resolve dynamic properties of the type. Update comment.
4296 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4298 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4300 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4301 declaring high/low bounds and change uses accordingly. Call
4302 create_range_type instead of create_static_range_type.
4303 * gdbtypes.c (create_range_type): New function.
4304 (create_range_type): Convert bounds into struct bound_prop and pass
4305 them to create_range_type.
4306 * gdbtypes.h (struct bound_prop): New struct.
4307 (create_range_type): New function prototype.
4308 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4309 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4310 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4312 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4314 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4316 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4317 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4318 * ada-lang.c: All uses of create_range_type updated.
4319 * coffread.c: All uses of create_range_type updated.
4320 * dwarf2read.c: All uses of create_range_type updated.
4321 * f-exp.y: All uses of create_range_type updated.
4322 * m2-valprint.c: All uses of create_range_type updated.
4323 * mdebugread.c: All uses of create_range_type updated.
4324 * stabsread.c: All uses of create_range_type updated.
4325 * valops.c: All uses of create_range_type updated.
4326 * valprint.c: All uses of create_range_type updated.
4328 2014-04-10 Pedro Alves <palves@redhat.com>
4330 * breakpoint.c (single_step_breakpoints)
4331 (single_step_gdbarch): Move up in the file.
4332 (one_breakpoint_xfer_memory): New function, factored out from ...
4333 (breakpoint_xfer_memory): ... here. Also process single-step
4336 2014-04-09 Tristan Gingold <gingold@adacore.com>
4338 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4340 (darwin_decode_exception_message): Free port only after use.
4342 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4344 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4345 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4346 when setting the size of call_length.
4348 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4350 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4351 dereference TYPE_CODE_REF values.
4353 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4355 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4356 end of warning message.
4358 2014-04-03 Doug Evans <dje@google.com>
4360 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4361 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4363 2014-04-02 Alan Modra <amodra@gmail.com>
4365 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4366 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4367 (struct symbol_file_add_from_memory_args): Add size field.
4368 (find_vdso_size): New function.
4369 (add_vsyscall_page): Attempt to find vdso size.
4371 2014-04-01 Doug Evans <dje@google.com>
4373 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4375 2014-04-01 Tristan Gingold <gingold@adacore.com>
4377 * darwin-nat.c (darwin_encode_reply): Add prototype.
4378 (darwin_decode_exception_message): Reply to unknown inferiors.
4379 (darwin_decode_message): Handle message by id. Ignore message
4380 to unknown inferior.
4381 (darwin_wait): Discard unknown messages, add debug trace.
4383 2014-03-31 Doug Evans <dje@google.com>
4385 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4388 2014-03-31 Doug Evans <dje@google.com>
4390 New option "set print symbol-loading".
4392 * solib.c (solib_read_symbols): Only print symbol loading messages
4394 (solib_add): If symbol loading is in "brief" mode, notify user
4395 symbols are being loaded.
4396 (reload_shared_libraries_1): Ditto.
4397 * symfile.c (print_symbol_loading_off): New static global.
4398 (print_symbol_loading_brief): New static global.
4399 (print_symbol_loading_full): New static global.
4400 (print_symbol_loading_enums): New static global.
4401 (print_symbol_loading): New static global.
4402 (print_symbol_loading_p): New function.
4403 (symbol_file_add_with_addrs): Only print symbol loading messages
4405 (_initialize_symfile): Register "print symbol-loading" set/show
4407 * symfile.h (print_symbol_loading_p): Declare.
4409 2014-03-30 Doug Evans <xdje42@gmail.com>
4411 * infrun.c (set_last_target_status): New function.
4412 (handle_inferior_event): Call it.
4414 2014-03-30 Doug Evans <xdje42@gmail.com>
4416 * inferior.h (enum stop_kind): Improve comment.
4418 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4420 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4421 a reference, strip the reference layer before calling
4422 the lang_ops value_has_mutated callback.
4424 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4426 Remove some globals from our parser.
4427 * language.c (unk_lang_parser): Add "struct parser_state"
4429 * language.h (struct language_defn) <la_parser>: Likewise.
4430 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4431 (initialize_expout): Add "struct parser_state" argument.
4432 Rewrite function to use the parser state.
4433 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4434 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4435 write_exp_elt_longcst, write_exp_elt_dblcst,
4436 write_exp_elt_decfloatcst, write_exp_elt_type,
4437 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4438 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4439 write_dollar_variable): Likewise.
4440 (parse_exp_in_context_1): Use parser state.
4441 (insert_type_address_space): Add "struct parser_state" argument.
4443 (increase_expout_size): New function.
4444 * parser-defs.h: Forward declare "struct language_defn" and
4445 "struct parser_state".
4446 (expout, expout_size, expout_ptr): Remove extern declarations.
4447 (parse_gdbarch, parse_language): Rewrite macro declarations to
4448 accept the parser state.
4449 (struct parser_state): New struct.
4450 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4451 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4452 write_exp_elt_decfloatcst, write_exp_elt_type,
4453 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4454 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4455 write_exp_msymbol, write_dollar_variable,
4456 mark_struct_expression, insert_type_address_space): Add "struct
4457 parser_state" argument.
4458 (increase_expout_size): New function.
4459 * utils.c (do_clear_parser_state): New function.
4460 (make_cleanup_clear_parser_state): Likewise.
4461 * utils.h (make_cleanup_clear_parser_state): New function
4463 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4464 Update calls to write_exp* in order to pass the parser state.
4465 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4466 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4467 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4468 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4469 * stap-probe.c (stap_parse_register_operand): Likewise.
4470 (stap_parse_single_operand): Likewise.
4471 (stap_parse_argument_1): Likewise.
4472 (stap_parse_argument): Use parser state.
4473 * stap-probe.h: Include "parser-defs.h".
4474 (struct stap_parse_info) <pstate>: New field.
4475 * c-exp.y (parse_type): Rewrite to use parser state.
4476 (yyparse): Redefine to c_parse_internal.
4477 (pstate): New global variable.
4478 (parse_number): Add "struct parser_state" argument.
4479 (write_destructor_name): Likewise.
4480 (type_exp): Update calls to write_exp* and similars in order to
4482 (exp1, exp, variable, qualified_name, space_identifier,
4483 typename, typebase): Likewise.
4484 (write_destructor_name, parse_number, lex_one_token,
4485 classify_name, classify_inner_name, c_parse): Add "struct
4486 parser_state" argument. Update function to use parser state.
4487 * c-lang.h: Forward declare "struct parser_state".
4488 (c_parse): Add "struct parser_state" argument.
4489 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4490 (yyparse): Redefine macro to ada_parse_internal.
4491 (pstate): New variable.
4492 (write_int, write_object_renaming, write_var_or_type,
4493 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4494 type_int, type_long, type_long_long, type_float, type_double,
4495 type_long_double, type_char, type_boolean, type_system_address):
4496 Add "struct parser_state" argument.
4497 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4498 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4499 var_or_type, aggregate, aggregate_component_list,
4500 positional_list, others, component_group,
4501 component_associations): Update calls to write_exp* and similar
4502 functions in order to use parser state.
4503 (ada_parse, write_var_from_sym, write_int,
4504 write_exp_op_with_string, write_object_renaming,
4505 find_primitive_type, write_selectors, write_ambiguous_var,
4506 write_var_or_type, write_name_assoc, type_int, type_long,
4507 type_long_long, type_float, type_double, type_long_double,
4508 type_char, type_boolean, type_system_address): Add "struct
4509 parser_state" argument. Adjust function to use parser state.
4510 * ada-lang.c (parse): Likewise.
4511 * ada-lang.h: Forward declare "struct parser_state".
4512 (ada_parse): Add "struct parser_state" argument.
4513 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4514 calls to both functions.
4515 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4517 (yyparse): Redefine macro to f_parse_internal.
4518 (pstate): New variable.
4519 (parse_number): Add "struct parser_state" argument.
4520 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4521 and similars in order to use parser state.
4522 (parse_number): Adjust code to use parser state.
4524 (f_parse): New function.
4525 * f-lang.h: Forward declare "struct parser_state".
4526 (f_parse): Add "struct parser_state" argument.
4527 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4529 (yyparse): Redefine macro for java_parse_internal.
4530 (pstate): New variable.
4531 (push_expression_name, push_expression_name, insert_exp): Add
4532 "struct parser_state" argument.
4533 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4534 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4535 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4536 PostIncrementExpression, PostDecrementExpression,
4537 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4538 UnaryExpressionNotPlusMinus, CastExpression,
4539 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4540 RelationalExpression, EqualityExpression, AndExpression,
4541 ExclusiveOrExpression, InclusiveOrExpression,
4542 ConditionalAndExpression, ConditionalOrExpression,
4543 ConditionalExpression, Assignment, LeftHandSide): Update
4544 calls to write_exp* and similars in order to use parser state.
4545 (parse_number): Ajust code to use parser state.
4547 (java_parse): New function.
4548 (push_variable): Add "struct parser_state" argument. Adjust
4549 code to user parser state.
4550 (push_fieldnames, push_qualified_expression_name,
4551 push_expression_name, insert_exp): Likewise.
4552 * jv-lang.h: Forward declare "struct parser_state".
4553 (java_parse): Add "struct parser_state" argument.
4554 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4556 (yyparse): Redefine macro to m2_parse_internal.
4557 (pstate): New variable.
4558 (type_exp, exp, fblock, variable, type): Update calls to
4559 write_exp* and similars to use parser state.
4561 (m2_parse): New function.
4562 * m2-lang.h: Forward declare "struct parser_state".
4563 (m2_parse): Add "struct parser_state" argument.
4564 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4565 * objc-lang.h: Forward declare "struct parser_state".
4566 (end_msglist): Add "struct parser_state" argument.
4567 * p-exp.y (parse_type): Rewrite macro to use parser state.
4568 (yyparse): Redefine macro to pascal_parse_internal.
4569 (pstate): New variable.
4570 (parse_number): Add "struct parser_state" argument.
4571 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4572 write_exp* and similars in order to use parser state.
4573 (parse_number, yylex): Adjust code to use parser state.
4574 (pascal_parse): New function.
4575 * p-lang.h: Forward declare "struct parser_state".
4576 (pascal_parse): Add "struct parser_state" argument.
4577 * go-exp.y (parse_type): Rewrite macro to use parser state.
4578 (yyparse): Redefine macro to go_parse_internal.
4579 (pstate): New variable.
4580 (parse_number): Add "struct parser_state" argument.
4581 (type_exp, exp1, exp, variable, type): Update calls to
4582 write_exp* and similars in order to use parser state.
4583 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4584 to use parser state.
4585 (go_parse): Likewise.
4586 * go-lang.h: Forward declare "struct parser_state".
4587 (go_parse): Add "struct parser_state" argument.
4589 2014-03-27 Doug Evans <dje@google.com>
4591 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4593 2014-03-27 Doug Evans <dje@google.com>
4595 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4596 Remove argument abbrev_section. All callers updated.
4598 2014-03-27 Doug Evans <dje@google.com>
4600 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4601 addr_base, ranges_base.
4603 2014-03-26 Keith Seitz <keiths@redhat.com>
4605 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4606 types, not VAR_DOMAIN.
4608 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4610 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4612 * features/nios2-linux.c: Regenerated.
4613 * features/nios2.c: Regenerated.
4615 2014-03-25 Pedro Alves <palves@redhat.com>
4617 * cli/cli-script.c (script_from_file): Force the interpreter to
4620 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4622 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4623 small stack allocation.
4625 2014-03-24 Tristan Gingold <gingold@adacore.com>
4627 * darwin-nat.c (exc_server): Remove unused prototype.
4628 (darwin_dump_message): Correctly display data on x86_64.
4629 (darwin_encode_reply): Fix style.
4630 Add comments and fix indentation.
4632 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4634 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4636 2014-03-22 Doug Evans <xdje42@gmail.com>
4638 * infcmd.c: Whitespace fixes.
4639 (interrupt_command): Merge two function comments into one.
4641 2014-03-22 Doug Evans <xdje42@gmail.com>
4643 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4646 2014-03-22 Yao Qi <yao@codesourcery.com>
4648 * remote.c (target_read_live_memory): Remove.
4649 (memory_xfer_live_readonly_partial): Rename it to
4650 remote_xfer_live_readonly_partial. Remove argument 'object'.
4651 All callers updated. Call remote_read_bytes_1
4652 instead of target_read_live_memory.
4653 * tracepoint.c (set_traceframe_number): Remove.
4654 (make_cleanup_restore_traceframe_number): Likewise .
4655 * tracepoint.h (set_traceframe_number): Remove declaration.
4656 (make_cleanup_restore_traceframe_number): Likewise.
4658 2014-03-22 Yao Qi <yao@codesourcery.com>
4660 * remote.c (remote_read_bytes): Move code on reading from the
4662 (remote_read_bytes_1): ... here. New function.
4664 2014-03-22 Yao Qi <yao@codesourcery.com>
4666 * ctf.c (ctf_xfer_partial): Check the return value of
4667 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4668 return TARGET_XFER_UNAVAILABLE.
4669 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4670 * target.c (target_read_live_memory): Move it to remote.c.
4671 (memory_xfer_live_readonly_partial): Likewise.
4672 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4673 * remote.c (target_read_live_memory): Moved from target.c.
4674 (memory_xfer_live_readonly_partial): Likewise.
4675 (remote_read_bytes): Factored out from
4676 memory_xfer_partial_1.
4678 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4680 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4683 2014-03-21 Pedro Alves <palves@redhat.com>
4685 * infrun.c (normal_stop): Extend comment.
4687 2014-03-21 Hui Zhu <hui@codesourcery.com>
4688 Pedro Alves <palves@redhat.com>
4690 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4692 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4693 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4694 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4696 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4698 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4699 `z' formatted output modifier.
4701 2014-03-20 Tom Tromey <tromey@redhat.com>
4702 Sergio Durigan Junior <sergiodj@redhat.com>
4704 * probe.c (parse_probes): Turn assert into an ordinary error.
4705 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4706 exceptions when parsing probes. Rearrange the code for clarity.
4708 2014-03-20 Tom Tromey <tromey@redhat.com>
4711 * top.c (execute_command): Only dispatch events if the command
4714 2014-03-20 Tom Tromey <tromey@redhat.com>
4717 * infcall.c: Include event-top.h.
4718 (run_inferior_call): Call async_disable_stdin if needed.
4720 2014-03-20 Pedro Alves <palves@redhat.com>
4722 * infrun.c (prepare_to_proceed): Delete.
4723 (thread_still_needs_step_over): New function.
4724 (find_thread_needs_step_over): New function.
4725 (proceed): If the current thread needs a step-over, set its
4726 steping_over_breakpoint flag. Adjust to use
4727 find_thread_needs_step_over instead of prepare_to_proceed.
4728 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4729 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4731 (switch_back_to_stepped_thread): Step over breakpoints of all
4732 threads not the stepping thread, before switching back to the
4735 2014-03-20 Pedro Alves <palves@redhat.com>
4737 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4739 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4740 * infrun.c (saved_singlestep_ptid)
4741 (stepping_past_singlestep_breakpoint): Delete.
4742 (resume): Remove stepping_past_singlestep_breakpoint handling.
4743 (proceed): Store the prev_pc of the stepping thread too.
4744 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4746 (enum infwait_states): Delete infwait_thread_hop_state.
4747 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4749 (handle_inferior_event): Adjust.
4750 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4751 handling and the thread-hop code. Before removing single-step
4752 breakpoints, check whether the thread hit a single-step breakpoint
4753 of another thread. If it did, the trap is not a random signal.
4754 (switch_back_to_stepped_thread): If the event thread hit a
4755 single-step breakpoint, unblock it before switching to the
4756 stepping thread. Handle the case of the stepped thread having
4758 (keep_going): Handle the case of the current thread moving past a
4759 single-step breakpoint.
4761 2014-03-20 Pedro Alves <palves@redhat.com>
4764 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4765 are being stepped over.
4766 (breakpoint_address_match): Make extern.
4767 * breakpoint.h (breakpoint_address_match): New declaration.
4768 * inferior.h (stepping_past_instruction_at): New declaration.
4769 * infrun.c (struct step_over_info): New type.
4770 (step_over_info): New global.
4771 (set_step_over_info, clear_step_over_info)
4772 (stepping_past_instruction_at): New functions.
4773 (handle_inferior_event): Clear the step-over info when
4774 trap_expected is cleared.
4775 (resume): Remove now stale comment.
4776 (clear_proceed_status): Clear step-over info.
4777 (proceed): Adjust step-over handling to set or clear the step-over
4778 info instead of removing all breakpoints.
4779 (handle_signal_stop): When setting up a thread-hop, don't remove
4781 (stop_stepping): Clear step-over info.
4782 (keep_going): Adjust step-over handling to set or clear step-over
4783 info and then always inserting breakpoints, instead of removing
4784 all breakpoints when stepping over one.
4786 2014-03-20 Pedro Alves <palves@redhat.com>
4788 * infrun.c (previous_inferior_ptid): Adjust comment.
4789 (deferred_step_ptid): Delete.
4790 (infrun_thread_ptid_changed, prepare_to_proceed)
4791 (init_wait_for_inferior): Adjust.
4792 (handle_signal_stop): Delete deferred_step_ptid handling.
4794 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4797 * defs.h (sync_quit_force_run): New declaration.
4798 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4799 * event-top.c (async_sigterm_handler): New declaration.
4800 (async_sigterm_token): New variable.
4801 (async_init_signals): Create also async_sigterm_token.
4802 (async_sigterm_handler): New function.
4803 (sync_quit_force_run): New variable.
4804 (handle_sigterm): Replace quit_force call by other calls.
4805 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4807 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4809 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4810 offset into SPE pseudo registers.
4812 2014-03-18 Pedro Alves <palves@redhat.com>
4815 * inferior.h (print_stop_event): Declare.
4816 * infrun.c (print_stop_event): New, factored out from ...
4817 (normal_stop): ... this.
4818 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4819 of bpstat_print/print_stack_frame.
4821 2014-03-17 Tom Tromey <tromey@redhat.com>
4823 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4825 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4827 * ada-lang.c (decode_constrained_packed_array): Perform a
4828 minimal coercion for reference with coerce_ref instead of
4831 2014-03-17 Tristan Gingold <gingold@adacore.com>
4833 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4834 (darwin_solib_create_inferior_hook): Emit a warning if version
4837 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4839 * python/py-value.c (get_field_flag): Cast flag_name argument to
4840 PyObject_GetAttrString to support Python 2.4.
4842 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4844 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4845 (Global Maintainers): Remove Jan Kratochvil.
4847 2014-03-14 Pedro Alves <palves@redhat.com>
4849 * inferior.h (terminal_ours_for_output): Rename to ...
4850 (child_terminal_ours_for_output): ... this.
4851 (terminal_save_ours): Rename to ...
4852 (child_terminal_save_ours): ... this.
4853 (terminal_ours): Rename to ...
4854 (child_terminal_ours): ... this.
4855 (terminal_inferior): Rename to ...
4856 (child_terminal_inferior): ... this.
4857 (terminal_init_inferior): Rename to ...
4858 (child_terminal_init_inferior): ... this.
4859 (terminal_init_inferior_with_pgrp): Rename to ...
4860 (child_terminal_init_inferior_with_pgrp): ... this.
4861 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4862 (child_terminal_init_with_pgrp): ... this.
4863 (terminal_save_ours): Rename to ...
4864 (child_terminal_save_ours): ... this.
4865 (terminal_init_inferior): Rename to ...
4866 (child_terminal_init): ... this. Adjust.
4867 (terminal_inferior): Rename to ...
4868 (child_terminal_inferior): ... this.
4869 (terminal_ours_for_output): Rename to ...
4870 (child_terminal_ours_for_output): ... this. Adjust.
4871 (terminal_ours): Rename to ...
4872 (child_terminal_ours): ... this.
4873 (terminal_ours_1): Rename to ...
4874 (child_terminal_ours_1): ... this. Adjust.
4875 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4876 * windows-nat.c (do_initial_windows_stuff): Adjust.
4877 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4878 (gnu_terminal_init): ... this. Adjust.
4879 (gnu_target): Adjust.
4880 * inf-child.c (inf_child_target): Adjust.
4882 2014-03-13 Doug Evans <xdje42@gmail.com>
4885 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4888 2014-03-13 Doug Evans <xdje42@gmail.com>
4890 * value.c (record_latest_value): Call release_value_or_incref
4891 instead of release_value.
4893 2014-03-13 Pedro Alves <palves@redhat.com>
4895 * procfs.c (procfs_target): Don't override to_shortname,
4896 to_longname or to_doc.
4898 2014-03-13 Pedro Alves <palves@redhat.com>
4900 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4901 Unix in user visible strings.
4903 2014-03-12 Stan Shebs <stan@codesourcery.com>
4905 * gdbtypes.h: Annotate comments for Doxygen, add a page
4906 block comment with some general info.
4908 2014-03-12 Pedro Alves <palves@redhat.com>
4910 * infcmd.c (prepare_execution_command): New function, factored out
4911 from several execution commands.
4912 (run_command_1, continue_command, step_1, jump_command)
4913 (signal_command, until_command, advance_command, finish_command)
4914 (attach_command): Use prepare_execution_command.
4916 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4918 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4921 (struct arm_linux_thread_points): Removed.
4922 (struct arm_linux_process_info): New.
4923 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4924 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4925 (arm_linux_find_breakpoints_by_tid): Removed.
4926 (struct arch_lwp_info): New.
4927 (arm_linux_find_process_pid): New functions.
4928 (arm_linux_add_process): New functions.
4929 (arm_linux_process_info_get): New functions.
4930 (arm_linux_forget_process): New function.
4931 (arm_linux_get_debug_reg_state): New function.
4932 (struct update_registers_data): New.
4933 (update_registers_callback): New function.
4934 (arm_linux_insert_hw_breakpoint1): Updated.
4935 (arm_linux_remove_hw_breakpoint1): Updated.
4936 (arm_linux_insert_hw_breakpoint): Updated.
4937 (arm_linux_remove_hw_breakpoint): Updated.
4938 (arm_linux_insert_watchpoint): Updated.
4939 (arm_linux_remove_watchpoint): Updated.
4940 (arm_linux_new_thread): Updated.
4941 (arm_linux_prepare_to_resume): New function.
4942 (arm_linux_new_fork): New function.
4943 (_initialize_arm_linux_nat): Updated.
4945 2014-03-12 Pedro Alves <palves@redhat.com>
4947 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4949 2014-03-12 Tom Tromey <tromey@redhat.com>
4951 * inf-child.c (return_zero): New function.
4952 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4953 * aix-thread.c (aix_thread_inferior_created): New function.
4954 (aix_thread_attach): Remove.
4955 (init_aix_thread_ops): Don't set to_attach.
4956 (_initialize_aix_thread): Register inferior_created observer.
4957 * corelow.c (init_core_ops): Don't set to_attach or
4959 * exec.c (init_exec_ops): Don't set to_attach or
4961 * infcmd.c (run_command_1): Use find_run_target. Make direct
4963 (attach_command): Use find_attach_target. Make direct target
4965 * record-btrace.c (init_record_btrace_ops): Don't set
4967 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4969 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4970 set to_create_inferior.
4971 * target.c (complete_target_initialization): Add assertion.
4972 (target_create_inferior): Remove.
4973 (find_default_attach, find_default_create_inferior): Remove.
4974 (find_attach_target, find_run_target): New functions.
4975 (find_default_is_async_p, find_default_can_async_p)
4976 (target_supports_non_stop, target_attach): Remove.
4977 (init_dummy_target): Don't set to_create_inferior or
4978 to_supports_non_stop.
4979 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4980 TARGET_DEFAULT_FUNC.
4981 <to_create_inferior>: Add comment.
4982 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4983 TARGET_DEFAULT_RETURN.
4984 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4985 (find_attach_target, find_run_target): Declare.
4986 (target_create_inferior): Remove.
4987 (target_has_execution_1): Update comment.
4988 (target_supports_non_stop): Remove.
4989 * target-delegates.c: Rebuild.
4991 2014-03-12 Pedro Alves <palves@redhat.com>
4993 * inf-child.h: Update comment to not mention Unix.
4995 2014-03-12 Pedro Alves <palves@redhat.com>
4997 * inf-child.c: Update top comment to not mention Unix. Add
4998 generic comment describing how this target is meant to be used.
4999 (inf_child_post_attach, inf_child_post_startup_inferior)
5000 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5003 2014-03-12 Pedro Alves <palves@redhat.com>
5005 * nto-procfs.c: Include inf-child.h.
5006 (procfs_ops): Delete global.
5007 (procfs_can_run): Delete method.
5008 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5009 target pointer instead of referencing procfs_ops.
5010 (procfs_prepare_to_store): Delete.
5011 (init_procfs_ops): Delete function.
5012 (procfs_target): New function, based on init_procfs_ops, but
5013 inherit inf_child_target.
5014 (_initialize_procfs): Use procfs_target.
5016 2014-03-12 Pedro Alves <palves@redhat.com>
5018 * windows-nat.c: Include inf-child.h.
5019 (windows_ops): Delete global.
5020 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5022 (init_windows_ops): Delete function.
5023 (windows_target): New function, based on init_windows_ops, but
5024 inherit inf_child_target.
5025 (_initialize_windows_nat): Use windows_target. Install x86
5026 specific target methods here.
5028 2014-03-10 Doug Evans <xdje42@gmail.com>
5030 * guile/guile.c (call_initialize_gdb_module): New function.
5031 (initialize_guile): Replace call to scm_init_guile with call to
5034 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5036 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5037 in call to TYPE_CODE macro.
5039 2014-03-10 Jerome Guitton <guitton@adacore.com>
5041 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5042 Resolve tagged types to full view.
5044 2014-03-10 Hui Zhu <hui@codesourcery.com>
5046 * target.h (target_insert_breakpoint): Remove "hardware" from its
5049 2014-03-07 Doug Evans <dje@google.com>
5051 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5053 2014-03-07 Doug Evans <dje@google.com>
5055 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5056 Remove unused local comp_dir_attr. Assert exactly one of
5057 stub_comp_unit_die, stub_comp_dir is non-NULL.
5059 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5061 * target.h (complete_target_initialization, add_target):
5064 2014-03-07 Pedro Alves <palves@redhat.com>
5066 * go32-nat.c: Include inf-child.h.
5067 (go32_ops): Delete global.
5068 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5070 (go32_create_inferior): Push the passed in target pointer instead
5071 of referencing go32_ops.
5072 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5073 (go32_target): New function, based on init_go32_ops, but inherit
5075 (_initialize_go32_nat): Use go32_target. Move parts of
5078 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5080 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5081 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5082 SYMBOL_VALUE_ADDRESS.
5083 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5085 2014-03-06 Yao Qi <yao@codesourcery.com>
5087 * breakpoint.c (get_tracepoint_by_number): Remove argument
5088 optional_p. All callers updated. Adjust comments. Update
5090 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5092 2014-03-06 Yao Qi <yao@codesourcery.com>
5094 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5095 early if get_number returns zero. Use 'p' instead of 'args'.
5097 2014-03-06 Yao Qi <yao@codesourcery.com>
5099 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5102 2014-03-06 Yao Qi <yao@codesourcery.com>
5104 PR breakpoints/16508
5105 * tracepoint.c (check_trace_running): New function.
5106 (trace_find_command): Move code to check_trace_running and
5107 call check_trace_running.
5108 (trace_find_pc_command): Likewise.
5109 (trace_find_tracepoint_command): Likewise.
5110 (trace_find_line_command): Likewise.
5111 (trace_find_range_command): Likewise.
5112 * tracepoint.h (check_trace_running): Likewise.
5113 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5115 2014-03-06 Yao Qi <yao@codesourcery.com>
5117 * target.h (struct target_ops) <to_traceframe_info>: Use
5118 TARGET_DEFAULT_NORETURN (tcomplain ()).
5119 * target-delegates.c: Regenerated.
5121 2014-03-05 Pedro Alves <palves@redhat.com>
5124 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5125 void. Update comment.
5126 (dcache_xfer_memory): Delete.
5127 (dcache_read_memory_partial): New, based on the read bits of
5129 (dcache_update): Add status parameter. Use ULONGEST for len, and
5130 adjust. Discard cache lines if the reason for the update was
5132 * dcache.h (dcache_xfer_memory): Delete declaration.
5133 (dcache_read_memory_partial): New declaration.
5134 (dcache_update): Update prototype.
5135 * target.c (raw_memory_xfer_partial): Update the dcache here.
5136 (memory_xfer_partial_1): Don't handle dcache writes here.
5138 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5140 * remote-sim.c (gdbsim_load): Add const to prog.
5142 2014-03-03 Tom Tromey <tromey@redhat.com>
5144 * elfread.c (probe_key): Change to bfd_data.
5145 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5146 now per-BFD, not per-objfile.
5147 * stap-probe.c (stap_probe_destroy): Update comment.
5148 (handle_stap_probe): Allocate on the per-BFD obstack.
5150 2014-03-03 Tom Tromey <tromey@redhat.com>
5152 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5153 * breakpoint.c (create_longjmp_master_breakpoint): Use
5155 (add_location_to_breakpoint, bkpt_probe_insert_location)
5156 (bkpt_probe_remove_location): Update.
5157 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5158 * elfread.c (elf_symfile_relocate_probe): Remove.
5159 (elf_probe_fns): Update.
5160 (insert_exception_resume_breakpoint): Change type of "probe"
5161 parameter to bound_probe.
5162 (check_exception_resume): Update.
5163 * objfiles.c (objfile_relocate1): Don't relocate probes.
5164 * probe.c (bound_probe_s): New typedef.
5165 (parse_probes): Use get_probe_address. Set sal's objfile.
5166 (find_probe_by_pc): Return a bound_probe.
5167 (collect_probes): Return a VEC(bound_probe_s).
5168 (compare_probes): Update.
5169 (gen_ui_out_table_header_info): Change type of "probes"
5171 (info_probes_for_ops): Update.
5172 (get_probe_address): New function.
5173 (probe_safe_evaluate_at_pc): Update.
5174 * probe.h (struct probe_ops) <get_probe_address>: New field.
5175 <set_semaphore, clear_semaphore>: Add objfile parameter.
5176 (struct probe) <objfile>: Remove field.
5178 <address>: Update comment.
5179 (struct bound_probe): New.
5180 (find_probe_by_pc): Return a bound_probe.
5181 (get_probe_address): Declare.
5182 * solib-svr4.c (struct probe_and_action) <address>: New field.
5183 (hash_probe_and_action, equal_probe_and_action): Update.
5184 (register_solib_event_probe): Add address parameter.
5185 (solib_event_probe_at): Update.
5186 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5188 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5189 (stap_get_probe_address): New function.
5190 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5191 (compile_probe_arg): Update.
5192 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5194 (handle_stap_probe): Don't relocate the probe.
5195 (stap_relocate): Remove.
5196 (stap_gen_info_probes_table_values): Update.
5197 (stap_probe_ops): Remove stap_relocate.
5198 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5199 (debug_sym_probe_fns): Update.
5200 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5201 * symtab.c (init_sal): Use memset.
5202 * symtab.h (struct symtab_and_line) <objfile>: New field.
5203 * tracepoint.c (start_tracing, stop_tracing): Update.
5205 2014-03-03 Tom Tromey <tromey@redhat.com>
5207 * probe.h (parse_probes, find_probe_by_pc)
5208 (find_probes_in_objfile): Fix comments.
5210 2014-03-02 Doug Evans <xdje42@gmail.com>
5212 * infrun.c (handle_signal_stop): Replace test for
5213 TARGET_WAITKIND_STOPPED with an assert.
5215 2014-03-02 Doug Evans <xdje42@gmail.com>
5217 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5219 2014-03-02 Doug Evans <xdje42@gmail.com>
5221 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5223 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5225 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5227 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5229 * i386obsd-nat.c: Include "obsd-nat.h".
5230 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5232 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5234 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5236 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5238 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5240 * mips64obsd-nat.c: Include "obsd-nath".
5241 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5243 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5245 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5247 * amd64obsd-nat.c: Include "obsd-nat,h.
5248 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5250 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5252 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5254 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5255 (find_overload_match): Update call to find_oload_champ.
5256 (find_oload_champ_namespace_loop): Likewise
5258 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5260 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5262 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5263 * config/sparc/obsd64.mh: New file.
5264 * sparc64obsd-nat.c: New file.
5266 * obsd-nat.h: New file.
5267 * obsd-nat.c: New file.
5268 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5269 (ALLDEPFILES): Add obsd-nat.c.
5271 2014-02-28 Tom Tromey <tromey@redhat.com>
5273 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5274 * cli-out.h (cli_ui_out_impl): Now const.
5275 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5276 * ui-out.c (struct ui_out) <impl>: Now const.
5277 (default_ui_out_impl): Now const.
5278 (ui_out_new): Make 'impl' parameter const.
5279 * ui-out.h (ui_out_new): Update.
5281 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5283 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5285 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5287 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5289 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5291 Additional PR 8882 fix.
5292 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5294 2014-02-27 Pedro Alves <palves@redhat.com>
5296 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5299 2014-02-27 Pedro Alves <palves@redhat.com>
5302 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5303 * nat/linux-waitpid.c: Include string.h.
5304 (status_to_str): Moved here and made extern.
5305 * nat/linux-waitpid.h (status_to_str): New declaration.
5307 2014-02-27 Hui Zhu <hui@codesourcery.com>
5310 * infrun.c (ptid_match): Move ...
5311 * common/ptid.c (ptid_match): ... here.
5312 * inferior.h (ptid_match): Move ...
5313 * common/ptid.h (ptid_match): ... here.
5315 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5317 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5318 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5321 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5323 * obsd-tdep.c (obsd_auxv_parse): New function.
5324 (obsd_init_abi): Set auxv_parse.
5326 * gdbarch.sh (auxv_parse): New.
5327 * gdbarch.h: Regenerated.
5328 * gdbarch.c: Regenerated.
5329 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5331 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5333 * guile/scm-value.c (gdbscm_history_append_x): New function.
5334 (value_functions): Add it.
5336 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5338 * dwarf2read.c (attr_value_as_address): New function.
5339 (dwarf2_find_base_address, read_call_site_scope): Use
5340 attr_value_as_address in place of DW_ADDR.
5341 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5342 the low and high addresses. Slight rework of the handling
5343 of the high pc being a constant form, and limit it to
5344 DWARF verson 4 or higher.
5345 (dwarf2_record_block_ranges): Likewise.
5346 (read_partial_die): Likewise.
5347 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5349 2014-02-26 Tom Tromey <tromey@redhat.com>
5351 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5353 2014-02-26 Tom Tromey <tromey@redhat.com>
5355 * elfread.c (elf_read_minimal_symbols): Return early if
5356 minimal symbols have already been read. Add "ei" parameter.
5357 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5358 * minsyms.c (prim_record_minimal_symbol_full): Update.
5359 * objfiles.h (struct objstats) <n_minsyms>: Move...
5360 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5361 * symmisc.c (print_objfile_statistics): Update.
5363 2014-02-26 Tom Tromey <tromey@redhat.com>
5365 * elfread.c (elf_read_minimal_symbols): New function, from
5367 (elf_symfile_read): Call it.
5369 2014-02-26 Tom Tromey <tromey@redhat.com>
5371 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5372 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5373 (lookup_minimal_symbol_solib_trampoline)
5374 (lookup_minimal_symbol_by_pc_section_1)
5375 (lookup_minimal_symbol_and_objfile): Update.
5376 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5377 Don't allocate a minimal symbol if minsyms have already been read.
5378 (build_minimal_symbol_hash_tables): Update.
5379 (install_minimal_symbols): Do nothing if minsyms already read.
5380 Use the per-BFD obstack.
5381 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5382 * objfiles.c (allocate_objfile): Call
5383 terminate_minimal_symbol_table later.
5384 (have_minimal_symbols): Update.
5385 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5386 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5387 Move from struct objfile.
5388 <minsyms_read>: New field.
5389 (struct objfile) <msymbols, minimal_symbol_count,
5390 msymbol_hash, msymbol_demangled_hash>: Move.
5391 (ALL_OBJFILE_MSYMBOLS): Update.
5392 * symfile.c (read_symbols): Set minsyms_read.
5393 (reread_symbols): Update.
5394 * symmisc.c (dump_objfile, dump_msymbols): Update.
5396 2014-02-26 Tom Tromey <tromey@redhat.com>
5398 * minsyms.c (msymbols_sort): Remove.
5399 * minsyms.h (msymbols_sort): Remove.
5400 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5401 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5402 * elfread.c (elf_symtab_read): Don't add section offsets.
5403 * xcoffread.c (record_minimal_symbol): Don't add section offset
5404 to minimal symbol address.
5405 * somread.c (text_offset, data_offset): Remove.
5406 (som_symtab_read): Don't add section offsets to minimal symbol
5408 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5409 Don't add section offsets to minimal symbols.
5410 * coffread.c (coff_symtab_read): Don't add section offsets
5411 to minimal symbol addresses.
5412 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5413 to minimal symbol addresses.
5414 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5415 section offset to minimal symbol addresses.
5416 * mdebugread.c (parse_partial_symbols): Don't add section
5417 offset to minimal symbol addresses.
5418 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5419 offset to minimal symbol addresses.
5421 2014-02-26 Tom Tromey <tromey@redhat.com>
5423 * ada-lang.c (ada_main_name): Update.
5424 (ada_add_standard_exceptions): Update.
5425 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5426 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5427 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5428 * auxv.c (ld_so_xfer_auxv): Update.
5429 * avr-tdep.c (avr_scan_prologue): Update.
5430 * ax-gdb.c (gen_var_ref): Update.
5431 * blockframe.c (get_pc_function_start)
5432 (find_pc_partial_function_gnu_ifunc): Update.
5433 * breakpoint.c (create_overlay_event_breakpoint)
5434 (create_longjmp_master_breakpoint)
5435 (create_std_terminate_master_breakpoint)
5436 (create_exception_master_breakpoint): Update.
5437 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5438 * c-valprint.c (c_val_print): Update.
5439 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5440 * common/agent.c (agent_look_up_symbols): Update.
5441 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5442 * dwarf2loc.c (call_site_to_target_addr): Update.
5443 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5444 * elfread.c (elf_gnu_ifunc_record_cache)
5445 (elf_gnu_ifunc_resolve_by_got): Update.
5446 * findvar.c (default_read_var_value): Update.
5447 * frame.c (inside_main_func): Update.
5448 * frv-tdep.c (frv_frame_this_id): Update.
5449 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5450 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5452 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5453 (hppa_hpux_find_dummy_bpaddr): Update.
5454 * hppa-tdep.c (hppa_symbol_address): Update.
5455 * infcmd.c (until_next_command): Update.
5456 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5458 * linespec.c (minsym_found, add_minsym): Update.
5459 * linux-nat.c (get_signo): Update.
5460 * linux-thread-db.c (inferior_has_bug): Update.
5461 * m32c-tdep.c (m32c_return_value)
5462 (m32c_m16c_address_to_pointer): Update.
5463 * m32r-tdep.c (m32r_frame_this_id): Update.
5464 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5465 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5466 * maint.c (maintenance_translate_address): Update.
5467 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5468 (frob_address): New function.
5469 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5470 frob_address. Rename parameter to "pc_in".
5471 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5473 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5475 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5476 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5477 * objc-lang.c (find_objc_msgsend): Update.
5478 * objfiles.c (objfile_relocate1): Update.
5479 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5480 * p-valprint.c (pascal_val_print): Update.
5481 * parse.c (write_exp_msymbol): Update.
5482 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5483 (ppc_elfv2_skip_entrypoint): Update.
5484 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5485 * printcmd.c (build_address_symbolic, msym_info)
5486 (address_info): Update.
5487 * proc-service.c (ps_pglobal_lookup): Update.
5488 * psymtab.c (find_pc_sect_psymtab_closer)
5489 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5490 Change msymbol parameter to bound_minimal_symbol.
5491 * ravenscar-thread.c (get_running_thread_id): Update.
5492 * remote.c (remote_check_symbols): Update.
5493 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5495 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5496 * solib-dsbt.c (lm_base): Update.
5497 * solib-frv.c (lm_base, main_got): Update.
5498 * solib-irix.c (locate_base): Update.
5499 * solib-som.c (som_solib_create_inferior_hook)
5500 (link_map_start): Update.
5501 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5502 * solib-svr4.c (elf_locate_base, enable_break): Update.
5503 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5504 (flush_ea_cache): Update.
5505 * stabsread.c (define_symbol, scan_file_globals): Update.
5506 * stack.c (find_frame_funname): Update.
5507 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5508 (debug_qf_find_pc_sect_symtab): Update.
5509 * symfile.c (simple_read_overlay_table)
5510 (simple_overlay_update): Update.
5511 * symfile.h (struct quick_symbol_functions)
5512 <find_pc_sect_symtab>: Change type of msymbol to
5513 bound_minimal_symbol.
5514 * symmisc.c (dump_msymbols): Update.
5515 * symtab.c (find_pc_sect_symtab_via_partial)
5516 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5517 (search_symbols, print_msymbol_info): Update.
5518 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5519 (MSYMBOL_VALUE_ADDRESS): Redefine.
5520 (BMSYMBOL_VALUE_ADDRESS): New macro.
5521 * tracepoint.c (scope_info): Update.
5522 * tui/tui-disasm.c (tui_find_disassembly_address)
5523 (tui_get_begin_asm_address): Update.
5524 * valops.c (find_function_in_inferior): Update.
5525 * value.c (value_static_field, value_fn_field): Update.
5527 2014-02-26 Tom Tromey <tromey@redhat.com>
5529 * ada-lang.c (ada_update_initial_language): Update.
5530 (ada_main_name, ada_has_this_exception_support): Update.
5531 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5532 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5533 * arm-tdep.c (arm_skip_stub): Update.
5534 * auxv.c (ld_so_xfer_auxv): Update.
5535 * avr-tdep.c (avr_scan_prologue): Update.
5536 * ax-gdb.c (gen_var_ref): Update.
5537 * breakpoint.c (struct breakpoint_objfile_data)
5538 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5539 type to bound_minimal_symbol.
5540 (create_overlay_event_breakpoint)
5541 (create_longjmp_master_breakpoint)
5542 (create_std_terminate_master_breakpoint)
5543 (create_exception_master_breakpoint): Update.
5544 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5545 * c-exp.y (classify_name): Update.
5546 * coffread.c (coff_symfile_read): Update.
5547 * common/agent.c (agent_look_up_symbols): Update.
5548 * d-lang.c (d_main_name): Update.
5549 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5550 * dec-thread.c (enable_dec_thread): Update.
5551 * dwarf2loc.c (call_site_to_target_addr): Update.
5552 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5553 * eval.c (evaluate_subexp_standard): Update.
5554 * findvar.c (struct minsym_lookup_data) <result>: Change type
5555 to bound_minimal_symbol.
5557 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5558 * frame.c (inside_main_func): Update.
5559 * frv-tdep.c (frv_frame_this_id): Update.
5560 * gcore.c (call_target_sbrk): Update.
5561 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5562 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5564 * go-lang.c (go_main_name): Update.
5565 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5566 (hppa_hpux_find_import_stub_for_addr): Update.
5567 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5568 Update. Change return type.
5569 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5571 * jit.c (jit_breakpoint_re_set_internal): Update.
5572 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5574 * linux-nat.c (get_signo): Update.
5575 * linux-thread-db.c (inferior_has_bug): Update
5576 * m32c-tdep.c (m32c_return_value)
5577 (m32c_m16c_address_to_pointer): Update.
5578 * m32r-tdep.c (m32r_frame_this_id): Update.
5579 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5580 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5581 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5582 lookup_minimal_symbol. Change return type.
5583 (lookup_minimal_symbol): Remove.
5584 (lookup_bound_minimal_symbol): Update.
5585 (lookup_minimal_symbol_text): Change return type.
5586 (lookup_minimal_symbol_solib_trampoline): Change return type.
5587 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5588 (lookup_minimal_symbol_solib_trampoline): Change return type.
5589 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5590 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5591 (value_nsstring, find_imps): Update.
5592 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5593 * p-lang.c (pascal_main_name): Update.
5594 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5595 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5596 * proc-service.c (ps_pglobal_lookup): Update.
5597 * ravenscar-thread.c (get_running_thread_msymbol): Change
5599 (has_ravenscar_runtime, get_running_thread_id): Update.
5600 * remote.c (remote_check_symbols): Update.
5601 * sol-thread.c (ps_pglobal_lookup): Update.
5602 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5603 * solib-dsbt.c (lm_base): Update.
5604 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5606 * solib-irix.c (locate_base): Update.
5607 * solib-som.c (som_solib_create_inferior_hook)
5608 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5610 * solib-spu.c (spu_enable_break): Update.
5611 * solib-svr4.c (elf_locate_base, enable_break): Update.
5612 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5613 (flush_ea_cache): Update.
5614 * stabsread.c (define_symbol): Update.
5615 * symfile.c (simple_read_overlay_table): Update.
5616 * symtab.c (find_pc_sect_line): Update.
5617 * tracepoint.c (scope_info): Update.
5618 * tui-disasm.c (tui_get_begin_asm_address): Update.
5619 * value.c (value_static_field): Update.
5621 2014-02-26 Tom Tromey <tromey@redhat.com>
5623 * minsyms.c (prim_record_minimal_symbol_full): Use
5624 SET_MSYMBOL_VALUE_ADDRESS.
5625 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5626 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5627 SET_MSYMBOL_VALUE_ADDRESS.
5628 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5629 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5631 2014-02-26 Tom Tromey <tromey@redhat.com>
5633 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5634 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5635 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5636 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5637 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5638 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5639 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5640 * ada-lang.c (ada_main_name): Update.
5641 (ada_lookup_simple_minsym): Update.
5642 (ada_make_symbol_completion_list): Update.
5643 (ada_add_standard_exceptions): Update.
5644 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5645 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5646 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5647 * arm-tdep.c (skip_prologue_function): Update.
5648 (arm_skip_stack_protector, arm_skip_stub): Update.
5649 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5650 (arm_wince_skip_main_prologue): Update.
5651 * auxv.c (ld_so_xfer_auxv): Update.
5652 * avr-tdep.c (avr_scan_prologue): Update.
5653 * ax-gdb.c (gen_var_ref): Update.
5654 * block.c (call_site_for_pc): Update.
5655 * blockframe.c (get_pc_function_start): Update.
5656 (find_pc_partial_function_gnu_ifunc): Update.
5657 * breakpoint.c (create_overlay_event_breakpoint): Update.
5658 (create_longjmp_master_breakpoint): Update.
5659 (create_std_terminate_master_breakpoint): Update.
5660 (create_exception_master_breakpoint): Update.
5661 (resolve_sal_pc): Update.
5662 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5663 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5665 * c-valprint.c (c_val_print): Update.
5666 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5667 * coffread.c (coff_symfile_read): Update.
5668 * common/agent.c (agent_look_up_symbols): Update.
5669 * dbxread.c (find_stab_function_addr): Update.
5670 (end_psymtab): Update.
5671 * dwarf2loc.c (call_site_to_target_addr): Update.
5672 (func_verify_no_selftailcall): Update.
5673 (tailcall_dump): Update.
5674 (call_site_find_chain_1): Update.
5675 (dwarf_expr_reg_to_entry_parameter): Update.
5676 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5677 (elf_gnu_ifunc_resolve_by_got): Update.
5678 * f-valprint.c (info_common_command): Update.
5679 * findvar.c (read_var_value): Update.
5680 * frame.c (get_prev_frame_1): Update.
5681 (inside_main_func): Update.
5682 * frv-tdep.c (frv_skip_main_prologue): Update.
5683 (frv_frame_this_id): Update.
5684 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5685 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5686 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5687 (gnuv3_skip_trampoline): Update.
5688 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5689 (hppa64_hpux_in_solib_call_trampoline): Update.
5690 (hppa_hpux_skip_trampoline_code): Update.
5691 (hppa64_hpux_search_dummy_call_sequence): Update.
5692 (hppa_hpux_find_import_stub_for_addr): Update.
5693 (hppa_hpux_find_dummy_bpaddr): Update.
5694 * hppa-tdep.c (hppa_symbol_address)
5695 (hppa_lookup_stub_minimal_symbol): Update.
5696 * i386-tdep.c (i386_skip_main_prologue): Update.
5697 (i386_pe_skip_trampoline_code): Update.
5698 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5699 * infcall.c (get_function_name): Update.
5700 * infcmd.c (until_next_command): Update.
5701 * jit.c (jit_breakpoint_re_set_internal): Update.
5702 (jit_inferior_init): Update.
5703 * linespec.c (minsym_found): Update.
5704 (add_minsym): Update.
5705 * linux-fork.c (info_checkpoints_command): Update.
5706 * linux-nat.c (get_signo): Update.
5707 * linux-thread-db.c (inferior_has_bug): Update.
5708 * m32c-tdep.c (m32c_return_value): Update.
5709 (m32c_m16c_address_to_pointer): Update.
5710 (m32c_m16c_pointer_to_address): Update.
5711 * m32r-tdep.c (m32r_frame_this_id): Update.
5712 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5713 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5714 * maint.c (maintenance_translate_address): Update.
5715 * minsyms.c (add_minsym_to_hash_table): Update.
5716 (add_minsym_to_demangled_hash_table): Update.
5717 (msymbol_objfile): Update.
5718 (lookup_minimal_symbol): Update.
5719 (iterate_over_minimal_symbols): Update.
5720 (lookup_minimal_symbol_text): Update.
5721 (lookup_minimal_symbol_by_pc_name): Update.
5722 (lookup_minimal_symbol_solib_trampoline): Update.
5723 (lookup_minimal_symbol_by_pc_section_1): Update.
5724 (lookup_minimal_symbol_and_objfile): Update.
5725 (prim_record_minimal_symbol_full): Update.
5726 (compare_minimal_symbols): Update.
5727 (compact_minimal_symbols): Update.
5728 (build_minimal_symbol_hash_tables): Update.
5729 (install_minimal_symbols): Update.
5730 (terminate_minimal_symbol_table): Update.
5731 (find_solib_trampoline_target): Update.
5732 (minimal_symbol_upper_bound): Update.
5733 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5734 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5735 (mips_skip_pic_trampoline_code): Update.
5736 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5737 * objc-lang.c (selectors_info): Update.
5738 (classes_info): Update.
5739 (find_methods): Update.
5740 (find_imps): Update.
5741 (find_objc_msgsend): Update.
5742 * objfiles.c (objfile_relocate1): Update.
5743 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5744 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5745 * p-valprint.c (pascal_val_print): Update.
5746 * parse.c (write_exp_msymbol): Update.
5747 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5748 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5749 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5750 * printcmd.c (build_address_symbolic): Update.
5752 (address_info): Update.
5753 * proc-service.c (ps_pglobal_lookup): Update.
5754 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5755 (find_pc_sect_psymtab): Update.
5756 * python/py-framefilter.c (py_print_frame): Update.
5757 * ravenscar-thread.c (get_running_thread_id): Update.
5758 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5760 * remote.c (remote_check_symbols): Update.
5761 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5762 (rs6000_skip_trampoline_code): Update.
5763 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5764 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5765 * solib-dsbt.c (lm_base): Update.
5766 * solib-frv.c (lm_base): Update.
5768 * solib-irix.c (locate_base): Update.
5769 * solib-som.c (som_solib_create_inferior_hook): Update.
5770 (som_solib_desire_dynamic_linker_symbols): Update.
5771 (link_map_start): Update.
5772 * solib-spu.c (spu_enable_break): Update.
5773 (ocl_enable_break): Update.
5774 * solib-svr4.c (elf_locate_base): Update.
5775 (enable_break): Update.
5776 * spu-tdep.c (spu_get_overlay_table): Update.
5777 (spu_catch_start): Update.
5778 (flush_ea_cache): Update.
5779 * stabsread.c (define_symbol): Update.
5780 (scan_file_globals): Update.
5781 * stack.c (find_frame_funname): Update.
5782 (frame_info): Update.
5783 * symfile.c (simple_read_overlay_table): Update.
5784 (simple_overlay_update): Update.
5785 * symmisc.c (dump_msymbols): Update.
5786 * symtab.c (fixup_section): Update.
5787 (find_pc_sect_line): Update.
5788 (skip_prologue_sal): Update.
5789 (search_symbols): Update.
5790 (print_msymbol_info): Update.
5791 (rbreak_command): Update.
5792 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5793 (completion_list_objc_symbol): Update.
5794 (default_make_symbol_completion_list_break_on): Update.
5795 * tracepoint.c (scope_info): Update.
5796 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5797 (tui_get_begin_asm_address): Update.
5798 * valops.c (find_function_in_inferior): Update.
5799 * value.c (value_static_field): Update.
5800 (value_fn_field): Update.
5802 2014-02-26 Tom Tromey <tromey@redhat.com>
5804 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5805 bound minimal symbols. Move code that knows about minsym
5807 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5809 * minsyms.h (minimal_symbol_upper_bound): Declare.
5810 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5811 minimal_symbol_upper_bound.
5813 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5815 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5816 Use the type's name if its basic type does not have a tag.
5818 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5820 * dwarf2read.c (read_subrange_type): Add comment.
5822 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5824 * dwarf2read.c (update_enumeration_type_from_children): New
5825 function, mostly extracted from process_structure_scope.
5826 (read_enumeration_type): Call update_enumeration_type_from_children.
5827 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5828 and flag_flag_enum fields.
5830 2014-02-26 Pedro Alves <palves@redhat.com>
5832 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5833 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5834 to_xfer_partial method.
5836 2014-02-26 Pedro Alves <palves@redhat.com>
5838 * target.c (complete_target_initialization): Don't install
5839 default_xfer_partial as to_xfer_partial hook.
5841 (update_current_target): Don't INHERIT nor de_fault
5842 deprecated_xfer_memory. Delete de_fault macro.
5843 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5844 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5845 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5848 2014-02-26 Pedro Alves <palves@redhat.com>
5850 * go32-nat.c (my_write_child): New function.
5851 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5852 (go32_xfer_partial): New function.
5853 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5854 Instead install a to_xfer_partial hook.
5856 2014-02-26 Pedro Alves <palves@redhat.com>
5858 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5859 to_xfer_partial helper. Rewrite.
5860 (procfs_xfer_partial): New function.
5861 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5862 Install a to_xfer_partial hook.
5864 2014-02-26 Pedro Alves <palves@redhat.com>
5866 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5867 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5868 (m32r_xfer_partial): New function.
5869 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5870 Install a to_xfer_partial hook.
5872 2014-02-26 Pedro Alves <palves@redhat.com>
5874 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5876 (mips_xfer_partial): New function.
5877 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5878 hook. Install a to_xfer_partial hook.
5880 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5882 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5883 * gdbtypes.c (create_array_type_with_stride): New function,
5884 renaming create_array_type, but with an added parameter
5885 called "bit_stride".
5886 (create_array_type): Re-implement using
5887 create_array_type_with_stride.
5888 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5889 and DW_AT_bit_stride attributes.
5891 2014-02-26 Pedro Alves <palves@redhat.com>
5893 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5894 task-specific breakpoints.
5896 2014-02-25 Pedro Alves <palves@redhat.com>
5898 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5899 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5901 2014-02-25 Stan Shebs <stan@codesourcery.com>
5903 * defs.h: Annotate comments for Doxygen.
5905 2014-02-25 Tom Tromey <tromey@redhat.com>
5907 * target.h (target_ignore): Don't declare.
5908 * target.c (target_ignore): Remove.
5910 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5913 * auto-load.c (auto_load_objfile_script_1): Change filename to
5916 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5918 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5919 documentation. Adjust prototype to match the target_ops
5920 to_xfer_partial method. Adjust implementation accordingly.
5922 2014-02-25 Hui Zhu <hui@codesourcery.com>
5924 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5927 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5929 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5930 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5931 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5932 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5933 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5934 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5935 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5936 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5938 (rl78_register_type): Use a data pointer type for SP and
5939 new pseudo registers mentioned above. Use a 16 bit integer
5940 type for all other register pairs.
5941 (rl78_register_name, rl78_g10_register_name): Update for
5942 new pseudo registers.
5943 (rl78_pseudo_register_read): Likewise.
5944 (rl78_pseudo_register_write): Likewise.
5945 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5946 to the newly added pseudo registers.
5948 2014-02-24 Doug Evans <dje@google.com>
5950 * value.c (record_latest_value): Fix comment.
5951 * printcmd.c (print_command_1): Remove code to handle -1 return from
5952 record_latest_value.
5954 2014-02-24 Pedro Alves <palves@redhat.com>
5956 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5957 deprecated_xfer_memory hook.
5958 (procfs_xfer_partial): Call procfs_xfer_memory instead
5959 of the deprecated_xfer_memory target hook.
5960 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5963 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5965 * windows-nat.c (windows_xfer_shared_libraries): Return
5966 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5967 requested object is TARGET_OBJECT_LIBRARIES.
5969 2014-02-24 Yao Qi <yao@codesourcery.com>
5971 * target.h (enum target_xfer_status)
5972 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5973 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5975 * corefile.c (memory_error_message): User updated.
5976 * exec.c (section_table_read_available_memory): Likewise.
5977 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5978 * target.c (target_xfer_status_to_string): Likewise.
5979 (raw_memory_xfer_partial): Likewise.
5980 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5981 * valops.c (read_value_memory): Likewise.
5982 * exec.h: Update comments.
5984 2014-02-24 Yao Qi <yao@codesourcery.com>
5986 * target.c (target_xfer_status_to_string): Rename argument err
5988 * target.h (target_xfer_status_to_string): Update declaration.
5989 Replace target_xfer_error_to_string with
5990 target_xfer_status_to_string in comment.
5992 2014-02-24 Yao Qi <yao@codesourcery.com>
5994 * mips-linux-nat.c (super_close): Update its type.
5995 (mips_linux_close): Pass 'self' to super_close.
5997 2014-02-24 Yao Qi <yao@codesourcery.com>
5999 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6000 * corefile.c (read_memory): Adjusted.
6001 * target.c (target_write_with_progress): Adjusted.
6003 2014-02-23 Yao Qi <yao@codesourcery.com>
6007 2013-10-25 Yao Qi <yao@codesourcery.com>
6009 * remote.c (remote_traceframe_info): Return early if
6010 traceframe is not selected.
6012 2013-07-19 Yao Qi <yao@codesourcery.com>
6014 * target.c (update_current_target): Change the default action
6015 of 'to_traceframe_info' from tcomplain to return_zero.
6016 * target.h (struct target_ops) <to_traceframe_info>: Add more
6019 2014-02-23 Yao Qi <yao@codesourcery.com>
6021 * valops.c (read_value_memory): Rewrite it. Call
6022 target_xfer_partial in a loop.
6023 * exec.h (section_table_available_memory): Remove declaration.
6024 Move comments to ...
6025 * exec.c (section_table_available_memory): ... here. Make it
6028 2014-02-23 Yao Qi <yao@codesourcery.com>
6030 * exec.c (section_table_read_available_memory): New function.
6031 * exec.h (section_table_read_available_memory): Declare.
6032 * ctf.c (ctf_xfer_partial): Call
6033 section_table_read_available_memory.
6034 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6036 2014-02-23 Yao Qi <yao@codesourcery.com>
6038 * ctf.c (ctf_xfer_partial): Move code to ...
6039 * exec.c (exec_read_partial_read_only): ... it. New function.
6040 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6041 * tracefile.c: Include "exec.h".
6042 * exec.h (exec_read_partial_read_only): Declare.
6044 2014-02-23 Yao Qi <yao@codesourcery.com>
6046 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6047 (tfile_has_memory): Remove.
6048 (init_tfile_ops): Don't set fields to_has_all_memory and
6049 to_has_memory of tfile_ops.
6050 * tracefile.c (tracefile_has_all_memory): New function.
6051 (tracefile_has_memory): New function.
6052 (init_tracefile_ops): Initialize fields to_has_all_memory and
6053 to_has_memory of 'ops'.
6055 2014-02-23 Yao Qi <yao@codesourcery.com>
6057 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6058 (ctf_thread_alive, ctf_get_trace_status): Remove.
6059 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6061 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6062 (tfile_has_stack, tfile_has_registers): Remove.
6063 (tfile_thread_alive): Remove.
6064 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6066 * tracefile.c (tracefile_has_stack): New function.
6067 (tracefile_has_registers): New function.
6068 (tracefile_thread_alive): New function.
6069 (tracefile_get_trace_status): New function.
6070 (init_tracefile_ops): New function.
6071 * tracefile.h (init_tracefile_ops): Declare.
6073 2014-02-23 Yao Qi <yao@codesourcery.com>
6075 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6076 (O_LARGEFILE): Likewise.
6077 (tfile_ops): Likewise.
6078 (TRACE_HEADER_SIZE): Likewise.
6079 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6080 (cur_data_size): Likewise.
6081 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6082 (tfile_close, tfile_files_info): Likewise.
6083 (tfile_get_trace_status): Likewise.
6084 (tfile_get_tracepoint_status): Likewise.
6085 (tfile_get_traceframe_address): Likewise.
6086 (tfile_trace_find, match_blocktype): Likewise.
6087 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6088 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6089 (tfile_get_trace_state_variable_value): Likewise.
6090 (tfile_has_all_memory, tfile_has_memory): Likewise.
6091 (tfile_has_stack, tfile_has_registers): Likewise.
6092 (tfile_thread_alive, build_traceframe_info): Likewise.
6093 (tfile_traceframe_info, init_tfile_ops): Likewise.
6094 (_initialize_tracepoint): Don't call init_tfile_ops
6095 and add_target_with_completer.
6096 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6097 exec.h, completer.h and filenames.h.
6098 (_initialize_tracefile_tfile): New function.
6100 2014-02-23 Yao Qi <yao@codesourcery.com>
6102 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6104 (HFILES_NO_SRCDIR): Add tracefile.h.
6105 * ctf.c: Include "tracefile.h".
6106 * tracefile.h: New file.
6107 * tracefile.c: New file
6108 * tracefile-tfile.c: New file.
6109 * tracepoint.c: Include "tracefile.h".
6110 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6111 (stop_reason_names): Add const.
6112 (trace_file_writer_xfree): Move it to tracefile.c.
6113 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6114 (trace_save_ctf): Likewise.
6115 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6116 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6117 (tfile_write_header, tfile_write_regblock_type): Likewise.
6118 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6119 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6120 (tfile_write_raw_data, tfile_end): Likewise.
6121 (tfile_trace_file_writer_new): Likewise.
6122 (free_uploaded_tp): Make it extern.
6123 (free_uploaded_tsv): Make it extern.
6124 (_initialize_tracepoint): Move code to register command 'tsave'
6126 * tracepoint.h (stop_reason_names): Declare.
6127 (struct trace_frame_write_ops): Move it to tracefile.h.
6128 (struct trace_file_write_ops): Likewise.
6129 (struct trace_file_writer): Likewise.
6130 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6132 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6135 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6137 (get_cores_used_by_process): New parameter num_cores, use it.
6138 (linux_xfer_osdata_processes): Pass num_cores to it.
6139 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6142 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6144 * target.c (memory_xfer_partial): Fix length arg in call to
6145 breakpoint_xfer_memory.
6147 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6150 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6151 number comes after the + or - signs. Adjust length of register
6152 name to be extracted.
6154 2014-02-20 Tom Tromey <tromey@redhat.com>
6156 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6157 (ada_varobj_ops): Mark "extern".
6159 2014-02-20 Tom Tromey <tromey@redhat.com>
6161 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6163 2014-02-20 Doug Evans <xdje42@gmail.com>
6165 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6166 All callers updated.
6167 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6168 All callers updated.
6169 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6170 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6172 2014-02-20 lin zuojian <manjian2006@gmail.com>
6173 Joel Brobecker <brobecker@adacore.com>
6174 Doug Evans <xdje42@gmail.com>
6177 * dwarf2read.c (struct die_info): New member in_process.
6178 (reset_die_in_process): New function.
6179 (process_die): Set it at the start, reset when returning.
6180 (inherit_abstract_dies): Only call process_die if origin_child_die
6181 not already being processed.
6183 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6185 * windows-nat.c (handle_unload_dll): Add function documentation.
6186 (do_initial_windows_stuff): Add comment explaining why we wait
6187 until after inferior initialization has finished before
6188 processing all DLLs.
6190 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6192 * windows-nat.c (get_module_name): Delete.
6193 (windows_get_exec_module_filename): New function, mostly
6194 inspired from get_module_name.
6195 (windows_pid_to_exec_file): Replace call to get_module_name
6196 by call to windows_get_exec_module_filename.
6198 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6200 * windows-nat.c (handle_load_dll): Rewrite this function's
6201 introductory comment. Remove code using get_module_name
6202 to get the DLL's name.
6204 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6206 * windows-nat.c (get_windows_debug_event): Ignore
6207 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6208 if windows_initialization_done == 0.
6209 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6210 Adjust implementation to always load all DLLs.
6211 (do_initial_windows_stuff): Replace call to
6212 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6214 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6216 * windows-nat.c (_initialize_windows_nat): Deprecate the
6217 "dll-symbols" command. Turn the "add-shared-symbol-files"
6218 and "assf" aliases into commands, and deprecate them as well.
6219 * NEWS: Add entry explaining that "dll-symbols" and its two
6220 aliases are now deprecated.
6222 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6224 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6225 new-line in debug string. Remove trailing spaces.
6227 2014-02-19 Stan Shebs <stan@codesourcery.com>
6229 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6231 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6233 * NEWS: Add entry for the new feature
6234 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6237 2014-02-19 Stan Shebs <stan@codesourcery.com>
6239 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6241 2014-02-19 Pedro Alves <palves@redhat.com>
6243 * common/ptid.h (struct ptid): Mention that process_stratum
6244 targets should prefer ptid.lwp.
6246 2014-02-19 Pedro Alves <palves@redhat.com>
6248 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6249 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6250 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6251 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6252 store remote thread ids rather than ptid.tid.
6253 (_initialize_remote): Adjust.
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6257 * target.c (target_get_unwinder): Rewrite.
6258 (target_get_tailcall_unwinder): Rewrite.
6259 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6260 (record_btrace_to_get_tailcall_unwinder): New function.
6261 (init_record_btrace_ops): Update.
6262 * target.h (struct target_ops) <to_get_unwinder,
6263 to_get_tailcall_unwinder>: Now function pointers. Use
6264 TARGET_DEFAULT_RETURN.
6266 2014-02-19 Tom Tromey <tromey@redhat.com>
6268 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6270 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6272 2014-02-19 Tom Tromey <tromey@redhat.com>
6274 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6276 * target-delegates.c: Rebuild.
6277 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6278 TARGET_DEFAULT_FUNC.
6279 * target.c (default_target_decr_pc_after_break): Rename from
6280 forward_target_decr_pc_after_break. Simplify.
6281 (target_decr_pc_after_break): Rely on delegation.
6283 2014-02-19 Tom Tromey <tromey@redhat.com>
6285 * target.c (update_current_target): Do not INHERIT to_doc or
6286 to_magic. Do not de_fault to_open or to_close.
6288 2014-02-19 Tom Tromey <tromey@redhat.com>
6290 * gcore.h (objfile_find_memory_regions): Declare.
6291 * gcore.c (objfile_find_memory_regions): No longer static. Add
6293 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6294 * exec.c: Include gcore.h.
6295 (exec_set_find_memory_regions): Remove.
6296 (exec_find_memory_regions): Remove.
6297 (exec_do_find_memory_regions): Remove.
6298 (init_exec_ops): Update.
6299 * defs.h (exec_set_find_memory_regions): Remove.
6301 2014-02-19 Tom Tromey <tromey@redhat.com>
6303 * target-delegates.c: Rebuild.
6304 * target.h (struct target_ops) <to_extra_thread_info,
6305 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6306 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6307 not 0, in TARGET_DEFAULT_RETURN.
6309 2014-02-19 Tom Tromey <tromey@redhat.com>
6311 * target.c (complete_target_initialization): Remove casts. Use
6312 return_zero_has_execution.
6313 (return_zero): Add "ignore" argument.
6314 (return_zero_has_execution): New function.
6315 (init_dummy_target): Remove casts. Use
6316 return_zero_has_execution.
6318 2014-02-19 Tom Tromey <tromey@redhat.com>
6320 * target.c (update_current_target): Update comments. Do not
6323 2014-02-19 Tom Tromey <tromey@redhat.com>
6325 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6327 * corelow.c (core_read_description): Delegate when needed.
6328 * remote.c (remote_read_description): Delegate when needed.
6329 * target-delegates.c: Rebuild.
6330 * target.c (target_read_description): Rewrite.
6331 * target.h (struct target_ops) <to_read_description>: Update
6332 comment. Use TARGET_DEFAULT_RETURN.
6334 2014-02-19 Tom Tromey <tromey@redhat.com>
6336 * target-delegates.c: Rebuild.
6337 * target.c (update_current_target): Don't inherit or default
6339 (find_default_run_target): Check against delegate_can_run.
6340 * target.h (struct target_ops) <to_can_run>: Use
6341 TARGET_DEFAULT_RETURN.
6343 2014-02-19 Tom Tromey <tromey@redhat.com>
6345 * target-delegates.c: Rebuild.
6346 * target.c (target_disconnect): Unconditionally delegate.
6347 * target.h (struct target_ops) <to_disconnect>: Use
6348 TARGET_DEFAULT_NORETURN.
6350 2014-02-19 Tom Tromey <tromey@redhat.com>
6352 * record.c (record_stop): Unconditionally delegate.
6353 * target-delegates.c: Rebuild.
6354 * target.c (target_stop_recording): Unconditionally delegate.
6355 * target.h (struct target_ops) <to_stop_recording>: Use
6356 TARGET_DEFAULT_IGNORE.
6358 2014-02-19 Tom Tromey <tromey@redhat.com>
6360 * target-delegates.c: Rebuild.
6361 * target.c (target_enable_btrace): Unconditionally delegate.
6362 * target.h (struct target_ops) <to_enable_btrace>: Use
6363 TARGET_DEFAULT_NORETURN.
6365 2014-02-19 Tom Tromey <tromey@redhat.com>
6367 * target-delegates.c: Rebuild.
6368 * target.c (target_read_btrace): Unconditionally delegate.
6369 * target.h (struct target_ops) <to_read_btrace>: Use
6370 TARGET_DEFAULT_NORETURN.
6372 2014-02-19 Tom Tromey <tromey@redhat.com>
6374 * target-delegates.c: Rebuild.
6375 * target.c (target_teardown_btrace): Unconditionally delegate.
6376 * target.h (struct target_ops) <to_teardown_btrace>: Use
6377 TARGET_DEFAULT_NORETURN.
6379 2014-02-19 Tom Tromey <tromey@redhat.com>
6381 * target-delegates.c: Rebuild.
6382 * target.c (target_disable_btrace): Unconditionally delegate.
6383 * target.h (struct target_ops) <to_disable_btrace>: Use
6384 TARGET_DEFAULT_NORETURN.
6386 2014-02-19 Tom Tromey <tromey@redhat.com>
6388 * target-delegates.c: Rebuild.
6389 * target.c (default_search_memory): New function.
6390 (simple_search_memory): Update comment.
6391 (target_search_memory): Unconditionally delegate.
6392 * target.h (struct target_ops) <to_search_memory>: Use
6393 TARGET_DEFAULT_FUNC.
6395 2014-02-19 Tom Tromey <tromey@redhat.com>
6397 * auxv.c (default_auxv_parse): No longer static.
6398 (target_auxv_parse): Unconditionally delegate.
6399 * auxv.h (default_auxv_parse): Declare.
6400 * target-delegates.c: Rebuild.
6401 * target.c: Include auxv.h.
6402 * target.h (struct target_ops) <to_auxv_parse>: Use
6403 TARGET_DEFAULT_FUNC.
6405 2014-02-19 Tom Tromey <tromey@redhat.com>
6407 * target-delegates.c: Rebuild.
6408 * target.c (target_memory_map): Unconditionally delegate.
6409 * target.h (struct target_ops) <to_memory_map>: Use
6410 TARGET_DEFAULT_RETURN.
6412 2014-02-19 Tom Tromey <tromey@redhat.com>
6414 * target-delegates.c: Rebuild.
6415 * target.c (target_thread_alive): Unconditionally delegate.
6416 * target.h (struct target_ops) <to_thread_alive>: Use
6417 TARGET_DEFAULT_RETURN.
6419 2014-02-19 Tom Tromey <tromey@redhat.com>
6421 * target-delegates.c: Rebuild.
6422 * target.c (target_save_record): Unconditionally delegate.
6423 * target.h (struct target_ops) <to_save_record>: Use
6424 TARGET_DEFAULT_NORETURN.
6426 2014-02-19 Tom Tromey <tromey@redhat.com>
6428 * target-delegates.c: Rebuild.
6429 * target.c (target_delete_record): Unconditionally delegate.
6430 * target.h (struct target_ops) <to_delete_record>: Use
6431 TARGET_DEFAULT_NORETURN.
6433 2014-02-19 Tom Tromey <tromey@redhat.com>
6435 * target-delegates.c: Rebuild.
6436 * target.c (target_record_is_replaying): Unconditionally
6438 * target.h (struct target_ops) <to_record_is_replaying>: Use
6439 TARGET_DEFAULT_RETURN.
6441 2014-02-19 Tom Tromey <tromey@redhat.com>
6443 * target-delegates.c: Rebuild.
6444 * target.c (target_goto_record_begin): Unconditionally delegate.
6445 * target.h (struct target_ops) <to_goto_record_begin>: Use
6446 TARGET_DEFAULT_NORETURN.
6448 2014-02-19 Tom Tromey <tromey@redhat.com>
6450 * target-delegates.c: Rebuild.
6451 * target.c (target_goto_record_end): Unconditionally delegate.
6452 * target.h (struct target_ops) <to_goto_record_end>: Use
6453 TARGET_DEFAULT_NORETURN.
6455 2014-02-19 Tom Tromey <tromey@redhat.com>
6457 * target-delegates.c: Rebuild.
6458 * target.c (target_goto_record): Unconditionally delegate.
6459 * target.h (struct target_ops) <to_goto_record>: Use
6460 TARGET_DEFAULT_NORETURN.
6462 2014-02-19 Tom Tromey <tromey@redhat.com>
6464 * target-delegates.c: Rebuild.
6465 * target.c (target_insn_history): Unconditionally delegate.
6466 * target.h (struct target_ops) <to_insn_history>: Use
6467 TARGET_DEFAULT_NORETURN.
6469 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * target-delegates.c: Rebuild.
6472 * target.c (target_insn_history_from): Unconditionally delegate.
6473 * target.h (struct target_ops) <to_insn_history_from>: Use
6474 TARGET_DEFAULT_NORETURN.
6476 2014-02-19 Tom Tromey <tromey@redhat.com>
6478 * target-delegates.c: Rebuild.
6479 * target.c (target_insn_history_range): Unconditionally delegate.
6480 * target.h (struct target_ops) <to_insn_history_range>: Use
6481 TARGET_DEFAULT_NORETURN.
6483 2014-02-19 Tom Tromey <tromey@redhat.com>
6485 * target-delegates.c: Rebuild.
6486 * target.c (target_call_history): Unconditionally delegate.
6487 * target.h (struct target_ops) <to_call_history>: Use
6488 TARGET_DEFAULT_NORETURN.
6490 2014-02-19 Tom Tromey <tromey@redhat.com>
6492 * target-delegates.c: Rebuild.
6493 * target.c (target_call_history_from): Unconditionally delegate.
6494 * target.h (struct target_ops) <to_call_history_from>: Use
6495 TARGET_DEFAULT_NORETURN.
6497 2014-02-19 Tom Tromey <tromey@redhat.com>
6499 * target-delegates.c: Rebuild.
6500 * target.c (target_call_history_range): Unconditionally delegate.
6501 * target.h (struct target_ops) <to_call_history_range>: Use
6502 TARGET_DEFAULT_NORETURN.
6504 2014-02-19 Tom Tromey <tromey@redhat.com>
6506 * target-delegates.c: Rebuild.
6507 * target.c (target_verify_memory): Unconditionally delegate.
6508 * target.h (struct target_ops) <to_verify_memory>: Use
6509 TARGET_DEFAULT_NORETURN.
6511 2014-02-19 Tom Tromey <tromey@redhat.com>
6513 * target-delegates.c: Rebuild.
6514 * target.c (target_core_of_thread): Unconditionally delegate.
6515 * target.h (struct target_ops) <to_core_of_thread>: Use
6516 TARGET_DEFAULT_RETURN.
6518 2014-02-19 Tom Tromey <tromey@redhat.com>
6520 * target-delegates.c: Rebuild.
6521 * target.c (target_flash_done): Unconditionally delegate.
6522 * target.h (struct target_ops) <to_flash_done>: Use
6523 TARGET_DEFAULT_NORETURN.
6525 2014-02-19 Tom Tromey <tromey@redhat.com>
6527 * target-delegates.c: Rebuild.
6528 * target.c (target_flash_erase): Unconditionally delegate.
6529 * target.h (struct target_ops) <to_flash_erase>: Use
6530 TARGET_DEFAULT_NORETURN.
6532 2014-02-19 Tom Tromey <tromey@redhat.com>
6534 * target-delegates.c: Rebuild.
6535 * target.c (target_get_section_table): Unconditionally delegate.
6536 * target.h (struct target_ops) <to_get_section_table>: Use
6537 TARGET_DEFAULT_RETURN.
6539 2014-02-19 Tom Tromey <tromey@redhat.com>
6541 * target-delegates.c: Rebuild.
6542 * target.c (target_pid_to_str): Unconditionally delegate.
6543 (init_dummy_target): Don't initialize to_pid_to_str.
6544 (default_pid_to_str): Rename from dummy_pid_to_str.
6545 * target.h (struct target_ops) <to_pid_to_str>: Use
6546 TARGET_DEFAULT_FUNC.
6548 2014-02-19 Tom Tromey <tromey@redhat.com>
6550 * target-delegates.c: Rebuild.
6551 * target.c (target_find_new_threads): Unconditionally delegate.
6552 * target.h (struct target_ops) <to_find_new_threads>: Use
6553 TARGET_DEFAULT_RETURN.
6555 2014-02-19 Tom Tromey <tromey@redhat.com>
6557 * target-delegates.c: Rebuild.
6558 * target.c (target_program_signals): Unconditionally delegate.
6559 * target.h (struct target_ops) <to_program_signals>: Use
6560 TARGET_DEFAULT_IGNORE.
6562 2014-02-19 Tom Tromey <tromey@redhat.com>
6564 * target-delegates.c: Rebuild.
6565 * target.c (target_pass_signals): Unconditionally delegate.
6566 * target.h (struct target_ops) <to_pass_signals>: Use
6567 TARGET_DEFAULT_IGNORE.
6569 2014-02-19 Tom Tromey <tromey@redhat.com>
6571 * target-delegates.c: Rebuild.
6572 * target.c (default_mourn_inferior): New function.
6573 (target_mourn_inferior): Unconditionally delegate.
6574 * target.h (struct target_ops) <to_mourn_inferior>: Use
6575 TARGET_DEFAULT_FUNC.
6577 2014-02-19 Tom Tromey <tromey@redhat.com>
6579 * target-delegates.c: Rebuild.
6580 * target.c (default_follow_fork): New function.
6581 (target_follow_fork): Unconditionally delegate.
6582 * target.h (struct target_ops) <to_follow_fork>: Use
6583 TARGET_DEFAULT_FUNC.
6585 2014-02-19 Tom Tromey <tromey@redhat.com>
6587 * target-delegates.c: Rebuild.
6588 * target.c (target_kill): Unconditionally delegate.
6589 * target.h (struct target_ops) <to_kill>: Use
6590 TARGET_DEFAULT_NORETURN.
6592 2014-02-19 Tom Tromey <tromey@redhat.com>
6594 * target-delegates.c: Rebuild.
6595 * target.c (target_masked_watch_num_registers): Unconditionally
6597 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6598 Use TARGET_DEFAULT_RETURN.
6600 2014-02-19 Tom Tromey <tromey@redhat.com>
6602 * target-delegates.c: Rebuild.
6603 * target.c (target_remove_mask_watchpoint): Unconditionally
6605 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6606 TARGET_DEFAULT_RETURN.
6608 2014-02-19 Tom Tromey <tromey@redhat.com>
6610 * target-delegates.c: Rebuild.
6611 * target.c (target_insert_mask_watchpoint): Unconditionally
6613 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6614 TARGET_DEFAULT_RETURN.
6616 2014-02-19 Tom Tromey <tromey@redhat.com>
6618 * target-delegates.c: Rebuild.
6619 * target.c (target_ranged_break_num_registers): Unconditionally
6621 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6622 Use TARGET_DEFAULT_RETURN.
6624 2014-02-19 Tom Tromey <tromey@redhat.com>
6626 * target-delegates.c: Rebuild.
6627 * target.c (target_fetch_registers): Unconditionally delegate.
6628 * target.h (struct target_ops) <to_fetch_registers>: 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
6636 * target.h (struct target_ops) <to_stop>: Use
6637 TARGET_DEFAULT_IGNORE.
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
6643 to_can_run_breakpoint_commands.
6644 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6645 Use TARGET_DEFAULT_RETURN.
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_supports_evaluation_of_breakpoint_conditions.
6652 * target.h (struct target_ops)
6653 <to_supports_evaluation_of_breakpoint_conditions>: Use
6654 TARGET_DEFAULT_RETURN.
6656 2014-02-19 Tom Tromey <tromey@redhat.com>
6658 * target-delegates.c: Rebuild.
6659 * target.c (update_current_target): Don't inherit or default
6660 to_augmented_libraries_svr4_read.
6661 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6662 Use TARGET_DEFAULT_RETURN.
6664 2014-02-19 Tom Tromey <tromey@redhat.com>
6666 * target-delegates.c: Rebuild.
6667 * target.c (update_current_target): Don't inherit or default
6669 * target.h (struct target_ops) <to_can_use_agent>: Use
6670 TARGET_DEFAULT_RETURN.
6672 2014-02-19 Tom Tromey <tromey@redhat.com>
6674 * target-delegates.c: Rebuild.
6675 * target.c (update_current_target): Don't inherit or default
6677 * target.h (struct target_ops) <to_use_agent>: Use
6678 TARGET_DEFAULT_NORETURN.
6680 2014-02-19 Tom Tromey <tromey@redhat.com>
6682 * target-delegates.c: Rebuild.
6683 * target.c (update_current_target): Don't inherit or default
6685 (return_null): Remove.
6686 * target.h (struct target_ops) <to_traceframe_info>: Use
6687 TARGET_DEFAULT_RETURN.
6689 2014-02-19 Tom Tromey <tromey@redhat.com>
6691 * target-delegates.c: Rebuild.
6692 * target.c (update_current_target): Don't inherit or default
6693 to_static_tracepoint_markers_by_strid.
6694 * target.h (struct target_ops)
6695 <to_static_tracepoint_markers_by_strid>: Use
6696 TARGET_DEFAULT_NORETURN.
6698 2014-02-19 Tom Tromey <tromey@redhat.com>
6700 * target-delegates.c: Rebuild.
6701 * target.c (update_current_target): Don't inherit or default
6702 to_static_tracepoint_marker_at.
6703 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6704 Use TARGET_DEFAULT_RETURN.
6706 2014-02-19 Tom Tromey <tromey@redhat.com>
6708 * target-delegates.c: Rebuild.
6709 * target.c (update_current_target): Don't inherit or default
6711 * target.h (struct target_ops) <to_set_permissions>: Use
6712 TARGET_DEFAULT_IGNORE.
6714 2014-02-19 Tom Tromey <tromey@redhat.com>
6716 * target-delegates.c: Rebuild.
6717 * target.c (update_current_target): Don't inherit or default
6719 * target.h (struct target_ops) <to_get_tib_address>: Use
6720 TARGET_DEFAULT_NORETURN.
6722 2014-02-19 Tom Tromey <tromey@redhat.com>
6724 * target-delegates.c: Rebuild.
6725 * target.c (update_current_target): Don't inherit or default
6727 * target.h (struct target_ops) <to_set_trace_notes>: Use
6728 TARGET_DEFAULT_RETURN.
6730 2014-02-19 Tom Tromey <tromey@redhat.com>
6732 * target-delegates.c: Rebuild.
6733 * target.c (update_current_target): Don't initialize
6734 to_set_trace_buffer_size.
6735 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6736 TARGET_DEFAULT_IGNORE.
6738 2014-02-19 Tom Tromey <tromey@redhat.com>
6740 * target-delegates.c: Rebuild.
6741 * target.c (update_current_target): Don't inherit or default
6742 to_set_circular_trace_buffer.
6743 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6744 TARGET_DEFAULT_IGNORE.
6746 2014-02-19 Tom Tromey <tromey@redhat.com>
6748 * target-delegates.c: Rebuild.
6749 * target.c (update_current_target): Don't inherit or default
6750 to_set_disconnected_tracing.
6751 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6752 TARGET_DEFAULT_IGNORE.
6754 2014-02-19 Tom Tromey <tromey@redhat.com>
6756 * target-delegates.c: Rebuild.
6757 * target.c (update_current_target): Don't inherit or default
6758 to_get_min_fast_tracepoint_insn_len.
6759 (return_minus_one): Remove.
6760 * target.h (struct target_ops)
6761 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6763 2014-02-19 Tom Tromey <tromey@redhat.com>
6765 * target-delegates.c: Rebuild.
6766 * target.c (update_current_target): Don't inherit or default
6767 to_get_raw_trace_data.
6768 * target.h (struct target_ops) <to_get_raw_trace_data>: 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
6775 to_upload_trace_state_variables.
6776 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6777 Use TARGET_DEFAULT_RETURN.
6779 2014-02-19 Tom Tromey <tromey@redhat.com>
6781 * target-delegates.c: Rebuild.
6782 * target.c (update_current_target): Don't inherit or default
6783 to_upload_tracepoints.
6784 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6785 TARGET_DEFAULT_RETURN.
6787 2014-02-19 Tom Tromey <tromey@redhat.com>
6789 * target-delegates.c: Rebuild.
6790 * target.c (update_current_target): Don't inherit or default
6792 * target.h (struct target_ops) <to_save_trace_data>: Use
6793 TARGET_DEFAULT_NORETURN.
6795 2014-02-19 Tom Tromey <tromey@redhat.com>
6797 * target-delegates.c: Rebuild.
6798 * target.c (update_current_target): Don't inherit or default
6799 to_get_trace_state_variable_value.
6800 * target.h (struct target_ops)
6801 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6803 2014-02-19 Tom Tromey <tromey@redhat.com>
6805 * target-delegates.c: Rebuild.
6806 * target.c (update_current_target): Don't inherit or default
6808 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6810 2014-02-19 Tom Tromey <tromey@redhat.com>
6812 * target-delegates.c: Rebuild.
6813 * target.c (update_current_target): Don't inherit or default
6815 * target.h (struct target_ops) <to_trace_stop>: Use
6816 TARGET_DEFAULT_NORETURN.
6818 2014-02-19 Tom Tromey <tromey@redhat.com>
6820 * target-delegates.c: Rebuild.
6821 * target.c (update_current_target): Don't inherit or default
6822 to_get_tracepoint_status.
6823 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6824 TARGET_DEFAULT_NORETURN.
6826 2014-02-19 Tom Tromey <tromey@redhat.com>
6828 * target-delegates.c: Rebuild.
6829 * target.c (update_current_target): Don't inherit or default
6830 to_get_trace_status.
6831 * target.h (struct target_ops) <to_get_trace_status>: Use
6832 TARGET_DEFAULT_RETURN.
6834 2014-02-19 Tom Tromey <tromey@redhat.com>
6836 * target-delegates.c: Rebuild.
6837 * target.c (update_current_target): Don't inherit or default
6839 * target.h (struct target_ops) <to_trace_start>: Use
6840 TARGET_DEFAULT_NORETURN.
6842 2014-02-19 Tom Tromey <tromey@redhat.com>
6844 * target-delegates.c: Rebuild.
6845 * target.c (update_current_target): Don't inherit or default
6846 to_trace_set_readonly_regions.
6847 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6848 Use TARGET_DEFAULT_NORETURN.
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_disable_tracepoint.
6855 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6856 TARGET_DEFAULT_NORETURN.
6858 2014-02-19 Tom Tromey <tromey@redhat.com>
6860 * target-delegates.c: Rebuild.
6861 * target.c (update_current_target): Don't inherit or default
6862 to_enable_tracepoint.
6863 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6864 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
6871 * target.h (struct target_ops) <to_download_trace_state_variable>:
6872 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
6879 * target.h (struct target_ops) <to_can_download_tracepoint>: 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_download_tracepoint.
6887 * target.h (struct target_ops) <to_download_tracepoint>: Use
6888 TARGET_DEFAULT_NORETURN.
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
6895 * target.h (struct target_ops) <to_trace_init>: 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_supports_string_tracing.
6903 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6904 TARGET_DEFAULT_RETURN.
6906 2014-02-19 Tom Tromey <tromey@redhat.com>
6908 * target-delegates.c: Rebuild.
6909 * target.c (update_current_target): Don't inherit or default
6910 to_supports_enable_disable_tracepoint.
6911 * target.h (struct target_ops)
6912 <to_supports_enable_disable_tracepoint>: Use
6913 TARGET_DEFAULT_RETURN.
6915 2014-02-19 Tom Tromey <tromey@redhat.com>
6917 * target-delegates.c: Rebuild.
6918 * target.c (update_current_target): Don't inherit or default
6919 to_supports_multi_process.
6920 * target.h (struct target_ops) <to_supports_multi_process>: Use
6921 TARGET_DEFAULT_RETURN.
6923 2014-02-19 Tom Tromey <tromey@redhat.com>
6925 * target-delegates.c: Rebuild.
6926 * target.c (update_current_target): Don't inherit or default
6927 to_get_ada_task_ptid.
6928 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6929 TARGET_DEFAULT_FUNC.
6931 2014-02-19 Tom Tromey <tromey@redhat.com>
6933 * target-delegates.c: Rebuild.
6934 * target.c (update_current_target): Don't inherit or default
6935 to_thread_architecture.
6936 * target.h (struct target_ops) <to_thread_architecture>: Use
6937 TARGET_DEFAULT_FUNC.
6939 2014-02-19 Tom Tromey <tromey@redhat.com>
6941 * target-delegates.c: Rebuild.
6942 * target.c (update_current_target): Don't inherit or default
6943 to_execution_direction.
6944 * target.h (struct target_ops) <to_execution_direction>: Use
6945 TARGET_DEFAULT_FUNC.
6947 2014-02-19 Tom Tromey <tromey@redhat.com>
6949 * target-delegates.c: Rebuild.
6950 * target.c (update_current_target): Don't inherit or default
6951 to_can_execute_reverse.
6952 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6953 TARGET_DEFAULT_RETURN.
6954 (target_can_execute_reverse): Unconditionally delegate.
6956 2014-02-19 Tom Tromey <tromey@redhat.com>
6958 * target-delegates.c: Rebuild.
6959 * target.c (update_current_target): Don't inherit or default
6961 (dummy_goto_bookmark): Remove.
6962 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6963 * target.h (struct target_ops) <to_goto_bookmark>: Use
6964 TARGET_DEFAULT_NORETURN.
6966 2014-02-19 Tom Tromey <tromey@redhat.com>
6968 * target-delegates.c: Rebuild.
6969 * target.c (update_current_target): Don't inherit or default
6971 (dummy_get_bookmark): Remove.
6972 (init_dummy_target): Don't inherit or default to_get_bookmark.
6973 * target.h (struct target_ops) <to_get_bookmark>: Use
6974 TARGET_DEFAULT_NORETURN
6976 2014-02-19 Tom Tromey <tromey@redhat.com>
6978 * target-delegates.c: Rebuild.
6979 * target.c (update_current_target): Don't inherit or default
6980 to_make_corefile_notes.
6981 (init_dummy_target): Don't initialize to_make_corefile_notes.
6982 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6983 TARGET_DEFAULT_FUNC.
6985 2014-02-19 Tom Tromey <tromey@redhat.com>
6987 * target-delegates.c: Rebuild.
6988 * target.c (update_current_target): Don't inherit or default
6989 to_find_memory_regions.
6990 (init_dummy_target): Don't initialize to_find_memory_regions.
6991 * target.h (struct target_ops) <to_find_memory_regions>: Use
6992 TARGET_DEFAULT_FUNC.
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
6999 * target.h (struct target_ops) <to_log_command>: Use
7000 TARGET_DEFAULT_IGNORE.
7001 (target_log_command): Unconditionally delegate.
7003 2014-02-19 Tom Tromey <tromey@redhat.com>
7005 * target-delegates.c: Rebuild.
7006 * target.c (update_current_target): Don't inherit or default
7007 to_pid_to_exec_file.
7008 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7009 TARGET_DEFAULT_RETURN.
7011 2014-02-19 Tom Tromey <tromey@redhat.com>
7013 * target-delegates.c: Rebuild.
7014 * target.c (update_current_target): Don't inherit or default
7016 (target_thread_name): Unconditionally delegate.
7017 * target.h (struct target_ops) <to_thread_name>: Use
7018 TARGET_DEFAULT_RETURN.
7020 2014-02-19 Tom Tromey <tromey@redhat.com>
7022 * target-delegates.c: Rebuild.
7023 * target.c (update_current_target): Don't inherit or default
7024 to_extra_thread_info.
7025 * target.h (struct target_ops) <to_extra_thread_info>: Use
7026 TARGET_DEFAULT_RETURN.
7028 2014-02-19 Tom Tromey <tromey@redhat.com>
7030 * target-delegates.c: Rebuild.
7031 * target.c (update_current_target): Don't inherit or default
7033 * target.h (struct target_ops) <to_has_exited>: Use
7034 TARGET_DEFAULT_RETURN..
7036 2014-02-19 Tom Tromey <tromey@redhat.com>
7038 * target-delegates.c: Rebuild.
7039 * target.c (update_current_target): Don't inherit or default
7040 to_set_syscall_catchpoint.
7041 (return_one): Remove.
7042 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7043 TARGET_DEFAULT_RETURN.
7045 2014-02-19 Tom Tromey <tromey@redhat.com>
7047 * target-delegates.c: Rebuild.
7048 * target.c (update_current_target): Don't inherit or default
7049 to_insert_exec_catchpoint.
7050 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7051 TARGET_DEFAULT_RETURN.
7053 2014-01-08 Tom Tromey <tromey@redhat.com>
7055 * target-delegates.c: Rebuild.
7056 * target.c (update_current_target): Don't inherit or default
7057 to_insert_exec_catchpoint.
7058 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7059 TARGET_DEFAULT_RETURN.
7061 2014-02-19 Tom Tromey <tromey@redhat.com>
7063 * target-delegates.c: Rebuild.
7064 * target.c (update_current_target): Don't inherit or default
7065 to_remove_vfork_catchpoint.
7066 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7067 TARGET_DEFAULT_RETURN.
7069 2014-02-19 Tom Tromey <tromey@redhat.com>
7071 * target-delegates.c: Rebuild.
7072 * target.c (update_current_target): Don't inherit or default
7073 to_insert_vfork_catchpoint.
7074 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7075 TARGET_DEFAULT_RETURN.
7077 2014-02-19 Tom Tromey <tromey@redhat.com>
7079 * target-delegates.c: Rebuild.
7080 * target.c (update_current_target): Don't inherit or default
7081 to_remove_fork_catchpoint.
7082 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7083 TARGET_DEFAULT_RETURN.
7085 2014-02-19 Tom Tromey <tromey@redhat.com>
7087 * target-delegates.c: Rebuild.
7088 * target.c (update_current_target): Don't inherit or default
7089 to_insert_fork_catchpoint.
7090 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7091 TARGET_DEFAULT_RETURN.
7093 2014-02-19 Tom Tromey <tromey@redhat.com>
7095 * target-delegates.c: Rebuild.
7096 * target.c (update_current_target): Don't inherit or default
7097 to_post_startup_inferior.
7098 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7099 TARGET_DEFAULT_IGNORE.
7101 2014-02-19 Tom Tromey <tromey@redhat.com>
7103 * target-delegates.c: Rebuild.
7104 * target.c (update_current_target): Don't inherit or default
7106 * target.h (struct target_ops) <to_load>: Use
7107 TARGET_DEFAULT_NORETURN.
7109 2014-02-19 Tom Tromey <tromey@redhat.com>
7111 * target-delegates.c: Rebuild.
7112 * target.c (update_current_target): Don't inherit or default
7114 * target.h (struct target_ops) <to_terminal_info>: Use
7115 TARGET_DEFAULT_FUNC.
7117 2014-02-19 Tom Tromey <tromey@redhat.com>
7119 * target-delegates.c: Rebuild.
7120 * target.c (update_current_target): Don't inherit or default
7121 to_terminal_save_ours.
7122 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7123 TARGET_DEFAULT_IGNORE.
7125 2014-02-19 Tom Tromey <tromey@redhat.com>
7127 * target-delegates.c: Rebuild.
7128 * target.c (update_current_target): Don't inherit or default
7130 * target.h (struct target_ops) <to_terminal_ours>: Use
7131 TARGET_DEFAULT_IGNORE.
7133 2014-02-19 Tom Tromey <tromey@redhat.com>
7135 * target-delegates.c: Rebuild.
7136 * target.c (update_current_target): Don't inherit or default
7137 to_terminal_ours_for_output.
7138 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7139 TARGET_DEFAULT_IGNORE.
7141 2014-02-19 Tom Tromey <tromey@redhat.com>
7143 * target-delegates.c: Rebuild.
7144 * target.c (update_current_target): Don't inherit or default
7145 to_terminal_inferior.
7146 * target.h (struct target_ops) <to_terminal_inferior>: Use
7147 TARGET_DEFAULT_IGNORE.
7149 2014-02-19 Tom Tromey <tromey@redhat.com>
7151 * target-delegates.c: Rebuild.
7152 * target.c (update_current_target): Don't inherit or default
7154 * target.h (struct target_ops) <to_terminal_init>: Use
7155 TARGET_DEFAULT_IGNORE.
7157 2014-02-19 Tom Tromey <tromey@redhat.com>
7159 * target-delegates.c: Rebuild.
7160 * target.c (update_current_target): Don't inherit or default
7161 to_can_accel_watchpoint_condition.
7162 * target.h (struct target_ops)
7163 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7165 2014-02-19 Tom Tromey <tromey@redhat.com>
7167 * target-delegates.c: Rebuild.
7168 * target.c (update_current_target): Don't inherit or default
7169 to_region_ok_for_hw_watchpoint.
7170 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7171 Use TARGET_DEFAULT_FUNC.
7173 2014-02-19 Tom Tromey <tromey@redhat.com>
7175 * target-delegates.c: Rebuild.
7176 * target.c (update_current_target): Don't inherit or default
7177 to_watchpoint_addr_within_range.
7178 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7179 Use TARGET_DEFAULT_FUNC.
7181 2014-02-19 Tom Tromey <tromey@redhat.com>
7183 * target-delegates.c: Rebuild.
7184 * target.c (update_current_target): Don't inherit or default
7185 to_remove_watchpoint.
7186 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7187 TARGET_DEFAULT_NORETURN.
7189 2014-02-19 Tom Tromey <tromey@redhat.com>
7191 * target-delegates.c: Rebuild.
7192 * target.c (update_current_target): Don't inherit or default
7193 to_insert_watchpoint.
7194 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7195 TARGET_DEFAULT_RETURN.
7197 2014-02-19 Tom Tromey <tromey@redhat.com>
7199 * target-delegates.c: Rebuild.
7200 * target.c (update_current_target): Don't inherit or default
7201 to_remove_hw_breakpoint.
7202 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7203 TARGET_DEFAULT_RETURN.
7205 2014-02-19 Tom Tromey <tromey@redhat.com>
7207 * target-delegates.c: Rebuild.
7208 * target.c (update_current_target): Don't inherit or default
7209 to_insert_hw_breakpoint.
7210 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7211 TARGET_DEFAULT_RETURN.
7213 2014-02-19 Tom Tromey <tromey@redhat.com>
7215 * target-delegates.c: Rebuild.
7216 * target.c (update_current_target): Don't inherit or default
7217 to_can_use_hw_breakpoint.
7218 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7219 TARGET_DEFAULT_RETURN.
7221 2014-02-19 Tom Tromey <tromey@redhat.com>
7223 * target-delegates.c: Rebuild.
7224 * target.c (update_current_target): Don't inherit or default
7226 * target.h (struct target_ops) <to_files_info>: Use
7227 TARGET_DEFAULT_IGNORE.
7229 2014-02-19 Tom Tromey <tromey@redhat.com>
7231 * target-delegates.c: Rebuild.
7232 * target.c (update_current_target): Don't inherit or default
7234 * target.h (struct target_ops) <to_store>: Use
7235 TARGET_DEFAULT_NORETURN.
7237 2014-02-19 Tom Tromey <tromey@redhat.com>
7239 * target-delegates.c: Rebuild.
7240 * target.c (update_current_target): Don't inherit or default
7242 * target.h (struct target_ops) <to_post_attach>: Use
7243 TARGET_DEFAULT_IGNORE.
7245 2014-02-19 Tom Tromey <tromey@redhat.com>
7247 * target-delegates.c: Rebuild.
7248 * target.c (update_current_target): Don't inherit or default
7250 (default_rcmd): New function.
7251 (do_monitor_command): Unconditionally delegate.
7252 * target.h (struct target_ops) <to_rmcd>: Use
7253 TARGET_DEFAULT_FUNC.
7255 2014-02-19 Tom Tromey <tromey@redhat.com>
7257 * target-delegates.c: Rebuild.
7258 * target.c (init_dummy_target): Don't initialize to_attach.
7259 (target_attach): Unconditionally delegate.
7260 * target.h (struct target_ops) <to_attach>: Use
7261 TARGET_DEFAULT_FUNC.
7263 2014-02-19 Tom Tromey <tromey@redhat.com>
7265 * target-delegates.c: Rebuild.
7266 * target.c (target_detach): Unconditionally delegate.
7267 (init_dummy_target): Don't initialize to_detach.
7268 * target.h (struct target_ops) <to_detach>: Use
7269 TARGET_DEFAULT_IGNORE.
7271 2014-02-19 Tom Tromey <tromey@redhat.com>
7273 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7275 (target_augmented_libraries_svr4_read): Add argument.
7276 * target.c (update_current_target): Update.
7277 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7280 2014-02-19 Tom Tromey <tromey@redhat.com>
7282 * target.h (struct target_ops) <to_call_history_range>: Add
7284 * target.c (target_call_history_range): Add argument.
7285 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7287 (record_btrace_call_history_from): Update.
7289 2014-02-19 Tom Tromey <tromey@redhat.com>
7291 * target.h (struct target_ops) <to_call_history_from>: Add
7293 * target.c (target_call_history_from): Add argument.
7294 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7297 2014-02-19 Tom Tromey <tromey@redhat.com>
7299 * target.h (struct target_ops) <to_call_history>: Add argument.
7300 * target.c (target_call_history): Add argument.
7301 * record-btrace.c (record_btrace_call_history): Add 'self'
7304 2014-02-19 Tom Tromey <tromey@redhat.com>
7306 * target.h (struct target_ops) <to_insn_history_range>: Add
7308 * target.c (target_insn_history_range): Add argument.
7309 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7311 (record_btrace_insn_history_from): Update.
7313 2014-02-19 Tom Tromey <tromey@redhat.com>
7315 * target.h (struct target_ops) <to_insn_history_from>: Add
7317 * target.c (target_insn_history_from): Add argument.
7318 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7321 2014-02-19 Tom Tromey <tromey@redhat.com>
7323 * target.h (struct target_ops) <to_insn_history>: Add argument.
7324 * target.c (target_insn_history): Add argument.
7325 * record-btrace.c (record_btrace_insn_history): Add 'self'
7328 2014-02-19 Tom Tromey <tromey@redhat.com>
7330 * target.h (struct target_ops) <to_goto_record>: Add argument.
7331 * target.c (target_goto_record): Add argument.
7332 * record-full.c (record_full_goto): Add 'self' argument.
7333 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7335 2014-02-19 Tom Tromey <tromey@redhat.com>
7337 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7338 * target.c (target_goto_record_end): Add argument.
7339 * record-full.c (record_full_goto_end): Add 'self' argument.
7340 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7342 2014-02-19 Tom Tromey <tromey@redhat.com>
7344 * target.h (struct target_ops) <to_goto_record_begin>: Add
7346 * target.c (target_goto_record_begin): Add argument.
7347 * record-full.c (record_full_goto_begin): Add 'self' argument.
7348 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7351 2014-02-19 Tom Tromey <tromey@redhat.com>
7353 * target.h (struct target_ops) <to_record_is_replaying>: Add
7355 * target.c (target_record_is_replaying): Add argument.
7356 * record-full.c (record_full_is_replaying): Add 'self' argument.
7357 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7359 (record_btrace_xfer_partial, record_btrace_store_registers)
7360 (record_btrace_prepare_to_store, record_btrace_resume)
7361 (record_btrace_wait, record_btrace_decr_pc_after_break)
7362 (record_btrace_find_new_threads, record_btrace_thread_alive):
7365 2014-02-19 Tom Tromey <tromey@redhat.com>
7367 * target.h (struct target_ops) <to_delete_record>: Add argument.
7368 * target.c (target_delete_record): Add argument.
7369 * record-full.c (record_full_delete): Add 'self' argument.
7371 2014-02-19 Tom Tromey <tromey@redhat.com>
7373 * target.h (struct target_ops) <to_save_record>: Add argument.
7374 * target.c (target_save_record): Add argument.
7375 * record-full.c (record_full_save): Add 'self' argument.
7376 (record_full_save): Add 'self' argument.
7378 2014-02-19 Tom Tromey <tromey@redhat.com>
7380 * target.h (struct target_ops) <to_info_record>: Add argument.
7381 * target.c (target_info_record): Add argument.
7382 * record.c (info_record_command): Add argument.
7383 * record-full.c (record_full_info): Add 'self' argument.
7384 * record-btrace.c (record_btrace_info): Add 'self' argument.
7386 2014-02-19 Tom Tromey <tromey@redhat.com>
7388 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7389 * target.c (target_stop_recording): Add argument.
7390 * record.c (record_stop): Add argument.
7391 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7394 2014-02-19 Tom Tromey <tromey@redhat.com>
7396 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7397 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7398 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7400 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7401 (_initialize_amd64_linux_nat): Use it.
7402 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7403 (_initialize_i386_linux_nat): Use it.
7405 2014-02-19 Tom Tromey <tromey@redhat.com>
7407 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7408 * target.c (target_teardown_btrace): Add argument.
7409 * remote.c (remote_teardown_btrace): Add 'self' argument.
7410 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7412 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7415 2014-02-19 Tom Tromey <tromey@redhat.com>
7417 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7418 * target.c (target_disable_btrace): Add argument.
7419 * remote.c (remote_disable_btrace): Add 'self' argument.
7420 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7422 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7425 2014-02-19 Tom Tromey <tromey@redhat.com>
7427 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7428 * target.c (target_enable_btrace): Add argument.
7429 * remote.c (remote_enable_btrace): Add 'self' argument.
7430 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7432 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7435 2014-02-19 Tom Tromey <tromey@redhat.com>
7437 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7438 (target_can_use_agent): Add argument.
7439 * target.c (update_current_target): Update.
7440 * remote.c (remote_can_use_agent): Add 'self' argument.
7441 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7443 2014-02-19 Tom Tromey <tromey@redhat.com>
7445 * target.h (struct target_ops) <to_use_agent>: Add argument.
7446 (target_use_agent): Add argument.
7447 * target.c (update_current_target): Update.
7448 * remote.c (remote_use_agent): Add 'self' argument.
7449 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7451 2014-02-19 Tom Tromey <tromey@redhat.com>
7453 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7454 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7455 (target_traceframe_info): Add argument.
7456 * target.c (update_current_target): Update.
7457 * remote.c (remote_traceframe_info): Add 'self' argument.
7458 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7460 2014-02-19 Tom Tromey <tromey@redhat.com>
7462 * target.h (target_static_tracepoint_markers_by_strid): Add
7464 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7466 * target.c (update_current_target): Update.
7467 * remote.c (struct target_ops)
7468 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7469 * linux-nat.c (struct target_ops)
7470 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7472 2014-02-19 Tom Tromey <tromey@redhat.com>
7474 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7476 (target_static_tracepoint_marker_at): Add argument.
7477 * target.c (update_current_target): Update.
7478 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7481 2014-02-19 Tom Tromey <tromey@redhat.com>
7483 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7484 (target_set_permissions): Add argument.
7485 * target.c (update_current_target): Update.
7486 * remote.c (remote_set_permissions): Add 'self' argument.
7487 (remote_start_remote): Update.
7489 2014-02-19 Tom Tromey <tromey@redhat.com>
7491 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7492 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7493 (target_get_tib_address): Add argument.
7494 * target.c (update_current_target): Update.
7495 * remote.c (remote_get_tib_address): Add 'self' argument.
7497 2014-02-19 Tom Tromey <tromey@redhat.com>
7499 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7500 (target_set_trace_notes): Add argument.
7501 * target.c (update_current_target): Update.
7502 * remote.c (remote_set_trace_notes): Add 'self' argument.
7504 2014-02-19 Tom Tromey <tromey@redhat.com>
7506 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7508 (target_set_trace_buffer_size): Add argument.
7509 * target.c (update_current_target): Update.
7510 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7512 2014-02-19 Tom Tromey <tromey@redhat.com>
7514 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7516 (target_set_circular_trace_buffer): Add argument.
7517 * target.c (update_current_target): Update.
7518 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7521 2014-02-19 Tom Tromey <tromey@redhat.com>
7523 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7525 (target_set_disconnected_tracing): Add argument.
7526 * target.c (update_current_target): Update.
7527 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7529 2014-02-19 Tom Tromey <tromey@redhat.com>
7531 * target.h (struct target_ops)
7532 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7533 (target_get_min_fast_tracepoint_insn_len): Add argument.
7534 * target.c (update_current_target): Update.
7535 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7538 2014-02-19 Tom Tromey <tromey@redhat.com>
7540 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7542 (target_get_raw_trace_data): Add argument.
7543 * target.c (update_current_target): Update.
7544 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7546 2014-02-19 Tom Tromey <tromey@redhat.com>
7548 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7550 (target_upload_trace_state_variables): Add argument.
7551 * target.c (update_current_target): Update.
7552 * remote.c (remote_upload_trace_state_variables): Add 'self'
7554 (remote_start_remote): Update.
7556 2014-02-19 Tom Tromey <tromey@redhat.com>
7558 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7560 (target_upload_tracepoints): Add argument.
7561 * target.c (update_current_target): Update.
7562 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7563 (remote_start_remote): Update.
7565 2014-02-19 Tom Tromey <tromey@redhat.com>
7567 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7568 (target_save_trace_data): Add argument.
7569 * target.c (update_current_target): Update.
7570 * remote.c (remote_save_trace_data): Add 'self' argument.
7572 2014-02-19 Tom Tromey <tromey@redhat.com>
7574 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7576 * target.h (struct target_ops)
7577 <to_get_trace_state_variable_value>: Add argument.
7578 (target_get_trace_state_variable_value): Add argument.
7579 * target.c (update_current_target): Update.
7580 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7582 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7584 2014-02-19 Tom Tromey <tromey@redhat.com>
7586 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7587 * target.h (struct target_ops) <to_trace_find>: Add argument.
7588 (target_trace_find): Add argument.
7589 * target.c (update_current_target): Update.
7590 * remote.c (remote_trace_find): Add 'self' argument.
7591 * ctf.c (ctf_trace_find): Add 'self' argument.
7593 2014-02-19 Tom Tromey <tromey@redhat.com>
7595 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7596 (target_trace_stop): Add argument.
7597 * target.c (update_current_target): Update.
7598 * remote.c (remote_trace_stop): Add 'self' argument.
7600 2014-02-19 Tom Tromey <tromey@redhat.com>
7602 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7603 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7605 (target_get_tracepoint_status): Add argument.
7606 * target.c (update_current_target): Update.
7607 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7609 2014-02-19 Tom Tromey <tromey@redhat.com>
7611 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7612 * target.h (struct target_ops) <to_get_trace_status>: Add
7614 (target_get_trace_status): Add argument.
7615 * target.c (update_current_target): Update.
7616 * remote.c (remote_get_trace_status): Add 'self' argument.
7617 (remote_start_remote, remote_can_download_tracepoint): Update.
7618 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7620 2014-02-19 Tom Tromey <tromey@redhat.com>
7622 * target.h (struct target_ops) <to_trace_start>: Add argument.
7623 (target_trace_start): Add argument.
7624 * target.c (update_current_target): Update.
7625 * remote.c (remote_trace_start): Add 'self' argument.
7627 2014-02-19 Tom Tromey <tromey@redhat.com>
7629 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7631 (target_trace_set_readonly_regions): Add argument.
7632 * target.c (update_current_target): Update.
7633 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7636 2014-02-19 Tom Tromey <tromey@redhat.com>
7638 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7640 (target_disable_tracepoint): Add argument.
7641 * target.c (update_current_target): Update.
7642 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7644 2014-02-19 Tom Tromey <tromey@redhat.com>
7646 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7648 (target_enable_tracepoint): Add argument.
7649 * target.c (update_current_target): Update.
7650 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7652 2014-02-19 Tom Tromey <tromey@redhat.com>
7654 * target.h (struct target_ops) <to_download_trace_state_variable>:
7656 (target_download_trace_state_variable): Add argument.
7657 * target.c (update_current_target): Update.
7658 * remote.c (remote_download_trace_state_variable): Add 'self'
7661 2014-02-19 Tom Tromey <tromey@redhat.com>
7663 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7665 (target_can_download_tracepoint): Add argument.
7666 * target.c (update_current_target): Update.
7667 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7669 2014-02-19 Tom Tromey <tromey@redhat.com>
7671 * target.h (struct target_ops) <to_download_tracepoint>: Add
7673 (target_download_tracepoint): Add argument.
7674 * target.c (update_current_target): Update.
7675 * remote.c (remote_download_tracepoint): Add 'self' argument.
7677 2014-02-19 Tom Tromey <tromey@redhat.com>
7679 * target.h (struct target_ops) <to_trace_init>: Add argument.
7680 (target_trace_init): Add argument.
7681 * target.c (update_current_target): Update.
7682 * remote.c (remote_trace_init): Add 'self' argument.
7684 2014-02-19 Tom Tromey <tromey@redhat.com>
7686 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7687 * target.c (target_fileio_readlink): Add argument.
7688 * remote.c (remote_hostio_readlink): Add 'self' argument.
7689 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7691 2014-02-19 Tom Tromey <tromey@redhat.com>
7693 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7694 * target.c (target_fileio_unlink): Add argument.
7695 * remote.c (remote_hostio_unlink): Add 'self' argument.
7696 (remote_file_delete): Update.
7697 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7699 2014-02-19 Tom Tromey <tromey@redhat.com>
7701 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7702 * target.c (target_fileio_close): Add argument.
7703 * remote.c (remote_hostio_close): Add 'self' argument.
7704 (remote_hostio_close_cleanup): Update.
7705 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7707 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7709 2014-02-19 Tom Tromey <tromey@redhat.com>
7711 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7712 * target.c (target_fileio_pread): Add argument.
7713 * remote.c (remote_hostio_pread): Add 'self' argument.
7714 (remote_bfd_iovec_pread, remote_file_get): Update.
7715 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7717 2014-02-19 Tom Tromey <tromey@redhat.com>
7719 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7720 * target.c (target_fileio_pwrite): Add argument.
7721 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7722 (remote_file_put): Update.
7723 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7725 2014-02-19 Tom Tromey <tromey@redhat.com>
7727 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7728 * target.c (target_fileio_open): Add argument.
7729 * remote.c (remote_hostio_open): Add 'self' argument.
7730 (remote_bfd_iovec_open): Add 'self' argument.
7731 (remote_file_put): Add 'self' argument.
7732 (remote_file_get): Add 'self' argument.
7733 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7735 2014-02-19 Tom Tromey <tromey@redhat.com>
7737 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7739 (target_can_run_breakpoint_commands): Add argument.
7740 * target.c (update_current_target): Update.
7741 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7743 (remote_insert_breakpoint): Add 'self' argument.
7744 (remote_insert_hw_breakpoint): Add 'self' argument.
7745 (remote_can_run_breakpoint_commands): Add 'self' argument.
7747 2014-02-19 Tom Tromey <tromey@redhat.com>
7749 * target.h (struct target_ops)
7750 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7751 (target_supports_evaluation_of_breakpoint_conditions): Add
7753 * target.c (update_current_target): Update.
7754 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7756 (remote_insert_breakpoint): Add 'self' argument.
7757 (remote_insert_hw_breakpoint): Add 'self' argument.
7758 (remote_supports_cond_breakpoints): Add 'self' argument.
7760 2014-02-19 Tom Tromey <tromey@redhat.com>
7762 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7764 (target_supports_string_tracing): Add argument.
7765 * target.c (update_current_target): Update.
7766 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7768 2014-02-19 Tom Tromey <tromey@redhat.com>
7770 * target.h (struct target_ops)
7771 <to_supports_disable_randomization>: Add argument.
7772 * target.c (find_default_supports_disable_randomization): Add
7774 (target_supports_disable_randomization): Add argument.
7775 (find_default_supports_disable_randomization): Add 'self'
7777 * remote.c (extended_remote_supports_disable_randomization): Add
7779 (remote_supports_disable_randomization): Add 'self' argument.
7780 (extended_remote_create_inferior): Update.
7781 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7784 2014-02-19 Tom Tromey <tromey@redhat.com>
7786 * target.h (struct target_ops)
7787 <to_supports_enable_disable_tracepoint>: Add argument.
7788 (target_supports_enable_disable_tracepoint): Add argument.
7789 * target.c (update_current_target): Update.
7790 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7795 * target.h (struct target_ops) <to_supports_multi_process>: Add
7797 (target_supports_multi_process): Add argument.
7798 * target.c (update_current_target): Update.
7799 * remote.c (remote_supports_multi_process): Add 'self' argument.
7800 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7802 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7805 2014-02-19 Tom Tromey <tromey@redhat.com>
7807 * target.h (struct target_ops) <to_execution_direction>: Add
7809 (target_execution_direction): Add argument.
7810 * target.c (default_execution_direction): Add 'self' argument.
7811 * record-full.c (record_full_execution_direction): Add 'self'
7814 2014-02-19 Tom Tromey <tromey@redhat.com>
7816 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7818 (target_can_execute_reverse): Add argument.
7819 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7820 * record-full.c (record_full_can_execute_reverse): Add 'self'
7822 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7825 2014-02-19 Tom Tromey <tromey@redhat.com>
7827 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7828 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7830 (target_get_ada_task_ptid): Add argument.
7831 * target.c (update_current_target): Update.
7832 (default_get_ada_task_ptid): Add 'self' argument.
7833 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7834 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7835 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7837 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7839 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7841 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7843 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7844 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7847 2014-02-19 Tom Tromey <tromey@redhat.com>
7849 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7850 (target_goto_bookmark): Add argument.
7851 * target.c (dummy_goto_bookmark): Add 'self' argument.
7852 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7854 2014-02-19 Tom Tromey <tromey@redhat.com>
7856 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7857 (target_get_bookmark): Add argument.
7858 * target.c (dummy_get_bookmark): Add 'self' argument.
7859 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7861 2014-02-19 Tom Tromey <tromey@redhat.com>
7863 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7865 (target_make_corefile_notes): Add argument.
7866 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7867 * procfs.c (procfs_make_note_section): Add 'self' argument.
7868 (procfs_make_note_section): Add 'self' argument.
7869 (procfs_make_note_section): Add 'self' argument.
7870 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7872 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7873 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7874 * exec.c (exec_make_note_section): Add 'self' argument.
7875 (exec_make_note_section): Add 'self' argument.
7877 2014-02-19 Tom Tromey <tromey@redhat.com>
7879 * target.h (struct target_ops) <to_find_memory_regions>: Add
7881 (target_find_memory_regions): Add argument.
7882 * target.c (dummy_find_memory_regions): Add 'self' argument.
7883 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7884 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7885 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7886 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7887 * exec. (exec_do_find_memory_regions): New global.
7888 (exec_set_find_memory_regions): Rewrite.
7889 (exec_find_memory_regions): New function.
7890 (init_exec_ops): Use exec_find_memory_regions.
7892 2014-02-19 Tom Tromey <tromey@redhat.com>
7894 * target.h (struct target_ops) <to_supports_non_stop>: Add
7896 * target.c (find_default_supports_non_stop): Add argument.
7897 (target_supports_non_stop): Add argument.
7898 (find_default_supports_non_stop): Add 'self' argument.
7899 * remote.c (remote_supports_non_stop): Add 'self' argument.
7900 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7902 2014-02-19 Tom Tromey <tromey@redhat.com>
7904 * target.h (struct target_ops) <to_log_command>: Add argument.
7905 (target_log_command): Add argument.
7906 * serial.h (serial_log_command): Add 'self' argument.
7907 * serial.c (serial_log_command): Add 'self' argument.
7909 2014-02-19 Tom Tromey <tromey@redhat.com>
7911 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7912 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7914 (target_pid_to_exec_file): Add argument.
7915 * target.c (debug_to_pid_to_exec_file): Add argument.
7916 (update_current_target): Update.
7917 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7918 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7919 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7920 (linux_handle_extended_wait): Update.
7921 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7922 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7923 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7924 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7926 2014-02-19 Tom Tromey <tromey@redhat.com>
7928 * target.h (struct target_ops) <to_rcmd>: Add argument.
7929 (target_rcmd): Add argument.
7930 * target.c (debug_to_rcmd): Add argument.
7931 (update_current_target, do_monitor_command): Update.
7932 * remote.c (remote_rcmd): Add 'self' argument.
7933 * monitor.c (monitor_rcmd): Add 'self' argument.
7935 2014-02-19 Tom Tromey <tromey@redhat.com>
7937 * windows-nat.c (windows_stop): Add 'self' argument.
7938 * target.h (struct target_ops) <to_stop>: Add argument.
7939 * target.c (target_stop): Add argument.
7940 (debug_to_stop): Add argument.
7941 (update_current_target): Update.
7942 * remote.c (remote_stop): Add 'self' argument.
7943 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7944 (gdbsim_cntrl_c): Update.
7945 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7946 * procfs.c (procfs_stop): Add 'self' argument.
7947 * nto-procfs.c (procfs_stop): Add 'self' argument.
7948 * monitor.c (monitor_stop): Add 'self' argument.
7949 (monitor_open): Update.
7950 * linux-nat.c (linux_nat_stop): Add argument.
7951 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7952 * gnu-nat.c (gnu_stop): Add 'self' argument.
7953 * darwin-nat.c (darwin_stop): Add 'self' argument.
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7957 * target.h (struct target_ops) <to_thread_name>: Add argument.
7958 * target.c (target_thread_name): Add argument.
7959 (update_current_target): Update.
7960 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7962 2014-02-19 Tom Tromey <tromey@redhat.com>
7964 * target.h (struct target_ops) <to_extra_thread_info>: Add
7966 (target_extra_thread_info): Add argument.
7967 * target.c (update_current_target): Update.
7968 * remote.c (remote_threads_extra_info): Add 'self' argument.
7969 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7971 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7972 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7973 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7975 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7977 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7979 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7982 2014-02-19 Tom Tromey <tromey@redhat.com>
7984 * target.h (struct target_ops) <to_program_signals>: Add argument.
7985 * target.c (target_program_signals): Add argument.
7986 * remote.c (remote_program_signals): Add 'self' argument.
7988 2014-02-19 Tom Tromey <tromey@redhat.com>
7990 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7991 * target.c (target_pass_signals): Add argument.
7992 * remote.c (remote_pass_signals): Add 'self' argument.
7993 (remote_start_remote): Update.
7994 * procfs.c (procfs_pass_signals): Add 'self' argument.
7995 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7996 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7997 (linux_nat_create_inferior, linux_nat_attach): Update.
7999 2014-02-19 Tom Tromey <tromey@redhat.com>
8001 * windows-nat.c (windows_can_run): Add 'self' argument.
8002 * target.h (struct target_ops) <to_can_run>: Add argument.
8003 (target_can_run): Add argument.
8004 * target.c (debug_to_can_run): Add argument.
8005 (update_current_target): Update.
8006 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8007 * inf-child.c (inf_child_can_run): Add 'self' argument.
8008 * go32-nat.c (go32_can_run): Add 'self' argument.
8010 2014-02-19 Tom Tromey <tromey@redhat.com>
8012 * target.h (struct target_ops) <to_has_exited>: Add argument.
8013 (target_has_exited): Add argument.
8014 * target.c (debug_to_has_exited): Add argument.
8015 (update_current_target): Update.
8017 2014-02-19 Tom Tromey <tromey@redhat.com>
8019 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8021 (target_set_syscall_catchpoint): Add argument.
8022 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8024 * target.c (update_current_target): Update.
8026 2014-02-19 Tom Tromey <tromey@redhat.com>
8028 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8030 (target_remove_exec_catchpoint): Add argument.
8031 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8032 (update_current_target): Update.
8033 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8036 2014-02-19 Tom Tromey <tromey@redhat.com>
8038 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8040 (target_insert_exec_catchpoint): Add argument.
8041 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8042 (update_current_target): Update.
8043 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8046 2014-02-19 Tom Tromey <tromey@redhat.com>
8048 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8050 (target_remove_vfork_catchpoint): Add argument.
8051 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8052 (update_current_target): Update.
8053 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8056 2014-02-19 Tom Tromey <tromey@redhat.com>
8058 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8060 (target_insert_vfork_catchpoint): Add argument.
8061 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8062 (update_current_target): Update.
8063 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8066 2014-02-19 Tom Tromey <tromey@redhat.com>
8068 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8070 (target_remove_fork_catchpoint): Add argument.
8071 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8072 (update_current_target): Update.
8073 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8076 2014-02-19 Tom Tromey <tromey@redhat.com>
8078 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8080 (target_insert_fork_catchpoint): Add argument.
8081 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8082 (update_current_target): Update.
8083 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8086 2014-02-19 Tom Tromey <tromey@redhat.com>
8088 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8090 (target_post_startup_inferior): Add argument.
8091 * target.c (debug_to_post_startup_inferior): Add argument.
8092 (update_current_target): Update.
8093 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8095 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8097 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8099 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8101 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8103 (super_post_startup_inferior): Likewise.
8104 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8106 (super_post_startup_inferior): Likewise.
8107 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8108 Add 'self' argument.
8109 (super_post_startup_inferior): Likewise.
8111 2014-02-19 Tom Tromey <tromey@redhat.com>
8113 * target.h (struct target_ops) <to_load>: Add argument.
8114 * target.c (target_load): Add argument.
8115 (debug_to_load): Add argument.
8116 (update_current_target): Update.
8117 * remote.c (remote_load): Add 'self' argument.
8118 * remote-sim.c (gdbsim_load): Add 'self' argument.
8119 * remote-mips.c (mips_load): Add 'self' argument.
8120 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8121 * monitor.c (monitor_load): Add 'self' argument.
8122 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8124 2014-02-19 Tom Tromey <tromey@redhat.com>
8126 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8127 (target_terminal_info): Add argument.
8128 * target.c (debug_to_terminal_info): Add argument.
8129 (default_terminal_info): Likewise.
8130 * inflow.c (child_terminal_info): Add 'self' argument.
8131 * inferior.h (child_terminal_info): Add 'self' argument.
8132 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8134 2014-02-19 Tom Tromey <tromey@redhat.com>
8136 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8138 (target_terminal_save_ours): Add argument.
8139 * target.c (debug_to_terminal_save_ours): Add argument.
8140 (update_current_target): Update.
8141 * inflow.c (terminal_save_ours): Add 'self' argument.
8142 * inferior.h (terminal_save_ours): Add 'self' argument.
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8146 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8147 (target_terminal_ours): Add argument.
8148 * target.c (debug_to_terminal_ours): Add argument.
8149 (update_current_target): Update.
8150 * remote.c (remote_terminal_ours): Add 'self' argument.
8151 (remote_close): Update.
8152 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8153 * inflow.c (terminal_ours): Add 'self' argument.
8154 * inferior.h (terminal_ours): Add 'self' argument.
8155 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8157 2014-02-19 Pedro Alves <palves@redhat.com>
8158 Tom Tromey <tromey@redhat.com>
8160 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8162 (target_terminal_ours_for_output): Add argument.
8163 * target.c (debug_to_terminal_ours_for_output): Add argument.
8164 (update_current_target): Update.
8165 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8166 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8167 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8169 2014-02-19 Tom Tromey <tromey@redhat.com>
8171 * target.h (struct target_ops) <to_terminal_inferior>: Add
8173 * target.c (target_terminal_inferior): Add argument.
8174 (update_current_target): Update.
8175 * remote.c (remote_terminal_inferior): Add 'self' argument.
8176 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8177 * inflow.c (terminal_inferior): Add 'self' argument.
8178 * inferior.h (terminal_inferior): Add 'self' argument.
8179 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8180 (go32_terminal_inferior): Add 'self' argument.
8182 2014-02-19 Tom Tromey <tromey@redhat.com>
8184 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8185 (target_terminal_init): Add argument.
8186 * target.c (debug_to_terminal_init): Add argument.
8187 (update_current_target): Update.
8188 * inflow.c (terminal_init_inferior): Add 'self' argument.
8189 * inferior.h (terminal_init_inferior): Add 'self' argument.
8190 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8191 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8193 2014-02-19 Tom Tromey <tromey@redhat.com>
8195 * target.h (struct target_ops)
8196 <to_can_accel_watchpoint_condition>: Add argument.
8197 (target_can_accel_watchpoint_condition): Add argument.
8198 * target.c (debug_to_can_accel_watchpoint_condition): Add
8200 (update_current_target): Update.
8201 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8204 2014-02-19 Tom Tromey <tromey@redhat.com>
8206 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8208 (target_region_ok_for_hw_watchpoint): Add argument.
8209 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8210 (default_region_ok_for_hw_watchpoint): Add argument.
8211 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8212 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8214 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8216 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8218 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8220 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8222 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8224 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8225 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8227 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8228 Add 'self' argument.
8230 2014-02-19 Tom Tromey <tromey@redhat.com>
8232 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8234 (target_insert_watchpoint): Add argument.
8235 * target.c (debug_to_insert_watchpoint): Add argument.
8236 (update_current_target): Update.
8237 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8238 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8239 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8240 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8241 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8242 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8244 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8245 (procfs_insert_hw_watchpoint): Add 'self' argument.
8246 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8248 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8250 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8252 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8253 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8255 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8260 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8262 (target_remove_watchpoint): Add argument.
8263 * target.c (debug_to_remove_watchpoint): Add argument.
8264 (update_current_target): Update.
8265 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8266 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8267 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8268 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8269 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8270 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8272 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8273 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8275 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8277 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8279 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8280 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8282 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8285 2014-02-19 Tom Tromey <tromey@redhat.com>
8287 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8289 (target_remove_hw_breakpoint): Add argument.
8290 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8291 (update_current_target): Update.
8292 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8293 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8295 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8296 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8298 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8301 2014-02-19 Tom Tromey <tromey@redhat.com>
8303 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8305 (target_insert_hw_breakpoint): Add argument.
8306 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8307 (update_current_target): Update.
8308 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8309 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8311 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8312 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8313 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8315 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8318 2014-02-19 Tom Tromey <tromey@redhat.com>
8320 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8322 (target_can_use_hardware_watchpoint): Add argument.
8323 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8324 (update_current_target): Update.
8325 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8327 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8329 * remote.c (remote_check_watch_resources): Add 'self' argument.
8330 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8331 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8333 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8334 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8336 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8338 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8340 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8342 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8344 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8346 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8347 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8349 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8352 2014-02-19 Tom Tromey <tromey@redhat.com>
8354 * target.h (struct target_ops) <to_post_attach>: Add argument.
8355 (target_post_attach): Add argument.
8356 * target.c (debug_to_post_attach): Add argument.
8357 (update_current_target): Update.
8358 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8359 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8360 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8361 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8362 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8364 2014-02-19 Tom Tromey <tromey@redhat.com>
8366 * windows-nat.c (windows_close): Add 'self' argument.
8367 * tracepoint.c (tfile_close): Add 'self' argument.
8368 * target.h (struct target_ops) <to_close>: Add argument.
8369 * target.c (target_close): Add argument.
8370 (update_current_target): Update.
8371 * remote.c (remote_close): Add 'self' argument.
8372 * remote-sim.c (gdbsim_close): Add 'self' argument.
8373 * remote-mips.c (mips_close): Add 'self' argument.
8374 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8375 * record-full.c (record_full_close): Add 'self' argument.
8376 * record-btrace.c (record_btrace_close): Add 'self' argument.
8377 * monitor.h (monitor_close): Add 'self' argument.
8378 * monitor.c (monitor_close): Add 'self' argument.
8379 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8380 * linux-nat.c (linux_nat_close): Add argument.
8381 * go32-nat.c (go32_close): Add 'self' argument.
8382 * exec.c (exec_close_1): Add 'self' argument.
8383 * ctf.c (ctf_close): Add 'self' argument.
8384 * corelow.c (core_close): Add 'self' argument.
8385 (core_close_cleanup): Update.
8386 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8387 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8389 2014-02-19 Tom Tromey <tromey@redhat.com>
8391 * remote.c (remote_load): New function.
8392 (init_remote_ops): Use it.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8398 * common/linux-btrace.h (linux_supports_btrace): Update.
8399 * remote.c (remote_supports_btrace): Add "self" argument.
8400 * target-delegates.c: Rebuild.
8401 * target.c (target_supports_btrace): Remove.
8402 * target.h (struct target_ops) <to_supports_btrace>: Add
8403 target_ops argument.
8404 (target_supports_btrace): New define.
8406 2014-02-19 Tom Tromey <tromey@redhat.com>
8408 * record-full.c (record_full_beneath_to_resume_ops)
8409 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8410 (record_full_beneath_to_wait)
8411 (record_full_beneath_to_store_registers_ops)
8412 (record_full_beneath_to_store_registers)
8413 (record_full_beneath_to_xfer_partial_ops)
8414 (record_full_beneath_to_xfer_partial)
8415 (record_full_beneath_to_insert_breakpoint_ops)
8416 (record_full_beneath_to_insert_breakpoint)
8417 (record_full_beneath_to_remove_breakpoint_ops)
8418 (record_full_beneath_to_remove_breakpoint)
8419 (record_full_beneath_to_stopped_by_watchpoint)
8420 (record_full_beneath_to_stopped_data_address)
8421 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8422 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8423 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8424 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8425 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8426 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8427 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8428 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8429 (record_full_resume, record_full_wait_1)
8430 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8431 (record_full_store_registers, record_full_xfer_partial)
8432 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8433 (record_full_async, record_full_core_xfer_partial): Use target
8435 * target-delegates.c: Rebuild.
8436 * target.c (current_xfer_partial): Remove.
8437 (update_current_target): Do not INHERIT or de_fault
8438 to_insert_breakpoint, to_remove_breakpoint,
8439 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8440 to_is_async_p, to_async. Do not set to_xfer_partial field.
8441 (default_xfer_partial): Simplify.
8442 (current_xfer_partial): Remove.
8443 (target_wait, target_resume): Simplify.
8444 (find_default_can_async_p, find_default_is_async_p): Update.
8445 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8446 to_xfer_partial, to_stopped_by_watchpoint,
8447 to_stopped_data_address.
8448 (target_store_registers): Simplify.
8449 (forward_target_remove_breakpoint)
8450 (forward_target_insert_breakpoint): Remove.
8451 (target_remove_breakpoint, target_insert_breakpoint)
8452 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8453 * target.h (struct target_ops) <to_resume, to_wait,
8454 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8455 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8456 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8458 (forward_target_remove_breakpoint)
8459 (forward_target_insert_breakpoint): Remove.
8460 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8462 (record_btrace_insert_breakpoint): Delegate directly.
8464 2014-02-19 Tom Tromey <tromey@redhat.com>
8467 * target-delegates.c: New file.
8468 * target.c: Include target-delegates.c.
8469 (init_dummy_target): Call install_dummy_methods.
8470 (complete_target_initialization): Call install_delegators.
8471 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8472 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8473 * make-target-delegates: New file.
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8477 * record.c (find_record_target): Use find_target_at.
8478 * target.c (find_target_at): New function.
8479 * target.h (find_target_at): Declare.
8481 2014-02-19 Tom Tromey <tromey@redhat.com>
8483 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8485 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8487 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8488 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8490 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8492 * linux-nat.c (save_sigtrap): Update.
8493 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8494 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8495 (linux_nat_close): Update.
8496 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8498 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8500 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8501 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8502 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8503 (tmp_to_async): Add 'ops' argument.
8504 (record_full_stopped_by_watchpoint, record_full_async)
8505 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8507 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8508 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8509 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8510 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8511 (remote_is_async_p, remote_async): Add 'ops' argument.
8512 (remote_stopped_data_address): Update.
8513 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8514 * target.c (update_current_target)
8515 (find_default_can_async_p, find_default_is_async_p): Update.
8516 (init_dummy_target): Update.
8517 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8518 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8519 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8520 (target_can_async_p, target_is_async_p, target_async)
8521 (target_stopped_by_watchpoint): Update.
8523 2014-02-19 Yao Qi <yao@codesourcery.com>
8526 * gdbarch.sh: Remove startup_gdbarch.
8527 * gdbarch.c: Regenerated.
8528 * gdbarch.h: Likewise.
8530 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8532 * rl78-tdep.c (rl78_g10_register_name): New function.
8533 (rl78_return_value): Add g10 support.
8534 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8537 2014-02-17 Doug Evans <xdje42@gmail.com>
8539 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8540 (SUBDIR_GUILE_SRCS): Ditto.
8541 (scm-gsmob.o): Ditto.
8543 2014-02-17 Yao Qi <yao@codesourcery.com>
8545 * gnu-nat.c (ILL_RPC): Declare defined function.
8547 2014-02-17 Yao Qi <yao@codesourcery.com>
8549 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8550 mach_msg_type_number_t.
8551 (gnu_write_inferior): Likewise.
8553 2014-02-17 Yao Qi <yao@codesourcery.com>
8555 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8557 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8558 (inf_validate_procs, inf_signal): Likewise.
8559 (S_exception_raise_request): Likewise.
8560 (do_mach_notify_dead_name): Likewise.
8561 (steal_exc_port): Likewise.
8562 (gnu_read_inferior): Change 'copy_count''s type to
8563 mach_msg_type_number_t.
8564 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8567 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8569 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8570 flag. Adjust all users; in particular...
8571 (gnu_wait): ..., don't decrement its value in here...
8572 (gnu_create_inferior): ..., and instead set the flag in here,
8573 around the startup_inferior call, and call that one with
8574 START_INFERIOR_TRAPS_EXPECTED.
8576 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8577 (ILL_RPC): ... new macro.
8578 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8579 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8580 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8581 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8582 functions with ILL_RPC macro.
8583 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8584 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8585 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8586 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8587 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8588 (S_proc_getlogin_reply, S_proc_getsid_reply)
8589 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8590 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8591 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8592 (S_proc_getnports_reply, S_proc_is_important_reply)
8593 (S_proc_get_code_reply): New stub functions, generated with
8596 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8597 collected the type check structures.
8599 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8601 2014-02-14 Doug Evans <dje@google.com>
8603 * target.c (target_write_partial): Fix result type.
8605 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8607 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8608 the proper offsets to access fpregset_t.
8610 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8612 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8613 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8614 * h8300-tdep.c (setmachinelist): Remove global.
8615 * hppa-tdep.c (hppa_sigtramp): Remove global.
8616 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8617 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8618 * ravenscar-thread.c (update_target_observer): Remove global.
8619 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8621 2014-02-12 Tom Tromey <tromey@redhat.com>
8623 * common/rsp-low.c: Update comments.
8624 * common/rsp-low.h: Update comments.
8626 2014-02-12 Tom Tromey <tromey@redhat.com>
8628 * common/rsp-low.c (convert_ascii_to_int): Remove.
8629 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8631 2014-02-12 Tom Tromey <tromey@redhat.com>
8633 * common/rsp-low.h (unhexify): Don't declare.
8634 * common/rsp-low.c (unhexify): Remove.
8636 2014-02-12 Tom Tromey <tromey@redhat.com>
8638 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8639 * common/rsp-low.c (convert_int_to_ascii): Remove.
8641 2014-02-12 Tom Tromey <tromey@redhat.com>
8643 * common/rsp-low.h (hexify): Don't declare.
8644 * common/rsp-low.c (hexify): Remove.
8646 2014-02-12 Tom Tromey <tromey@redhat.com>
8648 * common/rsp-low.c (hexify): Never take strlen of argument.
8650 2014-02-12 Tom Tromey <tromey@redhat.com>
8652 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8653 * remote.c (extended_remote_run, remote_rcmd)
8654 (remote_download_trace_state_variable, remote_save_trace_data)
8655 (remote_set_trace_notes): Update.
8656 * tracepoint.c (encode_source_string, tfile_write_status)
8657 (tfile_write_uploaded_tsv): Update.
8659 2014-02-12 Tom Tromey <tromey@redhat.com>
8661 * tracepoint.c: Include rsp-low.h.
8662 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8663 * remote.c: Include rsp-low.h.
8664 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8665 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8666 (remote_unescape_input): Move to common/rsp-low.c.
8667 * common/rsp-low.h: New file.
8668 * common/rsp-low.c: New file.
8669 * Makefile.in (SFILES): Add common/rsp-low.c.
8670 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8671 (COMMON_OBS): Add rsp-low.o.
8672 (rsp-low.o): New target.
8674 2014-02-12 Tom Tromey <tromey@redhat.com>
8676 * utils.h: Include print-utils.h.
8677 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8678 (int_string, core_addr_to_string, core_addr_to_string_nz)
8679 (hex_string, hex_string_custom): Don't declare.
8680 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8681 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8682 (hex_string_custom, int_string, core_addr_to_string)
8683 (core_addr_to_string_nz, host_address_to_string): Move to
8684 common/print-utils.c.
8685 * common/print-utils.h: New file.
8686 * common/print-utils.c: New file
8687 * Makefile.in (SFILES): Add common/print-utils.c.
8688 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8689 (COMMON_OBS): Add print-utils.o.
8690 (print-utils.o): New target.
8692 2014-02-12 Tom Tromey <tromey@redhat.com>
8694 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8696 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8698 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8700 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8702 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8703 if a PT_IO ptrace request returns sucessfully but indicates that 0
8704 bytes were transferred.
8706 2014-02-12 Pedro Alves <palves@redhat.com>
8707 Kevin Buettner <kevinb@redhat.com>
8709 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8710 TYPE_INSTANCE_FLAG_CODE_SPACE.
8712 2014-02-12 Pedro Alves <palves@redhat.com>
8714 * h8300-tdep.c (pseudo_from_raw_register)
8715 (raw_from_pseudo_register): New functions.
8716 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8719 2014-02-12 Pedro Alves <palves@redhat.com>
8721 * h8300-tdep.c (h8300_register_sim_regno): New function.
8722 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8723 gdbarch_register_sim_regno hook.
8725 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8727 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8729 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8731 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8733 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8735 * obsd-tdep.h (obsd_init_abi): New prototype.
8736 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8737 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8738 (obsd_init_abi): New functions.
8739 * i386obsd-tdep.c: Include "obsd-tdep.h".
8740 (i386obsd_init_abi): Call obsd_init_abi.
8741 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8742 (amd64obsd_init_abi): Call obsd_init_abi.
8743 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8744 obsd-tdep.c to gdb_target_obs.
8746 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8748 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8749 double float arguments to 16-byte in the argument slots.
8751 2014-02-11 Doug Evans <xdje42@gmail.com>
8753 * configure.ac: Don't crash if pkg-config is not found and guile
8754 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8756 * configure: Regenerate.
8758 2014-02-11 Yao Qi <yao@codesourcery.com>
8760 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8761 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8762 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8763 * gnu-nat.c (gnu_xfer_memory): Likewise.
8764 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8765 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8766 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8767 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8769 2014-02-11 Yao Qi <yao@codesourcery.com>
8771 * target.h (enum target_xfer_error): Rename to ...
8772 (enum target_xfer_status): ... it. New. All users updated.
8773 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8775 (TARGET_XFER_STATUS_ERROR_P): New macro.
8776 (target_xfer_error_to_string): Remove declaration.
8777 (target_xfer_status_to_string): Declare.
8778 (target_xfer_partial_ftype): Adjust it.
8779 (struct target_ops) <to_xfer_partial>: Return
8780 target_xfer_status. Add argument xfered_len. Update
8782 * target.c (target_xfer_error_to_string): Rename to ...
8783 (target_xfer_status_to_string): ... it. New. All callers
8785 (target_read_live_memory): Likewise. Call target_xfer_partial
8786 instead of target_read.
8787 (memory_xfer_live_readonly_partial): Return
8788 target_xfer_status. Add argument xfered_len.
8789 (raw_memory_xfer_partial): Likewise.
8790 (memory_xfer_partial_1): Likewise.
8791 (memory_xfer_partial): Likewise.
8792 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8793 properly. Update debug message.
8794 (default_xfer_partial, current_xfer_partial): Likewise.
8795 (target_write_partial): Likewise.
8796 (target_read_partial): Likewise. All callers updated.
8797 (read_whatever_is_readable): Likewise.
8798 (target_write_with_progress): Likewise.
8799 (target_read_alloc_1): Likewise.
8801 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8802 * auxv.c (procfs_xfer_auxv): Likewise.
8803 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8804 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8805 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8806 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8807 * corefile.c (read_memory): Adjust.
8808 * corelow.c (core_xfer_partial): Likewise.
8809 * ctf.c (ctf_xfer_partial): Likewise.
8810 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8812 (darwin_xfer_partial): Likewise.
8813 * exec.c (section_table_xfer_memory_partial): Likewise. All
8815 (exec_xfer_partial): Likewise.
8816 * exec.h (section_table_xfer_memory_partial): Update
8818 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8820 (gnu_xfer_partial): Likewise.
8821 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8822 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8823 (ia64_hpux_xfer_solib_got): Likewise.
8824 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8825 type of 'partial_len' to ULONGEST.
8826 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8827 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8828 (linux_nat_xfer_partial): Likewise.
8829 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8830 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8831 * monitor.c (monitor_xfer_memory): Likewise.
8832 (monitor_xfer_partial): Likewise.
8833 * procfs.c (procfs_xfer_partial): Likewise.
8834 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8835 * record-full.c (record_full_xfer_partial): Likewise.
8836 (record_full_core_xfer_partial): Likewise.
8837 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8838 (gdbsim_xfer_partial): Likewise.
8839 * remote.c (remote_write_bytes_aux): Likewise. All callers
8841 (remote_write_bytes, remote_read_bytes): Likewise. All
8843 (remote_flash_erase): Likewise. All callers updated.
8844 (remote_write_qxfer): Likewise. All callers updated.
8845 (remote_read_qxfer): Likewise. All callers updated.
8846 (remote_xfer_partial): Likewise.
8847 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8848 (rs6000_xfer_shared_libraries): Likewise.
8849 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8850 (sol_thread_xfer_partial): Likewise.
8851 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8852 (sparc_xfer_partial): Likewise.
8853 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8855 (spu_xfer_partial): Likewise.
8856 * spu-multiarch.c (spu_xfer_partial): Likewise.
8857 * tracepoint.c (tfile_xfer_partial): Likewise.
8858 * windows-nat.c (windows_xfer_memory): Likewise.
8859 (windows_xfer_shared_libraries): Likewise.
8860 (windows_xfer_partial): Likewise.
8861 * valprint.c: Replace 'target_xfer_error' with
8862 'target_xfer_status' in comments.
8864 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8866 Checked in by Joel Brobecker <brobecker@adacore.com>.
8867 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8869 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8871 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8872 function parameters.
8874 2014-02-10 Will Newton <will.newton@linaro.org>
8876 * elfread.c (elf_rel_plt_read): Look for a .got section if
8877 looking up .got.plt fails.
8878 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8879 on address passed to elf_gnu_ifunc_record_cache.
8880 (elf_gnu_ifunc_resolve_addr): Likewise.
8881 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8883 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8885 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8886 (X_RETTURN): New macro.
8887 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8889 * sparc64-tdep.c (sparc64_init_abi): Hook
8890 sparc_in_function_epilogue_p.
8892 2014-02-10 Gary Benson <gbenson@redhat.com>
8894 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8895 Rename name_matcher to symbol_matcher.
8897 2014-02-10 Gary Benson <gbenson@redhat.com>
8899 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8900 Use expand_symtabs_file_matcher_ftype and
8901 expand_symtabs_symbol_matcher_ftype.
8903 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8905 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8906 (struct ada_symbol_cache): New.
8907 (ada_free_symbol_cache): Forward declare.
8908 (struct ada_pspace_data): New.
8909 (ada_pspace_data_handle): New static global.
8910 (get_ada_pspace_data, ada_pspace_data_cleanup)
8911 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8912 (cache_space, cache): Delete, now folded inside struct
8914 (ada_get_symbol_cache): New function.
8915 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8917 (_initialize_ada_language): Remove initialization of cache_space.
8918 Move call to observer_attach_inferior_exit up, grouping it
8919 with the other observer registrations inside this function.
8920 Rename command to be more general. Add call to
8921 register_program_space_data_with_cleanup.
8923 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8925 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8926 ada_new_objfile_observer.
8927 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8928 (_initialize_tasks): Update uses of ada_new_objfile_observer
8929 and ada_tasks_normal_stop_observer.
8931 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8933 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8934 returned by the 'Length attribute to integer.
8936 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8938 * ada-lang.c (_initialize_ada_language): Initialize
8939 cache_space obstack.
8941 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8943 * ada-lang.c (HASH_SIZE): New macro.
8944 (struct cache_entry): New type.
8945 (cache_space, cache): New static globals.
8946 (ada_clear_symbol_cache, find_entry): New functions.
8947 (lookup_cached_symbol, cache_symbol): Implement.
8948 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8949 (_initialize_ada_language): Attach ada_new_objfile_observer
8950 and ada_free_objfile_observer.
8952 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8954 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8955 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8956 struct block * parameter.
8957 (ada_lookup_symbol_list_worker): Constify local variable "block".
8958 Remove cast which is no longer necessary.
8960 2014-02-10 Doug Evans <xdje42@gmail.com>
8962 Add Guile as an extension language.
8963 * NEWS: Mention Guile scripting.
8964 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8965 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8966 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8967 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8968 (CLIBS): Add GUILE_LIBS.
8969 (install-guile): New rule.
8970 (guile.o): New rule.
8971 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8972 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8973 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8974 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8975 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8976 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8977 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8978 * configure.ac: New option --with-guile.
8979 * configure: Regenerate.
8980 * config.in: Regenerate.
8981 * auto-load.c: Remove #include "python/python.h". Add #include
8982 "gdb/section-scripts.h".
8983 (source_section_scripts): Handle Guile scripts.
8984 (_initialize_auto_load): Add name of Guile objfile script to
8985 scripts-directory help text.
8986 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8987 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8988 (struct breakpoint): New member scm_bp_object.
8989 * defs.h (enum command_control_type): New value guile_control.
8990 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8992 (show_user): Update comment.
8993 (_initialize_cli_cmds): Update help text for "show user". Update help
8994 text for max-user-call-depth.
8995 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8997 (multi_line_command_p): Add guile_control.
8998 (print_command_lines): Handle guile_control.
8999 (execute_control_command, recurse_read_control_structure): Ditto.
9000 (process_next_line): Recognize "guile" commands.
9001 * disasm.c (gdb_disassemble_info): Make non-static.
9002 * disasm.h: #include "dis-asm.h".
9003 (struct gdbarch): Add forward decl.
9004 (gdb_disassemble_info): Declare.
9005 * extension.c: #include "guile/guile.h".
9006 (extension_languages): Add guile.
9007 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9008 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9009 * gdbtypes.c (get_unsigned_type_max): New function.
9010 (get_signed_type_minmax): New function.
9011 * gdbtypes.h (get_unsigned_type_max): Declare.
9012 (get_signed_type_minmax): Declare.
9013 * guile/README: New file.
9014 * guile/guile-internal.h: New file.
9015 * guile/guile.c: New file.
9016 * guile/guile.h: New file.
9017 * guile/scm-arch.c: New file.
9018 * guile/scm-auto-load.c: New file.
9019 * guile/scm-block.c: New file.
9020 * guile/scm-breakpoint.c: New file.
9021 * guile/scm-disasm.c: New file.
9022 * guile/scm-exception.c: New file.
9023 * guile/scm-frame.c: New file.
9024 * guile/scm-gsmob.c: New file.
9025 * guile/scm-iterator.c: New file.
9026 * guile/scm-lazy-string.c: New file.
9027 * guile/scm-math.c: New file.
9028 * guile/scm-objfile.c: New file.
9029 * guile/scm-ports.c: New file.
9030 * guile/scm-pretty-print.c: New file.
9031 * guile/scm-safe-call.c: New file.
9032 * guile/scm-string.c: New file.
9033 * guile/scm-symbol.c: New file.
9034 * guile/scm-symtab.c: New file.
9035 * guile/scm-type.c: New file.
9036 * guile/scm-utils.c: New file.
9037 * guile/scm-value.c: New file.
9038 * guile/lib/gdb.scm: New file.
9039 * guile/lib/gdb/boot.scm: New file.
9040 * guile/lib/gdb/experimental.scm: New file.
9041 * guile/lib/gdb/init.scm: New file.
9042 * guile/lib/gdb/iterator.scm: New file.
9043 * guile/lib/gdb/printing.scm: New file.
9044 * guile/lib/gdb/types.scm: New file.
9045 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9046 (VPATH): Add $(GUILE_SRCDIR).
9047 (GUILE_DIR): New variable.
9048 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9049 (all): Add stamp-guile dependency.
9050 (stamp-guile): New rule.
9051 (clean-guile, install-guile, uninstall-guile): New rules.
9052 (install-only): Add install-guile dependency.
9053 (uninstall): Add uninstall-guile dependency.
9054 (clean): Add clean-guile dependency.
9056 2014-02-09 Doug Evans <xdje42@gmail.com>
9058 Revert this patch (which I approved, mea culpa).
9060 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9062 * Makefile.in (all-lib): Remove.
9063 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9065 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9067 Fix Python stack corruption.
9068 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9071 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9073 * Makefile.in (all-lib): Remove.
9074 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9076 2014-02-07 Doug Evans <dje@google.com>
9078 * extension-priv.h (extension_language_script_ops): Add comment.
9079 (extension_language_ops): Add comment.
9080 (active_ext_lang_state): Fix typo in comment.
9082 2014-02-07 Pedro Alves <palves@redhat.com>
9084 PR breakpoints/16292
9085 * infrun.c (handle_signal_stop) <signal arrives while stepping
9086 over a breakpoint>: Switch back to the stepping thread.
9088 2014-02-07 Yao Qi <yao@codesourcery.com>
9090 * target.c (target_xfer_partial): Return zero if LEN is zero.
9092 2014-02-07 Yao Qi <yao@codesourcery.com>
9094 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9095 (ld_so_xfer_auxv): Likewise.
9096 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9097 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9098 * corelow.c (core_xfer_partial): Likewise.
9099 * ctf.c (ctf_xfer_partial): Likewise.
9100 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9101 (darwin_xfer_partial): Likewise.
9102 * exec.c (exec_xfer_partial): Likewise.
9103 * gnu-nat.c (gnu_xfer_partial): Likewise.
9104 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9105 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9106 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9107 * linux-nat.c (linux_xfer_siginfo): Likewise.
9108 (linux_proc_xfer_spu): Likewise.
9109 * procfs.c (procfs_xfer_partial): Likewise.
9110 * record-full.c (record_full_xfer_partial): Likewise.
9111 (record_full_core_xfer_partial): Likewise.
9112 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9113 * remote.c (remote_write_qxfer): Likewise.
9114 (remote_write_qxfer, remote_read_qxfer): Likewise.
9115 (remote_xfer_partial): Likewise.
9116 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9117 (rs6000_xfer_shared_libraries): Likewise.
9118 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9119 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9120 (spu_xfer_partial): Likewise.
9121 * target.c (memory_xfer_partial_1): Likewise.
9122 * tracepoint.c (tfile_xfer_partial): Likewise.
9123 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9124 (windows_xfer_partial): Likewise.
9126 2014-02-07 Yao Qi <yao@codesourcery.com>
9128 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9130 (core_xfer_shared_libraries_aix): Likewise.
9131 * gdbarch.c, gdbarch.h: Regenerated.
9132 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9133 ULONGEST. Change 'len_avail' type to ULONGEST.
9134 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9135 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9137 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9139 2014-02-07 Yao Qi <yao@codesourcery.com>
9141 * corefile.c (memory_error): Get 'exception' from ERR and pass
9142 'exception' to throw_error.
9144 2014-02-06 Doug Evans <xdje42@gmail.com>
9146 * configure.ac (libpython checking): Remove all but python.o from
9147 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9148 * configure: Regenerate.
9150 * Makefile.in (SFILES): Add extension.c.
9151 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9152 (COMMON_OBS): Add extension.o.
9153 * extension.h: New file.
9154 * extension-priv.h: New file.
9155 * extension.c: New file.
9157 * python/python-internal.h: #include "extension.h".
9158 (gdbpy_auto_load_enabled): Declare.
9159 (gdbpy_apply_val_pretty_printer): Declare.
9160 (gdbpy_apply_frame_filter): Declare.
9161 (gdbpy_preserve_values): Declare.
9162 (gdbpy_breakpoint_cond_says_stop): Declare.
9163 (gdbpy_breakpoint_has_cond): Declare.
9164 (void source_python_script_for_objfile): Delete.
9165 * python/python.c: #include "extension-priv.h".
9166 Delete inclusion of "observer.h".
9167 (extension_language_python): Moved here and renamed from
9168 script_language_python in py-auto-load.c.
9169 Redefined to be of type extension_language_defn.
9170 (python_extension_script_ops): New global.
9171 (python_extension_ops): New global.
9172 (struct python_env): New member previous_active.
9173 (restore_python_env): Call restore_active_ext_lang.
9174 (ensure_python_env): Call set_active_ext_lang.
9175 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9177 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9179 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9181 (gdbpy_eval_from_control_command): Renamed from
9182 eval_python_from_control_command, made static. New arg extlang.
9183 (gdbpy_source_script) Renamed from source_python_script, made static.
9185 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9186 result to int. New arg extlang.
9187 (gdbpy_source_objfile_script): Renamed from
9188 source_python_script_for_objfile, made static. New arg extlang.
9189 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9190 static. New args extlang, extlang_printers. Change result type to
9192 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9193 static. New arg extlang. Rename arg printers to extlang_printers
9194 and change type to ext_lang_type_printers *.
9195 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9196 static. Replace argument arg with extlang, extlang_printers.
9197 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9198 (!HAVE_PYTHON, source_python_script): Delete.
9199 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9200 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9201 (!HAVE_PYTHON, start_type_printers): Delete.
9202 (!HAVE_PYTHON, apply_type_printers): Delete.
9203 (!HAVE_PYTHON, free_type_printers): Delete.
9204 (_initialize_python): Delete call to observer_attach_before_prompt.
9205 (finalize_python): Set/restore active extension language.
9206 (gdbpy_finish_initialization) Renamed from
9207 finish_python_initialization, made static. New arg extlang.
9208 (gdbpy_initialized): New function.
9209 * python/python.h: #include "extension.h". Delete #include
9210 "value.h", "mi/mi-cmds.h".
9211 (extension_language_python): Declare.
9212 (GDBPY_AUTO_FILE_NAME): Delete.
9213 (enum py_bt_status): Moved to extension.h and renamed to
9215 (enum frame_filter_flags): Moved to extension.h.
9216 (enum py_frame_args): Moved to extension.h and renamed to
9217 ext_lang_frame_args.
9218 (finish_python_initialization): Delete.
9219 (eval_python_from_control_command): Delete.
9220 (source_python_script): Delete.
9221 (apply_val_pretty_printer): Delete.
9222 (apply_frame_filter): Delete.
9223 (preserve_python_values): Delete.
9224 (gdbpy_script_language_defn): Delete.
9225 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9226 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9228 * auto-load.c: #include "extension.h".
9229 (GDB_AUTO_FILE_NAME): Delete.
9230 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9231 (script_language_gdb): Delete, moved to extension.c and renamed to
9232 extension_language_gdb.
9233 (source_gdb_script_for_objfile): Delete.
9234 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9235 (loaded_script): Change type of language member to
9236 struct extension_language_defn *.
9237 (init_loaded_scripts_info): Initialize
9238 unsupported_script_warning_printed.
9239 (maybe_add_script): Make static. Change type of language arg to
9240 struct extension_language_defn *.
9241 (clear_section_scripts): Reset unsupported_script_warning_printed.
9242 (auto_load_objfile_script_1): Rewrite to use extension language API.
9243 (auto_load_objfile_script): Make public. Remove support-compiled-in
9244 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9245 (source_section_scripts): Rewrite to use extension language API.
9246 (load_auto_scripts_for_objfile): Rewrite to use
9247 auto_load_scripts_for_objfile.
9248 (collect_matching_scripts_data): Change type of language member to
9249 struct extension_language_defn *.
9250 (auto_load_info_scripts): Change type of language arg to
9251 struct extension_language_defn *.
9252 (unsupported_script_warning_print): New function.
9253 (script_not_found_warning_print): Make static.
9254 (_initialize_auto_load): Rewrite construction of scripts-directory
9256 * auto-load.h (struct objfile): Add forward decl.
9257 (struct script_language): Delete.
9258 (struct auto_load_pspace_info): Add forward decl.
9259 (struct extension_language_defn): Add forward decl.
9260 (maybe_add_script): Delete.
9261 (auto_load_objfile_script): Declare.
9262 (script_not_found_warning_print): Delete.
9263 (auto_load_info_scripts): Update prototype.
9264 (auto_load_gdb_scripts_enabled): Declare.
9265 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9266 auto_load_python_scripts_enabled and made public.
9267 (script_language_python): Delete, moved to python.c.
9268 (gdbpy_script_language_defn): Delete.
9269 (info_auto_load_python_scripts): Update to use
9270 extension_language_python.
9272 * breakpoint.c (condition_command): Replace call to
9273 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9274 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9275 with call to breakpoint_ext_lang_cond_says_stop.
9276 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9277 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9278 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9279 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9281 (local_setattro): Print name of extension language with existing
9284 * valprint.c (val_print, value_print): Update to call
9285 apply_ext_lang_val_pretty_printer.
9286 * cp-valprint.c (cp_print_value): Update call to
9287 apply_ext_lang_val_pretty_printer.
9288 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9289 (gdbpy_apply_val_pretty_printer): Renamed from
9290 apply_val_pretty_printer. New arg extlang.
9291 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9293 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9294 extension language API.
9295 * cli/cli-script.c (execute_control_command): Update to call
9296 eval_ext_lang_from_control_command.
9298 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9299 enum ext_lang_bt_status values. Update call to
9300 apply_ext_lang_frame_filter.
9301 (mi_cmd_stack_list_locals): Ditto.
9302 (mi_cmd_stack_list_args): Ditto.
9303 (mi_cmd_stack_list_variables): Ditto.
9304 * mi/mi-main.c: Delete #include "python/python-internal.h".
9305 Add #include "extension.h".
9306 (mi_cmd_list_features): Replace reference to python internal variable
9307 gdb_python_initialized with call to ext_lang_initialized_p.
9309 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9310 Update to use enum ext_lang_frame_args. Update to call
9311 apply_ext_lang_frame_filter.
9312 * python/py-framefilter.c (extract_sym): Update to use enum
9314 (extract_value, py_print_type, py_print_value): Ditto.
9315 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9316 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9317 (py_print_frame): Ditto.
9318 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9319 New arg extlang. Update to use enum ext_lang_bt_status.
9321 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9322 finish_python_initialization. Replace with call to
9323 finish_ext_lang_initialization.
9325 * typeprint.c (do_free_global_table): Update to call
9326 free_ext_lang_type_printers.
9327 (create_global_typedef_table): Update to call
9328 start_ext_lang_type_printers.
9329 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9330 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9331 (type_print_options): Change type of global_printers from "void *"
9332 to "struct ext_lang_type_printers *".
9334 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9335 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9336 (gdbpy_preserve_values): Renamed from preserve_python_values.
9338 (!HAVE_PYTHON, preserve_python_values): Delete.
9340 * utils.c (quit_flag): Delete, moved to extension.c.
9341 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9344 * eval.c: Delete #include "python/python.h".
9345 * main.c: Delete #include "python/python.h".
9347 * defs.h: Update comment.
9349 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9353 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9355 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9358 2014-02-05 Yao Qi <yao@codesourcery.com>
9360 * remote.c (remote_pass_signals): Remove local 'buf' and use
9362 (remote_program_signals): Likewise.
9364 2014-02-05 Yao Qi <yao@codesourcery.com>
9366 * ctf.c: Include "inferior.h" and "gdbthread.h".
9367 (CTF_PID): A new macro.
9368 (ctf_open): Call inferior_appeared and add_thread_silent.
9369 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9370 (ctf_thread_alive): New function.
9371 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9373 2014-02-05 Yao Qi <yao@codesourcery.com>
9377 2013-05-24 Yao Qi <yao@codesourcery.com>
9379 * tracepoint.c (TFILE_PID): Remove.
9380 (tfile_open): Don't add thread and inferior.
9381 (tfile_close): Don't set 'inferior_ptid'. Don't call
9382 exit_inferior_silent.
9383 (tfile_thread_alive): Remove.
9384 (init_tfile_ops): Don't set field 'to_thread_alive' of
9387 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9389 * remote.c (remote_start_remote): Call remote_check_symbols even
9390 if only symbol-file (not file) has been given.
9392 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9394 * gdbarch.sh (skip_entrypoint): New callback.
9395 * gdbarch.c, gdbarch.h: Regenerate.
9396 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9397 * infrun.c (fill_in_stop_func): Likewise.
9398 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9399 (ppc_elfv2_elf_make_msymbol_special): New function.
9400 (ppc_elfv2_skip_entrypoint): Likewise.
9401 (ppc_linux_init_abi): Install them for ELFv2.
9403 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9405 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9406 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9407 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9408 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9409 structures returned in GPRs.
9411 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9413 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9414 offset to the stack parameter list for the ELFv2 ABI.
9416 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9418 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9419 set_gdbarch_convert_from_func_ptr_addr and
9420 set_gdbarch_elf_make_msymbol_special for ELFv1.
9421 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9422 function descriptors on ELFv1.
9423 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9424 set up r12 at function entry.
9426 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9428 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9429 (struct gdbarch_tdep): New member elf_abi.
9431 * rs6000-tdep.c: Include "elf/ppc64.h".
9432 (rs6000_gdbarch_init): Detect ELF ABI version.
9434 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9436 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9437 within a register pair holding a DFP 128-bit value on little-endian.
9438 (ppc64_sysv_abi_return_value_base): Likewise.
9439 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9440 (dfp_pseudo_register_write): Likewise.
9442 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9444 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9445 offset on little-endian when passing _Decimal32.
9446 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9448 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9450 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9451 of the overlapped FP register within the VSX register on little-
9453 (efpr_pseudo_register_write): Likewise.
9455 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9457 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9458 offset on little-endian when passing small structures.
9460 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9462 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9463 (struct ppc64_sysv_argpos): New data structure.
9464 (ppc64_sysv_abi_push_float): Remove.
9465 (ppc64_sysv_abi_push_val): New function.
9466 (ppc64_sysv_abi_push_integer): Likewise.
9467 (ppc64_sysv_abi_push_freg): Likewise.
9468 (ppc64_sysv_abi_push_vreg): Likewise.
9469 (ppc64_sysv_abi_push_param): Likewise.
9470 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9471 (ppc64_sysv_abi_return_value_base): New function.
9472 (ppc64_sysv_abi_return_value): Refactor to use it.
9474 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9476 * NEWS: Document new target powerpc64le-*-linux*.
9478 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9480 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9481 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9483 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9484 register set used in ELF core dumps. Add floating-point register set.
9486 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9488 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9489 dwarf2_to_gdb[] table using symbolic constants. Adjust
9490 penultimate entry from number representing the PC register
9491 to symbolic constant representing the MDR register. Add
9492 constant for the PC register to the end of the table.
9494 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9496 * bsd-kvm.c: Include <sys/param.h>
9498 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9500 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9502 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9504 * ada-lang.h (clear_ada_sym_cache): Delete.
9506 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9508 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9510 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9512 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9513 the sigreturn register save area only if the syscall is
9516 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9518 * valops.c (value_slice): Minor reformatting.
9520 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9522 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9524 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9526 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9528 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9529 (ada_ignore_descriptive_types_p): New static global.
9530 (find_parallel_type_by_descriptive_type): Return immediately
9531 if ada_ignore_descriptive_types_p is set.
9532 (_initialize_ada_language): Register new commands "maintenance
9533 set ada", "maintenance show ada", "maintenance set ada
9534 ignore-descriptive-types" and "maintenance show ada
9535 ignore-descriptive-types".
9536 * NEWS: Add entry for new "maint ada set/show
9537 ignore-descriptive-types" commands.
9539 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9541 * record-btrace.c (record_btrace_close): Call btrace_teardown
9544 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9546 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9549 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9551 * ada-typeprint (type_is_full_subrange_of_target_type):
9553 (print_range): Add parameter bounds_prefered_p. If not set,
9554 try printing range types using the name of their base type.
9555 (print_range_type): Add parameter bounds_prefered_p.
9556 Use it in call to print_range.
9557 (print_array_type, ada_print_type): Update calls to print_range
9558 and print_range_type.
9560 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9562 * ada-typeprint.c (print_array_type, print_choices, print_range)
9563 (print_range_bound, print_dynamic_range_bound, print_range_type):
9566 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9568 * ada-typeprint.c (print_range): Add missing empty line
9569 after local declaration.
9571 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9573 * ada-valprint.c (print_optional_low_bound): Get index_type's
9574 target type for as long as it is a TYPE_CODE_RANGE.
9576 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9578 * procfs.c (procfs_make_note_section): Remove assertion and
9581 2014-01-24 Yao Qi <yao@codesourcery.com>
9583 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9584 * corelow.c (get_core_siginfo): Likewise.
9586 2014-01-24 Yao Qi <yao@codesourcery.com>
9588 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9589 ULONGEST. Don't check 'len' is negative.
9590 (remote_write_bytes): Change type of 'len' to ULONGEST.
9592 2014-01-23 Tom Tromey <tromey@redhat.com>
9595 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9596 Handle exception from frame.block.
9597 (FrameVars.fetch_frame_locals): Likewise.
9599 2014-01-23 Tom Tromey <tromey@redhat.com>
9602 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9603 on a NULL pointer. Move "goto error" to correct place.
9605 2014-01-23 Tom Tromey <tromey@redhat.com>
9608 * python/py-framefilter.c (apply_frame_filter): Call
9609 ensure_python_env after computing gdbarch.
9611 2014-01-23 Yao Qi <yao@codesourcery.com>
9613 * target.c (raw_memory_xfer_partial): Change argument type
9614 from void * to gdb_byte *.
9615 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9617 2014-01-22 Doug Evans <dje@google.com>
9619 New gdbserver option --debug-format=timestamp.
9622 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9624 * syscalls/s390x-linux.xml: New file.
9625 * syscalls/s390-linux.xml: New file.
9626 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9627 (XML_SYSCALL_FILENAME_S390X): Likewise.
9628 (op_svc): New enum value for SVC opcode.
9629 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9630 (s390_linux_get_syscall_number): New function.
9631 (s390_gdbarch_init): Register '*get_syscall_number' and the
9632 syscall xml file name.
9633 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9634 "s390-linux.xml" and "s390x-linux.xml".
9635 * NEWS: Announce new feature.
9637 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9639 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9641 2014-01-22 Pedro Alves <palves@redhat.com>
9643 * xtensa-config.c: Include defs.h.
9645 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9647 * common/common-utils.h: Add "ARI:" comment beside __func__
9650 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9652 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9653 documentation a bit.
9655 2014-01-21 Roland McGrath <mcgrathr@google.com>
9657 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9658 * configure: Regenerate.
9659 * aclocal.m4: Regenerate.
9660 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9661 New substituted variables.
9662 (install-strip): New target.
9663 (INSTALL_SCRIPT): New substituted variable.
9664 (FLAGS_TO_PASS): Add it.
9665 (install-only): Use $(INSTALL_SCRIPT) rather than
9666 $(INSTALL_PROGRAM) for gcore.
9668 2014-01-20 Tom Tromey <tromey@redhat.com>
9670 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9673 2014-01-20 Tom Tromey <tromey@redhat.com>
9675 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9676 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9677 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9678 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9679 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9680 (struct cmd_list_element) <flags>: Remove.
9681 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9682 doc_allocated>: New fields.
9683 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9685 * maint.c (maintenance_do_deprecate): Update.
9686 * top.c (execute_command): Update.
9688 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9690 * xtensa-linux-nat.c: Include asm/ptrace.h.
9692 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9694 * Makefile.in (SFILES): Add d-support.c.
9695 (COMMON_OBS): Add d-support.o.
9696 * d-lang.h (d_parse_symbol): Add comment, now defined in
9698 * d-lang.c (parse_call_convention)
9699 (parse_attributes, parse_function_types)
9700 (parse_function_args, parse_type, parse_identifier)
9701 (call_convention_p, d_parse_symbol): Move functions to ...
9702 * d-support.c: ... New file.
9704 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9706 * d-lang.h (d_parse_symbol): Add declaration.
9707 * d-lang.c (extract_identifiers)
9708 (extract_type_info): Remove functions.
9709 (parse_call_convention, parse_attributes)
9710 (parse_function_types, parse_function_args)
9711 (parse_type, parse_identifier, call_convention_p)
9712 (d_parse_symbol): New functions.
9713 (d_demangle): Use d_parse_symbol to demangle D symbols.
9715 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9717 * d-lang.h (struct builtin_d_type): New data type.
9718 (builtin_d_type): Add declaration.
9719 * d-lang.c (d_language_arch_info, build_d_types)
9720 (builtin_d_type): New functions.
9721 (enum d_primitive_types): New data type.
9722 (d_language_defn): Change c_language_arch_info to
9723 d_language_arch_info.
9724 (d_type_data): New static variable.
9725 (_initialize_d_language): Initialize d_type_data.
9727 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9729 * d-lang.h (d_main_name): Add declaration.
9730 * d-lang.c (d_main_name): New function.
9731 * symtab.c (find_main_name): Add call to d_main_name.
9733 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9735 * d-lang.c (d_language_defn): Change macro_expansion_c to
9738 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9740 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9742 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9744 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9745 gdb_exception" declaration.
9746 * remote.c (getpkt_or_notif_sane): Likewise.
9748 2014-01-17 Doug Evans <dje@google.com>
9750 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9751 function, contents of dirnames_to_char_ptr_vec_append moved here.
9752 (delim_string_to_char_ptr_vec): New function.
9753 (dirnames_to_char_ptr_vec_append): Rewrite.
9754 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9756 2014-01-17 Doug Evans <dje@google.com>
9758 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9760 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9761 #include "common-utils.h".
9762 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9763 * common/vec.h (VEC_ASSERT_PASS): Update.
9764 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9765 (MACH_CHECK_ERROR): Update.
9767 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9769 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9771 * gdbarch.h: Regenerate.
9773 2014-01-16 Tom Tromey <tromey@redhat.com>
9775 * value.c (struct value) <regnum>: Move earlier.
9777 2014-01-16 Tom Tromey <tromey@redhat.com>
9779 * remote.c (extended_remote_create_inferior): Rename from
9780 extended_remote_create_inferior_1. Add "ops" argument. Remove
9783 2014-01-16 Pedro Alves <palves@redhat.com>
9785 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9786 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9789 2014-01-16 Doug Evans <dje@google.com>
9791 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9793 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9795 * btrace.h (btrace_thread_flag): New.
9796 (struct btrace_thread_info) <flags>: New.
9797 * record-btrace.c (record_btrace_resume_thread)
9798 (record_btrace_find_thread_to_move, btrace_step_no_history)
9799 (btrace_step_stopped, record_btrace_start_replaying)
9800 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9801 (record_btrace_find_resume_thread): New.
9802 (record_btrace_resume, record_btrace_wait): Extend.
9803 (record_btrace_can_execute_reverse): New.
9804 (record_btrace_open): Fail in non-stop mode.
9805 (record_btrace_set_replay): Split into this, ...
9806 (record_btrace_stop_replaying): ... this, ...
9807 (record_btrace_clear_histories): ... and this.
9808 (init_record_btrace_ops): Init to_can_execute_reverse.
9809 * NEWS: Announce it.
9811 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9813 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9814 (forward_target_decr_pc_after_break)
9815 (target_decr_pc_after_break): New.
9816 * target.c (forward_target_decr_pc_after_break)
9817 (target_decr_pc_after_break): New.
9818 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9819 instead of gdbarch_decr_pc_after_break.
9820 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9821 instead of gdbarch_decr_pc_after_break.
9822 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9823 instead of gdbarch_decr_pc_after_break.
9824 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9825 instead of gdbarch_decr_pc_after_break.
9826 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9827 instead of gdbarch_decr_pc_after_break.
9828 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9829 instead of gdbarch_decr_pc_after_break.
9831 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9833 * btrace.c: Include regcache.h.
9834 (btrace_add_pc): New.
9835 (btrace_enable): Call btrace_add_pc.
9836 (btrace_is_empty): New.
9837 * btrace.h (btrace_is_empty): New.
9838 * record-btrace.c (require_btrace, record_btrace_info): Call
9841 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9843 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9844 Support delta reads.
9845 (linux_disable_btrace): Change return type.
9846 * common/linux-btrace.h (linux_read_btrace): Change parameters
9847 and return type to allow error reporting. Update users.
9848 (linux_disable_btrace): Change return type. Update users.
9849 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9851 (btrace_error): New.
9852 (btrace_block) <begin>: Comment on BEGIN == 0.
9853 * btrace.c (btrace_compute_ftrace): Start from the end of
9855 (btrace_stitch_trace, btrace_clear_history): New.
9856 (btrace_fetch): Read delta trace, return if replaying.
9857 (btrace_clear): Move clear history code to btrace_clear_history.
9858 (parse_xml_btrace): Throw an error if parsing failed.
9859 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9860 and return type to allow error reporting.
9861 (target_read_btrace): Change parameters and return type to allow
9863 * target.c (target_read_btrace): Update.
9864 * remote.c (remote_read_btrace): Support delta reads. Pass
9866 * NEWS: Announce it.
9868 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9870 * record.h (record_btrace_frame_unwind)
9871 (record_btrace_tailcall_frame_unwind): New declarations.
9872 * dwarf2-frame: Include record.h
9873 (dwarf2_frame_cfa): Throw an error for btrace frames.
9874 * record-btrace.c: Include hashtab.h.
9875 (btrace_get_bfun_name): New.
9876 (btrace_call_history): Call btrace_get_bfun_name.
9877 (struct btrace_frame_cache): New.
9879 (bfcache_hash, bfcache_eq, bfcache_new): New.
9880 (btrace_get_frame_function): New.
9881 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9882 (record_btrace_frame_this_id): Compute own id.
9883 (record_btrace_frame_prev_register): Provide PC, throw_error
9884 for all other registers.
9885 (record_btrace_frame_sniffer): Detect btrace frames.
9886 (record_btrace_tailcall_frame_sniffer): New.
9887 (record_btrace_frame_dealloc_cache): New.
9888 (record_btrace_frame_unwind): Add new functions.
9889 (record_btrace_tailcall_frame_unwind): New.
9890 (_initialize_record_btrace): Allocate cache.
9891 * btrace.c (btrace_clear): Call reinit_frame_cache.
9892 * NEWS: Announce it.
9894 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9896 * record-btrace.c (record_btrace_set_replay)
9897 (record_btrace_goto_begin, record_btrace_goto_end)
9898 (record_btrace_goto): New.
9899 (init_record_btrace_ops): Initialize them.
9900 * NEWS: Announce it.
9902 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9904 * record-btrace.c (record_btrace_find_new_threads)
9905 (record_btrace_thread_alive): New.
9906 (init_record_btrace_ops): Initialize to_find_new_threads and
9909 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9911 * record-btrace.c (record_btrace_resume): New.
9912 (record_btrace_wait): New.
9913 (init_record_btrace_ops): Initialize to_wait and to_resume.
9915 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9917 * record-btrace.c (record_btrace_xfer_partial)
9918 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9919 (record_btrace_allow_memory_access): New.
9920 (init_record_btrace_ops): Initialize new methods.
9921 * target.c (raw_memory_xfer_partial): Bail out if target reports
9922 that this memory is not available.
9924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9926 * target.h (target_ops) <to_insert_breakpoint>
9927 <to_remove_breakpoint>: Add target_ops parameter.
9928 (forward_target_insert_breakpoint): New.
9929 (forward_target_remove_breakpoint): New.
9930 (memory_remove_breakpoint, memory_insert_breakpoint):
9931 Add target_ops parameter.
9932 * target.c (target_insert_breakpoint): Split into this and ...
9933 (forward_target_insert_breakpoint): ... this.
9934 (target_remove_breakpoint): Split into this and ...
9935 (forward_target_remove_breakpoint): ... this.
9936 (debug_to_insert_breakpoint): Add target_ops parameter.
9937 Call forward_target_insert_breakpoint.
9938 (debug_to_remove_breakpoint): Add target_ops parameter.
9939 Call forward_target_remove_breakpoint.
9940 (update_current_target): Do not inherit or default to_insert_breakpoint
9941 and to_remove_breakpoint.
9942 * corelow.c (ignore): Add target_ops parameter.
9943 * exec.c (ignore): Add target_ops parameter.
9944 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9945 Add target_ops parameter.
9946 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9947 Add target_ops parameter.
9948 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9949 Add target_ops parameter.
9950 * record-full.c (record_full_beneath_to_insert_breakpoint)
9951 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9952 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9953 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9954 (record_full_core_remove_breakpoint): Add target_ops parameter.
9956 (record_full_beneath_to_insert_breakpoint_ops)
9957 (record_full_beneath_to_remove_breakpoint_ops)
9958 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9959 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9960 tmp_to_remove_breakpoint_ops,
9961 record_full_beneath_to_insert_breakpoint_ops, and
9962 record_full_beneath_to_remove_breakpoint_ops.
9963 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9964 (m32r_remove_breakpoint): Add target_ops parameter.
9965 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9966 Add target_ops parameter.
9967 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9968 Add target_ops parameter.
9970 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9971 Markus Metzger <markus.t.metzger@intel.com>
9973 * record-btrace.c: Include frame-unwind.h.
9974 (record_btrace_frame_unwind_stop_reason)
9975 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9976 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9978 (init_record_btrace_ops): Install it.
9980 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9982 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9985 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9987 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9990 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9992 * frame-unwind.c: Include target.h.
9993 (frame_unwind_try_unwinder): New function with code from ...
9994 (frame_unwind_find_by_frame): ... here. New variable
9995 unwinder_from_target, call also target_get_unwinder)
9996 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9997 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9998 * target.h (struct target_ops): New fields to_get_unwinder and
9999 to_get_tailcall_unwinder.
10000 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10002 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10004 * record-btrace.c (record_btrace_fetch_registers)
10005 (record_btrace_store_registers)
10006 (record_btrace_to_prepare_to_store): New.
10007 (init_record_btrace_ops): Add the above.
10009 2014-01-16 Tom Tromey <tromey@redhat.com>
10011 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10012 * target.h (struct target_ops) <to_prepare_to_store>: Add
10014 (target_prepare_to_store): Add argument.
10015 * target.c (debug_to_prepare_to_store): Add argument.
10016 (update_current_target): Update.
10017 * remote.c (remote_prepare_to_store): Add 'self' argument.
10018 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10019 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10020 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10021 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10023 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10024 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10025 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10026 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10027 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10029 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10031 * btrace.h (replay) <replay>: New.
10032 (btrace_is_replaying): New.
10033 * btrace.c (btrace_clear): Free replay iterator.
10034 (btrace_is_replaying): New.
10035 * record-btrace.c (record_btrace_is_replaying): New.
10036 (record_btrace_info): Print insn number if replaying.
10037 (record_btrace_insn_history): Start at replay position.
10038 (record_btrace_call_history): Start at replay position.
10039 (init_record_btrace_ops): Init to_record_is_replaying.
10041 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10043 * record-btrace.c (record_btrace_insn_history_range): Include
10045 (record_btrace_insn_history_from): Adjust range.
10046 (record_btrace_call_history_range): Include
10048 (record_btrace_call_history_from): Adjust range.
10049 * NEWS: Announce changes.
10051 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10053 * record.h (enum record_print_flag)
10054 <record_print_indent_calls>: New.
10055 * record.c (get_call_history_modifiers): Recognize /c modifier.
10056 (_initialize_record): Document /c modifier.
10057 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10058 Reorder fields. Optionally indent the function name. Update
10060 * NEWS: Announce changes.
10062 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10064 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10066 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10068 * btrace.c (ftrace_new_function): Start counting at one.
10069 * record-btrace.c (record_btrace_info): Adjust number of calls
10071 * NEWS: Announce it.
10073 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10075 * record-btrace.c (btrace_call_history_insn_range): Print
10076 insn range as [begin, end].
10078 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10080 * btrace.h (struct btrace_func_link): New.
10081 (enum btrace_function_flag): New.
10082 (struct btrace_inst): Rename to ...
10083 (struct btrace_insn): ...this. Update all users.
10084 (struct btrace_func) <ibegin, iend>: Remove.
10085 (struct btrace_func_link): New.
10086 (struct btrace_func): Rename to ...
10087 (struct btrace_function): ...this. Update all users.
10088 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10089 (number, level, flags>: New.
10090 (struct btrace_insn_iterator): Rename to ...
10091 (struct btrace_insn_history): ...this.
10093 (struct btrace_insn_iterator, btrace_call_iterator): New.
10094 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10095 (struct btrace_target_info) <begin, end, level>
10096 <insn_history, call_history>: New.
10097 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10098 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10099 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10100 (btrace_call_number, btrace_call_begin, btrace_call_end)
10101 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10102 (btrace_find_function_by_number, btrace_set_insn_history)
10103 (btrace_set_call_history): New.
10104 * btrace.c (btrace_init_insn_iterator)
10105 (btrace_init_func_iterator, compute_itrace): Remove.
10106 (ftrace_print_function_name, ftrace_print_filename)
10107 (ftrace_skip_file): Change
10108 parameter to const.
10109 (ftrace_init_func): Remove.
10110 (ftrace_debug): Use new btrace_function fields.
10111 (ftrace_function_switched): Also consider gaining and
10112 losing symbol information).
10113 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10114 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10115 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10117 (ftrace_new_function): Move. Remove debug print.
10118 (ftrace_update_lines, ftrace_update_insns): New.
10119 (ftrace_update_function): Check for call, ret, and jump.
10120 (compute_ftrace): Renamed to ...
10121 (btrace_compute_ftrace): ...this. Rewritten to compute call
10123 (btrace_fetch, btrace_clear): Updated.
10124 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10125 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10126 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10127 (btrace_call_number, btrace_call_begin, btrace_call_end)
10128 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10129 (btrace_find_function_by_number, btrace_set_insn_history)
10130 (btrace_set_call_history): New.
10131 * record-btrace.c (require_btrace): Use new btrace thread
10133 (record_btrace_info, btrace_insn_history)
10134 (record_btrace_insn_history, record_btrace_insn_history_range):
10135 Use new btrace thread info fields and new iterator.
10136 (btrace_func_history_src_line): Rename to ...
10137 (btrace_call_history_src_line): ...this. Use new btrace
10138 thread info fields.
10139 (btrace_func_history): Rename to ...
10140 (btrace_call_history): ...this. Use new btrace thread info
10141 fields and new iterator.
10142 (record_btrace_call_history, record_btrace_call_history_range):
10143 Use new btrace thread info fields and new iterator.
10145 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10147 * frame.h (frame_id_build_unavailable_stack_special): New.
10148 * frame.c (frame_id_build_unavailable_stack_special): New.
10150 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10152 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10153 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10154 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10156 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10157 (i386_insn_is_jump, i386_jmp_p): New.
10158 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10159 insn_is_jump to gdbarch.
10160 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10161 * gdbarch.h: Regenerated.
10162 * gdbarch.c: Regenerated.
10163 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10164 (default_insn_is_jump): New.
10165 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10166 (default_insn_is_jump): New.
10168 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10170 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10172 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10173 (btrace_read_type) <btrace_read_new>: Change to ...
10174 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10176 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10178 * common/linux-btrace.c (linux_read_btrace): Free trace from
10179 previous iteration.
10181 2014-01-15 Doug Evans <dje@google.com>
10183 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10186 2014-01-15 Tom Tromey <tromey@redhat.com>
10188 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10189 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10190 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10191 (set_objfile_main_name): New function.
10192 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10193 language_of_main>: New fields.
10194 (set_objfile_main_name): Declare.
10195 * symtab.c (find_main_name): Loop over objfiles to find the main
10197 (set_main_name): Now static.
10198 (get_main_info): Add comment.
10199 * symtab.h (set_main_name): Don't declare.
10201 2014-01-15 Tom Tromey <tromey@redhat.com>
10203 * symtab.c (main_progspace_key): New global.
10204 (struct main_info): New.
10205 (name_of_main, language_of_main): Remove.
10206 (get_main_info, main_info_cleanup): New function.
10207 (set_main_name, main_name, main_language): Use get_main_info.
10208 (_initialize_symtab): Initialize main_progspace_key.
10210 2014-01-15 Tom Tromey <tromey@redhat.com>
10212 * dbxread.c (process_one_symbol): Update.
10213 * dwarf2read.c (read_partial_die): Update.
10214 * symfile.c (set_initial_language): Call main_language.
10215 * symtab.c (language_of_main): Now static.
10216 (set_main_name): Add 'lang' parameter.
10217 (find_main_name): Update.
10218 (main_language): New function.
10219 (symtab_observer_executable_changed): Update.
10220 * symtab.h (set_main_name): Update.
10221 (language_of_main): Remove.
10222 (main_language): Declare.
10224 2014-01-15 Tom Tromey <tromey@redhat.com>
10226 * symfile.c (init_entry_point_info): Use new "initialized" field.
10228 * objfiles.h (struct entry_point) <initialized>: New field.
10229 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10230 (struct objfile) <ei>: ...here. Remove.
10231 * objfiles.c (entry_point_address_query): Update.
10233 2014-01-15 Tom Tromey <tromey@redhat.com>
10235 * objfiles.c (entry_point_address_query): Relocate entry point
10237 (objfile_relocate1): Do not relocate entry point address.
10238 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10239 <the_bfd_section_index>: New field.
10240 * symfile.c (init_entry_point_info): Find the entry point's
10243 2014-01-15 Tom Tromey <tromey@redhat.com>
10245 * solib-frv.c (enable_break): Use entry_point_address_query.
10247 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10249 * NEWS: Add note on improved process record-replay on
10250 arm*-linux* targets.
10252 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10254 * arm-tdep.c (enum arm_record_result): New enum.
10255 (arm_record_unsupported_insn): New function.
10256 (arm_record_coproc_data_proc): Removed.
10257 (thumb2_record_ld_st_multiple): New function.
10258 (thumb2_record_ld_st_dual_ex_tbb): New function.
10259 (thumb2_record_data_proc_sreg_mimm): New function.
10260 (thumb2_record_ps_dest_generic): New function.
10261 (thumb2_record_branch_misc_cntrl): New function.
10262 (thumb2_record_str_single_data): New function.
10263 (thumb2_record_ld_mem_hints): New function.
10264 (thumb2_record_ld_word): New function.
10265 (thumb2_record_lmul_lmla_div): New function.
10266 (thumb2_record_decode_insn_handler): New function.
10267 (decode_insn): Add thumb32 instruction handlers.
10269 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10271 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10272 (struct arm_linux_record_tdep): Declare.
10273 (arm_canonicalize_syscall): New function.
10274 (arm_all_but_pc_registers_record): New function.
10275 (arm_linux_syscall_record): New function.
10276 (arm_linux_init_abi): Add syscall recording constructs.
10277 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10278 decoding. (arm_record_coproc_data_proc): Update arm syscall
10280 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10281 <arm_syscall_record>: New field.
10282 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10285 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10287 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10288 register for push instruction recording.
10290 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10292 * arm-tdep.c (thumb_record_misc): Update to correct logical
10293 error while recording ldm, ldmia and pop instructions.
10295 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10297 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10299 2014-01-15 Pedro Alves <palves@redhat.com>
10301 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10302 (go32_resume, go32_fetch_registers, store_register)
10303 (go32_store_registers, go32_prepare_to_store)
10304 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10305 (go32_create_inferior, go32_can_run, go32_terminal_init)
10306 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10309 2014-01-15 Tom Tromey <tromey@redhat.com>
10311 * target.h (async_callback_ftype): New typedef.
10312 (struct target_ops) <to_async>: Use it.
10314 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10316 * python/py-value.c (get_field_type): Remove unnecessary curly
10317 braces for single-statement if block.
10319 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10321 * python/py-type.c (convert_field): Add missing empty line
10322 after declarations.
10324 2014-01-14 Doug Evans <dje@google.com>
10326 * symfile.h (expand_symtabs_matching): Renamed from
10327 expand_partial_symbol_names. Update prototype.
10328 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10329 * symfile.c (expand_symtabs_matching): Renamed from
10330 expand_partial_symbol_names. New args file_matcher, kind.
10331 Rename arg fun to symbol_matcher.
10332 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10333 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10334 ada_expand_partial_symbol_name.
10335 (ada_make_symbol_completion_list): Update to call
10336 expand_symtabs_matching.
10337 (ada_add_global_exceptions): Call expand_symtabs_matching.
10338 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10339 call map_symbol_filenames.
10340 * symtab.c (sources_info): Update to call map_symbol_filenames.
10341 (search_symbols): Call expand_symtabs_matching.
10342 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10343 (default_make_symbol_completion_list_break_on): Update to call
10344 expand_symtabs_matching.
10345 (make_source_files_completion_list): Update to call
10346 map_symbol_filenames.
10348 2014-01-14 Doug Evans <dje@google.com>
10350 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10351 (expand_symtabs_symbol_matcher_ftype): New typedef.
10352 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10353 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10354 * symfile.c (expand_partial_symbol_names): Update to use
10355 expand_symtabs_symbol_matcher_ftype.
10356 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10357 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10358 Arg name_matcher renamed to symbol_matcher.
10359 * psymtab.c (recursively_search_psymtabs): Update to use
10360 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10362 (expand_symtabs_matching_via_partial): Update to use
10363 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10364 Arg name_matcher renamed to symbol_matcher.
10366 2014-01-14 Doug Evans <dje@google.com>
10368 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10369 (map_partial_symbol_filenames): Ditto.
10370 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10371 (map_partial_symbol_filenames): Ditto.
10372 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10373 (map_partial_symbol_filenames): Ditto.
10374 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10375 (map_partial_symbol_filenames): Ditto.
10376 * symtab.c: Delete #include "psymtab.h".
10378 2014-01-14 Pedro Alves <palves@redhat.com>
10379 Tom Tromey <tromey@redhat.com>
10381 * infrun.c (use_displaced_stepping): Use find_record_target
10382 instead of RECORD_IS_USED.
10383 (adjust_pc_after_break): Use record_full_is_used instead of
10385 * record-btrace.c (record_btrace_open): Call record_preopen
10386 instead of checking RECORD_IS_USED.
10387 * record-full.c (record_full_shortname)
10388 (record_full_core_shortname): New globals.
10389 (record_full_is_used): New function.
10390 (find_full_open): Call record_preopen instead of checking
10392 (init_record_full_ops): Set the target's shortname to
10393 record_full_shortname.
10394 (init_record_full_core_ops): Set the target's shortname to
10395 record_full_core_shortname.
10396 * record-full.h (record_full_is_used): Declare.
10397 * record.c (find_record_target): Make extern.
10398 (record_preopen): New function.
10399 * record.h (RECORD_IS_USED): Delete macro.
10400 (find_record_target, record_preopen): Declare functions.
10402 2014-01-14 Yao Qi <yao@codesourcery.com>
10404 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10405 'len''s type to ULONGEST.
10406 (core_xfer_shared_libraries_aix): Likewise.
10407 * gdbarch.c, gdbarch.h: Regenerated.
10408 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10409 Change type of 'len' to ULONGEST.
10410 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10411 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10413 2014-01-14 Yao Qi <yao@codesourcery.com>
10415 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10416 type of 'len' to ULONGEST.
10417 (linux_xfer_osdata_processgroups): Likewise.
10418 (linux_xfer_osdata_threads): Likewise.
10419 (linux_xfer_osdata_fds): Likewise.
10420 (linux_xfer_osdata_isockets): Likewise.
10421 (linux_xfer_osdata_shm): Likewise.
10422 (linux_xfer_osdata_sem): Likewise.
10423 (linux_xfer_osdata_msg): Likewise.
10424 (linux_common_xfer_osdata): Likewise.
10425 (struct osdata_type) <getter>: Likewise.
10426 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10429 2014-01-14 Yao Qi <yao@codesourcery.com>
10431 * target.h (target_xfer_partial_ftype): Update.
10432 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10434 * aix-thread.c (aix_thread_xfer_partial): Change type of
10435 argument 'len' to ULONGEST.
10436 * auxv.c (procfs_xfer_auxv): Likewise.
10437 (ld_so_xfer_auxv): Likewise.
10438 (memory_xfer_auxv): Likewise.
10439 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10440 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10441 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10442 * corelow.c (core_xfer_partial): Likewise.
10443 * ctf.c (ctf_xfer_partial): Likewise.
10444 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10446 (darwin_read_dyld_info): Likewise.
10447 (darwin_xfer_partial): Likewise.
10448 * exec.c (section_table_xfer_memory_partial): Likewise.
10449 (exec_xfer_partial): Likewise.
10450 * exec.h (section_table_xfer_memory_partial): Update
10452 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10453 instead of plongest.
10454 (gnu_xfer_partial): Likewise.
10455 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10456 (ia64_hpux_xfer_solib_got): Likewise.
10457 (ia64_hpux_xfer_partial): Likewise.
10458 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10459 * inf-ptrace.c (inf_ptrace_xfer_partial):
10460 * inf-ttrace.c (inf_ttrace_xfer_partial):
10461 * linux-nat.c (linux_xfer_siginfo): Likewise.
10462 (linux_nat_xfer_partial): Likewise.
10463 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10464 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10465 * monitor.c (monitor_xfer_memory): Likewise.
10466 (monitor_xfer_partial): Likewise.
10467 * procfs.c (procfs_xfer_partial): Likewise.
10468 * record-full.c (record_full_xfer_partial): Likewise.
10469 (record_full_core_xfer_partial): Likewise.
10470 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10471 instead of plongest.
10472 (gdbsim_xfer_partial): Likewise.
10473 * remote.c (remote_xfer_partial): Likewise.
10474 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10475 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10477 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10478 (rs6000_xfer_shared_libraries): Likewise.
10479 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10480 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10481 (sparc_xfer_partial): Likewise.
10482 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10483 (spu_xfer_partial): Likewise.
10484 * spu-multiarch.c (spu_xfer_partial): Likewise.
10485 * target.c (target_read_live_memory): Likewise.
10486 (memory_xfer_live_readonly_partial): Likewise.
10487 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10488 (target_xfer_partial, default_xfer_partial): Likewise.
10489 (current_xfer_partial): Likewise.
10490 * tracepoint.c (tfile_xfer_partial): Likewise.
10491 * windows-nat.c (windows_xfer_memory): Likewise. Call
10492 pulongest instead of plongest.
10493 (windows_xfer_partial): Likewise.
10494 (windows_xfer_shared_libraries): Likewise.
10496 2014-01-14 Yao Qi <yao@codesourcery.com>
10498 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10499 target_xfer_partial_ftype.
10501 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10505 * valops.c (value_struct_elt_bitpos): New function
10506 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10507 object to 'None' if the field name is an empty string ("").
10508 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10509 attribute to look for a field when 'name' is 'None'.
10510 (get_field_type): New function
10512 2014-01-13 Doug Evans <dje@google.com>
10515 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10516 (try_open_dwop_file): Ditto.
10517 * gdb_bfd.c: #include "vec.h".
10518 (bfdp): New typedef.
10519 (struct gdb_bfd_data): New member included_bfds.
10520 (gdb_bfd_unref): Unref all included bfds.
10521 (gdb_bfd_record_inclusion): New function.
10522 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10524 2014-01-13 Tom Tromey <tromey@redhat.com>
10526 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10528 2014-01-13 Tom Tromey <tromey@redhat.com>
10530 * defs.h (use_windows): Remove.
10531 * gdb.c (main): Update.
10532 * main.c (captured_main, gdb_main): Update.
10533 * main.h (struct captured_main_args) <use_windows>: Remove.
10534 * top.c (use_windows): Remove.
10536 2014-01-13 Tom Tromey <tromey@redhat.com>
10538 * defs.h (deprecated_flush_hook): Remove.
10540 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10543 * linux-thread-db.c (try_thread_db_load): Add parameter
10544 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10545 (try_thread_db_load_from_pdir_1): Move it there from here.
10546 (try_thread_db_load_from_sdir): Update caller.
10547 (try_thread_db_load_from_dir): Move it there from here.
10549 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10551 * regformats/regdat.sh: Always rewrite the register file.
10553 2014-01-13 Pedro Alves <palves@redhat.com>
10555 * Makefile.in (CHECK_HEADERS): New variable.
10556 (check-headers:): New rule.
10558 2014-01-13 Tom Tromey <tromey@redhat.com>
10560 * cli/cli-setshow.c (do_set_command): Update.
10561 * defs.h (deprecated_set_hook): Remove.
10562 * top.c (deprecated_set_hook): Remove.
10564 2014-01-13 Pedro Alves <palves@redhat.com>
10566 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10567 the tracepoint if the PC is a pseudo-register.
10569 2014-01-13 Tom Tromey <tromey@redhat.com>
10571 * defs.h (XCALLOC): Remove.
10572 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10573 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10574 * dwarf2loc.c (allocate_piece_closure): Likewise.
10575 * elfread.c (elf_symfile_segments): Likewise.
10576 (elf_symfile_segments): Likewise.
10577 * gdbtypes.c (copy_type_recursive): Likewise.
10578 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10579 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10580 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10582 * mt-tdep.c (mt_gdbarch_init): Likewise.
10583 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10585 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10586 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10587 * registry.c (registry_alloc_data): Likewise.
10588 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10589 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10590 * serial.c (serial_fdopen_ops): Likewise.
10591 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10593 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10594 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10597 2014-01-13 Tom Tromey <tromey@redhat.com>
10599 * defs.h (XMALLOC): Remove.
10600 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10601 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10602 * cli-out.c (struct ui_out *): Likewise.
10603 * cli/cli-dump.c (add_dump_command): Likewise.
10604 (add_dump_command): Likewise.
10605 * complaints.c (get_complaints): Likewise.
10606 (find_complaint): Likewise.
10607 * dwarf2-frame.c (execute_cfa_program): Likewise.
10608 * dwarf2read.c (abbrev_table_read_table): Likewise.
10609 * gdbarch.sh: Likewise.
10610 * gdbarch.c: Rebuild.
10611 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10612 * interps.c (interp_new): Likewise.
10613 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10614 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10615 * mi/mi-console.c (mi_console_file_new): Likewise.
10616 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10617 * mi/mi-out.c (mi_out_new): Likewise.
10618 * mi/mi-parse.c (mi_parse): Likewise.
10619 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10620 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10621 * observer.c (xalloc_observer_list_node): Likewise.
10622 * regcache.c (regcache_xmalloc_1): Likewise.
10623 * reggroups.c (reggroup_new): Likewise.
10624 (_initialize_reggroup): Likewise.
10625 * registry.c (register_data_with_cleanup): Likewise.
10626 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10627 * ser-base.c (serial_ttystate): Likewise.
10628 * ser-mingw.c (make_pipe_state): Likewise.
10629 * ser-pipe.c (pipe_open): Likewise.
10630 * serial.c (serial_open): Likewise.
10631 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10632 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10633 (tui_alloc_win_info): Likewise.
10634 (tui_add_content_elements): Likewise.
10635 * tui/tui-file.c (tui_file_new): Likewise.
10636 * tui/tui-out.c (tui_out_new): Likewise.
10637 * ui-file.c (mem_file_new): Likewise.
10638 * ui-out.c (push_level): Likewise.
10639 (make_cleanup_ui_out_end): Likewise.
10640 (append_header_to_list): Likewise.
10641 (ui_out_new): Likewise.
10642 * user-regs.c (user_reg_add_builtin): Likewise.
10644 2014-01-13 Tom Tromey <tromey@redhat.com>
10646 * defs.h (XZALLOC): Remove.
10647 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10648 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10649 (get_ada_tasks_inferior_data): Likewise.
10650 * auto-load.c (get_auto_load_pspace_data): Likewise.
10651 * auxv.c (get_auxv_inferior_data): Likewise.
10652 * bfd-target.c (target_bfd_reopen): Likewise.
10653 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10654 (deprecated_insert_raw_breakpoint): Likewise.
10655 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10656 * corelow.c (core_open): Likewise.
10657 * darwin-nat.c (darwin_check_new_threads): Likewise.
10658 (darwin_attach_pid): Likewise.
10659 * dummy-frame.c (dummy_frame_push): Likewise.
10660 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10661 * dwarf2loc.c (allocate_piece_closure): Likewise.
10662 * elfread.c (elf_symfile_segments): Likewise.
10663 * eval.c (ptrmath_type_p): Likewise.
10664 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10665 * gdbtypes.c (alloc_type_arch): Likewise.
10666 (alloc_type_instance): Likewise.
10667 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10668 * inf-child.c (inf_child_can_use_agent): Likewise.
10669 * inflow.c (get_inflow_inferior_data): Likewise.
10670 * infrun.c (save_infcall_suspend_state): Likewise.
10671 * jit.c (jit_reader_load): Likewise.
10672 (get_jit_objfile_data): Likewise.
10673 (get_jit_program_space_data): Likewise.
10674 (jit_object_open_impl): Likewise.
10675 (jit_symtab_open_impl): Likewise.
10676 (jit_block_open_impl): Likewise.
10677 (jit_frame_sniffer): Likewise.
10678 * linux-fork.c (add_fork): Likewise.
10679 * maint.c (make_command_stats_cleanup): Likewise.
10680 * objfiles.c (get_objfile_pspace_data): Likewise.
10681 * opencl-lang.c (struct lval_closure): Likewise.
10682 * osdata.c (osdata_start_osdata): Likewise.
10683 * progspace.c (new_address_space): Likewise.
10684 (add_program_space): Likewise.
10685 * remote-sim.c (get_sim_inferior_data): Likewise.
10686 * sh-tdep.c (sh_gdbarch_init): Likewise.
10687 * skip.c (Ignore): Likewise.
10688 (skip_delete_command): Likewise.
10689 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10690 (library_list_start_library): Likewise.
10691 (solib_aix_current_sos): Likewise.
10692 * solib-darwin.c (get_darwin_info): Likewise.
10693 (darwin_current_sos): Likewise.
10694 * solib-dsbt.c (get_dsbt_info): Likewise.
10695 * solib-ia64-hpux.c (new_so_list): Likewise.
10696 (ia64_hpux_get_solib_linkage_addr): Likewise.
10697 * solib-spu.c (append_ocl_sos): Likewise.
10698 (spu_current_sos): Likewise.
10699 * solib-svr4.c (get_svr4_info): Likewise.
10700 (svr4_keep_data_in_core): Likewise.
10701 (library_list_start_library): Likewise.
10702 (svr4_default_sos): Likewise.
10703 (svr4_read_so_list): Likewise.
10704 * solib-target.c (library_list_start_library): Likewise.
10705 (solib_target_current_sos): Likewise.
10706 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10707 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10708 * symfile.c (default_symfile_segments): Likewise.
10709 * target-descriptions.c (tdesc_data_init): Likewise.
10710 (tdesc_create_reg): Likewise.
10711 (struct tdesc_type *): Likewise.
10712 (tdesc_create_vector): Likewise.
10713 (tdesc_set_struct_size): Likewise.
10714 (struct tdesc_type *): Likewise.
10715 (tdesc_free_feature): Likewise.
10716 (tdesc_create_feature): Likewise.
10717 * windows-nat.c (windows_add_thread): Likewise.
10718 (windows_make_so): Likewise.
10719 * xml-support.c (gdb_xml_body_text): Likewise.
10720 (gdb_xml_create_parser_and_cleanup): Likewise.
10721 (xml_process_xincludes): Likewise.
10722 * xml-syscall.c (allocate_syscalls_info): Likewise.
10723 (syscall_create_syscall_desc): Likewise.
10725 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10727 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10728 function, with code from i386_stap_parse_special_token.
10729 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10730 (i386_stap_parse_special_token): Move code to the two functions
10731 above; simplify it.
10733 2014-01-09 Pedro Alves <palves@redhat.com>
10734 Hui Zhu <hui@codesourcery.com>
10737 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10738 bp_err_string. Don't mark the location shlib_disabled if the
10739 error thrown wasn't a generic or memory error. Catch errors
10740 thrown while inserting breakpoints in overlayed code. Output
10741 error message of software breakpoints.
10742 * remote.c (remote_insert_breakpoint): If this breakpoint has
10743 target-side commands but this stub doesn't support Z0 packets,
10744 throw NOT_SUPPORTED_ERROR error.
10745 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10746 * target.h (target_insert_breakpoint): Extend comment.
10747 (target_insert_hw_breakpoint): Add comment.
10749 2014-01-08 Pedro Alves <palves@redhat.com>
10751 * remote.c (remote_add_thread): Add threads silently if starting
10753 (remote_notice_new_inferior): If in all-stop, and starting up,
10754 don't call notice_new_inferior.
10755 (get_current_thread): New function, factored out from ...
10756 (add_current_inferior_and_thread): ... this. Adjust.
10757 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10758 found any thread, then select the remote's current thread as GDB's
10759 current thread too.
10761 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10763 * NEWS: Create a new section for the next release branch.
10764 Rename the section of the current branch, now that it has
10767 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10769 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10770 * version.in: Bump version to 7.7.50.DATE-cvs.
10772 2014-01-08 Yao Qi <yao@codesourcery.com>
10774 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10775 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10776 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10778 2014-01-08 Yao Qi <yao@codesourcery.com>
10780 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10781 return value of bfd_get_filename to symbol_file_add_from_bfd.
10783 2014-01-08 Pierre Muller <muller@sourceware.org>
10786 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10787 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10788 to prim_record_mininal_symbol_and_info.
10789 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10790 in call to prim_record_minimal_symbol_and_info.
10791 (read_pe_exported_syms): Set index field of section_data.
10793 2014-01-07 Andrew Pinski <apinski@cavium.com>
10795 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10796 * features/aarch64.c: Regenerate.
10798 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10800 * target.c (return_null): Define.
10801 (update_current_target): Use it instead of return_zero for
10802 functions that return a pointer.
10804 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10806 * source.c (add_path): Fix check for duplicated paths in the previously
10809 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10811 * ada-lang.c: Remove duplicated include statements.
10812 * alphabsd-nat.c: Ditto.
10813 * amd64-darwin-tdep.c: Ditto.
10814 * amd64fbsd-nat.c: Ditto.
10815 * auto-load.c: Ditto.
10817 * breakpoint.c: Ditto.
10818 * dbxread.c: Ditto.
10819 * fork-child.c: Ditto.
10820 * gdb_usleep.c: Ditto.
10821 * i386-darwin-tdep.c: Ditto.
10822 * i386fbsd-nat.c: Ditto.
10824 * inferior.c: Ditto.
10825 * jv-lang.c: Ditto.
10826 * linux-nat.c: Ditto.
10827 * linux-tdep.c: Ditto.
10828 * m68kbsd-nat.c: Ditto.
10829 * m68klinux-nat.c: Ditto.
10830 * microblaze-tdep.c: Ditto.
10831 * mips-linux-tdep.c: Ditto.
10832 * mn10300-tdep.c: Ditto.
10833 * nto-tdep.c: Ditto.
10834 * opencl-lang.c: Ditto.
10836 * printcmd.c: Ditto.
10837 * regcache.c: Ditto.
10838 * remote-m32r-sdi.c: Ditto.
10840 * symfile.c: Ditto.
10842 * tilegx-linux-nat.c: Ditto.
10843 * tilegx-tdep.c: Ditto.
10844 * tracepoint.c: Ditto.
10846 * vaxbsd-nat.c: Ditto.
10847 * windows-nat.c: Ditto.
10848 * xtensa-tdep.c: Ditto.
10850 2014-01-07 Yao Qi <yao@codesourcery.com>
10852 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10854 2014-01-07 Yao Qi <yao@codesourcery.com>
10855 Joel Brobecker <brobecker@adacore.com>
10857 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10858 (pdc_write_regs): Likewise.
10859 (fetch_regs_kernel_thread): Likewise.
10860 (store_regs_kernel_thread): Likewise.
10862 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10864 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10865 tagged type objects to their actual type.
10867 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10869 * ada-valprint.c (print_field_values): Add "language" parameter.
10870 Update calls to print_field_values and print_variant_part.
10871 Pass new parameter "language" in call to val_print instead
10872 of "current_language". Replace call to ada_val_print by call
10874 (print_variant_part): Add "language" parameter.
10875 (ada_val_print_struct_union): Update call to print_field_values.
10877 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10879 * ada-valprint.c (ui_memcpy): Delete.
10880 (ada_print_floating): Update documentation. Add empty line
10881 between between function documentation and implementation.
10882 Delete variable "buffer". Use ui_file_xstrdup in place of
10883 ui_file_put. Minor adjustments following this change.
10885 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10887 * ada-valprint.c (ada_val_print_string): New function,
10888 extracted from ada_val_print_array.
10889 (ada_val_print_array): Replace extracted code by call
10890 to ada_val_print_string followed by a return. Move
10891 "else" branch to the function's top block.
10893 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10895 * ada-valprint.c (ada_val_print_array): Move implementation
10896 down. Rename parameter "offset" and "val" into "offset_aligned"
10897 and "original_value" respectively. Add parameter "offset".
10899 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10901 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10902 re-organizing the code. Change the "???" message printed
10903 when target type is a TYPE_CODE_UNDEF into
10904 "<ref to undefined type>".
10906 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10908 * ada-valprint.c (print_record): Delete, implementation inlined...
10909 (ada_val_print_struct_union): ... here. Remove call to
10910 ada_check_typedef in inlined implementation.
10912 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10914 * ada-valprint.c (ada_val_print_gnat_array): New function,
10915 extracted from ada_val_print_1;
10916 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10917 (ada_val_print_flt, ada_val_print_struct_union)
10918 (ada_val_print_ref): Likewise.
10919 (ada_val_print_1): Delete variables i and elttype.
10920 Replace extracted-out code by call to corresponding
10923 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10925 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10927 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10929 * ada-valprint.c (ada_val_print_1): Replace calls to
10930 ada_val_print_1 by calls to val_print.
10932 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10934 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10935 Update calls to self accordingly. Replace calls to c_val_print
10936 by calls to val_print.
10938 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10940 * ada-valprint.c (print_record): Delete declaration.
10941 (adjust_type_signedness, ada_val_print_1): Likewise.
10942 (ada_val_print): Move function implementation down.
10943 (print_variant_part, print_field_values, print_record):
10944 Move function implementation up.
10946 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10948 * python/py-type.c (typy_get_name): New function.
10949 (type_object_getset): Add entry for attribute "name".
10950 * NEWS: Add entry mentioning this new attribute.
10952 2014-01-07 Yao Qi <yao@codesourcery.com>
10954 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10957 2014-01-07 Yao Qi <yao@codesourcery.com>
10959 * gnu-nat.c (info_port_rights): Add qualifier const to
10962 2014-01-07 Yao Qi <yao@codesourcery.com>
10964 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10966 2014-01-07 Yao Qi <yao@codesourcery.com>
10968 * gnu-nat.c (make_inf) Update declaration.
10969 (make_inf): Make it static.
10970 (inf_set_traced): Likewise.
10971 (inf_port_to_thread, inf_task_died_status): Likewise.
10973 2014-01-07 Yao Qi <yao@codesourcery.com>
10975 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10977 2014-01-07 Yao Qi <yao@codesourcery.com>
10979 * gnu-nat.c (_initialize_gnu_nat): Declare.
10981 2014-01-07 Yao Qi <yao@codesourcery.com>
10983 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10985 (struct gdbarch_info) <byte_order>: Change type to
10987 <byte_order_for_code>: Likewise.
10988 * gdbarch.c, gdbarch.h: Regenerated.
10990 2014-01-06 Sasha Smundak <asmundak@google.com>
10992 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10994 2014-01-06 Tom Tromey <tromey@redhat.com>
10996 * doublest.c (convert_doublest_to_floatformat): Use const, not
10998 * somread.c (som_symtab_read): Likewise.
11000 2014-01-07 Hui Zhu <hui@codesourcery.com>
11002 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11003 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11004 (gdb_bfd_fopen): Ditto.
11005 (gdb_bfd_openr): Ditto.
11006 (gdb_bfd_openw): Ditto.
11007 (gdb_bfd_openr_iovec): Ditto.
11008 (gdb_bfd_fdopenr): Ditto.
11009 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11010 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11012 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11014 * symfile-mem.c (symbol_file_add_from_memory): Removed
11015 gdb_bfd_stash_filename.
11017 2014-01-03 Doug Evans <dje@google.com>
11019 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11022 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11024 Update year range in copyright notice of all files.
11026 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11028 * top.c (print_gdb_version): Set copyright year to 2014.
11030 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11032 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11034 For older changes see ChangeLog-2013.
11040 version-control: never