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