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