1ff55a67284a0eff59fd4ce7452459e88e15bc7c
[external/binutils.git] / gdb / ChangeLog
1 2014-10-25  Doug Evans  <xdje42@gmail.com>
2
3         * symtab.c (types_info): Delete forward decl.
4         (functions_info, variables_info, sources_info): Ditto.
5         (_initialize_symtab): Rewrite forward decl to use
6         initialize_file_ftype.
7
8 2014-10-25  Doug Evans  <xdje42@gmail.com>
9
10         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
11
12 2014-10-25  Doug Evans  <xdje42@gmail.com>
13
14         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
15         of local var child_die.
16
17 2014-10-24  Don Breazeal  <donb@codesourcery.com>
18
19         * infrun.c (follow_fork_inferior): Update fork message printing
20         to use target_terminal_ours_for_output instead of
21         target_terminal_ours, to use _() for all format strings, to print
22         "vfork" instead of "fork" for vforks, and to add a detach message.
23         (handle_vfork_child_exec_or_exit): Update message printing to use
24         target_terminal_ours_for_output instead of target_terminal_ours, to
25         use _() for all format strings, and to fix some formatting.
26
27 2014-10-24  Pedro Alves  <palves@redhat.com>
28
29         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
30         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
31         * config/vax/vax.mh: Delete.
32         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
33         obsolete configurations section.
34         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
35         * vax-nat.c: Delete file.
36
37 2014-10-24  Pedro Alves  <palves@redhat.com>
38
39         * NEWS (Removed targets): Add OS/arch column.
40
41 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
42
43         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
44         on the arg type of a constructor only if it is of reference type.
45
46 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
47
48         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
49         accessors and constants from nios2 opcodes update.
50         (nios2_get_next_pc): Likewise.
51
52 2014-10-19  Doug Evans  <xdje42@gmail.com>
53
54         * gdbthread.h (set_running): Fix comment.
55         (set_executing, finish_thread_state): Fix comment.
56
57 2014-10-18  Doug Evans  <xdje42@gmail.com>
58
59         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
60
61 2014-10-17  Doug Evans  <dje@google.com>
62
63         * NEWS: Mention new event gdb.clear_objfiles.
64         * python/py-event.h (emit_clear_objfiles_event): Clear
65         * python/py-events.h (events_object): New member clear_objfiles.
66         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
67         event.
68         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
69         emit clear_objfiles event.
70         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
71         function.
72         (emit_clear_objfiles_event): New function.
73         (clear_objfiles): New event.
74         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
75         Declare.
76         * python/python.c (_initialize_python): Call
77         gdbpy_initialize_clear_objfiles_event.
78
79 2014-10-17  Doug Evans  <dje@google.com>
80
81         * NEWS: Mention new gdb.Objfile.progspace attribute.
82         * python/py-objfile.c (objfpy_get_progspace): New function.
83         (objfile_getset): New entry for "progspace".
84
85 2014-10-17  Pedro Alves  <palves@redhat.com>
86
87         PR gdb/17471
88         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
89         returns a copy of the input.
90         (run_command_1, continue_command, step_1, jump_command)
91         (signal_command, until_command, advance_command, finish_command)
92         (attach_command): Adjust and install a cleanup to free the
93         stripped args.
94
95 2014-10-17  Pedro Alves  <palves@redhat.com>
96
97         PR gdb/17300
98         * infcmd.c (continue_1): If continuing all threads in the
99         foreground, make sure the inferior's terminal settings are put in
100         effect.
101
102 2014-10-17  Pedro Alves  <palves@redhat.com>
103
104         PR gdb/17472
105         * annotate.c (annotate_breakpoints_invalid): Use
106         target_terminal_our_for_output instead of target_terminal_ours.
107         Give back the terminal to the target.
108         (annotate_frames_invalid): Likewise.
109
110 2014-10-17  Pedro Alves  <palves@redhat.com>
111
112         * target.c (enum terminal_state): New enum.
113         (terminal_state): New global.
114         (target_terminal_init): New function.
115         (target_terminal_inferior): Skip if inferior already owns the
116         terminal.
117         (target_terminal_ours, target_terminal_ours_for_output): New
118         functions.
119         * target.h (target_terminal_init): Convert to function prototype.
120         (target_terminal_ours_for_output): Convert to function prototype
121         and tweak comment.
122         (target_terminal_ours): Convert to function prototype and tweak
123         comment.
124         * windows-nat.c (do_initial_windows_stuff): Call
125         target_terminal_init instead of child_terminal_init_with_pgrp.
126
127 2014-10-17  Pedro Alves  <palves@redhat.com>
128
129         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
130         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
131         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
132         solib-osf.c.
133         * NEWS: Mention that support for alpha*-*-osf* has been removed.
134         * ada-lang.h [__alpha__ && __osf__]
135         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
136         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
137         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
138         GDB_OSABI_OSF1.
139         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
140         files.
141         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
142         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
143         * configure: Regenerate.
144         * configure.ac: Remove references to osf.
145         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
146         section.  Remove all other references to osf.
147         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
148         Remove all other references to osf.
149         * dec-thread.c: Delete file.
150         * defs.h (GDB_OSABI_OSF1): Delete.
151         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
152         defined.
153         * osabi.c (gdb_osabi_names): Delete "OSF/1".
154         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
155         Delete code.
156         (unconditionally_kill_inferior)
157         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
158         * solib-osf.c: Delete file.
159
160 2014-10-17  Pedro Alves  <palves@redhat.com>
161
162         * remote.c (clear_threads_listing_context): Move higher up, out of
163         the HAVE_LIBEXPAT guard.
164
165 2014-10-16  Tristan Gingold  <gingold@adacore.com>
166
167         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
168         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
169         on amd64.
170
171 2014-10-15  Pedro Alves  <palves@redhat.com>
172
173         * dec-thread.c (dec_thread_count_gdb_threads)
174         (dec_thread_add_gdb_thread): Delete.
175         (dec_thread_update_thread_list): Delete.
176         (dec_thread_find_new_threads): Rename to ...
177         (dec_thread_update_thread_list): ... this.  Delete GDB-size
178         threads that are no longer found in dec_thread_list.
179         (resync_thread_list): Delete.
180         (dec_thread_wait): Call dec_thread_update_thread_list instead of
181         resync_thread_list.
182
183 2014-10-15  Pedro Alves  <palves@redhat.com>
184
185         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
186         * remote.c (remote_update_thread_list): Skip calling prune_threads
187         if any thread listing method is supported, and instead walk over
188         the set of remote threads listed, deleting those that are not
189         found in GDB's thread list.
190
191 2014-10-15  Pedro Alves  <palves@redhat.com>
192
193         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
194         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
195         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
196         (bsd_uthread_target): Adjust.
197         * corelow.c (core_open): Adjust.
198         * dec-thread.c (dec_thread_find_new_threads): Update comment.
199         (dec_thread_update_thread_list): New function.
200         (init_dec_thread_ops): Adjust.
201         * gdbthread.h (prune_threads): New declaration.
202         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
203         (thread_db_update_thread_list): ... this.  Call prune_threads.
204         (init_thread_db_ops): Adjust.
205         * nto-procfs.c (procfs_find_new_threads): Rename to ...
206         (procfs_update_thread_list): ... this.  Call prune_threads.
207         (procfs_attach, procfs_create_inferior, init_procfs_targets):
208         Adjust.
209         * obsd-nat.c (obsd_find_new_threads): Rename to ...
210         (obsd_update_thread_list): ... this.  Call prune_threads.
211         (obsd_add_target): Adjust.
212         * procfs.c (procfs_target): Adjust.
213         (procfs_notice_thread): Update comment.
214         (procfs_find_new_threads): Rename to ...
215         (procfs_update_thread_list): ... this.  Call prune_threads.
216         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
217         comment.
218         (ravenscar_wait): Adjust.
219         (ravenscar_find_new_threads): Rename to ...
220         (ravenscar_update_thread_list): ... this.  Call prune_threads.
221         (init_ravenscar_thread_ops): Adjust.
222         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
223         (record_btrace_update_thread_list): ... this.  Adjust comment.
224         (init_record_btrace_ops): Adjust.
225         * remote.c (remote_threads_info): Rename to ...
226         (remote_update_thread_list): ... this.  Call prune_threads.
227         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
228         Adjust.
229         * sol-thread.c (check_for_thread_db): Adjust.
230         (sol_find_new_threads_callback): Rename to ...
231         (sol_update_thread_list_callback): ... this.
232         (sol_find_new_threads): Rename to ...
233         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
234         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
235         * target-delegates.c: Regenerate.
236         * target.c (target_find_new_threads): Rename to ...
237         (target_update_thread_list): ... this.
238         * target.h (struct target_ops): Rename to_find_new_threads field
239         to to_update_thread_list.
240         (target_find_new_threads): Rename to ...
241         (target_update_thread_list): ... this.
242         * thread.c (prune_threads): Make extern.
243         (update_thread_list): Adjust.
244
245 2014-10-15  Pedro Alves  <palves@redhat.com>
246
247         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
248         Add describing comment.  Return -1 if the qL packet is not
249         supported.
250         (struct thread_item, thread_item_t): Move higher up in
251         the file.  Add comments.
252         (struct threads_parsing_context): Move higher up in
253         the file, add comments, and remote to ...
254         (struct threads_listing_context): ... this.
255         (remote_newthread_step): Don't add the thread to GDB's thread
256         database here.  Instead push it to the thread_listing_context
257         list.
258         (remote_find_new_threads): Rename to ...
259         (remote_get_threads_with_ql): ... this.  Add target_ops and
260         targets_listing_context parameters.  Pass down context.
261         (start_thread): Adjust.
262         (clear_threads_parsing_context): Rename to ...
263         (clear_threads_listing_context): ... this.
264         (remote_get_threads_with_qxfer): New, with parts salvaged from old
265         remote_threads_info.
266         (remote_get_threads_with_qthreadinfo): Ditto.
267         (remote_threads_info): Reimplement.
268
269 2014-10-15  Pedro Alves  <palves@redhat.com>
270
271         * infrun.c (resume): Don't force displaced-stepping for all
272         single-steps on software single-stepping archs.
273
274 2014-10-15  Pedro Alves  <palves@redhat.com>
275
276         * breakpoint.c (single_step_breakpoints): Delete global.
277         (insert_single_step_breakpoint): Adjust to store the breakpoint
278         pointer in the current thread.
279         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
280         (cancel_single_step_breakpoints): Delete functions.
281         (breakpoint_has_location_inserted_here): Make extern.
282         (single_step_breakpoint_inserted_here_p): Adjust to walk the
283         breakpoint list.
284         * breakpoint.h (breakpoint_has_location_inserted_here): New
285         declaration.
286         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
287         (cancel_single_step_breakpoints): Remove declarations.
288         * gdbthread.h (struct thread_control_state)
289         <single_step_breakpoints>: New field.
290         (delete_single_step_breakpoints)
291         (thread_has_single_step_breakpoints_set)
292         (thread_has_single_step_breakpoint_here): New declarations.
293         * infrun.c (follow_exec): Also clear the single-step breakpoints.
294         (singlestep_breakpoints_inserted_p, singlestep_ptid)
295         (singlestep_pc): Delete globals.
296         (infrun_thread_ptid_changed): Remove references to removed
297         globals.
298         (resume_cleanups): Delete the current thread's single-step
299         breakpoints.
300         (maybe_software_singlestep): Remove references to removed globals.
301         (resume): Adjust to use thread_has_single_step_breakpoints_set and
302         delete_single_step_breakpoints.
303         (init_wait_for_inferior): Remove references to removed globals.
304         (delete_thread_infrun_breakpoints): Delete the thread's
305         single-step breakpoints too.
306         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
307         single-step breakpoints here.
308         (delete_stopped_threads_single_step_breakpoints): New function.
309         (adjust_pc_after_break): Adjust to use
310         thread_has_single_step_breakpoints_set.
311         (handle_inferior_event): Remove references to removed globals.
312         Use delete_stopped_threads_single_step_breakpoints.
313         (handle_signal_stop): Adjust to per-thread single-step
314         breakpoints.  Swap test order to do cheaper tests first.
315         (switch_back_to_stepped_thread): Extend debug output.  Remove
316         references to removed globals.
317         * record-full.c (record_full_wait_1): Adjust to per-thread
318         single-step breakpoints.
319         * thread.c (delete_single_step_breakpoints)
320         (thread_has_single_step_breakpoints_set)
321         (thread_has_single_step_breakpoint_here): New functions.
322         (clear_thread_inferior_resources): Also delete the thread's
323         single-step breakpoints.
324
325 2014-10-15  Pedro Alves  <palves@redhat.com>
326
327         * thread.c (delete_thread_breakpoint): New function.
328         (delete_step_resume_breakpoint)
329         (delete_exception_resume_breakpoint): Use it.
330         (delete_at_next_stop): New function.
331         (clear_thread_inferior_resources): Use delete_at_next_stop.
332
333 2014-10-15  Pedro Alves  <palves@redhat.com>
334
335         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
336         (breakpoint_inserted_here_p): ... here.  Remove special case for
337         software single-step breakpoints.
338         (find_non_raw_software_breakpoint_inserted_here): Inline ...
339         (software_breakpoint_inserted_here_p): ... here.  Remove special
340         case for software single-step breakpoints.
341         (bp_target_info_copy_insertion_state)
342         (deprecated_insert_raw_breakpoint)
343         (deprecated_remove_raw_breakpoint): Delete functions.
344         * breakpoint.h (deprecated_insert_raw_breakpoint)
345         (deprecated_remove_raw_breakpoint): Remove declarations.
346
347 2014-10-15  Pedro Alves  <palves@redhat.com>
348
349         PR breakpoints/9649
350         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
351         Delete array globals.
352         (single_step_breakpoints): New global.
353         (breakpoint_xfer_memory): Remove special handling for single-step
354         breakpoints.
355         (update_breakpoints_after_exec): Delete bp_single_step
356         breakpoints.
357         (detach_breakpoints): Remove special handling for single-step
358         breakpoints.
359         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
360         (bpstat_stop_status): Add comment.
361         (bpstat_what, bptype_string, print_one_breakpoint_location)
362         (adjust_breakpoint_address, init_bp_location): Handle
363         bp_single_step.
364         (new_single_step_breakpoint): New function.
365         (set_momentary_breakpoint, bkpt_remove_location): Remove special
366         handling for single-step breakpoints.
367         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
368         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
369         Rewrite.
370         (detach_single_step_breakpoints, find_single_step_breakpoint):
371         Delete functions.
372         (breakpoint_has_location_inserted_here): New function.
373         (single_step_breakpoint_inserted_here_p): Rewrite.
374         * breakpoint.h: Remove FIXME.
375         (enum bptype) <bp_single_step>: New enum value.
376         (insert_single_step_breakpoint): Update comment.
377         * infrun.c (resume_cleanups)
378         (delete_step_thread_step_resume_breakpoint): Remove single-step
379         breakpoints.
380         (fetch_inferior_event): Install a cleanup that removes infrun
381         breakpoints.
382         (switch_back_to_stepped_thread) <expect thread advanced also>:
383         Clear step-over info.
384
385 2014-10-15  Pedro Alves  <palves@redhat.com>
386
387         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
388         (delete_thread_infrun_breakpoints): New function, with parts
389         salvaged from delete_step_resume_breakpoint_callback.
390         (delete_step_thread_step_resume_breakpoint): Delete.
391         (for_each_just_stopped_thread_callback_func): New typedef.
392         (for_each_just_stopped_thread): New function.
393         (delete_just_stopped_threads_infrun_breakpoints): New function.
394         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
395         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
396         ... this.  Adjust.
397         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
398
399 2014-10-15  Pedro Alves  <palves@redhat.com>
400
401         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
402         trying to step past a non-steppable watchpoint.
403         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
404         field.
405         * infrun.c (struct step_over_info): Add new field
406         'nonsteppable_watchpoint_p' and adjust comments.
407         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
408         Adjust.
409         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
410         (stepping_past_nonsteppable_watchpoint): New function.
411         (step_over_info_valid_p): Also return true if stepping past a
412         nonsteppable watchpoint.
413         (proceed): Adjust call to set_step_over_info.  Remove reference to
414         init_infwait_state.
415         (init_wait_for_inferior): Remove reference to init_infwait_state.
416         (waiton_ptid): Delete global.
417         (struct execution_control_state)
418         <stepped_after_stopped_by_watchpoint>: Delete field.
419         (wait_for_inferior, fetch_inferior_event): Always pass
420         minus_one_ptid to target_wait.
421         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
422         field.
423         (init_infwait_state): Delete function.
424         (handle_inferior_event): Remove infwait_state handling.
425         (handle_signal_stop) <watchpoints handling>: Adjust after
426         stepped_after_stopped_by_watchpoint removal.  Don't remove
427         breakpoints here nor set infwait_state.  Set the thread's
428         stepping_over_watchpoint flag, and call keep_going instead.
429         (keep_going): Handle stepping_over_watchpoint.  Adjust
430         set_step_over_info calls.
431         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
432         function.
433
434 2014-10-15  Pedro Alves  <palves@redhat.com>
435
436         * infrun.c (step_over_info_valid_p): New function.
437         (resume): Use step_over_info_valid_p instead of checking the
438         threads's trap_expected flag.
439
440 2014-10-15  Doug Evans  <dje@google.com>
441             Walfred Tedeschi  <walfred.tedeschi@intel.com>
442
443         PR python/17364
444         * python/lib/gdb/__init__.py (packages): Add "printer".
445         * python/lib/gdb/command/bound_registers.py: Moved to ...
446         * python/lib/gdb/printer/bound_registers.py: ... here.
447         Add printer to global set of builtin printers.  Rename printer from
448         "bound" to "mpx_bound128".
449         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
450         registered as global "builtin" printer.
451         (add_builtin_pretty_printer): New function.
452         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
453         gdb/printer/__init__.py.
454
455 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
456
457         * Makefile.in (SFILES): Remove d-support.c.
458         (COMMON_OBS): Remove d-support.o.
459         * d-lang.h (d_parse_symbol): Remove declaration.
460         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
461         * d-support.c: Remove file.
462
463 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
464
465         * gdb/infrun.c (process_event_stop_test): Apply
466         gdbarch_addr_bits_remove to longjmp resume address.
467
468 2014-10-15  Pedro Alves  <palves@redhat.com>
469
470         * regformats/microblaze.dat: Delete file.
471
472 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
473
474         * features/Makefile (microblaze-expedite): Replace pc with rpc.
475         * regformats/microblaze-with-stack-protect.dat: Regenerate.
476
477 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
478
479         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
480         as non-trivial.
481
482 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
483
484         PR c++/13403
485         PR c++/15154
486         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
487         with qualified args.
488
489 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
490
491         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
492         of the case where the second operand is a pointer.
493         <BINOP_SUB>: Likewise.
494
495 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
496
497         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
498         only if it is not NULL.
499         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
500         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
501         (struct probe_ops) <clear_semaphore>: Likewise.
502         * tracepoint.c (start_tracing): Call set_semaphore only if it is
503         not NULL.
504         (stop_tracing): Likewise, for clear_semaphore.
505
506 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
507
508         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
509         using language_c, instead of current_language.
510
511 2014-10-13  Doug Evans  <dje@google.com>
512
513         * python/py-objfile.c (objfpy_initialize): New function.
514         (objfpy_new, objfile_to_objfile_object): Call it.
515         * python/py-progspace.c (pspy_initialize): New function.
516         (pspy_new, pspace_to_pspace_object): Call it.
517
518 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
519             Jan Kratochvil  <jan.kratochvil@redhat.com>
520
521         Fix "save breakpoints" for "catch" command.
522         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
523         newline.
524
525 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
526
527         Fix "save breakpoints" for "disable $bpnum" command.
528         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
529
530 2014-10-10  Pedro Alves  <palves@redhat.com>
531
532         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
533         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
534         (HFILES_NO_SRCDIR): Remove solib-irix.h.
535         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
536         and been removed.
537         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
538         * configure.ac: Remove references to IRIX.
539         * configure.host: Add *-*-irix* to the obsolete hosts section.
540         Remove all other references to irix.
541         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
542         Delete files.
543
544 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
545
546         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
547         isn't valid, release the tdesc arch data and return NULL.
548
549 2014-10-10  Pedro Alves  <palves@redhat.com>
550
551         * linux-tdep.c: Include observer.h.
552         (linux_inferior_data): New global.
553         (struct linux_info): New structure.
554         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
555         (get_linux_inferior_data): New functions.
556         (linux_vsyscall_range): Rename to ...
557         (linux_vsyscall_range_raw): ... this.
558         (linux_vsyscall_range): New function; handles caching.
559         (_initialize_linux_tdep): Register linux_inferior_data.  Install
560         inferior_exit and inferior_appeared observers.
561
562 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
563             Pedro Alves  <palves@redhat.com>
564
565         PR symtab/14466
566         * solib-svr4.c (svr4_read_so_list): Rename to ...
567         (svr4_current_sos_1): ... this and change the function comment.
568         (svr4_current_sos): New function.
569
570 2014-10-10  Pedro Alves  <palves@redhat.com>
571
572         * arch-utils.c (default_vsyscall_range): New function.
573         * arch-utils.h (default_vsyscall_range): New declaration.
574         * gdbarch.sh (vsyscall_range): New hook.
575         * gdbarch.h, gdbarch.c: Regenerate.
576         * linux-tdep.c (linux_vsyscall_range): New function.
577         (linux_init_abi): Install linux_vsyscall_range as
578         vsyscall_range gdbarch hook.
579         * memrange.c (address_in_mem_range): New function.
580         * memrange.h (address_in_mem_range): New declaration.
581         * symfile-mem.c (find_vdso_size): Delete function.
582         (add_vsyscall_page): Use gdbarch_vsyscall_range.
583
584 2014-10-10  Pedro Alves  <palves@redhat.com>
585
586         * infrun.c (normal_stop): Fix typo in comment.
587
588 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
589
590         PR tdep/9390
591         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
592         typo when using logical AND to determine instruction type.
593
594 2014-10-09  Yao Qi  <yao@codesourcery.com>
595
596         * infrun.c (handle_signal_stop): Remove local variable
597         'printed'.
598
599 2014-10-08  Stan Shebs  <stan@codesourcery.com>
600
601         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
602
603 2014-10-08  Gary Benson  <gbenson@redhat.com>
604
605         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
606
607 2014-10-08  Gary Benson  <gbenson@redhat.com>
608
609         * common/common-defs.h: Include common-exceptions.h.
610         * exceptions.h: Do not include common-exceptions.h.
611
612 2014-10-08  Gary Benson  <gbenson@redhat.com>
613
614         * common/common-defs.h: Include cleanups.h.
615         * common/common-exceptions.c: Do not include cleanups.h.
616         * utils.h: Likewise.
617
618 2014-10-08  Gary Benson  <gbenson@redhat.com>
619
620         * ada-lang.c: Do not include exceptions.h.
621         * ada-valprint.c: Likewise.
622         * amd64-tdep.c: Likewise.
623         * auto-load.c: Likewise.
624         * block.c: Likewise.
625         * break-catch-throw.c: Likewise.
626         * breakpoint.c: Likewise.
627         * btrace.c: Likewise.
628         * c-lang.c: Likewise.
629         * cli/cli-cmds.c: Likewise.
630         * cli/cli-interp.c: Likewise.
631         * cli/cli-script.c: Likewise.
632         * completer.c: Likewise.
633         * corefile.c: Likewise.
634         * corelow.c: Likewise.
635         * cp-abi.c: Likewise.
636         * cp-support.c: Likewise.
637         * cp-valprint.c: Likewise.
638         * darwin-nat.c: Likewise.
639         * dwarf2-frame-tailcall.c: Likewise.
640         * dwarf2-frame.c: Likewise.
641         * dwarf2loc.c: Likewise.
642         * dwarf2read.c: Likewise.
643         * eval.c: Likewise.
644         * event-loop.c: Likewise.
645         * event-top.c: Likewise.
646         * f-valprint.c: Likewise.
647         * frame-unwind.c: Likewise.
648         * frame.c: Likewise.
649         * gdbtypes.c: Likewise.
650         * gnu-v2-abi.c: Likewise.
651         * gnu-v3-abi.c: Likewise.
652         * guile/scm-auto-load.c: Likewise.
653         * guile/scm-breakpoint.c: Likewise.
654         * guile/scm-cmd.c: Likewise.
655         * guile/scm-frame.c: Likewise.
656         * guile/scm-lazy-string.c: Likewise.
657         * guile/scm-param.c: Likewise.
658         * guile/scm-symbol.c: Likewise.
659         * guile/scm-type.c: Likewise.
660         * hppa-hpux-tdep.c: Likewise.
661         * i386-tdep.c: Likewise.
662         * inf-loop.c: Likewise.
663         * infcall.c: Likewise.
664         * infcmd.c: Likewise.
665         * infrun.c: Likewise.
666         * interps.c: Likewise.
667         * interps.h: Likewise.
668         * jit.c: Likewise.
669         * linespec.c: Likewise.
670         * linux-nat.c: Likewise.
671         * linux-thread-db.c: Likewise.
672         * m32r-rom.c: Likewise.
673         * main.c: Likewise.
674         * memory-map.c: Likewise.
675         * mi/mi-cmd-break.c: Likewise.
676         * mi/mi-cmd-stack.c: Likewise.
677         * mi/mi-interp.c: Likewise.
678         * mi/mi-main.c: Likewise.
679         * monitor.c: Likewise.
680         * nto-procfs.c: Likewise.
681         * objc-lang.c: Likewise.
682         * p-valprint.c: Likewise.
683         * parse.c: Likewise.
684         * ppc-linux-tdep.c: Likewise.
685         * printcmd.c: Likewise.
686         * probe.c: Likewise.
687         * python/py-auto-load.c: Likewise.
688         * python/py-breakpoint.c: Likewise.
689         * python/py-cmd.c: Likewise.
690         * python/py-finishbreakpoint.c: Likewise.
691         * python/py-frame.c: Likewise.
692         * python/py-framefilter.c: Likewise.
693         * python/py-function.c: Likewise.
694         * python/py-gdb-readline.c: Likewise.
695         * python/py-inferior.c: Likewise.
696         * python/py-infthread.c: Likewise.
697         * python/py-lazy-string.c: Likewise.
698         * python/py-linetable.c: Likewise.
699         * python/py-param.c: Likewise.
700         * python/py-prettyprint.c: Likewise.
701         * python/py-symbol.c: Likewise.
702         * python/py-type.c: Likewise.
703         * python/py-value.c: Likewise.
704         * python/python-internal.h: Likewise.
705         * python/python.c: Likewise.
706         * record-btrace.c: Likewise.
707         * record-full.c: Likewise.
708         * regcache.c: Likewise.
709         * remote-fileio.c: Likewise.
710         * remote-mips.c: Likewise.
711         * remote.c: Likewise.
712         * rs6000-aix-tdep.c: Likewise.
713         * rs6000-nat.c: Likewise.
714         * skip.c: Likewise.
715         * solib-darwin.c: Likewise.
716         * solib-dsbt.c: Likewise.
717         * solib-frv.c: Likewise.
718         * solib-ia64-hpux.c: Likewise.
719         * solib-spu.c: Likewise.
720         * solib-svr4.c: Likewise.
721         * solib.c: Likewise.
722         * spu-tdep.c: Likewise.
723         * stack.c: Likewise.
724         * stap-probe.c: Likewise.
725         * symfile-mem.c: Likewise.
726         * symmisc.c: Likewise.
727         * target.c: Likewise.
728         * thread.c: Likewise.
729         * top.c: Likewise.
730         * tracepoint.c: Likewise.
731         * tui/tui-interp.c: Likewise.
732         * typeprint.c: Likewise.
733         * utils.c: Likewise.
734         * valarith.c: Likewise.
735         * valops.c: Likewise.
736         * valprint.c: Likewise.
737         * value.c: Likewise.
738         * varobj.c: Likewise.
739         * windows-nat.c: Likewise.
740         * xml-support.c: Likewise.
741
742 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
743
744         * mips-tdep.c (add_offset_16): Rewrite to implement what the
745         name implies.
746         (extended_mips16_next_pc): Update accordingly.
747
748 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
749
750         * mips-tdep.c (mips16_instruction_is_compact_branch): New
751         function.
752         (micromips_instruction_is_compact_branch): Likewise.
753         (mips16_scan_prologue): Terminate scanning upon seeing a branch
754         or a compact jump, reaching a jump delay slot, or seeing a
755         second non-prologue instruction.
756         (micromips_scan_prologue): Also terminate scanning upon seeing a
757         compact branch or jump, or reaching a branch or jump delay slot.
758         (mips32_scan_prologue): Terminate scanning upon reaching a branch
759         or jump delay slot, or seeing a second non-prologue instruction.
760         (mips32_instruction_has_delay_slot): Retain instruction
761         examination code only, update arguments accordingly and move
762         instruction fetch pieces to...
763         (mips32_insn_at_pc_has_delay_slot): ... this new function.
764         (micromips_instruction_has_delay_slot): Likewise and to...
765         (micromips_insn_at_pc_has_delay_slot): ... this new function.
766         (mips16_instruction_has_delay_slot): Likewise and to...
767         (mips16_insn_at_pc_has_delay_slot): ... this new function.
768         (mips_single_step_through_delay): Update accordingly.
769         (mips_adjust_breakpoint_address): Likewise.
770
771 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
772
773         * mips-tdep.c (micromips_instruction_has_delay_slot): When
774         !mustbe32 also return 1 for 32-bit instructions.
775         (mips16_instruction_has_delay_slot): Likewise.  Add an
776         explanatory comment.
777
778 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
779
780         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
781         symbols special.
782
783 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
784
785         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
786         update comments.
787         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
788         for the breakpoint's address.  Don't preinitialize `placed_size'.
789         (insert_bp_location): Set `reqstd_address' rather than
790         `placed_address'.
791         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
792         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
793         address.
794         (bkpt_remove_location): Likewise.
795         (deprecated_insert_raw_breakpoint): Likewise.
796         (deprecated_remove_raw_breakpoint): Likewise.
797         (find_single_step_breakpoint): Likewise.
798         * mem-break.c (default_memory_insert_breakpoint): Use
799         `reqstd_address' for the breakpoint's address.  Don't set
800         `placed_address' or `placed_size' if breakpoint contents couldn't
801         have been determined.
802         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
803         the breakpoint's address.
804         (remote_insert_hw_breakpoint): Likewise.  Don't set
805         `placed_address' or `placed_size' if breakpoint couldn't have been
806         set.
807         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
808         `reqstd_address' for the breakpoint's address.
809         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
810         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
811         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
812         * microblaze-linux-tdep.c
813         (microblaze_linux_memory_remove_breakpoint): Likewise.
814         * monitor.c (monitor_insert_breakpoint): Likewise.
815         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
816         (procfs_insert_hw_breakpoint): Likewise.
817         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
818         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
819         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
820         * remote-mips.c (mips_insert_breakpoint): Likewise.
821         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
822
823 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
824
825         * valops.c (value_assign): Check for bit field assignments
826         before calling architecture-specific register value
827         conversion functions.
828
829 2014-10-03  Pierre Muller  <muller@sourceware.org>
830
831         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
832
833 2014-10-02  Pedro Alves  <palves@redhat.com>
834
835         * breakpoint.c (breakpoints_should_be_inserted_now): Use
836         threads_are_executing.
837         * breakpoint.h (breakpoints_should_be_inserted_now): Add
838         describing comment.
839         * gdbthread.h (threads_are_executing): Declare.
840         (handle_signal_stop) <random signals>: Don't print about the
841         signal here if stopping.
842         (end_stepping_range): Don't notify observers here.
843         (normal_stop): Update the thread list.  If stopped by a random
844         signal or a stepping range ended, notify observers.
845         * thread.c (threads_executing): New global.
846         (init_thread_list): Clear 'threads_executing'.
847         (set_executing): Set or clear 'threads_executing'.
848         (threads_are_executing): New function.
849         (update_threads_executing): New function.
850         (update_thread_list): Use it.
851
852 2014-10-02  Pedro Alves  <palves@redhat.com>
853
854         PR breakpoints/17431
855         * breakpoint.c (update_breakpoints_after_exec): Don't create
856         overlay, longjmp, std terminate nor exception breakpoints here.
857
858 2014-10-02  Pedro Alves  <palves@redhat.com>
859
860         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
861         Adjust comments.
862         * inferior.c (find_inferior_for_program_space): Give preference to
863         the current inferior.
864         * inferior.h (find_inferior_for_program_space): Update comment.
865         * progspace.c (switch_to_program_space_and_thread): Prefer the
866         current inferior if it's bound to the program space requested.  If
867         the inferior found doesn't have a PID yet, don't bother looking up
868         a thread.
869         * progspace.h (switch_to_program_space_and_thread): Adjust
870         comment.
871         * thread.c (any_thread_of_process, any_live_thread_of_process):
872         Give preference to the current thread.
873
874 2014-10-01  Pedro Alves  <palves@redhat.com>
875
876         * breakpoint.c (insert_bp_location): Error out if inserting a
877         software breakpoint at a read-only address.
878         * target.c (memory_xfer_check_region): New function, factored out
879         from ...
880         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
881         ULONGEST.
882         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
883         against the memory region attributes.
884
885 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
886
887         * NEWS: Announce new exit-code field in -list-thread-groups
888         output.
889         * inferior.c (exit_inferior_1): Don't clear exit code.
890         (inferior_appeared): Clear exit code.
891         * mi/mi-main.c (print_one_inferior): Add printing of the exit
892         code.
893
894 2014-10-01  Pedro Alves  <palves@redhat.com>
895
896         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
897         GENERATED" along with emacs/vi read-only markers.
898         * regformats/aarch64.dat: Regenerate.
899         * regformats/arm-with-iwmmxt.dat: Regenerate.
900         * regformats/arm-with-neon.dat: Regenerate.
901         * regformats/arm-with-vfpv2.dat: Regenerate.
902         * regformats/arm-with-vfpv3.dat: Regenerate.
903         * regformats/i386/amd64-avx-linux.dat: Regenerate.
904         * regformats/i386/amd64-avx.dat: Regenerate.
905         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
906         * regformats/i386/amd64-avx512.dat: Regenerate.
907         * regformats/i386/amd64-linux.dat: Regenerate.
908         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
909         * regformats/i386/amd64-mpx.dat: Regenerate.
910         * regformats/i386/amd64.dat: Regenerate.
911         * regformats/i386/i386-avx-linux.dat: Regenerate.
912         * regformats/i386/i386-avx.dat: Regenerate.
913         * regformats/i386/i386-avx512-linux.dat: Regenerate.
914         * regformats/i386/i386-avx512.dat: Regenerate.
915         * regformats/i386/i386-linux.dat: Regenerate.
916         * regformats/i386/i386-mmx-linux.dat: Regenerate.
917         * regformats/i386/i386-mmx.dat: Regenerate.
918         * regformats/i386/i386-mpx-linux.dat: Regenerate.
919         * regformats/i386/i386-mpx.dat: Regenerate.
920         * regformats/i386/i386.dat: Regenerate.
921         * regformats/i386/x32-avx-linux.dat: Regenerate.
922         * regformats/i386/x32-avx.dat: Regenerate.
923         * regformats/i386/x32-avx512-linux.dat: Regenerate.
924         * regformats/i386/x32-avx512.dat: Regenerate.
925         * regformats/i386/x32-linux.dat: Regenerate.
926         * regformats/i386/x32.dat: Regenerate.
927         * regformats/microblaze-with-stack-protect.dat: Regenerate.
928         * regformats/mips-dsp-linux.dat: Regenerate.
929         * regformats/mips-linux.dat: Regenerate.
930         * regformats/mips64-dsp-linux.dat: Regenerate.
931         * regformats/mips64-linux.dat: Regenerate.
932         * regformats/nios2-linux.dat: Regenerate.
933         * regformats/rs6000/powerpc-32.dat: Regenerate.
934         * regformats/rs6000/powerpc-32l.dat: Regenerate.
935         * regformats/rs6000/powerpc-64l.dat: Regenerate.
936         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
937         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
938         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
939         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
940         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
941         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
942         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
943         * regformats/s390-linux32.dat: Regenerate.
944         * regformats/s390-linux32v1.dat: Regenerate.
945         * regformats/s390-linux32v2.dat: Regenerate.
946         * regformats/s390-linux64.dat: Regenerate.
947         * regformats/s390-linux64v1.dat: Regenerate.
948         * regformats/s390-linux64v2.dat: Regenerate.
949         * regformats/s390-te-linux64.dat: Regenerate.
950         * regformats/s390x-linux64.dat: Regenerate.
951         * regformats/s390x-linux64v1.dat: Regenerate.
952         * regformats/s390x-linux64v2.dat: Regenerate.
953         * regformats/s390x-te-linux64.dat: Regenerate.
954         * regformats/tic6x-c62x-linux.dat: Regenerate.
955         * regformats/tic6x-c62x.dat: Regenerate.
956         * regformats/tic6x-c64x-linux.dat: Regenerate.
957         * regformats/tic6x-c64x.dat: Regenerate.
958         * regformats/tic6x-c64xp-linux.dat: Regenerate.
959         * regformats/tic6x-c64xp.dat: Regenerate.
960
961 2014-10-01  Pedro Alves  <palves@redhat.com>
962
963         * features/Makefile: Update comments.
964         (XMLTOC): List all xml files we build C files from.
965         (clean-cfiles): New rule.
966
967 2014-10-01  Pedro Alves  <palves@redhat.com>
968
969         * features/i386/amd64-avx512-linux.c: Regenerate.
970         * features/i386/amd64-avx512.c: Regenerate.
971         * features/i386/x32-avx512-linux.c: Regenerate.
972         * features/i386/x32-avx512.c: Regenerate.
973
974 2014-10-01  Pedro Alves  <palves@redhat.com>
975
976         * features/Makefile (WHICH): Remove arm-with-m,
977         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
978
979 2014-10-01  Pedro Alves  <palves@redhat.com>
980
981         * features/Makefile (clean): New rule.
982
983 2014-10-01  Pedro Alves  <palves@redhat.com>
984
985         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
986         (zmm14h): Add missing end quotes.
987
988 2014-10-01  Pedro Alves  <palves@redhat.com>
989
990         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
991         * features/aarch64.c: Regenerate.
992
993 2014-09-30  Don Breazeal  <donb@codesourcery.com>
994
995         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
996         code so as to work with follow_fork_inferior.
997         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
998         (inf_ttrace_create_inferior): Remove reference to
999         inf_ttrace_vfork_ppid.
1000         (inf_ttrace_attach): Ditto.
1001         (inf_ttrace_detach): Ditto.
1002         (inf_ttrace_kill): Use current_inferior instead of
1003         inf_ttrace_vfork_ppid.
1004         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1005         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1006         inferior away from the parent.
1007         * infrun.c (follow_fork): Call follow_fork_inferior instead of
1008         target_follow_fork.
1009         (follow_fork_inferior): New function.
1010         (follow_inferior_reset_breakpoints): Make function static.
1011         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1012         * linux-nat.c (linux_child_follow_fork): Move target-independent
1013         code to infrun.c:follow_fork_inferior.
1014
1015 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1016
1017         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1018         * gdbarch.c: Regenerate.
1019         * gdbarch.h: Likewise.
1020         * corelow.c (sniff_core_bfd): Drop presence check for deleted
1021         gdbarch method 'regset_from_core_section'.
1022         (get_core_register_section): Remove handling for the case that
1023         regset == NULL and regset_from_core_section is defined.
1024         (get_core_registers): Drop check for deleted method.
1025         * procfs.c (procfs_do_thread_registers): Adjust comment.
1026
1027 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1028
1029         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1030         (linux_nat_make_corefile_notes): Remove.
1031         (linux_target_install_ops): Do not set target method
1032         'make_corefile_notes'.
1033         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1034         Remove field.
1035         (linux_corefile_thread_callback): Instead of args->collect, call
1036         linux_collect_thread_registers.
1037         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
1038         NULL unless there is a regset iterator.
1039         (linux_make_corefile_notes_1): Remove.
1040         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1041         by linux_make_corefile_notes.
1042         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1043
1044 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1045
1046         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1047         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1048         Remove.
1049         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1050
1051 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1052
1053         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1054         (xtensa_iterate_over_regset_sections): New.
1055         (xtensa_gdbarch_init): Adjust gdbarch initialization.
1056
1057 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1058
1059         * vax-tdep.c (vax_regset_from_core_section): Remove.
1060         (vax_iterate_over_regset_sections): New.
1061         (vax_gdbarch_init): Adjust gdbarch initialization.
1062
1063 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1064
1065         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1066         (tilegx_regset_from_core_section): Remove.
1067         (tilegx_iterate_over_regset_sections): New.
1068         (tilegx_linux_init_abi): Adjust gdbarch initialization.
1069
1070 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1071
1072         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1073         (sparc_iterate_over_regset_sections): New.
1074         (sparc32_gdbarch_init): Adjust gdbarch initialization.
1075         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1076         targets.
1077         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1078         (sparc64fbsd_init_abi): Call fbsd_init_abi.
1079         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1080         target method 'make_corefile_notes'.
1081
1082 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1083
1084         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1085         'sizeof_gregset' and 'sizeof_fpregset'.
1086         * sh-tdep.c (sh_regset_from_core_section): Remove.
1087         (sh_iterate_over_regset_sections): New.
1088         (sh_gdbarch_init): Adjust gdbarch initialization.
1089         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1090         sizeof_fpregset.
1091         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1092         'sizeof_gregset'.
1093
1094 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1095
1096         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1097         (score7_linux_iterate_over_regset_sections): New.
1098         (score_gdbarch_init): Adjust gdbarch initialization.
1099
1100 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1101
1102         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1103         FreeBSD targets.
1104         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1105         method 'make_corefile_notes'.
1106         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1107         (ppcfbsd_regset_from_core_section): Remove.
1108         (ppcfbsd_iterate_over_regset_sections): New.
1109         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
1110         initialization.
1111         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1112         (ppcnbsd_iterate_over_regset_sections): New.
1113         (ppcnbsd_init_abi): Adjust.
1114         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1115         (ppcobsd_iterate_over_regset_sections): New.
1116         (ppcobsd_init_abi): Adjust.
1117         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1118         (rs6000_aix_iterate_over_regset_sections): New.
1119         (rs6000_aix_init_osabi): Adjust.
1120
1121 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1122
1123         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1124         (nios2_regset_from_core_section): Remove.
1125         (nios2_iterate_over_regset_sections): New.
1126         (nios2_linux_init_abi): Adjust gdbarch initialization.
1127
1128 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1129
1130         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1131         (am33_iterate_over_regset_sections): New.
1132         (am33_linux_init_osabi): Adjust gdbarch initialization.
1133
1134 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1135
1136         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1137         (mips_linux_iterate_over_regset_sections): New.
1138         (mips_linux_init_abi): Adjust gdbarch initialization.
1139         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1140         (mips64obsd_iterate_over_regset_sections): New.
1141         (mips64obsd_init_abi): Adjust.
1142         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1143         (mipsnbsd_iterate_over_regset_sections): New.
1144         (mipsnbsd_init_abi): Adjust.
1145
1146 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1147
1148         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1149         (m88k_iterate_over_regset_sections): New.
1150         (m88k_gdbarch_init): Adjust gdbarch initialization.
1151
1152 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1153
1154         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1155         (ia64_linux_iterate_over_regset_sections): New.
1156         (ia64_linux_init_abi): Adjust gdbarch initialization.
1157
1158 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1159
1160         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1161         (m68kbsd_iterate_over_regset_sections): New.
1162         (m68kbsd_init_abi): Adjust gdbarch initialization.
1163         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1164         (m68k_linux_iterate_over_regset_sections): New.
1165         (m68k_linux_init_abi): Adjust gdbarch initialization.
1166
1167 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1168
1169         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1170         (m32r_linux_regset_from_core_section): Remove.
1171         (m32r_linux_iterate_over_regset_sections): New.
1172         (m32r_linux_init_abi): Adjust gdbarch initialization.
1173
1174 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1175
1176         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1177         (amd64obsd_iterate_over_regset_sections): New.
1178         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1179         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1180         Remove.
1181         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
1182         regset_from_core_section initialization.
1183         * i386-tdep.c (i386_regset_from_core_section): Remove.
1184         (i386_iterate_over_regset_sections): New.
1185         (i386_gdbarch_init): Adjust gdbarch initialization.
1186         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1187         (i386_iterate_over_regset_sections): New prototype.
1188         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1189         Remove.
1190         (i386obsd_aout_iterate_over_regset_sections): New.
1191         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1192         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1193         targets.
1194         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1195         (amd64fbsd_init_abi): Call fbsd_init_abi.
1196         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1197         (i386fbsd4_init_abi): Call fbsd_init_abi.
1198         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1199         target method 'make_corefile_notes'.
1200         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1201
1202 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1203
1204         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1205         (hppa_hpux_iterate_over_regset_sections): New.
1206         (hppa_hpux_init_abi): Adjust gdbarch initialization.
1207         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1208         (hppa_linux_iterate_over_regset_sections): New.
1209         (hppa_linux_init_abi): Adjust.
1210         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1211         (hppanbsd_iterate_over_regset_sections): New.
1212         (hppanbsd_init_abi): Adjust.
1213         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1214         (hppaobsd_iterate_over_regset_sections): New.
1215         (hppaobsd_init_abi): Adjust.
1216
1217 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1218
1219         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1220         (frv_linux_iterate_over_regset_sections): New.
1221         (frv_linux_init_abi): Adjust gdbarch initialization.
1222
1223 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1224
1225         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1226         (armbsd_iterate_over_regset_sections): New prototype.
1227         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1228         (armbsd_iterate_over_regset_sections): New.
1229         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1230         initialization.
1231
1232 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1233
1234         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1235         (alpha_linux_iterate_over_regset_sections): New.
1236         (alpha_linux_init_abi): Adjust gdbarch initialization.
1237         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1238         prototype.
1239         (alphanbsd_iterate_over_regset_sections): New prototype.
1240
1241 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1242
1243         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1244         Remove.
1245         (aarch64_linux_iterate_over_regset_sections): New.
1246         (aarch64_linux_init_abi): Adjust gdbarch initialization.
1247
1248 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1249
1250         * fbsd-tdep.c: New file.
1251         * fbsd-tdep.h: New file.
1252         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1253         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1254         (ALLDEPFILES): Add fbsd-tdep.c.
1255
1256 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1257
1258         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1259         parameter.
1260         * gdbarch.h: Regenerate.
1261         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1262         iterator.
1263         (get_core_register_section): Add parameter 'regset' and use it, if
1264         set.  Add parameter 'min_size' and verify the bfd section size
1265         against it.
1266         (get_core_registers_cb): Add parameter 'regset' and pass it to
1267         get_core_register section.  For the "standard" register sections
1268         ".reg" and ".reg2", set an appropriate default for human_name.
1269         (get_core_registers): Don't abort when the gdbarch has an iterator
1270         but no regset_from_core_section.  Add NULL/0 for parameters
1271         'regset'/'min_size' in calls to get_core_register_section.
1272         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1273         'regset' and use it instead of calling the
1274         regset_from_core_section gdbarch method.
1275         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1276         * i386-tdep.c (i386_supply_xstateregset)
1277         (i386_collect_xstateregset, i386_xstateregset): Moved to
1278         i386-linux-tdep.c.
1279         (i386_regset_from_core_section): Drop handling for .reg-xfp and
1280         .reg-xstate.
1281         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
1282         core file support only if the regset iterator hasn't been set.
1283         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1284         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1285         Moved from i386-tdep.c and renamed to *_linux*.
1286         (i386_linux_iterate_over_regset_sections): Add regset parameter to
1287         each callback invocation.  Allow any .reg-xstate size when reading
1288         from a core file.
1289         * amd64-tdep.c (amd64_supply_xstateregset)
1290         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1291         amd64-linux-tdep.c.
1292         (amd64_regset_from_core_section): Remove.
1293         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
1294         install an amd64-specific regset_from_core_section gdbarch method.
1295         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1296         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1297         Moved from amd64-tdep.c and renamed to *_linux*.
1298         (amd64_linux_iterate_over_regset_sections): Add regset parameter
1299         to each callback invocation.  Allow any .reg-xstate size when
1300         reading from a core file.
1301         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1302         (arm_linux_iterate_over_regset_sections): Add regset parameter to
1303         each callback invocation.
1304         (arm_linux_init_abi): No longer set the regset_from_core_section
1305         gdbarch method.
1306         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1307         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1308         each callback invocation.
1309         (ppc_linux_init_abi): No longer set the regset_from_core_section
1310         gdbarch method.
1311         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1312         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1313         (s390_regset_from_core_section): Remove.
1314         (s390_iterate_over_regset_sections): Add regset parameter to each
1315         callback invocation.
1316         (s390_gdbarch_init): No longer set the regset_from_core_section
1317         gdbarch method.  Drop initialization of deleted tdep fields.
1318
1319 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1320
1321         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1322         (amd64_linux_iterate_over_regset_sections): New.
1323         (amd64_linux_init_abi_common): Don't install the regset section
1324         list, but the new iterator in gdbarch.
1325         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1326         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
1327         (arm_linux_iterate_over_regset_sections): ...here.  New function.
1328         (arm_linux_init_abi): Set iterator instead of section list.
1329         * corelow.c (get_core_registers_cb): New function, logic moved
1330         from...
1331         (get_core_registers): ...loop body here.  Use new iterator method
1332         instead of walking through the regset section list.
1333         * gdbarch.sh: Remove 'core_regset_sections'.  New method
1334         'iterate_over_regset_sections'.  New typedef
1335         'iterate_over_regset_sections_cb'.
1336         * gdbarch.c: Regenerate.
1337         * gdbarch.h: Likewise.
1338         * i386-linux-tdep.c (i386_linux_regset_sections)
1339         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1340         Remove.
1341         (i386_linux_iterate_over_regset_sections): New.
1342         (i386_linux_init_abi): Don't choose a regset section list, but
1343         install new iterator in gdbarch.
1344         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1345         (linux_collect_regset_section_cb): New function, logic moved
1346         from...
1347         (linux_collect_thread_registers): ...loop body here.  Use iterator
1348         method instead of walking through list.
1349         (linux_make_corefile_notes_1): Check for presence of iterator
1350         method instead of regset section list.
1351         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1352         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1353         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1354         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
1355         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
1356         (ppc_linux_init_abi): Don't choose from above regset section
1357         lists, but install new iterator in gdbarch.
1358         * regset.h (struct core_regset_section): Remove.
1359         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1360         have_linux_v1, have_linux_v2, and have_tdb.
1361         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1362         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1363         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1364         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1365         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
1366         (s390_iterate_over_regset_sections): ...here.  New function.  Use
1367         new tdep fields.
1368         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
1369         regset section lists, but install new iterator.
1370
1371 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1372
1373         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1374
1375 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
1376
1377         * progspace.c (print_program_space): Don't prune program spaces
1378         before printing them.
1379
1380 2014-09-25  Pedro Alves  <palves@redhat.com>
1381
1382         * infrun.c (user_visible_resume_ptid): Don't check
1383         singlestep_breakpoints_inserted_p.
1384
1385 2014-09-25  Pedro Alves  <palves@redhat.com>
1386
1387         * breakpoint.c (should_be_inserted): Add debug output.
1388
1389 2014-09-25  Pedro Alves  <palves@redhat.com>
1390
1391         * infrun.c (stepping_past_instruction_at)
1392         (clear_exit_convenience_vars): Point at infrun.h instead of
1393         inferior.h.
1394         (handle_signal_stop): Fix typo.
1395
1396 2014-09-24  Yao Qi  <yao@codesourcery.com>
1397
1398         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1399         bitmask.
1400
1401 2014-09-22  Gary Benson  <gbenson@redhat.com>
1402
1403         * target.c (target_stop): Updated comment.
1404
1405 2014-09-22  Gary Benson  <gbenson@redhat.com>
1406
1407         * target/target.h (target_stop_ptid): Renamed as...
1408         (target_stop_and_wait): New function.  Updated comment.
1409         All uses updated.
1410         (target_continue_ptid): Renamed as...
1411         (target_continue_no_signal): New function.  Updated comment.
1412         All uses updated.
1413
1414 2014-09-22  Pedro Alves  <palves@redhat.com>
1415
1416         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1417         and "auto" merged.
1418         * breakpoint.c (enum ugll_insert_mode): New enum.
1419         (always_inserted_mode): Now a plain boolean.
1420         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1421         (breakpoints_always_inserted_mode): Delete.
1422         (breakpoints_should_be_inserted_now): New function.
1423         (insert_breakpoints): Pass UGLL_INSERT to
1424         update_global_location_list instead of calling
1425         insert_breakpoint_locations manually.
1426         (create_solib_event_breakpoint_1): New, factored out from ...
1427         (create_solib_event_breakpoint): ... this.
1428         (create_and_insert_solib_event_breakpoint): Use
1429         create_solib_event_breakpoint_1 instead of calling
1430         insert_breakpoint_locations manually.
1431         (update_global_location_list): Change parameter type from boolean
1432         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1433         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1434         (update_global_location_list_nothrow): Change parameter type from
1435         boolean to enum ugll_insert_mode.
1436         (_initialize_breakpoint): "breakpoint always-inserted" option is
1437         now a boolean command.  Update help text.
1438         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1439         (breakpoints_should_be_inserted_now): New declaration.
1440         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1441         Remove breakpoints_always_inserted_mode check.
1442         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1443         * remote.c (remote_start_remote): Likewise.
1444
1445 2014-09-22  Pedro Alves  <palves@redhat.com>
1446
1447         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1448         (insert_breakpoints): Don't call insert_breakpoint_locations here.
1449         Instead, pass UGLL_INSERT to update_global_location_list.
1450         (update_global_location_list): Change parameter type from boolean
1451         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1452         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1453         (create_solib_event_breakpoint_1): New, factored out from ...
1454         (create_solib_event_breakpoint): ... this.
1455         (create_and_insert_solib_event_breakpoint): Use
1456         create_solib_event_breakpoint_1 instead of calling
1457         insert_breakpoint_locations manually.
1458         (update_global_location_list): Handle UGLL_INSERT.
1459
1460 2014-09-22  Pedro Alves  <palves@redhat.com>
1461
1462         * breakpoint.c (enum ugll_insert_mode): New enum.
1463         (update_global_location_list)
1464         (update_global_location_list_nothrow): Change parameter type from
1465         boolean to enum ugll_insert_mode.  All callers adjusted.
1466
1467 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
1468
1469         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1470         SystemTap support in GDB.
1471
1472 2014-09-19  Don Breazeal  <donb@codesourcery.com>
1473
1474         * linux-nat.c (linux_handle_extended_wait): Call
1475         linux_ptrace_get_extended_event.
1476         (wait_lwp): Call linux_is_extended_waitstatus.
1477         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1478         and linux_is_extended_waitstatus.
1479         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1480         linux_ptrace_get_extended_event.
1481         (linux_ptrace_get_extended_event): New function.
1482         (linux_is_extended_waitstatus): New function.
1483         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1484         (linux_is_extended_waitstatus): New declarations.
1485
1486 2014-09-19  Yao Qi  <yao@codesourcery.com>
1487
1488         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1489         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
1490         comments.  Callers update.
1491         (dwarf_decode_lines): Likewise.
1492         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
1493         comments.  Skip the line table if  'lowpc' is greater than
1494         'address'.  Don't check
1495         dwarf2_per_objfile->has_section_at_zero.
1496
1497 2014-09-18  Doug Evans  <dje@google.com>
1498
1499         * NEWS: Mention new "producer" attribute of gdb.Symtab.
1500         * python/py-symtab.c (stpy_get_producer): New function.
1501         (symtab_object_getset): Add "producer" attribute.
1502
1503 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
1504
1505         PR gdb/17384
1506         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1507         (do_captured_read_memory_integer): Remove.
1508         (safe_read_memory_integer): Use target_read_memory directly instead
1509         of catching errors in do_captured_read_memory_integer.
1510
1511 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
1512
1513         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1514         not gdb/doc.
1515
1516 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1517
1518         * objc-lang.c (find_implementation_from_class): Remove dead code.
1519
1520 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1521
1522         PR cli/7233
1523         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1524         "fprintf_unfiltered (gdb_stdlog...)".
1525
1526 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
1527
1528         PR breakpoints/12526
1529         * breakpoint.h (struct watchpoint): New fields val_bitpos and
1530         val_bitsize.
1531         * breakpoint.c (watch_command_1): Use these fields to retain
1532         bitfield information.
1533         (extract_bitfield_from_watchpoint_value): New function.
1534         (watchpoint_check): Use it.
1535         (update_watchpoint): Use it.  Optimize the address and length of a
1536         HW watchpoint pointing to a bitfield.
1537         * value.h (unpack_value_bitfield): New prototype.
1538         * value.c (unpack_value_bitfield): Make extern.
1539
1540 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1541
1542         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1543         x86-dregs.o.
1544         * gnu-nat.c (inf_threads): New function.
1545         * gnu-nat.h (inf_threads_ftype): New typedef.
1546         (inf_threads): New declaration.
1547         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1548         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1549         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1550         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1551         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1552         (i386_gnu_dr_get_control): New functions.
1553         (reg_addr): New structure.
1554         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1555         i386 debugging register hooks.
1556         * NEWS: Mention this.
1557
1558 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1559
1560         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1561         vector data transfer instructions.
1562         (arm_record_coproc_data_proc): Updated.
1563
1564 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1565
1566         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1567         arm_record_exreg_ld_st_insn.
1568         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1569         load/store insns.
1570
1571 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1572
1573         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1574         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1575         processing instructions.
1576
1577 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1578
1579         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1580         for advance SIMD struct ld/st insn.
1581         (thumb2_record_decode_insn_handler): Replace stub handler with
1582         thumb2_record_asimd_struct_ld_st.
1583
1584 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1585
1586         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1587         for asimd, vfp and coprocessor insns.
1588         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1589         and coprocessor insns.
1590         (thumb2_record_coproc_insn): New function.
1591         (thumb2_record_decode_insn_handler): Update coprocessor insns record
1592         handlers.
1593         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1594         opcode 110 insns.
1595
1596 2014-09-13  Doug Evans  <xdje42@gmail.com>
1597
1598         * NEWS: Mention new "queue-signal" command.
1599         * infcmd.c (queue_signal_command): New function.
1600         (_initialize_infcmd): Add new queue-signal command.
1601
1602 2014-09-13  Doug Evans  <xdje42@gmail.com>
1603
1604         * linux-nat.c (wait_lwp): Add debugging printf.
1605         (linux_nat_wait_1): Ditto.
1606
1607 2014-09-12  Pedro Alves  <palves@redhat.com>
1608
1609         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1610         (create_and_insert_solib_event_breakpoint): New functions.
1611         * breakpoint.h (create_and_insert_solib_event_breakpoint)
1612         (remove_solib_event_breakpoints_at_next_stop): New declarations.
1613         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1614         (remove_dbx_link_breakpoint): Delete function.
1615         (insert_dbx_link_bpt_in_file): Use
1616         create_and_insert_solib_event_breakpoint instead of
1617         deprecated_insert_raw_breakpoint.
1618         (procfs_wait): Don't check whether we hit __dbx_link here.
1619         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1620         here.
1621         * solib-irix.c (base_breakpoint): Delete global.
1622         (disable_break): Delete function.
1623         (enable_break): Use create_solib_event_breakpoint
1624         instead of deprecated_insert_raw_breakpoint.
1625         (irix_solib_handle_event): New function.
1626         (irix_solib_create_inferior_hook): Don't run the target or disable
1627         the mapping-complete breakpoint here.
1628         (_initialize_irix_solib): Install irix_solib_handle_event as
1629         so_ops->handle_event hook.
1630
1631 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1632             Ulrich Weigand  <uweigand@de.ibm.com>
1633
1634         PR tdep/17379
1635         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1636         instead of read_memory_unsigned_integer.
1637
1638 2014-09-12  Gary Benson  <gbenson@redhat.com>
1639
1640         * nat/linux-waitpid.c: Include common-defs.h.
1641         [GDBSERVER]: Add FIXME comment.
1642         [!GDBSERVER]: Don't include defs.h or signal.h.
1643         (linux_debug) [!GDBSERVER]: Remove empty block.
1644
1645 2014-09-12  Gary Benson  <gbenson@redhat.com>
1646
1647         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1648         Don't include defs.h or server.h.
1649
1650 2014-09-12  Gary Benson  <gbenson@redhat.com>
1651
1652         * nat/linux-btrace.c: Include common-defs.h.
1653         Don't include defs.h, server.h or gdbthread.h.
1654         * nat/linux-btrace.h (struct target_ops): New forward declaration.
1655
1656 2014-09-12  Gary Benson  <gbenson@redhat.com>
1657
1658         * common/agent.c: Include common-defs.h.
1659         Don't include defs.h or server.h.
1660         * common/buffer.c: Likewise.
1661         * common/common-debug.c: Likewise.
1662         * common/common-utils.c: Likewise.
1663         * common/errors.c: Likewise.
1664         * common/filestuff.c: Likewise.
1665         * common/format.c: Likewise.
1666         * common/gdb_vecs.c: Likewise.
1667         * common/print-utils.c: Likewise.
1668         * common/ptid.c: Likewise.
1669         * common/rsp-low.c: Likewise.
1670         * common/signals.c: Likewise.
1671         * common/vec.c: Likewise.
1672         * common/xml-utils.c: Likewise.
1673         * nat/linux-osdata.c: Likewise.
1674         * nat/linux-procfs.c: Likewise.
1675         * nat/linux-ptrace.c: Likewise.
1676         * nat/mips-linux-watch.c: Likewise.
1677         * target/waitstatus.c: Likewise.
1678
1679 2014-09-12  Tom Tromey  <tromey@redhat.com>
1680             Gary Benson  <gbenson@redhat.com>
1681
1682         * common/common-regcache.h: New file.
1683         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1684         * regcache.h: Include common-regcache.h.
1685         (regcache_read_pc): Don't declare.
1686         * regcache.c (get_thread_regcache_for_ptid): New function.
1687         * nat/linux-btrace.c: Don't include regcache.h.
1688         Include common-regcache.h.
1689         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1690
1691 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
1692
1693         * regcache.h (struct regset): Declare.
1694
1695 2014-09-11  Pedro Alves  <palves@redhat.com>
1696
1697         PR gdb/17347
1698         * main.c: Include "infrun.h".
1699         (catch_command_errors, catch_command_errors_const): Wait for the
1700         foreground command to complete.
1701         * top.c (maybe_wait_sync_command_done): New function, factored out
1702         from ...
1703         (maybe_wait_sync_command_done): ... here.
1704         * top.h (maybe_wait_sync_command_done): New declaration.
1705
1706 2014-09-11  Tom Tromey  <tromey@redhat.com>
1707             Gary Benson  <gbenson@redhat.com>
1708
1709         * common/symbol.h: New file.
1710         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1711         * minsyms.c (find_minimal_symbol_address): New function.
1712         * common/agent.c: Include common/symbol.h.
1713         [!GDBSERVER]: Don't include objfiles.h.
1714         (agent_look_up_symbols): Use find_minimal_symbol_address.
1715
1716 2014-09-11  Gary Benson  <gbenson@redhat.com>
1717
1718         * target/target.h (target_stop_ptid, target_continue_ptid):
1719         Declare.
1720         * target.c (target_stop_ptid, target_continue_ptid): New
1721         functions.
1722         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1723         (agent_run_command): Always use target_stop_ptid and
1724         target_continue_ptid.
1725
1726 2014-09-11  Tom Tromey  <tromey@redhat.com>
1727             Gary Benson  <gbenson@redhat.com>
1728
1729         * target/target.h: New file.
1730         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1731         * target.h: Include target/target.h.
1732         (target_read_memory, target_write_memory): Don't declare.
1733         * target.c (target_read_uint32): New function.
1734         * common/agent.c: Include target/target.h.
1735         [!GDBSERVER]: Don't include target.h.
1736         (helper_thread_id): Type changed to uint32_t.
1737         (agent_get_helper_thread_id): Use target_read_uint32.
1738         (agent_run_command): Always use target_read_memory and
1739         target_write_memory.
1740         (agent_capability): Type changed to uint32_t.
1741         (agent_capability_check): Use target_read_uint32.
1742
1743 2014-09-11  Gary Benson  <gbenson@redhat.com>
1744
1745         * common/common-debug.h (show_debug_regs): Declare.
1746         * common/common-debug.c (show_debug_regs): Define.
1747         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
1748         all uses with show_debug_regs.  Replace all uses that considered
1749         debug_hw_points as a multi-value integer with straight boolean
1750         uses.
1751         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
1752         with show_debug_regs.
1753         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
1754         all uses with show_debug_regs.
1755         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
1756         uses with show_debug_regs.
1757
1758 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1759
1760         * findvar.c (address_from_register): Handle targets requiring
1761         a special conversion routine even for plain pointer types.
1762
1763 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1764
1765         * rs6000-nat.c (exec_one_dummy_insn): Remove.
1766         (store_register): Do not call exec_one_dummy_insn.
1767
1768 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1769
1770         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1771         dereference it first.  Use value_enclosing_type instead of
1772         value_type.
1773         (ada_array_length): Likewise.
1774
1775 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1776
1777         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1778         Adjust function implementation and documentation accordingly.
1779         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1780         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1781         Update call to ada_value_ptr_subscript.
1782
1783 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1784
1785         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1786         instead of VAL's type.
1787
1788 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1789
1790         * amd64-linux-nat.c: Add <sys/uio.h> #include.
1791
1792 2014-09-09  Doug Evans  <xdje42@gmail.com>
1793
1794         PR guile/17367
1795         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1796         last parameter to pkg-config, not first.
1797         * configure.ac: Pass --with-guile provided pkg-config path to
1798         GDB_GUILE_PROGRAM_NAMES.
1799         * configure: Regenerate.
1800
1801 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1802
1803         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1804         Bertazi".
1805
1806 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
1807
1808         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1809         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1810         the list of sections determining GDB_OSABI_IRIX.
1811
1812 2014-09-09  James Hogan  <james.hogan@imgtec.com>
1813
1814         * MAINTAINERS (Write After Approval): Add "James Hogan".
1815
1816 2014-09-09  James Hogan  <james.hogan@imgtec.com>
1817
1818         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1819
1820 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
1821
1822         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1823
1824 2014-09-08  Doug Evans  <xdje42@gmail.com>
1825
1826         PR 17247
1827         * guile.c: #include <signal.h>.
1828         (_initialize_guile): Block SIGCHLD while initializing Guile.
1829
1830         Replaces the following, which is reverted.
1831
1832         2014-07-26  Doug Evans  <xdje42@gmail.com>
1833
1834         PR 17185
1835         * configure.ac: Add check for header gc/gc.h.
1836         Add check for function setenv.
1837         * configure: Regenerate.
1838         * config.in: Regenerate.
1839         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1840
1841 2014-09-08  Doug Evans  <xdje42@gmail.com>
1842
1843         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1844         with named constant.  Fix style of pointer comparison.
1845         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1846
1847 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1848
1849         PR gdb/17035
1850         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1851         decide whether we display the command on "show user".
1852         * cli/cli-script.c (show_user_1): Only verify cmdlines after
1853         printing command name.
1854         * cli/cli-decode.h (cli_user_command_p): Declare new function.
1855         * cli/cli-decode.c (cli_user_command_p): Create helper function
1856         to verify whether cmd_list_element is a user-defined command.
1857
1858 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1859
1860         PR python/17355
1861         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1862         Fix goto out of TRY_CATCH.
1863
1864 2014-09-06  Doug Evans  <xdje42@gmail.com>
1865             Tom Tromey  <tromey@redhat.com>
1866
1867         PR 15276
1868         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1869         $_any_caller_matches.
1870         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1871         * python/lib/gdb/function/caller_is.py: New file.
1872
1873 2014-09-06  Doug Evans  <xdje42@gmail.com>
1874
1875         * infcmd.c (program_info): Fix typo.
1876
1877 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
1878
1879         PR gdb/17235
1880         * stap-probe.c (stap_parse_single_operand): Delete unused variable
1881         'number'.  New variable 'has_digit'.  Rewrite code to deal with
1882         subexpressions on SDT probes.
1883
1884 2014-09-04  Pedro Alves  <palves@redhat.com>
1885
1886         * c-exp.y (parse_number): Skip handling base-switching prefixes if
1887         the input is only one character long.
1888
1889 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
1890
1891         PR fortran/17237
1892         * f-valprint.c (f_val_print): Specify the correct print option to
1893         use when printing integer values.
1894
1895 2014-09-04  Gary Benson  <gbenson@redhat.com>
1896
1897         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1898         Remove code to cope with LWPs wrapped as PIDs.
1899         Add assertions to ensure no wrapped LWPs are passed.
1900
1901 2014-09-04  Pedro Alves  <palves@redhat.com>
1902
1903         * value.c (value_ranges_copy_adjusted): New function, factored out
1904         from ...
1905         (value_contents_copy_raw): ... here.
1906         (unpack_value_bits_as_long_1): Rename back to ...
1907         (unpack_bits_as_long): ... this.  Remove 'original_value' and
1908         'result' parameters.  Change return type to LONGEST.
1909         (unpack_value_bits_as_long): Delete.
1910         (unpack_value_field_as_long_1): Delete.
1911         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1912         (unpack_value_bitfield): New function.
1913         (value_field_bitfield): Reimplement using unpack_value_bitfield.
1914         (value_fetch_lazy): Use unpack_value_bitfield.
1915         * value.h (unpack_value_bits_as_long): Delete declaration.
1916
1917 2014-09-03  Sasha Smundak  <asmundak@google.com>
1918
1919         * python/py-frame.c (frapy_read_register): New function.
1920
1921 2014-09-03  James Hogan  <james.hogan@imgtec.com>
1922
1923         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1924         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1925
1926 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
1927
1928         PR python/16699
1929         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1930         function.
1931         (add_cmd): Set "completer_handle_brkchars" to NULL.
1932         * cli/cli-decode.h (struct cmd_list_element)
1933         <completer_handle_brkchars>: New field.
1934         * command.h (completer_ftype_void): New typedef.
1935         (set_cmd_completer_handle_brkchars): New prototype.
1936         * completer.c (set_gdb_completion_word_break_characters): New
1937         function.
1938         (complete_line_internal): Call "completer_handle_brkchars"
1939         callback from command.
1940         * completer.h: Include "command.h".
1941         (set_gdb_completion_word_break_characters): New prototype.
1942         * python/py-cmd.c (cmdpy_completer_helper): New function.
1943         (cmdpy_completer_handle_brkchars): New function.
1944         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1945         (cmdpy_init): Set completer_handle_brkchars to
1946         cmdpy_completer_handle_brkchars.
1947
1948 2014-09-03  Gary Benson  <gbenson@redhat.com>
1949
1950         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1951         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
1952         Loop conditions changed to equivalent form.
1953         (struct x86_debug_reg_state): Updated dr_ref_count comment.
1954         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1955         ALL_DEBUG_ADDRESS_REGISTERS.
1956
1957 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
1958
1959         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1960         description fix.
1961
1962 2014-09-02  Doug Evans  <dje@google.com>
1963
1964         * typeprint.c (find_global_typedef): Fix comment.
1965
1966 2014-09-02  Gary Benson  <gbenson@redhat.com>
1967
1968         * i386-nat.h: Renamed as...
1969         * x86-nat.h: New file.  All type, function and variable name
1970         prefixes changed from "i386_" to "x86_".  All references updated.
1971         * i386-nat.c: Renamed as...
1972         * x86-nat.c: New file.  All type, function and variable name
1973         prefixes changed from "i386_" to "x86_".  All references updated.
1974         * common/i386-xstate.h: Renamed as...
1975         * common/x86-xstate.h: New file.  All type, function and variable
1976         name prefixes changed from "i386_" to "x86_".  All references
1977         updated.
1978         * nat/i386-cpuid.h: Renamed as...
1979         * nat/x86-cpuid.h: New file.  All type, function and variable name
1980         prefixes changed from "i386_" to "x86_".  All references updated.
1981         * nat/i386-gcc-cpuid.h: Renamed as...
1982         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
1983         name prefixes changed from "i386_" to "x86_".  All references
1984         updated.
1985         * nat/i386-dregs.h: Renamed as...
1986         * nat/x86-dregs.h: New file.  All type, function and variable name
1987         prefixes changed from "i386_" to "x86_".  All references updated.
1988         * nat/i386-dregs.c: Renamed as...
1989         * nat/x86-dregs.c: New file.  All type, function and variable name
1990         prefixes changed from "i386_" to "x86_".  All references updated.
1991
1992 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
1993
1994         * varobj.c (_initialize_varobj): Move to the end of file.
1995
1996 2014-08-29  Gary Benson  <gbenson@redhat.com>
1997
1998         * common/common-exceptions.h: New file.
1999         * common/common-exceptions.c: Likewise.
2000         * Makefile.in (SFILES): Add common/common-exceptions.c.
2001         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2002         (COMMON_OBS): Add common-exceptions.o.
2003         (common-exceptions.o): New rule.
2004         * exceptions.h (common-exceptions.h): Include.
2005         (gdb_setjmp.h): Do not include.
2006         (return_reason): Moved to common-exceptions.h.
2007         (enum return_reason): Likewise.
2008         (RETURN_MASK): Likewise.
2009         (typedef return_mask): Likewise.
2010         (enum errors): Likewise.
2011         (struct gdb_exception): Likewise.
2012         (exceptions_state_mc_init): Likewise.
2013         (exceptions_state_mc_action_iter): Likewise.
2014         (exceptions_state_mc_action_iter_1): Likewise.
2015         (TRY_CATCH): Likewise.
2016         (throw_exception): Likewise.
2017         (throw_verror): Likewise.
2018         (throw_vquit): Likewise.
2019         (throw_error): Likewise.
2020         (throw_quit): Likewise.
2021         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2022         (enum catcher_action): Likewise.
2023         (struct catcher): Likewise.
2024         (current_catcher): Likewise.
2025         (catcher_list_size): Likewise.
2026         (exceptions_state_mc_init): Likewise.
2027         (catcher_pop): Likewise.
2028         (exceptions_state_mc): Likewise.
2029         (exceptions_state_mc_action_iter): Likewise.
2030         (exceptions_state_mc_action_iter_1): Likewise.
2031         (throw_exception): Likewise.
2032         (exception_messages): Likewise.
2033         (exception_messages_size): Likewise.
2034         (throw_it): Likewise.
2035         (throw_verror): Likewise.
2036         (throw_vquit): Likewise.
2037         (throw_error): Likewise.
2038         (throw_quit): Likewise.
2039         (prepare_to_throw_exception): New function.
2040
2041 2014-08-29  Gary Benson  <gbenson@redhat.com>
2042
2043         * common/gdb_setjmp.h: New file.
2044         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2045         * configure.ac: Move sigsetjmp check...
2046         * common/common.m4: ...here.
2047         * configure: Regenerate.
2048         * cp-support.c (SIGJMP_BUF): Delete.
2049         (SIGSETJMP): Likewise.
2050         (SIGLONGJMP): Likewise.
2051         * exceptions.h (gdb_setjmp.h): Include.
2052         (setjmp.h): Do not include.
2053         (EXCEPTIONS_SIGJMP_BUF): Delete.
2054         (EXCEPTIONS_SIGSETJMP): Likewise.
2055         (EXCEPTIONS_SIGLONGJMP): Likewise.
2056         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2057         from gdb_setjmp.h.
2058         * exceptions.c: Likewise.
2059
2060 2014-08-29  Gary Benson  <gbenson@redhat.com>
2061
2062         * cleanups.h: Moved to...
2063         * common/cleanups.h: New file.
2064         * cleanups.c: Moved to...
2065         * common/cleanups.c: New file.  Include common-defs.h and
2066         cleanups.h.  Do not include defs.h.
2067         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2068         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2069         (cleanups.o): New rule.
2070
2071 2014-08-29  Gary Benson  <gbenson@redhat.com>
2072
2073         * common/errors.h (internal_warning): New declaration.
2074         (internal_vwarning): Likewise.
2075         * common/errors.c (internal_warning): New function.
2076         * utils.h (internal_warning): Don't declare.
2077         (internal_vwarning): Likewise.
2078         * utils.c (internal_warning): Removed.
2079
2080 2014-08-29  Gary Benson  <gbenson@redhat.com>
2081
2082         * main.c (captured_main): Use warning during startup.
2083         Prefix startup warning messages with command name.
2084
2085 2014-08-29  Gary Benson  <gbenson@redhat.com>
2086
2087         * main.c (captured_main): Handle usage errors with error.
2088
2089 2014-08-29  Gary Benson  <gbenson@redhat.com>
2090
2091         * go32-nat.c (go32_create_inferior): Replace a fprintf/
2092         exit pair with a call to error.  Wrap the message with _().
2093
2094 2014-08-29  Gary Benson  <gbenson@redhat.com>
2095
2096         * main.c (captured_main): Replace a fprintf/exit
2097         pair with a call to error.  Wrap the message with _().
2098
2099 2014-08-29  Gary Benson  <gbenson@redhat.com>
2100
2101         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2102         pairs with calls to error.  Wrap the message with _().
2103
2104 2014-08-29  Gary Benson  <gbenson@redhat.com>
2105
2106         * utils.c (vwarning): Protect calls to target_terminal_ours
2107         and wrap_here.
2108
2109 2014-08-29  Gary Benson  <gbenson@redhat.com>
2110
2111         * exceptions.c (print_flush): Protect calls to
2112         target_terminal_ours and wrap_here.
2113
2114 2014-08-29  Gary Benson  <gbenson@redhat.com>
2115
2116         * utils.h (filtered_printing_initialized): New declaration.
2117         * utils.c (abort_with_message): New function.
2118         (internal_vproblem): Use abort_with_message for first level
2119         recursive internal problems, and if gdb_stderr is not set up.
2120         Protect calls to target_terminal_ours, begin_line and query.
2121
2122 2014-08-28  Doug Evans  <dje@google.com>
2123
2124         * symtab.c (in_prologue): Move definition to better spot.
2125         (skip_prologue_using_sal): Ditto.
2126
2127 2014-08-28  Doug Evans  <dje@google.com>
2128
2129         * symtab.c (find_function_start_sal): Move definition to better spot.
2130
2131 2014-08-28  Yao Qi  <yao@codesourcery.com>
2132
2133         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2134         found_stack_adjust in forward scan.  Remove condition check
2135         on found_stack_adjust which is always true.  Indent the code.
2136
2137 2014-08-28  Yao Qi  <yao@codesourcery.com>
2138
2139         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2140         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2141         (dwarf_decode_lines): Remove argument
2142         want_line_info.  Remove condition check on want_line_info.
2143         Callers update.
2144
2145 2014-08-27  Doug Evans  <dje@google.com>
2146
2147         * dwarf2read.c (dwarf_record_line): Fix typo.
2148
2149 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
2150
2151         * target.h (struct target_ops::to_terminal_save_ours): Remove
2152         declaration.
2153         (target_terminal_save_ours): Remove macro.
2154         * target-delegates.c: Regenerate.
2155         * inf-child.c (inf_child_target): Don't set the nonexistent
2156         field to_terminal_save_ours.
2157         * inferior.h (child_terminal_save_ours): Remove declaration.
2158         * terminal.h (gdb_save_tty_state): New declaration.
2159         * inflow.c (child_terminal_save_ours): Rename to ...
2160         (gdb_save_tty_state): ... this.
2161         * tui/tui.c: Include terminal.h.
2162         (tui_enable): Use gdb_save_tty_state instead of
2163         target_terminal_save_ours.
2164         (tui_disable): Likewise.
2165
2166 2014-08-25  Doug Evans  <dje@google.com>
2167
2168         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2169         Pass NULL instead of 0 for context pointer.
2170
2171 2014-08-25  Yao Qi  <yao@codesourcery.com>
2172
2173         * dwarf2read.c: Fix grammatical error.
2174
2175 2014-08-24  Yao Qi  <yao@codesourcery.com>
2176
2177         * dwarf2read.c (scan_partial_symbols):  Update comments.
2178         Rename argument 'need_pc' with 'set_addrmap'.
2179         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
2180         'set_addrmap'.
2181         (add_partial_module): Likewise.
2182         (add_partial_subprogram): Likewise.  Update comments.
2183         (dwarf2_name): Fix typo.
2184
2185 2014-08-22  Doug Evans  <dje@google.com>
2186
2187         PR 17276
2188         * dwarf2read.c (dwarf_record_line_p): New function.
2189         (dwarf_decode_lines_1): Ignore subsequent line number entries
2190         for the same line if any entry had a non-zero discriminator.
2191
2192 2014-08-22  Doug Evans  <dje@google.com>
2193
2194         * buildsym.h (record_line_ftype): New typedef.
2195         (record_line): Use it.
2196         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2197         (dwarf_decode_lines_1): Call them.
2198
2199 2014-08-22  Yao Qi  <yao@codesourcery.com>
2200
2201         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2202         (ctf_end): Remove code.
2203
2204 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2205
2206         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2207         (linux_make_corefile_notes): call update_thread_list, protected against
2208         exceptions.
2209
2210 2014-08-21  Pedro Alves  <palves@redhat.com>
2211
2212         * infcmd.c (attach_command): Remove comment.
2213
2214 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
2215
2216         * aarch64-linux-nat.c (dr_changed_t): Change the type from
2217         unsigned LONGEST to ULONGEST.
2218
2219 2014-08-20  Pedro Alves  <palves@redhat.com>
2220
2221         * Makefile.in (check-read1): New rule.
2222
2223 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
2224
2225         * value.c (value_from_contents_and_address): Strip resolved_type's
2226         typedef layers before checking its TYPE_DATA_LOCATION.
2227
2228 2014-08-20  Pedro Alves  <palves@redhat.com>
2229
2230         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2231
2232 2014-08-20  Yao Qi  <yao@codesourcery.com>
2233
2234         * amd64-tdep.c (amd64_classify): Add a blank line after the
2235         example.  Move "*/" to a new line.
2236         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2237         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2238         * dwarf2read.c (psymtab_include_file_name): Likewise.
2239
2240 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
2241             Pedro Alves  <palves@redhat.com>
2242
2243         PR symtab/14604
2244         PR symtab/14605
2245         * ada-lang.c (coerce_unspec_val_to_type): Use
2246         value_contents_copy_raw.
2247         * ada-valprint.c (val_print_packed_array_elements): Adjust.
2248         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2249         * cp-valprint.c (cp_print_value_fields): Let the common printing
2250         code handle optimized out values.
2251         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2252         * d-valprint.c (dynamic_array_type): Use
2253         value_bits_any_optimized_out.
2254         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2255         check_any_valid fields.
2256         (check_pieced_value_bits): Delete and inline ...
2257         (check_pieced_synthetic_pointer): ... here.
2258         (check_pieced_value_validity): Delete.
2259         (check_pieced_value_invalid): Delete.
2260         (pieced_value_funcs): Remove check_validity and check_any_valid
2261         fields.
2262         (read_pieced_value): Use mark_value_bits_optimized_out.
2263         (write_pieced_value): Switch to use
2264         mark_value_bytes_optimized_out.
2265         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2266         of assuming the whole value is optimized out.
2267         * findvar.c (read_frame_register_value): Remove special handling
2268         of optimized out registers.
2269         (value_from_register): Use mark_value_bytes_optimized_out.
2270         * frame-unwind.c (frame_unwind_got_optimized): Use
2271         mark_value_bytes_optimized_out.
2272         * jv-valprint.c (java_value_print): Adjust.
2273         (java_print_value_fields): Let the common printing code handle
2274         optimized out values.
2275         * mips-tdep.c (mips_print_register): Remove special handling of
2276         optimized out registers.
2277         * opencl-lang.c (lval_func_check_validity): Delete.
2278         (lval_func_check_any_valid): Delete.
2279         (opencl_value_funcs): Remove check_validity and check_any_valid
2280         fields.
2281         * p-valprint.c (pascal_object_print_value_fields): Let the common
2282         printing code handle optimized out values.
2283         * stack.c (read_frame_arg): Remove special handling of optimized
2284         out values.  Fetch both VAL and ENTRYVAL before comparing
2285         contents.  Adjust to value_available_contents_eq rename.
2286         * valprint.c (valprint_check_validity)
2287         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2288         (val_print_array_elements): Adjust.
2289         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2290         (value_bits_any_optimized_out): New function.
2291         (value_entirely_covered_by_range_vector): New function, factored
2292         out from value_entirely_unavailable.
2293         (value_entirely_unavailable): Reimplement.
2294         (value_entirely_optimized_out): New function.
2295         (insert_into_bit_range_vector): New function, factored out from
2296         mark_value_bits_unavailable.
2297         (mark_value_bits_unavailable): Reimplement.
2298         (struct ranges_and_idx): New struct.
2299         (find_first_range_overlap_and_match): New function, factored out
2300         from value_available_contents_bits_eq.
2301         (value_available_contents_bits_eq): Rename to ...
2302         (value_contents_bits_eq): ... this.  Check both unavailable
2303         contents and optimized out contents.
2304         (value_available_contents_eq): Rename to ...
2305         (value_contents_eq): ... this.
2306         (allocate_value_lazy): Remove reference to the old optimized_out
2307         boolean.
2308         (allocate_optimized_out_value): Use
2309         mark_value_bytes_optimized_out.
2310         (require_not_optimized_out): Adjust to check whether the
2311         optimized_out vec is empty.
2312         (ranges_copy_adjusted): New function, factored out from
2313         value_contents_copy_raw.
2314         (value_contents_copy_raw): Also copy the optimized out ranges.
2315         Assert the destination ranges aren't optimized out.
2316         (value_contents_copy): Update comment, remove call to
2317         require_not_optimized_out.
2318         (value_contents_equal): Adjust to check whether the optimized_out
2319         vec is empty.
2320         (set_value_optimized_out, value_optimized_out_const): Delete.
2321         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2322         New functions.
2323         (value_entirely_optimized_out, value_bits_valid): Delete.
2324         (value_copy): Take a VEC copy of the 'optimized_out' field.
2325         (value_primitive_field): Remove special handling of optimized out.
2326         (value_fetch_lazy): Assert that lazy values have no unavailable
2327         regions.  Use value_bits_any_optimized_out.  Remove some special
2328         handling for optimized out values.
2329         * value.h: Add intro comment about <optimized out> and
2330         <unavailable>.
2331         (struct lval_funcs): Remove check_validity and check_any_valid
2332         fields.
2333         (set_value_optimized_out, value_optimized_out_const): Remove.
2334         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2335         New declarations.
2336         (value_bits_any_optimized_out): New declaration.
2337         (value_bits_valid): Delete declaration.
2338         (value_available_contents_eq): Rename to ...
2339         (value_contents_eq): ... this, and extend comments.
2340
2341 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2342
2343         Fix -fsanitize=address on unreadable inferior strings.
2344         * valprint.c (val_print_string): Fix access before BUFFER.
2345
2346 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
2347
2348         * target.c (target_struct_size): Remove.
2349         (target_struct_allocsize): Remove.
2350         (DEFAULT_ALLOCSIZE): Remove.
2351         (target_ops_p): New typedef.
2352         (DEF_VEC_P (target_ops_p)): New vector type.
2353         (target_structs): Change type to VEC (target_ops_p).
2354         (add_target_with_completer): Replace "push" code by VEC_safe_push.
2355         (find_default_run_target): Rewrite for loop following changes to
2356         target_structs.
2357
2358 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
2359
2360         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2361         Adjust code accordingly.  Adjust function description comment.
2362
2363 2014-08-19  Yao Qi  <yao@codesourcery.com>
2364
2365         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2366         types.
2367
2368 2014-08-19  Alan Modra  <amodra@gmail.com>
2369
2370         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2371         * config.in: Regenerate.
2372         * configure: Regenerate.
2373
2374 2014-08-19  Tom Tromey  <tromey@redhat.com>
2375             Gary Benson  <gbenson@redhat.com>
2376
2377         * common/common-debug.h: New file.
2378         * common/common-debug.c: Likewise.
2379         * debug.c: Likewise.
2380         * Makefile.in (SFILES): Add common/common-debug.c.
2381         (HFILES_NO_SRCDIR): Add common/common-debug.h.
2382         (COMMON_OBS): Add common-debug.o and debug.o.
2383         (common-debug.o): New rule.
2384         * common/common-defs.h: Include common-debug.h.
2385         * common/agent.c (debug_agent_printf): New function.
2386         (DEBUG_AGENT): Redefine.
2387         * nat/i386-dregs.c (debug_printf): Undefine.
2388
2389 2014-08-19  Gary Benson  <gbenson@redhat.com>
2390
2391         * common/common-defs.h: Include print-utils.h.
2392         * utils.h: Do not include print-utils.h.
2393
2394 2014-08-19  Tom Tromey  <tromey@redhat.com>
2395             Gary Benson  <gbenson@redhat.com>
2396
2397         * common/common-types.h: New file.
2398         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2399         * common/common-defs.h: Include common-types.h.
2400         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2401         (ULONGEST): Remove.
2402
2403 2014-08-19  Tom Tromey  <tromey@redhat.com>
2404             Gary Benson  <gbenson@redhat.com>
2405
2406         * common/errors.h: New file.
2407         * common/errors.c: Likewise.
2408         * Makefile.in (SFILES): Add common/errors.c.
2409         (HFILES_NO_SRCDIR): Add common/errors.h.
2410         (COMMON_OBS): Add errors.o.
2411         (errors.o): New rule.
2412         * common/common-defs.h: Include errors.h.
2413         * utils.h (perror_with_name, error, verror, warning, vwarning):
2414         Don't declare.
2415         * common/common-utils.h: (malloc_failure, internal_error):
2416         Likewise.
2417
2418 2014-08-19  Gary Benson  <gbenson@redhat.com>
2419
2420         * utils.c (internal_vproblem): Always print the message.
2421
2422 2014-08-18  Doug Evans  <dje@google.com>
2423
2424         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2425
2426 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2427
2428         * ada-typeprint.c (type_is_full_subrange_of_target_type):
2429         Return 0 if TYPE is dynamic.
2430         (print_range): Add handling of dynamic ranges.
2431
2432 2014-08-18  Keven Boell  <keven.boell@intel.com>
2433             Joel Brobecker  <brobecker@adacore.com>
2434
2435         * gdbtypes.h (struct main_type): Add field "data_location".
2436         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2437         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2438         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2439         a dynamic data location.
2440         (resolve_dynamic_type): Add DW_AT_data_location handling.
2441         (copy_recursive, copy_type): Copy the data_location information
2442         when present.
2443         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2444         * value.c (value_from_contents_and_address): Add
2445         DW_AT_data_location handling.
2446
2447 2014-08-18  Keven Boell  <keven.boell@intel.com>
2448             Joel Brobecker  <brobecker@adacore.com>
2449
2450         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2451         field "get_object_address".
2452         * dwarf2expr.c (execute_stack_op): Add handling for
2453         DW_OP_push_object_address.
2454         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2455         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2456         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2457         (dwarf_expr_get_obj_addr): New function.
2458         (dwarf_expr_ctx_funcs): Add get_object_address field.
2459         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2460         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
2461         (dwarf2_evaluate_property): Add parameter "address".  Use it.
2462         (needs_get_obj_addr): New function.
2463         (needs_frame_ctx_funcs): Add get_object_address field.
2464         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2465         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
2466         (resolve_dynamic_array): Likewise.
2467
2468 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2469
2470         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2471         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2472         fixed value for records and unions for which some GNAT encodings
2473         are present.
2474
2475 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2476
2477         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2478         rewrite to avoid "else if" and "else" constructs.  Should be
2479         a no-op in practice.
2480
2481 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2482
2483         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2484         of lexical block.
2485
2486 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2487
2488         PR c++/17132
2489         * eval.c: Update all calls to find_overload_match.
2490         * valarith.c: Likewise.
2491         (value_user_defined_cpp_op, value_user_defined_op): New
2492         argument NOSIDE.  Update all callers.
2493         * valops.c (find_overload_match): New argument NOSIDE.
2494         * value.h (find_overload_match): Update signature.
2495
2496 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2497
2498         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2499         'items' methods instead of 'iteritems' method on dictionaries.
2500
2501 2014-08-15  Doug Evans  <dje@google.com>
2502
2503         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2504         closer to use.
2505
2506 2014-08-15  Doug Evans  <dje@google.com>
2507
2508         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2509
2510 2014-08-15  Doug Evans  <dje@google.com>
2511
2512         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2513
2514 2014-08-15  Doug Evans  <dje@google.com>
2515
2516         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2517         unused.
2518
2519 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
2520
2521         * dcache.h: Include target.h, to avoid compile time warnings.
2522
2523 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
2524
2525         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
2526         frame_info" partial declaration.
2527         * gdbarch.h: Regenerate.
2528
2529 2014-08-15  Yao Qi  <yao@codesourcery.com>
2530
2531         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2532         Add parameter 'decode_for_pst_p'.  Callers update.
2533
2534 2014-08-13  Yao Qi  <yao@codesourcery.com>
2535
2536         PR build/17104
2537         * configure.ac: Use local variable 'pos'.
2538         * configure: Regenerated.
2539
2540 2014-08-11  Doug Evans  <dje@google.com>
2541
2542         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2543         message, it is redundant with "Reading symbols from ..." message.
2544
2545 2014-08-10  Doug Evans  <xdje42@gmail.com>
2546
2547         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2548
2549 2014-08-09  Yao Qi  <yao@codesourcery.com>
2550
2551         PR remote/9053
2552         * remote.c (remote_xfer_partial): Remove dead code.
2553
2554 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2555
2556         * ia64-linux-tdep.c: Include "regset.h".
2557         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2558         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2559         (ia64_linux_supply_fpregset): New function.
2560         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2561         (ia64_linux_regset_from_core_section): New function.
2562         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2563         method.
2564
2565 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2566
2567         * m68klinux-tdep.c: Include "regset.h".
2568         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2569         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2570         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2571         (m68k_linux_regset_from_core_section): New function.
2572         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2573         method.
2574
2575 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2576
2577         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2578         function.  Move logic to...
2579         (tilegx_linux_regmap): ... this new register map.
2580         (tilegx_linux_regset): Refer to register map, replace supply
2581         method by regcache_supply_regset, and add collect method.
2582         * tilegx-tdep.h (enum tilegx_regnum): New enum value
2583         TILEGX_FIRST_EASY_REGNUM.
2584
2585 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2586
2587         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2588         that calls regcache_supply_regset and handles the EPC register
2589         separately.  Move main logic to...
2590         (score7_linux_gregmap): ... this new register map.
2591         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2592         (score7_linux_gregset): Refer to register map.  Add collect method.
2593         (score7_linux_regset_from_core_section): Replace
2594         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2595         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2596         (struct regset): Delete unused forward declaraction.
2597         (struct pt_regs): Delete structure definition.
2598         (elf_gregset_t): Delete typedef.
2599
2600 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2601
2602         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2603         (nios2_core_regset): Add collect method.
2604
2605 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2606
2607         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2608         platform-independent and don't write to read-only input buffer.
2609         (m32r_linux_collect_gregset): New function.
2610         (m32r_linux_gregset): Add collect method.
2611
2612 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2613
2614         * hppa-linux-tdep.c (greg_map): Rename to...
2615         (hppa_linux_gregmap): ... this.  Also convert to
2616         regcache_map_entry format.
2617         (hppa_linux_supply_regset): Delete function.
2618         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
2619         (hppa_linux_fpregmap): ... this new register map.
2620         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2621         register map, replace supply method by regcache_supply_regset, and
2622         add collect method regcache_collect_regset.
2623
2624 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2625
2626         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2627         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2628         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2629         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2630         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2631         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2632         (frv_linux_supply_gregset): Replace main logic by call to
2633         regcache_supply_regset, but keep clearing gr32-gr63.
2634         (frv_linux_supply_fpregset): Delete function.
2635         (frv_linux_gregset): Refer to appropriate register map and add
2636         regcache_collect_regset as the collect method.
2637         (frv_linux_fpregset): Likewise.  Also exchange the supply method
2638         by regcache_supply_regset.
2639
2640 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2641
2642         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2643         by call to alpha_supply_int_regs.
2644         (alpha_linux_collect_gregset): New function.
2645         (alpha_linux_supply_fpregset): Replace logic by call to
2646         alpha_supply_fp_regs.
2647         (alpha_linux_collect_fpregset): New function.
2648         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2649
2650 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2651
2652         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2653         by call to regcache_collect_regset.
2654         (supply_gregset, supply_fpregset): Call regcache_supply_regset
2655         instead of aarch64_linux_supply_gregset/_fpregset.
2656         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2657         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2658         header file instead.
2659         (aarch64_linux_supply_gregset, supply_gregset_from_core)
2660         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2661         functions.  Move logic to ...
2662         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2663         register maps.
2664         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2665         refer to new register maps, replace *_regset_from_core by
2666         regcache_supply_regset, and also use regcache_collect_regset.
2667         * aarch64-linux-tdep.h: Include "regset.h".
2668         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2669         Delete prototypes.
2670         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2671         macros, moved from C source file.
2672         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2673         variable declarations.
2674
2675 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2676
2677         * s390-linux-nat.c: Include "regset.h".
2678         (regmap_gregset): Delete macro.
2679         (s390_64_regmap_gregset): New register map for
2680         regcache_supply/_collect_regset.
2681         (s390_64_gregset): New regset.
2682         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2683         (regmap_fpregset): Delete macro.
2684         (s390_native_supply, s390_native_collect): Delete functions.
2685         (supply_gregset, fill_gregset): Replace s390-specific regmap
2686         handling by a call to regcache_supply/_collect_regset.
2687         (supply_fpregset, fill_fpregset): Call regcache_supply/
2688         _collect_regset instead of s390_native_supply/_collect.
2689         (fetch_regset, store_regset): Likewise.  Also change the last
2690         parameter to a regset instead of a regmap.
2691         (s390_linux_fetch_inferior_registers)
2692         (390_linux_store_inferior_registers): Adjust last parameter in
2693         calls to fetch_regset and store_regset.
2694         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2695         (s390_gregmap): ... this.  Also make static const and convert to
2696         regcache_map_entry format.
2697         (s390x_regmap_gregset): Delete.
2698         (s390_regmap_fpregset): Rename to...
2699         (s390_fpregmap): ... this.  Make static const and convert to
2700         regcache_map_entry format.
2701         (s390_regmap_upper, s390_regmap_last_break)
2702         (s390x_regmap_last_break, s390_regmap_system_call)
2703         (s390_regmap_tdb): Likewise.
2704         (s390_supply_regset, s390_collect_regset): Remove functions.
2705         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2706         s390_supply_regset.
2707         (s390_gregset, s390_fpregset, s390_upper_regset)
2708         (s390_last_break_regset, s390x_last_break_regset)
2709         (s390_system_call_regset, s390_tdb_regset): Make global and
2710         replace s390_supply/_collect_regset by regcache_supply/
2711         _collect_regset.
2712         (s390x_gregset): Delete.
2713         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2714         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2715         (s390_regmap_fpregset, s390_regmap_last_break)
2716         (s390x_regmap_last_break, s390_regmap_system_call)
2717         (s390_regmap_tdb): Delete global variable declarations.
2718         (s390_gregset, s390_fpregset, s390_last_break_regset)
2719         (s390x_last_break_regset, s390_system_call_regset)
2720         (s390_tdb_regset): New global variable declarations.
2721
2722 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2723
2724         * regcache.c: Include "regset.h".
2725         (regcache_transfer_regset): New local function.
2726         (regcache_supply_regset, regcache_collect_regset): New functions.
2727         * regcache.h (struct regcache_map_entry): New structure.
2728         (REGCACHE_MAP_SKIP): New enum value.
2729         (regcache_supply_regset, regcache_collect_regset): New prototypes.
2730
2731 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2732
2733         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2734         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2735         (ppc_linux_collect_gregset ): Likewise.
2736         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2737         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2738         (ppc_collect_vrregset): Likewise.
2739         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2740         Likewise.
2741
2742 2014-08-07  Yao Qi  <yao@codesourcery.com>
2743
2744         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2745         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2746         * remote.c (remote_read_bytes): Likewise.
2747
2748 2014-08-07  Yao Qi  <yao@codesourcery.com>
2749
2750         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2751
2752 2014-08-07  Yao Qi  <yao@codesourcery.com>
2753
2754         PR remote/17230
2755         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2756         TARGET_XFER_OK instead of 0.
2757
2758 2014-08-07  Gary Benson  <gbenson@redhat.com>
2759
2760         * common/common-defs.h: Include errno.h.
2761         * defs.h: Do not include errno.h.
2762         * ada-typeprint.c: Likewise.
2763         * c-typeprint.c: Likewise.
2764         * core-regset.c: Likewise.
2765         * corefile.c: Likewise.
2766         * corelow.c: Likewise.
2767         * event-loop.c: Likewise.
2768         * f-typeprint.c: Likewise.
2769         * gnu-nat.c: Likewise.
2770         * go32-nat.c: Likewise.
2771         * i386gnu-nat.c: Likewise.
2772         * m2-typeprint.c: Likewise.
2773         * nat/linux-btrace.c: Likewise.
2774         * p-typeprint.c: Likewise.
2775         * procfs.c: Likewise.
2776         * remote-sim.c: Likewise.
2777         * rs6000-nat.c: Likewise.
2778         * target.c: Likewise.
2779         * typeprint.c: Likewise.
2780         * ui-file.c: Likewise.
2781         * valops.c: Likewise.
2782         * valprint.c: Likewise.
2783
2784 2014-08-07  Gary Benson  <gbenson@redhat.com>
2785
2786         * common/common-defs.h: Include string.h.
2787         * aarch64-tdep.c: Do not include string.h.
2788         * ada-exp.y: Likewise.
2789         * ada-lang.c: Likewise.
2790         * ada-lex.l: Likewise.
2791         * ada-typeprint.c: Likewise.
2792         * ada-valprint.c: Likewise.
2793         * aix-thread.c: Likewise.
2794         * alpha-linux-tdep.c: Likewise.
2795         * alpha-mdebug-tdep.c: Likewise.
2796         * alpha-nat.c: Likewise.
2797         * alpha-osf1-tdep.c: Likewise.
2798         * alpha-tdep.c: Likewise.
2799         * alphanbsd-tdep.c: Likewise.
2800         * amd64-dicos-tdep.c: Likewise.
2801         * amd64-linux-tdep.c: Likewise.
2802         * amd64-nat.c: Likewise.
2803         * amd64-sol2-tdep.c: Likewise.
2804         * amd64fbsd-tdep.c: Likewise.
2805         * amd64obsd-tdep.c: Likewise.
2806         * arch-utils.c: Likewise.
2807         * arm-linux-nat.c: Likewise.
2808         * arm-linux-tdep.c: Likewise.
2809         * arm-tdep.c: Likewise.
2810         * arm-wince-tdep.c: Likewise.
2811         * armbsd-tdep.c: Likewise.
2812         * armnbsd-nat.c: Likewise.
2813         * armnbsd-tdep.c: Likewise.
2814         * armobsd-tdep.c: Likewise.
2815         * avr-tdep.c: Likewise.
2816         * ax-gdb.c: Likewise.
2817         * ax-general.c: Likewise.
2818         * bcache.c: Likewise.
2819         * bfin-tdep.c: Likewise.
2820         * breakpoint.c: Likewise.
2821         * build-id.c: Likewise.
2822         * buildsym.c: Likewise.
2823         * c-exp.y: Likewise.
2824         * c-lang.c: Likewise.
2825         * c-typeprint.c: Likewise.
2826         * c-valprint.c: Likewise.
2827         * charset.c: Likewise.
2828         * cli-out.c: Likewise.
2829         * cli/cli-cmds.c: Likewise.
2830         * cli/cli-decode.c: Likewise.
2831         * cli/cli-dump.c: Likewise.
2832         * cli/cli-interp.c: Likewise.
2833         * cli/cli-logging.c: Likewise.
2834         * cli/cli-script.c: Likewise.
2835         * cli/cli-setshow.c: Likewise.
2836         * cli/cli-utils.c: Likewise.
2837         * coffread.c: Likewise.
2838         * common/agent.c: Likewise.
2839         * common/buffer.c: Likewise.
2840         * common/buffer.h: Likewise.
2841         * common/common-utils.c: Likewise.
2842         * common/filestuff.c: Likewise.
2843         * common/filestuff.c: Likewise.
2844         * common/format.c: Likewise.
2845         * common/print-utils.c: Likewise.
2846         * common/rsp-low.c: Likewise.
2847         * common/signals.c: Likewise.
2848         * common/vec.h: Likewise.
2849         * common/xml-utils.c: Likewise.
2850         * core-regset.c: Likewise.
2851         * corefile.c: Likewise.
2852         * corelow.c: Likewise.
2853         * cp-abi.c: Likewise.
2854         * cp-name-parser.y: Likewise.
2855         * cp-support.c: Likewise.
2856         * cp-valprint.c: Likewise.
2857         * cris-tdep.c: Likewise.
2858         * d-exp.y: Likewise.
2859         * darwin-nat.c: Likewise.
2860         * dbxread.c: Likewise.
2861         * dcache.c: Likewise.
2862         * demangle.c: Likewise.
2863         * dicos-tdep.c: Likewise.
2864         * disasm.c: Likewise.
2865         * doublest.c: Likewise.
2866         * dsrec.c: Likewise.
2867         * dummy-frame.c: Likewise.
2868         * dwarf2-frame.c: Likewise.
2869         * dwarf2loc.c: Likewise.
2870         * dwarf2read.c: Likewise.
2871         * elfread.c: Likewise.
2872         * environ.c: Likewise.
2873         * eval.c: Likewise.
2874         * event-loop.c: Likewise.
2875         * exceptions.c: Likewise.
2876         * exec.c: Likewise.
2877         * expprint.c: Likewise.
2878         * f-exp.y: Likewise.
2879         * f-lang.c: Likewise.
2880         * f-typeprint.c: Likewise.
2881         * f-valprint.c: Likewise.
2882         * fbsd-nat.c: Likewise.
2883         * findcmd.c: Likewise.
2884         * findvar.c: Likewise.
2885         * fork-child.c: Likewise.
2886         * frame.c: Likewise.
2887         * frv-linux-tdep.c: Likewise.
2888         * frv-tdep.c: Likewise.
2889         * gdb.c: Likewise.
2890         * gdb_bfd.c: Likewise.
2891         * gdbarch.c: Likewise.
2892         * gdbarch.sh: Likewise.
2893         * gdbtypes.c: Likewise.
2894         * gnu-nat.c: Likewise.
2895         * gnu-v2-abi.c: Likewise.
2896         * gnu-v3-abi.c: Likewise.
2897         * go-exp.y: Likewise.
2898         * go-lang.c: Likewise.
2899         * go32-nat.c: Likewise.
2900         * guile/guile.c: Likewise.
2901         * guile/scm-auto-load.c: Likewise.
2902         * hppa-hpux-tdep.c: Likewise.
2903         * hppa-linux-nat.c: Likewise.
2904         * hppanbsd-tdep.c: Likewise.
2905         * hppaobsd-tdep.c: Likewise.
2906         * i386-cygwin-tdep.c: Likewise.
2907         * i386-dicos-tdep.c: Likewise.
2908         * i386-linux-tdep.c: Likewise.
2909         * i386-nto-tdep.c: Likewise.
2910         * i386-sol2-tdep.c: Likewise.
2911         * i386-tdep.c: Likewise.
2912         * i386bsd-tdep.c: Likewise.
2913         * i386gnu-nat.c: Likewise.
2914         * i386nbsd-tdep.c: Likewise.
2915         * i386obsd-tdep.c: Likewise.
2916         * i387-tdep.c: Likewise.
2917         * ia64-libunwind-tdep.c: Likewise.
2918         * ia64-linux-nat.c: Likewise.
2919         * inf-child.c: Likewise.
2920         * inf-ptrace.c: Likewise.
2921         * inf-ttrace.c: Likewise.
2922         * infcall.c: Likewise.
2923         * infcmd.c: Likewise.
2924         * inflow.c: Likewise.
2925         * infrun.c: Likewise.
2926         * interps.c: Likewise.
2927         * iq2000-tdep.c: Likewise.
2928         * irix5-nat.c: Likewise.
2929         * jv-exp.y: Likewise.
2930         * jv-lang.c: Likewise.
2931         * jv-typeprint.c: Likewise.
2932         * jv-valprint.c: Likewise.
2933         * language.c: Likewise.
2934         * linux-fork.c: Likewise.
2935         * linux-nat.c: Likewise.
2936         * lm32-tdep.c: Likewise.
2937         * m2-exp.y: Likewise.
2938         * m2-typeprint.c: Likewise.
2939         * m32c-tdep.c: Likewise.
2940         * m32r-linux-nat.c: Likewise.
2941         * m32r-linux-tdep.c: Likewise.
2942         * m32r-rom.c: Likewise.
2943         * m32r-tdep.c: Likewise.
2944         * m68hc11-tdep.c: Likewise.
2945         * m68k-tdep.c: Likewise.
2946         * m68kbsd-tdep.c: Likewise.
2947         * m68klinux-nat.c: Likewise.
2948         * m68klinux-tdep.c: Likewise.
2949         * m88k-tdep.c: Likewise.
2950         * machoread.c: Likewise.
2951         * macrocmd.c: Likewise.
2952         * main.c: Likewise.
2953         * mdebugread.c: Likewise.
2954         * mem-break.c: Likewise.
2955         * memattr.c: Likewise.
2956         * memory-map.c: Likewise.
2957         * mep-tdep.c: Likewise.
2958         * mi/mi-cmd-break.c: Likewise.
2959         * mi/mi-cmd-disas.c: Likewise.
2960         * mi/mi-cmd-env.c: Likewise.
2961         * mi/mi-cmd-stack.c: Likewise.
2962         * mi/mi-cmd-var.c: Likewise.
2963         * mi/mi-cmds.c: Likewise.
2964         * mi/mi-console.c: Likewise.
2965         * mi/mi-getopt.c: Likewise.
2966         * mi/mi-interp.c: Likewise.
2967         * mi/mi-main.c: Likewise.
2968         * mi/mi-parse.c: Likewise.
2969         * microblaze-rom.c: Likewise.
2970         * microblaze-tdep.c: Likewise.
2971         * mingw-hdep.c: Likewise.
2972         * minidebug.c: Likewise.
2973         * minsyms.c: Likewise.
2974         * mips-irix-tdep.c: Likewise.
2975         * mips-linux-tdep.c: Likewise.
2976         * mips-tdep.c: Likewise.
2977         * mips64obsd-tdep.c: Likewise.
2978         * mipsnbsd-tdep.c: Likewise.
2979         * mipsread.c: Likewise.
2980         * mn10300-linux-tdep.c: Likewise.
2981         * mn10300-tdep.c: Likewise.
2982         * monitor.c: Likewise.
2983         * moxie-tdep.c: Likewise.
2984         * mt-tdep.c: Likewise.
2985         * nat/linux-btrace.c: Likewise.
2986         * nat/linux-osdata.c: Likewise.
2987         * nat/linux-procfs.c: Likewise.
2988         * nat/linux-ptrace.c: Likewise.
2989         * nat/linux-waitpid.c: Likewise.
2990         * nbsd-tdep.c: Likewise.
2991         * nios2-linux-tdep.c: Likewise.
2992         * nto-procfs.c: Likewise.
2993         * nto-tdep.c: Likewise.
2994         * objc-lang.c: Likewise.
2995         * objfiles.c: Likewise.
2996         * opencl-lang.c: Likewise.
2997         * osabi.c: Likewise.
2998         * osdata.c: Likewise.
2999         * p-exp.y: Likewise.
3000         * p-lang.c: Likewise.
3001         * p-typeprint.c: Likewise.
3002         * parse.c: Likewise.
3003         * posix-hdep.c: Likewise.
3004         * ppc-linux-nat.c: Likewise.
3005         * ppc-sysv-tdep.c: Likewise.
3006         * ppcfbsd-tdep.c: Likewise.
3007         * ppcnbsd-tdep.c: Likewise.
3008         * ppcobsd-tdep.c: Likewise.
3009         * printcmd.c: Likewise.
3010         * procfs.c: Likewise.
3011         * prologue-value.c: Likewise.
3012         * python/py-auto-load.c: Likewise.
3013         * python/py-gdb-readline.c: Likewise.
3014         * ravenscar-thread.c: Likewise.
3015         * regcache.c: Likewise.
3016         * registry.c: Likewise.
3017         * remote-fileio.c: Likewise.
3018         * remote-m32r-sdi.c: Likewise.
3019         * remote-mips.c: Likewise.
3020         * remote-notif.c: Likewise.
3021         * remote-sim.c: Likewise.
3022         * remote.c: Likewise.
3023         * reverse.c: Likewise.
3024         * rs6000-aix-tdep.c: Likewise.
3025         * ser-base.c: Likewise.
3026         * ser-go32.c: Likewise.
3027         * ser-mingw.c: Likewise.
3028         * ser-pipe.c: Likewise.
3029         * ser-tcp.c: Likewise.
3030         * ser-unix.c: Likewise.
3031         * serial.c: Likewise.
3032         * sh-tdep.c: Likewise.
3033         * sh64-tdep.c: Likewise.
3034         * shnbsd-tdep.c: Likewise.
3035         * skip.c: Likewise.
3036         * sol-thread.c: Likewise.
3037         * solib-dsbt.c: Likewise.
3038         * solib-frv.c: Likewise.
3039         * solib-osf.c: Likewise.
3040         * solib-som.c: Likewise.
3041         * solib-spu.c: Likewise.
3042         * solib-target.c: Likewise.
3043         * solib.c: Likewise.
3044         * somread.c: Likewise.
3045         * source.c: Likewise.
3046         * sparc-nat.c: Likewise.
3047         * sparc-sol2-tdep.c: Likewise.
3048         * sparc-tdep.c: Likewise.
3049         * sparc64-tdep.c: Likewise.
3050         * sparc64fbsd-tdep.c: Likewise.
3051         * sparc64nbsd-tdep.c: Likewise.
3052         * sparcnbsd-tdep.c: Likewise.
3053         * spu-linux-nat.c: Likewise.
3054         * spu-multiarch.c: Likewise.
3055         * spu-tdep.c: Likewise.
3056         * stabsread.c: Likewise.
3057         * stack.c: Likewise.
3058         * std-regs.c: Likewise.
3059         * symfile.c: Likewise.
3060         * symmisc.c: Likewise.
3061         * symtab.c: Likewise.
3062         * target.c: Likewise.
3063         * thread.c: Likewise.
3064         * tilegx-linux-nat.c: Likewise.
3065         * tilegx-tdep.c: Likewise.
3066         * top.c: Likewise.
3067         * tracepoint.c: Likewise.
3068         * tui/tui-command.c: Likewise.
3069         * tui/tui-data.c: Likewise.
3070         * tui/tui-disasm.c: Likewise.
3071         * tui/tui-file.c: Likewise.
3072         * tui/tui-layout.c: Likewise.
3073         * tui/tui-out.c: Likewise.
3074         * tui/tui-regs.c: Likewise.
3075         * tui/tui-source.c: Likewise.
3076         * tui/tui-stack.c: Likewise.
3077         * tui/tui-win.c: Likewise.
3078         * tui/tui-windata.c: Likewise.
3079         * tui/tui-winsource.c: Likewise.
3080         * typeprint.c: Likewise.
3081         * ui-file.c: Likewise.
3082         * ui-out.c: Likewise.
3083         * user-regs.c: Likewise.
3084         * utils.c: Likewise.
3085         * v850-tdep.c: Likewise.
3086         * valarith.c: Likewise.
3087         * valops.c: Likewise.
3088         * valprint.c: Likewise.
3089         * value.c: Likewise.
3090         * varobj.c: Likewise.
3091         * vax-tdep.c: Likewise.
3092         * vaxnbsd-tdep.c: Likewise.
3093         * vaxobsd-tdep.c: Likewise.
3094         * windows-nat.c: Likewise.
3095         * xcoffread.c: Likewise.
3096         * xml-support.c: Likewise.
3097         * xstormy16-tdep.c: Likewise.
3098         * xtensa-linux-nat.c: Likewise.
3099
3100 2014-08-07  Gary Benson  <gbenson@redhat.com>
3101
3102         * common/common-defs.h: Include gdb_assert.h.
3103         * aarch64-tdep.c: Do not include gdb_assert.h.
3104         * addrmap.c: Likewise.
3105         * aix-thread.c: Likewise.
3106         * alpha-linux-tdep.c: Likewise.
3107         * alpha-mdebug-tdep.c: Likewise.
3108         * alphanbsd-tdep.c: Likewise.
3109         * amd64-nat.c: Likewise.
3110         * amd64-tdep.c: Likewise.
3111         * amd64bsd-nat.c: Likewise.
3112         * amd64fbsd-nat.c: Likewise.
3113         * amd64fbsd-tdep.c: Likewise.
3114         * amd64nbsd-nat.c: Likewise.
3115         * amd64nbsd-tdep.c: Likewise.
3116         * amd64obsd-nat.c: Likewise.
3117         * amd64obsd-tdep.c: Likewise.
3118         * arch-utils.c: Likewise.
3119         * arm-tdep.c: Likewise.
3120         * armbsd-tdep.c: Likewise.
3121         * auxv.c: Likewise.
3122         * bcache.c: Likewise.
3123         * bfin-tdep.c: Likewise.
3124         * blockframe.c: Likewise.
3125         * breakpoint.c: Likewise.
3126         * bsd-kvm.c: Likewise.
3127         * bsd-uthread.c: Likewise.
3128         * buildsym.c: Likewise.
3129         * c-exp.y: Likewise.
3130         * c-lang.c: Likewise.
3131         * charset.c: Likewise.
3132         * cleanups.c: Likewise.
3133         * cli-out.c: Likewise.
3134         * cli/cli-decode.c: Likewise.
3135         * cli/cli-dump.c: Likewise.
3136         * cli/cli-logging.c: Likewise.
3137         * cli/cli-script.c: Likewise.
3138         * cli/cli-utils.c: Likewise.
3139         * coffread.c: Likewise.
3140         * common/common-utils.c: Likewise.
3141         * common/queue.h: Likewise.
3142         * common/signals.c: Likewise.
3143         * common/vec.h: Likewise.
3144         * complaints.c: Likewise.
3145         * completer.c: Likewise.
3146         * corelow.c: Likewise.
3147         * cp-abi.c: Likewise.
3148         * cp-name-parser.y: Likewise.
3149         * cp-namespace.c: Likewise.
3150         * cp-support.c: Likewise.
3151         * cris-tdep.c: Likewise.
3152         * dbxread.c: Likewise.
3153         * dictionary.c: Likewise.
3154         * doublest.c: Likewise.
3155         * dsrec.c: Likewise.
3156         * dummy-frame.c: Likewise.
3157         * dwarf2-frame-tailcall.c: Likewise.
3158         * dwarf2-frame.c: Likewise.
3159         * dwarf2expr.c: Likewise.
3160         * dwarf2loc.c: Likewise.
3161         * dwarf2read.c: Likewise.
3162         * eval.c: Likewise.
3163         * event-loop.c: Likewise.
3164         * exceptions.c: Likewise.
3165         * expprint.c: Likewise.
3166         * f-valprint.c: Likewise.
3167         * fbsd-nat.c: Likewise.
3168         * findvar.c: Likewise.
3169         * frame-unwind.c: Likewise.
3170         * frame.c: Likewise.
3171         * frv-tdep.c: Likewise.
3172         * gcore.c: Likewise.
3173         * gdb-dlfcn.c: Likewise.
3174         * gdb_bfd.c: Likewise.
3175         * gdbarch.c: Likewise.
3176         * gdbarch.sh: Likewise.
3177         * gdbtypes.c: Likewise.
3178         * gnu-nat.c: Likewise.
3179         * gnu-v3-abi.c: Likewise.
3180         * go-lang.c: Likewise.
3181         * guile/scm-exception.c: Likewise.
3182         * guile/scm-gsmob.c: Likewise.
3183         * guile/scm-lazy-string.c: Likewise.
3184         * guile/scm-math.c: Likewise.
3185         * guile/scm-pretty-print.c: Likewise.
3186         * guile/scm-safe-call.c: Likewise.
3187         * guile/scm-utils.c: Likewise.
3188         * guile/scm-value.c: Likewise.
3189         * h8300-tdep.c: Likewise.
3190         * hppa-hpux-nat.c: Likewise.
3191         * hppa-tdep.c: Likewise.
3192         * hppanbsd-tdep.c: Likewise.
3193         * hppaobsd-tdep.c: Likewise.
3194         * i386-darwin-nat.c: Likewise.
3195         * i386-darwin-tdep.c: Likewise.
3196         * i386-nto-tdep.c: Likewise.
3197         * i386-tdep.c: Likewise.
3198         * i386bsd-nat.c: Likewise.
3199         * i386fbsd-tdep.c: Likewise.
3200         * i386gnu-nat.c: Likewise.
3201         * i386nbsd-tdep.c: Likewise.
3202         * i386obsd-tdep.c: Likewise.
3203         * i387-tdep.c: Likewise.
3204         * ia64-libunwind-tdep.c: Likewise.
3205         * ia64-tdep.c: Likewise.
3206         * inf-ptrace.c: Likewise.
3207         * inf-ttrace.c: Likewise.
3208         * infcall.c: Likewise.
3209         * infcmd.c: Likewise.
3210         * infrun.c: Likewise.
3211         * inline-frame.c: Likewise.
3212         * interps.c: Likewise.
3213         * jv-lang.c: Likewise.
3214         * jv-typeprint.c: Likewise.
3215         * linux-fork.c: Likewise.
3216         * linux-nat.c: Likewise.
3217         * linux-thread-db.c: Likewise.
3218         * m32c-tdep.c: Likewise.
3219         * m32r-linux-nat.c: Likewise.
3220         * m32r-tdep.c: Likewise.
3221         * m68k-tdep.c: Likewise.
3222         * m68kbsd-nat.c: Likewise.
3223         * m68kbsd-tdep.c: Likewise.
3224         * m88k-tdep.c: Likewise.
3225         * machoread.c: Likewise.
3226         * macroexp.c: Likewise.
3227         * macrotab.c: Likewise.
3228         * maint.c: Likewise.
3229         * mdebugread.c: Likewise.
3230         * memory-map.c: Likewise.
3231         * mep-tdep.c: Likewise.
3232         * mi/mi-common.c: Likewise.
3233         * microblaze-tdep.c: Likewise.
3234         * mingw-hdep.c: Likewise.
3235         * mips-linux-nat.c: Likewise.
3236         * mips-linux-tdep.c: Likewise.
3237         * mips-tdep.c: Likewise.
3238         * mips64obsd-tdep.c: Likewise.
3239         * mipsnbsd-tdep.c: Likewise.
3240         * mn10300-linux-tdep.c: Likewise.
3241         * mn10300-tdep.c: Likewise.
3242         * moxie-tdep.c: Likewise.
3243         * mt-tdep.c: Likewise.
3244         * nat/linux-btrace.c: Likewise.
3245         * nat/linux-osdata.c: Likewise.
3246         * nat/linux-ptrace.c: Likewise.
3247         * nat/mips-linux-watch.c: Likewise.
3248         * nios2-linux-tdep.c: Likewise.
3249         * nios2-tdep.c: Likewise.
3250         * objc-lang.c: Likewise.
3251         * objfiles.c: Likewise.
3252         * obsd-nat.c: Likewise.
3253         * opencl-lang.c: Likewise.
3254         * osabi.c: Likewise.
3255         * parse.c: Likewise.
3256         * ppc-linux-nat.c: Likewise.
3257         * ppc-sysv-tdep.c: Likewise.
3258         * ppcfbsd-nat.c: Likewise.
3259         * ppcfbsd-tdep.c: Likewise.
3260         * ppcnbsd-nat.c: Likewise.
3261         * ppcnbsd-tdep.c: Likewise.
3262         * ppcobsd-nat.c: Likewise.
3263         * ppcobsd-tdep.c: Likewise.
3264         * printcmd.c: Likewise.
3265         * procfs.c: Likewise.
3266         * prologue-value.c: Likewise.
3267         * psymtab.c: Likewise.
3268         * python/py-lazy-string.c: Likewise.
3269         * python/py-value.c: Likewise.
3270         * regcache.c: Likewise.
3271         * reggroups.c: Likewise.
3272         * registry.c: Likewise.
3273         * remote-sim.c: Likewise.
3274         * remote.c: Likewise.
3275         * rs6000-aix-tdep.c: Likewise.
3276         * rs6000-tdep.c: Likewise.
3277         * s390-linux-tdep.c: Likewise.
3278         * score-tdep.c: Likewise.
3279         * ser-base.c: Likewise.
3280         * ser-mingw.c: Likewise.
3281         * sh-tdep.c: Likewise.
3282         * sh64-tdep.c: Likewise.
3283         * solib-darwin.c: Likewise.
3284         * solib-spu.c: Likewise.
3285         * solib-svr4.c: Likewise.
3286         * source.c: Likewise.
3287         * sparc-nat.c: Likewise.
3288         * sparc-sol2-tdep.c: Likewise.
3289         * sparc-tdep.c: Likewise.
3290         * sparc64-sol2-tdep.c: Likewise.
3291         * sparc64-tdep.c: Likewise.
3292         * sparc64fbsd-tdep.c: Likewise.
3293         * sparc64nbsd-tdep.c: Likewise.
3294         * sparc64obsd-tdep.c: Likewise.
3295         * sparcnbsd-tdep.c: Likewise.
3296         * sparcobsd-tdep.c: Likewise.
3297         * spu-multiarch.c: Likewise.
3298         * spu-tdep.c: Likewise.
3299         * stabsread.c: Likewise.
3300         * stack.c: Likewise.
3301         * symfile.c: Likewise.
3302         * symtab.c: Likewise.
3303         * target-descriptions.c: Likewise.
3304         * target-memory.c: Likewise.
3305         * target.c: Likewise.
3306         * tic6x-linux-tdep.c: Likewise.
3307         * tic6x-tdep.c: Likewise.
3308         * tilegx-linux-nat.c: Likewise.
3309         * tilegx-tdep.c: Likewise.
3310         * top.c: Likewise.
3311         * tramp-frame.c: Likewise.
3312         * tui/tui-out.c: Likewise.
3313         * tui/tui-winsource.c: Likewise.
3314         * ui-out.c: Likewise.
3315         * user-regs.c: Likewise.
3316         * utils.c: Likewise.
3317         * v850-tdep.c: Likewise.
3318         * valops.c: Likewise.
3319         * value.c: Likewise.
3320         * varobj.c: Likewise.
3321         * vax-nat.c: Likewise.
3322         * xml-syscall.c: Likewise.
3323         * xml-tdesc.c: Likewise.
3324         * xstormy16-tdep.c: Likewise.
3325         * xtensa-linux-nat.c: Likewise.
3326         * xtensa-tdep.c: Likewise.
3327
3328 2014-08-07  Gary Benson  <gbenson@redhat.com>
3329
3330         * common/common-defs.h: Include common-utils.h.
3331         * defs.h: Do not include common-utils.h.
3332         * common/gdb_assert.h: Likewise.
3333         * darwin-nat.h: Likewise.
3334         * nat/linux-btrace.c: Likewise.
3335         * target/waitstatus.h: Likewise.
3336
3337 2014-08-07  Gary Benson  <gbenson@redhat.com>
3338
3339         * common/common-defs.h: Include ptid.h.
3340         * defs.h: Do not include ptid.h.
3341         * inferior.h: Likewise.
3342         * infrun.h: Likewise.
3343         * nat/linux-btrace.h: Likewise.
3344         * nat/linux-osdata.h: Likewise.
3345         * target/waitstatus.h: Likewise.
3346
3347 2014-08-07  Gary Benson  <gbenson@redhat.com>
3348
3349         * common/common-defs.h: Include gdb_locale.h.
3350         * defs.h: Do not include gdb_locale.h.
3351
3352 2014-08-07  Gary Benson  <gbenson@redhat.com>
3353
3354         * common/common-defs.h: Include gdb/signals.h.
3355         * defs.h: Do not include gdb/signals.h.
3356
3357 2014-08-07  Gary Benson  <gbenson@redhat.com>
3358
3359         * common/common-defs.h: Include pathmax.h.
3360         * defs.h: Do not include pathmax.h.
3361
3362 2014-08-07  Gary Benson  <gbenson@redhat.com>
3363
3364         * common/common-defs.h: Include libiberty.h.
3365         * defs.h: Do not include libiberty.h.
3366         * common/queue.h: Likewise.
3367         * cp-name-parser.y: Likewise.
3368         * mi/mi-cmd-catch.c: Likewise.
3369         * python/python.c: Likewise.
3370
3371 2014-08-07  Gary Benson  <gbenson@redhat.com>
3372
3373         * common/common-defs.h: Include ansidecl.h.
3374         * defs.h: Do not include ansidecl.h.
3375         * common/buffer.h: Likewise.
3376         * common/common-utils.h: Likewise.
3377
3378 2014-08-07  Gary Benson  <gbenson@redhat.com>
3379
3380         * common/common-defs.h: Include stddef.h.
3381         * defs.h: Do not include stddef.h.
3382         * common/common-utils.h: Likewise.
3383         * amd64fbsd-nat.c: Likewise.
3384         * bcache.c: Likewise.
3385         * charset.c: Likewise.
3386         * common/buffer.h: Likewise.
3387         * common/vec.h: Likewise.
3388         * i386bsd-nat.c: Likewise.
3389         * nat/linux-btrace.h: Likewise.
3390         * ppcfbsd-nat.c: Likewise.
3391         * ppcnbsd-tdep.h: Likewise.
3392         * ppcobsd-nat.c: Likewise.
3393         * ppcobsd-tdep.h: Likewise.
3394         * python/py-gdb-readline.c: Likewise.
3395
3396 2014-08-07  Gary Benson  <gbenson@redhat.com>
3397
3398         * common/common-defs.h: Include stdarg.h.
3399         * defs.h: Do not include stdarg.h.
3400         * ada-lang.c: Likewise.
3401         * common/common-utils.h: Likewise.
3402         * guile/scm-string.c: Likewise.
3403         * guile/scm-utils.c: Likewise.
3404         * m32c-tdep.c: Likewise.
3405
3406 2014-08-07  Gary Benson  <gbenson@redhat.com>
3407
3408         * common/common-defs.h: Include stdlib.h.
3409         * defs.h: Do not include stdlib.h.
3410         * addrmap.c: Likewise.
3411         * bcache.c: Likewise.
3412         * common/buffer.c: Likewise.
3413         * common/common-utils.c: Likewise.
3414         * cp-name-parser.y: Likewise.
3415         * go32-nat.c: Likewise.
3416         * mn10300-linux-tdep.c: Likewise.
3417         * nat/linux-osdata.c: Likewise.
3418         * tui/tui.c: Likewise.
3419         * windows-nat.c: Likewise.
3420
3421 2014-08-07  Gary Benson  <gbenson@redhat.com>
3422
3423         * common/common-defs.h: Include stdio.h.
3424         * defs.h: Do not include stdio.h.
3425         * ada-lang.c: Likewise.
3426         * common/buffer.c: Likewise.
3427         * common/common-utils.c: Likewise.
3428         * cp-name-parser.y: Likewise.
3429         * gnu-nat.c: Likewise.
3430         * go32-nat.c: Likewise.
3431         * i386gnu-nat.c: Likewise.
3432         * proc-api.c: Likewise.
3433         * proc-events.c: Likewise.
3434         * proc-flags.c: Likewise.
3435         * proc-why.c: Likewise.
3436         * python/python-internal.h: Likewise.
3437         * target-memory.c: Likewise.
3438         * tui/tui-io.c: Likewise.
3439         * tui/tui.c: Likewise.
3440
3441 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
3442
3443         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3444         (scan_dyntag_auxv): Same.
3445
3446 2014-08-06  Yao Qi  <yao@codesourcery.com>
3447
3448         * amd64-linux-nat.c: Remove duplicated include
3449         "x86-linux-nat.h".
3450         * i386-linux-nat.c: Likewise.
3451
3452 2014-08-06  Yao Qi  <yao@codesourcery.com>
3453
3454         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3455         operand" with "Special opcode" in comments.
3456
3457 2014-08-05  Gary Benson  <gbenson@redhat.com>
3458
3459         * interps.c (initialize_interps): Remove prototype.
3460         (interpreter_initialized): Remove static global.
3461         (interp_add): Do not call initialize_interps.
3462         (initialize_interps): Remove function.
3463
3464 2014-08-05  Gary Benson  <gbenson@redhat.com>
3465
3466         * utils.c (vwarning): Remove spurious va_end.
3467
3468 2014-08-05  Alan Modra  <amodra@gmail.com>
3469
3470         * charset.c (convert_between_encodings): Cast result of obstack_base.
3471         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3472         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3473         (read_unwind_info): Use size_t for some locals.
3474         * jit.c (finalize_symtab): Likewise.
3475         * utils.c (hashtab_obstack_allocate): Likewise.
3476         * symmisc.c (print_objfile_statistics): Update format strings.
3477
3478 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3479
3480         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3481         (Changes in GDB 7.8): ... here.
3482
3483 2014-08-04  Tom Tromey  <tromey@redhat.com>
3484
3485         * target.c (set_targetdebug): New function.
3486         (initialize_targets): Pass set_targetdebug when creating "set
3487         debug target".
3488
3489 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3490
3491         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3492         if detecting a variable-sized field that is not the last field.
3493         Fix struct type length computation.
3494
3495 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3496
3497         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3498         Add debug trace.
3499
3500 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3501
3502         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3503         Remove "+ 8" offset in computation of CHAIN_VMA.
3504
3505 2014-07-31  Doug Evans  <dje@google.com>
3506
3507         * inflow.c (child_terminal_inferior): Add comment.
3508         (child_terminal_ours_for_output): Add comment.
3509         (child_terminal_ours): Add comment.
3510         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3511         (linux_nat_terminal_ours): Add comment.
3512
3513 2014-07-31  Gary Benson  <gbenson@redhat.com>
3514
3515         * common/btrace-common.h: Do not include defs.h or server.h.
3516         * nat/mips-linux-watch.h: Likewise.
3517         * gdb-dlfcn.h: Do not include defs.h.
3518         * tracefile.h: Likewise.
3519
3520 2014-07-30  Roland McGrath  <mcgrathr@google.com>
3521
3522         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3523
3524 2014-07-30  Tom Tromey  <tromey@redhat.com>
3525
3526         * bsd-kvm.c (bsd_kvm_open): Constify.
3527         * corelow.c (core_open): Constify.
3528         * ctf.c (ctf_open): Constify.
3529         * dbug-rom.c (dbug_open): Constify.
3530         * exec.c (exec_open): Constify.
3531         * m32r-rom.c (m32r_open, mon2000_open): Constify.
3532         * microblaze-rom.c (picobug_open): Constify.
3533         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3534         Constify.
3535         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3536         * record-btrace.c (record_btrace_open): Constify.
3537         * record-full.c (record_full_core_open_1, record_full_open_1)
3538         (record_full_open): Constify.
3539         * remote-m32r-sdi.c (m32r_open): Constify.
3540         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3541         (rockhopper_open, lsi_open): Constify.
3542         * remote-sim.c (gdbsim_open): Constify.
3543         * remote.c (remote_open, extended_remote_open, remote_open_1):
3544         Constify.
3545         * target.h (struct target_ops) <to_open>: Make "arg" const.
3546         * tracefile-tfile.c (tfile_open): Constify.
3547
3548 2014-07-30  Tom Tromey  <tromey@redhat.com>
3549
3550         * breakpoint.c (map_breakpoint_numbers): Update.
3551         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
3552         (get_number_const): New function.
3553         (get_number): Rewrite using get_number_const.
3554         (init_number_or_range): Make "string" const.
3555         (number_is_in_list): Make "list" const.
3556         * cli/cli-utils.h (get_number_const): Declare.
3557         (struct get_number_or_range_state) <string, end_ptr>: Now const.
3558         (init_number_or_range, number_is_in_list): Update.
3559         * printcmd.c (map_display_numbers): Update.
3560         * value.c (value_from_history_ref): Constify.
3561         * value.h (value_from_history_ref): Update.
3562
3563 2014-07-30  Tom Tromey  <tromey@redhat.com>
3564
3565         * corefile.c (hook_type, call_extra_exec_file_hooks)
3566         (specify_exec_file_hook): Constify.
3567         * exec.c (exec_file_attach): Make "filename" const.
3568         * gdbcore.h (deprecated_exec_file_display_hook)
3569         (specify_exec_file_hook, exec_file_attach): Constify.
3570         * main.c (captured_main): Use catch_command_errors_const.
3571
3572 2014-07-30  Tom Tromey  <tromey@redhat.com>
3573
3574         * target.c (open_target): New function.
3575         (add_target_with_completer, add_deprecated_target_alias): Use
3576         set_cmd_sfunc, set_cmd_context.
3577         (debug_to_open): Remove.
3578         (setup_target_debug): Update.
3579
3580 2014-07-30  Yao Qi  <yao@codesourcery.com>
3581
3582         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3583         comments.
3584         * parse.c (exp_iterate): Update comments.
3585
3586 2014-07-30  Gary Benson  <gbenson@redhat.com>
3587
3588         * common/common-defs.h: New file.
3589         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3590         * defs.h: Include common-defs.h.
3591         Do not include config.h or build-gnulib/config.h.
3592
3593 2014-07-30  Gary Benson  <gbenson@redhat.com>
3594
3595         * common/common-utils.h: Do not include config.h.
3596         * nat/linux-btrace.h: Likewise.
3597
3598 2014-07-30  Gary Benson  <gbenson@redhat.com>
3599
3600         * btrace.c: Include defs.h.
3601         * common/ptid.c: Include defs.h or server.h as appropriate.
3602         * nat/mips-linux-watch.c: Likewise.
3603
3604 2014-07-29  Tom Tromey  <tromey@redhat.com>
3605
3606         * target.c (target_is_pushed): Simplify.
3607
3608 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
3609
3610         GDB 7.8 released.
3611
3612 2014-07-29  Yao Qi  <yao@codesourcery.com>
3613
3614         PR gdb/17206
3615         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3616
3617 2014-07-28  Doug Evans  <xdje42@gmail.com>
3618
3619         PR guile/17203
3620         * guile/scm-param.c (pascm_parameter_defined_p): New function.
3621         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
3622         parameters.
3623
3624 2014-07-28  Will Newton  <will.newton@linaro.org>
3625
3626         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3627         (THUMB2_SET_R7_SIGRETURN2): Likewise.
3628         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3629         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3630         (THUMB2_EABI_SYSCALL): Likewise.
3631         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3632         struct tramp_frame.
3633         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3634         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3635
3636 2014-07-27  Doug Evans  <xdje42@gmail.com>
3637
3638         * guile/scm-param.c (pascm_print_param_smob): Fix output.
3639
3640 2014-07-27  Doug Evans  <xdje42@gmail.com>
3641
3642         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3643
3644 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3645             Doug Evans  <xdje42@gmail.com>
3646
3647         PR guile/17146
3648         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3649         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3650         * configure.ac: Try to use guild to compile an scm file, if it fails
3651         then disable guile support.
3652         * configure: Regenerate.
3653         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3654         GUILE_FILE_LIST.
3655         (GUILE_COMPILED_FILES): New variable.
3656         (GUILE_FILES) Update.
3657         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3658         (stamp-guile): Compile scm files.
3659         * guile/guile.c (boot_guile_support): New function.
3660         (standard_throw_args_p): New function.
3661         (print_standard_throw_error, print_throw_error): New functions.
3662         (handle_boot_error): New function.
3663         (initialize_scheme_side): Rewrite to call boot_guile_support.
3664         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
3665         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3666
3667 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3668             Doug Evans  <xdje42@gmail.com>
3669
3670         PR guile/17146
3671         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3672         * guile/lib/gdb/support.scm: New file.
3673         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3674         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3675         All uses updated.
3676         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3677         All uses updated.
3678         (%assert-type): Ditto, and renamed to assert-type.
3679         (%exception-print-style): Delete.
3680
3681 2014-07-26  Doug Evans  <xdje42@gmail.com>
3682
3683         PR build/17105
3684         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3685         * configure: Regenerate.
3686         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3687         PYTHON_FILES.
3688         (PYTHON_FILES): New variable.
3689         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3690         (GUILE_FILES): New variable.
3691         (stamp-python, install-python, uninstall-python): Handle empty
3692         file list.
3693         (stamp-guile, install-guile, uninstall-guile): Ditto.
3694
3695 2014-07-26  Doug Evans  <xdje42@gmail.com>
3696
3697         PR guile/17177
3698         * guile/lib/gdb.scm (pretty-printers): Export.
3699         (set-pretty-printers!): Export.
3700         * guile/lib/gdb/printing.scm (gdb module): Update.
3701         (prepend-pretty-printer!, append-pretty-printer!): Update.
3702         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3703         (pretty_printer_list_var): Delete.
3704         (pretty_printer_list): New static global.
3705         (gdbscm_pretty_printers): New function.
3706         (gdbscm_set_pretty_printers_x): New function.
3707         (ppscm_find_pretty_printer_from_gdb): Update.
3708         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3709         (gdbscm_initialize_pretty_printers): Update.
3710
3711 2014-07-26  Doug Evans  <xdje42@gmail.com>
3712
3713         PR 17185
3714         * configure.ac: Add check for header gc/gc.h.
3715         Add check for function setenv.
3716         * configure: Regenerate.
3717         * config.in: Regenerate.
3718         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3719
3720 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
3721
3722         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3723         variation in gdbarch matching.
3724
3725 2014-07-25  Tom Tromey  <tromey@redhat.com>
3726
3727         * exec.c (using_exec_ops): Remove.
3728         (exec_close_1): Update.  Remove extraneous block, reindent.
3729         (add_target_sections): Use target_is_pushed.
3730
3731 2014-07-25  Pedro Alves  <palves@redhat.com>
3732
3733         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3734         * monitor.c (monitor_create_inferior): Likewise.
3735         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3736         * remote-sim.c (gdbsim_create_inferior): Likewise.
3737         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3738         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3739         * windows-nat.c (do_initial_windows_stuff): Likewise.
3740
3741 2014-07-25  Pedro Alves  <palves@redhat.com>
3742
3743         * NEWS: Mention signal passing and "signal" command changes.
3744         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3745         comment.
3746         * breakpoint.c (until_break_command): Adjust clear_proceed_status
3747         call.
3748         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3749         * infcmd.c (proceed_thread_callback, continue_1, step_once)
3750         (jump_command): Adjust clear_proceed_status call.
3751         (signal_command): Warn if other thread that are resumed have
3752         signals that will be delivered.  Adjust clear_proceed_status call.
3753         (until_next_command, finish_command)
3754         (proceed_after_attach_callback, attach_command_post_wait)
3755         (attach_command): Adjust clear_proceed_status call.
3756         * infrun.c (proceed_after_vfork_done): Likewise.
3757         (proceed_after_attach_callback): Adjust comment.
3758         (clear_proceed_status_thread): Clear stop_signal if not in pass
3759         state.
3760         (clear_proceed_status_callback): Delete.
3761         (clear_proceed_status): New 'step' parameter.  Only clear the
3762         proceed status of threads the command being prepared is about to
3763         resume.
3764         (proceed): If passed in an explicit signal, override stop_signal
3765         with it.  Don't pass the last stop signal to the thread we're
3766         resuming.
3767         (init_wait_for_inferior): Adjust clear_proceed_status call.
3768         (switch_back_to_stepped_thread): Clear the signal if it should not
3769         be passed.
3770         * infrun.h (clear_proceed_status): New 'step' parameter.
3771         (user_visible_resume_ptid): Add comment.
3772         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3773         signal is in pass state.
3774         * remote.c (append_pending_thread_resumptions): Likewise.
3775         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3776
3777 2014-07-25  Tom Tromey  <tromey@redhat.com>
3778
3779         * target.h (target_stopped_data_address)
3780         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
3781         parentheses.
3782
3783 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
3784
3785         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3786         comments.
3787         (avr_pointer_to_address): Likewise.
3788
3789 2014-07-24  Tom Tromey  <tromey@redhat.com>
3790
3791         * monitor.c (compile_pattern): Update.
3792         * target.h (struct target_ops) <to_shortname, to_longname,
3793         to_doc>: Now const.
3794
3795 2014-07-24  Tom Tromey  <tromey@redhat.com>
3796
3797         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3798         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3799         (add_info_alias, add_com): Make "doc" const.
3800         (print_doc_line): Make "str" const.
3801         (delete_cmd): Update.
3802         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3803         (print_doc_line): Update.
3804         * cli/cli-script.c (document_command): Update.
3805         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3806         (add_com, add_info, add_info_alias): Update.
3807         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3808         * python/py-cmd.c (cmdpy_destroyer): Update.
3809
3810 2014-07-24  Tom Tromey  <tromey@redhat.com>
3811
3812         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3813         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3814         (help_cmd_list): Constify.
3815         (lookup_cmd): Update.
3816         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3817         const.
3818         (help_cmd_list, apropos_cmd): Update.
3819         * cli/cli-script.c (show_user): Update.
3820         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3821         * cli/cli-setshow.h (cmd_show_list): Update.
3822         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3823         (cmd_show_list): Update.
3824         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3825         * python/py-cmd.c (cmdpy_destroyer): Update.
3826
3827 2014-07-24  Tom Tromey  <tromey@redhat.com>
3828
3829         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3830         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3831         const.
3832         * command.h (deprecate_cmd): Update.
3833         * maint.c (maintenance_do_deprecate): Add casts.
3834
3835 2014-07-24  Tom Tromey  <tromey@redhat.com>
3836
3837         * cli/cli-decode.c (help_cmd): Make parameter "const".
3838         * cli/cli-decode.h (help_cmd): Update.
3839
3840 2014-07-24  Tom Tromey  <tromey@redhat.com>
3841
3842         * stack.c (up_silently_base, down_silently_base): Make argument
3843         const.
3844
3845 2014-07-24  Tom Tromey  <tromey@redhat.com>
3846
3847         * solib.c (solib_add): Make "pattern" const.
3848         * solib.h (solib_add): Update.
3849
3850 2014-07-24  Tom Tromey  <tromey@redhat.com>
3851
3852         * remote.c (remote_serial_open, print_packet, putpkt)
3853         (putpkt_binary): Constify.
3854         * remote.h (putpkt): Update.
3855
3856 2014-07-24  Tom Tromey  <tromey@redhat.com>
3857
3858         * monitor.c (monitor_open): Make "args" const.
3859         * monitor.h (monitor_open): Update.
3860
3861 2014-07-24  Tom Tromey  <tromey@redhat.com>
3862
3863         * maint.c (match_bfd_flags): Make "string" const.
3864         (print_bfd_section_info): Remove casts.
3865         (print_objfile_section_info): Make "string" const.
3866
3867 2014-07-24  Tom Tromey  <tromey@redhat.com>
3868
3869         * inf-child.c (inf_child_open_target): Make "arg" const.
3870         * inf-child.h (inf_child_open_target): Update.
3871
3872 2014-07-24  Tom Tromey  <tromey@redhat.com>
3873
3874         * environ.c (unset_in_environ): Make "var" const.
3875         * environ.h (unset_in_environ): Update.
3876
3877 2014-07-24  Tom Tromey  <tromey@redhat.com>
3878
3879         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3880         Make "cmd" const.
3881         (scan_filename_with_cleanup): Likewise.
3882         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3883         Make arguments const.
3884         (restore_command): Update.
3885
3886 2014-07-24  Pedro Alves  <palves@redhat.com>
3887
3888         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3889
3890 2014-07-24  Tom Tromey  <tromey@redhat.com>
3891             Gary Benson  <gbenson@redhat.com>
3892
3893         * nat/linux-ptrace.c (additional_flags): New global.
3894         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3895         additional_flags; don't check GDBSERVER.
3896         (linux_ptrace_set_additional_flags): New function.
3897         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3898         Declare.
3899         * linux-nat.c (_initialize_linux_nat): Call
3900         linux_ptrace_set_additional_flags.
3901
3902 2014-07-24  Tom Tromey  <tromey@redhat.com>
3903
3904         * make-target-delegates (munge_type, write_debugmethod): New
3905         functions.
3906         (debug_names): New global.
3907         ($TARGET_DEBUG_PRINTER): New global.
3908         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3909         name.
3910         Write debug methods.  Generate init_debug_target.
3911         * target-debug.h: New file.
3912         * target-delegates.c: Rebuild.
3913         * target.c: Include target-debug.h.
3914         (debug_target): Hoist definition.
3915         (target_kill, target_get_section_table, target_memory_map)
3916         (target_flash_erase, target_flash_done, target_detach)
3917         (target_disconnect, target_wait, target_resume)
3918         (target_pass_signals, target_program_signals, target_follow_fork)
3919         (target_mourn_inferior, target_search_memory)
3920         (target_thread_address_space, target_close)
3921         (target_find_new_threads, target_core_of_thread)
3922         (target_verify_memory, target_insert_mask_watchpoint)
3923         (target_remove_mask_watchpoint): Remove targetdebug code.
3924         (debug_to_post_attach, debug_to_prepare_to_store)
3925         (debug_to_files_info, debug_to_insert_breakpoint)
3926         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3927         (debug_to_region_ok_for_hw_watchpoint)
3928         (debug_to_can_accel_watchpoint_condition)
3929         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3930         (debug_to_watchpoint_addr_within_range)
3931         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3932         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3933         (debug_to_terminal_init, debug_to_terminal_inferior)
3934         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3935         (debug_to_terminal_save_ours, debug_to_terminal_info)
3936         (debug_to_load, debug_to_post_startup_inferior)
3937         (debug_to_insert_fork_catchpoint)
3938         (debug_to_remove_fork_catchpoint)
3939         (debug_to_insert_vfork_catchpoint)
3940         (debug_to_remove_vfork_catchpoint)
3941         (debug_to_insert_exec_catchpoint)
3942         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3943         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3944         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3945         (setup_target_debug): Call init_debug_target.
3946         * target.h (TARGET_DEBUG_PRINTER): New macro.
3947         (struct target_ops) <to_resume, to_wait, to_pass_signals,
3948         to_program_signals>: Use TARGET_DEBUG_PRINTER.
3949
3950 2014-07-24  Gary Benson  <gbenson@redhat.com>
3951
3952         * exceptions.h (throw_vfatal): Renamed to...
3953         (throw_vquit): New declaration.
3954         (throw_quit): Likewise.
3955         * exceptions.c (throw_vfatal): Renamed to...
3956         (throw_vquit): New function.
3957         (throw_quit): Likewise.
3958         (throw_error): Call throw_verror rather than throw_it.
3959         * utils.h (vfatal): Removed.
3960         (fatal): Likewise.
3961         * utils.c (vfatal): Removed.
3962         (fatal): Likewise.
3963         (internal_verror): Replaced call to fatal with call to throw_quit.
3964         (quit): Replaced calls to fatal with calls to throw_quit.
3965
3966 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
3967
3968         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3969         target_read_code.
3970
3971 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
3972
3973         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3974         less than zero in conditional expression.
3975
3976 2014-07-23  Tom Tromey  <tromey@redhat.com>
3977
3978         * make-target-delegates ($ARGS_PART): Match trailing close paren.
3979         ($INTRO_PART): Don't match whitespace.
3980         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
3981         argument matching.
3982         ($METHOD): Add $METHOD_TRAILER.
3983         (trim): Rewrite.
3984         (scan_target_h): New sub.
3985         Change main loop not to collect state.
3986         * target-delegates.c: Rebuild.
3987
3988 2014-07-23  Gary Benson  <gbenson@redhat.com>
3989
3990         * cp-support.c (gdb_demangle): Fix build on systems without
3991         sigaltstack.
3992
3993 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3994
3995         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3996         for reference entry value target data value.
3997
3998 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3999
4000         * stack.c (read_frame_arg): Verify value_optimized_out before calling
4001         value_available_contents_eq.
4002
4003 2014-07-22  Pedro Alves  <palves@redhat.com>
4004
4005         * value.c (allocate_optimized_out_value): Don't mark value as
4006         non-lazy.
4007
4008 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
4009
4010         * MAINTAINERS (Write After Approval): Update my email address.
4011
4012 2014-07-20  Doug Evans  <dje@google.com>
4013
4014         PR server/17147
4015         * remote.c (putpkt_binary): Add text to error message.
4016
4017 2014-07-20  Yao Qi  <yao@codesourcery.com>
4018
4019         * eval.c: Remove "Chill" from comments.
4020         * gdbtypes.h: Likewise.
4021         * symtab.h: Likewise.
4022
4023 2014-07-20  Yao Qi  <yao@codesourcery.com>
4024
4025         * std-operator.def: Update comments to TERNOP_SLICE.
4026
4027 2014-07-20  Yao Qi  <yao@codesourcery.com>
4028
4029         * std-operator.def: Remove BINOP_RANGE.
4030         * breakpoint.c (watchpoint_exp_is_const): Update.
4031         * expprint.c (dump_subexp_body_standard): Likewise.
4032         * eval.c (init_array_element): Remove dead code.
4033         (evaluate_subexp_standard): Likewise.
4034
4035 2014-07-20  Yao Qi  <yao@codesourcery.com>
4036
4037         * std-operator.def: Remove BINOP_IN.
4038         * breakpoint.c (watchpoint_exp_is_const): Update.
4039         * eval.c (evaluate_subexp_standard): Likewise.
4040         * expprint.c (dump_subexp_body_standard): Likewise.
4041
4042 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
4043
4044         * microblaze-tdep.c (microblaze_register_names): Add
4045         the rshr and rslr register names.
4046         (microblaze_gdbarch_init): Use of tdesc_has_registers.
4047         Use of tdesc_find_feature. Use of tdesc_data_alloc.
4048         Use of tdesc_numbered_register. Use of
4049         microblaze_register_g_packet_guesses. Use of
4050         tdesc_use_registers. Use of set_gdbarch_register_type.
4051         (microblaze_register_g_packet_guesses): New.
4052         * microblaze-tdep.h (microblaze_reg_num): Add
4053         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4054         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4055         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4056         * features/microblaze-core.xml: New file.
4057         * features/microblaze-stack-protect.xml: New file.
4058         * features/microblaze-with-stack-protect.c: New file.
4059         * features/microblaze-with-stack-protect.xml: New file.
4060         * features/microblaze.xml: New file.
4061         * features/microblaze.c: New file.
4062         * features/Makefile (microblaze-with-stack-protect): Add
4063         microblaze-with-stack-protect microblaze and microblaze-expedite.
4064         * regformats/microblaze-with-stack-protect.dat: New file.
4065         * regformats/microblaze.dat: New file.
4066         * doc/gdb.texinfo (MicroBlaze Features): Added.
4067
4068 2014-07-18  Tom Tromey  <tromey@redhat.com>
4069
4070         * exec.c (exec_ops): Now static.
4071         * exec.h (exec_ops): Don't declare.
4072
4073 2014-07-18  Tom Tromey  <tromey@redhat.com>
4074
4075         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4076         to find_target_beneath.
4077         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4078         find_target_beneath.
4079         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4080
4081 2014-07-18  Tom Tromey  <tromey@redhat.com>
4082
4083         PR gdb/17130:
4084         * utils.c (quit): Use target_supports_terminal_ours.
4085         * target.h (target_supports_terminal_ours): Declare.
4086         * target.c (target_supports_delete_record): Don't check
4087         to_delete_record against NULL.
4088         (target_supports_terminal_ours): New function.
4089
4090 2014-07-18  Tom Tromey  <tromey@redhat.com>
4091
4092         PR gdb/17130:
4093         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4094         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4095         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4096         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4097         * windows-nat.c (windows_xfer_partial): Always delegate.
4098         * record-btrace.c (record_btrace_xfer_partial): Simplify
4099         delegation.
4100         (record_btrace_fetch_registers, record_btrace_store_registers)
4101         (record_btrace_prepare_to_store, record_btrace_resume)
4102         (record_btrace_wait, record_btrace_find_new_threads)
4103         (record_btrace_thread_alive): Likewise.
4104         * procfs.c (procfs_xfer_partial): Always delegate.
4105         * corelow.c (core_xfer_partial): Always delegate.
4106         * sol-thread.c (sol_find_new_threads): Simplify delegation.
4107
4108 2014-07-18  Tom Tromey  <tromey@redhat.com>
4109
4110         * exec.c (exec_make_note_section): Move earlier.
4111
4112 2014-07-17  Doug Evans  <dje@google.com>
4113
4114         PR gdb/17170
4115         * maint.c (count_symtabs_and_blocks): Handle NULL
4116         current_program_space.
4117         (report_command_stats): Check global enabled flag in addition to
4118         recorded enabled flag.
4119         (make_command_stats_cleanup): Handle msg_type == 0, startup.
4120
4121 2014-07-16  Pedro Alves  <palves@redhat.com>
4122
4123         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4124
4125 2014-07-16  Tom Tromey  <tromey@redhat.com>
4126
4127         * target.h (struct target_ops) <to_delete_record>: Reformat
4128         comment.
4129
4130 2014-07-16  Tom Tromey  <tromey@redhat.com>
4131
4132         * target-delegates.c: Rebuild.
4133
4134 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
4135
4136         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4137         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4138         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4139         (avr_pointer_to_address): Likewise.
4140         (avr_address_class_type_flags): New function.
4141         (avr_address_class_type_flags_to_name): Likewise.
4142         (avr_address_class_name_to_type_flags): Likewise.
4143         (avr_gdbarch_init): Set address_class_type_flags,
4144         address_class_type_flags_to_name and
4145         address_class_name_to_type_flags.
4146
4147 2014-07-15  Pedro Alves  <palves@redhat.com>
4148
4149         * linux-nat.c (kill_callback): Save errno and work with saved
4150         copy.
4151
4152 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
4153
4154         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4155
4156 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4157
4158         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4159         breakpoint support correctly.
4160
4161 2014-07-14  Pedro Alves  <palves@redhat.com>
4162
4163         * utils.c (prompt_for_continue): Call target_terminal_ours.
4164
4165 2014-07-14  Pedro Alves  <palves@redhat.com>
4166
4167         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4168         catch_errors.  Don't re-enable stdin or notify observers where,
4169         and rethrow error.
4170         (fetch_inferior_event_wrapper): Delete.
4171
4172 2014-07-14  Pedro Alves  <palves@redhat.com>
4173
4174         PR gdb/17072
4175         * top.c: Include "inf-loop.h".
4176         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4177         field.
4178         (gdb_readline_wrapper_cleanup): Make the target async again, if it
4179         was async before.
4180         (gdb_readline_wrapper): Store whether the target is async, and
4181         make it sync.
4182
4183 2014-07-14  Pedro Alves  <palves@redhat.com>
4184
4185         PR gdb/17072
4186         * top.c (gdb_readline_wrapper_line): Tweak comment.
4187         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4188         the input handler callback.
4189
4190 2014-07-14  Pedro Alves  <palves@redhat.com>
4191
4192         PR gdb/17072
4193         * main.c: Include event-top.h.
4194         (handle_command_errors): New function.
4195         (catch_command_errors, catch_command_errors_const): Use it.
4196
4197 2014-07-14  Pedro Alves  <palves@redhat.com>
4198
4199         * exceptions.c (catch_command_errors, catch_command_errors_const):
4200         Moved to main.c.
4201         * exceptions.h (catch_command_errors_ftype)
4202         (catch_command_errors_const_ftype): Moved to main.c.
4203         (catch_command_errors, catch_command_errors_const): Delete
4204         declarations.
4205         * main.c (catch_command_errors_ftype)
4206         (catch_command_errors_const_ftype): Moved here from exceptions.h.
4207         (catch_command_errors, catch_command_errors_const)): Moved here
4208         from exceptions.c and make static.
4209
4210 2014-07-14  Pedro Alves  <palves@redhat.com>
4211
4212         * exceptions.c (print_any_exception): Delete.
4213         (catch_exceptions_with_msg): Use exception_print instead of
4214         print_any_exception.
4215         (catch_errors): Use exception_fprintf instead of
4216         print_any_exception.
4217         (catch_command_errors, catch_command_errors_const): Use
4218         exception_print instead of print_any_exception.
4219
4220 2014-07-14  Pedro Alves  <palves@redhat.com>
4221
4222         * infcall.c (run_inferior_call): Set 'sync_execution' while
4223         running the inferior call.
4224
4225 2014-07-14  Pedro Alves  <palves@redhat.com>
4226
4227         * value.c (value_contents_equal): Delete function.
4228         * value.h (value_contents_equal): Delete declaration.
4229
4230 2014-07-14  Tom Tromey  <tromey@redhat.com>
4231
4232         PR exp/17106:
4233         * gdbtypes.c (is_dynamic_type_internal): New function, from
4234         is_dynamic_type.
4235         (is_dynamic_type): Rewrite.
4236         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4237         (resolve_dynamic_struct): Likewise.
4238         (resolve_dynamic_type_internal): New function, from
4239         resolve_dynamic_type.
4240         (resolve_dynamic_type): Rewrite.
4241
4242 2014-07-14  Tom Tromey  <tromey@redhat.com>
4243
4244         * target.c (target_require_runnable): Also check record_stratum.
4245         Update comment.
4246
4247 2014-07-11  Yao Qi  <yao@codesourcery.com>
4248
4249         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4250         thumb_instruction_restores_sp return true.
4251
4252 2014-07-11  Yao Qi  <yao@codesourcery.com>
4253
4254         * arm-tdep.c (thumb_instruction_restores_sp): New function.
4255         (thumb_in_function_epilogue_p): Call
4256         thumb_instruction_restores_sp.
4257
4258 2014-07-11  Yao Qi  <yao@codesourcery.com>
4259
4260         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4261         'add sp, #imm'.
4262         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4263
4264 2014-07-11  Gary Benson  <gbenson@redhat.com>
4265
4266         * amd64-linux-nat.c (gdbcore.h): Remove include.
4267         (regset.h): Likewise.
4268         (nat/linux-btrace.h): Likewise.
4269         (btrace.h): Likewise.
4270         (gdb_assert.h): Likewise.
4271         (string.h): Likewise.
4272         (sys/uio.h): Likewise.
4273         (sys/debugreg.h): Likewise.
4274         (sys/syscall.h): Likewise.
4275         (sys/procfs.h): Likewise.
4276         (sys/user.h): Likewise.
4277         (asm/ptrace.h): Likewise.
4278         (i386-nat.h): Likewise.
4279         * i386-linux-nat.c (i386-nat.h): Likewise.
4280         (regset.h): Likewise.
4281         (target.h): Likewise.
4282         (linux-nat.h): Likewise.
4283         (nat/linux-btrace.h): Likewise.
4284         (btrace.h): Likewise.
4285         (gdb_assert.h): Likewise.
4286         (string.h): Likewise.
4287         (sys/uio.h): Likewise.
4288         (sys/user.h): Likewise.
4289         (sys/procfs.h): Likewise.
4290         (sys/reg.h): Likewise.
4291         (sys/debugreg.h): Likewise.
4292         (ORIG_EAX): Remove definition.
4293
4294 2014-07-11  Gary Benson  <gbenson@redhat.com>
4295
4296         * i386-linux-nat.h: New file.
4297         * x86-linux-nat.h: Likewise.
4298         * x86-linux-nat.c: Likewise.
4299         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4300         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4301         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4302         * amd64-linux-nat.c (x86-linux-nat.h): New include.
4303         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4304         (PTRACE_SETREGSET): Likewise.
4305         (arch_lwp_info): Now in x86-linux-nat.c.
4306         (have_ptrace_getregset): Now in x86-linux-nat.h.
4307         (x86_linux_dr_get): Now in x86-linux-nat.c.
4308         (x86_linux_dr_set): Likewise.
4309         (x86_linux_dr_get_addr): Likewise.
4310         (x86_linux_dr_get_control): Likewise.
4311         (x86_linux_dr_get_status): Likewise.
4312         (update_debug_registers_callback): Likewise.
4313         (x86_linux_dr_set_control): Likewise.
4314         (x86_linux_dr_set_addr): Likewise.
4315         (x86_linux_prepare_to_resume): Likewise.
4316         (x86_linux_new_thread): Likewise.
4317         (x86_linux_new_fork): Likewise.
4318         (x86_linux_get_thread_area): Likewise.
4319         (super_post_startup_inferior): Likewise.
4320         (x86_linux_child_post_startup_inferior): Likewise.
4321         (AMD64_LINUX_USER64_CS): Likewise.
4322         (AMD64_LINUX_X32_DS): Likewise.
4323         (x86_linux_read_description): Likewise.
4324         (x86_linux_enable_btrace): Likewise.
4325         (x86_linux_disable_btrace): Likewise.
4326         (x86_linux_teardown_btrace): Likewise.
4327         (x86_linux_read_btrace): Likewise.
4328         (x86_linux_create_target): Likewise.
4329         (x86_linux_add_target): Likewise.
4330         * i386-linux-nat.c (x86-linux-nat.h): New include.
4331         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4332         (PTRACE_SETREGSET): Likewise.
4333         (arch_lwp_info): Now in x86-linux-nat.c.
4334         (have_ptrace_getregset): Now in x86-linux-nat.h.
4335         (x86_linux_dr_get): Now in x86-linux-nat.c.
4336         (x86_linux_dr_set): Likewise.
4337         (x86_linux_dr_get_addr): Likewise.
4338         (x86_linux_dr_get_control): Likewise.
4339         (x86_linux_dr_get_status): Likewise.
4340         (update_debug_registers_callback): Likewise.
4341         (x86_linux_dr_set_control): Likewise.
4342         (x86_linux_dr_set_addr): Likewise.
4343         (x86_linux_prepare_to_resume): Likewise.
4344         (x86_linux_new_thread): Likewise.
4345         (x86_linux_new_fork): Likewise.
4346         (x86_linux_get_thread_area): Likewise.
4347         (super_post_startup_inferior): Likewise.
4348         (x86_linux_child_post_startup_inferior): Likewise.
4349         (AMD64_LINUX_USER64_CS): Likewise.
4350         (AMD64_LINUX_X32_DS): Likewise.
4351         (x86_linux_read_description): Likewise.
4352         (x86_linux_enable_btrace): Likewise.
4353         (x86_linux_disable_btrace): Likewise.
4354         (x86_linux_teardown_btrace): Likewise.
4355         (x86_linux_read_btrace): Likewise.
4356         (x86_linux_create_target): Likewise.
4357         (x86_linux_add_target): Likewise.
4358
4359 2014-07-11  Gary Benson  <gbenson@redhat.com>
4360
4361         * amd64-linux-nat.c: Comment and whitespace changes.
4362         * i386-linux-nat.c: Comment and whitespace changes.
4363
4364 2014-07-11  Gary Benson  <gbenson@redhat.com>
4365
4366         * amd64-linux-nat.c (x86_linux_create_target): New function.
4367         (x86_linux_add_target): Likewise.
4368         (_initialize_amd64_linux_nat): Delegate to the above new functions.
4369         * i386-linux-nat.c (x86_linux_create_target): New function.
4370         (x86_linux_add_target): Likewise.
4371         (_initialize_i386_linux_nat): Delegate to the above new functions.
4372
4373 2014-07-11  Gary Benson  <gbenson@redhat.com>
4374
4375         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4376         (ps_get_thread_area): Delegate to the above in 32-bit mode.
4377         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4378         (ps_get_thread_area): Delegate to the above.
4379
4380 2014-07-11  Gary Benson  <gbenson@redhat.com>
4381
4382         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4383         x86_linux_read_description.  All uses updated.  amd64-specific
4384         code conditionalized.  Conditionalized i386-specific code added.
4385         Redundant cast removed.
4386         * i386-linux-nat.c (i386_linux_read_description): Renamed to
4387         x86_linux_read_description.  All uses updated.  i386-specific
4388         code conditionalized.  Conditionalized amd64-specific code added.
4389         One sizeof replaced with the actual type it is describing.
4390
4391 2014-07-11  Gary Benson  <gbenson@redhat.com>
4392
4393         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4394         x86_linux_dr_get.  All uses updated.
4395         (amd64_linux_dr_set): Renamed to
4396         x86_linux_dr_set.  All uses updated.
4397         (amd64_linux_dr_get_addr): Renamed to
4398         x86_linux_dr_get_addr.  All uses updated.
4399         (amd64_linux_dr_get_control): Renamed to
4400         x86_linux_dr_get_control.  All uses updated.
4401         (amd64_linux_dr_get_status): Renamed to
4402         x86_linux_dr_get_status.  All uses updated.
4403         (amd64_linux_dr_set_control): Renamed to
4404         x86_linux_dr_set_control.  All uses updated.
4405         (amd64_linux_dr_set_addr): Renamed to
4406         x86_linux_dr_set_addr.  All uses updated.
4407         (amd64_linux_prepare_to_resume): Renamed to
4408         x86_linux_prepare_to_resume.  All uses updated.
4409         (amd64_linux_new_thread): Renamed to
4410         x86_linux_new_thread.  All uses updated.
4411         (amd64_linux_new_fork): Renamed to
4412         x86_linux_new_fork.  All uses updated.
4413         (amd64_linux_child_post_startup_inferior): Renamed to
4414         x86_linux_child_post_startup_inferior.  All uses updated.
4415         (amd64_linux_enable_btrace): Renamed to
4416         x86_linux_enable_btrace.  All uses updated.
4417         (amd64_linux_disable_btrace): Renamed to
4418         x86_linux_disable_btrace.  All uses updated.
4419         (amd64_linux_teardown_btrace): Renamed to
4420         x86_linux_teardown_btrace.  All uses updated.
4421         (amd64_linux_read_btrace): Renamed to
4422         x86_linux_read_btrace.  All uses updated.
4423         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4424         x86_linux_dr_get.  All uses updated.
4425         (i386_linux_dr_set): Renamed to
4426         x86_linux_dr_set.  All uses updated.
4427         (i386_linux_dr_get_addr): Renamed to
4428         x86_linux_dr_get_addr.  All uses updated.
4429         (i386_linux_dr_get_control): Renamed to
4430         x86_linux_dr_get_control.  All uses updated.
4431         (i386_linux_dr_get_status): Renamed to
4432         x86_linux_dr_get_status.  All uses updated.
4433         (i386_linux_dr_set_control): Renamed to
4434         x86_linux_dr_set_control.  All uses updated.
4435         (i386_linux_dr_set_addr): Renamed to
4436         x86_linux_dr_set_addr.  All uses updated.
4437         (i386_linux_prepare_to_resume): Renamed to
4438         x86_linux_prepare_to_resume.  All uses updated.
4439         (i386_linux_new_thread): Renamed to
4440         x86_linux_new_thread.  All uses updated.
4441         (i386_linux_new_fork): Renamed to
4442         x86_linux_new_fork.  All uses updated.
4443         (i386_linux_child_post_startup_inferior): Renamed to
4444         x86_linux_child_post_startup_inferior.  All uses updated.
4445         (i386_linux_enable_btrace): Renamed to
4446         x86_linux_enable_btrace.  All uses updated.
4447         (i386_linux_disable_btrace): Renamed to
4448         x86_linux_disable_btrace.  All uses updated.
4449         (i386_linux_teardown_btrace): Renamed to
4450         x86_linux_teardown_btrace.  All uses updated.
4451         (i386_linux_read_btrace): Renamed to
4452         x86_linux_read_btrace.  All uses updated.
4453
4454 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
4455
4456         * remote.c (extended_remote_post_attach): New function.
4457         (init_extended_remote_ops): Install it as to_post_attach method.
4458
4459 2014-07-09  Pedro Alves  <palves@redhat.com>
4460
4461         * infcmd.c (attach_command_post_wait): Don't call
4462         target_terminal_inferior here.
4463         (attach_command): Call it here instead.
4464
4465 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4466
4467         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4468         field.
4469         * c-varobj.c (c_is_path_expr_parent): New function, moved core
4470         from varobj.c, with additional checks.
4471         (c_varobj_ops): Fill in is_path_expr_parent field.
4472         (cplus_varobj_ops): Fill in is_path_expr_parent field.
4473         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4474         field.
4475         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4476         ops method.
4477         (varobj_default_is_path_expr_parent): New function.
4478         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4479         (varobj_default_is_path_expr_parent): Declare new function.
4480
4481 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
4482
4483         * infcmd.c (finish_backward): Turn internal error into normal error.
4484
4485 2014-07-07  Pedro Alves  <palves@redhat.com>
4486
4487         PR gdb/17096
4488         * remote.c (async_handle_remote_sigint)
4489         (async_handle_remote_sigint_twice): Call
4490         gdb_call_async_signal_handler instead of
4491         mark_async_signal_handler.
4492
4493 2014-07-07  Tom Tromey  <tromey@redhat.com>
4494
4495         * target-delegates.c: Rebuild.
4496         * target.c (target_info_record): Remove.
4497         * record.c (info_record_command): Unconditionally call
4498         to_info_record.
4499         * target.h (struct target_ops) <to_info_record>: Use
4500         TARGET_DEFAULT_IGNORE.
4501         (target_info_record): Remove.
4502
4503 2014-07-07  Tom Tromey  <tromey@redhat.com>
4504
4505         * target.h (struct target_ops) <to_get_thread_local_address>: Use
4506         TARGET_DEFAULT_NORETURN.
4507         * target.c (generic_tls_error): New function.
4508         (target_translate_tls_address): Don't search target stack.
4509         * target-delegates.c: Rebuild.
4510         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4511         stack.
4512         * linux-thread-db.c (thread_db_get_thread_local_address):
4513         Unconditionally call beneath target.
4514
4515 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
4516
4517         * cli/cli-logging.c (pop_output_files): Assign targerr to
4518         gdb_stdtargerr.
4519
4520 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
4521
4522         * MAINTAINERS (Write After Approval): Update my email address.
4523
4524 2014-07-02  Gary Benson  <gbenson@redhat.com>
4525
4526         * proc-service.c (ps_xfer_memory): Update comment.
4527         (ps_pstop): Remove unused function.
4528         (ps_pcontinue): Likewise.
4529         (ps_lstop): Likewise.
4530         (ps_lcontinue): Likewise.
4531         (ps_lgetxregsize): Likewise.
4532         (ps_lgetxregs): Likewise.
4533         (ps_lsetxregs): Likewise.
4534         (ps_plog): Likewise.
4535         (ps_ptread): Likewise.
4536         (ps_ptwrite): Likewise.
4537
4538 2014-07-01  Mark Wielaard  <mjw@redhat.com>
4539
4540         * dwarf2read.c (add_array_cv_type): New function.
4541         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4542         (read_tag_volatile_type): Likewise.
4543
4544 2014-07-01  Tom Tromey  <tromey@redhat.com>
4545
4546         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4547         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4548         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4549         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4550         * command.h (cmd_cfunc_ftype): Move earlier.
4551         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4552         (add_com, add_info): Use cmd_cfunc_ftype.
4553
4554 2014-06-30  Tom Tromey  <tromey@redhat.com>
4555
4556         * symtab.c (operator_chars): Make parameters and return type
4557         const.
4558         (file_matches): Make "files" const.
4559         (struct search_symbols_data) <files>: Now const.
4560         (search_symbols): Make "regexp" and "files" parameters const.
4561         Update.
4562         (symtab_symbol_info): Remove cast.
4563         (rbreak_command): Update.
4564         * symtab.h (search_symbols): Update.
4565
4566 2014-06-27  Yao Qi  <yao@codesourcery.com>
4567
4568         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4569         Change parameter type to 'struct thread_info *'.  Caller
4570         updated.
4571         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4572         Update declaration.
4573         * dummy-frame.c (struct dummy_frame_id): New.
4574         (dummy_frame_id_eq): New function.
4575         (struct dummy_frame) <id>: Change its type to 'struct
4576         dummy_frame_id'.
4577         (dummy_frame_push): Add parameter ptid and save it in
4578         dummy_frame_id.
4579         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4580         inferior_ptid.
4581         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4582         to inferior_ptid.
4583         (lookup_dummy_frame): Change parameter type to 'struct
4584         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
4585         instead of frame_id_eq.
4586         (dummy_frame_pop): Add parameter ptid.  Callers updated.
4587         Update comments.  Compose dummy_frame_id and pass it to
4588         lookup_dummy_frame.
4589         (dummy_frame_discard): Add parameter ptid.
4590         (dummy_frame_sniffer): Compose dummy_frame_id and call
4591         dummy_frame_id_eq instead of frame_id_eq.
4592         (fprint_dummy_frames): Print ptid.
4593         * dummy-frame.h: Remove comments.
4594         (dummy_frame_push): Add ptid in declaration.
4595         (dummy_frame_pop, dummy_frame_discard): Likewise.
4596
4597 2014-06-26  Tom Tromey  <tromey@redhat.com>
4598
4599         * cli/cli-cmds.c (error_no_arg): Make "why" const.
4600         * command.h (error_no_arg): Update.
4601
4602 2014-06-26  Tom Tromey  <tromey@redhat.com>
4603
4604         * cli/cli-setshow.c (do_set_command): Make "arg" const.
4605         (do_show_command): Make "arg" const.
4606         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4607
4608 2014-06-26  Tom Tromey  <tromey@redhat.com>
4609
4610         * record-full.c (record_full_get_bookmark): Make "args" const.
4611         (record_full_goto_bookmark): Make "raw_bookmark" const.
4612         * record.c (record_goto): New function.
4613         (cmd_record_goto): Use it.  Now static.
4614         * record.h (record_goto): Declare.
4615         (cmd_record_goto): Remove declaration.
4616         * target-delegates.c: Rebuild.
4617         * target.h (struct target_ops) <to_get_bookmark,
4618         to_goto_bookmark>: Make parameter const.
4619
4620 2014-06-26  Tom Tromey  <tromey@redhat.com>
4621
4622         * defs.h (generic_load): Update.
4623         * m32r-rom.c (m32r_load_gen): Make "filename" const.
4624         * monitor.c (monitor_load): Make "args" const.
4625         * remote-m32r-sdi.c (m32r_load): Make "args" const.
4626         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4627         const.
4628         (mips_load): Make "file" const.
4629         * remote-sim.c (gdbsim_load): Make "args" const.
4630         * remote.c (remote_load): Make "name" const.
4631         * symfile.c (generic_load): Make "args" const.
4632         * target-delegates.c: Rebuild.
4633         * target.c (target_load): Make "arg" const.
4634         (debug_to_load): Make "args" const.
4635         * target.h (struct target_ops) <to_load>: Make parameter const.
4636         (target_load): Update.
4637
4638 2014-06-26  Tom Tromey  <tromey@redhat.com>
4639
4640         PR symtab/16902:
4641         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4642         (dwarf2_physname, read_partial_die)
4643         (guess_partial_die_structure_name, fixup_partial_die)
4644         (guess_full_die_structure_name, anonymous_struct_prefix)
4645         (dwarf2_name): Use per-BFD obstack.
4646
4647 2014-06-26  Yao Qi  <yao@codesourcery.com>
4648
4649         * dummy-frame.c (dummy_frame_sniffer): Move local variables
4650         dummyframe and this_id into inner block below.
4651
4652 2014-06-26  Yao Qi  <yao@codesourcery.com>
4653
4654         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4655         with "signal_pass[0]" in the initialization of signal_pass.
4656
4657 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4658
4659         * record-btrace.c (record_btrace_generating_corefile)
4660         (record_btrace_prepare_to_generate_core)
4661         (record_btrace_done_generating_core): New.
4662         (record_btrace_xfer_partial, record_btrace_fetch_registers)
4663         (record_btrace_store_registers, record_btrace_prepare_to_store):
4664         Forward request when generating a core file.
4665         (record_btrace_open): Set record_btrace_generating_corefile to zero.
4666         (init_record_btrace_ops): Set to_prepare_to_generate_core and
4667         to_done_generating_core.
4668
4669 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4670
4671         * target.h (target_ops) <to_prepare_to_generate_core>
4672         <to_done_generating_core>: New.
4673         (target_prepare_to_generate_core, target_done_generating_core): New.
4674         * target.c (target_prepare_to_generate_core)
4675         (target_done_generating_core): New.
4676         * target-delegates.c: Regenerate.
4677         * gcore.c: (write_gcore_file): Rename to ...
4678         (write_gcore_file_1): ...this.
4679         (write_gcore_file): Call target_prepare_to_generate_core
4680         and target_done_generating_core.
4681
4682 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4683
4684         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4685         * gcore.c (write_gcore_file): Free memory returned from
4686         make_corefile_notes.
4687         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4688         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4689
4690 2014-06-24  Yao Qi  <yao@codesourcery.com>
4691
4692         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4693         (arm_linux_init_abi): Set skip_trampoline_code with
4694         gdbarch_skip_trampoline_code instead of
4695         find_solib_trampoline_target.
4696
4697 2014-06-24  Yao Qi  <yao@codesourcery.com>
4698
4699         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4700         arm_skip_bx_reg returns non-zero.
4701
4702 2014-06-24  Yao Qi  <yao@codesourcery.com>
4703
4704         * arm-tdep.c (arm_skip_bx_reg): New function.
4705         (arm_skip_stub): Call arm_skip_bx_reg.
4706
4707 2014-06-23  Don Breazeal  <donb@codesourcery.com>
4708
4709         * MAINTAINERS: Add myself as write-after-approval maintainer.
4710
4711 2014-06-23  Pedro Alves  <palves@redhat.com>
4712
4713         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4714         DR_CONTROL before setting DR0..DR3.
4715         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4716         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4717         bits of DR_CONTROL related to the debug register slot being
4718         disabled.  If all slots are vacant, clear local slowdown as well,
4719         and assert DR_CONTROL is 0.
4720
4721 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
4722
4723         * python/lib/gdb/command/xmethods.py
4724         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
4725         current progspace only if the string "progspace" matches LOCUS_RE.
4726
4727 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4728
4729         Fix --with-system-readline with readline-6.3 patch 5.
4730         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4731         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4732         types.
4733
4734 2014-06-20  Tom Tromey  <tromey@redhat.com>
4735
4736         * dwarf2read.c (dw2_get_real_path): Use correct type in
4737         OBSTACK_CALLOC.
4738         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4739
4740 2014-06-20  Gary Benson  <gbenson@redhat.com>
4741
4742         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
4743         * common/glibc_thread_db.h: Likewise.
4744         * common/i386-cpuid.h: Likewise.
4745         * common/i386-gcc-cpuid.h: Likewise.
4746         * common/linux-btrace.h: Likewise.
4747         * common/linux-osdata.h: Likewise.
4748         * common/linux-procfs.h: Likewise.
4749         * common/linux-ptrace.h: Likewise.
4750         * common/mips-linux-watch.h: Likewise.
4751         * common/linux-btrace.c: Moved to nat.
4752         * common/linux-osdata.c: Likewise.
4753         * common/linux-procfs.c: Likewise.
4754         * common/linux-ptrace.c: Likewise.
4755         * common/mips-linux-watch.c: Likewise.
4756         * nat/gdb_thread_db.h: Moved from common.
4757         * nat/glibc_thread_db.h: Likewise.
4758         * nat/i386-cpuid.h: Likewise.
4759         * nat/i386-gcc-cpuid.h: Likewise.
4760         * nat/linux-btrace.c: Likewise.
4761         * nat/linux-btrace.h: Likewise.
4762         * nat/linux-osdata.c: Likewise.
4763         * nat/linux-osdata.h: Likewise.
4764         * nat/linux-procfs.c: Likewise.
4765         * nat/linux-procfs.h: Likewise.
4766         * nat/linux-ptrace.c: Likewise.
4767         * nat/linux-ptrace.h: Likewise.
4768         * nat/mips-linux-watch.c: Likewise.
4769         * nat/mips-linux-watch.h: Likewise.
4770         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4771         (object file files): Reordered.
4772         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4773         of glibc_thread_db.h.
4774
4775 2014-06-20  Gary Benson  <gbenson@redhat.com>
4776
4777         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4778         (i386_dr_low_type): Moved to nat/i386-dregs.h.
4779         (i386_dr_low): Likewise.
4780         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4781         (i386_dr_low_set_addr): Likewise.
4782         (i386_dr_low_get_addr): Likewise.
4783         (i386_dr_low_can_set_control): Likewise.
4784         (i386_dr_low_set_control): Likewise.
4785         (i386_dr_low_get_control): Likewise.
4786         (i386_dr_low_get_status): Likewise.
4787         (i386_get_debug_register_length): Likewise.
4788         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4789         (i386_dr_low): Likewise.
4790         * nat/i386-dregs.c (i386-low.h): Remove include.
4791         (i386-nat.h): Likewise.
4792         (nat/i386-dregs.h): New include.
4793         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4794         (i386_dr_low_set_addr): Likewise.
4795         (i386_dr_low_get_addr): Likewise.
4796         (i386_dr_low_can_set_control): Likewise.
4797         (i386_dr_low_set_control): Likewise.
4798         (i386_dr_low_get_control): Likewise.
4799         (i386_dr_low_get_status): Likewise.
4800         (i386_get_debug_register_length): Likewise.
4801         (debug_hw_points): Likewise.
4802
4803 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
4804
4805         * Makefile.in (SFILES): Add d-exp.y.
4806         (YYFILES): Add d-exp.c.
4807         (YYOBJ): Add d-exp.o.
4808         (local-maintainer-clean): Delete d-exp.c.
4809         * d-exp.y: New file.
4810         * d-lang.h (d_parse): New declaration.
4811         (d_error): New declaration.
4812         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4813         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4814         PREC_ORDER operators.
4815         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4816
4817 2014-06-19  Yao Qi  <yao@codesourcery.com>
4818
4819         * gdbthread.h (any_running): Remove the declaration.
4820         * thread.c (any_running): Remove.
4821
4822 2014-06-19  Yao Qi  <yao@codesourcery.com>
4823
4824         * gdbthread.h (struct thread_info) <state>: Change its type to
4825         'enum thread_state'.  Update comments.
4826
4827 2014-06-19  Pedro Alves  <palves@redhat.com>
4828
4829         * gdbthread.h (ALL_THREADS): Delete.
4830         (ALL_NON_EXITED_THREADS): New macro.
4831         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4832         instead of ALL_THREADS.
4833         * infrun.c (find_thread_needs_step_over)
4834         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4835         instead of ALL_THREADS.
4836         * record-btrace.c (record_btrace_open)
4837         (record_btrace_stop_recording, record_btrace_close)
4838         (record_btrace_is_replaying, record_btrace_resume)
4839         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4840         * remote.c (append_pending_thread_resumptions): Likewise.
4841         * thread.c (thread_apply_all_command): Likewise.
4842
4843 2014-06-19  Gary Benson  <gbenson@redhat.com>
4844
4845         * i386-nat.c (i386_stopped_by_watchpoint):
4846         Use i386_dr_stopped_by_watchpoint.
4847         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4848         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4849
4850 2014-06-19  Gary Benson  <gbenson@redhat.com>
4851
4852         * nat/i386-dregs.c: New file.
4853         * Makefile.in (i386-dregs.o): New rule.
4854         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4855         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4856         * config/i386/darwin.mh (NATDEPFILES): Likewise.
4857         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4858         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4859         * config/i386/go32.mh (NATDEPFILES): Likewise.
4860         * config/i386/linux.mh (NATDEPFILES): Likewise.
4861         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4862         * config/i386/mingw.mh (NATDEPFILES): Likewise.
4863         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4864         * i386-nat.h (debug_hw_points): New declaration.
4865         * i386-nat.c (breakpoint.h): Remove include.
4866         (command.h): Likewise.
4867         (target.h): Likewise.
4868         (gdb_assert.h): Likewise.
4869         (debug_hw_points): Made nonstatic.
4870         (debug_printf): Now in i386-dregs.c.
4871         (TARGET_HAS_DR_LEN_8): Likewise.
4872         (DR_CONTROL_SHIFT): Likewise.
4873         (DR_CONTROL_SIZE): Likewise.
4874         (DR_RW_EXECUTE): Likewise.
4875         (DR_RW_WRITE): Likewise.
4876         (DR_RW_READ): Likewise.
4877         (DR_RW_IORW): Likewise.
4878         (DR_LEN_1): Likewise.
4879         (DR_LEN_2): Likewise.
4880         (DR_LEN_4): Likewise.
4881         (DR_LEN_8): Likewise.
4882         (DR_LOCAL_ENABLE_SHIFT): Likewise.
4883         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4884         (DR_ENABLE_SIZE): Likewise.
4885         (DR_LOCAL_SLOWDOWN): Likewise.
4886         (DR_GLOBAL_SLOWDOWN): Likewise.
4887         (DR_CONTROL_RESERVED): Likewise.
4888         (I386_DR_CONTROL_MASK): Likewise.
4889         (I386_DR_VACANT): Likewise.
4890         (I386_DR_LOCAL_ENABLE): Likewise.
4891         (I386_DR_GLOBAL_ENABLE): Likewise.
4892         (I386_DR_DISABLE): Likewise.
4893         (I386_DR_SET_RW_LEN): Likewise.
4894         (I386_DR_GET_RW_LEN): Likewise.
4895         (I386_DR_WATCH_HIT): Likewise.
4896         (i386_wp_op_t): Likewise.
4897         (i386_show_dr): Likewise.
4898         (i386_length_and_rw_bits): Likewise.
4899         (i386_insert_aligned_watchpoint): Likewise.
4900         (i386_remove_aligned_watchpoint): Likewise.
4901         (i386_handle_nonaligned_watchpoint): Likewise.
4902         (i386_update_inferior_debug_regs): Likewise.
4903         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4904         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4905         (i386_region_ok_for_watchpoint):
4906         Use i386_dr_region_ok_for_watchpoint.
4907         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4908
4909 2014-06-19  Gary Benson  <gbenson@redhat.com>
4910
4911         * i386-nat.c (i386_insert_hw_breakpoint): Use
4912         i386_insert_watchpoint.
4913         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4914
4915 2014-06-19  Gary Benson  <gbenson@redhat.com>
4916
4917         * i386-nat.c (i386_dr_show): Renamed to
4918         i386_show_dr and made static.  All uses updated.
4919         (i386_dr_length_and_rw_bits): Renamed to
4920         i386_length_and_rw_bits and made static.
4921         All uses updated.
4922         (i386_dr_insert_aligned_watchpoint): Renamed to
4923         i386_insert_aligned_watchpoint and made static.
4924         All uses updated.
4925         (i386_dr_remove_aligned_watchpoint): Renamed to
4926         i386_remove_aligned_watchpoint and made static.
4927         All uses updated.
4928         (i386_dr_update_inferior_debug_regs): Renamed to
4929         i386_update_inferior_debug_regs and made static.
4930         All uses updated.
4931         * nat/i386-dregs.h (i386_dr_show): Removed.
4932         (i386_dr_length_and_rw_bits): Likewise.
4933         (i386_dr_insert_aligned_watchpoint): Likewise.
4934         (i386_dr_remove_aligned_watchpoint): Likewise.
4935         (i386_dr_update_inferior_debug_regs): Likewise.
4936
4937 2014-06-19  Gary Benson  <gbenson@redhat.com>
4938
4939         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4940         * configure: Regenerate.
4941         * config.in: Likewise.
4942         * main.c (signal.h): New include.
4943         (setup_alternate_signal_stack): New function.
4944         (captured_main): Call the above.
4945         * cp-support.c (signal.h): New include.
4946         (catch_demangler_crashes): New flag.
4947         (SIGJMP_BUF): New define.
4948         (SIGSETJMP): Likewise.
4949         (SIGLONGJMP): Likewise.
4950         (gdb_demangle_jmp_buf): New static global.
4951         (gdb_demangle_attempt_core_dump): Likewise.
4952         (gdb_demangle_signal_handler): New function.
4953         (gdb_demangle): If catch_demangler_crashes is set, install the
4954         above signal handler before calling bfd_demangle, and restore
4955         the original signal handler afterwards.  Display the offending
4956         symbol and call demangler_warning the first time a segmentation
4957         fault is caught.
4958         (_initialize_cp_support): New maint set/show command.
4959
4960 2014-06-19  Gary Benson  <gbenson@redhat.com>
4961
4962         * utils.h (resource_limit_kind): New enum.
4963         (can_dump_core): New declaration.
4964         (warn_cant_dump_core): Likewise.
4965         (dump_core): Likewise.
4966         * utils.c (dump_core): Made nonstatic.  Added new
4967         parameter "limit_kind".
4968         (can_dump_core): Made nonstatic. Moved printing code to...
4969         (warn_cant_dump_core): New function.
4970         (can_dump_core_warn): Likewise.
4971         (internal_vproblem): Replace calls to can_dump_core with
4972         calls to can_dump_core_warn.  Supply new argument to each.
4973
4974 2014-06-19  Gary Benson  <gbenson@redhat.com>
4975
4976         * utils.h (demangler_vwarning): New declaration.
4977         (demangler_warning): Likewise.
4978         * utils.c (struct internal_problem)
4979         <user_settable_should_quit>: New field.
4980         <user_settable_should_dump_core>: Likewise
4981         (internal_error_problem): Add values for above new fields.
4982         (internal_warning_problem): Likewise.
4983         (demangler_warning_problem): New static global.
4984         (demangler_vwarning): New function.
4985         (demangler_warning): Likewise.
4986         (add_internal_problem_command): Selectively add commands.
4987         (_initialize_utils): New internal problem command.
4988         * maint.c (maintenance_demangler_warning): New function.
4989         (_initialize_maint_cmds): New command.
4990
4991 2014-06-18  Tom Tromey  <tromey@redhat.com>
4992
4993         * f-valprint.c (info_common_command_for_block): Update.
4994         * symtab.h (struct general_symbol_info) <common_block>: Now
4995         const.
4996
4997 2014-06-18  Tom Tromey  <tromey@redhat.com>
4998
4999         * symtab.h (struct symtab) <blockvector>: Now const.
5000         * ada-lang.c (ada_add_global_exceptions): Update.
5001         * buildsym.c (augment_type_symtab): Update.
5002         * dwarf2read.c (dw2_lookup_symbol): Update.
5003         * jit.c (finalize_symtab): Update.
5004         * jv-lang.c (add_class_symtab_symbol): Update.
5005         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5006         Update.
5007         * objfiles.c (objfile_relocate1): Update.
5008         * psymtab.c (lookup_symbol_aux_psymtabs)
5009         (maintenance_check_psymtabs): Update.
5010         * python/py-symtab.c (stpy_global_block, stpy_static_block):
5011         Update.
5012         * spu-tdep.c (spu_catch_start): Update.
5013         * symmisc.c (dump_symtab_1): Update.
5014         * symtab.c (lookup_global_symbol_from_objfile)
5015         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5016         (basic_lookup_transparent_type_quick)
5017         (basic_lookup_transparent_type, find_pc_sect_symtab)
5018         (find_pc_sect_line, search_symbols): Update.
5019         * block.c (find_block_in_blockvector): Make "bl" const.
5020         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5021         const.
5022         (blockvector_contains_pc): Make "bv" const.
5023         (block_for_pc_sect): Update.
5024         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5025         (blockvector_contains_pc): Update.
5026         * breakpoint.c (resolve_sal_pc): Update.
5027         * inline-frame.c (block_starting_point_at): Update.
5028
5029 2014-06-18  Tom Tromey  <tromey@redhat.com>
5030
5031         * completer.c (complete_line): Make "line_buffer" const.
5032         * completer.h (complete_line): Update.
5033
5034 2014-06-18  Tom Tromey  <tromey@redhat.com>
5035
5036         * symtab.c (add_macro_name): Remove unneeded cast.
5037
5038 2014-06-18  Tom Tromey  <tromey@redhat.com>
5039
5040         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5041         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5042
5043 2014-06-18  Tom Tromey  <tromey@redhat.com>
5044
5045         * probe.c (info_probes_for_ops): Make "arg" const.
5046         * probe.h (info_probes_for_ops): Update.
5047
5048 2014-06-18  Tom Tromey  <tromey@redhat.com>
5049
5050         * varobj.c (varobj_create): Update.
5051         * valops.c (value_of_this): Update.
5052         * tracepoint.c (add_local_symbols, scope_info): Update.
5053         * symtab.h (struct general_symbol_info) <block>: Now const.
5054         * symtab.c (skip_prologue_sal)
5055         (default_make_symbol_completion_list_break_on)
5056         (skip_prologue_using_sal): Update.
5057         * stack.h (iterate_over_block_locals)
5058         (iterate_over_block_local_vars): Update.
5059         * stack.c (print_frame_args): Update.
5060         (iterate_over_block_locals, iterate_over_block_local_vars): Make
5061         parameter const.
5062         (get_selected_block): Make return type const.
5063         * python/py-frame.c (frapy_block): Update.
5064         * python/py-block.c (gdbpy_block_for_pc): Update.
5065         * p-exp.y (%union) <bval>: Now const.
5066         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5067         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5068         * m2-exp.y (%union) <bval>: Now const.
5069         * linespec.c (get_current_search_block): Make return type const.
5070         (create_sals_line_offset, find_label_symbols): Update.
5071         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5072         Update.
5073         (block_starting_point_at): Make "block" const.
5074         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5075         (check_exception_resume): Update.
5076         * guile/scm-frame.c (gdbscm_frame_block): Update.
5077         * guile/scm-block.c (gdbscm_lookup_block): Update.
5078         * frame.h (get_frame_block): Update.
5079         (get_selected_block): Make return type const.
5080         * frame.c (frame_id_inner): Update.
5081         * f-valprint.c (info_common_command_for_block)
5082         (info_common_command): Update.
5083         * dwarf2loc.c (dwarf2_find_location_expression)
5084         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5085         (locexpr_describe_location_piece): Update.
5086         * c-exp.y (%union) <bval>: Now const.
5087         * breakpoint.c (resolve_sal_pc): Update.
5088         * blockframe.c (get_frame_block):Make return type const.
5089         (get_pc_function_start, get_frame_function, find_pc_sect_function)
5090         (block_innermost_frame): Update.
5091         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5092         (block_for_pc, block_for_pc_sect): Update.
5093         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5094         'pblock' const.
5095         (block_for_pc_sect, block_for_pc): Make return type const.
5096         * ax-gdb.c (gen_expr): Update.
5097         * alpha-mdebug-tdep.c (find_proc_desc): Update.
5098         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5099         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5100         (ada_read_var_value): Update.
5101         * ada-exp.y (struct name_info) <block>: Now const.
5102         (%union): Likewise.
5103         (block_lookup): Constify.
5104
5105 2014-06-18  Gary Benson  <gbenson@redhat.com>
5106
5107         * nat/i386-dregs.h: New file.
5108         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5109         * i386-nat.h (i386-dregs.h): New include.
5110         (DR_FIRSTADDR): Now in i386-dregs.h.
5111         (DR_LASTADDR): Likewise.
5112         (DR_NADDR): Likewise.
5113         (DR_STATUS): Likewise.
5114         (DR_CONTROL): Likewise.
5115         (i386_debug_reg_state): Likewise.
5116         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5117
5118 2014-06-18  Don Breazeal  <donb@codesourcery.com>
5119
5120         * breakpoint.c (set_longjmp_breakpoint): Call
5121         momentary_breakpoint_from_master with additional argument.
5122         (set_longjmp_breakpoint_for_call_dummy): Call
5123         momentary_breakpoint_from_master with additional argument.
5124         (set_std_terminate_breakpoint): Call
5125         momentary_breakpoint_from_master with additional argument.
5126         (momentary_breakpoint_from_master): Add argument to function
5127         definition and use it to initialize structure member flag.
5128         (clone_momentary_breakpoint): Call
5129         momentary_breakpoint_from_master with additional argument.
5130         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5131         member flags set in momentary_breakpoint_from_master.
5132
5133 2014-06-18  Gary Benson  <gbenson@redhat.com>
5134
5135         * i386-nat.c (i386_show_dr): Renamed to
5136         i386_dr_show and made nonstatic.  All uses updated.
5137         (i386_length_and_rw_bits): Renamed to
5138         i386_dr_length_and_rw_bits and made nonstatic.
5139         All uses updated.
5140         (i386_insert_aligned_watchpoint): Renamed to
5141         i386_dr_insert_aligned_watchpoint and made nonstatic.
5142         All uses updated.
5143         (i386_remove_aligned_watchpoint): Renamed to
5144         i386_dr_remove_aligned_watchpoint and made nonstatic.
5145         All uses updated.
5146         (i386_update_inferior_debug_regs): Renamed to
5147         i386_dr_update_inferior_debug_regs and made nonstatic.
5148         All uses updated.
5149
5150 2014-06-18  Gary Benson  <gbenson@redhat.com>
5151
5152         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5153         (i386_dr_low_can_set_control): Likewise.
5154         (i386_dr_low_set_addr): Likewise.
5155         (i386_dr_low_set_control): Likewise.
5156         (i386_dr_low_get_addr): Likewise.
5157         (i386_dr_low_get_status): Likewise.
5158         (i386_dr_low_get_control): Likewise.
5159         (i386_insert_aligned_watchpoint): Use new macros.
5160         (i386_update_inferior_debug_regs): Likewise.
5161         (i386_stopped_data_address): Likewise.
5162
5163 2014-06-18  Gary Benson  <gbenson@redhat.com>
5164
5165         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5166         New parameter.  All uses updated.
5167
5168 2014-06-18  Gary Benson  <gbenson@redhat.com>
5169
5170         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5171         All uses updated.
5172
5173 2014-06-18  Gary Benson  <gbenson@redhat.com>
5174
5175         * i386-nat.c (debug_printf): New macro.
5176         (i386_get_debug_register_length): Likewise.
5177         (TARGET_HAS_DR_LEN_8): Use above macro.
5178         (i386_show_dr): Use debug_printf instead of puts_unfiltered
5179         and printf_unfiltered.  Use phex to format values.
5180
5181 2014-06-18  Gary Benson  <gbenson@redhat.com>
5182
5183         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5184         Make const.
5185
5186 2014-06-18  Gary Benson  <gbenson@redhat.com>
5187
5188         * i386-nat.c: Comment changes.
5189
5190 2014-06-18  Gary Benson  <gbenson@redhat.com>
5191
5192         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5193
5194 2014-06-18  Gary Benson  <gbenson@redhat.com>
5195
5196         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5197         (i386_insert_aligned_watchpoint): Likewise.
5198         (i386_remove_aligned_watchpoint): Likewise.
5199         (i386_handle_nonaligned_watchpoint): Likewise.
5200
5201 2014-06-18  Gary Benson  <gbenson@redhat.com>
5202
5203         * i386-nat.c: Whitespace changes.
5204
5205 2014-06-17  Samuel Bronson  <naesten@gmail.com>
5206
5207         * MAINTAINERS: Update Roland McGrath's email address.
5208         Thanks to Sergio Durigan Junior for pointing out that he left
5209         Red Hat a while ago, and giving me a current address.
5210
5211 2014-06-17  Tom Tromey  <tromey@redhat.com>
5212
5213         * utils.h (savestring): Remove declaration.
5214
5215 2014-06-17  Tom Tromey  <tromey@redhat.com>
5216
5217         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5218
5219 2014-06-16  Keith Seitz  <keiths@redhat.com>
5220
5221         PR mi/15863
5222         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5223         to update the varobj if inferior_ptid is null_ptid.
5224
5225 2014-06-16  Tom Tromey  <tromey@redhat.com>
5226
5227         * target.h (struct target_ops) <to_info_proc>: Make parameter
5228         const.
5229         (target_info_proc): Update.
5230         * target.c (target_info_proc): Make "args" const.
5231         * procfs.c (procfs_info_proc): Update.
5232         * linux-tdep.c (linux_info_proc): Update.
5233         (linux_core_info_proc_mappings): Make "args" const.
5234         (linux_core_info_proc): Update.
5235         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5236         * gdbarch.c: Rebuild.
5237         * gdbarch.h: Rebuild.
5238         * corelow.c (core_info_proc): Update.
5239
5240 2014-06-16  Tom Tromey  <tromey@redhat.com>
5241
5242         * target.h (struct target_ops) <to_disconnect>: Make parameter
5243         const.
5244         (target_disconnect): Update.
5245         * target.c (target_disconnect): Make "args" const.
5246         * target-delegates.c: Rebuild.
5247         * remote.c (remote_disconnect): Update.
5248         * record.h (record_disconnect): Update.
5249         * record.c (record_disconnect): Update.
5250         * inf-child.c (inf_child_disconnect): Update.
5251
5252 2014-06-16  Tom Tromey  <tromey@redhat.com>
5253
5254         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5255         * target.c (debug_to_rcmd, default_rcmd): Update.
5256         * target-delegates.c: Rebuild.
5257         * remote.c (remote_rcmd): Update.
5258         * monitor.c (monitor_rcmd): Update.
5259
5260 2014-06-16  Pedro Alves  <palves@redhat.com>
5261
5262         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5263         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5264         have OBJF_SHARED set.
5265         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5266         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
5267         instead of OBJF_USERLOADED.
5268         * objfiles.h (OBJF_SHARED): Update comment.
5269         (userloaded_objfile_contains_address_p): Rename to ...
5270         (shared_objfile_contains_address_p): ... this, and update
5271         comments.
5272         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5273         new objfile.
5274         (remove_symbol_file_command): Skip objfiles that don't have
5275         OBJF_SHARED set.
5276
5277 2014-06-16  Tom Tromey  <tromey@redhat.com>
5278
5279         * minsyms.h (prim_record_minimal_symbol)
5280         (prim_record_minimal_symbol_and_info): Update comments.
5281
5282 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
5283
5284         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5285         or --without-guile, according to how GDB was built.
5286
5287 2014-06-13  Tom Tromey  <tromey@redhat.com>
5288
5289         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5290         to help_list.
5291         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5292         to help_list.
5293         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5294         help_list.
5295         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5296         help_list.Pass all_commands, not -1, to help_list.
5297         * cli/cli-dump.c (dump_command, append_command)
5298         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5299         (binary_dump_command, binary_append_command): Pass all_commands,
5300         not -1, to help_list.
5301         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5302         -1, to help_list.
5303         * valprint.c (set_print, set_print_raw): Pass all_commands, not
5304         -1, to help_list.
5305         * typeprint.c (set_print_type): Pass all_commands, not -1, to
5306         help_list.
5307         * top.c (set_history): Pass all_commands, not -1, to help_list.
5308         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5309         all_commands, not -1, to help_list.
5310         * symfile.c (overlay_command): Pass all_commands, not -1, to
5311         help_list.
5312         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5313         help_list.
5314         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5315         help_list.
5316         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5317         -1, to help_list.
5318         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5319         not -1, to help_list.
5320         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5321         not -1, to help_list.
5322         * maint.c (maintenance_command, maintenance_info_command)
5323         (maintenance_print_command, maintenance_set_cmd): Pass
5324         all_commands, not -1, to help_list.
5325         * macrocmd.c (macro_command): Pass all_commands, not -1, to
5326         help_list.
5327         * language.c (set_check): Pass all_commands, not -1, to help_list.
5328         * infcmd.c (unset_command): Pass all_commands, not -1, to
5329         help_list.
5330         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5331         help_list.
5332         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5333         help_list.
5334         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5335         help_list.
5336         * breakpoint.c (save_command): Pass all_commands, not -1, to
5337         help_list.
5338         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5339         all_commands, not -1, to help_list.
5340
5341 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
5342
5343         * regcache.c (struct register_to_invalidate): New structure.
5344         (do_register_invalidate, make_cleanup_regcache_invalidate): New
5345         functions.
5346         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5347
5348 2014-06-12  Yao Qi  <yao@codesourcery.com>
5349
5350         * varobj.c (varobj_get_num_children): Call
5351         varobj_is_dynamic_p.
5352         (varobj_list_children): Likewise.
5353         (varobj_update): Likewise.  Update comments.
5354
5355 2014-06-12  Yao Qi  <yao@codesourcery.com>
5356
5357         * varobj.c (varobj_pretty_printed_p): Rename to ...
5358         (varobj_is_dynamic_p): ... this.  New function.
5359         * varobj.h (varobj_pretty_printed_p): Remove declaration.
5360         (varobj_is_dynamic_p): Declare.
5361         * mi/mi-cmd-var.c (print_varobj): All callers updated.
5362         (mi_print_value_p, varobj_update_one): Likewise.
5363
5364 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5365             Yao Qi  <yao@codesourcery.com>
5366
5367         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5368         (varobj_get_iterator): Wrap up code for pretty-printer by
5369         "#if HAVE_PYTHON" and "#endif".
5370         (update_dynamic_varobj_children): Likewise.
5371
5372 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5373             Yao Qi  <yao@codesourcery.com>
5374
5375         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5376         gdb_python_initialized is false.  Move some code from varobj.c.
5377         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5378         * varobj.c: Move "varobj-iter.h" inclusion earlier.
5379         (struct varobj_item): Moved to varobj-iter.h".
5380         (varobj_clear_saved_item): New function.
5381         (update_dynamic_varobj_children): Move python-related code to
5382         py-varobj.c.
5383         (free_variable): Call varobj_clear_saved_item and
5384         varobj_iter_delete.
5385
5386 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5387             Yao Qi  <yao@codesourcery.com>
5388
5389         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5390         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5391         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5392         (py-varobj.o): New rule.
5393         * python/py-varobj.c: New file.
5394         * python/python-internal.h (py_varobj_get_iterator): Declare.
5395         * varobj-iter.h: New file.
5396         * varobj.c: Include "varobj-iter.h"
5397         (struct varobj) <child_iter>: Change its type from "PyObject *"
5398         to "struct varobj_iter *".
5399         <saved_item>: Likewise.
5400         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5401         [HAVE_PYTHON] (varobj_get_iterator): New function.
5402         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5403         python-specific code to python/py-varobj.c.
5404         (install_visualizer): Call varobj_iter_delete instead of
5405         Py_XDECREF.
5406         * varobj.h (varobj_ensure_python_env): Declare.
5407
5408 2014-06-12  Yao Qi  <yao@codesourcery.com>
5409
5410         * varobj.c (struct varobj_item): New structure.
5411         (create_child_with_value): Update declaration.
5412         (varobj_add_child): Replace arguments 'name' and 'value' with
5413         'item'.  All callers updated.
5414         (install_dynamic_child): Likewise.
5415         (update_dynamic_varobj_children): Likewise.
5416         (varobj_add_child): Likewise.
5417         (create_child_with_value): Likewise.
5418
5419 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5420
5421         * NEWS: Create a new section for the next release branch.
5422         Rename the section of the current branch, now that it has
5423         been cut.
5424
5425 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5426
5427         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5428         * version.in: Bump version to 7.8.50.DATE-cvs.
5429
5430 2014-06-11  Pedro Alves  <palves@redhat.com>
5431
5432         PR remote/17028
5433         * ser-mingw.c (net_windows_socket_check_pending): New function.
5434         (net_windows_select_thread): Ignore spurious wakeups.  Use
5435         net_windows_socket_check_pending.
5436         (net_windows_wait_handle): Check for pending events with
5437         ioctlsocket, through net_windows_socket_check_pending, instead of
5438         checking the socket's event.
5439
5440 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
5441
5442         * python/python-internal.h (gdb_PyObject_GetAttrString)
5443         (gdb_PyObject_HasAttrString): New inline function definitions.
5444         * py-value.c (get_field_flag): Remove the now unnecessary cast to
5445         char * of the second argument to PyObject_GetAttrString.
5446
5447 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5448
5449         * serial.c (serial_write): Fix index of character to be printed
5450         in call to serial_logchar when serial debug traces are enabled.
5451
5452 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5453
5454         * gdbtypes (resolve_dynamic_range): Add function description.
5455
5456 2014-06-09  Pedro Alves  <palves@redhat.com>
5457
5458         * linux-nat.c (linux_child_follow_fork): Initialize status with
5459         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
5460         inner block.  Only pass the signal to PTRACE_DETACH if in pass
5461         state.
5462
5463 2014-06-09  Gary Benson  <gbenson@redhat.com>
5464
5465         * common/signals.c (gdb_signal_from_host): Reorder to separate
5466         the always-available ANSI-standard signals from the signals that
5467         require checking.
5468         (do_gdb_signal_to_host): Likewise.
5469         * proc-events.c (signal_table): Likewise.
5470
5471 2014-06-08  Hui Zhu  <hui@codesourcery.com>
5472
5473         * common/linux-ptrace.c (linux_disable_event_reporting): New
5474         function.
5475         * common/linux-ptrace.h (linux_disable_event_reporting): New
5476         declaration.
5477         * linux-nat.c (linux_child_follow_fork): Do a single step before
5478         detach.
5479
5480 2014-06-07  Keith Seitz  <keiths@redhat.com>
5481
5482         Revert:
5483         PR c++/16253
5484         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5485         from symbol_matches_domain in symtab.c. All local callers
5486         of symbol_matches_domain updated.
5487         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5488         search STRUCT_DOMAIN.
5489         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5490         independently.  standard_lookup will do that automatically.
5491         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5492         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5493         (cp_lookup_symbol_in_namespace): Likewise.
5494         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5495         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5496         may return a STRUCT_DOMAIN match.
5497         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5498         * cp-support.c: Include language.h.
5499         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5500         VAR_DOMAIN.
5501         * psymtab.c (match_partial_symbol): Compare the requested
5502         domain with the symbol's domain directly.
5503         (lookup_partial_symbol): Likewise.
5504         * symtab.c (lookup_symbol_in_language): Explain when/why
5505         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5506         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5507         appropriate languages.
5508         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5509         and moved to ada-lang.c
5510         (lookup_block_symbol): Explain that this function only returns
5511         symbol matching the requested DOMAIN.
5512         Compare the requested domain with the symbol's domain directly.
5513         (iterate_over_symbols): Compare the requested domain with the
5514         symbol's domain directly.
5515         * symtab.h (symbol_matches_domain): Remove.
5516
5517 2014-06-06  Doug Evans  <xdje42@gmail.com>
5518
5519         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5520         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5521         (gdbscm_guile_version_is_at_least): Declare.
5522         (gdbscm_scm_string_to_int): Declare.
5523         * guile/guile.c (gdbscm_guile_major_version): New global.
5524         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5525         (guile_datadir): New static global.
5526         (gdbscm_guile_data_directory): New function.
5527         (initialize_scheme_side): Update.
5528         (misc_guile_functions): Add guile-data-directory.
5529         (initialize_gdb_module): Fetch guile version number.
5530         * guile/lib/gdb.scm: Remove call to add-to-load-path.
5531         * guile/lib/gdb/init.scm (%initialize!): Ditto.
5532         * guile/lib/gdb/boot.scm: Use guile-data-directory.
5533         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5534         comments.
5535         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5536         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5537         * guile/scm-value.c (gdbscm_value_to_string): Only call
5538         scm_port_conversion_strategy if Guile version >= 2.0.6.
5539
5540 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
5541
5542         * main.c (print_gdb_help): Add -q and --silent.
5543
5544 2014-06-06  Gary Benson  <gbenson@redhat.com>
5545
5546         * common/signals.c: Remove preprocessor conditionals for
5547         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5548         SIGSEGV and SIGTERM.
5549         * proc-events.c: Likewise.
5550
5551 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
5552
5553         * symfile.c (symfile_free_objfile): Remove restriction to
5554         OBJF_USERLOADED.
5555         * symfile-mem.c (symbol_file_add_from_memory): Call
5556         add_target_sections_of_objfile.
5557
5558 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
5559
5560         * guile/scm-value.c (gdbscm_history_append_x): Use
5561         'vlscm_get_value_smob_arg_unsafe' instead of
5562         'vlscm_scm_to_value'.
5563
5564 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
5565
5566         PR mi/15806
5567         * utils.c (printchar): Don't escape at all if quoter is NUL.
5568         Update function documentation to clarify effect of parameter
5569         QUOTER.
5570         * remote.c (escape_buffer): Pass '\\' as the quoter to
5571         fputstrn_unfiltered.
5572         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5573         generate the output.
5574         (mi_solib_unloaded): Same.
5575
5576 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
5577
5578         * development.sh: Delete.
5579         * Makefile.in (config.status): Adjust dependency on development.sh.
5580         * configure.ac: Adjust development.sh source call.
5581         * configure: Regenerate.
5582
5583 2014-06-04  Doug Evans  <xdje42@gmail.com>
5584
5585         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5586         is_scheme_bkpt, spec.
5587         (bpscm_make_breakpoint_smob): Initialize new members.
5588         (gdbscm_create_breakpoint_x): Split into two ...
5589         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5590         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5591         (scheme_function breakpoint_functions): Update.
5592         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
5593         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
5594         register-breakpoint!.
5595
5596 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
5597
5598         PR server/17023
5599         * mem-break.c (z_type_supported): Return zero if
5600         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5601
5602 2014-06-04  Tom Tromey  <tromey@redhat.com>
5603
5604         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5605         value_from_contents_and_address_unresolved.
5606         (ada_template_to_fixed_record_type_1): Likewise.
5607         (ada_which_variant_applies): Likewise.
5608         * value.h (value_from_contents_and_address_unresolved): Declare.
5609         * value.c (value_from_contents_and_address_unresolved): New
5610         function.
5611         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5612         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5613         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5614
5615 2014-06-04  Tom Tromey  <tromey@redhat.com>
5616
5617         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5618
5619 2014-06-04  Tom Tromey  <tromey@redhat.com>
5620
5621         * procfs.c (procfs_attach): Make "args" const.
5622         * windows-nat.c (windows_attach): Make "args" const.
5623         * nto-procfs.c (procfs_attach): Make "args" const.
5624         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5625         * go32-nat.c (go32_attach): Make "args" const.
5626         * gnu-nat.c (gnu_attach): Make "args" const.
5627         * darwin-nat.c (darwin_attach): Make "args" const.
5628         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5629         * linux-nat.c (linux_nat_attach): Make "args" const.
5630         * remote.c (extended_remote_attach_1, extended_remote_attach):
5631         Make "args" const.
5632         * target.h (struct target_ops) <to_attach>: Make "args" const.
5633         (find_default_attach): Likewise.
5634         * utils.c (parse_pid_to_attach): Make "args" const.
5635         * utils.h (parse_pid_to_attach): Update.
5636
5637 2014-06-04  Tom Tromey  <tromey@redhat.com>
5638
5639         * target-delegates.c: Rebuild.
5640         * target.c (default_thread_address_space): New function.
5641         (target_thread_address_space): Simplify.
5642         * target.h (struct target_ops) <to_thread_address_space>: Add
5643         TARGET_DEFAULT_FUNC.
5644
5645 2014-06-04  Doug Evans  <xdje42@gmail.com>
5646
5647         * guile/scm-type.c (type_smob): Remove duplicate typedef.
5648
5649 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
5650
5651         * record-btrace.c: Include event-loop.h and inf-loop.h.
5652         (record_btrace_resume_exec_dir)
5653         (record_btrace_async_inferior_event_handler)
5654         (record_btrace_handle_async_inferior_event): New.
5655         (record_btrace_open): Create async event handler.
5656         (record_btrace_close): Delete async event handler.
5657         (record_btrace_resume): Set record_btrace_resume_exec_dir,
5658         Mark async event handler.
5659         (record_btrace_execution_direction): New.
5660         (init_record_btrace_ops): Initialize to_execution_direction.
5661
5662 2014-06-03  Doug Evans  <xdje42@gmail.com>
5663
5664         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5665         (gdbscm_make_parameter): Ditto.
5666
5667 2014-06-03  Doug Evans  <dje@google.com>
5668
5669         * exec.c (exec_close_1): Call clear_section_table instead of
5670         resize_section_table.
5671         (clear_section_table): New function.
5672         (resize_section_table): Make static.  Rename arg num_added to
5673         adjustment.
5674         * exec.h (clear_section_table): Declare.
5675         (resize_section_table): Delete.
5676         * progspace.c (release_program_space): Call clear_section_table
5677         instead of resize_section_table.
5678
5679 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5680
5681         * NEWS (Python Scripting): Add entry about the new xmethods
5682         feature.
5683
5684 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5685
5686         * python/py-xmethods.c: New file.
5687         * python/py-objfile.c (objfile_object): New field 'xmethods'.
5688         (objfpy_dealloc): XDECREF on the new xmethods field.
5689         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5690         field.
5691         (objfpy_get_xmethods): New function.
5692         (objfile_getset): New entry 'xmethods'.
5693         * python/py-progspace.c (pspace_object): New field 'xmethods'.
5694         (pspy_dealloc): XDECREF on the new xmethods field.
5695         (pspy_new, pspace_to_pspace_object): Initialize xmethods
5696         field.
5697         (pspy_get_xmethods): New function.
5698         (pspace_getset): New entry 'xmethods'.
5699         * python/python-internal.h: Add declarations for new functions.
5700         * python/python.c (_initialize_python): Invoke
5701         gdbpy_initialize_xmethods.
5702         * python/lib/gdb/__init__.py (xmethods): New
5703         attribute.
5704         * python/lib/gdb/xmethod.py: New file.
5705         * python/lib/gdb/command/xmethods.py: New file.
5706
5707 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5708
5709         * eval.c (evaluate_subexp_standard): Call the xmethod if the
5710         best match method returned by find_overload_match is an xmethod.
5711         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5712         the best matching operator returned by find_overload_match is an
5713         xmethod.
5714         * valops.c: #include "extension.h".
5715         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5716         Return void.  The list of matching source methods is returned in
5717         "fn_list" and a vector of matching debug method workers is
5718         returned in "xm_worker_vec".  Update all callers.
5719         (value_find_oload_method_list): Likewise.
5720         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
5721         non-NULL, then the index of the best matching method in this
5722         vector is returned.  Update all callers.
5723         (find_overload_match): Include xmethods while performing overload
5724         resolution.
5725
5726 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5727
5728         * defs.h (enum lval_type): New enumerator "lval_xcallable".
5729         * extension-priv.h (struct extension_language_ops): Add the
5730         xmethod interface.
5731         * extension.c (new_xmethod_worker, clone_xmethod_worker,
5732         get_matching_xmethod_workers, get_xmethod_argtypes,
5733         invoke_xmethod, free_xmethod_worker,
5734         free_xmethod_worker_vec): New functions.
5735         * extension.h: #include "common/vec.h".
5736         New function declarations.
5737         (struct xmethod_worker): New struct.
5738         (VEC (xmethod_worker_ptr)): New vector type.
5739         (xmethod_worker_ptr): New typedef.
5740         (xmethod_worker_vec): Likewise.
5741         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5742         builtin_type.
5743         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5744         (struct builtin_type): New field "xmethod".
5745         * valarith.c (value_ptradd): Assert that the value argument is not
5746         lval_xcallable.
5747         * valops.c (value_must_coerce_to_target): Return 0 for
5748         lval_xcallable values.
5749         * value.c (struct value): New field XM_WORKER in the field
5750         LOCATION.
5751         (value_address, value_raw_address): Return 0 for lval_xcallable
5752         values.
5753         (set_value_address): Assert that the value is not an
5754         lval_xcallable.
5755         (value_free): Free the associated xmethod worker when freeing
5756         lval_xcallable values.
5757         (set_value_component_location): Assert that the WHOLE value is not
5758         lval_xcallable.
5759         (value_of_xmethod, call_xmethod): New functions.
5760         * value.h: Declare "struct xmethod_worker".
5761         Declare new functions value_of_xmethod, call_xmethod.
5762
5763 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
5764             Pedro Alves  <palves@redhat.com>
5765
5766         PR breakpoints/17000
5767         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5768         New function, extracted from software_breakpoint_inserted_here_p.
5769         (software_breakpoint_inserted_here_p): Replace factored out code
5770         by call to find_non_raw_software_breakpoint_inserted_here.
5771         (bp_target_info_copy_insertion_state): New function.
5772         (bkpt_insert_location): Handle the case of a single-step
5773         breakpoint already inserted at the same address.
5774         (bkpt_remove_location): Handle the case of a single-step
5775         breakpoint still inserted at the same address.
5776         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5777         breakpoint already inserted at the same address.
5778         (deprecated_remove_raw_breakpoint): Handle the case of a
5779         non-raw breakpoint still inserted at the same address.
5780         (find_single_step_breakpoint): New function, extracted from
5781         single_step_breakpoint_inserted_here_p.
5782         (find_single_step_breakpoint): New function,
5783         factored out from single_step_breakpoint_inserted_here_p.
5784         (single_step_breakpoint_inserted_here_p): Reimplement.
5785
5786 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
5787
5788         Pushed by Joel Brobecker  <brobecker@adacore.com>
5789         * source.c (show_substitute_path_command): Fix display of matching
5790         substitution rules.
5791
5792 2014-06-03  Gary Benson  <gbenson@redhat.com>
5793
5794         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5795
5796 2014-06-02  Doug Evans  <xdje42@gmail.com>
5797
5798         Add parameter support for Guile.
5799         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5800         (SUBDIR_GUILE_SRCS): Add scm-param.c.
5801         (scm-param.o): New rule.
5802         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5803         (gdbscm_misc_error): Declare.
5804         (gdbscm_canonicalize_command_name): Declare.
5805         (gdbscm_scm_to_host_string): Declare.
5806         (gdbscm_scm_from_host_string): Declare.
5807         (gdbscm_initialize_parameters): Declare.
5808         * guile/guile.c (initialize_gdb_module): Call
5809         gdbscm_initialize_parameters.
5810         * guile/lib/gdb.scm: Export parameter symbols.
5811         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5812         cmdscm_canonicalize_name and made public.  All callers updated.
5813         * guile/scm-exception.c (gdbscm_misc_error): New function.
5814         * guile/scm-param.c: New file.
5815         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5816         (gdbscm_scm_to_host_string): New function.
5817         (gdbscm_scm_from_host_string): New function.
5818         * scm-utils.c (gdbscm_gc_dup_argv): New function.
5819
5820 2014-06-02  Doug Evans  <xdje42@gmail.com>
5821
5822         Add command support for Guile.
5823         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5824         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5825         (scm-cmd.o): New rule.
5826         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5827         (gdbscm_user_error_p): Declare.
5828         (gdbscm_parse_command_name): Declare.
5829         (gdbscm_valid_command_class_p): Declare.
5830         (gdbscm_initialize_commands): Declare.
5831         * guile/guile.c (initialize_gdb_module): Call
5832         gdbscm_initialize_commands.
5833         * guile/lib/gdb.scm: Export command symbols.
5834         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5835         (throw-user-error): New function.
5836         * guile/scm-cmd.c: New file.
5837         * guile/scm-exception.c (user_error_symbol): New static global.
5838         (gdbscm_user_error_p): New function.
5839         (gdbscm_initialize_exceptions): Set user_error_symbol.
5840         * scm-utils.c (gdbscm_gc_xstrdup): New function.
5841
5842 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
5843
5844         * top.c (command_loop): Handle comments here...
5845         (command_line_input): ... not here.
5846
5847 2014-06-02  Doug Evans  <xdje42@gmail.com>
5848
5849         Add progspace support for Guile.
5850         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5851         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5852         (scm-progspace.o): New rule.
5853         * guile/guile-internal.h (pspace_smob): New typedef.
5854         (psscm_pspace_smob_pretty_printers): Declare.
5855         (psscm_pspace_smob_from_pspace): Declare.
5856         (psscm_scm_from_pspace): Declare.
5857         * guile/guile.c (initialize_gdb_module): Call
5858         gdbscm_initialize_pspaces.
5859         * guile/lib/gdb.scm: Export progspace symbols.
5860         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5861         support.
5862         (append-pretty-printer!): Ditto.
5863         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5864         Implement.
5865         * guile/scm-progspace.c: New file.
5866
5867 2014-06-03  Alan Modra  <amodra@gmail.com>
5868
5869         * ppc64-tdep.c (ppc64_standard_linkage8): New.
5870         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5871
5872 2014-06-02  Doug Evans  <dje@google.com>
5873
5874         Add support for skeletonless type units.
5875         * dwarf2read.c (struct dwarf2_per_objfile): New member
5876         n_allocated_type_units.
5877         (struct dwarf2_per_objfile) <tu_stats>: New member
5878         nr_all_type_units_reallocs.
5879         (create_signatured_type_table_from_index): Initialize
5880         n_allocated_type_units
5881         (create_all_type_units): Ditto.
5882         (add_type_unit): Move up in file.  New arg slot.
5883         All callers updated.  Increase space for all_type_units more
5884         efficiently.
5885         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5886         (lookup_dwo_signatured_type): Handle skeletonless TUs.
5887         (lookup_dwp_signatured_type): Ditto.
5888         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5889         All callers updated.
5890         (build_type_psymtabs_1): Leave type_unit_groups as
5891         NULL if no TUs present.
5892         (print_tu_stats): New function.
5893         (process_skeletonless_type_unit): New function.
5894         (process_dwo_file_for_skeletonless_type_units): New
5895         function.
5896         (process_skeletonless_type_units): New function.
5897         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5898         Call print tu_stats if debugging enabled.
5899
5900 2014-06-02  Pedro Alves  <palves@redhat.com>
5901
5902         * breakpoint.c (build_target_command_list): Don't build a command
5903         list if we have any duplicate location that isn't a dprintf.
5904
5905 2014-06-02  Pedro Alves  <palves@redhat.com>
5906
5907         * breakpoint.c (dprintf_breakpoint_hit): New function.
5908         (initialize_breakpoint_ops): Install it as dprintf's
5909         breakpoint_hit method.
5910
5911 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5912
5913         * source.c (substitute_path_rule_matches): Simplify using
5914         filename_ncmp instead of FILENAME_CMP.
5915
5916 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5917
5918         * source.c (substitute_path_rule_matches): Remove trailing spaces.
5919
5920 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
5921
5922         * configure.ac: When Guile is available, check for the
5923         availability of 'scm_new_smob'.
5924         * configure, config.h.in: Regenerate.
5925         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5926         function.
5927
5928 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5929
5930         * frame.c (struct frame_info): Add stop_string field.
5931         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5932         (get_prev_frame_always): Old content moved into
5933         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
5934         TRY_CATCH, handle MEMORY_ERROR exceptions.
5935         (frame_stop_reason_string): New function definition.
5936         * frame.h (unwind_stop_reason_to_string): Extend comment to
5937         mention frame_stop_reason_string.
5938         (frame_stop_reason_string): New function declaration.
5939         * stack.c (frame_info): Switch to frame_stop_reason_string.
5940         (backtrace_command_1): Switch to frame_stop_reason_string.
5941         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5942         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5943         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5944
5945 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5946
5947         * frame.c (frame_stop_reason_string): Rename to ...
5948         (unwind_stop_reason_to_string): this.
5949         * frame.h (frame_stop_reason_string): Rename to ...
5950         (unwind_stop_reason_to_string): this.
5951         * stack.c (frame_info): Update call to frame_stop_reason_string.
5952         (backtrace_command_1): Likewise.
5953         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5954         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5955
5956 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5957
5958         * frame.c (remove_prev_frame): New function.
5959         (get_prev_frame_if_no_cycle): Create / discard cleanup using
5960         remove_prev_frame.
5961
5962 2014-05-29  Pedro Alves  <palves@redhat.com>
5963
5964         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5965         and make it const.  When a single-step decays to a continue,
5966         clear 'step', not 'hw_step'.  Pass whether the caller wanted
5967         to step to user_visible_resume_ptid, not what we ask the
5968         target to do.
5969
5970 2014-05-29  Pedro Alves  <palves@redhat.com>
5971
5972         * infrun.c (process_event_stop_test, handle_step_into_function)
5973         (handle_step_into_function_backward): Adjust.
5974         Don't set the even thread's stop_step and call stop_waiting before
5975         calling end_stepping_range.  Instead do that ...
5976         (end_stepping_range): ... here.  Take an ecs pointer parameter.
5977
5978 2014-05-29  Pedro Alves  <palves@redhat.com>
5979
5980         * infrun.c (stop_stepping): Rename to ...
5981         (stop_waiting): ... this.
5982         (proceed): Update comment.
5983         (process_event_stop_test, handle_inferior_event)
5984         (handle_signal_stop, handle_step_into_function)
5985         (handle_step_into_function_backward): Update.
5986
5987 2014-05-29  Pedro Alves  <palves@redhat.com>
5988
5989         * infcall.c (run_inferior_call): Don't check whether the current
5990         thread is running after the proceed call.
5991
5992 2014-05-29  Pedro Alves  <palves@redhat.com>
5993             Tom Tromey  <tromey@redhat.com>
5994
5995         * NEWS: Mention "maint set target-async", "set mi-async", and that
5996         background execution commands are now always available.
5997         * target.h (target_async_permitted): Update comment.
5998         * target.c (target_async_permitted, target_async_permitted_1):
5999         Default to 1.
6000         (set_target_async_command): Rename to ...
6001         (maint_set_target_async_command): ... this.
6002         (show_target_async_command): Rename to ...
6003         (maint_show_target_async_command): ... this.
6004         (_initialize_target): Adjust.
6005         * infcmd.c (prepare_execution_command): Make extern.
6006         * inferior.h (prepare_execution_command): Declare.
6007         * infrun.c (set_observer_mode): Leave target async alone.
6008         * mi/mi-interp.c (mi_interpreter_init): Install
6009         mi_on_sync_execution_done as sync_execution_done observer.
6010         (mi_on_sync_execution_done): New function.
6011         (mi_execute_command_input_handler): Don't print the prompt if we
6012         just started a synchronous command with an async target.
6013         (mi_on_resume): Check sync_execution before printing prompt.
6014         * mi/mi-main.h (mi_async_p): Declare.
6015         * mi/mi-main.c: Include gdbcmd.h.
6016         (mi_async_p): New function.
6017         (mi_async, mi_async_1): New globals.
6018         (set_mi_async_command, show_mi_async_command, mi_async): New
6019         functions.
6020         (exec_continue): Call prepare_execution_command.
6021         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6022         (mi_execute_async_cli_command): Use mi_async_p.
6023         (_initialize_mi_main): Install "set mi-async".  Make
6024         "target-async" a deprecated alias.
6025
6026 2014-05-29  Pedro Alves  <palves@redhat.com>
6027
6028         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6029         (_initialize_cli_interp): Adjust.
6030         * event-loop.c: Include "observer.h".
6031         (start_event_loop): Notify 'command_error' observers instead of
6032         calling display_gdb_prompt.  Remove FIXME comment.
6033         * event-top.c (display_gdb_prompt): Remove call into the
6034         interpreters.
6035         * inf-loop.c: Include "observer.h".
6036         (inferior_event_handler): Notify 'command_error' observers instead
6037         of calling display_gdb_prompt.
6038         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6039         observers instead of calling display_gdb_prompt.
6040         * interps.c (interp_set): Don't call display_gdb_prompt.
6041         (current_interp_display_prompt_p): Delete.
6042         * interps.h (interp_prompt_p): Delete declaration.
6043         (interp_prompt_p_ftype): Delete.
6044         (struct interp_procs) <prompt_proc_p>: Delete field.
6045         (current_interp_display_prompt_p): Delete declaration.
6046         * mi-interp.c (mi_interpreter_prompt_p): Delete.
6047         (_initialize_mi_interp): Adjust.
6048         * tui-interp.c (tui_init): Install 'sync_execution_done' and
6049         'command_error' observers.
6050         (tui_on_sync_execution_done, tui_on_command_error): New
6051         functions.
6052         (tui_display_prompt_p): Delete.
6053         (_initialize_tui_interp): Adjust.
6054
6055 2014-05-29  Pedro Alves  <palves@redhat.com>
6056
6057         PR gdb/13860
6058         * cli/cli-interp.c: Include infrun.h and observer.h.
6059         (cli_uiout, cli_interp): New globals.
6060         (cli_on_signal_received, cli_on_end_stepping_range)
6061         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6062         functions.
6063         (cli_interpreter_init): Install them as 'end_stepping_range',
6064         'signal_received' 'signal_exited', 'exited' and 'no_history'
6065         observers.
6066         (_initialize_cli_interp): Remove cli_interp local.
6067         * infrun.c (handle_inferior_event): Call the several stop reason
6068         observers instead of printing the stop reason directly.
6069         (end_stepping_range): New function.
6070         (print_end_stepping_range_reason, print_signal_exited_reason)
6071         (print_exited_reason, print_signal_received_reason)
6072         (print_no_history_reason): Make static, and add an uiout
6073         parameter.  Print to that instead of to CURRENT_UIOUT.
6074         * infrun.h (print_end_stepping_range_reason)
6075         (print_signal_exited_reason, print_exited_reason)
6076         (print_signal_received_reason print_no_history_reason): New
6077         declarations.
6078         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6079         'mi_uiout'.
6080         <cli_uiout>: New field.
6081         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
6082         uiout for CLI output.  Install 'signal_received',
6083         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6084         observers.
6085         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6086         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6087         (mi_on_no_history): New functions.
6088         (ui_out_free_cleanup): Delete function.
6089         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6090         instead use the one already stored in the MI interpreter data.
6091         (mi_ui_out): Adjust.
6092         * tui/tui-interp.c: Include infrun.h and observer.h.
6093         (tui_interp): New global.
6094         (tui_on_signal_received, tui_on_end_stepping_range)
6095         (tui_on_signal_exited, tui_on_exited)
6096         (tui_on_no_history): New functions.
6097         (tui_init): Install them as 'end_stepping_range',
6098         'signal_received' 'signal_exited', 'exited' and 'no_history'
6099         observers.
6100         (_initialize_tui_interp): Delete tui_interp local.
6101
6102 2014-05-29  Pedro Alves  <palves@redhat.com>
6103
6104         PR gdb/15713
6105         * linux-nat.c (linux_nat_resume_callback): Rename the second
6106         parameter to 'except'.  Skip LP if it points to EXCEPT.
6107         (linux_nat_resume): Don't mark the event lwp as not stopped
6108         before resuming sibling lwps.  Instead ask
6109         linux_nat_resume_callback to skip the event lwp.  Mark it as not
6110         stopped after actually resuming it.
6111         (linux_handle_syscall_trap): Mark the lwp as not stopped after
6112         resuming it.
6113         (wait_lwp): Mark the lwp as stopped here.
6114         (stop_wait_callback): Mark the lwp as not stopped right after
6115         resuming it.  Don't mark lwps as stopped here.
6116         (linux_nat_filter_event): Mark the lwp as stopped earlier.
6117         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6118
6119 2014-05-29  Pedro Alves  <palves@redhat.com>
6120
6121         PR PR15693
6122         * infrun.c (resume): Determine how much to resume depending on
6123         whether the caller wanted a step, not whether we can hardware step
6124         the target.  Mark all threads that we intend to run as running,
6125         unless we're calling an inferior function.
6126         (normal_stop): If the thread is running an infcall, don't finish
6127         thread state.
6128         * target.c (target_resume): Don't mark threads as running here.
6129
6130 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
6131
6132         * serial.c (_initialize_serial): Remove support for
6133         the "set remotebaud" and "show remotebaud" commands.
6134         * NEWS: Add entry documenting the removal of that command.
6135
6136 2014-05-28  Yao Qi  <yao@codesourcery.com>
6137
6138         * charset.c: Fix typo in comments.
6139
6140 2014-05-27  Gary Benson  <gbenson@redhat.com>
6141
6142         * utils.c (internal_vproblem): Prompt for a bug report.
6143
6144 2014-05-26  Andy Wingo  <wingo@igalia.com>
6145
6146         * guile/scm-arch.c (arscm_mark_arch_smob):
6147         * guile/scm-block.c (bkscm_mark_block_smob)
6148         (bkscm_mark_block_syms_progress_smob):
6149         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6150         * guile/scm-exception.c (exscm_mark_exception_smob):
6151         * guile/scm-frame.c (frscm_mark_frame_smob):
6152         * guile/scm-iterator.c (itscm_mark_iterator_smob):
6153         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6154         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6155         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6156         (ppscm_mark_pretty_printer_worker_smob):
6157         * guile/scm-symbol.c (syscm_mark_symbol_smob):
6158         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6159         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6160         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6161         mark functions.
6162         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6163         function.
6164
6165 2014-05-26  Andy Wingo  <wingo@igalia.com>
6166             Doug Evans  <xdje42@gmail.com>
6167
6168         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6169         empty_base_class.  All uses updated.
6170         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6171         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6172         Adapt all callers.
6173         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6174         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6175         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6176         (gdbscm_gsmob_has_property_p, add_property_name)
6177         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6178         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6179         (gdb-object-has-property?, gdb-object-properties): Remove.
6180         (gdb-object-kind): Renamed from gsmob-kind.
6181
6182 2014-05-26  Andy Wingo  <wingo@igalia.com>
6183
6184         * configure.ac (try_guile_versions): Allow building with guile 2.2.
6185         * configure: Regenerate.
6186
6187 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6188
6189         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6190
6191 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6192
6193         * record-btrace.c (record_btrace_allow_memory_access): Remove.
6194         (replay_memory_access_read_only, replay_memory_access_read_write)
6195         (replay_memory_access_types, replay_memory_access)
6196         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6197         (cmd_set_record_btrace, cmd_show_record_btrace)
6198         (cmd_show_replay_memory_access): New.
6199         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6200         (record_btrace_remove_breakpoint): Replace
6201         record_btrace_allow_memory_access with replay_memory_access.
6202         (_initialize_record_btrace): Add commands.
6203         * NEWS: Announce it.
6204
6205 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6206
6207         * aarch64-linux-nat.c (asm/ptrace.h): Include.
6208
6209 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6210
6211         * MAINTAINERS (Write After Approval): Move self back from
6212         paper trail.
6213
6214 2014-05-22  Pedro Alves  <palves@redhat.com>
6215
6216         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6217         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6218         (disable_randomization, enum exec_direction_kind)
6219         (execution_direction, stop_registers, start_remote)
6220         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6221         (wait_for_inferior, normal_stop, get_last_target_status)
6222         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6223         (insert_step_resume_breakpoint_at_sal)
6224         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6225         (set_step_info, print_stop_event, signal_stop_state)
6226         (signal_print_state, signal_pass_state, signal_stop_update)
6227         (signal_print_update, signal_pass_update)
6228         (update_signals_program_target, clear_exit_convenience_vars)
6229         (displaced_step_dump_bytes, update_observer_mode)
6230         (signal_catch_update, gdb_signal_from_command): Move
6231         declarations ...
6232         * infrun.h: ... to this new file.
6233         * amd64-tdep.c: Include infrun.h.
6234         * annotate.c: Include infrun.h.
6235         * arch-utils.c: Include infrun.h.
6236         * arm-linux-tdep.c: Include infrun.h.
6237         * arm-tdep.c: Include infrun.h.
6238         * break-catch-sig.c: Include infrun.h.
6239         * breakpoint.c: Include infrun.h.
6240         * common/agent.c: Include infrun.h instead of inferior.h.
6241         * corelow.c: Include infrun.h.
6242         * event-top.c: Include infrun.h.
6243         * go32-nat.c: Include infrun.h.
6244         * i386-tdep.c: Include infrun.h.
6245         * inf-loop.c: Include infrun.h.
6246         * infcall.c: Include infrun.h.
6247         * infcmd.c: Include infrun.h.
6248         * infrun.c: Include infrun.h.
6249         * linux-fork.c: Include infrun.h.
6250         * linux-nat.c: Include infrun.h.
6251         * linux-thread-db.c: Include infrun.h.
6252         * monitor.c: Include infrun.h.
6253         * nto-tdep.c: Include infrun.h.
6254         * procfs.c: Include infrun.h.
6255         * record-btrace.c: Include infrun.h.
6256         * record-full.c: Include infrun.h.
6257         * remote-m32r-sdi.c: Include infrun.h.
6258         * remote-mips.c: Include infrun.h.
6259         * remote-notif.c: Include infrun.h.
6260         * remote-sim.c: Include infrun.h.
6261         * remote.c: Include infrun.h.
6262         * reverse.c: Include infrun.h.
6263         * rs6000-tdep.c: Include infrun.h.
6264         * s390-linux-tdep.c: Include infrun.h.
6265         * solib-irix.c: Include infrun.h.
6266         * solib-osf.c: Include infrun.h.
6267         * solib-svr4.c: Include infrun.h.
6268         * target.c: Include infrun.h.
6269         * top.c: Include infrun.h.
6270         * windows-nat.c: Include infrun.h.
6271         * mi/mi-interp.c: Include infrun.h.
6272         * mi/mi-main.c: Include infrun.h.
6273         * python/py-threadevent.c: Include infrun.h.
6274
6275 2014-05-22  Pedro Alves  <palves@redhat.com>
6276
6277         * infrun.c (handle_inferior_event): Store the exit code for
6278         --return-child-result here, instead of ...
6279         (print_exited_reason): ... here.
6280
6281 2014-05-21  Pedro Alves  <palves@redhat.com>
6282
6283         PR gdb/13860
6284         * gdbthread.h (struct thread_control_state): New field
6285         `command_interp'.
6286         * infrun.c (follow_fork): Copy the new thread control field to the
6287         child fork thread.
6288         (clear_proceed_status_thread): Clear the new thread control field.
6289         (proceed): Set the new thread control field.
6290         * interps.h (command_interp): Declare.
6291         * interps.c (command_interpreter): New global.
6292         (command_interp): New function.
6293         (interp_exec): Set `command_interpreter' while here.
6294         * cli-out.c (cli_uiout_dtor): New function.
6295         (cli_ui_out_impl): Install it.
6296         * mi/mi-interp.c: Include cli-out.h.
6297         (mi_cmd_interpreter_exec): Add comment.
6298         (restore_current_uiout_cleanup): New function.
6299         (ui_out_free_cleanup): New function.
6300         (mi_on_normal_stop): If finishing an execution command started by
6301         a CLI command, or any kind of breakpoint-like event triggered,
6302         print the stop event to the output (CLI) stream.
6303         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6304
6305 2014-05-21  Pedro Alves  <palves@redhat.com>
6306
6307         * cli/cli-cmds.c (list_command): Handle the first "list" after the
6308         current source line having changed.
6309         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6310         * infrun.c (normal_stop): Adjust call to
6311         set_current_sal_from_frame.
6312         * source.c (clear_lines_listed_range): New function.
6313         (set_current_source_symtab_and_line, identify_source_line): Clear
6314         the lines listed range.
6315         (line_info): Handle the first "info line" after the current source
6316         line having changed.
6317         * stack.c (print_stack_frame): Remove center handling.
6318         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
6319         center sal.line.
6320
6321 2014-05-21  Pedro Alves  <palves@redhat.com>
6322
6323         * inf-child.c (inf_child_mourn_inferior): New function.
6324         * inf-child.h (inf_child_mourn_inferior): New declaration.
6325         * darwin-nat.c (darwin_mourn_inferior): Use
6326         inf_child_mourn_inferior.
6327         * gnu-nat.c (gnu_mourn_inferior): Likewise.
6328         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6329         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6330         * nto-procfs.c (procfs_mourn_inferior): Likewise.
6331         * windows-nat.c (windows_mourn_inferior): Likewise.
6332
6333 2014-05-21  Doug Evans  <xdje42@gmail.com>
6334
6335         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6336
6337 2014-05-21  Doug Evans  <xdje42@gmail.com>
6338
6339         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6340         (gdbscm_out_of_range_error): Ditto.
6341         (gdbscm_memory_error): Ditto.
6342         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6343         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6344         (gdbscm_out_of_range_error): Update.
6345         (gdbscm_memory_error): Update.
6346         (gdbscm_scm_to_target_string_unsafe): Delete.
6347
6348 2014-05-21  Pedro Alves  <palves@redhat.com>
6349
6350         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6351         globals.
6352         (inf_child_open_target): New function.
6353         (inf_child_open): Use inf_child_open_target to push the target
6354         instead of erroring out.
6355         (inf_child_disconnect, inf_child_close)
6356         (inf_child_maybe_unpush_target): New functions.
6357         (inf_child_target): Install inf_child_disconnect and
6358         inf_child_close.  Store a pointer to the returned object.
6359         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6360         declarations.
6361         * target.c (auto_connect_native_target): New global.
6362         (show_default_run_target): New function.
6363         (find_default_run_target): Return NULL if automatically connecting
6364         to the native target is disabled.
6365         (_initialize_target): Install set/show auto-connect-native-target.
6366         * NEWS: Mention "set auto-connect-native-target", and "target
6367         native".
6368         * linux-nat.c (super_close): New global.
6369         (linux_nat_close): Call super_close.
6370         (linux_nat_add_target): Store a pointer to the base class's
6371         to_close method.
6372         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6373         inf_child_maybe_unpush.
6374         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6375         already pushed.
6376         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6377         the inferior.  Use inf_child_maybe_unpush_target.
6378         (inf_ttrace_attach): Don't push the target if it is already
6379         pushed.
6380         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6381         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6382         after mourning the inferior.  Use inf_child_maybe_unpush_target.
6383         (darwin_attach_pid): Don't push the target if it is already
6384         pushed.
6385         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6386         mourning the inferior.  Use inf_child_maybe_unpush_target.
6387         (gnu_detach): Use inf_child_maybe_unpush_target.
6388         * go32-nat.c (go32_create_inferior): Don't push the target if it
6389         is already pushed.
6390         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6391         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6392         (procfs_open): Rename to ...
6393         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
6394         comments.  Can target_preopen before changing node.  Call
6395         inf_child_open_target to push the target explicitly.
6396         (procfs_attach): Don't push the target if it is already pushed.
6397         (procfs_detach): Use inf_child_maybe_unpush_target.
6398         (procfs_create_inferior): Don't push the target if it is already
6399         pushed.
6400         (nto_native_ops): New global.
6401         (procfs_open): Reimplement.
6402         (procfs_native_open): New function.
6403         (init_procfs_targets): Install procfs_native_open as to_open of
6404         "target native".  Store a pointer to the "native" target in
6405         nto_native_ops.
6406         * procfs.c (procfs_attach): Don't push the target if it is already
6407         pushed.
6408         (procfs_detach): Use inf_child_maybe_unpush_target.
6409         (procfs_mourn_inferior): Only unpush the target after mourning the
6410         inferior.  Use inf_child_maybe_unpush_target.
6411         (procfs_init_inferior): Don't push the target if it is already
6412         pushed.
6413         * windows-nat.c (do_initial_windows_stuff): Don't push the target
6414         if it is already pushed.
6415
6416 2014-05-21  Pedro Alves  <palves@redhat.com>
6417
6418         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6419         and "procfs" targets are now called "native" instead.
6420
6421 2014-05-21  Pedro Alves  <palves@redhat.com>
6422
6423         * go32-nat.c (go32_open): Delete.
6424         (go32_target): Don't override the to_open method.
6425
6426 2014-05-21  Pedro Alves  <palves@redhat.com>
6427
6428         * nto-procfs.c (procfs_can_run): New function.
6429         (nto_procfs_ops): New global.
6430         (init_procfs_targets): New, based on procfs_target.  Install
6431         "target native" in addition to "target procfs".
6432         (_initialize_procfs): Call init_procfs_targets instead of adding
6433         the target here.
6434
6435 2014-05-21  Pedro Alves  <palves@redhat.com>
6436
6437         * windows-nat.c (windows_target): Don't override to_shortname,
6438         to_longname or to_doc.
6439
6440 2014-05-21  Pedro Alves  <palves@redhat.com>
6441
6442         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6443         to_doc.
6444
6445 2014-05-21  Pedro Alves  <palves@redhat.com>
6446
6447         * darwin-nat.c (_initialize_darwin_inferior): Don't override
6448         to_shortname, to_longname or to_doc.
6449
6450 2014-05-21  Pedro Alves  <palves@redhat.com>
6451
6452         * go32-nat.c (go32_target): Don't override to_shortname,
6453         to_longname or to_doc.
6454
6455 2014-05-21  Pedro Alves  <palves@redhat.com>
6456
6457         * inf-child.c (inf_child_open): Remove mention of "child".
6458         (inf_child_target): Rename target to "native" instead of "child".
6459
6460 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6461
6462         * Makefile.in (SFILES): Delete "regset.c".
6463         (COMMON_OBS): Delete "regset.o".
6464         * regset.c: Remove.
6465         * regset.h (regset_alloc): Delete prototype.
6466
6467 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6468
6469         * sparc-linux-tdep.c (sparc32_linux_gregset)
6470         (sparc32_linux_fpregset): New static regset structures.
6471         (sparc32_linux_init_abi): Drop dynamic regset allocations.
6472         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6473         'fpregset' fields.
6474         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6475         (sparc64_linux_fpregset): New static regset structures.
6476         (sparc64_linux_init_abi): Drop dynamic regset allocations.
6477         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6478         New static regset structures.
6479         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6480         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6481         New static regset structures.
6482         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6483         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6484         New static regset structures.
6485         (sparc64obsd_init_abi): Drop dynamic regset allocations.
6486         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6487         New static regset structures.
6488         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6489
6490 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6491
6492         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6493         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6494         register maps ("regmaps") from "*regset" to "*regmap".  Do this
6495         for all regmap types and variables.
6496         * sparc-linux-tdep.c (sparc32_linux_step_trap)
6497         (sparc32_linux_supply_core_gregset)
6498         (sparc32_linux_collect_core_gregset)
6499         (sparc32_linux_supply_core_fpregset)
6500         (sparc32_linux_collect_core_fpregset): Likewise.
6501         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6502         (sparc_gregmap, sparc_fpregmap): ... these.
6503         (sparc_supply_gregset, sparc_collect_gregset)
6504         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6505         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6506         (_initialize_sparc_nat): Rename regmaps.
6507         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6508         (sparc_gregmap, sparc_fpregmap): ... these.
6509         (sparc_supply_gregset, sparc_collect_gregset)
6510         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6511         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6512         Rename macros to...
6513         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6514         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6515         Likewise.
6516         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6517         Rename to...
6518         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6519         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6520         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6521         regmaps.
6522         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6523         (sparc32_bsd_fpregset): Rename to...
6524         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6525         (sparc32_bsd_fpregmap): ... these.
6526         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6527         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6528         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6529         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6530         (struct sparc_gregmap, struct sparc_fpregmap)
6531         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6532         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6533         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6534         (sparc32_supply_regset, sparc32_collect_gregset)
6535         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6536         prototypes.
6537         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6538         (sparc64_linux_ptrace_gregmap): ... this.
6539         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6540         (_initialize_sparc64_linux_nat): Rename regmaps.
6541         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6542         (sparc64_linux_core_gregmap): ... this.
6543         (sparc64_linux_supply_core_gregset)
6544         (sparc64_linux_collect_core_gregset)
6545         (sparc64_linux_supply_core_fpregset)
6546         (sparc64_linux_collect_core_fpregset): Rename regmaps.
6547         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6548         (sparc64_sol2_fpregset): Rename to...
6549         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6550         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6551         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6552         regmaps.
6553         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6554         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6555         (sparc64_bsd_fpregset): Rename to...
6556         (struct sparc_gregmap, sparc64_sol2_gregmap)
6557         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6558         (sparc64_bsd_fpregmap): ... these.
6559         (sparc64_supply_gregset, sparc64_collect_gregset)
6560         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6561         prototypes.
6562         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6563         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6564         (sparc64fbsd_gregmap): ... this.
6565         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6566         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6567         Rename regmaps.
6568         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6569         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6570         (sparc64nbsd_collect_fpregset): Likewise.
6571         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6572         (sparc64nbsd_gregmap): ... this.
6573         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6574         regmaps.
6575         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6576         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6577         (sparc64obsd_gregmap): ... this.
6578         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6579         regmaps.
6580         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6581         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6582         (sparc32nbsd_gregmap): ... this.
6583         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6584         regmaps.
6585
6586 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6587
6588         * score-tdep.c (score7_linux_gregset): New static regset
6589         structure.
6590         (score7_linux_regset_from_core_section): Remove dynamic regset
6591         allocation.
6592         (score_gdbarch_init): Drop allocation of tdep structure.
6593         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6594
6595 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6596
6597         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6598         regset structures.
6599         (am33_regset_from_core_section): Remove dynamic regset
6600         allocations.
6601
6602 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6603
6604         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6605         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6606         structures.
6607         (mips_linux_regset_from_core_section): Remove dynamic regset
6608         allocations.
6609         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6610         'gregset64', 'fpregset', and 'fpregset64'.
6611         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6612         deleted tdep fields.
6613
6614 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6615
6616         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6617         regset structures.
6618         (amd64_regset_from_core_section): Remove dynamic regset
6619         allocations.
6620         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6621         structure.
6622         (amd64obsd_regset_from_core_section): Remove dynamic regset
6623         allocation.
6624         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6625         Likewise.
6626         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6627         x86-common regset supply function.
6628         * i386-tdep.c (i386_collect_gregset): Make static.
6629         (i386_gregset): New global regset structure.
6630         (i386_fpregset, i386_xstateregset): New static regset structures.
6631         (i386_regset_from_core_section): Remove dynamic regset
6632         allocations.
6633         (i386_gdbarch_init): Remove initialization of tdep fields
6634         'gregset', 'fpregset', and 'xstateregset'.
6635         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6636         'fpregset', and 'xstateregset'.
6637         (i386_collect_gregset): Remove prototype.
6638         (i386_gregset): New declaration.
6639         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6640         structure.
6641         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6642         allocation.
6643
6644 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6645
6646         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6647         (arm_linux_vfpregset): New static regset structures.
6648         (arm_linux_regset_from_core_section): Remove dynamic allocation of
6649         regset structures.
6650         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6651         and 'vfpregset' fields.
6652
6653 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6654
6655         * aarch64-linux-tdep.c (aarch64_linux_gregset)
6656         (aarch64_linux_fpregset): New static regset structures.
6657         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6658         of regset structures.
6659         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6660         'fpregset' fields.
6661
6662 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6663
6664         * regset.h (struct regset): Remove gdbarch field.
6665         * regset.c (regset_alloc): Drop initialization of gdbarch field.
6666         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6667         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6668         Likewise.
6669         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6670         (ppc32_linux_fpregset, ppc32_linux_vrregset)
6671         (ppc32_linux_vsxregset): Likewise.
6672         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6673         via the regcache instead of the regset.
6674         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6675         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6676         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6677         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6678         Likewise.
6679
6680 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6681
6682         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6683         Constify structures.
6684         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6685         (alphanbsd_aout_gregset): Likewise.
6686         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6687         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6688         Likewise.
6689         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6690         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6691         Likewise.
6692         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6693         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6694         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6695         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6696         * m88k-tdep.c (m88k_gregset): Likewise.
6697         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6698         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6699         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6700         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6701         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6702         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6703         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6704         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6705         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6706         Likewise.
6707         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6708         * sh-tdep.h (sh_corefile_gregset): Likewise.
6709         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6710         * vax-tdep.c (vax_gregset): Likewise.
6711
6712 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6713
6714         Fix TLS access for -static -pthread.
6715         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6716         (try_thread_db_load_1): Initialize it.
6717         (thread_db_get_thread_local_address): Call it if LM is zero.
6718         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6719         * target.h (struct target_ops) (to_get_thread_local_address): Add
6720         load_module_addr comment.
6721
6722 2014-05-21  Pedro Alves  <palves@redhat.com>
6723
6724         * dcache.c (dcache_read_memory_partial): If reading the cache line
6725         fails, fallback to reading just the memory the caller wanted.
6726
6727 2014-05-20  Doug Evans  <dje@google.com>
6728
6729         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6730         instead of get_current_arch.
6731
6732 2014-05-20  Pedro Alves  <palves@redhat.com>
6733
6734         * NEWS: Mention that compare-sections now works with all targets.
6735
6736         * remote.c (PACKET_qCRC): New enum value.
6737         (remote_verify_memory): Don't send qCRC if the target has no
6738         execution.  Use packet_support/packet_ok.  If the target doesn't
6739         support the qCRC packet, fallback to a deep memory copy.
6740         (compare_sections_command): Say "target image" instead of "remote
6741         executable".
6742         (_initialize_remote): Add PACKET_qCRC to the list of config
6743         packets that have no associated command.  Extend comment.
6744         * target.c (simple_verify_memory, default_verify_memory): New
6745         function.
6746         * target.h (struct target_ops) <to_verify_memory>: Default to
6747         default_verify_memory.
6748         (simple_verify_memory): New declaration.
6749         * target-delegates.c: Regenerate.
6750
6751 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
6752
6753         * record-btrace.c (record_btrace_step_thread): Check for empty history.
6754
6755 2014-05-20  Hui Zhu  <hui@codesourcery.com>
6756             Yao Qi  <yao@codesourcery.com>
6757
6758         PR backtrace/16558
6759         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6760         and change address of sp and pc.
6761
6762 2014-05-19  Tom Tromey  <tromey@redhat.com>
6763
6764         * gdbtypes.c (rank_function): Use XNEWVEC.
6765         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6766
6767 2014-05-19  Doug Evans  <dje@google.com>
6768
6769         * dwarf2read.c (build_type_psymtabs_1): Renamed from
6770         build_type_unit_groups and moved closer to only caller.  Remove
6771         arguments.  All references updated.  Remove outdated .gdb_index
6772         comment.
6773         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6774         build_type_psymtabs_1.
6775
6776 2014-05-19  Doug Evans  <dje@google.com>
6777
6778         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6779         n_type_unit_groups, all_type_unit_groups.  All uses removed.
6780         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6781         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
6782         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
6783         (add_type_unit_group_to_table): Delete.
6784
6785 2014-05-19  Doug Evans  <dje@google.com>
6786
6787         * eval.c (evaluate_subexp_standard): Add some comments.
6788
6789 2014-05-17  Doug Evans  <xdje42@gmail.com>
6790
6791         * progspace.c (remove_program_space): Delete, unused.
6792         * progspace.h (remove_program_space): Ditto.
6793
6794 2014-05-17  Doug Evans  <xdje42@gmail.com>
6795
6796         * inferior.c (prune_inferiors): Fix comment.
6797         (remove_inferior_command): Call prune_program_spaces.
6798
6799 2014-05-16  Doug Evans  <dje@google.com>
6800
6801         New command line option -D.
6802         * NEWS: Mention it.
6803         * main.c (set_gdb_data_directory): New function.
6804         (captured_main): Recognize -D.  Flag error for --data-directory "".
6805         Call set_gdb_data_directory.
6806         (print_gdb_help): Print --data-directory, -D.
6807         * main.h (set_gdb_data_directory): Declare.
6808         * top.c (staged_gdb_datadir): New static global.
6809         (set_gdb_datadir): Call set_gdb_data_directory
6810         (show_gdb_datadir): New function.
6811         (init_main): Update init of data-directory parameter.
6812
6813 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
6814
6815         Import the "dirfd" gnulib module.
6816         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6817         * gnulib/aclocal.m4: Update.
6818         * gnulib/config.in: Update.
6819         * gnulib/configure: Update.
6820         * gnulib/import/Makefile.am: Update.
6821         * gnulib/import/Makefile.in: Update.
6822         * gnulib/import/dirfd.c: New.
6823         * gnulib/import/m4/dirfd.m4: New.
6824         * gnulib/import/m4/gnulib-cache.m4: Update.
6825         * gnulib/import/m4/gnulib-comp.m4: Update.
6826
6827 2014-05-16  Pierre Muller  <muller@sourceware.org>
6828             Yao Qi  <yao@codesourcery.com>
6829
6830         * valprint.c (print_wchar): Move the code on checking whether
6831         W is a printable wide char to the default branch of switch
6832         statement below.  Call wchar_printable instead of gdb_iswprint.
6833
6834 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
6835
6836         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6837         ldr.w and ldrd instructions.
6838
6839 2014-05-15  Doug Evans  <dje@google.com>
6840
6841         * dwarf2read.c (read_structure_type): Delete outdated comments.
6842
6843 2014-05-14  Tom Tromey  <tromey@redhat.com>
6844
6845         * macrocmd.c (print_macro_definition): Reindent.
6846
6847 2014-05-13  Doug Evans  <xdje42@gmail.com>
6848
6849         * python/py-cmd.c (cmdpy_completer): Add comment.
6850         (completers): Make const.
6851
6852 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
6853
6854         * infrun.c (resume): Remove should_resume (unused).  Move up
6855         declaration of resume_ptid.
6856
6857 2014-05-13  Tom Tromey  <tromey@redhat.com>
6858
6859         * language.h (unop_type_check): Remove.
6860         (binop_type_check): Don't declare.
6861
6862 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
6863
6864         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6865         call to regcache_raw_collect.
6866
6867 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6868
6869         * mi/mi-console.c (mi_console_raw_packet): Use the value from
6870         mi_console->quote as the quoting character.
6871
6872 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6873
6874         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6875
6876 2014-04-29  Tom Tromey  <tromey@redhat.com>
6877
6878         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6879         "show debug varobj".
6880
6881 2014-05-07  Kyle McMartin  <kyle@redhat.com>
6882
6883         Pushed by Joel Brobecker  <brobecker@adacore.com>.
6884         * aarch64-tdep.c (aarch64_software_single_step): New function.
6885         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6886         with aarch64_software_single_step.
6887
6888 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
6889
6890         GDB 7.7.1 released.
6891
6892 2014-05-05  Keith Seitz  <keiths@redhat.com>
6893
6894         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6895         variable or history value is successfully parsed.
6896
6897 2014-05-05  Yao Qi  <yao@codesourcery.com>
6898             Pedro Alves  <palves@redhat.com>
6899
6900         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6901         address of blocks that intersects the requested range.  Trim
6902         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6903         sections.
6904         * ctf.c (ctf_xfer_partial): Likewise.
6905
6906 2014-05-05  Yao Qi  <yao@codesourcery.com>
6907
6908         * printcmd.c (display_command): Remove the check to
6909         target_has_execution.
6910
6911 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
6912
6913         * ppcobsd-nat.c: Include "obsd-nat.h".
6914         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6915         add_target.
6916         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6917
6918 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6919
6920         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6921         and 16-bit signed and unsigned arguments.  Update comment.
6922         (stap_parse_probe_arguments): Extend code to handle such
6923         arguments.  Use warning instead of complaint to notify about
6924         unrecognized bitness.
6925
6926 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6927
6928         PR breakpoints/16889
6929         * stap-probe.c (stap_parse_probe_arguments): Simplify
6930         check for non-prefixed probes (i.e., probes whose
6931         arguments do not start with "N@").  Always set the
6932         argument type to a sane value.
6933
6934 2014-05-01  David Taylor  <dtaylor@emc.com>
6935
6936         * remote.c (compare_sections_command): Add -r option to compare
6937         all loadable read-only sections.
6938
6939 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
6940
6941         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6942         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6943         Update all callers.
6944         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6945         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6946         Remove unused CORE_ADDR argument.  Update all callers.
6947
6948 2014-04-29  Pedro Alves  <palves@redhat.com>
6949
6950         * remote.c (struct packet_config) <detect>: Extend comment.
6951         (add_packet_config_cmd): Don't set the config's detect or support
6952         fields here.
6953         (init_all_packet_configs): Also initialize the config's 'detect'
6954         field.
6955         (reset_all_packet_configs_support): New function.
6956         (remote_open_1): Call reset_all_packet_configs_support instead of
6957         init_all_packet_configs.
6958         (_initialize_remote): Initialize all packet configs.  Assert that
6959         all packets have an associated command, except a few known
6960         outliers.
6961
6962 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6963
6964         * dwarf2read.c (read_subrange_type): Handle dynamic
6965         DW_AT_lower_bound attributes.
6966
6967 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6968
6969         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6970         dynamic bounds before computing its upper bound.
6971         (ada_discrete_type_low_bound): Same as above with the lower bound.
6972
6973 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6974
6975         * dwarf2read.c (is_dynamic_type): Return true for dynamic
6976         range types.  Adjust the array handling implementation to
6977         take advantage of this change.
6978         (resolve_dynamic_range): New function, mostly extracted from
6979         resolve_dynamic_bounds.
6980         (resolve_dynamic_array): New function, mostly extracted from
6981         resolve_dynamic_bounds.
6982         (resolve_dynamic_bounds): Delete.
6983         (resolve_dynamic_type): Reimplement.  Add handling of
6984         TYPE_CODE_RANGE types.
6985
6986 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6987
6988         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6989         handling of parallel ___XA types.
6990
6991 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6992
6993         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6994         unnecessary second call to static_unwrap_type.
6995
6996 2014-04-27  Hui Zhu  <hui@codesourcery.com>
6997
6998         * stack.c (print_frame_info): Call do_gdb_disassembly with
6999         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7000
7001 2014-04-26  Doug Evans  <xdje42@gmail.com>
7002
7003         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7004
7005 2014-04-25  Pedro Alves  <palves@redhat.com>
7006
7007         PR server/16255
7008         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7009         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
7010         and newline from built string.
7011         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7012         (linux_ptrace_attach_fail_reason): ... this.
7013         * linux-nat.c (linux_nat_attach): Adjust to use
7014         linux_ptrace_attach_fail_reason.
7015
7016 2014-04-25  Pedro Alves  <palves@redhat.com>
7017
7018         * remote.c (struct remote_state): Remove multi_process_aware,
7019         non_stop_aware, cond_tracepoints, cond_breakpoints,
7020         breakpoint_commands, fast_tracepoints, static_tracepoints,
7021         install_in_trace, disconnected_tracing,
7022         enable_disable_tracepoints, string_tracing, and
7023         augmented_libraries_svr4_read fields.
7024         (remote_multi_process_p): Move further below in the file.
7025         (struct packet_config): Add comments.
7026         (update_packet_config): Delete function.
7027         (show_packet_config_cmd): Use packet_config_support.
7028         (add_packet_config_cmd): Use NULL as set callback.
7029         (packet_ok): "set remote foo-packet"-style commands no longer
7030         change config->supported -- adjust.
7031         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7032         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7033         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7034         (PACKET_QNonStop, PACKET_multiprocess_feature)
7035         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7036         (PACKET_DisconnectedTracing_feature)
7037         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7038         (set_remote_protocol_packet_cmd): Delete function.
7039         (packet_config_support, packet_support): New functions.
7040         (set_remote_protocol_Z_packet_cmd): Don't call
7041         update_packet_config.
7042         (remote_query_attached, remote_pass_signals)
7043         (remote_program_signals, remote_threads_info)
7044         (remote_threads_extra_info, remote_start_remote): Use
7045         packet_support.
7046         (remote_start_remote): Use packet_config_support and
7047         packet_support.
7048         (init_all_packet_configs): Set all packets to unknown support,
7049         instead of calling update_packet_config.
7050         (remote_check_symbols): Use packet_support.
7051         (remote_supported_packet): Unconditionally set the packet config's
7052         support status.
7053         (remote_multi_process_feature, remote_non_stop_feature)
7054         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7055         (remote_breakpoint_commands_feature)
7056         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7057         (remote_install_in_trace_feature)
7058         (remote_disconnected_tracing_feature)
7059         (remote_enable_disable_tracepoint_feature)
7060         (remote_string_tracing_feature)
7061         (remote_augmented_libraries_svr4_read_feature): Delete functions.
7062         (remote_protocol_features): Adjust to use remote_supported_packet
7063         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7064         "ConditionalTracepoints", "ConditionalBreakpoints",
7065         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7066         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7067         "EnableDisableTracepoints", and "tracenz".
7068         (remote_query_supported): Use packet_support.
7069         (remote_open_1): Adjust.
7070         (extended_remote_attach_1): Use packet_support.  Switch on the
7071         result of packet_ok instead of checking whether the packet ended
7072         up disabled.
7073         (remote_vcont_resume): Use packet_support.
7074         (remote_resume, remote_stop_ns, fetch_register_using_p)
7075         (remote_prepare_to_store, store_register_using_P)
7076         (check_binary_download, remote_write_bytes): Use packet_support.
7077         (remote_vkill): Use packet_support.  Switch on the result of
7078         packet_ok instead of checking whether the packet ended up
7079         disabled.
7080         (extended_remote_supports_disable_randomization): Use
7081         packet_support.
7082         (extended_remote_run): Switch on the result of packet_ok instead
7083         of checking whether the packet ended up disabled.
7084         (remote_insert_breakpoint, remote_remove_breakpoint)
7085         (remote_insert_watchpoint, remote_remove_watchpoint)
7086         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7087         packet_support.
7088         (remote_search_memory): Use packet_config_support.
7089         (remote_get_thread_local_address, remote_get_tib_address)
7090         (remote_hostio_send_command, remote_can_execute_reverse): Use
7091         packet_support.
7092         (remote_supports_cond_tracepoints)
7093         (remote_supports_cond_breakpoints)
7094         (remote_supports_fast_tracepoints)
7095         (remote_supports_static_tracepoints)
7096         (remote_supports_install_in_trace)
7097         (remote_supports_enable_disable_tracepoint)
7098         (remote_supports_string_tracing)
7099         (remote_can_run_breakpoint_commands): Rewrite, checking whether
7100         the packet config says the feature is enabled or disabled.
7101         (remote_download_tracepoint, remote_trace_set_readonly_regions)
7102         (remote_get_trace_status): Use packet_support.
7103         (remote_set_disconnected_tracing): Adjust to check whether the
7104         feature is enabled with packet_support.
7105         (remote_set_trace_buffer_size, remote_use_agent)
7106         (remote_can_use_agent, remote_supports_btrace): Use
7107         packet_support.
7108         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7109         Use packet_config_support.
7110         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7111         the packet config says the feature is enabled or disabled.
7112         (set_range_stepping): Use packet_support.
7113
7114 2014-04-25  Tom Tromey  <tromey@redhat.com>
7115
7116         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7117         argument.
7118
7119 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
7120
7121         * NEWS: Mention support for C99 variable length arrays.
7122
7123 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
7124
7125         * ada-lang.c (standard_exc): Expand introductory comment.
7126
7127 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
7128             Walfred Tedeschi  <walfred.tedeschi@intel.com>
7129
7130         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7131         AVX512 registers.
7132         (amd64_linux_read_description): Add code to handle AVX512 xstate
7133         mask and return respective tdesc.
7134         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7135         and features/i386/x32-avx512-linux.c.
7136         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7137         (amd64_linux_core_read_description): Add code to handle AVX512
7138         xstate mask and return respective tdesc.
7139         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7140         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7141         calculation.
7142         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7143         (tdesc_amd64_avx512_linux): New prototype.
7144         (tdesc_x32_avx512_linux): Likewise.
7145         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7146         features/i386/x32-avx512.c.
7147         (amd64_ymm_avx512_names): New register names for pseudo
7148         registers YMM16-31.
7149         (amd64_ymmh_avx512_names): New register names for raw registers
7150         YMMH16-31.
7151         (amd64_k_names): New register names for K registers.
7152         (amd64_zmmh_names): New register names for ZMM raw registers.
7153         (amd64_zmm_names): New registers names for ZMM pseudo registers.
7154         (amd64_xmm_avx512_names): New register names for XMM16-31
7155         registers.
7156         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7157         registers.
7158         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7159         if feature is present.
7160         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7161         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7162         (AMD64_NUM_REGS): Adjust to new number of registers.
7163         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7164         registers supplied via XSTATE by AVX512 registers.
7165         (i386_linux_read_description): Add case for AVX512.
7166         * i386-linux-tdep.c: Include i386-avx512-linux.c.
7167         (i386_linux_gregset_reg_offset): Add AVX512 registers.
7168         (i386_linux_core_read_description): Add case for AVX512.
7169         (i386_linux_init_abi): Install supported register note section
7170         for AVX512.
7171         (_initialize_i386_linux_tdep): Add call to tdesc init function for
7172         AVX512.
7173         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7174         registers to be number of zmm7h + 1.
7175         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7176         * i386-tdep.c: Include features/i386/i386-avx512.c.
7177         (i386_zmm_names): Add ZMM pseudo register names array.
7178         (i386_zmmh_names): Add ZMM raw register names array.
7179         (i386_k_names): Add K raw register names array.
7180         (num_lower_zmm_regs): Add constant for the number of lower ZMM
7181         registers. AVX512 has 16 more ZMM registers than there are YMM
7182         registers.
7183         (i386_zmmh_regnum_p): Add function to look up register number of
7184         ZMM raw registers.
7185         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7186         (i386_k_regnum_p): Likewise for K raw registers.
7187         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7188         registers added by AVX512.
7189         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7190         registers added by AVX512.
7191         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7192         added by AVX512.
7193         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7194         (i386_pseudo_register_name): Add ZMM pseudo registers.
7195         (i386_zmm_type): Construct and return vector registers type for ZMM
7196         registers.
7197         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7198         ZMM0-31 pseudo registers and K registers.
7199         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7200         and YMM16-31 registers from register cache.
7201         (i386_pseudo_register_write): Add code to write  K, ZMM and
7202         YMM16-31 registers.
7203         (i386_register_reggroup_p): Add code to include/exclude AVX512
7204         registers in/from respective register groups.
7205         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7206         registers if feature is present in xcr0.
7207         (i386_gdbarch_init): Add code to initialize AVX512 feature
7208         variables in tdep structure, wire in pseudo registers and call
7209         initialize_tdesc_i386_avx512.
7210         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7211         variables.
7212         (i386_regnum): Add AVX512 registers.
7213         (I386_SSE_NUM_REGS): New define for number of SSE registers.
7214         (I386_AVX_NUM_REGS): Likewise for AVX registers.
7215         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7216         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7217         512 bits wide.
7218         (i386_xmm_avx512_regnum_p): New prototype for register look up.
7219         (i386_ymm_avx512_regnum_p): Likewise.
7220         (i386_k_regnum_p): Likewise.
7221         (i386_zmm_regnum_p): Likewise.
7222         (i386_zmmh_regnum_p): Likewise.
7223         * i387-tdep.c : Update year in copyright notice.
7224         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7225         XSAVE buffer.
7226         (XSAVE_YMM_AVX512_ADDR): New macro.
7227         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7228         XSAVE buffer.
7229         (XSAVE_XMM_AVX512_ADDR): New macro.
7230         (xsave_avx512_k_offset): New table for K register offsets in
7231         XSAVE buffer.
7232         (XSAVE_AVX512_K_ADDR): New macro.
7233         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7234         in XSAVE buffer.
7235         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7236         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7237         buffer.
7238         (i387_collect_xsave): Add code to collect AVX512 registers from
7239         XSAVE buffer.
7240         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7241         of XMM16-31 registers.
7242         (I387_NUM_K_REGS): New define for number of K registers.
7243         (I387_K0_REGNUM): New define for K0 register number.
7244         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7245         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7246         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7247         registers.
7248         (I387_YMM16H_REGNUM): New define for YMM16H register number.
7249         (I387_XMM16_REGNUM): New define for XMM16 register number.
7250         (I387_YMM0_REGNUM): New define for YMM0 register number.
7251         (I387_KEND_REGNUM): New define for last K register number.
7252         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7253         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7254         number.
7255         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7256         number.
7257         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7258         size.
7259         * features/Makefile: Add AVX512 related files.
7260         * features/i386/32bit-avx512.xml: New file.
7261         * features/i386/64bit-avx512.xml: Likewise.
7262         * features/i386/amd64-avx512-linux.c: Likewise.
7263         * features/i386/amd64-avx512-linux.xml: Likewise.
7264         * features/i386/amd64-avx512.c: Likewise.
7265         * features/i386/amd64-avx512.xml: Likewise.
7266         * features/i386/i386-avx512-linux.c: Likewise.
7267         * features/i386/i386-avx512-linux.xml: Likewise.
7268         * features/i386/i386-avx512.c: Likewise.
7269         * features/i386/i386-avx512.xml: Likewise.
7270         * features/i386/x32-avx512-linux.c: Likewise.
7271         * features/i386/x32-avx512-linux.xml: Likewise.
7272         * features/i386/x32-avx512.c: Likewise.
7273         * features/i386/x32-avx512.xml: Likewise.
7274         * regformats/i386/amd64-avx512-linux.dat: New file.
7275         * regformats/i386/amd64-avx512.dat: Likewise.
7276         * regformats/i386/i386-avx512-linux.dat: Likewise.
7277         * regformats/i386/i386-avx512.dat: Likewise.
7278         * regformats/i386/x32-avx512-linux.dat: Likewise.
7279         * regformats/i386/x32-avx512.dat: Likewise.
7280         * NEWS: Add note about new support for AVX512.
7281
7282
7283 2014-04-23  Pedro Alves  <palves@redhat.com>
7284
7285         * breakpoint.c (insert_bp_location): Tolerate errors if the
7286         breakpoint is set in a user-loaded objfile.
7287         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
7288         location is marked shlib_disabled.  If the breakpoint is set in a
7289         user-loaded objfile is a GDB-side memory breakpoint, validate it
7290         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
7291         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
7292         flag.
7293         * mem-break.c (memory_validate_breakpoint): New function.
7294         * objfiles.c (userloaded_objfile_contains_address_p): New
7295         function.
7296         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7297         * target.h (memory_validate_breakpoint): New declaration.
7298
7299 2014-04-23  Pedro Alves  <palves@redhat.com>
7300
7301         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7302         the breakpoint is set in a shared library, only suppress
7303         errors for software breakpoints, not hardware breakpoints.
7304
7305 2014-04-22  Pedro Alves  <palves@redhat.com>
7306
7307         * infrun.c (schedlock_applies): New function, factored out from
7308         find_thread_needs_step_over.
7309         (find_thread_needs_step_over): Use it.
7310         (switch_back_to_stepped_thread): Always clear trap_expected if the
7311         step over is finished.  Return early if scheduler locking applies.
7312         Look for the stepping thread and a potential step-over thread with
7313         a single loop.
7314         (currently_stepping_or_nexting_callback): Delete.
7315
7316 2014-04-22  Nick Clifton  <nickc@redhat.com>
7317
7318         * NEWS: Mention that ARM sim now supports tracing.
7319
7320 2014-04-22  Yao Qi  <yao@codesourcery.com>
7321
7322         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7323         to ...
7324         * tracefile.c (tracefile_fetch_registers): ... it.  New
7325         function.
7326         * tracefile.h (tracefile_fetch_registers): Declare.
7327         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
7328         tracefile_fetch_registers.
7329
7330 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
7331
7332         PR gdb/14018
7333         * windows-nat.c (thread_rec): Don't display a warning when
7334         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
7335         fails for any reason, set th->suspended to -1, so that we don't
7336         try to resume such a thread.  Also, don't return NULL in these
7337         cases, to avoid completely ruin the session due to "PC register is
7338         not available" error.
7339         (do_windows_fetch_inferior_registers): Check errors in
7340         GetThreadContext call.
7341         (windows_continue): Accept an additional argument KILLED; if not
7342         zero, ignore errors in the SetThreadContext call, since the
7343         inferior was killed and is shutting down.
7344         (windows_resume, get_windows_debug_event)
7345         (windows_create_inferior, windows_mourn_inferior)
7346         (windows_kill_inferior): All callers of windows_continue changed
7347         to adjust to its new calling sequence.
7348
7349 2014-04-19  Yao Qi  <yao@codesourcery.com>
7350
7351         * ctf.c (ctf_open): Call post_create_inferior.
7352
7353 2014-04-19  Yao Qi  <yao@codesourcery.com>
7354
7355         * ctf.c (handle_id): New static variable.
7356         (ctf_open_dir): Get handle_id from bt_context_add_trace return
7357         value.  Get the declaration of event "register" and get length
7358         of field "contents".
7359
7360 2014-04-19  Yao Qi  <yao@codesourcery.com>
7361
7362         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7363
7364 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
7365
7366         * valops.c (oload_method_static): Remove unnecessary argument
7367         METHOD.  Update all callers.
7368
7369 2014-04-18  Pedro alves  <palves@redhat.com>
7370             Tom Tromey  <tromey@redhat.com>
7371
7372         PR backtrace/15558
7373         * frame.c (get_prev_frame_1): Rename to ...
7374         (get_prev_frame_always): ... this, and make extern.  Adjust.
7375         (skip_artificial_frames): Use get_prev_frame_always.
7376         (frame_unwind_caller_id, frame_pop, get_prev_frame)
7377         (get_frame_unwind_stop_reason): Adjust to rename.
7378         * frame.h (get_prev_frame_always): Declare.
7379         * inline-frame.c: Include frame.h.
7380         (inline_frame_this_id): Use get_prev_frame_always.
7381
7382 2014-04-18  Tristan Gingold  <gingold@adacore.com>
7383
7384         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7385         code by using bfd_mach_o_get_base_address.
7386
7387 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7388
7389         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7390         (spu_ax_pseudo_register_collect): New function.
7391         (spu_ax_pseudo_register_push_stack): Likewise.
7392         (spu_dwarf_reg_to_regnum): Likewise.
7393         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
7394
7395 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7396
7397         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7398         Replace FRAME argument with FRAME_ID.
7399         * gdbarch.c, gdbarch.h: Regenerate.
7400         * findvar.c (default_value_from_register): Add GDBARCH argument;
7401         replace FRAME by FRAME_ID.  No longer call get_frame_id.
7402         (value_from_register): Update call to gdbarch_value_from_register.
7403         * value.h (default_value_from_register): Update prototype.
7404         * s390-linux-tdep.c (s390_value_from_register): Update interface
7405         and call to default_value_from_register.
7406         * spu-tdep.c (spu_value_from_register): Likewise.
7407
7408         * findvar.c (address_from_register): Remove TYPE argument.
7409         Do not call value_from_register; use gdbarch_value_from_register
7410         with null_frame_id instead.
7411         * value.h (address_from_register): Update prototype.
7412         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7413         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7414         address_from_register interface change.
7415
7416 2014-04-17  Yao Qi  <yao@codesourcery.com>
7417
7418         * gdbtypes.h: Update comments to link to types and macros'
7419         definitions.
7420
7421 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
7422
7423         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7424
7425 2014-04-16  Keith Seitz  <keiths@redhat.com>
7426
7427         PR gdb/15827
7428         * dwarf2read.c (skip_one_die): Check that all relative-offset
7429         sibling DIEs fall within range of the current reader's buffer.
7430         (read_partial_die): Likewise.
7431
7432 2014-04-16  Keith Seitz  <keiths@redhat.com>
7433
7434         PR c++/16597
7435         * cp-namespace.c (lookup_symbol_file): If the type name of
7436         `this' is NULL, return immediately.
7437
7438 2014-04-14  Keith Seitz  <keiths@redhat.com>
7439
7440         PR c++/16253
7441         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7442         from symbol_matches_domain in symtab.c. All local callers
7443         of symbol_matches_domain updated.
7444         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7445         search STRUCT_DOMAIN.
7446         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7447         independently.  standard_lookup will do that automatically.
7448         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7449         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7450         (cp_lookup_symbol_in_namespace): Likewise.
7451         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7452         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7453         may return a STRUCT_DOMAIN match.
7454         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7455         * cp-support.c: Include language.h.
7456         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7457         VAR_DOMAIN.
7458         * psymtab.c (match_partial_symbol): Compare the requested
7459         domain with the symbol's domain directly.
7460         (lookup_partial_symbol): Likewise.
7461         * symtab.c (lookup_symbol_in_language): Explain when/why
7462         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7463         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7464         appropriate languages.
7465         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7466         and moved to ada-lang.c
7467         (lookup_block_symbol): Explain that this function only returns
7468         symbol matching the requested DOMAIN.
7469         Compare the requested domain with the symbol's domain directly.
7470         (iterate_over_symbols): Compare the requested domain with the
7471         symbol's domain directly.
7472         * symtab.h (symbol_matches_domain): Remove.
7473
7474 2014-04-14  Tom Tromey  <tromey@redhat.com>
7475
7476         PR c++/15246:
7477         * c-exp.y (type_aggregate_p): New function.
7478         (qualified_name, classify_inner_name): Use it.
7479         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7480         and TYPE_TARGET_TYPE of an enum type.
7481         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7482         an enum type.
7483         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7484         handle TYPE_DECLARED_CLASS.
7485         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7486         types.
7487         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7488         * valops.c (enum_constant_from_type): New function.
7489         (value_aggregate_elt): Use it.
7490         * cp-namespace.c (cp_lookup_nested_symbol): Handle
7491         TYPE_CODE_ENUM.
7492
7493 2014-04-14  Tom Tromey  <tromey@redhat.com>
7494
7495         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7496         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7497         const.
7498         * value.h (value_aggregate_elt): Update.
7499
7500 2014-04-14  Tom Tromey  <tromey@redhat.com>
7501
7502         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7503
7504 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7505
7506         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7507         (evaluate_subexp_standard): Pass noside argument.
7508         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7509         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7510         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7511         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7512         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7513
7514 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7515
7516         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7517         points to a constant blob.
7518
7519 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7520
7521         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7522         property and store it as the high bound and flag the range accordingly.
7523         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7524         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7525         * gdbtypes.h (enum range_flags): New enum.
7526         (struct range_bounds): Add flags member.
7527
7528 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7529
7530         * c-typeprint.c (c_type_print_varspec_suffix): Added
7531         check for not yet resolved high bound. If unresolved, print
7532         "variable length" string to the console instead of random
7533         length.
7534
7535 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7536
7537         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7538         value.
7539         (ada_template_to_fixed_record_type_1): Likewise.
7540         (ada_to_fixed_type_1): Likewise.
7541         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7542         (cp_print_value): Likewise.
7543         * d-valprint.c (dynamic_array_type): Likewise.
7544         * findvar.c (address_of_variable): Likewise.
7545         * jv-valprint.c (java_value_print): Likewise.
7546         * valops.c (value_ind): Likewise.
7547         * value.c (coerce_ref): Likewise.
7548
7549 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7550
7551         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7552         value and retrieve the dynamic type size.
7553
7554 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7555
7556         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7557         passed to sizeof is dynamic evaluate the argument to compute the length.
7558
7559 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7560             Joel Brobecker  <brobecker@adacore.com>
7561
7562         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7563         (dwarf2_evaluate_property): New function.
7564         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7565         * dwarf2read.c (attr_to_dynamic_prop): New function.
7566         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7567         attribute.
7568         * gdbtypes.c: Include dwarf2loc.h.
7569         (is_dynamic_type): New function.
7570         (resolve_dynamic_type): New function.
7571         (resolve_dynamic_bounds): New function.
7572         (get_type_length): New function.
7573         (check_typedef): Use get_type_length to compute type length.
7574         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7575         (TYPE_LOW_BOUND_KIND): New macro.
7576         (is_dynamic_type): New function prototype.
7577         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7578         to resolve dynamic properties of the type. Update comment.
7579         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7580
7581 2014-04-14  Richard Henderson  <rth@redhat.com>
7582
7583         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7584
7585 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
7586             Doug Evans  <xdje42@gmail.com>
7587
7588         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7589         dereference TYPE_CODE_REF values.
7590
7591 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
7592
7593         Revert the following changes due to regressions:
7594
7595         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7596         (dwarf2_evaluate_property): New function.
7597         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7598         * dwarf2read.c (attr_to_dynamic_prop): New function.
7599         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7600         attribute.
7601         * gdbtypes.c: Include dwarf2loc.h.
7602         (is_dynamic_type): New function.
7603         (resolve_dynamic_type): New function.
7604         (resolve_dynamic_bounds): New function.
7605         (get_type_length): New function.
7606         (check_typedef): Use get_type_length to compute type length.
7607         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7608         (TYPE_LOW_BOUND_KIND): New macro.
7609         (is_dynamic_type): New function prototype.
7610         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7611         to resolve dynamic properties of the type. Update comment.
7612         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7613
7614         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7615         passed to sizeof is dynamic evaluate the argument to compute the length.
7616
7617         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7618         value and retrieve the dynamic type size.
7619
7620         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7621         (ada_template_to_fixed_record_type_1): Likewise.
7622         (ada_to_fixed_type_1): Likewise.
7623         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7624         (cp_print_value): Likewise.
7625         * d-valprint.c (dynamic_array_type): Likewise.
7626         * eval.c (evaluate_subexp_with_coercion): Likewise.
7627         * findvar.c (address_of_variable): Likewise.
7628         * jv-valprint.c (java_value_print): Likewise.
7629         * valops.c (value_ind): Likewise.
7630         * value.c (coerce_ref): Likewise.
7631
7632         * c-typeprint.c (c_type_print_varspec_suffix): Added
7633         check for not yet resolved high bound. If unresolved, print
7634         "variable length" string to the console instead of random
7635         length.
7636
7637         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7638         property and store it as the high bound and flag the range accordingly.
7639         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7640         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7641         * gdbtypes.h (enum range_flags): New enum.
7642         (struct range_bounds): Add flags member.
7643
7644         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7645         points to a constant blob.
7646
7647         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7648         (evaluate_subexp_standard): Pass noside argument.
7649         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7650         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7651         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7652         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7653         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7654
7655 2014-04-11  Keith Seitz  <keiths@redhat.com>
7656
7657         PR c++/16675
7658         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7659         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7660         reference types.
7661
7662 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7663
7664         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7665         (evaluate_subexp_standard): Pass noside argument.
7666         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7667         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7668         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7669         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7670         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7671
7672 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7673
7674         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7675         points to a constant blob.
7676
7677 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7678
7679         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7680         property and store it as the high bound and flag the range accordingly.
7681         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7682         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7683         * gdbtypes.h (enum range_flags): New enum.
7684         (struct range_bounds): Add flags member.
7685
7686 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7687
7688         * c-typeprint.c (c_type_print_varspec_suffix): Added
7689         check for not yet resolved high bound. If unresolved, print
7690         "variable length" string to the console instead of random
7691         length.
7692
7693 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7694
7695         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7696         (ada_template_to_fixed_record_type_1): Likewise.
7697         (ada_to_fixed_type_1): Likewise.
7698         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7699         (cp_print_value): Likewise.
7700         * d-valprint.c (dynamic_array_type): Likewise.
7701         * eval.c (evaluate_subexp_with_coercion): Likewise.
7702         * findvar.c (address_of_variable): Likewise.
7703         * jv-valprint.c (java_value_print): Likewise.
7704         * valops.c (value_ind): Likewise.
7705         * value.c (coerce_ref): Likewise.
7706
7707 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7708
7709         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7710         value and retrieve the dynamic type size.
7711
7712 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7713
7714         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7715         passed to sizeof is dynamic evaluate the argument to compute the length.
7716
7717 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7718
7719         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7720         (dwarf2_evaluate_property): New function.
7721         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7722         * dwarf2read.c (attr_to_dynamic_prop): New function.
7723         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7724         attribute.
7725         * gdbtypes.c: Include dwarf2loc.h.
7726         (is_dynamic_type): New function.
7727         (resolve_dynamic_type): New function.
7728         (resolve_dynamic_bounds): New function.
7729         (get_type_length): New function.
7730         (check_typedef): Use get_type_length to compute type length.
7731         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7732         (TYPE_LOW_BOUND_KIND): New macro.
7733         (is_dynamic_type): New function prototype.
7734         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7735         to resolve dynamic properties of the type. Update comment.
7736         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7737
7738 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7739
7740         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7741         declaring high/low bounds and change uses accordingly. Call
7742         create_range_type instead of create_static_range_type.
7743         * gdbtypes.c (create_range_type): New function.
7744         (create_range_type): Convert bounds into struct bound_prop and pass
7745         them to create_range_type.
7746         * gdbtypes.h (struct bound_prop): New struct.
7747         (create_range_type): New function prototype.
7748         (struct range_bounds): Use struct bound_prop instead of LONGEST for
7749         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7750         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7751         part of the bound.
7752         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7753
7754 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7755
7756         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7757         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7758         * ada-lang.c: All uses of create_range_type updated.
7759         * coffread.c: All uses of create_range_type updated.
7760         * dwarf2read.c: All uses of create_range_type updated.
7761         * f-exp.y: All uses of create_range_type updated.
7762         * m2-valprint.c: All uses of create_range_type updated.
7763         * mdebugread.c: All uses of create_range_type updated.
7764         * stabsread.c: All uses of create_range_type updated.
7765         * valops.c: All uses of create_range_type updated.
7766         * valprint.c: All uses of create_range_type updated.
7767
7768 2014-04-10  Pedro Alves  <palves@redhat.com>
7769
7770         * breakpoint.c (single_step_breakpoints)
7771         (single_step_gdbarch): Move up in the file.
7772         (one_breakpoint_xfer_memory): New function, factored out from ...
7773         (breakpoint_xfer_memory): ... here.  Also process single-step
7774         breakpoints.
7775
7776 2014-04-09  Tristan Gingold  <gingold@adacore.com>
7777
7778         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7779         comments.
7780         (darwin_decode_exception_message): Free port only after use.
7781
7782 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
7783
7784         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7785         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7786         when setting the size of call_length.
7787
7788 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
7789
7790         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7791         dereference TYPE_CODE_REF values.
7792
7793 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
7794
7795         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7796         end of warning message.
7797
7798 2014-04-03  Doug Evans  <dje@google.com>
7799
7800         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7801         of stub_comp_unit_die, stub_comp_dir is non-NULL.
7802
7803 2014-04-02  Alan Modra  <amodra@gmail.com>
7804
7805         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7806         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
7807         (struct symbol_file_add_from_memory_args): Add size field.
7808         (find_vdso_size): New function.
7809         (add_vsyscall_page): Attempt to find vdso size.
7810
7811 2014-04-01  Doug Evans  <dje@google.com>
7812
7813         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7814
7815 2014-04-01  Tristan Gingold  <gingold@adacore.com>
7816
7817         * darwin-nat.c (darwin_encode_reply): Add prototype.
7818         (darwin_decode_exception_message): Reply to unknown inferiors.
7819         (darwin_decode_message): Handle message by id.  Ignore message
7820         to unknown inferior.
7821         (darwin_wait): Discard unknown messages, add debug trace.
7822
7823 2014-03-31  Doug Evans  <dje@google.com>
7824
7825         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7826         comp_dir_string.
7827
7828 2014-03-31  Doug Evans  <dje@google.com>
7829
7830         New option "set print symbol-loading".
7831         * NEWS: Mention it.
7832         * solib.c (solib_read_symbols): Only print symbol loading messages
7833         if requested.
7834         (solib_add): If symbol loading is in "brief" mode, notify user
7835         symbols are being loaded.
7836         (reload_shared_libraries_1): Ditto.
7837         * symfile.c (print_symbol_loading_off): New static global.
7838         (print_symbol_loading_brief): New static global.
7839         (print_symbol_loading_full): New static global.
7840         (print_symbol_loading_enums): New static global.
7841         (print_symbol_loading): New static global.
7842         (print_symbol_loading_p): New function.
7843         (symbol_file_add_with_addrs): Only print symbol loading messages
7844         if requested.
7845         (_initialize_symfile): Register "print symbol-loading" set/show
7846         command.
7847         * symfile.h (print_symbol_loading_p): Declare.
7848
7849 2014-03-30  Doug Evans  <xdje42@gmail.com>
7850
7851         * infrun.c (set_last_target_status): New function.
7852         (handle_inferior_event): Call it.
7853
7854 2014-03-30  Doug Evans  <xdje42@gmail.com>
7855
7856         * inferior.h (enum stop_kind): Improve comment.
7857
7858 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
7859
7860         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7861         a reference, strip the reference layer before calling
7862         the lang_ops value_has_mutated callback.
7863
7864 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7865
7866         Remove some globals from our parser.
7867         * language.c (unk_lang_parser): Add "struct parser_state"
7868         argument.
7869         * language.h (struct language_defn) <la_parser>: Likewise.
7870         * parse.c (expout, expout_size, expout_ptr): Remove variables.
7871         (initialize_expout): Add "struct parser_state" argument.
7872         Rewrite function to use the parser state.
7873         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7874         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7875         write_exp_elt_longcst, write_exp_elt_dblcst,
7876         write_exp_elt_decfloatcst, write_exp_elt_type,
7877         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7878         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7879         write_dollar_variable): Likewise.
7880         (parse_exp_in_context_1): Use parser state.
7881         (insert_type_address_space): Add "struct parser_state" argument.
7882         Use parser state.
7883         (increase_expout_size): New function.
7884         * parser-defs.h: Forward declare "struct language_defn" and
7885         "struct parser_state".
7886         (expout, expout_size, expout_ptr): Remove extern declarations.
7887         (parse_gdbarch, parse_language): Rewrite macro declarations to
7888         accept the parser state.
7889         (struct parser_state): New struct.
7890         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7891         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7892         write_exp_elt_decfloatcst, write_exp_elt_type,
7893         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7894         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7895         write_exp_msymbol, write_dollar_variable,
7896         mark_struct_expression, insert_type_address_space): Add "struct
7897         parser_state" argument.
7898         (increase_expout_size): New function.
7899         * utils.c (do_clear_parser_state): New function.
7900         (make_cleanup_clear_parser_state): Likewise.
7901         * utils.h (make_cleanup_clear_parser_state): New function
7902         prototype.
7903         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7904         Update calls to write_exp* in order to pass the parser state.
7905         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7906         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7907         (i386_stap_parse_special_token_three_arg_disp): Likewise.
7908         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7909         * stap-probe.c (stap_parse_register_operand): Likewise.
7910         (stap_parse_single_operand): Likewise.
7911         (stap_parse_argument_1): Likewise.
7912         (stap_parse_argument): Use parser state.
7913         * stap-probe.h: Include "parser-defs.h".
7914         (struct stap_parse_info) <pstate>: New field.
7915         * c-exp.y (parse_type): Rewrite to use parser state.
7916         (yyparse): Redefine to c_parse_internal.
7917         (pstate): New global variable.
7918         (parse_number): Add "struct parser_state" argument.
7919         (write_destructor_name): Likewise.
7920         (type_exp): Update calls to write_exp* and similars in order to
7921         use parser state.
7922         (exp1, exp, variable, qualified_name, space_identifier,
7923         typename, typebase): Likewise.
7924         (write_destructor_name, parse_number, lex_one_token,
7925         classify_name, classify_inner_name, c_parse): Add "struct
7926         parser_state" argument.  Update function to use parser state.
7927         * c-lang.h: Forward declare "struct parser_state".
7928         (c_parse): Add "struct parser_state" argument.
7929         * ada-exp.y (parse_type): Rewrite macro to use parser state.
7930         (yyparse): Redefine macro to ada_parse_internal.
7931         (pstate): New variable.
7932         (write_int, write_object_renaming, write_var_or_type,
7933         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7934         type_int, type_long, type_long_long, type_float, type_double,
7935         type_long_double, type_char, type_boolean, type_system_address):
7936         Add "struct parser_state" argument.
7937         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7938         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7939         var_or_type, aggregate, aggregate_component_list,
7940         positional_list, others, component_group,
7941         component_associations): Update calls to write_exp* and similar
7942         functions in order to use parser state.
7943         (ada_parse, write_var_from_sym, write_int,
7944         write_exp_op_with_string, write_object_renaming,
7945         find_primitive_type, write_selectors, write_ambiguous_var,
7946         write_var_or_type, write_name_assoc, type_int, type_long,
7947         type_long_long, type_float, type_double, type_long_double,
7948         type_char, type_boolean, type_system_address): Add "struct
7949         parser_state" argument.  Adjust function to use parser state.
7950         * ada-lang.c (parse): Likewise.
7951         * ada-lang.h: Forward declare "struct parser_state".
7952         (ada_parse): Add "struct parser_state" argument.
7953         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
7954         calls to both functions.
7955         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7956         parser state.
7957         (yyparse): Redefine macro to f_parse_internal.
7958         (pstate): New variable.
7959         (parse_number): Add "struct parser_state" argument.
7960         (type_exp, exp, subrange, typebase): Update calls to write_exp*
7961         and similars in order to use parser state.
7962         (parse_number): Adjust code to use parser state.
7963         (yylex): Likewise.
7964         (f_parse): New function.
7965         * f-lang.h: Forward declare "struct parser_state".
7966         (f_parse): Add "struct parser_state" argument.
7967         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7968         parser state.
7969         (yyparse): Redefine macro for java_parse_internal.
7970         (pstate): New variable.
7971         (push_expression_name, push_expression_name, insert_exp): Add
7972         "struct parser_state" argument.
7973         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7974         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7975         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7976         PostIncrementExpression, PostDecrementExpression,
7977         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7978         UnaryExpressionNotPlusMinus, CastExpression,
7979         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7980         RelationalExpression, EqualityExpression, AndExpression,
7981         ExclusiveOrExpression, InclusiveOrExpression,
7982         ConditionalAndExpression, ConditionalOrExpression,
7983         ConditionalExpression, Assignment, LeftHandSide): Update
7984         calls to write_exp* and similars in order to use parser state.
7985         (parse_number): Ajust code to use parser state.
7986         (yylex): Likewise.
7987         (java_parse): New function.
7988         (push_variable): Add "struct parser_state" argument.  Adjust
7989         code to user parser state.
7990         (push_fieldnames, push_qualified_expression_name,
7991         push_expression_name, insert_exp): Likewise.
7992         * jv-lang.h: Forward declare "struct parser_state".
7993         (java_parse): Add "struct parser_state" argument.
7994         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7995         parser state.
7996         (yyparse): Redefine macro to m2_parse_internal.
7997         (pstate): New variable.
7998         (type_exp, exp, fblock, variable, type): Update calls to
7999         write_exp* and similars to use parser state.
8000         (yylex): Likewise.
8001         (m2_parse): New function.
8002         * m2-lang.h: Forward declare "struct parser_state".
8003         (m2_parse): Add "struct parser_state" argument.
8004         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8005         * objc-lang.h: Forward declare "struct parser_state".
8006         (end_msglist): Add "struct parser_state" argument.
8007         * p-exp.y (parse_type): Rewrite macro to use parser state.
8008         (yyparse): Redefine macro to pascal_parse_internal.
8009         (pstate): New variable.
8010         (parse_number): Add "struct parser_state" argument.
8011         (type_exp, exp1, exp, qualified_name, variable): Update calls to
8012         write_exp* and similars in order to use parser state.
8013         (parse_number, yylex): Adjust code to use parser state.
8014         (pascal_parse): New function.
8015         * p-lang.h: Forward declare "struct parser_state".
8016         (pascal_parse): Add "struct parser_state" argument.
8017         * go-exp.y (parse_type): Rewrite macro to use parser state.
8018         (yyparse): Redefine macro to go_parse_internal.
8019         (pstate): New variable.
8020         (parse_number): Add "struct parser_state" argument.
8021         (type_exp, exp1, exp, variable, type): Update calls to
8022         write_exp* and similars in order to use parser state.
8023         (parse_number, lex_one_token, classify_name, yylex): Adjust code
8024         to use parser state.
8025         (go_parse): Likewise.
8026         * go-lang.h: Forward declare "struct parser_state".
8027         (go_parse): Add "struct parser_state" argument.
8028
8029 2014-03-27  Doug Evans  <dje@google.com>
8030
8031         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
8032
8033 2014-03-27  Doug Evans  <dje@google.com>
8034
8035         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8036         Remove argument abbrev_section.  All callers updated.
8037
8038 2014-03-27  Doug Evans  <dje@google.com>
8039
8040         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8041         addr_base, ranges_base.
8042
8043 2014-03-26  Keith Seitz  <keiths@redhat.com>
8044
8045         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8046         types, not VAR_DOMAIN.
8047
8048 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
8049
8050         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8051         "ra" registers.
8052         * features/nios2-linux.c: Regenerated.
8053         * features/nios2.c: Regenerated.
8054
8055 2014-03-25  Pedro Alves  <palves@redhat.com>
8056
8057         * cli/cli-script.c (script_from_file): Force the interpreter to
8058         sync mode.
8059
8060 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8061
8062         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8063         small stack allocation.
8064
8065 2014-03-24  Tristan Gingold  <gingold@adacore.com>
8066
8067         * darwin-nat.c (exc_server): Remove unused prototype.
8068         (darwin_dump_message): Correctly display data on x86_64.
8069         (darwin_encode_reply): Fix style.
8070         Add comments and fix indentation.
8071
8072 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8073
8074         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8075
8076 2014-03-22  Doug Evans  <xdje42@gmail.com>
8077
8078         * infcmd.c: Whitespace fixes.
8079         (interrupt_command): Merge two function comments into one.
8080
8081 2014-03-22  Doug Evans  <xdje42@gmail.com>
8082
8083         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8084         All uses updated.
8085
8086 2014-03-22  Yao Qi  <yao@codesourcery.com>
8087
8088         * remote.c (target_read_live_memory): Remove.
8089         (memory_xfer_live_readonly_partial): Rename it to
8090         remote_xfer_live_readonly_partial.  Remove argument 'object'.
8091         All callers updated.  Call remote_read_bytes_1
8092         instead of target_read_live_memory.
8093         * tracepoint.c (set_traceframe_number): Remove.
8094         (make_cleanup_restore_traceframe_number): Likewise .
8095         * tracepoint.h (set_traceframe_number): Remove declaration.
8096         (make_cleanup_restore_traceframe_number): Likewise.
8097
8098 2014-03-22  Yao Qi  <yao@codesourcery.com>
8099
8100         * remote.c (remote_read_bytes): Move code on reading from the
8101         remote stub to ...
8102         (remote_read_bytes_1): ... here.  New function.
8103
8104 2014-03-22  Yao Qi  <yao@codesourcery.com>
8105
8106         * ctf.c (ctf_xfer_partial): Check the return value of
8107         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8108         return TARGET_XFER_UNAVAILABLE.
8109         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8110         * target.c (target_read_live_memory): Move it to remote.c.
8111         (memory_xfer_live_readonly_partial): Likewise.
8112         (memory_xfer_partial_1): Move some code to remote_read_bytes.
8113         * remote.c (target_read_live_memory): Moved from target.c.
8114         (memory_xfer_live_readonly_partial): Likewise.
8115         (remote_read_bytes): Factored out from
8116         memory_xfer_partial_1.
8117
8118 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
8119
8120         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8121         NULL pointer.
8122
8123 2014-03-21  Pedro Alves  <palves@redhat.com>
8124
8125         * infrun.c (normal_stop): Extend comment.
8126
8127 2014-03-21  Hui Zhu  <hui@codesourcery.com>
8128             Pedro Alves  <palves@redhat.com>
8129
8130         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8131         static buffer.
8132         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8133         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8134         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8135
8136 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
8137
8138         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8139         `z' formatted output modifier.
8140
8141 2014-03-20  Tom Tromey  <tromey@redhat.com>
8142             Sergio Durigan Junior  <sergiodj@redhat.com>
8143
8144         * probe.c (parse_probes): Turn assert into an ordinary error.
8145         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8146         exceptions when parsing probes.  Rearrange the code for clarity.
8147
8148 2014-03-20  Tom Tromey  <tromey@redhat.com>
8149
8150         PR gdb/14135
8151         * top.c (execute_command): Only dispatch events if the command
8152         started the target.
8153
8154 2014-03-20  Tom Tromey  <tromey@redhat.com>
8155
8156         PR cli/15718
8157         * infcall.c: Include event-top.h.
8158         (run_inferior_call): Call async_disable_stdin if needed.
8159
8160 2014-03-20  Pedro Alves  <palves@redhat.com>
8161
8162         * infrun.c (prepare_to_proceed): Delete.
8163         (thread_still_needs_step_over): New function.
8164         (find_thread_needs_step_over): New function.
8165         (proceed): If the current thread needs a step-over, set its
8166         steping_over_breakpoint flag.  Adjust to use
8167         find_thread_needs_step_over instead of prepare_to_proceed.
8168         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8169         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8170         breakpoint.
8171         (switch_back_to_stepped_thread): Step over breakpoints of all
8172         threads not the stepping thread, before switching back to the
8173         stepping thread.
8174
8175 2014-03-20  Pedro Alves  <palves@redhat.com>
8176
8177         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8178         extern.
8179         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8180         * infrun.c (saved_singlestep_ptid)
8181         (stepping_past_singlestep_breakpoint): Delete.
8182         (resume): Remove stepping_past_singlestep_breakpoint handling.
8183         (proceed): Store the prev_pc of the stepping thread too.
8184         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
8185         singlestep_pc.
8186         (enum infwait_states): Delete infwait_thread_hop_state.
8187         (struct execution_control_state) <hit_singlestep_breakpoint>: New
8188         field.
8189         (handle_inferior_event): Adjust.
8190         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8191         handling and the thread-hop code.  Before removing single-step
8192         breakpoints, check whether the thread hit a single-step breakpoint
8193         of another thread.  If it did, the trap is not a random signal.
8194         (switch_back_to_stepped_thread): If the event thread hit a
8195         single-step breakpoint, unblock it before switching to the
8196         stepping thread.  Handle the case of the stepped thread having
8197         advanced already.
8198         (keep_going): Handle the case of the current thread moving past a
8199         single-step breakpoint.
8200
8201 2014-03-20  Pedro Alves  <palves@redhat.com>
8202
8203         PR breakpoints/7143
8204         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8205         are being stepped over.
8206         (breakpoint_address_match): Make extern.
8207         * breakpoint.h (breakpoint_address_match): New declaration.
8208         * inferior.h (stepping_past_instruction_at): New declaration.
8209         * infrun.c (struct step_over_info): New type.
8210         (step_over_info): New global.
8211         (set_step_over_info, clear_step_over_info)
8212         (stepping_past_instruction_at): New functions.
8213         (handle_inferior_event): Clear the step-over info when
8214         trap_expected is cleared.
8215         (resume): Remove now stale comment.
8216         (clear_proceed_status): Clear step-over info.
8217         (proceed): Adjust step-over handling to set or clear the step-over
8218         info instead of removing all breakpoints.
8219         (handle_signal_stop): When setting up a thread-hop, don't remove
8220         breakpoints here.
8221         (stop_stepping): Clear step-over info.
8222         (keep_going): Adjust step-over handling to set or clear step-over
8223         info and then always inserting breakpoints, instead of removing
8224         all breakpoints when stepping over one.
8225
8226 2014-03-20  Pedro Alves  <palves@redhat.com>
8227
8228         * infrun.c (previous_inferior_ptid): Adjust comment.
8229         (deferred_step_ptid): Delete.
8230         (infrun_thread_ptid_changed, prepare_to_proceed)
8231         (init_wait_for_inferior): Adjust.
8232         (handle_signal_stop): Delete deferred_step_ptid handling.
8233
8234 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
8235
8236         PR gdb/15358
8237         * defs.h (sync_quit_force_run): New declaration.
8238         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8239         * event-top.c (async_sigterm_handler): New declaration.
8240         (async_sigterm_token): New variable.
8241         (async_init_signals): Create also async_sigterm_token.
8242         (async_sigterm_handler): New function.
8243         (sync_quit_force_run): New variable.
8244         (handle_sigterm): Replace quit_force call by other calls.
8245         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8246
8247 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
8248
8249         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8250         offset into SPE pseudo registers.
8251
8252 2014-03-18  Pedro Alves  <palves@redhat.com>
8253
8254         PR gdb/13860
8255         * inferior.h (print_stop_event): Declare.
8256         * infrun.c (print_stop_event): New, factored out from ...
8257         (normal_stop): ... this.
8258         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8259         of bpstat_print/print_stack_frame.
8260
8261 2014-03-17  Tom Tromey  <tromey@redhat.com>
8262
8263         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8264
8265 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
8266
8267         * ada-lang.c (decode_constrained_packed_array): Perform a
8268         minimal coercion for reference with coerce_ref instead of
8269         ada_coerce_ref.
8270
8271 2014-03-17  Tristan Gingold  <gingold@adacore.com>
8272
8273         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8274         (darwin_solib_create_inferior_hook): Emit a warning if version
8275         is unhandled.
8276
8277 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
8278
8279         * python/py-value.c (get_field_flag): Cast flag_name argument to
8280         PyObject_GetAttrString to support Python 2.4.
8281
8282 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8283
8284         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8285         (Global Maintainers): Remove Jan Kratochvil.
8286
8287 2014-03-14  Pedro Alves  <palves@redhat.com>
8288
8289         * inferior.h (terminal_ours_for_output): Rename to ...
8290         (child_terminal_ours_for_output): ... this.
8291         (terminal_save_ours): Rename to ...
8292         (child_terminal_save_ours): ... this.
8293         (terminal_ours): Rename to ...
8294         (child_terminal_ours): ... this.
8295         (terminal_inferior): Rename to ...
8296         (child_terminal_inferior): ... this.
8297         (terminal_init_inferior): Rename to ...
8298         (child_terminal_init_inferior): ... this.
8299         (terminal_init_inferior_with_pgrp): Rename to ...
8300         (child_terminal_init_inferior_with_pgrp): ... this.
8301         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8302         (child_terminal_init_with_pgrp): ... this.
8303         (terminal_save_ours): Rename to ...
8304         (child_terminal_save_ours): ... this.
8305         (terminal_init_inferior): Rename to ...
8306         (child_terminal_init): ... this.  Adjust.
8307         (terminal_inferior): Rename to ...
8308         (child_terminal_inferior): ... this.
8309         (terminal_ours_for_output): Rename to ...
8310         (child_terminal_ours_for_output): ... this.  Adjust.
8311         (terminal_ours): Rename to ...
8312         (child_terminal_ours): ... this.
8313         (terminal_ours_1): Rename to ...
8314         (child_terminal_ours_1): ... this.  Adjust.
8315         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8316         * windows-nat.c (do_initial_windows_stuff): Adjust.
8317         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8318         (gnu_terminal_init): ... this.  Adjust.
8319         (gnu_target): Adjust.
8320         * inf-child.c (inf_child_target): Adjust.
8321
8322 2014-03-13  Doug Evans  <xdje42@gmail.com>
8323
8324         PR guile/16612
8325         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8326         new eq?-hashtab.
8327
8328 2014-03-13  Doug Evans  <xdje42@gmail.com>
8329
8330         * value.c (record_latest_value): Call release_value_or_incref
8331         instead of release_value.
8332
8333 2014-03-13  Pedro Alves  <palves@redhat.com>
8334
8335         * procfs.c (procfs_target): Don't override to_shortname,
8336         to_longname or to_doc.
8337
8338 2014-03-13  Pedro Alves  <palves@redhat.com>
8339
8340         * inf-child.c (inf_child_open, inf_child_target): Don't mention
8341         Unix in user visible strings.
8342
8343 2014-03-12  Stan Shebs  <stan@codesourcery.com>
8344
8345         * gdbtypes.h: Annotate comments for Doxygen, add a page
8346         block comment with some general info.
8347
8348 2014-03-12  Pedro Alves  <palves@redhat.com>
8349
8350         * infcmd.c (prepare_execution_command): New function, factored out
8351         from several execution commands.
8352         (run_command_1, continue_command, step_1, jump_command)
8353         (signal_command, until_command, advance_command, finish_command)
8354         (attach_command): Use prepare_execution_command.
8355
8356 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
8357
8358         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8359         (MAX_BPTS): Define.
8360         (MAX_WPTS): Define.
8361         (struct arm_linux_thread_points): Removed.
8362         (struct arm_linux_process_info): New.
8363         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8364         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8365         (arm_linux_find_breakpoints_by_tid): Removed.
8366         (struct arch_lwp_info): New.
8367         (arm_linux_find_process_pid): New functions.
8368         (arm_linux_add_process): New functions.
8369         (arm_linux_process_info_get): New functions.
8370         (arm_linux_forget_process): New function.
8371         (arm_linux_get_debug_reg_state): New function.
8372         (struct update_registers_data): New.
8373         (update_registers_callback): New function.
8374         (arm_linux_insert_hw_breakpoint1): Updated.
8375         (arm_linux_remove_hw_breakpoint1): Updated.
8376         (arm_linux_insert_hw_breakpoint): Updated.
8377         (arm_linux_remove_hw_breakpoint): Updated.
8378         (arm_linux_insert_watchpoint): Updated.
8379         (arm_linux_remove_watchpoint): Updated.
8380         (arm_linux_new_thread): Updated.
8381         (arm_linux_prepare_to_resume): New function.
8382         (arm_linux_new_fork): New function.
8383         (_initialize_arm_linux_nat): Updated.
8384
8385 2014-03-12  Pedro Alves  <palves@redhat.com>
8386
8387         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8388
8389 2014-03-12  Tom Tromey  <tromey@redhat.com>
8390
8391         * inf-child.c (return_zero): New function.
8392         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8393         * aix-thread.c (aix_thread_inferior_created): New function.
8394         (aix_thread_attach): Remove.
8395         (init_aix_thread_ops): Don't set to_attach.
8396         (_initialize_aix_thread): Register inferior_created observer.
8397         * corelow.c (init_core_ops): Don't set to_attach or
8398         to_create_inferior.
8399         * exec.c (init_exec_ops): Don't set to_attach or
8400         to_create_inferior.
8401         * infcmd.c (run_command_1): Use find_run_target.  Make direct
8402         target calls.
8403         (attach_command): Use find_attach_target.  Make direct target
8404         calls.
8405         * record-btrace.c (init_record_btrace_ops): Don't set
8406         to_create_inferior.
8407         * record-full.c (record_full_can_async_p, record_full_is_async_p):
8408         Remove.
8409         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
8410         set to_create_inferior.
8411         * target.c (complete_target_initialization): Add assertion.
8412         (target_create_inferior): Remove.
8413         (find_default_attach, find_default_create_inferior): Remove.
8414         (find_attach_target, find_run_target): New functions.
8415         (find_default_is_async_p, find_default_can_async_p)
8416         (target_supports_non_stop, target_attach): Remove.
8417         (init_dummy_target): Don't set to_create_inferior or
8418         to_supports_non_stop.
8419         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
8420         TARGET_DEFAULT_FUNC.
8421         <to_create_inferior>: Add comment.
8422         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8423         TARGET_DEFAULT_RETURN.
8424         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8425         (find_attach_target, find_run_target): Declare.
8426         (target_create_inferior): Remove.
8427         (target_has_execution_1): Update comment.
8428         (target_supports_non_stop): Remove.
8429         * target-delegates.c: Rebuild.
8430
8431 2014-03-12  Pedro Alves  <palves@redhat.com>
8432
8433         * inf-child.h: Update comment to not mention Unix.
8434
8435 2014-03-12  Pedro Alves  <palves@redhat.com>
8436
8437         * inf-child.c: Update top comment to not mention Unix.  Add
8438         generic comment describing how this target is meant to be used.
8439         (inf_child_post_attach, inf_child_post_startup_inferior)
8440         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8441         Unix in comment.
8442
8443 2014-03-12  Pedro Alves  <palves@redhat.com>
8444
8445         * nto-procfs.c: Include inf-child.h.
8446         (procfs_ops): Delete global.
8447         (procfs_can_run): Delete method.
8448         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8449         target pointer instead of referencing procfs_ops.
8450         (procfs_prepare_to_store): Delete.
8451         (init_procfs_ops): Delete function.
8452         (procfs_target): New function, based on init_procfs_ops, but
8453         inherit inf_child_target.
8454         (_initialize_procfs): Use procfs_target.
8455
8456 2014-03-12  Pedro Alves  <palves@redhat.com>
8457
8458         * windows-nat.c: Include inf-child.h.
8459         (windows_ops): Delete global.
8460         (windows_open, windows_prepare_to_store, windows_can_run): Delete
8461         methods.
8462         (init_windows_ops): Delete function.
8463         (windows_target): New function, based on init_windows_ops, but
8464         inherit inf_child_target.
8465         (_initialize_windows_nat): Use windows_target.  Install x86
8466         specific target methods here.
8467
8468 2014-03-10  Doug Evans  <xdje42@gmail.com>
8469
8470         * guile/guile.c (call_initialize_gdb_module): New function.
8471         (initialize_guile): Replace call to scm_init_guile with call to
8472         scm_with_guile.
8473
8474 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
8475
8476         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8477         in call to TYPE_CODE macro.
8478
8479 2014-03-10  Jerome Guitton  <guitton@adacore.com>
8480
8481         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8482         Resolve tagged types to full view.
8483
8484 2014-03-10  Hui Zhu  <hui@codesourcery.com>
8485
8486         * target.h (target_insert_breakpoint): Remove "hardware" from its
8487         comments.
8488
8489 2014-03-07  Doug Evans  <dje@google.com>
8490
8491         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8492
8493 2014-03-07  Doug Evans  <dje@google.com>
8494
8495         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8496         Remove unused local comp_dir_attr.  Assert exactly one of
8497         stub_comp_unit_die, stub_comp_dir is non-NULL.
8498
8499 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
8500
8501         * target.h (complete_target_initialization, add_target):
8502         Add comment.
8503
8504 2014-03-07  Pedro Alves  <palves@redhat.com>
8505
8506         * go32-nat.c: Include inf-child.h.
8507         (go32_ops): Delete global.
8508         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8509         Delete methods.
8510         (go32_create_inferior): Push the passed in target pointer instead
8511         of referencing go32_ops.
8512         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
8513         (go32_target): New function, based on init_go32_ops, but inherit
8514         inf_child_target.
8515         (_initialize_go32_nat): Use go32_target.  Move parts of
8516         init_go32_ops here.
8517
8518 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
8519
8520         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8521         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8522         SYMBOL_VALUE_ADDRESS.
8523         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8524
8525 2014-03-06  Yao Qi  <yao@codesourcery.com>
8526
8527         * breakpoint.c (get_tracepoint_by_number): Remove argument
8528         optional_p.  All callers updated.  Adjust comments.  Update
8529         output message.
8530         * breakpoint.h (get_tracepoint_by_number): Update declaration.
8531
8532 2014-03-06  Yao Qi  <yao@codesourcery.com>
8533
8534         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
8535         early if get_number returns zero.  Use 'p' instead of 'args'.
8536
8537 2014-03-06  Yao Qi  <yao@codesourcery.com>
8538
8539         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8540         message.
8541
8542 2014-03-06  Yao Qi  <yao@codesourcery.com>
8543
8544         PR breakpoints/16508
8545         * tracepoint.c (check_trace_running): New function.
8546         (trace_find_command): Move code to check_trace_running and
8547         call check_trace_running.
8548         (trace_find_pc_command): Likewise.
8549         (trace_find_tracepoint_command): Likewise.
8550         (trace_find_line_command): Likewise.
8551         (trace_find_range_command): Likewise.
8552         * tracepoint.h (check_trace_running): Likewise.
8553         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8554
8555 2014-03-06  Yao Qi  <yao@codesourcery.com>
8556
8557         * target.h (struct target_ops) <to_traceframe_info>: Use
8558         TARGET_DEFAULT_NORETURN (tcomplain ()).
8559         * target-delegates.c: Regenerated.
8560
8561 2014-03-05  Pedro Alves  <palves@redhat.com>
8562
8563         PR gdb/16575
8564         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
8565         void.  Update comment.
8566         (dcache_xfer_memory): Delete.
8567         (dcache_read_memory_partial): New, based on the read bits of
8568         dcache_xfer_memory.
8569         (dcache_update): Add status parameter.  Use ULONGEST for len, and
8570         adjust.  Discard cache lines if the reason for the update was
8571         error.
8572         * dcache.h (dcache_xfer_memory): Delete declaration.
8573         (dcache_read_memory_partial): New declaration.
8574         (dcache_update): Update prototype.
8575         * target.c (raw_memory_xfer_partial): Update the dcache here.
8576         (memory_xfer_partial_1): Don't handle dcache writes here.
8577
8578 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
8579
8580         * remote-sim.c (gdbsim_load): Add const to prog.
8581
8582 2014-03-03  Tom Tromey  <tromey@redhat.com>
8583
8584         * elfread.c (probe_key): Change to bfd_data.
8585         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8586         now per-BFD, not per-objfile.
8587         * stap-probe.c (stap_probe_destroy): Update comment.
8588         (handle_stap_probe): Allocate on the per-BFD obstack.
8589
8590 2014-03-03  Tom Tromey  <tromey@redhat.com>
8591
8592         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8593         * breakpoint.c (create_longjmp_master_breakpoint): Use
8594         get_probe_address.
8595         (add_location_to_breakpoint, bkpt_probe_insert_location)
8596         (bkpt_probe_remove_location): Update.
8597         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8598         * elfread.c (elf_symfile_relocate_probe): Remove.
8599         (elf_probe_fns): Update.
8600         (insert_exception_resume_breakpoint): Change type of "probe"
8601         parameter to bound_probe.
8602         (check_exception_resume): Update.
8603         * objfiles.c (objfile_relocate1): Don't relocate probes.
8604         * probe.c (bound_probe_s): New typedef.
8605         (parse_probes): Use get_probe_address.  Set sal's objfile.
8606         (find_probe_by_pc): Return a bound_probe.
8607         (collect_probes): Return a VEC(bound_probe_s).
8608         (compare_probes): Update.
8609         (gen_ui_out_table_header_info): Change type of "probes"
8610         parameter.  Update.
8611         (info_probes_for_ops): Update.
8612         (get_probe_address): New function.
8613         (probe_safe_evaluate_at_pc): Update.
8614         * probe.h (struct probe_ops) <get_probe_address>: New field.
8615         <set_semaphore, clear_semaphore>: Add objfile parameter.
8616         (struct probe) <objfile>: Remove field.
8617         <arch>: New field.
8618         <address>: Update comment.
8619         (struct bound_probe): New.
8620         (find_probe_by_pc): Return a bound_probe.
8621         (get_probe_address): Declare.
8622         * solib-svr4.c (struct probe_and_action) <address>: New field.
8623         (hash_probe_and_action, equal_probe_and_action): Update.
8624         (register_solib_event_probe): Add address parameter.
8625         (solib_event_probe_at): Update.
8626         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
8627         get_probe_address.
8628         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8629         (stap_get_probe_address): New function.
8630         (stap_can_evaluate_probe_arguments, compute_probe_arg)
8631         (compile_probe_arg): Update.
8632         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8633         address.
8634         (handle_stap_probe): Don't relocate the probe.
8635         (stap_relocate): Remove.
8636         (stap_gen_info_probes_table_values): Update.
8637         (stap_probe_ops): Remove stap_relocate.
8638         * symfile-debug.c (debug_sym_relocate_probe): Remove.
8639         (debug_sym_probe_fns): Update.
8640         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8641         * symtab.c (init_sal): Use memset.
8642         * symtab.h (struct symtab_and_line) <objfile>: New field.
8643         * tracepoint.c (start_tracing, stop_tracing): Update.
8644
8645 2014-03-03  Tom Tromey  <tromey@redhat.com>
8646
8647         * probe.h (parse_probes, find_probe_by_pc)
8648         (find_probes_in_objfile): Fix comments.
8649
8650 2014-03-02  Doug Evans  <xdje42@gmail.com>
8651
8652         * infrun.c (handle_signal_stop): Replace test for
8653         TARGET_WAITKIND_STOPPED with an assert.
8654
8655 2014-03-02  Doug Evans  <xdje42@gmail.com>
8656
8657         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8658
8659 2014-03-02  Doug Evans  <xdje42@gmail.com>
8660
8661         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8662
8663 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8664
8665         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8666
8667 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8668
8669         * i386obsd-nat.c: Include "obsd-nat.h".
8670         (_initialize_i386obsd_nat): Call obsd_add_target instead of
8671         add_target.
8672         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8673
8674 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8675
8676         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8677
8678 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8679
8680         * mips64obsd-nat.c: Include "obsd-nath".
8681         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8682         add_target
8683         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8684
8685 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8686
8687         * amd64obsd-nat.c: Include "obsd-nat,h.
8688         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8689         add_target.
8690         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8691
8692 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
8693
8694         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8695         (find_overload_match): Update call to find_oload_champ.
8696         (find_oload_champ_namespace_loop): Likewise
8697
8698 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
8699
8700         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8701
8702         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8703         * config/sparc/obsd64.mh: New file.
8704         * sparc64obsd-nat.c: New file.
8705
8706         * obsd-nat.h: New file.
8707         * obsd-nat.c: New file.
8708         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8709         (ALLDEPFILES): Add obsd-nat.c.
8710
8711 2014-02-28  Tom Tromey  <tromey@redhat.com>
8712
8713         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
8714         * cli-out.h (cli_ui_out_impl): Now const.
8715         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
8716         * ui-out.c (struct ui_out) <impl>: Now const.
8717         (default_ui_out_impl): Now const.
8718         (ui_out_new): Make 'impl' parameter const.
8719         * ui-out.h (ui_out_new): Update.
8720
8721 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8722
8723         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8724
8725 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8726
8727         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8728
8729 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
8730
8731         Additional PR 8882 fix.
8732         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8733
8734 2014-02-27  Pedro Alves  <palves@redhat.com>
8735
8736         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8737         isn't set.
8738
8739 2014-02-27  Pedro Alves  <palves@redhat.com>
8740
8741         PR 12702
8742         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8743         * nat/linux-waitpid.c: Include string.h.
8744         (status_to_str): Moved here and made extern.
8745         * nat/linux-waitpid.h (status_to_str): New declaration.
8746
8747 2014-02-27  Hui Zhu  <hui@codesourcery.com>
8748
8749         PR 12702
8750         * infrun.c (ptid_match): Move ...
8751         * common/ptid.c (ptid_match): ... here.
8752         * inferior.h (ptid_match): Move ...
8753         * common/ptid.h (ptid_match): ... here.
8754
8755 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8756
8757         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8758         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8759         gdb_target_obs.
8760
8761 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8762
8763         * obsd-tdep.c (obsd_auxv_parse): New function.
8764         (obsd_init_abi): Set auxv_parse.
8765
8766         * gdbarch.sh (auxv_parse): New.
8767         * gdbarch.h: Regenerated.
8768         * gdbarch.c: Regenerated.
8769         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8770
8771 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
8772
8773         * guile/scm-value.c (gdbscm_history_append_x): New function.
8774         (value_functions): Add it.
8775
8776 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8777
8778         * dwarf2read.c (attr_value_as_address): New function.
8779         (dwarf2_find_base_address, read_call_site_scope): Use
8780         attr_value_as_address in place of DW_ADDR.
8781         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8782         the low and high addresses.  Slight rework of the handling
8783         of the high pc being a constant form, and limit it to
8784         DWARF verson 4 or higher.
8785         (dwarf2_record_block_ranges): Likewise.
8786         (read_partial_die): Likewise.
8787         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8788
8789 2014-02-26  Tom Tromey  <tromey@redhat.com>
8790
8791         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8792
8793 2014-02-26  Tom Tromey  <tromey@redhat.com>
8794
8795         * elfread.c (elf_read_minimal_symbols): Return early if
8796         minimal symbols have already been read.  Add "ei" parameter.
8797         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8798         * minsyms.c (prim_record_minimal_symbol_full): Update.
8799         * objfiles.h (struct objstats) <n_minsyms>: Move...
8800         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8801         * symmisc.c (print_objfile_statistics): Update.
8802
8803 2014-02-26  Tom Tromey  <tromey@redhat.com>
8804
8805         * elfread.c (elf_read_minimal_symbols): New function, from
8806         elf_symfile_read.
8807         (elf_symfile_read): Call it.
8808
8809 2014-02-26  Tom Tromey  <tromey@redhat.com>
8810
8811         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8812         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8813         (lookup_minimal_symbol_solib_trampoline)
8814         (lookup_minimal_symbol_by_pc_section_1)
8815         (lookup_minimal_symbol_and_objfile): Update.
8816         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8817         Don't allocate a minimal symbol if minsyms have already been read.
8818         (build_minimal_symbol_hash_tables): Update.
8819         (install_minimal_symbols): Do nothing if minsyms already read.
8820         Use the per-BFD obstack.
8821         (terminate_minimal_symbol_table): Use the per-BFD obstack.
8822         * objfiles.c (allocate_objfile): Call
8823         terminate_minimal_symbol_table later.
8824         (have_minimal_symbols): Update.
8825         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8826         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8827         Move from struct objfile.
8828         <minsyms_read>: New field.
8829         (struct objfile) <msymbols, minimal_symbol_count,
8830         msymbol_hash, msymbol_demangled_hash>: Move.
8831         (ALL_OBJFILE_MSYMBOLS): Update.
8832         * symfile.c (read_symbols): Set minsyms_read.
8833         (reread_symbols): Update.
8834         * symmisc.c (dump_objfile, dump_msymbols): Update.
8835
8836 2014-02-26  Tom Tromey  <tromey@redhat.com>
8837
8838         * minsyms.c (msymbols_sort): Remove.
8839         * minsyms.h (msymbols_sort): Remove.
8840         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8841         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8842         * elfread.c (elf_symtab_read): Don't add section offsets.
8843         * xcoffread.c (record_minimal_symbol): Don't add section offset
8844         to minimal symbol address.
8845         * somread.c (text_offset, data_offset): Remove.
8846         (som_symtab_read): Don't add section offsets to minimal symbol
8847         addresses.
8848         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8849         Don't add section offsets to minimal symbols.
8850         * coffread.c (coff_symtab_read): Don't add section offsets
8851         to minimal symbol addresses.
8852         * machoread.c (macho_symtab_add_minsym): Don't add section offset
8853         to minimal symbol addresses.
8854         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8855         section offset to minimal symbol addresses.
8856         * mdebugread.c (parse_partial_symbols): Don't add section
8857         offset to minimal symbol addresses.
8858         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8859         offset to minimal symbol addresses.
8860
8861 2014-02-26  Tom Tromey  <tromey@redhat.com>
8862
8863         * ada-lang.c (ada_main_name): Update.
8864         (ada_add_standard_exceptions): Update.
8865         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8866         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8867         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8868         * auxv.c (ld_so_xfer_auxv): Update.
8869         * avr-tdep.c (avr_scan_prologue): Update.
8870         * ax-gdb.c (gen_var_ref): Update.
8871         * blockframe.c (get_pc_function_start)
8872         (find_pc_partial_function_gnu_ifunc): Update.
8873         * breakpoint.c (create_overlay_event_breakpoint)
8874         (create_longjmp_master_breakpoint)
8875         (create_std_terminate_master_breakpoint)
8876         (create_exception_master_breakpoint): Update.
8877         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8878         * c-valprint.c (c_val_print): Update.
8879         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8880         * common/agent.c (agent_look_up_symbols): Update.
8881         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8882         * dwarf2loc.c (call_site_to_target_addr): Update.
8883         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8884         * elfread.c (elf_gnu_ifunc_record_cache)
8885         (elf_gnu_ifunc_resolve_by_got): Update.
8886         * findvar.c (default_read_var_value): Update.
8887         * frame.c (inside_main_func): Update.
8888         * frv-tdep.c (frv_frame_this_id): Update.
8889         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8890         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8891         Update.
8892         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8893         (hppa_hpux_find_dummy_bpaddr): Update.
8894         * hppa-tdep.c (hppa_symbol_address): Update.
8895         * infcmd.c (until_next_command): Update.
8896         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8897         Update.
8898         * linespec.c (minsym_found, add_minsym): Update.
8899         * linux-nat.c (get_signo): Update.
8900         * linux-thread-db.c (inferior_has_bug): Update.
8901         * m32c-tdep.c (m32c_return_value)
8902         (m32c_m16c_address_to_pointer): Update.
8903         * m32r-tdep.c (m32r_frame_this_id): Update.
8904         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8905         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8906         * maint.c (maintenance_translate_address): Update.
8907         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8908         (frob_address): New function.
8909         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8910         frob_address.  Rename parameter to "pc_in".
8911         (compare_minimal_symbols, compact_minimal_symbols): Use raw
8912         addresses.
8913         (find_solib_trampoline_target, minimal_symbol_upper_bound):
8914         Update.
8915         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8916         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8917         * objc-lang.c (find_objc_msgsend): Update.
8918         * objfiles.c (objfile_relocate1): Update.
8919         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8920         * p-valprint.c (pascal_val_print): Update.
8921         * parse.c (write_exp_msymbol): Update.
8922         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8923         (ppc_elfv2_skip_entrypoint): Update.
8924         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8925         * printcmd.c (build_address_symbolic, msym_info)
8926         (address_info): Update.
8927         * proc-service.c (ps_pglobal_lookup): Update.
8928         * psymtab.c (find_pc_sect_psymtab_closer)
8929         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8930         Change msymbol parameter to bound_minimal_symbol.
8931         * ravenscar-thread.c (get_running_thread_id): Update.
8932         * remote.c (remote_check_symbols): Update.
8933         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8934         address.
8935         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8936         * solib-dsbt.c (lm_base): Update.
8937         * solib-frv.c (lm_base, main_got): Update.
8938         * solib-irix.c (locate_base): Update.
8939         * solib-som.c (som_solib_create_inferior_hook)
8940         (link_map_start): Update.
8941         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8942         * solib-svr4.c (elf_locate_base, enable_break): Update.
8943         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8944         (flush_ea_cache): Update.
8945         * stabsread.c (define_symbol, scan_file_globals): Update.
8946         * stack.c (find_frame_funname): Update.
8947         * symfile-debug.c (debug_qf_expand_symtabs_matching)
8948         (debug_qf_find_pc_sect_symtab): Update.
8949         * symfile.c (simple_read_overlay_table)
8950         (simple_overlay_update): Update.
8951         * symfile.h (struct quick_symbol_functions)
8952         <find_pc_sect_symtab>: Change type of msymbol to
8953         bound_minimal_symbol.
8954         * symmisc.c (dump_msymbols): Update.
8955         * symtab.c (find_pc_sect_symtab_via_partial)
8956         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8957         (search_symbols, print_msymbol_info): Update.
8958         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8959         (MSYMBOL_VALUE_ADDRESS): Redefine.
8960         (BMSYMBOL_VALUE_ADDRESS): New macro.
8961         * tracepoint.c (scope_info): Update.
8962         * tui/tui-disasm.c (tui_find_disassembly_address)
8963         (tui_get_begin_asm_address): Update.
8964         * valops.c (find_function_in_inferior): Update.
8965         * value.c (value_static_field, value_fn_field): Update.
8966
8967 2014-02-26  Tom Tromey  <tromey@redhat.com>
8968
8969         * ada-lang.c (ada_update_initial_language): Update.
8970         (ada_main_name, ada_has_this_exception_support): Update.
8971         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8972         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8973         * arm-tdep.c (arm_skip_stub): Update.
8974         * auxv.c (ld_so_xfer_auxv): Update.
8975         * avr-tdep.c (avr_scan_prologue): Update.
8976         * ax-gdb.c (gen_var_ref): Update.
8977         * breakpoint.c (struct breakpoint_objfile_data)
8978         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8979         type to bound_minimal_symbol.
8980         (create_overlay_event_breakpoint)
8981         (create_longjmp_master_breakpoint)
8982         (create_std_terminate_master_breakpoint)
8983         (create_exception_master_breakpoint): Update.
8984         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8985         * c-exp.y (classify_name): Update.
8986         * coffread.c (coff_symfile_read): Update.
8987         * common/agent.c (agent_look_up_symbols): Update.
8988         * d-lang.c (d_main_name): Update.
8989         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8990         * dec-thread.c (enable_dec_thread): Update.
8991         * dwarf2loc.c (call_site_to_target_addr): Update.
8992         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8993         * eval.c (evaluate_subexp_standard): Update.
8994         * findvar.c (struct minsym_lookup_data) <result>: Change type
8995         to bound_minimal_symbol.
8996         <objfile>: Remove.
8997         (minsym_lookup_iterator_cb, default_read_var_value): Update.
8998         * frame.c (inside_main_func): Update.
8999         * frv-tdep.c (frv_frame_this_id): Update.
9000         * gcore.c (call_target_sbrk): Update.
9001         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9002         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9003         Update.
9004         * go-lang.c (go_main_name): Update.
9005         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9006         (hppa_hpux_find_import_stub_for_addr): Update.
9007         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9008         Update.  Change return type.
9009         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9010         type.
9011         * jit.c (jit_breakpoint_re_set_internal): Update.
9012         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9013         Update.
9014         * linux-nat.c (get_signo): Update.
9015         * linux-thread-db.c (inferior_has_bug): Update
9016         * m32c-tdep.c (m32c_return_value)
9017         (m32c_m16c_address_to_pointer): Update.
9018         * m32r-tdep.c (m32r_frame_this_id): Update.
9019         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9020         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9021         * minsyms.c (lookup_minimal_symbol_internal): Rename to
9022         lookup_minimal_symbol.  Change return type.
9023         (lookup_minimal_symbol): Remove.
9024         (lookup_bound_minimal_symbol): Update.
9025         (lookup_minimal_symbol_text): Change return type.
9026         (lookup_minimal_symbol_solib_trampoline): Change return type.
9027         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9028         (lookup_minimal_symbol_solib_trampoline): Change return type.
9029         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9030         * objc-lang.c (lookup_objc_class, lookup_child_selector)
9031         (value_nsstring, find_imps): Update.
9032         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9033         * p-lang.c (pascal_main_name): Update.
9034         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9035         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9036         * proc-service.c (ps_pglobal_lookup): Update.
9037         * ravenscar-thread.c (get_running_thread_msymbol): Change
9038         return type.
9039         (has_ravenscar_runtime, get_running_thread_id): Update.
9040         * remote.c (remote_check_symbols): Update.
9041         * sol-thread.c (ps_pglobal_lookup): Update.
9042         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9043         * solib-dsbt.c (lm_base): Update.
9044         * solib-frv.c (lm_base, frv_relocate_section_addresses):
9045         Update.
9046         * solib-irix.c (locate_base): Update.
9047         * solib-som.c (som_solib_create_inferior_hook)
9048         (som_solib_desire_dynamic_linker_symbols, link_map_start):
9049         Update.
9050         * solib-spu.c (spu_enable_break): Update.
9051         * solib-svr4.c (elf_locate_base, enable_break): Update.
9052         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9053         (flush_ea_cache): Update.
9054         * stabsread.c (define_symbol): Update.
9055         * symfile.c (simple_read_overlay_table): Update.
9056         * symtab.c (find_pc_sect_line): Update.
9057         * tracepoint.c (scope_info): Update.
9058         * tui-disasm.c (tui_get_begin_asm_address): Update.
9059         * value.c (value_static_field): Update.
9060
9061 2014-02-26  Tom Tromey  <tromey@redhat.com>
9062
9063         * minsyms.c (prim_record_minimal_symbol_full): Use
9064         SET_MSYMBOL_VALUE_ADDRESS.
9065         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9066         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9067         SET_MSYMBOL_VALUE_ADDRESS.
9068         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9069         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9070
9071 2014-02-26  Tom Tromey  <tromey@redhat.com>
9072
9073         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9074         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9075         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9076         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9077         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9078         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9079         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9080         * ada-lang.c (ada_main_name): Update.
9081         (ada_lookup_simple_minsym): Update.
9082         (ada_make_symbol_completion_list): Update.
9083         (ada_add_standard_exceptions): Update.
9084         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9085         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9086         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9087         * arm-tdep.c (skip_prologue_function): Update.
9088         (arm_skip_stack_protector, arm_skip_stub): Update.
9089         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9090         (arm_wince_skip_main_prologue): Update.
9091         * auxv.c (ld_so_xfer_auxv): Update.
9092         * avr-tdep.c (avr_scan_prologue): Update.
9093         * ax-gdb.c (gen_var_ref): Update.
9094         * block.c (call_site_for_pc): Update.
9095         * blockframe.c (get_pc_function_start): Update.
9096         (find_pc_partial_function_gnu_ifunc): Update.
9097         * breakpoint.c (create_overlay_event_breakpoint): Update.
9098         (create_longjmp_master_breakpoint): Update.
9099         (create_std_terminate_master_breakpoint): Update.
9100         (create_exception_master_breakpoint): Update.
9101         (resolve_sal_pc): Update.
9102         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9103         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9104         Update.
9105         * c-valprint.c (c_val_print): Update.
9106         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9107         * coffread.c (coff_symfile_read): Update.
9108         * common/agent.c (agent_look_up_symbols): Update.
9109         * dbxread.c (find_stab_function_addr): Update.
9110         (end_psymtab): Update.
9111         * dwarf2loc.c (call_site_to_target_addr): Update.
9112         (func_verify_no_selftailcall): Update.
9113         (tailcall_dump): Update.
9114         (call_site_find_chain_1): Update.
9115         (dwarf_expr_reg_to_entry_parameter): Update.
9116         * elfread.c (elf_gnu_ifunc_record_cache): Update.
9117         (elf_gnu_ifunc_resolve_by_got): Update.
9118         * f-valprint.c (info_common_command): Update.
9119         * findvar.c (read_var_value): Update.
9120         * frame.c (get_prev_frame_1): Update.
9121         (inside_main_func): Update.
9122         * frv-tdep.c (frv_skip_main_prologue): Update.
9123         (frv_frame_this_id): Update.
9124         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9125         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9126         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9127         (gnuv3_skip_trampoline): Update.
9128         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9129         (hppa64_hpux_in_solib_call_trampoline): Update.
9130         (hppa_hpux_skip_trampoline_code): Update.
9131         (hppa64_hpux_search_dummy_call_sequence): Update.
9132         (hppa_hpux_find_import_stub_for_addr): Update.
9133         (hppa_hpux_find_dummy_bpaddr): Update.
9134         * hppa-tdep.c (hppa_symbol_address)
9135         (hppa_lookup_stub_minimal_symbol): Update.
9136         * i386-tdep.c (i386_skip_main_prologue): Update.
9137         (i386_pe_skip_trampoline_code): Update.
9138         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9139         * infcall.c (get_function_name): Update.
9140         * infcmd.c (until_next_command): Update.
9141         * jit.c (jit_breakpoint_re_set_internal): Update.
9142         (jit_inferior_init): Update.
9143         * linespec.c (minsym_found): Update.
9144         (add_minsym): Update.
9145         * linux-fork.c (info_checkpoints_command): Update.
9146         * linux-nat.c (get_signo): Update.
9147         * linux-thread-db.c (inferior_has_bug): Update.
9148         * m32c-tdep.c (m32c_return_value): Update.
9149         (m32c_m16c_address_to_pointer): Update.
9150         (m32c_m16c_pointer_to_address): Update.
9151         * m32r-tdep.c (m32r_frame_this_id): Update.
9152         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9153         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9154         * maint.c (maintenance_translate_address): Update.
9155         * minsyms.c (add_minsym_to_hash_table): Update.
9156         (add_minsym_to_demangled_hash_table): Update.
9157         (msymbol_objfile): Update.
9158         (lookup_minimal_symbol): Update.
9159         (iterate_over_minimal_symbols): Update.
9160         (lookup_minimal_symbol_text): Update.
9161         (lookup_minimal_symbol_by_pc_name): Update.
9162         (lookup_minimal_symbol_solib_trampoline): Update.
9163         (lookup_minimal_symbol_by_pc_section_1): Update.
9164         (lookup_minimal_symbol_and_objfile): Update.
9165         (prim_record_minimal_symbol_full): Update.
9166         (compare_minimal_symbols): Update.
9167         (compact_minimal_symbols): Update.
9168         (build_minimal_symbol_hash_tables): Update.
9169         (install_minimal_symbols): Update.
9170         (terminate_minimal_symbol_table): Update.
9171         (find_solib_trampoline_target): Update.
9172         (minimal_symbol_upper_bound): Update.
9173         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9174         * mips-tdep.c (mips_stub_frame_sniffer): Update.
9175         (mips_skip_pic_trampoline_code): Update.
9176         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9177         * objc-lang.c (selectors_info): Update.
9178         (classes_info): Update.
9179         (find_methods): Update.
9180         (find_imps): Update.
9181         (find_objc_msgsend): Update.
9182         * objfiles.c (objfile_relocate1): Update.
9183         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9184         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9185         * p-valprint.c (pascal_val_print): Update.
9186         * parse.c (write_exp_msymbol): Update.
9187         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9188         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9189         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9190         * printcmd.c (build_address_symbolic): Update.
9191         (sym_info): Update.
9192         (address_info): Update.
9193         * proc-service.c (ps_pglobal_lookup): Update.
9194         * psymtab.c (find_pc_sect_psymtab_closer): Update.
9195         (find_pc_sect_psymtab): Update.
9196         * python/py-framefilter.c (py_print_frame): Update.
9197         * ravenscar-thread.c (get_running_thread_id): Update.
9198         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9199         Update.
9200         * remote.c (remote_check_symbols): Update.
9201         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9202         (rs6000_skip_trampoline_code): Update.
9203         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9204         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9205         * solib-dsbt.c (lm_base): Update.
9206         * solib-frv.c (lm_base): Update.
9207         (main_got): Update.
9208         * solib-irix.c (locate_base): Update.
9209         * solib-som.c (som_solib_create_inferior_hook): Update.
9210         (som_solib_desire_dynamic_linker_symbols): Update.
9211         (link_map_start): Update.
9212         * solib-spu.c (spu_enable_break): Update.
9213         (ocl_enable_break): Update.
9214         * solib-svr4.c (elf_locate_base): Update.
9215         (enable_break): Update.
9216         * spu-tdep.c (spu_get_overlay_table): Update.
9217         (spu_catch_start): Update.
9218         (flush_ea_cache): Update.
9219         * stabsread.c (define_symbol): Update.
9220         (scan_file_globals): Update.
9221         * stack.c (find_frame_funname): Update.
9222         (frame_info): Update.
9223         * symfile.c (simple_read_overlay_table): Update.
9224         (simple_overlay_update): Update.
9225         * symmisc.c (dump_msymbols): Update.
9226         * symtab.c (fixup_section): Update.
9227         (find_pc_sect_line): Update.
9228         (skip_prologue_sal): Update.
9229         (search_symbols): Update.
9230         (print_msymbol_info): Update.
9231         (rbreak_command): Update.
9232         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9233         (completion_list_objc_symbol): Update.
9234         (default_make_symbol_completion_list_break_on): Update.
9235         * tracepoint.c (scope_info): Update.
9236         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9237         (tui_get_begin_asm_address): Update.
9238         * valops.c (find_function_in_inferior): Update.
9239         * value.c (value_static_field): Update.
9240         (value_fn_field): Update.
9241
9242 2014-02-26  Tom Tromey  <tromey@redhat.com>
9243
9244         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9245         bound minimal symbols.  Move code that knows about minsym
9246         table layout...
9247         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
9248         function.
9249         * minsyms.h (minimal_symbol_upper_bound): Declare.
9250         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9251         minimal_symbol_upper_bound.
9252
9253 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9254
9255         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9256         Use the type's name if its basic type does not have a tag.
9257
9258 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9259
9260         * dwarf2read.c (read_subrange_type): Add comment.
9261
9262 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9263
9264         * dwarf2read.c (update_enumeration_type_from_children): New
9265         function, mostly extracted from process_structure_scope.
9266         (read_enumeration_type): Call update_enumeration_type_from_children.
9267         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9268         and flag_flag_enum fields.
9269
9270 2014-02-26  Pedro Alves  <palves@redhat.com>
9271
9272         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9273         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9274         to_xfer_partial method.
9275
9276 2014-02-26  Pedro Alves  <palves@redhat.com>
9277
9278         * target.c (complete_target_initialization): Don't install
9279         default_xfer_partial as to_xfer_partial hook.
9280         (nomemory): Delete.
9281         (update_current_target): Don't INHERIT nor de_fault
9282         deprecated_xfer_memory.  Delete de_fault macro.
9283         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9284         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9285         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9286         field.
9287
9288 2014-02-26  Pedro Alves  <palves@redhat.com>
9289
9290         * go32-nat.c (my_write_child): New function.
9291         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9292         (go32_xfer_partial): New function.
9293         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9294         Instead install a to_xfer_partial hook.
9295
9296 2014-02-26  Pedro Alves  <palves@redhat.com>
9297
9298         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9299         to_xfer_partial helper.  Rewrite.
9300         (procfs_xfer_partial): New function.
9301         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9302         Install a to_xfer_partial hook.
9303
9304 2014-02-26  Pedro Alves  <palves@redhat.com>
9305
9306         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9307         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9308         (m32r_xfer_partial): New function.
9309         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9310         Install a to_xfer_partial hook.
9311
9312 2014-02-26  Pedro Alves  <palves@redhat.com>
9313
9314         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9315         helper.
9316         (mips_xfer_partial): New function.
9317         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9318         hook.  Install a to_xfer_partial hook.
9319
9320 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
9321
9322         * gdbtypes.h (create_array_type_with_stride): Add declaration.
9323         * gdbtypes.c (create_array_type_with_stride): New function,
9324         renaming create_array_type, but with an added parameter
9325         called "bit_stride".
9326         (create_array_type): Re-implement using
9327         create_array_type_with_stride.
9328         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9329         and DW_AT_bit_stride attributes.
9330
9331 2014-02-26  Pedro Alves  <palves@redhat.com>
9332
9333         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9334         task-specific breakpoints.
9335
9336 2014-02-25  Pedro Alves  <palves@redhat.com>
9337
9338         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9339         handling of object == TARGET_OBJECT_UNWIND_TABLE.
9340
9341 2014-02-25  Stan Shebs  <stan@codesourcery.com>
9342
9343         * defs.h: Annotate comments for Doxygen.
9344
9345 2014-02-25  Tom Tromey  <tromey@redhat.com>
9346
9347         * target.h (target_ignore): Don't declare.
9348         * target.c (target_ignore): Remove.
9349
9350 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9351
9352         PR gdb/16626
9353         * auto-load.c (auto_load_objfile_script_1): Change filename to
9354         debugfile.
9355
9356 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
9357
9358         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9359         documentation.  Adjust prototype to match the target_ops
9360         to_xfer_partial method.  Adjust implementation accordingly.
9361
9362 2014-02-25  Hui Zhu  <hui@codesourcery.com>
9363
9364         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9365         to_traceframe_info.
9366
9367 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
9368
9369         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9370         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9371         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9372         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9373         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9374         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9375         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9376         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9377         New constants.
9378         (rl78_register_type): Use a data pointer type for SP and
9379         new pseudo registers mentioned above.  Use a 16 bit integer
9380         type for all other register pairs.
9381         (rl78_register_name, rl78_g10_register_name): Update for
9382         new pseudo registers.
9383         (rl78_pseudo_register_read): Likewise.
9384         (rl78_pseudo_register_write): Likewise.
9385         (rl78_dwarf_reg_to_regnum): Return register numbers representing
9386         to the newly added pseudo registers.
9387
9388 2014-02-24  Doug Evans  <dje@google.com>
9389
9390         * value.c (record_latest_value): Fix comment.
9391         * printcmd.c (print_command_1): Remove code to handle -1 return from
9392         record_latest_value.
9393
9394 2014-02-24  Pedro Alves  <palves@redhat.com>
9395
9396         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9397         deprecated_xfer_memory hook.
9398         (procfs_xfer_partial): Call procfs_xfer_memory instead
9399         of the deprecated_xfer_memory target hook.
9400         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9401         helper.
9402
9403 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
9404
9405         * windows-nat.c (windows_xfer_shared_libraries): Return
9406         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9407         requested object is TARGET_OBJECT_LIBRARIES.
9408
9409 2014-02-24  Yao Qi  <yao@codesourcery.com>
9410
9411         * target.h (enum target_xfer_status)
9412         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9413         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9414         explicitly.  New.
9415         * corefile.c (memory_error_message): User updated.
9416         * exec.c (section_table_read_available_memory): Likewise.
9417         * record-btrace.c (record_btrace_xfer_partial): Likewise.
9418         * target.c (target_xfer_status_to_string): Likewise.
9419         (raw_memory_xfer_partial): Likewise.
9420         (memory_xfer_partial_1, target_xfer_partial): Likewise.
9421         * valops.c (read_value_memory): Likewise.
9422         * exec.h: Update comments.
9423
9424 2014-02-24  Yao Qi  <yao@codesourcery.com>
9425
9426         * target.c (target_xfer_status_to_string): Rename argument err
9427         to status.
9428         * target.h (target_xfer_status_to_string): Update declaration.
9429         Replace target_xfer_error_to_string with
9430         target_xfer_status_to_string in comment.
9431
9432 2014-02-24  Yao Qi  <yao@codesourcery.com>
9433
9434         * mips-linux-nat.c (super_close): Update its type.
9435         (mips_linux_close): Pass 'self' to super_close.
9436
9437 2014-02-24  Yao Qi  <yao@codesourcery.com>
9438
9439         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9440         * corefile.c (read_memory): Adjusted.
9441         * target.c (target_write_with_progress): Adjusted.
9442
9443 2014-02-23  Yao Qi  <yao@codesourcery.com>
9444
9445         Revert two patches:
9446
9447         2013-10-25  Yao Qi  <yao@codesourcery.com>
9448
9449         * remote.c (remote_traceframe_info): Return early if
9450         traceframe is not selected.
9451
9452         2013-07-19  Yao Qi  <yao@codesourcery.com>
9453
9454         * target.c (update_current_target): Change the default action
9455         of 'to_traceframe_info' from tcomplain to return_zero.
9456         * target.h (struct target_ops) <to_traceframe_info>: Add more
9457         comments.
9458
9459 2014-02-23  Yao Qi  <yao@codesourcery.com>
9460
9461         * valops.c (read_value_memory): Rewrite it.  Call
9462         target_xfer_partial in a loop.
9463         * exec.h (section_table_available_memory): Remove declaration.
9464         Move comments to ...
9465         * exec.c (section_table_available_memory): ... here.  Make it
9466         static.
9467
9468 2014-02-23  Yao Qi  <yao@codesourcery.com>
9469
9470         * exec.c (section_table_read_available_memory): New function.
9471         * exec.h (section_table_read_available_memory): Declare.
9472         * ctf.c (ctf_xfer_partial): Call
9473         section_table_read_available_memory.
9474         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9475
9476 2014-02-23  Yao Qi  <yao@codesourcery.com>
9477
9478         * ctf.c (ctf_xfer_partial): Move code to ...
9479         * exec.c (exec_read_partial_read_only): ... it.  New function.
9480         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9481         * tracefile.c: Include "exec.h".
9482         * exec.h (exec_read_partial_read_only): Declare.
9483
9484 2014-02-23  Yao Qi  <yao@codesourcery.com>
9485
9486         * tracefile-tfile.c (tfile_has_all_memory): Remove.
9487         (tfile_has_memory): Remove.
9488         (init_tfile_ops): Don't set fields to_has_all_memory and
9489         to_has_memory of tfile_ops.
9490         * tracefile.c (tracefile_has_all_memory): New function.
9491         (tracefile_has_memory): New function.
9492         (init_tracefile_ops): Initialize fields to_has_all_memory and
9493         to_has_memory of 'ops'.
9494
9495 2014-02-23  Yao Qi  <yao@codesourcery.com>
9496
9497         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9498         (ctf_thread_alive, ctf_get_trace_status): Remove.
9499         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
9500         init_tracefile_ops.
9501         * tracefile-tfile.c (tfile_get_trace_status): Remove.
9502         (tfile_has_stack, tfile_has_registers): Remove.
9503         (tfile_thread_alive): Remove.
9504         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
9505         init_tracefile_ops.
9506         * tracefile.c (tracefile_has_stack): New function.
9507         (tracefile_has_registers): New function.
9508         (tracefile_thread_alive): New function.
9509         (tracefile_get_trace_status): New function.
9510         (init_tracefile_ops): New function.
9511         * tracefile.h (init_tracefile_ops): Declare.
9512
9513 2014-02-23  Yao Qi  <yao@codesourcery.com>
9514
9515         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9516         (O_LARGEFILE): Likewise.
9517         (tfile_ops): Likewise.
9518         (TRACE_HEADER_SIZE): Likewise.
9519         (trace_fd, trace_frames_offset, cur_offset): Likewise.
9520         (cur_data_size): Likewise.
9521         (tfile_read, tfile_open, tfile_interp_line): Likewise.
9522         (tfile_close, tfile_files_info): Likewise.
9523         (tfile_get_trace_status): Likewise.
9524         (tfile_get_tracepoint_status): Likewise.
9525         (tfile_get_traceframe_address): Likewise.
9526         (tfile_trace_find, match_blocktype): Likewise.
9527         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9528         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9529         (tfile_get_trace_state_variable_value): Likewise.
9530         (tfile_has_all_memory, tfile_has_memory): Likewise.
9531         (tfile_has_stack, tfile_has_registers): Likewise.
9532         (tfile_thread_alive, build_traceframe_info): Likewise.
9533         (tfile_traceframe_info, init_tfile_ops): Likewise.
9534         (_initialize_tracepoint): Don't call init_tfile_ops
9535         and add_target_with_completer.
9536         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9537         exec.h, completer.h and filenames.h.
9538         (_initialize_tracefile_tfile): New function.
9539
9540 2014-02-23  Yao Qi  <yao@codesourcery.com>
9541
9542         * Makefile.in (REMOTE_OBS): Append tracefile.o and
9543         tracefile-tfile.o.
9544         (HFILES_NO_SRCDIR): Add tracefile.h.
9545         * ctf.c: Include "tracefile.h".
9546         * tracefile.h: New file.
9547         * tracefile.c: New file
9548         * tracefile-tfile.c: New file.
9549         * tracepoint.c: Include "tracefile.h".
9550         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9551         (stop_reason_names): Add const.
9552         (trace_file_writer_xfree): Move it to tracefile.c.
9553         (trace_save, trace_save_command, trace_save_tfile): Likewise.
9554         (trace_save_ctf): Likewise.
9555         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9556         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9557         (tfile_write_header, tfile_write_regblock_type): Likewise.
9558         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9559         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9560         (tfile_write_raw_data, tfile_end): Likewise.
9561         (tfile_trace_file_writer_new): Likewise.
9562         (free_uploaded_tp): Make it extern.
9563         (free_uploaded_tsv): Make it extern.
9564         (_initialize_tracepoint): Move code to register command 'tsave'
9565         to tracefile.c.
9566         * tracepoint.h (stop_reason_names): Declare.
9567         (struct trace_frame_write_ops): Move it to tracefile.h.
9568         (struct trace_file_write_ops): Likewise.
9569         (struct trace_file_writer): Likewise.
9570         (free_uploaded_tsvs, free_uploaded_tps): Declare.
9571
9572 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9573
9574         PR gdb/16594
9575         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9576         process name.
9577         (get_cores_used_by_process): New parameter num_cores, use it.
9578         (linux_xfer_osdata_processes): Pass num_cores to it.
9579         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9580         process name.
9581
9582 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
9583
9584         * target.c (memory_xfer_partial): Fix length arg in call to
9585         breakpoint_xfer_memory.
9586
9587 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
9588
9589         PR tdep/16397
9590         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9591         number comes after the + or - signs.  Adjust length of register
9592         name to be extracted.
9593
9594 2014-02-20  Tom Tromey  <tromey@redhat.com>
9595
9596         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9597         (ada_varobj_ops): Mark "extern".
9598
9599 2014-02-20  Tom Tromey  <tromey@redhat.com>
9600
9601         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9602
9603 2014-02-20  Doug Evans  <xdje42@gmail.com>
9604
9605         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9606         All callers updated.
9607         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9608         All callers updated.
9609         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9610         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9611
9612 2014-02-20  lin zuojian  <manjian2006@gmail.com>
9613             Joel Brobecker  <brobecker@adacore.com>
9614             Doug Evans  <xdje42@gmail.com>
9615
9616         PR symtab/16581
9617         * dwarf2read.c (struct die_info): New member in_process.
9618         (reset_die_in_process): New function.
9619         (process_die): Set it at the start, reset when returning.
9620         (inherit_abstract_dies): Only call process_die if origin_child_die
9621         not already being processed.
9622
9623 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9624
9625         * windows-nat.c (handle_unload_dll): Add function documentation.
9626         (do_initial_windows_stuff): Add comment explaining why we wait
9627         until after inferior initialization has finished before
9628         processing all DLLs.
9629
9630 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9631
9632         * windows-nat.c (get_module_name): Delete.
9633         (windows_get_exec_module_filename): New function, mostly
9634         inspired from get_module_name.
9635         (windows_pid_to_exec_file): Replace call to get_module_name
9636         by call to windows_get_exec_module_filename.
9637
9638 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9639
9640         * windows-nat.c (handle_load_dll): Rewrite this function's
9641         introductory comment.  Remove code using get_module_name
9642         to get the DLL's name.
9643
9644 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9645
9646         * windows-nat.c (get_windows_debug_event): Ignore
9647         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9648         if windows_initialization_done == 0.
9649         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9650         Adjust implementation to always load all DLLs.
9651         (do_initial_windows_stuff): Replace call to
9652         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9653
9654 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9655
9656         * windows-nat.c (_initialize_windows_nat): Deprecate the
9657         "dll-symbols" command.  Turn the "add-shared-symbol-files"
9658         and "assf" aliases into commands, and deprecate them as well.
9659         * NEWS: Add entry explaining that "dll-symbols" and its two
9660         aliases are now deprecated.
9661
9662 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9663
9664         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9665         new-line in debug string.  Remove trailing spaces.
9666
9667 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9668
9669         * darwin-nat.c (darwin_xfer_partial): Fix return type.
9670
9671 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
9672
9673         * NEWS: Add entry for the new feature
9674         * python/py-value.c (valpy_binop): Call value_x_binop for struct
9675         and class values.
9676
9677 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9678
9679         * MAINTAINERS: List Yao Qi as nios2 maintainer.
9680
9681 2014-02-19  Pedro Alves  <palves@redhat.com>
9682
9683         * common/ptid.h (struct ptid): Mention that process_stratum
9684         targets should prefer ptid.lwp.
9685
9686 2014-02-19  Pedro Alves  <palves@redhat.com>
9687
9688         * remote.c (remote_thread_alive, write_ptid, read_ptid)
9689         (read_ptid, remote_newthread_step, remote_threads_extra_info)
9690         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9691         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9692         store remote thread ids rather than ptid.tid.
9693         (_initialize_remote): Adjust.
9694
9695 2014-02-19  Tom Tromey  <tromey@redhat.com>
9696
9697         * target.c (target_get_unwinder): Rewrite.
9698         (target_get_tailcall_unwinder): Rewrite.
9699         * record-btrace.c (record_btrace_to_get_unwinder): New function.
9700         (record_btrace_to_get_tailcall_unwinder): New function.
9701         (init_record_btrace_ops): Update.
9702         * target.h (struct target_ops) <to_get_unwinder,
9703         to_get_tailcall_unwinder>: Now function pointers.  Use
9704         TARGET_DEFAULT_RETURN.
9705
9706 2014-02-19  Tom Tromey  <tromey@redhat.com>
9707
9708         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9709         argument.
9710         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9711
9712 2014-02-19  Tom Tromey  <tromey@redhat.com>
9713
9714         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9715         directly.
9716         * target-delegates.c: Rebuild.
9717         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9718         TARGET_DEFAULT_FUNC.
9719         * target.c (default_target_decr_pc_after_break): Rename from
9720         forward_target_decr_pc_after_break.  Simplify.
9721         (target_decr_pc_after_break): Rely on delegation.
9722
9723 2014-02-19  Tom Tromey  <tromey@redhat.com>
9724
9725         * target.c (update_current_target): Do not INHERIT to_doc or
9726         to_magic.  Do not de_fault to_open or to_close.
9727
9728 2014-02-19  Tom Tromey  <tromey@redhat.com>
9729
9730         * gcore.h (objfile_find_memory_regions): Declare.
9731         * gcore.c (objfile_find_memory_regions): No longer static.  Add
9732         "self" argument.
9733         (_initialize_gcore): Don't call exec_set_find_memory_regions.
9734         * exec.c: Include gcore.h.
9735         (exec_set_find_memory_regions): Remove.
9736         (exec_find_memory_regions): Remove.
9737         (exec_do_find_memory_regions): Remove.
9738         (init_exec_ops): Update.
9739         * defs.h (exec_set_find_memory_regions): Remove.
9740
9741 2014-02-19  Tom Tromey  <tromey@redhat.com>
9742
9743         * target-delegates.c: Rebuild.
9744         * target.h (struct target_ops) <to_extra_thread_info,
9745         to_thread_name, to_pid_to_exec_file, to_get_section_table,
9746         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9747         not 0, in TARGET_DEFAULT_RETURN.
9748
9749 2014-02-19  Tom Tromey  <tromey@redhat.com>
9750
9751         * target.c (complete_target_initialization): Remove casts.  Use
9752         return_zero_has_execution.
9753         (return_zero): Add "ignore" argument.
9754         (return_zero_has_execution): New function.
9755         (init_dummy_target): Remove casts.  Use
9756         return_zero_has_execution.
9757
9758 2014-02-19  Tom Tromey  <tromey@redhat.com>
9759
9760         * target.c (update_current_target): Update comments.  Do not
9761         INHERIT to_stratum.
9762
9763 2014-02-19  Tom Tromey  <tromey@redhat.com>
9764
9765         * arm-linux-nat.c (arm_linux_read_description): Delegate when
9766         needed.
9767         * corelow.c (core_read_description): Delegate when needed.
9768         * remote.c (remote_read_description): Delegate when needed.
9769         * target-delegates.c: Rebuild.
9770         * target.c (target_read_description): Rewrite.
9771         * target.h (struct target_ops) <to_read_description>: Update
9772         comment.  Use TARGET_DEFAULT_RETURN.
9773
9774 2014-02-19  Tom Tromey  <tromey@redhat.com>
9775
9776         * target-delegates.c: Rebuild.
9777         * target.c (update_current_target): Don't inherit or default
9778         to_can_run.
9779         (find_default_run_target): Check against delegate_can_run.
9780         * target.h (struct target_ops) <to_can_run>: Use
9781         TARGET_DEFAULT_RETURN.
9782
9783 2014-02-19  Tom Tromey  <tromey@redhat.com>
9784
9785         * target-delegates.c: Rebuild.
9786         * target.c (target_disconnect): Unconditionally delegate.
9787         * target.h (struct target_ops) <to_disconnect>: Use
9788         TARGET_DEFAULT_NORETURN.
9789
9790 2014-02-19  Tom Tromey  <tromey@redhat.com>
9791
9792         * record.c (record_stop): Unconditionally delegate.
9793         * target-delegates.c: Rebuild.
9794         * target.c (target_stop_recording): Unconditionally delegate.
9795         * target.h (struct target_ops) <to_stop_recording>: Use
9796         TARGET_DEFAULT_IGNORE.
9797
9798 2014-02-19  Tom Tromey  <tromey@redhat.com>
9799
9800         * target-delegates.c: Rebuild.
9801         * target.c (target_enable_btrace): Unconditionally delegate.
9802         * target.h (struct target_ops) <to_enable_btrace>: Use
9803         TARGET_DEFAULT_NORETURN.
9804
9805 2014-02-19  Tom Tromey  <tromey@redhat.com>
9806
9807         * target-delegates.c: Rebuild.
9808         * target.c (target_read_btrace): Unconditionally delegate.
9809         * target.h (struct target_ops) <to_read_btrace>: Use
9810         TARGET_DEFAULT_NORETURN.
9811
9812 2014-02-19  Tom Tromey  <tromey@redhat.com>
9813
9814         * target-delegates.c: Rebuild.
9815         * target.c (target_teardown_btrace): Unconditionally delegate.
9816         * target.h (struct target_ops) <to_teardown_btrace>: Use
9817         TARGET_DEFAULT_NORETURN.
9818
9819 2014-02-19  Tom Tromey  <tromey@redhat.com>
9820
9821         * target-delegates.c: Rebuild.
9822         * target.c (target_disable_btrace): Unconditionally delegate.
9823         * target.h (struct target_ops) <to_disable_btrace>: Use
9824         TARGET_DEFAULT_NORETURN.
9825
9826 2014-02-19  Tom Tromey  <tromey@redhat.com>
9827
9828         * target-delegates.c: Rebuild.
9829         * target.c (default_search_memory): New function.
9830         (simple_search_memory): Update comment.
9831         (target_search_memory): Unconditionally delegate.
9832         * target.h (struct target_ops) <to_search_memory>: Use
9833         TARGET_DEFAULT_FUNC.
9834
9835 2014-02-19  Tom Tromey  <tromey@redhat.com>
9836
9837         * auxv.c (default_auxv_parse): No longer static.
9838         (target_auxv_parse): Unconditionally delegate.
9839         * auxv.h (default_auxv_parse): Declare.
9840         * target-delegates.c: Rebuild.
9841         * target.c: Include auxv.h.
9842         * target.h (struct target_ops) <to_auxv_parse>: Use
9843         TARGET_DEFAULT_FUNC.
9844
9845 2014-02-19  Tom Tromey  <tromey@redhat.com>
9846
9847         * target-delegates.c: Rebuild.
9848         * target.c (target_memory_map): Unconditionally delegate.
9849         * target.h (struct target_ops) <to_memory_map>: Use
9850         TARGET_DEFAULT_RETURN.
9851
9852 2014-02-19  Tom Tromey  <tromey@redhat.com>
9853
9854         * target-delegates.c: Rebuild.
9855         * target.c (target_thread_alive): Unconditionally delegate.
9856         * target.h (struct target_ops) <to_thread_alive>: Use
9857         TARGET_DEFAULT_RETURN.
9858
9859 2014-02-19  Tom Tromey  <tromey@redhat.com>
9860
9861         * target-delegates.c: Rebuild.
9862         * target.c (target_save_record): Unconditionally delegate.
9863         * target.h (struct target_ops) <to_save_record>: Use
9864         TARGET_DEFAULT_NORETURN.
9865
9866 2014-02-19  Tom Tromey  <tromey@redhat.com>
9867
9868         * target-delegates.c: Rebuild.
9869         * target.c (target_delete_record): Unconditionally delegate.
9870         * target.h (struct target_ops) <to_delete_record>: Use
9871         TARGET_DEFAULT_NORETURN.
9872
9873 2014-02-19  Tom Tromey  <tromey@redhat.com>
9874
9875         * target-delegates.c: Rebuild.
9876         * target.c (target_record_is_replaying): Unconditionally
9877         delegate.
9878         * target.h (struct target_ops) <to_record_is_replaying>: Use
9879         TARGET_DEFAULT_RETURN.
9880
9881 2014-02-19  Tom Tromey  <tromey@redhat.com>
9882
9883         * target-delegates.c: Rebuild.
9884         * target.c (target_goto_record_begin): Unconditionally delegate.
9885         * target.h (struct target_ops) <to_goto_record_begin>: Use
9886         TARGET_DEFAULT_NORETURN.
9887
9888 2014-02-19  Tom Tromey  <tromey@redhat.com>
9889
9890         * target-delegates.c: Rebuild.
9891         * target.c (target_goto_record_end): Unconditionally delegate.
9892         * target.h (struct target_ops) <to_goto_record_end>: Use
9893         TARGET_DEFAULT_NORETURN.
9894
9895 2014-02-19  Tom Tromey  <tromey@redhat.com>
9896
9897         * target-delegates.c: Rebuild.
9898         * target.c (target_goto_record): Unconditionally delegate.
9899         * target.h (struct target_ops) <to_goto_record>: Use
9900         TARGET_DEFAULT_NORETURN.
9901
9902 2014-02-19  Tom Tromey  <tromey@redhat.com>
9903
9904         * target-delegates.c: Rebuild.
9905         * target.c (target_insn_history): Unconditionally delegate.
9906         * target.h (struct target_ops) <to_insn_history>: Use
9907         TARGET_DEFAULT_NORETURN.
9908
9909 2014-02-19  Tom Tromey  <tromey@redhat.com>
9910
9911         * target-delegates.c: Rebuild.
9912         * target.c (target_insn_history_from): Unconditionally delegate.
9913         * target.h (struct target_ops) <to_insn_history_from>: Use
9914         TARGET_DEFAULT_NORETURN.
9915
9916 2014-02-19  Tom Tromey  <tromey@redhat.com>
9917
9918         * target-delegates.c: Rebuild.
9919         * target.c (target_insn_history_range): Unconditionally delegate.
9920         * target.h (struct target_ops) <to_insn_history_range>: Use
9921         TARGET_DEFAULT_NORETURN.
9922
9923 2014-02-19  Tom Tromey  <tromey@redhat.com>
9924
9925         * target-delegates.c: Rebuild.
9926         * target.c (target_call_history): Unconditionally delegate.
9927         * target.h (struct target_ops) <to_call_history>: Use
9928         TARGET_DEFAULT_NORETURN.
9929
9930 2014-02-19  Tom Tromey  <tromey@redhat.com>
9931
9932         * target-delegates.c: Rebuild.
9933         * target.c (target_call_history_from): Unconditionally delegate.
9934         * target.h (struct target_ops) <to_call_history_from>: Use
9935         TARGET_DEFAULT_NORETURN.
9936
9937 2014-02-19  Tom Tromey  <tromey@redhat.com>
9938
9939         * target-delegates.c: Rebuild.
9940         * target.c (target_call_history_range): Unconditionally delegate.
9941         * target.h (struct target_ops) <to_call_history_range>: Use
9942         TARGET_DEFAULT_NORETURN.
9943
9944 2014-02-19  Tom Tromey  <tromey@redhat.com>
9945
9946         * target-delegates.c: Rebuild.
9947         * target.c (target_verify_memory): Unconditionally delegate.
9948         * target.h (struct target_ops) <to_verify_memory>: Use
9949         TARGET_DEFAULT_NORETURN.
9950
9951 2014-02-19  Tom Tromey  <tromey@redhat.com>
9952
9953         * target-delegates.c: Rebuild.
9954         * target.c (target_core_of_thread): Unconditionally delegate.
9955         * target.h (struct target_ops) <to_core_of_thread>: Use
9956         TARGET_DEFAULT_RETURN.
9957
9958 2014-02-19  Tom Tromey  <tromey@redhat.com>
9959
9960         * target-delegates.c: Rebuild.
9961         * target.c (target_flash_done): Unconditionally delegate.
9962         * target.h (struct target_ops) <to_flash_done>: Use
9963         TARGET_DEFAULT_NORETURN.
9964
9965 2014-02-19  Tom Tromey  <tromey@redhat.com>
9966
9967         * target-delegates.c: Rebuild.
9968         * target.c (target_flash_erase): Unconditionally delegate.
9969         * target.h (struct target_ops) <to_flash_erase>: Use
9970         TARGET_DEFAULT_NORETURN.
9971
9972 2014-02-19  Tom Tromey  <tromey@redhat.com>
9973
9974         * target-delegates.c: Rebuild.
9975         * target.c (target_get_section_table): Unconditionally delegate.
9976         * target.h (struct target_ops) <to_get_section_table>: Use
9977         TARGET_DEFAULT_RETURN.
9978
9979 2014-02-19  Tom Tromey  <tromey@redhat.com>
9980
9981         * target-delegates.c: Rebuild.
9982         * target.c (target_pid_to_str): Unconditionally delegate.
9983         (init_dummy_target): Don't initialize to_pid_to_str.
9984         (default_pid_to_str): Rename from dummy_pid_to_str.
9985         * target.h (struct target_ops) <to_pid_to_str>: Use
9986         TARGET_DEFAULT_FUNC.
9987
9988 2014-02-19  Tom Tromey  <tromey@redhat.com>
9989
9990         * target-delegates.c: Rebuild.
9991         * target.c (target_find_new_threads): Unconditionally delegate.
9992         * target.h (struct target_ops) <to_find_new_threads>: Use
9993         TARGET_DEFAULT_RETURN.
9994
9995 2014-02-19  Tom Tromey  <tromey@redhat.com>
9996
9997         * target-delegates.c: Rebuild.
9998         * target.c (target_program_signals): Unconditionally delegate.
9999         * target.h (struct target_ops) <to_program_signals>: Use
10000         TARGET_DEFAULT_IGNORE.
10001
10002 2014-02-19  Tom Tromey  <tromey@redhat.com>
10003
10004         * target-delegates.c: Rebuild.
10005         * target.c (target_pass_signals): Unconditionally delegate.
10006         * target.h (struct target_ops) <to_pass_signals>: Use
10007         TARGET_DEFAULT_IGNORE.
10008
10009 2014-02-19  Tom Tromey  <tromey@redhat.com>
10010
10011         * target-delegates.c: Rebuild.
10012         * target.c (default_mourn_inferior): New function.
10013         (target_mourn_inferior): Unconditionally delegate.
10014         * target.h (struct target_ops) <to_mourn_inferior>: Use
10015         TARGET_DEFAULT_FUNC.
10016
10017 2014-02-19  Tom Tromey  <tromey@redhat.com>
10018
10019         * target-delegates.c: Rebuild.
10020         * target.c (default_follow_fork): New function.
10021         (target_follow_fork): Unconditionally delegate.
10022         * target.h (struct target_ops) <to_follow_fork>: Use
10023         TARGET_DEFAULT_FUNC.
10024
10025 2014-02-19  Tom Tromey  <tromey@redhat.com>
10026
10027         * target-delegates.c: Rebuild.
10028         * target.c (target_kill): Unconditionally delegate.
10029         * target.h (struct target_ops) <to_kill>: Use
10030         TARGET_DEFAULT_NORETURN.
10031
10032 2014-02-19  Tom Tromey  <tromey@redhat.com>
10033
10034         * target-delegates.c: Rebuild.
10035         * target.c (target_masked_watch_num_registers): Unconditionally
10036         delegate.
10037         * target.h (struct target_ops) <to_masked_watch_num_registers>:
10038         Use TARGET_DEFAULT_RETURN.
10039
10040 2014-02-19  Tom Tromey  <tromey@redhat.com>
10041
10042         * target-delegates.c: Rebuild.
10043         * target.c (target_remove_mask_watchpoint): Unconditionally
10044         delegate.
10045         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10046         TARGET_DEFAULT_RETURN.
10047
10048 2014-02-19  Tom Tromey  <tromey@redhat.com>
10049
10050         * target-delegates.c: Rebuild.
10051         * target.c (target_insert_mask_watchpoint): Unconditionally
10052         delegate.
10053         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10054         TARGET_DEFAULT_RETURN.
10055
10056 2014-02-19  Tom Tromey  <tromey@redhat.com>
10057
10058         * target-delegates.c: Rebuild.
10059         * target.c (target_ranged_break_num_registers): Unconditionally
10060         delegate.
10061         * target.h (struct target_ops) <to_ranged_break_num_registers>:
10062         Use TARGET_DEFAULT_RETURN.
10063
10064 2014-02-19  Tom Tromey  <tromey@redhat.com>
10065
10066         * target-delegates.c: Rebuild.
10067         * target.c (target_fetch_registers): Unconditionally delegate.
10068         * target.h (struct target_ops) <to_fetch_registers>: Use
10069         TARGET_DEFAULT_NORETURN.
10070
10071 2014-02-19  Tom Tromey  <tromey@redhat.com>
10072
10073         * target-delegates.c: Rebuild.
10074         * target.c (update_current_target): Don't inherit or default
10075         to_stop.
10076         * target.h (struct target_ops) <to_stop>: Use
10077         TARGET_DEFAULT_IGNORE.
10078
10079 2014-02-19  Tom Tromey  <tromey@redhat.com>
10080
10081         * target-delegates.c: Rebuild.
10082         * target.c (update_current_target): Don't inherit or default
10083         to_can_run_breakpoint_commands.
10084         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10085         Use TARGET_DEFAULT_RETURN.
10086
10087 2014-02-19  Tom Tromey  <tromey@redhat.com>
10088
10089         * target-delegates.c: Rebuild.
10090         * target.c (update_current_target): Don't inherit or default
10091         to_supports_evaluation_of_breakpoint_conditions.
10092         * target.h (struct target_ops)
10093         <to_supports_evaluation_of_breakpoint_conditions>: Use
10094         TARGET_DEFAULT_RETURN.
10095
10096 2014-02-19  Tom Tromey  <tromey@redhat.com>
10097
10098         * target-delegates.c: Rebuild.
10099         * target.c (update_current_target): Don't inherit or default
10100         to_augmented_libraries_svr4_read.
10101         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10102         Use TARGET_DEFAULT_RETURN.
10103
10104 2014-02-19  Tom Tromey  <tromey@redhat.com>
10105
10106         * target-delegates.c: Rebuild.
10107         * target.c (update_current_target): Don't inherit or default
10108         to_can_use_agent.
10109         * target.h (struct target_ops) <to_can_use_agent>: Use
10110         TARGET_DEFAULT_RETURN.
10111
10112 2014-02-19  Tom Tromey  <tromey@redhat.com>
10113
10114         * target-delegates.c: Rebuild.
10115         * target.c (update_current_target): Don't inherit or default
10116         to_use_agent.
10117         * target.h (struct target_ops) <to_use_agent>: Use
10118         TARGET_DEFAULT_NORETURN.
10119
10120 2014-02-19  Tom Tromey  <tromey@redhat.com>
10121
10122         * target-delegates.c: Rebuild.
10123         * target.c (update_current_target): Don't inherit or default
10124         to_traceframe_info.
10125         (return_null): Remove.
10126         * target.h (struct target_ops) <to_traceframe_info>: Use
10127         TARGET_DEFAULT_RETURN.
10128
10129 2014-02-19  Tom Tromey  <tromey@redhat.com>
10130
10131         * target-delegates.c: Rebuild.
10132         * target.c (update_current_target): Don't inherit or default
10133         to_static_tracepoint_markers_by_strid.
10134         * target.h (struct target_ops)
10135         <to_static_tracepoint_markers_by_strid>: Use
10136         TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
10143         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10144         Use TARGET_DEFAULT_RETURN.
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_permissions.
10151         * target.h (struct target_ops) <to_set_permissions>: 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_tib_address.
10159         * target.h (struct target_ops) <to_get_tib_address>: Use
10160         TARGET_DEFAULT_NORETURN.
10161
10162 2014-02-19  Tom Tromey  <tromey@redhat.com>
10163
10164         * target-delegates.c: Rebuild.
10165         * target.c (update_current_target): Don't inherit or default
10166         to_set_trace_notes.
10167         * target.h (struct target_ops) <to_set_trace_notes>: Use
10168         TARGET_DEFAULT_RETURN.
10169
10170 2014-02-19  Tom Tromey  <tromey@redhat.com>
10171
10172         * target-delegates.c: Rebuild.
10173         * target.c (update_current_target): Don't initialize
10174         to_set_trace_buffer_size.
10175         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10176         TARGET_DEFAULT_IGNORE.
10177
10178 2014-02-19  Tom Tromey  <tromey@redhat.com>
10179
10180         * target-delegates.c: Rebuild.
10181         * target.c (update_current_target): Don't inherit or default
10182         to_set_circular_trace_buffer.
10183         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10184         TARGET_DEFAULT_IGNORE.
10185
10186 2014-02-19  Tom Tromey  <tromey@redhat.com>
10187
10188         * target-delegates.c: Rebuild.
10189         * target.c (update_current_target): Don't inherit or default
10190         to_set_disconnected_tracing.
10191         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10192         TARGET_DEFAULT_IGNORE.
10193
10194 2014-02-19  Tom Tromey  <tromey@redhat.com>
10195
10196         * target-delegates.c: Rebuild.
10197         * target.c (update_current_target): Don't inherit or default
10198         to_get_min_fast_tracepoint_insn_len.
10199         (return_minus_one): Remove.
10200         * target.h (struct target_ops)
10201         <to_get_min_fast_tracepoint_insn_len>: 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_get_raw_trace_data.
10208         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10209         TARGET_DEFAULT_NORETURN.
10210
10211 2014-02-19  Tom Tromey  <tromey@redhat.com>
10212
10213         * target-delegates.c: Rebuild.
10214         * target.c (update_current_target): Don't inherit or default
10215         to_upload_trace_state_variables.
10216         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10217         Use TARGET_DEFAULT_RETURN.
10218
10219 2014-02-19  Tom Tromey  <tromey@redhat.com>
10220
10221         * target-delegates.c: Rebuild.
10222         * target.c (update_current_target): Don't inherit or default
10223         to_upload_tracepoints.
10224         * target.h (struct target_ops) <to_upload_tracepoints>: Use
10225         TARGET_DEFAULT_RETURN.
10226
10227 2014-02-19  Tom Tromey  <tromey@redhat.com>
10228
10229         * target-delegates.c: Rebuild.
10230         * target.c (update_current_target): Don't inherit or default
10231         to_save_trace_data.
10232         * target.h (struct target_ops) <to_save_trace_data>: Use
10233         TARGET_DEFAULT_NORETURN.
10234
10235 2014-02-19  Tom Tromey  <tromey@redhat.com>
10236
10237         * target-delegates.c: Rebuild.
10238         * target.c (update_current_target): Don't inherit or default
10239         to_get_trace_state_variable_value.
10240         * target.h (struct target_ops)
10241         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10242
10243 2014-02-19  Tom Tromey  <tromey@redhat.com>
10244
10245         * target-delegates.c: Rebuild.
10246         * target.c (update_current_target): Don't inherit or default
10247         to_trace_find.
10248         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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_trace_stop.
10255         * target.h (struct target_ops) <to_trace_stop>: 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_get_tracepoint_status.
10263         * target.h (struct target_ops) <to_get_tracepoint_status>: 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_get_trace_status.
10271         * target.h (struct target_ops) <to_get_trace_status>: Use
10272         TARGET_DEFAULT_RETURN.
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_trace_start.
10279         * target.h (struct target_ops) <to_trace_start>: Use
10280         TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
10287         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10288         Use 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_disable_tracepoint.
10295         * target.h (struct target_ops) <to_disable_tracepoint>: Use
10296         TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
10303         * target.h (struct target_ops) <to_enable_tracepoint>: Use
10304         TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
10311         * target.h (struct target_ops) <to_download_trace_state_variable>:
10312         Use TARGET_DEFAULT_NORETURN.
10313
10314 2014-02-19  Tom Tromey  <tromey@redhat.com>
10315
10316         * target-delegates.c: Rebuild.
10317         * target.c (update_current_target): Don't inherit or default
10318         to_can_download_tracepoint.
10319         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10320         TARGET_DEFAULT_RETURN.
10321
10322 2014-02-19  Tom Tromey  <tromey@redhat.com>
10323
10324         * target-delegates.c: Rebuild.
10325         * target.c (update_current_target): Don't inherit or default
10326         to_download_tracepoint.
10327         * target.h (struct target_ops) <to_download_tracepoint>: Use
10328         TARGET_DEFAULT_NORETURN.
10329
10330 2014-02-19  Tom Tromey  <tromey@redhat.com>
10331
10332         * target-delegates.c: Rebuild.
10333         * target.c (update_current_target): Don't inherit or default
10334         to_trace_init.
10335         * target.h (struct target_ops) <to_trace_init>: Use
10336         TARGET_DEFAULT_RETURN.
10337
10338 2014-02-19  Tom Tromey  <tromey@redhat.com>
10339
10340         * target-delegates.c: Rebuild.
10341         * target.c (update_current_target): Don't inherit or default
10342         to_supports_string_tracing.
10343         * target.h (struct target_ops) <to_supports_string_tracing>: Use
10344         TARGET_DEFAULT_RETURN.
10345
10346 2014-02-19  Tom Tromey  <tromey@redhat.com>
10347
10348         * target-delegates.c: Rebuild.
10349         * target.c (update_current_target): Don't inherit or default
10350         to_supports_enable_disable_tracepoint.
10351         * target.h (struct target_ops)
10352         <to_supports_enable_disable_tracepoint>: Use
10353         TARGET_DEFAULT_RETURN.
10354
10355 2014-02-19  Tom Tromey  <tromey@redhat.com>
10356
10357         * target-delegates.c: Rebuild.
10358         * target.c (update_current_target): Don't inherit or default
10359         to_supports_multi_process.
10360         * target.h (struct target_ops) <to_supports_multi_process>: Use
10361         TARGET_DEFAULT_RETURN.
10362
10363 2014-02-19  Tom Tromey  <tromey@redhat.com>
10364
10365         * target-delegates.c: Rebuild.
10366         * target.c (update_current_target): Don't inherit or default
10367         to_get_ada_task_ptid.
10368         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10369         TARGET_DEFAULT_FUNC.
10370
10371 2014-02-19  Tom Tromey  <tromey@redhat.com>
10372
10373         * target-delegates.c: Rebuild.
10374         * target.c (update_current_target): Don't inherit or default
10375         to_thread_architecture.
10376         * target.h (struct target_ops) <to_thread_architecture>: Use
10377         TARGET_DEFAULT_FUNC.
10378
10379 2014-02-19  Tom Tromey  <tromey@redhat.com>
10380
10381         * target-delegates.c: Rebuild.
10382         * target.c (update_current_target): Don't inherit or default
10383         to_execution_direction.
10384         * target.h (struct target_ops) <to_execution_direction>: Use
10385         TARGET_DEFAULT_FUNC.
10386
10387 2014-02-19  Tom Tromey  <tromey@redhat.com>
10388
10389         * target-delegates.c: Rebuild.
10390         * target.c (update_current_target): Don't inherit or default
10391         to_can_execute_reverse.
10392         * target.h (struct target_ops) <to_can_execute_reverse>: Use
10393         TARGET_DEFAULT_RETURN.
10394         (target_can_execute_reverse): Unconditionally delegate.
10395
10396 2014-02-19  Tom Tromey  <tromey@redhat.com>
10397
10398         * target-delegates.c: Rebuild.
10399         * target.c (update_current_target): Don't inherit or default
10400         to_goto_bookmark.
10401         (dummy_goto_bookmark): Remove.
10402         (init_dummy_target): Don't inherit or default to_goto_bookmark.
10403         * target.h (struct target_ops) <to_goto_bookmark>: Use
10404         TARGET_DEFAULT_NORETURN.
10405
10406 2014-02-19  Tom Tromey  <tromey@redhat.com>
10407
10408         * target-delegates.c: Rebuild.
10409         * target.c (update_current_target): Don't inherit or default
10410         to_get_bookmark.
10411         (dummy_get_bookmark): Remove.
10412         (init_dummy_target): Don't inherit or default to_get_bookmark.
10413         * target.h (struct target_ops) <to_get_bookmark>: Use
10414         TARGET_DEFAULT_NORETURN
10415
10416 2014-02-19  Tom Tromey  <tromey@redhat.com>
10417
10418         * target-delegates.c: Rebuild.
10419         * target.c (update_current_target): Don't inherit or default
10420         to_make_corefile_notes.
10421         (init_dummy_target): Don't initialize to_make_corefile_notes.
10422         * target.h (struct target_ops) <to_make_corefile_notes>: Use
10423         TARGET_DEFAULT_FUNC.
10424
10425 2014-02-19  Tom Tromey  <tromey@redhat.com>
10426
10427         * target-delegates.c: Rebuild.
10428         * target.c (update_current_target): Don't inherit or default
10429         to_find_memory_regions.
10430         (init_dummy_target): Don't initialize to_find_memory_regions.
10431         * target.h (struct target_ops) <to_find_memory_regions>: Use
10432         TARGET_DEFAULT_FUNC.
10433
10434 2014-02-19  Tom Tromey  <tromey@redhat.com>
10435
10436         * target-delegates.c: Rebuild.
10437         * target.c (update_current_target): Don't inherit or default
10438         to_log_command.
10439         * target.h (struct target_ops) <to_log_command>: Use
10440         TARGET_DEFAULT_IGNORE.
10441         (target_log_command): Unconditionally delegate.
10442
10443 2014-02-19  Tom Tromey  <tromey@redhat.com>
10444
10445         * target-delegates.c: Rebuild.
10446         * target.c (update_current_target): Don't inherit or default
10447         to_pid_to_exec_file.
10448         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10449         TARGET_DEFAULT_RETURN.
10450
10451 2014-02-19  Tom Tromey  <tromey@redhat.com>
10452
10453         * target-delegates.c: Rebuild.
10454         * target.c (update_current_target): Don't inherit or default
10455         to_thread_name.
10456         (target_thread_name): Unconditionally delegate.
10457         * target.h (struct target_ops) <to_thread_name>: Use
10458         TARGET_DEFAULT_RETURN.
10459
10460 2014-02-19  Tom Tromey  <tromey@redhat.com>
10461
10462         * target-delegates.c: Rebuild.
10463         * target.c (update_current_target): Don't inherit or default
10464         to_extra_thread_info.
10465         * target.h (struct target_ops) <to_extra_thread_info>: Use
10466         TARGET_DEFAULT_RETURN.
10467
10468 2014-02-19  Tom Tromey  <tromey@redhat.com>
10469
10470         * target-delegates.c: Rebuild.
10471         * target.c (update_current_target): Don't inherit or default
10472         to_has_exited.
10473         * target.h (struct target_ops) <to_has_exited>: Use
10474         TARGET_DEFAULT_RETURN..
10475
10476 2014-02-19  Tom Tromey  <tromey@redhat.com>
10477
10478         * target-delegates.c: Rebuild.
10479         * target.c (update_current_target): Don't inherit or default
10480         to_set_syscall_catchpoint.
10481         (return_one): Remove.
10482         * target.h (struct target_ops) <to_set_syscall_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_exec_catchpoint.
10490         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10491         TARGET_DEFAULT_RETURN.
10492
10493 2014-01-08  Tom Tromey  <tromey@redhat.com>
10494
10495         * target-delegates.c: Rebuild.
10496         * target.c (update_current_target): Don't inherit or default
10497         to_insert_exec_catchpoint.
10498         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10499         TARGET_DEFAULT_RETURN.
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_remove_vfork_catchpoint.
10506         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10507         TARGET_DEFAULT_RETURN.
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_insert_vfork_catchpoint.
10514         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10515         TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
10522         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10523         TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
10530         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10531         TARGET_DEFAULT_RETURN.
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_post_startup_inferior.
10538         * target.h (struct target_ops) <to_post_startup_inferior>: 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_load.
10546         * target.h (struct target_ops) <to_load>: Use
10547         TARGET_DEFAULT_NORETURN.
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_info.
10554         * target.h (struct target_ops) <to_terminal_info>: Use
10555         TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
10562         * target.h (struct target_ops) <to_terminal_save_ours>: Use
10563         TARGET_DEFAULT_IGNORE.
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_terminal_ours.
10570         * target.h (struct target_ops) <to_terminal_ours>: Use
10571         TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
10578         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10579         TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
10586         * target.h (struct target_ops) <to_terminal_inferior>: Use
10587         TARGET_DEFAULT_IGNORE.
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_terminal_init.
10594         * target.h (struct target_ops) <to_terminal_init>: Use
10595         TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
10602         * target.h (struct target_ops)
10603         <to_can_accel_watchpoint_condition>: Use 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_region_ok_for_hw_watchpoint.
10610         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10611         Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
10618         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10619         Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
10626         * target.h (struct target_ops) <to_remove_watchpoint>: Use
10627         TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
10634         * target.h (struct target_ops) <to_insert_watchpoint>: Use
10635         TARGET_DEFAULT_RETURN.
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_remove_hw_breakpoint.
10642         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10643         TARGET_DEFAULT_RETURN.
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_insert_hw_breakpoint.
10650         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10651         TARGET_DEFAULT_RETURN.
10652
10653 2014-02-19  Tom Tromey  <tromey@redhat.com>
10654
10655         * target-delegates.c: Rebuild.
10656         * target.c (update_current_target): Don't inherit or default
10657         to_can_use_hw_breakpoint.
10658         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10659         TARGET_DEFAULT_RETURN.
10660
10661 2014-02-19  Tom Tromey  <tromey@redhat.com>
10662
10663         * target-delegates.c: Rebuild.
10664         * target.c (update_current_target): Don't inherit or default
10665         to_files_info.
10666         * target.h (struct target_ops) <to_files_info>: Use
10667         TARGET_DEFAULT_IGNORE.
10668
10669 2014-02-19  Tom Tromey  <tromey@redhat.com>
10670
10671         * target-delegates.c: Rebuild.
10672         * target.c (update_current_target): Don't inherit or default
10673         to_store.
10674         * target.h (struct target_ops) <to_store>: Use
10675         TARGET_DEFAULT_NORETURN.
10676
10677 2014-02-19  Tom Tromey  <tromey@redhat.com>
10678
10679         * target-delegates.c: Rebuild.
10680         * target.c (update_current_target): Don't inherit or default
10681         to_post_attach.
10682         * target.h (struct target_ops) <to_post_attach>: Use
10683         TARGET_DEFAULT_IGNORE.
10684
10685 2014-02-19  Tom Tromey  <tromey@redhat.com>
10686
10687         * target-delegates.c: Rebuild.
10688         * target.c (update_current_target): Don't inherit or default
10689         to_rcmd.
10690         (default_rcmd): New function.
10691         (do_monitor_command): Unconditionally delegate.
10692         * target.h (struct target_ops) <to_rmcd>: Use
10693         TARGET_DEFAULT_FUNC.
10694
10695 2014-02-19  Tom Tromey  <tromey@redhat.com>
10696
10697         * target-delegates.c: Rebuild.
10698         * target.c (init_dummy_target): Don't initialize to_attach.
10699         (target_attach): Unconditionally delegate.
10700         * target.h (struct target_ops) <to_attach>: Use
10701         TARGET_DEFAULT_FUNC.
10702
10703 2014-02-19  Tom Tromey  <tromey@redhat.com>
10704
10705         * target-delegates.c: Rebuild.
10706         * target.c (target_detach): Unconditionally delegate.
10707         (init_dummy_target): Don't initialize to_detach.
10708         * target.h (struct target_ops) <to_detach>: Use
10709         TARGET_DEFAULT_IGNORE.
10710
10711 2014-02-19  Tom Tromey  <tromey@redhat.com>
10712
10713         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10714         Add argument.
10715         (target_augmented_libraries_svr4_read): Add argument.
10716         * target.c (update_current_target): Update.
10717         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10718         argument.
10719
10720 2014-02-19  Tom Tromey  <tromey@redhat.com>
10721
10722         * target.h (struct target_ops) <to_call_history_range>: Add
10723         argument.
10724         * target.c (target_call_history_range): Add argument.
10725         * record-btrace.c (record_btrace_call_history_range): Add 'self'
10726         argument.
10727         (record_btrace_call_history_from): Update.
10728
10729 2014-02-19  Tom Tromey  <tromey@redhat.com>
10730
10731         * target.h (struct target_ops) <to_call_history_from>: Add
10732         argument.
10733         * target.c (target_call_history_from): Add argument.
10734         * record-btrace.c (record_btrace_call_history_from): Add 'self'
10735         argument.
10736
10737 2014-02-19  Tom Tromey  <tromey@redhat.com>
10738
10739         * target.h (struct target_ops) <to_call_history>: Add argument.
10740         * target.c (target_call_history): Add argument.
10741         * record-btrace.c (record_btrace_call_history): Add 'self'
10742         argument.
10743
10744 2014-02-19  Tom Tromey  <tromey@redhat.com>
10745
10746         * target.h (struct target_ops) <to_insn_history_range>: Add
10747         argument.
10748         * target.c (target_insn_history_range): Add argument.
10749         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10750         argument.
10751         (record_btrace_insn_history_from): Update.
10752
10753 2014-02-19  Tom Tromey  <tromey@redhat.com>
10754
10755         * target.h (struct target_ops) <to_insn_history_from>: Add
10756         argument.
10757         * target.c (target_insn_history_from): Add argument.
10758         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10759         argument.
10760
10761 2014-02-19  Tom Tromey  <tromey@redhat.com>
10762
10763         * target.h (struct target_ops) <to_insn_history>: Add argument.
10764         * target.c (target_insn_history): Add argument.
10765         * record-btrace.c (record_btrace_insn_history): Add 'self'
10766         argument.
10767
10768 2014-02-19  Tom Tromey  <tromey@redhat.com>
10769
10770         * target.h (struct target_ops) <to_goto_record>: Add argument.
10771         * target.c (target_goto_record): Add argument.
10772         * record-full.c (record_full_goto): Add 'self' argument.
10773         * record-btrace.c (record_btrace_goto): Add 'self' argument.
10774
10775 2014-02-19  Tom Tromey  <tromey@redhat.com>
10776
10777         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10778         * target.c (target_goto_record_end): Add argument.
10779         * record-full.c (record_full_goto_end): Add 'self' argument.
10780         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10781
10782 2014-02-19  Tom Tromey  <tromey@redhat.com>
10783
10784         * target.h (struct target_ops) <to_goto_record_begin>: Add
10785         argument.
10786         * target.c (target_goto_record_begin): Add argument.
10787         * record-full.c (record_full_goto_begin): Add 'self' argument.
10788         * record-btrace.c (record_btrace_goto_begin): Add 'self'
10789         argument.
10790
10791 2014-02-19  Tom Tromey  <tromey@redhat.com>
10792
10793         * target.h (struct target_ops) <to_record_is_replaying>: Add
10794         argument.
10795         * target.c (target_record_is_replaying): Add argument.
10796         * record-full.c (record_full_is_replaying): Add 'self' argument.
10797         * record-btrace.c (record_btrace_is_replaying): Add 'self'
10798         argument.
10799         (record_btrace_xfer_partial, record_btrace_store_registers)
10800         (record_btrace_prepare_to_store, record_btrace_resume)
10801         (record_btrace_wait, record_btrace_decr_pc_after_break)
10802         (record_btrace_find_new_threads, record_btrace_thread_alive):
10803         Update.
10804
10805 2014-02-19  Tom Tromey  <tromey@redhat.com>
10806
10807         * target.h (struct target_ops) <to_delete_record>: Add argument.
10808         * target.c (target_delete_record): Add argument.
10809         * record-full.c (record_full_delete): Add 'self' argument.
10810
10811 2014-02-19  Tom Tromey  <tromey@redhat.com>
10812
10813         * target.h (struct target_ops) <to_save_record>: Add argument.
10814         * target.c (target_save_record): Add argument.
10815         * record-full.c (record_full_save): Add 'self' argument.
10816         (record_full_save): Add 'self' argument.
10817
10818 2014-02-19  Tom Tromey  <tromey@redhat.com>
10819
10820         * target.h (struct target_ops) <to_info_record>: Add argument.
10821         * target.c (target_info_record): Add argument.
10822         * record.c (info_record_command): Add argument.
10823         * record-full.c (record_full_info): Add 'self' argument.
10824         * record-btrace.c (record_btrace_info): Add 'self' argument.
10825
10826 2014-02-19  Tom Tromey  <tromey@redhat.com>
10827
10828         * target.h (struct target_ops) <to_stop_recording>: Add argument.
10829         * target.c (target_stop_recording): Add argument.
10830         * record.c (record_stop): Add argument.
10831         * record-btrace.c (record_btrace_stop_recording): Add 'self'
10832         argument.
10833
10834 2014-02-19  Tom Tromey  <tromey@redhat.com>
10835
10836         * target.h (struct target_ops) <to_read_btrace>: Add argument.
10837         * target.c (struct target_ops) <to_read_btrace>: Add argument.
10838         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10839         argument.
10840         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10841         (_initialize_amd64_linux_nat): Use it.
10842         * i386-linux-nat.c (i386_linux_read_btrace): New function.
10843         (_initialize_i386_linux_nat): Use it.
10844
10845 2014-02-19  Tom Tromey  <tromey@redhat.com>
10846
10847         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10848         * target.c (target_teardown_btrace): Add argument.
10849         * remote.c (remote_teardown_btrace): Add 'self' argument.
10850         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10851         argument.
10852         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10853         argument.
10854
10855 2014-02-19  Tom Tromey  <tromey@redhat.com>
10856
10857         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10858         * target.c (target_disable_btrace): Add argument.
10859         * remote.c (remote_disable_btrace): Add 'self' argument.
10860         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10861         argument.
10862         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10863         argument.
10864
10865 2014-02-19  Tom Tromey  <tromey@redhat.com>
10866
10867         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10868         * target.c (target_enable_btrace): Add argument.
10869         * remote.c (remote_enable_btrace): Add 'self' argument.
10870         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10871         argument.
10872         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10873         argument.
10874
10875 2014-02-19  Tom Tromey  <tromey@redhat.com>
10876
10877         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10878         (target_can_use_agent): Add argument.
10879         * target.c (update_current_target): Update.
10880         * remote.c (remote_can_use_agent): Add 'self' argument.
10881         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10882
10883 2014-02-19  Tom Tromey  <tromey@redhat.com>
10884
10885         * target.h (struct target_ops) <to_use_agent>: Add argument.
10886         (target_use_agent): Add argument.
10887         * target.c (update_current_target): Update.
10888         * remote.c (remote_use_agent): Add 'self' argument.
10889         * inf-child.c (inf_child_use_agent): Add 'self' argument.
10890
10891 2014-02-19  Tom Tromey  <tromey@redhat.com>
10892
10893         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10894         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10895         (target_traceframe_info): Add argument.
10896         * target.c (update_current_target): Update.
10897         * remote.c (remote_traceframe_info): Add 'self' argument.
10898         * ctf.c (ctf_traceframe_info): Add 'self' argument.
10899
10900 2014-02-19  Tom Tromey  <tromey@redhat.com>
10901
10902         * target.h (target_static_tracepoint_markers_by_strid): Add
10903         argument.
10904         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10905         'self' argument.
10906         * target.c (update_current_target): Update.
10907         * remote.c (struct target_ops)
10908         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10909         * linux-nat.c (struct target_ops)
10910         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10911
10912 2014-02-19  Tom Tromey  <tromey@redhat.com>
10913
10914         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10915         Add argument.
10916         (target_static_tracepoint_marker_at): Add argument.
10917         * target.c (update_current_target): Update.
10918         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10919         argument.
10920
10921 2014-02-19  Tom Tromey  <tromey@redhat.com>
10922
10923         * target.h (struct target_ops) <to_set_permissions>: Add argument.
10924         (target_set_permissions): Add argument.
10925         * target.c (update_current_target): Update.
10926         * remote.c (remote_set_permissions): Add 'self' argument.
10927         (remote_start_remote): Update.
10928
10929 2014-02-19  Tom Tromey  <tromey@redhat.com>
10930
10931         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10932         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10933         (target_get_tib_address): Add argument.
10934         * target.c (update_current_target): Update.
10935         * remote.c (remote_get_tib_address): Add 'self' argument.
10936
10937 2014-02-19  Tom Tromey  <tromey@redhat.com>
10938
10939         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10940         (target_set_trace_notes): Add argument.
10941         * target.c (update_current_target): Update.
10942         * remote.c (remote_set_trace_notes): Add 'self' argument.
10943
10944 2014-02-19  Tom Tromey  <tromey@redhat.com>
10945
10946         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10947         argument.
10948         (target_set_trace_buffer_size): Add argument.
10949         * target.c (update_current_target): Update.
10950         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10951
10952 2014-02-19  Tom Tromey  <tromey@redhat.com>
10953
10954         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10955         argument.
10956         (target_set_circular_trace_buffer): Add argument.
10957         * target.c (update_current_target): Update.
10958         * remote.c (remote_set_circular_trace_buffer): Add 'self'
10959         argument.
10960
10961 2014-02-19  Tom Tromey  <tromey@redhat.com>
10962
10963         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10964         argument.
10965         (target_set_disconnected_tracing): Add argument.
10966         * target.c (update_current_target): Update.
10967         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10968
10969 2014-02-19  Tom Tromey  <tromey@redhat.com>
10970
10971         * target.h (struct target_ops)
10972         <to_get_min_fast_tracepoint_insn_len>: Add argument.
10973         (target_get_min_fast_tracepoint_insn_len): Add argument.
10974         * target.c (update_current_target): Update.
10975         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10976         argument.
10977
10978 2014-02-19  Tom Tromey  <tromey@redhat.com>
10979
10980         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10981         argument.
10982         (target_get_raw_trace_data): Add argument.
10983         * target.c (update_current_target): Update.
10984         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10985
10986 2014-02-19  Tom Tromey  <tromey@redhat.com>
10987
10988         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10989         Add argument.
10990         (target_upload_trace_state_variables): Add argument.
10991         * target.c (update_current_target): Update.
10992         * remote.c (remote_upload_trace_state_variables): Add 'self'
10993         argument.
10994         (remote_start_remote): Update.
10995
10996 2014-02-19  Tom Tromey  <tromey@redhat.com>
10997
10998         * target.h (struct target_ops) <to_upload_tracepoints>: Add
10999         argument.
11000         (target_upload_tracepoints): Add argument.
11001         * target.c (update_current_target): Update.
11002         * remote.c (remote_upload_tracepoints): Add 'self' argument.
11003         (remote_start_remote): Update.
11004
11005 2014-02-19  Tom Tromey  <tromey@redhat.com>
11006
11007         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11008         (target_save_trace_data): Add argument.
11009         * target.c (update_current_target): Update.
11010         * remote.c (remote_save_trace_data): Add 'self' argument.
11011
11012 2014-02-19  Tom Tromey  <tromey@redhat.com>
11013
11014         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11015         argument.
11016         * target.h (struct target_ops)
11017         <to_get_trace_state_variable_value>: Add argument.
11018         (target_get_trace_state_variable_value): Add argument.
11019         * target.c (update_current_target): Update.
11020         * remote.c (remote_get_trace_state_variable_value): Add 'self'
11021         argument.
11022         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11023
11024 2014-02-19  Tom Tromey  <tromey@redhat.com>
11025
11026         * tracepoint.c (tfile_trace_find): Add 'self' argument.
11027         * target.h (struct target_ops) <to_trace_find>: Add argument.
11028         (target_trace_find): Add argument.
11029         * target.c (update_current_target): Update.
11030         * remote.c (remote_trace_find): Add 'self' argument.
11031         * ctf.c (ctf_trace_find): Add 'self' argument.
11032
11033 2014-02-19  Tom Tromey  <tromey@redhat.com>
11034
11035         * target.h (struct target_ops) <to_trace_stop>: Add argument.
11036         (target_trace_stop): Add argument.
11037         * target.c (update_current_target): Update.
11038         * remote.c (remote_trace_stop): Add 'self' argument.
11039
11040 2014-02-19  Tom Tromey  <tromey@redhat.com>
11041
11042         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11043         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11044         argument.
11045         (target_get_tracepoint_status): Add argument.
11046         * target.c (update_current_target): Update.
11047         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11048
11049 2014-02-19  Tom Tromey  <tromey@redhat.com>
11050
11051         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11052         * target.h (struct target_ops) <to_get_trace_status>: Add
11053         argument.
11054         (target_get_trace_status): Add argument.
11055         * target.c (update_current_target): Update.
11056         * remote.c (remote_get_trace_status): Add 'self' argument.
11057         (remote_start_remote, remote_can_download_tracepoint): Update.
11058         * ctf.c (ctf_get_trace_status): Add 'self' argument.
11059
11060 2014-02-19  Tom Tromey  <tromey@redhat.com>
11061
11062         * target.h (struct target_ops) <to_trace_start>: Add argument.
11063         (target_trace_start): Add argument.
11064         * target.c (update_current_target): Update.
11065         * remote.c (remote_trace_start): Add 'self' argument.
11066
11067 2014-02-19  Tom Tromey  <tromey@redhat.com>
11068
11069         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11070         Add argument.
11071         (target_trace_set_readonly_regions): Add argument.
11072         * target.c (update_current_target): Update.
11073         * remote.c (remote_trace_set_readonly_regions): Add 'self'
11074         argument.
11075
11076 2014-02-19  Tom Tromey  <tromey@redhat.com>
11077
11078         * target.h (struct target_ops) <to_disable_tracepoint>: Add
11079         argument.
11080         (target_disable_tracepoint): Add argument.
11081         * target.c (update_current_target): Update.
11082         * remote.c (remote_disable_tracepoint): Add 'self' argument.
11083
11084 2014-02-19  Tom Tromey  <tromey@redhat.com>
11085
11086         * target.h (struct target_ops) <to_enable_tracepoint>: Add
11087         argument.
11088         (target_enable_tracepoint): Add argument.
11089         * target.c (update_current_target): Update.
11090         * remote.c (remote_enable_tracepoint): Add 'self' argument.
11091
11092 2014-02-19  Tom Tromey  <tromey@redhat.com>
11093
11094         * target.h (struct target_ops) <to_download_trace_state_variable>:
11095         Add argument.
11096         (target_download_trace_state_variable): Add argument.
11097         * target.c (update_current_target): Update.
11098         * remote.c (remote_download_trace_state_variable): Add 'self'
11099         argument.
11100
11101 2014-02-19  Tom Tromey  <tromey@redhat.com>
11102
11103         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11104         argument.
11105         (target_can_download_tracepoint): Add argument.
11106         * target.c (update_current_target): Update.
11107         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11108
11109 2014-02-19  Tom Tromey  <tromey@redhat.com>
11110
11111         * target.h (struct target_ops) <to_download_tracepoint>: Add
11112         argument.
11113         (target_download_tracepoint): Add argument.
11114         * target.c (update_current_target): Update.
11115         * remote.c (remote_download_tracepoint): Add 'self' argument.
11116
11117 2014-02-19  Tom Tromey  <tromey@redhat.com>
11118
11119         * target.h (struct target_ops) <to_trace_init>: Add argument.
11120         (target_trace_init): Add argument.
11121         * target.c (update_current_target): Update.
11122         * remote.c (remote_trace_init): Add 'self' argument.
11123
11124 2014-02-19  Tom Tromey  <tromey@redhat.com>
11125
11126         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11127         * target.c (target_fileio_readlink): Add argument.
11128         * remote.c (remote_hostio_readlink): Add 'self' argument.
11129         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11130
11131 2014-02-19  Tom Tromey  <tromey@redhat.com>
11132
11133         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11134         * target.c (target_fileio_unlink): Add argument.
11135         * remote.c (remote_hostio_unlink): Add 'self' argument.
11136         (remote_file_delete): Update.
11137         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11138
11139 2014-02-19  Tom Tromey  <tromey@redhat.com>
11140
11141         * target.h (struct target_ops) <to_fileio_close>: Add argument.
11142         * target.c (target_fileio_close): Add argument.
11143         * remote.c (remote_hostio_close): Add 'self' argument.
11144         (remote_hostio_close_cleanup): Update.
11145         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11146         Update.
11147         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11148
11149 2014-02-19  Tom Tromey  <tromey@redhat.com>
11150
11151         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11152         * target.c (target_fileio_pread): Add argument.
11153         * remote.c (remote_hostio_pread): Add 'self' argument.
11154         (remote_bfd_iovec_pread, remote_file_get): Update.
11155         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11156
11157 2014-02-19  Tom Tromey  <tromey@redhat.com>
11158
11159         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11160         * target.c (target_fileio_pwrite): Add argument.
11161         * remote.c (remote_hostio_pwrite): Add 'self' argument.
11162         (remote_file_put): Update.
11163         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11164
11165 2014-02-19  Tom Tromey  <tromey@redhat.com>
11166
11167         * target.h (struct target_ops) <to_fileio_open>: Add argument.
11168         * target.c (target_fileio_open): Add argument.
11169         * remote.c (remote_hostio_open): Add 'self' argument.
11170         (remote_bfd_iovec_open): Add 'self' argument.
11171         (remote_file_put): Add 'self' argument.
11172         (remote_file_get): Add 'self' argument.
11173         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11174
11175 2014-02-19  Tom Tromey  <tromey@redhat.com>
11176
11177         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11178         Add argument.
11179         (target_can_run_breakpoint_commands): Add argument.
11180         * target.c (update_current_target): Update.
11181         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11182         argument.
11183         (remote_insert_breakpoint): Add 'self' argument.
11184         (remote_insert_hw_breakpoint): Add 'self' argument.
11185         (remote_can_run_breakpoint_commands): Add 'self' argument.
11186
11187 2014-02-19  Tom Tromey  <tromey@redhat.com>
11188
11189         * target.h (struct target_ops)
11190         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11191         (target_supports_evaluation_of_breakpoint_conditions): Add
11192         argument.
11193         * target.c (update_current_target): Update.
11194         * remote.c (remote_supports_cond_breakpoints): Add 'self'
11195         argument.
11196         (remote_insert_breakpoint): Add 'self' argument.
11197         (remote_insert_hw_breakpoint): Add 'self' argument.
11198         (remote_supports_cond_breakpoints): Add 'self' argument.
11199
11200 2014-02-19  Tom Tromey  <tromey@redhat.com>
11201
11202         * target.h (struct target_ops) <to_supports_string_tracing>: Add
11203         argument.
11204         (target_supports_string_tracing): Add argument.
11205         * target.c (update_current_target): Update.
11206         * remote.c (remote_supports_string_tracing): Add 'self' argument.
11207
11208 2014-02-19  Tom Tromey  <tromey@redhat.com>
11209
11210         * target.h (struct target_ops)
11211         <to_supports_disable_randomization>: Add argument.
11212         * target.c (find_default_supports_disable_randomization): Add
11213         argument.
11214         (target_supports_disable_randomization): Add argument.
11215         (find_default_supports_disable_randomization): Add 'self'
11216         argument.
11217         * remote.c (extended_remote_supports_disable_randomization): Add
11218         'self' argument.
11219         (remote_supports_disable_randomization): Add 'self' argument.
11220         (extended_remote_create_inferior): Update.
11221         * linux-nat.c (linux_nat_supports_disable_randomization): Add
11222         'self' argument.
11223
11224 2014-02-19  Tom Tromey  <tromey@redhat.com>
11225
11226         * target.h (struct target_ops)
11227         <to_supports_enable_disable_tracepoint>: Add argument.
11228         (target_supports_enable_disable_tracepoint): Add argument.
11229         * target.c (update_current_target): Update.
11230         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11231         argument.
11232
11233 2014-02-19  Tom Tromey  <tromey@redhat.com>
11234
11235         * target.h (struct target_ops) <to_supports_multi_process>: Add
11236         argument.
11237         (target_supports_multi_process): Add argument.
11238         * target.c (update_current_target): Update.
11239         * remote.c (remote_supports_multi_process): Add 'self' argument.
11240         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11241         argument.
11242         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11243         argument.
11244
11245 2014-02-19  Tom Tromey  <tromey@redhat.com>
11246
11247         * target.h (struct target_ops) <to_execution_direction>: Add
11248         argument.
11249         (target_execution_direction): Add argument.
11250         * target.c (default_execution_direction): Add 'self' argument.
11251         * record-full.c (record_full_execution_direction): Add 'self'
11252         argument.
11253
11254 2014-02-19  Tom Tromey  <tromey@redhat.com>
11255
11256         * target.h (struct target_ops) <to_can_execute_reverse>: Add
11257         argument.
11258         (target_can_execute_reverse): Add argument.
11259         * remote.c (remote_can_execute_reverse): Add 'self' argument.
11260         * record-full.c (record_full_can_execute_reverse): Add 'self'
11261         argument.
11262         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11263         argument.
11264
11265 2014-02-19  Tom Tromey  <tromey@redhat.com>
11266
11267         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11268         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11269         argument.
11270         (target_get_ada_task_ptid): Add argument.
11271         * target.c (update_current_target): Update.
11272         (default_get_ada_task_ptid): Add 'self' argument.
11273         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11274         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11275         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11276         argument.
11277         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11278         argument.
11279         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11280         argument.
11281         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11282         argument.
11283         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11284         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11285         argument.
11286
11287 2014-02-19  Tom Tromey  <tromey@redhat.com>
11288
11289         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11290         (target_goto_bookmark): Add argument.
11291         * target.c (dummy_goto_bookmark): Add 'self' argument.
11292         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11293
11294 2014-02-19  Tom Tromey  <tromey@redhat.com>
11295
11296         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11297         (target_get_bookmark): Add argument.
11298         * target.c (dummy_get_bookmark): Add 'self' argument.
11299         * record-full.c (record_full_get_bookmark): Add 'self' argument.
11300
11301 2014-02-19  Tom Tromey  <tromey@redhat.com>
11302
11303         * target.h (struct target_ops) <to_make_corefile_notes>: Add
11304         argument.
11305         (target_make_corefile_notes): Add argument.
11306         * target.c (dummy_make_corefile_notes): Add 'self' argument.
11307         * procfs.c (procfs_make_note_section): Add 'self' argument.
11308         (procfs_make_note_section): Add 'self' argument.
11309         (procfs_make_note_section): Add 'self' argument.
11310         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11311         argument.
11312         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11313         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11314         * exec.c (exec_make_note_section): Add 'self' argument.
11315         (exec_make_note_section): Add 'self' argument.
11316
11317 2014-02-19  Tom Tromey  <tromey@redhat.com>
11318
11319         * target.h (struct target_ops) <to_find_memory_regions>: Add
11320         argument.
11321         (target_find_memory_regions): Add argument.
11322         * target.c (dummy_find_memory_regions): Add 'self' argument.
11323         * procfs.c (proc_find_memory_regions): Add 'self' argument.
11324         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11325         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11326         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11327         * exec. (exec_do_find_memory_regions): New global.
11328         (exec_set_find_memory_regions): Rewrite.
11329         (exec_find_memory_regions): New function.
11330         (init_exec_ops): Use exec_find_memory_regions.
11331
11332 2014-02-19  Tom Tromey  <tromey@redhat.com>
11333
11334         * target.h (struct target_ops) <to_supports_non_stop>: Add
11335         argument.
11336         * target.c (find_default_supports_non_stop): Add argument.
11337         (target_supports_non_stop): Add argument.
11338         (find_default_supports_non_stop): Add 'self' argument.
11339         * remote.c (remote_supports_non_stop): Add 'self' argument.
11340         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11341
11342 2014-02-19  Tom Tromey  <tromey@redhat.com>
11343
11344         * target.h (struct target_ops) <to_log_command>: Add argument.
11345         (target_log_command): Add argument.
11346         * serial.h (serial_log_command): Add 'self' argument.
11347         * serial.c (serial_log_command): Add 'self' argument.
11348
11349 2014-02-19  Tom Tromey  <tromey@redhat.com>
11350
11351         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11352         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11353         argument.
11354         (target_pid_to_exec_file): Add argument.
11355         * target.c (debug_to_pid_to_exec_file): Add argument.
11356         (update_current_target): Update.
11357         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11358         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11359         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11360         (linux_handle_extended_wait): Update.
11361         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11362         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11363         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11364         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11365
11366 2014-02-19  Tom Tromey  <tromey@redhat.com>
11367
11368         * target.h (struct target_ops) <to_rcmd>: Add argument.
11369         (target_rcmd): Add argument.
11370         * target.c (debug_to_rcmd): Add argument.
11371         (update_current_target, do_monitor_command): Update.
11372         * remote.c (remote_rcmd): Add 'self' argument.
11373         * monitor.c (monitor_rcmd): Add 'self' argument.
11374
11375 2014-02-19  Tom Tromey  <tromey@redhat.com>
11376
11377         * windows-nat.c (windows_stop): Add 'self' argument.
11378         * target.h (struct target_ops) <to_stop>: Add argument.
11379         * target.c (target_stop): Add argument.
11380         (debug_to_stop): Add argument.
11381         (update_current_target): Update.
11382         * remote.c (remote_stop): Add 'self' argument.
11383         * remote-sim.c (gdbsim_stop): Add 'self' argument.
11384         (gdbsim_cntrl_c): Update.
11385         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11386         * procfs.c (procfs_stop): Add 'self' argument.
11387         * nto-procfs.c (procfs_stop): Add 'self' argument.
11388         * monitor.c (monitor_stop): Add 'self' argument.
11389         (monitor_open): Update.
11390         * linux-nat.c (linux_nat_stop): Add argument.
11391         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11392         * gnu-nat.c (gnu_stop): Add 'self' argument.
11393         * darwin-nat.c (darwin_stop): Add 'self' argument.
11394
11395 2014-02-19  Tom Tromey  <tromey@redhat.com>
11396
11397         * target.h (struct target_ops) <to_thread_name>: Add argument.
11398         * target.c (target_thread_name): Add argument.
11399         (update_current_target): Update.
11400         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11401
11402 2014-02-19  Tom Tromey  <tromey@redhat.com>
11403
11404         * target.h (struct target_ops) <to_extra_thread_info>: Add
11405         argument.
11406         (target_extra_thread_info): Add argument.
11407         * target.c (update_current_target): Update.
11408         * remote.c (remote_threads_extra_info): Add 'self' argument.
11409         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11410         argument.
11411         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11412         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11413         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11414         argument.
11415         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11416         argument.
11417         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11418         argument.
11419         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11420         argument.
11421
11422 2014-02-19  Tom Tromey  <tromey@redhat.com>
11423
11424         * target.h (struct target_ops) <to_program_signals>: Add argument.
11425         * target.c (target_program_signals): Add argument.
11426         * remote.c (remote_program_signals): Add 'self' argument.
11427
11428 2014-02-19  Tom Tromey  <tromey@redhat.com>
11429
11430         * target.h (struct target_ops) <to_pass_signals>: Add argument.
11431         * target.c (target_pass_signals): Add argument.
11432         * remote.c (remote_pass_signals): Add 'self' argument.
11433         (remote_start_remote): Update.
11434         * procfs.c (procfs_pass_signals): Add 'self' argument.
11435         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11436         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11437         (linux_nat_create_inferior, linux_nat_attach): Update.
11438
11439 2014-02-19  Tom Tromey  <tromey@redhat.com>
11440
11441         * windows-nat.c (windows_can_run): Add 'self' argument.
11442         * target.h (struct target_ops) <to_can_run>: Add argument.
11443         (target_can_run): Add argument.
11444         * target.c (debug_to_can_run): Add argument.
11445         (update_current_target): Update.
11446         * nto-procfs.c (procfs_can_run): Add 'self' argument.
11447         * inf-child.c (inf_child_can_run): Add 'self' argument.
11448         * go32-nat.c (go32_can_run): Add 'self' argument.
11449
11450 2014-02-19  Tom Tromey  <tromey@redhat.com>
11451
11452         * target.h (struct target_ops) <to_has_exited>: Add argument.
11453         (target_has_exited): Add argument.
11454         * target.c (debug_to_has_exited): Add argument.
11455         (update_current_target): Update.
11456
11457 2014-02-19  Tom Tromey  <tromey@redhat.com>
11458
11459         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11460         argument.
11461         (target_set_syscall_catchpoint): Add argument.
11462         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11463         argument.
11464         * target.c (update_current_target): Update.
11465
11466 2014-02-19  Tom Tromey  <tromey@redhat.com>
11467
11468         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11469         argument.
11470         (target_remove_exec_catchpoint): Add argument.
11471         * target.c (debug_to_remove_exec_catchpoint): Add argument.
11472         (update_current_target): Update.
11473         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11474         argument.
11475
11476 2014-02-19  Tom Tromey  <tromey@redhat.com>
11477
11478         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11479         argument.
11480         (target_insert_exec_catchpoint): Add argument.
11481         * target.c (debug_to_insert_exec_catchpoint): Add argument.
11482         (update_current_target): Update.
11483         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11484         argument.
11485
11486 2014-02-19  Tom Tromey  <tromey@redhat.com>
11487
11488         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11489         argument.
11490         (target_remove_vfork_catchpoint): Add argument.
11491         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11492         (update_current_target): Update.
11493         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11494         argument.
11495
11496 2014-02-19  Tom Tromey  <tromey@redhat.com>
11497
11498         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11499         argument.
11500         (target_insert_vfork_catchpoint): Add argument.
11501         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11502         (update_current_target): Update.
11503         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11504         argument.
11505
11506 2014-02-19  Tom Tromey  <tromey@redhat.com>
11507
11508         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11509         argument.
11510         (target_remove_fork_catchpoint): Add argument.
11511         * target.c (debug_to_remove_fork_catchpoint): Add argument.
11512         (update_current_target): Update.
11513         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11514         argument.
11515
11516 2014-02-19  Tom Tromey  <tromey@redhat.com>
11517
11518         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11519         argument.
11520         (target_insert_fork_catchpoint): Add argument.
11521         * target.c (debug_to_insert_fork_catchpoint): Add argument.
11522         (update_current_target): Update.
11523         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11524         argument.
11525
11526 2014-02-19  Tom Tromey  <tromey@redhat.com>
11527
11528         * target.h (struct target_ops) <to_post_startup_inferior>: Add
11529         argument.
11530         (target_post_startup_inferior): Add argument.
11531         * target.c (debug_to_post_startup_inferior): Add argument.
11532         (update_current_target): Update.
11533         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11534         argument.
11535         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11536         argument.
11537         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11538         argument.
11539         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11540         argument.
11541         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11542         'self' argument.
11543         (super_post_startup_inferior): Likewise.
11544         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11545         'self' argument.
11546         (super_post_startup_inferior): Likewise.
11547         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11548         Add 'self' argument.
11549         (super_post_startup_inferior): Likewise.
11550
11551 2014-02-19  Tom Tromey  <tromey@redhat.com>
11552
11553         * target.h (struct target_ops) <to_load>: Add argument.
11554         * target.c (target_load): Add argument.
11555         (debug_to_load): Add argument.
11556         (update_current_target): Update.
11557         * remote.c (remote_load): Add 'self' argument.
11558         * remote-sim.c (gdbsim_load): Add 'self' argument.
11559         * remote-mips.c (mips_load): Add 'self' argument.
11560         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11561         * monitor.c (monitor_load): Add 'self' argument.
11562         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11563
11564 2014-02-19  Tom Tromey  <tromey@redhat.com>
11565
11566         * target.h (struct target_ops) <to_terminal_info>: Add argument.
11567         (target_terminal_info): Add argument.
11568         * target.c (debug_to_terminal_info): Add argument.
11569         (default_terminal_info): Likewise.
11570         * inflow.c (child_terminal_info): Add 'self' argument.
11571         * inferior.h (child_terminal_info): Add 'self' argument.
11572         * go32-nat.c (go32_terminal_info): Add 'self' argument.
11573
11574 2014-02-19  Tom Tromey  <tromey@redhat.com>
11575
11576         * target.h (struct target_ops) <to_terminal_save_ours>: Add
11577         argument.
11578         (target_terminal_save_ours): Add argument.
11579         * target.c (debug_to_terminal_save_ours): Add argument.
11580         (update_current_target): Update.
11581         * inflow.c (terminal_save_ours): Add 'self' argument.
11582         * inferior.h (terminal_save_ours): Add 'self' argument.
11583
11584 2014-02-19  Tom Tromey  <tromey@redhat.com>
11585
11586         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11587         (target_terminal_ours): Add argument.
11588         * target.c (debug_to_terminal_ours): Add argument.
11589         (update_current_target): Update.
11590         * remote.c (remote_terminal_ours): Add 'self' argument.
11591         (remote_close): Update.
11592         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11593         * inflow.c (terminal_ours): Add 'self' argument.
11594         * inferior.h (terminal_ours): Add 'self' argument.
11595         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11596
11597 2014-02-19  Pedro Alves  <palves@redhat.com>
11598             Tom Tromey  <tromey@redhat.com>
11599
11600         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11601         argument.
11602         (target_terminal_ours_for_output): Add argument.
11603         * target.c (debug_to_terminal_ours_for_output): Add argument.
11604         (update_current_target): Update.
11605         * inflow.c (terminal_ours_for_output): Add 'self' argument.
11606         * inferior.h (terminal_ours_for_output): Add 'self' argument.
11607         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11608
11609 2014-02-19  Tom Tromey  <tromey@redhat.com>
11610
11611         * target.h (struct target_ops) <to_terminal_inferior>: Add
11612         argument.
11613         * target.c (target_terminal_inferior): Add argument.
11614         (update_current_target): Update.
11615         * remote.c (remote_terminal_inferior): Add 'self' argument.
11616         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11617         * inflow.c (terminal_inferior): Add 'self' argument.
11618         * inferior.h (terminal_inferior): Add 'self' argument.
11619         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11620         (go32_terminal_inferior): Add 'self' argument.
11621
11622 2014-02-19  Tom Tromey  <tromey@redhat.com>
11623
11624         * target.h (struct target_ops) <to_terminal_init>: Add argument.
11625         (target_terminal_init): Add argument.
11626         * target.c (debug_to_terminal_init): Add argument.
11627         (update_current_target): Update.
11628         * inflow.c (terminal_init_inferior): Add 'self' argument.
11629         * inferior.h (terminal_init_inferior): Add 'self' argument.
11630         * go32-nat.c (go32_terminal_init): Add 'self' argument.
11631         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11632
11633 2014-02-19  Tom Tromey  <tromey@redhat.com>
11634
11635         * target.h (struct target_ops)
11636         <to_can_accel_watchpoint_condition>: Add argument.
11637         (target_can_accel_watchpoint_condition): Add argument.
11638         * target.c (debug_to_can_accel_watchpoint_condition): Add
11639         argument.
11640         (update_current_target): Update.
11641         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11642         'self' argument.
11643
11644 2014-02-19  Tom Tromey  <tromey@redhat.com>
11645
11646         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11647         Add argument.
11648         (target_region_ok_for_hw_watchpoint): Add argument.
11649         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11650         (default_region_ok_for_hw_watchpoint): Add argument.
11651         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11652         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11653         argument.
11654         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11655         argument.
11656         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11657         argument.
11658         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11659         'self' argument.
11660         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11661         'self' argument.
11662         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11663         'self' argument.
11664         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11665         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11666         'self' argument.
11667         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11668         Add 'self' argument.
11669
11670 2014-02-19  Tom Tromey  <tromey@redhat.com>
11671
11672         * target.h (struct target_ops) <to_insert_watchpoint>: Add
11673         argument.
11674         (target_insert_watchpoint): Add argument.
11675         * target.c (debug_to_insert_watchpoint): Add argument.
11676         (update_current_target): Update.
11677         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11678         * remote.c (remote_insert_watchpoint): Add 'self' argument.
11679         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11680         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11681         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11682         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11683         argument.
11684         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11685         (procfs_insert_hw_watchpoint): Add 'self' argument.
11686         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11687         argument.
11688         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11689         argument.
11690         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11691         argument.
11692         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11693         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11694         argument.
11695         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11696         'self' argument.
11697
11698 2014-02-19  Tom Tromey  <tromey@redhat.com>
11699
11700         * target.h (struct target_ops) <to_remove_watchpoint>: Add
11701         argument.
11702         (target_remove_watchpoint): Add argument.
11703         * target.c (debug_to_remove_watchpoint): Add argument.
11704         (update_current_target): Update.
11705         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11706         * remote.c (remote_remove_watchpoint): Add 'self' argument.
11707         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11708         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11709         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11710         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11711         argument.
11712         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11713         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11714         argument.
11715         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11716         argument.
11717         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11718         argument.
11719         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11720         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11721         argument.
11722         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11723         'self' argument.
11724
11725 2014-02-19  Tom Tromey  <tromey@redhat.com>
11726
11727         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11728         argument.
11729         (target_remove_hw_breakpoint): Add argument.
11730         * target.c (debug_to_remove_hw_breakpoint): Add argument.
11731         (update_current_target): Update.
11732         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11733         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11734         argument.
11735         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11736         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11737         argument.
11738         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11739         'self' argument.
11740
11741 2014-02-19  Tom Tromey  <tromey@redhat.com>
11742
11743         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11744         argument.
11745         (target_insert_hw_breakpoint): Add argument.
11746         * target.c (debug_to_insert_hw_breakpoint): Add argument.
11747         (update_current_target): Update.
11748         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11749         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11750         argument.
11751         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11752         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11753         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11754         argument.
11755         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11756         'self' argument.
11757
11758 2014-02-19  Tom Tromey  <tromey@redhat.com>
11759
11760         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11761         argument.
11762         (target_can_use_hardware_watchpoint): Add argument.
11763         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11764         (update_current_target): Update.
11765         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11766         argument.
11767         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11768         argument.
11769         * remote.c (remote_check_watch_resources): Add 'self' argument.
11770         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11771         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11772         argument.
11773         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11774         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11775         argument.
11776         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11777         argument.
11778         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11779         argument.
11780         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11781         argument.
11782         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11783         argument.
11784         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11785         argument.
11786         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11787         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11788         argument.
11789         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11790         'self' argument.
11791
11792 2014-02-19  Tom Tromey  <tromey@redhat.com>
11793
11794         * target.h (struct target_ops) <to_post_attach>: Add argument.
11795         (target_post_attach): Add argument.
11796         * target.c (debug_to_post_attach): Add argument.
11797         (update_current_target): Update.
11798         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11799         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11800         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11801         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11802         * inf-child.c (inf_child_post_attach): Add 'self' argument.
11803
11804 2014-02-19  Tom Tromey  <tromey@redhat.com>
11805
11806         * windows-nat.c (windows_close): Add 'self' argument.
11807         * tracepoint.c (tfile_close): Add 'self' argument.
11808         * target.h (struct target_ops) <to_close>: Add argument.
11809         * target.c (target_close): Add argument.
11810         (update_current_target): Update.
11811         * remote.c (remote_close): Add 'self' argument.
11812         * remote-sim.c (gdbsim_close): Add 'self' argument.
11813         * remote-mips.c (mips_close): Add 'self' argument.
11814         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11815         * record-full.c (record_full_close): Add 'self' argument.
11816         * record-btrace.c (record_btrace_close): Add 'self' argument.
11817         * monitor.h (monitor_close): Add 'self' argument.
11818         * monitor.c (monitor_close): Add 'self' argument.
11819         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11820         * linux-nat.c (linux_nat_close): Add argument.
11821         * go32-nat.c (go32_close): Add 'self' argument.
11822         * exec.c (exec_close_1): Add 'self' argument.
11823         * ctf.c (ctf_close): Add 'self' argument.
11824         * corelow.c (core_close): Add 'self' argument.
11825         (core_close_cleanup): Update.
11826         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11827         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11828
11829 2014-02-19  Tom Tromey  <tromey@redhat.com>
11830
11831         * remote.c (remote_load): New function.
11832         (init_remote_ops): Use it.
11833
11834 2014-02-19  Tom Tromey  <tromey@redhat.com>
11835
11836         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11837         argument.
11838         * common/linux-btrace.h (linux_supports_btrace): Update.
11839         * remote.c (remote_supports_btrace): Add "self" argument.
11840         * target-delegates.c: Rebuild.
11841         * target.c (target_supports_btrace): Remove.
11842         * target.h (struct target_ops) <to_supports_btrace>: Add
11843         target_ops argument.
11844         (target_supports_btrace): New define.
11845
11846 2014-02-19  Tom Tromey  <tromey@redhat.com>
11847
11848         * record-full.c (record_full_beneath_to_resume_ops)
11849         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11850         (record_full_beneath_to_wait)
11851         (record_full_beneath_to_store_registers_ops)
11852         (record_full_beneath_to_store_registers)
11853         (record_full_beneath_to_xfer_partial_ops)
11854         (record_full_beneath_to_xfer_partial)
11855         (record_full_beneath_to_insert_breakpoint_ops)
11856         (record_full_beneath_to_insert_breakpoint)
11857         (record_full_beneath_to_remove_breakpoint_ops)
11858         (record_full_beneath_to_remove_breakpoint)
11859         (record_full_beneath_to_stopped_by_watchpoint)
11860         (record_full_beneath_to_stopped_data_address)
11861         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11862         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11863         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11864         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11865         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11866         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11867         (tmp_to_stopped_data_address, tmp_to_async): Remove.
11868         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
11869         (record_full_resume, record_full_wait_1)
11870         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11871         (record_full_store_registers, record_full_xfer_partial)
11872         (record_full_insert_breakpoint, record_full_remove_breakpoint)
11873         (record_full_async, record_full_core_xfer_partial): Use target
11874         delegation.
11875         * target-delegates.c: Rebuild.
11876         * target.c (current_xfer_partial): Remove.
11877         (update_current_target): Do not INHERIT or de_fault
11878         to_insert_breakpoint, to_remove_breakpoint,
11879         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11880         to_is_async_p, to_async.  Do not set to_xfer_partial field.
11881         (default_xfer_partial): Simplify.
11882         (current_xfer_partial): Remove.
11883         (target_wait, target_resume): Simplify.
11884         (find_default_can_async_p, find_default_is_async_p): Update.
11885         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11886         to_xfer_partial, to_stopped_by_watchpoint,
11887         to_stopped_data_address.
11888         (target_store_registers): Simplify.
11889         (forward_target_remove_breakpoint)
11890         (forward_target_insert_breakpoint): Remove.
11891         (target_remove_breakpoint, target_insert_breakpoint)
11892         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11893         * target.h (struct target_ops) <to_resume, to_wait,
11894         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11895         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11896         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11897         markup.
11898         (forward_target_remove_breakpoint)
11899         (forward_target_insert_breakpoint): Remove.
11900         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11901         directly.
11902         (record_btrace_insert_breakpoint): Delegate directly.
11903
11904 2014-02-19  Tom Tromey  <tromey@redhat.com>
11905
11906         PR build/7701:
11907         * target-delegates.c: New file.
11908         * target.c: Include target-delegates.c.
11909         (init_dummy_target): Call install_dummy_methods.
11910         (complete_target_initialization): Call install_delegators.
11911         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11912         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11913         * make-target-delegates: New file.
11914
11915 2014-02-19  Tom Tromey  <tromey@redhat.com>
11916
11917         * record.c (find_record_target): Use find_target_at.
11918         * target.c (find_target_at): New function.
11919         * target.h (find_target_at): Declare.
11920
11921 2014-02-19  Tom Tromey  <tromey@redhat.com>
11922
11923         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11924         Add 'ops' argument.
11925         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11926         'ops' argument.
11927         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11928         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11929         'ops' argument.
11930         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11931         argument.
11932         * linux-nat.c (save_sigtrap): Update.
11933         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11934         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11935         (linux_nat_close): Update.
11936         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11937         argument.
11938         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11939         argument.
11940         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11941         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11942         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11943         (tmp_to_async): Add 'ops' argument.
11944         (record_full_stopped_by_watchpoint, record_full_async)
11945         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11946         argument.
11947         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11948         (m32r_stopped_by_watchpoint): Add 'ops' argument.
11949         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11950         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11951         (remote_is_async_p, remote_async): Add 'ops' argument.
11952         (remote_stopped_data_address): Update.
11953         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11954         * target.c (update_current_target)
11955         (find_default_can_async_p, find_default_is_async_p): Update.
11956         (init_dummy_target): Update.
11957         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11958         * target.h (struct target_ops) <to_stopped_by_watchpoint,
11959         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11960         (target_can_async_p, target_is_async_p, target_async)
11961         (target_stopped_by_watchpoint): Update.
11962
11963 2014-02-19  Yao Qi  <yao@codesourcery.com>
11964
11965         PR gdb/16220
11966         * gdbarch.sh: Remove startup_gdbarch.
11967         * gdbarch.c: Regenerated.
11968         * gdbarch.h: Likewise.
11969
11970 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
11971
11972         * rl78-tdep.c (rl78_g10_register_name): New function.
11973         (rl78_return_value): Add g10 support.
11974         (rl78_gdbarch_init): Register rl78_g10_register_name for the
11975         g10.
11976
11977 2014-02-17  Doug Evans  <xdje42@gmail.com>
11978
11979         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11980         (SUBDIR_GUILE_SRCS): Ditto.
11981         (scm-gsmob.o): Ditto.
11982
11983 2014-02-17  Yao Qi  <yao@codesourcery.com>
11984
11985         * gnu-nat.c (ILL_RPC): Declare defined function.
11986
11987 2014-02-17  Yao Qi  <yao@codesourcery.com>
11988
11989         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11990         mach_msg_type_number_t.
11991         (gnu_write_inferior): Likewise.
11992
11993 2014-02-17  Yao Qi  <yao@codesourcery.com>
11994
11995         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11996         in format string.
11997         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11998         (inf_validate_procs, inf_signal): Likewise.
11999         (S_exception_raise_request): Likewise.
12000         (do_mach_notify_dead_name): Likewise.
12001         (steal_exc_port): Likewise.
12002         (gnu_read_inferior): Change 'copy_count''s type to
12003         mach_msg_type_number_t.
12004         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
12005         format string.
12006
12007 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
12008
12009         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12010         flag.  Adjust all users; in particular...
12011         (gnu_wait): ..., don't decrement its value in here...
12012         (gnu_create_inferior): ..., and instead set the flag in here,
12013         around the startup_inferior call, and call that one with
12014         START_INFERIOR_TRAPS_EXPECTED.
12015
12016         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12017         (ILL_RPC): ... new macro.
12018         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12019         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12020         (do_mach_notify_send_once, S_proc_setmsgport_reply)
12021         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12022         functions with ILL_RPC macro.
12023         (S_proc_pid2task_reply, S_proc_task2pid_reply)
12024         (S_proc_task2proc_reply, S_proc_proc2task_reply)
12025         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12026         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12027         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12028         (S_proc_getlogin_reply, S_proc_getsid_reply)
12029         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12030         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12031         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12032         (S_proc_getnports_reply, S_proc_is_important_reply)
12033         (S_proc_get_code_reply): New stub functions, generated with
12034         ILL_RPC macro.
12035
12036         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12037         collected the type check structures.
12038
12039         * reply_mig_hack.awk: Don't expect to see the auto keyword.
12040
12041 2014-02-14  Doug Evans  <dje@google.com>
12042
12043         * target.c (target_write_partial): Fix result type.
12044
12045 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
12046
12047         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12048         the proper offsets to access fpregset_t.
12049
12050 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
12051
12052         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12053         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12054         * h8300-tdep.c (setmachinelist): Remove global.
12055         * hppa-tdep.c (hppa_sigtramp): Remove global.
12056         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12057         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12058         * ravenscar-thread.c (update_target_observer): Remove global.
12059         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12060
12061 2014-02-12  Tom Tromey  <tromey@redhat.com>
12062
12063         * common/rsp-low.c: Update comments.
12064         * common/rsp-low.h: Update comments.
12065
12066 2014-02-12  Tom Tromey  <tromey@redhat.com>
12067
12068         * common/rsp-low.c (convert_ascii_to_int): Remove.
12069         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12070
12071 2014-02-12  Tom Tromey  <tromey@redhat.com>
12072
12073         * common/rsp-low.h (unhexify): Don't declare.
12074         * common/rsp-low.c (unhexify): Remove.
12075
12076 2014-02-12  Tom Tromey  <tromey@redhat.com>
12077
12078         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12079         * common/rsp-low.c (convert_int_to_ascii): Remove.
12080
12081 2014-02-12  Tom Tromey  <tromey@redhat.com>
12082
12083         * common/rsp-low.h (hexify): Don't declare.
12084         * common/rsp-low.c (hexify): Remove.
12085
12086 2014-02-12  Tom Tromey  <tromey@redhat.com>
12087
12088         * common/rsp-low.c (hexify): Never take strlen of argument.
12089
12090 2014-02-12  Tom Tromey  <tromey@redhat.com>
12091
12092         * common/rsp-low.c (bin2hex): Never take strlen of argument.
12093         * remote.c (extended_remote_run, remote_rcmd)
12094         (remote_download_trace_state_variable, remote_save_trace_data)
12095         (remote_set_trace_notes): Update.
12096         * tracepoint.c (encode_source_string, tfile_write_status)
12097         (tfile_write_uploaded_tsv): Update.
12098
12099 2014-02-12  Tom Tromey  <tromey@redhat.com>
12100
12101         * tracepoint.c: Include rsp-low.h.
12102         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12103         * remote.c: Include rsp-low.h.
12104         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12105         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12106         (remote_unescape_input): Move to common/rsp-low.c.
12107         * common/rsp-low.h: New file.
12108         * common/rsp-low.c: New file.
12109         * Makefile.in (SFILES): Add common/rsp-low.c.
12110         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12111         (COMMON_OBS): Add rsp-low.o.
12112         (rsp-low.o): New target.
12113
12114 2014-02-12  Tom Tromey  <tromey@redhat.com>
12115
12116         * utils.h: Include print-utils.h.
12117         (host_address_to_string, plongest, pulongest, phex, phex_nz)
12118         (int_string, core_addr_to_string, core_addr_to_string_nz)
12119         (hex_string, hex_string_custom): Don't declare.
12120         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12121         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12122         (hex_string_custom, int_string, core_addr_to_string)
12123         (core_addr_to_string_nz, host_address_to_string): Move to
12124         common/print-utils.c.
12125         * common/print-utils.h: New file.
12126         * common/print-utils.c: New file
12127         * Makefile.in (SFILES): Add common/print-utils.c.
12128         (HFILES_NO_SRCDIR): Add common/print-utils.h.
12129         (COMMON_OBS): Add print-utils.o.
12130         (print-utils.o): New target.
12131
12132 2014-02-12  Tom Tromey  <tromey@redhat.com>
12133
12134         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12135
12136 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12137
12138         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12139
12140 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12141
12142         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12143         if a PT_IO ptrace request returns sucessfully but indicates that 0
12144         bytes were transferred.
12145
12146 2014-02-12  Pedro Alves  <palves@redhat.com>
12147             Kevin Buettner <kevinb@redhat.com>
12148
12149         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12150         TYPE_INSTANCE_FLAG_CODE_SPACE.
12151
12152 2014-02-12  Pedro Alves  <palves@redhat.com>
12153
12154         * h8300-tdep.c (pseudo_from_raw_register)
12155         (raw_from_pseudo_register): New functions.
12156         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12157         them.
12158
12159 2014-02-12  Pedro Alves  <palves@redhat.com>
12160
12161         * h8300-tdep.c (h8300_register_sim_regno): New function.
12162         (h8300_gdbarch_init): Install h8300_register_sim_regno as
12163         gdbarch_register_sim_regno hook.
12164
12165 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12166
12167         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12168
12169 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12170
12171         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12172
12173 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12174
12175         * obsd-tdep.h (obsd_init_abi): New prototype.
12176         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12177         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12178         (obsd_init_abi): New functions.
12179         * i386obsd-tdep.c: Include "obsd-tdep.h".
12180         (i386obsd_init_abi): Call obsd_init_abi.
12181         * amd64obsd-tdep.c: Include "obsd-tdep.h".
12182         (amd64obsd_init_abi): Call obsd_init_abi.
12183         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12184         obsd-tdep.c to gdb_target_obs.
12185
12186 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
12187
12188         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12189         double float arguments to 16-byte in the argument slots.
12190
12191 2014-02-11  Doug Evans  <xdje42@gmail.com>
12192
12193         * configure.ac: Don't crash if pkg-config is not found and guile
12194         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
12195         in guile checks.
12196         * configure: Regenerate.
12197
12198 2014-02-11  Yao Qi  <yao@codesourcery.com>
12199
12200         * aix-thread.c (aix_thread_xfer_partial): Update comments.
12201         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12202         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12203         * gnu-nat.c (gnu_xfer_memory): Likewise.
12204         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
12205         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12206         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12207         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12208
12209 2014-02-11  Yao Qi  <yao@codesourcery.com>
12210
12211         * target.h (enum target_xfer_error): Rename to ...
12212         (enum target_xfer_status): ... it.  New.  All users updated.
12213         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12214         New.
12215         (TARGET_XFER_STATUS_ERROR_P): New macro.
12216         (target_xfer_error_to_string): Remove declaration.
12217         (target_xfer_status_to_string): Declare.
12218         (target_xfer_partial_ftype): Adjust it.
12219         (struct target_ops) <to_xfer_partial>: Return
12220         target_xfer_status.  Add argument xfered_len.  Update
12221         comments.
12222         * target.c (target_xfer_error_to_string): Rename to ...
12223         (target_xfer_status_to_string): ... it.  New.  All callers
12224         updated.
12225         (target_read_live_memory): Likewise.  Call target_xfer_partial
12226         instead of target_read.
12227         (memory_xfer_live_readonly_partial): Return
12228         target_xfer_status.  Add argument xfered_len.
12229         (raw_memory_xfer_partial): Likewise.
12230         (memory_xfer_partial_1): Likewise.
12231         (memory_xfer_partial): Likewise.
12232         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
12233         properly.  Update debug message.
12234         (default_xfer_partial, current_xfer_partial): Likewise.
12235         (target_write_partial): Likewise.
12236         (target_read_partial): Likewise.  All callers updated.
12237         (read_whatever_is_readable): Likewise.
12238         (target_write_with_progress): Likewise.
12239         (target_read_alloc_1): Likewise.
12240
12241         * aix-thread.c (aix_thread_xfer_partial): Likewise.
12242         * auxv.c (procfs_xfer_auxv): Likewise.
12243         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12244         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12245         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12246         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12247         * corefile.c (read_memory): Adjust.
12248         * corelow.c (core_xfer_partial): Likewise.
12249         * ctf.c (ctf_xfer_partial): Likewise.
12250         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
12251         updated.
12252         (darwin_xfer_partial): Likewise.
12253         * exec.c (section_table_xfer_memory_partial): Likewise.  All
12254         callers updated.
12255         (exec_xfer_partial): Likewise.
12256         * exec.h (section_table_xfer_memory_partial): Update
12257         declaration.
12258         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
12259         negative.
12260         (gnu_xfer_partial): Likewise.
12261         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12262         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12263         (ia64_hpux_xfer_solib_got): Likewise.
12264         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
12265         type of 'partial_len' to ULONGEST.
12266         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12267         * linux-nat.c (linux_xfer_siginfo ): Likewise.
12268         (linux_nat_xfer_partial): Likewise.
12269         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12270         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12271         * monitor.c (monitor_xfer_memory): Likewise.
12272         (monitor_xfer_partial): Likewise.
12273         * procfs.c (procfs_xfer_partial): Likewise.
12274         * record-btrace.c (record_btrace_xfer_partial): Likewise.
12275         * record-full.c (record_full_xfer_partial): Likewise.
12276         (record_full_core_xfer_partial): Likewise.
12277         * remote-sim.c (gdbsim_xfer_memory): Likewise.
12278         (gdbsim_xfer_partial): Likewise.
12279         * remote.c (remote_write_bytes_aux): Likewise.  All callers
12280         updated.
12281         (remote_write_bytes, remote_read_bytes): Likewise.  All
12282         callers updated.
12283         (remote_flash_erase): Likewise.  All callers updated.
12284         (remote_write_qxfer): Likewise.  All callers updated.
12285         (remote_read_qxfer): Likewise.  All callers updated.
12286         (remote_xfer_partial): Likewise.
12287         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12288         (rs6000_xfer_shared_libraries): Likewise.
12289         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12290         (sol_thread_xfer_partial): Likewise.
12291         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12292         (sparc_xfer_partial): Likewise.
12293         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
12294         updated.
12295         (spu_xfer_partial): Likewise.
12296         * spu-multiarch.c (spu_xfer_partial): Likewise.
12297         * tracepoint.c (tfile_xfer_partial): Likewise.
12298         * windows-nat.c (windows_xfer_memory): Likewise.
12299         (windows_xfer_shared_libraries): Likewise.
12300         (windows_xfer_partial): Likewise.
12301         * valprint.c: Replace 'target_xfer_error' with
12302         'target_xfer_status' in comments.
12303
12304 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
12305
12306         Checked in by Joel Brobecker <brobecker@adacore.com>.
12307         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12308
12309 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
12310
12311         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12312         function parameters.
12313
12314 2014-02-10  Will Newton  <will.newton@linaro.org>
12315
12316         * elfread.c (elf_rel_plt_read): Look for a .got section if
12317         looking up .got.plt fails.
12318         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12319         on address passed to elf_gnu_ifunc_record_cache.
12320         (elf_gnu_ifunc_resolve_addr): Likewise.
12321         (elf_gnu_ifunc_resolver_return_stop): Likewise.
12322
12323 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
12324
12325         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12326         (X_RETTURN): New macro.
12327         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12328
12329         * sparc64-tdep.c (sparc64_init_abi): Hook
12330         sparc_in_function_epilogue_p.
12331
12332 2014-02-10  Gary Benson  <gbenson@redhat.com>
12333
12334         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12335         Rename name_matcher to symbol_matcher.
12336
12337 2014-02-10  Gary Benson  <gbenson@redhat.com>
12338
12339         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12340         Use expand_symtabs_file_matcher_ftype and
12341         expand_symtabs_symbol_matcher_ftype.
12342
12343 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12344
12345         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12346         (struct ada_symbol_cache): New.
12347         (ada_free_symbol_cache): Forward declare.
12348         (struct ada_pspace_data): New.
12349         (ada_pspace_data_handle): New static global.
12350         (get_ada_pspace_data, ada_pspace_data_cleanup)
12351         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12352         (cache_space, cache): Delete, now folded inside struct
12353         ada_pspace_data.
12354         (ada_get_symbol_cache): New function.
12355         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12356         implementation.
12357         (_initialize_ada_language): Remove initialization of cache_space.
12358         Move call to observer_attach_inferior_exit up, grouping it
12359         with the other observer registrations inside this function.
12360         Rename command to be more general.  Add call to
12361         register_program_space_data_with_cleanup.
12362
12363 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12364
12365         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12366         ada_new_objfile_observer.
12367         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12368         (_initialize_tasks): Update uses of ada_new_objfile_observer
12369         and ada_tasks_normal_stop_observer.
12370
12371 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12372
12373         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12374         returned by the 'Length attribute to integer.
12375
12376 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12377
12378         * ada-lang.c (_initialize_ada_language): Initialize
12379         cache_space obstack.
12380
12381 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12382
12383         * ada-lang.c (HASH_SIZE): New macro.
12384         (struct cache_entry): New type.
12385         (cache_space, cache): New static globals.
12386         (ada_clear_symbol_cache, find_entry): New functions.
12387         (lookup_cached_symbol, cache_symbol): Implement.
12388         (ada_new_objfile_observer, ada_free_objfile_observer): New.
12389         (_initialize_ada_language): Attach ada_new_objfile_observer
12390         and ada_free_objfile_observer.
12391
12392 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12393
12394         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12395         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12396         struct block * parameter.
12397         (ada_lookup_symbol_list_worker): Constify local variable "block".
12398         Remove cast which is no longer necessary.
12399
12400 2014-02-10  Doug Evans  <xdje42@gmail.com>
12401
12402         Add Guile as an extension language.
12403         * NEWS: Mention Guile scripting.
12404         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12405         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12406         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12407         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12408         (CLIBS): Add GUILE_LIBS.
12409         (install-guile): New rule.
12410         (guile.o): New rule.
12411         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12412         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12413         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12414         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12415         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12416         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12417         (scm-type.o, scm-utils.o, scm-value.o): New rules.
12418         * configure.ac: New option --with-guile.
12419         * configure: Regenerate.
12420         * config.in: Regenerate.
12421         * auto-load.c: Remove #include "python/python.h".  Add #include
12422         "gdb/section-scripts.h".
12423         (source_section_scripts): Handle Guile scripts.
12424         (_initialize_auto_load): Add name of Guile objfile script to
12425         scripts-directory help text.
12426         * breakpoint.c (condition_command): Tweak comment to include Scheme.
12427         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12428         (struct breakpoint): New member scm_bp_object.
12429         * defs.h (enum command_control_type): New value guile_control.
12430         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
12431         "extension.h".
12432         (show_user): Update comment.
12433         (_initialize_cli_cmds): Update help text for "show user".  Update help
12434         text for max-user-call-depth.
12435         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
12436         "extension.h".
12437         (multi_line_command_p): Add guile_control.
12438         (print_command_lines): Handle guile_control.
12439         (execute_control_command, recurse_read_control_structure): Ditto.
12440         (process_next_line): Recognize "guile" commands.
12441         * disasm.c (gdb_disassemble_info): Make non-static.
12442         * disasm.h: #include "dis-asm.h".
12443         (struct gdbarch): Add forward decl.
12444         (gdb_disassemble_info): Declare.
12445         * extension.c: #include "guile/guile.h".
12446         (extension_languages): Add guile.
12447         (get_ext_lang_defn): Handle EXT_LANG_GDB.
12448         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12449         * gdbtypes.c (get_unsigned_type_max): New function.
12450         (get_signed_type_minmax): New function.
12451         * gdbtypes.h (get_unsigned_type_max): Declare.
12452         (get_signed_type_minmax): Declare.
12453         * guile/README: New file.
12454         * guile/guile-internal.h: New file.
12455         * guile/guile.c: New file.
12456         * guile/guile.h: New file.
12457         * guile/scm-arch.c: New file.
12458         * guile/scm-auto-load.c: New file.
12459         * guile/scm-block.c: New file.
12460         * guile/scm-breakpoint.c: New file.
12461         * guile/scm-disasm.c: New file.
12462         * guile/scm-exception.c: New file.
12463         * guile/scm-frame.c: New file.
12464         * guile/scm-gsmob.c: New file.
12465         * guile/scm-iterator.c: New file.
12466         * guile/scm-lazy-string.c: New file.
12467         * guile/scm-math.c: New file.
12468         * guile/scm-objfile.c: New file.
12469         * guile/scm-ports.c: New file.
12470         * guile/scm-pretty-print.c: New file.
12471         * guile/scm-safe-call.c: New file.
12472         * guile/scm-string.c: New file.
12473         * guile/scm-symbol.c: New file.
12474         * guile/scm-symtab.c: New file.
12475         * guile/scm-type.c: New file.
12476         * guile/scm-utils.c: New file.
12477         * guile/scm-value.c: New file.
12478         * guile/lib/gdb.scm: New file.
12479         * guile/lib/gdb/boot.scm: New file.
12480         * guile/lib/gdb/experimental.scm: New file.
12481         * guile/lib/gdb/init.scm: New file.
12482         * guile/lib/gdb/iterator.scm: New file.
12483         * guile/lib/gdb/printing.scm: New file.
12484         * guile/lib/gdb/types.scm: New file.
12485         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12486         (VPATH): Add $(GUILE_SRCDIR).
12487         (GUILE_DIR): New variable.
12488         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12489         (all): Add stamp-guile dependency.
12490         (stamp-guile): New rule.
12491         (clean-guile, install-guile, uninstall-guile): New rules.
12492         (install-only): Add install-guile dependency.
12493         (uninstall): Add uninstall-guile dependency.
12494         (clean): Add clean-guile dependency.
12495
12496 2014-02-09  Doug Evans  <xdje42@gmail.com>
12497
12498         Revert this patch (which I approved, mea culpa).
12499
12500         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12501
12502         * Makefile.in (all-lib): Remove.
12503         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12504
12505 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
12506
12507         Fix Python stack corruption.
12508         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12509         gdb_py_longest.
12510
12511 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12512
12513         * Makefile.in (all-lib): Remove.
12514         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12515
12516 2014-02-07  Doug Evans  <dje@google.com>
12517
12518         * extension-priv.h (extension_language_script_ops): Add comment.
12519         (extension_language_ops): Add comment.
12520         (active_ext_lang_state): Fix typo in comment.
12521
12522 2014-02-07  Pedro Alves  <palves@redhat.com>
12523
12524         PR breakpoints/16292
12525         * infrun.c (handle_signal_stop) <signal arrives while stepping
12526         over a breakpoint>: Switch back to the stepping thread.
12527
12528 2014-02-07  Yao Qi  <yao@codesourcery.com>
12529
12530         * target.c (target_xfer_partial): Return zero if LEN is zero.
12531
12532 2014-02-07  Yao Qi  <yao@codesourcery.com>
12533
12534         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12535         (ld_so_xfer_auxv): Likewise.
12536         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12537         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12538         * corelow.c (core_xfer_partial): Likewise.
12539         * ctf.c (ctf_xfer_partial): Likewise.
12540         * darwin-nat.c (darwin_read_dyld_info): Likewise.
12541         (darwin_xfer_partial): Likewise.
12542         * exec.c (exec_xfer_partial): Likewise.
12543         * gnu-nat.c (gnu_xfer_partial): Likewise.
12544         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12545         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12546         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12547         * linux-nat.c (linux_xfer_siginfo): Likewise.
12548         (linux_proc_xfer_spu): Likewise.
12549         * procfs.c (procfs_xfer_partial): Likewise.
12550         * record-full.c (record_full_xfer_partial): Likewise.
12551         (record_full_core_xfer_partial): Likewise.
12552         * remote-sim.c (gdbsim_xfer_partial): Likewise.
12553         * remote.c (remote_write_qxfer): Likewise.
12554         (remote_write_qxfer, remote_read_qxfer): Likewise.
12555         (remote_xfer_partial): Likewise.
12556         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12557         (rs6000_xfer_shared_libraries): Likewise.
12558         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12559         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12560         (spu_xfer_partial): Likewise.
12561         * target.c (memory_xfer_partial_1): Likewise.
12562         * tracepoint.c (tfile_xfer_partial): Likewise.
12563         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12564         (windows_xfer_partial): Likewise.
12565
12566 2014-02-07  Yao Qi  <yao@codesourcery.com>
12567
12568         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
12569         comments.
12570         (core_xfer_shared_libraries_aix): Likewise.
12571         * gdbarch.c, gdbarch.h: Regenerated.
12572         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12573         ULONGEST.  Change 'len_avail' type to ULONGEST.
12574         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12575         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12576         declaration.
12577         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12578
12579 2014-02-07  Yao Qi  <yao@codesourcery.com>
12580
12581         * corefile.c (memory_error): Get 'exception' from ERR and pass
12582         'exception' to throw_error.
12583
12584 2014-02-06  Doug Evans  <xdje42@gmail.com>
12585
12586         * configure.ac (libpython checking): Remove all but python.o from
12587         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
12588         * configure: Regenerate.
12589
12590         * Makefile.in (SFILES): Add extension.c.
12591         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12592         (COMMON_OBS): Add extension.o.
12593         * extension.h: New file.
12594         * extension-priv.h: New file.
12595         * extension.c: New file.
12596
12597         * python/python-internal.h: #include "extension.h".
12598         (gdbpy_auto_load_enabled): Declare.
12599         (gdbpy_apply_val_pretty_printer): Declare.
12600         (gdbpy_apply_frame_filter): Declare.
12601         (gdbpy_preserve_values): Declare.
12602         (gdbpy_breakpoint_cond_says_stop): Declare.
12603         (gdbpy_breakpoint_has_cond): Declare.
12604         (void source_python_script_for_objfile): Delete.
12605         * python/python.c: #include "extension-priv.h".
12606         Delete inclusion of "observer.h".
12607         (extension_language_python): Moved here and renamed from
12608         script_language_python in py-auto-load.c.
12609         Redefined to be of type extension_language_defn.
12610         (python_extension_script_ops): New global.
12611         (python_extension_ops): New global.
12612         (struct python_env): New member previous_active.
12613         (restore_python_env): Call restore_active_ext_lang.
12614         (ensure_python_env): Call set_active_ext_lang.
12615         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12616         New arg extlang.
12617         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12618         New arg extlang.
12619         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12620         New arg extlang.
12621         (gdbpy_eval_from_control_command): Renamed from
12622         eval_python_from_control_command, made static.  New arg extlang.
12623         (gdbpy_source_script) Renamed from source_python_script, made static.
12624         New arg extlang.
12625         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
12626         result to int.  New arg extlang.
12627         (gdbpy_source_objfile_script): Renamed from
12628         source_python_script_for_objfile, made static.  New arg extlang.
12629         (gdbpy_start_type_printers): Renamed from start_type_printers, made
12630         static.  New args extlang, extlang_printers.  Change result type to
12631         "void".
12632         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12633         static.  New arg extlang.  Rename arg printers to extlang_printers
12634         and change type to ext_lang_type_printers *.
12635         (gdbpy_free_type_printers): Renamed from free_type_printers, made
12636         static.  Replace argument arg with extlang, extlang_printers.
12637         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12638         (!HAVE_PYTHON, source_python_script): Delete.
12639         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12640         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12641         (!HAVE_PYTHON, start_type_printers): Delete.
12642         (!HAVE_PYTHON, apply_type_printers): Delete.
12643         (!HAVE_PYTHON, free_type_printers): Delete.
12644         (_initialize_python): Delete call to observer_attach_before_prompt.
12645         (finalize_python): Set/restore active extension language.
12646         (gdbpy_finish_initialization) Renamed from
12647         finish_python_initialization, made static.  New arg extlang.
12648         (gdbpy_initialized): New function.
12649         * python/python.h: #include "extension.h".  Delete #include
12650         "value.h", "mi/mi-cmds.h".
12651         (extension_language_python): Declare.
12652         (GDBPY_AUTO_FILE_NAME): Delete.
12653         (enum py_bt_status): Moved to extension.h and renamed to
12654         ext_lang_bt_status.
12655         (enum frame_filter_flags): Moved to extension.h.
12656         (enum py_frame_args): Moved to extension.h and renamed to
12657         ext_lang_frame_args.
12658         (finish_python_initialization): Delete.
12659         (eval_python_from_control_command): Delete.
12660         (source_python_script): Delete.
12661         (apply_val_pretty_printer): Delete.
12662         (apply_frame_filter): Delete.
12663         (preserve_python_values): Delete.
12664         (gdbpy_script_language_defn): Delete.
12665         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12666         (start_type_printers, apply_type_printers, free_type_printers): Delete.
12667
12668         * auto-load.c: #include "extension.h".
12669         (GDB_AUTO_FILE_NAME): Delete.
12670         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
12671         (script_language_gdb): Delete, moved to extension.c and renamed to
12672         extension_language_gdb.
12673         (source_gdb_script_for_objfile): Delete.
12674         (auto_load_pspace_info): New member unsupported_script_warning_printed.
12675         (loaded_script): Change type of language member to
12676         struct extension_language_defn *.
12677         (init_loaded_scripts_info): Initialize
12678         unsupported_script_warning_printed.
12679         (maybe_add_script): Make static.  Change type of language arg to
12680         struct extension_language_defn *.
12681         (clear_section_scripts): Reset unsupported_script_warning_printed.
12682         (auto_load_objfile_script_1): Rewrite to use extension language API.
12683         (auto_load_objfile_script): Make public.  Remove support-compiled-in
12684         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12685         (source_section_scripts): Rewrite to use extension language API.
12686         (load_auto_scripts_for_objfile): Rewrite to use
12687         auto_load_scripts_for_objfile.
12688         (collect_matching_scripts_data): Change type of language member to
12689         struct extension_language_defn *.
12690         (auto_load_info_scripts): Change type of language arg to
12691         struct extension_language_defn *.
12692         (unsupported_script_warning_print): New function.
12693         (script_not_found_warning_print): Make static.
12694         (_initialize_auto_load): Rewrite construction of scripts-directory
12695         help.
12696         * auto-load.h (struct objfile): Add forward decl.
12697         (struct script_language): Delete.
12698         (struct auto_load_pspace_info): Add forward decl.
12699         (struct extension_language_defn): Add forward decl.
12700         (maybe_add_script): Delete.
12701         (auto_load_objfile_script): Declare.
12702         (script_not_found_warning_print): Delete.
12703         (auto_load_info_scripts): Update prototype.
12704         (auto_load_gdb_scripts_enabled): Declare.
12705         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12706         auto_load_python_scripts_enabled and made public.
12707         (script_language_python): Delete, moved to python.c.
12708         (gdbpy_script_language_defn): Delete.
12709         (info_auto_load_python_scripts): Update to use
12710         extension_language_python.
12711
12712         * breakpoint.c (condition_command): Replace call to
12713         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12714         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12715         with call to breakpoint_ext_lang_cond_says_stop.
12716         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12717         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
12718         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12719         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12720         New arg slang.
12721         (local_setattro): Print name of extension language with existing
12722         stop condition.
12723
12724         * valprint.c (val_print, value_print): Update to call
12725         apply_ext_lang_val_pretty_printer.
12726         * cp-valprint.c (cp_print_value): Update call to
12727         apply_ext_lang_val_pretty_printer.
12728         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12729         (gdbpy_apply_val_pretty_printer): Renamed from
12730         apply_val_pretty_printer.  New arg extlang.
12731         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12732
12733         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12734         extension language API.
12735         * cli/cli-script.c (execute_control_command): Update to call
12736         eval_ext_lang_from_control_command.
12737
12738         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12739         enum ext_lang_bt_status values.  Update call to
12740         apply_ext_lang_frame_filter.
12741         (mi_cmd_stack_list_locals): Ditto.
12742         (mi_cmd_stack_list_args): Ditto.
12743         (mi_cmd_stack_list_variables): Ditto.
12744         * mi/mi-main.c: Delete #include "python/python-internal.h".
12745         Add #include "extension.h".
12746         (mi_cmd_list_features): Replace reference to python internal variable
12747         gdb_python_initialized with call to ext_lang_initialized_p.
12748
12749         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12750         Update to use enum ext_lang_frame_args.  Update to call
12751         apply_ext_lang_frame_filter.
12752         * python/py-framefilter.c (extract_sym): Update to use enum
12753         ext_lang_bt_status.
12754         (extract_value, py_print_type, py_print_value): Ditto.
12755         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12756         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12757         (py_print_frame): Ditto.
12758         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12759         New arg extlang.  Update to use enum ext_lang_bt_status.
12760
12761         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12762         finish_python_initialization.  Replace with call to
12763         finish_ext_lang_initialization.
12764
12765         * typeprint.c (do_free_global_table): Update to call
12766         free_ext_lang_type_printers.
12767         (create_global_typedef_table): Update to call
12768         start_ext_lang_type_printers.
12769         (find_global_typedef): Update to call apply_ext_lang_type_printers.
12770         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12771         (type_print_options): Change type of global_printers from "void *"
12772         to "struct ext_lang_type_printers *".
12773
12774         * value.c (preserve_values): Update to call preserve_ext_lang_values.
12775         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12776         (gdbpy_preserve_values): Renamed from preserve_python_values.
12777         New arg extlang.
12778         (!HAVE_PYTHON, preserve_python_values): Delete.
12779
12780         * utils.c (quit_flag): Delete, moved to extension.c.
12781         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12782         extension.c.
12783
12784         * eval.c: Delete #include "python/python.h".
12785         * main.c: Delete #include "python/python.h".
12786
12787         * defs.h: Update comment.
12788
12789 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
12790
12791         GDB 7.7 released.
12792
12793 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
12794
12795         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12796         defined.
12797
12798 2014-02-05  Yao Qi  <yao@codesourcery.com>
12799
12800         * remote.c (remote_pass_signals): Remove local 'buf' and use
12801         rs->buf.
12802         (remote_program_signals): Likewise.
12803
12804 2014-02-05  Yao Qi  <yao@codesourcery.com>
12805
12806         * ctf.c: Include "inferior.h" and "gdbthread.h".
12807         (CTF_PID): A new macro.
12808         (ctf_open): Call inferior_appeared and add_thread_silent.
12809         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12810         (ctf_thread_alive): New function.
12811         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12812
12813 2014-02-05  Yao Qi  <yao@codesourcery.com>
12814
12815         Revert this patch:
12816
12817         2013-05-24  Yao Qi  <yao@codesourcery.com>
12818
12819         * tracepoint.c (TFILE_PID): Remove.
12820         (tfile_open): Don't add thread and inferior.
12821         (tfile_close): Don't set 'inferior_ptid'.  Don't call
12822         exit_inferior_silent.
12823         (tfile_thread_alive): Remove.
12824         (init_tfile_ops): Don't set field 'to_thread_alive' of
12825         tfile_ops.
12826
12827 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
12828
12829         * remote.c (remote_start_remote): Call remote_check_symbols even
12830         if only symbol-file (not file) has been given.
12831
12832 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12833
12834         * gdbarch.sh (skip_entrypoint): New callback.
12835         * gdbarch.c, gdbarch.h: Regenerate.
12836         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12837         * infrun.c (fill_in_stop_func): Likewise.
12838         * ppc-linux-tdep.c: Include "elf/ppc64.h".
12839         (ppc_elfv2_elf_make_msymbol_special): New function.
12840         (ppc_elfv2_skip_entrypoint): Likewise.
12841         (ppc_linux_init_abi): Install them for ELFv2.
12842
12843 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12844
12845         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12846         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12847         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12848         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
12849         structures returned in GPRs.
12850
12851 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12852
12853         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12854         offset to the stack parameter list for the ELFv2 ABI.
12855
12856 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12857
12858         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12859         set_gdbarch_convert_from_func_ptr_addr and
12860         set_gdbarch_elf_make_msymbol_special for ELFv1.
12861         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12862         function descriptors on ELFv1.
12863         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
12864         set up r12 at function entry.
12865
12866 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12867
12868         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12869         (struct gdbarch_tdep): New member elf_abi.
12870
12871         * rs6000-tdep.c: Include "elf/ppc64.h".
12872         (rs6000_gdbarch_init): Detect ELF ABI version.
12873
12874 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12875
12876         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12877         within a register pair holding a DFP 128-bit value on little-endian.
12878         (ppc64_sysv_abi_return_value_base): Likewise.
12879         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12880         (dfp_pseudo_register_write): Likewise.
12881
12882 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12883
12884         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12885         offset on little-endian when passing _Decimal32.
12886         (ppc64_sysv_abi_return_value_base): Likewise for return values.
12887
12888 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12889
12890         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12891         of the overlapped FP register within the VSX register on little-
12892         endian platforms.
12893         (efpr_pseudo_register_write): Likewise.
12894
12895 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12896
12897         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12898         offset on little-endian when passing small structures.
12899
12900 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12901
12902         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12903         (struct ppc64_sysv_argpos): New data structure.
12904         (ppc64_sysv_abi_push_float): Remove.
12905         (ppc64_sysv_abi_push_val): New function.
12906         (ppc64_sysv_abi_push_integer): Likewise.
12907         (ppc64_sysv_abi_push_freg): Likewise.
12908         (ppc64_sysv_abi_push_vreg): Likewise.
12909         (ppc64_sysv_abi_push_param): Likewise.
12910         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12911         (ppc64_sysv_abi_return_value_base): New function.
12912         (ppc64_sysv_abi_return_value): Refactor to use it.
12913
12914 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12915
12916         * NEWS: Document new target powerpc64le-*-linux*.
12917
12918 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
12919
12920         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12921         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12922         core dumps.
12923         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12924         register set used in ELF core dumps.  Add floating-point register set.
12925
12926 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
12927
12928         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12929         dwarf2_to_gdb[] table using symbolic constants.  Adjust
12930         penultimate entry from number representing the PC register
12931         to symbolic constant representing the MDR register.  Add
12932         constant for the PC register to the end of the table.
12933
12934 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12935
12936         * bsd-kvm.c: Include <sys/param.h>
12937
12938 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12939
12940         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12941
12942 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
12943
12944         * ada-lang.h (clear_ada_sym_cache): Delete.
12945
12946 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
12947
12948         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12949
12950 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
12951
12952         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12953           the sigreturn register save area only if the syscall is
12954           sigreturn.
12955
12956 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
12957
12958         * valops.c (value_slice): Minor reformatting.
12959
12960 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
12961
12962         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12963
12964 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
12965
12966         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12967         New static globals.
12968         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12969         (ada_ignore_descriptive_types_p): New static global.
12970         (find_parallel_type_by_descriptive_type): Return immediately
12971         if ada_ignore_descriptive_types_p is set.
12972         (_initialize_ada_language): Register new commands "maintenance
12973         set ada", "maintenance show ada", "maintenance set ada
12974         ignore-descriptive-types" and "maintenance show ada
12975         ignore-descriptive-types".
12976         * NEWS: Add entry for new "maint ada set/show
12977         ignore-descriptive-types" commands.
12978
12979 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
12980
12981         * record-btrace.c (record_btrace_close): Call btrace_teardown
12982         for all threads.
12983
12984 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12985
12986         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12987         "ui-out.h".
12988
12989 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12990
12991         * ada-typeprint (type_is_full_subrange_of_target_type):
12992         New function.
12993         (print_range): Add parameter bounds_prefered_p.  If not set,
12994         try printing range types using the name of their base type.
12995         (print_range_type): Add parameter bounds_prefered_p.
12996         Use it in call to print_range.
12997         (print_array_type, ada_print_type): Update calls to print_range
12998         and print_range_type.
12999
13000 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13001
13002         * ada-typeprint.c (print_array_type, print_choices, print_range)
13003         (print_range_bound, print_dynamic_range_bound, print_range_type):
13004         Remove declaration.
13005
13006 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13007
13008         * ada-typeprint.c (print_range): Add missing empty line
13009         after local declaration.
13010
13011 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13012
13013         * ada-valprint.c (print_optional_low_bound): Get index_type's
13014         target type for as long as it is a TYPE_CODE_RANGE.
13015
13016 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13017
13018         * procfs.c (procfs_make_note_section): Remove assertion and
13019         associated comment.
13020
13021 2014-01-24  Yao Qi  <yao@codesourcery.com>
13022
13023         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13024         * corelow.c (get_core_siginfo): Likewise.
13025
13026 2014-01-24  Yao Qi  <yao@codesourcery.com>
13027
13028         * remote.c (remote_write_bytes_aux): Change type of 'len' to
13029         ULONGEST.  Don't check 'len' is negative.
13030         (remote_write_bytes):  Change type of 'len' to ULONGEST.
13031
13032 2014-01-23  Tom Tromey  <tromey@redhat.com>
13033
13034         PR python/16485:
13035         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13036         Handle exception from frame.block.
13037         (FrameVars.fetch_frame_locals): Likewise.
13038
13039 2014-01-23  Tom Tromey  <tromey@redhat.com>
13040
13041         PR python/16487:
13042         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13043         on a NULL pointer.  Move "goto error" to correct place.
13044
13045 2014-01-23  Tom Tromey  <tromey@redhat.com>
13046
13047         PR python/16491:
13048         * python/py-framefilter.c (apply_frame_filter): Call
13049         ensure_python_env after computing gdbarch.
13050
13051 2014-01-23  Yao Qi  <yao@codesourcery.com>
13052
13053         * target.c (raw_memory_xfer_partial): Change argument type
13054         from void * to gdb_byte *.
13055         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13056
13057 2014-01-22  Doug Evans  <dje@google.com>
13058
13059         New gdbserver option --debug-format=timestamp.
13060         * NEWS: Mention it.
13061
13062 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
13063
13064         * syscalls/s390x-linux.xml: New file.
13065         * syscalls/s390-linux.xml: New file.
13066         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13067         (XML_SYSCALL_FILENAME_S390X): Likewise.
13068         (op_svc): New enum value for SVC opcode.
13069         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13070         (s390_linux_get_syscall_number): New function.
13071         (s390_gdbarch_init): Register '*get_syscall_number' and the
13072         syscall xml file name.
13073         * data-directory/Makefile.in (SYSCALLS_FILES): Add
13074         "s390-linux.xml" and "s390x-linux.xml".
13075         * NEWS: Announce new feature.
13076
13077 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
13078
13079         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13080
13081 2014-01-22  Pedro Alves  <palves@redhat.com>
13082
13083         * xtensa-config.c: Include defs.h.
13084
13085 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13086
13087         * common/common-utils.h: Add "ARI:" comment beside __func__
13088         reference.
13089
13090 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13091
13092         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13093         documentation a bit.
13094
13095 2014-01-21  Roland McGrath  <mcgrathr@google.com>
13096
13097         * configure.ac: Call AM_PROG_INSTALL_STRIP.
13098         * configure: Regenerate.
13099         * aclocal.m4: Regenerate.
13100         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13101         New substituted variables.
13102         (install-strip): New target.
13103         (INSTALL_SCRIPT): New substituted variable.
13104         (FLAGS_TO_PASS): Add it.
13105         (install-only): Use $(INSTALL_SCRIPT) rather than
13106         $(INSTALL_PROGRAM) for gcore.
13107
13108 2014-01-20  Tom Tromey  <tromey@redhat.com>
13109
13110         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13111         together.
13112
13113 2014-01-20  Tom Tromey  <tromey@redhat.com>
13114
13115         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13116         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13117         (deprecated_cmd_warning, complete_on_cmdlist): Update.
13118         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13119         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13120         (struct cmd_list_element) <flags>: Remove.
13121         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13122         doc_allocated>: New fields.
13123         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13124         bitfields.
13125         * maint.c (maintenance_do_deprecate): Update.
13126         * top.c (execute_command): Update.
13127
13128 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
13129
13130         * xtensa-linux-nat.c: Include asm/ptrace.h.
13131
13132 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13133
13134         * Makefile.in (SFILES): Add d-support.c.
13135         (COMMON_OBS): Add d-support.o.
13136         * d-lang.h (d_parse_symbol): Add comment, now defined in
13137         d-support.c.
13138         * d-lang.c (parse_call_convention)
13139         (parse_attributes, parse_function_types)
13140         (parse_function_args, parse_type, parse_identifier)
13141         (call_convention_p, d_parse_symbol): Move functions to ...
13142         * d-support.c: ... New file.
13143
13144 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13145
13146         * d-lang.h (d_parse_symbol): Add declaration.
13147         * d-lang.c (extract_identifiers)
13148         (extract_type_info): Remove functions.
13149         (parse_call_convention, parse_attributes)
13150         (parse_function_types, parse_function_args)
13151         (parse_type, parse_identifier, call_convention_p)
13152         (d_parse_symbol): New functions.
13153         (d_demangle): Use d_parse_symbol to demangle D symbols.
13154
13155 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13156
13157         * d-lang.h (struct builtin_d_type): New data type.
13158         (builtin_d_type): Add declaration.
13159         * d-lang.c (d_language_arch_info, build_d_types)
13160         (builtin_d_type): New functions.
13161         (enum d_primitive_types): New data type.
13162         (d_language_defn): Change c_language_arch_info to
13163         d_language_arch_info.
13164         (d_type_data): New static variable.
13165         (_initialize_d_language): Initialize d_type_data.
13166
13167 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13168
13169         * d-lang.h (d_main_name): Add declaration.
13170         * d-lang.c (d_main_name): New function.
13171         * symtab.c (find_main_name): Add call to d_main_name.
13172
13173 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13174
13175         * d-lang.c (d_language_defn): Change macro_expansion_c to
13176         macro_expansion_no.
13177
13178 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13179
13180         * MAINTAINERS: Add myself as a write-after-approval maintainer.
13181
13182 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
13183
13184         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13185         gdb_exception" declaration.
13186         * remote.c (getpkt_or_notif_sane): Likewise.
13187
13188 2014-01-17  Doug Evans  <dje@google.com>
13189
13190         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13191         function, contents of dirnames_to_char_ptr_vec_append moved here.
13192         (delim_string_to_char_ptr_vec): New function.
13193         (dirnames_to_char_ptr_vec_append): Rewrite.
13194         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13195
13196 2014-01-17  Doug Evans  <dje@google.com>
13197
13198         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13199         and moved here ...
13200         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13201         #include "common-utils.h".
13202         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13203         * common/vec.h (VEC_ASSERT_PASS): Update.
13204         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13205         (MACH_CHECK_ERROR): Update.
13206
13207 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
13208
13209         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13210         comments.
13211         * gdbarch.h: Regenerate.
13212
13213 2014-01-16  Tom Tromey  <tromey@redhat.com>
13214
13215         * value.c (struct value) <regnum>: Move earlier.
13216
13217 2014-01-16  Tom Tromey  <tromey@redhat.com>
13218
13219         * remote.c (extended_remote_create_inferior): Rename from
13220         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
13221         old implementation.
13222
13223 2014-01-16  Pedro Alves  <palves@redhat.com>
13224
13225         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13226         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13227         the backchain.
13228
13229 2014-01-16  Doug Evans  <dje@google.com>
13230
13231         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13232
13233 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13234
13235         * btrace.h (btrace_thread_flag): New.
13236         (struct btrace_thread_info) <flags>: New.
13237         * record-btrace.c (record_btrace_resume_thread)
13238         (record_btrace_find_thread_to_move, btrace_step_no_history)
13239         (btrace_step_stopped, record_btrace_start_replaying)
13240         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13241         (record_btrace_find_resume_thread): New.
13242         (record_btrace_resume, record_btrace_wait): Extend.
13243         (record_btrace_can_execute_reverse): New.
13244         (record_btrace_open): Fail in non-stop mode.
13245         (record_btrace_set_replay): Split into this, ...
13246         (record_btrace_stop_replaying): ... this, ...
13247         (record_btrace_clear_histories): ... and this.
13248         (init_record_btrace_ops): Init to_can_execute_reverse.
13249         * NEWS: Announce it.
13250
13251 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13252
13253         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13254         (forward_target_decr_pc_after_break)
13255         (target_decr_pc_after_break): New.
13256         * target.c (forward_target_decr_pc_after_break)
13257         (target_decr_pc_after_break): New.
13258         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13259         instead of gdbarch_decr_pc_after_break.
13260         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13261         instead of gdbarch_decr_pc_after_break.
13262         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13263         instead of gdbarch_decr_pc_after_break.
13264         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13265         instead of gdbarch_decr_pc_after_break.
13266         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13267         instead of gdbarch_decr_pc_after_break.
13268         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13269         instead of gdbarch_decr_pc_after_break.
13270
13271 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13272
13273         * btrace.c: Include regcache.h.
13274         (btrace_add_pc): New.
13275         (btrace_enable): Call btrace_add_pc.
13276         (btrace_is_empty): New.
13277         * btrace.h (btrace_is_empty): New.
13278         * record-btrace.c (require_btrace, record_btrace_info): Call
13279         btrace_is_empty.
13280
13281 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13282
13283         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13284         Support delta reads.
13285         (linux_disable_btrace): Change return type.
13286         * common/linux-btrace.h (linux_read_btrace): Change parameters
13287         and return type to allow error reporting.  Update users.
13288         (linux_disable_btrace): Change return type.  Update users.
13289         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13290         New.
13291         (btrace_error): New.
13292         (btrace_block) <begin>: Comment on BEGIN == 0.
13293         * btrace.c (btrace_compute_ftrace): Start from the end of
13294         the current trace.
13295         (btrace_stitch_trace, btrace_clear_history): New.
13296         (btrace_fetch): Read delta trace, return if replaying.
13297         (btrace_clear): Move clear history code to btrace_clear_history.
13298         (parse_xml_btrace): Throw an error if parsing failed.
13299         * target.h (struct target_ops) <to_read_btrace>: Change parameters
13300         and return type to allow error reporting.
13301         (target_read_btrace): Change parameters and return type to allow
13302         error reporting.
13303         * target.c (target_read_btrace): Update.
13304         * remote.c (remote_read_btrace): Support delta reads.  Pass
13305         errors on.
13306         * NEWS: Announce it.
13307
13308 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13309
13310         * record.h (record_btrace_frame_unwind)
13311         (record_btrace_tailcall_frame_unwind): New declarations.
13312         * dwarf2-frame: Include record.h
13313         (dwarf2_frame_cfa): Throw an error for btrace frames.
13314         * record-btrace.c: Include hashtab.h.
13315         (btrace_get_bfun_name): New.
13316         (btrace_call_history): Call btrace_get_bfun_name.
13317         (struct btrace_frame_cache): New.
13318         (bfcache): New.
13319         (bfcache_hash, bfcache_eq, bfcache_new): New.
13320         (btrace_get_frame_function): New.
13321         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13322         (record_btrace_frame_this_id): Compute own id.
13323         (record_btrace_frame_prev_register): Provide PC, throw_error
13324         for all other registers.
13325         (record_btrace_frame_sniffer): Detect btrace frames.
13326         (record_btrace_tailcall_frame_sniffer): New.
13327         (record_btrace_frame_dealloc_cache): New.
13328         (record_btrace_frame_unwind): Add new functions.
13329         (record_btrace_tailcall_frame_unwind): New.
13330         (_initialize_record_btrace): Allocate cache.
13331         * btrace.c (btrace_clear): Call reinit_frame_cache.
13332         * NEWS: Announce it.
13333
13334 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13335
13336         * record-btrace.c (record_btrace_set_replay)
13337         (record_btrace_goto_begin, record_btrace_goto_end)
13338         (record_btrace_goto): New.
13339         (init_record_btrace_ops): Initialize them.
13340         * NEWS: Announce it.
13341
13342 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13343
13344         * record-btrace.c (record_btrace_find_new_threads)
13345         (record_btrace_thread_alive): New.
13346         (init_record_btrace_ops): Initialize to_find_new_threads and
13347         to_thread_alive.
13348
13349 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13350
13351         * record-btrace.c (record_btrace_resume): New.
13352         (record_btrace_wait): New.
13353         (init_record_btrace_ops): Initialize to_wait and to_resume.
13354
13355 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13356
13357         * record-btrace.c (record_btrace_xfer_partial)
13358         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13359         (record_btrace_allow_memory_access): New.
13360         (init_record_btrace_ops): Initialize new methods.
13361         * target.c (raw_memory_xfer_partial): Bail out if target reports
13362         that this memory is not available.
13363
13364 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13365
13366         * target.h (target_ops) <to_insert_breakpoint>
13367         <to_remove_breakpoint>: Add target_ops parameter.
13368         (forward_target_insert_breakpoint): New.
13369         (forward_target_remove_breakpoint): New.
13370         (memory_remove_breakpoint, memory_insert_breakpoint):
13371         Add target_ops parameter.
13372         * target.c (target_insert_breakpoint): Split into this and ...
13373         (forward_target_insert_breakpoint): ... this.
13374         (target_remove_breakpoint): Split into this and ...
13375         (forward_target_remove_breakpoint): ... this.
13376         (debug_to_insert_breakpoint): Add target_ops parameter.
13377         Call forward_target_insert_breakpoint.
13378         (debug_to_remove_breakpoint): Add target_ops parameter.
13379         Call forward_target_remove_breakpoint.
13380         (update_current_target): Do not inherit or default to_insert_breakpoint
13381         and to_remove_breakpoint.
13382         * corelow.c (ignore): Add target_ops parameter.
13383         * exec.c (ignore): Add target_ops parameter.
13384         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13385         Add target_ops parameter.
13386         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13387         Add target_ops parameter.
13388         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13389         Add target_ops parameter.
13390         * record-full.c (record_full_beneath_to_insert_breakpoint)
13391         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13392         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13393         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13394         (record_full_core_remove_breakpoint): Add target_ops parameter.
13395         Update users.
13396         (record_full_beneath_to_insert_breakpoint_ops)
13397         (record_full_beneath_to_remove_breakpoint_ops)
13398         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13399         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13400         tmp_to_remove_breakpoint_ops,
13401         record_full_beneath_to_insert_breakpoint_ops, and
13402         record_full_beneath_to_remove_breakpoint_ops.
13403         * remote-m32r-sdi.c (m32r_insert_breakpoint)
13404         (m32r_remove_breakpoint): Add target_ops parameter.
13405         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13406         Add target_ops parameter.
13407         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13408         Add target_ops parameter.
13409
13410 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13411             Markus Metzger  <markus.t.metzger@intel.com>
13412
13413         * record-btrace.c: Include frame-unwind.h.
13414         (record_btrace_frame_unwind_stop_reason)
13415         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13416         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13417         New.
13418         (init_record_btrace_ops): Install it.
13419
13420 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13421
13422         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13423         get_prev_frame_1.
13424
13425 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13426
13427         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13428         earlier.
13429
13430 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13431
13432         * frame-unwind.c: Include target.h.
13433         (frame_unwind_try_unwinder): New function with code from ...
13434         (frame_unwind_find_by_frame): ... here.  New variable
13435         unwinder_from_target, call also target_get_unwinder)
13436         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13437         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13438         * target.h (struct target_ops): New fields to_get_unwinder and
13439         to_get_tailcall_unwinder.
13440         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13441
13442 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13443
13444         * record-btrace.c (record_btrace_fetch_registers)
13445         (record_btrace_store_registers)
13446         (record_btrace_to_prepare_to_store): New.
13447         (init_record_btrace_ops): Add the above.
13448
13449 2014-01-16  Tom Tromey  <tromey@redhat.com>
13450
13451         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13452         * target.h (struct target_ops) <to_prepare_to_store>: Add
13453         argument.
13454         (target_prepare_to_store): Add argument.
13455         * target.c (debug_to_prepare_to_store): Add argument.
13456         (update_current_target): Update.
13457         * remote.c (remote_prepare_to_store): Add 'self' argument.
13458         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13459         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13460         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13461         * record-full.c (record_full_core_prepare_to_store): Add 'self'
13462         argument.
13463         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13464         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13465         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13466         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13467         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13468
13469 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13470
13471         * btrace.h (replay) <replay>: New.
13472         (btrace_is_replaying): New.
13473         * btrace.c (btrace_clear): Free replay iterator.
13474         (btrace_is_replaying): New.
13475         * record-btrace.c (record_btrace_is_replaying): New.
13476         (record_btrace_info): Print insn number if replaying.
13477         (record_btrace_insn_history): Start at replay position.
13478         (record_btrace_call_history): Start at replay position.
13479         (init_record_btrace_ops): Init to_record_is_replaying.
13480
13481 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13482
13483         * record-btrace.c (record_btrace_insn_history_range): Include
13484         end.
13485         (record_btrace_insn_history_from): Adjust range.
13486         (record_btrace_call_history_range): Include
13487         end.
13488         (record_btrace_call_history_from): Adjust range.
13489         * NEWS: Announce changes.
13490
13491 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13492
13493         * record.h (enum record_print_flag)
13494         <record_print_indent_calls>: New.
13495         * record.c (get_call_history_modifiers): Recognize /c modifier.
13496         (_initialize_record): Document /c modifier.
13497         * record-btrace.c (btrace_call_history): Add btinfo parameter.
13498         Reorder fields.  Optionally indent the function name.  Update
13499         all users.
13500         * NEWS: Announce changes.
13501
13502 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13503
13504         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13505
13506 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13507
13508         * btrace.c (ftrace_new_function): Start counting at one.
13509         * record-btrace.c (record_btrace_info): Adjust number of calls
13510         and insns.
13511         * NEWS: Announce it.
13512
13513 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13514
13515         * record-btrace.c (btrace_call_history_insn_range): Print
13516         insn range as [begin, end].
13517
13518 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13519
13520         * btrace.h (struct btrace_func_link): New.
13521         (enum btrace_function_flag): New.
13522         (struct btrace_inst): Rename to ...
13523         (struct btrace_insn): ...this. Update all users.
13524         (struct btrace_func) <ibegin, iend>: Remove.
13525         (struct btrace_func_link): New.
13526         (struct btrace_func): Rename to ...
13527         (struct btrace_function): ...this. Update all users.
13528         (struct btrace_function) <segment, flow, up, insn, insn_offset)
13529         (number, level, flags>: New.
13530         (struct btrace_insn_iterator): Rename to ...
13531         (struct btrace_insn_history): ...this.
13532         Update all users.
13533         (struct btrace_insn_iterator, btrace_call_iterator): New.
13534         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13535         (struct btrace_target_info) <begin, end, level>
13536         <insn_history, call_history>: New.
13537         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13538         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13539         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13540         (btrace_call_number, btrace_call_begin, btrace_call_end)
13541         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13542         (btrace_find_function_by_number, btrace_set_insn_history)
13543         (btrace_set_call_history): New.
13544         * btrace.c (btrace_init_insn_iterator)
13545         (btrace_init_func_iterator, compute_itrace): Remove.
13546         (ftrace_print_function_name, ftrace_print_filename)
13547         (ftrace_skip_file): Change
13548         parameter to const.
13549         (ftrace_init_func): Remove.
13550         (ftrace_debug): Use new btrace_function fields.
13551         (ftrace_function_switched): Also consider gaining and
13552         losing symbol information).
13553         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13554         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13555         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13556         New.
13557         (ftrace_new_function): Move. Remove debug print.
13558         (ftrace_update_lines, ftrace_update_insns): New.
13559         (ftrace_update_function): Check for call, ret, and jump.
13560         (compute_ftrace): Renamed to ...
13561         (btrace_compute_ftrace): ...this. Rewritten to compute call
13562         stack.
13563         (btrace_fetch, btrace_clear): Updated.
13564         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13565         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13566         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13567         (btrace_call_number, btrace_call_begin, btrace_call_end)
13568         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13569         (btrace_find_function_by_number, btrace_set_insn_history)
13570         (btrace_set_call_history): New.
13571         * record-btrace.c (require_btrace): Use new btrace thread
13572         info fields.
13573         (record_btrace_info, btrace_insn_history)
13574         (record_btrace_insn_history, record_btrace_insn_history_range):
13575         Use new btrace thread info fields and new iterator.
13576         (btrace_func_history_src_line): Rename to ...
13577         (btrace_call_history_src_line): ...this. Use new btrace
13578         thread info fields.
13579         (btrace_func_history): Rename to ...
13580         (btrace_call_history): ...this. Use new btrace thread info
13581         fields and new iterator.
13582         (record_btrace_call_history, record_btrace_call_history_range):
13583         Use new btrace thread info fields and new iterator.
13584
13585 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13586
13587         * frame.h (frame_id_build_unavailable_stack_special): New.
13588         * frame.c (frame_id_build_unavailable_stack_special): New.
13589
13590 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13591
13592         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13593         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13594         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13595         to gdbarch.
13596         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13597         (i386_insn_is_jump, i386_jmp_p): New.
13598         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13599         insn_is_jump to gdbarch.
13600         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13601         * gdbarch.h: Regenerated.
13602         * gdbarch.c: Regenerated.
13603         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13604         (default_insn_is_jump): New.
13605         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13606         (default_insn_is_jump): New.
13607
13608 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13609
13610         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13611         Change to ...
13612         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
13613         (btrace_read_type) <btrace_read_new>: Change to ...
13614         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
13615
13616 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13617
13618         * common/linux-btrace.c (linux_read_btrace): Free trace from
13619         previous iteration.
13620
13621 2014-01-15  Doug Evans  <dje@google.com>
13622
13623         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13624         uint32_t.
13625
13626 2014-01-15  Tom Tromey  <tromey@redhat.com>
13627
13628         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13629         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13630         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13631         (set_objfile_main_name): New function.
13632         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13633         language_of_main>: New fields.
13634         (set_objfile_main_name): Declare.
13635         * symtab.c (find_main_name): Loop over objfiles to find the main
13636         name and language.
13637         (set_main_name): Now static.
13638         (get_main_info): Add comment.
13639         * symtab.h (set_main_name): Don't declare.
13640
13641 2014-01-15  Tom Tromey  <tromey@redhat.com>
13642
13643         * symtab.c (main_progspace_key): New global.
13644         (struct main_info): New.
13645         (name_of_main, language_of_main): Remove.
13646         (get_main_info, main_info_cleanup): New function.
13647         (set_main_name, main_name, main_language): Use get_main_info.
13648         (_initialize_symtab): Initialize main_progspace_key.
13649
13650 2014-01-15  Tom Tromey  <tromey@redhat.com>
13651
13652         * dbxread.c (process_one_symbol): Update.
13653         * dwarf2read.c (read_partial_die): Update.
13654         * symfile.c (set_initial_language): Call main_language.
13655         * symtab.c (language_of_main): Now static.
13656         (set_main_name): Add 'lang' parameter.
13657         (find_main_name): Update.
13658         (main_language): New function.
13659         (symtab_observer_executable_changed): Update.
13660         * symtab.h (set_main_name): Update.
13661         (language_of_main): Remove.
13662         (main_language): Declare.
13663
13664 2014-01-15  Tom Tromey  <tromey@redhat.com>
13665
13666         * symfile.c (init_entry_point_info): Use new "initialized" field.
13667         Update.
13668         * objfiles.h (struct entry_point) <initialized>: New field.
13669         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13670         (struct objfile) <ei>: ...here.  Remove.
13671         * objfiles.c (entry_point_address_query): Update.
13672
13673 2014-01-15  Tom Tromey  <tromey@redhat.com>
13674
13675         * objfiles.c (entry_point_address_query): Relocate entry point
13676         address.
13677         (objfile_relocate1): Do not relocate entry point address.
13678         * objfiles.h (struct entry_info) <entry_point>: Update comment.
13679         <the_bfd_section_index>: New field.
13680         * symfile.c (init_entry_point_info): Find the entry point's
13681         section.
13682
13683 2014-01-15  Tom Tromey  <tromey@redhat.com>
13684
13685         * solib-frv.c (enable_break): Use entry_point_address_query.
13686
13687 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13688
13689         * NEWS: Add note on improved process record-replay on
13690         arm*-linux* targets.
13691
13692 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13693
13694         * arm-tdep.c (enum arm_record_result): New enum.
13695         (arm_record_unsupported_insn): New function.
13696         (arm_record_coproc_data_proc): Removed.
13697         (thumb2_record_ld_st_multiple): New function.
13698         (thumb2_record_ld_st_dual_ex_tbb): New function.
13699         (thumb2_record_data_proc_sreg_mimm): New function.
13700         (thumb2_record_ps_dest_generic): New function.
13701         (thumb2_record_branch_misc_cntrl): New function.
13702         (thumb2_record_str_single_data): New function.
13703         (thumb2_record_ld_mem_hints): New function.
13704         (thumb2_record_ld_word): New function.
13705         (thumb2_record_lmul_lmla_div): New function.
13706         (thumb2_record_decode_insn_handler): New function.
13707         (decode_insn): Add thumb32 instruction handlers.
13708
13709 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13710
13711         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13712         (struct arm_linux_record_tdep): Declare.
13713         (arm_canonicalize_syscall): New function.
13714         (arm_all_but_pc_registers_record): New function.
13715         (arm_linux_syscall_record): New function.
13716         (arm_linux_init_abi): Add syscall recording constructs.
13717         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13718         decoding.  (arm_record_coproc_data_proc): Update arm syscall
13719         decoding.
13720         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13721         <arm_syscall_record>: New field.
13722         * configure.tgt (arm*-*-linux*): Add linux-record.o to
13723         gdb_target_obs.
13724
13725 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13726
13727         * arm-tdep.c (thumb_record_misc): Update to use sp as base
13728         register for push instruction recording.
13729
13730 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13731
13732         * arm-tdep.c (thumb_record_misc): Update to correct logical
13733         error while recording ldm, ldmia and pop instructions.
13734
13735 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13736
13737         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13738
13739 2014-01-15  Pedro Alves  <palves@redhat.com>
13740
13741         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13742         (go32_resume, go32_fetch_registers, store_register)
13743         (go32_store_registers, go32_prepare_to_store)
13744         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13745         (go32_create_inferior, go32_can_run, go32_terminal_init)
13746         (go32_terminal_inferior, go32_terminal_ours): Delete forward
13747         declarations.
13748
13749 2014-01-15  Tom Tromey  <tromey@redhat.com>
13750
13751         * target.h (async_callback_ftype): New typedef.
13752         (struct target_ops) <to_async>: Use it.
13753
13754 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
13755
13756         * python/py-value.c (get_field_type): Remove unnecessary curly
13757         braces for single-statement if block.
13758
13759 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
13760
13761         * python/py-type.c (convert_field): Add missing empty line
13762         after declarations.
13763
13764 2014-01-14  Doug Evans  <dje@google.com>
13765
13766         * symfile.h (expand_symtabs_matching): Renamed from
13767         expand_partial_symbol_names.  Update prototype.
13768         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13769         * symfile.c (expand_symtabs_matching): Renamed from
13770         expand_partial_symbol_names.  New args file_matcher, kind.
13771         Rename arg fun to symbol_matcher.
13772         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13773         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13774         ada_expand_partial_symbol_name.
13775         (ada_make_symbol_completion_list): Update to call
13776         expand_symtabs_matching.
13777         (ada_add_global_exceptions): Call expand_symtabs_matching.
13778         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13779         call map_symbol_filenames.
13780         * symtab.c (sources_info): Update to call map_symbol_filenames.
13781         (search_symbols): Call expand_symtabs_matching.
13782         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13783         (default_make_symbol_completion_list_break_on): Update to call
13784         expand_symtabs_matching.
13785         (make_source_files_completion_list): Update to call
13786         map_symbol_filenames.
13787
13788 2014-01-14  Doug Evans  <dje@google.com>
13789
13790         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13791         (expand_symtabs_symbol_matcher_ftype): New typedef.
13792         (quick_symbol_functions.expand_symtabs_matching): Update to use.
13793         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13794         * symfile.c (expand_partial_symbol_names): Update to use
13795         expand_symtabs_symbol_matcher_ftype.
13796         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13797         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13798         Arg name_matcher renamed to symbol_matcher.
13799         * psymtab.c (recursively_search_psymtabs): Update to use
13800         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
13801         sym_matcher.
13802         (expand_symtabs_matching_via_partial): Update to use
13803         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13804         Arg name_matcher renamed to symbol_matcher.
13805
13806 2014-01-14  Doug Evans  <dje@google.com>
13807
13808         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13809         (map_partial_symbol_filenames): Ditto.
13810         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13811         (map_partial_symbol_filenames): Ditto.
13812         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13813         (map_partial_symbol_filenames): Ditto.
13814         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13815         (map_partial_symbol_filenames): Ditto.
13816         * symtab.c: Delete #include "psymtab.h".
13817
13818 2014-01-14  Pedro Alves  <palves@redhat.com>
13819             Tom Tromey  <tromey@redhat.com>
13820
13821         * infrun.c (use_displaced_stepping): Use find_record_target
13822         instead of RECORD_IS_USED.
13823         (adjust_pc_after_break): Use record_full_is_used instead of
13824         RECORD_IS_USED.
13825         * record-btrace.c (record_btrace_open): Call record_preopen
13826         instead of checking RECORD_IS_USED.
13827         * record-full.c (record_full_shortname)
13828         (record_full_core_shortname): New globals.
13829         (record_full_is_used): New function.
13830         (find_full_open): Call record_preopen instead of checking
13831         RECORD_IS_USED.
13832         (init_record_full_ops): Set the target's shortname to
13833         record_full_shortname.
13834         (init_record_full_core_ops): Set the target's shortname to
13835         record_full_core_shortname.
13836         * record-full.h (record_full_is_used): Declare.
13837         * record.c (find_record_target): Make extern.
13838         (record_preopen): New function.
13839         * record.h (RECORD_IS_USED): Delete macro.
13840         (find_record_target, record_preopen): Declare functions.
13841
13842 2014-01-14  Yao Qi  <yao@codesourcery.com>
13843
13844         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13845         'len''s type to ULONGEST.
13846         (core_xfer_shared_libraries_aix): Likewise.
13847         * gdbarch.c, gdbarch.h: Regenerated.
13848         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13849         Change type of 'len' to ULONGEST.
13850         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13851         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13852
13853 2014-01-14  Yao Qi  <yao@codesourcery.com>
13854
13855         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13856         type of 'len' to ULONGEST.
13857         (linux_xfer_osdata_processgroups): Likewise.
13858         (linux_xfer_osdata_threads): Likewise.
13859         (linux_xfer_osdata_fds): Likewise.
13860         (linux_xfer_osdata_isockets): Likewise.
13861         (linux_xfer_osdata_shm): Likewise.
13862         (linux_xfer_osdata_sem): Likewise.
13863         (linux_xfer_osdata_msg): Likewise.
13864         (linux_common_xfer_osdata): Likewise.
13865         (struct osdata_type) <getter>: Likewise.
13866         * common/linux-osdata.h (linux_common_xfer_osdata): Update
13867         the declaration.
13868
13869 2014-01-14  Yao Qi  <yao@codesourcery.com>
13870
13871         * target.h (target_xfer_partial_ftype): Update.
13872         (struct target_ops) <to_xfer_partial>: Change 'len' type to
13873         ULONGEST.
13874         * aix-thread.c (aix_thread_xfer_partial): Change type of
13875         argument 'len' to ULONGEST.
13876         * auxv.c (procfs_xfer_auxv): Likewise.
13877         (ld_so_xfer_auxv): Likewise.
13878         (memory_xfer_auxv): Likewise.
13879         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13880         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13881         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13882         * corelow.c (core_xfer_partial): Likewise.
13883         * ctf.c (ctf_xfer_partial): Likewise.
13884         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
13885         '%u'.
13886         (darwin_read_dyld_info): Likewise.
13887         (darwin_xfer_partial): Likewise.
13888         * exec.c (section_table_xfer_memory_partial): Likewise.
13889         (exec_xfer_partial): Likewise.
13890         * exec.h (section_table_xfer_memory_partial): Update
13891         declaration.
13892         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
13893         instead of plongest.
13894         (gnu_xfer_partial): Likewise.
13895         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13896         (ia64_hpux_xfer_solib_got): Likewise.
13897         (ia64_hpux_xfer_partial): Likewise.
13898         * ia64-linux-nat.c (ia64_linux_xfer_partial):
13899         * inf-ptrace.c (inf_ptrace_xfer_partial):
13900         * inf-ttrace.c (inf_ttrace_xfer_partial):
13901         * linux-nat.c (linux_xfer_siginfo): Likewise.
13902         (linux_nat_xfer_partial): Likewise.
13903         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13904         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13905         * monitor.c (monitor_xfer_memory): Likewise.
13906         (monitor_xfer_partial): Likewise.
13907         * procfs.c (procfs_xfer_partial): Likewise.
13908         * record-full.c (record_full_xfer_partial): Likewise.
13909         (record_full_core_xfer_partial): Likewise.
13910         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
13911         instead of plongest.
13912         (gdbsim_xfer_partial): Likewise.
13913         * remote.c (remote_xfer_partial): Likewise.
13914         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13915         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13916         declaration.
13917         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13918         (rs6000_xfer_shared_libraries): Likewise.
13919         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13920         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13921         (sparc_xfer_partial): Likewise.
13922         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13923         (spu_xfer_partial): Likewise.
13924         * spu-multiarch.c (spu_xfer_partial): Likewise.
13925         * target.c (target_read_live_memory): Likewise.
13926         (memory_xfer_live_readonly_partial): Likewise.
13927         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13928         (target_xfer_partial, default_xfer_partial): Likewise.
13929         (current_xfer_partial): Likewise.
13930         * tracepoint.c (tfile_xfer_partial): Likewise.
13931         * windows-nat.c (windows_xfer_memory): Likewise.  Call
13932         pulongest instead of plongest.
13933         (windows_xfer_partial): Likewise.
13934         (windows_xfer_shared_libraries): Likewise.
13935
13936 2014-01-14  Yao Qi  <yao@codesourcery.com>
13937
13938         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13939         target_xfer_partial_ftype.
13940
13941 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
13942
13943         PR python/15464
13944         PR python/16113
13945         * valops.c (value_struct_elt_bitpos): New function
13946         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13947         object to 'None' if the field name is an empty string ("").
13948         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13949         attribute to look for a field when 'name' is 'None'.
13950         (get_field_type): New function
13951
13952 2014-01-13  Doug Evans  <dje@google.com>
13953
13954         PR symtab/16426
13955         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13956         (try_open_dwop_file): Ditto.
13957         * gdb_bfd.c: #include "vec.h".
13958         (bfdp): New typedef.
13959         (struct gdb_bfd_data): New member included_bfds.
13960         (gdb_bfd_unref): Unref all included bfds.
13961         (gdb_bfd_record_inclusion): New function.
13962         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13963
13964 2014-01-13  Tom Tromey  <tromey@redhat.com>
13965
13966         * gdbcore.h (deprecated_core_resize_section_table): Remove.
13967
13968 2014-01-13  Tom Tromey  <tromey@redhat.com>
13969
13970         * defs.h (use_windows): Remove.
13971         * gdb.c (main): Update.
13972         * main.c (captured_main, gdb_main): Update.
13973         * main.h (struct captured_main_args) <use_windows>: Remove.
13974         * top.c (use_windows): Remove.
13975
13976 2014-01-13  Tom Tromey  <tromey@redhat.com>
13977
13978         * defs.h (deprecated_flush_hook): Remove.
13979
13980 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
13981
13982         PR threads/16216
13983         * linux-thread-db.c (try_thread_db_load): Add parameter
13984         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
13985         (try_thread_db_load_from_pdir_1): Move it there from here.
13986         (try_thread_db_load_from_sdir): Update caller.
13987         (try_thread_db_load_from_dir): Move it there from here.
13988
13989 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
13990
13991         * regformats/regdat.sh: Always rewrite the register file.
13992
13993 2014-01-13  Pedro Alves  <palves@redhat.com>
13994
13995         * Makefile.in (CHECK_HEADERS): New variable.
13996         (check-headers:): New rule.
13997
13998 2014-01-13  Tom Tromey  <tromey@redhat.com>
13999
14000         * cli/cli-setshow.c (do_set_command): Update.
14001         * defs.h (deprecated_set_hook): Remove.
14002         * top.c (deprecated_set_hook): Remove.
14003
14004 2014-01-13  Pedro Alves  <palves@redhat.com>
14005
14006         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14007         the tracepoint if the PC is a pseudo-register.
14008
14009 2014-01-13  Tom Tromey  <tromey@redhat.com>
14010
14011         * defs.h (XCALLOC): Remove.
14012         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14013         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14014         * dwarf2loc.c (allocate_piece_closure): Likewise.
14015         * elfread.c (elf_symfile_segments): Likewise.
14016         (elf_symfile_segments): Likewise.
14017         * gdbtypes.c (copy_type_recursive): Likewise.
14018         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14019         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14020         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14021         XCALLOC.
14022         * mt-tdep.c (mt_gdbarch_init): Likewise.
14023         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14024         XCALLOC.
14025         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14026         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14027         * registry.c (registry_alloc_data): Likewise.
14028         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14029         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14030         * serial.c (serial_fdopen_ops): Likewise.
14031         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14032         XCALLOC.
14033         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14034         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14035         not XCALLOC.
14036
14037 2014-01-13  Tom Tromey  <tromey@redhat.com>
14038
14039         * defs.h (XMALLOC): Remove.
14040         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14041         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14042         * cli-out.c (struct ui_out *): Likewise.
14043         * cli/cli-dump.c (add_dump_command): Likewise.
14044         (add_dump_command): Likewise.
14045         * complaints.c (get_complaints): Likewise.
14046         (find_complaint): Likewise.
14047         * dwarf2-frame.c (execute_cfa_program): Likewise.
14048         * dwarf2read.c (abbrev_table_read_table): Likewise.
14049         * gdbarch.sh: Likewise.
14050         * gdbarch.c: Rebuild.
14051         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14052         * interps.c (interp_new): Likewise.
14053         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14054         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14055         * mi/mi-console.c (mi_console_file_new): Likewise.
14056         * mi/mi-interp.c (mi_interpreter_init): Likewise.
14057         * mi/mi-out.c (mi_out_new): Likewise.
14058         * mi/mi-parse.c (mi_parse): Likewise.
14059         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14060         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14061         * observer.c (xalloc_observer_list_node): Likewise.
14062         * regcache.c (regcache_xmalloc_1): Likewise.
14063         * reggroups.c (reggroup_new): Likewise.
14064         (_initialize_reggroup): Likewise.
14065         * registry.c (register_data_with_cleanup): Likewise.
14066         * remote.c (remote_notif_stop_alloc_reply): Likewise.
14067         * ser-base.c (serial_ttystate): Likewise.
14068         * ser-mingw.c (make_pipe_state): Likewise.
14069         * ser-pipe.c (pipe_open): Likewise.
14070         * serial.c (serial_open): Likewise.
14071         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14072         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14073         (tui_alloc_win_info): Likewise.
14074         (tui_add_content_elements): Likewise.
14075         * tui/tui-file.c (tui_file_new): Likewise.
14076         * tui/tui-out.c (tui_out_new): Likewise.
14077         * ui-file.c (mem_file_new): Likewise.
14078         * ui-out.c (push_level): Likewise.
14079         (make_cleanup_ui_out_end): Likewise.
14080         (append_header_to_list): Likewise.
14081         (ui_out_new): Likewise.
14082         * user-regs.c (user_reg_add_builtin): Likewise.
14083
14084 2014-01-13  Tom Tromey  <tromey@redhat.com>
14085
14086         * defs.h (XZALLOC): Remove.
14087         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14088         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14089         (get_ada_tasks_inferior_data): Likewise.
14090         * auto-load.c (get_auto_load_pspace_data): Likewise.
14091         * auxv.c (get_auxv_inferior_data): Likewise.
14092         * bfd-target.c (target_bfd_reopen): Likewise.
14093         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14094         (deprecated_insert_raw_breakpoint): Likewise.
14095         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14096         * corelow.c (core_open): Likewise.
14097         * darwin-nat.c (darwin_check_new_threads): Likewise.
14098         (darwin_attach_pid): Likewise.
14099         * dummy-frame.c (dummy_frame_push): Likewise.
14100         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14101         * dwarf2loc.c (allocate_piece_closure): Likewise.
14102         * elfread.c (elf_symfile_segments): Likewise.
14103         * eval.c (ptrmath_type_p): Likewise.
14104         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14105         * gdbtypes.c (alloc_type_arch): Likewise.
14106         (alloc_type_instance): Likewise.
14107         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14108         * inf-child.c (inf_child_can_use_agent): Likewise.
14109         * inflow.c (get_inflow_inferior_data): Likewise.
14110         * infrun.c (save_infcall_suspend_state): Likewise.
14111         * jit.c (jit_reader_load): Likewise.
14112         (get_jit_objfile_data): Likewise.
14113         (get_jit_program_space_data): Likewise.
14114         (jit_object_open_impl): Likewise.
14115         (jit_symtab_open_impl): Likewise.
14116         (jit_block_open_impl): Likewise.
14117         (jit_frame_sniffer): Likewise.
14118         * linux-fork.c (add_fork): Likewise.
14119         * maint.c (make_command_stats_cleanup): Likewise.
14120         * objfiles.c (get_objfile_pspace_data): Likewise.
14121         * opencl-lang.c (struct lval_closure): Likewise.
14122         * osdata.c (osdata_start_osdata): Likewise.
14123         * progspace.c (new_address_space): Likewise.
14124         (add_program_space): Likewise.
14125         * remote-sim.c (get_sim_inferior_data): Likewise.
14126         * sh-tdep.c (sh_gdbarch_init): Likewise.
14127         * skip.c (Ignore): Likewise.
14128         (skip_delete_command): Likewise.
14129         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14130         (library_list_start_library): Likewise.
14131         (solib_aix_current_sos): Likewise.
14132         * solib-darwin.c (get_darwin_info): Likewise.
14133         (darwin_current_sos): Likewise.
14134         * solib-dsbt.c (get_dsbt_info): Likewise.
14135         * solib-ia64-hpux.c (new_so_list): Likewise.
14136         (ia64_hpux_get_solib_linkage_addr): Likewise.
14137         * solib-spu.c (append_ocl_sos): Likewise.
14138         (spu_current_sos): Likewise.
14139         * solib-svr4.c (get_svr4_info): Likewise.
14140         (svr4_keep_data_in_core): Likewise.
14141         (library_list_start_library): Likewise.
14142         (svr4_default_sos): Likewise.
14143         (svr4_read_so_list): Likewise.
14144         * solib-target.c (library_list_start_library): Likewise.
14145         (solib_target_current_sos): Likewise.
14146         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14147         * symfile-debug.c (install_symfile_debug_logging): Likewise.
14148         * symfile.c (default_symfile_segments): Likewise.
14149         * target-descriptions.c (tdesc_data_init): Likewise.
14150         (tdesc_create_reg): Likewise.
14151         (struct tdesc_type *): Likewise.
14152         (tdesc_create_vector): Likewise.
14153         (tdesc_set_struct_size): Likewise.
14154         (struct tdesc_type *): Likewise.
14155         (tdesc_free_feature): Likewise.
14156         (tdesc_create_feature): Likewise.
14157         * windows-nat.c (windows_add_thread): Likewise.
14158         (windows_make_so): Likewise.
14159         * xml-support.c (gdb_xml_body_text): Likewise.
14160         (gdb_xml_create_parser_and_cleanup): Likewise.
14161         (xml_process_xincludes): Likewise.
14162         * xml-syscall.c (allocate_syscalls_info): Likewise.
14163         (syscall_create_syscall_desc): Likewise.
14164
14165 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
14166
14167         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14168         function, with code from i386_stap_parse_special_token.
14169         (i386_stap_parse_special_token_three_arg_disp): Likewise.
14170         (i386_stap_parse_special_token): Move code to the two functions
14171         above; simplify it.
14172
14173 2014-01-09  Pedro Alves  <palves@redhat.com>
14174             Hui Zhu  <hui@codesourcery.com>
14175
14176         PR gdb/16101
14177         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14178         bp_err_string.  Don't mark the location shlib_disabled if the
14179         error thrown wasn't a generic or memory error.  Catch errors
14180         thrown while inserting breakpoints in overlayed code.  Output
14181         error message of software breakpoints.
14182         * remote.c (remote_insert_breakpoint): If this breakpoint has
14183         target-side commands but this stub doesn't support Z0 packets,
14184         throw NOT_SUPPORTED_ERROR error.
14185         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14186         * target.h (target_insert_breakpoint): Extend comment.
14187         (target_insert_hw_breakpoint): Add comment.
14188
14189 2014-01-08  Pedro Alves  <palves@redhat.com>
14190
14191         * remote.c (remote_add_thread): Add threads silently if starting
14192         up.
14193         (remote_notice_new_inferior): If in all-stop, and starting up,
14194         don't call notice_new_inferior.
14195         (get_current_thread): New function, factored out from ...
14196         (add_current_inferior_and_thread): ... this.  Adjust.
14197         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
14198         found any thread, then select the remote's current thread as GDB's
14199         current thread too.
14200
14201 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14202
14203         * NEWS: Create a new section for the next release branch.
14204         Rename the section of the current branch, now that it has
14205         been cut.
14206
14207 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14208
14209         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14210         * version.in: Bump version to 7.7.50.DATE-cvs.
14211
14212 2014-01-08  Yao Qi  <yao@codesourcery.com>
14213
14214         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14215         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
14216         (spu_xfer_partial): Cast 'buf' to 'const char *'.
14217
14218 2014-01-08  Yao Qi  <yao@codesourcery.com>
14219
14220         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14221         return value of bfd_get_filename to symbol_file_add_from_bfd.
14222
14223 2014-01-08  Pierre Muller  <muller@sourceware.org>
14224
14225         Fix PR16201.
14226         * coff-pe-read.c (struct read_pe_section_data): Add index field.
14227         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14228         to prim_record_mininal_symbol_and_info.
14229         (add_pe_forwarded_sym): Use known section number of forwarded symbol
14230         in call to prim_record_minimal_symbol_and_info.
14231         (read_pe_exported_syms): Set index field of section_data.
14232
14233 2014-01-07  Andrew Pinski  <apinski@cavium.com>
14234
14235         * features/aarch64-core.xml (cpsr): Change to be 64bit.
14236         * features/aarch64.c: Regenerate.
14237
14238 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
14239
14240         * target.c (return_null): Define.
14241         (update_current_target): Use it instead of return_zero for
14242         functions that return a pointer.
14243
14244 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
14245
14246         * source.c (add_path): Fix check for duplicated paths in the previously
14247         included paths.
14248
14249 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
14250
14251         * ada-lang.c: Remove duplicated include statements.
14252         * alphabsd-nat.c: Ditto.
14253         * amd64-darwin-tdep.c: Ditto.
14254         * amd64fbsd-nat.c: Ditto.
14255         * auto-load.c: Ditto.
14256         * ax-gdb.c: Ditto.
14257         * breakpoint.c: Ditto.
14258         * dbxread.c: Ditto.
14259         * fork-child.c: Ditto.
14260         * gdb_usleep.c: Ditto.
14261         * i386-darwin-tdep.c: Ditto.
14262         * i386fbsd-nat.c: Ditto.
14263         * infcmd.c: Ditto.
14264         * inferior.c: Ditto.
14265         * jv-lang.c: Ditto.
14266         * linux-nat.c: Ditto.
14267         * linux-tdep.c: Ditto.
14268         * m68kbsd-nat.c: Ditto.
14269         * m68klinux-nat.c: Ditto.
14270         * microblaze-tdep.c: Ditto.
14271         * mips-linux-tdep.c: Ditto.
14272         * mn10300-tdep.c: Ditto.
14273         * nto-tdep.c: Ditto.
14274         * opencl-lang.c: Ditto.
14275         * osdata.c: Ditto.
14276         * printcmd.c: Ditto.
14277         * regcache.c: Ditto.
14278         * remote-m32r-sdi.c: Ditto.
14279         * remote.c: Ditto.
14280         * symfile.c: Ditto.
14281         * symtab.c: Ditto.
14282         * tilegx-linux-nat.c: Ditto.
14283         * tilegx-tdep.c: Ditto.
14284         * tracepoint.c: Ditto.
14285         * valops.c: Ditto.
14286         * vaxbsd-nat.c: Ditto.
14287         * windows-nat.c: Ditto.
14288         * xtensa-tdep.c: Ditto.
14289
14290 2014-01-07  Yao Qi  <yao@codesourcery.com>
14291
14292         * spu-linux-nat.c (_initialize_spu_nat): Declare.
14293
14294 2014-01-07  Yao Qi  <yao@codesourcery.com>
14295             Joel Brobecker  <brobecker@adacore.com>
14296
14297         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14298         (pdc_write_regs): Likewise.
14299         (fetch_regs_kernel_thread): Likewise.
14300         (store_regs_kernel_thread): Likewise.
14301
14302 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14303
14304         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14305         tagged type objects to their actual type.
14306
14307 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14308
14309         * ada-valprint.c (print_field_values): Add "language" parameter.
14310         Update calls to print_field_values and print_variant_part.
14311         Pass new parameter "language" in call to val_print instead
14312         of "current_language".  Replace call to ada_val_print by call
14313         to val_print.
14314         (print_variant_part): Add "language" parameter.
14315         (ada_val_print_struct_union): Update call to print_field_values.
14316
14317 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14318
14319         * ada-valprint.c (ui_memcpy): Delete.
14320         (ada_print_floating): Update documentation.  Add empty line
14321         between between function documentation and implementation.
14322         Delete variable "buffer".  Use ui_file_xstrdup in place of
14323         ui_file_put.  Minor adjustments following this change.
14324
14325 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14326
14327         * ada-valprint.c (ada_val_print_string): New function,
14328         extracted from ada_val_print_array.
14329         (ada_val_print_array): Replace extracted code by call
14330         to ada_val_print_string followed by a return.  Move
14331         "else" branch to the function's top block.
14332
14333 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14334
14335         * ada-valprint.c (ada_val_print_array): Move implementation
14336         down.  Rename parameter "offset" and "val" into "offset_aligned"
14337         and "original_value" respectively.  Add parameter "offset".
14338
14339 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14340
14341         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14342         re-organizing the code. Change the "???" message printed
14343         when target type is a TYPE_CODE_UNDEF into
14344         "<ref to undefined type>".
14345
14346 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14347
14348         * ada-valprint.c (print_record): Delete, implementation inlined...
14349         (ada_val_print_struct_union): ... here.  Remove call to
14350         ada_check_typedef in inlined implementation.
14351
14352 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14353
14354         * ada-valprint.c (ada_val_print_gnat_array): New function,
14355         extracted from ada_val_print_1;
14356         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14357         (ada_val_print_flt, ada_val_print_struct_union)
14358         (ada_val_print_ref): Likewise.
14359         (ada_val_print_1): Delete variables i and elttype.
14360         Replace extracted-out code by call to corresponding
14361         new functions.
14362
14363 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14364
14365         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14366
14367 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14368
14369         * ada-valprint.c (ada_val_print_1): Replace calls to
14370         ada_val_print_1 by calls to val_print.
14371
14372 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14373
14374         * ada-valprint.c (ada_val_print_1): Add parameter "language".
14375         Update calls to self accordingly.  Replace calls to c_val_print
14376         by calls to val_print.
14377
14378 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14379
14380         * ada-valprint.c (print_record): Delete declaration.
14381         (adjust_type_signedness, ada_val_print_1): Likewise.
14382         (ada_val_print): Move function implementation down.
14383         (print_variant_part, print_field_values, print_record):
14384         Move function implementation up.
14385
14386 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14387
14388         * python/py-type.c (typy_get_name): New function.
14389         (type_object_getset): Add entry for attribute "name".
14390         * NEWS: Add entry mentioning this new attribute.
14391
14392 2014-01-07  Yao Qi  <yao@codesourcery.com>
14393
14394         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14395         statement.
14396
14397 2014-01-07  Yao Qi  <yao@codesourcery.com>
14398
14399         * gnu-nat.c (info_port_rights): Add qualifier const to
14400         argument args.
14401
14402 2014-01-07  Yao Qi  <yao@codesourcery.com>
14403
14404         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14405
14406 2014-01-07  Yao Qi  <yao@codesourcery.com>
14407
14408         * gnu-nat.c (make_inf) Update declaration.
14409         (make_inf): Make it static.
14410         (inf_set_traced): Likewise.
14411         (inf_port_to_thread, inf_task_died_status): Likewise.
14412
14413 2014-01-07  Yao Qi  <yao@codesourcery.com>
14414
14415         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14416
14417 2014-01-07  Yao Qi  <yao@codesourcery.com>
14418
14419         * gnu-nat.c (_initialize_gnu_nat): Declare.
14420
14421 2014-01-07  Yao Qi  <yao@codesourcery.com>
14422
14423         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14424         'enum bfd_endian'.
14425         (struct gdbarch_info) <byte_order>: Change type to
14426         'enum bfd_endian'.
14427         <byte_order_for_code>: Likewise.
14428         * gdbarch.c, gdbarch.h: Regenerated.
14429
14430 2014-01-06  Sasha Smundak  <asmundak@google.com>
14431
14432         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14433
14434 2014-01-06  Tom Tromey  <tromey@redhat.com>
14435
14436         * doublest.c (convert_doublest_to_floatformat): Use const, not
14437         CONST.
14438         * somread.c (som_symtab_read): Likewise.
14439
14440 2014-01-07  Hui Zhu  <hui@codesourcery.com>
14441
14442         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14443         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14444         (gdb_bfd_fopen): Ditto.
14445         (gdb_bfd_openr): Ditto.
14446         (gdb_bfd_openw): Ditto.
14447         (gdb_bfd_openr_iovec): Ditto.
14448         (gdb_bfd_fdopenr): Ditto.
14449         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14450         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14451         with xstrdup.
14452         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14453         with xstrdup.
14454         * symfile-mem.c (symbol_file_add_from_memory): Removed
14455         gdb_bfd_stash_filename.
14456
14457 2014-01-03  Doug Evans  <dje@google.com>
14458
14459         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14460         output.
14461
14462 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14463
14464         Update year range in copyright notice of all files.
14465
14466 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14467
14468         * top.c (print_gdb_version): Set copyright year to 2014.
14469
14470 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14471
14472         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14473
14474 For older changes see ChangeLog-2013.
14475 \f
14476 Local Variables:
14477 mode: change-log
14478 left-margin: 8
14479 fill-column: 74
14480 version-control: never
14481 coding: utf-8
14482 End: