Guard a call to TYPE_TARGET_TYPE in gnuv3_pass_by_reference.
[external/binutils.git] / gdb / ChangeLog
1 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
2
3         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
4         on the arg type of a constructor only if it is of reference type.
5
6 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
7
8         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
9         accessors and constants from nios2 opcodes update.
10         (nios2_get_next_pc): Likewise.
11
12 2014-10-19  Doug Evans  <xdje42@gmail.com>
13
14         * gdbthread.h (set_running): Fix comment.
15         (set_executing, finish_thread_state): Fix comment.
16
17 2014-10-18  Doug Evans  <xdje42@gmail.com>
18
19         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
20
21 2014-10-17  Doug Evans  <dje@google.com>
22
23         * NEWS: Mention new event gdb.clear_objfiles.
24         * python/py-event.h (emit_clear_objfiles_event): Clear
25         * python/py-events.h (events_object): New member clear_objfiles.
26         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
27         event.
28         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
29         emit clear_objfiles event.
30         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
31         function.
32         (emit_clear_objfiles_event): New function.
33         (clear_objfiles): New event.
34         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
35         Declare.
36         * python/python.c (_initialize_python): Call
37         gdbpy_initialize_clear_objfiles_event.
38
39 2014-10-17  Doug Evans  <dje@google.com>
40
41         * NEWS: Mention new gdb.Objfile.progspace attribute.
42         * python/py-objfile.c (objfpy_get_progspace): New function.
43         (objfile_getset): New entry for "progspace".
44
45 2014-10-17  Pedro Alves  <palves@redhat.com>
46
47         PR gdb/17471
48         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
49         returns a copy of the input.
50         (run_command_1, continue_command, step_1, jump_command)
51         (signal_command, until_command, advance_command, finish_command)
52         (attach_command): Adjust and install a cleanup to free the
53         stripped args.
54
55 2014-10-17  Pedro Alves  <palves@redhat.com>
56
57         PR gdb/17300
58         * infcmd.c (continue_1): If continuing all threads in the
59         foreground, make sure the inferior's terminal settings are put in
60         effect.
61
62 2014-10-17  Pedro Alves  <palves@redhat.com>
63
64         PR gdb/17472
65         * annotate.c (annotate_breakpoints_invalid): Use
66         target_terminal_our_for_output instead of target_terminal_ours.
67         Give back the terminal to the target.
68         (annotate_frames_invalid): Likewise.
69
70 2014-10-17  Pedro Alves  <palves@redhat.com>
71
72         * target.c (enum terminal_state): New enum.
73         (terminal_state): New global.
74         (target_terminal_init): New function.
75         (target_terminal_inferior): Skip if inferior already owns the
76         terminal.
77         (target_terminal_ours, target_terminal_ours_for_output): New
78         functions.
79         * target.h (target_terminal_init): Convert to function prototype.
80         (target_terminal_ours_for_output): Convert to function prototype
81         and tweak comment.
82         (target_terminal_ours): Convert to function prototype and tweak
83         comment.
84         * windows-nat.c (do_initial_windows_stuff): Call
85         target_terminal_init instead of child_terminal_init_with_pgrp.
86
87 2014-10-17  Pedro Alves  <palves@redhat.com>
88
89         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
90         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
91         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
92         solib-osf.c.
93         * NEWS: Mention that support for alpha*-*-osf* has been removed.
94         * ada-lang.h [__alpha__ && __osf__]
95         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
96         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
97         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
98         GDB_OSABI_OSF1.
99         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
100         files.
101         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
102         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
103         * configure: Regenerate.
104         * configure.ac: Remove references to osf.
105         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
106         section.  Remove all other references to osf.
107         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
108         Remove all other references to osf.
109         * dec-thread.c: Delete file.
110         * defs.h (GDB_OSABI_OSF1): Delete.
111         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
112         defined.
113         * osabi.c (gdb_osabi_names): Delete "OSF/1".
114         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
115         Delete code.
116         (unconditionally_kill_inferior)
117         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
118         * solib-osf.c: Delete file.
119
120 2014-10-17  Pedro Alves  <palves@redhat.com>
121
122         * remote.c (clear_threads_listing_context): Move higher up, out of
123         the HAVE_LIBEXPAT guard.
124
125 2014-10-16  Tristan Gingold  <gingold@adacore.com>
126
127         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
128         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
129         on amd64.
130
131 2014-10-15  Pedro Alves  <palves@redhat.com>
132
133         * dec-thread.c (dec_thread_count_gdb_threads)
134         (dec_thread_add_gdb_thread): Delete.
135         (dec_thread_update_thread_list): Delete.
136         (dec_thread_find_new_threads): Rename to ...
137         (dec_thread_update_thread_list): ... this.  Delete GDB-size
138         threads that are no longer found in dec_thread_list.
139         (resync_thread_list): Delete.
140         (dec_thread_wait): Call dec_thread_update_thread_list instead of
141         resync_thread_list.
142
143 2014-10-15  Pedro Alves  <palves@redhat.com>
144
145         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
146         * remote.c (remote_update_thread_list): Skip calling prune_threads
147         if any thread listing method is supported, and instead walk over
148         the set of remote threads listed, deleting those that are not
149         found in GDB's thread list.
150
151 2014-10-15  Pedro Alves  <palves@redhat.com>
152
153         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
154         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
155         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
156         (bsd_uthread_target): Adjust.
157         * corelow.c (core_open): Adjust.
158         * dec-thread.c (dec_thread_find_new_threads): Update comment.
159         (dec_thread_update_thread_list): New function.
160         (init_dec_thread_ops): Adjust.
161         * gdbthread.h (prune_threads): New declaration.
162         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
163         (thread_db_update_thread_list): ... this.  Call prune_threads.
164         (init_thread_db_ops): Adjust.
165         * nto-procfs.c (procfs_find_new_threads): Rename to ...
166         (procfs_update_thread_list): ... this.  Call prune_threads.
167         (procfs_attach, procfs_create_inferior, init_procfs_targets):
168         Adjust.
169         * obsd-nat.c (obsd_find_new_threads): Rename to ...
170         (obsd_update_thread_list): ... this.  Call prune_threads.
171         (obsd_add_target): Adjust.
172         * procfs.c (procfs_target): Adjust.
173         (procfs_notice_thread): Update comment.
174         (procfs_find_new_threads): Rename to ...
175         (procfs_update_thread_list): ... this.  Call prune_threads.
176         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
177         comment.
178         (ravenscar_wait): Adjust.
179         (ravenscar_find_new_threads): Rename to ...
180         (ravenscar_update_thread_list): ... this.  Call prune_threads.
181         (init_ravenscar_thread_ops): Adjust.
182         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
183         (record_btrace_update_thread_list): ... this.  Adjust comment.
184         (init_record_btrace_ops): Adjust.
185         * remote.c (remote_threads_info): Rename to ...
186         (remote_update_thread_list): ... this.  Call prune_threads.
187         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
188         Adjust.
189         * sol-thread.c (check_for_thread_db): Adjust.
190         (sol_find_new_threads_callback): Rename to ...
191         (sol_update_thread_list_callback): ... this.
192         (sol_find_new_threads): Rename to ...
193         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
194         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
195         * target-delegates.c: Regenerate.
196         * target.c (target_find_new_threads): Rename to ...
197         (target_update_thread_list): ... this.
198         * target.h (struct target_ops): Rename to_find_new_threads field
199         to to_update_thread_list.
200         (target_find_new_threads): Rename to ...
201         (target_update_thread_list): ... this.
202         * thread.c (prune_threads): Make extern.
203         (update_thread_list): Adjust.
204
205 2014-10-15  Pedro Alves  <palves@redhat.com>
206
207         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
208         Add describing comment.  Return -1 if the qL packet is not
209         supported.
210         (struct thread_item, thread_item_t): Move higher up in
211         the file.  Add comments.
212         (struct threads_parsing_context): Move higher up in
213         the file, add comments, and remote to ...
214         (struct threads_listing_context): ... this.
215         (remote_newthread_step): Don't add the thread to GDB's thread
216         database here.  Instead push it to the thread_listing_context
217         list.
218         (remote_find_new_threads): Rename to ...
219         (remote_get_threads_with_ql): ... this.  Add target_ops and
220         targets_listing_context parameters.  Pass down context.
221         (start_thread): Adjust.
222         (clear_threads_parsing_context): Rename to ...
223         (clear_threads_listing_context): ... this.
224         (remote_get_threads_with_qxfer): New, with parts salvaged from old
225         remote_threads_info.
226         (remote_get_threads_with_qthreadinfo): Ditto.
227         (remote_threads_info): Reimplement.
228
229 2014-10-15  Pedro Alves  <palves@redhat.com>
230
231         * infrun.c (resume): Don't force displaced-stepping for all
232         single-steps on software single-stepping archs.
233
234 2014-10-15  Pedro Alves  <palves@redhat.com>
235
236         * breakpoint.c (single_step_breakpoints): Delete global.
237         (insert_single_step_breakpoint): Adjust to store the breakpoint
238         pointer in the current thread.
239         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
240         (cancel_single_step_breakpoints): Delete functions.
241         (breakpoint_has_location_inserted_here): Make extern.
242         (single_step_breakpoint_inserted_here_p): Adjust to walk the
243         breakpoint list.
244         * breakpoint.h (breakpoint_has_location_inserted_here): New
245         declaration.
246         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
247         (cancel_single_step_breakpoints): Remove declarations.
248         * gdbthread.h (struct thread_control_state)
249         <single_step_breakpoints>: New field.
250         (delete_single_step_breakpoints)
251         (thread_has_single_step_breakpoints_set)
252         (thread_has_single_step_breakpoint_here): New declarations.
253         * infrun.c (follow_exec): Also clear the single-step breakpoints.
254         (singlestep_breakpoints_inserted_p, singlestep_ptid)
255         (singlestep_pc): Delete globals.
256         (infrun_thread_ptid_changed): Remove references to removed
257         globals.
258         (resume_cleanups): Delete the current thread's single-step
259         breakpoints.
260         (maybe_software_singlestep): Remove references to removed globals.
261         (resume): Adjust to use thread_has_single_step_breakpoints_set and
262         delete_single_step_breakpoints.
263         (init_wait_for_inferior): Remove references to removed globals.
264         (delete_thread_infrun_breakpoints): Delete the thread's
265         single-step breakpoints too.
266         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
267         single-step breakpoints here.
268         (delete_stopped_threads_single_step_breakpoints): New function.
269         (adjust_pc_after_break): Adjust to use
270         thread_has_single_step_breakpoints_set.
271         (handle_inferior_event): Remove references to removed globals.
272         Use delete_stopped_threads_single_step_breakpoints.
273         (handle_signal_stop): Adjust to per-thread single-step
274         breakpoints.  Swap test order to do cheaper tests first.
275         (switch_back_to_stepped_thread): Extend debug output.  Remove
276         references to removed globals.
277         * record-full.c (record_full_wait_1): Adjust to per-thread
278         single-step breakpoints.
279         * thread.c (delete_single_step_breakpoints)
280         (thread_has_single_step_breakpoints_set)
281         (thread_has_single_step_breakpoint_here): New functions.
282         (clear_thread_inferior_resources): Also delete the thread's
283         single-step breakpoints.
284
285 2014-10-15  Pedro Alves  <palves@redhat.com>
286
287         * thread.c (delete_thread_breakpoint): New function.
288         (delete_step_resume_breakpoint)
289         (delete_exception_resume_breakpoint): Use it.
290         (delete_at_next_stop): New function.
291         (clear_thread_inferior_resources): Use delete_at_next_stop.
292
293 2014-10-15  Pedro Alves  <palves@redhat.com>
294
295         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
296         (breakpoint_inserted_here_p): ... here.  Remove special case for
297         software single-step breakpoints.
298         (find_non_raw_software_breakpoint_inserted_here): Inline ...
299         (software_breakpoint_inserted_here_p): ... here.  Remove special
300         case for software single-step breakpoints.
301         (bp_target_info_copy_insertion_state)
302         (deprecated_insert_raw_breakpoint)
303         (deprecated_remove_raw_breakpoint): Delete functions.
304         * breakpoint.h (deprecated_insert_raw_breakpoint)
305         (deprecated_remove_raw_breakpoint): Remove declarations.
306
307 2014-10-15  Pedro Alves  <palves@redhat.com>
308
309         PR breakpoints/9649
310         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
311         Delete array globals.
312         (single_step_breakpoints): New global.
313         (breakpoint_xfer_memory): Remove special handling for single-step
314         breakpoints.
315         (update_breakpoints_after_exec): Delete bp_single_step
316         breakpoints.
317         (detach_breakpoints): Remove special handling for single-step
318         breakpoints.
319         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
320         (bpstat_stop_status): Add comment.
321         (bpstat_what, bptype_string, print_one_breakpoint_location)
322         (adjust_breakpoint_address, init_bp_location): Handle
323         bp_single_step.
324         (new_single_step_breakpoint): New function.
325         (set_momentary_breakpoint, bkpt_remove_location): Remove special
326         handling for single-step breakpoints.
327         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
328         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
329         Rewrite.
330         (detach_single_step_breakpoints, find_single_step_breakpoint):
331         Delete functions.
332         (breakpoint_has_location_inserted_here): New function.
333         (single_step_breakpoint_inserted_here_p): Rewrite.
334         * breakpoint.h: Remove FIXME.
335         (enum bptype) <bp_single_step>: New enum value.
336         (insert_single_step_breakpoint): Update comment.
337         * infrun.c (resume_cleanups)
338         (delete_step_thread_step_resume_breakpoint): Remove single-step
339         breakpoints.
340         (fetch_inferior_event): Install a cleanup that removes infrun
341         breakpoints.
342         (switch_back_to_stepped_thread) <expect thread advanced also>:
343         Clear step-over info.
344
345 2014-10-15  Pedro Alves  <palves@redhat.com>
346
347         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
348         (delete_thread_infrun_breakpoints): New function, with parts
349         salvaged from delete_step_resume_breakpoint_callback.
350         (delete_step_thread_step_resume_breakpoint): Delete.
351         (for_each_just_stopped_thread_callback_func): New typedef.
352         (for_each_just_stopped_thread): New function.
353         (delete_just_stopped_threads_infrun_breakpoints): New function.
354         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
355         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
356         ... this.  Adjust.
357         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
358
359 2014-10-15  Pedro Alves  <palves@redhat.com>
360
361         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
362         trying to step past a non-steppable watchpoint.
363         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
364         field.
365         * infrun.c (struct step_over_info): Add new field
366         'nonsteppable_watchpoint_p' and adjust comments.
367         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
368         Adjust.
369         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
370         (stepping_past_nonsteppable_watchpoint): New function.
371         (step_over_info_valid_p): Also return true if stepping past a
372         nonsteppable watchpoint.
373         (proceed): Adjust call to set_step_over_info.  Remove reference to
374         init_infwait_state.
375         (init_wait_for_inferior): Remove reference to init_infwait_state.
376         (waiton_ptid): Delete global.
377         (struct execution_control_state)
378         <stepped_after_stopped_by_watchpoint>: Delete field.
379         (wait_for_inferior, fetch_inferior_event): Always pass
380         minus_one_ptid to target_wait.
381         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
382         field.
383         (init_infwait_state): Delete function.
384         (handle_inferior_event): Remove infwait_state handling.
385         (handle_signal_stop) <watchpoints handling>: Adjust after
386         stepped_after_stopped_by_watchpoint removal.  Don't remove
387         breakpoints here nor set infwait_state.  Set the thread's
388         stepping_over_watchpoint flag, and call keep_going instead.
389         (keep_going): Handle stepping_over_watchpoint.  Adjust
390         set_step_over_info calls.
391         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
392         function.
393
394 2014-10-15  Pedro Alves  <palves@redhat.com>
395
396         * infrun.c (step_over_info_valid_p): New function.
397         (resume): Use step_over_info_valid_p instead of checking the
398         threads's trap_expected flag.
399
400 2014-10-15  Doug Evans  <dje@google.com>
401             Walfred Tedeschi  <walfred.tedeschi@intel.com>
402
403         PR python/17364
404         * python/lib/gdb/__init__.py (packages): Add "printer".
405         * python/lib/gdb/command/bound_registers.py: Moved to ...
406         * python/lib/gdb/printer/bound_registers.py: ... here.
407         Add printer to global set of builtin printers.  Rename printer from
408         "bound" to "mpx_bound128".
409         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
410         registered as global "builtin" printer.
411         (add_builtin_pretty_printer): New function.
412         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
413         gdb/printer/__init__.py.
414
415 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
416
417         * Makefile.in (SFILES): Remove d-support.c.
418         (COMMON_OBS): Remove d-support.o.
419         * d-lang.h (d_parse_symbol): Remove declaration.
420         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
421         * d-support.c: Remove file.
422
423 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
424
425         * gdb/infrun.c (process_event_stop_test): Apply
426         gdbarch_addr_bits_remove to longjmp resume address.
427
428 2014-10-15  Pedro Alves  <palves@redhat.com>
429
430         * regformats/microblaze.dat: Delete file.
431
432 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
433
434         * features/Makefile (microblaze-expedite): Replace pc with rpc.
435         * regformats/microblaze-with-stack-protect.dat: Regenerate.
436
437 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
438
439         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
440         as non-trivial.
441
442 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
443
444         PR c++/13403
445         PR c++/15154
446         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
447         with qualified args.
448
449 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
450
451         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
452         of the case where the second operand is a pointer.
453         <BINOP_SUB>: Likewise.
454
455 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
456
457         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
458         only if it is not NULL.
459         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
460         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
461         (struct probe_ops) <clear_semaphore>: Likewise.
462         * tracepoint.c (start_tracing): Call set_semaphore only if it is
463         not NULL.
464         (stop_tracing): Likewise, for clear_semaphore.
465
466 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
467
468         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
469         using language_c, instead of current_language.
470
471 2014-10-13  Doug Evans  <dje@google.com>
472
473         * python/py-objfile.c (objfpy_initialize): New function.
474         (objfpy_new, objfile_to_objfile_object): Call it.
475         * python/py-progspace.c (pspy_initialize): New function.
476         (pspy_new, pspace_to_pspace_object): Call it.
477
478 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
479             Jan Kratochvil  <jan.kratochvil@redhat.com>
480
481         Fix "save breakpoints" for "catch" command.
482         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
483         newline.
484
485 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
486
487         Fix "save breakpoints" for "disable $bpnum" command.
488         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
489
490 2014-10-10  Pedro Alves  <palves@redhat.com>
491
492         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
493         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
494         (HFILES_NO_SRCDIR): Remove solib-irix.h.
495         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
496         and been removed.
497         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
498         * configure.ac: Remove references to IRIX.
499         * configure.host: Add *-*-irix* to the obsolete hosts section.
500         Remove all other references to irix.
501         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
502         Delete files.
503
504 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
505
506         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
507         isn't valid, release the tdesc arch data and return NULL.
508
509 2014-10-10  Pedro Alves  <palves@redhat.com>
510
511         * linux-tdep.c: Include observer.h.
512         (linux_inferior_data): New global.
513         (struct linux_info): New structure.
514         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
515         (get_linux_inferior_data): New functions.
516         (linux_vsyscall_range): Rename to ...
517         (linux_vsyscall_range_raw): ... this.
518         (linux_vsyscall_range): New function; handles caching.
519         (_initialize_linux_tdep): Register linux_inferior_data.  Install
520         inferior_exit and inferior_appeared observers.
521
522 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
523             Pedro Alves  <palves@redhat.com>
524
525         PR symtab/14466
526         * solib-svr4.c (svr4_read_so_list): Rename to ...
527         (svr4_current_sos_1): ... this and change the function comment.
528         (svr4_current_sos): New function.
529
530 2014-10-10  Pedro Alves  <palves@redhat.com>
531
532         * arch-utils.c (default_vsyscall_range): New function.
533         * arch-utils.h (default_vsyscall_range): New declaration.
534         * gdbarch.sh (vsyscall_range): New hook.
535         * gdbarch.h, gdbarch.c: Regenerate.
536         * linux-tdep.c (linux_vsyscall_range): New function.
537         (linux_init_abi): Install linux_vsyscall_range as
538         vsyscall_range gdbarch hook.
539         * memrange.c (address_in_mem_range): New function.
540         * memrange.h (address_in_mem_range): New declaration.
541         * symfile-mem.c (find_vdso_size): Delete function.
542         (add_vsyscall_page): Use gdbarch_vsyscall_range.
543
544 2014-10-10  Pedro Alves  <palves@redhat.com>
545
546         * infrun.c (normal_stop): Fix typo in comment.
547
548 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
549
550         PR tdep/9390
551         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
552         typo when using logical AND to determine instruction type.
553
554 2014-10-09  Yao Qi  <yao@codesourcery.com>
555
556         * infrun.c (handle_signal_stop): Remove local variable
557         'printed'.
558
559 2014-10-08  Stan Shebs  <stan@codesourcery.com>
560
561         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
562
563 2014-10-08  Gary Benson  <gbenson@redhat.com>
564
565         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
566
567 2014-10-08  Gary Benson  <gbenson@redhat.com>
568
569         * common/common-defs.h: Include common-exceptions.h.
570         * exceptions.h: Do not include common-exceptions.h.
571
572 2014-10-08  Gary Benson  <gbenson@redhat.com>
573
574         * common/common-defs.h: Include cleanups.h.
575         * common/common-exceptions.c: Do not include cleanups.h.
576         * utils.h: Likewise.
577
578 2014-10-08  Gary Benson  <gbenson@redhat.com>
579
580         * ada-lang.c: Do not include exceptions.h.
581         * ada-valprint.c: Likewise.
582         * amd64-tdep.c: Likewise.
583         * auto-load.c: Likewise.
584         * block.c: Likewise.
585         * break-catch-throw.c: Likewise.
586         * breakpoint.c: Likewise.
587         * btrace.c: Likewise.
588         * c-lang.c: Likewise.
589         * cli/cli-cmds.c: Likewise.
590         * cli/cli-interp.c: Likewise.
591         * cli/cli-script.c: Likewise.
592         * completer.c: Likewise.
593         * corefile.c: Likewise.
594         * corelow.c: Likewise.
595         * cp-abi.c: Likewise.
596         * cp-support.c: Likewise.
597         * cp-valprint.c: Likewise.
598         * darwin-nat.c: Likewise.
599         * dwarf2-frame-tailcall.c: Likewise.
600         * dwarf2-frame.c: Likewise.
601         * dwarf2loc.c: Likewise.
602         * dwarf2read.c: Likewise.
603         * eval.c: Likewise.
604         * event-loop.c: Likewise.
605         * event-top.c: Likewise.
606         * f-valprint.c: Likewise.
607         * frame-unwind.c: Likewise.
608         * frame.c: Likewise.
609         * gdbtypes.c: Likewise.
610         * gnu-v2-abi.c: Likewise.
611         * gnu-v3-abi.c: Likewise.
612         * guile/scm-auto-load.c: Likewise.
613         * guile/scm-breakpoint.c: Likewise.
614         * guile/scm-cmd.c: Likewise.
615         * guile/scm-frame.c: Likewise.
616         * guile/scm-lazy-string.c: Likewise.
617         * guile/scm-param.c: Likewise.
618         * guile/scm-symbol.c: Likewise.
619         * guile/scm-type.c: Likewise.
620         * hppa-hpux-tdep.c: Likewise.
621         * i386-tdep.c: Likewise.
622         * inf-loop.c: Likewise.
623         * infcall.c: Likewise.
624         * infcmd.c: Likewise.
625         * infrun.c: Likewise.
626         * interps.c: Likewise.
627         * interps.h: Likewise.
628         * jit.c: Likewise.
629         * linespec.c: Likewise.
630         * linux-nat.c: Likewise.
631         * linux-thread-db.c: Likewise.
632         * m32r-rom.c: Likewise.
633         * main.c: Likewise.
634         * memory-map.c: Likewise.
635         * mi/mi-cmd-break.c: Likewise.
636         * mi/mi-cmd-stack.c: Likewise.
637         * mi/mi-interp.c: Likewise.
638         * mi/mi-main.c: Likewise.
639         * monitor.c: Likewise.
640         * nto-procfs.c: Likewise.
641         * objc-lang.c: Likewise.
642         * p-valprint.c: Likewise.
643         * parse.c: Likewise.
644         * ppc-linux-tdep.c: Likewise.
645         * printcmd.c: Likewise.
646         * probe.c: Likewise.
647         * python/py-auto-load.c: Likewise.
648         * python/py-breakpoint.c: Likewise.
649         * python/py-cmd.c: Likewise.
650         * python/py-finishbreakpoint.c: Likewise.
651         * python/py-frame.c: Likewise.
652         * python/py-framefilter.c: Likewise.
653         * python/py-function.c: Likewise.
654         * python/py-gdb-readline.c: Likewise.
655         * python/py-inferior.c: Likewise.
656         * python/py-infthread.c: Likewise.
657         * python/py-lazy-string.c: Likewise.
658         * python/py-linetable.c: Likewise.
659         * python/py-param.c: Likewise.
660         * python/py-prettyprint.c: Likewise.
661         * python/py-symbol.c: Likewise.
662         * python/py-type.c: Likewise.
663         * python/py-value.c: Likewise.
664         * python/python-internal.h: Likewise.
665         * python/python.c: Likewise.
666         * record-btrace.c: Likewise.
667         * record-full.c: Likewise.
668         * regcache.c: Likewise.
669         * remote-fileio.c: Likewise.
670         * remote-mips.c: Likewise.
671         * remote.c: Likewise.
672         * rs6000-aix-tdep.c: Likewise.
673         * rs6000-nat.c: Likewise.
674         * skip.c: Likewise.
675         * solib-darwin.c: Likewise.
676         * solib-dsbt.c: Likewise.
677         * solib-frv.c: Likewise.
678         * solib-ia64-hpux.c: Likewise.
679         * solib-spu.c: Likewise.
680         * solib-svr4.c: Likewise.
681         * solib.c: Likewise.
682         * spu-tdep.c: Likewise.
683         * stack.c: Likewise.
684         * stap-probe.c: Likewise.
685         * symfile-mem.c: Likewise.
686         * symmisc.c: Likewise.
687         * target.c: Likewise.
688         * thread.c: Likewise.
689         * top.c: Likewise.
690         * tracepoint.c: Likewise.
691         * tui/tui-interp.c: Likewise.
692         * typeprint.c: Likewise.
693         * utils.c: Likewise.
694         * valarith.c: Likewise.
695         * valops.c: Likewise.
696         * valprint.c: Likewise.
697         * value.c: Likewise.
698         * varobj.c: Likewise.
699         * windows-nat.c: Likewise.
700         * xml-support.c: Likewise.
701
702 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
703
704         * mips-tdep.c (add_offset_16): Rewrite to implement what the
705         name implies.
706         (extended_mips16_next_pc): Update accordingly.
707
708 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
709
710         * mips-tdep.c (mips16_instruction_is_compact_branch): New
711         function.
712         (micromips_instruction_is_compact_branch): Likewise.
713         (mips16_scan_prologue): Terminate scanning upon seeing a branch
714         or a compact jump, reaching a jump delay slot, or seeing a
715         second non-prologue instruction.
716         (micromips_scan_prologue): Also terminate scanning upon seeing a
717         compact branch or jump, or reaching a branch or jump delay slot.
718         (mips32_scan_prologue): Terminate scanning upon reaching a branch
719         or jump delay slot, or seeing a second non-prologue instruction.
720         (mips32_instruction_has_delay_slot): Retain instruction
721         examination code only, update arguments accordingly and move
722         instruction fetch pieces to...
723         (mips32_insn_at_pc_has_delay_slot): ... this new function.
724         (micromips_instruction_has_delay_slot): Likewise and to...
725         (micromips_insn_at_pc_has_delay_slot): ... this new function.
726         (mips16_instruction_has_delay_slot): Likewise and to...
727         (mips16_insn_at_pc_has_delay_slot): ... this new function.
728         (mips_single_step_through_delay): Update accordingly.
729         (mips_adjust_breakpoint_address): Likewise.
730
731 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
732
733         * mips-tdep.c (micromips_instruction_has_delay_slot): When
734         !mustbe32 also return 1 for 32-bit instructions.
735         (mips16_instruction_has_delay_slot): Likewise.  Add an
736         explanatory comment.
737
738 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
739
740         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
741         symbols special.
742
743 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
744
745         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
746         update comments.
747         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
748         for the breakpoint's address.  Don't preinitialize `placed_size'.
749         (insert_bp_location): Set `reqstd_address' rather than
750         `placed_address'.
751         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
752         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
753         address.
754         (bkpt_remove_location): Likewise.
755         (deprecated_insert_raw_breakpoint): Likewise.
756         (deprecated_remove_raw_breakpoint): Likewise.
757         (find_single_step_breakpoint): Likewise.
758         * mem-break.c (default_memory_insert_breakpoint): Use
759         `reqstd_address' for the breakpoint's address.  Don't set
760         `placed_address' or `placed_size' if breakpoint contents couldn't
761         have been determined.
762         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
763         the breakpoint's address.
764         (remote_insert_hw_breakpoint): Likewise.  Don't set
765         `placed_address' or `placed_size' if breakpoint couldn't have been
766         set.
767         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
768         `reqstd_address' for the breakpoint's address.
769         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
770         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
771         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
772         * microblaze-linux-tdep.c
773         (microblaze_linux_memory_remove_breakpoint): Likewise.
774         * monitor.c (monitor_insert_breakpoint): Likewise.
775         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
776         (procfs_insert_hw_breakpoint): Likewise.
777         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
778         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
779         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
780         * remote-mips.c (mips_insert_breakpoint): Likewise.
781         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
782
783 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
784
785         * valops.c (value_assign): Check for bit field assignments
786         before calling architecture-specific register value
787         conversion functions.
788
789 2014-10-03  Pierre Muller  <muller@sourceware.org>
790
791         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
792
793 2014-10-02  Pedro Alves  <palves@redhat.com>
794
795         * breakpoint.c (breakpoints_should_be_inserted_now): Use
796         threads_are_executing.
797         * breakpoint.h (breakpoints_should_be_inserted_now): Add
798         describing comment.
799         * gdbthread.h (threads_are_executing): Declare.
800         (handle_signal_stop) <random signals>: Don't print about the
801         signal here if stopping.
802         (end_stepping_range): Don't notify observers here.
803         (normal_stop): Update the thread list.  If stopped by a random
804         signal or a stepping range ended, notify observers.
805         * thread.c (threads_executing): New global.
806         (init_thread_list): Clear 'threads_executing'.
807         (set_executing): Set or clear 'threads_executing'.
808         (threads_are_executing): New function.
809         (update_threads_executing): New function.
810         (update_thread_list): Use it.
811
812 2014-10-02  Pedro Alves  <palves@redhat.com>
813
814         PR breakpoints/17431
815         * breakpoint.c (update_breakpoints_after_exec): Don't create
816         overlay, longjmp, std terminate nor exception breakpoints here.
817
818 2014-10-02  Pedro Alves  <palves@redhat.com>
819
820         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
821         Adjust comments.
822         * inferior.c (find_inferior_for_program_space): Give preference to
823         the current inferior.
824         * inferior.h (find_inferior_for_program_space): Update comment.
825         * progspace.c (switch_to_program_space_and_thread): Prefer the
826         current inferior if it's bound to the program space requested.  If
827         the inferior found doesn't have a PID yet, don't bother looking up
828         a thread.
829         * progspace.h (switch_to_program_space_and_thread): Adjust
830         comment.
831         * thread.c (any_thread_of_process, any_live_thread_of_process):
832         Give preference to the current thread.
833
834 2014-10-01  Pedro Alves  <palves@redhat.com>
835
836         * breakpoint.c (insert_bp_location): Error out if inserting a
837         software breakpoint at a read-only address.
838         * target.c (memory_xfer_check_region): New function, factored out
839         from ...
840         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
841         ULONGEST.
842         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
843         against the memory region attributes.
844
845 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
846
847         * NEWS: Announce new exit-code field in -list-thread-groups
848         output.
849         * inferior.c (exit_inferior_1): Don't clear exit code.
850         (inferior_appeared): Clear exit code.
851         * mi/mi-main.c (print_one_inferior): Add printing of the exit
852         code.
853
854 2014-10-01  Pedro Alves  <palves@redhat.com>
855
856         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
857         GENERATED" along with emacs/vi read-only markers.
858         * regformats/aarch64.dat: Regenerate.
859         * regformats/arm-with-iwmmxt.dat: Regenerate.
860         * regformats/arm-with-neon.dat: Regenerate.
861         * regformats/arm-with-vfpv2.dat: Regenerate.
862         * regformats/arm-with-vfpv3.dat: Regenerate.
863         * regformats/i386/amd64-avx-linux.dat: Regenerate.
864         * regformats/i386/amd64-avx.dat: Regenerate.
865         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
866         * regformats/i386/amd64-avx512.dat: Regenerate.
867         * regformats/i386/amd64-linux.dat: Regenerate.
868         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
869         * regformats/i386/amd64-mpx.dat: Regenerate.
870         * regformats/i386/amd64.dat: Regenerate.
871         * regformats/i386/i386-avx-linux.dat: Regenerate.
872         * regformats/i386/i386-avx.dat: Regenerate.
873         * regformats/i386/i386-avx512-linux.dat: Regenerate.
874         * regformats/i386/i386-avx512.dat: Regenerate.
875         * regformats/i386/i386-linux.dat: Regenerate.
876         * regformats/i386/i386-mmx-linux.dat: Regenerate.
877         * regformats/i386/i386-mmx.dat: Regenerate.
878         * regformats/i386/i386-mpx-linux.dat: Regenerate.
879         * regformats/i386/i386-mpx.dat: Regenerate.
880         * regformats/i386/i386.dat: Regenerate.
881         * regformats/i386/x32-avx-linux.dat: Regenerate.
882         * regformats/i386/x32-avx.dat: Regenerate.
883         * regformats/i386/x32-avx512-linux.dat: Regenerate.
884         * regformats/i386/x32-avx512.dat: Regenerate.
885         * regformats/i386/x32-linux.dat: Regenerate.
886         * regformats/i386/x32.dat: Regenerate.
887         * regformats/microblaze-with-stack-protect.dat: Regenerate.
888         * regformats/mips-dsp-linux.dat: Regenerate.
889         * regformats/mips-linux.dat: Regenerate.
890         * regformats/mips64-dsp-linux.dat: Regenerate.
891         * regformats/mips64-linux.dat: Regenerate.
892         * regformats/nios2-linux.dat: Regenerate.
893         * regformats/rs6000/powerpc-32.dat: Regenerate.
894         * regformats/rs6000/powerpc-32l.dat: Regenerate.
895         * regformats/rs6000/powerpc-64l.dat: Regenerate.
896         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
897         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
898         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
899         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
900         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
901         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
902         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
903         * regformats/s390-linux32.dat: Regenerate.
904         * regformats/s390-linux32v1.dat: Regenerate.
905         * regformats/s390-linux32v2.dat: Regenerate.
906         * regformats/s390-linux64.dat: Regenerate.
907         * regformats/s390-linux64v1.dat: Regenerate.
908         * regformats/s390-linux64v2.dat: Regenerate.
909         * regformats/s390-te-linux64.dat: Regenerate.
910         * regformats/s390x-linux64.dat: Regenerate.
911         * regformats/s390x-linux64v1.dat: Regenerate.
912         * regformats/s390x-linux64v2.dat: Regenerate.
913         * regformats/s390x-te-linux64.dat: Regenerate.
914         * regformats/tic6x-c62x-linux.dat: Regenerate.
915         * regformats/tic6x-c62x.dat: Regenerate.
916         * regformats/tic6x-c64x-linux.dat: Regenerate.
917         * regformats/tic6x-c64x.dat: Regenerate.
918         * regformats/tic6x-c64xp-linux.dat: Regenerate.
919         * regformats/tic6x-c64xp.dat: Regenerate.
920
921 2014-10-01  Pedro Alves  <palves@redhat.com>
922
923         * features/Makefile: Update comments.
924         (XMLTOC): List all xml files we build C files from.
925         (clean-cfiles): New rule.
926
927 2014-10-01  Pedro Alves  <palves@redhat.com>
928
929         * features/i386/amd64-avx512-linux.c: Regenerate.
930         * features/i386/amd64-avx512.c: Regenerate.
931         * features/i386/x32-avx512-linux.c: Regenerate.
932         * features/i386/x32-avx512.c: Regenerate.
933
934 2014-10-01  Pedro Alves  <palves@redhat.com>
935
936         * features/Makefile (WHICH): Remove arm-with-m,
937         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
938
939 2014-10-01  Pedro Alves  <palves@redhat.com>
940
941         * features/Makefile (clean): New rule.
942
943 2014-10-01  Pedro Alves  <palves@redhat.com>
944
945         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
946         (zmm14h): Add missing end quotes.
947
948 2014-10-01  Pedro Alves  <palves@redhat.com>
949
950         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
951         * features/aarch64.c: Regenerate.
952
953 2014-09-30  Don Breazeal  <donb@codesourcery.com>
954
955         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
956         code so as to work with follow_fork_inferior.
957         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
958         (inf_ttrace_create_inferior): Remove reference to
959         inf_ttrace_vfork_ppid.
960         (inf_ttrace_attach): Ditto.
961         (inf_ttrace_detach): Ditto.
962         (inf_ttrace_kill): Use current_inferior instead of
963         inf_ttrace_vfork_ppid.
964         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
965         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
966         inferior away from the parent.
967         * infrun.c (follow_fork): Call follow_fork_inferior instead of
968         target_follow_fork.
969         (follow_fork_inferior): New function.
970         (follow_inferior_reset_breakpoints): Make function static.
971         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
972         * linux-nat.c (linux_child_follow_fork): Move target-independent
973         code to infrun.c:follow_fork_inferior.
974
975 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
976
977         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
978         * gdbarch.c: Regenerate.
979         * gdbarch.h: Likewise.
980         * corelow.c (sniff_core_bfd): Drop presence check for deleted
981         gdbarch method 'regset_from_core_section'.
982         (get_core_register_section): Remove handling for the case that
983         regset == NULL and regset_from_core_section is defined.
984         (get_core_registers): Drop check for deleted method.
985         * procfs.c (procfs_do_thread_registers): Adjust comment.
986
987 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
988
989         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
990         (linux_nat_make_corefile_notes): Remove.
991         (linux_target_install_ops): Do not set target method
992         'make_corefile_notes'.
993         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
994         Remove field.
995         (linux_corefile_thread_callback): Instead of args->collect, call
996         linux_collect_thread_registers.
997         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
998         NULL unless there is a regset iterator.
999         (linux_make_corefile_notes_1): Remove.
1000         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1001         by linux_make_corefile_notes.
1002         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1003
1004 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1005
1006         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1007         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1008         Remove.
1009         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1010
1011 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1012
1013         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1014         (xtensa_iterate_over_regset_sections): New.
1015         (xtensa_gdbarch_init): Adjust gdbarch initialization.
1016
1017 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1018
1019         * vax-tdep.c (vax_regset_from_core_section): Remove.
1020         (vax_iterate_over_regset_sections): New.
1021         (vax_gdbarch_init): Adjust gdbarch initialization.
1022
1023 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1024
1025         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1026         (tilegx_regset_from_core_section): Remove.
1027         (tilegx_iterate_over_regset_sections): New.
1028         (tilegx_linux_init_abi): Adjust gdbarch initialization.
1029
1030 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1031
1032         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1033         (sparc_iterate_over_regset_sections): New.
1034         (sparc32_gdbarch_init): Adjust gdbarch initialization.
1035         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1036         targets.
1037         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1038         (sparc64fbsd_init_abi): Call fbsd_init_abi.
1039         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1040         target method 'make_corefile_notes'.
1041
1042 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1043
1044         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1045         'sizeof_gregset' and 'sizeof_fpregset'.
1046         * sh-tdep.c (sh_regset_from_core_section): Remove.
1047         (sh_iterate_over_regset_sections): New.
1048         (sh_gdbarch_init): Adjust gdbarch initialization.
1049         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1050         sizeof_fpregset.
1051         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1052         'sizeof_gregset'.
1053
1054 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1055
1056         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1057         (score7_linux_iterate_over_regset_sections): New.
1058         (score_gdbarch_init): Adjust gdbarch initialization.
1059
1060 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1061
1062         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1063         FreeBSD targets.
1064         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1065         method 'make_corefile_notes'.
1066         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1067         (ppcfbsd_regset_from_core_section): Remove.
1068         (ppcfbsd_iterate_over_regset_sections): New.
1069         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
1070         initialization.
1071         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1072         (ppcnbsd_iterate_over_regset_sections): New.
1073         (ppcnbsd_init_abi): Adjust.
1074         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1075         (ppcobsd_iterate_over_regset_sections): New.
1076         (ppcobsd_init_abi): Adjust.
1077         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1078         (rs6000_aix_iterate_over_regset_sections): New.
1079         (rs6000_aix_init_osabi): Adjust.
1080
1081 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1082
1083         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1084         (nios2_regset_from_core_section): Remove.
1085         (nios2_iterate_over_regset_sections): New.
1086         (nios2_linux_init_abi): Adjust gdbarch initialization.
1087
1088 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1089
1090         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1091         (am33_iterate_over_regset_sections): New.
1092         (am33_linux_init_osabi): Adjust gdbarch initialization.
1093
1094 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1095
1096         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1097         (mips_linux_iterate_over_regset_sections): New.
1098         (mips_linux_init_abi): Adjust gdbarch initialization.
1099         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1100         (mips64obsd_iterate_over_regset_sections): New.
1101         (mips64obsd_init_abi): Adjust.
1102         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1103         (mipsnbsd_iterate_over_regset_sections): New.
1104         (mipsnbsd_init_abi): Adjust.
1105
1106 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1107
1108         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1109         (m88k_iterate_over_regset_sections): New.
1110         (m88k_gdbarch_init): Adjust gdbarch initialization.
1111
1112 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1113
1114         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1115         (ia64_linux_iterate_over_regset_sections): New.
1116         (ia64_linux_init_abi): Adjust gdbarch initialization.
1117
1118 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1119
1120         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1121         (m68kbsd_iterate_over_regset_sections): New.
1122         (m68kbsd_init_abi): Adjust gdbarch initialization.
1123         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1124         (m68k_linux_iterate_over_regset_sections): New.
1125         (m68k_linux_init_abi): Adjust gdbarch initialization.
1126
1127 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1128
1129         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1130         (m32r_linux_regset_from_core_section): Remove.
1131         (m32r_linux_iterate_over_regset_sections): New.
1132         (m32r_linux_init_abi): Adjust gdbarch initialization.
1133
1134 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1135
1136         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1137         (amd64obsd_iterate_over_regset_sections): New.
1138         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1139         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1140         Remove.
1141         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
1142         regset_from_core_section initialization.
1143         * i386-tdep.c (i386_regset_from_core_section): Remove.
1144         (i386_iterate_over_regset_sections): New.
1145         (i386_gdbarch_init): Adjust gdbarch initialization.
1146         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1147         (i386_iterate_over_regset_sections): New prototype.
1148         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1149         Remove.
1150         (i386obsd_aout_iterate_over_regset_sections): New.
1151         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1152         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1153         targets.
1154         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1155         (amd64fbsd_init_abi): Call fbsd_init_abi.
1156         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1157         (i386fbsd4_init_abi): Call fbsd_init_abi.
1158         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1159         target method 'make_corefile_notes'.
1160         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1161
1162 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1163
1164         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1165         (hppa_hpux_iterate_over_regset_sections): New.
1166         (hppa_hpux_init_abi): Adjust gdbarch initialization.
1167         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1168         (hppa_linux_iterate_over_regset_sections): New.
1169         (hppa_linux_init_abi): Adjust.
1170         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1171         (hppanbsd_iterate_over_regset_sections): New.
1172         (hppanbsd_init_abi): Adjust.
1173         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1174         (hppaobsd_iterate_over_regset_sections): New.
1175         (hppaobsd_init_abi): Adjust.
1176
1177 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1178
1179         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1180         (frv_linux_iterate_over_regset_sections): New.
1181         (frv_linux_init_abi): Adjust gdbarch initialization.
1182
1183 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1184
1185         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1186         (armbsd_iterate_over_regset_sections): New prototype.
1187         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1188         (armbsd_iterate_over_regset_sections): New.
1189         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1190         initialization.
1191
1192 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1193
1194         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1195         (alpha_linux_iterate_over_regset_sections): New.
1196         (alpha_linux_init_abi): Adjust gdbarch initialization.
1197         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1198         prototype.
1199         (alphanbsd_iterate_over_regset_sections): New prototype.
1200
1201 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1202
1203         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1204         Remove.
1205         (aarch64_linux_iterate_over_regset_sections): New.
1206         (aarch64_linux_init_abi): Adjust gdbarch initialization.
1207
1208 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1209
1210         * fbsd-tdep.c: New file.
1211         * fbsd-tdep.h: New file.
1212         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1213         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1214         (ALLDEPFILES): Add fbsd-tdep.c.
1215
1216 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1217
1218         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1219         parameter.
1220         * gdbarch.h: Regenerate.
1221         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1222         iterator.
1223         (get_core_register_section): Add parameter 'regset' and use it, if
1224         set.  Add parameter 'min_size' and verify the bfd section size
1225         against it.
1226         (get_core_registers_cb): Add parameter 'regset' and pass it to
1227         get_core_register section.  For the "standard" register sections
1228         ".reg" and ".reg2", set an appropriate default for human_name.
1229         (get_core_registers): Don't abort when the gdbarch has an iterator
1230         but no regset_from_core_section.  Add NULL/0 for parameters
1231         'regset'/'min_size' in calls to get_core_register_section.
1232         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1233         'regset' and use it instead of calling the
1234         regset_from_core_section gdbarch method.
1235         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1236         * i386-tdep.c (i386_supply_xstateregset)
1237         (i386_collect_xstateregset, i386_xstateregset): Moved to
1238         i386-linux-tdep.c.
1239         (i386_regset_from_core_section): Drop handling for .reg-xfp and
1240         .reg-xstate.
1241         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
1242         core file support only if the regset iterator hasn't been set.
1243         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1244         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1245         Moved from i386-tdep.c and renamed to *_linux*.
1246         (i386_linux_iterate_over_regset_sections): Add regset parameter to
1247         each callback invocation.  Allow any .reg-xstate size when reading
1248         from a core file.
1249         * amd64-tdep.c (amd64_supply_xstateregset)
1250         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1251         amd64-linux-tdep.c.
1252         (amd64_regset_from_core_section): Remove.
1253         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
1254         install an amd64-specific regset_from_core_section gdbarch method.
1255         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1256         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1257         Moved from amd64-tdep.c and renamed to *_linux*.
1258         (amd64_linux_iterate_over_regset_sections): Add regset parameter
1259         to each callback invocation.  Allow any .reg-xstate size when
1260         reading from a core file.
1261         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1262         (arm_linux_iterate_over_regset_sections): Add regset parameter to
1263         each callback invocation.
1264         (arm_linux_init_abi): No longer set the regset_from_core_section
1265         gdbarch method.
1266         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1267         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1268         each callback invocation.
1269         (ppc_linux_init_abi): No longer set the regset_from_core_section
1270         gdbarch method.
1271         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1272         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1273         (s390_regset_from_core_section): Remove.
1274         (s390_iterate_over_regset_sections): Add regset parameter to each
1275         callback invocation.
1276         (s390_gdbarch_init): No longer set the regset_from_core_section
1277         gdbarch method.  Drop initialization of deleted tdep fields.
1278
1279 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1280
1281         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1282         (amd64_linux_iterate_over_regset_sections): New.
1283         (amd64_linux_init_abi_common): Don't install the regset section
1284         list, but the new iterator in gdbarch.
1285         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1286         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
1287         (arm_linux_iterate_over_regset_sections): ...here.  New function.
1288         (arm_linux_init_abi): Set iterator instead of section list.
1289         * corelow.c (get_core_registers_cb): New function, logic moved
1290         from...
1291         (get_core_registers): ...loop body here.  Use new iterator method
1292         instead of walking through the regset section list.
1293         * gdbarch.sh: Remove 'core_regset_sections'.  New method
1294         'iterate_over_regset_sections'.  New typedef
1295         'iterate_over_regset_sections_cb'.
1296         * gdbarch.c: Regenerate.
1297         * gdbarch.h: Likewise.
1298         * i386-linux-tdep.c (i386_linux_regset_sections)
1299         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1300         Remove.
1301         (i386_linux_iterate_over_regset_sections): New.
1302         (i386_linux_init_abi): Don't choose a regset section list, but
1303         install new iterator in gdbarch.
1304         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1305         (linux_collect_regset_section_cb): New function, logic moved
1306         from...
1307         (linux_collect_thread_registers): ...loop body here.  Use iterator
1308         method instead of walking through list.
1309         (linux_make_corefile_notes_1): Check for presence of iterator
1310         method instead of regset section list.
1311         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1312         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1313         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1314         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
1315         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
1316         (ppc_linux_init_abi): Don't choose from above regset section
1317         lists, but install new iterator in gdbarch.
1318         * regset.h (struct core_regset_section): Remove.
1319         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1320         have_linux_v1, have_linux_v2, and have_tdb.
1321         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1322         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1323         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1324         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1325         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
1326         (s390_iterate_over_regset_sections): ...here.  New function.  Use
1327         new tdep fields.
1328         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
1329         regset section lists, but install new iterator.
1330
1331 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1332
1333         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1334
1335 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
1336
1337         * progspace.c (print_program_space): Don't prune program spaces
1338         before printing them.
1339
1340 2014-09-25  Pedro Alves  <palves@redhat.com>
1341
1342         * infrun.c (user_visible_resume_ptid): Don't check
1343         singlestep_breakpoints_inserted_p.
1344
1345 2014-09-25  Pedro Alves  <palves@redhat.com>
1346
1347         * breakpoint.c (should_be_inserted): Add debug output.
1348
1349 2014-09-25  Pedro Alves  <palves@redhat.com>
1350
1351         * infrun.c (stepping_past_instruction_at)
1352         (clear_exit_convenience_vars): Point at infrun.h instead of
1353         inferior.h.
1354         (handle_signal_stop): Fix typo.
1355
1356 2014-09-24  Yao Qi  <yao@codesourcery.com>
1357
1358         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1359         bitmask.
1360
1361 2014-09-22  Gary Benson  <gbenson@redhat.com>
1362
1363         * target.c (target_stop): Updated comment.
1364
1365 2014-09-22  Gary Benson  <gbenson@redhat.com>
1366
1367         * target/target.h (target_stop_ptid): Renamed as...
1368         (target_stop_and_wait): New function.  Updated comment.
1369         All uses updated.
1370         (target_continue_ptid): Renamed as...
1371         (target_continue_no_signal): New function.  Updated comment.
1372         All uses updated.
1373
1374 2014-09-22  Pedro Alves  <palves@redhat.com>
1375
1376         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1377         and "auto" merged.
1378         * breakpoint.c (enum ugll_insert_mode): New enum.
1379         (always_inserted_mode): Now a plain boolean.
1380         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1381         (breakpoints_always_inserted_mode): Delete.
1382         (breakpoints_should_be_inserted_now): New function.
1383         (insert_breakpoints): Pass UGLL_INSERT to
1384         update_global_location_list instead of calling
1385         insert_breakpoint_locations manually.
1386         (create_solib_event_breakpoint_1): New, factored out from ...
1387         (create_solib_event_breakpoint): ... this.
1388         (create_and_insert_solib_event_breakpoint): Use
1389         create_solib_event_breakpoint_1 instead of calling
1390         insert_breakpoint_locations manually.
1391         (update_global_location_list): Change parameter type from boolean
1392         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1393         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1394         (update_global_location_list_nothrow): Change parameter type from
1395         boolean to enum ugll_insert_mode.
1396         (_initialize_breakpoint): "breakpoint always-inserted" option is
1397         now a boolean command.  Update help text.
1398         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1399         (breakpoints_should_be_inserted_now): New declaration.
1400         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1401         Remove breakpoints_always_inserted_mode check.
1402         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1403         * remote.c (remote_start_remote): Likewise.
1404
1405 2014-09-22  Pedro Alves  <palves@redhat.com>
1406
1407         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1408         (insert_breakpoints): Don't call insert_breakpoint_locations here.
1409         Instead, pass UGLL_INSERT to update_global_location_list.
1410         (update_global_location_list): Change parameter type from boolean
1411         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1412         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1413         (create_solib_event_breakpoint_1): New, factored out from ...
1414         (create_solib_event_breakpoint): ... this.
1415         (create_and_insert_solib_event_breakpoint): Use
1416         create_solib_event_breakpoint_1 instead of calling
1417         insert_breakpoint_locations manually.
1418         (update_global_location_list): Handle UGLL_INSERT.
1419
1420 2014-09-22  Pedro Alves  <palves@redhat.com>
1421
1422         * breakpoint.c (enum ugll_insert_mode): New enum.
1423         (update_global_location_list)
1424         (update_global_location_list_nothrow): Change parameter type from
1425         boolean to enum ugll_insert_mode.  All callers adjusted.
1426
1427 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
1428
1429         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1430         SystemTap support in GDB.
1431
1432 2014-09-19  Don Breazeal  <donb@codesourcery.com>
1433
1434         * linux-nat.c (linux_handle_extended_wait): Call
1435         linux_ptrace_get_extended_event.
1436         (wait_lwp): Call linux_is_extended_waitstatus.
1437         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1438         and linux_is_extended_waitstatus.
1439         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1440         linux_ptrace_get_extended_event.
1441         (linux_ptrace_get_extended_event): New function.
1442         (linux_is_extended_waitstatus): New function.
1443         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1444         (linux_is_extended_waitstatus): New declarations.
1445
1446 2014-09-19  Yao Qi  <yao@codesourcery.com>
1447
1448         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1449         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
1450         comments.  Callers update.
1451         (dwarf_decode_lines): Likewise.
1452         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
1453         comments.  Skip the line table if  'lowpc' is greater than
1454         'address'.  Don't check
1455         dwarf2_per_objfile->has_section_at_zero.
1456
1457 2014-09-18  Doug Evans  <dje@google.com>
1458
1459         * NEWS: Mention new "producer" attribute of gdb.Symtab.
1460         * python/py-symtab.c (stpy_get_producer): New function.
1461         (symtab_object_getset): Add "producer" attribute.
1462
1463 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
1464
1465         PR gdb/17384
1466         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1467         (do_captured_read_memory_integer): Remove.
1468         (safe_read_memory_integer): Use target_read_memory directly instead
1469         of catching errors in do_captured_read_memory_integer.
1470
1471 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
1472
1473         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1474         not gdb/doc.
1475
1476 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1477
1478         * objc-lang.c (find_implementation_from_class): Remove dead code.
1479
1480 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1481
1482         PR cli/7233
1483         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1484         "fprintf_unfiltered (gdb_stdlog...)".
1485
1486 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
1487
1488         PR breakpoints/12526
1489         * breakpoint.h (struct watchpoint): New fields val_bitpos and
1490         val_bitsize.
1491         * breakpoint.c (watch_command_1): Use these fields to retain
1492         bitfield information.
1493         (extract_bitfield_from_watchpoint_value): New function.
1494         (watchpoint_check): Use it.
1495         (update_watchpoint): Use it.  Optimize the address and length of a
1496         HW watchpoint pointing to a bitfield.
1497         * value.h (unpack_value_bitfield): New prototype.
1498         * value.c (unpack_value_bitfield): Make extern.
1499
1500 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1501
1502         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1503         x86-dregs.o.
1504         * gnu-nat.c (inf_threads): New function.
1505         * gnu-nat.h (inf_threads_ftype): New typedef.
1506         (inf_threads): New declaration.
1507         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1508         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1509         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1510         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1511         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1512         (i386_gnu_dr_get_control): New functions.
1513         (reg_addr): New structure.
1514         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1515         i386 debugging register hooks.
1516         * NEWS: Mention this.
1517
1518 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1519
1520         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1521         vector data transfer instructions.
1522         (arm_record_coproc_data_proc): Updated.
1523
1524 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1525
1526         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1527         arm_record_exreg_ld_st_insn.
1528         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1529         load/store insns.
1530
1531 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1532
1533         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1534         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1535         processing instructions.
1536
1537 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1538
1539         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1540         for advance SIMD struct ld/st insn.
1541         (thumb2_record_decode_insn_handler): Replace stub handler with
1542         thumb2_record_asimd_struct_ld_st.
1543
1544 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1545
1546         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1547         for asimd, vfp and coprocessor insns.
1548         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1549         and coprocessor insns.
1550         (thumb2_record_coproc_insn): New function.
1551         (thumb2_record_decode_insn_handler): Update coprocessor insns record
1552         handlers.
1553         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1554         opcode 110 insns.
1555
1556 2014-09-13  Doug Evans  <xdje42@gmail.com>
1557
1558         * NEWS: Mention new "queue-signal" command.
1559         * infcmd.c (queue_signal_command): New function.
1560         (_initialize_infcmd): Add new queue-signal command.
1561
1562 2014-09-13  Doug Evans  <xdje42@gmail.com>
1563
1564         * linux-nat.c (wait_lwp): Add debugging printf.
1565         (linux_nat_wait_1): Ditto.
1566
1567 2014-09-12  Pedro Alves  <palves@redhat.com>
1568
1569         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1570         (create_and_insert_solib_event_breakpoint): New functions.
1571         * breakpoint.h (create_and_insert_solib_event_breakpoint)
1572         (remove_solib_event_breakpoints_at_next_stop): New declarations.
1573         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1574         (remove_dbx_link_breakpoint): Delete function.
1575         (insert_dbx_link_bpt_in_file): Use
1576         create_and_insert_solib_event_breakpoint instead of
1577         deprecated_insert_raw_breakpoint.
1578         (procfs_wait): Don't check whether we hit __dbx_link here.
1579         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1580         here.
1581         * solib-irix.c (base_breakpoint): Delete global.
1582         (disable_break): Delete function.
1583         (enable_break): Use create_solib_event_breakpoint
1584         instead of deprecated_insert_raw_breakpoint.
1585         (irix_solib_handle_event): New function.
1586         (irix_solib_create_inferior_hook): Don't run the target or disable
1587         the mapping-complete breakpoint here.
1588         (_initialize_irix_solib): Install irix_solib_handle_event as
1589         so_ops->handle_event hook.
1590
1591 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1592             Ulrich Weigand  <uweigand@de.ibm.com>
1593
1594         PR tdep/17379
1595         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1596         instead of read_memory_unsigned_integer.
1597
1598 2014-09-12  Gary Benson  <gbenson@redhat.com>
1599
1600         * nat/linux-waitpid.c: Include common-defs.h.
1601         [GDBSERVER]: Add FIXME comment.
1602         [!GDBSERVER]: Don't include defs.h or signal.h.
1603         (linux_debug) [!GDBSERVER]: Remove empty block.
1604
1605 2014-09-12  Gary Benson  <gbenson@redhat.com>
1606
1607         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1608         Don't include defs.h or server.h.
1609
1610 2014-09-12  Gary Benson  <gbenson@redhat.com>
1611
1612         * nat/linux-btrace.c: Include common-defs.h.
1613         Don't include defs.h, server.h or gdbthread.h.
1614         * nat/linux-btrace.h (struct target_ops): New forward declaration.
1615
1616 2014-09-12  Gary Benson  <gbenson@redhat.com>
1617
1618         * common/agent.c: Include common-defs.h.
1619         Don't include defs.h or server.h.
1620         * common/buffer.c: Likewise.
1621         * common/common-debug.c: Likewise.
1622         * common/common-utils.c: Likewise.
1623         * common/errors.c: Likewise.
1624         * common/filestuff.c: Likewise.
1625         * common/format.c: Likewise.
1626         * common/gdb_vecs.c: Likewise.
1627         * common/print-utils.c: Likewise.
1628         * common/ptid.c: Likewise.
1629         * common/rsp-low.c: Likewise.
1630         * common/signals.c: Likewise.
1631         * common/vec.c: Likewise.
1632         * common/xml-utils.c: Likewise.
1633         * nat/linux-osdata.c: Likewise.
1634         * nat/linux-procfs.c: Likewise.
1635         * nat/linux-ptrace.c: Likewise.
1636         * nat/mips-linux-watch.c: Likewise.
1637         * target/waitstatus.c: Likewise.
1638
1639 2014-09-12  Tom Tromey  <tromey@redhat.com>
1640             Gary Benson  <gbenson@redhat.com>
1641
1642         * common/common-regcache.h: New file.
1643         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1644         * regcache.h: Include common-regcache.h.
1645         (regcache_read_pc): Don't declare.
1646         * regcache.c (get_thread_regcache_for_ptid): New function.
1647         * nat/linux-btrace.c: Don't include regcache.h.
1648         Include common-regcache.h.
1649         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1650
1651 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
1652
1653         * regcache.h (struct regset): Declare.
1654
1655 2014-09-11  Pedro Alves  <palves@redhat.com>
1656
1657         PR gdb/17347
1658         * main.c: Include "infrun.h".
1659         (catch_command_errors, catch_command_errors_const): Wait for the
1660         foreground command to complete.
1661         * top.c (maybe_wait_sync_command_done): New function, factored out
1662         from ...
1663         (maybe_wait_sync_command_done): ... here.
1664         * top.h (maybe_wait_sync_command_done): New declaration.
1665
1666 2014-09-11  Tom Tromey  <tromey@redhat.com>
1667             Gary Benson  <gbenson@redhat.com>
1668
1669         * common/symbol.h: New file.
1670         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1671         * minsyms.c (find_minimal_symbol_address): New function.
1672         * common/agent.c: Include common/symbol.h.
1673         [!GDBSERVER]: Don't include objfiles.h.
1674         (agent_look_up_symbols): Use find_minimal_symbol_address.
1675
1676 2014-09-11  Gary Benson  <gbenson@redhat.com>
1677
1678         * target/target.h (target_stop_ptid, target_continue_ptid):
1679         Declare.
1680         * target.c (target_stop_ptid, target_continue_ptid): New
1681         functions.
1682         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1683         (agent_run_command): Always use target_stop_ptid and
1684         target_continue_ptid.
1685
1686 2014-09-11  Tom Tromey  <tromey@redhat.com>
1687             Gary Benson  <gbenson@redhat.com>
1688
1689         * target/target.h: New file.
1690         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1691         * target.h: Include target/target.h.
1692         (target_read_memory, target_write_memory): Don't declare.
1693         * target.c (target_read_uint32): New function.
1694         * common/agent.c: Include target/target.h.
1695         [!GDBSERVER]: Don't include target.h.
1696         (helper_thread_id): Type changed to uint32_t.
1697         (agent_get_helper_thread_id): Use target_read_uint32.
1698         (agent_run_command): Always use target_read_memory and
1699         target_write_memory.
1700         (agent_capability): Type changed to uint32_t.
1701         (agent_capability_check): Use target_read_uint32.
1702
1703 2014-09-11  Gary Benson  <gbenson@redhat.com>
1704
1705         * common/common-debug.h (show_debug_regs): Declare.
1706         * common/common-debug.c (show_debug_regs): Define.
1707         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
1708         all uses with show_debug_regs.  Replace all uses that considered
1709         debug_hw_points as a multi-value integer with straight boolean
1710         uses.
1711         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
1712         with show_debug_regs.
1713         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
1714         all uses with show_debug_regs.
1715         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
1716         uses with show_debug_regs.
1717
1718 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1719
1720         * findvar.c (address_from_register): Handle targets requiring
1721         a special conversion routine even for plain pointer types.
1722
1723 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1724
1725         * rs6000-nat.c (exec_one_dummy_insn): Remove.
1726         (store_register): Do not call exec_one_dummy_insn.
1727
1728 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1729
1730         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1731         dereference it first.  Use value_enclosing_type instead of
1732         value_type.
1733         (ada_array_length): Likewise.
1734
1735 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1736
1737         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1738         Adjust function implementation and documentation accordingly.
1739         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1740         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1741         Update call to ada_value_ptr_subscript.
1742
1743 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1744
1745         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1746         instead of VAL's type.
1747
1748 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1749
1750         * amd64-linux-nat.c: Add <sys/uio.h> #include.
1751
1752 2014-09-09  Doug Evans  <xdje42@gmail.com>
1753
1754         PR guile/17367
1755         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1756         last parameter to pkg-config, not first.
1757         * configure.ac: Pass --with-guile provided pkg-config path to
1758         GDB_GUILE_PROGRAM_NAMES.
1759         * configure: Regenerate.
1760
1761 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1762
1763         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1764         Bertazi".
1765
1766 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
1767
1768         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1769         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1770         the list of sections determining GDB_OSABI_IRIX.
1771
1772 2014-09-09  James Hogan  <james.hogan@imgtec.com>
1773
1774         * MAINTAINERS (Write After Approval): Add "James Hogan".
1775
1776 2014-09-09  James Hogan  <james.hogan@imgtec.com>
1777
1778         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1779
1780 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
1781
1782         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1783
1784 2014-09-08  Doug Evans  <xdje42@gmail.com>
1785
1786         PR 17247
1787         * guile.c: #include <signal.h>.
1788         (_initialize_guile): Block SIGCHLD while initializing Guile.
1789
1790         Replaces the following, which is reverted.
1791
1792         2014-07-26  Doug Evans  <xdje42@gmail.com>
1793
1794         PR 17185
1795         * configure.ac: Add check for header gc/gc.h.
1796         Add check for function setenv.
1797         * configure: Regenerate.
1798         * config.in: Regenerate.
1799         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1800
1801 2014-09-08  Doug Evans  <xdje42@gmail.com>
1802
1803         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1804         with named constant.  Fix style of pointer comparison.
1805         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1806
1807 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1808
1809         PR gdb/17035
1810         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1811         decide whether we display the command on "show user".
1812         * cli/cli-script.c (show_user_1): Only verify cmdlines after
1813         printing command name.
1814         * cli/cli-decode.h (cli_user_command_p): Declare new function.
1815         * cli/cli-decode.c (cli_user_command_p): Create helper function
1816         to verify whether cmd_list_element is a user-defined command.
1817
1818 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1819
1820         PR python/17355
1821         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1822         Fix goto out of TRY_CATCH.
1823
1824 2014-09-06  Doug Evans  <xdje42@gmail.com>
1825             Tom Tromey  <tromey@redhat.com>
1826
1827         PR 15276
1828         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1829         $_any_caller_matches.
1830         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1831         * python/lib/gdb/function/caller_is.py: New file.
1832
1833 2014-09-06  Doug Evans  <xdje42@gmail.com>
1834
1835         * infcmd.c (program_info): Fix typo.
1836
1837 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
1838
1839         PR gdb/17235
1840         * stap-probe.c (stap_parse_single_operand): Delete unused variable
1841         'number'.  New variable 'has_digit'.  Rewrite code to deal with
1842         subexpressions on SDT probes.
1843
1844 2014-09-04  Pedro Alves  <palves@redhat.com>
1845
1846         * c-exp.y (parse_number): Skip handling base-switching prefixes if
1847         the input is only one character long.
1848
1849 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
1850
1851         PR fortran/17237
1852         * f-valprint.c (f_val_print): Specify the correct print option to
1853         use when printing integer values.
1854
1855 2014-09-04  Gary Benson  <gbenson@redhat.com>
1856
1857         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1858         Remove code to cope with LWPs wrapped as PIDs.
1859         Add assertions to ensure no wrapped LWPs are passed.
1860
1861 2014-09-04  Pedro Alves  <palves@redhat.com>
1862
1863         * value.c (value_ranges_copy_adjusted): New function, factored out
1864         from ...
1865         (value_contents_copy_raw): ... here.
1866         (unpack_value_bits_as_long_1): Rename back to ...
1867         (unpack_bits_as_long): ... this.  Remove 'original_value' and
1868         'result' parameters.  Change return type to LONGEST.
1869         (unpack_value_bits_as_long): Delete.
1870         (unpack_value_field_as_long_1): Delete.
1871         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1872         (unpack_value_bitfield): New function.
1873         (value_field_bitfield): Reimplement using unpack_value_bitfield.
1874         (value_fetch_lazy): Use unpack_value_bitfield.
1875         * value.h (unpack_value_bits_as_long): Delete declaration.
1876
1877 2014-09-03  Sasha Smundak  <asmundak@google.com>
1878
1879         * python/py-frame.c (frapy_read_register): New function.
1880
1881 2014-09-03  James Hogan  <james.hogan@imgtec.com>
1882
1883         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1884         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1885
1886 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
1887
1888         PR python/16699
1889         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1890         function.
1891         (add_cmd): Set "completer_handle_brkchars" to NULL.
1892         * cli/cli-decode.h (struct cmd_list_element)
1893         <completer_handle_brkchars>: New field.
1894         * command.h (completer_ftype_void): New typedef.
1895         (set_cmd_completer_handle_brkchars): New prototype.
1896         * completer.c (set_gdb_completion_word_break_characters): New
1897         function.
1898         (complete_line_internal): Call "completer_handle_brkchars"
1899         callback from command.
1900         * completer.h: Include "command.h".
1901         (set_gdb_completion_word_break_characters): New prototype.
1902         * python/py-cmd.c (cmdpy_completer_helper): New function.
1903         (cmdpy_completer_handle_brkchars): New function.
1904         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1905         (cmdpy_init): Set completer_handle_brkchars to
1906         cmdpy_completer_handle_brkchars.
1907
1908 2014-09-03  Gary Benson  <gbenson@redhat.com>
1909
1910         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1911         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
1912         Loop conditions changed to equivalent form.
1913         (struct x86_debug_reg_state): Updated dr_ref_count comment.
1914         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1915         ALL_DEBUG_ADDRESS_REGISTERS.
1916
1917 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
1918
1919         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1920         description fix.
1921
1922 2014-09-02  Doug Evans  <dje@google.com>
1923
1924         * typeprint.c (find_global_typedef): Fix comment.
1925
1926 2014-09-02  Gary Benson  <gbenson@redhat.com>
1927
1928         * i386-nat.h: Renamed as...
1929         * x86-nat.h: New file.  All type, function and variable name
1930         prefixes changed from "i386_" to "x86_".  All references updated.
1931         * i386-nat.c: Renamed as...
1932         * x86-nat.c: New file.  All type, function and variable name
1933         prefixes changed from "i386_" to "x86_".  All references updated.
1934         * common/i386-xstate.h: Renamed as...
1935         * common/x86-xstate.h: New file.  All type, function and variable
1936         name prefixes changed from "i386_" to "x86_".  All references
1937         updated.
1938         * nat/i386-cpuid.h: Renamed as...
1939         * nat/x86-cpuid.h: New file.  All type, function and variable name
1940         prefixes changed from "i386_" to "x86_".  All references updated.
1941         * nat/i386-gcc-cpuid.h: Renamed as...
1942         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
1943         name prefixes changed from "i386_" to "x86_".  All references
1944         updated.
1945         * nat/i386-dregs.h: Renamed as...
1946         * nat/x86-dregs.h: New file.  All type, function and variable name
1947         prefixes changed from "i386_" to "x86_".  All references updated.
1948         * nat/i386-dregs.c: Renamed as...
1949         * nat/x86-dregs.c: New file.  All type, function and variable name
1950         prefixes changed from "i386_" to "x86_".  All references updated.
1951
1952 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
1953
1954         * varobj.c (_initialize_varobj): Move to the end of file.
1955
1956 2014-08-29  Gary Benson  <gbenson@redhat.com>
1957
1958         * common/common-exceptions.h: New file.
1959         * common/common-exceptions.c: Likewise.
1960         * Makefile.in (SFILES): Add common/common-exceptions.c.
1961         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1962         (COMMON_OBS): Add common-exceptions.o.
1963         (common-exceptions.o): New rule.
1964         * exceptions.h (common-exceptions.h): Include.
1965         (gdb_setjmp.h): Do not include.
1966         (return_reason): Moved to common-exceptions.h.
1967         (enum return_reason): Likewise.
1968         (RETURN_MASK): Likewise.
1969         (typedef return_mask): Likewise.
1970         (enum errors): Likewise.
1971         (struct gdb_exception): Likewise.
1972         (exceptions_state_mc_init): Likewise.
1973         (exceptions_state_mc_action_iter): Likewise.
1974         (exceptions_state_mc_action_iter_1): Likewise.
1975         (TRY_CATCH): Likewise.
1976         (throw_exception): Likewise.
1977         (throw_verror): Likewise.
1978         (throw_vquit): Likewise.
1979         (throw_error): Likewise.
1980         (throw_quit): Likewise.
1981         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1982         (enum catcher_action): Likewise.
1983         (struct catcher): Likewise.
1984         (current_catcher): Likewise.
1985         (catcher_list_size): Likewise.
1986         (exceptions_state_mc_init): Likewise.
1987         (catcher_pop): Likewise.
1988         (exceptions_state_mc): Likewise.
1989         (exceptions_state_mc_action_iter): Likewise.
1990         (exceptions_state_mc_action_iter_1): Likewise.
1991         (throw_exception): Likewise.
1992         (exception_messages): Likewise.
1993         (exception_messages_size): Likewise.
1994         (throw_it): Likewise.
1995         (throw_verror): Likewise.
1996         (throw_vquit): Likewise.
1997         (throw_error): Likewise.
1998         (throw_quit): Likewise.
1999         (prepare_to_throw_exception): New function.
2000
2001 2014-08-29  Gary Benson  <gbenson@redhat.com>
2002
2003         * common/gdb_setjmp.h: New file.
2004         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2005         * configure.ac: Move sigsetjmp check...
2006         * common/common.m4: ...here.
2007         * configure: Regenerate.
2008         * cp-support.c (SIGJMP_BUF): Delete.
2009         (SIGSETJMP): Likewise.
2010         (SIGLONGJMP): Likewise.
2011         * exceptions.h (gdb_setjmp.h): Include.
2012         (setjmp.h): Do not include.
2013         (EXCEPTIONS_SIGJMP_BUF): Delete.
2014         (EXCEPTIONS_SIGSETJMP): Likewise.
2015         (EXCEPTIONS_SIGLONGJMP): Likewise.
2016         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2017         from gdb_setjmp.h.
2018         * exceptions.c: Likewise.
2019
2020 2014-08-29  Gary Benson  <gbenson@redhat.com>
2021
2022         * cleanups.h: Moved to...
2023         * common/cleanups.h: New file.
2024         * cleanups.c: Moved to...
2025         * common/cleanups.c: New file.  Include common-defs.h and
2026         cleanups.h.  Do not include defs.h.
2027         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2028         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2029         (cleanups.o): New rule.
2030
2031 2014-08-29  Gary Benson  <gbenson@redhat.com>
2032
2033         * common/errors.h (internal_warning): New declaration.
2034         (internal_vwarning): Likewise.
2035         * common/errors.c (internal_warning): New function.
2036         * utils.h (internal_warning): Don't declare.
2037         (internal_vwarning): Likewise.
2038         * utils.c (internal_warning): Removed.
2039
2040 2014-08-29  Gary Benson  <gbenson@redhat.com>
2041
2042         * main.c (captured_main): Use warning during startup.
2043         Prefix startup warning messages with command name.
2044
2045 2014-08-29  Gary Benson  <gbenson@redhat.com>
2046
2047         * main.c (captured_main): Handle usage errors with error.
2048
2049 2014-08-29  Gary Benson  <gbenson@redhat.com>
2050
2051         * go32-nat.c (go32_create_inferior): Replace a fprintf/
2052         exit pair with a call to error.  Wrap the message with _().
2053
2054 2014-08-29  Gary Benson  <gbenson@redhat.com>
2055
2056         * main.c (captured_main): Replace a fprintf/exit
2057         pair with a call to error.  Wrap the message with _().
2058
2059 2014-08-29  Gary Benson  <gbenson@redhat.com>
2060
2061         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2062         pairs with calls to error.  Wrap the message with _().
2063
2064 2014-08-29  Gary Benson  <gbenson@redhat.com>
2065
2066         * utils.c (vwarning): Protect calls to target_terminal_ours
2067         and wrap_here.
2068
2069 2014-08-29  Gary Benson  <gbenson@redhat.com>
2070
2071         * exceptions.c (print_flush): Protect calls to
2072         target_terminal_ours and wrap_here.
2073
2074 2014-08-29  Gary Benson  <gbenson@redhat.com>
2075
2076         * utils.h (filtered_printing_initialized): New declaration.
2077         * utils.c (abort_with_message): New function.
2078         (internal_vproblem): Use abort_with_message for first level
2079         recursive internal problems, and if gdb_stderr is not set up.
2080         Protect calls to target_terminal_ours, begin_line and query.
2081
2082 2014-08-28  Doug Evans  <dje@google.com>
2083
2084         * symtab.c (in_prologue): Move definition to better spot.
2085         (skip_prologue_using_sal): Ditto.
2086
2087 2014-08-28  Doug Evans  <dje@google.com>
2088
2089         * symtab.c (find_function_start_sal): Move definition to better spot.
2090
2091 2014-08-28  Yao Qi  <yao@codesourcery.com>
2092
2093         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2094         found_stack_adjust in forward scan.  Remove condition check
2095         on found_stack_adjust which is always true.  Indent the code.
2096
2097 2014-08-28  Yao Qi  <yao@codesourcery.com>
2098
2099         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2100         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2101         (dwarf_decode_lines): Remove argument
2102         want_line_info.  Remove condition check on want_line_info.
2103         Callers update.
2104
2105 2014-08-27  Doug Evans  <dje@google.com>
2106
2107         * dwarf2read.c (dwarf_record_line): Fix typo.
2108
2109 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
2110
2111         * target.h (struct target_ops::to_terminal_save_ours): Remove
2112         declaration.
2113         (target_terminal_save_ours): Remove macro.
2114         * target-delegates.c: Regenerate.
2115         * inf-child.c (inf_child_target): Don't set the nonexistent
2116         field to_terminal_save_ours.
2117         * inferior.h (child_terminal_save_ours): Remove declaration.
2118         * terminal.h (gdb_save_tty_state): New declaration.
2119         * inflow.c (child_terminal_save_ours): Rename to ...
2120         (gdb_save_tty_state): ... this.
2121         * tui/tui.c: Include terminal.h.
2122         (tui_enable): Use gdb_save_tty_state instead of
2123         target_terminal_save_ours.
2124         (tui_disable): Likewise.
2125
2126 2014-08-25  Doug Evans  <dje@google.com>
2127
2128         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2129         Pass NULL instead of 0 for context pointer.
2130
2131 2014-08-25  Yao Qi  <yao@codesourcery.com>
2132
2133         * dwarf2read.c: Fix grammatical error.
2134
2135 2014-08-24  Yao Qi  <yao@codesourcery.com>
2136
2137         * dwarf2read.c (scan_partial_symbols):  Update comments.
2138         Rename argument 'need_pc' with 'set_addrmap'.
2139         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
2140         'set_addrmap'.
2141         (add_partial_module): Likewise.
2142         (add_partial_subprogram): Likewise.  Update comments.
2143         (dwarf2_name): Fix typo.
2144
2145 2014-08-22  Doug Evans  <dje@google.com>
2146
2147         PR 17276
2148         * dwarf2read.c (dwarf_record_line_p): New function.
2149         (dwarf_decode_lines_1): Ignore subsequent line number entries
2150         for the same line if any entry had a non-zero discriminator.
2151
2152 2014-08-22  Doug Evans  <dje@google.com>
2153
2154         * buildsym.h (record_line_ftype): New typedef.
2155         (record_line): Use it.
2156         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2157         (dwarf_decode_lines_1): Call them.
2158
2159 2014-08-22  Yao Qi  <yao@codesourcery.com>
2160
2161         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2162         (ctf_end): Remove code.
2163
2164 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2165
2166         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2167         (linux_make_corefile_notes): call update_thread_list, protected against
2168         exceptions.
2169
2170 2014-08-21  Pedro Alves  <palves@redhat.com>
2171
2172         * infcmd.c (attach_command): Remove comment.
2173
2174 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
2175
2176         * aarch64-linux-nat.c (dr_changed_t): Change the type from
2177         unsigned LONGEST to ULONGEST.
2178
2179 2014-08-20  Pedro Alves  <palves@redhat.com>
2180
2181         * Makefile.in (check-read1): New rule.
2182
2183 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
2184
2185         * value.c (value_from_contents_and_address): Strip resolved_type's
2186         typedef layers before checking its TYPE_DATA_LOCATION.
2187
2188 2014-08-20  Pedro Alves  <palves@redhat.com>
2189
2190         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2191
2192 2014-08-20  Yao Qi  <yao@codesourcery.com>
2193
2194         * amd64-tdep.c (amd64_classify): Add a blank line after the
2195         example.  Move "*/" to a new line.
2196         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2197         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2198         * dwarf2read.c (psymtab_include_file_name): Likewise.
2199
2200 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
2201             Pedro Alves  <palves@redhat.com>
2202
2203         PR symtab/14604
2204         PR symtab/14605
2205         * ada-lang.c (coerce_unspec_val_to_type): Use
2206         value_contents_copy_raw.
2207         * ada-valprint.c (val_print_packed_array_elements): Adjust.
2208         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2209         * cp-valprint.c (cp_print_value_fields): Let the common printing
2210         code handle optimized out values.
2211         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2212         * d-valprint.c (dynamic_array_type): Use
2213         value_bits_any_optimized_out.
2214         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2215         check_any_valid fields.
2216         (check_pieced_value_bits): Delete and inline ...
2217         (check_pieced_synthetic_pointer): ... here.
2218         (check_pieced_value_validity): Delete.
2219         (check_pieced_value_invalid): Delete.
2220         (pieced_value_funcs): Remove check_validity and check_any_valid
2221         fields.
2222         (read_pieced_value): Use mark_value_bits_optimized_out.
2223         (write_pieced_value): Switch to use
2224         mark_value_bytes_optimized_out.
2225         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2226         of assuming the whole value is optimized out.
2227         * findvar.c (read_frame_register_value): Remove special handling
2228         of optimized out registers.
2229         (value_from_register): Use mark_value_bytes_optimized_out.
2230         * frame-unwind.c (frame_unwind_got_optimized): Use
2231         mark_value_bytes_optimized_out.
2232         * jv-valprint.c (java_value_print): Adjust.
2233         (java_print_value_fields): Let the common printing code handle
2234         optimized out values.
2235         * mips-tdep.c (mips_print_register): Remove special handling of
2236         optimized out registers.
2237         * opencl-lang.c (lval_func_check_validity): Delete.
2238         (lval_func_check_any_valid): Delete.
2239         (opencl_value_funcs): Remove check_validity and check_any_valid
2240         fields.
2241         * p-valprint.c (pascal_object_print_value_fields): Let the common
2242         printing code handle optimized out values.
2243         * stack.c (read_frame_arg): Remove special handling of optimized
2244         out values.  Fetch both VAL and ENTRYVAL before comparing
2245         contents.  Adjust to value_available_contents_eq rename.
2246         * valprint.c (valprint_check_validity)
2247         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2248         (val_print_array_elements): Adjust.
2249         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2250         (value_bits_any_optimized_out): New function.
2251         (value_entirely_covered_by_range_vector): New function, factored
2252         out from value_entirely_unavailable.
2253         (value_entirely_unavailable): Reimplement.
2254         (value_entirely_optimized_out): New function.
2255         (insert_into_bit_range_vector): New function, factored out from
2256         mark_value_bits_unavailable.
2257         (mark_value_bits_unavailable): Reimplement.
2258         (struct ranges_and_idx): New struct.
2259         (find_first_range_overlap_and_match): New function, factored out
2260         from value_available_contents_bits_eq.
2261         (value_available_contents_bits_eq): Rename to ...
2262         (value_contents_bits_eq): ... this.  Check both unavailable
2263         contents and optimized out contents.
2264         (value_available_contents_eq): Rename to ...
2265         (value_contents_eq): ... this.
2266         (allocate_value_lazy): Remove reference to the old optimized_out
2267         boolean.
2268         (allocate_optimized_out_value): Use
2269         mark_value_bytes_optimized_out.
2270         (require_not_optimized_out): Adjust to check whether the
2271         optimized_out vec is empty.
2272         (ranges_copy_adjusted): New function, factored out from
2273         value_contents_copy_raw.
2274         (value_contents_copy_raw): Also copy the optimized out ranges.
2275         Assert the destination ranges aren't optimized out.
2276         (value_contents_copy): Update comment, remove call to
2277         require_not_optimized_out.
2278         (value_contents_equal): Adjust to check whether the optimized_out
2279         vec is empty.
2280         (set_value_optimized_out, value_optimized_out_const): Delete.
2281         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2282         New functions.
2283         (value_entirely_optimized_out, value_bits_valid): Delete.
2284         (value_copy): Take a VEC copy of the 'optimized_out' field.
2285         (value_primitive_field): Remove special handling of optimized out.
2286         (value_fetch_lazy): Assert that lazy values have no unavailable
2287         regions.  Use value_bits_any_optimized_out.  Remove some special
2288         handling for optimized out values.
2289         * value.h: Add intro comment about <optimized out> and
2290         <unavailable>.
2291         (struct lval_funcs): Remove check_validity and check_any_valid
2292         fields.
2293         (set_value_optimized_out, value_optimized_out_const): Remove.
2294         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2295         New declarations.
2296         (value_bits_any_optimized_out): New declaration.
2297         (value_bits_valid): Delete declaration.
2298         (value_available_contents_eq): Rename to ...
2299         (value_contents_eq): ... this, and extend comments.
2300
2301 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2302
2303         Fix -fsanitize=address on unreadable inferior strings.
2304         * valprint.c (val_print_string): Fix access before BUFFER.
2305
2306 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
2307
2308         * target.c (target_struct_size): Remove.
2309         (target_struct_allocsize): Remove.
2310         (DEFAULT_ALLOCSIZE): Remove.
2311         (target_ops_p): New typedef.
2312         (DEF_VEC_P (target_ops_p)): New vector type.
2313         (target_structs): Change type to VEC (target_ops_p).
2314         (add_target_with_completer): Replace "push" code by VEC_safe_push.
2315         (find_default_run_target): Rewrite for loop following changes to
2316         target_structs.
2317
2318 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
2319
2320         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2321         Adjust code accordingly.  Adjust function description comment.
2322
2323 2014-08-19  Yao Qi  <yao@codesourcery.com>
2324
2325         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2326         types.
2327
2328 2014-08-19  Alan Modra  <amodra@gmail.com>
2329
2330         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2331         * config.in: Regenerate.
2332         * configure: Regenerate.
2333
2334 2014-08-19  Tom Tromey  <tromey@redhat.com>
2335             Gary Benson  <gbenson@redhat.com>
2336
2337         * common/common-debug.h: New file.
2338         * common/common-debug.c: Likewise.
2339         * debug.c: Likewise.
2340         * Makefile.in (SFILES): Add common/common-debug.c.
2341         (HFILES_NO_SRCDIR): Add common/common-debug.h.
2342         (COMMON_OBS): Add common-debug.o and debug.o.
2343         (common-debug.o): New rule.
2344         * common/common-defs.h: Include common-debug.h.
2345         * common/agent.c (debug_agent_printf): New function.
2346         (DEBUG_AGENT): Redefine.
2347         * nat/i386-dregs.c (debug_printf): Undefine.
2348
2349 2014-08-19  Gary Benson  <gbenson@redhat.com>
2350
2351         * common/common-defs.h: Include print-utils.h.
2352         * utils.h: Do not include print-utils.h.
2353
2354 2014-08-19  Tom Tromey  <tromey@redhat.com>
2355             Gary Benson  <gbenson@redhat.com>
2356
2357         * common/common-types.h: New file.
2358         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2359         * common/common-defs.h: Include common-types.h.
2360         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2361         (ULONGEST): Remove.
2362
2363 2014-08-19  Tom Tromey  <tromey@redhat.com>
2364             Gary Benson  <gbenson@redhat.com>
2365
2366         * common/errors.h: New file.
2367         * common/errors.c: Likewise.
2368         * Makefile.in (SFILES): Add common/errors.c.
2369         (HFILES_NO_SRCDIR): Add common/errors.h.
2370         (COMMON_OBS): Add errors.o.
2371         (errors.o): New rule.
2372         * common/common-defs.h: Include errors.h.
2373         * utils.h (perror_with_name, error, verror, warning, vwarning):
2374         Don't declare.
2375         * common/common-utils.h: (malloc_failure, internal_error):
2376         Likewise.
2377
2378 2014-08-19  Gary Benson  <gbenson@redhat.com>
2379
2380         * utils.c (internal_vproblem): Always print the message.
2381
2382 2014-08-18  Doug Evans  <dje@google.com>
2383
2384         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2385
2386 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2387
2388         * ada-typeprint.c (type_is_full_subrange_of_target_type):
2389         Return 0 if TYPE is dynamic.
2390         (print_range): Add handling of dynamic ranges.
2391
2392 2014-08-18  Keven Boell  <keven.boell@intel.com>
2393             Joel Brobecker  <brobecker@adacore.com>
2394
2395         * gdbtypes.h (struct main_type): Add field "data_location".
2396         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2397         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2398         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2399         a dynamic data location.
2400         (resolve_dynamic_type): Add DW_AT_data_location handling.
2401         (copy_recursive, copy_type): Copy the data_location information
2402         when present.
2403         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2404         * value.c (value_from_contents_and_address): Add
2405         DW_AT_data_location handling.
2406
2407 2014-08-18  Keven Boell  <keven.boell@intel.com>
2408             Joel Brobecker  <brobecker@adacore.com>
2409
2410         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2411         field "get_object_address".
2412         * dwarf2expr.c (execute_stack_op): Add handling for
2413         DW_OP_push_object_address.
2414         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2415         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2416         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2417         (dwarf_expr_get_obj_addr): New function.
2418         (dwarf_expr_ctx_funcs): Add get_object_address field.
2419         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2420         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
2421         (dwarf2_evaluate_property): Add parameter "address".  Use it.
2422         (needs_get_obj_addr): New function.
2423         (needs_frame_ctx_funcs): Add get_object_address field.
2424         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2425         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
2426         (resolve_dynamic_array): Likewise.
2427
2428 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2429
2430         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2431         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2432         fixed value for records and unions for which some GNAT encodings
2433         are present.
2434
2435 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2436
2437         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2438         rewrite to avoid "else if" and "else" constructs.  Should be
2439         a no-op in practice.
2440
2441 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2442
2443         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2444         of lexical block.
2445
2446 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2447
2448         PR c++/17132
2449         * eval.c: Update all calls to find_overload_match.
2450         * valarith.c: Likewise.
2451         (value_user_defined_cpp_op, value_user_defined_op): New
2452         argument NOSIDE.  Update all callers.
2453         * valops.c (find_overload_match): New argument NOSIDE.
2454         * value.h (find_overload_match): Update signature.
2455
2456 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2457
2458         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2459         'items' methods instead of 'iteritems' method on dictionaries.
2460
2461 2014-08-15  Doug Evans  <dje@google.com>
2462
2463         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2464         closer to use.
2465
2466 2014-08-15  Doug Evans  <dje@google.com>
2467
2468         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2469
2470 2014-08-15  Doug Evans  <dje@google.com>
2471
2472         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2473
2474 2014-08-15  Doug Evans  <dje@google.com>
2475
2476         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2477         unused.
2478
2479 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
2480
2481         * dcache.h: Include target.h, to avoid compile time warnings.
2482
2483 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
2484
2485         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
2486         frame_info" partial declaration.
2487         * gdbarch.h: Regenerate.
2488
2489 2014-08-15  Yao Qi  <yao@codesourcery.com>
2490
2491         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2492         Add parameter 'decode_for_pst_p'.  Callers update.
2493
2494 2014-08-13  Yao Qi  <yao@codesourcery.com>
2495
2496         PR build/17104
2497         * configure.ac: Use local variable 'pos'.
2498         * configure: Regenerated.
2499
2500 2014-08-11  Doug Evans  <dje@google.com>
2501
2502         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2503         message, it is redundant with "Reading symbols from ..." message.
2504
2505 2014-08-10  Doug Evans  <xdje42@gmail.com>
2506
2507         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2508
2509 2014-08-09  Yao Qi  <yao@codesourcery.com>
2510
2511         PR remote/9053
2512         * remote.c (remote_xfer_partial): Remove dead code.
2513
2514 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2515
2516         * ia64-linux-tdep.c: Include "regset.h".
2517         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2518         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2519         (ia64_linux_supply_fpregset): New function.
2520         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2521         (ia64_linux_regset_from_core_section): New function.
2522         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2523         method.
2524
2525 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2526
2527         * m68klinux-tdep.c: Include "regset.h".
2528         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2529         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2530         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2531         (m68k_linux_regset_from_core_section): New function.
2532         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2533         method.
2534
2535 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2536
2537         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2538         function.  Move logic to...
2539         (tilegx_linux_regmap): ... this new register map.
2540         (tilegx_linux_regset): Refer to register map, replace supply
2541         method by regcache_supply_regset, and add collect method.
2542         * tilegx-tdep.h (enum tilegx_regnum): New enum value
2543         TILEGX_FIRST_EASY_REGNUM.
2544
2545 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2546
2547         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2548         that calls regcache_supply_regset and handles the EPC register
2549         separately.  Move main logic to...
2550         (score7_linux_gregmap): ... this new register map.
2551         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2552         (score7_linux_gregset): Refer to register map.  Add collect method.
2553         (score7_linux_regset_from_core_section): Replace
2554         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2555         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2556         (struct regset): Delete unused forward declaraction.
2557         (struct pt_regs): Delete structure definition.
2558         (elf_gregset_t): Delete typedef.
2559
2560 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2561
2562         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2563         (nios2_core_regset): Add collect method.
2564
2565 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2566
2567         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2568         platform-independent and don't write to read-only input buffer.
2569         (m32r_linux_collect_gregset): New function.
2570         (m32r_linux_gregset): Add collect method.
2571
2572 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2573
2574         * hppa-linux-tdep.c (greg_map): Rename to...
2575         (hppa_linux_gregmap): ... this.  Also convert to
2576         regcache_map_entry format.
2577         (hppa_linux_supply_regset): Delete function.
2578         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
2579         (hppa_linux_fpregmap): ... this new register map.
2580         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2581         register map, replace supply method by regcache_supply_regset, and
2582         add collect method regcache_collect_regset.
2583
2584 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2585
2586         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2587         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2588         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2589         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2590         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2591         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2592         (frv_linux_supply_gregset): Replace main logic by call to
2593         regcache_supply_regset, but keep clearing gr32-gr63.
2594         (frv_linux_supply_fpregset): Delete function.
2595         (frv_linux_gregset): Refer to appropriate register map and add
2596         regcache_collect_regset as the collect method.
2597         (frv_linux_fpregset): Likewise.  Also exchange the supply method
2598         by regcache_supply_regset.
2599
2600 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2601
2602         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2603         by call to alpha_supply_int_regs.
2604         (alpha_linux_collect_gregset): New function.
2605         (alpha_linux_supply_fpregset): Replace logic by call to
2606         alpha_supply_fp_regs.
2607         (alpha_linux_collect_fpregset): New function.
2608         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2609
2610 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2611
2612         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2613         by call to regcache_collect_regset.
2614         (supply_gregset, supply_fpregset): Call regcache_supply_regset
2615         instead of aarch64_linux_supply_gregset/_fpregset.
2616         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2617         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2618         header file instead.
2619         (aarch64_linux_supply_gregset, supply_gregset_from_core)
2620         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2621         functions.  Move logic to ...
2622         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2623         register maps.
2624         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2625         refer to new register maps, replace *_regset_from_core by
2626         regcache_supply_regset, and also use regcache_collect_regset.
2627         * aarch64-linux-tdep.h: Include "regset.h".
2628         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2629         Delete prototypes.
2630         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2631         macros, moved from C source file.
2632         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2633         variable declarations.
2634
2635 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2636
2637         * s390-linux-nat.c: Include "regset.h".
2638         (regmap_gregset): Delete macro.
2639         (s390_64_regmap_gregset): New register map for
2640         regcache_supply/_collect_regset.
2641         (s390_64_gregset): New regset.
2642         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2643         (regmap_fpregset): Delete macro.
2644         (s390_native_supply, s390_native_collect): Delete functions.
2645         (supply_gregset, fill_gregset): Replace s390-specific regmap
2646         handling by a call to regcache_supply/_collect_regset.
2647         (supply_fpregset, fill_fpregset): Call regcache_supply/
2648         _collect_regset instead of s390_native_supply/_collect.
2649         (fetch_regset, store_regset): Likewise.  Also change the last
2650         parameter to a regset instead of a regmap.
2651         (s390_linux_fetch_inferior_registers)
2652         (390_linux_store_inferior_registers): Adjust last parameter in
2653         calls to fetch_regset and store_regset.
2654         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2655         (s390_gregmap): ... this.  Also make static const and convert to
2656         regcache_map_entry format.
2657         (s390x_regmap_gregset): Delete.
2658         (s390_regmap_fpregset): Rename to...
2659         (s390_fpregmap): ... this.  Make static const and convert to
2660         regcache_map_entry format.
2661         (s390_regmap_upper, s390_regmap_last_break)
2662         (s390x_regmap_last_break, s390_regmap_system_call)
2663         (s390_regmap_tdb): Likewise.
2664         (s390_supply_regset, s390_collect_regset): Remove functions.
2665         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2666         s390_supply_regset.
2667         (s390_gregset, s390_fpregset, s390_upper_regset)
2668         (s390_last_break_regset, s390x_last_break_regset)
2669         (s390_system_call_regset, s390_tdb_regset): Make global and
2670         replace s390_supply/_collect_regset by regcache_supply/
2671         _collect_regset.
2672         (s390x_gregset): Delete.
2673         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2674         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2675         (s390_regmap_fpregset, s390_regmap_last_break)
2676         (s390x_regmap_last_break, s390_regmap_system_call)
2677         (s390_regmap_tdb): Delete global variable declarations.
2678         (s390_gregset, s390_fpregset, s390_last_break_regset)
2679         (s390x_last_break_regset, s390_system_call_regset)
2680         (s390_tdb_regset): New global variable declarations.
2681
2682 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2683
2684         * regcache.c: Include "regset.h".
2685         (regcache_transfer_regset): New local function.
2686         (regcache_supply_regset, regcache_collect_regset): New functions.
2687         * regcache.h (struct regcache_map_entry): New structure.
2688         (REGCACHE_MAP_SKIP): New enum value.
2689         (regcache_supply_regset, regcache_collect_regset): New prototypes.
2690
2691 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2692
2693         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2694         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2695         (ppc_linux_collect_gregset ): Likewise.
2696         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2697         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2698         (ppc_collect_vrregset): Likewise.
2699         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2700         Likewise.
2701
2702 2014-08-07  Yao Qi  <yao@codesourcery.com>
2703
2704         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2705         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2706         * remote.c (remote_read_bytes): Likewise.
2707
2708 2014-08-07  Yao Qi  <yao@codesourcery.com>
2709
2710         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2711
2712 2014-08-07  Yao Qi  <yao@codesourcery.com>
2713
2714         PR remote/17230
2715         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2716         TARGET_XFER_OK instead of 0.
2717
2718 2014-08-07  Gary Benson  <gbenson@redhat.com>
2719
2720         * common/common-defs.h: Include errno.h.
2721         * defs.h: Do not include errno.h.
2722         * ada-typeprint.c: Likewise.
2723         * c-typeprint.c: Likewise.
2724         * core-regset.c: Likewise.
2725         * corefile.c: Likewise.
2726         * corelow.c: Likewise.
2727         * event-loop.c: Likewise.
2728         * f-typeprint.c: Likewise.
2729         * gnu-nat.c: Likewise.
2730         * go32-nat.c: Likewise.
2731         * i386gnu-nat.c: Likewise.
2732         * m2-typeprint.c: Likewise.
2733         * nat/linux-btrace.c: Likewise.
2734         * p-typeprint.c: Likewise.
2735         * procfs.c: Likewise.
2736         * remote-sim.c: Likewise.
2737         * rs6000-nat.c: Likewise.
2738         * target.c: Likewise.
2739         * typeprint.c: Likewise.
2740         * ui-file.c: Likewise.
2741         * valops.c: Likewise.
2742         * valprint.c: Likewise.
2743
2744 2014-08-07  Gary Benson  <gbenson@redhat.com>
2745
2746         * common/common-defs.h: Include string.h.
2747         * aarch64-tdep.c: Do not include string.h.
2748         * ada-exp.y: Likewise.
2749         * ada-lang.c: Likewise.
2750         * ada-lex.l: Likewise.
2751         * ada-typeprint.c: Likewise.
2752         * ada-valprint.c: Likewise.
2753         * aix-thread.c: Likewise.
2754         * alpha-linux-tdep.c: Likewise.
2755         * alpha-mdebug-tdep.c: Likewise.
2756         * alpha-nat.c: Likewise.
2757         * alpha-osf1-tdep.c: Likewise.
2758         * alpha-tdep.c: Likewise.
2759         * alphanbsd-tdep.c: Likewise.
2760         * amd64-dicos-tdep.c: Likewise.
2761         * amd64-linux-tdep.c: Likewise.
2762         * amd64-nat.c: Likewise.
2763         * amd64-sol2-tdep.c: Likewise.
2764         * amd64fbsd-tdep.c: Likewise.
2765         * amd64obsd-tdep.c: Likewise.
2766         * arch-utils.c: Likewise.
2767         * arm-linux-nat.c: Likewise.
2768         * arm-linux-tdep.c: Likewise.
2769         * arm-tdep.c: Likewise.
2770         * arm-wince-tdep.c: Likewise.
2771         * armbsd-tdep.c: Likewise.
2772         * armnbsd-nat.c: Likewise.
2773         * armnbsd-tdep.c: Likewise.
2774         * armobsd-tdep.c: Likewise.
2775         * avr-tdep.c: Likewise.
2776         * ax-gdb.c: Likewise.
2777         * ax-general.c: Likewise.
2778         * bcache.c: Likewise.
2779         * bfin-tdep.c: Likewise.
2780         * breakpoint.c: Likewise.
2781         * build-id.c: Likewise.
2782         * buildsym.c: Likewise.
2783         * c-exp.y: Likewise.
2784         * c-lang.c: Likewise.
2785         * c-typeprint.c: Likewise.
2786         * c-valprint.c: Likewise.
2787         * charset.c: Likewise.
2788         * cli-out.c: Likewise.
2789         * cli/cli-cmds.c: Likewise.
2790         * cli/cli-decode.c: Likewise.
2791         * cli/cli-dump.c: Likewise.
2792         * cli/cli-interp.c: Likewise.
2793         * cli/cli-logging.c: Likewise.
2794         * cli/cli-script.c: Likewise.
2795         * cli/cli-setshow.c: Likewise.
2796         * cli/cli-utils.c: Likewise.
2797         * coffread.c: Likewise.
2798         * common/agent.c: Likewise.
2799         * common/buffer.c: Likewise.
2800         * common/buffer.h: Likewise.
2801         * common/common-utils.c: Likewise.
2802         * common/filestuff.c: Likewise.
2803         * common/filestuff.c: Likewise.
2804         * common/format.c: Likewise.
2805         * common/print-utils.c: Likewise.
2806         * common/rsp-low.c: Likewise.
2807         * common/signals.c: Likewise.
2808         * common/vec.h: Likewise.
2809         * common/xml-utils.c: Likewise.
2810         * core-regset.c: Likewise.
2811         * corefile.c: Likewise.
2812         * corelow.c: Likewise.
2813         * cp-abi.c: Likewise.
2814         * cp-name-parser.y: Likewise.
2815         * cp-support.c: Likewise.
2816         * cp-valprint.c: Likewise.
2817         * cris-tdep.c: Likewise.
2818         * d-exp.y: Likewise.
2819         * darwin-nat.c: Likewise.
2820         * dbxread.c: Likewise.
2821         * dcache.c: Likewise.
2822         * demangle.c: Likewise.
2823         * dicos-tdep.c: Likewise.
2824         * disasm.c: Likewise.
2825         * doublest.c: Likewise.
2826         * dsrec.c: Likewise.
2827         * dummy-frame.c: Likewise.
2828         * dwarf2-frame.c: Likewise.
2829         * dwarf2loc.c: Likewise.
2830         * dwarf2read.c: Likewise.
2831         * elfread.c: Likewise.
2832         * environ.c: Likewise.
2833         * eval.c: Likewise.
2834         * event-loop.c: Likewise.
2835         * exceptions.c: Likewise.
2836         * exec.c: Likewise.
2837         * expprint.c: Likewise.
2838         * f-exp.y: Likewise.
2839         * f-lang.c: Likewise.
2840         * f-typeprint.c: Likewise.
2841         * f-valprint.c: Likewise.
2842         * fbsd-nat.c: Likewise.
2843         * findcmd.c: Likewise.
2844         * findvar.c: Likewise.
2845         * fork-child.c: Likewise.
2846         * frame.c: Likewise.
2847         * frv-linux-tdep.c: Likewise.
2848         * frv-tdep.c: Likewise.
2849         * gdb.c: Likewise.
2850         * gdb_bfd.c: Likewise.
2851         * gdbarch.c: Likewise.
2852         * gdbarch.sh: Likewise.
2853         * gdbtypes.c: Likewise.
2854         * gnu-nat.c: Likewise.
2855         * gnu-v2-abi.c: Likewise.
2856         * gnu-v3-abi.c: Likewise.
2857         * go-exp.y: Likewise.
2858         * go-lang.c: Likewise.
2859         * go32-nat.c: Likewise.
2860         * guile/guile.c: Likewise.
2861         * guile/scm-auto-load.c: Likewise.
2862         * hppa-hpux-tdep.c: Likewise.
2863         * hppa-linux-nat.c: Likewise.
2864         * hppanbsd-tdep.c: Likewise.
2865         * hppaobsd-tdep.c: Likewise.
2866         * i386-cygwin-tdep.c: Likewise.
2867         * i386-dicos-tdep.c: Likewise.
2868         * i386-linux-tdep.c: Likewise.
2869         * i386-nto-tdep.c: Likewise.
2870         * i386-sol2-tdep.c: Likewise.
2871         * i386-tdep.c: Likewise.
2872         * i386bsd-tdep.c: Likewise.
2873         * i386gnu-nat.c: Likewise.
2874         * i386nbsd-tdep.c: Likewise.
2875         * i386obsd-tdep.c: Likewise.
2876         * i387-tdep.c: Likewise.
2877         * ia64-libunwind-tdep.c: Likewise.
2878         * ia64-linux-nat.c: Likewise.
2879         * inf-child.c: Likewise.
2880         * inf-ptrace.c: Likewise.
2881         * inf-ttrace.c: Likewise.
2882         * infcall.c: Likewise.
2883         * infcmd.c: Likewise.
2884         * inflow.c: Likewise.
2885         * infrun.c: Likewise.
2886         * interps.c: Likewise.
2887         * iq2000-tdep.c: Likewise.
2888         * irix5-nat.c: Likewise.
2889         * jv-exp.y: Likewise.
2890         * jv-lang.c: Likewise.
2891         * jv-typeprint.c: Likewise.
2892         * jv-valprint.c: Likewise.
2893         * language.c: Likewise.
2894         * linux-fork.c: Likewise.
2895         * linux-nat.c: Likewise.
2896         * lm32-tdep.c: Likewise.
2897         * m2-exp.y: Likewise.
2898         * m2-typeprint.c: Likewise.
2899         * m32c-tdep.c: Likewise.
2900         * m32r-linux-nat.c: Likewise.
2901         * m32r-linux-tdep.c: Likewise.
2902         * m32r-rom.c: Likewise.
2903         * m32r-tdep.c: Likewise.
2904         * m68hc11-tdep.c: Likewise.
2905         * m68k-tdep.c: Likewise.
2906         * m68kbsd-tdep.c: Likewise.
2907         * m68klinux-nat.c: Likewise.
2908         * m68klinux-tdep.c: Likewise.
2909         * m88k-tdep.c: Likewise.
2910         * machoread.c: Likewise.
2911         * macrocmd.c: Likewise.
2912         * main.c: Likewise.
2913         * mdebugread.c: Likewise.
2914         * mem-break.c: Likewise.
2915         * memattr.c: Likewise.
2916         * memory-map.c: Likewise.
2917         * mep-tdep.c: Likewise.
2918         * mi/mi-cmd-break.c: Likewise.
2919         * mi/mi-cmd-disas.c: Likewise.
2920         * mi/mi-cmd-env.c: Likewise.
2921         * mi/mi-cmd-stack.c: Likewise.
2922         * mi/mi-cmd-var.c: Likewise.
2923         * mi/mi-cmds.c: Likewise.
2924         * mi/mi-console.c: Likewise.
2925         * mi/mi-getopt.c: Likewise.
2926         * mi/mi-interp.c: Likewise.
2927         * mi/mi-main.c: Likewise.
2928         * mi/mi-parse.c: Likewise.
2929         * microblaze-rom.c: Likewise.
2930         * microblaze-tdep.c: Likewise.
2931         * mingw-hdep.c: Likewise.
2932         * minidebug.c: Likewise.
2933         * minsyms.c: Likewise.
2934         * mips-irix-tdep.c: Likewise.
2935         * mips-linux-tdep.c: Likewise.
2936         * mips-tdep.c: Likewise.
2937         * mips64obsd-tdep.c: Likewise.
2938         * mipsnbsd-tdep.c: Likewise.
2939         * mipsread.c: Likewise.
2940         * mn10300-linux-tdep.c: Likewise.
2941         * mn10300-tdep.c: Likewise.
2942         * monitor.c: Likewise.
2943         * moxie-tdep.c: Likewise.
2944         * mt-tdep.c: Likewise.
2945         * nat/linux-btrace.c: Likewise.
2946         * nat/linux-osdata.c: Likewise.
2947         * nat/linux-procfs.c: Likewise.
2948         * nat/linux-ptrace.c: Likewise.
2949         * nat/linux-waitpid.c: Likewise.
2950         * nbsd-tdep.c: Likewise.
2951         * nios2-linux-tdep.c: Likewise.
2952         * nto-procfs.c: Likewise.
2953         * nto-tdep.c: Likewise.
2954         * objc-lang.c: Likewise.
2955         * objfiles.c: Likewise.
2956         * opencl-lang.c: Likewise.
2957         * osabi.c: Likewise.
2958         * osdata.c: Likewise.
2959         * p-exp.y: Likewise.
2960         * p-lang.c: Likewise.
2961         * p-typeprint.c: Likewise.
2962         * parse.c: Likewise.
2963         * posix-hdep.c: Likewise.
2964         * ppc-linux-nat.c: Likewise.
2965         * ppc-sysv-tdep.c: Likewise.
2966         * ppcfbsd-tdep.c: Likewise.
2967         * ppcnbsd-tdep.c: Likewise.
2968         * ppcobsd-tdep.c: Likewise.
2969         * printcmd.c: Likewise.
2970         * procfs.c: Likewise.
2971         * prologue-value.c: Likewise.
2972         * python/py-auto-load.c: Likewise.
2973         * python/py-gdb-readline.c: Likewise.
2974         * ravenscar-thread.c: Likewise.
2975         * regcache.c: Likewise.
2976         * registry.c: Likewise.
2977         * remote-fileio.c: Likewise.
2978         * remote-m32r-sdi.c: Likewise.
2979         * remote-mips.c: Likewise.
2980         * remote-notif.c: Likewise.
2981         * remote-sim.c: Likewise.
2982         * remote.c: Likewise.
2983         * reverse.c: Likewise.
2984         * rs6000-aix-tdep.c: Likewise.
2985         * ser-base.c: Likewise.
2986         * ser-go32.c: Likewise.
2987         * ser-mingw.c: Likewise.
2988         * ser-pipe.c: Likewise.
2989         * ser-tcp.c: Likewise.
2990         * ser-unix.c: Likewise.
2991         * serial.c: Likewise.
2992         * sh-tdep.c: Likewise.
2993         * sh64-tdep.c: Likewise.
2994         * shnbsd-tdep.c: Likewise.
2995         * skip.c: Likewise.
2996         * sol-thread.c: Likewise.
2997         * solib-dsbt.c: Likewise.
2998         * solib-frv.c: Likewise.
2999         * solib-osf.c: Likewise.
3000         * solib-som.c: Likewise.
3001         * solib-spu.c: Likewise.
3002         * solib-target.c: Likewise.
3003         * solib.c: Likewise.
3004         * somread.c: Likewise.
3005         * source.c: Likewise.
3006         * sparc-nat.c: Likewise.
3007         * sparc-sol2-tdep.c: Likewise.
3008         * sparc-tdep.c: Likewise.
3009         * sparc64-tdep.c: Likewise.
3010         * sparc64fbsd-tdep.c: Likewise.
3011         * sparc64nbsd-tdep.c: Likewise.
3012         * sparcnbsd-tdep.c: Likewise.
3013         * spu-linux-nat.c: Likewise.
3014         * spu-multiarch.c: Likewise.
3015         * spu-tdep.c: Likewise.
3016         * stabsread.c: Likewise.
3017         * stack.c: Likewise.
3018         * std-regs.c: Likewise.
3019         * symfile.c: Likewise.
3020         * symmisc.c: Likewise.
3021         * symtab.c: Likewise.
3022         * target.c: Likewise.
3023         * thread.c: Likewise.
3024         * tilegx-linux-nat.c: Likewise.
3025         * tilegx-tdep.c: Likewise.
3026         * top.c: Likewise.
3027         * tracepoint.c: Likewise.
3028         * tui/tui-command.c: Likewise.
3029         * tui/tui-data.c: Likewise.
3030         * tui/tui-disasm.c: Likewise.
3031         * tui/tui-file.c: Likewise.
3032         * tui/tui-layout.c: Likewise.
3033         * tui/tui-out.c: Likewise.
3034         * tui/tui-regs.c: Likewise.
3035         * tui/tui-source.c: Likewise.
3036         * tui/tui-stack.c: Likewise.
3037         * tui/tui-win.c: Likewise.
3038         * tui/tui-windata.c: Likewise.
3039         * tui/tui-winsource.c: Likewise.
3040         * typeprint.c: Likewise.
3041         * ui-file.c: Likewise.
3042         * ui-out.c: Likewise.
3043         * user-regs.c: Likewise.
3044         * utils.c: Likewise.
3045         * v850-tdep.c: Likewise.
3046         * valarith.c: Likewise.
3047         * valops.c: Likewise.
3048         * valprint.c: Likewise.
3049         * value.c: Likewise.
3050         * varobj.c: Likewise.
3051         * vax-tdep.c: Likewise.
3052         * vaxnbsd-tdep.c: Likewise.
3053         * vaxobsd-tdep.c: Likewise.
3054         * windows-nat.c: Likewise.
3055         * xcoffread.c: Likewise.
3056         * xml-support.c: Likewise.
3057         * xstormy16-tdep.c: Likewise.
3058         * xtensa-linux-nat.c: Likewise.
3059
3060 2014-08-07  Gary Benson  <gbenson@redhat.com>
3061
3062         * common/common-defs.h: Include gdb_assert.h.
3063         * aarch64-tdep.c: Do not include gdb_assert.h.
3064         * addrmap.c: Likewise.
3065         * aix-thread.c: Likewise.
3066         * alpha-linux-tdep.c: Likewise.
3067         * alpha-mdebug-tdep.c: Likewise.
3068         * alphanbsd-tdep.c: Likewise.
3069         * amd64-nat.c: Likewise.
3070         * amd64-tdep.c: Likewise.
3071         * amd64bsd-nat.c: Likewise.
3072         * amd64fbsd-nat.c: Likewise.
3073         * amd64fbsd-tdep.c: Likewise.
3074         * amd64nbsd-nat.c: Likewise.
3075         * amd64nbsd-tdep.c: Likewise.
3076         * amd64obsd-nat.c: Likewise.
3077         * amd64obsd-tdep.c: Likewise.
3078         * arch-utils.c: Likewise.
3079         * arm-tdep.c: Likewise.
3080         * armbsd-tdep.c: Likewise.
3081         * auxv.c: Likewise.
3082         * bcache.c: Likewise.
3083         * bfin-tdep.c: Likewise.
3084         * blockframe.c: Likewise.
3085         * breakpoint.c: Likewise.
3086         * bsd-kvm.c: Likewise.
3087         * bsd-uthread.c: Likewise.
3088         * buildsym.c: Likewise.
3089         * c-exp.y: Likewise.
3090         * c-lang.c: Likewise.
3091         * charset.c: Likewise.
3092         * cleanups.c: Likewise.
3093         * cli-out.c: Likewise.
3094         * cli/cli-decode.c: Likewise.
3095         * cli/cli-dump.c: Likewise.
3096         * cli/cli-logging.c: Likewise.
3097         * cli/cli-script.c: Likewise.
3098         * cli/cli-utils.c: Likewise.
3099         * coffread.c: Likewise.
3100         * common/common-utils.c: Likewise.
3101         * common/queue.h: Likewise.
3102         * common/signals.c: Likewise.
3103         * common/vec.h: Likewise.
3104         * complaints.c: Likewise.
3105         * completer.c: Likewise.
3106         * corelow.c: Likewise.
3107         * cp-abi.c: Likewise.
3108         * cp-name-parser.y: Likewise.
3109         * cp-namespace.c: Likewise.
3110         * cp-support.c: Likewise.
3111         * cris-tdep.c: Likewise.
3112         * dbxread.c: Likewise.
3113         * dictionary.c: Likewise.
3114         * doublest.c: Likewise.
3115         * dsrec.c: Likewise.
3116         * dummy-frame.c: Likewise.
3117         * dwarf2-frame-tailcall.c: Likewise.
3118         * dwarf2-frame.c: Likewise.
3119         * dwarf2expr.c: Likewise.
3120         * dwarf2loc.c: Likewise.
3121         * dwarf2read.c: Likewise.
3122         * eval.c: Likewise.
3123         * event-loop.c: Likewise.
3124         * exceptions.c: Likewise.
3125         * expprint.c: Likewise.
3126         * f-valprint.c: Likewise.
3127         * fbsd-nat.c: Likewise.
3128         * findvar.c: Likewise.
3129         * frame-unwind.c: Likewise.
3130         * frame.c: Likewise.
3131         * frv-tdep.c: Likewise.
3132         * gcore.c: Likewise.
3133         * gdb-dlfcn.c: Likewise.
3134         * gdb_bfd.c: Likewise.
3135         * gdbarch.c: Likewise.
3136         * gdbarch.sh: Likewise.
3137         * gdbtypes.c: Likewise.
3138         * gnu-nat.c: Likewise.
3139         * gnu-v3-abi.c: Likewise.
3140         * go-lang.c: Likewise.
3141         * guile/scm-exception.c: Likewise.
3142         * guile/scm-gsmob.c: Likewise.
3143         * guile/scm-lazy-string.c: Likewise.
3144         * guile/scm-math.c: Likewise.
3145         * guile/scm-pretty-print.c: Likewise.
3146         * guile/scm-safe-call.c: Likewise.
3147         * guile/scm-utils.c: Likewise.
3148         * guile/scm-value.c: Likewise.
3149         * h8300-tdep.c: Likewise.
3150         * hppa-hpux-nat.c: Likewise.
3151         * hppa-tdep.c: Likewise.
3152         * hppanbsd-tdep.c: Likewise.
3153         * hppaobsd-tdep.c: Likewise.
3154         * i386-darwin-nat.c: Likewise.
3155         * i386-darwin-tdep.c: Likewise.
3156         * i386-nto-tdep.c: Likewise.
3157         * i386-tdep.c: Likewise.
3158         * i386bsd-nat.c: Likewise.
3159         * i386fbsd-tdep.c: Likewise.
3160         * i386gnu-nat.c: Likewise.
3161         * i386nbsd-tdep.c: Likewise.
3162         * i386obsd-tdep.c: Likewise.
3163         * i387-tdep.c: Likewise.
3164         * ia64-libunwind-tdep.c: Likewise.
3165         * ia64-tdep.c: Likewise.
3166         * inf-ptrace.c: Likewise.
3167         * inf-ttrace.c: Likewise.
3168         * infcall.c: Likewise.
3169         * infcmd.c: Likewise.
3170         * infrun.c: Likewise.
3171         * inline-frame.c: Likewise.
3172         * interps.c: Likewise.
3173         * jv-lang.c: Likewise.
3174         * jv-typeprint.c: Likewise.
3175         * linux-fork.c: Likewise.
3176         * linux-nat.c: Likewise.
3177         * linux-thread-db.c: Likewise.
3178         * m32c-tdep.c: Likewise.
3179         * m32r-linux-nat.c: Likewise.
3180         * m32r-tdep.c: Likewise.
3181         * m68k-tdep.c: Likewise.
3182         * m68kbsd-nat.c: Likewise.
3183         * m68kbsd-tdep.c: Likewise.
3184         * m88k-tdep.c: Likewise.
3185         * machoread.c: Likewise.
3186         * macroexp.c: Likewise.
3187         * macrotab.c: Likewise.
3188         * maint.c: Likewise.
3189         * mdebugread.c: Likewise.
3190         * memory-map.c: Likewise.
3191         * mep-tdep.c: Likewise.
3192         * mi/mi-common.c: Likewise.
3193         * microblaze-tdep.c: Likewise.
3194         * mingw-hdep.c: Likewise.
3195         * mips-linux-nat.c: Likewise.
3196         * mips-linux-tdep.c: Likewise.
3197         * mips-tdep.c: Likewise.
3198         * mips64obsd-tdep.c: Likewise.
3199         * mipsnbsd-tdep.c: Likewise.
3200         * mn10300-linux-tdep.c: Likewise.
3201         * mn10300-tdep.c: Likewise.
3202         * moxie-tdep.c: Likewise.
3203         * mt-tdep.c: Likewise.
3204         * nat/linux-btrace.c: Likewise.
3205         * nat/linux-osdata.c: Likewise.
3206         * nat/linux-ptrace.c: Likewise.
3207         * nat/mips-linux-watch.c: Likewise.
3208         * nios2-linux-tdep.c: Likewise.
3209         * nios2-tdep.c: Likewise.
3210         * objc-lang.c: Likewise.
3211         * objfiles.c: Likewise.
3212         * obsd-nat.c: Likewise.
3213         * opencl-lang.c: Likewise.
3214         * osabi.c: Likewise.
3215         * parse.c: Likewise.
3216         * ppc-linux-nat.c: Likewise.
3217         * ppc-sysv-tdep.c: Likewise.
3218         * ppcfbsd-nat.c: Likewise.
3219         * ppcfbsd-tdep.c: Likewise.
3220         * ppcnbsd-nat.c: Likewise.
3221         * ppcnbsd-tdep.c: Likewise.
3222         * ppcobsd-nat.c: Likewise.
3223         * ppcobsd-tdep.c: Likewise.
3224         * printcmd.c: Likewise.
3225         * procfs.c: Likewise.
3226         * prologue-value.c: Likewise.
3227         * psymtab.c: Likewise.
3228         * python/py-lazy-string.c: Likewise.
3229         * python/py-value.c: Likewise.
3230         * regcache.c: Likewise.
3231         * reggroups.c: Likewise.
3232         * registry.c: Likewise.
3233         * remote-sim.c: Likewise.
3234         * remote.c: Likewise.
3235         * rs6000-aix-tdep.c: Likewise.
3236         * rs6000-tdep.c: Likewise.
3237         * s390-linux-tdep.c: Likewise.
3238         * score-tdep.c: Likewise.
3239         * ser-base.c: Likewise.
3240         * ser-mingw.c: Likewise.
3241         * sh-tdep.c: Likewise.
3242         * sh64-tdep.c: Likewise.
3243         * solib-darwin.c: Likewise.
3244         * solib-spu.c: Likewise.
3245         * solib-svr4.c: Likewise.
3246         * source.c: Likewise.
3247         * sparc-nat.c: Likewise.
3248         * sparc-sol2-tdep.c: Likewise.
3249         * sparc-tdep.c: Likewise.
3250         * sparc64-sol2-tdep.c: Likewise.
3251         * sparc64-tdep.c: Likewise.
3252         * sparc64fbsd-tdep.c: Likewise.
3253         * sparc64nbsd-tdep.c: Likewise.
3254         * sparc64obsd-tdep.c: Likewise.
3255         * sparcnbsd-tdep.c: Likewise.
3256         * sparcobsd-tdep.c: Likewise.
3257         * spu-multiarch.c: Likewise.
3258         * spu-tdep.c: Likewise.
3259         * stabsread.c: Likewise.
3260         * stack.c: Likewise.
3261         * symfile.c: Likewise.
3262         * symtab.c: Likewise.
3263         * target-descriptions.c: Likewise.
3264         * target-memory.c: Likewise.
3265         * target.c: Likewise.
3266         * tic6x-linux-tdep.c: Likewise.
3267         * tic6x-tdep.c: Likewise.
3268         * tilegx-linux-nat.c: Likewise.
3269         * tilegx-tdep.c: Likewise.
3270         * top.c: Likewise.
3271         * tramp-frame.c: Likewise.
3272         * tui/tui-out.c: Likewise.
3273         * tui/tui-winsource.c: Likewise.
3274         * ui-out.c: Likewise.
3275         * user-regs.c: Likewise.
3276         * utils.c: Likewise.
3277         * v850-tdep.c: Likewise.
3278         * valops.c: Likewise.
3279         * value.c: Likewise.
3280         * varobj.c: Likewise.
3281         * vax-nat.c: Likewise.
3282         * xml-syscall.c: Likewise.
3283         * xml-tdesc.c: Likewise.
3284         * xstormy16-tdep.c: Likewise.
3285         * xtensa-linux-nat.c: Likewise.
3286         * xtensa-tdep.c: Likewise.
3287
3288 2014-08-07  Gary Benson  <gbenson@redhat.com>
3289
3290         * common/common-defs.h: Include common-utils.h.
3291         * defs.h: Do not include common-utils.h.
3292         * common/gdb_assert.h: Likewise.
3293         * darwin-nat.h: Likewise.
3294         * nat/linux-btrace.c: Likewise.
3295         * target/waitstatus.h: Likewise.
3296
3297 2014-08-07  Gary Benson  <gbenson@redhat.com>
3298
3299         * common/common-defs.h: Include ptid.h.
3300         * defs.h: Do not include ptid.h.
3301         * inferior.h: Likewise.
3302         * infrun.h: Likewise.
3303         * nat/linux-btrace.h: Likewise.
3304         * nat/linux-osdata.h: Likewise.
3305         * target/waitstatus.h: Likewise.
3306
3307 2014-08-07  Gary Benson  <gbenson@redhat.com>
3308
3309         * common/common-defs.h: Include gdb_locale.h.
3310         * defs.h: Do not include gdb_locale.h.
3311
3312 2014-08-07  Gary Benson  <gbenson@redhat.com>
3313
3314         * common/common-defs.h: Include gdb/signals.h.
3315         * defs.h: Do not include gdb/signals.h.
3316
3317 2014-08-07  Gary Benson  <gbenson@redhat.com>
3318
3319         * common/common-defs.h: Include pathmax.h.
3320         * defs.h: Do not include pathmax.h.
3321
3322 2014-08-07  Gary Benson  <gbenson@redhat.com>
3323
3324         * common/common-defs.h: Include libiberty.h.
3325         * defs.h: Do not include libiberty.h.
3326         * common/queue.h: Likewise.
3327         * cp-name-parser.y: Likewise.
3328         * mi/mi-cmd-catch.c: Likewise.
3329         * python/python.c: Likewise.
3330
3331 2014-08-07  Gary Benson  <gbenson@redhat.com>
3332
3333         * common/common-defs.h: Include ansidecl.h.
3334         * defs.h: Do not include ansidecl.h.
3335         * common/buffer.h: Likewise.
3336         * common/common-utils.h: Likewise.
3337
3338 2014-08-07  Gary Benson  <gbenson@redhat.com>
3339
3340         * common/common-defs.h: Include stddef.h.
3341         * defs.h: Do not include stddef.h.
3342         * common/common-utils.h: Likewise.
3343         * amd64fbsd-nat.c: Likewise.
3344         * bcache.c: Likewise.
3345         * charset.c: Likewise.
3346         * common/buffer.h: Likewise.
3347         * common/vec.h: Likewise.
3348         * i386bsd-nat.c: Likewise.
3349         * nat/linux-btrace.h: Likewise.
3350         * ppcfbsd-nat.c: Likewise.
3351         * ppcnbsd-tdep.h: Likewise.
3352         * ppcobsd-nat.c: Likewise.
3353         * ppcobsd-tdep.h: Likewise.
3354         * python/py-gdb-readline.c: Likewise.
3355
3356 2014-08-07  Gary Benson  <gbenson@redhat.com>
3357
3358         * common/common-defs.h: Include stdarg.h.
3359         * defs.h: Do not include stdarg.h.
3360         * ada-lang.c: Likewise.
3361         * common/common-utils.h: Likewise.
3362         * guile/scm-string.c: Likewise.
3363         * guile/scm-utils.c: Likewise.
3364         * m32c-tdep.c: Likewise.
3365
3366 2014-08-07  Gary Benson  <gbenson@redhat.com>
3367
3368         * common/common-defs.h: Include stdlib.h.
3369         * defs.h: Do not include stdlib.h.
3370         * addrmap.c: Likewise.
3371         * bcache.c: Likewise.
3372         * common/buffer.c: Likewise.
3373         * common/common-utils.c: Likewise.
3374         * cp-name-parser.y: Likewise.
3375         * go32-nat.c: Likewise.
3376         * mn10300-linux-tdep.c: Likewise.
3377         * nat/linux-osdata.c: Likewise.
3378         * tui/tui.c: Likewise.
3379         * windows-nat.c: Likewise.
3380
3381 2014-08-07  Gary Benson  <gbenson@redhat.com>
3382
3383         * common/common-defs.h: Include stdio.h.
3384         * defs.h: Do not include stdio.h.
3385         * ada-lang.c: Likewise.
3386         * common/buffer.c: Likewise.
3387         * common/common-utils.c: Likewise.
3388         * cp-name-parser.y: Likewise.
3389         * gnu-nat.c: Likewise.
3390         * go32-nat.c: Likewise.
3391         * i386gnu-nat.c: Likewise.
3392         * proc-api.c: Likewise.
3393         * proc-events.c: Likewise.
3394         * proc-flags.c: Likewise.
3395         * proc-why.c: Likewise.
3396         * python/python-internal.h: Likewise.
3397         * target-memory.c: Likewise.
3398         * tui/tui-io.c: Likewise.
3399         * tui/tui.c: Likewise.
3400
3401 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
3402
3403         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3404         (scan_dyntag_auxv): Same.
3405
3406 2014-08-06  Yao Qi  <yao@codesourcery.com>
3407
3408         * amd64-linux-nat.c: Remove duplicated include
3409         "x86-linux-nat.h".
3410         * i386-linux-nat.c: Likewise.
3411
3412 2014-08-06  Yao Qi  <yao@codesourcery.com>
3413
3414         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3415         operand" with "Special opcode" in comments.
3416
3417 2014-08-05  Gary Benson  <gbenson@redhat.com>
3418
3419         * interps.c (initialize_interps): Remove prototype.
3420         (interpreter_initialized): Remove static global.
3421         (interp_add): Do not call initialize_interps.
3422         (initialize_interps): Remove function.
3423
3424 2014-08-05  Gary Benson  <gbenson@redhat.com>
3425
3426         * utils.c (vwarning): Remove spurious va_end.
3427
3428 2014-08-05  Alan Modra  <amodra@gmail.com>
3429
3430         * charset.c (convert_between_encodings): Cast result of obstack_base.
3431         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3432         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3433         (read_unwind_info): Use size_t for some locals.
3434         * jit.c (finalize_symtab): Likewise.
3435         * utils.c (hashtab_obstack_allocate): Likewise.
3436         * symmisc.c (print_objfile_statistics): Update format strings.
3437
3438 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3439
3440         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3441         (Changes in GDB 7.8): ... here.
3442
3443 2014-08-04  Tom Tromey  <tromey@redhat.com>
3444
3445         * target.c (set_targetdebug): New function.
3446         (initialize_targets): Pass set_targetdebug when creating "set
3447         debug target".
3448
3449 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3450
3451         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3452         if detecting a variable-sized field that is not the last field.
3453         Fix struct type length computation.
3454
3455 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3456
3457         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3458         Add debug trace.
3459
3460 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3461
3462         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3463         Remove "+ 8" offset in computation of CHAIN_VMA.
3464
3465 2014-07-31  Doug Evans  <dje@google.com>
3466
3467         * inflow.c (child_terminal_inferior): Add comment.
3468         (child_terminal_ours_for_output): Add comment.
3469         (child_terminal_ours): Add comment.
3470         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3471         (linux_nat_terminal_ours): Add comment.
3472
3473 2014-07-31  Gary Benson  <gbenson@redhat.com>
3474
3475         * common/btrace-common.h: Do not include defs.h or server.h.
3476         * nat/mips-linux-watch.h: Likewise.
3477         * gdb-dlfcn.h: Do not include defs.h.
3478         * tracefile.h: Likewise.
3479
3480 2014-07-30  Roland McGrath  <mcgrathr@google.com>
3481
3482         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3483
3484 2014-07-30  Tom Tromey  <tromey@redhat.com>
3485
3486         * bsd-kvm.c (bsd_kvm_open): Constify.
3487         * corelow.c (core_open): Constify.
3488         * ctf.c (ctf_open): Constify.
3489         * dbug-rom.c (dbug_open): Constify.
3490         * exec.c (exec_open): Constify.
3491         * m32r-rom.c (m32r_open, mon2000_open): Constify.
3492         * microblaze-rom.c (picobug_open): Constify.
3493         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3494         Constify.
3495         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3496         * record-btrace.c (record_btrace_open): Constify.
3497         * record-full.c (record_full_core_open_1, record_full_open_1)
3498         (record_full_open): Constify.
3499         * remote-m32r-sdi.c (m32r_open): Constify.
3500         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3501         (rockhopper_open, lsi_open): Constify.
3502         * remote-sim.c (gdbsim_open): Constify.
3503         * remote.c (remote_open, extended_remote_open, remote_open_1):
3504         Constify.
3505         * target.h (struct target_ops) <to_open>: Make "arg" const.
3506         * tracefile-tfile.c (tfile_open): Constify.
3507
3508 2014-07-30  Tom Tromey  <tromey@redhat.com>
3509
3510         * breakpoint.c (map_breakpoint_numbers): Update.
3511         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
3512         (get_number_const): New function.
3513         (get_number): Rewrite using get_number_const.
3514         (init_number_or_range): Make "string" const.
3515         (number_is_in_list): Make "list" const.
3516         * cli/cli-utils.h (get_number_const): Declare.
3517         (struct get_number_or_range_state) <string, end_ptr>: Now const.
3518         (init_number_or_range, number_is_in_list): Update.
3519         * printcmd.c (map_display_numbers): Update.
3520         * value.c (value_from_history_ref): Constify.
3521         * value.h (value_from_history_ref): Update.
3522
3523 2014-07-30  Tom Tromey  <tromey@redhat.com>
3524
3525         * corefile.c (hook_type, call_extra_exec_file_hooks)
3526         (specify_exec_file_hook): Constify.
3527         * exec.c (exec_file_attach): Make "filename" const.
3528         * gdbcore.h (deprecated_exec_file_display_hook)
3529         (specify_exec_file_hook, exec_file_attach): Constify.
3530         * main.c (captured_main): Use catch_command_errors_const.
3531
3532 2014-07-30  Tom Tromey  <tromey@redhat.com>
3533
3534         * target.c (open_target): New function.
3535         (add_target_with_completer, add_deprecated_target_alias): Use
3536         set_cmd_sfunc, set_cmd_context.
3537         (debug_to_open): Remove.
3538         (setup_target_debug): Update.
3539
3540 2014-07-30  Yao Qi  <yao@codesourcery.com>
3541
3542         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3543         comments.
3544         * parse.c (exp_iterate): Update comments.
3545
3546 2014-07-30  Gary Benson  <gbenson@redhat.com>
3547
3548         * common/common-defs.h: New file.
3549         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3550         * defs.h: Include common-defs.h.
3551         Do not include config.h or build-gnulib/config.h.
3552
3553 2014-07-30  Gary Benson  <gbenson@redhat.com>
3554
3555         * common/common-utils.h: Do not include config.h.
3556         * nat/linux-btrace.h: Likewise.
3557
3558 2014-07-30  Gary Benson  <gbenson@redhat.com>
3559
3560         * btrace.c: Include defs.h.
3561         * common/ptid.c: Include defs.h or server.h as appropriate.
3562         * nat/mips-linux-watch.c: Likewise.
3563
3564 2014-07-29  Tom Tromey  <tromey@redhat.com>
3565
3566         * target.c (target_is_pushed): Simplify.
3567
3568 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
3569
3570         GDB 7.8 released.
3571
3572 2014-07-29  Yao Qi  <yao@codesourcery.com>
3573
3574         PR gdb/17206
3575         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3576
3577 2014-07-28  Doug Evans  <xdje42@gmail.com>
3578
3579         PR guile/17203
3580         * guile/scm-param.c (pascm_parameter_defined_p): New function.
3581         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
3582         parameters.
3583
3584 2014-07-28  Will Newton  <will.newton@linaro.org>
3585
3586         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3587         (THUMB2_SET_R7_SIGRETURN2): Likewise.
3588         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3589         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3590         (THUMB2_EABI_SYSCALL): Likewise.
3591         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3592         struct tramp_frame.
3593         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3594         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3595
3596 2014-07-27  Doug Evans  <xdje42@gmail.com>
3597
3598         * guile/scm-param.c (pascm_print_param_smob): Fix output.
3599
3600 2014-07-27  Doug Evans  <xdje42@gmail.com>
3601
3602         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3603
3604 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3605             Doug Evans  <xdje42@gmail.com>
3606
3607         PR guile/17146
3608         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3609         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3610         * configure.ac: Try to use guild to compile an scm file, if it fails
3611         then disable guile support.
3612         * configure: Regenerate.
3613         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3614         GUILE_FILE_LIST.
3615         (GUILE_COMPILED_FILES): New variable.
3616         (GUILE_FILES) Update.
3617         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3618         (stamp-guile): Compile scm files.
3619         * guile/guile.c (boot_guile_support): New function.
3620         (standard_throw_args_p): New function.
3621         (print_standard_throw_error, print_throw_error): New functions.
3622         (handle_boot_error): New function.
3623         (initialize_scheme_side): Rewrite to call boot_guile_support.
3624         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
3625         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3626
3627 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3628             Doug Evans  <xdje42@gmail.com>
3629
3630         PR guile/17146
3631         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3632         * guile/lib/gdb/support.scm: New file.
3633         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3634         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3635         All uses updated.
3636         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3637         All uses updated.
3638         (%assert-type): Ditto, and renamed to assert-type.
3639         (%exception-print-style): Delete.
3640
3641 2014-07-26  Doug Evans  <xdje42@gmail.com>
3642
3643         PR build/17105
3644         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3645         * configure: Regenerate.
3646         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3647         PYTHON_FILES.
3648         (PYTHON_FILES): New variable.
3649         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3650         (GUILE_FILES): New variable.
3651         (stamp-python, install-python, uninstall-python): Handle empty
3652         file list.
3653         (stamp-guile, install-guile, uninstall-guile): Ditto.
3654
3655 2014-07-26  Doug Evans  <xdje42@gmail.com>
3656
3657         PR guile/17177
3658         * guile/lib/gdb.scm (pretty-printers): Export.
3659         (set-pretty-printers!): Export.
3660         * guile/lib/gdb/printing.scm (gdb module): Update.
3661         (prepend-pretty-printer!, append-pretty-printer!): Update.
3662         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3663         (pretty_printer_list_var): Delete.
3664         (pretty_printer_list): New static global.
3665         (gdbscm_pretty_printers): New function.
3666         (gdbscm_set_pretty_printers_x): New function.
3667         (ppscm_find_pretty_printer_from_gdb): Update.
3668         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3669         (gdbscm_initialize_pretty_printers): Update.
3670
3671 2014-07-26  Doug Evans  <xdje42@gmail.com>
3672
3673         PR 17185
3674         * configure.ac: Add check for header gc/gc.h.
3675         Add check for function setenv.
3676         * configure: Regenerate.
3677         * config.in: Regenerate.
3678         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3679
3680 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
3681
3682         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3683         variation in gdbarch matching.
3684
3685 2014-07-25  Tom Tromey  <tromey@redhat.com>
3686
3687         * exec.c (using_exec_ops): Remove.
3688         (exec_close_1): Update.  Remove extraneous block, reindent.
3689         (add_target_sections): Use target_is_pushed.
3690
3691 2014-07-25  Pedro Alves  <palves@redhat.com>
3692
3693         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3694         * monitor.c (monitor_create_inferior): Likewise.
3695         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3696         * remote-sim.c (gdbsim_create_inferior): Likewise.
3697         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3698         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3699         * windows-nat.c (do_initial_windows_stuff): Likewise.
3700
3701 2014-07-25  Pedro Alves  <palves@redhat.com>
3702
3703         * NEWS: Mention signal passing and "signal" command changes.
3704         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3705         comment.
3706         * breakpoint.c (until_break_command): Adjust clear_proceed_status
3707         call.
3708         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3709         * infcmd.c (proceed_thread_callback, continue_1, step_once)
3710         (jump_command): Adjust clear_proceed_status call.
3711         (signal_command): Warn if other thread that are resumed have
3712         signals that will be delivered.  Adjust clear_proceed_status call.
3713         (until_next_command, finish_command)
3714         (proceed_after_attach_callback, attach_command_post_wait)
3715         (attach_command): Adjust clear_proceed_status call.
3716         * infrun.c (proceed_after_vfork_done): Likewise.
3717         (proceed_after_attach_callback): Adjust comment.
3718         (clear_proceed_status_thread): Clear stop_signal if not in pass
3719         state.
3720         (clear_proceed_status_callback): Delete.
3721         (clear_proceed_status): New 'step' parameter.  Only clear the
3722         proceed status of threads the command being prepared is about to
3723         resume.
3724         (proceed): If passed in an explicit signal, override stop_signal
3725         with it.  Don't pass the last stop signal to the thread we're
3726         resuming.
3727         (init_wait_for_inferior): Adjust clear_proceed_status call.
3728         (switch_back_to_stepped_thread): Clear the signal if it should not
3729         be passed.
3730         * infrun.h (clear_proceed_status): New 'step' parameter.
3731         (user_visible_resume_ptid): Add comment.
3732         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3733         signal is in pass state.
3734         * remote.c (append_pending_thread_resumptions): Likewise.
3735         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3736
3737 2014-07-25  Tom Tromey  <tromey@redhat.com>
3738
3739         * target.h (target_stopped_data_address)
3740         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
3741         parentheses.
3742
3743 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
3744
3745         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3746         comments.
3747         (avr_pointer_to_address): Likewise.
3748
3749 2014-07-24  Tom Tromey  <tromey@redhat.com>
3750
3751         * monitor.c (compile_pattern): Update.
3752         * target.h (struct target_ops) <to_shortname, to_longname,
3753         to_doc>: Now const.
3754
3755 2014-07-24  Tom Tromey  <tromey@redhat.com>
3756
3757         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3758         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3759         (add_info_alias, add_com): Make "doc" const.
3760         (print_doc_line): Make "str" const.
3761         (delete_cmd): Update.
3762         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3763         (print_doc_line): Update.
3764         * cli/cli-script.c (document_command): Update.
3765         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3766         (add_com, add_info, add_info_alias): Update.
3767         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3768         * python/py-cmd.c (cmdpy_destroyer): Update.
3769
3770 2014-07-24  Tom Tromey  <tromey@redhat.com>
3771
3772         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3773         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3774         (help_cmd_list): Constify.
3775         (lookup_cmd): Update.
3776         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3777         const.
3778         (help_cmd_list, apropos_cmd): Update.
3779         * cli/cli-script.c (show_user): Update.
3780         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3781         * cli/cli-setshow.h (cmd_show_list): Update.
3782         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3783         (cmd_show_list): Update.
3784         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3785         * python/py-cmd.c (cmdpy_destroyer): Update.
3786
3787 2014-07-24  Tom Tromey  <tromey@redhat.com>
3788
3789         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3790         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3791         const.
3792         * command.h (deprecate_cmd): Update.
3793         * maint.c (maintenance_do_deprecate): Add casts.
3794
3795 2014-07-24  Tom Tromey  <tromey@redhat.com>
3796
3797         * cli/cli-decode.c (help_cmd): Make parameter "const".
3798         * cli/cli-decode.h (help_cmd): Update.
3799
3800 2014-07-24  Tom Tromey  <tromey@redhat.com>
3801
3802         * stack.c (up_silently_base, down_silently_base): Make argument
3803         const.
3804
3805 2014-07-24  Tom Tromey  <tromey@redhat.com>
3806
3807         * solib.c (solib_add): Make "pattern" const.
3808         * solib.h (solib_add): Update.
3809
3810 2014-07-24  Tom Tromey  <tromey@redhat.com>
3811
3812         * remote.c (remote_serial_open, print_packet, putpkt)
3813         (putpkt_binary): Constify.
3814         * remote.h (putpkt): Update.
3815
3816 2014-07-24  Tom Tromey  <tromey@redhat.com>
3817
3818         * monitor.c (monitor_open): Make "args" const.
3819         * monitor.h (monitor_open): Update.
3820
3821 2014-07-24  Tom Tromey  <tromey@redhat.com>
3822
3823         * maint.c (match_bfd_flags): Make "string" const.
3824         (print_bfd_section_info): Remove casts.
3825         (print_objfile_section_info): Make "string" const.
3826
3827 2014-07-24  Tom Tromey  <tromey@redhat.com>
3828
3829         * inf-child.c (inf_child_open_target): Make "arg" const.
3830         * inf-child.h (inf_child_open_target): Update.
3831
3832 2014-07-24  Tom Tromey  <tromey@redhat.com>
3833
3834         * environ.c (unset_in_environ): Make "var" const.
3835         * environ.h (unset_in_environ): Update.
3836
3837 2014-07-24  Tom Tromey  <tromey@redhat.com>
3838
3839         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3840         Make "cmd" const.
3841         (scan_filename_with_cleanup): Likewise.
3842         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3843         Make arguments const.
3844         (restore_command): Update.
3845
3846 2014-07-24  Pedro Alves  <palves@redhat.com>
3847
3848         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3849
3850 2014-07-24  Tom Tromey  <tromey@redhat.com>
3851             Gary Benson  <gbenson@redhat.com>
3852
3853         * nat/linux-ptrace.c (additional_flags): New global.
3854         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3855         additional_flags; don't check GDBSERVER.
3856         (linux_ptrace_set_additional_flags): New function.
3857         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3858         Declare.
3859         * linux-nat.c (_initialize_linux_nat): Call
3860         linux_ptrace_set_additional_flags.
3861
3862 2014-07-24  Tom Tromey  <tromey@redhat.com>
3863
3864         * make-target-delegates (munge_type, write_debugmethod): New
3865         functions.
3866         (debug_names): New global.
3867         ($TARGET_DEBUG_PRINTER): New global.
3868         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3869         name.
3870         Write debug methods.  Generate init_debug_target.
3871         * target-debug.h: New file.
3872         * target-delegates.c: Rebuild.
3873         * target.c: Include target-debug.h.
3874         (debug_target): Hoist definition.
3875         (target_kill, target_get_section_table, target_memory_map)
3876         (target_flash_erase, target_flash_done, target_detach)
3877         (target_disconnect, target_wait, target_resume)
3878         (target_pass_signals, target_program_signals, target_follow_fork)
3879         (target_mourn_inferior, target_search_memory)
3880         (target_thread_address_space, target_close)
3881         (target_find_new_threads, target_core_of_thread)
3882         (target_verify_memory, target_insert_mask_watchpoint)
3883         (target_remove_mask_watchpoint): Remove targetdebug code.
3884         (debug_to_post_attach, debug_to_prepare_to_store)
3885         (debug_to_files_info, debug_to_insert_breakpoint)
3886         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3887         (debug_to_region_ok_for_hw_watchpoint)
3888         (debug_to_can_accel_watchpoint_condition)
3889         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3890         (debug_to_watchpoint_addr_within_range)
3891         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3892         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3893         (debug_to_terminal_init, debug_to_terminal_inferior)
3894         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3895         (debug_to_terminal_save_ours, debug_to_terminal_info)
3896         (debug_to_load, debug_to_post_startup_inferior)
3897         (debug_to_insert_fork_catchpoint)
3898         (debug_to_remove_fork_catchpoint)
3899         (debug_to_insert_vfork_catchpoint)
3900         (debug_to_remove_vfork_catchpoint)
3901         (debug_to_insert_exec_catchpoint)
3902         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3903         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3904         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3905         (setup_target_debug): Call init_debug_target.
3906         * target.h (TARGET_DEBUG_PRINTER): New macro.
3907         (struct target_ops) <to_resume, to_wait, to_pass_signals,
3908         to_program_signals>: Use TARGET_DEBUG_PRINTER.
3909
3910 2014-07-24  Gary Benson  <gbenson@redhat.com>
3911
3912         * exceptions.h (throw_vfatal): Renamed to...
3913         (throw_vquit): New declaration.
3914         (throw_quit): Likewise.
3915         * exceptions.c (throw_vfatal): Renamed to...
3916         (throw_vquit): New function.
3917         (throw_quit): Likewise.
3918         (throw_error): Call throw_verror rather than throw_it.
3919         * utils.h (vfatal): Removed.
3920         (fatal): Likewise.
3921         * utils.c (vfatal): Removed.
3922         (fatal): Likewise.
3923         (internal_verror): Replaced call to fatal with call to throw_quit.
3924         (quit): Replaced calls to fatal with calls to throw_quit.
3925
3926 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
3927
3928         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3929         target_read_code.
3930
3931 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
3932
3933         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3934         less than zero in conditional expression.
3935
3936 2014-07-23  Tom Tromey  <tromey@redhat.com>
3937
3938         * make-target-delegates ($ARGS_PART): Match trailing close paren.
3939         ($INTRO_PART): Don't match whitespace.
3940         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
3941         argument matching.
3942         ($METHOD): Add $METHOD_TRAILER.
3943         (trim): Rewrite.
3944         (scan_target_h): New sub.
3945         Change main loop not to collect state.
3946         * target-delegates.c: Rebuild.
3947
3948 2014-07-23  Gary Benson  <gbenson@redhat.com>
3949
3950         * cp-support.c (gdb_demangle): Fix build on systems without
3951         sigaltstack.
3952
3953 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3954
3955         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3956         for reference entry value target data value.
3957
3958 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3959
3960         * stack.c (read_frame_arg): Verify value_optimized_out before calling
3961         value_available_contents_eq.
3962
3963 2014-07-22  Pedro Alves  <palves@redhat.com>
3964
3965         * value.c (allocate_optimized_out_value): Don't mark value as
3966         non-lazy.
3967
3968 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
3969
3970         * MAINTAINERS (Write After Approval): Update my email address.
3971
3972 2014-07-20  Doug Evans  <dje@google.com>
3973
3974         PR server/17147
3975         * remote.c (putpkt_binary): Add text to error message.
3976
3977 2014-07-20  Yao Qi  <yao@codesourcery.com>
3978
3979         * eval.c: Remove "Chill" from comments.
3980         * gdbtypes.h: Likewise.
3981         * symtab.h: Likewise.
3982
3983 2014-07-20  Yao Qi  <yao@codesourcery.com>
3984
3985         * std-operator.def: Update comments to TERNOP_SLICE.
3986
3987 2014-07-20  Yao Qi  <yao@codesourcery.com>
3988
3989         * std-operator.def: Remove BINOP_RANGE.
3990         * breakpoint.c (watchpoint_exp_is_const): Update.
3991         * expprint.c (dump_subexp_body_standard): Likewise.
3992         * eval.c (init_array_element): Remove dead code.
3993         (evaluate_subexp_standard): Likewise.
3994
3995 2014-07-20  Yao Qi  <yao@codesourcery.com>
3996
3997         * std-operator.def: Remove BINOP_IN.
3998         * breakpoint.c (watchpoint_exp_is_const): Update.
3999         * eval.c (evaluate_subexp_standard): Likewise.
4000         * expprint.c (dump_subexp_body_standard): Likewise.
4001
4002 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
4003
4004         * microblaze-tdep.c (microblaze_register_names): Add
4005         the rshr and rslr register names.
4006         (microblaze_gdbarch_init): Use of tdesc_has_registers.
4007         Use of tdesc_find_feature. Use of tdesc_data_alloc.
4008         Use of tdesc_numbered_register. Use of
4009         microblaze_register_g_packet_guesses. Use of
4010         tdesc_use_registers. Use of set_gdbarch_register_type.
4011         (microblaze_register_g_packet_guesses): New.
4012         * microblaze-tdep.h (microblaze_reg_num): Add
4013         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4014         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4015         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4016         * features/microblaze-core.xml: New file.
4017         * features/microblaze-stack-protect.xml: New file.
4018         * features/microblaze-with-stack-protect.c: New file.
4019         * features/microblaze-with-stack-protect.xml: New file.
4020         * features/microblaze.xml: New file.
4021         * features/microblaze.c: New file.
4022         * features/Makefile (microblaze-with-stack-protect): Add
4023         microblaze-with-stack-protect microblaze and microblaze-expedite.
4024         * regformats/microblaze-with-stack-protect.dat: New file.
4025         * regformats/microblaze.dat: New file.
4026         * doc/gdb.texinfo (MicroBlaze Features): Added.
4027
4028 2014-07-18  Tom Tromey  <tromey@redhat.com>
4029
4030         * exec.c (exec_ops): Now static.
4031         * exec.h (exec_ops): Don't declare.
4032
4033 2014-07-18  Tom Tromey  <tromey@redhat.com>
4034
4035         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4036         to find_target_beneath.
4037         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4038         find_target_beneath.
4039         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4040
4041 2014-07-18  Tom Tromey  <tromey@redhat.com>
4042
4043         PR gdb/17130:
4044         * utils.c (quit): Use target_supports_terminal_ours.
4045         * target.h (target_supports_terminal_ours): Declare.
4046         * target.c (target_supports_delete_record): Don't check
4047         to_delete_record against NULL.
4048         (target_supports_terminal_ours): New function.
4049
4050 2014-07-18  Tom Tromey  <tromey@redhat.com>
4051
4052         PR gdb/17130:
4053         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4054         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4055         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4056         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4057         * windows-nat.c (windows_xfer_partial): Always delegate.
4058         * record-btrace.c (record_btrace_xfer_partial): Simplify
4059         delegation.
4060         (record_btrace_fetch_registers, record_btrace_store_registers)
4061         (record_btrace_prepare_to_store, record_btrace_resume)
4062         (record_btrace_wait, record_btrace_find_new_threads)
4063         (record_btrace_thread_alive): Likewise.
4064         * procfs.c (procfs_xfer_partial): Always delegate.
4065         * corelow.c (core_xfer_partial): Always delegate.
4066         * sol-thread.c (sol_find_new_threads): Simplify delegation.
4067
4068 2014-07-18  Tom Tromey  <tromey@redhat.com>
4069
4070         * exec.c (exec_make_note_section): Move earlier.
4071
4072 2014-07-17  Doug Evans  <dje@google.com>
4073
4074         PR gdb/17170
4075         * maint.c (count_symtabs_and_blocks): Handle NULL
4076         current_program_space.
4077         (report_command_stats): Check global enabled flag in addition to
4078         recorded enabled flag.
4079         (make_command_stats_cleanup): Handle msg_type == 0, startup.
4080
4081 2014-07-16  Pedro Alves  <palves@redhat.com>
4082
4083         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4084
4085 2014-07-16  Tom Tromey  <tromey@redhat.com>
4086
4087         * target.h (struct target_ops) <to_delete_record>: Reformat
4088         comment.
4089
4090 2014-07-16  Tom Tromey  <tromey@redhat.com>
4091
4092         * target-delegates.c: Rebuild.
4093
4094 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
4095
4096         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4097         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4098         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4099         (avr_pointer_to_address): Likewise.
4100         (avr_address_class_type_flags): New function.
4101         (avr_address_class_type_flags_to_name): Likewise.
4102         (avr_address_class_name_to_type_flags): Likewise.
4103         (avr_gdbarch_init): Set address_class_type_flags,
4104         address_class_type_flags_to_name and
4105         address_class_name_to_type_flags.
4106
4107 2014-07-15  Pedro Alves  <palves@redhat.com>
4108
4109         * linux-nat.c (kill_callback): Save errno and work with saved
4110         copy.
4111
4112 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
4113
4114         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4115
4116 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4117
4118         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4119         breakpoint support correctly.
4120
4121 2014-07-14  Pedro Alves  <palves@redhat.com>
4122
4123         * utils.c (prompt_for_continue): Call target_terminal_ours.
4124
4125 2014-07-14  Pedro Alves  <palves@redhat.com>
4126
4127         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4128         catch_errors.  Don't re-enable stdin or notify observers where,
4129         and rethrow error.
4130         (fetch_inferior_event_wrapper): Delete.
4131
4132 2014-07-14  Pedro Alves  <palves@redhat.com>
4133
4134         PR gdb/17072
4135         * top.c: Include "inf-loop.h".
4136         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4137         field.
4138         (gdb_readline_wrapper_cleanup): Make the target async again, if it
4139         was async before.
4140         (gdb_readline_wrapper): Store whether the target is async, and
4141         make it sync.
4142
4143 2014-07-14  Pedro Alves  <palves@redhat.com>
4144
4145         PR gdb/17072
4146         * top.c (gdb_readline_wrapper_line): Tweak comment.
4147         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4148         the input handler callback.
4149
4150 2014-07-14  Pedro Alves  <palves@redhat.com>
4151
4152         PR gdb/17072
4153         * main.c: Include event-top.h.
4154         (handle_command_errors): New function.
4155         (catch_command_errors, catch_command_errors_const): Use it.
4156
4157 2014-07-14  Pedro Alves  <palves@redhat.com>
4158
4159         * exceptions.c (catch_command_errors, catch_command_errors_const):
4160         Moved to main.c.
4161         * exceptions.h (catch_command_errors_ftype)
4162         (catch_command_errors_const_ftype): Moved to main.c.
4163         (catch_command_errors, catch_command_errors_const): Delete
4164         declarations.
4165         * main.c (catch_command_errors_ftype)
4166         (catch_command_errors_const_ftype): Moved here from exceptions.h.
4167         (catch_command_errors, catch_command_errors_const)): Moved here
4168         from exceptions.c and make static.
4169
4170 2014-07-14  Pedro Alves  <palves@redhat.com>
4171
4172         * exceptions.c (print_any_exception): Delete.
4173         (catch_exceptions_with_msg): Use exception_print instead of
4174         print_any_exception.
4175         (catch_errors): Use exception_fprintf instead of
4176         print_any_exception.
4177         (catch_command_errors, catch_command_errors_const): Use
4178         exception_print instead of print_any_exception.
4179
4180 2014-07-14  Pedro Alves  <palves@redhat.com>
4181
4182         * infcall.c (run_inferior_call): Set 'sync_execution' while
4183         running the inferior call.
4184
4185 2014-07-14  Pedro Alves  <palves@redhat.com>
4186
4187         * value.c (value_contents_equal): Delete function.
4188         * value.h (value_contents_equal): Delete declaration.
4189
4190 2014-07-14  Tom Tromey  <tromey@redhat.com>
4191
4192         PR exp/17106:
4193         * gdbtypes.c (is_dynamic_type_internal): New function, from
4194         is_dynamic_type.
4195         (is_dynamic_type): Rewrite.
4196         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4197         (resolve_dynamic_struct): Likewise.
4198         (resolve_dynamic_type_internal): New function, from
4199         resolve_dynamic_type.
4200         (resolve_dynamic_type): Rewrite.
4201
4202 2014-07-14  Tom Tromey  <tromey@redhat.com>
4203
4204         * target.c (target_require_runnable): Also check record_stratum.
4205         Update comment.
4206
4207 2014-07-11  Yao Qi  <yao@codesourcery.com>
4208
4209         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4210         thumb_instruction_restores_sp return true.
4211
4212 2014-07-11  Yao Qi  <yao@codesourcery.com>
4213
4214         * arm-tdep.c (thumb_instruction_restores_sp): New function.
4215         (thumb_in_function_epilogue_p): Call
4216         thumb_instruction_restores_sp.
4217
4218 2014-07-11  Yao Qi  <yao@codesourcery.com>
4219
4220         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4221         'add sp, #imm'.
4222         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4223
4224 2014-07-11  Gary Benson  <gbenson@redhat.com>
4225
4226         * amd64-linux-nat.c (gdbcore.h): Remove include.
4227         (regset.h): Likewise.
4228         (nat/linux-btrace.h): Likewise.
4229         (btrace.h): Likewise.
4230         (gdb_assert.h): Likewise.
4231         (string.h): Likewise.
4232         (sys/uio.h): Likewise.
4233         (sys/debugreg.h): Likewise.
4234         (sys/syscall.h): Likewise.
4235         (sys/procfs.h): Likewise.
4236         (sys/user.h): Likewise.
4237         (asm/ptrace.h): Likewise.
4238         (i386-nat.h): Likewise.
4239         * i386-linux-nat.c (i386-nat.h): Likewise.
4240         (regset.h): Likewise.
4241         (target.h): Likewise.
4242         (linux-nat.h): Likewise.
4243         (nat/linux-btrace.h): Likewise.
4244         (btrace.h): Likewise.
4245         (gdb_assert.h): Likewise.
4246         (string.h): Likewise.
4247         (sys/uio.h): Likewise.
4248         (sys/user.h): Likewise.
4249         (sys/procfs.h): Likewise.
4250         (sys/reg.h): Likewise.
4251         (sys/debugreg.h): Likewise.
4252         (ORIG_EAX): Remove definition.
4253
4254 2014-07-11  Gary Benson  <gbenson@redhat.com>
4255
4256         * i386-linux-nat.h: New file.
4257         * x86-linux-nat.h: Likewise.
4258         * x86-linux-nat.c: Likewise.
4259         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4260         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4261         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4262         * amd64-linux-nat.c (x86-linux-nat.h): New include.
4263         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4264         (PTRACE_SETREGSET): Likewise.
4265         (arch_lwp_info): Now in x86-linux-nat.c.
4266         (have_ptrace_getregset): Now in x86-linux-nat.h.
4267         (x86_linux_dr_get): Now in x86-linux-nat.c.
4268         (x86_linux_dr_set): Likewise.
4269         (x86_linux_dr_get_addr): Likewise.
4270         (x86_linux_dr_get_control): Likewise.
4271         (x86_linux_dr_get_status): Likewise.
4272         (update_debug_registers_callback): Likewise.
4273         (x86_linux_dr_set_control): Likewise.
4274         (x86_linux_dr_set_addr): Likewise.
4275         (x86_linux_prepare_to_resume): Likewise.
4276         (x86_linux_new_thread): Likewise.
4277         (x86_linux_new_fork): Likewise.
4278         (x86_linux_get_thread_area): Likewise.
4279         (super_post_startup_inferior): Likewise.
4280         (x86_linux_child_post_startup_inferior): Likewise.
4281         (AMD64_LINUX_USER64_CS): Likewise.
4282         (AMD64_LINUX_X32_DS): Likewise.
4283         (x86_linux_read_description): Likewise.
4284         (x86_linux_enable_btrace): Likewise.
4285         (x86_linux_disable_btrace): Likewise.
4286         (x86_linux_teardown_btrace): Likewise.
4287         (x86_linux_read_btrace): Likewise.
4288         (x86_linux_create_target): Likewise.
4289         (x86_linux_add_target): Likewise.
4290         * i386-linux-nat.c (x86-linux-nat.h): New include.
4291         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4292         (PTRACE_SETREGSET): Likewise.
4293         (arch_lwp_info): Now in x86-linux-nat.c.
4294         (have_ptrace_getregset): Now in x86-linux-nat.h.
4295         (x86_linux_dr_get): Now in x86-linux-nat.c.
4296         (x86_linux_dr_set): Likewise.
4297         (x86_linux_dr_get_addr): Likewise.
4298         (x86_linux_dr_get_control): Likewise.
4299         (x86_linux_dr_get_status): Likewise.
4300         (update_debug_registers_callback): Likewise.
4301         (x86_linux_dr_set_control): Likewise.
4302         (x86_linux_dr_set_addr): Likewise.
4303         (x86_linux_prepare_to_resume): Likewise.
4304         (x86_linux_new_thread): Likewise.
4305         (x86_linux_new_fork): Likewise.
4306         (x86_linux_get_thread_area): Likewise.
4307         (super_post_startup_inferior): Likewise.
4308         (x86_linux_child_post_startup_inferior): Likewise.
4309         (AMD64_LINUX_USER64_CS): Likewise.
4310         (AMD64_LINUX_X32_DS): Likewise.
4311         (x86_linux_read_description): Likewise.
4312         (x86_linux_enable_btrace): Likewise.
4313         (x86_linux_disable_btrace): Likewise.
4314         (x86_linux_teardown_btrace): Likewise.
4315         (x86_linux_read_btrace): Likewise.
4316         (x86_linux_create_target): Likewise.
4317         (x86_linux_add_target): Likewise.
4318
4319 2014-07-11  Gary Benson  <gbenson@redhat.com>
4320
4321         * amd64-linux-nat.c: Comment and whitespace changes.
4322         * i386-linux-nat.c: Comment and whitespace changes.
4323
4324 2014-07-11  Gary Benson  <gbenson@redhat.com>
4325
4326         * amd64-linux-nat.c (x86_linux_create_target): New function.
4327         (x86_linux_add_target): Likewise.
4328         (_initialize_amd64_linux_nat): Delegate to the above new functions.
4329         * i386-linux-nat.c (x86_linux_create_target): New function.
4330         (x86_linux_add_target): Likewise.
4331         (_initialize_i386_linux_nat): Delegate to the above new functions.
4332
4333 2014-07-11  Gary Benson  <gbenson@redhat.com>
4334
4335         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4336         (ps_get_thread_area): Delegate to the above in 32-bit mode.
4337         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4338         (ps_get_thread_area): Delegate to the above.
4339
4340 2014-07-11  Gary Benson  <gbenson@redhat.com>
4341
4342         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4343         x86_linux_read_description.  All uses updated.  amd64-specific
4344         code conditionalized.  Conditionalized i386-specific code added.
4345         Redundant cast removed.
4346         * i386-linux-nat.c (i386_linux_read_description): Renamed to
4347         x86_linux_read_description.  All uses updated.  i386-specific
4348         code conditionalized.  Conditionalized amd64-specific code added.
4349         One sizeof replaced with the actual type it is describing.
4350
4351 2014-07-11  Gary Benson  <gbenson@redhat.com>
4352
4353         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4354         x86_linux_dr_get.  All uses updated.
4355         (amd64_linux_dr_set): Renamed to
4356         x86_linux_dr_set.  All uses updated.
4357         (amd64_linux_dr_get_addr): Renamed to
4358         x86_linux_dr_get_addr.  All uses updated.
4359         (amd64_linux_dr_get_control): Renamed to
4360         x86_linux_dr_get_control.  All uses updated.
4361         (amd64_linux_dr_get_status): Renamed to
4362         x86_linux_dr_get_status.  All uses updated.
4363         (amd64_linux_dr_set_control): Renamed to
4364         x86_linux_dr_set_control.  All uses updated.
4365         (amd64_linux_dr_set_addr): Renamed to
4366         x86_linux_dr_set_addr.  All uses updated.
4367         (amd64_linux_prepare_to_resume): Renamed to
4368         x86_linux_prepare_to_resume.  All uses updated.
4369         (amd64_linux_new_thread): Renamed to
4370         x86_linux_new_thread.  All uses updated.
4371         (amd64_linux_new_fork): Renamed to
4372         x86_linux_new_fork.  All uses updated.
4373         (amd64_linux_child_post_startup_inferior): Renamed to
4374         x86_linux_child_post_startup_inferior.  All uses updated.
4375         (amd64_linux_enable_btrace): Renamed to
4376         x86_linux_enable_btrace.  All uses updated.
4377         (amd64_linux_disable_btrace): Renamed to
4378         x86_linux_disable_btrace.  All uses updated.
4379         (amd64_linux_teardown_btrace): Renamed to
4380         x86_linux_teardown_btrace.  All uses updated.
4381         (amd64_linux_read_btrace): Renamed to
4382         x86_linux_read_btrace.  All uses updated.
4383         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4384         x86_linux_dr_get.  All uses updated.
4385         (i386_linux_dr_set): Renamed to
4386         x86_linux_dr_set.  All uses updated.
4387         (i386_linux_dr_get_addr): Renamed to
4388         x86_linux_dr_get_addr.  All uses updated.
4389         (i386_linux_dr_get_control): Renamed to
4390         x86_linux_dr_get_control.  All uses updated.
4391         (i386_linux_dr_get_status): Renamed to
4392         x86_linux_dr_get_status.  All uses updated.
4393         (i386_linux_dr_set_control): Renamed to
4394         x86_linux_dr_set_control.  All uses updated.
4395         (i386_linux_dr_set_addr): Renamed to
4396         x86_linux_dr_set_addr.  All uses updated.
4397         (i386_linux_prepare_to_resume): Renamed to
4398         x86_linux_prepare_to_resume.  All uses updated.
4399         (i386_linux_new_thread): Renamed to
4400         x86_linux_new_thread.  All uses updated.
4401         (i386_linux_new_fork): Renamed to
4402         x86_linux_new_fork.  All uses updated.
4403         (i386_linux_child_post_startup_inferior): Renamed to
4404         x86_linux_child_post_startup_inferior.  All uses updated.
4405         (i386_linux_enable_btrace): Renamed to
4406         x86_linux_enable_btrace.  All uses updated.
4407         (i386_linux_disable_btrace): Renamed to
4408         x86_linux_disable_btrace.  All uses updated.
4409         (i386_linux_teardown_btrace): Renamed to
4410         x86_linux_teardown_btrace.  All uses updated.
4411         (i386_linux_read_btrace): Renamed to
4412         x86_linux_read_btrace.  All uses updated.
4413
4414 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
4415
4416         * remote.c (extended_remote_post_attach): New function.
4417         (init_extended_remote_ops): Install it as to_post_attach method.
4418
4419 2014-07-09  Pedro Alves  <palves@redhat.com>
4420
4421         * infcmd.c (attach_command_post_wait): Don't call
4422         target_terminal_inferior here.
4423         (attach_command): Call it here instead.
4424
4425 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4426
4427         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4428         field.
4429         * c-varobj.c (c_is_path_expr_parent): New function, moved core
4430         from varobj.c, with additional checks.
4431         (c_varobj_ops): Fill in is_path_expr_parent field.
4432         (cplus_varobj_ops): Fill in is_path_expr_parent field.
4433         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4434         field.
4435         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4436         ops method.
4437         (varobj_default_is_path_expr_parent): New function.
4438         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4439         (varobj_default_is_path_expr_parent): Declare new function.
4440
4441 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
4442
4443         * infcmd.c (finish_backward): Turn internal error into normal error.
4444
4445 2014-07-07  Pedro Alves  <palves@redhat.com>
4446
4447         PR gdb/17096
4448         * remote.c (async_handle_remote_sigint)
4449         (async_handle_remote_sigint_twice): Call
4450         gdb_call_async_signal_handler instead of
4451         mark_async_signal_handler.
4452
4453 2014-07-07  Tom Tromey  <tromey@redhat.com>
4454
4455         * target-delegates.c: Rebuild.
4456         * target.c (target_info_record): Remove.
4457         * record.c (info_record_command): Unconditionally call
4458         to_info_record.
4459         * target.h (struct target_ops) <to_info_record>: Use
4460         TARGET_DEFAULT_IGNORE.
4461         (target_info_record): Remove.
4462
4463 2014-07-07  Tom Tromey  <tromey@redhat.com>
4464
4465         * target.h (struct target_ops) <to_get_thread_local_address>: Use
4466         TARGET_DEFAULT_NORETURN.
4467         * target.c (generic_tls_error): New function.
4468         (target_translate_tls_address): Don't search target stack.
4469         * target-delegates.c: Rebuild.
4470         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4471         stack.
4472         * linux-thread-db.c (thread_db_get_thread_local_address):
4473         Unconditionally call beneath target.
4474
4475 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
4476
4477         * cli/cli-logging.c (pop_output_files): Assign targerr to
4478         gdb_stdtargerr.
4479
4480 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
4481
4482         * MAINTAINERS (Write After Approval): Update my email address.
4483
4484 2014-07-02  Gary Benson  <gbenson@redhat.com>
4485
4486         * proc-service.c (ps_xfer_memory): Update comment.
4487         (ps_pstop): Remove unused function.
4488         (ps_pcontinue): Likewise.
4489         (ps_lstop): Likewise.
4490         (ps_lcontinue): Likewise.
4491         (ps_lgetxregsize): Likewise.
4492         (ps_lgetxregs): Likewise.
4493         (ps_lsetxregs): Likewise.
4494         (ps_plog): Likewise.
4495         (ps_ptread): Likewise.
4496         (ps_ptwrite): Likewise.
4497
4498 2014-07-01  Mark Wielaard  <mjw@redhat.com>
4499
4500         * dwarf2read.c (add_array_cv_type): New function.
4501         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4502         (read_tag_volatile_type): Likewise.
4503
4504 2014-07-01  Tom Tromey  <tromey@redhat.com>
4505
4506         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4507         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4508         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4509         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4510         * command.h (cmd_cfunc_ftype): Move earlier.
4511         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4512         (add_com, add_info): Use cmd_cfunc_ftype.
4513
4514 2014-06-30  Tom Tromey  <tromey@redhat.com>
4515
4516         * symtab.c (operator_chars): Make parameters and return type
4517         const.
4518         (file_matches): Make "files" const.
4519         (struct search_symbols_data) <files>: Now const.
4520         (search_symbols): Make "regexp" and "files" parameters const.
4521         Update.
4522         (symtab_symbol_info): Remove cast.
4523         (rbreak_command): Update.
4524         * symtab.h (search_symbols): Update.
4525
4526 2014-06-27  Yao Qi  <yao@codesourcery.com>
4527
4528         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4529         Change parameter type to 'struct thread_info *'.  Caller
4530         updated.
4531         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4532         Update declaration.
4533         * dummy-frame.c (struct dummy_frame_id): New.
4534         (dummy_frame_id_eq): New function.
4535         (struct dummy_frame) <id>: Change its type to 'struct
4536         dummy_frame_id'.
4537         (dummy_frame_push): Add parameter ptid and save it in
4538         dummy_frame_id.
4539         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4540         inferior_ptid.
4541         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4542         to inferior_ptid.
4543         (lookup_dummy_frame): Change parameter type to 'struct
4544         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
4545         instead of frame_id_eq.
4546         (dummy_frame_pop): Add parameter ptid.  Callers updated.
4547         Update comments.  Compose dummy_frame_id and pass it to
4548         lookup_dummy_frame.
4549         (dummy_frame_discard): Add parameter ptid.
4550         (dummy_frame_sniffer): Compose dummy_frame_id and call
4551         dummy_frame_id_eq instead of frame_id_eq.
4552         (fprint_dummy_frames): Print ptid.
4553         * dummy-frame.h: Remove comments.
4554         (dummy_frame_push): Add ptid in declaration.
4555         (dummy_frame_pop, dummy_frame_discard): Likewise.
4556
4557 2014-06-26  Tom Tromey  <tromey@redhat.com>
4558
4559         * cli/cli-cmds.c (error_no_arg): Make "why" const.
4560         * command.h (error_no_arg): Update.
4561
4562 2014-06-26  Tom Tromey  <tromey@redhat.com>
4563
4564         * cli/cli-setshow.c (do_set_command): Make "arg" const.
4565         (do_show_command): Make "arg" const.
4566         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4567
4568 2014-06-26  Tom Tromey  <tromey@redhat.com>
4569
4570         * record-full.c (record_full_get_bookmark): Make "args" const.
4571         (record_full_goto_bookmark): Make "raw_bookmark" const.
4572         * record.c (record_goto): New function.
4573         (cmd_record_goto): Use it.  Now static.
4574         * record.h (record_goto): Declare.
4575         (cmd_record_goto): Remove declaration.
4576         * target-delegates.c: Rebuild.
4577         * target.h (struct target_ops) <to_get_bookmark,
4578         to_goto_bookmark>: Make parameter const.
4579
4580 2014-06-26  Tom Tromey  <tromey@redhat.com>
4581
4582         * defs.h (generic_load): Update.
4583         * m32r-rom.c (m32r_load_gen): Make "filename" const.
4584         * monitor.c (monitor_load): Make "args" const.
4585         * remote-m32r-sdi.c (m32r_load): Make "args" const.
4586         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4587         const.
4588         (mips_load): Make "file" const.
4589         * remote-sim.c (gdbsim_load): Make "args" const.
4590         * remote.c (remote_load): Make "name" const.
4591         * symfile.c (generic_load): Make "args" const.
4592         * target-delegates.c: Rebuild.
4593         * target.c (target_load): Make "arg" const.
4594         (debug_to_load): Make "args" const.
4595         * target.h (struct target_ops) <to_load>: Make parameter const.
4596         (target_load): Update.
4597
4598 2014-06-26  Tom Tromey  <tromey@redhat.com>
4599
4600         PR symtab/16902:
4601         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4602         (dwarf2_physname, read_partial_die)
4603         (guess_partial_die_structure_name, fixup_partial_die)
4604         (guess_full_die_structure_name, anonymous_struct_prefix)
4605         (dwarf2_name): Use per-BFD obstack.
4606
4607 2014-06-26  Yao Qi  <yao@codesourcery.com>
4608
4609         * dummy-frame.c (dummy_frame_sniffer): Move local variables
4610         dummyframe and this_id into inner block below.
4611
4612 2014-06-26  Yao Qi  <yao@codesourcery.com>
4613
4614         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4615         with "signal_pass[0]" in the initialization of signal_pass.
4616
4617 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4618
4619         * record-btrace.c (record_btrace_generating_corefile)
4620         (record_btrace_prepare_to_generate_core)
4621         (record_btrace_done_generating_core): New.
4622         (record_btrace_xfer_partial, record_btrace_fetch_registers)
4623         (record_btrace_store_registers, record_btrace_prepare_to_store):
4624         Forward request when generating a core file.
4625         (record_btrace_open): Set record_btrace_generating_corefile to zero.
4626         (init_record_btrace_ops): Set to_prepare_to_generate_core and
4627         to_done_generating_core.
4628
4629 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4630
4631         * target.h (target_ops) <to_prepare_to_generate_core>
4632         <to_done_generating_core>: New.
4633         (target_prepare_to_generate_core, target_done_generating_core): New.
4634         * target.c (target_prepare_to_generate_core)
4635         (target_done_generating_core): New.
4636         * target-delegates.c: Regenerate.
4637         * gcore.c: (write_gcore_file): Rename to ...
4638         (write_gcore_file_1): ...this.
4639         (write_gcore_file): Call target_prepare_to_generate_core
4640         and target_done_generating_core.
4641
4642 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4643
4644         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4645         * gcore.c (write_gcore_file): Free memory returned from
4646         make_corefile_notes.
4647         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4648         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4649
4650 2014-06-24  Yao Qi  <yao@codesourcery.com>
4651
4652         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4653         (arm_linux_init_abi): Set skip_trampoline_code with
4654         gdbarch_skip_trampoline_code instead of
4655         find_solib_trampoline_target.
4656
4657 2014-06-24  Yao Qi  <yao@codesourcery.com>
4658
4659         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4660         arm_skip_bx_reg returns non-zero.
4661
4662 2014-06-24  Yao Qi  <yao@codesourcery.com>
4663
4664         * arm-tdep.c (arm_skip_bx_reg): New function.
4665         (arm_skip_stub): Call arm_skip_bx_reg.
4666
4667 2014-06-23  Don Breazeal  <donb@codesourcery.com>
4668
4669         * MAINTAINERS: Add myself as write-after-approval maintainer.
4670
4671 2014-06-23  Pedro Alves  <palves@redhat.com>
4672
4673         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4674         DR_CONTROL before setting DR0..DR3.
4675         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4676         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4677         bits of DR_CONTROL related to the debug register slot being
4678         disabled.  If all slots are vacant, clear local slowdown as well,
4679         and assert DR_CONTROL is 0.
4680
4681 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
4682
4683         * python/lib/gdb/command/xmethods.py
4684         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
4685         current progspace only if the string "progspace" matches LOCUS_RE.
4686
4687 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4688
4689         Fix --with-system-readline with readline-6.3 patch 5.
4690         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4691         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4692         types.
4693
4694 2014-06-20  Tom Tromey  <tromey@redhat.com>
4695
4696         * dwarf2read.c (dw2_get_real_path): Use correct type in
4697         OBSTACK_CALLOC.
4698         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4699
4700 2014-06-20  Gary Benson  <gbenson@redhat.com>
4701
4702         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
4703         * common/glibc_thread_db.h: Likewise.
4704         * common/i386-cpuid.h: Likewise.
4705         * common/i386-gcc-cpuid.h: Likewise.
4706         * common/linux-btrace.h: Likewise.
4707         * common/linux-osdata.h: Likewise.
4708         * common/linux-procfs.h: Likewise.
4709         * common/linux-ptrace.h: Likewise.
4710         * common/mips-linux-watch.h: Likewise.
4711         * common/linux-btrace.c: Moved to nat.
4712         * common/linux-osdata.c: Likewise.
4713         * common/linux-procfs.c: Likewise.
4714         * common/linux-ptrace.c: Likewise.
4715         * common/mips-linux-watch.c: Likewise.
4716         * nat/gdb_thread_db.h: Moved from common.
4717         * nat/glibc_thread_db.h: Likewise.
4718         * nat/i386-cpuid.h: Likewise.
4719         * nat/i386-gcc-cpuid.h: Likewise.
4720         * nat/linux-btrace.c: Likewise.
4721         * nat/linux-btrace.h: Likewise.
4722         * nat/linux-osdata.c: Likewise.
4723         * nat/linux-osdata.h: Likewise.
4724         * nat/linux-procfs.c: Likewise.
4725         * nat/linux-procfs.h: Likewise.
4726         * nat/linux-ptrace.c: Likewise.
4727         * nat/linux-ptrace.h: Likewise.
4728         * nat/mips-linux-watch.c: Likewise.
4729         * nat/mips-linux-watch.h: Likewise.
4730         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4731         (object file files): Reordered.
4732         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4733         of glibc_thread_db.h.
4734
4735 2014-06-20  Gary Benson  <gbenson@redhat.com>
4736
4737         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4738         (i386_dr_low_type): Moved to nat/i386-dregs.h.
4739         (i386_dr_low): Likewise.
4740         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4741         (i386_dr_low_set_addr): Likewise.
4742         (i386_dr_low_get_addr): Likewise.
4743         (i386_dr_low_can_set_control): Likewise.
4744         (i386_dr_low_set_control): Likewise.
4745         (i386_dr_low_get_control): Likewise.
4746         (i386_dr_low_get_status): Likewise.
4747         (i386_get_debug_register_length): Likewise.
4748         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4749         (i386_dr_low): Likewise.
4750         * nat/i386-dregs.c (i386-low.h): Remove include.
4751         (i386-nat.h): Likewise.
4752         (nat/i386-dregs.h): New include.
4753         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4754         (i386_dr_low_set_addr): Likewise.
4755         (i386_dr_low_get_addr): Likewise.
4756         (i386_dr_low_can_set_control): Likewise.
4757         (i386_dr_low_set_control): Likewise.
4758         (i386_dr_low_get_control): Likewise.
4759         (i386_dr_low_get_status): Likewise.
4760         (i386_get_debug_register_length): Likewise.
4761         (debug_hw_points): Likewise.
4762
4763 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
4764
4765         * Makefile.in (SFILES): Add d-exp.y.
4766         (YYFILES): Add d-exp.c.
4767         (YYOBJ): Add d-exp.o.
4768         (local-maintainer-clean): Delete d-exp.c.
4769         * d-exp.y: New file.
4770         * d-lang.h (d_parse): New declaration.
4771         (d_error): New declaration.
4772         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4773         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4774         PREC_ORDER operators.
4775         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4776
4777 2014-06-19  Yao Qi  <yao@codesourcery.com>
4778
4779         * gdbthread.h (any_running): Remove the declaration.
4780         * thread.c (any_running): Remove.
4781
4782 2014-06-19  Yao Qi  <yao@codesourcery.com>
4783
4784         * gdbthread.h (struct thread_info) <state>: Change its type to
4785         'enum thread_state'.  Update comments.
4786
4787 2014-06-19  Pedro Alves  <palves@redhat.com>
4788
4789         * gdbthread.h (ALL_THREADS): Delete.
4790         (ALL_NON_EXITED_THREADS): New macro.
4791         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4792         instead of ALL_THREADS.
4793         * infrun.c (find_thread_needs_step_over)
4794         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4795         instead of ALL_THREADS.
4796         * record-btrace.c (record_btrace_open)
4797         (record_btrace_stop_recording, record_btrace_close)
4798         (record_btrace_is_replaying, record_btrace_resume)
4799         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4800         * remote.c (append_pending_thread_resumptions): Likewise.
4801         * thread.c (thread_apply_all_command): Likewise.
4802
4803 2014-06-19  Gary Benson  <gbenson@redhat.com>
4804
4805         * i386-nat.c (i386_stopped_by_watchpoint):
4806         Use i386_dr_stopped_by_watchpoint.
4807         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4808         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4809
4810 2014-06-19  Gary Benson  <gbenson@redhat.com>
4811
4812         * nat/i386-dregs.c: New file.
4813         * Makefile.in (i386-dregs.o): New rule.
4814         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4815         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4816         * config/i386/darwin.mh (NATDEPFILES): Likewise.
4817         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4818         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4819         * config/i386/go32.mh (NATDEPFILES): Likewise.
4820         * config/i386/linux.mh (NATDEPFILES): Likewise.
4821         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4822         * config/i386/mingw.mh (NATDEPFILES): Likewise.
4823         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4824         * i386-nat.h (debug_hw_points): New declaration.
4825         * i386-nat.c (breakpoint.h): Remove include.
4826         (command.h): Likewise.
4827         (target.h): Likewise.
4828         (gdb_assert.h): Likewise.
4829         (debug_hw_points): Made nonstatic.
4830         (debug_printf): Now in i386-dregs.c.
4831         (TARGET_HAS_DR_LEN_8): Likewise.
4832         (DR_CONTROL_SHIFT): Likewise.
4833         (DR_CONTROL_SIZE): Likewise.
4834         (DR_RW_EXECUTE): Likewise.
4835         (DR_RW_WRITE): Likewise.
4836         (DR_RW_READ): Likewise.
4837         (DR_RW_IORW): Likewise.
4838         (DR_LEN_1): Likewise.
4839         (DR_LEN_2): Likewise.
4840         (DR_LEN_4): Likewise.
4841         (DR_LEN_8): Likewise.
4842         (DR_LOCAL_ENABLE_SHIFT): Likewise.
4843         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4844         (DR_ENABLE_SIZE): Likewise.
4845         (DR_LOCAL_SLOWDOWN): Likewise.
4846         (DR_GLOBAL_SLOWDOWN): Likewise.
4847         (DR_CONTROL_RESERVED): Likewise.
4848         (I386_DR_CONTROL_MASK): Likewise.
4849         (I386_DR_VACANT): Likewise.
4850         (I386_DR_LOCAL_ENABLE): Likewise.
4851         (I386_DR_GLOBAL_ENABLE): Likewise.
4852         (I386_DR_DISABLE): Likewise.
4853         (I386_DR_SET_RW_LEN): Likewise.
4854         (I386_DR_GET_RW_LEN): Likewise.
4855         (I386_DR_WATCH_HIT): Likewise.
4856         (i386_wp_op_t): Likewise.
4857         (i386_show_dr): Likewise.
4858         (i386_length_and_rw_bits): Likewise.
4859         (i386_insert_aligned_watchpoint): Likewise.
4860         (i386_remove_aligned_watchpoint): Likewise.
4861         (i386_handle_nonaligned_watchpoint): Likewise.
4862         (i386_update_inferior_debug_regs): Likewise.
4863         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4864         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4865         (i386_region_ok_for_watchpoint):
4866         Use i386_dr_region_ok_for_watchpoint.
4867         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4868
4869 2014-06-19  Gary Benson  <gbenson@redhat.com>
4870
4871         * i386-nat.c (i386_insert_hw_breakpoint): Use
4872         i386_insert_watchpoint.
4873         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4874
4875 2014-06-19  Gary Benson  <gbenson@redhat.com>
4876
4877         * i386-nat.c (i386_dr_show): Renamed to
4878         i386_show_dr and made static.  All uses updated.
4879         (i386_dr_length_and_rw_bits): Renamed to
4880         i386_length_and_rw_bits and made static.
4881         All uses updated.
4882         (i386_dr_insert_aligned_watchpoint): Renamed to
4883         i386_insert_aligned_watchpoint and made static.
4884         All uses updated.
4885         (i386_dr_remove_aligned_watchpoint): Renamed to
4886         i386_remove_aligned_watchpoint and made static.
4887         All uses updated.
4888         (i386_dr_update_inferior_debug_regs): Renamed to
4889         i386_update_inferior_debug_regs and made static.
4890         All uses updated.
4891         * nat/i386-dregs.h (i386_dr_show): Removed.
4892         (i386_dr_length_and_rw_bits): Likewise.
4893         (i386_dr_insert_aligned_watchpoint): Likewise.
4894         (i386_dr_remove_aligned_watchpoint): Likewise.
4895         (i386_dr_update_inferior_debug_regs): Likewise.
4896
4897 2014-06-19  Gary Benson  <gbenson@redhat.com>
4898
4899         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4900         * configure: Regenerate.
4901         * config.in: Likewise.
4902         * main.c (signal.h): New include.
4903         (setup_alternate_signal_stack): New function.
4904         (captured_main): Call the above.
4905         * cp-support.c (signal.h): New include.
4906         (catch_demangler_crashes): New flag.
4907         (SIGJMP_BUF): New define.
4908         (SIGSETJMP): Likewise.
4909         (SIGLONGJMP): Likewise.
4910         (gdb_demangle_jmp_buf): New static global.
4911         (gdb_demangle_attempt_core_dump): Likewise.
4912         (gdb_demangle_signal_handler): New function.
4913         (gdb_demangle): If catch_demangler_crashes is set, install the
4914         above signal handler before calling bfd_demangle, and restore
4915         the original signal handler afterwards.  Display the offending
4916         symbol and call demangler_warning the first time a segmentation
4917         fault is caught.
4918         (_initialize_cp_support): New maint set/show command.
4919
4920 2014-06-19  Gary Benson  <gbenson@redhat.com>
4921
4922         * utils.h (resource_limit_kind): New enum.
4923         (can_dump_core): New declaration.
4924         (warn_cant_dump_core): Likewise.
4925         (dump_core): Likewise.
4926         * utils.c (dump_core): Made nonstatic.  Added new
4927         parameter "limit_kind".
4928         (can_dump_core): Made nonstatic. Moved printing code to...
4929         (warn_cant_dump_core): New function.
4930         (can_dump_core_warn): Likewise.
4931         (internal_vproblem): Replace calls to can_dump_core with
4932         calls to can_dump_core_warn.  Supply new argument to each.
4933
4934 2014-06-19  Gary Benson  <gbenson@redhat.com>
4935
4936         * utils.h (demangler_vwarning): New declaration.
4937         (demangler_warning): Likewise.
4938         * utils.c (struct internal_problem)
4939         <user_settable_should_quit>: New field.
4940         <user_settable_should_dump_core>: Likewise
4941         (internal_error_problem): Add values for above new fields.
4942         (internal_warning_problem): Likewise.
4943         (demangler_warning_problem): New static global.
4944         (demangler_vwarning): New function.
4945         (demangler_warning): Likewise.
4946         (add_internal_problem_command): Selectively add commands.
4947         (_initialize_utils): New internal problem command.
4948         * maint.c (maintenance_demangler_warning): New function.
4949         (_initialize_maint_cmds): New command.
4950
4951 2014-06-18  Tom Tromey  <tromey@redhat.com>
4952
4953         * f-valprint.c (info_common_command_for_block): Update.
4954         * symtab.h (struct general_symbol_info) <common_block>: Now
4955         const.
4956
4957 2014-06-18  Tom Tromey  <tromey@redhat.com>
4958
4959         * symtab.h (struct symtab) <blockvector>: Now const.
4960         * ada-lang.c (ada_add_global_exceptions): Update.
4961         * buildsym.c (augment_type_symtab): Update.
4962         * dwarf2read.c (dw2_lookup_symbol): Update.
4963         * jit.c (finalize_symtab): Update.
4964         * jv-lang.c (add_class_symtab_symbol): Update.
4965         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4966         Update.
4967         * objfiles.c (objfile_relocate1): Update.
4968         * psymtab.c (lookup_symbol_aux_psymtabs)
4969         (maintenance_check_psymtabs): Update.
4970         * python/py-symtab.c (stpy_global_block, stpy_static_block):
4971         Update.
4972         * spu-tdep.c (spu_catch_start): Update.
4973         * symmisc.c (dump_symtab_1): Update.
4974         * symtab.c (lookup_global_symbol_from_objfile)
4975         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4976         (basic_lookup_transparent_type_quick)
4977         (basic_lookup_transparent_type, find_pc_sect_symtab)
4978         (find_pc_sect_line, search_symbols): Update.
4979         * block.c (find_block_in_blockvector): Make "bl" const.
4980         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4981         const.
4982         (blockvector_contains_pc): Make "bv" const.
4983         (block_for_pc_sect): Update.
4984         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4985         (blockvector_contains_pc): Update.
4986         * breakpoint.c (resolve_sal_pc): Update.
4987         * inline-frame.c (block_starting_point_at): Update.
4988
4989 2014-06-18  Tom Tromey  <tromey@redhat.com>
4990
4991         * completer.c (complete_line): Make "line_buffer" const.
4992         * completer.h (complete_line): Update.
4993
4994 2014-06-18  Tom Tromey  <tromey@redhat.com>
4995
4996         * symtab.c (add_macro_name): Remove unneeded cast.
4997
4998 2014-06-18  Tom Tromey  <tromey@redhat.com>
4999
5000         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5001         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5002
5003 2014-06-18  Tom Tromey  <tromey@redhat.com>
5004
5005         * probe.c (info_probes_for_ops): Make "arg" const.
5006         * probe.h (info_probes_for_ops): Update.
5007
5008 2014-06-18  Tom Tromey  <tromey@redhat.com>
5009
5010         * varobj.c (varobj_create): Update.
5011         * valops.c (value_of_this): Update.
5012         * tracepoint.c (add_local_symbols, scope_info): Update.
5013         * symtab.h (struct general_symbol_info) <block>: Now const.
5014         * symtab.c (skip_prologue_sal)
5015         (default_make_symbol_completion_list_break_on)
5016         (skip_prologue_using_sal): Update.
5017         * stack.h (iterate_over_block_locals)
5018         (iterate_over_block_local_vars): Update.
5019         * stack.c (print_frame_args): Update.
5020         (iterate_over_block_locals, iterate_over_block_local_vars): Make
5021         parameter const.
5022         (get_selected_block): Make return type const.
5023         * python/py-frame.c (frapy_block): Update.
5024         * python/py-block.c (gdbpy_block_for_pc): Update.
5025         * p-exp.y (%union) <bval>: Now const.
5026         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5027         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5028         * m2-exp.y (%union) <bval>: Now const.
5029         * linespec.c (get_current_search_block): Make return type const.
5030         (create_sals_line_offset, find_label_symbols): Update.
5031         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5032         Update.
5033         (block_starting_point_at): Make "block" const.
5034         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5035         (check_exception_resume): Update.
5036         * guile/scm-frame.c (gdbscm_frame_block): Update.
5037         * guile/scm-block.c (gdbscm_lookup_block): Update.
5038         * frame.h (get_frame_block): Update.
5039         (get_selected_block): Make return type const.
5040         * frame.c (frame_id_inner): Update.
5041         * f-valprint.c (info_common_command_for_block)
5042         (info_common_command): Update.
5043         * dwarf2loc.c (dwarf2_find_location_expression)
5044         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5045         (locexpr_describe_location_piece): Update.
5046         * c-exp.y (%union) <bval>: Now const.
5047         * breakpoint.c (resolve_sal_pc): Update.
5048         * blockframe.c (get_frame_block):Make return type const.
5049         (get_pc_function_start, get_frame_function, find_pc_sect_function)
5050         (block_innermost_frame): Update.
5051         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5052         (block_for_pc, block_for_pc_sect): Update.
5053         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5054         'pblock' const.
5055         (block_for_pc_sect, block_for_pc): Make return type const.
5056         * ax-gdb.c (gen_expr): Update.
5057         * alpha-mdebug-tdep.c (find_proc_desc): Update.
5058         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5059         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5060         (ada_read_var_value): Update.
5061         * ada-exp.y (struct name_info) <block>: Now const.
5062         (%union): Likewise.
5063         (block_lookup): Constify.
5064
5065 2014-06-18  Gary Benson  <gbenson@redhat.com>
5066
5067         * nat/i386-dregs.h: New file.
5068         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5069         * i386-nat.h (i386-dregs.h): New include.
5070         (DR_FIRSTADDR): Now in i386-dregs.h.
5071         (DR_LASTADDR): Likewise.
5072         (DR_NADDR): Likewise.
5073         (DR_STATUS): Likewise.
5074         (DR_CONTROL): Likewise.
5075         (i386_debug_reg_state): Likewise.
5076         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5077
5078 2014-06-18  Don Breazeal  <donb@codesourcery.com>
5079
5080         * breakpoint.c (set_longjmp_breakpoint): Call
5081         momentary_breakpoint_from_master with additional argument.
5082         (set_longjmp_breakpoint_for_call_dummy): Call
5083         momentary_breakpoint_from_master with additional argument.
5084         (set_std_terminate_breakpoint): Call
5085         momentary_breakpoint_from_master with additional argument.
5086         (momentary_breakpoint_from_master): Add argument to function
5087         definition and use it to initialize structure member flag.
5088         (clone_momentary_breakpoint): Call
5089         momentary_breakpoint_from_master with additional argument.
5090         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5091         member flags set in momentary_breakpoint_from_master.
5092
5093 2014-06-18  Gary Benson  <gbenson@redhat.com>
5094
5095         * i386-nat.c (i386_show_dr): Renamed to
5096         i386_dr_show and made nonstatic.  All uses updated.
5097         (i386_length_and_rw_bits): Renamed to
5098         i386_dr_length_and_rw_bits and made nonstatic.
5099         All uses updated.
5100         (i386_insert_aligned_watchpoint): Renamed to
5101         i386_dr_insert_aligned_watchpoint and made nonstatic.
5102         All uses updated.
5103         (i386_remove_aligned_watchpoint): Renamed to
5104         i386_dr_remove_aligned_watchpoint and made nonstatic.
5105         All uses updated.
5106         (i386_update_inferior_debug_regs): Renamed to
5107         i386_dr_update_inferior_debug_regs and made nonstatic.
5108         All uses updated.
5109
5110 2014-06-18  Gary Benson  <gbenson@redhat.com>
5111
5112         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5113         (i386_dr_low_can_set_control): Likewise.
5114         (i386_dr_low_set_addr): Likewise.
5115         (i386_dr_low_set_control): Likewise.
5116         (i386_dr_low_get_addr): Likewise.
5117         (i386_dr_low_get_status): Likewise.
5118         (i386_dr_low_get_control): Likewise.
5119         (i386_insert_aligned_watchpoint): Use new macros.
5120         (i386_update_inferior_debug_regs): Likewise.
5121         (i386_stopped_data_address): Likewise.
5122
5123 2014-06-18  Gary Benson  <gbenson@redhat.com>
5124
5125         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5126         New parameter.  All uses updated.
5127
5128 2014-06-18  Gary Benson  <gbenson@redhat.com>
5129
5130         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5131         All uses updated.
5132
5133 2014-06-18  Gary Benson  <gbenson@redhat.com>
5134
5135         * i386-nat.c (debug_printf): New macro.
5136         (i386_get_debug_register_length): Likewise.
5137         (TARGET_HAS_DR_LEN_8): Use above macro.
5138         (i386_show_dr): Use debug_printf instead of puts_unfiltered
5139         and printf_unfiltered.  Use phex to format values.
5140
5141 2014-06-18  Gary Benson  <gbenson@redhat.com>
5142
5143         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5144         Make const.
5145
5146 2014-06-18  Gary Benson  <gbenson@redhat.com>
5147
5148         * i386-nat.c: Comment changes.
5149
5150 2014-06-18  Gary Benson  <gbenson@redhat.com>
5151
5152         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5153
5154 2014-06-18  Gary Benson  <gbenson@redhat.com>
5155
5156         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5157         (i386_insert_aligned_watchpoint): Likewise.
5158         (i386_remove_aligned_watchpoint): Likewise.
5159         (i386_handle_nonaligned_watchpoint): Likewise.
5160
5161 2014-06-18  Gary Benson  <gbenson@redhat.com>
5162
5163         * i386-nat.c: Whitespace changes.
5164
5165 2014-06-17  Samuel Bronson  <naesten@gmail.com>
5166
5167         * MAINTAINERS: Update Roland McGrath's email address.
5168         Thanks to Sergio Durigan Junior for pointing out that he left
5169         Red Hat a while ago, and giving me a current address.
5170
5171 2014-06-17  Tom Tromey  <tromey@redhat.com>
5172
5173         * utils.h (savestring): Remove declaration.
5174
5175 2014-06-17  Tom Tromey  <tromey@redhat.com>
5176
5177         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5178
5179 2014-06-16  Keith Seitz  <keiths@redhat.com>
5180
5181         PR mi/15863
5182         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5183         to update the varobj if inferior_ptid is null_ptid.
5184
5185 2014-06-16  Tom Tromey  <tromey@redhat.com>
5186
5187         * target.h (struct target_ops) <to_info_proc>: Make parameter
5188         const.
5189         (target_info_proc): Update.
5190         * target.c (target_info_proc): Make "args" const.
5191         * procfs.c (procfs_info_proc): Update.
5192         * linux-tdep.c (linux_info_proc): Update.
5193         (linux_core_info_proc_mappings): Make "args" const.
5194         (linux_core_info_proc): Update.
5195         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5196         * gdbarch.c: Rebuild.
5197         * gdbarch.h: Rebuild.
5198         * corelow.c (core_info_proc): Update.
5199
5200 2014-06-16  Tom Tromey  <tromey@redhat.com>
5201
5202         * target.h (struct target_ops) <to_disconnect>: Make parameter
5203         const.
5204         (target_disconnect): Update.
5205         * target.c (target_disconnect): Make "args" const.
5206         * target-delegates.c: Rebuild.
5207         * remote.c (remote_disconnect): Update.
5208         * record.h (record_disconnect): Update.
5209         * record.c (record_disconnect): Update.
5210         * inf-child.c (inf_child_disconnect): Update.
5211
5212 2014-06-16  Tom Tromey  <tromey@redhat.com>
5213
5214         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5215         * target.c (debug_to_rcmd, default_rcmd): Update.
5216         * target-delegates.c: Rebuild.
5217         * remote.c (remote_rcmd): Update.
5218         * monitor.c (monitor_rcmd): Update.
5219
5220 2014-06-16  Pedro Alves  <palves@redhat.com>
5221
5222         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5223         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5224         have OBJF_SHARED set.
5225         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5226         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
5227         instead of OBJF_USERLOADED.
5228         * objfiles.h (OBJF_SHARED): Update comment.
5229         (userloaded_objfile_contains_address_p): Rename to ...
5230         (shared_objfile_contains_address_p): ... this, and update
5231         comments.
5232         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5233         new objfile.
5234         (remove_symbol_file_command): Skip objfiles that don't have
5235         OBJF_SHARED set.
5236
5237 2014-06-16  Tom Tromey  <tromey@redhat.com>
5238
5239         * minsyms.h (prim_record_minimal_symbol)
5240         (prim_record_minimal_symbol_and_info): Update comments.
5241
5242 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
5243
5244         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5245         or --without-guile, according to how GDB was built.
5246
5247 2014-06-13  Tom Tromey  <tromey@redhat.com>
5248
5249         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5250         to help_list.
5251         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5252         to help_list.
5253         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5254         help_list.
5255         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5256         help_list.Pass all_commands, not -1, to help_list.
5257         * cli/cli-dump.c (dump_command, append_command)
5258         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5259         (binary_dump_command, binary_append_command): Pass all_commands,
5260         not -1, to help_list.
5261         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5262         -1, to help_list.
5263         * valprint.c (set_print, set_print_raw): Pass all_commands, not
5264         -1, to help_list.
5265         * typeprint.c (set_print_type): Pass all_commands, not -1, to
5266         help_list.
5267         * top.c (set_history): Pass all_commands, not -1, to help_list.
5268         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5269         all_commands, not -1, to help_list.
5270         * symfile.c (overlay_command): Pass all_commands, not -1, to
5271         help_list.
5272         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5273         help_list.
5274         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5275         help_list.
5276         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5277         -1, to help_list.
5278         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5279         not -1, to help_list.
5280         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5281         not -1, to help_list.
5282         * maint.c (maintenance_command, maintenance_info_command)
5283         (maintenance_print_command, maintenance_set_cmd): Pass
5284         all_commands, not -1, to help_list.
5285         * macrocmd.c (macro_command): Pass all_commands, not -1, to
5286         help_list.
5287         * language.c (set_check): Pass all_commands, not -1, to help_list.
5288         * infcmd.c (unset_command): Pass all_commands, not -1, to
5289         help_list.
5290         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5291         help_list.
5292         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5293         help_list.
5294         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5295         help_list.
5296         * breakpoint.c (save_command): Pass all_commands, not -1, to
5297         help_list.
5298         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5299         all_commands, not -1, to help_list.
5300
5301 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
5302
5303         * regcache.c (struct register_to_invalidate): New structure.
5304         (do_register_invalidate, make_cleanup_regcache_invalidate): New
5305         functions.
5306         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5307
5308 2014-06-12  Yao Qi  <yao@codesourcery.com>
5309
5310         * varobj.c (varobj_get_num_children): Call
5311         varobj_is_dynamic_p.
5312         (varobj_list_children): Likewise.
5313         (varobj_update): Likewise.  Update comments.
5314
5315 2014-06-12  Yao Qi  <yao@codesourcery.com>
5316
5317         * varobj.c (varobj_pretty_printed_p): Rename to ...
5318         (varobj_is_dynamic_p): ... this.  New function.
5319         * varobj.h (varobj_pretty_printed_p): Remove declaration.
5320         (varobj_is_dynamic_p): Declare.
5321         * mi/mi-cmd-var.c (print_varobj): All callers updated.
5322         (mi_print_value_p, varobj_update_one): Likewise.
5323
5324 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5325             Yao Qi  <yao@codesourcery.com>
5326
5327         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5328         (varobj_get_iterator): Wrap up code for pretty-printer by
5329         "#if HAVE_PYTHON" and "#endif".
5330         (update_dynamic_varobj_children): Likewise.
5331
5332 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5333             Yao Qi  <yao@codesourcery.com>
5334
5335         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5336         gdb_python_initialized is false.  Move some code from varobj.c.
5337         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5338         * varobj.c: Move "varobj-iter.h" inclusion earlier.
5339         (struct varobj_item): Moved to varobj-iter.h".
5340         (varobj_clear_saved_item): New function.
5341         (update_dynamic_varobj_children): Move python-related code to
5342         py-varobj.c.
5343         (free_variable): Call varobj_clear_saved_item and
5344         varobj_iter_delete.
5345
5346 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5347             Yao Qi  <yao@codesourcery.com>
5348
5349         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5350         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5351         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5352         (py-varobj.o): New rule.
5353         * python/py-varobj.c: New file.
5354         * python/python-internal.h (py_varobj_get_iterator): Declare.
5355         * varobj-iter.h: New file.
5356         * varobj.c: Include "varobj-iter.h"
5357         (struct varobj) <child_iter>: Change its type from "PyObject *"
5358         to "struct varobj_iter *".
5359         <saved_item>: Likewise.
5360         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5361         [HAVE_PYTHON] (varobj_get_iterator): New function.
5362         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5363         python-specific code to python/py-varobj.c.
5364         (install_visualizer): Call varobj_iter_delete instead of
5365         Py_XDECREF.
5366         * varobj.h (varobj_ensure_python_env): Declare.
5367
5368 2014-06-12  Yao Qi  <yao@codesourcery.com>
5369
5370         * varobj.c (struct varobj_item): New structure.
5371         (create_child_with_value): Update declaration.
5372         (varobj_add_child): Replace arguments 'name' and 'value' with
5373         'item'.  All callers updated.
5374         (install_dynamic_child): Likewise.
5375         (update_dynamic_varobj_children): Likewise.
5376         (varobj_add_child): Likewise.
5377         (create_child_with_value): Likewise.
5378
5379 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5380
5381         * NEWS: Create a new section for the next release branch.
5382         Rename the section of the current branch, now that it has
5383         been cut.
5384
5385 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5386
5387         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5388         * version.in: Bump version to 7.8.50.DATE-cvs.
5389
5390 2014-06-11  Pedro Alves  <palves@redhat.com>
5391
5392         PR remote/17028
5393         * ser-mingw.c (net_windows_socket_check_pending): New function.
5394         (net_windows_select_thread): Ignore spurious wakeups.  Use
5395         net_windows_socket_check_pending.
5396         (net_windows_wait_handle): Check for pending events with
5397         ioctlsocket, through net_windows_socket_check_pending, instead of
5398         checking the socket's event.
5399
5400 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
5401
5402         * python/python-internal.h (gdb_PyObject_GetAttrString)
5403         (gdb_PyObject_HasAttrString): New inline function definitions.
5404         * py-value.c (get_field_flag): Remove the now unnecessary cast to
5405         char * of the second argument to PyObject_GetAttrString.
5406
5407 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5408
5409         * serial.c (serial_write): Fix index of character to be printed
5410         in call to serial_logchar when serial debug traces are enabled.
5411
5412 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5413
5414         * gdbtypes (resolve_dynamic_range): Add function description.
5415
5416 2014-06-09  Pedro Alves  <palves@redhat.com>
5417
5418         * linux-nat.c (linux_child_follow_fork): Initialize status with
5419         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
5420         inner block.  Only pass the signal to PTRACE_DETACH if in pass
5421         state.
5422
5423 2014-06-09  Gary Benson  <gbenson@redhat.com>
5424
5425         * common/signals.c (gdb_signal_from_host): Reorder to separate
5426         the always-available ANSI-standard signals from the signals that
5427         require checking.
5428         (do_gdb_signal_to_host): Likewise.
5429         * proc-events.c (signal_table): Likewise.
5430
5431 2014-06-08  Hui Zhu  <hui@codesourcery.com>
5432
5433         * common/linux-ptrace.c (linux_disable_event_reporting): New
5434         function.
5435         * common/linux-ptrace.h (linux_disable_event_reporting): New
5436         declaration.
5437         * linux-nat.c (linux_child_follow_fork): Do a single step before
5438         detach.
5439
5440 2014-06-07  Keith Seitz  <keiths@redhat.com>
5441
5442         Revert:
5443         PR c++/16253
5444         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5445         from symbol_matches_domain in symtab.c. All local callers
5446         of symbol_matches_domain updated.
5447         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5448         search STRUCT_DOMAIN.
5449         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5450         independently.  standard_lookup will do that automatically.
5451         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5452         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5453         (cp_lookup_symbol_in_namespace): Likewise.
5454         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5455         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5456         may return a STRUCT_DOMAIN match.
5457         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5458         * cp-support.c: Include language.h.
5459         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5460         VAR_DOMAIN.
5461         * psymtab.c (match_partial_symbol): Compare the requested
5462         domain with the symbol's domain directly.
5463         (lookup_partial_symbol): Likewise.
5464         * symtab.c (lookup_symbol_in_language): Explain when/why
5465         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5466         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5467         appropriate languages.
5468         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5469         and moved to ada-lang.c
5470         (lookup_block_symbol): Explain that this function only returns
5471         symbol matching the requested DOMAIN.
5472         Compare the requested domain with the symbol's domain directly.
5473         (iterate_over_symbols): Compare the requested domain with the
5474         symbol's domain directly.
5475         * symtab.h (symbol_matches_domain): Remove.
5476
5477 2014-06-06  Doug Evans  <xdje42@gmail.com>
5478
5479         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5480         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5481         (gdbscm_guile_version_is_at_least): Declare.
5482         (gdbscm_scm_string_to_int): Declare.
5483         * guile/guile.c (gdbscm_guile_major_version): New global.
5484         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5485         (guile_datadir): New static global.
5486         (gdbscm_guile_data_directory): New function.
5487         (initialize_scheme_side): Update.
5488         (misc_guile_functions): Add guile-data-directory.
5489         (initialize_gdb_module): Fetch guile version number.
5490         * guile/lib/gdb.scm: Remove call to add-to-load-path.
5491         * guile/lib/gdb/init.scm (%initialize!): Ditto.
5492         * guile/lib/gdb/boot.scm: Use guile-data-directory.
5493         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5494         comments.
5495         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5496         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5497         * guile/scm-value.c (gdbscm_value_to_string): Only call
5498         scm_port_conversion_strategy if Guile version >= 2.0.6.
5499
5500 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
5501
5502         * main.c (print_gdb_help): Add -q and --silent.
5503
5504 2014-06-06  Gary Benson  <gbenson@redhat.com>
5505
5506         * common/signals.c: Remove preprocessor conditionals for
5507         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5508         SIGSEGV and SIGTERM.
5509         * proc-events.c: Likewise.
5510
5511 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
5512
5513         * symfile.c (symfile_free_objfile): Remove restriction to
5514         OBJF_USERLOADED.
5515         * symfile-mem.c (symbol_file_add_from_memory): Call
5516         add_target_sections_of_objfile.
5517
5518 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
5519
5520         * guile/scm-value.c (gdbscm_history_append_x): Use
5521         'vlscm_get_value_smob_arg_unsafe' instead of
5522         'vlscm_scm_to_value'.
5523
5524 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
5525
5526         PR mi/15806
5527         * utils.c (printchar): Don't escape at all if quoter is NUL.
5528         Update function documentation to clarify effect of parameter
5529         QUOTER.
5530         * remote.c (escape_buffer): Pass '\\' as the quoter to
5531         fputstrn_unfiltered.
5532         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5533         generate the output.
5534         (mi_solib_unloaded): Same.
5535
5536 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
5537
5538         * development.sh: Delete.
5539         * Makefile.in (config.status): Adjust dependency on development.sh.
5540         * configure.ac: Adjust development.sh source call.
5541         * configure: Regenerate.
5542
5543 2014-06-04  Doug Evans  <xdje42@gmail.com>
5544
5545         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5546         is_scheme_bkpt, spec.
5547         (bpscm_make_breakpoint_smob): Initialize new members.
5548         (gdbscm_create_breakpoint_x): Split into two ...
5549         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5550         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5551         (scheme_function breakpoint_functions): Update.
5552         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
5553         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
5554         register-breakpoint!.
5555
5556 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
5557
5558         PR server/17023
5559         * mem-break.c (z_type_supported): Return zero if
5560         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5561
5562 2014-06-04  Tom Tromey  <tromey@redhat.com>
5563
5564         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5565         value_from_contents_and_address_unresolved.
5566         (ada_template_to_fixed_record_type_1): Likewise.
5567         (ada_which_variant_applies): Likewise.
5568         * value.h (value_from_contents_and_address_unresolved): Declare.
5569         * value.c (value_from_contents_and_address_unresolved): New
5570         function.
5571         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5572         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5573         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5574
5575 2014-06-04  Tom Tromey  <tromey@redhat.com>
5576
5577         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5578
5579 2014-06-04  Tom Tromey  <tromey@redhat.com>
5580
5581         * procfs.c (procfs_attach): Make "args" const.
5582         * windows-nat.c (windows_attach): Make "args" const.
5583         * nto-procfs.c (procfs_attach): Make "args" const.
5584         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5585         * go32-nat.c (go32_attach): Make "args" const.
5586         * gnu-nat.c (gnu_attach): Make "args" const.
5587         * darwin-nat.c (darwin_attach): Make "args" const.
5588         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5589         * linux-nat.c (linux_nat_attach): Make "args" const.
5590         * remote.c (extended_remote_attach_1, extended_remote_attach):
5591         Make "args" const.
5592         * target.h (struct target_ops) <to_attach>: Make "args" const.
5593         (find_default_attach): Likewise.
5594         * utils.c (parse_pid_to_attach): Make "args" const.
5595         * utils.h (parse_pid_to_attach): Update.
5596
5597 2014-06-04  Tom Tromey  <tromey@redhat.com>
5598
5599         * target-delegates.c: Rebuild.
5600         * target.c (default_thread_address_space): New function.
5601         (target_thread_address_space): Simplify.
5602         * target.h (struct target_ops) <to_thread_address_space>: Add
5603         TARGET_DEFAULT_FUNC.
5604
5605 2014-06-04  Doug Evans  <xdje42@gmail.com>
5606
5607         * guile/scm-type.c (type_smob): Remove duplicate typedef.
5608
5609 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
5610
5611         * record-btrace.c: Include event-loop.h and inf-loop.h.
5612         (record_btrace_resume_exec_dir)
5613         (record_btrace_async_inferior_event_handler)
5614         (record_btrace_handle_async_inferior_event): New.
5615         (record_btrace_open): Create async event handler.
5616         (record_btrace_close): Delete async event handler.
5617         (record_btrace_resume): Set record_btrace_resume_exec_dir,
5618         Mark async event handler.
5619         (record_btrace_execution_direction): New.
5620         (init_record_btrace_ops): Initialize to_execution_direction.
5621
5622 2014-06-03  Doug Evans  <xdje42@gmail.com>
5623
5624         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5625         (gdbscm_make_parameter): Ditto.
5626
5627 2014-06-03  Doug Evans  <dje@google.com>
5628
5629         * exec.c (exec_close_1): Call clear_section_table instead of
5630         resize_section_table.
5631         (clear_section_table): New function.
5632         (resize_section_table): Make static.  Rename arg num_added to
5633         adjustment.
5634         * exec.h (clear_section_table): Declare.
5635         (resize_section_table): Delete.
5636         * progspace.c (release_program_space): Call clear_section_table
5637         instead of resize_section_table.
5638
5639 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5640
5641         * NEWS (Python Scripting): Add entry about the new xmethods
5642         feature.
5643
5644 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5645
5646         * python/py-xmethods.c: New file.
5647         * python/py-objfile.c (objfile_object): New field 'xmethods'.
5648         (objfpy_dealloc): XDECREF on the new xmethods field.
5649         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5650         field.
5651         (objfpy_get_xmethods): New function.
5652         (objfile_getset): New entry 'xmethods'.
5653         * python/py-progspace.c (pspace_object): New field 'xmethods'.
5654         (pspy_dealloc): XDECREF on the new xmethods field.
5655         (pspy_new, pspace_to_pspace_object): Initialize xmethods
5656         field.
5657         (pspy_get_xmethods): New function.
5658         (pspace_getset): New entry 'xmethods'.
5659         * python/python-internal.h: Add declarations for new functions.
5660         * python/python.c (_initialize_python): Invoke
5661         gdbpy_initialize_xmethods.
5662         * python/lib/gdb/__init__.py (xmethods): New
5663         attribute.
5664         * python/lib/gdb/xmethod.py: New file.
5665         * python/lib/gdb/command/xmethods.py: New file.
5666
5667 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5668
5669         * eval.c (evaluate_subexp_standard): Call the xmethod if the
5670         best match method returned by find_overload_match is an xmethod.
5671         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5672         the best matching operator returned by find_overload_match is an
5673         xmethod.
5674         * valops.c: #include "extension.h".
5675         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5676         Return void.  The list of matching source methods is returned in
5677         "fn_list" and a vector of matching debug method workers is
5678         returned in "xm_worker_vec".  Update all callers.
5679         (value_find_oload_method_list): Likewise.
5680         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
5681         non-NULL, then the index of the best matching method in this
5682         vector is returned.  Update all callers.
5683         (find_overload_match): Include xmethods while performing overload
5684         resolution.
5685
5686 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5687
5688         * defs.h (enum lval_type): New enumerator "lval_xcallable".
5689         * extension-priv.h (struct extension_language_ops): Add the
5690         xmethod interface.
5691         * extension.c (new_xmethod_worker, clone_xmethod_worker,
5692         get_matching_xmethod_workers, get_xmethod_argtypes,
5693         invoke_xmethod, free_xmethod_worker,
5694         free_xmethod_worker_vec): New functions.
5695         * extension.h: #include "common/vec.h".
5696         New function declarations.
5697         (struct xmethod_worker): New struct.
5698         (VEC (xmethod_worker_ptr)): New vector type.
5699         (xmethod_worker_ptr): New typedef.
5700         (xmethod_worker_vec): Likewise.
5701         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5702         builtin_type.
5703         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5704         (struct builtin_type): New field "xmethod".
5705         * valarith.c (value_ptradd): Assert that the value argument is not
5706         lval_xcallable.
5707         * valops.c (value_must_coerce_to_target): Return 0 for
5708         lval_xcallable values.
5709         * value.c (struct value): New field XM_WORKER in the field
5710         LOCATION.
5711         (value_address, value_raw_address): Return 0 for lval_xcallable
5712         values.
5713         (set_value_address): Assert that the value is not an
5714         lval_xcallable.
5715         (value_free): Free the associated xmethod worker when freeing
5716         lval_xcallable values.
5717         (set_value_component_location): Assert that the WHOLE value is not
5718         lval_xcallable.
5719         (value_of_xmethod, call_xmethod): New functions.
5720         * value.h: Declare "struct xmethod_worker".
5721         Declare new functions value_of_xmethod, call_xmethod.
5722
5723 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
5724             Pedro Alves  <palves@redhat.com>
5725
5726         PR breakpoints/17000
5727         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5728         New function, extracted from software_breakpoint_inserted_here_p.
5729         (software_breakpoint_inserted_here_p): Replace factored out code
5730         by call to find_non_raw_software_breakpoint_inserted_here.
5731         (bp_target_info_copy_insertion_state): New function.
5732         (bkpt_insert_location): Handle the case of a single-step
5733         breakpoint already inserted at the same address.
5734         (bkpt_remove_location): Handle the case of a single-step
5735         breakpoint still inserted at the same address.
5736         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5737         breakpoint already inserted at the same address.
5738         (deprecated_remove_raw_breakpoint): Handle the case of a
5739         non-raw breakpoint still inserted at the same address.
5740         (find_single_step_breakpoint): New function, extracted from
5741         single_step_breakpoint_inserted_here_p.
5742         (find_single_step_breakpoint): New function,
5743         factored out from single_step_breakpoint_inserted_here_p.
5744         (single_step_breakpoint_inserted_here_p): Reimplement.
5745
5746 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
5747
5748         Pushed by Joel Brobecker  <brobecker@adacore.com>
5749         * source.c (show_substitute_path_command): Fix display of matching
5750         substitution rules.
5751
5752 2014-06-03  Gary Benson  <gbenson@redhat.com>
5753
5754         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5755
5756 2014-06-02  Doug Evans  <xdje42@gmail.com>
5757
5758         Add parameter support for Guile.
5759         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5760         (SUBDIR_GUILE_SRCS): Add scm-param.c.
5761         (scm-param.o): New rule.
5762         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5763         (gdbscm_misc_error): Declare.
5764         (gdbscm_canonicalize_command_name): Declare.
5765         (gdbscm_scm_to_host_string): Declare.
5766         (gdbscm_scm_from_host_string): Declare.
5767         (gdbscm_initialize_parameters): Declare.
5768         * guile/guile.c (initialize_gdb_module): Call
5769         gdbscm_initialize_parameters.
5770         * guile/lib/gdb.scm: Export parameter symbols.
5771         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5772         cmdscm_canonicalize_name and made public.  All callers updated.
5773         * guile/scm-exception.c (gdbscm_misc_error): New function.
5774         * guile/scm-param.c: New file.
5775         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5776         (gdbscm_scm_to_host_string): New function.
5777         (gdbscm_scm_from_host_string): New function.
5778         * scm-utils.c (gdbscm_gc_dup_argv): New function.
5779
5780 2014-06-02  Doug Evans  <xdje42@gmail.com>
5781
5782         Add command support for Guile.
5783         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5784         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5785         (scm-cmd.o): New rule.
5786         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5787         (gdbscm_user_error_p): Declare.
5788         (gdbscm_parse_command_name): Declare.
5789         (gdbscm_valid_command_class_p): Declare.
5790         (gdbscm_initialize_commands): Declare.
5791         * guile/guile.c (initialize_gdb_module): Call
5792         gdbscm_initialize_commands.
5793         * guile/lib/gdb.scm: Export command symbols.
5794         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5795         (throw-user-error): New function.
5796         * guile/scm-cmd.c: New file.
5797         * guile/scm-exception.c (user_error_symbol): New static global.
5798         (gdbscm_user_error_p): New function.
5799         (gdbscm_initialize_exceptions): Set user_error_symbol.
5800         * scm-utils.c (gdbscm_gc_xstrdup): New function.
5801
5802 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
5803
5804         * top.c (command_loop): Handle comments here...
5805         (command_line_input): ... not here.
5806
5807 2014-06-02  Doug Evans  <xdje42@gmail.com>
5808
5809         Add progspace support for Guile.
5810         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5811         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5812         (scm-progspace.o): New rule.
5813         * guile/guile-internal.h (pspace_smob): New typedef.
5814         (psscm_pspace_smob_pretty_printers): Declare.
5815         (psscm_pspace_smob_from_pspace): Declare.
5816         (psscm_scm_from_pspace): Declare.
5817         * guile/guile.c (initialize_gdb_module): Call
5818         gdbscm_initialize_pspaces.
5819         * guile/lib/gdb.scm: Export progspace symbols.
5820         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5821         support.
5822         (append-pretty-printer!): Ditto.
5823         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5824         Implement.
5825         * guile/scm-progspace.c: New file.
5826
5827 2014-06-03  Alan Modra  <amodra@gmail.com>
5828
5829         * ppc64-tdep.c (ppc64_standard_linkage8): New.
5830         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5831
5832 2014-06-02  Doug Evans  <dje@google.com>
5833
5834         Add support for skeletonless type units.
5835         * dwarf2read.c (struct dwarf2_per_objfile): New member
5836         n_allocated_type_units.
5837         (struct dwarf2_per_objfile) <tu_stats>: New member
5838         nr_all_type_units_reallocs.
5839         (create_signatured_type_table_from_index): Initialize
5840         n_allocated_type_units
5841         (create_all_type_units): Ditto.
5842         (add_type_unit): Move up in file.  New arg slot.
5843         All callers updated.  Increase space for all_type_units more
5844         efficiently.
5845         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5846         (lookup_dwo_signatured_type): Handle skeletonless TUs.
5847         (lookup_dwp_signatured_type): Ditto.
5848         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5849         All callers updated.
5850         (build_type_psymtabs_1): Leave type_unit_groups as
5851         NULL if no TUs present.
5852         (print_tu_stats): New function.
5853         (process_skeletonless_type_unit): New function.
5854         (process_dwo_file_for_skeletonless_type_units): New
5855         function.
5856         (process_skeletonless_type_units): New function.
5857         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5858         Call print tu_stats if debugging enabled.
5859
5860 2014-06-02  Pedro Alves  <palves@redhat.com>
5861
5862         * breakpoint.c (build_target_command_list): Don't build a command
5863         list if we have any duplicate location that isn't a dprintf.
5864
5865 2014-06-02  Pedro Alves  <palves@redhat.com>
5866
5867         * breakpoint.c (dprintf_breakpoint_hit): New function.
5868         (initialize_breakpoint_ops): Install it as dprintf's
5869         breakpoint_hit method.
5870
5871 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5872
5873         * source.c (substitute_path_rule_matches): Simplify using
5874         filename_ncmp instead of FILENAME_CMP.
5875
5876 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5877
5878         * source.c (substitute_path_rule_matches): Remove trailing spaces.
5879
5880 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
5881
5882         * configure.ac: When Guile is available, check for the
5883         availability of 'scm_new_smob'.
5884         * configure, config.h.in: Regenerate.
5885         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5886         function.
5887
5888 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5889
5890         * frame.c (struct frame_info): Add stop_string field.
5891         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5892         (get_prev_frame_always): Old content moved into
5893         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
5894         TRY_CATCH, handle MEMORY_ERROR exceptions.
5895         (frame_stop_reason_string): New function definition.
5896         * frame.h (unwind_stop_reason_to_string): Extend comment to
5897         mention frame_stop_reason_string.
5898         (frame_stop_reason_string): New function declaration.
5899         * stack.c (frame_info): Switch to frame_stop_reason_string.
5900         (backtrace_command_1): Switch to frame_stop_reason_string.
5901         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5902         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5903         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5904
5905 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5906
5907         * frame.c (frame_stop_reason_string): Rename to ...
5908         (unwind_stop_reason_to_string): this.
5909         * frame.h (frame_stop_reason_string): Rename to ...
5910         (unwind_stop_reason_to_string): this.
5911         * stack.c (frame_info): Update call to frame_stop_reason_string.
5912         (backtrace_command_1): Likewise.
5913         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5914         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5915
5916 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5917
5918         * frame.c (remove_prev_frame): New function.
5919         (get_prev_frame_if_no_cycle): Create / discard cleanup using
5920         remove_prev_frame.
5921
5922 2014-05-29  Pedro Alves  <palves@redhat.com>
5923
5924         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5925         and make it const.  When a single-step decays to a continue,
5926         clear 'step', not 'hw_step'.  Pass whether the caller wanted
5927         to step to user_visible_resume_ptid, not what we ask the
5928         target to do.
5929
5930 2014-05-29  Pedro Alves  <palves@redhat.com>
5931
5932         * infrun.c (process_event_stop_test, handle_step_into_function)
5933         (handle_step_into_function_backward): Adjust.
5934         Don't set the even thread's stop_step and call stop_waiting before
5935         calling end_stepping_range.  Instead do that ...
5936         (end_stepping_range): ... here.  Take an ecs pointer parameter.
5937
5938 2014-05-29  Pedro Alves  <palves@redhat.com>
5939
5940         * infrun.c (stop_stepping): Rename to ...
5941         (stop_waiting): ... this.
5942         (proceed): Update comment.
5943         (process_event_stop_test, handle_inferior_event)
5944         (handle_signal_stop, handle_step_into_function)
5945         (handle_step_into_function_backward): Update.
5946
5947 2014-05-29  Pedro Alves  <palves@redhat.com>
5948
5949         * infcall.c (run_inferior_call): Don't check whether the current
5950         thread is running after the proceed call.
5951
5952 2014-05-29  Pedro Alves  <palves@redhat.com>
5953             Tom Tromey  <tromey@redhat.com>
5954
5955         * NEWS: Mention "maint set target-async", "set mi-async", and that
5956         background execution commands are now always available.
5957         * target.h (target_async_permitted): Update comment.
5958         * target.c (target_async_permitted, target_async_permitted_1):
5959         Default to 1.
5960         (set_target_async_command): Rename to ...
5961         (maint_set_target_async_command): ... this.
5962         (show_target_async_command): Rename to ...
5963         (maint_show_target_async_command): ... this.
5964         (_initialize_target): Adjust.
5965         * infcmd.c (prepare_execution_command): Make extern.
5966         * inferior.h (prepare_execution_command): Declare.
5967         * infrun.c (set_observer_mode): Leave target async alone.
5968         * mi/mi-interp.c (mi_interpreter_init): Install
5969         mi_on_sync_execution_done as sync_execution_done observer.
5970         (mi_on_sync_execution_done): New function.
5971         (mi_execute_command_input_handler): Don't print the prompt if we
5972         just started a synchronous command with an async target.
5973         (mi_on_resume): Check sync_execution before printing prompt.
5974         * mi/mi-main.h (mi_async_p): Declare.
5975         * mi/mi-main.c: Include gdbcmd.h.
5976         (mi_async_p): New function.
5977         (mi_async, mi_async_1): New globals.
5978         (set_mi_async_command, show_mi_async_command, mi_async): New
5979         functions.
5980         (exec_continue): Call prepare_execution_command.
5981         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5982         (mi_execute_async_cli_command): Use mi_async_p.
5983         (_initialize_mi_main): Install "set mi-async".  Make
5984         "target-async" a deprecated alias.
5985
5986 2014-05-29  Pedro Alves  <palves@redhat.com>
5987
5988         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5989         (_initialize_cli_interp): Adjust.
5990         * event-loop.c: Include "observer.h".
5991         (start_event_loop): Notify 'command_error' observers instead of
5992         calling display_gdb_prompt.  Remove FIXME comment.
5993         * event-top.c (display_gdb_prompt): Remove call into the
5994         interpreters.
5995         * inf-loop.c: Include "observer.h".
5996         (inferior_event_handler): Notify 'command_error' observers instead
5997         of calling display_gdb_prompt.
5998         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5999         observers instead of calling display_gdb_prompt.
6000         * interps.c (interp_set): Don't call display_gdb_prompt.
6001         (current_interp_display_prompt_p): Delete.
6002         * interps.h (interp_prompt_p): Delete declaration.
6003         (interp_prompt_p_ftype): Delete.
6004         (struct interp_procs) <prompt_proc_p>: Delete field.
6005         (current_interp_display_prompt_p): Delete declaration.
6006         * mi-interp.c (mi_interpreter_prompt_p): Delete.
6007         (_initialize_mi_interp): Adjust.
6008         * tui-interp.c (tui_init): Install 'sync_execution_done' and
6009         'command_error' observers.
6010         (tui_on_sync_execution_done, tui_on_command_error): New
6011         functions.
6012         (tui_display_prompt_p): Delete.
6013         (_initialize_tui_interp): Adjust.
6014
6015 2014-05-29  Pedro Alves  <palves@redhat.com>
6016
6017         PR gdb/13860
6018         * cli/cli-interp.c: Include infrun.h and observer.h.
6019         (cli_uiout, cli_interp): New globals.
6020         (cli_on_signal_received, cli_on_end_stepping_range)
6021         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6022         functions.
6023         (cli_interpreter_init): Install them as 'end_stepping_range',
6024         'signal_received' 'signal_exited', 'exited' and 'no_history'
6025         observers.
6026         (_initialize_cli_interp): Remove cli_interp local.
6027         * infrun.c (handle_inferior_event): Call the several stop reason
6028         observers instead of printing the stop reason directly.
6029         (end_stepping_range): New function.
6030         (print_end_stepping_range_reason, print_signal_exited_reason)
6031         (print_exited_reason, print_signal_received_reason)
6032         (print_no_history_reason): Make static, and add an uiout
6033         parameter.  Print to that instead of to CURRENT_UIOUT.
6034         * infrun.h (print_end_stepping_range_reason)
6035         (print_signal_exited_reason, print_exited_reason)
6036         (print_signal_received_reason print_no_history_reason): New
6037         declarations.
6038         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6039         'mi_uiout'.
6040         <cli_uiout>: New field.
6041         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
6042         uiout for CLI output.  Install 'signal_received',
6043         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6044         observers.
6045         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6046         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6047         (mi_on_no_history): New functions.
6048         (ui_out_free_cleanup): Delete function.
6049         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6050         instead use the one already stored in the MI interpreter data.
6051         (mi_ui_out): Adjust.
6052         * tui/tui-interp.c: Include infrun.h and observer.h.
6053         (tui_interp): New global.
6054         (tui_on_signal_received, tui_on_end_stepping_range)
6055         (tui_on_signal_exited, tui_on_exited)
6056         (tui_on_no_history): New functions.
6057         (tui_init): Install them as 'end_stepping_range',
6058         'signal_received' 'signal_exited', 'exited' and 'no_history'
6059         observers.
6060         (_initialize_tui_interp): Delete tui_interp local.
6061
6062 2014-05-29  Pedro Alves  <palves@redhat.com>
6063
6064         PR gdb/15713
6065         * linux-nat.c (linux_nat_resume_callback): Rename the second
6066         parameter to 'except'.  Skip LP if it points to EXCEPT.
6067         (linux_nat_resume): Don't mark the event lwp as not stopped
6068         before resuming sibling lwps.  Instead ask
6069         linux_nat_resume_callback to skip the event lwp.  Mark it as not
6070         stopped after actually resuming it.
6071         (linux_handle_syscall_trap): Mark the lwp as not stopped after
6072         resuming it.
6073         (wait_lwp): Mark the lwp as stopped here.
6074         (stop_wait_callback): Mark the lwp as not stopped right after
6075         resuming it.  Don't mark lwps as stopped here.
6076         (linux_nat_filter_event): Mark the lwp as stopped earlier.
6077         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6078
6079 2014-05-29  Pedro Alves  <palves@redhat.com>
6080
6081         PR PR15693
6082         * infrun.c (resume): Determine how much to resume depending on
6083         whether the caller wanted a step, not whether we can hardware step
6084         the target.  Mark all threads that we intend to run as running,
6085         unless we're calling an inferior function.
6086         (normal_stop): If the thread is running an infcall, don't finish
6087         thread state.
6088         * target.c (target_resume): Don't mark threads as running here.
6089
6090 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
6091
6092         * serial.c (_initialize_serial): Remove support for
6093         the "set remotebaud" and "show remotebaud" commands.
6094         * NEWS: Add entry documenting the removal of that command.
6095
6096 2014-05-28  Yao Qi  <yao@codesourcery.com>
6097
6098         * charset.c: Fix typo in comments.
6099
6100 2014-05-27  Gary Benson  <gbenson@redhat.com>
6101
6102         * utils.c (internal_vproblem): Prompt for a bug report.
6103
6104 2014-05-26  Andy Wingo  <wingo@igalia.com>
6105
6106         * guile/scm-arch.c (arscm_mark_arch_smob):
6107         * guile/scm-block.c (bkscm_mark_block_smob)
6108         (bkscm_mark_block_syms_progress_smob):
6109         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6110         * guile/scm-exception.c (exscm_mark_exception_smob):
6111         * guile/scm-frame.c (frscm_mark_frame_smob):
6112         * guile/scm-iterator.c (itscm_mark_iterator_smob):
6113         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6114         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6115         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6116         (ppscm_mark_pretty_printer_worker_smob):
6117         * guile/scm-symbol.c (syscm_mark_symbol_smob):
6118         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6119         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6120         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6121         mark functions.
6122         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6123         function.
6124
6125 2014-05-26  Andy Wingo  <wingo@igalia.com>
6126             Doug Evans  <xdje42@gmail.com>
6127
6128         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6129         empty_base_class.  All uses updated.
6130         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6131         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6132         Adapt all callers.
6133         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6134         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6135         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6136         (gdbscm_gsmob_has_property_p, add_property_name)
6137         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6138         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6139         (gdb-object-has-property?, gdb-object-properties): Remove.
6140         (gdb-object-kind): Renamed from gsmob-kind.
6141
6142 2014-05-26  Andy Wingo  <wingo@igalia.com>
6143
6144         * configure.ac (try_guile_versions): Allow building with guile 2.2.
6145         * configure: Regenerate.
6146
6147 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6148
6149         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6150
6151 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6152
6153         * record-btrace.c (record_btrace_allow_memory_access): Remove.
6154         (replay_memory_access_read_only, replay_memory_access_read_write)
6155         (replay_memory_access_types, replay_memory_access)
6156         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6157         (cmd_set_record_btrace, cmd_show_record_btrace)
6158         (cmd_show_replay_memory_access): New.
6159         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6160         (record_btrace_remove_breakpoint): Replace
6161         record_btrace_allow_memory_access with replay_memory_access.
6162         (_initialize_record_btrace): Add commands.
6163         * NEWS: Announce it.
6164
6165 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6166
6167         * aarch64-linux-nat.c (asm/ptrace.h): Include.
6168
6169 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6170
6171         * MAINTAINERS (Write After Approval): Move self back from
6172         paper trail.
6173
6174 2014-05-22  Pedro Alves  <palves@redhat.com>
6175
6176         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6177         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6178         (disable_randomization, enum exec_direction_kind)
6179         (execution_direction, stop_registers, start_remote)
6180         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6181         (wait_for_inferior, normal_stop, get_last_target_status)
6182         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6183         (insert_step_resume_breakpoint_at_sal)
6184         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6185         (set_step_info, print_stop_event, signal_stop_state)
6186         (signal_print_state, signal_pass_state, signal_stop_update)
6187         (signal_print_update, signal_pass_update)
6188         (update_signals_program_target, clear_exit_convenience_vars)
6189         (displaced_step_dump_bytes, update_observer_mode)
6190         (signal_catch_update, gdb_signal_from_command): Move
6191         declarations ...
6192         * infrun.h: ... to this new file.
6193         * amd64-tdep.c: Include infrun.h.
6194         * annotate.c: Include infrun.h.
6195         * arch-utils.c: Include infrun.h.
6196         * arm-linux-tdep.c: Include infrun.h.
6197         * arm-tdep.c: Include infrun.h.
6198         * break-catch-sig.c: Include infrun.h.
6199         * breakpoint.c: Include infrun.h.
6200         * common/agent.c: Include infrun.h instead of inferior.h.
6201         * corelow.c: Include infrun.h.
6202         * event-top.c: Include infrun.h.
6203         * go32-nat.c: Include infrun.h.
6204         * i386-tdep.c: Include infrun.h.
6205         * inf-loop.c: Include infrun.h.
6206         * infcall.c: Include infrun.h.
6207         * infcmd.c: Include infrun.h.
6208         * infrun.c: Include infrun.h.
6209         * linux-fork.c: Include infrun.h.
6210         * linux-nat.c: Include infrun.h.
6211         * linux-thread-db.c: Include infrun.h.
6212         * monitor.c: Include infrun.h.
6213         * nto-tdep.c: Include infrun.h.
6214         * procfs.c: Include infrun.h.
6215         * record-btrace.c: Include infrun.h.
6216         * record-full.c: Include infrun.h.
6217         * remote-m32r-sdi.c: Include infrun.h.
6218         * remote-mips.c: Include infrun.h.
6219         * remote-notif.c: Include infrun.h.
6220         * remote-sim.c: Include infrun.h.
6221         * remote.c: Include infrun.h.
6222         * reverse.c: Include infrun.h.
6223         * rs6000-tdep.c: Include infrun.h.
6224         * s390-linux-tdep.c: Include infrun.h.
6225         * solib-irix.c: Include infrun.h.
6226         * solib-osf.c: Include infrun.h.
6227         * solib-svr4.c: Include infrun.h.
6228         * target.c: Include infrun.h.
6229         * top.c: Include infrun.h.
6230         * windows-nat.c: Include infrun.h.
6231         * mi/mi-interp.c: Include infrun.h.
6232         * mi/mi-main.c: Include infrun.h.
6233         * python/py-threadevent.c: Include infrun.h.
6234
6235 2014-05-22  Pedro Alves  <palves@redhat.com>
6236
6237         * infrun.c (handle_inferior_event): Store the exit code for
6238         --return-child-result here, instead of ...
6239         (print_exited_reason): ... here.
6240
6241 2014-05-21  Pedro Alves  <palves@redhat.com>
6242
6243         PR gdb/13860
6244         * gdbthread.h (struct thread_control_state): New field
6245         `command_interp'.
6246         * infrun.c (follow_fork): Copy the new thread control field to the
6247         child fork thread.
6248         (clear_proceed_status_thread): Clear the new thread control field.
6249         (proceed): Set the new thread control field.
6250         * interps.h (command_interp): Declare.
6251         * interps.c (command_interpreter): New global.
6252         (command_interp): New function.
6253         (interp_exec): Set `command_interpreter' while here.
6254         * cli-out.c (cli_uiout_dtor): New function.
6255         (cli_ui_out_impl): Install it.
6256         * mi/mi-interp.c: Include cli-out.h.
6257         (mi_cmd_interpreter_exec): Add comment.
6258         (restore_current_uiout_cleanup): New function.
6259         (ui_out_free_cleanup): New function.
6260         (mi_on_normal_stop): If finishing an execution command started by
6261         a CLI command, or any kind of breakpoint-like event triggered,
6262         print the stop event to the output (CLI) stream.
6263         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6264
6265 2014-05-21  Pedro Alves  <palves@redhat.com>
6266
6267         * cli/cli-cmds.c (list_command): Handle the first "list" after the
6268         current source line having changed.
6269         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6270         * infrun.c (normal_stop): Adjust call to
6271         set_current_sal_from_frame.
6272         * source.c (clear_lines_listed_range): New function.
6273         (set_current_source_symtab_and_line, identify_source_line): Clear
6274         the lines listed range.
6275         (line_info): Handle the first "info line" after the current source
6276         line having changed.
6277         * stack.c (print_stack_frame): Remove center handling.
6278         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
6279         center sal.line.
6280
6281 2014-05-21  Pedro Alves  <palves@redhat.com>
6282
6283         * inf-child.c (inf_child_mourn_inferior): New function.
6284         * inf-child.h (inf_child_mourn_inferior): New declaration.
6285         * darwin-nat.c (darwin_mourn_inferior): Use
6286         inf_child_mourn_inferior.
6287         * gnu-nat.c (gnu_mourn_inferior): Likewise.
6288         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6289         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6290         * nto-procfs.c (procfs_mourn_inferior): Likewise.
6291         * windows-nat.c (windows_mourn_inferior): Likewise.
6292
6293 2014-05-21  Doug Evans  <xdje42@gmail.com>
6294
6295         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6296
6297 2014-05-21  Doug Evans  <xdje42@gmail.com>
6298
6299         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6300         (gdbscm_out_of_range_error): Ditto.
6301         (gdbscm_memory_error): Ditto.
6302         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6303         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6304         (gdbscm_out_of_range_error): Update.
6305         (gdbscm_memory_error): Update.
6306         (gdbscm_scm_to_target_string_unsafe): Delete.
6307
6308 2014-05-21  Pedro Alves  <palves@redhat.com>
6309
6310         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6311         globals.
6312         (inf_child_open_target): New function.
6313         (inf_child_open): Use inf_child_open_target to push the target
6314         instead of erroring out.
6315         (inf_child_disconnect, inf_child_close)
6316         (inf_child_maybe_unpush_target): New functions.
6317         (inf_child_target): Install inf_child_disconnect and
6318         inf_child_close.  Store a pointer to the returned object.
6319         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6320         declarations.
6321         * target.c (auto_connect_native_target): New global.
6322         (show_default_run_target): New function.
6323         (find_default_run_target): Return NULL if automatically connecting
6324         to the native target is disabled.
6325         (_initialize_target): Install set/show auto-connect-native-target.
6326         * NEWS: Mention "set auto-connect-native-target", and "target
6327         native".
6328         * linux-nat.c (super_close): New global.
6329         (linux_nat_close): Call super_close.
6330         (linux_nat_add_target): Store a pointer to the base class's
6331         to_close method.
6332         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6333         inf_child_maybe_unpush.
6334         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6335         already pushed.
6336         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6337         the inferior.  Use inf_child_maybe_unpush_target.
6338         (inf_ttrace_attach): Don't push the target if it is already
6339         pushed.
6340         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6341         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6342         after mourning the inferior.  Use inf_child_maybe_unpush_target.
6343         (darwin_attach_pid): Don't push the target if it is already
6344         pushed.
6345         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6346         mourning the inferior.  Use inf_child_maybe_unpush_target.
6347         (gnu_detach): Use inf_child_maybe_unpush_target.
6348         * go32-nat.c (go32_create_inferior): Don't push the target if it
6349         is already pushed.
6350         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6351         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6352         (procfs_open): Rename to ...
6353         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
6354         comments.  Can target_preopen before changing node.  Call
6355         inf_child_open_target to push the target explicitly.
6356         (procfs_attach): Don't push the target if it is already pushed.
6357         (procfs_detach): Use inf_child_maybe_unpush_target.
6358         (procfs_create_inferior): Don't push the target if it is already
6359         pushed.
6360         (nto_native_ops): New global.
6361         (procfs_open): Reimplement.
6362         (procfs_native_open): New function.
6363         (init_procfs_targets): Install procfs_native_open as to_open of
6364         "target native".  Store a pointer to the "native" target in
6365         nto_native_ops.
6366         * procfs.c (procfs_attach): Don't push the target if it is already
6367         pushed.
6368         (procfs_detach): Use inf_child_maybe_unpush_target.
6369         (procfs_mourn_inferior): Only unpush the target after mourning the
6370         inferior.  Use inf_child_maybe_unpush_target.
6371         (procfs_init_inferior): Don't push the target if it is already
6372         pushed.
6373         * windows-nat.c (do_initial_windows_stuff): Don't push the target
6374         if it is already pushed.
6375
6376 2014-05-21  Pedro Alves  <palves@redhat.com>
6377
6378         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6379         and "procfs" targets are now called "native" instead.
6380
6381 2014-05-21  Pedro Alves  <palves@redhat.com>
6382
6383         * go32-nat.c (go32_open): Delete.
6384         (go32_target): Don't override the to_open method.
6385
6386 2014-05-21  Pedro Alves  <palves@redhat.com>
6387
6388         * nto-procfs.c (procfs_can_run): New function.
6389         (nto_procfs_ops): New global.
6390         (init_procfs_targets): New, based on procfs_target.  Install
6391         "target native" in addition to "target procfs".
6392         (_initialize_procfs): Call init_procfs_targets instead of adding
6393         the target here.
6394
6395 2014-05-21  Pedro Alves  <palves@redhat.com>
6396
6397         * windows-nat.c (windows_target): Don't override to_shortname,
6398         to_longname or to_doc.
6399
6400 2014-05-21  Pedro Alves  <palves@redhat.com>
6401
6402         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6403         to_doc.
6404
6405 2014-05-21  Pedro Alves  <palves@redhat.com>
6406
6407         * darwin-nat.c (_initialize_darwin_inferior): Don't override
6408         to_shortname, to_longname or to_doc.
6409
6410 2014-05-21  Pedro Alves  <palves@redhat.com>
6411
6412         * go32-nat.c (go32_target): Don't override to_shortname,
6413         to_longname or to_doc.
6414
6415 2014-05-21  Pedro Alves  <palves@redhat.com>
6416
6417         * inf-child.c (inf_child_open): Remove mention of "child".
6418         (inf_child_target): Rename target to "native" instead of "child".
6419
6420 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6421
6422         * Makefile.in (SFILES): Delete "regset.c".
6423         (COMMON_OBS): Delete "regset.o".
6424         * regset.c: Remove.
6425         * regset.h (regset_alloc): Delete prototype.
6426
6427 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6428
6429         * sparc-linux-tdep.c (sparc32_linux_gregset)
6430         (sparc32_linux_fpregset): New static regset structures.
6431         (sparc32_linux_init_abi): Drop dynamic regset allocations.
6432         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6433         'fpregset' fields.
6434         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6435         (sparc64_linux_fpregset): New static regset structures.
6436         (sparc64_linux_init_abi): Drop dynamic regset allocations.
6437         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6438         New static regset structures.
6439         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6440         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6441         New static regset structures.
6442         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6443         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6444         New static regset structures.
6445         (sparc64obsd_init_abi): Drop dynamic regset allocations.
6446         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6447         New static regset structures.
6448         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6449
6450 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6451
6452         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6453         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6454         register maps ("regmaps") from "*regset" to "*regmap".  Do this
6455         for all regmap types and variables.
6456         * sparc-linux-tdep.c (sparc32_linux_step_trap)
6457         (sparc32_linux_supply_core_gregset)
6458         (sparc32_linux_collect_core_gregset)
6459         (sparc32_linux_supply_core_fpregset)
6460         (sparc32_linux_collect_core_fpregset): Likewise.
6461         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6462         (sparc_gregmap, sparc_fpregmap): ... these.
6463         (sparc_supply_gregset, sparc_collect_gregset)
6464         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6465         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6466         (_initialize_sparc_nat): Rename regmaps.
6467         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6468         (sparc_gregmap, sparc_fpregmap): ... these.
6469         (sparc_supply_gregset, sparc_collect_gregset)
6470         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6471         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6472         Rename macros to...
6473         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6474         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6475         Likewise.
6476         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6477         Rename to...
6478         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6479         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6480         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6481         regmaps.
6482         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6483         (sparc32_bsd_fpregset): Rename to...
6484         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6485         (sparc32_bsd_fpregmap): ... these.
6486         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6487         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6488         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6489         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6490         (struct sparc_gregmap, struct sparc_fpregmap)
6491         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6492         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6493         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6494         (sparc32_supply_regset, sparc32_collect_gregset)
6495         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6496         prototypes.
6497         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6498         (sparc64_linux_ptrace_gregmap): ... this.
6499         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6500         (_initialize_sparc64_linux_nat): Rename regmaps.
6501         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6502         (sparc64_linux_core_gregmap): ... this.
6503         (sparc64_linux_supply_core_gregset)
6504         (sparc64_linux_collect_core_gregset)
6505         (sparc64_linux_supply_core_fpregset)
6506         (sparc64_linux_collect_core_fpregset): Rename regmaps.
6507         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6508         (sparc64_sol2_fpregset): Rename to...
6509         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6510         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6511         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6512         regmaps.
6513         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6514         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6515         (sparc64_bsd_fpregset): Rename to...
6516         (struct sparc_gregmap, sparc64_sol2_gregmap)
6517         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6518         (sparc64_bsd_fpregmap): ... these.
6519         (sparc64_supply_gregset, sparc64_collect_gregset)
6520         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6521         prototypes.
6522         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6523         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6524         (sparc64fbsd_gregmap): ... this.
6525         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6526         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6527         Rename regmaps.
6528         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6529         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6530         (sparc64nbsd_collect_fpregset): Likewise.
6531         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6532         (sparc64nbsd_gregmap): ... this.
6533         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6534         regmaps.
6535         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6536         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6537         (sparc64obsd_gregmap): ... this.
6538         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6539         regmaps.
6540         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6541         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6542         (sparc32nbsd_gregmap): ... this.
6543         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6544         regmaps.
6545
6546 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6547
6548         * score-tdep.c (score7_linux_gregset): New static regset
6549         structure.
6550         (score7_linux_regset_from_core_section): Remove dynamic regset
6551         allocation.
6552         (score_gdbarch_init): Drop allocation of tdep structure.
6553         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6554
6555 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6556
6557         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6558         regset structures.
6559         (am33_regset_from_core_section): Remove dynamic regset
6560         allocations.
6561
6562 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6563
6564         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6565         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6566         structures.
6567         (mips_linux_regset_from_core_section): Remove dynamic regset
6568         allocations.
6569         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6570         'gregset64', 'fpregset', and 'fpregset64'.
6571         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6572         deleted tdep fields.
6573
6574 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6575
6576         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6577         regset structures.
6578         (amd64_regset_from_core_section): Remove dynamic regset
6579         allocations.
6580         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6581         structure.
6582         (amd64obsd_regset_from_core_section): Remove dynamic regset
6583         allocation.
6584         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6585         Likewise.
6586         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6587         x86-common regset supply function.
6588         * i386-tdep.c (i386_collect_gregset): Make static.
6589         (i386_gregset): New global regset structure.
6590         (i386_fpregset, i386_xstateregset): New static regset structures.
6591         (i386_regset_from_core_section): Remove dynamic regset
6592         allocations.
6593         (i386_gdbarch_init): Remove initialization of tdep fields
6594         'gregset', 'fpregset', and 'xstateregset'.
6595         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6596         'fpregset', and 'xstateregset'.
6597         (i386_collect_gregset): Remove prototype.
6598         (i386_gregset): New declaration.
6599         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6600         structure.
6601         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6602         allocation.
6603
6604 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6605
6606         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6607         (arm_linux_vfpregset): New static regset structures.
6608         (arm_linux_regset_from_core_section): Remove dynamic allocation of
6609         regset structures.
6610         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6611         and 'vfpregset' fields.
6612
6613 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6614
6615         * aarch64-linux-tdep.c (aarch64_linux_gregset)
6616         (aarch64_linux_fpregset): New static regset structures.
6617         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6618         of regset structures.
6619         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6620         'fpregset' fields.
6621
6622 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6623
6624         * regset.h (struct regset): Remove gdbarch field.
6625         * regset.c (regset_alloc): Drop initialization of gdbarch field.
6626         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6627         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6628         Likewise.
6629         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6630         (ppc32_linux_fpregset, ppc32_linux_vrregset)
6631         (ppc32_linux_vsxregset): Likewise.
6632         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6633         via the regcache instead of the regset.
6634         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6635         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6636         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6637         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6638         Likewise.
6639
6640 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6641
6642         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6643         Constify structures.
6644         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6645         (alphanbsd_aout_gregset): Likewise.
6646         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6647         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6648         Likewise.
6649         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6650         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6651         Likewise.
6652         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6653         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6654         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6655         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6656         * m88k-tdep.c (m88k_gregset): Likewise.
6657         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6658         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6659         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6660         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6661         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6662         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6663         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6664         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6665         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6666         Likewise.
6667         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6668         * sh-tdep.h (sh_corefile_gregset): Likewise.
6669         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6670         * vax-tdep.c (vax_gregset): Likewise.
6671
6672 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6673
6674         Fix TLS access for -static -pthread.
6675         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6676         (try_thread_db_load_1): Initialize it.
6677         (thread_db_get_thread_local_address): Call it if LM is zero.
6678         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6679         * target.h (struct target_ops) (to_get_thread_local_address): Add
6680         load_module_addr comment.
6681
6682 2014-05-21  Pedro Alves  <palves@redhat.com>
6683
6684         * dcache.c (dcache_read_memory_partial): If reading the cache line
6685         fails, fallback to reading just the memory the caller wanted.
6686
6687 2014-05-20  Doug Evans  <dje@google.com>
6688
6689         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6690         instead of get_current_arch.
6691
6692 2014-05-20  Pedro Alves  <palves@redhat.com>
6693
6694         * NEWS: Mention that compare-sections now works with all targets.
6695
6696         * remote.c (PACKET_qCRC): New enum value.
6697         (remote_verify_memory): Don't send qCRC if the target has no
6698         execution.  Use packet_support/packet_ok.  If the target doesn't
6699         support the qCRC packet, fallback to a deep memory copy.
6700         (compare_sections_command): Say "target image" instead of "remote
6701         executable".
6702         (_initialize_remote): Add PACKET_qCRC to the list of config
6703         packets that have no associated command.  Extend comment.
6704         * target.c (simple_verify_memory, default_verify_memory): New
6705         function.
6706         * target.h (struct target_ops) <to_verify_memory>: Default to
6707         default_verify_memory.
6708         (simple_verify_memory): New declaration.
6709         * target-delegates.c: Regenerate.
6710
6711 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
6712
6713         * record-btrace.c (record_btrace_step_thread): Check for empty history.
6714
6715 2014-05-20  Hui Zhu  <hui@codesourcery.com>
6716             Yao Qi  <yao@codesourcery.com>
6717
6718         PR backtrace/16558
6719         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6720         and change address of sp and pc.
6721
6722 2014-05-19  Tom Tromey  <tromey@redhat.com>
6723
6724         * gdbtypes.c (rank_function): Use XNEWVEC.
6725         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6726
6727 2014-05-19  Doug Evans  <dje@google.com>
6728
6729         * dwarf2read.c (build_type_psymtabs_1): Renamed from
6730         build_type_unit_groups and moved closer to only caller.  Remove
6731         arguments.  All references updated.  Remove outdated .gdb_index
6732         comment.
6733         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6734         build_type_psymtabs_1.
6735
6736 2014-05-19  Doug Evans  <dje@google.com>
6737
6738         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6739         n_type_unit_groups, all_type_unit_groups.  All uses removed.
6740         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6741         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
6742         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
6743         (add_type_unit_group_to_table): Delete.
6744
6745 2014-05-19  Doug Evans  <dje@google.com>
6746
6747         * eval.c (evaluate_subexp_standard): Add some comments.
6748
6749 2014-05-17  Doug Evans  <xdje42@gmail.com>
6750
6751         * progspace.c (remove_program_space): Delete, unused.
6752         * progspace.h (remove_program_space): Ditto.
6753
6754 2014-05-17  Doug Evans  <xdje42@gmail.com>
6755
6756         * inferior.c (prune_inferiors): Fix comment.
6757         (remove_inferior_command): Call prune_program_spaces.
6758
6759 2014-05-16  Doug Evans  <dje@google.com>
6760
6761         New command line option -D.
6762         * NEWS: Mention it.
6763         * main.c (set_gdb_data_directory): New function.
6764         (captured_main): Recognize -D.  Flag error for --data-directory "".
6765         Call set_gdb_data_directory.
6766         (print_gdb_help): Print --data-directory, -D.
6767         * main.h (set_gdb_data_directory): Declare.
6768         * top.c (staged_gdb_datadir): New static global.
6769         (set_gdb_datadir): Call set_gdb_data_directory
6770         (show_gdb_datadir): New function.
6771         (init_main): Update init of data-directory parameter.
6772
6773 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
6774
6775         Import the "dirfd" gnulib module.
6776         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6777         * gnulib/aclocal.m4: Update.
6778         * gnulib/config.in: Update.
6779         * gnulib/configure: Update.
6780         * gnulib/import/Makefile.am: Update.
6781         * gnulib/import/Makefile.in: Update.
6782         * gnulib/import/dirfd.c: New.
6783         * gnulib/import/m4/dirfd.m4: New.
6784         * gnulib/import/m4/gnulib-cache.m4: Update.
6785         * gnulib/import/m4/gnulib-comp.m4: Update.
6786
6787 2014-05-16  Pierre Muller  <muller@sourceware.org>
6788             Yao Qi  <yao@codesourcery.com>
6789
6790         * valprint.c (print_wchar): Move the code on checking whether
6791         W is a printable wide char to the default branch of switch
6792         statement below.  Call wchar_printable instead of gdb_iswprint.
6793
6794 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
6795
6796         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6797         ldr.w and ldrd instructions.
6798
6799 2014-05-15  Doug Evans  <dje@google.com>
6800
6801         * dwarf2read.c (read_structure_type): Delete outdated comments.
6802
6803 2014-05-14  Tom Tromey  <tromey@redhat.com>
6804
6805         * macrocmd.c (print_macro_definition): Reindent.
6806
6807 2014-05-13  Doug Evans  <xdje42@gmail.com>
6808
6809         * python/py-cmd.c (cmdpy_completer): Add comment.
6810         (completers): Make const.
6811
6812 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
6813
6814         * infrun.c (resume): Remove should_resume (unused).  Move up
6815         declaration of resume_ptid.
6816
6817 2014-05-13  Tom Tromey  <tromey@redhat.com>
6818
6819         * language.h (unop_type_check): Remove.
6820         (binop_type_check): Don't declare.
6821
6822 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
6823
6824         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6825         call to regcache_raw_collect.
6826
6827 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6828
6829         * mi/mi-console.c (mi_console_raw_packet): Use the value from
6830         mi_console->quote as the quoting character.
6831
6832 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6833
6834         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6835
6836 2014-04-29  Tom Tromey  <tromey@redhat.com>
6837
6838         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6839         "show debug varobj".
6840
6841 2014-05-07  Kyle McMartin  <kyle@redhat.com>
6842
6843         Pushed by Joel Brobecker  <brobecker@adacore.com>.
6844         * aarch64-tdep.c (aarch64_software_single_step): New function.
6845         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6846         with aarch64_software_single_step.
6847
6848 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
6849
6850         GDB 7.7.1 released.
6851
6852 2014-05-05  Keith Seitz  <keiths@redhat.com>
6853
6854         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6855         variable or history value is successfully parsed.
6856
6857 2014-05-05  Yao Qi  <yao@codesourcery.com>
6858             Pedro Alves  <palves@redhat.com>
6859
6860         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6861         address of blocks that intersects the requested range.  Trim
6862         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6863         sections.
6864         * ctf.c (ctf_xfer_partial): Likewise.
6865
6866 2014-05-05  Yao Qi  <yao@codesourcery.com>
6867
6868         * printcmd.c (display_command): Remove the check to
6869         target_has_execution.
6870
6871 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
6872
6873         * ppcobsd-nat.c: Include "obsd-nat.h".
6874         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6875         add_target.
6876         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6877
6878 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6879
6880         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6881         and 16-bit signed and unsigned arguments.  Update comment.
6882         (stap_parse_probe_arguments): Extend code to handle such
6883         arguments.  Use warning instead of complaint to notify about
6884         unrecognized bitness.
6885
6886 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6887
6888         PR breakpoints/16889
6889         * stap-probe.c (stap_parse_probe_arguments): Simplify
6890         check for non-prefixed probes (i.e., probes whose
6891         arguments do not start with "N@").  Always set the
6892         argument type to a sane value.
6893
6894 2014-05-01  David Taylor  <dtaylor@emc.com>
6895
6896         * remote.c (compare_sections_command): Add -r option to compare
6897         all loadable read-only sections.
6898
6899 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
6900
6901         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6902         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6903         Update all callers.
6904         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6905         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6906         Remove unused CORE_ADDR argument.  Update all callers.
6907
6908 2014-04-29  Pedro Alves  <palves@redhat.com>
6909
6910         * remote.c (struct packet_config) <detect>: Extend comment.
6911         (add_packet_config_cmd): Don't set the config's detect or support
6912         fields here.
6913         (init_all_packet_configs): Also initialize the config's 'detect'
6914         field.
6915         (reset_all_packet_configs_support): New function.
6916         (remote_open_1): Call reset_all_packet_configs_support instead of
6917         init_all_packet_configs.
6918         (_initialize_remote): Initialize all packet configs.  Assert that
6919         all packets have an associated command, except a few known
6920         outliers.
6921
6922 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6923
6924         * dwarf2read.c (read_subrange_type): Handle dynamic
6925         DW_AT_lower_bound attributes.
6926
6927 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6928
6929         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6930         dynamic bounds before computing its upper bound.
6931         (ada_discrete_type_low_bound): Same as above with the lower bound.
6932
6933 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6934
6935         * dwarf2read.c (is_dynamic_type): Return true for dynamic
6936         range types.  Adjust the array handling implementation to
6937         take advantage of this change.
6938         (resolve_dynamic_range): New function, mostly extracted from
6939         resolve_dynamic_bounds.
6940         (resolve_dynamic_array): New function, mostly extracted from
6941         resolve_dynamic_bounds.
6942         (resolve_dynamic_bounds): Delete.
6943         (resolve_dynamic_type): Reimplement.  Add handling of
6944         TYPE_CODE_RANGE types.
6945
6946 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6947
6948         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6949         handling of parallel ___XA types.
6950
6951 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6952
6953         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6954         unnecessary second call to static_unwrap_type.
6955
6956 2014-04-27  Hui Zhu  <hui@codesourcery.com>
6957
6958         * stack.c (print_frame_info): Call do_gdb_disassembly with
6959         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6960
6961 2014-04-26  Doug Evans  <xdje42@gmail.com>
6962
6963         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6964
6965 2014-04-25  Pedro Alves  <palves@redhat.com>
6966
6967         PR server/16255
6968         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6969         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
6970         and newline from built string.
6971         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6972         (linux_ptrace_attach_fail_reason): ... this.
6973         * linux-nat.c (linux_nat_attach): Adjust to use
6974         linux_ptrace_attach_fail_reason.
6975
6976 2014-04-25  Pedro Alves  <palves@redhat.com>
6977
6978         * remote.c (struct remote_state): Remove multi_process_aware,
6979         non_stop_aware, cond_tracepoints, cond_breakpoints,
6980         breakpoint_commands, fast_tracepoints, static_tracepoints,
6981         install_in_trace, disconnected_tracing,
6982         enable_disable_tracepoints, string_tracing, and
6983         augmented_libraries_svr4_read fields.
6984         (remote_multi_process_p): Move further below in the file.
6985         (struct packet_config): Add comments.
6986         (update_packet_config): Delete function.
6987         (show_packet_config_cmd): Use packet_config_support.
6988         (add_packet_config_cmd): Use NULL as set callback.
6989         (packet_ok): "set remote foo-packet"-style commands no longer
6990         change config->supported -- adjust.
6991         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6992         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6993         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6994         (PACKET_QNonStop, PACKET_multiprocess_feature)
6995         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6996         (PACKET_DisconnectedTracing_feature)
6997         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6998         (set_remote_protocol_packet_cmd): Delete function.
6999         (packet_config_support, packet_support): New functions.
7000         (set_remote_protocol_Z_packet_cmd): Don't call
7001         update_packet_config.
7002         (remote_query_attached, remote_pass_signals)
7003         (remote_program_signals, remote_threads_info)
7004         (remote_threads_extra_info, remote_start_remote): Use
7005         packet_support.
7006         (remote_start_remote): Use packet_config_support and
7007         packet_support.
7008         (init_all_packet_configs): Set all packets to unknown support,
7009         instead of calling update_packet_config.
7010         (remote_check_symbols): Use packet_support.
7011         (remote_supported_packet): Unconditionally set the packet config's
7012         support status.
7013         (remote_multi_process_feature, remote_non_stop_feature)
7014         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7015         (remote_breakpoint_commands_feature)
7016         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7017         (remote_install_in_trace_feature)
7018         (remote_disconnected_tracing_feature)
7019         (remote_enable_disable_tracepoint_feature)
7020         (remote_string_tracing_feature)
7021         (remote_augmented_libraries_svr4_read_feature): Delete functions.
7022         (remote_protocol_features): Adjust to use remote_supported_packet
7023         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7024         "ConditionalTracepoints", "ConditionalBreakpoints",
7025         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7026         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7027         "EnableDisableTracepoints", and "tracenz".
7028         (remote_query_supported): Use packet_support.
7029         (remote_open_1): Adjust.
7030         (extended_remote_attach_1): Use packet_support.  Switch on the
7031         result of packet_ok instead of checking whether the packet ended
7032         up disabled.
7033         (remote_vcont_resume): Use packet_support.
7034         (remote_resume, remote_stop_ns, fetch_register_using_p)
7035         (remote_prepare_to_store, store_register_using_P)
7036         (check_binary_download, remote_write_bytes): Use packet_support.
7037         (remote_vkill): Use packet_support.  Switch on the result of
7038         packet_ok instead of checking whether the packet ended up
7039         disabled.
7040         (extended_remote_supports_disable_randomization): Use
7041         packet_support.
7042         (extended_remote_run): Switch on the result of packet_ok instead
7043         of checking whether the packet ended up disabled.
7044         (remote_insert_breakpoint, remote_remove_breakpoint)
7045         (remote_insert_watchpoint, remote_remove_watchpoint)
7046         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7047         packet_support.
7048         (remote_search_memory): Use packet_config_support.
7049         (remote_get_thread_local_address, remote_get_tib_address)
7050         (remote_hostio_send_command, remote_can_execute_reverse): Use
7051         packet_support.
7052         (remote_supports_cond_tracepoints)
7053         (remote_supports_cond_breakpoints)
7054         (remote_supports_fast_tracepoints)
7055         (remote_supports_static_tracepoints)
7056         (remote_supports_install_in_trace)
7057         (remote_supports_enable_disable_tracepoint)
7058         (remote_supports_string_tracing)
7059         (remote_can_run_breakpoint_commands): Rewrite, checking whether
7060         the packet config says the feature is enabled or disabled.
7061         (remote_download_tracepoint, remote_trace_set_readonly_regions)
7062         (remote_get_trace_status): Use packet_support.
7063         (remote_set_disconnected_tracing): Adjust to check whether the
7064         feature is enabled with packet_support.
7065         (remote_set_trace_buffer_size, remote_use_agent)
7066         (remote_can_use_agent, remote_supports_btrace): Use
7067         packet_support.
7068         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7069         Use packet_config_support.
7070         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7071         the packet config says the feature is enabled or disabled.
7072         (set_range_stepping): Use packet_support.
7073
7074 2014-04-25  Tom Tromey  <tromey@redhat.com>
7075
7076         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7077         argument.
7078
7079 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
7080
7081         * NEWS: Mention support for C99 variable length arrays.
7082
7083 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
7084
7085         * ada-lang.c (standard_exc): Expand introductory comment.
7086
7087 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
7088             Walfred Tedeschi  <walfred.tedeschi@intel.com>
7089
7090         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7091         AVX512 registers.
7092         (amd64_linux_read_description): Add code to handle AVX512 xstate
7093         mask and return respective tdesc.
7094         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7095         and features/i386/x32-avx512-linux.c.
7096         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7097         (amd64_linux_core_read_description): Add code to handle AVX512
7098         xstate mask and return respective tdesc.
7099         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7100         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7101         calculation.
7102         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7103         (tdesc_amd64_avx512_linux): New prototype.
7104         (tdesc_x32_avx512_linux): Likewise.
7105         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7106         features/i386/x32-avx512.c.
7107         (amd64_ymm_avx512_names): New register names for pseudo
7108         registers YMM16-31.
7109         (amd64_ymmh_avx512_names): New register names for raw registers
7110         YMMH16-31.
7111         (amd64_k_names): New register names for K registers.
7112         (amd64_zmmh_names): New register names for ZMM raw registers.
7113         (amd64_zmm_names): New registers names for ZMM pseudo registers.
7114         (amd64_xmm_avx512_names): New register names for XMM16-31
7115         registers.
7116         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7117         registers.
7118         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7119         if feature is present.
7120         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7121         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7122         (AMD64_NUM_REGS): Adjust to new number of registers.
7123         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7124         registers supplied via XSTATE by AVX512 registers.
7125         (i386_linux_read_description): Add case for AVX512.
7126         * i386-linux-tdep.c: Include i386-avx512-linux.c.
7127         (i386_linux_gregset_reg_offset): Add AVX512 registers.
7128         (i386_linux_core_read_description): Add case for AVX512.
7129         (i386_linux_init_abi): Install supported register note section
7130         for AVX512.
7131         (_initialize_i386_linux_tdep): Add call to tdesc init function for
7132         AVX512.
7133         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7134         registers to be number of zmm7h + 1.
7135         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7136         * i386-tdep.c: Include features/i386/i386-avx512.c.
7137         (i386_zmm_names): Add ZMM pseudo register names array.
7138         (i386_zmmh_names): Add ZMM raw register names array.
7139         (i386_k_names): Add K raw register names array.
7140         (num_lower_zmm_regs): Add constant for the number of lower ZMM
7141         registers. AVX512 has 16 more ZMM registers than there are YMM
7142         registers.
7143         (i386_zmmh_regnum_p): Add function to look up register number of
7144         ZMM raw registers.
7145         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7146         (i386_k_regnum_p): Likewise for K raw registers.
7147         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7148         registers added by AVX512.
7149         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7150         registers added by AVX512.
7151         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7152         added by AVX512.
7153         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7154         (i386_pseudo_register_name): Add ZMM pseudo registers.
7155         (i386_zmm_type): Construct and return vector registers type for ZMM
7156         registers.
7157         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7158         ZMM0-31 pseudo registers and K registers.
7159         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7160         and YMM16-31 registers from register cache.
7161         (i386_pseudo_register_write): Add code to write  K, ZMM and
7162         YMM16-31 registers.
7163         (i386_register_reggroup_p): Add code to include/exclude AVX512
7164         registers in/from respective register groups.
7165         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7166         registers if feature is present in xcr0.
7167         (i386_gdbarch_init): Add code to initialize AVX512 feature
7168         variables in tdep structure, wire in pseudo registers and call
7169         initialize_tdesc_i386_avx512.
7170         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7171         variables.
7172         (i386_regnum): Add AVX512 registers.
7173         (I386_SSE_NUM_REGS): New define for number of SSE registers.
7174         (I386_AVX_NUM_REGS): Likewise for AVX registers.
7175         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7176         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7177         512 bits wide.
7178         (i386_xmm_avx512_regnum_p): New prototype for register look up.
7179         (i386_ymm_avx512_regnum_p): Likewise.
7180         (i386_k_regnum_p): Likewise.
7181         (i386_zmm_regnum_p): Likewise.
7182         (i386_zmmh_regnum_p): Likewise.
7183         * i387-tdep.c : Update year in copyright notice.
7184         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7185         XSAVE buffer.
7186         (XSAVE_YMM_AVX512_ADDR): New macro.
7187         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7188         XSAVE buffer.
7189         (XSAVE_XMM_AVX512_ADDR): New macro.
7190         (xsave_avx512_k_offset): New table for K register offsets in
7191         XSAVE buffer.
7192         (XSAVE_AVX512_K_ADDR): New macro.
7193         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7194         in XSAVE buffer.
7195         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7196         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7197         buffer.
7198         (i387_collect_xsave): Add code to collect AVX512 registers from
7199         XSAVE buffer.
7200         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7201         of XMM16-31 registers.
7202         (I387_NUM_K_REGS): New define for number of K registers.
7203         (I387_K0_REGNUM): New define for K0 register number.
7204         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7205         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7206         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7207         registers.
7208         (I387_YMM16H_REGNUM): New define for YMM16H register number.
7209         (I387_XMM16_REGNUM): New define for XMM16 register number.
7210         (I387_YMM0_REGNUM): New define for YMM0 register number.
7211         (I387_KEND_REGNUM): New define for last K register number.
7212         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7213         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7214         number.
7215         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7216         number.
7217         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7218         size.
7219         * features/Makefile: Add AVX512 related files.
7220         * features/i386/32bit-avx512.xml: New file.
7221         * features/i386/64bit-avx512.xml: Likewise.
7222         * features/i386/amd64-avx512-linux.c: Likewise.
7223         * features/i386/amd64-avx512-linux.xml: Likewise.
7224         * features/i386/amd64-avx512.c: Likewise.
7225         * features/i386/amd64-avx512.xml: Likewise.
7226         * features/i386/i386-avx512-linux.c: Likewise.
7227         * features/i386/i386-avx512-linux.xml: Likewise.
7228         * features/i386/i386-avx512.c: Likewise.
7229         * features/i386/i386-avx512.xml: Likewise.
7230         * features/i386/x32-avx512-linux.c: Likewise.
7231         * features/i386/x32-avx512-linux.xml: Likewise.
7232         * features/i386/x32-avx512.c: Likewise.
7233         * features/i386/x32-avx512.xml: Likewise.
7234         * regformats/i386/amd64-avx512-linux.dat: New file.
7235         * regformats/i386/amd64-avx512.dat: Likewise.
7236         * regformats/i386/i386-avx512-linux.dat: Likewise.
7237         * regformats/i386/i386-avx512.dat: Likewise.
7238         * regformats/i386/x32-avx512-linux.dat: Likewise.
7239         * regformats/i386/x32-avx512.dat: Likewise.
7240         * NEWS: Add note about new support for AVX512.
7241
7242
7243 2014-04-23  Pedro Alves  <palves@redhat.com>
7244
7245         * breakpoint.c (insert_bp_location): Tolerate errors if the
7246         breakpoint is set in a user-loaded objfile.
7247         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
7248         location is marked shlib_disabled.  If the breakpoint is set in a
7249         user-loaded objfile is a GDB-side memory breakpoint, validate it
7250         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
7251         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
7252         flag.
7253         * mem-break.c (memory_validate_breakpoint): New function.
7254         * objfiles.c (userloaded_objfile_contains_address_p): New
7255         function.
7256         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7257         * target.h (memory_validate_breakpoint): New declaration.
7258
7259 2014-04-23  Pedro Alves  <palves@redhat.com>
7260
7261         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7262         the breakpoint is set in a shared library, only suppress
7263         errors for software breakpoints, not hardware breakpoints.
7264
7265 2014-04-22  Pedro Alves  <palves@redhat.com>
7266
7267         * infrun.c (schedlock_applies): New function, factored out from
7268         find_thread_needs_step_over.
7269         (find_thread_needs_step_over): Use it.
7270         (switch_back_to_stepped_thread): Always clear trap_expected if the
7271         step over is finished.  Return early if scheduler locking applies.
7272         Look for the stepping thread and a potential step-over thread with
7273         a single loop.
7274         (currently_stepping_or_nexting_callback): Delete.
7275
7276 2014-04-22  Nick Clifton  <nickc@redhat.com>
7277
7278         * NEWS: Mention that ARM sim now supports tracing.
7279
7280 2014-04-22  Yao Qi  <yao@codesourcery.com>
7281
7282         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7283         to ...
7284         * tracefile.c (tracefile_fetch_registers): ... it.  New
7285         function.
7286         * tracefile.h (tracefile_fetch_registers): Declare.
7287         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
7288         tracefile_fetch_registers.
7289
7290 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
7291
7292         PR gdb/14018
7293         * windows-nat.c (thread_rec): Don't display a warning when
7294         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
7295         fails for any reason, set th->suspended to -1, so that we don't
7296         try to resume such a thread.  Also, don't return NULL in these
7297         cases, to avoid completely ruin the session due to "PC register is
7298         not available" error.
7299         (do_windows_fetch_inferior_registers): Check errors in
7300         GetThreadContext call.
7301         (windows_continue): Accept an additional argument KILLED; if not
7302         zero, ignore errors in the SetThreadContext call, since the
7303         inferior was killed and is shutting down.
7304         (windows_resume, get_windows_debug_event)
7305         (windows_create_inferior, windows_mourn_inferior)
7306         (windows_kill_inferior): All callers of windows_continue changed
7307         to adjust to its new calling sequence.
7308
7309 2014-04-19  Yao Qi  <yao@codesourcery.com>
7310
7311         * ctf.c (ctf_open): Call post_create_inferior.
7312
7313 2014-04-19  Yao Qi  <yao@codesourcery.com>
7314
7315         * ctf.c (handle_id): New static variable.
7316         (ctf_open_dir): Get handle_id from bt_context_add_trace return
7317         value.  Get the declaration of event "register" and get length
7318         of field "contents".
7319
7320 2014-04-19  Yao Qi  <yao@codesourcery.com>
7321
7322         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7323
7324 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
7325
7326         * valops.c (oload_method_static): Remove unnecessary argument
7327         METHOD.  Update all callers.
7328
7329 2014-04-18  Pedro alves  <palves@redhat.com>
7330             Tom Tromey  <tromey@redhat.com>
7331
7332         PR backtrace/15558
7333         * frame.c (get_prev_frame_1): Rename to ...
7334         (get_prev_frame_always): ... this, and make extern.  Adjust.
7335         (skip_artificial_frames): Use get_prev_frame_always.
7336         (frame_unwind_caller_id, frame_pop, get_prev_frame)
7337         (get_frame_unwind_stop_reason): Adjust to rename.
7338         * frame.h (get_prev_frame_always): Declare.
7339         * inline-frame.c: Include frame.h.
7340         (inline_frame_this_id): Use get_prev_frame_always.
7341
7342 2014-04-18  Tristan Gingold  <gingold@adacore.com>
7343
7344         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7345         code by using bfd_mach_o_get_base_address.
7346
7347 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7348
7349         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7350         (spu_ax_pseudo_register_collect): New function.
7351         (spu_ax_pseudo_register_push_stack): Likewise.
7352         (spu_dwarf_reg_to_regnum): Likewise.
7353         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
7354
7355 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7356
7357         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7358         Replace FRAME argument with FRAME_ID.
7359         * gdbarch.c, gdbarch.h: Regenerate.
7360         * findvar.c (default_value_from_register): Add GDBARCH argument;
7361         replace FRAME by FRAME_ID.  No longer call get_frame_id.
7362         (value_from_register): Update call to gdbarch_value_from_register.
7363         * value.h (default_value_from_register): Update prototype.
7364         * s390-linux-tdep.c (s390_value_from_register): Update interface
7365         and call to default_value_from_register.
7366         * spu-tdep.c (spu_value_from_register): Likewise.
7367
7368         * findvar.c (address_from_register): Remove TYPE argument.
7369         Do not call value_from_register; use gdbarch_value_from_register
7370         with null_frame_id instead.
7371         * value.h (address_from_register): Update prototype.
7372         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7373         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7374         address_from_register interface change.
7375
7376 2014-04-17  Yao Qi  <yao@codesourcery.com>
7377
7378         * gdbtypes.h: Update comments to link to types and macros'
7379         definitions.
7380
7381 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
7382
7383         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7384
7385 2014-04-16  Keith Seitz  <keiths@redhat.com>
7386
7387         PR gdb/15827
7388         * dwarf2read.c (skip_one_die): Check that all relative-offset
7389         sibling DIEs fall within range of the current reader's buffer.
7390         (read_partial_die): Likewise.
7391
7392 2014-04-16  Keith Seitz  <keiths@redhat.com>
7393
7394         PR c++/16597
7395         * cp-namespace.c (lookup_symbol_file): If the type name of
7396         `this' is NULL, return immediately.
7397
7398 2014-04-14  Keith Seitz  <keiths@redhat.com>
7399
7400         PR c++/16253
7401         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7402         from symbol_matches_domain in symtab.c. All local callers
7403         of symbol_matches_domain updated.
7404         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7405         search STRUCT_DOMAIN.
7406         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7407         independently.  standard_lookup will do that automatically.
7408         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7409         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7410         (cp_lookup_symbol_in_namespace): Likewise.
7411         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7412         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7413         may return a STRUCT_DOMAIN match.
7414         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7415         * cp-support.c: Include language.h.
7416         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7417         VAR_DOMAIN.
7418         * psymtab.c (match_partial_symbol): Compare the requested
7419         domain with the symbol's domain directly.
7420         (lookup_partial_symbol): Likewise.
7421         * symtab.c (lookup_symbol_in_language): Explain when/why
7422         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7423         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7424         appropriate languages.
7425         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7426         and moved to ada-lang.c
7427         (lookup_block_symbol): Explain that this function only returns
7428         symbol matching the requested DOMAIN.
7429         Compare the requested domain with the symbol's domain directly.
7430         (iterate_over_symbols): Compare the requested domain with the
7431         symbol's domain directly.
7432         * symtab.h (symbol_matches_domain): Remove.
7433
7434 2014-04-14  Tom Tromey  <tromey@redhat.com>
7435
7436         PR c++/15246:
7437         * c-exp.y (type_aggregate_p): New function.
7438         (qualified_name, classify_inner_name): Use it.
7439         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7440         and TYPE_TARGET_TYPE of an enum type.
7441         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7442         an enum type.
7443         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7444         handle TYPE_DECLARED_CLASS.
7445         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7446         types.
7447         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7448         * valops.c (enum_constant_from_type): New function.
7449         (value_aggregate_elt): Use it.
7450         * cp-namespace.c (cp_lookup_nested_symbol): Handle
7451         TYPE_CODE_ENUM.
7452
7453 2014-04-14  Tom Tromey  <tromey@redhat.com>
7454
7455         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7456         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7457         const.
7458         * value.h (value_aggregate_elt): Update.
7459
7460 2014-04-14  Tom Tromey  <tromey@redhat.com>
7461
7462         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7463
7464 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7465
7466         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7467         (evaluate_subexp_standard): Pass noside argument.
7468         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7469         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7470         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7471         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7472         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7473
7474 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7475
7476         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7477         points to a constant blob.
7478
7479 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7480
7481         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7482         property and store it as the high bound and flag the range accordingly.
7483         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7484         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7485         * gdbtypes.h (enum range_flags): New enum.
7486         (struct range_bounds): Add flags member.
7487
7488 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7489
7490         * c-typeprint.c (c_type_print_varspec_suffix): Added
7491         check for not yet resolved high bound. If unresolved, print
7492         "variable length" string to the console instead of random
7493         length.
7494
7495 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7496
7497         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7498         value.
7499         (ada_template_to_fixed_record_type_1): Likewise.
7500         (ada_to_fixed_type_1): Likewise.
7501         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7502         (cp_print_value): Likewise.
7503         * d-valprint.c (dynamic_array_type): Likewise.
7504         * findvar.c (address_of_variable): Likewise.
7505         * jv-valprint.c (java_value_print): Likewise.
7506         * valops.c (value_ind): Likewise.
7507         * value.c (coerce_ref): Likewise.
7508
7509 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7510
7511         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7512         value and retrieve the dynamic type size.
7513
7514 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7515
7516         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7517         passed to sizeof is dynamic evaluate the argument to compute the length.
7518
7519 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7520             Joel Brobecker  <brobecker@adacore.com>
7521
7522         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7523         (dwarf2_evaluate_property): New function.
7524         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7525         * dwarf2read.c (attr_to_dynamic_prop): New function.
7526         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7527         attribute.
7528         * gdbtypes.c: Include dwarf2loc.h.
7529         (is_dynamic_type): New function.
7530         (resolve_dynamic_type): New function.
7531         (resolve_dynamic_bounds): New function.
7532         (get_type_length): New function.
7533         (check_typedef): Use get_type_length to compute type length.
7534         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7535         (TYPE_LOW_BOUND_KIND): New macro.
7536         (is_dynamic_type): New function prototype.
7537         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7538         to resolve dynamic properties of the type. Update comment.
7539         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7540
7541 2014-04-14  Richard Henderson  <rth@redhat.com>
7542
7543         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7544
7545 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
7546             Doug Evans  <xdje42@gmail.com>
7547
7548         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7549         dereference TYPE_CODE_REF values.
7550
7551 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
7552
7553         Revert the following changes due to regressions:
7554
7555         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7556         (dwarf2_evaluate_property): New function.
7557         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7558         * dwarf2read.c (attr_to_dynamic_prop): New function.
7559         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7560         attribute.
7561         * gdbtypes.c: Include dwarf2loc.h.
7562         (is_dynamic_type): New function.
7563         (resolve_dynamic_type): New function.
7564         (resolve_dynamic_bounds): New function.
7565         (get_type_length): New function.
7566         (check_typedef): Use get_type_length to compute type length.
7567         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7568         (TYPE_LOW_BOUND_KIND): New macro.
7569         (is_dynamic_type): New function prototype.
7570         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7571         to resolve dynamic properties of the type. Update comment.
7572         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7573
7574         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7575         passed to sizeof is dynamic evaluate the argument to compute the length.
7576
7577         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7578         value and retrieve the dynamic type size.
7579
7580         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7581         (ada_template_to_fixed_record_type_1): Likewise.
7582         (ada_to_fixed_type_1): Likewise.
7583         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7584         (cp_print_value): Likewise.
7585         * d-valprint.c (dynamic_array_type): Likewise.
7586         * eval.c (evaluate_subexp_with_coercion): Likewise.
7587         * findvar.c (address_of_variable): Likewise.
7588         * jv-valprint.c (java_value_print): Likewise.
7589         * valops.c (value_ind): Likewise.
7590         * value.c (coerce_ref): Likewise.
7591
7592         * c-typeprint.c (c_type_print_varspec_suffix): Added
7593         check for not yet resolved high bound. If unresolved, print
7594         "variable length" string to the console instead of random
7595         length.
7596
7597         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7598         property and store it as the high bound and flag the range accordingly.
7599         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7600         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7601         * gdbtypes.h (enum range_flags): New enum.
7602         (struct range_bounds): Add flags member.
7603
7604         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7605         points to a constant blob.
7606
7607         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7608         (evaluate_subexp_standard): Pass noside argument.
7609         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7610         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7611         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7612         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7613         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7614
7615 2014-04-11  Keith Seitz  <keiths@redhat.com>
7616
7617         PR c++/16675
7618         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7619         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7620         reference types.
7621
7622 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7623
7624         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7625         (evaluate_subexp_standard): Pass noside argument.
7626         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7627         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7628         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7629         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7630         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7631
7632 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7633
7634         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7635         points to a constant blob.
7636
7637 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7638
7639         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7640         property and store it as the high bound and flag the range accordingly.
7641         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7642         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7643         * gdbtypes.h (enum range_flags): New enum.
7644         (struct range_bounds): Add flags member.
7645
7646 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7647
7648         * c-typeprint.c (c_type_print_varspec_suffix): Added
7649         check for not yet resolved high bound. If unresolved, print
7650         "variable length" string to the console instead of random
7651         length.
7652
7653 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7654
7655         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7656         (ada_template_to_fixed_record_type_1): Likewise.
7657         (ada_to_fixed_type_1): Likewise.
7658         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7659         (cp_print_value): Likewise.
7660         * d-valprint.c (dynamic_array_type): Likewise.
7661         * eval.c (evaluate_subexp_with_coercion): Likewise.
7662         * findvar.c (address_of_variable): Likewise.
7663         * jv-valprint.c (java_value_print): Likewise.
7664         * valops.c (value_ind): Likewise.
7665         * value.c (coerce_ref): Likewise.
7666
7667 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7668
7669         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7670         value and retrieve the dynamic type size.
7671
7672 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7673
7674         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7675         passed to sizeof is dynamic evaluate the argument to compute the length.
7676
7677 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7678
7679         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7680         (dwarf2_evaluate_property): New function.
7681         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7682         * dwarf2read.c (attr_to_dynamic_prop): New function.
7683         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7684         attribute.
7685         * gdbtypes.c: Include dwarf2loc.h.
7686         (is_dynamic_type): New function.
7687         (resolve_dynamic_type): New function.
7688         (resolve_dynamic_bounds): New function.
7689         (get_type_length): New function.
7690         (check_typedef): Use get_type_length to compute type length.
7691         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7692         (TYPE_LOW_BOUND_KIND): New macro.
7693         (is_dynamic_type): New function prototype.
7694         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7695         to resolve dynamic properties of the type. Update comment.
7696         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7697
7698 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7699
7700         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7701         declaring high/low bounds and change uses accordingly. Call
7702         create_range_type instead of create_static_range_type.
7703         * gdbtypes.c (create_range_type): New function.
7704         (create_range_type): Convert bounds into struct bound_prop and pass
7705         them to create_range_type.
7706         * gdbtypes.h (struct bound_prop): New struct.
7707         (create_range_type): New function prototype.
7708         (struct range_bounds): Use struct bound_prop instead of LONGEST for
7709         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7710         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7711         part of the bound.
7712         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7713
7714 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7715
7716         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7717         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7718         * ada-lang.c: All uses of create_range_type updated.
7719         * coffread.c: All uses of create_range_type updated.
7720         * dwarf2read.c: All uses of create_range_type updated.
7721         * f-exp.y: All uses of create_range_type updated.
7722         * m2-valprint.c: All uses of create_range_type updated.
7723         * mdebugread.c: All uses of create_range_type updated.
7724         * stabsread.c: All uses of create_range_type updated.
7725         * valops.c: All uses of create_range_type updated.
7726         * valprint.c: All uses of create_range_type updated.
7727
7728 2014-04-10  Pedro Alves  <palves@redhat.com>
7729
7730         * breakpoint.c (single_step_breakpoints)
7731         (single_step_gdbarch): Move up in the file.
7732         (one_breakpoint_xfer_memory): New function, factored out from ...
7733         (breakpoint_xfer_memory): ... here.  Also process single-step
7734         breakpoints.
7735
7736 2014-04-09  Tristan Gingold  <gingold@adacore.com>
7737
7738         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7739         comments.
7740         (darwin_decode_exception_message): Free port only after use.
7741
7742 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
7743
7744         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7745         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7746         when setting the size of call_length.
7747
7748 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
7749
7750         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7751         dereference TYPE_CODE_REF values.
7752
7753 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
7754
7755         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7756         end of warning message.
7757
7758 2014-04-03  Doug Evans  <dje@google.com>
7759
7760         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7761         of stub_comp_unit_die, stub_comp_dir is non-NULL.
7762
7763 2014-04-02  Alan Modra  <amodra@gmail.com>
7764
7765         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7766         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
7767         (struct symbol_file_add_from_memory_args): Add size field.
7768         (find_vdso_size): New function.
7769         (add_vsyscall_page): Attempt to find vdso size.
7770
7771 2014-04-01  Doug Evans  <dje@google.com>
7772
7773         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7774
7775 2014-04-01  Tristan Gingold  <gingold@adacore.com>
7776
7777         * darwin-nat.c (darwin_encode_reply): Add prototype.
7778         (darwin_decode_exception_message): Reply to unknown inferiors.
7779         (darwin_decode_message): Handle message by id.  Ignore message
7780         to unknown inferior.
7781         (darwin_wait): Discard unknown messages, add debug trace.
7782
7783 2014-03-31  Doug Evans  <dje@google.com>
7784
7785         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7786         comp_dir_string.
7787
7788 2014-03-31  Doug Evans  <dje@google.com>
7789
7790         New option "set print symbol-loading".
7791         * NEWS: Mention it.
7792         * solib.c (solib_read_symbols): Only print symbol loading messages
7793         if requested.
7794         (solib_add): If symbol loading is in "brief" mode, notify user
7795         symbols are being loaded.
7796         (reload_shared_libraries_1): Ditto.
7797         * symfile.c (print_symbol_loading_off): New static global.
7798         (print_symbol_loading_brief): New static global.
7799         (print_symbol_loading_full): New static global.
7800         (print_symbol_loading_enums): New static global.
7801         (print_symbol_loading): New static global.
7802         (print_symbol_loading_p): New function.
7803         (symbol_file_add_with_addrs): Only print symbol loading messages
7804         if requested.
7805         (_initialize_symfile): Register "print symbol-loading" set/show
7806         command.
7807         * symfile.h (print_symbol_loading_p): Declare.
7808
7809 2014-03-30  Doug Evans  <xdje42@gmail.com>
7810
7811         * infrun.c (set_last_target_status): New function.
7812         (handle_inferior_event): Call it.
7813
7814 2014-03-30  Doug Evans  <xdje42@gmail.com>
7815
7816         * inferior.h (enum stop_kind): Improve comment.
7817
7818 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
7819
7820         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7821         a reference, strip the reference layer before calling
7822         the lang_ops value_has_mutated callback.
7823
7824 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7825
7826         Remove some globals from our parser.
7827         * language.c (unk_lang_parser): Add "struct parser_state"
7828         argument.
7829         * language.h (struct language_defn) <la_parser>: Likewise.
7830         * parse.c (expout, expout_size, expout_ptr): Remove variables.
7831         (initialize_expout): Add "struct parser_state" argument.
7832         Rewrite function to use the parser state.
7833         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7834         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7835         write_exp_elt_longcst, write_exp_elt_dblcst,
7836         write_exp_elt_decfloatcst, write_exp_elt_type,
7837         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7838         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7839         write_dollar_variable): Likewise.
7840         (parse_exp_in_context_1): Use parser state.
7841         (insert_type_address_space): Add "struct parser_state" argument.
7842         Use parser state.
7843         (increase_expout_size): New function.
7844         * parser-defs.h: Forward declare "struct language_defn" and
7845         "struct parser_state".
7846         (expout, expout_size, expout_ptr): Remove extern declarations.
7847         (parse_gdbarch, parse_language): Rewrite macro declarations to
7848         accept the parser state.
7849         (struct parser_state): New struct.
7850         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7851         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7852         write_exp_elt_decfloatcst, write_exp_elt_type,
7853         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7854         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7855         write_exp_msymbol, write_dollar_variable,
7856         mark_struct_expression, insert_type_address_space): Add "struct
7857         parser_state" argument.
7858         (increase_expout_size): New function.
7859         * utils.c (do_clear_parser_state): New function.
7860         (make_cleanup_clear_parser_state): Likewise.
7861         * utils.h (make_cleanup_clear_parser_state): New function
7862         prototype.
7863         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7864         Update calls to write_exp* in order to pass the parser state.
7865         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7866         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7867         (i386_stap_parse_special_token_three_arg_disp): Likewise.
7868         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7869         * stap-probe.c (stap_parse_register_operand): Likewise.
7870         (stap_parse_single_operand): Likewise.
7871         (stap_parse_argument_1): Likewise.
7872         (stap_parse_argument): Use parser state.
7873         * stap-probe.h: Include "parser-defs.h".
7874         (struct stap_parse_info) <pstate>: New field.
7875         * c-exp.y (parse_type): Rewrite to use parser state.
7876         (yyparse): Redefine to c_parse_internal.
7877         (pstate): New global variable.
7878         (parse_number): Add "struct parser_state" argument.
7879         (write_destructor_name): Likewise.
7880         (type_exp): Update calls to write_exp* and similars in order to
7881         use parser state.
7882         (exp1, exp, variable, qualified_name, space_identifier,
7883         typename, typebase): Likewise.
7884         (write_destructor_name, parse_number, lex_one_token,
7885         classify_name, classify_inner_name, c_parse): Add "struct
7886         parser_state" argument.  Update function to use parser state.
7887         * c-lang.h: Forward declare "struct parser_state".
7888         (c_parse): Add "struct parser_state" argument.
7889         * ada-exp.y (parse_type): Rewrite macro to use parser state.
7890         (yyparse): Redefine macro to ada_parse_internal.
7891         (pstate): New variable.
7892         (write_int, write_object_renaming, write_var_or_type,
7893         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7894         type_int, type_long, type_long_long, type_float, type_double,
7895         type_long_double, type_char, type_boolean, type_system_address):
7896         Add "struct parser_state" argument.
7897         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7898         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7899         var_or_type, aggregate, aggregate_component_list,
7900         positional_list, others, component_group,
7901         component_associations): Update calls to write_exp* and similar
7902         functions in order to use parser state.
7903         (ada_parse, write_var_from_sym, write_int,
7904         write_exp_op_with_string, write_object_renaming,
7905         find_primitive_type, write_selectors, write_ambiguous_var,
7906         write_var_or_type, write_name_assoc, type_int, type_long,
7907         type_long_long, type_float, type_double, type_long_double,
7908         type_char, type_boolean, type_system_address): Add "struct
7909         parser_state" argument.  Adjust function to use parser state.
7910         * ada-lang.c (parse): Likewise.
7911         * ada-lang.h: Forward declare "struct parser_state".
7912         (ada_parse): Add "struct parser_state" argument.
7913         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
7914         calls to both functions.
7915         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7916         parser state.
7917         (yyparse): Redefine macro to f_parse_internal.
7918         (pstate): New variable.
7919         (parse_number): Add "struct parser_state" argument.
7920         (type_exp, exp, subrange, typebase): Update calls to write_exp*
7921         and similars in order to use parser state.
7922         (parse_number): Adjust code to use parser state.
7923         (yylex): Likewise.
7924         (f_parse): New function.
7925         * f-lang.h: Forward declare "struct parser_state".
7926         (f_parse): Add "struct parser_state" argument.
7927         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7928         parser state.
7929         (yyparse): Redefine macro for java_parse_internal.
7930         (pstate): New variable.
7931         (push_expression_name, push_expression_name, insert_exp): Add
7932         "struct parser_state" argument.
7933         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7934         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7935         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7936         PostIncrementExpression, PostDecrementExpression,
7937         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7938         UnaryExpressionNotPlusMinus, CastExpression,
7939         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7940         RelationalExpression, EqualityExpression, AndExpression,
7941         ExclusiveOrExpression, InclusiveOrExpression,
7942         ConditionalAndExpression, ConditionalOrExpression,
7943         ConditionalExpression, Assignment, LeftHandSide): Update
7944         calls to write_exp* and similars in order to use parser state.
7945         (parse_number): Ajust code to use parser state.
7946         (yylex): Likewise.
7947         (java_parse): New function.
7948         (push_variable): Add "struct parser_state" argument.  Adjust
7949         code to user parser state.
7950         (push_fieldnames, push_qualified_expression_name,
7951         push_expression_name, insert_exp): Likewise.
7952         * jv-lang.h: Forward declare "struct parser_state".
7953         (java_parse): Add "struct parser_state" argument.
7954         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7955         parser state.
7956         (yyparse): Redefine macro to m2_parse_internal.
7957         (pstate): New variable.
7958         (type_exp, exp, fblock, variable, type): Update calls to
7959         write_exp* and similars to use parser state.
7960         (yylex): Likewise.
7961         (m2_parse): New function.
7962         * m2-lang.h: Forward declare "struct parser_state".
7963         (m2_parse): Add "struct parser_state" argument.
7964         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7965         * objc-lang.h: Forward declare "struct parser_state".
7966         (end_msglist): Add "struct parser_state" argument.
7967         * p-exp.y (parse_type): Rewrite macro to use parser state.
7968         (yyparse): Redefine macro to pascal_parse_internal.
7969         (pstate): New variable.
7970         (parse_number): Add "struct parser_state" argument.
7971         (type_exp, exp1, exp, qualified_name, variable): Update calls to
7972         write_exp* and similars in order to use parser state.
7973         (parse_number, yylex): Adjust code to use parser state.
7974         (pascal_parse): New function.
7975         * p-lang.h: Forward declare "struct parser_state".
7976         (pascal_parse): Add "struct parser_state" argument.
7977         * go-exp.y (parse_type): Rewrite macro to use parser state.
7978         (yyparse): Redefine macro to go_parse_internal.
7979         (pstate): New variable.
7980         (parse_number): Add "struct parser_state" argument.
7981         (type_exp, exp1, exp, variable, type): Update calls to
7982         write_exp* and similars in order to use parser state.
7983         (parse_number, lex_one_token, classify_name, yylex): Adjust code
7984         to use parser state.
7985         (go_parse): Likewise.
7986         * go-lang.h: Forward declare "struct parser_state".
7987         (go_parse): Add "struct parser_state" argument.
7988
7989 2014-03-27  Doug Evans  <dje@google.com>
7990
7991         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
7992
7993 2014-03-27  Doug Evans  <dje@google.com>
7994
7995         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7996         Remove argument abbrev_section.  All callers updated.
7997
7998 2014-03-27  Doug Evans  <dje@google.com>
7999
8000         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8001         addr_base, ranges_base.
8002
8003 2014-03-26  Keith Seitz  <keiths@redhat.com>
8004
8005         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8006         types, not VAR_DOMAIN.
8007
8008 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
8009
8010         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8011         "ra" registers.
8012         * features/nios2-linux.c: Regenerated.
8013         * features/nios2.c: Regenerated.
8014
8015 2014-03-25  Pedro Alves  <palves@redhat.com>
8016
8017         * cli/cli-script.c (script_from_file): Force the interpreter to
8018         sync mode.
8019
8020 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8021
8022         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8023         small stack allocation.
8024
8025 2014-03-24  Tristan Gingold  <gingold@adacore.com>
8026
8027         * darwin-nat.c (exc_server): Remove unused prototype.
8028         (darwin_dump_message): Correctly display data on x86_64.
8029         (darwin_encode_reply): Fix style.
8030         Add comments and fix indentation.
8031
8032 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8033
8034         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8035
8036 2014-03-22  Doug Evans  <xdje42@gmail.com>
8037
8038         * infcmd.c: Whitespace fixes.
8039         (interrupt_command): Merge two function comments into one.
8040
8041 2014-03-22  Doug Evans  <xdje42@gmail.com>
8042
8043         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8044         All uses updated.
8045
8046 2014-03-22  Yao Qi  <yao@codesourcery.com>
8047
8048         * remote.c (target_read_live_memory): Remove.
8049         (memory_xfer_live_readonly_partial): Rename it to
8050         remote_xfer_live_readonly_partial.  Remove argument 'object'.
8051         All callers updated.  Call remote_read_bytes_1
8052         instead of target_read_live_memory.
8053         * tracepoint.c (set_traceframe_number): Remove.
8054         (make_cleanup_restore_traceframe_number): Likewise .
8055         * tracepoint.h (set_traceframe_number): Remove declaration.
8056         (make_cleanup_restore_traceframe_number): Likewise.
8057
8058 2014-03-22  Yao Qi  <yao@codesourcery.com>
8059
8060         * remote.c (remote_read_bytes): Move code on reading from the
8061         remote stub to ...
8062         (remote_read_bytes_1): ... here.  New function.
8063
8064 2014-03-22  Yao Qi  <yao@codesourcery.com>
8065
8066         * ctf.c (ctf_xfer_partial): Check the return value of
8067         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8068         return TARGET_XFER_UNAVAILABLE.
8069         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8070         * target.c (target_read_live_memory): Move it to remote.c.
8071         (memory_xfer_live_readonly_partial): Likewise.
8072         (memory_xfer_partial_1): Move some code to remote_read_bytes.
8073         * remote.c (target_read_live_memory): Moved from target.c.
8074         (memory_xfer_live_readonly_partial): Likewise.
8075         (remote_read_bytes): Factored out from
8076         memory_xfer_partial_1.
8077
8078 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
8079
8080         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8081         NULL pointer.
8082
8083 2014-03-21  Pedro Alves  <palves@redhat.com>
8084
8085         * infrun.c (normal_stop): Extend comment.
8086
8087 2014-03-21  Hui Zhu  <hui@codesourcery.com>
8088             Pedro Alves  <palves@redhat.com>
8089
8090         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8091         static buffer.
8092         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8093         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8094         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8095
8096 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
8097
8098         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8099         `z' formatted output modifier.
8100
8101 2014-03-20  Tom Tromey  <tromey@redhat.com>
8102             Sergio Durigan Junior  <sergiodj@redhat.com>
8103
8104         * probe.c (parse_probes): Turn assert into an ordinary error.
8105         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8106         exceptions when parsing probes.  Rearrange the code for clarity.
8107
8108 2014-03-20  Tom Tromey  <tromey@redhat.com>
8109
8110         PR gdb/14135
8111         * top.c (execute_command): Only dispatch events if the command
8112         started the target.
8113
8114 2014-03-20  Tom Tromey  <tromey@redhat.com>
8115
8116         PR cli/15718
8117         * infcall.c: Include event-top.h.
8118         (run_inferior_call): Call async_disable_stdin if needed.
8119
8120 2014-03-20  Pedro Alves  <palves@redhat.com>
8121
8122         * infrun.c (prepare_to_proceed): Delete.
8123         (thread_still_needs_step_over): New function.
8124         (find_thread_needs_step_over): New function.
8125         (proceed): If the current thread needs a step-over, set its
8126         steping_over_breakpoint flag.  Adjust to use
8127         find_thread_needs_step_over instead of prepare_to_proceed.
8128         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8129         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8130         breakpoint.
8131         (switch_back_to_stepped_thread): Step over breakpoints of all
8132         threads not the stepping thread, before switching back to the
8133         stepping thread.
8134
8135 2014-03-20  Pedro Alves  <palves@redhat.com>
8136
8137         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8138         extern.
8139         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8140         * infrun.c (saved_singlestep_ptid)
8141         (stepping_past_singlestep_breakpoint): Delete.
8142         (resume): Remove stepping_past_singlestep_breakpoint handling.
8143         (proceed): Store the prev_pc of the stepping thread too.
8144         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
8145         singlestep_pc.
8146         (enum infwait_states): Delete infwait_thread_hop_state.
8147         (struct execution_control_state) <hit_singlestep_breakpoint>: New
8148         field.
8149         (handle_inferior_event): Adjust.
8150         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8151         handling and the thread-hop code.  Before removing single-step
8152         breakpoints, check whether the thread hit a single-step breakpoint
8153         of another thread.  If it did, the trap is not a random signal.
8154         (switch_back_to_stepped_thread): If the event thread hit a
8155         single-step breakpoint, unblock it before switching to the
8156         stepping thread.  Handle the case of the stepped thread having
8157         advanced already.
8158         (keep_going): Handle the case of the current thread moving past a
8159         single-step breakpoint.
8160
8161 2014-03-20  Pedro Alves  <palves@redhat.com>
8162
8163         PR breakpoints/7143
8164         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8165         are being stepped over.
8166         (breakpoint_address_match): Make extern.
8167         * breakpoint.h (breakpoint_address_match): New declaration.
8168         * inferior.h (stepping_past_instruction_at): New declaration.
8169         * infrun.c (struct step_over_info): New type.
8170         (step_over_info): New global.
8171         (set_step_over_info, clear_step_over_info)
8172         (stepping_past_instruction_at): New functions.
8173         (handle_inferior_event): Clear the step-over info when
8174         trap_expected is cleared.
8175         (resume): Remove now stale comment.
8176         (clear_proceed_status): Clear step-over info.
8177         (proceed): Adjust step-over handling to set or clear the step-over
8178         info instead of removing all breakpoints.
8179         (handle_signal_stop): When setting up a thread-hop, don't remove
8180         breakpoints here.
8181         (stop_stepping): Clear step-over info.
8182         (keep_going): Adjust step-over handling to set or clear step-over
8183         info and then always inserting breakpoints, instead of removing
8184         all breakpoints when stepping over one.
8185
8186 2014-03-20  Pedro Alves  <palves@redhat.com>
8187
8188         * infrun.c (previous_inferior_ptid): Adjust comment.
8189         (deferred_step_ptid): Delete.
8190         (infrun_thread_ptid_changed, prepare_to_proceed)
8191         (init_wait_for_inferior): Adjust.
8192         (handle_signal_stop): Delete deferred_step_ptid handling.
8193
8194 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
8195
8196         PR gdb/15358
8197         * defs.h (sync_quit_force_run): New declaration.
8198         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8199         * event-top.c (async_sigterm_handler): New declaration.
8200         (async_sigterm_token): New variable.
8201         (async_init_signals): Create also async_sigterm_token.
8202         (async_sigterm_handler): New function.
8203         (sync_quit_force_run): New variable.
8204         (handle_sigterm): Replace quit_force call by other calls.
8205         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8206
8207 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
8208
8209         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8210         offset into SPE pseudo registers.
8211
8212 2014-03-18  Pedro Alves  <palves@redhat.com>
8213
8214         PR gdb/13860
8215         * inferior.h (print_stop_event): Declare.
8216         * infrun.c (print_stop_event): New, factored out from ...
8217         (normal_stop): ... this.
8218         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8219         of bpstat_print/print_stack_frame.
8220
8221 2014-03-17  Tom Tromey  <tromey@redhat.com>
8222
8223         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8224
8225 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
8226
8227         * ada-lang.c (decode_constrained_packed_array): Perform a
8228         minimal coercion for reference with coerce_ref instead of
8229         ada_coerce_ref.
8230
8231 2014-03-17  Tristan Gingold  <gingold@adacore.com>
8232
8233         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8234         (darwin_solib_create_inferior_hook): Emit a warning if version
8235         is unhandled.
8236
8237 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
8238
8239         * python/py-value.c (get_field_flag): Cast flag_name argument to
8240         PyObject_GetAttrString to support Python 2.4.
8241
8242 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8243
8244         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8245         (Global Maintainers): Remove Jan Kratochvil.
8246
8247 2014-03-14  Pedro Alves  <palves@redhat.com>
8248
8249         * inferior.h (terminal_ours_for_output): Rename to ...
8250         (child_terminal_ours_for_output): ... this.
8251         (terminal_save_ours): Rename to ...
8252         (child_terminal_save_ours): ... this.
8253         (terminal_ours): Rename to ...
8254         (child_terminal_ours): ... this.
8255         (terminal_inferior): Rename to ...
8256         (child_terminal_inferior): ... this.
8257         (terminal_init_inferior): Rename to ...
8258         (child_terminal_init_inferior): ... this.
8259         (terminal_init_inferior_with_pgrp): Rename to ...
8260         (child_terminal_init_inferior_with_pgrp): ... this.
8261         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8262         (child_terminal_init_with_pgrp): ... this.
8263         (terminal_save_ours): Rename to ...
8264         (child_terminal_save_ours): ... this.
8265         (terminal_init_inferior): Rename to ...
8266         (child_terminal_init): ... this.  Adjust.
8267         (terminal_inferior): Rename to ...
8268         (child_terminal_inferior): ... this.
8269         (terminal_ours_for_output): Rename to ...
8270         (child_terminal_ours_for_output): ... this.  Adjust.
8271         (terminal_ours): Rename to ...
8272         (child_terminal_ours): ... this.
8273         (terminal_ours_1): Rename to ...
8274         (child_terminal_ours_1): ... this.  Adjust.
8275         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8276         * windows-nat.c (do_initial_windows_stuff): Adjust.
8277         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8278         (gnu_terminal_init): ... this.  Adjust.
8279         (gnu_target): Adjust.
8280         * inf-child.c (inf_child_target): Adjust.
8281
8282 2014-03-13  Doug Evans  <xdje42@gmail.com>
8283
8284         PR guile/16612
8285         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8286         new eq?-hashtab.
8287
8288 2014-03-13  Doug Evans  <xdje42@gmail.com>
8289
8290         * value.c (record_latest_value): Call release_value_or_incref
8291         instead of release_value.
8292
8293 2014-03-13  Pedro Alves  <palves@redhat.com>
8294
8295         * procfs.c (procfs_target): Don't override to_shortname,
8296         to_longname or to_doc.
8297
8298 2014-03-13  Pedro Alves  <palves@redhat.com>
8299
8300         * inf-child.c (inf_child_open, inf_child_target): Don't mention
8301         Unix in user visible strings.
8302
8303 2014-03-12  Stan Shebs  <stan@codesourcery.com>
8304
8305         * gdbtypes.h: Annotate comments for Doxygen, add a page
8306         block comment with some general info.
8307
8308 2014-03-12  Pedro Alves  <palves@redhat.com>
8309
8310         * infcmd.c (prepare_execution_command): New function, factored out
8311         from several execution commands.
8312         (run_command_1, continue_command, step_1, jump_command)
8313         (signal_command, until_command, advance_command, finish_command)
8314         (attach_command): Use prepare_execution_command.
8315
8316 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
8317
8318         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8319         (MAX_BPTS): Define.
8320         (MAX_WPTS): Define.
8321         (struct arm_linux_thread_points): Removed.
8322         (struct arm_linux_process_info): New.
8323         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8324         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8325         (arm_linux_find_breakpoints_by_tid): Removed.
8326         (struct arch_lwp_info): New.
8327         (arm_linux_find_process_pid): New functions.
8328         (arm_linux_add_process): New functions.
8329         (arm_linux_process_info_get): New functions.
8330         (arm_linux_forget_process): New function.
8331         (arm_linux_get_debug_reg_state): New function.
8332         (struct update_registers_data): New.
8333         (update_registers_callback): New function.
8334         (arm_linux_insert_hw_breakpoint1): Updated.
8335         (arm_linux_remove_hw_breakpoint1): Updated.
8336         (arm_linux_insert_hw_breakpoint): Updated.
8337         (arm_linux_remove_hw_breakpoint): Updated.
8338         (arm_linux_insert_watchpoint): Updated.
8339         (arm_linux_remove_watchpoint): Updated.
8340         (arm_linux_new_thread): Updated.
8341         (arm_linux_prepare_to_resume): New function.
8342         (arm_linux_new_fork): New function.
8343         (_initialize_arm_linux_nat): Updated.
8344
8345 2014-03-12  Pedro Alves  <palves@redhat.com>
8346
8347         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8348
8349 2014-03-12  Tom Tromey  <tromey@redhat.com>
8350
8351         * inf-child.c (return_zero): New function.
8352         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8353         * aix-thread.c (aix_thread_inferior_created): New function.
8354         (aix_thread_attach): Remove.
8355         (init_aix_thread_ops): Don't set to_attach.
8356         (_initialize_aix_thread): Register inferior_created observer.
8357         * corelow.c (init_core_ops): Don't set to_attach or
8358         to_create_inferior.
8359         * exec.c (init_exec_ops): Don't set to_attach or
8360         to_create_inferior.
8361         * infcmd.c (run_command_1): Use find_run_target.  Make direct
8362         target calls.
8363         (attach_command): Use find_attach_target.  Make direct target
8364         calls.
8365         * record-btrace.c (init_record_btrace_ops): Don't set
8366         to_create_inferior.
8367         * record-full.c (record_full_can_async_p, record_full_is_async_p):
8368         Remove.
8369         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
8370         set to_create_inferior.
8371         * target.c (complete_target_initialization): Add assertion.
8372         (target_create_inferior): Remove.
8373         (find_default_attach, find_default_create_inferior): Remove.
8374         (find_attach_target, find_run_target): New functions.
8375         (find_default_is_async_p, find_default_can_async_p)
8376         (target_supports_non_stop, target_attach): Remove.
8377         (init_dummy_target): Don't set to_create_inferior or
8378         to_supports_non_stop.
8379         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
8380         TARGET_DEFAULT_FUNC.
8381         <to_create_inferior>: Add comment.
8382         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8383         TARGET_DEFAULT_RETURN.
8384         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8385         (find_attach_target, find_run_target): Declare.
8386         (target_create_inferior): Remove.
8387         (target_has_execution_1): Update comment.
8388         (target_supports_non_stop): Remove.
8389         * target-delegates.c: Rebuild.
8390
8391 2014-03-12  Pedro Alves  <palves@redhat.com>
8392
8393         * inf-child.h: Update comment to not mention Unix.
8394
8395 2014-03-12  Pedro Alves  <palves@redhat.com>
8396
8397         * inf-child.c: Update top comment to not mention Unix.  Add
8398         generic comment describing how this target is meant to be used.
8399         (inf_child_post_attach, inf_child_post_startup_inferior)
8400         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8401         Unix in comment.
8402
8403 2014-03-12  Pedro Alves  <palves@redhat.com>
8404
8405         * nto-procfs.c: Include inf-child.h.
8406         (procfs_ops): Delete global.
8407         (procfs_can_run): Delete method.
8408         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8409         target pointer instead of referencing procfs_ops.
8410         (procfs_prepare_to_store): Delete.
8411         (init_procfs_ops): Delete function.
8412         (procfs_target): New function, based on init_procfs_ops, but
8413         inherit inf_child_target.
8414         (_initialize_procfs): Use procfs_target.
8415
8416 2014-03-12  Pedro Alves  <palves@redhat.com>
8417
8418         * windows-nat.c: Include inf-child.h.
8419         (windows_ops): Delete global.
8420         (windows_open, windows_prepare_to_store, windows_can_run): Delete
8421         methods.
8422         (init_windows_ops): Delete function.
8423         (windows_target): New function, based on init_windows_ops, but
8424         inherit inf_child_target.
8425         (_initialize_windows_nat): Use windows_target.  Install x86
8426         specific target methods here.
8427
8428 2014-03-10  Doug Evans  <xdje42@gmail.com>
8429
8430         * guile/guile.c (call_initialize_gdb_module): New function.
8431         (initialize_guile): Replace call to scm_init_guile with call to
8432         scm_with_guile.
8433
8434 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
8435
8436         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8437         in call to TYPE_CODE macro.
8438
8439 2014-03-10  Jerome Guitton  <guitton@adacore.com>
8440
8441         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8442         Resolve tagged types to full view.
8443
8444 2014-03-10  Hui Zhu  <hui@codesourcery.com>
8445
8446         * target.h (target_insert_breakpoint): Remove "hardware" from its
8447         comments.
8448
8449 2014-03-07  Doug Evans  <dje@google.com>
8450
8451         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8452
8453 2014-03-07  Doug Evans  <dje@google.com>
8454
8455         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8456         Remove unused local comp_dir_attr.  Assert exactly one of
8457         stub_comp_unit_die, stub_comp_dir is non-NULL.
8458
8459 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
8460
8461         * target.h (complete_target_initialization, add_target):
8462         Add comment.
8463
8464 2014-03-07  Pedro Alves  <palves@redhat.com>
8465
8466         * go32-nat.c: Include inf-child.h.
8467         (go32_ops): Delete global.
8468         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8469         Delete methods.
8470         (go32_create_inferior): Push the passed in target pointer instead
8471         of referencing go32_ops.
8472         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
8473         (go32_target): New function, based on init_go32_ops, but inherit
8474         inf_child_target.
8475         (_initialize_go32_nat): Use go32_target.  Move parts of
8476         init_go32_ops here.
8477
8478 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
8479
8480         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8481         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8482         SYMBOL_VALUE_ADDRESS.
8483         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8484
8485 2014-03-06  Yao Qi  <yao@codesourcery.com>
8486
8487         * breakpoint.c (get_tracepoint_by_number): Remove argument
8488         optional_p.  All callers updated.  Adjust comments.  Update
8489         output message.
8490         * breakpoint.h (get_tracepoint_by_number): Update declaration.
8491
8492 2014-03-06  Yao Qi  <yao@codesourcery.com>
8493
8494         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
8495         early if get_number returns zero.  Use 'p' instead of 'args'.
8496
8497 2014-03-06  Yao Qi  <yao@codesourcery.com>
8498
8499         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8500         message.
8501
8502 2014-03-06  Yao Qi  <yao@codesourcery.com>
8503
8504         PR breakpoints/16508
8505         * tracepoint.c (check_trace_running): New function.
8506         (trace_find_command): Move code to check_trace_running and
8507         call check_trace_running.
8508         (trace_find_pc_command): Likewise.
8509         (trace_find_tracepoint_command): Likewise.
8510         (trace_find_line_command): Likewise.
8511         (trace_find_range_command): Likewise.
8512         * tracepoint.h (check_trace_running): Likewise.
8513         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8514
8515 2014-03-06  Yao Qi  <yao@codesourcery.com>
8516
8517         * target.h (struct target_ops) <to_traceframe_info>: Use
8518         TARGET_DEFAULT_NORETURN (tcomplain ()).
8519         * target-delegates.c: Regenerated.
8520
8521 2014-03-05  Pedro Alves  <palves@redhat.com>
8522
8523         PR gdb/16575
8524         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
8525         void.  Update comment.
8526         (dcache_xfer_memory): Delete.
8527         (dcache_read_memory_partial): New, based on the read bits of
8528         dcache_xfer_memory.
8529         (dcache_update): Add status parameter.  Use ULONGEST for len, and
8530         adjust.  Discard cache lines if the reason for the update was
8531         error.
8532         * dcache.h (dcache_xfer_memory): Delete declaration.
8533         (dcache_read_memory_partial): New declaration.
8534         (dcache_update): Update prototype.
8535         * target.c (raw_memory_xfer_partial): Update the dcache here.
8536         (memory_xfer_partial_1): Don't handle dcache writes here.
8537
8538 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
8539
8540         * remote-sim.c (gdbsim_load): Add const to prog.
8541
8542 2014-03-03  Tom Tromey  <tromey@redhat.com>
8543
8544         * elfread.c (probe_key): Change to bfd_data.
8545         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8546         now per-BFD, not per-objfile.
8547         * stap-probe.c (stap_probe_destroy): Update comment.
8548         (handle_stap_probe): Allocate on the per-BFD obstack.
8549
8550 2014-03-03  Tom Tromey  <tromey@redhat.com>
8551
8552         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8553         * breakpoint.c (create_longjmp_master_breakpoint): Use
8554         get_probe_address.
8555         (add_location_to_breakpoint, bkpt_probe_insert_location)
8556         (bkpt_probe_remove_location): Update.
8557         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8558         * elfread.c (elf_symfile_relocate_probe): Remove.
8559         (elf_probe_fns): Update.
8560         (insert_exception_resume_breakpoint): Change type of "probe"
8561         parameter to bound_probe.
8562         (check_exception_resume): Update.
8563         * objfiles.c (objfile_relocate1): Don't relocate probes.
8564         * probe.c (bound_probe_s): New typedef.
8565         (parse_probes): Use get_probe_address.  Set sal's objfile.
8566         (find_probe_by_pc): Return a bound_probe.
8567         (collect_probes): Return a VEC(bound_probe_s).
8568         (compare_probes): Update.
8569         (gen_ui_out_table_header_info): Change type of "probes"
8570         parameter.  Update.
8571         (info_probes_for_ops): Update.
8572         (get_probe_address): New function.
8573         (probe_safe_evaluate_at_pc): Update.
8574         * probe.h (struct probe_ops) <get_probe_address>: New field.
8575         <set_semaphore, clear_semaphore>: Add objfile parameter.
8576         (struct probe) <objfile>: Remove field.
8577         <arch>: New field.
8578         <address>: Update comment.
8579         (struct bound_probe): New.
8580         (find_probe_by_pc): Return a bound_probe.
8581         (get_probe_address): Declare.
8582         * solib-svr4.c (struct probe_and_action) <address>: New field.
8583         (hash_probe_and_action, equal_probe_and_action): Update.
8584         (register_solib_event_probe): Add address parameter.
8585         (solib_event_probe_at): Update.
8586         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
8587         get_probe_address.
8588         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8589         (stap_get_probe_address): New function.
8590         (stap_can_evaluate_probe_arguments, compute_probe_arg)
8591         (compile_probe_arg): Update.
8592         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8593         address.
8594         (handle_stap_probe): Don't relocate the probe.
8595         (stap_relocate): Remove.
8596         (stap_gen_info_probes_table_values): Update.
8597         (stap_probe_ops): Remove stap_relocate.
8598         * symfile-debug.c (debug_sym_relocate_probe): Remove.
8599         (debug_sym_probe_fns): Update.
8600         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8601         * symtab.c (init_sal): Use memset.
8602         * symtab.h (struct symtab_and_line) <objfile>: New field.
8603         * tracepoint.c (start_tracing, stop_tracing): Update.
8604
8605 2014-03-03  Tom Tromey  <tromey@redhat.com>
8606
8607         * probe.h (parse_probes, find_probe_by_pc)
8608         (find_probes_in_objfile): Fix comments.
8609
8610 2014-03-02  Doug Evans  <xdje42@gmail.com>
8611
8612         * infrun.c (handle_signal_stop): Replace test for
8613         TARGET_WAITKIND_STOPPED with an assert.
8614
8615 2014-03-02  Doug Evans  <xdje42@gmail.com>
8616
8617         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8618
8619 2014-03-02  Doug Evans  <xdje42@gmail.com>
8620
8621         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8622
8623 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8624
8625         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8626
8627 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8628
8629         * i386obsd-nat.c: Include "obsd-nat.h".
8630         (_initialize_i386obsd_nat): Call obsd_add_target instead of
8631         add_target.
8632         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8633
8634 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8635
8636         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8637
8638 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8639
8640         * mips64obsd-nat.c: Include "obsd-nath".
8641         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8642         add_target
8643         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8644
8645 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8646
8647         * amd64obsd-nat.c: Include "obsd-nat,h.
8648         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8649         add_target.
8650         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8651
8652 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
8653
8654         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8655         (find_overload_match): Update call to find_oload_champ.
8656         (find_oload_champ_namespace_loop): Likewise
8657
8658 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
8659
8660         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8661
8662         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8663         * config/sparc/obsd64.mh: New file.
8664         * sparc64obsd-nat.c: New file.
8665
8666         * obsd-nat.h: New file.
8667         * obsd-nat.c: New file.
8668         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8669         (ALLDEPFILES): Add obsd-nat.c.
8670
8671 2014-02-28  Tom Tromey  <tromey@redhat.com>
8672
8673         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
8674         * cli-out.h (cli_ui_out_impl): Now const.
8675         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
8676         * ui-out.c (struct ui_out) <impl>: Now const.
8677         (default_ui_out_impl): Now const.
8678         (ui_out_new): Make 'impl' parameter const.
8679         * ui-out.h (ui_out_new): Update.
8680
8681 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8682
8683         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8684
8685 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8686
8687         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8688
8689 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
8690
8691         Additional PR 8882 fix.
8692         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8693
8694 2014-02-27  Pedro Alves  <palves@redhat.com>
8695
8696         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8697         isn't set.
8698
8699 2014-02-27  Pedro Alves  <palves@redhat.com>
8700
8701         PR 12702
8702         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8703         * nat/linux-waitpid.c: Include string.h.
8704         (status_to_str): Moved here and made extern.
8705         * nat/linux-waitpid.h (status_to_str): New declaration.
8706
8707 2014-02-27  Hui Zhu  <hui@codesourcery.com>
8708
8709         PR 12702
8710         * infrun.c (ptid_match): Move ...
8711         * common/ptid.c (ptid_match): ... here.
8712         * inferior.h (ptid_match): Move ...
8713         * common/ptid.h (ptid_match): ... here.
8714
8715 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8716
8717         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8718         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8719         gdb_target_obs.
8720
8721 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8722
8723         * obsd-tdep.c (obsd_auxv_parse): New function.
8724         (obsd_init_abi): Set auxv_parse.
8725
8726         * gdbarch.sh (auxv_parse): New.
8727         * gdbarch.h: Regenerated.
8728         * gdbarch.c: Regenerated.
8729         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8730
8731 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
8732
8733         * guile/scm-value.c (gdbscm_history_append_x): New function.
8734         (value_functions): Add it.
8735
8736 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8737
8738         * dwarf2read.c (attr_value_as_address): New function.
8739         (dwarf2_find_base_address, read_call_site_scope): Use
8740         attr_value_as_address in place of DW_ADDR.
8741         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8742         the low and high addresses.  Slight rework of the handling
8743         of the high pc being a constant form, and limit it to
8744         DWARF verson 4 or higher.
8745         (dwarf2_record_block_ranges): Likewise.
8746         (read_partial_die): Likewise.
8747         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8748
8749 2014-02-26  Tom Tromey  <tromey@redhat.com>
8750
8751         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8752
8753 2014-02-26  Tom Tromey  <tromey@redhat.com>
8754
8755         * elfread.c (elf_read_minimal_symbols): Return early if
8756         minimal symbols have already been read.  Add "ei" parameter.
8757         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8758         * minsyms.c (prim_record_minimal_symbol_full): Update.
8759         * objfiles.h (struct objstats) <n_minsyms>: Move...
8760         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8761         * symmisc.c (print_objfile_statistics): Update.
8762
8763 2014-02-26  Tom Tromey  <tromey@redhat.com>
8764
8765         * elfread.c (elf_read_minimal_symbols): New function, from
8766         elf_symfile_read.
8767         (elf_symfile_read): Call it.
8768
8769 2014-02-26  Tom Tromey  <tromey@redhat.com>
8770
8771         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8772         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8773         (lookup_minimal_symbol_solib_trampoline)
8774         (lookup_minimal_symbol_by_pc_section_1)
8775         (lookup_minimal_symbol_and_objfile): Update.
8776         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8777         Don't allocate a minimal symbol if minsyms have already been read.
8778         (build_minimal_symbol_hash_tables): Update.
8779         (install_minimal_symbols): Do nothing if minsyms already read.
8780         Use the per-BFD obstack.
8781         (terminate_minimal_symbol_table): Use the per-BFD obstack.
8782         * objfiles.c (allocate_objfile): Call
8783         terminate_minimal_symbol_table later.
8784         (have_minimal_symbols): Update.
8785         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8786         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8787         Move from struct objfile.
8788         <minsyms_read>: New field.
8789         (struct objfile) <msymbols, minimal_symbol_count,
8790         msymbol_hash, msymbol_demangled_hash>: Move.
8791         (ALL_OBJFILE_MSYMBOLS): Update.
8792         * symfile.c (read_symbols): Set minsyms_read.
8793         (reread_symbols): Update.
8794         * symmisc.c (dump_objfile, dump_msymbols): Update.
8795
8796 2014-02-26  Tom Tromey  <tromey@redhat.com>
8797
8798         * minsyms.c (msymbols_sort): Remove.
8799         * minsyms.h (msymbols_sort): Remove.
8800         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8801         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8802         * elfread.c (elf_symtab_read): Don't add section offsets.
8803         * xcoffread.c (record_minimal_symbol): Don't add section offset
8804         to minimal symbol address.
8805         * somread.c (text_offset, data_offset): Remove.
8806         (som_symtab_read): Don't add section offsets to minimal symbol
8807         addresses.
8808         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8809         Don't add section offsets to minimal symbols.
8810         * coffread.c (coff_symtab_read): Don't add section offsets
8811         to minimal symbol addresses.
8812         * machoread.c (macho_symtab_add_minsym): Don't add section offset
8813         to minimal symbol addresses.
8814         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8815         section offset to minimal symbol addresses.
8816         * mdebugread.c (parse_partial_symbols): Don't add section
8817         offset to minimal symbol addresses.
8818         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8819         offset to minimal symbol addresses.
8820
8821 2014-02-26  Tom Tromey  <tromey@redhat.com>
8822
8823         * ada-lang.c (ada_main_name): Update.
8824         (ada_add_standard_exceptions): Update.
8825         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8826         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8827         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8828         * auxv.c (ld_so_xfer_auxv): Update.
8829         * avr-tdep.c (avr_scan_prologue): Update.
8830         * ax-gdb.c (gen_var_ref): Update.
8831         * blockframe.c (get_pc_function_start)
8832         (find_pc_partial_function_gnu_ifunc): Update.
8833         * breakpoint.c (create_overlay_event_breakpoint)
8834         (create_longjmp_master_breakpoint)
8835         (create_std_terminate_master_breakpoint)
8836         (create_exception_master_breakpoint): Update.
8837         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8838         * c-valprint.c (c_val_print): Update.
8839         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8840         * common/agent.c (agent_look_up_symbols): Update.
8841         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8842         * dwarf2loc.c (call_site_to_target_addr): Update.
8843         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8844         * elfread.c (elf_gnu_ifunc_record_cache)
8845         (elf_gnu_ifunc_resolve_by_got): Update.
8846         * findvar.c (default_read_var_value): Update.
8847         * frame.c (inside_main_func): Update.
8848         * frv-tdep.c (frv_frame_this_id): Update.
8849         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8850         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8851         Update.
8852         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8853         (hppa_hpux_find_dummy_bpaddr): Update.
8854         * hppa-tdep.c (hppa_symbol_address): Update.
8855         * infcmd.c (until_next_command): Update.
8856         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8857         Update.
8858         * linespec.c (minsym_found, add_minsym): Update.
8859         * linux-nat.c (get_signo): Update.
8860         * linux-thread-db.c (inferior_has_bug): Update.
8861         * m32c-tdep.c (m32c_return_value)
8862         (m32c_m16c_address_to_pointer): Update.
8863         * m32r-tdep.c (m32r_frame_this_id): Update.
8864         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8865         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8866         * maint.c (maintenance_translate_address): Update.
8867         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8868         (frob_address): New function.
8869         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8870         frob_address.  Rename parameter to "pc_in".
8871         (compare_minimal_symbols, compact_minimal_symbols): Use raw
8872         addresses.
8873         (find_solib_trampoline_target, minimal_symbol_upper_bound):
8874         Update.
8875         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8876         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8877         * objc-lang.c (find_objc_msgsend): Update.
8878         * objfiles.c (objfile_relocate1): Update.
8879         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8880         * p-valprint.c (pascal_val_print): Update.
8881         * parse.c (write_exp_msymbol): Update.
8882         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8883         (ppc_elfv2_skip_entrypoint): Update.
8884         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8885         * printcmd.c (build_address_symbolic, msym_info)
8886         (address_info): Update.
8887         * proc-service.c (ps_pglobal_lookup): Update.
8888         * psymtab.c (find_pc_sect_psymtab_closer)
8889         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8890         Change msymbol parameter to bound_minimal_symbol.
8891         * ravenscar-thread.c (get_running_thread_id): Update.
8892         * remote.c (remote_check_symbols): Update.
8893         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8894         address.
8895         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8896         * solib-dsbt.c (lm_base): Update.
8897         * solib-frv.c (lm_base, main_got): Update.
8898         * solib-irix.c (locate_base): Update.
8899         * solib-som.c (som_solib_create_inferior_hook)
8900         (link_map_start): Update.
8901         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8902         * solib-svr4.c (elf_locate_base, enable_break): Update.
8903         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8904         (flush_ea_cache): Update.
8905         * stabsread.c (define_symbol, scan_file_globals): Update.
8906         * stack.c (find_frame_funname): Update.
8907         * symfile-debug.c (debug_qf_expand_symtabs_matching)
8908         (debug_qf_find_pc_sect_symtab): Update.
8909         * symfile.c (simple_read_overlay_table)
8910         (simple_overlay_update): Update.
8911         * symfile.h (struct quick_symbol_functions)
8912         <find_pc_sect_symtab>: Change type of msymbol to
8913         bound_minimal_symbol.
8914         * symmisc.c (dump_msymbols): Update.
8915         * symtab.c (find_pc_sect_symtab_via_partial)
8916         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8917         (search_symbols, print_msymbol_info): Update.
8918         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8919         (MSYMBOL_VALUE_ADDRESS): Redefine.
8920         (BMSYMBOL_VALUE_ADDRESS): New macro.
8921         * tracepoint.c (scope_info): Update.
8922         * tui/tui-disasm.c (tui_find_disassembly_address)
8923         (tui_get_begin_asm_address): Update.
8924         * valops.c (find_function_in_inferior): Update.
8925         * value.c (value_static_field, value_fn_field): Update.
8926
8927 2014-02-26  Tom Tromey  <tromey@redhat.com>
8928
8929         * ada-lang.c (ada_update_initial_language): Update.
8930         (ada_main_name, ada_has_this_exception_support): Update.
8931         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8932         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8933         * arm-tdep.c (arm_skip_stub): Update.
8934         * auxv.c (ld_so_xfer_auxv): Update.
8935         * avr-tdep.c (avr_scan_prologue): Update.
8936         * ax-gdb.c (gen_var_ref): Update.
8937         * breakpoint.c (struct breakpoint_objfile_data)
8938         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8939         type to bound_minimal_symbol.
8940         (create_overlay_event_breakpoint)
8941         (create_longjmp_master_breakpoint)
8942         (create_std_terminate_master_breakpoint)
8943         (create_exception_master_breakpoint): Update.
8944         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8945         * c-exp.y (classify_name): Update.
8946         * coffread.c (coff_symfile_read): Update.
8947         * common/agent.c (agent_look_up_symbols): Update.
8948         * d-lang.c (d_main_name): Update.
8949         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8950         * dec-thread.c (enable_dec_thread): Update.
8951         * dwarf2loc.c (call_site_to_target_addr): Update.
8952         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8953         * eval.c (evaluate_subexp_standard): Update.
8954         * findvar.c (struct minsym_lookup_data) <result>: Change type
8955         to bound_minimal_symbol.
8956         <objfile>: Remove.
8957         (minsym_lookup_iterator_cb, default_read_var_value): Update.
8958         * frame.c (inside_main_func): Update.
8959         * frv-tdep.c (frv_frame_this_id): Update.
8960         * gcore.c (call_target_sbrk): Update.
8961         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8962         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8963         Update.
8964         * go-lang.c (go_main_name): Update.
8965         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8966         (hppa_hpux_find_import_stub_for_addr): Update.
8967         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8968         Update.  Change return type.
8969         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8970         type.
8971         * jit.c (jit_breakpoint_re_set_internal): Update.
8972         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8973         Update.
8974         * linux-nat.c (get_signo): Update.
8975         * linux-thread-db.c (inferior_has_bug): Update
8976         * m32c-tdep.c (m32c_return_value)
8977         (m32c_m16c_address_to_pointer): Update.
8978         * m32r-tdep.c (m32r_frame_this_id): Update.
8979         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8980         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8981         * minsyms.c (lookup_minimal_symbol_internal): Rename to
8982         lookup_minimal_symbol.  Change return type.
8983         (lookup_minimal_symbol): Remove.
8984         (lookup_bound_minimal_symbol): Update.
8985         (lookup_minimal_symbol_text): Change return type.
8986         (lookup_minimal_symbol_solib_trampoline): Change return type.
8987         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8988         (lookup_minimal_symbol_solib_trampoline): Change return type.
8989         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8990         * objc-lang.c (lookup_objc_class, lookup_child_selector)
8991         (value_nsstring, find_imps): Update.
8992         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8993         * p-lang.c (pascal_main_name): Update.
8994         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8995         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8996         * proc-service.c (ps_pglobal_lookup): Update.
8997         * ravenscar-thread.c (get_running_thread_msymbol): Change
8998         return type.
8999         (has_ravenscar_runtime, get_running_thread_id): Update.
9000         * remote.c (remote_check_symbols): Update.
9001         * sol-thread.c (ps_pglobal_lookup): Update.
9002         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9003         * solib-dsbt.c (lm_base): Update.
9004         * solib-frv.c (lm_base, frv_relocate_section_addresses):
9005         Update.
9006         * solib-irix.c (locate_base): Update.
9007         * solib-som.c (som_solib_create_inferior_hook)
9008         (som_solib_desire_dynamic_linker_symbols, link_map_start):
9009         Update.
9010         * solib-spu.c (spu_enable_break): Update.
9011         * solib-svr4.c (elf_locate_base, enable_break): Update.
9012         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9013         (flush_ea_cache): Update.
9014         * stabsread.c (define_symbol): Update.
9015         * symfile.c (simple_read_overlay_table): Update.
9016         * symtab.c (find_pc_sect_line): Update.
9017         * tracepoint.c (scope_info): Update.
9018         * tui-disasm.c (tui_get_begin_asm_address): Update.
9019         * value.c (value_static_field): Update.
9020
9021 2014-02-26  Tom Tromey  <tromey@redhat.com>
9022
9023         * minsyms.c (prim_record_minimal_symbol_full): Use
9024         SET_MSYMBOL_VALUE_ADDRESS.
9025         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9026         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9027         SET_MSYMBOL_VALUE_ADDRESS.
9028         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9029         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9030
9031 2014-02-26  Tom Tromey  <tromey@redhat.com>
9032
9033         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9034         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9035         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9036         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9037         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9038         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9039         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9040         * ada-lang.c (ada_main_name): Update.
9041         (ada_lookup_simple_minsym): Update.
9042         (ada_make_symbol_completion_list): Update.
9043         (ada_add_standard_exceptions): Update.
9044         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9045         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9046         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9047         * arm-tdep.c (skip_prologue_function): Update.
9048         (arm_skip_stack_protector, arm_skip_stub): Update.
9049         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9050         (arm_wince_skip_main_prologue): Update.
9051         * auxv.c (ld_so_xfer_auxv): Update.
9052         * avr-tdep.c (avr_scan_prologue): Update.
9053         * ax-gdb.c (gen_var_ref): Update.
9054         * block.c (call_site_for_pc): Update.
9055         * blockframe.c (get_pc_function_start): Update.
9056         (find_pc_partial_function_gnu_ifunc): Update.
9057         * breakpoint.c (create_overlay_event_breakpoint): Update.
9058         (create_longjmp_master_breakpoint): Update.
9059         (create_std_terminate_master_breakpoint): Update.
9060         (create_exception_master_breakpoint): Update.
9061         (resolve_sal_pc): Update.
9062         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9063         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9064         Update.
9065         * c-valprint.c (c_val_print): Update.
9066         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9067         * coffread.c (coff_symfile_read): Update.
9068         * common/agent.c (agent_look_up_symbols): Update.
9069         * dbxread.c (find_stab_function_addr): Update.
9070         (end_psymtab): Update.
9071         * dwarf2loc.c (call_site_to_target_addr): Update.
9072         (func_verify_no_selftailcall): Update.
9073         (tailcall_dump): Update.
9074         (call_site_find_chain_1): Update.
9075         (dwarf_expr_reg_to_entry_parameter): Update.
9076         * elfread.c (elf_gnu_ifunc_record_cache): Update.
9077         (elf_gnu_ifunc_resolve_by_got): Update.
9078         * f-valprint.c (info_common_command): Update.
9079         * findvar.c (read_var_value): Update.
9080         * frame.c (get_prev_frame_1): Update.
9081         (inside_main_func): Update.
9082         * frv-tdep.c (frv_skip_main_prologue): Update.
9083         (frv_frame_this_id): Update.
9084         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9085         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9086         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9087         (gnuv3_skip_trampoline): Update.
9088         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9089         (hppa64_hpux_in_solib_call_trampoline): Update.
9090         (hppa_hpux_skip_trampoline_code): Update.
9091         (hppa64_hpux_search_dummy_call_sequence): Update.
9092         (hppa_hpux_find_import_stub_for_addr): Update.
9093         (hppa_hpux_find_dummy_bpaddr): Update.
9094         * hppa-tdep.c (hppa_symbol_address)
9095         (hppa_lookup_stub_minimal_symbol): Update.
9096         * i386-tdep.c (i386_skip_main_prologue): Update.
9097         (i386_pe_skip_trampoline_code): Update.
9098         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9099         * infcall.c (get_function_name): Update.
9100         * infcmd.c (until_next_command): Update.
9101         * jit.c (jit_breakpoint_re_set_internal): Update.
9102         (jit_inferior_init): Update.
9103         * linespec.c (minsym_found): Update.
9104         (add_minsym): Update.
9105         * linux-fork.c (info_checkpoints_command): Update.
9106         * linux-nat.c (get_signo): Update.
9107         * linux-thread-db.c (inferior_has_bug): Update.
9108         * m32c-tdep.c (m32c_return_value): Update.
9109         (m32c_m16c_address_to_pointer): Update.
9110         (m32c_m16c_pointer_to_address): Update.
9111         * m32r-tdep.c (m32r_frame_this_id): Update.
9112         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9113         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9114         * maint.c (maintenance_translate_address): Update.
9115         * minsyms.c (add_minsym_to_hash_table): Update.
9116         (add_minsym_to_demangled_hash_table): Update.
9117         (msymbol_objfile): Update.
9118         (lookup_minimal_symbol): Update.
9119         (iterate_over_minimal_symbols): Update.
9120         (lookup_minimal_symbol_text): Update.
9121         (lookup_minimal_symbol_by_pc_name): Update.
9122         (lookup_minimal_symbol_solib_trampoline): Update.
9123         (lookup_minimal_symbol_by_pc_section_1): Update.
9124         (lookup_minimal_symbol_and_objfile): Update.
9125         (prim_record_minimal_symbol_full): Update.
9126         (compare_minimal_symbols): Update.
9127         (compact_minimal_symbols): Update.
9128         (build_minimal_symbol_hash_tables): Update.
9129         (install_minimal_symbols): Update.
9130         (terminate_minimal_symbol_table): Update.
9131         (find_solib_trampoline_target): Update.
9132         (minimal_symbol_upper_bound): Update.
9133         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9134         * mips-tdep.c (mips_stub_frame_sniffer): Update.
9135         (mips_skip_pic_trampoline_code): Update.
9136         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9137         * objc-lang.c (selectors_info): Update.
9138         (classes_info): Update.
9139         (find_methods): Update.
9140         (find_imps): Update.
9141         (find_objc_msgsend): Update.
9142         * objfiles.c (objfile_relocate1): Update.
9143         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9144         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9145         * p-valprint.c (pascal_val_print): Update.
9146         * parse.c (write_exp_msymbol): Update.
9147         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9148         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9149         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9150         * printcmd.c (build_address_symbolic): Update.
9151         (sym_info): Update.
9152         (address_info): Update.
9153         * proc-service.c (ps_pglobal_lookup): Update.
9154         * psymtab.c (find_pc_sect_psymtab_closer): Update.
9155         (find_pc_sect_psymtab): Update.
9156         * python/py-framefilter.c (py_print_frame): Update.
9157         * ravenscar-thread.c (get_running_thread_id): Update.
9158         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9159         Update.
9160         * remote.c (remote_check_symbols): Update.
9161         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9162         (rs6000_skip_trampoline_code): Update.
9163         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9164         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9165         * solib-dsbt.c (lm_base): Update.
9166         * solib-frv.c (lm_base): Update.
9167         (main_got): Update.
9168         * solib-irix.c (locate_base): Update.
9169         * solib-som.c (som_solib_create_inferior_hook): Update.
9170         (som_solib_desire_dynamic_linker_symbols): Update.
9171         (link_map_start): Update.
9172         * solib-spu.c (spu_enable_break): Update.
9173         (ocl_enable_break): Update.
9174         * solib-svr4.c (elf_locate_base): Update.
9175         (enable_break): Update.
9176         * spu-tdep.c (spu_get_overlay_table): Update.
9177         (spu_catch_start): Update.
9178         (flush_ea_cache): Update.
9179         * stabsread.c (define_symbol): Update.
9180         (scan_file_globals): Update.
9181         * stack.c (find_frame_funname): Update.
9182         (frame_info): Update.
9183         * symfile.c (simple_read_overlay_table): Update.
9184         (simple_overlay_update): Update.
9185         * symmisc.c (dump_msymbols): Update.
9186         * symtab.c (fixup_section): Update.
9187         (find_pc_sect_line): Update.
9188         (skip_prologue_sal): Update.
9189         (search_symbols): Update.
9190         (print_msymbol_info): Update.
9191         (rbreak_command): Update.
9192         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9193         (completion_list_objc_symbol): Update.
9194         (default_make_symbol_completion_list_break_on): Update.
9195         * tracepoint.c (scope_info): Update.
9196         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9197         (tui_get_begin_asm_address): Update.
9198         * valops.c (find_function_in_inferior): Update.
9199         * value.c (value_static_field): Update.
9200         (value_fn_field): Update.
9201
9202 2014-02-26  Tom Tromey  <tromey@redhat.com>
9203
9204         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9205         bound minimal symbols.  Move code that knows about minsym
9206         table layout...
9207         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
9208         function.
9209         * minsyms.h (minimal_symbol_upper_bound): Declare.
9210         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9211         minimal_symbol_upper_bound.
9212
9213 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9214
9215         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9216         Use the type's name if its basic type does not have a tag.
9217
9218 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9219
9220         * dwarf2read.c (read_subrange_type): Add comment.
9221
9222 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9223
9224         * dwarf2read.c (update_enumeration_type_from_children): New
9225         function, mostly extracted from process_structure_scope.
9226         (read_enumeration_type): Call update_enumeration_type_from_children.
9227         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9228         and flag_flag_enum fields.
9229
9230 2014-02-26  Pedro Alves  <palves@redhat.com>
9231
9232         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9233         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9234         to_xfer_partial method.
9235
9236 2014-02-26  Pedro Alves  <palves@redhat.com>
9237
9238         * target.c (complete_target_initialization): Don't install
9239         default_xfer_partial as to_xfer_partial hook.
9240         (nomemory): Delete.
9241         (update_current_target): Don't INHERIT nor de_fault
9242         deprecated_xfer_memory.  Delete de_fault macro.
9243         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9244         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9245         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9246         field.
9247
9248 2014-02-26  Pedro Alves  <palves@redhat.com>
9249
9250         * go32-nat.c (my_write_child): New function.
9251         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9252         (go32_xfer_partial): New function.
9253         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9254         Instead install a to_xfer_partial hook.
9255
9256 2014-02-26  Pedro Alves  <palves@redhat.com>
9257
9258         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9259         to_xfer_partial helper.  Rewrite.
9260         (procfs_xfer_partial): New function.
9261         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9262         Install a to_xfer_partial hook.
9263
9264 2014-02-26  Pedro Alves  <palves@redhat.com>
9265
9266         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9267         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9268         (m32r_xfer_partial): New function.
9269         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9270         Install a to_xfer_partial hook.
9271
9272 2014-02-26  Pedro Alves  <palves@redhat.com>
9273
9274         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9275         helper.
9276         (mips_xfer_partial): New function.
9277         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9278         hook.  Install a to_xfer_partial hook.
9279
9280 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
9281
9282         * gdbtypes.h (create_array_type_with_stride): Add declaration.
9283         * gdbtypes.c (create_array_type_with_stride): New function,
9284         renaming create_array_type, but with an added parameter
9285         called "bit_stride".
9286         (create_array_type): Re-implement using
9287         create_array_type_with_stride.
9288         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9289         and DW_AT_bit_stride attributes.
9290
9291 2014-02-26  Pedro Alves  <palves@redhat.com>
9292
9293         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9294         task-specific breakpoints.
9295
9296 2014-02-25  Pedro Alves  <palves@redhat.com>
9297
9298         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9299         handling of object == TARGET_OBJECT_UNWIND_TABLE.
9300
9301 2014-02-25  Stan Shebs  <stan@codesourcery.com>
9302
9303         * defs.h: Annotate comments for Doxygen.
9304
9305 2014-02-25  Tom Tromey  <tromey@redhat.com>
9306
9307         * target.h (target_ignore): Don't declare.
9308         * target.c (target_ignore): Remove.
9309
9310 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9311
9312         PR gdb/16626
9313         * auto-load.c (auto_load_objfile_script_1): Change filename to
9314         debugfile.
9315
9316 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
9317
9318         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9319         documentation.  Adjust prototype to match the target_ops
9320         to_xfer_partial method.  Adjust implementation accordingly.
9321
9322 2014-02-25  Hui Zhu  <hui@codesourcery.com>
9323
9324         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9325         to_traceframe_info.
9326
9327 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
9328
9329         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9330         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9331         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9332         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9333         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9334         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9335         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9336         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9337         New constants.
9338         (rl78_register_type): Use a data pointer type for SP and
9339         new pseudo registers mentioned above.  Use a 16 bit integer
9340         type for all other register pairs.
9341         (rl78_register_name, rl78_g10_register_name): Update for
9342         new pseudo registers.
9343         (rl78_pseudo_register_read): Likewise.
9344         (rl78_pseudo_register_write): Likewise.
9345         (rl78_dwarf_reg_to_regnum): Return register numbers representing
9346         to the newly added pseudo registers.
9347
9348 2014-02-24  Doug Evans  <dje@google.com>
9349
9350         * value.c (record_latest_value): Fix comment.
9351         * printcmd.c (print_command_1): Remove code to handle -1 return from
9352         record_latest_value.
9353
9354 2014-02-24  Pedro Alves  <palves@redhat.com>
9355
9356         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9357         deprecated_xfer_memory hook.
9358         (procfs_xfer_partial): Call procfs_xfer_memory instead
9359         of the deprecated_xfer_memory target hook.
9360         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9361         helper.
9362
9363 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
9364
9365         * windows-nat.c (windows_xfer_shared_libraries): Return
9366         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9367         requested object is TARGET_OBJECT_LIBRARIES.
9368
9369 2014-02-24  Yao Qi  <yao@codesourcery.com>
9370
9371         * target.h (enum target_xfer_status)
9372         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9373         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9374         explicitly.  New.
9375         * corefile.c (memory_error_message): User updated.
9376         * exec.c (section_table_read_available_memory): Likewise.
9377         * record-btrace.c (record_btrace_xfer_partial): Likewise.
9378         * target.c (target_xfer_status_to_string): Likewise.
9379         (raw_memory_xfer_partial): Likewise.
9380         (memory_xfer_partial_1, target_xfer_partial): Likewise.
9381         * valops.c (read_value_memory): Likewise.
9382         * exec.h: Update comments.
9383
9384 2014-02-24  Yao Qi  <yao@codesourcery.com>
9385
9386         * target.c (target_xfer_status_to_string): Rename argument err
9387         to status.
9388         * target.h (target_xfer_status_to_string): Update declaration.
9389         Replace target_xfer_error_to_string with
9390         target_xfer_status_to_string in comment.
9391
9392 2014-02-24  Yao Qi  <yao@codesourcery.com>
9393
9394         * mips-linux-nat.c (super_close): Update its type.
9395         (mips_linux_close): Pass 'self' to super_close.
9396
9397 2014-02-24  Yao Qi  <yao@codesourcery.com>
9398
9399         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9400         * corefile.c (read_memory): Adjusted.
9401         * target.c (target_write_with_progress): Adjusted.
9402
9403 2014-02-23  Yao Qi  <yao@codesourcery.com>
9404
9405         Revert two patches:
9406
9407         2013-10-25  Yao Qi  <yao@codesourcery.com>
9408
9409         * remote.c (remote_traceframe_info): Return early if
9410         traceframe is not selected.
9411
9412         2013-07-19  Yao Qi  <yao@codesourcery.com>
9413
9414         * target.c (update_current_target): Change the default action
9415         of 'to_traceframe_info' from tcomplain to return_zero.
9416         * target.h (struct target_ops) <to_traceframe_info>: Add more
9417         comments.
9418
9419 2014-02-23  Yao Qi  <yao@codesourcery.com>
9420
9421         * valops.c (read_value_memory): Rewrite it.  Call
9422         target_xfer_partial in a loop.
9423         * exec.h (section_table_available_memory): Remove declaration.
9424         Move comments to ...
9425         * exec.c (section_table_available_memory): ... here.  Make it
9426         static.
9427
9428 2014-02-23  Yao Qi  <yao@codesourcery.com>
9429
9430         * exec.c (section_table_read_available_memory): New function.
9431         * exec.h (section_table_read_available_memory): Declare.
9432         * ctf.c (ctf_xfer_partial): Call
9433         section_table_read_available_memory.
9434         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9435
9436 2014-02-23  Yao Qi  <yao@codesourcery.com>
9437
9438         * ctf.c (ctf_xfer_partial): Move code to ...
9439         * exec.c (exec_read_partial_read_only): ... it.  New function.
9440         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9441         * tracefile.c: Include "exec.h".
9442         * exec.h (exec_read_partial_read_only): Declare.
9443
9444 2014-02-23  Yao Qi  <yao@codesourcery.com>
9445
9446         * tracefile-tfile.c (tfile_has_all_memory): Remove.
9447         (tfile_has_memory): Remove.
9448         (init_tfile_ops): Don't set fields to_has_all_memory and
9449         to_has_memory of tfile_ops.
9450         * tracefile.c (tracefile_has_all_memory): New function.
9451         (tracefile_has_memory): New function.
9452         (init_tracefile_ops): Initialize fields to_has_all_memory and
9453         to_has_memory of 'ops'.
9454
9455 2014-02-23  Yao Qi  <yao@codesourcery.com>
9456
9457         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9458         (ctf_thread_alive, ctf_get_trace_status): Remove.
9459         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
9460         init_tracefile_ops.
9461         * tracefile-tfile.c (tfile_get_trace_status): Remove.
9462         (tfile_has_stack, tfile_has_registers): Remove.
9463         (tfile_thread_alive): Remove.
9464         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
9465         init_tracefile_ops.
9466         * tracefile.c (tracefile_has_stack): New function.
9467         (tracefile_has_registers): New function.
9468         (tracefile_thread_alive): New function.
9469         (tracefile_get_trace_status): New function.
9470         (init_tracefile_ops): New function.
9471         * tracefile.h (init_tracefile_ops): Declare.
9472
9473 2014-02-23  Yao Qi  <yao@codesourcery.com>
9474
9475         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9476         (O_LARGEFILE): Likewise.
9477         (tfile_ops): Likewise.
9478         (TRACE_HEADER_SIZE): Likewise.
9479         (trace_fd, trace_frames_offset, cur_offset): Likewise.
9480         (cur_data_size): Likewise.
9481         (tfile_read, tfile_open, tfile_interp_line): Likewise.
9482         (tfile_close, tfile_files_info): Likewise.
9483         (tfile_get_trace_status): Likewise.
9484         (tfile_get_tracepoint_status): Likewise.
9485         (tfile_get_traceframe_address): Likewise.
9486         (tfile_trace_find, match_blocktype): Likewise.
9487         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9488         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9489         (tfile_get_trace_state_variable_value): Likewise.
9490         (tfile_has_all_memory, tfile_has_memory): Likewise.
9491         (tfile_has_stack, tfile_has_registers): Likewise.
9492         (tfile_thread_alive, build_traceframe_info): Likewise.
9493         (tfile_traceframe_info, init_tfile_ops): Likewise.
9494         (_initialize_tracepoint): Don't call init_tfile_ops
9495         and add_target_with_completer.
9496         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9497         exec.h, completer.h and filenames.h.
9498         (_initialize_tracefile_tfile): New function.
9499
9500 2014-02-23  Yao Qi  <yao@codesourcery.com>
9501
9502         * Makefile.in (REMOTE_OBS): Append tracefile.o and
9503         tracefile-tfile.o.
9504         (HFILES_NO_SRCDIR): Add tracefile.h.
9505         * ctf.c: Include "tracefile.h".
9506         * tracefile.h: New file.
9507         * tracefile.c: New file
9508         * tracefile-tfile.c: New file.
9509         * tracepoint.c: Include "tracefile.h".
9510         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9511         (stop_reason_names): Add const.
9512         (trace_file_writer_xfree): Move it to tracefile.c.
9513         (trace_save, trace_save_command, trace_save_tfile): Likewise.
9514         (trace_save_ctf): Likewise.
9515         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9516         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9517         (tfile_write_header, tfile_write_regblock_type): Likewise.
9518         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9519         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9520         (tfile_write_raw_data, tfile_end): Likewise.
9521         (tfile_trace_file_writer_new): Likewise.
9522         (free_uploaded_tp): Make it extern.
9523         (free_uploaded_tsv): Make it extern.
9524         (_initialize_tracepoint): Move code to register command 'tsave'
9525         to tracefile.c.
9526         * tracepoint.h (stop_reason_names): Declare.
9527         (struct trace_frame_write_ops): Move it to tracefile.h.
9528         (struct trace_file_write_ops): Likewise.
9529         (struct trace_file_writer): Likewise.
9530         (free_uploaded_tsvs, free_uploaded_tps): Declare.
9531
9532 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9533
9534         PR gdb/16594
9535         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9536         process name.
9537         (get_cores_used_by_process): New parameter num_cores, use it.
9538         (linux_xfer_osdata_processes): Pass num_cores to it.
9539         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9540         process name.
9541
9542 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
9543
9544         * target.c (memory_xfer_partial): Fix length arg in call to
9545         breakpoint_xfer_memory.
9546
9547 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
9548
9549         PR tdep/16397
9550         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9551         number comes after the + or - signs.  Adjust length of register
9552         name to be extracted.
9553
9554 2014-02-20  Tom Tromey  <tromey@redhat.com>
9555
9556         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9557         (ada_varobj_ops): Mark "extern".
9558
9559 2014-02-20  Tom Tromey  <tromey@redhat.com>
9560
9561         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9562
9563 2014-02-20  Doug Evans  <xdje42@gmail.com>
9564
9565         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9566         All callers updated.
9567         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9568         All callers updated.
9569         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9570         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9571
9572 2014-02-20  lin zuojian  <manjian2006@gmail.com>
9573             Joel Brobecker  <brobecker@adacore.com>
9574             Doug Evans  <xdje42@gmail.com>
9575
9576         PR symtab/16581
9577         * dwarf2read.c (struct die_info): New member in_process.
9578         (reset_die_in_process): New function.
9579         (process_die): Set it at the start, reset when returning.
9580         (inherit_abstract_dies): Only call process_die if origin_child_die
9581         not already being processed.
9582
9583 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9584
9585         * windows-nat.c (handle_unload_dll): Add function documentation.
9586         (do_initial_windows_stuff): Add comment explaining why we wait
9587         until after inferior initialization has finished before
9588         processing all DLLs.
9589
9590 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9591
9592         * windows-nat.c (get_module_name): Delete.
9593         (windows_get_exec_module_filename): New function, mostly
9594         inspired from get_module_name.
9595         (windows_pid_to_exec_file): Replace call to get_module_name
9596         by call to windows_get_exec_module_filename.
9597
9598 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9599
9600         * windows-nat.c (handle_load_dll): Rewrite this function's
9601         introductory comment.  Remove code using get_module_name
9602         to get the DLL's name.
9603
9604 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9605
9606         * windows-nat.c (get_windows_debug_event): Ignore
9607         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9608         if windows_initialization_done == 0.
9609         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9610         Adjust implementation to always load all DLLs.
9611         (do_initial_windows_stuff): Replace call to
9612         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9613
9614 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9615
9616         * windows-nat.c (_initialize_windows_nat): Deprecate the
9617         "dll-symbols" command.  Turn the "add-shared-symbol-files"
9618         and "assf" aliases into commands, and deprecate them as well.
9619         * NEWS: Add entry explaining that "dll-symbols" and its two
9620         aliases are now deprecated.
9621
9622 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9623
9624         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9625         new-line in debug string.  Remove trailing spaces.
9626
9627 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9628
9629         * darwin-nat.c (darwin_xfer_partial): Fix return type.
9630
9631 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
9632
9633         * NEWS: Add entry for the new feature
9634         * python/py-value.c (valpy_binop): Call value_x_binop for struct
9635         and class values.
9636
9637 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9638
9639         * MAINTAINERS: List Yao Qi as nios2 maintainer.
9640
9641 2014-02-19  Pedro Alves  <palves@redhat.com>
9642
9643         * common/ptid.h (struct ptid): Mention that process_stratum
9644         targets should prefer ptid.lwp.
9645
9646 2014-02-19  Pedro Alves  <palves@redhat.com>
9647
9648         * remote.c (remote_thread_alive, write_ptid, read_ptid)
9649         (read_ptid, remote_newthread_step, remote_threads_extra_info)
9650         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9651         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9652         store remote thread ids rather than ptid.tid.
9653         (_initialize_remote): Adjust.
9654
9655 2014-02-19  Tom Tromey  <tromey@redhat.com>
9656
9657         * target.c (target_get_unwinder): Rewrite.
9658         (target_get_tailcall_unwinder): Rewrite.
9659         * record-btrace.c (record_btrace_to_get_unwinder): New function.
9660         (record_btrace_to_get_tailcall_unwinder): New function.
9661         (init_record_btrace_ops): Update.
9662         * target.h (struct target_ops) <to_get_unwinder,
9663         to_get_tailcall_unwinder>: Now function pointers.  Use
9664         TARGET_DEFAULT_RETURN.
9665
9666 2014-02-19  Tom Tromey  <tromey@redhat.com>
9667
9668         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9669         argument.
9670         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9671
9672 2014-02-19  Tom Tromey  <tromey@redhat.com>
9673
9674         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9675         directly.
9676         * target-delegates.c: Rebuild.
9677         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9678         TARGET_DEFAULT_FUNC.
9679         * target.c (default_target_decr_pc_after_break): Rename from
9680         forward_target_decr_pc_after_break.  Simplify.
9681         (target_decr_pc_after_break): Rely on delegation.
9682
9683 2014-02-19  Tom Tromey  <tromey@redhat.com>
9684
9685         * target.c (update_current_target): Do not INHERIT to_doc or
9686         to_magic.  Do not de_fault to_open or to_close.
9687
9688 2014-02-19  Tom Tromey  <tromey@redhat.com>
9689
9690         * gcore.h (objfile_find_memory_regions): Declare.
9691         * gcore.c (objfile_find_memory_regions): No longer static.  Add
9692         "self" argument.
9693         (_initialize_gcore): Don't call exec_set_find_memory_regions.
9694         * exec.c: Include gcore.h.
9695         (exec_set_find_memory_regions): Remove.
9696         (exec_find_memory_regions): Remove.
9697         (exec_do_find_memory_regions): Remove.
9698         (init_exec_ops): Update.
9699         * defs.h (exec_set_find_memory_regions): Remove.
9700
9701 2014-02-19  Tom Tromey  <tromey@redhat.com>
9702
9703         * target-delegates.c: Rebuild.
9704         * target.h (struct target_ops) <to_extra_thread_info,
9705         to_thread_name, to_pid_to_exec_file, to_get_section_table,
9706         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9707         not 0, in TARGET_DEFAULT_RETURN.
9708
9709 2014-02-19  Tom Tromey  <tromey@redhat.com>
9710
9711         * target.c (complete_target_initialization): Remove casts.  Use
9712         return_zero_has_execution.
9713         (return_zero): Add "ignore" argument.
9714         (return_zero_has_execution): New function.
9715         (init_dummy_target): Remove casts.  Use
9716         return_zero_has_execution.
9717
9718 2014-02-19  Tom Tromey  <tromey@redhat.com>
9719
9720         * target.c (update_current_target): Update comments.  Do not
9721         INHERIT to_stratum.
9722
9723 2014-02-19  Tom Tromey  <tromey@redhat.com>
9724
9725         * arm-linux-nat.c (arm_linux_read_description): Delegate when
9726         needed.
9727         * corelow.c (core_read_description): Delegate when needed.
9728         * remote.c (remote_read_description): Delegate when needed.
9729         * target-delegates.c: Rebuild.
9730         * target.c (target_read_description): Rewrite.
9731         * target.h (struct target_ops) <to_read_description>: Update
9732         comment.  Use TARGET_DEFAULT_RETURN.
9733
9734 2014-02-19  Tom Tromey  <tromey@redhat.com>
9735
9736         * target-delegates.c: Rebuild.
9737         * target.c (update_current_target): Don't inherit or default
9738         to_can_run.
9739         (find_default_run_target): Check against delegate_can_run.
9740         * target.h (struct target_ops) <to_can_run>: Use
9741         TARGET_DEFAULT_RETURN.
9742
9743 2014-02-19  Tom Tromey  <tromey@redhat.com>
9744
9745         * target-delegates.c: Rebuild.
9746         * target.c (target_disconnect): Unconditionally delegate.
9747         * target.h (struct target_ops) <to_disconnect>: Use
9748         TARGET_DEFAULT_NORETURN.
9749
9750 2014-02-19  Tom Tromey  <tromey@redhat.com>
9751
9752         * record.c (record_stop): Unconditionally delegate.
9753         * target-delegates.c: Rebuild.
9754         * target.c (target_stop_recording): Unconditionally delegate.
9755         * target.h (struct target_ops) <to_stop_recording>: Use
9756         TARGET_DEFAULT_IGNORE.
9757
9758 2014-02-19  Tom Tromey  <tromey@redhat.com>
9759
9760         * target-delegates.c: Rebuild.
9761         * target.c (target_enable_btrace): Unconditionally delegate.
9762         * target.h (struct target_ops) <to_enable_btrace>: Use
9763         TARGET_DEFAULT_NORETURN.
9764
9765 2014-02-19  Tom Tromey  <tromey@redhat.com>
9766
9767         * target-delegates.c: Rebuild.
9768         * target.c (target_read_btrace): Unconditionally delegate.
9769         * target.h (struct target_ops) <to_read_btrace>: Use
9770         TARGET_DEFAULT_NORETURN.
9771
9772 2014-02-19  Tom Tromey  <tromey@redhat.com>
9773
9774         * target-delegates.c: Rebuild.
9775         * target.c (target_teardown_btrace): Unconditionally delegate.
9776         * target.h (struct target_ops) <to_teardown_btrace>: Use
9777         TARGET_DEFAULT_NORETURN.
9778
9779 2014-02-19  Tom Tromey  <tromey@redhat.com>
9780
9781         * target-delegates.c: Rebuild.
9782         * target.c (target_disable_btrace): Unconditionally delegate.
9783         * target.h (struct target_ops) <to_disable_btrace>: Use
9784         TARGET_DEFAULT_NORETURN.
9785
9786 2014-02-19  Tom Tromey  <tromey@redhat.com>
9787
9788         * target-delegates.c: Rebuild.
9789         * target.c (default_search_memory): New function.
9790         (simple_search_memory): Update comment.
9791         (target_search_memory): Unconditionally delegate.
9792         * target.h (struct target_ops) <to_search_memory>: Use
9793         TARGET_DEFAULT_FUNC.
9794
9795 2014-02-19  Tom Tromey  <tromey@redhat.com>
9796
9797         * auxv.c (default_auxv_parse): No longer static.
9798         (target_auxv_parse): Unconditionally delegate.
9799         * auxv.h (default_auxv_parse): Declare.
9800         * target-delegates.c: Rebuild.
9801         * target.c: Include auxv.h.
9802         * target.h (struct target_ops) <to_auxv_parse>: Use
9803         TARGET_DEFAULT_FUNC.
9804
9805 2014-02-19  Tom Tromey  <tromey@redhat.com>
9806
9807         * target-delegates.c: Rebuild.
9808         * target.c (target_memory_map): Unconditionally delegate.
9809         * target.h (struct target_ops) <to_memory_map>: Use
9810         TARGET_DEFAULT_RETURN.
9811
9812 2014-02-19  Tom Tromey  <tromey@redhat.com>
9813
9814         * target-delegates.c: Rebuild.
9815         * target.c (target_thread_alive): Unconditionally delegate.
9816         * target.h (struct target_ops) <to_thread_alive>: Use
9817         TARGET_DEFAULT_RETURN.
9818
9819 2014-02-19  Tom Tromey  <tromey@redhat.com>
9820
9821         * target-delegates.c: Rebuild.
9822         * target.c (target_save_record): Unconditionally delegate.
9823         * target.h (struct target_ops) <to_save_record>: Use
9824         TARGET_DEFAULT_NORETURN.
9825
9826 2014-02-19  Tom Tromey  <tromey@redhat.com>
9827
9828         * target-delegates.c: Rebuild.
9829         * target.c (target_delete_record): Unconditionally delegate.
9830         * target.h (struct target_ops) <to_delete_record>: Use
9831         TARGET_DEFAULT_NORETURN.
9832
9833 2014-02-19  Tom Tromey  <tromey@redhat.com>
9834
9835         * target-delegates.c: Rebuild.
9836         * target.c (target_record_is_replaying): Unconditionally
9837         delegate.
9838         * target.h (struct target_ops) <to_record_is_replaying>: Use
9839         TARGET_DEFAULT_RETURN.
9840
9841 2014-02-19  Tom Tromey  <tromey@redhat.com>
9842
9843         * target-delegates.c: Rebuild.
9844         * target.c (target_goto_record_begin): Unconditionally delegate.
9845         * target.h (struct target_ops) <to_goto_record_begin>: Use
9846         TARGET_DEFAULT_NORETURN.
9847
9848 2014-02-19  Tom Tromey  <tromey@redhat.com>
9849
9850         * target-delegates.c: Rebuild.
9851         * target.c (target_goto_record_end): Unconditionally delegate.
9852         * target.h (struct target_ops) <to_goto_record_end>: Use
9853         TARGET_DEFAULT_NORETURN.
9854
9855 2014-02-19  Tom Tromey  <tromey@redhat.com>
9856
9857         * target-delegates.c: Rebuild.
9858         * target.c (target_goto_record): Unconditionally delegate.
9859         * target.h (struct target_ops) <to_goto_record>: Use
9860         TARGET_DEFAULT_NORETURN.
9861
9862 2014-02-19  Tom Tromey  <tromey@redhat.com>
9863
9864         * target-delegates.c: Rebuild.
9865         * target.c (target_insn_history): Unconditionally delegate.
9866         * target.h (struct target_ops) <to_insn_history>: Use
9867         TARGET_DEFAULT_NORETURN.
9868
9869 2014-02-19  Tom Tromey  <tromey@redhat.com>
9870
9871         * target-delegates.c: Rebuild.
9872         * target.c (target_insn_history_from): Unconditionally delegate.
9873         * target.h (struct target_ops) <to_insn_history_from>: Use
9874         TARGET_DEFAULT_NORETURN.
9875
9876 2014-02-19  Tom Tromey  <tromey@redhat.com>
9877
9878         * target-delegates.c: Rebuild.
9879         * target.c (target_insn_history_range): Unconditionally delegate.
9880         * target.h (struct target_ops) <to_insn_history_range>: Use
9881         TARGET_DEFAULT_NORETURN.
9882
9883 2014-02-19  Tom Tromey  <tromey@redhat.com>
9884
9885         * target-delegates.c: Rebuild.
9886         * target.c (target_call_history): Unconditionally delegate.
9887         * target.h (struct target_ops) <to_call_history>: Use
9888         TARGET_DEFAULT_NORETURN.
9889
9890 2014-02-19  Tom Tromey  <tromey@redhat.com>
9891
9892         * target-delegates.c: Rebuild.
9893         * target.c (target_call_history_from): Unconditionally delegate.
9894         * target.h (struct target_ops) <to_call_history_from>: Use
9895         TARGET_DEFAULT_NORETURN.
9896
9897 2014-02-19  Tom Tromey  <tromey@redhat.com>
9898
9899         * target-delegates.c: Rebuild.
9900         * target.c (target_call_history_range): Unconditionally delegate.
9901         * target.h (struct target_ops) <to_call_history_range>: Use
9902         TARGET_DEFAULT_NORETURN.
9903
9904 2014-02-19  Tom Tromey  <tromey@redhat.com>
9905
9906         * target-delegates.c: Rebuild.
9907         * target.c (target_verify_memory): Unconditionally delegate.
9908         * target.h (struct target_ops) <to_verify_memory>: Use
9909         TARGET_DEFAULT_NORETURN.
9910
9911 2014-02-19  Tom Tromey  <tromey@redhat.com>
9912
9913         * target-delegates.c: Rebuild.
9914         * target.c (target_core_of_thread): Unconditionally delegate.
9915         * target.h (struct target_ops) <to_core_of_thread>: Use
9916         TARGET_DEFAULT_RETURN.
9917
9918 2014-02-19  Tom Tromey  <tromey@redhat.com>
9919
9920         * target-delegates.c: Rebuild.
9921         * target.c (target_flash_done): Unconditionally delegate.
9922         * target.h (struct target_ops) <to_flash_done>: Use
9923         TARGET_DEFAULT_NORETURN.
9924
9925 2014-02-19  Tom Tromey  <tromey@redhat.com>
9926
9927         * target-delegates.c: Rebuild.
9928         * target.c (target_flash_erase): Unconditionally delegate.
9929         * target.h (struct target_ops) <to_flash_erase>: Use
9930         TARGET_DEFAULT_NORETURN.
9931
9932 2014-02-19  Tom Tromey  <tromey@redhat.com>
9933
9934         * target-delegates.c: Rebuild.
9935         * target.c (target_get_section_table): Unconditionally delegate.
9936         * target.h (struct target_ops) <to_get_section_table>: Use
9937         TARGET_DEFAULT_RETURN.
9938
9939 2014-02-19  Tom Tromey  <tromey@redhat.com>
9940
9941         * target-delegates.c: Rebuild.
9942         * target.c (target_pid_to_str): Unconditionally delegate.
9943         (init_dummy_target): Don't initialize to_pid_to_str.
9944         (default_pid_to_str): Rename from dummy_pid_to_str.
9945         * target.h (struct target_ops) <to_pid_to_str>: Use
9946         TARGET_DEFAULT_FUNC.
9947
9948 2014-02-19  Tom Tromey  <tromey@redhat.com>
9949
9950         * target-delegates.c: Rebuild.
9951         * target.c (target_find_new_threads): Unconditionally delegate.
9952         * target.h (struct target_ops) <to_find_new_threads>: Use
9953         TARGET_DEFAULT_RETURN.
9954
9955 2014-02-19  Tom Tromey  <tromey@redhat.com>
9956
9957         * target-delegates.c: Rebuild.
9958         * target.c (target_program_signals): Unconditionally delegate.
9959         * target.h (struct target_ops) <to_program_signals>: Use
9960         TARGET_DEFAULT_IGNORE.
9961
9962 2014-02-19  Tom Tromey  <tromey@redhat.com>
9963
9964         * target-delegates.c: Rebuild.
9965         * target.c (target_pass_signals): Unconditionally delegate.
9966         * target.h (struct target_ops) <to_pass_signals>: Use
9967         TARGET_DEFAULT_IGNORE.
9968
9969 2014-02-19  Tom Tromey  <tromey@redhat.com>
9970
9971         * target-delegates.c: Rebuild.
9972         * target.c (default_mourn_inferior): New function.
9973         (target_mourn_inferior): Unconditionally delegate.
9974         * target.h (struct target_ops) <to_mourn_inferior>: Use
9975         TARGET_DEFAULT_FUNC.
9976
9977 2014-02-19  Tom Tromey  <tromey@redhat.com>
9978
9979         * target-delegates.c: Rebuild.
9980         * target.c (default_follow_fork): New function.
9981         (target_follow_fork): Unconditionally delegate.
9982         * target.h (struct target_ops) <to_follow_fork>: Use
9983         TARGET_DEFAULT_FUNC.
9984
9985 2014-02-19  Tom Tromey  <tromey@redhat.com>
9986
9987         * target-delegates.c: Rebuild.
9988         * target.c (target_kill): Unconditionally delegate.
9989         * target.h (struct target_ops) <to_kill>: Use
9990         TARGET_DEFAULT_NORETURN.
9991
9992 2014-02-19  Tom Tromey  <tromey@redhat.com>
9993
9994         * target-delegates.c: Rebuild.
9995         * target.c (target_masked_watch_num_registers): Unconditionally
9996         delegate.
9997         * target.h (struct target_ops) <to_masked_watch_num_registers>:
9998         Use TARGET_DEFAULT_RETURN.
9999
10000 2014-02-19  Tom Tromey  <tromey@redhat.com>
10001
10002         * target-delegates.c: Rebuild.
10003         * target.c (target_remove_mask_watchpoint): Unconditionally
10004         delegate.
10005         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10006         TARGET_DEFAULT_RETURN.
10007
10008 2014-02-19  Tom Tromey  <tromey@redhat.com>
10009
10010         * target-delegates.c: Rebuild.
10011         * target.c (target_insert_mask_watchpoint): Unconditionally
10012         delegate.
10013         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10014         TARGET_DEFAULT_RETURN.
10015
10016 2014-02-19  Tom Tromey  <tromey@redhat.com>
10017
10018         * target-delegates.c: Rebuild.
10019         * target.c (target_ranged_break_num_registers): Unconditionally
10020         delegate.
10021         * target.h (struct target_ops) <to_ranged_break_num_registers>:
10022         Use TARGET_DEFAULT_RETURN.
10023
10024 2014-02-19  Tom Tromey  <tromey@redhat.com>
10025
10026         * target-delegates.c: Rebuild.
10027         * target.c (target_fetch_registers): Unconditionally delegate.
10028         * target.h (struct target_ops) <to_fetch_registers>: Use
10029         TARGET_DEFAULT_NORETURN.
10030
10031 2014-02-19  Tom Tromey  <tromey@redhat.com>
10032
10033         * target-delegates.c: Rebuild.
10034         * target.c (update_current_target): Don't inherit or default
10035         to_stop.
10036         * target.h (struct target_ops) <to_stop>: Use
10037         TARGET_DEFAULT_IGNORE.
10038
10039 2014-02-19  Tom Tromey  <tromey@redhat.com>
10040
10041         * target-delegates.c: Rebuild.
10042         * target.c (update_current_target): Don't inherit or default
10043         to_can_run_breakpoint_commands.
10044         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10045         Use TARGET_DEFAULT_RETURN.
10046
10047 2014-02-19  Tom Tromey  <tromey@redhat.com>
10048
10049         * target-delegates.c: Rebuild.
10050         * target.c (update_current_target): Don't inherit or default
10051         to_supports_evaluation_of_breakpoint_conditions.
10052         * target.h (struct target_ops)
10053         <to_supports_evaluation_of_breakpoint_conditions>: Use
10054         TARGET_DEFAULT_RETURN.
10055
10056 2014-02-19  Tom Tromey  <tromey@redhat.com>
10057
10058         * target-delegates.c: Rebuild.
10059         * target.c (update_current_target): Don't inherit or default
10060         to_augmented_libraries_svr4_read.
10061         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10062         Use TARGET_DEFAULT_RETURN.
10063
10064 2014-02-19  Tom Tromey  <tromey@redhat.com>
10065
10066         * target-delegates.c: Rebuild.
10067         * target.c (update_current_target): Don't inherit or default
10068         to_can_use_agent.
10069         * target.h (struct target_ops) <to_can_use_agent>: Use
10070         TARGET_DEFAULT_RETURN.
10071
10072 2014-02-19  Tom Tromey  <tromey@redhat.com>
10073
10074         * target-delegates.c: Rebuild.
10075         * target.c (update_current_target): Don't inherit or default
10076         to_use_agent.
10077         * target.h (struct target_ops) <to_use_agent>: Use
10078         TARGET_DEFAULT_NORETURN.
10079
10080 2014-02-19  Tom Tromey  <tromey@redhat.com>
10081
10082         * target-delegates.c: Rebuild.
10083         * target.c (update_current_target): Don't inherit or default
10084         to_traceframe_info.
10085         (return_null): Remove.
10086         * target.h (struct target_ops) <to_traceframe_info>: Use
10087         TARGET_DEFAULT_RETURN.
10088
10089 2014-02-19  Tom Tromey  <tromey@redhat.com>
10090
10091         * target-delegates.c: Rebuild.
10092         * target.c (update_current_target): Don't inherit or default
10093         to_static_tracepoint_markers_by_strid.
10094         * target.h (struct target_ops)
10095         <to_static_tracepoint_markers_by_strid>: Use
10096         TARGET_DEFAULT_NORETURN.
10097
10098 2014-02-19  Tom Tromey  <tromey@redhat.com>
10099
10100         * target-delegates.c: Rebuild.
10101         * target.c (update_current_target): Don't inherit or default
10102         to_static_tracepoint_marker_at.
10103         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10104         Use TARGET_DEFAULT_RETURN.
10105
10106 2014-02-19  Tom Tromey  <tromey@redhat.com>
10107
10108         * target-delegates.c: Rebuild.
10109         * target.c (update_current_target): Don't inherit or default
10110         to_set_permissions.
10111         * target.h (struct target_ops) <to_set_permissions>: Use
10112         TARGET_DEFAULT_IGNORE.
10113
10114 2014-02-19  Tom Tromey  <tromey@redhat.com>
10115
10116         * target-delegates.c: Rebuild.
10117         * target.c (update_current_target): Don't inherit or default
10118         to_get_tib_address.
10119         * target.h (struct target_ops) <to_get_tib_address>: Use
10120         TARGET_DEFAULT_NORETURN.
10121
10122 2014-02-19  Tom Tromey  <tromey@redhat.com>
10123
10124         * target-delegates.c: Rebuild.
10125         * target.c (update_current_target): Don't inherit or default
10126         to_set_trace_notes.
10127         * target.h (struct target_ops) <to_set_trace_notes>: Use
10128         TARGET_DEFAULT_RETURN.
10129
10130 2014-02-19  Tom Tromey  <tromey@redhat.com>
10131
10132         * target-delegates.c: Rebuild.
10133         * target.c (update_current_target): Don't initialize
10134         to_set_trace_buffer_size.
10135         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10136         TARGET_DEFAULT_IGNORE.
10137
10138 2014-02-19  Tom Tromey  <tromey@redhat.com>
10139
10140         * target-delegates.c: Rebuild.
10141         * target.c (update_current_target): Don't inherit or default
10142         to_set_circular_trace_buffer.
10143         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10144         TARGET_DEFAULT_IGNORE.
10145
10146 2014-02-19  Tom Tromey  <tromey@redhat.com>
10147
10148         * target-delegates.c: Rebuild.
10149         * target.c (update_current_target): Don't inherit or default
10150         to_set_disconnected_tracing.
10151         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10152         TARGET_DEFAULT_IGNORE.
10153
10154 2014-02-19  Tom Tromey  <tromey@redhat.com>
10155
10156         * target-delegates.c: Rebuild.
10157         * target.c (update_current_target): Don't inherit or default
10158         to_get_min_fast_tracepoint_insn_len.
10159         (return_minus_one): Remove.
10160         * target.h (struct target_ops)
10161         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10162
10163 2014-02-19  Tom Tromey  <tromey@redhat.com>
10164
10165         * target-delegates.c: Rebuild.
10166         * target.c (update_current_target): Don't inherit or default
10167         to_get_raw_trace_data.
10168         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10169         TARGET_DEFAULT_NORETURN.
10170
10171 2014-02-19  Tom Tromey  <tromey@redhat.com>
10172
10173         * target-delegates.c: Rebuild.
10174         * target.c (update_current_target): Don't inherit or default
10175         to_upload_trace_state_variables.
10176         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10177         Use TARGET_DEFAULT_RETURN.
10178
10179 2014-02-19  Tom Tromey  <tromey@redhat.com>
10180
10181         * target-delegates.c: Rebuild.
10182         * target.c (update_current_target): Don't inherit or default
10183         to_upload_tracepoints.
10184         * target.h (struct target_ops) <to_upload_tracepoints>: Use
10185         TARGET_DEFAULT_RETURN.
10186
10187 2014-02-19  Tom Tromey  <tromey@redhat.com>
10188
10189         * target-delegates.c: Rebuild.
10190         * target.c (update_current_target): Don't inherit or default
10191         to_save_trace_data.
10192         * target.h (struct target_ops) <to_save_trace_data>: Use
10193         TARGET_DEFAULT_NORETURN.
10194
10195 2014-02-19  Tom Tromey  <tromey@redhat.com>
10196
10197         * target-delegates.c: Rebuild.
10198         * target.c (update_current_target): Don't inherit or default
10199         to_get_trace_state_variable_value.
10200         * target.h (struct target_ops)
10201         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10202
10203 2014-02-19  Tom Tromey  <tromey@redhat.com>
10204
10205         * target-delegates.c: Rebuild.
10206         * target.c (update_current_target): Don't inherit or default
10207         to_trace_find.
10208         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10209
10210 2014-02-19  Tom Tromey  <tromey@redhat.com>
10211
10212         * target-delegates.c: Rebuild.
10213         * target.c (update_current_target): Don't inherit or default
10214         to_trace_stop.
10215         * target.h (struct target_ops) <to_trace_stop>: Use
10216         TARGET_DEFAULT_NORETURN.
10217
10218 2014-02-19  Tom Tromey  <tromey@redhat.com>
10219
10220         * target-delegates.c: Rebuild.
10221         * target.c (update_current_target): Don't inherit or default
10222         to_get_tracepoint_status.
10223         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10224         TARGET_DEFAULT_NORETURN.
10225
10226 2014-02-19  Tom Tromey  <tromey@redhat.com>
10227
10228         * target-delegates.c: Rebuild.
10229         * target.c (update_current_target): Don't inherit or default
10230         to_get_trace_status.
10231         * target.h (struct target_ops) <to_get_trace_status>: Use
10232         TARGET_DEFAULT_RETURN.
10233
10234 2014-02-19  Tom Tromey  <tromey@redhat.com>
10235
10236         * target-delegates.c: Rebuild.
10237         * target.c (update_current_target): Don't inherit or default
10238         to_trace_start.
10239         * target.h (struct target_ops) <to_trace_start>: Use
10240         TARGET_DEFAULT_NORETURN.
10241
10242 2014-02-19  Tom Tromey  <tromey@redhat.com>
10243
10244         * target-delegates.c: Rebuild.
10245         * target.c (update_current_target): Don't inherit or default
10246         to_trace_set_readonly_regions.
10247         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10248         Use TARGET_DEFAULT_NORETURN.
10249
10250 2014-02-19  Tom Tromey  <tromey@redhat.com>
10251
10252         * target-delegates.c: Rebuild.
10253         * target.c (update_current_target): Don't inherit or default
10254         to_disable_tracepoint.
10255         * target.h (struct target_ops) <to_disable_tracepoint>: Use
10256         TARGET_DEFAULT_NORETURN.
10257
10258 2014-02-19  Tom Tromey  <tromey@redhat.com>
10259
10260         * target-delegates.c: Rebuild.
10261         * target.c (update_current_target): Don't inherit or default
10262         to_enable_tracepoint.
10263         * target.h (struct target_ops) <to_enable_tracepoint>: Use
10264         TARGET_DEFAULT_NORETURN.
10265
10266 2014-02-19  Tom Tromey  <tromey@redhat.com>
10267
10268         * target-delegates.c: Rebuild.
10269         * target.c (update_current_target): Don't inherit or default
10270         to_download_trace_state_variable.
10271         * target.h (struct target_ops) <to_download_trace_state_variable>:
10272         Use TARGET_DEFAULT_NORETURN.
10273
10274 2014-02-19  Tom Tromey  <tromey@redhat.com>
10275
10276         * target-delegates.c: Rebuild.
10277         * target.c (update_current_target): Don't inherit or default
10278         to_can_download_tracepoint.
10279         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10280         TARGET_DEFAULT_RETURN.
10281
10282 2014-02-19  Tom Tromey  <tromey@redhat.com>
10283
10284         * target-delegates.c: Rebuild.
10285         * target.c (update_current_target): Don't inherit or default
10286         to_download_tracepoint.
10287         * target.h (struct target_ops) <to_download_tracepoint>: Use
10288         TARGET_DEFAULT_NORETURN.
10289
10290 2014-02-19  Tom Tromey  <tromey@redhat.com>
10291
10292         * target-delegates.c: Rebuild.
10293         * target.c (update_current_target): Don't inherit or default
10294         to_trace_init.
10295         * target.h (struct target_ops) <to_trace_init>: Use
10296         TARGET_DEFAULT_RETURN.
10297
10298 2014-02-19  Tom Tromey  <tromey@redhat.com>
10299
10300         * target-delegates.c: Rebuild.
10301         * target.c (update_current_target): Don't inherit or default
10302         to_supports_string_tracing.
10303         * target.h (struct target_ops) <to_supports_string_tracing>: Use
10304         TARGET_DEFAULT_RETURN.
10305
10306 2014-02-19  Tom Tromey  <tromey@redhat.com>
10307
10308         * target-delegates.c: Rebuild.
10309         * target.c (update_current_target): Don't inherit or default
10310         to_supports_enable_disable_tracepoint.
10311         * target.h (struct target_ops)
10312         <to_supports_enable_disable_tracepoint>: Use
10313         TARGET_DEFAULT_RETURN.
10314
10315 2014-02-19  Tom Tromey  <tromey@redhat.com>
10316
10317         * target-delegates.c: Rebuild.
10318         * target.c (update_current_target): Don't inherit or default
10319         to_supports_multi_process.
10320         * target.h (struct target_ops) <to_supports_multi_process>: Use
10321         TARGET_DEFAULT_RETURN.
10322
10323 2014-02-19  Tom Tromey  <tromey@redhat.com>
10324
10325         * target-delegates.c: Rebuild.
10326         * target.c (update_current_target): Don't inherit or default
10327         to_get_ada_task_ptid.
10328         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10329         TARGET_DEFAULT_FUNC.
10330
10331 2014-02-19  Tom Tromey  <tromey@redhat.com>
10332
10333         * target-delegates.c: Rebuild.
10334         * target.c (update_current_target): Don't inherit or default
10335         to_thread_architecture.
10336         * target.h (struct target_ops) <to_thread_architecture>: Use
10337         TARGET_DEFAULT_FUNC.
10338
10339 2014-02-19  Tom Tromey  <tromey@redhat.com>
10340
10341         * target-delegates.c: Rebuild.
10342         * target.c (update_current_target): Don't inherit or default
10343         to_execution_direction.
10344         * target.h (struct target_ops) <to_execution_direction>: Use
10345         TARGET_DEFAULT_FUNC.
10346
10347 2014-02-19  Tom Tromey  <tromey@redhat.com>
10348
10349         * target-delegates.c: Rebuild.
10350         * target.c (update_current_target): Don't inherit or default
10351         to_can_execute_reverse.
10352         * target.h (struct target_ops) <to_can_execute_reverse>: Use
10353         TARGET_DEFAULT_RETURN.
10354         (target_can_execute_reverse): Unconditionally delegate.
10355
10356 2014-02-19  Tom Tromey  <tromey@redhat.com>
10357
10358         * target-delegates.c: Rebuild.
10359         * target.c (update_current_target): Don't inherit or default
10360         to_goto_bookmark.
10361         (dummy_goto_bookmark): Remove.
10362         (init_dummy_target): Don't inherit or default to_goto_bookmark.
10363         * target.h (struct target_ops) <to_goto_bookmark>: Use
10364         TARGET_DEFAULT_NORETURN.
10365
10366 2014-02-19  Tom Tromey  <tromey@redhat.com>
10367
10368         * target-delegates.c: Rebuild.
10369         * target.c (update_current_target): Don't inherit or default
10370         to_get_bookmark.
10371         (dummy_get_bookmark): Remove.
10372         (init_dummy_target): Don't inherit or default to_get_bookmark.
10373         * target.h (struct target_ops) <to_get_bookmark>: Use
10374         TARGET_DEFAULT_NORETURN
10375
10376 2014-02-19  Tom Tromey  <tromey@redhat.com>
10377
10378         * target-delegates.c: Rebuild.
10379         * target.c (update_current_target): Don't inherit or default
10380         to_make_corefile_notes.
10381         (init_dummy_target): Don't initialize to_make_corefile_notes.
10382         * target.h (struct target_ops) <to_make_corefile_notes>: Use
10383         TARGET_DEFAULT_FUNC.
10384
10385 2014-02-19  Tom Tromey  <tromey@redhat.com>
10386
10387         * target-delegates.c: Rebuild.
10388         * target.c (update_current_target): Don't inherit or default
10389         to_find_memory_regions.
10390         (init_dummy_target): Don't initialize to_find_memory_regions.
10391         * target.h (struct target_ops) <to_find_memory_regions>: Use
10392         TARGET_DEFAULT_FUNC.
10393
10394 2014-02-19  Tom Tromey  <tromey@redhat.com>
10395
10396         * target-delegates.c: Rebuild.
10397         * target.c (update_current_target): Don't inherit or default
10398         to_log_command.
10399         * target.h (struct target_ops) <to_log_command>: Use
10400         TARGET_DEFAULT_IGNORE.
10401         (target_log_command): Unconditionally delegate.
10402
10403 2014-02-19  Tom Tromey  <tromey@redhat.com>
10404
10405         * target-delegates.c: Rebuild.
10406         * target.c (update_current_target): Don't inherit or default
10407         to_pid_to_exec_file.
10408         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10409         TARGET_DEFAULT_RETURN.
10410
10411 2014-02-19  Tom Tromey  <tromey@redhat.com>
10412
10413         * target-delegates.c: Rebuild.
10414         * target.c (update_current_target): Don't inherit or default
10415         to_thread_name.
10416         (target_thread_name): Unconditionally delegate.
10417         * target.h (struct target_ops) <to_thread_name>: Use
10418         TARGET_DEFAULT_RETURN.
10419
10420 2014-02-19  Tom Tromey  <tromey@redhat.com>
10421
10422         * target-delegates.c: Rebuild.
10423         * target.c (update_current_target): Don't inherit or default
10424         to_extra_thread_info.
10425         * target.h (struct target_ops) <to_extra_thread_info>: Use
10426         TARGET_DEFAULT_RETURN.
10427
10428 2014-02-19  Tom Tromey  <tromey@redhat.com>
10429
10430         * target-delegates.c: Rebuild.
10431         * target.c (update_current_target): Don't inherit or default
10432         to_has_exited.
10433         * target.h (struct target_ops) <to_has_exited>: Use
10434         TARGET_DEFAULT_RETURN..
10435
10436 2014-02-19  Tom Tromey  <tromey@redhat.com>
10437
10438         * target-delegates.c: Rebuild.
10439         * target.c (update_current_target): Don't inherit or default
10440         to_set_syscall_catchpoint.
10441         (return_one): Remove.
10442         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10443         TARGET_DEFAULT_RETURN.
10444
10445 2014-02-19  Tom Tromey  <tromey@redhat.com>
10446
10447         * target-delegates.c: Rebuild.
10448         * target.c (update_current_target): Don't inherit or default
10449         to_insert_exec_catchpoint.
10450         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10451         TARGET_DEFAULT_RETURN.
10452
10453 2014-01-08  Tom Tromey  <tromey@redhat.com>
10454
10455         * target-delegates.c: Rebuild.
10456         * target.c (update_current_target): Don't inherit or default
10457         to_insert_exec_catchpoint.
10458         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10459         TARGET_DEFAULT_RETURN.
10460
10461 2014-02-19  Tom Tromey  <tromey@redhat.com>
10462
10463         * target-delegates.c: Rebuild.
10464         * target.c (update_current_target): Don't inherit or default
10465         to_remove_vfork_catchpoint.
10466         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10467         TARGET_DEFAULT_RETURN.
10468
10469 2014-02-19  Tom Tromey  <tromey@redhat.com>
10470
10471         * target-delegates.c: Rebuild.
10472         * target.c (update_current_target): Don't inherit or default
10473         to_insert_vfork_catchpoint.
10474         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10475         TARGET_DEFAULT_RETURN.
10476
10477 2014-02-19  Tom Tromey  <tromey@redhat.com>
10478
10479         * target-delegates.c: Rebuild.
10480         * target.c (update_current_target): Don't inherit or default
10481         to_remove_fork_catchpoint.
10482         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10483         TARGET_DEFAULT_RETURN.
10484
10485 2014-02-19  Tom Tromey  <tromey@redhat.com>
10486
10487         * target-delegates.c: Rebuild.
10488         * target.c (update_current_target): Don't inherit or default
10489         to_insert_fork_catchpoint.
10490         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10491         TARGET_DEFAULT_RETURN.
10492
10493 2014-02-19  Tom Tromey  <tromey@redhat.com>
10494
10495         * target-delegates.c: Rebuild.
10496         * target.c (update_current_target): Don't inherit or default
10497         to_post_startup_inferior.
10498         * target.h (struct target_ops) <to_post_startup_inferior>: Use
10499         TARGET_DEFAULT_IGNORE.
10500
10501 2014-02-19  Tom Tromey  <tromey@redhat.com>
10502
10503         * target-delegates.c: Rebuild.
10504         * target.c (update_current_target): Don't inherit or default
10505         to_load.
10506         * target.h (struct target_ops) <to_load>: Use
10507         TARGET_DEFAULT_NORETURN.
10508
10509 2014-02-19  Tom Tromey  <tromey@redhat.com>
10510
10511         * target-delegates.c: Rebuild.
10512         * target.c (update_current_target): Don't inherit or default
10513         to_terminal_info.
10514         * target.h (struct target_ops) <to_terminal_info>: Use
10515         TARGET_DEFAULT_FUNC.
10516
10517 2014-02-19  Tom Tromey  <tromey@redhat.com>
10518
10519         * target-delegates.c: Rebuild.
10520         * target.c (update_current_target): Don't inherit or default
10521         to_terminal_save_ours.
10522         * target.h (struct target_ops) <to_terminal_save_ours>: Use
10523         TARGET_DEFAULT_IGNORE.
10524
10525 2014-02-19  Tom Tromey  <tromey@redhat.com>
10526
10527         * target-delegates.c: Rebuild.
10528         * target.c (update_current_target): Don't inherit or default
10529         to_terminal_ours.
10530         * target.h (struct target_ops) <to_terminal_ours>: Use
10531         TARGET_DEFAULT_IGNORE.
10532
10533 2014-02-19  Tom Tromey  <tromey@redhat.com>
10534
10535         * target-delegates.c: Rebuild.
10536         * target.c (update_current_target): Don't inherit or default
10537         to_terminal_ours_for_output.
10538         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10539         TARGET_DEFAULT_IGNORE.
10540
10541 2014-02-19  Tom Tromey  <tromey@redhat.com>
10542
10543         * target-delegates.c: Rebuild.
10544         * target.c (update_current_target): Don't inherit or default
10545         to_terminal_inferior.
10546         * target.h (struct target_ops) <to_terminal_inferior>: Use
10547         TARGET_DEFAULT_IGNORE.
10548
10549 2014-02-19  Tom Tromey  <tromey@redhat.com>
10550
10551         * target-delegates.c: Rebuild.
10552         * target.c (update_current_target): Don't inherit or default
10553         to_terminal_init.
10554         * target.h (struct target_ops) <to_terminal_init>: Use
10555         TARGET_DEFAULT_IGNORE.
10556
10557 2014-02-19  Tom Tromey  <tromey@redhat.com>
10558
10559         * target-delegates.c: Rebuild.
10560         * target.c (update_current_target): Don't inherit or default
10561         to_can_accel_watchpoint_condition.
10562         * target.h (struct target_ops)
10563         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10564
10565 2014-02-19  Tom Tromey  <tromey@redhat.com>
10566
10567         * target-delegates.c: Rebuild.
10568         * target.c (update_current_target): Don't inherit or default
10569         to_region_ok_for_hw_watchpoint.
10570         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10571         Use TARGET_DEFAULT_FUNC.
10572
10573 2014-02-19  Tom Tromey  <tromey@redhat.com>
10574
10575         * target-delegates.c: Rebuild.
10576         * target.c (update_current_target): Don't inherit or default
10577         to_watchpoint_addr_within_range.
10578         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10579         Use TARGET_DEFAULT_FUNC.
10580
10581 2014-02-19  Tom Tromey  <tromey@redhat.com>
10582
10583         * target-delegates.c: Rebuild.
10584         * target.c (update_current_target): Don't inherit or default
10585         to_remove_watchpoint.
10586         * target.h (struct target_ops) <to_remove_watchpoint>: Use
10587         TARGET_DEFAULT_NORETURN.
10588
10589 2014-02-19  Tom Tromey  <tromey@redhat.com>
10590
10591         * target-delegates.c: Rebuild.
10592         * target.c (update_current_target): Don't inherit or default
10593         to_insert_watchpoint.
10594         * target.h (struct target_ops) <to_insert_watchpoint>: Use
10595         TARGET_DEFAULT_RETURN.
10596
10597 2014-02-19  Tom Tromey  <tromey@redhat.com>
10598
10599         * target-delegates.c: Rebuild.
10600         * target.c (update_current_target): Don't inherit or default
10601         to_remove_hw_breakpoint.
10602         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10603         TARGET_DEFAULT_RETURN.
10604
10605 2014-02-19  Tom Tromey  <tromey@redhat.com>
10606
10607         * target-delegates.c: Rebuild.
10608         * target.c (update_current_target): Don't inherit or default
10609         to_insert_hw_breakpoint.
10610         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10611         TARGET_DEFAULT_RETURN.
10612
10613 2014-02-19  Tom Tromey  <tromey@redhat.com>
10614
10615         * target-delegates.c: Rebuild.
10616         * target.c (update_current_target): Don't inherit or default
10617         to_can_use_hw_breakpoint.
10618         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10619         TARGET_DEFAULT_RETURN.
10620
10621 2014-02-19  Tom Tromey  <tromey@redhat.com>
10622
10623         * target-delegates.c: Rebuild.
10624         * target.c (update_current_target): Don't inherit or default
10625         to_files_info.
10626         * target.h (struct target_ops) <to_files_info>: Use
10627         TARGET_DEFAULT_IGNORE.
10628
10629 2014-02-19  Tom Tromey  <tromey@redhat.com>
10630
10631         * target-delegates.c: Rebuild.
10632         * target.c (update_current_target): Don't inherit or default
10633         to_store.
10634         * target.h (struct target_ops) <to_store>: Use
10635         TARGET_DEFAULT_NORETURN.
10636
10637 2014-02-19  Tom Tromey  <tromey@redhat.com>
10638
10639         * target-delegates.c: Rebuild.
10640         * target.c (update_current_target): Don't inherit or default
10641         to_post_attach.
10642         * target.h (struct target_ops) <to_post_attach>: Use
10643         TARGET_DEFAULT_IGNORE.
10644
10645 2014-02-19  Tom Tromey  <tromey@redhat.com>
10646
10647         * target-delegates.c: Rebuild.
10648         * target.c (update_current_target): Don't inherit or default
10649         to_rcmd.
10650         (default_rcmd): New function.
10651         (do_monitor_command): Unconditionally delegate.
10652         * target.h (struct target_ops) <to_rmcd>: Use
10653         TARGET_DEFAULT_FUNC.
10654
10655 2014-02-19  Tom Tromey  <tromey@redhat.com>
10656
10657         * target-delegates.c: Rebuild.
10658         * target.c (init_dummy_target): Don't initialize to_attach.
10659         (target_attach): Unconditionally delegate.
10660         * target.h (struct target_ops) <to_attach>: Use
10661         TARGET_DEFAULT_FUNC.
10662
10663 2014-02-19  Tom Tromey  <tromey@redhat.com>
10664
10665         * target-delegates.c: Rebuild.
10666         * target.c (target_detach): Unconditionally delegate.
10667         (init_dummy_target): Don't initialize to_detach.
10668         * target.h (struct target_ops) <to_detach>: Use
10669         TARGET_DEFAULT_IGNORE.
10670
10671 2014-02-19  Tom Tromey  <tromey@redhat.com>
10672
10673         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10674         Add argument.
10675         (target_augmented_libraries_svr4_read): Add argument.
10676         * target.c (update_current_target): Update.
10677         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10678         argument.
10679
10680 2014-02-19  Tom Tromey  <tromey@redhat.com>
10681
10682         * target.h (struct target_ops) <to_call_history_range>: Add
10683         argument.
10684         * target.c (target_call_history_range): Add argument.
10685         * record-btrace.c (record_btrace_call_history_range): Add 'self'
10686         argument.
10687         (record_btrace_call_history_from): Update.
10688
10689 2014-02-19  Tom Tromey  <tromey@redhat.com>
10690
10691         * target.h (struct target_ops) <to_call_history_from>: Add
10692         argument.
10693         * target.c (target_call_history_from): Add argument.
10694         * record-btrace.c (record_btrace_call_history_from): Add 'self'
10695         argument.
10696
10697 2014-02-19  Tom Tromey  <tromey@redhat.com>
10698
10699         * target.h (struct target_ops) <to_call_history>: Add argument.
10700         * target.c (target_call_history): Add argument.
10701         * record-btrace.c (record_btrace_call_history): Add 'self'
10702         argument.
10703
10704 2014-02-19  Tom Tromey  <tromey@redhat.com>
10705
10706         * target.h (struct target_ops) <to_insn_history_range>: Add
10707         argument.
10708         * target.c (target_insn_history_range): Add argument.
10709         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10710         argument.
10711         (record_btrace_insn_history_from): Update.
10712
10713 2014-02-19  Tom Tromey  <tromey@redhat.com>
10714
10715         * target.h (struct target_ops) <to_insn_history_from>: Add
10716         argument.
10717         * target.c (target_insn_history_from): Add argument.
10718         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10719         argument.
10720
10721 2014-02-19  Tom Tromey  <tromey@redhat.com>
10722
10723         * target.h (struct target_ops) <to_insn_history>: Add argument.
10724         * target.c (target_insn_history): Add argument.
10725         * record-btrace.c (record_btrace_insn_history): Add 'self'
10726         argument.
10727
10728 2014-02-19  Tom Tromey  <tromey@redhat.com>
10729
10730         * target.h (struct target_ops) <to_goto_record>: Add argument.
10731         * target.c (target_goto_record): Add argument.
10732         * record-full.c (record_full_goto): Add 'self' argument.
10733         * record-btrace.c (record_btrace_goto): Add 'self' argument.
10734
10735 2014-02-19  Tom Tromey  <tromey@redhat.com>
10736
10737         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10738         * target.c (target_goto_record_end): Add argument.
10739         * record-full.c (record_full_goto_end): Add 'self' argument.
10740         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10741
10742 2014-02-19  Tom Tromey  <tromey@redhat.com>
10743
10744         * target.h (struct target_ops) <to_goto_record_begin>: Add
10745         argument.
10746         * target.c (target_goto_record_begin): Add argument.
10747         * record-full.c (record_full_goto_begin): Add 'self' argument.
10748         * record-btrace.c (record_btrace_goto_begin): Add 'self'
10749         argument.
10750
10751 2014-02-19  Tom Tromey  <tromey@redhat.com>
10752
10753         * target.h (struct target_ops) <to_record_is_replaying>: Add
10754         argument.
10755         * target.c (target_record_is_replaying): Add argument.
10756         * record-full.c (record_full_is_replaying): Add 'self' argument.
10757         * record-btrace.c (record_btrace_is_replaying): Add 'self'
10758         argument.
10759         (record_btrace_xfer_partial, record_btrace_store_registers)
10760         (record_btrace_prepare_to_store, record_btrace_resume)
10761         (record_btrace_wait, record_btrace_decr_pc_after_break)
10762         (record_btrace_find_new_threads, record_btrace_thread_alive):
10763         Update.
10764
10765 2014-02-19  Tom Tromey  <tromey@redhat.com>
10766
10767         * target.h (struct target_ops) <to_delete_record>: Add argument.
10768         * target.c (target_delete_record): Add argument.
10769         * record-full.c (record_full_delete): Add 'self' argument.
10770
10771 2014-02-19  Tom Tromey  <tromey@redhat.com>
10772
10773         * target.h (struct target_ops) <to_save_record>: Add argument.
10774         * target.c (target_save_record): Add argument.
10775         * record-full.c (record_full_save): Add 'self' argument.
10776         (record_full_save): Add 'self' argument.
10777
10778 2014-02-19  Tom Tromey  <tromey@redhat.com>
10779
10780         * target.h (struct target_ops) <to_info_record>: Add argument.
10781         * target.c (target_info_record): Add argument.
10782         * record.c (info_record_command): Add argument.
10783         * record-full.c (record_full_info): Add 'self' argument.
10784         * record-btrace.c (record_btrace_info): Add 'self' argument.
10785
10786 2014-02-19  Tom Tromey  <tromey@redhat.com>
10787
10788         * target.h (struct target_ops) <to_stop_recording>: Add argument.
10789         * target.c (target_stop_recording): Add argument.
10790         * record.c (record_stop): Add argument.
10791         * record-btrace.c (record_btrace_stop_recording): Add 'self'
10792         argument.
10793
10794 2014-02-19  Tom Tromey  <tromey@redhat.com>
10795
10796         * target.h (struct target_ops) <to_read_btrace>: Add argument.
10797         * target.c (struct target_ops) <to_read_btrace>: Add argument.
10798         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10799         argument.
10800         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10801         (_initialize_amd64_linux_nat): Use it.
10802         * i386-linux-nat.c (i386_linux_read_btrace): New function.
10803         (_initialize_i386_linux_nat): Use it.
10804
10805 2014-02-19  Tom Tromey  <tromey@redhat.com>
10806
10807         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10808         * target.c (target_teardown_btrace): Add argument.
10809         * remote.c (remote_teardown_btrace): Add 'self' argument.
10810         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10811         argument.
10812         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10813         argument.
10814
10815 2014-02-19  Tom Tromey  <tromey@redhat.com>
10816
10817         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10818         * target.c (target_disable_btrace): Add argument.
10819         * remote.c (remote_disable_btrace): Add 'self' argument.
10820         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10821         argument.
10822         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10823         argument.
10824
10825 2014-02-19  Tom Tromey  <tromey@redhat.com>
10826
10827         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10828         * target.c (target_enable_btrace): Add argument.
10829         * remote.c (remote_enable_btrace): Add 'self' argument.
10830         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10831         argument.
10832         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10833         argument.
10834
10835 2014-02-19  Tom Tromey  <tromey@redhat.com>
10836
10837         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10838         (target_can_use_agent): Add argument.
10839         * target.c (update_current_target): Update.
10840         * remote.c (remote_can_use_agent): Add 'self' argument.
10841         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10842
10843 2014-02-19  Tom Tromey  <tromey@redhat.com>
10844
10845         * target.h (struct target_ops) <to_use_agent>: Add argument.
10846         (target_use_agent): Add argument.
10847         * target.c (update_current_target): Update.
10848         * remote.c (remote_use_agent): Add 'self' argument.
10849         * inf-child.c (inf_child_use_agent): Add 'self' argument.
10850
10851 2014-02-19  Tom Tromey  <tromey@redhat.com>
10852
10853         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10854         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10855         (target_traceframe_info): Add argument.
10856         * target.c (update_current_target): Update.
10857         * remote.c (remote_traceframe_info): Add 'self' argument.
10858         * ctf.c (ctf_traceframe_info): Add 'self' argument.
10859
10860 2014-02-19  Tom Tromey  <tromey@redhat.com>
10861
10862         * target.h (target_static_tracepoint_markers_by_strid): Add
10863         argument.
10864         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10865         'self' argument.
10866         * target.c (update_current_target): Update.
10867         * remote.c (struct target_ops)
10868         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10869         * linux-nat.c (struct target_ops)
10870         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10871
10872 2014-02-19  Tom Tromey  <tromey@redhat.com>
10873
10874         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10875         Add argument.
10876         (target_static_tracepoint_marker_at): Add argument.
10877         * target.c (update_current_target): Update.
10878         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10879         argument.
10880
10881 2014-02-19  Tom Tromey  <tromey@redhat.com>
10882
10883         * target.h (struct target_ops) <to_set_permissions>: Add argument.
10884         (target_set_permissions): Add argument.
10885         * target.c (update_current_target): Update.
10886         * remote.c (remote_set_permissions): Add 'self' argument.
10887         (remote_start_remote): Update.
10888
10889 2014-02-19  Tom Tromey  <tromey@redhat.com>
10890
10891         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10892         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10893         (target_get_tib_address): Add argument.
10894         * target.c (update_current_target): Update.
10895         * remote.c (remote_get_tib_address): Add 'self' argument.
10896
10897 2014-02-19  Tom Tromey  <tromey@redhat.com>
10898
10899         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10900         (target_set_trace_notes): Add argument.
10901         * target.c (update_current_target): Update.
10902         * remote.c (remote_set_trace_notes): Add 'self' argument.
10903
10904 2014-02-19  Tom Tromey  <tromey@redhat.com>
10905
10906         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10907         argument.
10908         (target_set_trace_buffer_size): Add argument.
10909         * target.c (update_current_target): Update.
10910         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10911
10912 2014-02-19  Tom Tromey  <tromey@redhat.com>
10913
10914         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10915         argument.
10916         (target_set_circular_trace_buffer): Add argument.
10917         * target.c (update_current_target): Update.
10918         * remote.c (remote_set_circular_trace_buffer): Add 'self'
10919         argument.
10920
10921 2014-02-19  Tom Tromey  <tromey@redhat.com>
10922
10923         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10924         argument.
10925         (target_set_disconnected_tracing): Add argument.
10926         * target.c (update_current_target): Update.
10927         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10928
10929 2014-02-19  Tom Tromey  <tromey@redhat.com>
10930
10931         * target.h (struct target_ops)
10932         <to_get_min_fast_tracepoint_insn_len>: Add argument.
10933         (target_get_min_fast_tracepoint_insn_len): Add argument.
10934         * target.c (update_current_target): Update.
10935         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10936         argument.
10937
10938 2014-02-19  Tom Tromey  <tromey@redhat.com>
10939
10940         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10941         argument.
10942         (target_get_raw_trace_data): Add argument.
10943         * target.c (update_current_target): Update.
10944         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10945
10946 2014-02-19  Tom Tromey  <tromey@redhat.com>
10947
10948         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10949         Add argument.
10950         (target_upload_trace_state_variables): Add argument.
10951         * target.c (update_current_target): Update.
10952         * remote.c (remote_upload_trace_state_variables): Add 'self'
10953         argument.
10954         (remote_start_remote): Update.
10955
10956 2014-02-19  Tom Tromey  <tromey@redhat.com>
10957
10958         * target.h (struct target_ops) <to_upload_tracepoints>: Add
10959         argument.
10960         (target_upload_tracepoints): Add argument.
10961         * target.c (update_current_target): Update.
10962         * remote.c (remote_upload_tracepoints): Add 'self' argument.
10963         (remote_start_remote): Update.
10964
10965 2014-02-19  Tom Tromey  <tromey@redhat.com>
10966
10967         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10968         (target_save_trace_data): Add argument.
10969         * target.c (update_current_target): Update.
10970         * remote.c (remote_save_trace_data): Add 'self' argument.
10971
10972 2014-02-19  Tom Tromey  <tromey@redhat.com>
10973
10974         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10975         argument.
10976         * target.h (struct target_ops)
10977         <to_get_trace_state_variable_value>: Add argument.
10978         (target_get_trace_state_variable_value): Add argument.
10979         * target.c (update_current_target): Update.
10980         * remote.c (remote_get_trace_state_variable_value): Add 'self'
10981         argument.
10982         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10983
10984 2014-02-19  Tom Tromey  <tromey@redhat.com>
10985
10986         * tracepoint.c (tfile_trace_find): Add 'self' argument.
10987         * target.h (struct target_ops) <to_trace_find>: Add argument.
10988         (target_trace_find): Add argument.
10989         * target.c (update_current_target): Update.
10990         * remote.c (remote_trace_find): Add 'self' argument.
10991         * ctf.c (ctf_trace_find): Add 'self' argument.
10992
10993 2014-02-19  Tom Tromey  <tromey@redhat.com>
10994
10995         * target.h (struct target_ops) <to_trace_stop>: Add argument.
10996         (target_trace_stop): Add argument.
10997         * target.c (update_current_target): Update.
10998         * remote.c (remote_trace_stop): Add 'self' argument.
10999
11000 2014-02-19  Tom Tromey  <tromey@redhat.com>
11001
11002         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11003         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11004         argument.
11005         (target_get_tracepoint_status): Add argument.
11006         * target.c (update_current_target): Update.
11007         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11008
11009 2014-02-19  Tom Tromey  <tromey@redhat.com>
11010
11011         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11012         * target.h (struct target_ops) <to_get_trace_status>: Add
11013         argument.
11014         (target_get_trace_status): Add argument.
11015         * target.c (update_current_target): Update.
11016         * remote.c (remote_get_trace_status): Add 'self' argument.
11017         (remote_start_remote, remote_can_download_tracepoint): Update.
11018         * ctf.c (ctf_get_trace_status): Add 'self' argument.
11019
11020 2014-02-19  Tom Tromey  <tromey@redhat.com>
11021
11022         * target.h (struct target_ops) <to_trace_start>: Add argument.
11023         (target_trace_start): Add argument.
11024         * target.c (update_current_target): Update.
11025         * remote.c (remote_trace_start): Add 'self' argument.
11026
11027 2014-02-19  Tom Tromey  <tromey@redhat.com>
11028
11029         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11030         Add argument.
11031         (target_trace_set_readonly_regions): Add argument.
11032         * target.c (update_current_target): Update.
11033         * remote.c (remote_trace_set_readonly_regions): Add 'self'
11034         argument.
11035
11036 2014-02-19  Tom Tromey  <tromey@redhat.com>
11037
11038         * target.h (struct target_ops) <to_disable_tracepoint>: Add
11039         argument.
11040         (target_disable_tracepoint): Add argument.
11041         * target.c (update_current_target): Update.
11042         * remote.c (remote_disable_tracepoint): Add 'self' argument.
11043
11044 2014-02-19  Tom Tromey  <tromey@redhat.com>
11045
11046         * target.h (struct target_ops) <to_enable_tracepoint>: Add
11047         argument.
11048         (target_enable_tracepoint): Add argument.
11049         * target.c (update_current_target): Update.
11050         * remote.c (remote_enable_tracepoint): Add 'self' argument.
11051
11052 2014-02-19  Tom Tromey  <tromey@redhat.com>
11053
11054         * target.h (struct target_ops) <to_download_trace_state_variable>:
11055         Add argument.
11056         (target_download_trace_state_variable): Add argument.
11057         * target.c (update_current_target): Update.
11058         * remote.c (remote_download_trace_state_variable): Add 'self'
11059         argument.
11060
11061 2014-02-19  Tom Tromey  <tromey@redhat.com>
11062
11063         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11064         argument.
11065         (target_can_download_tracepoint): Add argument.
11066         * target.c (update_current_target): Update.
11067         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11068
11069 2014-02-19  Tom Tromey  <tromey@redhat.com>
11070
11071         * target.h (struct target_ops) <to_download_tracepoint>: Add
11072         argument.
11073         (target_download_tracepoint): Add argument.
11074         * target.c (update_current_target): Update.
11075         * remote.c (remote_download_tracepoint): Add 'self' argument.
11076
11077 2014-02-19  Tom Tromey  <tromey@redhat.com>
11078
11079         * target.h (struct target_ops) <to_trace_init>: Add argument.
11080         (target_trace_init): Add argument.
11081         * target.c (update_current_target): Update.
11082         * remote.c (remote_trace_init): Add 'self' argument.
11083
11084 2014-02-19  Tom Tromey  <tromey@redhat.com>
11085
11086         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11087         * target.c (target_fileio_readlink): Add argument.
11088         * remote.c (remote_hostio_readlink): Add 'self' argument.
11089         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11090
11091 2014-02-19  Tom Tromey  <tromey@redhat.com>
11092
11093         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11094         * target.c (target_fileio_unlink): Add argument.
11095         * remote.c (remote_hostio_unlink): Add 'self' argument.
11096         (remote_file_delete): Update.
11097         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11098
11099 2014-02-19  Tom Tromey  <tromey@redhat.com>
11100
11101         * target.h (struct target_ops) <to_fileio_close>: Add argument.
11102         * target.c (target_fileio_close): Add argument.
11103         * remote.c (remote_hostio_close): Add 'self' argument.
11104         (remote_hostio_close_cleanup): Update.
11105         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11106         Update.
11107         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11108
11109 2014-02-19  Tom Tromey  <tromey@redhat.com>
11110
11111         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11112         * target.c (target_fileio_pread): Add argument.
11113         * remote.c (remote_hostio_pread): Add 'self' argument.
11114         (remote_bfd_iovec_pread, remote_file_get): Update.
11115         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11116
11117 2014-02-19  Tom Tromey  <tromey@redhat.com>
11118
11119         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11120         * target.c (target_fileio_pwrite): Add argument.
11121         * remote.c (remote_hostio_pwrite): Add 'self' argument.
11122         (remote_file_put): Update.
11123         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11124
11125 2014-02-19  Tom Tromey  <tromey@redhat.com>
11126
11127         * target.h (struct target_ops) <to_fileio_open>: Add argument.
11128         * target.c (target_fileio_open): Add argument.
11129         * remote.c (remote_hostio_open): Add 'self' argument.
11130         (remote_bfd_iovec_open): Add 'self' argument.
11131         (remote_file_put): Add 'self' argument.
11132         (remote_file_get): Add 'self' argument.
11133         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11134
11135 2014-02-19  Tom Tromey  <tromey@redhat.com>
11136
11137         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11138         Add argument.
11139         (target_can_run_breakpoint_commands): Add argument.
11140         * target.c (update_current_target): Update.
11141         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11142         argument.
11143         (remote_insert_breakpoint): Add 'self' argument.
11144         (remote_insert_hw_breakpoint): Add 'self' argument.
11145         (remote_can_run_breakpoint_commands): Add 'self' argument.
11146
11147 2014-02-19  Tom Tromey  <tromey@redhat.com>
11148
11149         * target.h (struct target_ops)
11150         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11151         (target_supports_evaluation_of_breakpoint_conditions): Add
11152         argument.
11153         * target.c (update_current_target): Update.
11154         * remote.c (remote_supports_cond_breakpoints): Add 'self'
11155         argument.
11156         (remote_insert_breakpoint): Add 'self' argument.
11157         (remote_insert_hw_breakpoint): Add 'self' argument.
11158         (remote_supports_cond_breakpoints): Add 'self' argument.
11159
11160 2014-02-19  Tom Tromey  <tromey@redhat.com>
11161
11162         * target.h (struct target_ops) <to_supports_string_tracing>: Add
11163         argument.
11164         (target_supports_string_tracing): Add argument.
11165         * target.c (update_current_target): Update.
11166         * remote.c (remote_supports_string_tracing): Add 'self' argument.
11167
11168 2014-02-19  Tom Tromey  <tromey@redhat.com>
11169
11170         * target.h (struct target_ops)
11171         <to_supports_disable_randomization>: Add argument.
11172         * target.c (find_default_supports_disable_randomization): Add
11173         argument.
11174         (target_supports_disable_randomization): Add argument.
11175         (find_default_supports_disable_randomization): Add 'self'
11176         argument.
11177         * remote.c (extended_remote_supports_disable_randomization): Add
11178         'self' argument.
11179         (remote_supports_disable_randomization): Add 'self' argument.
11180         (extended_remote_create_inferior): Update.
11181         * linux-nat.c (linux_nat_supports_disable_randomization): Add
11182         'self' argument.
11183
11184 2014-02-19  Tom Tromey  <tromey@redhat.com>
11185
11186         * target.h (struct target_ops)
11187         <to_supports_enable_disable_tracepoint>: Add argument.
11188         (target_supports_enable_disable_tracepoint): Add argument.
11189         * target.c (update_current_target): Update.
11190         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11191         argument.
11192
11193 2014-02-19  Tom Tromey  <tromey@redhat.com>
11194
11195         * target.h (struct target_ops) <to_supports_multi_process>: Add
11196         argument.
11197         (target_supports_multi_process): Add argument.
11198         * target.c (update_current_target): Update.
11199         * remote.c (remote_supports_multi_process): Add 'self' argument.
11200         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11201         argument.
11202         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11203         argument.
11204
11205 2014-02-19  Tom Tromey  <tromey@redhat.com>
11206
11207         * target.h (struct target_ops) <to_execution_direction>: Add
11208         argument.
11209         (target_execution_direction): Add argument.
11210         * target.c (default_execution_direction): Add 'self' argument.
11211         * record-full.c (record_full_execution_direction): Add 'self'
11212         argument.
11213
11214 2014-02-19  Tom Tromey  <tromey@redhat.com>
11215
11216         * target.h (struct target_ops) <to_can_execute_reverse>: Add
11217         argument.
11218         (target_can_execute_reverse): Add argument.
11219         * remote.c (remote_can_execute_reverse): Add 'self' argument.
11220         * record-full.c (record_full_can_execute_reverse): Add 'self'
11221         argument.
11222         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11223         argument.
11224
11225 2014-02-19  Tom Tromey  <tromey@redhat.com>
11226
11227         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11228         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11229         argument.
11230         (target_get_ada_task_ptid): Add argument.
11231         * target.c (update_current_target): Update.
11232         (default_get_ada_task_ptid): Add 'self' argument.
11233         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11234         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11235         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11236         argument.
11237         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11238         argument.
11239         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11240         argument.
11241         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11242         argument.
11243         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11244         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11245         argument.
11246
11247 2014-02-19  Tom Tromey  <tromey@redhat.com>
11248
11249         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11250         (target_goto_bookmark): Add argument.
11251         * target.c (dummy_goto_bookmark): Add 'self' argument.
11252         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11253
11254 2014-02-19  Tom Tromey  <tromey@redhat.com>
11255
11256         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11257         (target_get_bookmark): Add argument.
11258         * target.c (dummy_get_bookmark): Add 'self' argument.
11259         * record-full.c (record_full_get_bookmark): Add 'self' argument.
11260
11261 2014-02-19  Tom Tromey  <tromey@redhat.com>
11262
11263         * target.h (struct target_ops) <to_make_corefile_notes>: Add
11264         argument.
11265         (target_make_corefile_notes): Add argument.
11266         * target.c (dummy_make_corefile_notes): Add 'self' argument.
11267         * procfs.c (procfs_make_note_section): Add 'self' argument.
11268         (procfs_make_note_section): Add 'self' argument.
11269         (procfs_make_note_section): Add 'self' argument.
11270         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11271         argument.
11272         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11273         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11274         * exec.c (exec_make_note_section): Add 'self' argument.
11275         (exec_make_note_section): Add 'self' argument.
11276
11277 2014-02-19  Tom Tromey  <tromey@redhat.com>
11278
11279         * target.h (struct target_ops) <to_find_memory_regions>: Add
11280         argument.
11281         (target_find_memory_regions): Add argument.
11282         * target.c (dummy_find_memory_regions): Add 'self' argument.
11283         * procfs.c (proc_find_memory_regions): Add 'self' argument.
11284         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11285         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11286         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11287         * exec. (exec_do_find_memory_regions): New global.
11288         (exec_set_find_memory_regions): Rewrite.
11289         (exec_find_memory_regions): New function.
11290         (init_exec_ops): Use exec_find_memory_regions.
11291
11292 2014-02-19  Tom Tromey  <tromey@redhat.com>
11293
11294         * target.h (struct target_ops) <to_supports_non_stop>: Add
11295         argument.
11296         * target.c (find_default_supports_non_stop): Add argument.
11297         (target_supports_non_stop): Add argument.
11298         (find_default_supports_non_stop): Add 'self' argument.
11299         * remote.c (remote_supports_non_stop): Add 'self' argument.
11300         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11301
11302 2014-02-19  Tom Tromey  <tromey@redhat.com>
11303
11304         * target.h (struct target_ops) <to_log_command>: Add argument.
11305         (target_log_command): Add argument.
11306         * serial.h (serial_log_command): Add 'self' argument.
11307         * serial.c (serial_log_command): Add 'self' argument.
11308
11309 2014-02-19  Tom Tromey  <tromey@redhat.com>
11310
11311         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11312         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11313         argument.
11314         (target_pid_to_exec_file): Add argument.
11315         * target.c (debug_to_pid_to_exec_file): Add argument.
11316         (update_current_target): Update.
11317         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11318         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11319         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11320         (linux_handle_extended_wait): Update.
11321         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11322         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11323         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11324         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11325
11326 2014-02-19  Tom Tromey  <tromey@redhat.com>
11327
11328         * target.h (struct target_ops) <to_rcmd>: Add argument.
11329         (target_rcmd): Add argument.
11330         * target.c (debug_to_rcmd): Add argument.
11331         (update_current_target, do_monitor_command): Update.
11332         * remote.c (remote_rcmd): Add 'self' argument.
11333         * monitor.c (monitor_rcmd): Add 'self' argument.
11334
11335 2014-02-19  Tom Tromey  <tromey@redhat.com>
11336
11337         * windows-nat.c (windows_stop): Add 'self' argument.
11338         * target.h (struct target_ops) <to_stop>: Add argument.
11339         * target.c (target_stop): Add argument.
11340         (debug_to_stop): Add argument.
11341         (update_current_target): Update.
11342         * remote.c (remote_stop): Add 'self' argument.
11343         * remote-sim.c (gdbsim_stop): Add 'self' argument.
11344         (gdbsim_cntrl_c): Update.
11345         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11346         * procfs.c (procfs_stop): Add 'self' argument.
11347         * nto-procfs.c (procfs_stop): Add 'self' argument.
11348         * monitor.c (monitor_stop): Add 'self' argument.
11349         (monitor_open): Update.
11350         * linux-nat.c (linux_nat_stop): Add argument.
11351         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11352         * gnu-nat.c (gnu_stop): Add 'self' argument.
11353         * darwin-nat.c (darwin_stop): Add 'self' argument.
11354
11355 2014-02-19  Tom Tromey  <tromey@redhat.com>
11356
11357         * target.h (struct target_ops) <to_thread_name>: Add argument.
11358         * target.c (target_thread_name): Add argument.
11359         (update_current_target): Update.
11360         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11361
11362 2014-02-19  Tom Tromey  <tromey@redhat.com>
11363
11364         * target.h (struct target_ops) <to_extra_thread_info>: Add
11365         argument.
11366         (target_extra_thread_info): Add argument.
11367         * target.c (update_current_target): Update.
11368         * remote.c (remote_threads_extra_info): Add 'self' argument.
11369         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11370         argument.
11371         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11372         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11373         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11374         argument.
11375         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11376         argument.
11377         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11378         argument.
11379         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11380         argument.
11381
11382 2014-02-19  Tom Tromey  <tromey@redhat.com>
11383
11384         * target.h (struct target_ops) <to_program_signals>: Add argument.
11385         * target.c (target_program_signals): Add argument.
11386         * remote.c (remote_program_signals): Add 'self' argument.
11387
11388 2014-02-19  Tom Tromey  <tromey@redhat.com>
11389
11390         * target.h (struct target_ops) <to_pass_signals>: Add argument.
11391         * target.c (target_pass_signals): Add argument.
11392         * remote.c (remote_pass_signals): Add 'self' argument.
11393         (remote_start_remote): Update.
11394         * procfs.c (procfs_pass_signals): Add 'self' argument.
11395         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11396         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11397         (linux_nat_create_inferior, linux_nat_attach): Update.
11398
11399 2014-02-19  Tom Tromey  <tromey@redhat.com>
11400
11401         * windows-nat.c (windows_can_run): Add 'self' argument.
11402         * target.h (struct target_ops) <to_can_run>: Add argument.
11403         (target_can_run): Add argument.
11404         * target.c (debug_to_can_run): Add argument.
11405         (update_current_target): Update.
11406         * nto-procfs.c (procfs_can_run): Add 'self' argument.
11407         * inf-child.c (inf_child_can_run): Add 'self' argument.
11408         * go32-nat.c (go32_can_run): Add 'self' argument.
11409
11410 2014-02-19  Tom Tromey  <tromey@redhat.com>
11411
11412         * target.h (struct target_ops) <to_has_exited>: Add argument.
11413         (target_has_exited): Add argument.
11414         * target.c (debug_to_has_exited): Add argument.
11415         (update_current_target): Update.
11416
11417 2014-02-19  Tom Tromey  <tromey@redhat.com>
11418
11419         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11420         argument.
11421         (target_set_syscall_catchpoint): Add argument.
11422         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11423         argument.
11424         * target.c (update_current_target): Update.
11425
11426 2014-02-19  Tom Tromey  <tromey@redhat.com>
11427
11428         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11429         argument.
11430         (target_remove_exec_catchpoint): Add argument.
11431         * target.c (debug_to_remove_exec_catchpoint): Add argument.
11432         (update_current_target): Update.
11433         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11434         argument.
11435
11436 2014-02-19  Tom Tromey  <tromey@redhat.com>
11437
11438         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11439         argument.
11440         (target_insert_exec_catchpoint): Add argument.
11441         * target.c (debug_to_insert_exec_catchpoint): Add argument.
11442         (update_current_target): Update.
11443         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11444         argument.
11445
11446 2014-02-19  Tom Tromey  <tromey@redhat.com>
11447
11448         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11449         argument.
11450         (target_remove_vfork_catchpoint): Add argument.
11451         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11452         (update_current_target): Update.
11453         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11454         argument.
11455
11456 2014-02-19  Tom Tromey  <tromey@redhat.com>
11457
11458         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11459         argument.
11460         (target_insert_vfork_catchpoint): Add argument.
11461         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11462         (update_current_target): Update.
11463         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11464         argument.
11465
11466 2014-02-19  Tom Tromey  <tromey@redhat.com>
11467
11468         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11469         argument.
11470         (target_remove_fork_catchpoint): Add argument.
11471         * target.c (debug_to_remove_fork_catchpoint): Add argument.
11472         (update_current_target): Update.
11473         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11474         argument.
11475
11476 2014-02-19  Tom Tromey  <tromey@redhat.com>
11477
11478         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11479         argument.
11480         (target_insert_fork_catchpoint): Add argument.
11481         * target.c (debug_to_insert_fork_catchpoint): Add argument.
11482         (update_current_target): Update.
11483         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11484         argument.
11485
11486 2014-02-19  Tom Tromey  <tromey@redhat.com>
11487
11488         * target.h (struct target_ops) <to_post_startup_inferior>: Add
11489         argument.
11490         (target_post_startup_inferior): Add argument.
11491         * target.c (debug_to_post_startup_inferior): Add argument.
11492         (update_current_target): Update.
11493         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11494         argument.
11495         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11496         argument.
11497         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11498         argument.
11499         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11500         argument.
11501         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11502         'self' argument.
11503         (super_post_startup_inferior): Likewise.
11504         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11505         'self' argument.
11506         (super_post_startup_inferior): Likewise.
11507         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11508         Add 'self' argument.
11509         (super_post_startup_inferior): Likewise.
11510
11511 2014-02-19  Tom Tromey  <tromey@redhat.com>
11512
11513         * target.h (struct target_ops) <to_load>: Add argument.
11514         * target.c (target_load): Add argument.
11515         (debug_to_load): Add argument.
11516         (update_current_target): Update.
11517         * remote.c (remote_load): Add 'self' argument.
11518         * remote-sim.c (gdbsim_load): Add 'self' argument.
11519         * remote-mips.c (mips_load): Add 'self' argument.
11520         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11521         * monitor.c (monitor_load): Add 'self' argument.
11522         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11523
11524 2014-02-19  Tom Tromey  <tromey@redhat.com>
11525
11526         * target.h (struct target_ops) <to_terminal_info>: Add argument.
11527         (target_terminal_info): Add argument.
11528         * target.c (debug_to_terminal_info): Add argument.
11529         (default_terminal_info): Likewise.
11530         * inflow.c (child_terminal_info): Add 'self' argument.
11531         * inferior.h (child_terminal_info): Add 'self' argument.
11532         * go32-nat.c (go32_terminal_info): Add 'self' argument.
11533
11534 2014-02-19  Tom Tromey  <tromey@redhat.com>
11535
11536         * target.h (struct target_ops) <to_terminal_save_ours>: Add
11537         argument.
11538         (target_terminal_save_ours): Add argument.
11539         * target.c (debug_to_terminal_save_ours): Add argument.
11540         (update_current_target): Update.
11541         * inflow.c (terminal_save_ours): Add 'self' argument.
11542         * inferior.h (terminal_save_ours): Add 'self' argument.
11543
11544 2014-02-19  Tom Tromey  <tromey@redhat.com>
11545
11546         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11547         (target_terminal_ours): Add argument.
11548         * target.c (debug_to_terminal_ours): Add argument.
11549         (update_current_target): Update.
11550         * remote.c (remote_terminal_ours): Add 'self' argument.
11551         (remote_close): Update.
11552         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11553         * inflow.c (terminal_ours): Add 'self' argument.
11554         * inferior.h (terminal_ours): Add 'self' argument.
11555         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11556
11557 2014-02-19  Pedro Alves  <palves@redhat.com>
11558             Tom Tromey  <tromey@redhat.com>
11559
11560         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11561         argument.
11562         (target_terminal_ours_for_output): Add argument.
11563         * target.c (debug_to_terminal_ours_for_output): Add argument.
11564         (update_current_target): Update.
11565         * inflow.c (terminal_ours_for_output): Add 'self' argument.
11566         * inferior.h (terminal_ours_for_output): Add 'self' argument.
11567         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11568
11569 2014-02-19  Tom Tromey  <tromey@redhat.com>
11570
11571         * target.h (struct target_ops) <to_terminal_inferior>: Add
11572         argument.
11573         * target.c (target_terminal_inferior): Add argument.
11574         (update_current_target): Update.
11575         * remote.c (remote_terminal_inferior): Add 'self' argument.
11576         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11577         * inflow.c (terminal_inferior): Add 'self' argument.
11578         * inferior.h (terminal_inferior): Add 'self' argument.
11579         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11580         (go32_terminal_inferior): Add 'self' argument.
11581
11582 2014-02-19  Tom Tromey  <tromey@redhat.com>
11583
11584         * target.h (struct target_ops) <to_terminal_init>: Add argument.
11585         (target_terminal_init): Add argument.
11586         * target.c (debug_to_terminal_init): Add argument.
11587         (update_current_target): Update.
11588         * inflow.c (terminal_init_inferior): Add 'self' argument.
11589         * inferior.h (terminal_init_inferior): Add 'self' argument.
11590         * go32-nat.c (go32_terminal_init): Add 'self' argument.
11591         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11592
11593 2014-02-19  Tom Tromey  <tromey@redhat.com>
11594
11595         * target.h (struct target_ops)
11596         <to_can_accel_watchpoint_condition>: Add argument.
11597         (target_can_accel_watchpoint_condition): Add argument.
11598         * target.c (debug_to_can_accel_watchpoint_condition): Add
11599         argument.
11600         (update_current_target): Update.
11601         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11602         'self' argument.
11603
11604 2014-02-19  Tom Tromey  <tromey@redhat.com>
11605
11606         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11607         Add argument.
11608         (target_region_ok_for_hw_watchpoint): Add argument.
11609         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11610         (default_region_ok_for_hw_watchpoint): Add argument.
11611         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11612         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11613         argument.
11614         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11615         argument.
11616         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11617         argument.
11618         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11619         'self' argument.
11620         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11621         'self' argument.
11622         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11623         'self' argument.
11624         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11625         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11626         'self' argument.
11627         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11628         Add 'self' argument.
11629
11630 2014-02-19  Tom Tromey  <tromey@redhat.com>
11631
11632         * target.h (struct target_ops) <to_insert_watchpoint>: Add
11633         argument.
11634         (target_insert_watchpoint): Add argument.
11635         * target.c (debug_to_insert_watchpoint): Add argument.
11636         (update_current_target): Update.
11637         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11638         * remote.c (remote_insert_watchpoint): Add 'self' argument.
11639         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11640         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11641         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11642         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11643         argument.
11644         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11645         (procfs_insert_hw_watchpoint): Add 'self' argument.
11646         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11647         argument.
11648         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11649         argument.
11650         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11651         argument.
11652         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11653         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11654         argument.
11655         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11656         'self' argument.
11657
11658 2014-02-19  Tom Tromey  <tromey@redhat.com>
11659
11660         * target.h (struct target_ops) <to_remove_watchpoint>: Add
11661         argument.
11662         (target_remove_watchpoint): Add argument.
11663         * target.c (debug_to_remove_watchpoint): Add argument.
11664         (update_current_target): Update.
11665         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11666         * remote.c (remote_remove_watchpoint): Add 'self' argument.
11667         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11668         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11669         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11670         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11671         argument.
11672         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11673         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11674         argument.
11675         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11676         argument.
11677         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11678         argument.
11679         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11680         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11681         argument.
11682         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11683         'self' argument.
11684
11685 2014-02-19  Tom Tromey  <tromey@redhat.com>
11686
11687         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11688         argument.
11689         (target_remove_hw_breakpoint): Add argument.
11690         * target.c (debug_to_remove_hw_breakpoint): Add argument.
11691         (update_current_target): Update.
11692         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11693         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11694         argument.
11695         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11696         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11697         argument.
11698         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11699         'self' argument.
11700
11701 2014-02-19  Tom Tromey  <tromey@redhat.com>
11702
11703         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11704         argument.
11705         (target_insert_hw_breakpoint): Add argument.
11706         * target.c (debug_to_insert_hw_breakpoint): Add argument.
11707         (update_current_target): Update.
11708         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11709         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11710         argument.
11711         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11712         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11713         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11714         argument.
11715         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11716         'self' argument.
11717
11718 2014-02-19  Tom Tromey  <tromey@redhat.com>
11719
11720         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11721         argument.
11722         (target_can_use_hardware_watchpoint): Add argument.
11723         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11724         (update_current_target): Update.
11725         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11726         argument.
11727         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11728         argument.
11729         * remote.c (remote_check_watch_resources): Add 'self' argument.
11730         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11731         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11732         argument.
11733         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11734         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11735         argument.
11736         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11737         argument.
11738         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11739         argument.
11740         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11741         argument.
11742         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11743         argument.
11744         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11745         argument.
11746         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11747         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11748         argument.
11749         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11750         'self' argument.
11751
11752 2014-02-19  Tom Tromey  <tromey@redhat.com>
11753
11754         * target.h (struct target_ops) <to_post_attach>: Add argument.
11755         (target_post_attach): Add argument.
11756         * target.c (debug_to_post_attach): Add argument.
11757         (update_current_target): Update.
11758         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11759         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11760         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11761         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11762         * inf-child.c (inf_child_post_attach): Add 'self' argument.
11763
11764 2014-02-19  Tom Tromey  <tromey@redhat.com>
11765
11766         * windows-nat.c (windows_close): Add 'self' argument.
11767         * tracepoint.c (tfile_close): Add 'self' argument.
11768         * target.h (struct target_ops) <to_close>: Add argument.
11769         * target.c (target_close): Add argument.
11770         (update_current_target): Update.
11771         * remote.c (remote_close): Add 'self' argument.
11772         * remote-sim.c (gdbsim_close): Add 'self' argument.
11773         * remote-mips.c (mips_close): Add 'self' argument.
11774         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11775         * record-full.c (record_full_close): Add 'self' argument.
11776         * record-btrace.c (record_btrace_close): Add 'self' argument.
11777         * monitor.h (monitor_close): Add 'self' argument.
11778         * monitor.c (monitor_close): Add 'self' argument.
11779         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11780         * linux-nat.c (linux_nat_close): Add argument.
11781         * go32-nat.c (go32_close): Add 'self' argument.
11782         * exec.c (exec_close_1): Add 'self' argument.
11783         * ctf.c (ctf_close): Add 'self' argument.
11784         * corelow.c (core_close): Add 'self' argument.
11785         (core_close_cleanup): Update.
11786         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11787         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11788
11789 2014-02-19  Tom Tromey  <tromey@redhat.com>
11790
11791         * remote.c (remote_load): New function.
11792         (init_remote_ops): Use it.
11793
11794 2014-02-19  Tom Tromey  <tromey@redhat.com>
11795
11796         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11797         argument.
11798         * common/linux-btrace.h (linux_supports_btrace): Update.
11799         * remote.c (remote_supports_btrace): Add "self" argument.
11800         * target-delegates.c: Rebuild.
11801         * target.c (target_supports_btrace): Remove.
11802         * target.h (struct target_ops) <to_supports_btrace>: Add
11803         target_ops argument.
11804         (target_supports_btrace): New define.
11805
11806 2014-02-19  Tom Tromey  <tromey@redhat.com>
11807
11808         * record-full.c (record_full_beneath_to_resume_ops)
11809         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11810         (record_full_beneath_to_wait)
11811         (record_full_beneath_to_store_registers_ops)
11812         (record_full_beneath_to_store_registers)
11813         (record_full_beneath_to_xfer_partial_ops)
11814         (record_full_beneath_to_xfer_partial)
11815         (record_full_beneath_to_insert_breakpoint_ops)
11816         (record_full_beneath_to_insert_breakpoint)
11817         (record_full_beneath_to_remove_breakpoint_ops)
11818         (record_full_beneath_to_remove_breakpoint)
11819         (record_full_beneath_to_stopped_by_watchpoint)
11820         (record_full_beneath_to_stopped_data_address)
11821         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11822         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11823         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11824         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11825         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11826         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11827         (tmp_to_stopped_data_address, tmp_to_async): Remove.
11828         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
11829         (record_full_resume, record_full_wait_1)
11830         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11831         (record_full_store_registers, record_full_xfer_partial)
11832         (record_full_insert_breakpoint, record_full_remove_breakpoint)
11833         (record_full_async, record_full_core_xfer_partial): Use target
11834         delegation.
11835         * target-delegates.c: Rebuild.
11836         * target.c (current_xfer_partial): Remove.
11837         (update_current_target): Do not INHERIT or de_fault
11838         to_insert_breakpoint, to_remove_breakpoint,
11839         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11840         to_is_async_p, to_async.  Do not set to_xfer_partial field.
11841         (default_xfer_partial): Simplify.
11842         (current_xfer_partial): Remove.
11843         (target_wait, target_resume): Simplify.
11844         (find_default_can_async_p, find_default_is_async_p): Update.
11845         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11846         to_xfer_partial, to_stopped_by_watchpoint,
11847         to_stopped_data_address.
11848         (target_store_registers): Simplify.
11849         (forward_target_remove_breakpoint)
11850         (forward_target_insert_breakpoint): Remove.
11851         (target_remove_breakpoint, target_insert_breakpoint)
11852         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11853         * target.h (struct target_ops) <to_resume, to_wait,
11854         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11855         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11856         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11857         markup.
11858         (forward_target_remove_breakpoint)
11859         (forward_target_insert_breakpoint): Remove.
11860         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11861         directly.
11862         (record_btrace_insert_breakpoint): Delegate directly.
11863
11864 2014-02-19  Tom Tromey  <tromey@redhat.com>
11865
11866         PR build/7701:
11867         * target-delegates.c: New file.
11868         * target.c: Include target-delegates.c.
11869         (init_dummy_target): Call install_dummy_methods.
11870         (complete_target_initialization): Call install_delegators.
11871         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11872         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11873         * make-target-delegates: New file.
11874
11875 2014-02-19  Tom Tromey  <tromey@redhat.com>
11876
11877         * record.c (find_record_target): Use find_target_at.
11878         * target.c (find_target_at): New function.
11879         * target.h (find_target_at): Declare.
11880
11881 2014-02-19  Tom Tromey  <tromey@redhat.com>
11882
11883         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11884         Add 'ops' argument.
11885         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11886         'ops' argument.
11887         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11888         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11889         'ops' argument.
11890         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11891         argument.
11892         * linux-nat.c (save_sigtrap): Update.
11893         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11894         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11895         (linux_nat_close): Update.
11896         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11897         argument.
11898         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11899         argument.
11900         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11901         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11902         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11903         (tmp_to_async): Add 'ops' argument.
11904         (record_full_stopped_by_watchpoint, record_full_async)
11905         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11906         argument.
11907         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11908         (m32r_stopped_by_watchpoint): Add 'ops' argument.
11909         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11910         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11911         (remote_is_async_p, remote_async): Add 'ops' argument.
11912         (remote_stopped_data_address): Update.
11913         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11914         * target.c (update_current_target)
11915         (find_default_can_async_p, find_default_is_async_p): Update.
11916         (init_dummy_target): Update.
11917         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11918         * target.h (struct target_ops) <to_stopped_by_watchpoint,
11919         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11920         (target_can_async_p, target_is_async_p, target_async)
11921         (target_stopped_by_watchpoint): Update.
11922
11923 2014-02-19  Yao Qi  <yao@codesourcery.com>
11924
11925         PR gdb/16220
11926         * gdbarch.sh: Remove startup_gdbarch.
11927         * gdbarch.c: Regenerated.
11928         * gdbarch.h: Likewise.
11929
11930 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
11931
11932         * rl78-tdep.c (rl78_g10_register_name): New function.
11933         (rl78_return_value): Add g10 support.
11934         (rl78_gdbarch_init): Register rl78_g10_register_name for the
11935         g10.
11936
11937 2014-02-17  Doug Evans  <xdje42@gmail.com>
11938
11939         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11940         (SUBDIR_GUILE_SRCS): Ditto.
11941         (scm-gsmob.o): Ditto.
11942
11943 2014-02-17  Yao Qi  <yao@codesourcery.com>
11944
11945         * gnu-nat.c (ILL_RPC): Declare defined function.
11946
11947 2014-02-17  Yao Qi  <yao@codesourcery.com>
11948
11949         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11950         mach_msg_type_number_t.
11951         (gnu_write_inferior): Likewise.
11952
11953 2014-02-17  Yao Qi  <yao@codesourcery.com>
11954
11955         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11956         in format string.
11957         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11958         (inf_validate_procs, inf_signal): Likewise.
11959         (S_exception_raise_request): Likewise.
11960         (do_mach_notify_dead_name): Likewise.
11961         (steal_exc_port): Likewise.
11962         (gnu_read_inferior): Change 'copy_count''s type to
11963         mach_msg_type_number_t.
11964         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
11965         format string.
11966
11967 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
11968
11969         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11970         flag.  Adjust all users; in particular...
11971         (gnu_wait): ..., don't decrement its value in here...
11972         (gnu_create_inferior): ..., and instead set the flag in here,
11973         around the startup_inferior call, and call that one with
11974         START_INFERIOR_TRAPS_EXPECTED.
11975
11976         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11977         (ILL_RPC): ... new macro.
11978         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11979         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11980         (do_mach_notify_send_once, S_proc_setmsgport_reply)
11981         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11982         functions with ILL_RPC macro.
11983         (S_proc_pid2task_reply, S_proc_task2pid_reply)
11984         (S_proc_task2proc_reply, S_proc_proc2task_reply)
11985         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11986         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11987         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11988         (S_proc_getlogin_reply, S_proc_getsid_reply)
11989         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11990         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11991         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11992         (S_proc_getnports_reply, S_proc_is_important_reply)
11993         (S_proc_get_code_reply): New stub functions, generated with
11994         ILL_RPC macro.
11995
11996         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11997         collected the type check structures.
11998
11999         * reply_mig_hack.awk: Don't expect to see the auto keyword.
12000
12001 2014-02-14  Doug Evans  <dje@google.com>
12002
12003         * target.c (target_write_partial): Fix result type.
12004
12005 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
12006
12007         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12008         the proper offsets to access fpregset_t.
12009
12010 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
12011
12012         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12013         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12014         * h8300-tdep.c (setmachinelist): Remove global.
12015         * hppa-tdep.c (hppa_sigtramp): Remove global.
12016         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12017         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12018         * ravenscar-thread.c (update_target_observer): Remove global.
12019         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12020
12021 2014-02-12  Tom Tromey  <tromey@redhat.com>
12022
12023         * common/rsp-low.c: Update comments.
12024         * common/rsp-low.h: Update comments.
12025
12026 2014-02-12  Tom Tromey  <tromey@redhat.com>
12027
12028         * common/rsp-low.c (convert_ascii_to_int): Remove.
12029         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12030
12031 2014-02-12  Tom Tromey  <tromey@redhat.com>
12032
12033         * common/rsp-low.h (unhexify): Don't declare.
12034         * common/rsp-low.c (unhexify): Remove.
12035
12036 2014-02-12  Tom Tromey  <tromey@redhat.com>
12037
12038         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12039         * common/rsp-low.c (convert_int_to_ascii): Remove.
12040
12041 2014-02-12  Tom Tromey  <tromey@redhat.com>
12042
12043         * common/rsp-low.h (hexify): Don't declare.
12044         * common/rsp-low.c (hexify): Remove.
12045
12046 2014-02-12  Tom Tromey  <tromey@redhat.com>
12047
12048         * common/rsp-low.c (hexify): Never take strlen of argument.
12049
12050 2014-02-12  Tom Tromey  <tromey@redhat.com>
12051
12052         * common/rsp-low.c (bin2hex): Never take strlen of argument.
12053         * remote.c (extended_remote_run, remote_rcmd)
12054         (remote_download_trace_state_variable, remote_save_trace_data)
12055         (remote_set_trace_notes): Update.
12056         * tracepoint.c (encode_source_string, tfile_write_status)
12057         (tfile_write_uploaded_tsv): Update.
12058
12059 2014-02-12  Tom Tromey  <tromey@redhat.com>
12060
12061         * tracepoint.c: Include rsp-low.h.
12062         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12063         * remote.c: Include rsp-low.h.
12064         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12065         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12066         (remote_unescape_input): Move to common/rsp-low.c.
12067         * common/rsp-low.h: New file.
12068         * common/rsp-low.c: New file.
12069         * Makefile.in (SFILES): Add common/rsp-low.c.
12070         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12071         (COMMON_OBS): Add rsp-low.o.
12072         (rsp-low.o): New target.
12073
12074 2014-02-12  Tom Tromey  <tromey@redhat.com>
12075
12076         * utils.h: Include print-utils.h.
12077         (host_address_to_string, plongest, pulongest, phex, phex_nz)
12078         (int_string, core_addr_to_string, core_addr_to_string_nz)
12079         (hex_string, hex_string_custom): Don't declare.
12080         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12081         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12082         (hex_string_custom, int_string, core_addr_to_string)
12083         (core_addr_to_string_nz, host_address_to_string): Move to
12084         common/print-utils.c.
12085         * common/print-utils.h: New file.
12086         * common/print-utils.c: New file
12087         * Makefile.in (SFILES): Add common/print-utils.c.
12088         (HFILES_NO_SRCDIR): Add common/print-utils.h.
12089         (COMMON_OBS): Add print-utils.o.
12090         (print-utils.o): New target.
12091
12092 2014-02-12  Tom Tromey  <tromey@redhat.com>
12093
12094         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12095
12096 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12097
12098         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12099
12100 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12101
12102         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12103         if a PT_IO ptrace request returns sucessfully but indicates that 0
12104         bytes were transferred.
12105
12106 2014-02-12  Pedro Alves  <palves@redhat.com>
12107             Kevin Buettner <kevinb@redhat.com>
12108
12109         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12110         TYPE_INSTANCE_FLAG_CODE_SPACE.
12111
12112 2014-02-12  Pedro Alves  <palves@redhat.com>
12113
12114         * h8300-tdep.c (pseudo_from_raw_register)
12115         (raw_from_pseudo_register): New functions.
12116         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12117         them.
12118
12119 2014-02-12  Pedro Alves  <palves@redhat.com>
12120
12121         * h8300-tdep.c (h8300_register_sim_regno): New function.
12122         (h8300_gdbarch_init): Install h8300_register_sim_regno as
12123         gdbarch_register_sim_regno hook.
12124
12125 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12126
12127         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12128
12129 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12130
12131         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12132
12133 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12134
12135         * obsd-tdep.h (obsd_init_abi): New prototype.
12136         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12137         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12138         (obsd_init_abi): New functions.
12139         * i386obsd-tdep.c: Include "obsd-tdep.h".
12140         (i386obsd_init_abi): Call obsd_init_abi.
12141         * amd64obsd-tdep.c: Include "obsd-tdep.h".
12142         (amd64obsd_init_abi): Call obsd_init_abi.
12143         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12144         obsd-tdep.c to gdb_target_obs.
12145
12146 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
12147
12148         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12149         double float arguments to 16-byte in the argument slots.
12150
12151 2014-02-11  Doug Evans  <xdje42@gmail.com>
12152
12153         * configure.ac: Don't crash if pkg-config is not found and guile
12154         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
12155         in guile checks.
12156         * configure: Regenerate.
12157
12158 2014-02-11  Yao Qi  <yao@codesourcery.com>
12159
12160         * aix-thread.c (aix_thread_xfer_partial): Update comments.
12161         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12162         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12163         * gnu-nat.c (gnu_xfer_memory): Likewise.
12164         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
12165         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12166         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12167         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12168
12169 2014-02-11  Yao Qi  <yao@codesourcery.com>
12170
12171         * target.h (enum target_xfer_error): Rename to ...
12172         (enum target_xfer_status): ... it.  New.  All users updated.
12173         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12174         New.
12175         (TARGET_XFER_STATUS_ERROR_P): New macro.
12176         (target_xfer_error_to_string): Remove declaration.
12177         (target_xfer_status_to_string): Declare.
12178         (target_xfer_partial_ftype): Adjust it.
12179         (struct target_ops) <to_xfer_partial>: Return
12180         target_xfer_status.  Add argument xfered_len.  Update
12181         comments.
12182         * target.c (target_xfer_error_to_string): Rename to ...
12183         (target_xfer_status_to_string): ... it.  New.  All callers
12184         updated.
12185         (target_read_live_memory): Likewise.  Call target_xfer_partial
12186         instead of target_read.
12187         (memory_xfer_live_readonly_partial): Return
12188         target_xfer_status.  Add argument xfered_len.
12189         (raw_memory_xfer_partial): Likewise.
12190         (memory_xfer_partial_1): Likewise.
12191         (memory_xfer_partial): Likewise.
12192         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
12193         properly.  Update debug message.
12194         (default_xfer_partial, current_xfer_partial): Likewise.
12195         (target_write_partial): Likewise.
12196         (target_read_partial): Likewise.  All callers updated.
12197         (read_whatever_is_readable): Likewise.
12198         (target_write_with_progress): Likewise.
12199         (target_read_alloc_1): Likewise.
12200
12201         * aix-thread.c (aix_thread_xfer_partial): Likewise.
12202         * auxv.c (procfs_xfer_auxv): Likewise.
12203         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12204         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12205         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12206         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12207         * corefile.c (read_memory): Adjust.
12208         * corelow.c (core_xfer_partial): Likewise.
12209         * ctf.c (ctf_xfer_partial): Likewise.
12210         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
12211         updated.
12212         (darwin_xfer_partial): Likewise.
12213         * exec.c (section_table_xfer_memory_partial): Likewise.  All
12214         callers updated.
12215         (exec_xfer_partial): Likewise.
12216         * exec.h (section_table_xfer_memory_partial): Update
12217         declaration.
12218         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
12219         negative.
12220         (gnu_xfer_partial): Likewise.
12221         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12222         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12223         (ia64_hpux_xfer_solib_got): Likewise.
12224         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
12225         type of 'partial_len' to ULONGEST.
12226         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12227         * linux-nat.c (linux_xfer_siginfo ): Likewise.
12228         (linux_nat_xfer_partial): Likewise.
12229         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12230         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12231         * monitor.c (monitor_xfer_memory): Likewise.
12232         (monitor_xfer_partial): Likewise.
12233         * procfs.c (procfs_xfer_partial): Likewise.
12234         * record-btrace.c (record_btrace_xfer_partial): Likewise.
12235         * record-full.c (record_full_xfer_partial): Likewise.
12236         (record_full_core_xfer_partial): Likewise.
12237         * remote-sim.c (gdbsim_xfer_memory): Likewise.
12238         (gdbsim_xfer_partial): Likewise.
12239         * remote.c (remote_write_bytes_aux): Likewise.  All callers
12240         updated.
12241         (remote_write_bytes, remote_read_bytes): Likewise.  All
12242         callers updated.
12243         (remote_flash_erase): Likewise.  All callers updated.
12244         (remote_write_qxfer): Likewise.  All callers updated.
12245         (remote_read_qxfer): Likewise.  All callers updated.
12246         (remote_xfer_partial): Likewise.
12247         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12248         (rs6000_xfer_shared_libraries): Likewise.
12249         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12250         (sol_thread_xfer_partial): Likewise.
12251         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12252         (sparc_xfer_partial): Likewise.
12253         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
12254         updated.
12255         (spu_xfer_partial): Likewise.
12256         * spu-multiarch.c (spu_xfer_partial): Likewise.
12257         * tracepoint.c (tfile_xfer_partial): Likewise.
12258         * windows-nat.c (windows_xfer_memory): Likewise.
12259         (windows_xfer_shared_libraries): Likewise.
12260         (windows_xfer_partial): Likewise.
12261         * valprint.c: Replace 'target_xfer_error' with
12262         'target_xfer_status' in comments.
12263
12264 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
12265
12266         Checked in by Joel Brobecker <brobecker@adacore.com>.
12267         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12268
12269 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
12270
12271         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12272         function parameters.
12273
12274 2014-02-10  Will Newton  <will.newton@linaro.org>
12275
12276         * elfread.c (elf_rel_plt_read): Look for a .got section if
12277         looking up .got.plt fails.
12278         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12279         on address passed to elf_gnu_ifunc_record_cache.
12280         (elf_gnu_ifunc_resolve_addr): Likewise.
12281         (elf_gnu_ifunc_resolver_return_stop): Likewise.
12282
12283 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
12284
12285         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12286         (X_RETTURN): New macro.
12287         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12288
12289         * sparc64-tdep.c (sparc64_init_abi): Hook
12290         sparc_in_function_epilogue_p.
12291
12292 2014-02-10  Gary Benson  <gbenson@redhat.com>
12293
12294         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12295         Rename name_matcher to symbol_matcher.
12296
12297 2014-02-10  Gary Benson  <gbenson@redhat.com>
12298
12299         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12300         Use expand_symtabs_file_matcher_ftype and
12301         expand_symtabs_symbol_matcher_ftype.
12302
12303 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12304
12305         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12306         (struct ada_symbol_cache): New.
12307         (ada_free_symbol_cache): Forward declare.
12308         (struct ada_pspace_data): New.
12309         (ada_pspace_data_handle): New static global.
12310         (get_ada_pspace_data, ada_pspace_data_cleanup)
12311         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12312         (cache_space, cache): Delete, now folded inside struct
12313         ada_pspace_data.
12314         (ada_get_symbol_cache): New function.
12315         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12316         implementation.
12317         (_initialize_ada_language): Remove initialization of cache_space.
12318         Move call to observer_attach_inferior_exit up, grouping it
12319         with the other observer registrations inside this function.
12320         Rename command to be more general.  Add call to
12321         register_program_space_data_with_cleanup.
12322
12323 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12324
12325         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12326         ada_new_objfile_observer.
12327         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12328         (_initialize_tasks): Update uses of ada_new_objfile_observer
12329         and ada_tasks_normal_stop_observer.
12330
12331 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12332
12333         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12334         returned by the 'Length attribute to integer.
12335
12336 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12337
12338         * ada-lang.c (_initialize_ada_language): Initialize
12339         cache_space obstack.
12340
12341 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12342
12343         * ada-lang.c (HASH_SIZE): New macro.
12344         (struct cache_entry): New type.
12345         (cache_space, cache): New static globals.
12346         (ada_clear_symbol_cache, find_entry): New functions.
12347         (lookup_cached_symbol, cache_symbol): Implement.
12348         (ada_new_objfile_observer, ada_free_objfile_observer): New.
12349         (_initialize_ada_language): Attach ada_new_objfile_observer
12350         and ada_free_objfile_observer.
12351
12352 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12353
12354         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12355         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12356         struct block * parameter.
12357         (ada_lookup_symbol_list_worker): Constify local variable "block".
12358         Remove cast which is no longer necessary.
12359
12360 2014-02-10  Doug Evans  <xdje42@gmail.com>
12361
12362         Add Guile as an extension language.
12363         * NEWS: Mention Guile scripting.
12364         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12365         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12366         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12367         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12368         (CLIBS): Add GUILE_LIBS.
12369         (install-guile): New rule.
12370         (guile.o): New rule.
12371         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12372         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12373         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12374         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12375         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12376         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12377         (scm-type.o, scm-utils.o, scm-value.o): New rules.
12378         * configure.ac: New option --with-guile.
12379         * configure: Regenerate.
12380         * config.in: Regenerate.
12381         * auto-load.c: Remove #include "python/python.h".  Add #include
12382         "gdb/section-scripts.h".
12383         (source_section_scripts): Handle Guile scripts.
12384         (_initialize_auto_load): Add name of Guile objfile script to
12385         scripts-directory help text.
12386         * breakpoint.c (condition_command): Tweak comment to include Scheme.
12387         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12388         (struct breakpoint): New member scm_bp_object.
12389         * defs.h (enum command_control_type): New value guile_control.
12390         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
12391         "extension.h".
12392         (show_user): Update comment.
12393         (_initialize_cli_cmds): Update help text for "show user".  Update help
12394         text for max-user-call-depth.
12395         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
12396         "extension.h".
12397         (multi_line_command_p): Add guile_control.
12398         (print_command_lines): Handle guile_control.
12399         (execute_control_command, recurse_read_control_structure): Ditto.
12400         (process_next_line): Recognize "guile" commands.
12401         * disasm.c (gdb_disassemble_info): Make non-static.
12402         * disasm.h: #include "dis-asm.h".
12403         (struct gdbarch): Add forward decl.
12404         (gdb_disassemble_info): Declare.
12405         * extension.c: #include "guile/guile.h".
12406         (extension_languages): Add guile.
12407         (get_ext_lang_defn): Handle EXT_LANG_GDB.
12408         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12409         * gdbtypes.c (get_unsigned_type_max): New function.
12410         (get_signed_type_minmax): New function.
12411         * gdbtypes.h (get_unsigned_type_max): Declare.
12412         (get_signed_type_minmax): Declare.
12413         * guile/README: New file.
12414         * guile/guile-internal.h: New file.
12415         * guile/guile.c: New file.
12416         * guile/guile.h: New file.
12417         * guile/scm-arch.c: New file.
12418         * guile/scm-auto-load.c: New file.
12419         * guile/scm-block.c: New file.
12420         * guile/scm-breakpoint.c: New file.
12421         * guile/scm-disasm.c: New file.
12422         * guile/scm-exception.c: New file.
12423         * guile/scm-frame.c: New file.
12424         * guile/scm-gsmob.c: New file.
12425         * guile/scm-iterator.c: New file.
12426         * guile/scm-lazy-string.c: New file.
12427         * guile/scm-math.c: New file.
12428         * guile/scm-objfile.c: New file.
12429         * guile/scm-ports.c: New file.
12430         * guile/scm-pretty-print.c: New file.
12431         * guile/scm-safe-call.c: New file.
12432         * guile/scm-string.c: New file.
12433         * guile/scm-symbol.c: New file.
12434         * guile/scm-symtab.c: New file.
12435         * guile/scm-type.c: New file.
12436         * guile/scm-utils.c: New file.
12437         * guile/scm-value.c: New file.
12438         * guile/lib/gdb.scm: New file.
12439         * guile/lib/gdb/boot.scm: New file.
12440         * guile/lib/gdb/experimental.scm: New file.
12441         * guile/lib/gdb/init.scm: New file.
12442         * guile/lib/gdb/iterator.scm: New file.
12443         * guile/lib/gdb/printing.scm: New file.
12444         * guile/lib/gdb/types.scm: New file.
12445         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12446         (VPATH): Add $(GUILE_SRCDIR).
12447         (GUILE_DIR): New variable.
12448         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12449         (all): Add stamp-guile dependency.
12450         (stamp-guile): New rule.
12451         (clean-guile, install-guile, uninstall-guile): New rules.
12452         (install-only): Add install-guile dependency.
12453         (uninstall): Add uninstall-guile dependency.
12454         (clean): Add clean-guile dependency.
12455
12456 2014-02-09  Doug Evans  <xdje42@gmail.com>
12457
12458         Revert this patch (which I approved, mea culpa).
12459
12460         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12461
12462         * Makefile.in (all-lib): Remove.
12463         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12464
12465 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
12466
12467         Fix Python stack corruption.
12468         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12469         gdb_py_longest.
12470
12471 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12472
12473         * Makefile.in (all-lib): Remove.
12474         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12475
12476 2014-02-07  Doug Evans  <dje@google.com>
12477
12478         * extension-priv.h (extension_language_script_ops): Add comment.
12479         (extension_language_ops): Add comment.
12480         (active_ext_lang_state): Fix typo in comment.
12481
12482 2014-02-07  Pedro Alves  <palves@redhat.com>
12483
12484         PR breakpoints/16292
12485         * infrun.c (handle_signal_stop) <signal arrives while stepping
12486         over a breakpoint>: Switch back to the stepping thread.
12487
12488 2014-02-07  Yao Qi  <yao@codesourcery.com>
12489
12490         * target.c (target_xfer_partial): Return zero if LEN is zero.
12491
12492 2014-02-07  Yao Qi  <yao@codesourcery.com>
12493
12494         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12495         (ld_so_xfer_auxv): Likewise.
12496         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12497         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12498         * corelow.c (core_xfer_partial): Likewise.
12499         * ctf.c (ctf_xfer_partial): Likewise.
12500         * darwin-nat.c (darwin_read_dyld_info): Likewise.
12501         (darwin_xfer_partial): Likewise.
12502         * exec.c (exec_xfer_partial): Likewise.
12503         * gnu-nat.c (gnu_xfer_partial): Likewise.
12504         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12505         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12506         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12507         * linux-nat.c (linux_xfer_siginfo): Likewise.
12508         (linux_proc_xfer_spu): Likewise.
12509         * procfs.c (procfs_xfer_partial): Likewise.
12510         * record-full.c (record_full_xfer_partial): Likewise.
12511         (record_full_core_xfer_partial): Likewise.
12512         * remote-sim.c (gdbsim_xfer_partial): Likewise.
12513         * remote.c (remote_write_qxfer): Likewise.
12514         (remote_write_qxfer, remote_read_qxfer): Likewise.
12515         (remote_xfer_partial): Likewise.
12516         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12517         (rs6000_xfer_shared_libraries): Likewise.
12518         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12519         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12520         (spu_xfer_partial): Likewise.
12521         * target.c (memory_xfer_partial_1): Likewise.
12522         * tracepoint.c (tfile_xfer_partial): Likewise.
12523         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12524         (windows_xfer_partial): Likewise.
12525
12526 2014-02-07  Yao Qi  <yao@codesourcery.com>
12527
12528         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
12529         comments.
12530         (core_xfer_shared_libraries_aix): Likewise.
12531         * gdbarch.c, gdbarch.h: Regenerated.
12532         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12533         ULONGEST.  Change 'len_avail' type to ULONGEST.
12534         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12535         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12536         declaration.
12537         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12538
12539 2014-02-07  Yao Qi  <yao@codesourcery.com>
12540
12541         * corefile.c (memory_error): Get 'exception' from ERR and pass
12542         'exception' to throw_error.
12543
12544 2014-02-06  Doug Evans  <xdje42@gmail.com>
12545
12546         * configure.ac (libpython checking): Remove all but python.o from
12547         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
12548         * configure: Regenerate.
12549
12550         * Makefile.in (SFILES): Add extension.c.
12551         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12552         (COMMON_OBS): Add extension.o.
12553         * extension.h: New file.
12554         * extension-priv.h: New file.
12555         * extension.c: New file.
12556
12557         * python/python-internal.h: #include "extension.h".
12558         (gdbpy_auto_load_enabled): Declare.
12559         (gdbpy_apply_val_pretty_printer): Declare.
12560         (gdbpy_apply_frame_filter): Declare.
12561         (gdbpy_preserve_values): Declare.
12562         (gdbpy_breakpoint_cond_says_stop): Declare.
12563         (gdbpy_breakpoint_has_cond): Declare.
12564         (void source_python_script_for_objfile): Delete.
12565         * python/python.c: #include "extension-priv.h".
12566         Delete inclusion of "observer.h".
12567         (extension_language_python): Moved here and renamed from
12568         script_language_python in py-auto-load.c.
12569         Redefined to be of type extension_language_defn.
12570         (python_extension_script_ops): New global.
12571         (python_extension_ops): New global.
12572         (struct python_env): New member previous_active.
12573         (restore_python_env): Call restore_active_ext_lang.
12574         (ensure_python_env): Call set_active_ext_lang.
12575         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12576         New arg extlang.
12577         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12578         New arg extlang.
12579         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12580         New arg extlang.
12581         (gdbpy_eval_from_control_command): Renamed from
12582         eval_python_from_control_command, made static.  New arg extlang.
12583         (gdbpy_source_script) Renamed from source_python_script, made static.
12584         New arg extlang.
12585         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
12586         result to int.  New arg extlang.
12587         (gdbpy_source_objfile_script): Renamed from
12588         source_python_script_for_objfile, made static.  New arg extlang.
12589         (gdbpy_start_type_printers): Renamed from start_type_printers, made
12590         static.  New args extlang, extlang_printers.  Change result type to
12591         "void".
12592         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12593         static.  New arg extlang.  Rename arg printers to extlang_printers
12594         and change type to ext_lang_type_printers *.
12595         (gdbpy_free_type_printers): Renamed from free_type_printers, made
12596         static.  Replace argument arg with extlang, extlang_printers.
12597         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12598         (!HAVE_PYTHON, source_python_script): Delete.
12599         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12600         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12601         (!HAVE_PYTHON, start_type_printers): Delete.
12602         (!HAVE_PYTHON, apply_type_printers): Delete.
12603         (!HAVE_PYTHON, free_type_printers): Delete.
12604         (_initialize_python): Delete call to observer_attach_before_prompt.
12605         (finalize_python): Set/restore active extension language.
12606         (gdbpy_finish_initialization) Renamed from
12607         finish_python_initialization, made static.  New arg extlang.
12608         (gdbpy_initialized): New function.
12609         * python/python.h: #include "extension.h".  Delete #include
12610         "value.h", "mi/mi-cmds.h".
12611         (extension_language_python): Declare.
12612         (GDBPY_AUTO_FILE_NAME): Delete.
12613         (enum py_bt_status): Moved to extension.h and renamed to
12614         ext_lang_bt_status.
12615         (enum frame_filter_flags): Moved to extension.h.
12616         (enum py_frame_args): Moved to extension.h and renamed to
12617         ext_lang_frame_args.
12618         (finish_python_initialization): Delete.
12619         (eval_python_from_control_command): Delete.
12620         (source_python_script): Delete.
12621         (apply_val_pretty_printer): Delete.
12622         (apply_frame_filter): Delete.
12623         (preserve_python_values): Delete.
12624         (gdbpy_script_language_defn): Delete.
12625         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12626         (start_type_printers, apply_type_printers, free_type_printers): Delete.
12627
12628         * auto-load.c: #include "extension.h".
12629         (GDB_AUTO_FILE_NAME): Delete.
12630         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
12631         (script_language_gdb): Delete, moved to extension.c and renamed to
12632         extension_language_gdb.
12633         (source_gdb_script_for_objfile): Delete.
12634         (auto_load_pspace_info): New member unsupported_script_warning_printed.
12635         (loaded_script): Change type of language member to
12636         struct extension_language_defn *.
12637         (init_loaded_scripts_info): Initialize
12638         unsupported_script_warning_printed.
12639         (maybe_add_script): Make static.  Change type of language arg to
12640         struct extension_language_defn *.
12641         (clear_section_scripts): Reset unsupported_script_warning_printed.
12642         (auto_load_objfile_script_1): Rewrite to use extension language API.
12643         (auto_load_objfile_script): Make public.  Remove support-compiled-in
12644         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12645         (source_section_scripts): Rewrite to use extension language API.
12646         (load_auto_scripts_for_objfile): Rewrite to use
12647         auto_load_scripts_for_objfile.
12648         (collect_matching_scripts_data): Change type of language member to
12649         struct extension_language_defn *.
12650         (auto_load_info_scripts): Change type of language arg to
12651         struct extension_language_defn *.
12652         (unsupported_script_warning_print): New function.
12653         (script_not_found_warning_print): Make static.
12654         (_initialize_auto_load): Rewrite construction of scripts-directory
12655         help.
12656         * auto-load.h (struct objfile): Add forward decl.
12657         (struct script_language): Delete.
12658         (struct auto_load_pspace_info): Add forward decl.
12659         (struct extension_language_defn): Add forward decl.
12660         (maybe_add_script): Delete.
12661         (auto_load_objfile_script): Declare.
12662         (script_not_found_warning_print): Delete.
12663         (auto_load_info_scripts): Update prototype.
12664         (auto_load_gdb_scripts_enabled): Declare.
12665         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12666         auto_load_python_scripts_enabled and made public.
12667         (script_language_python): Delete, moved to python.c.
12668         (gdbpy_script_language_defn): Delete.
12669         (info_auto_load_python_scripts): Update to use
12670         extension_language_python.
12671
12672         * breakpoint.c (condition_command): Replace call to
12673         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12674         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12675         with call to breakpoint_ext_lang_cond_says_stop.
12676         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12677         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
12678         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12679         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12680         New arg slang.
12681         (local_setattro): Print name of extension language with existing
12682         stop condition.
12683
12684         * valprint.c (val_print, value_print): Update to call
12685         apply_ext_lang_val_pretty_printer.
12686         * cp-valprint.c (cp_print_value): Update call to
12687         apply_ext_lang_val_pretty_printer.
12688         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12689         (gdbpy_apply_val_pretty_printer): Renamed from
12690         apply_val_pretty_printer.  New arg extlang.
12691         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12692
12693         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12694         extension language API.
12695         * cli/cli-script.c (execute_control_command): Update to call
12696         eval_ext_lang_from_control_command.
12697
12698         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12699         enum ext_lang_bt_status values.  Update call to
12700         apply_ext_lang_frame_filter.
12701         (mi_cmd_stack_list_locals): Ditto.
12702         (mi_cmd_stack_list_args): Ditto.
12703         (mi_cmd_stack_list_variables): Ditto.
12704         * mi/mi-main.c: Delete #include "python/python-internal.h".
12705         Add #include "extension.h".
12706         (mi_cmd_list_features): Replace reference to python internal variable
12707         gdb_python_initialized with call to ext_lang_initialized_p.
12708
12709         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12710         Update to use enum ext_lang_frame_args.  Update to call
12711         apply_ext_lang_frame_filter.
12712         * python/py-framefilter.c (extract_sym): Update to use enum
12713         ext_lang_bt_status.
12714         (extract_value, py_print_type, py_print_value): Ditto.
12715         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12716         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12717         (py_print_frame): Ditto.
12718         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12719         New arg extlang.  Update to use enum ext_lang_bt_status.
12720
12721         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12722         finish_python_initialization.  Replace with call to
12723         finish_ext_lang_initialization.
12724
12725         * typeprint.c (do_free_global_table): Update to call
12726         free_ext_lang_type_printers.
12727         (create_global_typedef_table): Update to call
12728         start_ext_lang_type_printers.
12729         (find_global_typedef): Update to call apply_ext_lang_type_printers.
12730         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12731         (type_print_options): Change type of global_printers from "void *"
12732         to "struct ext_lang_type_printers *".
12733
12734         * value.c (preserve_values): Update to call preserve_ext_lang_values.
12735         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12736         (gdbpy_preserve_values): Renamed from preserve_python_values.
12737         New arg extlang.
12738         (!HAVE_PYTHON, preserve_python_values): Delete.
12739
12740         * utils.c (quit_flag): Delete, moved to extension.c.
12741         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12742         extension.c.
12743
12744         * eval.c: Delete #include "python/python.h".
12745         * main.c: Delete #include "python/python.h".
12746
12747         * defs.h: Update comment.
12748
12749 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
12750
12751         GDB 7.7 released.
12752
12753 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
12754
12755         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12756         defined.
12757
12758 2014-02-05  Yao Qi  <yao@codesourcery.com>
12759
12760         * remote.c (remote_pass_signals): Remove local 'buf' and use
12761         rs->buf.
12762         (remote_program_signals): Likewise.
12763
12764 2014-02-05  Yao Qi  <yao@codesourcery.com>
12765
12766         * ctf.c: Include "inferior.h" and "gdbthread.h".
12767         (CTF_PID): A new macro.
12768         (ctf_open): Call inferior_appeared and add_thread_silent.
12769         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12770         (ctf_thread_alive): New function.
12771         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12772
12773 2014-02-05  Yao Qi  <yao@codesourcery.com>
12774
12775         Revert this patch:
12776
12777         2013-05-24  Yao Qi  <yao@codesourcery.com>
12778
12779         * tracepoint.c (TFILE_PID): Remove.
12780         (tfile_open): Don't add thread and inferior.
12781         (tfile_close): Don't set 'inferior_ptid'.  Don't call
12782         exit_inferior_silent.
12783         (tfile_thread_alive): Remove.
12784         (init_tfile_ops): Don't set field 'to_thread_alive' of
12785         tfile_ops.
12786
12787 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
12788
12789         * remote.c (remote_start_remote): Call remote_check_symbols even
12790         if only symbol-file (not file) has been given.
12791
12792 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12793
12794         * gdbarch.sh (skip_entrypoint): New callback.
12795         * gdbarch.c, gdbarch.h: Regenerate.
12796         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12797         * infrun.c (fill_in_stop_func): Likewise.
12798         * ppc-linux-tdep.c: Include "elf/ppc64.h".
12799         (ppc_elfv2_elf_make_msymbol_special): New function.
12800         (ppc_elfv2_skip_entrypoint): Likewise.
12801         (ppc_linux_init_abi): Install them for ELFv2.
12802
12803 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12804
12805         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12806         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12807         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12808         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
12809         structures returned in GPRs.
12810
12811 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12812
12813         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12814         offset to the stack parameter list for the ELFv2 ABI.
12815
12816 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12817
12818         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12819         set_gdbarch_convert_from_func_ptr_addr and
12820         set_gdbarch_elf_make_msymbol_special for ELFv1.
12821         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12822         function descriptors on ELFv1.
12823         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
12824         set up r12 at function entry.
12825
12826 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12827
12828         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12829         (struct gdbarch_tdep): New member elf_abi.
12830
12831         * rs6000-tdep.c: Include "elf/ppc64.h".
12832         (rs6000_gdbarch_init): Detect ELF ABI version.
12833
12834 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12835
12836         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12837         within a register pair holding a DFP 128-bit value on little-endian.
12838         (ppc64_sysv_abi_return_value_base): Likewise.
12839         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12840         (dfp_pseudo_register_write): Likewise.
12841
12842 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12843
12844         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12845         offset on little-endian when passing _Decimal32.
12846         (ppc64_sysv_abi_return_value_base): Likewise for return values.
12847
12848 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12849
12850         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12851         of the overlapped FP register within the VSX register on little-
12852         endian platforms.
12853         (efpr_pseudo_register_write): Likewise.
12854
12855 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12856
12857         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12858         offset on little-endian when passing small structures.
12859
12860 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12861
12862         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12863         (struct ppc64_sysv_argpos): New data structure.
12864         (ppc64_sysv_abi_push_float): Remove.
12865         (ppc64_sysv_abi_push_val): New function.
12866         (ppc64_sysv_abi_push_integer): Likewise.
12867         (ppc64_sysv_abi_push_freg): Likewise.
12868         (ppc64_sysv_abi_push_vreg): Likewise.
12869         (ppc64_sysv_abi_push_param): Likewise.
12870         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12871         (ppc64_sysv_abi_return_value_base): New function.
12872         (ppc64_sysv_abi_return_value): Refactor to use it.
12873
12874 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12875
12876         * NEWS: Document new target powerpc64le-*-linux*.
12877
12878 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
12879
12880         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12881         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12882         core dumps.
12883         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12884         register set used in ELF core dumps.  Add floating-point register set.
12885
12886 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
12887
12888         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12889         dwarf2_to_gdb[] table using symbolic constants.  Adjust
12890         penultimate entry from number representing the PC register
12891         to symbolic constant representing the MDR register.  Add
12892         constant for the PC register to the end of the table.
12893
12894 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12895
12896         * bsd-kvm.c: Include <sys/param.h>
12897
12898 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12899
12900         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12901
12902 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
12903
12904         * ada-lang.h (clear_ada_sym_cache): Delete.
12905
12906 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
12907
12908         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12909
12910 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
12911
12912         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12913           the sigreturn register save area only if the syscall is
12914           sigreturn.
12915
12916 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
12917
12918         * valops.c (value_slice): Minor reformatting.
12919
12920 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
12921
12922         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12923
12924 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
12925
12926         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12927         New static globals.
12928         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12929         (ada_ignore_descriptive_types_p): New static global.
12930         (find_parallel_type_by_descriptive_type): Return immediately
12931         if ada_ignore_descriptive_types_p is set.
12932         (_initialize_ada_language): Register new commands "maintenance
12933         set ada", "maintenance show ada", "maintenance set ada
12934         ignore-descriptive-types" and "maintenance show ada
12935         ignore-descriptive-types".
12936         * NEWS: Add entry for new "maint ada set/show
12937         ignore-descriptive-types" commands.
12938
12939 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
12940
12941         * record-btrace.c (record_btrace_close): Call btrace_teardown
12942         for all threads.
12943
12944 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12945
12946         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12947         "ui-out.h".
12948
12949 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12950
12951         * ada-typeprint (type_is_full_subrange_of_target_type):
12952         New function.
12953         (print_range): Add parameter bounds_prefered_p.  If not set,
12954         try printing range types using the name of their base type.
12955         (print_range_type): Add parameter bounds_prefered_p.
12956         Use it in call to print_range.
12957         (print_array_type, ada_print_type): Update calls to print_range
12958         and print_range_type.
12959
12960 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12961
12962         * ada-typeprint.c (print_array_type, print_choices, print_range)
12963         (print_range_bound, print_dynamic_range_bound, print_range_type):
12964         Remove declaration.
12965
12966 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12967
12968         * ada-typeprint.c (print_range): Add missing empty line
12969         after local declaration.
12970
12971 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12972
12973         * ada-valprint.c (print_optional_low_bound): Get index_type's
12974         target type for as long as it is a TYPE_CODE_RANGE.
12975
12976 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12977
12978         * procfs.c (procfs_make_note_section): Remove assertion and
12979         associated comment.
12980
12981 2014-01-24  Yao Qi  <yao@codesourcery.com>
12982
12983         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12984         * corelow.c (get_core_siginfo): Likewise.
12985
12986 2014-01-24  Yao Qi  <yao@codesourcery.com>
12987
12988         * remote.c (remote_write_bytes_aux): Change type of 'len' to
12989         ULONGEST.  Don't check 'len' is negative.
12990         (remote_write_bytes):  Change type of 'len' to ULONGEST.
12991
12992 2014-01-23  Tom Tromey  <tromey@redhat.com>
12993
12994         PR python/16485:
12995         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12996         Handle exception from frame.block.
12997         (FrameVars.fetch_frame_locals): Likewise.
12998
12999 2014-01-23  Tom Tromey  <tromey@redhat.com>
13000
13001         PR python/16487:
13002         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13003         on a NULL pointer.  Move "goto error" to correct place.
13004
13005 2014-01-23  Tom Tromey  <tromey@redhat.com>
13006
13007         PR python/16491:
13008         * python/py-framefilter.c (apply_frame_filter): Call
13009         ensure_python_env after computing gdbarch.
13010
13011 2014-01-23  Yao Qi  <yao@codesourcery.com>
13012
13013         * target.c (raw_memory_xfer_partial): Change argument type
13014         from void * to gdb_byte *.
13015         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13016
13017 2014-01-22  Doug Evans  <dje@google.com>
13018
13019         New gdbserver option --debug-format=timestamp.
13020         * NEWS: Mention it.
13021
13022 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
13023
13024         * syscalls/s390x-linux.xml: New file.
13025         * syscalls/s390-linux.xml: New file.
13026         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13027         (XML_SYSCALL_FILENAME_S390X): Likewise.
13028         (op_svc): New enum value for SVC opcode.
13029         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13030         (s390_linux_get_syscall_number): New function.
13031         (s390_gdbarch_init): Register '*get_syscall_number' and the
13032         syscall xml file name.
13033         * data-directory/Makefile.in (SYSCALLS_FILES): Add
13034         "s390-linux.xml" and "s390x-linux.xml".
13035         * NEWS: Announce new feature.
13036
13037 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
13038
13039         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13040
13041 2014-01-22  Pedro Alves  <palves@redhat.com>
13042
13043         * xtensa-config.c: Include defs.h.
13044
13045 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13046
13047         * common/common-utils.h: Add "ARI:" comment beside __func__
13048         reference.
13049
13050 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13051
13052         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13053         documentation a bit.
13054
13055 2014-01-21  Roland McGrath  <mcgrathr@google.com>
13056
13057         * configure.ac: Call AM_PROG_INSTALL_STRIP.
13058         * configure: Regenerate.
13059         * aclocal.m4: Regenerate.
13060         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13061         New substituted variables.
13062         (install-strip): New target.
13063         (INSTALL_SCRIPT): New substituted variable.
13064         (FLAGS_TO_PASS): Add it.
13065         (install-only): Use $(INSTALL_SCRIPT) rather than
13066         $(INSTALL_PROGRAM) for gcore.
13067
13068 2014-01-20  Tom Tromey  <tromey@redhat.com>
13069
13070         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13071         together.
13072
13073 2014-01-20  Tom Tromey  <tromey@redhat.com>
13074
13075         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13076         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13077         (deprecated_cmd_warning, complete_on_cmdlist): Update.
13078         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13079         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13080         (struct cmd_list_element) <flags>: Remove.
13081         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13082         doc_allocated>: New fields.
13083         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13084         bitfields.
13085         * maint.c (maintenance_do_deprecate): Update.
13086         * top.c (execute_command): Update.
13087
13088 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
13089
13090         * xtensa-linux-nat.c: Include asm/ptrace.h.
13091
13092 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13093
13094         * Makefile.in (SFILES): Add d-support.c.
13095         (COMMON_OBS): Add d-support.o.
13096         * d-lang.h (d_parse_symbol): Add comment, now defined in
13097         d-support.c.
13098         * d-lang.c (parse_call_convention)
13099         (parse_attributes, parse_function_types)
13100         (parse_function_args, parse_type, parse_identifier)
13101         (call_convention_p, d_parse_symbol): Move functions to ...
13102         * d-support.c: ... New file.
13103
13104 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13105
13106         * d-lang.h (d_parse_symbol): Add declaration.
13107         * d-lang.c (extract_identifiers)
13108         (extract_type_info): Remove functions.
13109         (parse_call_convention, parse_attributes)
13110         (parse_function_types, parse_function_args)
13111         (parse_type, parse_identifier, call_convention_p)
13112         (d_parse_symbol): New functions.
13113         (d_demangle): Use d_parse_symbol to demangle D symbols.
13114
13115 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13116
13117         * d-lang.h (struct builtin_d_type): New data type.
13118         (builtin_d_type): Add declaration.
13119         * d-lang.c (d_language_arch_info, build_d_types)
13120         (builtin_d_type): New functions.
13121         (enum d_primitive_types): New data type.
13122         (d_language_defn): Change c_language_arch_info to
13123         d_language_arch_info.
13124         (d_type_data): New static variable.
13125         (_initialize_d_language): Initialize d_type_data.
13126
13127 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13128
13129         * d-lang.h (d_main_name): Add declaration.
13130         * d-lang.c (d_main_name): New function.
13131         * symtab.c (find_main_name): Add call to d_main_name.
13132
13133 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13134
13135         * d-lang.c (d_language_defn): Change macro_expansion_c to
13136         macro_expansion_no.
13137
13138 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13139
13140         * MAINTAINERS: Add myself as a write-after-approval maintainer.
13141
13142 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
13143
13144         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13145         gdb_exception" declaration.
13146         * remote.c (getpkt_or_notif_sane): Likewise.
13147
13148 2014-01-17  Doug Evans  <dje@google.com>
13149
13150         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13151         function, contents of dirnames_to_char_ptr_vec_append moved here.
13152         (delim_string_to_char_ptr_vec): New function.
13153         (dirnames_to_char_ptr_vec_append): Rewrite.
13154         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13155
13156 2014-01-17  Doug Evans  <dje@google.com>
13157
13158         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13159         and moved here ...
13160         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13161         #include "common-utils.h".
13162         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13163         * common/vec.h (VEC_ASSERT_PASS): Update.
13164         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13165         (MACH_CHECK_ERROR): Update.
13166
13167 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
13168
13169         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13170         comments.
13171         * gdbarch.h: Regenerate.
13172
13173 2014-01-16  Tom Tromey  <tromey@redhat.com>
13174
13175         * value.c (struct value) <regnum>: Move earlier.
13176
13177 2014-01-16  Tom Tromey  <tromey@redhat.com>
13178
13179         * remote.c (extended_remote_create_inferior): Rename from
13180         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
13181         old implementation.
13182
13183 2014-01-16  Pedro Alves  <palves@redhat.com>
13184
13185         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13186         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13187         the backchain.
13188
13189 2014-01-16  Doug Evans  <dje@google.com>
13190
13191         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13192
13193 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13194
13195         * btrace.h (btrace_thread_flag): New.
13196         (struct btrace_thread_info) <flags>: New.
13197         * record-btrace.c (record_btrace_resume_thread)
13198         (record_btrace_find_thread_to_move, btrace_step_no_history)
13199         (btrace_step_stopped, record_btrace_start_replaying)
13200         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13201         (record_btrace_find_resume_thread): New.
13202         (record_btrace_resume, record_btrace_wait): Extend.
13203         (record_btrace_can_execute_reverse): New.
13204         (record_btrace_open): Fail in non-stop mode.
13205         (record_btrace_set_replay): Split into this, ...
13206         (record_btrace_stop_replaying): ... this, ...
13207         (record_btrace_clear_histories): ... and this.
13208         (init_record_btrace_ops): Init to_can_execute_reverse.
13209         * NEWS: Announce it.
13210
13211 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13212
13213         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13214         (forward_target_decr_pc_after_break)
13215         (target_decr_pc_after_break): New.
13216         * target.c (forward_target_decr_pc_after_break)
13217         (target_decr_pc_after_break): New.
13218         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13219         instead of gdbarch_decr_pc_after_break.
13220         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13221         instead of gdbarch_decr_pc_after_break.
13222         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13223         instead of gdbarch_decr_pc_after_break.
13224         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13225         instead of gdbarch_decr_pc_after_break.
13226         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13227         instead of gdbarch_decr_pc_after_break.
13228         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13229         instead of gdbarch_decr_pc_after_break.
13230
13231 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13232
13233         * btrace.c: Include regcache.h.
13234         (btrace_add_pc): New.
13235         (btrace_enable): Call btrace_add_pc.
13236         (btrace_is_empty): New.
13237         * btrace.h (btrace_is_empty): New.
13238         * record-btrace.c (require_btrace, record_btrace_info): Call
13239         btrace_is_empty.
13240
13241 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13242
13243         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13244         Support delta reads.
13245         (linux_disable_btrace): Change return type.
13246         * common/linux-btrace.h (linux_read_btrace): Change parameters
13247         and return type to allow error reporting.  Update users.
13248         (linux_disable_btrace): Change return type.  Update users.
13249         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13250         New.
13251         (btrace_error): New.
13252         (btrace_block) <begin>: Comment on BEGIN == 0.
13253         * btrace.c (btrace_compute_ftrace): Start from the end of
13254         the current trace.
13255         (btrace_stitch_trace, btrace_clear_history): New.
13256         (btrace_fetch): Read delta trace, return if replaying.
13257         (btrace_clear): Move clear history code to btrace_clear_history.
13258         (parse_xml_btrace): Throw an error if parsing failed.
13259         * target.h (struct target_ops) <to_read_btrace>: Change parameters
13260         and return type to allow error reporting.
13261         (target_read_btrace): Change parameters and return type to allow
13262         error reporting.
13263         * target.c (target_read_btrace): Update.
13264         * remote.c (remote_read_btrace): Support delta reads.  Pass
13265         errors on.
13266         * NEWS: Announce it.
13267
13268 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13269
13270         * record.h (record_btrace_frame_unwind)
13271         (record_btrace_tailcall_frame_unwind): New declarations.
13272         * dwarf2-frame: Include record.h
13273         (dwarf2_frame_cfa): Throw an error for btrace frames.
13274         * record-btrace.c: Include hashtab.h.
13275         (btrace_get_bfun_name): New.
13276         (btrace_call_history): Call btrace_get_bfun_name.
13277         (struct btrace_frame_cache): New.
13278         (bfcache): New.
13279         (bfcache_hash, bfcache_eq, bfcache_new): New.
13280         (btrace_get_frame_function): New.
13281         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13282         (record_btrace_frame_this_id): Compute own id.
13283         (record_btrace_frame_prev_register): Provide PC, throw_error
13284         for all other registers.
13285         (record_btrace_frame_sniffer): Detect btrace frames.
13286         (record_btrace_tailcall_frame_sniffer): New.
13287         (record_btrace_frame_dealloc_cache): New.
13288         (record_btrace_frame_unwind): Add new functions.
13289         (record_btrace_tailcall_frame_unwind): New.
13290         (_initialize_record_btrace): Allocate cache.
13291         * btrace.c (btrace_clear): Call reinit_frame_cache.
13292         * NEWS: Announce it.
13293
13294 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13295
13296         * record-btrace.c (record_btrace_set_replay)
13297         (record_btrace_goto_begin, record_btrace_goto_end)
13298         (record_btrace_goto): New.
13299         (init_record_btrace_ops): Initialize them.
13300         * NEWS: Announce it.
13301
13302 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13303
13304         * record-btrace.c (record_btrace_find_new_threads)
13305         (record_btrace_thread_alive): New.
13306         (init_record_btrace_ops): Initialize to_find_new_threads and
13307         to_thread_alive.
13308
13309 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13310
13311         * record-btrace.c (record_btrace_resume): New.
13312         (record_btrace_wait): New.
13313         (init_record_btrace_ops): Initialize to_wait and to_resume.
13314
13315 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13316
13317         * record-btrace.c (record_btrace_xfer_partial)
13318         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13319         (record_btrace_allow_memory_access): New.
13320         (init_record_btrace_ops): Initialize new methods.
13321         * target.c (raw_memory_xfer_partial): Bail out if target reports
13322         that this memory is not available.
13323
13324 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13325
13326         * target.h (target_ops) <to_insert_breakpoint>
13327         <to_remove_breakpoint>: Add target_ops parameter.
13328         (forward_target_insert_breakpoint): New.
13329         (forward_target_remove_breakpoint): New.
13330         (memory_remove_breakpoint, memory_insert_breakpoint):
13331         Add target_ops parameter.
13332         * target.c (target_insert_breakpoint): Split into this and ...
13333         (forward_target_insert_breakpoint): ... this.
13334         (target_remove_breakpoint): Split into this and ...
13335         (forward_target_remove_breakpoint): ... this.
13336         (debug_to_insert_breakpoint): Add target_ops parameter.
13337         Call forward_target_insert_breakpoint.
13338         (debug_to_remove_breakpoint): Add target_ops parameter.
13339         Call forward_target_remove_breakpoint.
13340         (update_current_target): Do not inherit or default to_insert_breakpoint
13341         and to_remove_breakpoint.
13342         * corelow.c (ignore): Add target_ops parameter.
13343         * exec.c (ignore): Add target_ops parameter.
13344         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13345         Add target_ops parameter.
13346         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13347         Add target_ops parameter.
13348         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13349         Add target_ops parameter.
13350         * record-full.c (record_full_beneath_to_insert_breakpoint)
13351         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13352         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13353         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13354         (record_full_core_remove_breakpoint): Add target_ops parameter.
13355         Update users.
13356         (record_full_beneath_to_insert_breakpoint_ops)
13357         (record_full_beneath_to_remove_breakpoint_ops)
13358         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13359         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13360         tmp_to_remove_breakpoint_ops,
13361         record_full_beneath_to_insert_breakpoint_ops, and
13362         record_full_beneath_to_remove_breakpoint_ops.
13363         * remote-m32r-sdi.c (m32r_insert_breakpoint)
13364         (m32r_remove_breakpoint): Add target_ops parameter.
13365         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13366         Add target_ops parameter.
13367         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13368         Add target_ops parameter.
13369
13370 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13371             Markus Metzger  <markus.t.metzger@intel.com>
13372
13373         * record-btrace.c: Include frame-unwind.h.
13374         (record_btrace_frame_unwind_stop_reason)
13375         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13376         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13377         New.
13378         (init_record_btrace_ops): Install it.
13379
13380 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13381
13382         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13383         get_prev_frame_1.
13384
13385 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13386
13387         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13388         earlier.
13389
13390 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13391
13392         * frame-unwind.c: Include target.h.
13393         (frame_unwind_try_unwinder): New function with code from ...
13394         (frame_unwind_find_by_frame): ... here.  New variable
13395         unwinder_from_target, call also target_get_unwinder)
13396         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13397         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13398         * target.h (struct target_ops): New fields to_get_unwinder and
13399         to_get_tailcall_unwinder.
13400         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13401
13402 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13403
13404         * record-btrace.c (record_btrace_fetch_registers)
13405         (record_btrace_store_registers)
13406         (record_btrace_to_prepare_to_store): New.
13407         (init_record_btrace_ops): Add the above.
13408
13409 2014-01-16  Tom Tromey  <tromey@redhat.com>
13410
13411         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13412         * target.h (struct target_ops) <to_prepare_to_store>: Add
13413         argument.
13414         (target_prepare_to_store): Add argument.
13415         * target.c (debug_to_prepare_to_store): Add argument.
13416         (update_current_target): Update.
13417         * remote.c (remote_prepare_to_store): Add 'self' argument.
13418         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13419         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13420         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13421         * record-full.c (record_full_core_prepare_to_store): Add 'self'
13422         argument.
13423         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13424         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13425         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13426         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13427         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13428
13429 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13430
13431         * btrace.h (replay) <replay>: New.
13432         (btrace_is_replaying): New.
13433         * btrace.c (btrace_clear): Free replay iterator.
13434         (btrace_is_replaying): New.
13435         * record-btrace.c (record_btrace_is_replaying): New.
13436         (record_btrace_info): Print insn number if replaying.
13437         (record_btrace_insn_history): Start at replay position.
13438         (record_btrace_call_history): Start at replay position.
13439         (init_record_btrace_ops): Init to_record_is_replaying.
13440
13441 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13442
13443         * record-btrace.c (record_btrace_insn_history_range): Include
13444         end.
13445         (record_btrace_insn_history_from): Adjust range.
13446         (record_btrace_call_history_range): Include
13447         end.
13448         (record_btrace_call_history_from): Adjust range.
13449         * NEWS: Announce changes.
13450
13451 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13452
13453         * record.h (enum record_print_flag)
13454         <record_print_indent_calls>: New.
13455         * record.c (get_call_history_modifiers): Recognize /c modifier.
13456         (_initialize_record): Document /c modifier.
13457         * record-btrace.c (btrace_call_history): Add btinfo parameter.
13458         Reorder fields.  Optionally indent the function name.  Update
13459         all users.
13460         * NEWS: Announce changes.
13461
13462 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13463
13464         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13465
13466 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13467
13468         * btrace.c (ftrace_new_function): Start counting at one.
13469         * record-btrace.c (record_btrace_info): Adjust number of calls
13470         and insns.
13471         * NEWS: Announce it.
13472
13473 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13474
13475         * record-btrace.c (btrace_call_history_insn_range): Print
13476         insn range as [begin, end].
13477
13478 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13479
13480         * btrace.h (struct btrace_func_link): New.
13481         (enum btrace_function_flag): New.
13482         (struct btrace_inst): Rename to ...
13483         (struct btrace_insn): ...this. Update all users.
13484         (struct btrace_func) <ibegin, iend>: Remove.
13485         (struct btrace_func_link): New.
13486         (struct btrace_func): Rename to ...
13487         (struct btrace_function): ...this. Update all users.
13488         (struct btrace_function) <segment, flow, up, insn, insn_offset)
13489         (number, level, flags>: New.
13490         (struct btrace_insn_iterator): Rename to ...
13491         (struct btrace_insn_history): ...this.
13492         Update all users.
13493         (struct btrace_insn_iterator, btrace_call_iterator): New.
13494         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13495         (struct btrace_target_info) <begin, end, level>
13496         <insn_history, call_history>: New.
13497         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13498         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13499         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13500         (btrace_call_number, btrace_call_begin, btrace_call_end)
13501         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13502         (btrace_find_function_by_number, btrace_set_insn_history)
13503         (btrace_set_call_history): New.
13504         * btrace.c (btrace_init_insn_iterator)
13505         (btrace_init_func_iterator, compute_itrace): Remove.
13506         (ftrace_print_function_name, ftrace_print_filename)
13507         (ftrace_skip_file): Change
13508         parameter to const.
13509         (ftrace_init_func): Remove.
13510         (ftrace_debug): Use new btrace_function fields.
13511         (ftrace_function_switched): Also consider gaining and
13512         losing symbol information).
13513         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13514         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13515         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13516         New.
13517         (ftrace_new_function): Move. Remove debug print.
13518         (ftrace_update_lines, ftrace_update_insns): New.
13519         (ftrace_update_function): Check for call, ret, and jump.
13520         (compute_ftrace): Renamed to ...
13521         (btrace_compute_ftrace): ...this. Rewritten to compute call
13522         stack.
13523         (btrace_fetch, btrace_clear): Updated.
13524         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13525         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13526         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13527         (btrace_call_number, btrace_call_begin, btrace_call_end)
13528         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13529         (btrace_find_function_by_number, btrace_set_insn_history)
13530         (btrace_set_call_history): New.
13531         * record-btrace.c (require_btrace): Use new btrace thread
13532         info fields.
13533         (record_btrace_info, btrace_insn_history)
13534         (record_btrace_insn_history, record_btrace_insn_history_range):
13535         Use new btrace thread info fields and new iterator.
13536         (btrace_func_history_src_line): Rename to ...
13537         (btrace_call_history_src_line): ...this. Use new btrace
13538         thread info fields.
13539         (btrace_func_history): Rename to ...
13540         (btrace_call_history): ...this. Use new btrace thread info
13541         fields and new iterator.
13542         (record_btrace_call_history, record_btrace_call_history_range):
13543         Use new btrace thread info fields and new iterator.
13544
13545 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13546
13547         * frame.h (frame_id_build_unavailable_stack_special): New.
13548         * frame.c (frame_id_build_unavailable_stack_special): New.
13549
13550 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13551
13552         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13553         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13554         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13555         to gdbarch.
13556         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13557         (i386_insn_is_jump, i386_jmp_p): New.
13558         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13559         insn_is_jump to gdbarch.
13560         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13561         * gdbarch.h: Regenerated.
13562         * gdbarch.c: Regenerated.
13563         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13564         (default_insn_is_jump): New.
13565         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13566         (default_insn_is_jump): New.
13567
13568 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13569
13570         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13571         Change to ...
13572         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
13573         (btrace_read_type) <btrace_read_new>: Change to ...
13574         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
13575
13576 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13577
13578         * common/linux-btrace.c (linux_read_btrace): Free trace from
13579         previous iteration.
13580
13581 2014-01-15  Doug Evans  <dje@google.com>
13582
13583         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13584         uint32_t.
13585
13586 2014-01-15  Tom Tromey  <tromey@redhat.com>
13587
13588         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13589         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13590         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13591         (set_objfile_main_name): New function.
13592         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13593         language_of_main>: New fields.
13594         (set_objfile_main_name): Declare.
13595         * symtab.c (find_main_name): Loop over objfiles to find the main
13596         name and language.
13597         (set_main_name): Now static.
13598         (get_main_info): Add comment.
13599         * symtab.h (set_main_name): Don't declare.
13600
13601 2014-01-15  Tom Tromey  <tromey@redhat.com>
13602
13603         * symtab.c (main_progspace_key): New global.
13604         (struct main_info): New.
13605         (name_of_main, language_of_main): Remove.
13606         (get_main_info, main_info_cleanup): New function.
13607         (set_main_name, main_name, main_language): Use get_main_info.
13608         (_initialize_symtab): Initialize main_progspace_key.
13609
13610 2014-01-15  Tom Tromey  <tromey@redhat.com>
13611
13612         * dbxread.c (process_one_symbol): Update.
13613         * dwarf2read.c (read_partial_die): Update.
13614         * symfile.c (set_initial_language): Call main_language.
13615         * symtab.c (language_of_main): Now static.
13616         (set_main_name): Add 'lang' parameter.
13617         (find_main_name): Update.
13618         (main_language): New function.
13619         (symtab_observer_executable_changed): Update.
13620         * symtab.h (set_main_name): Update.
13621         (language_of_main): Remove.
13622         (main_language): Declare.
13623
13624 2014-01-15  Tom Tromey  <tromey@redhat.com>
13625
13626         * symfile.c (init_entry_point_info): Use new "initialized" field.
13627         Update.
13628         * objfiles.h (struct entry_point) <initialized>: New field.
13629         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13630         (struct objfile) <ei>: ...here.  Remove.
13631         * objfiles.c (entry_point_address_query): Update.
13632
13633 2014-01-15  Tom Tromey  <tromey@redhat.com>
13634
13635         * objfiles.c (entry_point_address_query): Relocate entry point
13636         address.
13637         (objfile_relocate1): Do not relocate entry point address.
13638         * objfiles.h (struct entry_info) <entry_point>: Update comment.
13639         <the_bfd_section_index>: New field.
13640         * symfile.c (init_entry_point_info): Find the entry point's
13641         section.
13642
13643 2014-01-15  Tom Tromey  <tromey@redhat.com>
13644
13645         * solib-frv.c (enable_break): Use entry_point_address_query.
13646
13647 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13648
13649         * NEWS: Add note on improved process record-replay on
13650         arm*-linux* targets.
13651
13652 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13653
13654         * arm-tdep.c (enum arm_record_result): New enum.
13655         (arm_record_unsupported_insn): New function.
13656         (arm_record_coproc_data_proc): Removed.
13657         (thumb2_record_ld_st_multiple): New function.
13658         (thumb2_record_ld_st_dual_ex_tbb): New function.
13659         (thumb2_record_data_proc_sreg_mimm): New function.
13660         (thumb2_record_ps_dest_generic): New function.
13661         (thumb2_record_branch_misc_cntrl): New function.
13662         (thumb2_record_str_single_data): New function.
13663         (thumb2_record_ld_mem_hints): New function.
13664         (thumb2_record_ld_word): New function.
13665         (thumb2_record_lmul_lmla_div): New function.
13666         (thumb2_record_decode_insn_handler): New function.
13667         (decode_insn): Add thumb32 instruction handlers.
13668
13669 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13670
13671         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13672         (struct arm_linux_record_tdep): Declare.
13673         (arm_canonicalize_syscall): New function.
13674         (arm_all_but_pc_registers_record): New function.
13675         (arm_linux_syscall_record): New function.
13676         (arm_linux_init_abi): Add syscall recording constructs.
13677         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13678         decoding.  (arm_record_coproc_data_proc): Update arm syscall
13679         decoding.
13680         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13681         <arm_syscall_record>: New field.
13682         * configure.tgt (arm*-*-linux*): Add linux-record.o to
13683         gdb_target_obs.
13684
13685 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13686
13687         * arm-tdep.c (thumb_record_misc): Update to use sp as base
13688         register for push instruction recording.
13689
13690 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13691
13692         * arm-tdep.c (thumb_record_misc): Update to correct logical
13693         error while recording ldm, ldmia and pop instructions.
13694
13695 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13696
13697         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13698
13699 2014-01-15  Pedro Alves  <palves@redhat.com>
13700
13701         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13702         (go32_resume, go32_fetch_registers, store_register)
13703         (go32_store_registers, go32_prepare_to_store)
13704         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13705         (go32_create_inferior, go32_can_run, go32_terminal_init)
13706         (go32_terminal_inferior, go32_terminal_ours): Delete forward
13707         declarations.
13708
13709 2014-01-15  Tom Tromey  <tromey@redhat.com>
13710
13711         * target.h (async_callback_ftype): New typedef.
13712         (struct target_ops) <to_async>: Use it.
13713
13714 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
13715
13716         * python/py-value.c (get_field_type): Remove unnecessary curly
13717         braces for single-statement if block.
13718
13719 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
13720
13721         * python/py-type.c (convert_field): Add missing empty line
13722         after declarations.
13723
13724 2014-01-14  Doug Evans  <dje@google.com>
13725
13726         * symfile.h (expand_symtabs_matching): Renamed from
13727         expand_partial_symbol_names.  Update prototype.
13728         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13729         * symfile.c (expand_symtabs_matching): Renamed from
13730         expand_partial_symbol_names.  New args file_matcher, kind.
13731         Rename arg fun to symbol_matcher.
13732         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13733         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13734         ada_expand_partial_symbol_name.
13735         (ada_make_symbol_completion_list): Update to call
13736         expand_symtabs_matching.
13737         (ada_add_global_exceptions): Call expand_symtabs_matching.
13738         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13739         call map_symbol_filenames.
13740         * symtab.c (sources_info): Update to call map_symbol_filenames.
13741         (search_symbols): Call expand_symtabs_matching.
13742         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13743         (default_make_symbol_completion_list_break_on): Update to call
13744         expand_symtabs_matching.
13745         (make_source_files_completion_list): Update to call
13746         map_symbol_filenames.
13747
13748 2014-01-14  Doug Evans  <dje@google.com>
13749
13750         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13751         (expand_symtabs_symbol_matcher_ftype): New typedef.
13752         (quick_symbol_functions.expand_symtabs_matching): Update to use.
13753         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13754         * symfile.c (expand_partial_symbol_names): Update to use
13755         expand_symtabs_symbol_matcher_ftype.
13756         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13757         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13758         Arg name_matcher renamed to symbol_matcher.
13759         * psymtab.c (recursively_search_psymtabs): Update to use
13760         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
13761         sym_matcher.
13762         (expand_symtabs_matching_via_partial): Update to use
13763         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13764         Arg name_matcher renamed to symbol_matcher.
13765
13766 2014-01-14  Doug Evans  <dje@google.com>
13767
13768         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13769         (map_partial_symbol_filenames): Ditto.
13770         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13771         (map_partial_symbol_filenames): Ditto.
13772         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13773         (map_partial_symbol_filenames): Ditto.
13774         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13775         (map_partial_symbol_filenames): Ditto.
13776         * symtab.c: Delete #include "psymtab.h".
13777
13778 2014-01-14  Pedro Alves  <palves@redhat.com>
13779             Tom Tromey  <tromey@redhat.com>
13780
13781         * infrun.c (use_displaced_stepping): Use find_record_target
13782         instead of RECORD_IS_USED.
13783         (adjust_pc_after_break): Use record_full_is_used instead of
13784         RECORD_IS_USED.
13785         * record-btrace.c (record_btrace_open): Call record_preopen
13786         instead of checking RECORD_IS_USED.
13787         * record-full.c (record_full_shortname)
13788         (record_full_core_shortname): New globals.
13789         (record_full_is_used): New function.
13790         (find_full_open): Call record_preopen instead of checking
13791         RECORD_IS_USED.
13792         (init_record_full_ops): Set the target's shortname to
13793         record_full_shortname.
13794         (init_record_full_core_ops): Set the target's shortname to
13795         record_full_core_shortname.
13796         * record-full.h (record_full_is_used): Declare.
13797         * record.c (find_record_target): Make extern.
13798         (record_preopen): New function.
13799         * record.h (RECORD_IS_USED): Delete macro.
13800         (find_record_target, record_preopen): Declare functions.
13801
13802 2014-01-14  Yao Qi  <yao@codesourcery.com>
13803
13804         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13805         'len''s type to ULONGEST.
13806         (core_xfer_shared_libraries_aix): Likewise.
13807         * gdbarch.c, gdbarch.h: Regenerated.
13808         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13809         Change type of 'len' to ULONGEST.
13810         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13811         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13812
13813 2014-01-14  Yao Qi  <yao@codesourcery.com>
13814
13815         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13816         type of 'len' to ULONGEST.
13817         (linux_xfer_osdata_processgroups): Likewise.
13818         (linux_xfer_osdata_threads): Likewise.
13819         (linux_xfer_osdata_fds): Likewise.
13820         (linux_xfer_osdata_isockets): Likewise.
13821         (linux_xfer_osdata_shm): Likewise.
13822         (linux_xfer_osdata_sem): Likewise.
13823         (linux_xfer_osdata_msg): Likewise.
13824         (linux_common_xfer_osdata): Likewise.
13825         (struct osdata_type) <getter>: Likewise.
13826         * common/linux-osdata.h (linux_common_xfer_osdata): Update
13827         the declaration.
13828
13829 2014-01-14  Yao Qi  <yao@codesourcery.com>
13830
13831         * target.h (target_xfer_partial_ftype): Update.
13832         (struct target_ops) <to_xfer_partial>: Change 'len' type to
13833         ULONGEST.
13834         * aix-thread.c (aix_thread_xfer_partial): Change type of
13835         argument 'len' to ULONGEST.
13836         * auxv.c (procfs_xfer_auxv): Likewise.
13837         (ld_so_xfer_auxv): Likewise.
13838         (memory_xfer_auxv): Likewise.
13839         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13840         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13841         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13842         * corelow.c (core_xfer_partial): Likewise.
13843         * ctf.c (ctf_xfer_partial): Likewise.
13844         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
13845         '%u'.
13846         (darwin_read_dyld_info): Likewise.
13847         (darwin_xfer_partial): Likewise.
13848         * exec.c (section_table_xfer_memory_partial): Likewise.
13849         (exec_xfer_partial): Likewise.
13850         * exec.h (section_table_xfer_memory_partial): Update
13851         declaration.
13852         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
13853         instead of plongest.
13854         (gnu_xfer_partial): Likewise.
13855         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13856         (ia64_hpux_xfer_solib_got): Likewise.
13857         (ia64_hpux_xfer_partial): Likewise.
13858         * ia64-linux-nat.c (ia64_linux_xfer_partial):
13859         * inf-ptrace.c (inf_ptrace_xfer_partial):
13860         * inf-ttrace.c (inf_ttrace_xfer_partial):
13861         * linux-nat.c (linux_xfer_siginfo): Likewise.
13862         (linux_nat_xfer_partial): Likewise.
13863         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13864         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13865         * monitor.c (monitor_xfer_memory): Likewise.
13866         (monitor_xfer_partial): Likewise.
13867         * procfs.c (procfs_xfer_partial): Likewise.
13868         * record-full.c (record_full_xfer_partial): Likewise.
13869         (record_full_core_xfer_partial): Likewise.
13870         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
13871         instead of plongest.
13872         (gdbsim_xfer_partial): Likewise.
13873         * remote.c (remote_xfer_partial): Likewise.
13874         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13875         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13876         declaration.
13877         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13878         (rs6000_xfer_shared_libraries): Likewise.
13879         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13880         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13881         (sparc_xfer_partial): Likewise.
13882         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13883         (spu_xfer_partial): Likewise.
13884         * spu-multiarch.c (spu_xfer_partial): Likewise.
13885         * target.c (target_read_live_memory): Likewise.
13886         (memory_xfer_live_readonly_partial): Likewise.
13887         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13888         (target_xfer_partial, default_xfer_partial): Likewise.
13889         (current_xfer_partial): Likewise.
13890         * tracepoint.c (tfile_xfer_partial): Likewise.
13891         * windows-nat.c (windows_xfer_memory): Likewise.  Call
13892         pulongest instead of plongest.
13893         (windows_xfer_partial): Likewise.
13894         (windows_xfer_shared_libraries): Likewise.
13895
13896 2014-01-14  Yao Qi  <yao@codesourcery.com>
13897
13898         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13899         target_xfer_partial_ftype.
13900
13901 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
13902
13903         PR python/15464
13904         PR python/16113
13905         * valops.c (value_struct_elt_bitpos): New function
13906         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13907         object to 'None' if the field name is an empty string ("").
13908         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13909         attribute to look for a field when 'name' is 'None'.
13910         (get_field_type): New function
13911
13912 2014-01-13  Doug Evans  <dje@google.com>
13913
13914         PR symtab/16426
13915         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13916         (try_open_dwop_file): Ditto.
13917         * gdb_bfd.c: #include "vec.h".
13918         (bfdp): New typedef.
13919         (struct gdb_bfd_data): New member included_bfds.
13920         (gdb_bfd_unref): Unref all included bfds.
13921         (gdb_bfd_record_inclusion): New function.
13922         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13923
13924 2014-01-13  Tom Tromey  <tromey@redhat.com>
13925
13926         * gdbcore.h (deprecated_core_resize_section_table): Remove.
13927
13928 2014-01-13  Tom Tromey  <tromey@redhat.com>
13929
13930         * defs.h (use_windows): Remove.
13931         * gdb.c (main): Update.
13932         * main.c (captured_main, gdb_main): Update.
13933         * main.h (struct captured_main_args) <use_windows>: Remove.
13934         * top.c (use_windows): Remove.
13935
13936 2014-01-13  Tom Tromey  <tromey@redhat.com>
13937
13938         * defs.h (deprecated_flush_hook): Remove.
13939
13940 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
13941
13942         PR threads/16216
13943         * linux-thread-db.c (try_thread_db_load): Add parameter
13944         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
13945         (try_thread_db_load_from_pdir_1): Move it there from here.
13946         (try_thread_db_load_from_sdir): Update caller.
13947         (try_thread_db_load_from_dir): Move it there from here.
13948
13949 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
13950
13951         * regformats/regdat.sh: Always rewrite the register file.
13952
13953 2014-01-13  Pedro Alves  <palves@redhat.com>
13954
13955         * Makefile.in (CHECK_HEADERS): New variable.
13956         (check-headers:): New rule.
13957
13958 2014-01-13  Tom Tromey  <tromey@redhat.com>
13959
13960         * cli/cli-setshow.c (do_set_command): Update.
13961         * defs.h (deprecated_set_hook): Remove.
13962         * top.c (deprecated_set_hook): Remove.
13963
13964 2014-01-13  Pedro Alves  <palves@redhat.com>
13965
13966         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13967         the tracepoint if the PC is a pseudo-register.
13968
13969 2014-01-13  Tom Tromey  <tromey@redhat.com>
13970
13971         * defs.h (XCALLOC): Remove.
13972         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13973         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13974         * dwarf2loc.c (allocate_piece_closure): Likewise.
13975         * elfread.c (elf_symfile_segments): Likewise.
13976         (elf_symfile_segments): Likewise.
13977         * gdbtypes.c (copy_type_recursive): Likewise.
13978         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13979         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13980         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13981         XCALLOC.
13982         * mt-tdep.c (mt_gdbarch_init): Likewise.
13983         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13984         XCALLOC.
13985         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13986         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13987         * registry.c (registry_alloc_data): Likewise.
13988         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13989         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13990         * serial.c (serial_fdopen_ops): Likewise.
13991         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13992         XCALLOC.
13993         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13994         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13995         not XCALLOC.
13996
13997 2014-01-13  Tom Tromey  <tromey@redhat.com>
13998
13999         * defs.h (XMALLOC): Remove.
14000         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14001         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14002         * cli-out.c (struct ui_out *): Likewise.
14003         * cli/cli-dump.c (add_dump_command): Likewise.
14004         (add_dump_command): Likewise.
14005         * complaints.c (get_complaints): Likewise.
14006         (find_complaint): Likewise.
14007         * dwarf2-frame.c (execute_cfa_program): Likewise.
14008         * dwarf2read.c (abbrev_table_read_table): Likewise.
14009         * gdbarch.sh: Likewise.
14010         * gdbarch.c: Rebuild.
14011         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14012         * interps.c (interp_new): Likewise.
14013         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14014         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14015         * mi/mi-console.c (mi_console_file_new): Likewise.
14016         * mi/mi-interp.c (mi_interpreter_init): Likewise.
14017         * mi/mi-out.c (mi_out_new): Likewise.
14018         * mi/mi-parse.c (mi_parse): Likewise.
14019         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14020         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14021         * observer.c (xalloc_observer_list_node): Likewise.
14022         * regcache.c (regcache_xmalloc_1): Likewise.
14023         * reggroups.c (reggroup_new): Likewise.
14024         (_initialize_reggroup): Likewise.
14025         * registry.c (register_data_with_cleanup): Likewise.
14026         * remote.c (remote_notif_stop_alloc_reply): Likewise.
14027         * ser-base.c (serial_ttystate): Likewise.
14028         * ser-mingw.c (make_pipe_state): Likewise.
14029         * ser-pipe.c (pipe_open): Likewise.
14030         * serial.c (serial_open): Likewise.
14031         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14032         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14033         (tui_alloc_win_info): Likewise.
14034         (tui_add_content_elements): Likewise.
14035         * tui/tui-file.c (tui_file_new): Likewise.
14036         * tui/tui-out.c (tui_out_new): Likewise.
14037         * ui-file.c (mem_file_new): Likewise.
14038         * ui-out.c (push_level): Likewise.
14039         (make_cleanup_ui_out_end): Likewise.
14040         (append_header_to_list): Likewise.
14041         (ui_out_new): Likewise.
14042         * user-regs.c (user_reg_add_builtin): Likewise.
14043
14044 2014-01-13  Tom Tromey  <tromey@redhat.com>
14045
14046         * defs.h (XZALLOC): Remove.
14047         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14048         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14049         (get_ada_tasks_inferior_data): Likewise.
14050         * auto-load.c (get_auto_load_pspace_data): Likewise.
14051         * auxv.c (get_auxv_inferior_data): Likewise.
14052         * bfd-target.c (target_bfd_reopen): Likewise.
14053         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14054         (deprecated_insert_raw_breakpoint): Likewise.
14055         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14056         * corelow.c (core_open): Likewise.
14057         * darwin-nat.c (darwin_check_new_threads): Likewise.
14058         (darwin_attach_pid): Likewise.
14059         * dummy-frame.c (dummy_frame_push): Likewise.
14060         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14061         * dwarf2loc.c (allocate_piece_closure): Likewise.
14062         * elfread.c (elf_symfile_segments): Likewise.
14063         * eval.c (ptrmath_type_p): Likewise.
14064         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14065         * gdbtypes.c (alloc_type_arch): Likewise.
14066         (alloc_type_instance): Likewise.
14067         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14068         * inf-child.c (inf_child_can_use_agent): Likewise.
14069         * inflow.c (get_inflow_inferior_data): Likewise.
14070         * infrun.c (save_infcall_suspend_state): Likewise.
14071         * jit.c (jit_reader_load): Likewise.
14072         (get_jit_objfile_data): Likewise.
14073         (get_jit_program_space_data): Likewise.
14074         (jit_object_open_impl): Likewise.
14075         (jit_symtab_open_impl): Likewise.
14076         (jit_block_open_impl): Likewise.
14077         (jit_frame_sniffer): Likewise.
14078         * linux-fork.c (add_fork): Likewise.
14079         * maint.c (make_command_stats_cleanup): Likewise.
14080         * objfiles.c (get_objfile_pspace_data): Likewise.
14081         * opencl-lang.c (struct lval_closure): Likewise.
14082         * osdata.c (osdata_start_osdata): Likewise.
14083         * progspace.c (new_address_space): Likewise.
14084         (add_program_space): Likewise.
14085         * remote-sim.c (get_sim_inferior_data): Likewise.
14086         * sh-tdep.c (sh_gdbarch_init): Likewise.
14087         * skip.c (Ignore): Likewise.
14088         (skip_delete_command): Likewise.
14089         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14090         (library_list_start_library): Likewise.
14091         (solib_aix_current_sos): Likewise.
14092         * solib-darwin.c (get_darwin_info): Likewise.
14093         (darwin_current_sos): Likewise.
14094         * solib-dsbt.c (get_dsbt_info): Likewise.
14095         * solib-ia64-hpux.c (new_so_list): Likewise.
14096         (ia64_hpux_get_solib_linkage_addr): Likewise.
14097         * solib-spu.c (append_ocl_sos): Likewise.
14098         (spu_current_sos): Likewise.
14099         * solib-svr4.c (get_svr4_info): Likewise.
14100         (svr4_keep_data_in_core): Likewise.
14101         (library_list_start_library): Likewise.
14102         (svr4_default_sos): Likewise.
14103         (svr4_read_so_list): Likewise.
14104         * solib-target.c (library_list_start_library): Likewise.
14105         (solib_target_current_sos): Likewise.
14106         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14107         * symfile-debug.c (install_symfile_debug_logging): Likewise.
14108         * symfile.c (default_symfile_segments): Likewise.
14109         * target-descriptions.c (tdesc_data_init): Likewise.
14110         (tdesc_create_reg): Likewise.
14111         (struct tdesc_type *): Likewise.
14112         (tdesc_create_vector): Likewise.
14113         (tdesc_set_struct_size): Likewise.
14114         (struct tdesc_type *): Likewise.
14115         (tdesc_free_feature): Likewise.
14116         (tdesc_create_feature): Likewise.
14117         * windows-nat.c (windows_add_thread): Likewise.
14118         (windows_make_so): Likewise.
14119         * xml-support.c (gdb_xml_body_text): Likewise.
14120         (gdb_xml_create_parser_and_cleanup): Likewise.
14121         (xml_process_xincludes): Likewise.
14122         * xml-syscall.c (allocate_syscalls_info): Likewise.
14123         (syscall_create_syscall_desc): Likewise.
14124
14125 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
14126
14127         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14128         function, with code from i386_stap_parse_special_token.
14129         (i386_stap_parse_special_token_three_arg_disp): Likewise.
14130         (i386_stap_parse_special_token): Move code to the two functions
14131         above; simplify it.
14132
14133 2014-01-09  Pedro Alves  <palves@redhat.com>
14134             Hui Zhu  <hui@codesourcery.com>
14135
14136         PR gdb/16101
14137         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14138         bp_err_string.  Don't mark the location shlib_disabled if the
14139         error thrown wasn't a generic or memory error.  Catch errors
14140         thrown while inserting breakpoints in overlayed code.  Output
14141         error message of software breakpoints.
14142         * remote.c (remote_insert_breakpoint): If this breakpoint has
14143         target-side commands but this stub doesn't support Z0 packets,
14144         throw NOT_SUPPORTED_ERROR error.
14145         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14146         * target.h (target_insert_breakpoint): Extend comment.
14147         (target_insert_hw_breakpoint): Add comment.
14148
14149 2014-01-08  Pedro Alves  <palves@redhat.com>
14150
14151         * remote.c (remote_add_thread): Add threads silently if starting
14152         up.
14153         (remote_notice_new_inferior): If in all-stop, and starting up,
14154         don't call notice_new_inferior.
14155         (get_current_thread): New function, factored out from ...
14156         (add_current_inferior_and_thread): ... this.  Adjust.
14157         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
14158         found any thread, then select the remote's current thread as GDB's
14159         current thread too.
14160
14161 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14162
14163         * NEWS: Create a new section for the next release branch.
14164         Rename the section of the current branch, now that it has
14165         been cut.
14166
14167 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14168
14169         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14170         * version.in: Bump version to 7.7.50.DATE-cvs.
14171
14172 2014-01-08  Yao Qi  <yao@codesourcery.com>
14173
14174         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14175         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
14176         (spu_xfer_partial): Cast 'buf' to 'const char *'.
14177
14178 2014-01-08  Yao Qi  <yao@codesourcery.com>
14179
14180         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14181         return value of bfd_get_filename to symbol_file_add_from_bfd.
14182
14183 2014-01-08  Pierre Muller  <muller@sourceware.org>
14184
14185         Fix PR16201.
14186         * coff-pe-read.c (struct read_pe_section_data): Add index field.
14187         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14188         to prim_record_mininal_symbol_and_info.
14189         (add_pe_forwarded_sym): Use known section number of forwarded symbol
14190         in call to prim_record_minimal_symbol_and_info.
14191         (read_pe_exported_syms): Set index field of section_data.
14192
14193 2014-01-07  Andrew Pinski  <apinski@cavium.com>
14194
14195         * features/aarch64-core.xml (cpsr): Change to be 64bit.
14196         * features/aarch64.c: Regenerate.
14197
14198 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
14199
14200         * target.c (return_null): Define.
14201         (update_current_target): Use it instead of return_zero for
14202         functions that return a pointer.
14203
14204 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
14205
14206         * source.c (add_path): Fix check for duplicated paths in the previously
14207         included paths.
14208
14209 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
14210
14211         * ada-lang.c: Remove duplicated include statements.
14212         * alphabsd-nat.c: Ditto.
14213         * amd64-darwin-tdep.c: Ditto.
14214         * amd64fbsd-nat.c: Ditto.
14215         * auto-load.c: Ditto.
14216         * ax-gdb.c: Ditto.
14217         * breakpoint.c: Ditto.
14218         * dbxread.c: Ditto.
14219         * fork-child.c: Ditto.
14220         * gdb_usleep.c: Ditto.
14221         * i386-darwin-tdep.c: Ditto.
14222         * i386fbsd-nat.c: Ditto.
14223         * infcmd.c: Ditto.
14224         * inferior.c: Ditto.
14225         * jv-lang.c: Ditto.
14226         * linux-nat.c: Ditto.
14227         * linux-tdep.c: Ditto.
14228         * m68kbsd-nat.c: Ditto.
14229         * m68klinux-nat.c: Ditto.
14230         * microblaze-tdep.c: Ditto.
14231         * mips-linux-tdep.c: Ditto.
14232         * mn10300-tdep.c: Ditto.
14233         * nto-tdep.c: Ditto.
14234         * opencl-lang.c: Ditto.
14235         * osdata.c: Ditto.
14236         * printcmd.c: Ditto.
14237         * regcache.c: Ditto.
14238         * remote-m32r-sdi.c: Ditto.
14239         * remote.c: Ditto.
14240         * symfile.c: Ditto.
14241         * symtab.c: Ditto.
14242         * tilegx-linux-nat.c: Ditto.
14243         * tilegx-tdep.c: Ditto.
14244         * tracepoint.c: Ditto.
14245         * valops.c: Ditto.
14246         * vaxbsd-nat.c: Ditto.
14247         * windows-nat.c: Ditto.
14248         * xtensa-tdep.c: Ditto.
14249
14250 2014-01-07  Yao Qi  <yao@codesourcery.com>
14251
14252         * spu-linux-nat.c (_initialize_spu_nat): Declare.
14253
14254 2014-01-07  Yao Qi  <yao@codesourcery.com>
14255             Joel Brobecker  <brobecker@adacore.com>
14256
14257         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14258         (pdc_write_regs): Likewise.
14259         (fetch_regs_kernel_thread): Likewise.
14260         (store_regs_kernel_thread): Likewise.
14261
14262 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14263
14264         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14265         tagged type objects to their actual type.
14266
14267 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14268
14269         * ada-valprint.c (print_field_values): Add "language" parameter.
14270         Update calls to print_field_values and print_variant_part.
14271         Pass new parameter "language" in call to val_print instead
14272         of "current_language".  Replace call to ada_val_print by call
14273         to val_print.
14274         (print_variant_part): Add "language" parameter.
14275         (ada_val_print_struct_union): Update call to print_field_values.
14276
14277 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14278
14279         * ada-valprint.c (ui_memcpy): Delete.
14280         (ada_print_floating): Update documentation.  Add empty line
14281         between between function documentation and implementation.
14282         Delete variable "buffer".  Use ui_file_xstrdup in place of
14283         ui_file_put.  Minor adjustments following this change.
14284
14285 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14286
14287         * ada-valprint.c (ada_val_print_string): New function,
14288         extracted from ada_val_print_array.
14289         (ada_val_print_array): Replace extracted code by call
14290         to ada_val_print_string followed by a return.  Move
14291         "else" branch to the function's top block.
14292
14293 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14294
14295         * ada-valprint.c (ada_val_print_array): Move implementation
14296         down.  Rename parameter "offset" and "val" into "offset_aligned"
14297         and "original_value" respectively.  Add parameter "offset".
14298
14299 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14300
14301         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14302         re-organizing the code. Change the "???" message printed
14303         when target type is a TYPE_CODE_UNDEF into
14304         "<ref to undefined type>".
14305
14306 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14307
14308         * ada-valprint.c (print_record): Delete, implementation inlined...
14309         (ada_val_print_struct_union): ... here.  Remove call to
14310         ada_check_typedef in inlined implementation.
14311
14312 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14313
14314         * ada-valprint.c (ada_val_print_gnat_array): New function,
14315         extracted from ada_val_print_1;
14316         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14317         (ada_val_print_flt, ada_val_print_struct_union)
14318         (ada_val_print_ref): Likewise.
14319         (ada_val_print_1): Delete variables i and elttype.
14320         Replace extracted-out code by call to corresponding
14321         new functions.
14322
14323 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14324
14325         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14326
14327 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14328
14329         * ada-valprint.c (ada_val_print_1): Replace calls to
14330         ada_val_print_1 by calls to val_print.
14331
14332 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14333
14334         * ada-valprint.c (ada_val_print_1): Add parameter "language".
14335         Update calls to self accordingly.  Replace calls to c_val_print
14336         by calls to val_print.
14337
14338 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14339
14340         * ada-valprint.c (print_record): Delete declaration.
14341         (adjust_type_signedness, ada_val_print_1): Likewise.
14342         (ada_val_print): Move function implementation down.
14343         (print_variant_part, print_field_values, print_record):
14344         Move function implementation up.
14345
14346 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14347
14348         * python/py-type.c (typy_get_name): New function.
14349         (type_object_getset): Add entry for attribute "name".
14350         * NEWS: Add entry mentioning this new attribute.
14351
14352 2014-01-07  Yao Qi  <yao@codesourcery.com>
14353
14354         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14355         statement.
14356
14357 2014-01-07  Yao Qi  <yao@codesourcery.com>
14358
14359         * gnu-nat.c (info_port_rights): Add qualifier const to
14360         argument args.
14361
14362 2014-01-07  Yao Qi  <yao@codesourcery.com>
14363
14364         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14365
14366 2014-01-07  Yao Qi  <yao@codesourcery.com>
14367
14368         * gnu-nat.c (make_inf) Update declaration.
14369         (make_inf): Make it static.
14370         (inf_set_traced): Likewise.
14371         (inf_port_to_thread, inf_task_died_status): Likewise.
14372
14373 2014-01-07  Yao Qi  <yao@codesourcery.com>
14374
14375         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14376
14377 2014-01-07  Yao Qi  <yao@codesourcery.com>
14378
14379         * gnu-nat.c (_initialize_gnu_nat): Declare.
14380
14381 2014-01-07  Yao Qi  <yao@codesourcery.com>
14382
14383         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14384         'enum bfd_endian'.
14385         (struct gdbarch_info) <byte_order>: Change type to
14386         'enum bfd_endian'.
14387         <byte_order_for_code>: Likewise.
14388         * gdbarch.c, gdbarch.h: Regenerated.
14389
14390 2014-01-06  Sasha Smundak  <asmundak@google.com>
14391
14392         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14393
14394 2014-01-06  Tom Tromey  <tromey@redhat.com>
14395
14396         * doublest.c (convert_doublest_to_floatformat): Use const, not
14397         CONST.
14398         * somread.c (som_symtab_read): Likewise.
14399
14400 2014-01-07  Hui Zhu  <hui@codesourcery.com>
14401
14402         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14403         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14404         (gdb_bfd_fopen): Ditto.
14405         (gdb_bfd_openr): Ditto.
14406         (gdb_bfd_openw): Ditto.
14407         (gdb_bfd_openr_iovec): Ditto.
14408         (gdb_bfd_fdopenr): Ditto.
14409         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14410         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14411         with xstrdup.
14412         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14413         with xstrdup.
14414         * symfile-mem.c (symbol_file_add_from_memory): Removed
14415         gdb_bfd_stash_filename.
14416
14417 2014-01-03  Doug Evans  <dje@google.com>
14418
14419         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14420         output.
14421
14422 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14423
14424         Update year range in copyright notice of all files.
14425
14426 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14427
14428         * top.c (print_gdb_version): Set copyright year to 2014.
14429
14430 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14431
14432         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14433
14434 For older changes see ChangeLog-2013.
14435 \f
14436 Local Variables:
14437 mode: change-log
14438 left-margin: 8
14439 fill-column: 74
14440 version-control: never
14441 coding: utf-8
14442 End: