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