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