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