Clean up some function comments in symtab.[ch].
[external/binutils.git] / gdb / ChangeLog
1 2014-10-26  Doug Evans  <xdje42@gmail.com>
2
3         * symtab.h (struct field_of_this_result): Fix typo in comment.
4         (lookup_symbol_in_language): Move function comment here.
5         (lookup_symbol): Improve function comment.
6         (basic_lookup_symbol_nonlocal): Ditto.
7         (lookup_symbol_static, lookup_symbol_global): Ditto.
8         (lookup_symbol_aux_block): Ditto.
9         (lookup_language_this): Add function comment.
10         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
11         function comment.
12         (lookup_block_symbol): Improve function comment.
13         (lookup_struct): Fix capitalization in function comment.
14         (lookup_transparent_type): Add function comment.
15         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
16         Improve function comment.
17         (lookup_objfile_from_block): Add function comment.
18         * symtab.c (lookup_symbol_in_language): Update function comment.
19         (lookup_symbol, lookup_language_this): Ditto.
20         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
21         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
22         (basic_lookup_symbol_nonlocal): Ditto.
23         (lookup_symbol_static, lookup_symbol_global): Ditto.
24         (lookup_transparent_type, lookup_block_symbol): Ditto.
25
26 2014-10-25  Doug Evans  <xdje42@gmail.com>
27
28         * symtab.c (types_info): Delete forward decl.
29         (functions_info, variables_info, sources_info): Ditto.
30         (_initialize_symtab): Rewrite forward decl to use
31         initialize_file_ftype.
32
33 2014-10-25  Doug Evans  <xdje42@gmail.com>
34
35         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
36
37 2014-10-25  Doug Evans  <xdje42@gmail.com>
38
39         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
40         of local var child_die.
41
42 2014-10-24  Don Breazeal  <donb@codesourcery.com>
43
44         * infrun.c (follow_fork_inferior): Update fork message printing
45         to use target_terminal_ours_for_output instead of
46         target_terminal_ours, to use _() for all format strings, to print
47         "vfork" instead of "fork" for vforks, and to add a detach message.
48         (handle_vfork_child_exec_or_exit): Update message printing to use
49         target_terminal_ours_for_output instead of target_terminal_ours, to
50         use _() for all format strings, and to fix some formatting.
51
52 2014-10-24  Pedro Alves  <palves@redhat.com>
53
54         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
55         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
56         * config/vax/vax.mh: Delete.
57         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
58         obsolete configurations section.
59         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
60         * vax-nat.c: Delete file.
61
62 2014-10-24  Pedro Alves  <palves@redhat.com>
63
64         * NEWS (Removed targets): Add OS/arch column.
65
66 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
67
68         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
69         on the arg type of a constructor only if it is of reference type.
70
71 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
72
73         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
74         accessors and constants from nios2 opcodes update.
75         (nios2_get_next_pc): Likewise.
76
77 2014-10-19  Doug Evans  <xdje42@gmail.com>
78
79         * gdbthread.h (set_running): Fix comment.
80         (set_executing, finish_thread_state): Fix comment.
81
82 2014-10-18  Doug Evans  <xdje42@gmail.com>
83
84         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
85
86 2014-10-17  Doug Evans  <dje@google.com>
87
88         * NEWS: Mention new event gdb.clear_objfiles.
89         * python/py-event.h (emit_clear_objfiles_event): Clear
90         * python/py-events.h (events_object): New member clear_objfiles.
91         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
92         event.
93         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
94         emit clear_objfiles event.
95         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
96         function.
97         (emit_clear_objfiles_event): New function.
98         (clear_objfiles): New event.
99         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
100         Declare.
101         * python/python.c (_initialize_python): Call
102         gdbpy_initialize_clear_objfiles_event.
103
104 2014-10-17  Doug Evans  <dje@google.com>
105
106         * NEWS: Mention new gdb.Objfile.progspace attribute.
107         * python/py-objfile.c (objfpy_get_progspace): New function.
108         (objfile_getset): New entry for "progspace".
109
110 2014-10-17  Pedro Alves  <palves@redhat.com>
111
112         PR gdb/17471
113         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
114         returns a copy of the input.
115         (run_command_1, continue_command, step_1, jump_command)
116         (signal_command, until_command, advance_command, finish_command)
117         (attach_command): Adjust and install a cleanup to free the
118         stripped args.
119
120 2014-10-17  Pedro Alves  <palves@redhat.com>
121
122         PR gdb/17300
123         * infcmd.c (continue_1): If continuing all threads in the
124         foreground, make sure the inferior's terminal settings are put in
125         effect.
126
127 2014-10-17  Pedro Alves  <palves@redhat.com>
128
129         PR gdb/17472
130         * annotate.c (annotate_breakpoints_invalid): Use
131         target_terminal_our_for_output instead of target_terminal_ours.
132         Give back the terminal to the target.
133         (annotate_frames_invalid): Likewise.
134
135 2014-10-17  Pedro Alves  <palves@redhat.com>
136
137         * target.c (enum terminal_state): New enum.
138         (terminal_state): New global.
139         (target_terminal_init): New function.
140         (target_terminal_inferior): Skip if inferior already owns the
141         terminal.
142         (target_terminal_ours, target_terminal_ours_for_output): New
143         functions.
144         * target.h (target_terminal_init): Convert to function prototype.
145         (target_terminal_ours_for_output): Convert to function prototype
146         and tweak comment.
147         (target_terminal_ours): Convert to function prototype and tweak
148         comment.
149         * windows-nat.c (do_initial_windows_stuff): Call
150         target_terminal_init instead of child_terminal_init_with_pgrp.
151
152 2014-10-17  Pedro Alves  <palves@redhat.com>
153
154         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
155         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
156         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
157         solib-osf.c.
158         * NEWS: Mention that support for alpha*-*-osf* has been removed.
159         * ada-lang.h [__alpha__ && __osf__]
160         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
161         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
162         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
163         GDB_OSABI_OSF1.
164         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
165         files.
166         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
167         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
168         * configure: Regenerate.
169         * configure.ac: Remove references to osf.
170         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
171         section.  Remove all other references to osf.
172         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
173         Remove all other references to osf.
174         * dec-thread.c: Delete file.
175         * defs.h (GDB_OSABI_OSF1): Delete.
176         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
177         defined.
178         * osabi.c (gdb_osabi_names): Delete "OSF/1".
179         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
180         Delete code.
181         (unconditionally_kill_inferior)
182         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
183         * solib-osf.c: Delete file.
184
185 2014-10-17  Pedro Alves  <palves@redhat.com>
186
187         * remote.c (clear_threads_listing_context): Move higher up, out of
188         the HAVE_LIBEXPAT guard.
189
190 2014-10-16  Tristan Gingold  <gingold@adacore.com>
191
192         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
193         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
194         on amd64.
195
196 2014-10-15  Pedro Alves  <palves@redhat.com>
197
198         * dec-thread.c (dec_thread_count_gdb_threads)
199         (dec_thread_add_gdb_thread): Delete.
200         (dec_thread_update_thread_list): Delete.
201         (dec_thread_find_new_threads): Rename to ...
202         (dec_thread_update_thread_list): ... this.  Delete GDB-size
203         threads that are no longer found in dec_thread_list.
204         (resync_thread_list): Delete.
205         (dec_thread_wait): Call dec_thread_update_thread_list instead of
206         resync_thread_list.
207
208 2014-10-15  Pedro Alves  <palves@redhat.com>
209
210         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
211         * remote.c (remote_update_thread_list): Skip calling prune_threads
212         if any thread listing method is supported, and instead walk over
213         the set of remote threads listed, deleting those that are not
214         found in GDB's thread list.
215
216 2014-10-15  Pedro Alves  <palves@redhat.com>
217
218         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
219         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
220         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
221         (bsd_uthread_target): Adjust.
222         * corelow.c (core_open): Adjust.
223         * dec-thread.c (dec_thread_find_new_threads): Update comment.
224         (dec_thread_update_thread_list): New function.
225         (init_dec_thread_ops): Adjust.
226         * gdbthread.h (prune_threads): New declaration.
227         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
228         (thread_db_update_thread_list): ... this.  Call prune_threads.
229         (init_thread_db_ops): Adjust.
230         * nto-procfs.c (procfs_find_new_threads): Rename to ...
231         (procfs_update_thread_list): ... this.  Call prune_threads.
232         (procfs_attach, procfs_create_inferior, init_procfs_targets):
233         Adjust.
234         * obsd-nat.c (obsd_find_new_threads): Rename to ...
235         (obsd_update_thread_list): ... this.  Call prune_threads.
236         (obsd_add_target): Adjust.
237         * procfs.c (procfs_target): Adjust.
238         (procfs_notice_thread): Update comment.
239         (procfs_find_new_threads): Rename to ...
240         (procfs_update_thread_list): ... this.  Call prune_threads.
241         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
242         comment.
243         (ravenscar_wait): Adjust.
244         (ravenscar_find_new_threads): Rename to ...
245         (ravenscar_update_thread_list): ... this.  Call prune_threads.
246         (init_ravenscar_thread_ops): Adjust.
247         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
248         (record_btrace_update_thread_list): ... this.  Adjust comment.
249         (init_record_btrace_ops): Adjust.
250         * remote.c (remote_threads_info): Rename to ...
251         (remote_update_thread_list): ... this.  Call prune_threads.
252         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
253         Adjust.
254         * sol-thread.c (check_for_thread_db): Adjust.
255         (sol_find_new_threads_callback): Rename to ...
256         (sol_update_thread_list_callback): ... this.
257         (sol_find_new_threads): Rename to ...
258         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
259         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
260         * target-delegates.c: Regenerate.
261         * target.c (target_find_new_threads): Rename to ...
262         (target_update_thread_list): ... this.
263         * target.h (struct target_ops): Rename to_find_new_threads field
264         to to_update_thread_list.
265         (target_find_new_threads): Rename to ...
266         (target_update_thread_list): ... this.
267         * thread.c (prune_threads): Make extern.
268         (update_thread_list): Adjust.
269
270 2014-10-15  Pedro Alves  <palves@redhat.com>
271
272         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
273         Add describing comment.  Return -1 if the qL packet is not
274         supported.
275         (struct thread_item, thread_item_t): Move higher up in
276         the file.  Add comments.
277         (struct threads_parsing_context): Move higher up in
278         the file, add comments, and remote to ...
279         (struct threads_listing_context): ... this.
280         (remote_newthread_step): Don't add the thread to GDB's thread
281         database here.  Instead push it to the thread_listing_context
282         list.
283         (remote_find_new_threads): Rename to ...
284         (remote_get_threads_with_ql): ... this.  Add target_ops and
285         targets_listing_context parameters.  Pass down context.
286         (start_thread): Adjust.
287         (clear_threads_parsing_context): Rename to ...
288         (clear_threads_listing_context): ... this.
289         (remote_get_threads_with_qxfer): New, with parts salvaged from old
290         remote_threads_info.
291         (remote_get_threads_with_qthreadinfo): Ditto.
292         (remote_threads_info): Reimplement.
293
294 2014-10-15  Pedro Alves  <palves@redhat.com>
295
296         * infrun.c (resume): Don't force displaced-stepping for all
297         single-steps on software single-stepping archs.
298
299 2014-10-15  Pedro Alves  <palves@redhat.com>
300
301         * breakpoint.c (single_step_breakpoints): Delete global.
302         (insert_single_step_breakpoint): Adjust to store the breakpoint
303         pointer in the current thread.
304         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
305         (cancel_single_step_breakpoints): Delete functions.
306         (breakpoint_has_location_inserted_here): Make extern.
307         (single_step_breakpoint_inserted_here_p): Adjust to walk the
308         breakpoint list.
309         * breakpoint.h (breakpoint_has_location_inserted_here): New
310         declaration.
311         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
312         (cancel_single_step_breakpoints): Remove declarations.
313         * gdbthread.h (struct thread_control_state)
314         <single_step_breakpoints>: New field.
315         (delete_single_step_breakpoints)
316         (thread_has_single_step_breakpoints_set)
317         (thread_has_single_step_breakpoint_here): New declarations.
318         * infrun.c (follow_exec): Also clear the single-step breakpoints.
319         (singlestep_breakpoints_inserted_p, singlestep_ptid)
320         (singlestep_pc): Delete globals.
321         (infrun_thread_ptid_changed): Remove references to removed
322         globals.
323         (resume_cleanups): Delete the current thread's single-step
324         breakpoints.
325         (maybe_software_singlestep): Remove references to removed globals.
326         (resume): Adjust to use thread_has_single_step_breakpoints_set and
327         delete_single_step_breakpoints.
328         (init_wait_for_inferior): Remove references to removed globals.
329         (delete_thread_infrun_breakpoints): Delete the thread's
330         single-step breakpoints too.
331         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
332         single-step breakpoints here.
333         (delete_stopped_threads_single_step_breakpoints): New function.
334         (adjust_pc_after_break): Adjust to use
335         thread_has_single_step_breakpoints_set.
336         (handle_inferior_event): Remove references to removed globals.
337         Use delete_stopped_threads_single_step_breakpoints.
338         (handle_signal_stop): Adjust to per-thread single-step
339         breakpoints.  Swap test order to do cheaper tests first.
340         (switch_back_to_stepped_thread): Extend debug output.  Remove
341         references to removed globals.
342         * record-full.c (record_full_wait_1): Adjust to per-thread
343         single-step breakpoints.
344         * thread.c (delete_single_step_breakpoints)
345         (thread_has_single_step_breakpoints_set)
346         (thread_has_single_step_breakpoint_here): New functions.
347         (clear_thread_inferior_resources): Also delete the thread's
348         single-step breakpoints.
349
350 2014-10-15  Pedro Alves  <palves@redhat.com>
351
352         * thread.c (delete_thread_breakpoint): New function.
353         (delete_step_resume_breakpoint)
354         (delete_exception_resume_breakpoint): Use it.
355         (delete_at_next_stop): New function.
356         (clear_thread_inferior_resources): Use delete_at_next_stop.
357
358 2014-10-15  Pedro Alves  <palves@redhat.com>
359
360         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
361         (breakpoint_inserted_here_p): ... here.  Remove special case for
362         software single-step breakpoints.
363         (find_non_raw_software_breakpoint_inserted_here): Inline ...
364         (software_breakpoint_inserted_here_p): ... here.  Remove special
365         case for software single-step breakpoints.
366         (bp_target_info_copy_insertion_state)
367         (deprecated_insert_raw_breakpoint)
368         (deprecated_remove_raw_breakpoint): Delete functions.
369         * breakpoint.h (deprecated_insert_raw_breakpoint)
370         (deprecated_remove_raw_breakpoint): Remove declarations.
371
372 2014-10-15  Pedro Alves  <palves@redhat.com>
373
374         PR breakpoints/9649
375         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
376         Delete array globals.
377         (single_step_breakpoints): New global.
378         (breakpoint_xfer_memory): Remove special handling for single-step
379         breakpoints.
380         (update_breakpoints_after_exec): Delete bp_single_step
381         breakpoints.
382         (detach_breakpoints): Remove special handling for single-step
383         breakpoints.
384         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
385         (bpstat_stop_status): Add comment.
386         (bpstat_what, bptype_string, print_one_breakpoint_location)
387         (adjust_breakpoint_address, init_bp_location): Handle
388         bp_single_step.
389         (new_single_step_breakpoint): New function.
390         (set_momentary_breakpoint, bkpt_remove_location): Remove special
391         handling for single-step breakpoints.
392         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
393         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
394         Rewrite.
395         (detach_single_step_breakpoints, find_single_step_breakpoint):
396         Delete functions.
397         (breakpoint_has_location_inserted_here): New function.
398         (single_step_breakpoint_inserted_here_p): Rewrite.
399         * breakpoint.h: Remove FIXME.
400         (enum bptype) <bp_single_step>: New enum value.
401         (insert_single_step_breakpoint): Update comment.
402         * infrun.c (resume_cleanups)
403         (delete_step_thread_step_resume_breakpoint): Remove single-step
404         breakpoints.
405         (fetch_inferior_event): Install a cleanup that removes infrun
406         breakpoints.
407         (switch_back_to_stepped_thread) <expect thread advanced also>:
408         Clear step-over info.
409
410 2014-10-15  Pedro Alves  <palves@redhat.com>
411
412         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
413         (delete_thread_infrun_breakpoints): New function, with parts
414         salvaged from delete_step_resume_breakpoint_callback.
415         (delete_step_thread_step_resume_breakpoint): Delete.
416         (for_each_just_stopped_thread_callback_func): New typedef.
417         (for_each_just_stopped_thread): New function.
418         (delete_just_stopped_threads_infrun_breakpoints): New function.
419         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
420         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
421         ... this.  Adjust.
422         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
423
424 2014-10-15  Pedro Alves  <palves@redhat.com>
425
426         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
427         trying to step past a non-steppable watchpoint.
428         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
429         field.
430         * infrun.c (struct step_over_info): Add new field
431         'nonsteppable_watchpoint_p' and adjust comments.
432         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
433         Adjust.
434         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
435         (stepping_past_nonsteppable_watchpoint): New function.
436         (step_over_info_valid_p): Also return true if stepping past a
437         nonsteppable watchpoint.
438         (proceed): Adjust call to set_step_over_info.  Remove reference to
439         init_infwait_state.
440         (init_wait_for_inferior): Remove reference to init_infwait_state.
441         (waiton_ptid): Delete global.
442         (struct execution_control_state)
443         <stepped_after_stopped_by_watchpoint>: Delete field.
444         (wait_for_inferior, fetch_inferior_event): Always pass
445         minus_one_ptid to target_wait.
446         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
447         field.
448         (init_infwait_state): Delete function.
449         (handle_inferior_event): Remove infwait_state handling.
450         (handle_signal_stop) <watchpoints handling>: Adjust after
451         stepped_after_stopped_by_watchpoint removal.  Don't remove
452         breakpoints here nor set infwait_state.  Set the thread's
453         stepping_over_watchpoint flag, and call keep_going instead.
454         (keep_going): Handle stepping_over_watchpoint.  Adjust
455         set_step_over_info calls.
456         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
457         function.
458
459 2014-10-15  Pedro Alves  <palves@redhat.com>
460
461         * infrun.c (step_over_info_valid_p): New function.
462         (resume): Use step_over_info_valid_p instead of checking the
463         threads's trap_expected flag.
464
465 2014-10-15  Doug Evans  <dje@google.com>
466             Walfred Tedeschi  <walfred.tedeschi@intel.com>
467
468         PR python/17364
469         * python/lib/gdb/__init__.py (packages): Add "printer".
470         * python/lib/gdb/command/bound_registers.py: Moved to ...
471         * python/lib/gdb/printer/bound_registers.py: ... here.
472         Add printer to global set of builtin printers.  Rename printer from
473         "bound" to "mpx_bound128".
474         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
475         registered as global "builtin" printer.
476         (add_builtin_pretty_printer): New function.
477         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
478         gdb/printer/__init__.py.
479
480 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
481
482         * Makefile.in (SFILES): Remove d-support.c.
483         (COMMON_OBS): Remove d-support.o.
484         * d-lang.h (d_parse_symbol): Remove declaration.
485         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
486         * d-support.c: Remove file.
487
488 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
489
490         * gdb/infrun.c (process_event_stop_test): Apply
491         gdbarch_addr_bits_remove to longjmp resume address.
492
493 2014-10-15  Pedro Alves  <palves@redhat.com>
494
495         * regformats/microblaze.dat: Delete file.
496
497 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
498
499         * features/Makefile (microblaze-expedite): Replace pc with rpc.
500         * regformats/microblaze-with-stack-protect.dat: Regenerate.
501
502 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
503
504         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
505         as non-trivial.
506
507 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
508
509         PR c++/13403
510         PR c++/15154
511         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
512         with qualified args.
513
514 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
515
516         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
517         of the case where the second operand is a pointer.
518         <BINOP_SUB>: Likewise.
519
520 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
521
522         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
523         only if it is not NULL.
524         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
525         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
526         (struct probe_ops) <clear_semaphore>: Likewise.
527         * tracepoint.c (start_tracing): Call set_semaphore only if it is
528         not NULL.
529         (stop_tracing): Likewise, for clear_semaphore.
530
531 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
532
533         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
534         using language_c, instead of current_language.
535
536 2014-10-13  Doug Evans  <dje@google.com>
537
538         * python/py-objfile.c (objfpy_initialize): New function.
539         (objfpy_new, objfile_to_objfile_object): Call it.
540         * python/py-progspace.c (pspy_initialize): New function.
541         (pspy_new, pspace_to_pspace_object): Call it.
542
543 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
544             Jan Kratochvil  <jan.kratochvil@redhat.com>
545
546         Fix "save breakpoints" for "catch" command.
547         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
548         newline.
549
550 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
551
552         Fix "save breakpoints" for "disable $bpnum" command.
553         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
554
555 2014-10-10  Pedro Alves  <palves@redhat.com>
556
557         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
558         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
559         (HFILES_NO_SRCDIR): Remove solib-irix.h.
560         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
561         and been removed.
562         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
563         * configure.ac: Remove references to IRIX.
564         * configure.host: Add *-*-irix* to the obsolete hosts section.
565         Remove all other references to irix.
566         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
567         Delete files.
568
569 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
570
571         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
572         isn't valid, release the tdesc arch data and return NULL.
573
574 2014-10-10  Pedro Alves  <palves@redhat.com>
575
576         * linux-tdep.c: Include observer.h.
577         (linux_inferior_data): New global.
578         (struct linux_info): New structure.
579         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
580         (get_linux_inferior_data): New functions.
581         (linux_vsyscall_range): Rename to ...
582         (linux_vsyscall_range_raw): ... this.
583         (linux_vsyscall_range): New function; handles caching.
584         (_initialize_linux_tdep): Register linux_inferior_data.  Install
585         inferior_exit and inferior_appeared observers.
586
587 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
588             Pedro Alves  <palves@redhat.com>
589
590         PR symtab/14466
591         * solib-svr4.c (svr4_read_so_list): Rename to ...
592         (svr4_current_sos_1): ... this and change the function comment.
593         (svr4_current_sos): New function.
594
595 2014-10-10  Pedro Alves  <palves@redhat.com>
596
597         * arch-utils.c (default_vsyscall_range): New function.
598         * arch-utils.h (default_vsyscall_range): New declaration.
599         * gdbarch.sh (vsyscall_range): New hook.
600         * gdbarch.h, gdbarch.c: Regenerate.
601         * linux-tdep.c (linux_vsyscall_range): New function.
602         (linux_init_abi): Install linux_vsyscall_range as
603         vsyscall_range gdbarch hook.
604         * memrange.c (address_in_mem_range): New function.
605         * memrange.h (address_in_mem_range): New declaration.
606         * symfile-mem.c (find_vdso_size): Delete function.
607         (add_vsyscall_page): Use gdbarch_vsyscall_range.
608
609 2014-10-10  Pedro Alves  <palves@redhat.com>
610
611         * infrun.c (normal_stop): Fix typo in comment.
612
613 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
614
615         PR tdep/9390
616         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
617         typo when using logical AND to determine instruction type.
618
619 2014-10-09  Yao Qi  <yao@codesourcery.com>
620
621         * infrun.c (handle_signal_stop): Remove local variable
622         'printed'.
623
624 2014-10-08  Stan Shebs  <stan@codesourcery.com>
625
626         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
627
628 2014-10-08  Gary Benson  <gbenson@redhat.com>
629
630         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
631
632 2014-10-08  Gary Benson  <gbenson@redhat.com>
633
634         * common/common-defs.h: Include common-exceptions.h.
635         * exceptions.h: Do not include common-exceptions.h.
636
637 2014-10-08  Gary Benson  <gbenson@redhat.com>
638
639         * common/common-defs.h: Include cleanups.h.
640         * common/common-exceptions.c: Do not include cleanups.h.
641         * utils.h: Likewise.
642
643 2014-10-08  Gary Benson  <gbenson@redhat.com>
644
645         * ada-lang.c: Do not include exceptions.h.
646         * ada-valprint.c: Likewise.
647         * amd64-tdep.c: Likewise.
648         * auto-load.c: Likewise.
649         * block.c: Likewise.
650         * break-catch-throw.c: Likewise.
651         * breakpoint.c: Likewise.
652         * btrace.c: Likewise.
653         * c-lang.c: Likewise.
654         * cli/cli-cmds.c: Likewise.
655         * cli/cli-interp.c: Likewise.
656         * cli/cli-script.c: Likewise.
657         * completer.c: Likewise.
658         * corefile.c: Likewise.
659         * corelow.c: Likewise.
660         * cp-abi.c: Likewise.
661         * cp-support.c: Likewise.
662         * cp-valprint.c: Likewise.
663         * darwin-nat.c: Likewise.
664         * dwarf2-frame-tailcall.c: Likewise.
665         * dwarf2-frame.c: Likewise.
666         * dwarf2loc.c: Likewise.
667         * dwarf2read.c: Likewise.
668         * eval.c: Likewise.
669         * event-loop.c: Likewise.
670         * event-top.c: Likewise.
671         * f-valprint.c: Likewise.
672         * frame-unwind.c: Likewise.
673         * frame.c: Likewise.
674         * gdbtypes.c: Likewise.
675         * gnu-v2-abi.c: Likewise.
676         * gnu-v3-abi.c: Likewise.
677         * guile/scm-auto-load.c: Likewise.
678         * guile/scm-breakpoint.c: Likewise.
679         * guile/scm-cmd.c: Likewise.
680         * guile/scm-frame.c: Likewise.
681         * guile/scm-lazy-string.c: Likewise.
682         * guile/scm-param.c: Likewise.
683         * guile/scm-symbol.c: Likewise.
684         * guile/scm-type.c: Likewise.
685         * hppa-hpux-tdep.c: Likewise.
686         * i386-tdep.c: Likewise.
687         * inf-loop.c: Likewise.
688         * infcall.c: Likewise.
689         * infcmd.c: Likewise.
690         * infrun.c: Likewise.
691         * interps.c: Likewise.
692         * interps.h: Likewise.
693         * jit.c: Likewise.
694         * linespec.c: Likewise.
695         * linux-nat.c: Likewise.
696         * linux-thread-db.c: Likewise.
697         * m32r-rom.c: Likewise.
698         * main.c: Likewise.
699         * memory-map.c: Likewise.
700         * mi/mi-cmd-break.c: Likewise.
701         * mi/mi-cmd-stack.c: Likewise.
702         * mi/mi-interp.c: Likewise.
703         * mi/mi-main.c: Likewise.
704         * monitor.c: Likewise.
705         * nto-procfs.c: Likewise.
706         * objc-lang.c: Likewise.
707         * p-valprint.c: Likewise.
708         * parse.c: Likewise.
709         * ppc-linux-tdep.c: Likewise.
710         * printcmd.c: Likewise.
711         * probe.c: Likewise.
712         * python/py-auto-load.c: Likewise.
713         * python/py-breakpoint.c: Likewise.
714         * python/py-cmd.c: Likewise.
715         * python/py-finishbreakpoint.c: Likewise.
716         * python/py-frame.c: Likewise.
717         * python/py-framefilter.c: Likewise.
718         * python/py-function.c: Likewise.
719         * python/py-gdb-readline.c: Likewise.
720         * python/py-inferior.c: Likewise.
721         * python/py-infthread.c: Likewise.
722         * python/py-lazy-string.c: Likewise.
723         * python/py-linetable.c: Likewise.
724         * python/py-param.c: Likewise.
725         * python/py-prettyprint.c: Likewise.
726         * python/py-symbol.c: Likewise.
727         * python/py-type.c: Likewise.
728         * python/py-value.c: Likewise.
729         * python/python-internal.h: Likewise.
730         * python/python.c: Likewise.
731         * record-btrace.c: Likewise.
732         * record-full.c: Likewise.
733         * regcache.c: Likewise.
734         * remote-fileio.c: Likewise.
735         * remote-mips.c: Likewise.
736         * remote.c: Likewise.
737         * rs6000-aix-tdep.c: Likewise.
738         * rs6000-nat.c: Likewise.
739         * skip.c: Likewise.
740         * solib-darwin.c: Likewise.
741         * solib-dsbt.c: Likewise.
742         * solib-frv.c: Likewise.
743         * solib-ia64-hpux.c: Likewise.
744         * solib-spu.c: Likewise.
745         * solib-svr4.c: Likewise.
746         * solib.c: Likewise.
747         * spu-tdep.c: Likewise.
748         * stack.c: Likewise.
749         * stap-probe.c: Likewise.
750         * symfile-mem.c: Likewise.
751         * symmisc.c: Likewise.
752         * target.c: Likewise.
753         * thread.c: Likewise.
754         * top.c: Likewise.
755         * tracepoint.c: Likewise.
756         * tui/tui-interp.c: Likewise.
757         * typeprint.c: Likewise.
758         * utils.c: Likewise.
759         * valarith.c: Likewise.
760         * valops.c: Likewise.
761         * valprint.c: Likewise.
762         * value.c: Likewise.
763         * varobj.c: Likewise.
764         * windows-nat.c: Likewise.
765         * xml-support.c: Likewise.
766
767 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
768
769         * mips-tdep.c (add_offset_16): Rewrite to implement what the
770         name implies.
771         (extended_mips16_next_pc): Update accordingly.
772
773 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
774
775         * mips-tdep.c (mips16_instruction_is_compact_branch): New
776         function.
777         (micromips_instruction_is_compact_branch): Likewise.
778         (mips16_scan_prologue): Terminate scanning upon seeing a branch
779         or a compact jump, reaching a jump delay slot, or seeing a
780         second non-prologue instruction.
781         (micromips_scan_prologue): Also terminate scanning upon seeing a
782         compact branch or jump, or reaching a branch or jump delay slot.
783         (mips32_scan_prologue): Terminate scanning upon reaching a branch
784         or jump delay slot, or seeing a second non-prologue instruction.
785         (mips32_instruction_has_delay_slot): Retain instruction
786         examination code only, update arguments accordingly and move
787         instruction fetch pieces to...
788         (mips32_insn_at_pc_has_delay_slot): ... this new function.
789         (micromips_instruction_has_delay_slot): Likewise and to...
790         (micromips_insn_at_pc_has_delay_slot): ... this new function.
791         (mips16_instruction_has_delay_slot): Likewise and to...
792         (mips16_insn_at_pc_has_delay_slot): ... this new function.
793         (mips_single_step_through_delay): Update accordingly.
794         (mips_adjust_breakpoint_address): Likewise.
795
796 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
797
798         * mips-tdep.c (micromips_instruction_has_delay_slot): When
799         !mustbe32 also return 1 for 32-bit instructions.
800         (mips16_instruction_has_delay_slot): Likewise.  Add an
801         explanatory comment.
802
803 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
804
805         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
806         symbols special.
807
808 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
809
810         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
811         update comments.
812         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
813         for the breakpoint's address.  Don't preinitialize `placed_size'.
814         (insert_bp_location): Set `reqstd_address' rather than
815         `placed_address'.
816         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
817         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
818         address.
819         (bkpt_remove_location): Likewise.
820         (deprecated_insert_raw_breakpoint): Likewise.
821         (deprecated_remove_raw_breakpoint): Likewise.
822         (find_single_step_breakpoint): Likewise.
823         * mem-break.c (default_memory_insert_breakpoint): Use
824         `reqstd_address' for the breakpoint's address.  Don't set
825         `placed_address' or `placed_size' if breakpoint contents couldn't
826         have been determined.
827         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
828         the breakpoint's address.
829         (remote_insert_hw_breakpoint): Likewise.  Don't set
830         `placed_address' or `placed_size' if breakpoint couldn't have been
831         set.
832         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
833         `reqstd_address' for the breakpoint's address.
834         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
835         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
836         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
837         * microblaze-linux-tdep.c
838         (microblaze_linux_memory_remove_breakpoint): Likewise.
839         * monitor.c (monitor_insert_breakpoint): Likewise.
840         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
841         (procfs_insert_hw_breakpoint): Likewise.
842         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
843         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
844         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
845         * remote-mips.c (mips_insert_breakpoint): Likewise.
846         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
847
848 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
849
850         * valops.c (value_assign): Check for bit field assignments
851         before calling architecture-specific register value
852         conversion functions.
853
854 2014-10-03  Pierre Muller  <muller@sourceware.org>
855
856         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
857
858 2014-10-02  Pedro Alves  <palves@redhat.com>
859
860         * breakpoint.c (breakpoints_should_be_inserted_now): Use
861         threads_are_executing.
862         * breakpoint.h (breakpoints_should_be_inserted_now): Add
863         describing comment.
864         * gdbthread.h (threads_are_executing): Declare.
865         (handle_signal_stop) <random signals>: Don't print about the
866         signal here if stopping.
867         (end_stepping_range): Don't notify observers here.
868         (normal_stop): Update the thread list.  If stopped by a random
869         signal or a stepping range ended, notify observers.
870         * thread.c (threads_executing): New global.
871         (init_thread_list): Clear 'threads_executing'.
872         (set_executing): Set or clear 'threads_executing'.
873         (threads_are_executing): New function.
874         (update_threads_executing): New function.
875         (update_thread_list): Use it.
876
877 2014-10-02  Pedro Alves  <palves@redhat.com>
878
879         PR breakpoints/17431
880         * breakpoint.c (update_breakpoints_after_exec): Don't create
881         overlay, longjmp, std terminate nor exception breakpoints here.
882
883 2014-10-02  Pedro Alves  <palves@redhat.com>
884
885         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
886         Adjust comments.
887         * inferior.c (find_inferior_for_program_space): Give preference to
888         the current inferior.
889         * inferior.h (find_inferior_for_program_space): Update comment.
890         * progspace.c (switch_to_program_space_and_thread): Prefer the
891         current inferior if it's bound to the program space requested.  If
892         the inferior found doesn't have a PID yet, don't bother looking up
893         a thread.
894         * progspace.h (switch_to_program_space_and_thread): Adjust
895         comment.
896         * thread.c (any_thread_of_process, any_live_thread_of_process):
897         Give preference to the current thread.
898
899 2014-10-01  Pedro Alves  <palves@redhat.com>
900
901         * breakpoint.c (insert_bp_location): Error out if inserting a
902         software breakpoint at a read-only address.
903         * target.c (memory_xfer_check_region): New function, factored out
904         from ...
905         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
906         ULONGEST.
907         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
908         against the memory region attributes.
909
910 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
911
912         * NEWS: Announce new exit-code field in -list-thread-groups
913         output.
914         * inferior.c (exit_inferior_1): Don't clear exit code.
915         (inferior_appeared): Clear exit code.
916         * mi/mi-main.c (print_one_inferior): Add printing of the exit
917         code.
918
919 2014-10-01  Pedro Alves  <palves@redhat.com>
920
921         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
922         GENERATED" along with emacs/vi read-only markers.
923         * regformats/aarch64.dat: Regenerate.
924         * regformats/arm-with-iwmmxt.dat: Regenerate.
925         * regformats/arm-with-neon.dat: Regenerate.
926         * regformats/arm-with-vfpv2.dat: Regenerate.
927         * regformats/arm-with-vfpv3.dat: Regenerate.
928         * regformats/i386/amd64-avx-linux.dat: Regenerate.
929         * regformats/i386/amd64-avx.dat: Regenerate.
930         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
931         * regformats/i386/amd64-avx512.dat: Regenerate.
932         * regformats/i386/amd64-linux.dat: Regenerate.
933         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
934         * regformats/i386/amd64-mpx.dat: Regenerate.
935         * regformats/i386/amd64.dat: Regenerate.
936         * regformats/i386/i386-avx-linux.dat: Regenerate.
937         * regformats/i386/i386-avx.dat: Regenerate.
938         * regformats/i386/i386-avx512-linux.dat: Regenerate.
939         * regformats/i386/i386-avx512.dat: Regenerate.
940         * regformats/i386/i386-linux.dat: Regenerate.
941         * regformats/i386/i386-mmx-linux.dat: Regenerate.
942         * regformats/i386/i386-mmx.dat: Regenerate.
943         * regformats/i386/i386-mpx-linux.dat: Regenerate.
944         * regformats/i386/i386-mpx.dat: Regenerate.
945         * regformats/i386/i386.dat: Regenerate.
946         * regformats/i386/x32-avx-linux.dat: Regenerate.
947         * regformats/i386/x32-avx.dat: Regenerate.
948         * regformats/i386/x32-avx512-linux.dat: Regenerate.
949         * regformats/i386/x32-avx512.dat: Regenerate.
950         * regformats/i386/x32-linux.dat: Regenerate.
951         * regformats/i386/x32.dat: Regenerate.
952         * regformats/microblaze-with-stack-protect.dat: Regenerate.
953         * regformats/mips-dsp-linux.dat: Regenerate.
954         * regformats/mips-linux.dat: Regenerate.
955         * regformats/mips64-dsp-linux.dat: Regenerate.
956         * regformats/mips64-linux.dat: Regenerate.
957         * regformats/nios2-linux.dat: Regenerate.
958         * regformats/rs6000/powerpc-32.dat: Regenerate.
959         * regformats/rs6000/powerpc-32l.dat: Regenerate.
960         * regformats/rs6000/powerpc-64l.dat: Regenerate.
961         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
962         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
963         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
964         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
965         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
966         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
967         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
968         * regformats/s390-linux32.dat: Regenerate.
969         * regformats/s390-linux32v1.dat: Regenerate.
970         * regformats/s390-linux32v2.dat: Regenerate.
971         * regformats/s390-linux64.dat: Regenerate.
972         * regformats/s390-linux64v1.dat: Regenerate.
973         * regformats/s390-linux64v2.dat: Regenerate.
974         * regformats/s390-te-linux64.dat: Regenerate.
975         * regformats/s390x-linux64.dat: Regenerate.
976         * regformats/s390x-linux64v1.dat: Regenerate.
977         * regformats/s390x-linux64v2.dat: Regenerate.
978         * regformats/s390x-te-linux64.dat: Regenerate.
979         * regformats/tic6x-c62x-linux.dat: Regenerate.
980         * regformats/tic6x-c62x.dat: Regenerate.
981         * regformats/tic6x-c64x-linux.dat: Regenerate.
982         * regformats/tic6x-c64x.dat: Regenerate.
983         * regformats/tic6x-c64xp-linux.dat: Regenerate.
984         * regformats/tic6x-c64xp.dat: Regenerate.
985
986 2014-10-01  Pedro Alves  <palves@redhat.com>
987
988         * features/Makefile: Update comments.
989         (XMLTOC): List all xml files we build C files from.
990         (clean-cfiles): New rule.
991
992 2014-10-01  Pedro Alves  <palves@redhat.com>
993
994         * features/i386/amd64-avx512-linux.c: Regenerate.
995         * features/i386/amd64-avx512.c: Regenerate.
996         * features/i386/x32-avx512-linux.c: Regenerate.
997         * features/i386/x32-avx512.c: Regenerate.
998
999 2014-10-01  Pedro Alves  <palves@redhat.com>
1000
1001         * features/Makefile (WHICH): Remove arm-with-m,
1002         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1003
1004 2014-10-01  Pedro Alves  <palves@redhat.com>
1005
1006         * features/Makefile (clean): New rule.
1007
1008 2014-10-01  Pedro Alves  <palves@redhat.com>
1009
1010         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1011         (zmm14h): Add missing end quotes.
1012
1013 2014-10-01  Pedro Alves  <palves@redhat.com>
1014
1015         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1016         * features/aarch64.c: Regenerate.
1017
1018 2014-09-30  Don Breazeal  <donb@codesourcery.com>
1019
1020         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1021         code so as to work with follow_fork_inferior.
1022         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1023         (inf_ttrace_create_inferior): Remove reference to
1024         inf_ttrace_vfork_ppid.
1025         (inf_ttrace_attach): Ditto.
1026         (inf_ttrace_detach): Ditto.
1027         (inf_ttrace_kill): Use current_inferior instead of
1028         inf_ttrace_vfork_ppid.
1029         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1030         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1031         inferior away from the parent.
1032         * infrun.c (follow_fork): Call follow_fork_inferior instead of
1033         target_follow_fork.
1034         (follow_fork_inferior): New function.
1035         (follow_inferior_reset_breakpoints): Make function static.
1036         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1037         * linux-nat.c (linux_child_follow_fork): Move target-independent
1038         code to infrun.c:follow_fork_inferior.
1039
1040 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1041
1042         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1043         * gdbarch.c: Regenerate.
1044         * gdbarch.h: Likewise.
1045         * corelow.c (sniff_core_bfd): Drop presence check for deleted
1046         gdbarch method 'regset_from_core_section'.
1047         (get_core_register_section): Remove handling for the case that
1048         regset == NULL and regset_from_core_section is defined.
1049         (get_core_registers): Drop check for deleted method.
1050         * procfs.c (procfs_do_thread_registers): Adjust comment.
1051
1052 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1053
1054         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1055         (linux_nat_make_corefile_notes): Remove.
1056         (linux_target_install_ops): Do not set target method
1057         'make_corefile_notes'.
1058         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1059         Remove field.
1060         (linux_corefile_thread_callback): Instead of args->collect, call
1061         linux_collect_thread_registers.
1062         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
1063         NULL unless there is a regset iterator.
1064         (linux_make_corefile_notes_1): Remove.
1065         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1066         by linux_make_corefile_notes.
1067         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1068
1069 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1070
1071         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1072         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1073         Remove.
1074         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1075
1076 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1077
1078         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1079         (xtensa_iterate_over_regset_sections): New.
1080         (xtensa_gdbarch_init): Adjust gdbarch initialization.
1081
1082 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1083
1084         * vax-tdep.c (vax_regset_from_core_section): Remove.
1085         (vax_iterate_over_regset_sections): New.
1086         (vax_gdbarch_init): Adjust gdbarch initialization.
1087
1088 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1089
1090         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1091         (tilegx_regset_from_core_section): Remove.
1092         (tilegx_iterate_over_regset_sections): New.
1093         (tilegx_linux_init_abi): Adjust gdbarch initialization.
1094
1095 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1096
1097         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1098         (sparc_iterate_over_regset_sections): New.
1099         (sparc32_gdbarch_init): Adjust gdbarch initialization.
1100         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1101         targets.
1102         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1103         (sparc64fbsd_init_abi): Call fbsd_init_abi.
1104         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1105         target method 'make_corefile_notes'.
1106
1107 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1108
1109         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1110         'sizeof_gregset' and 'sizeof_fpregset'.
1111         * sh-tdep.c (sh_regset_from_core_section): Remove.
1112         (sh_iterate_over_regset_sections): New.
1113         (sh_gdbarch_init): Adjust gdbarch initialization.
1114         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1115         sizeof_fpregset.
1116         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1117         'sizeof_gregset'.
1118
1119 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1120
1121         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1122         (score7_linux_iterate_over_regset_sections): New.
1123         (score_gdbarch_init): Adjust gdbarch initialization.
1124
1125 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1126
1127         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1128         FreeBSD targets.
1129         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1130         method 'make_corefile_notes'.
1131         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1132         (ppcfbsd_regset_from_core_section): Remove.
1133         (ppcfbsd_iterate_over_regset_sections): New.
1134         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
1135         initialization.
1136         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1137         (ppcnbsd_iterate_over_regset_sections): New.
1138         (ppcnbsd_init_abi): Adjust.
1139         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1140         (ppcobsd_iterate_over_regset_sections): New.
1141         (ppcobsd_init_abi): Adjust.
1142         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1143         (rs6000_aix_iterate_over_regset_sections): New.
1144         (rs6000_aix_init_osabi): Adjust.
1145
1146 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1147
1148         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1149         (nios2_regset_from_core_section): Remove.
1150         (nios2_iterate_over_regset_sections): New.
1151         (nios2_linux_init_abi): Adjust gdbarch initialization.
1152
1153 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1154
1155         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1156         (am33_iterate_over_regset_sections): New.
1157         (am33_linux_init_osabi): Adjust gdbarch initialization.
1158
1159 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1160
1161         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1162         (mips_linux_iterate_over_regset_sections): New.
1163         (mips_linux_init_abi): Adjust gdbarch initialization.
1164         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1165         (mips64obsd_iterate_over_regset_sections): New.
1166         (mips64obsd_init_abi): Adjust.
1167         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1168         (mipsnbsd_iterate_over_regset_sections): New.
1169         (mipsnbsd_init_abi): Adjust.
1170
1171 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1172
1173         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1174         (m88k_iterate_over_regset_sections): New.
1175         (m88k_gdbarch_init): Adjust gdbarch initialization.
1176
1177 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1178
1179         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1180         (ia64_linux_iterate_over_regset_sections): New.
1181         (ia64_linux_init_abi): Adjust gdbarch initialization.
1182
1183 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1184
1185         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1186         (m68kbsd_iterate_over_regset_sections): New.
1187         (m68kbsd_init_abi): Adjust gdbarch initialization.
1188         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1189         (m68k_linux_iterate_over_regset_sections): New.
1190         (m68k_linux_init_abi): Adjust gdbarch initialization.
1191
1192 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1193
1194         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1195         (m32r_linux_regset_from_core_section): Remove.
1196         (m32r_linux_iterate_over_regset_sections): New.
1197         (m32r_linux_init_abi): Adjust gdbarch initialization.
1198
1199 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1200
1201         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1202         (amd64obsd_iterate_over_regset_sections): New.
1203         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1204         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1205         Remove.
1206         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
1207         regset_from_core_section initialization.
1208         * i386-tdep.c (i386_regset_from_core_section): Remove.
1209         (i386_iterate_over_regset_sections): New.
1210         (i386_gdbarch_init): Adjust gdbarch initialization.
1211         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1212         (i386_iterate_over_regset_sections): New prototype.
1213         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1214         Remove.
1215         (i386obsd_aout_iterate_over_regset_sections): New.
1216         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1217         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1218         targets.
1219         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1220         (amd64fbsd_init_abi): Call fbsd_init_abi.
1221         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1222         (i386fbsd4_init_abi): Call fbsd_init_abi.
1223         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1224         target method 'make_corefile_notes'.
1225         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1226
1227 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1228
1229         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1230         (hppa_hpux_iterate_over_regset_sections): New.
1231         (hppa_hpux_init_abi): Adjust gdbarch initialization.
1232         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1233         (hppa_linux_iterate_over_regset_sections): New.
1234         (hppa_linux_init_abi): Adjust.
1235         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1236         (hppanbsd_iterate_over_regset_sections): New.
1237         (hppanbsd_init_abi): Adjust.
1238         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1239         (hppaobsd_iterate_over_regset_sections): New.
1240         (hppaobsd_init_abi): Adjust.
1241
1242 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1243
1244         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1245         (frv_linux_iterate_over_regset_sections): New.
1246         (frv_linux_init_abi): Adjust gdbarch initialization.
1247
1248 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1249
1250         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1251         (armbsd_iterate_over_regset_sections): New prototype.
1252         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1253         (armbsd_iterate_over_regset_sections): New.
1254         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1255         initialization.
1256
1257 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1258
1259         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1260         (alpha_linux_iterate_over_regset_sections): New.
1261         (alpha_linux_init_abi): Adjust gdbarch initialization.
1262         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1263         prototype.
1264         (alphanbsd_iterate_over_regset_sections): New prototype.
1265
1266 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1267
1268         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1269         Remove.
1270         (aarch64_linux_iterate_over_regset_sections): New.
1271         (aarch64_linux_init_abi): Adjust gdbarch initialization.
1272
1273 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1274
1275         * fbsd-tdep.c: New file.
1276         * fbsd-tdep.h: New file.
1277         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1278         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1279         (ALLDEPFILES): Add fbsd-tdep.c.
1280
1281 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1282
1283         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1284         parameter.
1285         * gdbarch.h: Regenerate.
1286         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1287         iterator.
1288         (get_core_register_section): Add parameter 'regset' and use it, if
1289         set.  Add parameter 'min_size' and verify the bfd section size
1290         against it.
1291         (get_core_registers_cb): Add parameter 'regset' and pass it to
1292         get_core_register section.  For the "standard" register sections
1293         ".reg" and ".reg2", set an appropriate default for human_name.
1294         (get_core_registers): Don't abort when the gdbarch has an iterator
1295         but no regset_from_core_section.  Add NULL/0 for parameters
1296         'regset'/'min_size' in calls to get_core_register_section.
1297         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1298         'regset' and use it instead of calling the
1299         regset_from_core_section gdbarch method.
1300         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1301         * i386-tdep.c (i386_supply_xstateregset)
1302         (i386_collect_xstateregset, i386_xstateregset): Moved to
1303         i386-linux-tdep.c.
1304         (i386_regset_from_core_section): Drop handling for .reg-xfp and
1305         .reg-xstate.
1306         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
1307         core file support only if the regset iterator hasn't been set.
1308         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1309         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1310         Moved from i386-tdep.c and renamed to *_linux*.
1311         (i386_linux_iterate_over_regset_sections): Add regset parameter to
1312         each callback invocation.  Allow any .reg-xstate size when reading
1313         from a core file.
1314         * amd64-tdep.c (amd64_supply_xstateregset)
1315         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1316         amd64-linux-tdep.c.
1317         (amd64_regset_from_core_section): Remove.
1318         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
1319         install an amd64-specific regset_from_core_section gdbarch method.
1320         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1321         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1322         Moved from amd64-tdep.c and renamed to *_linux*.
1323         (amd64_linux_iterate_over_regset_sections): Add regset parameter
1324         to each callback invocation.  Allow any .reg-xstate size when
1325         reading from a core file.
1326         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1327         (arm_linux_iterate_over_regset_sections): Add regset parameter to
1328         each callback invocation.
1329         (arm_linux_init_abi): No longer set the regset_from_core_section
1330         gdbarch method.
1331         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1332         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1333         each callback invocation.
1334         (ppc_linux_init_abi): No longer set the regset_from_core_section
1335         gdbarch method.
1336         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1337         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1338         (s390_regset_from_core_section): Remove.
1339         (s390_iterate_over_regset_sections): Add regset parameter to each
1340         callback invocation.
1341         (s390_gdbarch_init): No longer set the regset_from_core_section
1342         gdbarch method.  Drop initialization of deleted tdep fields.
1343
1344 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1345
1346         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1347         (amd64_linux_iterate_over_regset_sections): New.
1348         (amd64_linux_init_abi_common): Don't install the regset section
1349         list, but the new iterator in gdbarch.
1350         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1351         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
1352         (arm_linux_iterate_over_regset_sections): ...here.  New function.
1353         (arm_linux_init_abi): Set iterator instead of section list.
1354         * corelow.c (get_core_registers_cb): New function, logic moved
1355         from...
1356         (get_core_registers): ...loop body here.  Use new iterator method
1357         instead of walking through the regset section list.
1358         * gdbarch.sh: Remove 'core_regset_sections'.  New method
1359         'iterate_over_regset_sections'.  New typedef
1360         'iterate_over_regset_sections_cb'.
1361         * gdbarch.c: Regenerate.
1362         * gdbarch.h: Likewise.
1363         * i386-linux-tdep.c (i386_linux_regset_sections)
1364         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1365         Remove.
1366         (i386_linux_iterate_over_regset_sections): New.
1367         (i386_linux_init_abi): Don't choose a regset section list, but
1368         install new iterator in gdbarch.
1369         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1370         (linux_collect_regset_section_cb): New function, logic moved
1371         from...
1372         (linux_collect_thread_registers): ...loop body here.  Use iterator
1373         method instead of walking through list.
1374         (linux_make_corefile_notes_1): Check for presence of iterator
1375         method instead of regset section list.
1376         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1377         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1378         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1379         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
1380         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
1381         (ppc_linux_init_abi): Don't choose from above regset section
1382         lists, but install new iterator in gdbarch.
1383         * regset.h (struct core_regset_section): Remove.
1384         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1385         have_linux_v1, have_linux_v2, and have_tdb.
1386         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1387         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1388         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1389         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1390         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
1391         (s390_iterate_over_regset_sections): ...here.  New function.  Use
1392         new tdep fields.
1393         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
1394         regset section lists, but install new iterator.
1395
1396 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1397
1398         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1399
1400 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
1401
1402         * progspace.c (print_program_space): Don't prune program spaces
1403         before printing them.
1404
1405 2014-09-25  Pedro Alves  <palves@redhat.com>
1406
1407         * infrun.c (user_visible_resume_ptid): Don't check
1408         singlestep_breakpoints_inserted_p.
1409
1410 2014-09-25  Pedro Alves  <palves@redhat.com>
1411
1412         * breakpoint.c (should_be_inserted): Add debug output.
1413
1414 2014-09-25  Pedro Alves  <palves@redhat.com>
1415
1416         * infrun.c (stepping_past_instruction_at)
1417         (clear_exit_convenience_vars): Point at infrun.h instead of
1418         inferior.h.
1419         (handle_signal_stop): Fix typo.
1420
1421 2014-09-24  Yao Qi  <yao@codesourcery.com>
1422
1423         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1424         bitmask.
1425
1426 2014-09-22  Gary Benson  <gbenson@redhat.com>
1427
1428         * target.c (target_stop): Updated comment.
1429
1430 2014-09-22  Gary Benson  <gbenson@redhat.com>
1431
1432         * target/target.h (target_stop_ptid): Renamed as...
1433         (target_stop_and_wait): New function.  Updated comment.
1434         All uses updated.
1435         (target_continue_ptid): Renamed as...
1436         (target_continue_no_signal): New function.  Updated comment.
1437         All uses updated.
1438
1439 2014-09-22  Pedro Alves  <palves@redhat.com>
1440
1441         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1442         and "auto" merged.
1443         * breakpoint.c (enum ugll_insert_mode): New enum.
1444         (always_inserted_mode): Now a plain boolean.
1445         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1446         (breakpoints_always_inserted_mode): Delete.
1447         (breakpoints_should_be_inserted_now): New function.
1448         (insert_breakpoints): Pass UGLL_INSERT to
1449         update_global_location_list instead of calling
1450         insert_breakpoint_locations manually.
1451         (create_solib_event_breakpoint_1): New, factored out from ...
1452         (create_solib_event_breakpoint): ... this.
1453         (create_and_insert_solib_event_breakpoint): Use
1454         create_solib_event_breakpoint_1 instead of calling
1455         insert_breakpoint_locations manually.
1456         (update_global_location_list): Change parameter type from boolean
1457         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1458         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1459         (update_global_location_list_nothrow): Change parameter type from
1460         boolean to enum ugll_insert_mode.
1461         (_initialize_breakpoint): "breakpoint always-inserted" option is
1462         now a boolean command.  Update help text.
1463         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1464         (breakpoints_should_be_inserted_now): New declaration.
1465         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1466         Remove breakpoints_always_inserted_mode check.
1467         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1468         * remote.c (remote_start_remote): Likewise.
1469
1470 2014-09-22  Pedro Alves  <palves@redhat.com>
1471
1472         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1473         (insert_breakpoints): Don't call insert_breakpoint_locations here.
1474         Instead, pass UGLL_INSERT to update_global_location_list.
1475         (update_global_location_list): Change parameter type from boolean
1476         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1477         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1478         (create_solib_event_breakpoint_1): New, factored out from ...
1479         (create_solib_event_breakpoint): ... this.
1480         (create_and_insert_solib_event_breakpoint): Use
1481         create_solib_event_breakpoint_1 instead of calling
1482         insert_breakpoint_locations manually.
1483         (update_global_location_list): Handle UGLL_INSERT.
1484
1485 2014-09-22  Pedro Alves  <palves@redhat.com>
1486
1487         * breakpoint.c (enum ugll_insert_mode): New enum.
1488         (update_global_location_list)
1489         (update_global_location_list_nothrow): Change parameter type from
1490         boolean to enum ugll_insert_mode.  All callers adjusted.
1491
1492 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
1493
1494         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1495         SystemTap support in GDB.
1496
1497 2014-09-19  Don Breazeal  <donb@codesourcery.com>
1498
1499         * linux-nat.c (linux_handle_extended_wait): Call
1500         linux_ptrace_get_extended_event.
1501         (wait_lwp): Call linux_is_extended_waitstatus.
1502         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1503         and linux_is_extended_waitstatus.
1504         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1505         linux_ptrace_get_extended_event.
1506         (linux_ptrace_get_extended_event): New function.
1507         (linux_is_extended_waitstatus): New function.
1508         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1509         (linux_is_extended_waitstatus): New declarations.
1510
1511 2014-09-19  Yao Qi  <yao@codesourcery.com>
1512
1513         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1514         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
1515         comments.  Callers update.
1516         (dwarf_decode_lines): Likewise.
1517         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
1518         comments.  Skip the line table if  'lowpc' is greater than
1519         'address'.  Don't check
1520         dwarf2_per_objfile->has_section_at_zero.
1521
1522 2014-09-18  Doug Evans  <dje@google.com>
1523
1524         * NEWS: Mention new "producer" attribute of gdb.Symtab.
1525         * python/py-symtab.c (stpy_get_producer): New function.
1526         (symtab_object_getset): Add "producer" attribute.
1527
1528 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
1529
1530         PR gdb/17384
1531         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1532         (do_captured_read_memory_integer): Remove.
1533         (safe_read_memory_integer): Use target_read_memory directly instead
1534         of catching errors in do_captured_read_memory_integer.
1535
1536 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
1537
1538         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1539         not gdb/doc.
1540
1541 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1542
1543         * objc-lang.c (find_implementation_from_class): Remove dead code.
1544
1545 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1546
1547         PR cli/7233
1548         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1549         "fprintf_unfiltered (gdb_stdlog...)".
1550
1551 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
1552
1553         PR breakpoints/12526
1554         * breakpoint.h (struct watchpoint): New fields val_bitpos and
1555         val_bitsize.
1556         * breakpoint.c (watch_command_1): Use these fields to retain
1557         bitfield information.
1558         (extract_bitfield_from_watchpoint_value): New function.
1559         (watchpoint_check): Use it.
1560         (update_watchpoint): Use it.  Optimize the address and length of a
1561         HW watchpoint pointing to a bitfield.
1562         * value.h (unpack_value_bitfield): New prototype.
1563         * value.c (unpack_value_bitfield): Make extern.
1564
1565 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1566
1567         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1568         x86-dregs.o.
1569         * gnu-nat.c (inf_threads): New function.
1570         * gnu-nat.h (inf_threads_ftype): New typedef.
1571         (inf_threads): New declaration.
1572         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1573         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1574         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1575         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1576         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1577         (i386_gnu_dr_get_control): New functions.
1578         (reg_addr): New structure.
1579         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1580         i386 debugging register hooks.
1581         * NEWS: Mention this.
1582
1583 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1584
1585         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1586         vector data transfer instructions.
1587         (arm_record_coproc_data_proc): Updated.
1588
1589 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1590
1591         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1592         arm_record_exreg_ld_st_insn.
1593         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1594         load/store insns.
1595
1596 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1597
1598         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1599         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1600         processing instructions.
1601
1602 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1603
1604         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1605         for advance SIMD struct ld/st insn.
1606         (thumb2_record_decode_insn_handler): Replace stub handler with
1607         thumb2_record_asimd_struct_ld_st.
1608
1609 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1610
1611         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1612         for asimd, vfp and coprocessor insns.
1613         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1614         and coprocessor insns.
1615         (thumb2_record_coproc_insn): New function.
1616         (thumb2_record_decode_insn_handler): Update coprocessor insns record
1617         handlers.
1618         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1619         opcode 110 insns.
1620
1621 2014-09-13  Doug Evans  <xdje42@gmail.com>
1622
1623         * NEWS: Mention new "queue-signal" command.
1624         * infcmd.c (queue_signal_command): New function.
1625         (_initialize_infcmd): Add new queue-signal command.
1626
1627 2014-09-13  Doug Evans  <xdje42@gmail.com>
1628
1629         * linux-nat.c (wait_lwp): Add debugging printf.
1630         (linux_nat_wait_1): Ditto.
1631
1632 2014-09-12  Pedro Alves  <palves@redhat.com>
1633
1634         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1635         (create_and_insert_solib_event_breakpoint): New functions.
1636         * breakpoint.h (create_and_insert_solib_event_breakpoint)
1637         (remove_solib_event_breakpoints_at_next_stop): New declarations.
1638         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1639         (remove_dbx_link_breakpoint): Delete function.
1640         (insert_dbx_link_bpt_in_file): Use
1641         create_and_insert_solib_event_breakpoint instead of
1642         deprecated_insert_raw_breakpoint.
1643         (procfs_wait): Don't check whether we hit __dbx_link here.
1644         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1645         here.
1646         * solib-irix.c (base_breakpoint): Delete global.
1647         (disable_break): Delete function.
1648         (enable_break): Use create_solib_event_breakpoint
1649         instead of deprecated_insert_raw_breakpoint.
1650         (irix_solib_handle_event): New function.
1651         (irix_solib_create_inferior_hook): Don't run the target or disable
1652         the mapping-complete breakpoint here.
1653         (_initialize_irix_solib): Install irix_solib_handle_event as
1654         so_ops->handle_event hook.
1655
1656 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1657             Ulrich Weigand  <uweigand@de.ibm.com>
1658
1659         PR tdep/17379
1660         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1661         instead of read_memory_unsigned_integer.
1662
1663 2014-09-12  Gary Benson  <gbenson@redhat.com>
1664
1665         * nat/linux-waitpid.c: Include common-defs.h.
1666         [GDBSERVER]: Add FIXME comment.
1667         [!GDBSERVER]: Don't include defs.h or signal.h.
1668         (linux_debug) [!GDBSERVER]: Remove empty block.
1669
1670 2014-09-12  Gary Benson  <gbenson@redhat.com>
1671
1672         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1673         Don't include defs.h or server.h.
1674
1675 2014-09-12  Gary Benson  <gbenson@redhat.com>
1676
1677         * nat/linux-btrace.c: Include common-defs.h.
1678         Don't include defs.h, server.h or gdbthread.h.
1679         * nat/linux-btrace.h (struct target_ops): New forward declaration.
1680
1681 2014-09-12  Gary Benson  <gbenson@redhat.com>
1682
1683         * common/agent.c: Include common-defs.h.
1684         Don't include defs.h or server.h.
1685         * common/buffer.c: Likewise.
1686         * common/common-debug.c: Likewise.
1687         * common/common-utils.c: Likewise.
1688         * common/errors.c: Likewise.
1689         * common/filestuff.c: Likewise.
1690         * common/format.c: Likewise.
1691         * common/gdb_vecs.c: Likewise.
1692         * common/print-utils.c: Likewise.
1693         * common/ptid.c: Likewise.
1694         * common/rsp-low.c: Likewise.
1695         * common/signals.c: Likewise.
1696         * common/vec.c: Likewise.
1697         * common/xml-utils.c: Likewise.
1698         * nat/linux-osdata.c: Likewise.
1699         * nat/linux-procfs.c: Likewise.
1700         * nat/linux-ptrace.c: Likewise.
1701         * nat/mips-linux-watch.c: Likewise.
1702         * target/waitstatus.c: Likewise.
1703
1704 2014-09-12  Tom Tromey  <tromey@redhat.com>
1705             Gary Benson  <gbenson@redhat.com>
1706
1707         * common/common-regcache.h: New file.
1708         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1709         * regcache.h: Include common-regcache.h.
1710         (regcache_read_pc): Don't declare.
1711         * regcache.c (get_thread_regcache_for_ptid): New function.
1712         * nat/linux-btrace.c: Don't include regcache.h.
1713         Include common-regcache.h.
1714         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1715
1716 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
1717
1718         * regcache.h (struct regset): Declare.
1719
1720 2014-09-11  Pedro Alves  <palves@redhat.com>
1721
1722         PR gdb/17347
1723         * main.c: Include "infrun.h".
1724         (catch_command_errors, catch_command_errors_const): Wait for the
1725         foreground command to complete.
1726         * top.c (maybe_wait_sync_command_done): New function, factored out
1727         from ...
1728         (maybe_wait_sync_command_done): ... here.
1729         * top.h (maybe_wait_sync_command_done): New declaration.
1730
1731 2014-09-11  Tom Tromey  <tromey@redhat.com>
1732             Gary Benson  <gbenson@redhat.com>
1733
1734         * common/symbol.h: New file.
1735         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1736         * minsyms.c (find_minimal_symbol_address): New function.
1737         * common/agent.c: Include common/symbol.h.
1738         [!GDBSERVER]: Don't include objfiles.h.
1739         (agent_look_up_symbols): Use find_minimal_symbol_address.
1740
1741 2014-09-11  Gary Benson  <gbenson@redhat.com>
1742
1743         * target/target.h (target_stop_ptid, target_continue_ptid):
1744         Declare.
1745         * target.c (target_stop_ptid, target_continue_ptid): New
1746         functions.
1747         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1748         (agent_run_command): Always use target_stop_ptid and
1749         target_continue_ptid.
1750
1751 2014-09-11  Tom Tromey  <tromey@redhat.com>
1752             Gary Benson  <gbenson@redhat.com>
1753
1754         * target/target.h: New file.
1755         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1756         * target.h: Include target/target.h.
1757         (target_read_memory, target_write_memory): Don't declare.
1758         * target.c (target_read_uint32): New function.
1759         * common/agent.c: Include target/target.h.
1760         [!GDBSERVER]: Don't include target.h.
1761         (helper_thread_id): Type changed to uint32_t.
1762         (agent_get_helper_thread_id): Use target_read_uint32.
1763         (agent_run_command): Always use target_read_memory and
1764         target_write_memory.
1765         (agent_capability): Type changed to uint32_t.
1766         (agent_capability_check): Use target_read_uint32.
1767
1768 2014-09-11  Gary Benson  <gbenson@redhat.com>
1769
1770         * common/common-debug.h (show_debug_regs): Declare.
1771         * common/common-debug.c (show_debug_regs): Define.
1772         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
1773         all uses with show_debug_regs.  Replace all uses that considered
1774         debug_hw_points as a multi-value integer with straight boolean
1775         uses.
1776         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
1777         with show_debug_regs.
1778         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
1779         all uses with show_debug_regs.
1780         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
1781         uses with show_debug_regs.
1782
1783 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1784
1785         * findvar.c (address_from_register): Handle targets requiring
1786         a special conversion routine even for plain pointer types.
1787
1788 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1789
1790         * rs6000-nat.c (exec_one_dummy_insn): Remove.
1791         (store_register): Do not call exec_one_dummy_insn.
1792
1793 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1794
1795         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1796         dereference it first.  Use value_enclosing_type instead of
1797         value_type.
1798         (ada_array_length): Likewise.
1799
1800 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1801
1802         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1803         Adjust function implementation and documentation accordingly.
1804         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1805         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1806         Update call to ada_value_ptr_subscript.
1807
1808 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1809
1810         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1811         instead of VAL's type.
1812
1813 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1814
1815         * amd64-linux-nat.c: Add <sys/uio.h> #include.
1816
1817 2014-09-09  Doug Evans  <xdje42@gmail.com>
1818
1819         PR guile/17367
1820         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1821         last parameter to pkg-config, not first.
1822         * configure.ac: Pass --with-guile provided pkg-config path to
1823         GDB_GUILE_PROGRAM_NAMES.
1824         * configure: Regenerate.
1825
1826 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1827
1828         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1829         Bertazi".
1830
1831 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
1832
1833         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1834         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1835         the list of sections determining GDB_OSABI_IRIX.
1836
1837 2014-09-09  James Hogan  <james.hogan@imgtec.com>
1838
1839         * MAINTAINERS (Write After Approval): Add "James Hogan".
1840
1841 2014-09-09  James Hogan  <james.hogan@imgtec.com>
1842
1843         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1844
1845 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
1846
1847         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1848
1849 2014-09-08  Doug Evans  <xdje42@gmail.com>
1850
1851         PR 17247
1852         * guile.c: #include <signal.h>.
1853         (_initialize_guile): Block SIGCHLD while initializing Guile.
1854
1855         Replaces the following, which is reverted.
1856
1857         2014-07-26  Doug Evans  <xdje42@gmail.com>
1858
1859         PR 17185
1860         * configure.ac: Add check for header gc/gc.h.
1861         Add check for function setenv.
1862         * configure: Regenerate.
1863         * config.in: Regenerate.
1864         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1865
1866 2014-09-08  Doug Evans  <xdje42@gmail.com>
1867
1868         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1869         with named constant.  Fix style of pointer comparison.
1870         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1871
1872 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1873
1874         PR gdb/17035
1875         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1876         decide whether we display the command on "show user".
1877         * cli/cli-script.c (show_user_1): Only verify cmdlines after
1878         printing command name.
1879         * cli/cli-decode.h (cli_user_command_p): Declare new function.
1880         * cli/cli-decode.c (cli_user_command_p): Create helper function
1881         to verify whether cmd_list_element is a user-defined command.
1882
1883 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1884
1885         PR python/17355
1886         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1887         Fix goto out of TRY_CATCH.
1888
1889 2014-09-06  Doug Evans  <xdje42@gmail.com>
1890             Tom Tromey  <tromey@redhat.com>
1891
1892         PR 15276
1893         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1894         $_any_caller_matches.
1895         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1896         * python/lib/gdb/function/caller_is.py: New file.
1897
1898 2014-09-06  Doug Evans  <xdje42@gmail.com>
1899
1900         * infcmd.c (program_info): Fix typo.
1901
1902 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
1903
1904         PR gdb/17235
1905         * stap-probe.c (stap_parse_single_operand): Delete unused variable
1906         'number'.  New variable 'has_digit'.  Rewrite code to deal with
1907         subexpressions on SDT probes.
1908
1909 2014-09-04  Pedro Alves  <palves@redhat.com>
1910
1911         * c-exp.y (parse_number): Skip handling base-switching prefixes if
1912         the input is only one character long.
1913
1914 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
1915
1916         PR fortran/17237
1917         * f-valprint.c (f_val_print): Specify the correct print option to
1918         use when printing integer values.
1919
1920 2014-09-04  Gary Benson  <gbenson@redhat.com>
1921
1922         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1923         Remove code to cope with LWPs wrapped as PIDs.
1924         Add assertions to ensure no wrapped LWPs are passed.
1925
1926 2014-09-04  Pedro Alves  <palves@redhat.com>
1927
1928         * value.c (value_ranges_copy_adjusted): New function, factored out
1929         from ...
1930         (value_contents_copy_raw): ... here.
1931         (unpack_value_bits_as_long_1): Rename back to ...
1932         (unpack_bits_as_long): ... this.  Remove 'original_value' and
1933         'result' parameters.  Change return type to LONGEST.
1934         (unpack_value_bits_as_long): Delete.
1935         (unpack_value_field_as_long_1): Delete.
1936         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1937         (unpack_value_bitfield): New function.
1938         (value_field_bitfield): Reimplement using unpack_value_bitfield.
1939         (value_fetch_lazy): Use unpack_value_bitfield.
1940         * value.h (unpack_value_bits_as_long): Delete declaration.
1941
1942 2014-09-03  Sasha Smundak  <asmundak@google.com>
1943
1944         * python/py-frame.c (frapy_read_register): New function.
1945
1946 2014-09-03  James Hogan  <james.hogan@imgtec.com>
1947
1948         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1949         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1950
1951 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
1952
1953         PR python/16699
1954         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1955         function.
1956         (add_cmd): Set "completer_handle_brkchars" to NULL.
1957         * cli/cli-decode.h (struct cmd_list_element)
1958         <completer_handle_brkchars>: New field.
1959         * command.h (completer_ftype_void): New typedef.
1960         (set_cmd_completer_handle_brkchars): New prototype.
1961         * completer.c (set_gdb_completion_word_break_characters): New
1962         function.
1963         (complete_line_internal): Call "completer_handle_brkchars"
1964         callback from command.
1965         * completer.h: Include "command.h".
1966         (set_gdb_completion_word_break_characters): New prototype.
1967         * python/py-cmd.c (cmdpy_completer_helper): New function.
1968         (cmdpy_completer_handle_brkchars): New function.
1969         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1970         (cmdpy_init): Set completer_handle_brkchars to
1971         cmdpy_completer_handle_brkchars.
1972
1973 2014-09-03  Gary Benson  <gbenson@redhat.com>
1974
1975         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1976         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
1977         Loop conditions changed to equivalent form.
1978         (struct x86_debug_reg_state): Updated dr_ref_count comment.
1979         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1980         ALL_DEBUG_ADDRESS_REGISTERS.
1981
1982 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
1983
1984         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1985         description fix.
1986
1987 2014-09-02  Doug Evans  <dje@google.com>
1988
1989         * typeprint.c (find_global_typedef): Fix comment.
1990
1991 2014-09-02  Gary Benson  <gbenson@redhat.com>
1992
1993         * i386-nat.h: Renamed as...
1994         * x86-nat.h: New file.  All type, function and variable name
1995         prefixes changed from "i386_" to "x86_".  All references updated.
1996         * i386-nat.c: Renamed as...
1997         * x86-nat.c: New file.  All type, function and variable name
1998         prefixes changed from "i386_" to "x86_".  All references updated.
1999         * common/i386-xstate.h: Renamed as...
2000         * common/x86-xstate.h: New file.  All type, function and variable
2001         name prefixes changed from "i386_" to "x86_".  All references
2002         updated.
2003         * nat/i386-cpuid.h: Renamed as...
2004         * nat/x86-cpuid.h: New file.  All type, function and variable name
2005         prefixes changed from "i386_" to "x86_".  All references updated.
2006         * nat/i386-gcc-cpuid.h: Renamed as...
2007         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
2008         name prefixes changed from "i386_" to "x86_".  All references
2009         updated.
2010         * nat/i386-dregs.h: Renamed as...
2011         * nat/x86-dregs.h: New file.  All type, function and variable name
2012         prefixes changed from "i386_" to "x86_".  All references updated.
2013         * nat/i386-dregs.c: Renamed as...
2014         * nat/x86-dregs.c: New file.  All type, function and variable name
2015         prefixes changed from "i386_" to "x86_".  All references updated.
2016
2017 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
2018
2019         * varobj.c (_initialize_varobj): Move to the end of file.
2020
2021 2014-08-29  Gary Benson  <gbenson@redhat.com>
2022
2023         * common/common-exceptions.h: New file.
2024         * common/common-exceptions.c: Likewise.
2025         * Makefile.in (SFILES): Add common/common-exceptions.c.
2026         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2027         (COMMON_OBS): Add common-exceptions.o.
2028         (common-exceptions.o): New rule.
2029         * exceptions.h (common-exceptions.h): Include.
2030         (gdb_setjmp.h): Do not include.
2031         (return_reason): Moved to common-exceptions.h.
2032         (enum return_reason): Likewise.
2033         (RETURN_MASK): Likewise.
2034         (typedef return_mask): Likewise.
2035         (enum errors): Likewise.
2036         (struct gdb_exception): Likewise.
2037         (exceptions_state_mc_init): Likewise.
2038         (exceptions_state_mc_action_iter): Likewise.
2039         (exceptions_state_mc_action_iter_1): Likewise.
2040         (TRY_CATCH): Likewise.
2041         (throw_exception): Likewise.
2042         (throw_verror): Likewise.
2043         (throw_vquit): Likewise.
2044         (throw_error): Likewise.
2045         (throw_quit): Likewise.
2046         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2047         (enum catcher_action): Likewise.
2048         (struct catcher): Likewise.
2049         (current_catcher): Likewise.
2050         (catcher_list_size): Likewise.
2051         (exceptions_state_mc_init): Likewise.
2052         (catcher_pop): Likewise.
2053         (exceptions_state_mc): Likewise.
2054         (exceptions_state_mc_action_iter): Likewise.
2055         (exceptions_state_mc_action_iter_1): Likewise.
2056         (throw_exception): Likewise.
2057         (exception_messages): Likewise.
2058         (exception_messages_size): Likewise.
2059         (throw_it): Likewise.
2060         (throw_verror): Likewise.
2061         (throw_vquit): Likewise.
2062         (throw_error): Likewise.
2063         (throw_quit): Likewise.
2064         (prepare_to_throw_exception): New function.
2065
2066 2014-08-29  Gary Benson  <gbenson@redhat.com>
2067
2068         * common/gdb_setjmp.h: New file.
2069         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2070         * configure.ac: Move sigsetjmp check...
2071         * common/common.m4: ...here.
2072         * configure: Regenerate.
2073         * cp-support.c (SIGJMP_BUF): Delete.
2074         (SIGSETJMP): Likewise.
2075         (SIGLONGJMP): Likewise.
2076         * exceptions.h (gdb_setjmp.h): Include.
2077         (setjmp.h): Do not include.
2078         (EXCEPTIONS_SIGJMP_BUF): Delete.
2079         (EXCEPTIONS_SIGSETJMP): Likewise.
2080         (EXCEPTIONS_SIGLONGJMP): Likewise.
2081         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2082         from gdb_setjmp.h.
2083         * exceptions.c: Likewise.
2084
2085 2014-08-29  Gary Benson  <gbenson@redhat.com>
2086
2087         * cleanups.h: Moved to...
2088         * common/cleanups.h: New file.
2089         * cleanups.c: Moved to...
2090         * common/cleanups.c: New file.  Include common-defs.h and
2091         cleanups.h.  Do not include defs.h.
2092         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2093         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2094         (cleanups.o): New rule.
2095
2096 2014-08-29  Gary Benson  <gbenson@redhat.com>
2097
2098         * common/errors.h (internal_warning): New declaration.
2099         (internal_vwarning): Likewise.
2100         * common/errors.c (internal_warning): New function.
2101         * utils.h (internal_warning): Don't declare.
2102         (internal_vwarning): Likewise.
2103         * utils.c (internal_warning): Removed.
2104
2105 2014-08-29  Gary Benson  <gbenson@redhat.com>
2106
2107         * main.c (captured_main): Use warning during startup.
2108         Prefix startup warning messages with command name.
2109
2110 2014-08-29  Gary Benson  <gbenson@redhat.com>
2111
2112         * main.c (captured_main): Handle usage errors with error.
2113
2114 2014-08-29  Gary Benson  <gbenson@redhat.com>
2115
2116         * go32-nat.c (go32_create_inferior): Replace a fprintf/
2117         exit pair with a call to error.  Wrap the message with _().
2118
2119 2014-08-29  Gary Benson  <gbenson@redhat.com>
2120
2121         * main.c (captured_main): Replace a fprintf/exit
2122         pair with a call to error.  Wrap the message with _().
2123
2124 2014-08-29  Gary Benson  <gbenson@redhat.com>
2125
2126         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2127         pairs with calls to error.  Wrap the message with _().
2128
2129 2014-08-29  Gary Benson  <gbenson@redhat.com>
2130
2131         * utils.c (vwarning): Protect calls to target_terminal_ours
2132         and wrap_here.
2133
2134 2014-08-29  Gary Benson  <gbenson@redhat.com>
2135
2136         * exceptions.c (print_flush): Protect calls to
2137         target_terminal_ours and wrap_here.
2138
2139 2014-08-29  Gary Benson  <gbenson@redhat.com>
2140
2141         * utils.h (filtered_printing_initialized): New declaration.
2142         * utils.c (abort_with_message): New function.
2143         (internal_vproblem): Use abort_with_message for first level
2144         recursive internal problems, and if gdb_stderr is not set up.
2145         Protect calls to target_terminal_ours, begin_line and query.
2146
2147 2014-08-28  Doug Evans  <dje@google.com>
2148
2149         * symtab.c (in_prologue): Move definition to better spot.
2150         (skip_prologue_using_sal): Ditto.
2151
2152 2014-08-28  Doug Evans  <dje@google.com>
2153
2154         * symtab.c (find_function_start_sal): Move definition to better spot.
2155
2156 2014-08-28  Yao Qi  <yao@codesourcery.com>
2157
2158         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2159         found_stack_adjust in forward scan.  Remove condition check
2160         on found_stack_adjust which is always true.  Indent the code.
2161
2162 2014-08-28  Yao Qi  <yao@codesourcery.com>
2163
2164         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2165         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2166         (dwarf_decode_lines): Remove argument
2167         want_line_info.  Remove condition check on want_line_info.
2168         Callers update.
2169
2170 2014-08-27  Doug Evans  <dje@google.com>
2171
2172         * dwarf2read.c (dwarf_record_line): Fix typo.
2173
2174 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
2175
2176         * target.h (struct target_ops::to_terminal_save_ours): Remove
2177         declaration.
2178         (target_terminal_save_ours): Remove macro.
2179         * target-delegates.c: Regenerate.
2180         * inf-child.c (inf_child_target): Don't set the nonexistent
2181         field to_terminal_save_ours.
2182         * inferior.h (child_terminal_save_ours): Remove declaration.
2183         * terminal.h (gdb_save_tty_state): New declaration.
2184         * inflow.c (child_terminal_save_ours): Rename to ...
2185         (gdb_save_tty_state): ... this.
2186         * tui/tui.c: Include terminal.h.
2187         (tui_enable): Use gdb_save_tty_state instead of
2188         target_terminal_save_ours.
2189         (tui_disable): Likewise.
2190
2191 2014-08-25  Doug Evans  <dje@google.com>
2192
2193         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2194         Pass NULL instead of 0 for context pointer.
2195
2196 2014-08-25  Yao Qi  <yao@codesourcery.com>
2197
2198         * dwarf2read.c: Fix grammatical error.
2199
2200 2014-08-24  Yao Qi  <yao@codesourcery.com>
2201
2202         * dwarf2read.c (scan_partial_symbols):  Update comments.
2203         Rename argument 'need_pc' with 'set_addrmap'.
2204         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
2205         'set_addrmap'.
2206         (add_partial_module): Likewise.
2207         (add_partial_subprogram): Likewise.  Update comments.
2208         (dwarf2_name): Fix typo.
2209
2210 2014-08-22  Doug Evans  <dje@google.com>
2211
2212         PR 17276
2213         * dwarf2read.c (dwarf_record_line_p): New function.
2214         (dwarf_decode_lines_1): Ignore subsequent line number entries
2215         for the same line if any entry had a non-zero discriminator.
2216
2217 2014-08-22  Doug Evans  <dje@google.com>
2218
2219         * buildsym.h (record_line_ftype): New typedef.
2220         (record_line): Use it.
2221         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2222         (dwarf_decode_lines_1): Call them.
2223
2224 2014-08-22  Yao Qi  <yao@codesourcery.com>
2225
2226         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2227         (ctf_end): Remove code.
2228
2229 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2230
2231         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2232         (linux_make_corefile_notes): call update_thread_list, protected against
2233         exceptions.
2234
2235 2014-08-21  Pedro Alves  <palves@redhat.com>
2236
2237         * infcmd.c (attach_command): Remove comment.
2238
2239 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
2240
2241         * aarch64-linux-nat.c (dr_changed_t): Change the type from
2242         unsigned LONGEST to ULONGEST.
2243
2244 2014-08-20  Pedro Alves  <palves@redhat.com>
2245
2246         * Makefile.in (check-read1): New rule.
2247
2248 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
2249
2250         * value.c (value_from_contents_and_address): Strip resolved_type's
2251         typedef layers before checking its TYPE_DATA_LOCATION.
2252
2253 2014-08-20  Pedro Alves  <palves@redhat.com>
2254
2255         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2256
2257 2014-08-20  Yao Qi  <yao@codesourcery.com>
2258
2259         * amd64-tdep.c (amd64_classify): Add a blank line after the
2260         example.  Move "*/" to a new line.
2261         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2262         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2263         * dwarf2read.c (psymtab_include_file_name): Likewise.
2264
2265 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
2266             Pedro Alves  <palves@redhat.com>
2267
2268         PR symtab/14604
2269         PR symtab/14605
2270         * ada-lang.c (coerce_unspec_val_to_type): Use
2271         value_contents_copy_raw.
2272         * ada-valprint.c (val_print_packed_array_elements): Adjust.
2273         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2274         * cp-valprint.c (cp_print_value_fields): Let the common printing
2275         code handle optimized out values.
2276         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2277         * d-valprint.c (dynamic_array_type): Use
2278         value_bits_any_optimized_out.
2279         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2280         check_any_valid fields.
2281         (check_pieced_value_bits): Delete and inline ...
2282         (check_pieced_synthetic_pointer): ... here.
2283         (check_pieced_value_validity): Delete.
2284         (check_pieced_value_invalid): Delete.
2285         (pieced_value_funcs): Remove check_validity and check_any_valid
2286         fields.
2287         (read_pieced_value): Use mark_value_bits_optimized_out.
2288         (write_pieced_value): Switch to use
2289         mark_value_bytes_optimized_out.
2290         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2291         of assuming the whole value is optimized out.
2292         * findvar.c (read_frame_register_value): Remove special handling
2293         of optimized out registers.
2294         (value_from_register): Use mark_value_bytes_optimized_out.
2295         * frame-unwind.c (frame_unwind_got_optimized): Use
2296         mark_value_bytes_optimized_out.
2297         * jv-valprint.c (java_value_print): Adjust.
2298         (java_print_value_fields): Let the common printing code handle
2299         optimized out values.
2300         * mips-tdep.c (mips_print_register): Remove special handling of
2301         optimized out registers.
2302         * opencl-lang.c (lval_func_check_validity): Delete.
2303         (lval_func_check_any_valid): Delete.
2304         (opencl_value_funcs): Remove check_validity and check_any_valid
2305         fields.
2306         * p-valprint.c (pascal_object_print_value_fields): Let the common
2307         printing code handle optimized out values.
2308         * stack.c (read_frame_arg): Remove special handling of optimized
2309         out values.  Fetch both VAL and ENTRYVAL before comparing
2310         contents.  Adjust to value_available_contents_eq rename.
2311         * valprint.c (valprint_check_validity)
2312         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2313         (val_print_array_elements): Adjust.
2314         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2315         (value_bits_any_optimized_out): New function.
2316         (value_entirely_covered_by_range_vector): New function, factored
2317         out from value_entirely_unavailable.
2318         (value_entirely_unavailable): Reimplement.
2319         (value_entirely_optimized_out): New function.
2320         (insert_into_bit_range_vector): New function, factored out from
2321         mark_value_bits_unavailable.
2322         (mark_value_bits_unavailable): Reimplement.
2323         (struct ranges_and_idx): New struct.
2324         (find_first_range_overlap_and_match): New function, factored out
2325         from value_available_contents_bits_eq.
2326         (value_available_contents_bits_eq): Rename to ...
2327         (value_contents_bits_eq): ... this.  Check both unavailable
2328         contents and optimized out contents.
2329         (value_available_contents_eq): Rename to ...
2330         (value_contents_eq): ... this.
2331         (allocate_value_lazy): Remove reference to the old optimized_out
2332         boolean.
2333         (allocate_optimized_out_value): Use
2334         mark_value_bytes_optimized_out.
2335         (require_not_optimized_out): Adjust to check whether the
2336         optimized_out vec is empty.
2337         (ranges_copy_adjusted): New function, factored out from
2338         value_contents_copy_raw.
2339         (value_contents_copy_raw): Also copy the optimized out ranges.
2340         Assert the destination ranges aren't optimized out.
2341         (value_contents_copy): Update comment, remove call to
2342         require_not_optimized_out.
2343         (value_contents_equal): Adjust to check whether the optimized_out
2344         vec is empty.
2345         (set_value_optimized_out, value_optimized_out_const): Delete.
2346         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2347         New functions.
2348         (value_entirely_optimized_out, value_bits_valid): Delete.
2349         (value_copy): Take a VEC copy of the 'optimized_out' field.
2350         (value_primitive_field): Remove special handling of optimized out.
2351         (value_fetch_lazy): Assert that lazy values have no unavailable
2352         regions.  Use value_bits_any_optimized_out.  Remove some special
2353         handling for optimized out values.
2354         * value.h: Add intro comment about <optimized out> and
2355         <unavailable>.
2356         (struct lval_funcs): Remove check_validity and check_any_valid
2357         fields.
2358         (set_value_optimized_out, value_optimized_out_const): Remove.
2359         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2360         New declarations.
2361         (value_bits_any_optimized_out): New declaration.
2362         (value_bits_valid): Delete declaration.
2363         (value_available_contents_eq): Rename to ...
2364         (value_contents_eq): ... this, and extend comments.
2365
2366 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2367
2368         Fix -fsanitize=address on unreadable inferior strings.
2369         * valprint.c (val_print_string): Fix access before BUFFER.
2370
2371 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
2372
2373         * target.c (target_struct_size): Remove.
2374         (target_struct_allocsize): Remove.
2375         (DEFAULT_ALLOCSIZE): Remove.
2376         (target_ops_p): New typedef.
2377         (DEF_VEC_P (target_ops_p)): New vector type.
2378         (target_structs): Change type to VEC (target_ops_p).
2379         (add_target_with_completer): Replace "push" code by VEC_safe_push.
2380         (find_default_run_target): Rewrite for loop following changes to
2381         target_structs.
2382
2383 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
2384
2385         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2386         Adjust code accordingly.  Adjust function description comment.
2387
2388 2014-08-19  Yao Qi  <yao@codesourcery.com>
2389
2390         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2391         types.
2392
2393 2014-08-19  Alan Modra  <amodra@gmail.com>
2394
2395         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2396         * config.in: Regenerate.
2397         * configure: Regenerate.
2398
2399 2014-08-19  Tom Tromey  <tromey@redhat.com>
2400             Gary Benson  <gbenson@redhat.com>
2401
2402         * common/common-debug.h: New file.
2403         * common/common-debug.c: Likewise.
2404         * debug.c: Likewise.
2405         * Makefile.in (SFILES): Add common/common-debug.c.
2406         (HFILES_NO_SRCDIR): Add common/common-debug.h.
2407         (COMMON_OBS): Add common-debug.o and debug.o.
2408         (common-debug.o): New rule.
2409         * common/common-defs.h: Include common-debug.h.
2410         * common/agent.c (debug_agent_printf): New function.
2411         (DEBUG_AGENT): Redefine.
2412         * nat/i386-dregs.c (debug_printf): Undefine.
2413
2414 2014-08-19  Gary Benson  <gbenson@redhat.com>
2415
2416         * common/common-defs.h: Include print-utils.h.
2417         * utils.h: Do not include print-utils.h.
2418
2419 2014-08-19  Tom Tromey  <tromey@redhat.com>
2420             Gary Benson  <gbenson@redhat.com>
2421
2422         * common/common-types.h: New file.
2423         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2424         * common/common-defs.h: Include common-types.h.
2425         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2426         (ULONGEST): Remove.
2427
2428 2014-08-19  Tom Tromey  <tromey@redhat.com>
2429             Gary Benson  <gbenson@redhat.com>
2430
2431         * common/errors.h: New file.
2432         * common/errors.c: Likewise.
2433         * Makefile.in (SFILES): Add common/errors.c.
2434         (HFILES_NO_SRCDIR): Add common/errors.h.
2435         (COMMON_OBS): Add errors.o.
2436         (errors.o): New rule.
2437         * common/common-defs.h: Include errors.h.
2438         * utils.h (perror_with_name, error, verror, warning, vwarning):
2439         Don't declare.
2440         * common/common-utils.h: (malloc_failure, internal_error):
2441         Likewise.
2442
2443 2014-08-19  Gary Benson  <gbenson@redhat.com>
2444
2445         * utils.c (internal_vproblem): Always print the message.
2446
2447 2014-08-18  Doug Evans  <dje@google.com>
2448
2449         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2450
2451 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2452
2453         * ada-typeprint.c (type_is_full_subrange_of_target_type):
2454         Return 0 if TYPE is dynamic.
2455         (print_range): Add handling of dynamic ranges.
2456
2457 2014-08-18  Keven Boell  <keven.boell@intel.com>
2458             Joel Brobecker  <brobecker@adacore.com>
2459
2460         * gdbtypes.h (struct main_type): Add field "data_location".
2461         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2462         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2463         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2464         a dynamic data location.
2465         (resolve_dynamic_type): Add DW_AT_data_location handling.
2466         (copy_recursive, copy_type): Copy the data_location information
2467         when present.
2468         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2469         * value.c (value_from_contents_and_address): Add
2470         DW_AT_data_location handling.
2471
2472 2014-08-18  Keven Boell  <keven.boell@intel.com>
2473             Joel Brobecker  <brobecker@adacore.com>
2474
2475         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2476         field "get_object_address".
2477         * dwarf2expr.c (execute_stack_op): Add handling for
2478         DW_OP_push_object_address.
2479         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2480         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2481         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2482         (dwarf_expr_get_obj_addr): New function.
2483         (dwarf_expr_ctx_funcs): Add get_object_address field.
2484         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2485         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
2486         (dwarf2_evaluate_property): Add parameter "address".  Use it.
2487         (needs_get_obj_addr): New function.
2488         (needs_frame_ctx_funcs): Add get_object_address field.
2489         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2490         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
2491         (resolve_dynamic_array): Likewise.
2492
2493 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2494
2495         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2496         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2497         fixed value for records and unions for which some GNAT encodings
2498         are present.
2499
2500 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2501
2502         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2503         rewrite to avoid "else if" and "else" constructs.  Should be
2504         a no-op in practice.
2505
2506 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2507
2508         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2509         of lexical block.
2510
2511 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2512
2513         PR c++/17132
2514         * eval.c: Update all calls to find_overload_match.
2515         * valarith.c: Likewise.
2516         (value_user_defined_cpp_op, value_user_defined_op): New
2517         argument NOSIDE.  Update all callers.
2518         * valops.c (find_overload_match): New argument NOSIDE.
2519         * value.h (find_overload_match): Update signature.
2520
2521 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2522
2523         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2524         'items' methods instead of 'iteritems' method on dictionaries.
2525
2526 2014-08-15  Doug Evans  <dje@google.com>
2527
2528         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2529         closer to use.
2530
2531 2014-08-15  Doug Evans  <dje@google.com>
2532
2533         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2534
2535 2014-08-15  Doug Evans  <dje@google.com>
2536
2537         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2538
2539 2014-08-15  Doug Evans  <dje@google.com>
2540
2541         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2542         unused.
2543
2544 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
2545
2546         * dcache.h: Include target.h, to avoid compile time warnings.
2547
2548 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
2549
2550         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
2551         frame_info" partial declaration.
2552         * gdbarch.h: Regenerate.
2553
2554 2014-08-15  Yao Qi  <yao@codesourcery.com>
2555
2556         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2557         Add parameter 'decode_for_pst_p'.  Callers update.
2558
2559 2014-08-13  Yao Qi  <yao@codesourcery.com>
2560
2561         PR build/17104
2562         * configure.ac: Use local variable 'pos'.
2563         * configure: Regenerated.
2564
2565 2014-08-11  Doug Evans  <dje@google.com>
2566
2567         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2568         message, it is redundant with "Reading symbols from ..." message.
2569
2570 2014-08-10  Doug Evans  <xdje42@gmail.com>
2571
2572         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2573
2574 2014-08-09  Yao Qi  <yao@codesourcery.com>
2575
2576         PR remote/9053
2577         * remote.c (remote_xfer_partial): Remove dead code.
2578
2579 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2580
2581         * ia64-linux-tdep.c: Include "regset.h".
2582         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2583         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2584         (ia64_linux_supply_fpregset): New function.
2585         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2586         (ia64_linux_regset_from_core_section): New function.
2587         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2588         method.
2589
2590 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2591
2592         * m68klinux-tdep.c: Include "regset.h".
2593         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2594         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2595         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2596         (m68k_linux_regset_from_core_section): New function.
2597         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2598         method.
2599
2600 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2601
2602         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2603         function.  Move logic to...
2604         (tilegx_linux_regmap): ... this new register map.
2605         (tilegx_linux_regset): Refer to register map, replace supply
2606         method by regcache_supply_regset, and add collect method.
2607         * tilegx-tdep.h (enum tilegx_regnum): New enum value
2608         TILEGX_FIRST_EASY_REGNUM.
2609
2610 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2611
2612         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2613         that calls regcache_supply_regset and handles the EPC register
2614         separately.  Move main logic to...
2615         (score7_linux_gregmap): ... this new register map.
2616         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2617         (score7_linux_gregset): Refer to register map.  Add collect method.
2618         (score7_linux_regset_from_core_section): Replace
2619         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2620         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2621         (struct regset): Delete unused forward declaraction.
2622         (struct pt_regs): Delete structure definition.
2623         (elf_gregset_t): Delete typedef.
2624
2625 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2626
2627         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2628         (nios2_core_regset): Add collect method.
2629
2630 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2631
2632         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2633         platform-independent and don't write to read-only input buffer.
2634         (m32r_linux_collect_gregset): New function.
2635         (m32r_linux_gregset): Add collect method.
2636
2637 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2638
2639         * hppa-linux-tdep.c (greg_map): Rename to...
2640         (hppa_linux_gregmap): ... this.  Also convert to
2641         regcache_map_entry format.
2642         (hppa_linux_supply_regset): Delete function.
2643         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
2644         (hppa_linux_fpregmap): ... this new register map.
2645         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2646         register map, replace supply method by regcache_supply_regset, and
2647         add collect method regcache_collect_regset.
2648
2649 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2650
2651         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2652         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2653         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2654         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2655         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2656         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2657         (frv_linux_supply_gregset): Replace main logic by call to
2658         regcache_supply_regset, but keep clearing gr32-gr63.
2659         (frv_linux_supply_fpregset): Delete function.
2660         (frv_linux_gregset): Refer to appropriate register map and add
2661         regcache_collect_regset as the collect method.
2662         (frv_linux_fpregset): Likewise.  Also exchange the supply method
2663         by regcache_supply_regset.
2664
2665 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2666
2667         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2668         by call to alpha_supply_int_regs.
2669         (alpha_linux_collect_gregset): New function.
2670         (alpha_linux_supply_fpregset): Replace logic by call to
2671         alpha_supply_fp_regs.
2672         (alpha_linux_collect_fpregset): New function.
2673         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2674
2675 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2676
2677         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2678         by call to regcache_collect_regset.
2679         (supply_gregset, supply_fpregset): Call regcache_supply_regset
2680         instead of aarch64_linux_supply_gregset/_fpregset.
2681         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2682         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2683         header file instead.
2684         (aarch64_linux_supply_gregset, supply_gregset_from_core)
2685         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2686         functions.  Move logic to ...
2687         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2688         register maps.
2689         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2690         refer to new register maps, replace *_regset_from_core by
2691         regcache_supply_regset, and also use regcache_collect_regset.
2692         * aarch64-linux-tdep.h: Include "regset.h".
2693         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2694         Delete prototypes.
2695         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2696         macros, moved from C source file.
2697         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2698         variable declarations.
2699
2700 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2701
2702         * s390-linux-nat.c: Include "regset.h".
2703         (regmap_gregset): Delete macro.
2704         (s390_64_regmap_gregset): New register map for
2705         regcache_supply/_collect_regset.
2706         (s390_64_gregset): New regset.
2707         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2708         (regmap_fpregset): Delete macro.
2709         (s390_native_supply, s390_native_collect): Delete functions.
2710         (supply_gregset, fill_gregset): Replace s390-specific regmap
2711         handling by a call to regcache_supply/_collect_regset.
2712         (supply_fpregset, fill_fpregset): Call regcache_supply/
2713         _collect_regset instead of s390_native_supply/_collect.
2714         (fetch_regset, store_regset): Likewise.  Also change the last
2715         parameter to a regset instead of a regmap.
2716         (s390_linux_fetch_inferior_registers)
2717         (390_linux_store_inferior_registers): Adjust last parameter in
2718         calls to fetch_regset and store_regset.
2719         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2720         (s390_gregmap): ... this.  Also make static const and convert to
2721         regcache_map_entry format.
2722         (s390x_regmap_gregset): Delete.
2723         (s390_regmap_fpregset): Rename to...
2724         (s390_fpregmap): ... this.  Make static const and convert to
2725         regcache_map_entry format.
2726         (s390_regmap_upper, s390_regmap_last_break)
2727         (s390x_regmap_last_break, s390_regmap_system_call)
2728         (s390_regmap_tdb): Likewise.
2729         (s390_supply_regset, s390_collect_regset): Remove functions.
2730         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2731         s390_supply_regset.
2732         (s390_gregset, s390_fpregset, s390_upper_regset)
2733         (s390_last_break_regset, s390x_last_break_regset)
2734         (s390_system_call_regset, s390_tdb_regset): Make global and
2735         replace s390_supply/_collect_regset by regcache_supply/
2736         _collect_regset.
2737         (s390x_gregset): Delete.
2738         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2739         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2740         (s390_regmap_fpregset, s390_regmap_last_break)
2741         (s390x_regmap_last_break, s390_regmap_system_call)
2742         (s390_regmap_tdb): Delete global variable declarations.
2743         (s390_gregset, s390_fpregset, s390_last_break_regset)
2744         (s390x_last_break_regset, s390_system_call_regset)
2745         (s390_tdb_regset): New global variable declarations.
2746
2747 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2748
2749         * regcache.c: Include "regset.h".
2750         (regcache_transfer_regset): New local function.
2751         (regcache_supply_regset, regcache_collect_regset): New functions.
2752         * regcache.h (struct regcache_map_entry): New structure.
2753         (REGCACHE_MAP_SKIP): New enum value.
2754         (regcache_supply_regset, regcache_collect_regset): New prototypes.
2755
2756 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2757
2758         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2759         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2760         (ppc_linux_collect_gregset ): Likewise.
2761         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2762         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2763         (ppc_collect_vrregset): Likewise.
2764         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2765         Likewise.
2766
2767 2014-08-07  Yao Qi  <yao@codesourcery.com>
2768
2769         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2770         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2771         * remote.c (remote_read_bytes): Likewise.
2772
2773 2014-08-07  Yao Qi  <yao@codesourcery.com>
2774
2775         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2776
2777 2014-08-07  Yao Qi  <yao@codesourcery.com>
2778
2779         PR remote/17230
2780         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2781         TARGET_XFER_OK instead of 0.
2782
2783 2014-08-07  Gary Benson  <gbenson@redhat.com>
2784
2785         * common/common-defs.h: Include errno.h.
2786         * defs.h: Do not include errno.h.
2787         * ada-typeprint.c: Likewise.
2788         * c-typeprint.c: Likewise.
2789         * core-regset.c: Likewise.
2790         * corefile.c: Likewise.
2791         * corelow.c: Likewise.
2792         * event-loop.c: Likewise.
2793         * f-typeprint.c: Likewise.
2794         * gnu-nat.c: Likewise.
2795         * go32-nat.c: Likewise.
2796         * i386gnu-nat.c: Likewise.
2797         * m2-typeprint.c: Likewise.
2798         * nat/linux-btrace.c: Likewise.
2799         * p-typeprint.c: Likewise.
2800         * procfs.c: Likewise.
2801         * remote-sim.c: Likewise.
2802         * rs6000-nat.c: Likewise.
2803         * target.c: Likewise.
2804         * typeprint.c: Likewise.
2805         * ui-file.c: Likewise.
2806         * valops.c: Likewise.
2807         * valprint.c: Likewise.
2808
2809 2014-08-07  Gary Benson  <gbenson@redhat.com>
2810
2811         * common/common-defs.h: Include string.h.
2812         * aarch64-tdep.c: Do not include string.h.
2813         * ada-exp.y: Likewise.
2814         * ada-lang.c: Likewise.
2815         * ada-lex.l: Likewise.
2816         * ada-typeprint.c: Likewise.
2817         * ada-valprint.c: Likewise.
2818         * aix-thread.c: Likewise.
2819         * alpha-linux-tdep.c: Likewise.
2820         * alpha-mdebug-tdep.c: Likewise.
2821         * alpha-nat.c: Likewise.
2822         * alpha-osf1-tdep.c: Likewise.
2823         * alpha-tdep.c: Likewise.
2824         * alphanbsd-tdep.c: Likewise.
2825         * amd64-dicos-tdep.c: Likewise.
2826         * amd64-linux-tdep.c: Likewise.
2827         * amd64-nat.c: Likewise.
2828         * amd64-sol2-tdep.c: Likewise.
2829         * amd64fbsd-tdep.c: Likewise.
2830         * amd64obsd-tdep.c: Likewise.
2831         * arch-utils.c: Likewise.
2832         * arm-linux-nat.c: Likewise.
2833         * arm-linux-tdep.c: Likewise.
2834         * arm-tdep.c: Likewise.
2835         * arm-wince-tdep.c: Likewise.
2836         * armbsd-tdep.c: Likewise.
2837         * armnbsd-nat.c: Likewise.
2838         * armnbsd-tdep.c: Likewise.
2839         * armobsd-tdep.c: Likewise.
2840         * avr-tdep.c: Likewise.
2841         * ax-gdb.c: Likewise.
2842         * ax-general.c: Likewise.
2843         * bcache.c: Likewise.
2844         * bfin-tdep.c: Likewise.
2845         * breakpoint.c: Likewise.
2846         * build-id.c: Likewise.
2847         * buildsym.c: Likewise.
2848         * c-exp.y: Likewise.
2849         * c-lang.c: Likewise.
2850         * c-typeprint.c: Likewise.
2851         * c-valprint.c: Likewise.
2852         * charset.c: Likewise.
2853         * cli-out.c: Likewise.
2854         * cli/cli-cmds.c: Likewise.
2855         * cli/cli-decode.c: Likewise.
2856         * cli/cli-dump.c: Likewise.
2857         * cli/cli-interp.c: Likewise.
2858         * cli/cli-logging.c: Likewise.
2859         * cli/cli-script.c: Likewise.
2860         * cli/cli-setshow.c: Likewise.
2861         * cli/cli-utils.c: Likewise.
2862         * coffread.c: Likewise.
2863         * common/agent.c: Likewise.
2864         * common/buffer.c: Likewise.
2865         * common/buffer.h: Likewise.
2866         * common/common-utils.c: Likewise.
2867         * common/filestuff.c: Likewise.
2868         * common/filestuff.c: Likewise.
2869         * common/format.c: Likewise.
2870         * common/print-utils.c: Likewise.
2871         * common/rsp-low.c: Likewise.
2872         * common/signals.c: Likewise.
2873         * common/vec.h: Likewise.
2874         * common/xml-utils.c: Likewise.
2875         * core-regset.c: Likewise.
2876         * corefile.c: Likewise.
2877         * corelow.c: Likewise.
2878         * cp-abi.c: Likewise.
2879         * cp-name-parser.y: Likewise.
2880         * cp-support.c: Likewise.
2881         * cp-valprint.c: Likewise.
2882         * cris-tdep.c: Likewise.
2883         * d-exp.y: Likewise.
2884         * darwin-nat.c: Likewise.
2885         * dbxread.c: Likewise.
2886         * dcache.c: Likewise.
2887         * demangle.c: Likewise.
2888         * dicos-tdep.c: Likewise.
2889         * disasm.c: Likewise.
2890         * doublest.c: Likewise.
2891         * dsrec.c: Likewise.
2892         * dummy-frame.c: Likewise.
2893         * dwarf2-frame.c: Likewise.
2894         * dwarf2loc.c: Likewise.
2895         * dwarf2read.c: Likewise.
2896         * elfread.c: Likewise.
2897         * environ.c: Likewise.
2898         * eval.c: Likewise.
2899         * event-loop.c: Likewise.
2900         * exceptions.c: Likewise.
2901         * exec.c: Likewise.
2902         * expprint.c: Likewise.
2903         * f-exp.y: Likewise.
2904         * f-lang.c: Likewise.
2905         * f-typeprint.c: Likewise.
2906         * f-valprint.c: Likewise.
2907         * fbsd-nat.c: Likewise.
2908         * findcmd.c: Likewise.
2909         * findvar.c: Likewise.
2910         * fork-child.c: Likewise.
2911         * frame.c: Likewise.
2912         * frv-linux-tdep.c: Likewise.
2913         * frv-tdep.c: Likewise.
2914         * gdb.c: Likewise.
2915         * gdb_bfd.c: Likewise.
2916         * gdbarch.c: Likewise.
2917         * gdbarch.sh: Likewise.
2918         * gdbtypes.c: Likewise.
2919         * gnu-nat.c: Likewise.
2920         * gnu-v2-abi.c: Likewise.
2921         * gnu-v3-abi.c: Likewise.
2922         * go-exp.y: Likewise.
2923         * go-lang.c: Likewise.
2924         * go32-nat.c: Likewise.
2925         * guile/guile.c: Likewise.
2926         * guile/scm-auto-load.c: Likewise.
2927         * hppa-hpux-tdep.c: Likewise.
2928         * hppa-linux-nat.c: Likewise.
2929         * hppanbsd-tdep.c: Likewise.
2930         * hppaobsd-tdep.c: Likewise.
2931         * i386-cygwin-tdep.c: Likewise.
2932         * i386-dicos-tdep.c: Likewise.
2933         * i386-linux-tdep.c: Likewise.
2934         * i386-nto-tdep.c: Likewise.
2935         * i386-sol2-tdep.c: Likewise.
2936         * i386-tdep.c: Likewise.
2937         * i386bsd-tdep.c: Likewise.
2938         * i386gnu-nat.c: Likewise.
2939         * i386nbsd-tdep.c: Likewise.
2940         * i386obsd-tdep.c: Likewise.
2941         * i387-tdep.c: Likewise.
2942         * ia64-libunwind-tdep.c: Likewise.
2943         * ia64-linux-nat.c: Likewise.
2944         * inf-child.c: Likewise.
2945         * inf-ptrace.c: Likewise.
2946         * inf-ttrace.c: Likewise.
2947         * infcall.c: Likewise.
2948         * infcmd.c: Likewise.
2949         * inflow.c: Likewise.
2950         * infrun.c: Likewise.
2951         * interps.c: Likewise.
2952         * iq2000-tdep.c: Likewise.
2953         * irix5-nat.c: Likewise.
2954         * jv-exp.y: Likewise.
2955         * jv-lang.c: Likewise.
2956         * jv-typeprint.c: Likewise.
2957         * jv-valprint.c: Likewise.
2958         * language.c: Likewise.
2959         * linux-fork.c: Likewise.
2960         * linux-nat.c: Likewise.
2961         * lm32-tdep.c: Likewise.
2962         * m2-exp.y: Likewise.
2963         * m2-typeprint.c: Likewise.
2964         * m32c-tdep.c: Likewise.
2965         * m32r-linux-nat.c: Likewise.
2966         * m32r-linux-tdep.c: Likewise.
2967         * m32r-rom.c: Likewise.
2968         * m32r-tdep.c: Likewise.
2969         * m68hc11-tdep.c: Likewise.
2970         * m68k-tdep.c: Likewise.
2971         * m68kbsd-tdep.c: Likewise.
2972         * m68klinux-nat.c: Likewise.
2973         * m68klinux-tdep.c: Likewise.
2974         * m88k-tdep.c: Likewise.
2975         * machoread.c: Likewise.
2976         * macrocmd.c: Likewise.
2977         * main.c: Likewise.
2978         * mdebugread.c: Likewise.
2979         * mem-break.c: Likewise.
2980         * memattr.c: Likewise.
2981         * memory-map.c: Likewise.
2982         * mep-tdep.c: Likewise.
2983         * mi/mi-cmd-break.c: Likewise.
2984         * mi/mi-cmd-disas.c: Likewise.
2985         * mi/mi-cmd-env.c: Likewise.
2986         * mi/mi-cmd-stack.c: Likewise.
2987         * mi/mi-cmd-var.c: Likewise.
2988         * mi/mi-cmds.c: Likewise.
2989         * mi/mi-console.c: Likewise.
2990         * mi/mi-getopt.c: Likewise.
2991         * mi/mi-interp.c: Likewise.
2992         * mi/mi-main.c: Likewise.
2993         * mi/mi-parse.c: Likewise.
2994         * microblaze-rom.c: Likewise.
2995         * microblaze-tdep.c: Likewise.
2996         * mingw-hdep.c: Likewise.
2997         * minidebug.c: Likewise.
2998         * minsyms.c: Likewise.
2999         * mips-irix-tdep.c: Likewise.
3000         * mips-linux-tdep.c: Likewise.
3001         * mips-tdep.c: Likewise.
3002         * mips64obsd-tdep.c: Likewise.
3003         * mipsnbsd-tdep.c: Likewise.
3004         * mipsread.c: Likewise.
3005         * mn10300-linux-tdep.c: Likewise.
3006         * mn10300-tdep.c: Likewise.
3007         * monitor.c: Likewise.
3008         * moxie-tdep.c: Likewise.
3009         * mt-tdep.c: Likewise.
3010         * nat/linux-btrace.c: Likewise.
3011         * nat/linux-osdata.c: Likewise.
3012         * nat/linux-procfs.c: Likewise.
3013         * nat/linux-ptrace.c: Likewise.
3014         * nat/linux-waitpid.c: Likewise.
3015         * nbsd-tdep.c: Likewise.
3016         * nios2-linux-tdep.c: Likewise.
3017         * nto-procfs.c: Likewise.
3018         * nto-tdep.c: Likewise.
3019         * objc-lang.c: Likewise.
3020         * objfiles.c: Likewise.
3021         * opencl-lang.c: Likewise.
3022         * osabi.c: Likewise.
3023         * osdata.c: Likewise.
3024         * p-exp.y: Likewise.
3025         * p-lang.c: Likewise.
3026         * p-typeprint.c: Likewise.
3027         * parse.c: Likewise.
3028         * posix-hdep.c: Likewise.
3029         * ppc-linux-nat.c: Likewise.
3030         * ppc-sysv-tdep.c: Likewise.
3031         * ppcfbsd-tdep.c: Likewise.
3032         * ppcnbsd-tdep.c: Likewise.
3033         * ppcobsd-tdep.c: Likewise.
3034         * printcmd.c: Likewise.
3035         * procfs.c: Likewise.
3036         * prologue-value.c: Likewise.
3037         * python/py-auto-load.c: Likewise.
3038         * python/py-gdb-readline.c: Likewise.
3039         * ravenscar-thread.c: Likewise.
3040         * regcache.c: Likewise.
3041         * registry.c: Likewise.
3042         * remote-fileio.c: Likewise.
3043         * remote-m32r-sdi.c: Likewise.
3044         * remote-mips.c: Likewise.
3045         * remote-notif.c: Likewise.
3046         * remote-sim.c: Likewise.
3047         * remote.c: Likewise.
3048         * reverse.c: Likewise.
3049         * rs6000-aix-tdep.c: Likewise.
3050         * ser-base.c: Likewise.
3051         * ser-go32.c: Likewise.
3052         * ser-mingw.c: Likewise.
3053         * ser-pipe.c: Likewise.
3054         * ser-tcp.c: Likewise.
3055         * ser-unix.c: Likewise.
3056         * serial.c: Likewise.
3057         * sh-tdep.c: Likewise.
3058         * sh64-tdep.c: Likewise.
3059         * shnbsd-tdep.c: Likewise.
3060         * skip.c: Likewise.
3061         * sol-thread.c: Likewise.
3062         * solib-dsbt.c: Likewise.
3063         * solib-frv.c: Likewise.
3064         * solib-osf.c: Likewise.
3065         * solib-som.c: Likewise.
3066         * solib-spu.c: Likewise.
3067         * solib-target.c: Likewise.
3068         * solib.c: Likewise.
3069         * somread.c: Likewise.
3070         * source.c: Likewise.
3071         * sparc-nat.c: Likewise.
3072         * sparc-sol2-tdep.c: Likewise.
3073         * sparc-tdep.c: Likewise.
3074         * sparc64-tdep.c: Likewise.
3075         * sparc64fbsd-tdep.c: Likewise.
3076         * sparc64nbsd-tdep.c: Likewise.
3077         * sparcnbsd-tdep.c: Likewise.
3078         * spu-linux-nat.c: Likewise.
3079         * spu-multiarch.c: Likewise.
3080         * spu-tdep.c: Likewise.
3081         * stabsread.c: Likewise.
3082         * stack.c: Likewise.
3083         * std-regs.c: Likewise.
3084         * symfile.c: Likewise.
3085         * symmisc.c: Likewise.
3086         * symtab.c: Likewise.
3087         * target.c: Likewise.
3088         * thread.c: Likewise.
3089         * tilegx-linux-nat.c: Likewise.
3090         * tilegx-tdep.c: Likewise.
3091         * top.c: Likewise.
3092         * tracepoint.c: Likewise.
3093         * tui/tui-command.c: Likewise.
3094         * tui/tui-data.c: Likewise.
3095         * tui/tui-disasm.c: Likewise.
3096         * tui/tui-file.c: Likewise.
3097         * tui/tui-layout.c: Likewise.
3098         * tui/tui-out.c: Likewise.
3099         * tui/tui-regs.c: Likewise.
3100         * tui/tui-source.c: Likewise.
3101         * tui/tui-stack.c: Likewise.
3102         * tui/tui-win.c: Likewise.
3103         * tui/tui-windata.c: Likewise.
3104         * tui/tui-winsource.c: Likewise.
3105         * typeprint.c: Likewise.
3106         * ui-file.c: Likewise.
3107         * ui-out.c: Likewise.
3108         * user-regs.c: Likewise.
3109         * utils.c: Likewise.
3110         * v850-tdep.c: Likewise.
3111         * valarith.c: Likewise.
3112         * valops.c: Likewise.
3113         * valprint.c: Likewise.
3114         * value.c: Likewise.
3115         * varobj.c: Likewise.
3116         * vax-tdep.c: Likewise.
3117         * vaxnbsd-tdep.c: Likewise.
3118         * vaxobsd-tdep.c: Likewise.
3119         * windows-nat.c: Likewise.
3120         * xcoffread.c: Likewise.
3121         * xml-support.c: Likewise.
3122         * xstormy16-tdep.c: Likewise.
3123         * xtensa-linux-nat.c: Likewise.
3124
3125 2014-08-07  Gary Benson  <gbenson@redhat.com>
3126
3127         * common/common-defs.h: Include gdb_assert.h.
3128         * aarch64-tdep.c: Do not include gdb_assert.h.
3129         * addrmap.c: Likewise.
3130         * aix-thread.c: Likewise.
3131         * alpha-linux-tdep.c: Likewise.
3132         * alpha-mdebug-tdep.c: Likewise.
3133         * alphanbsd-tdep.c: Likewise.
3134         * amd64-nat.c: Likewise.
3135         * amd64-tdep.c: Likewise.
3136         * amd64bsd-nat.c: Likewise.
3137         * amd64fbsd-nat.c: Likewise.
3138         * amd64fbsd-tdep.c: Likewise.
3139         * amd64nbsd-nat.c: Likewise.
3140         * amd64nbsd-tdep.c: Likewise.
3141         * amd64obsd-nat.c: Likewise.
3142         * amd64obsd-tdep.c: Likewise.
3143         * arch-utils.c: Likewise.
3144         * arm-tdep.c: Likewise.
3145         * armbsd-tdep.c: Likewise.
3146         * auxv.c: Likewise.
3147         * bcache.c: Likewise.
3148         * bfin-tdep.c: Likewise.
3149         * blockframe.c: Likewise.
3150         * breakpoint.c: Likewise.
3151         * bsd-kvm.c: Likewise.
3152         * bsd-uthread.c: Likewise.
3153         * buildsym.c: Likewise.
3154         * c-exp.y: Likewise.
3155         * c-lang.c: Likewise.
3156         * charset.c: Likewise.
3157         * cleanups.c: Likewise.
3158         * cli-out.c: Likewise.
3159         * cli/cli-decode.c: Likewise.
3160         * cli/cli-dump.c: Likewise.
3161         * cli/cli-logging.c: Likewise.
3162         * cli/cli-script.c: Likewise.
3163         * cli/cli-utils.c: Likewise.
3164         * coffread.c: Likewise.
3165         * common/common-utils.c: Likewise.
3166         * common/queue.h: Likewise.
3167         * common/signals.c: Likewise.
3168         * common/vec.h: Likewise.
3169         * complaints.c: Likewise.
3170         * completer.c: Likewise.
3171         * corelow.c: Likewise.
3172         * cp-abi.c: Likewise.
3173         * cp-name-parser.y: Likewise.
3174         * cp-namespace.c: Likewise.
3175         * cp-support.c: Likewise.
3176         * cris-tdep.c: Likewise.
3177         * dbxread.c: Likewise.
3178         * dictionary.c: Likewise.
3179         * doublest.c: Likewise.
3180         * dsrec.c: Likewise.
3181         * dummy-frame.c: Likewise.
3182         * dwarf2-frame-tailcall.c: Likewise.
3183         * dwarf2-frame.c: Likewise.
3184         * dwarf2expr.c: Likewise.
3185         * dwarf2loc.c: Likewise.
3186         * dwarf2read.c: Likewise.
3187         * eval.c: Likewise.
3188         * event-loop.c: Likewise.
3189         * exceptions.c: Likewise.
3190         * expprint.c: Likewise.
3191         * f-valprint.c: Likewise.
3192         * fbsd-nat.c: Likewise.
3193         * findvar.c: Likewise.
3194         * frame-unwind.c: Likewise.
3195         * frame.c: Likewise.
3196         * frv-tdep.c: Likewise.
3197         * gcore.c: Likewise.
3198         * gdb-dlfcn.c: Likewise.
3199         * gdb_bfd.c: Likewise.
3200         * gdbarch.c: Likewise.
3201         * gdbarch.sh: Likewise.
3202         * gdbtypes.c: Likewise.
3203         * gnu-nat.c: Likewise.
3204         * gnu-v3-abi.c: Likewise.
3205         * go-lang.c: Likewise.
3206         * guile/scm-exception.c: Likewise.
3207         * guile/scm-gsmob.c: Likewise.
3208         * guile/scm-lazy-string.c: Likewise.
3209         * guile/scm-math.c: Likewise.
3210         * guile/scm-pretty-print.c: Likewise.
3211         * guile/scm-safe-call.c: Likewise.
3212         * guile/scm-utils.c: Likewise.
3213         * guile/scm-value.c: Likewise.
3214         * h8300-tdep.c: Likewise.
3215         * hppa-hpux-nat.c: Likewise.
3216         * hppa-tdep.c: Likewise.
3217         * hppanbsd-tdep.c: Likewise.
3218         * hppaobsd-tdep.c: Likewise.
3219         * i386-darwin-nat.c: Likewise.
3220         * i386-darwin-tdep.c: Likewise.
3221         * i386-nto-tdep.c: Likewise.
3222         * i386-tdep.c: Likewise.
3223         * i386bsd-nat.c: Likewise.
3224         * i386fbsd-tdep.c: Likewise.
3225         * i386gnu-nat.c: Likewise.
3226         * i386nbsd-tdep.c: Likewise.
3227         * i386obsd-tdep.c: Likewise.
3228         * i387-tdep.c: Likewise.
3229         * ia64-libunwind-tdep.c: Likewise.
3230         * ia64-tdep.c: Likewise.
3231         * inf-ptrace.c: Likewise.
3232         * inf-ttrace.c: Likewise.
3233         * infcall.c: Likewise.
3234         * infcmd.c: Likewise.
3235         * infrun.c: Likewise.
3236         * inline-frame.c: Likewise.
3237         * interps.c: Likewise.
3238         * jv-lang.c: Likewise.
3239         * jv-typeprint.c: Likewise.
3240         * linux-fork.c: Likewise.
3241         * linux-nat.c: Likewise.
3242         * linux-thread-db.c: Likewise.
3243         * m32c-tdep.c: Likewise.
3244         * m32r-linux-nat.c: Likewise.
3245         * m32r-tdep.c: Likewise.
3246         * m68k-tdep.c: Likewise.
3247         * m68kbsd-nat.c: Likewise.
3248         * m68kbsd-tdep.c: Likewise.
3249         * m88k-tdep.c: Likewise.
3250         * machoread.c: Likewise.
3251         * macroexp.c: Likewise.
3252         * macrotab.c: Likewise.
3253         * maint.c: Likewise.
3254         * mdebugread.c: Likewise.
3255         * memory-map.c: Likewise.
3256         * mep-tdep.c: Likewise.
3257         * mi/mi-common.c: Likewise.
3258         * microblaze-tdep.c: Likewise.
3259         * mingw-hdep.c: Likewise.
3260         * mips-linux-nat.c: Likewise.
3261         * mips-linux-tdep.c: Likewise.
3262         * mips-tdep.c: Likewise.
3263         * mips64obsd-tdep.c: Likewise.
3264         * mipsnbsd-tdep.c: Likewise.
3265         * mn10300-linux-tdep.c: Likewise.
3266         * mn10300-tdep.c: Likewise.
3267         * moxie-tdep.c: Likewise.
3268         * mt-tdep.c: Likewise.
3269         * nat/linux-btrace.c: Likewise.
3270         * nat/linux-osdata.c: Likewise.
3271         * nat/linux-ptrace.c: Likewise.
3272         * nat/mips-linux-watch.c: Likewise.
3273         * nios2-linux-tdep.c: Likewise.
3274         * nios2-tdep.c: Likewise.
3275         * objc-lang.c: Likewise.
3276         * objfiles.c: Likewise.
3277         * obsd-nat.c: Likewise.
3278         * opencl-lang.c: Likewise.
3279         * osabi.c: Likewise.
3280         * parse.c: Likewise.
3281         * ppc-linux-nat.c: Likewise.
3282         * ppc-sysv-tdep.c: Likewise.
3283         * ppcfbsd-nat.c: Likewise.
3284         * ppcfbsd-tdep.c: Likewise.
3285         * ppcnbsd-nat.c: Likewise.
3286         * ppcnbsd-tdep.c: Likewise.
3287         * ppcobsd-nat.c: Likewise.
3288         * ppcobsd-tdep.c: Likewise.
3289         * printcmd.c: Likewise.
3290         * procfs.c: Likewise.
3291         * prologue-value.c: Likewise.
3292         * psymtab.c: Likewise.
3293         * python/py-lazy-string.c: Likewise.
3294         * python/py-value.c: Likewise.
3295         * regcache.c: Likewise.
3296         * reggroups.c: Likewise.
3297         * registry.c: Likewise.
3298         * remote-sim.c: Likewise.
3299         * remote.c: Likewise.
3300         * rs6000-aix-tdep.c: Likewise.
3301         * rs6000-tdep.c: Likewise.
3302         * s390-linux-tdep.c: Likewise.
3303         * score-tdep.c: Likewise.
3304         * ser-base.c: Likewise.
3305         * ser-mingw.c: Likewise.
3306         * sh-tdep.c: Likewise.
3307         * sh64-tdep.c: Likewise.
3308         * solib-darwin.c: Likewise.
3309         * solib-spu.c: Likewise.
3310         * solib-svr4.c: Likewise.
3311         * source.c: Likewise.
3312         * sparc-nat.c: Likewise.
3313         * sparc-sol2-tdep.c: Likewise.
3314         * sparc-tdep.c: Likewise.
3315         * sparc64-sol2-tdep.c: Likewise.
3316         * sparc64-tdep.c: Likewise.
3317         * sparc64fbsd-tdep.c: Likewise.
3318         * sparc64nbsd-tdep.c: Likewise.
3319         * sparc64obsd-tdep.c: Likewise.
3320         * sparcnbsd-tdep.c: Likewise.
3321         * sparcobsd-tdep.c: Likewise.
3322         * spu-multiarch.c: Likewise.
3323         * spu-tdep.c: Likewise.
3324         * stabsread.c: Likewise.
3325         * stack.c: Likewise.
3326         * symfile.c: Likewise.
3327         * symtab.c: Likewise.
3328         * target-descriptions.c: Likewise.
3329         * target-memory.c: Likewise.
3330         * target.c: Likewise.
3331         * tic6x-linux-tdep.c: Likewise.
3332         * tic6x-tdep.c: Likewise.
3333         * tilegx-linux-nat.c: Likewise.
3334         * tilegx-tdep.c: Likewise.
3335         * top.c: Likewise.
3336         * tramp-frame.c: Likewise.
3337         * tui/tui-out.c: Likewise.
3338         * tui/tui-winsource.c: Likewise.
3339         * ui-out.c: Likewise.
3340         * user-regs.c: Likewise.
3341         * utils.c: Likewise.
3342         * v850-tdep.c: Likewise.
3343         * valops.c: Likewise.
3344         * value.c: Likewise.
3345         * varobj.c: Likewise.
3346         * vax-nat.c: Likewise.
3347         * xml-syscall.c: Likewise.
3348         * xml-tdesc.c: Likewise.
3349         * xstormy16-tdep.c: Likewise.
3350         * xtensa-linux-nat.c: Likewise.
3351         * xtensa-tdep.c: Likewise.
3352
3353 2014-08-07  Gary Benson  <gbenson@redhat.com>
3354
3355         * common/common-defs.h: Include common-utils.h.
3356         * defs.h: Do not include common-utils.h.
3357         * common/gdb_assert.h: Likewise.
3358         * darwin-nat.h: Likewise.
3359         * nat/linux-btrace.c: Likewise.
3360         * target/waitstatus.h: Likewise.
3361
3362 2014-08-07  Gary Benson  <gbenson@redhat.com>
3363
3364         * common/common-defs.h: Include ptid.h.
3365         * defs.h: Do not include ptid.h.
3366         * inferior.h: Likewise.
3367         * infrun.h: Likewise.
3368         * nat/linux-btrace.h: Likewise.
3369         * nat/linux-osdata.h: Likewise.
3370         * target/waitstatus.h: Likewise.
3371
3372 2014-08-07  Gary Benson  <gbenson@redhat.com>
3373
3374         * common/common-defs.h: Include gdb_locale.h.
3375         * defs.h: Do not include gdb_locale.h.
3376
3377 2014-08-07  Gary Benson  <gbenson@redhat.com>
3378
3379         * common/common-defs.h: Include gdb/signals.h.
3380         * defs.h: Do not include gdb/signals.h.
3381
3382 2014-08-07  Gary Benson  <gbenson@redhat.com>
3383
3384         * common/common-defs.h: Include pathmax.h.
3385         * defs.h: Do not include pathmax.h.
3386
3387 2014-08-07  Gary Benson  <gbenson@redhat.com>
3388
3389         * common/common-defs.h: Include libiberty.h.
3390         * defs.h: Do not include libiberty.h.
3391         * common/queue.h: Likewise.
3392         * cp-name-parser.y: Likewise.
3393         * mi/mi-cmd-catch.c: Likewise.
3394         * python/python.c: Likewise.
3395
3396 2014-08-07  Gary Benson  <gbenson@redhat.com>
3397
3398         * common/common-defs.h: Include ansidecl.h.
3399         * defs.h: Do not include ansidecl.h.
3400         * common/buffer.h: Likewise.
3401         * common/common-utils.h: Likewise.
3402
3403 2014-08-07  Gary Benson  <gbenson@redhat.com>
3404
3405         * common/common-defs.h: Include stddef.h.
3406         * defs.h: Do not include stddef.h.
3407         * common/common-utils.h: Likewise.
3408         * amd64fbsd-nat.c: Likewise.
3409         * bcache.c: Likewise.
3410         * charset.c: Likewise.
3411         * common/buffer.h: Likewise.
3412         * common/vec.h: Likewise.
3413         * i386bsd-nat.c: Likewise.
3414         * nat/linux-btrace.h: Likewise.
3415         * ppcfbsd-nat.c: Likewise.
3416         * ppcnbsd-tdep.h: Likewise.
3417         * ppcobsd-nat.c: Likewise.
3418         * ppcobsd-tdep.h: Likewise.
3419         * python/py-gdb-readline.c: Likewise.
3420
3421 2014-08-07  Gary Benson  <gbenson@redhat.com>
3422
3423         * common/common-defs.h: Include stdarg.h.
3424         * defs.h: Do not include stdarg.h.
3425         * ada-lang.c: Likewise.
3426         * common/common-utils.h: Likewise.
3427         * guile/scm-string.c: Likewise.
3428         * guile/scm-utils.c: Likewise.
3429         * m32c-tdep.c: Likewise.
3430
3431 2014-08-07  Gary Benson  <gbenson@redhat.com>
3432
3433         * common/common-defs.h: Include stdlib.h.
3434         * defs.h: Do not include stdlib.h.
3435         * addrmap.c: Likewise.
3436         * bcache.c: Likewise.
3437         * common/buffer.c: Likewise.
3438         * common/common-utils.c: Likewise.
3439         * cp-name-parser.y: Likewise.
3440         * go32-nat.c: Likewise.
3441         * mn10300-linux-tdep.c: Likewise.
3442         * nat/linux-osdata.c: Likewise.
3443         * tui/tui.c: Likewise.
3444         * windows-nat.c: Likewise.
3445
3446 2014-08-07  Gary Benson  <gbenson@redhat.com>
3447
3448         * common/common-defs.h: Include stdio.h.
3449         * defs.h: Do not include stdio.h.
3450         * ada-lang.c: Likewise.
3451         * common/buffer.c: Likewise.
3452         * common/common-utils.c: Likewise.
3453         * cp-name-parser.y: Likewise.
3454         * gnu-nat.c: Likewise.
3455         * go32-nat.c: Likewise.
3456         * i386gnu-nat.c: Likewise.
3457         * proc-api.c: Likewise.
3458         * proc-events.c: Likewise.
3459         * proc-flags.c: Likewise.
3460         * proc-why.c: Likewise.
3461         * python/python-internal.h: Likewise.
3462         * target-memory.c: Likewise.
3463         * tui/tui-io.c: Likewise.
3464         * tui/tui.c: Likewise.
3465
3466 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
3467
3468         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3469         (scan_dyntag_auxv): Same.
3470
3471 2014-08-06  Yao Qi  <yao@codesourcery.com>
3472
3473         * amd64-linux-nat.c: Remove duplicated include
3474         "x86-linux-nat.h".
3475         * i386-linux-nat.c: Likewise.
3476
3477 2014-08-06  Yao Qi  <yao@codesourcery.com>
3478
3479         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3480         operand" with "Special opcode" in comments.
3481
3482 2014-08-05  Gary Benson  <gbenson@redhat.com>
3483
3484         * interps.c (initialize_interps): Remove prototype.
3485         (interpreter_initialized): Remove static global.
3486         (interp_add): Do not call initialize_interps.
3487         (initialize_interps): Remove function.
3488
3489 2014-08-05  Gary Benson  <gbenson@redhat.com>
3490
3491         * utils.c (vwarning): Remove spurious va_end.
3492
3493 2014-08-05  Alan Modra  <amodra@gmail.com>
3494
3495         * charset.c (convert_between_encodings): Cast result of obstack_base.
3496         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3497         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3498         (read_unwind_info): Use size_t for some locals.
3499         * jit.c (finalize_symtab): Likewise.
3500         * utils.c (hashtab_obstack_allocate): Likewise.
3501         * symmisc.c (print_objfile_statistics): Update format strings.
3502
3503 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3504
3505         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3506         (Changes in GDB 7.8): ... here.
3507
3508 2014-08-04  Tom Tromey  <tromey@redhat.com>
3509
3510         * target.c (set_targetdebug): New function.
3511         (initialize_targets): Pass set_targetdebug when creating "set
3512         debug target".
3513
3514 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3515
3516         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3517         if detecting a variable-sized field that is not the last field.
3518         Fix struct type length computation.
3519
3520 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3521
3522         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3523         Add debug trace.
3524
3525 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3526
3527         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3528         Remove "+ 8" offset in computation of CHAIN_VMA.
3529
3530 2014-07-31  Doug Evans  <dje@google.com>
3531
3532         * inflow.c (child_terminal_inferior): Add comment.
3533         (child_terminal_ours_for_output): Add comment.
3534         (child_terminal_ours): Add comment.
3535         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3536         (linux_nat_terminal_ours): Add comment.
3537
3538 2014-07-31  Gary Benson  <gbenson@redhat.com>
3539
3540         * common/btrace-common.h: Do not include defs.h or server.h.
3541         * nat/mips-linux-watch.h: Likewise.
3542         * gdb-dlfcn.h: Do not include defs.h.
3543         * tracefile.h: Likewise.
3544
3545 2014-07-30  Roland McGrath  <mcgrathr@google.com>
3546
3547         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3548
3549 2014-07-30  Tom Tromey  <tromey@redhat.com>
3550
3551         * bsd-kvm.c (bsd_kvm_open): Constify.
3552         * corelow.c (core_open): Constify.
3553         * ctf.c (ctf_open): Constify.
3554         * dbug-rom.c (dbug_open): Constify.
3555         * exec.c (exec_open): Constify.
3556         * m32r-rom.c (m32r_open, mon2000_open): Constify.
3557         * microblaze-rom.c (picobug_open): Constify.
3558         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3559         Constify.
3560         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3561         * record-btrace.c (record_btrace_open): Constify.
3562         * record-full.c (record_full_core_open_1, record_full_open_1)
3563         (record_full_open): Constify.
3564         * remote-m32r-sdi.c (m32r_open): Constify.
3565         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3566         (rockhopper_open, lsi_open): Constify.
3567         * remote-sim.c (gdbsim_open): Constify.
3568         * remote.c (remote_open, extended_remote_open, remote_open_1):
3569         Constify.
3570         * target.h (struct target_ops) <to_open>: Make "arg" const.
3571         * tracefile-tfile.c (tfile_open): Constify.
3572
3573 2014-07-30  Tom Tromey  <tromey@redhat.com>
3574
3575         * breakpoint.c (map_breakpoint_numbers): Update.
3576         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
3577         (get_number_const): New function.
3578         (get_number): Rewrite using get_number_const.
3579         (init_number_or_range): Make "string" const.
3580         (number_is_in_list): Make "list" const.
3581         * cli/cli-utils.h (get_number_const): Declare.
3582         (struct get_number_or_range_state) <string, end_ptr>: Now const.
3583         (init_number_or_range, number_is_in_list): Update.
3584         * printcmd.c (map_display_numbers): Update.
3585         * value.c (value_from_history_ref): Constify.
3586         * value.h (value_from_history_ref): Update.
3587
3588 2014-07-30  Tom Tromey  <tromey@redhat.com>
3589
3590         * corefile.c (hook_type, call_extra_exec_file_hooks)
3591         (specify_exec_file_hook): Constify.
3592         * exec.c (exec_file_attach): Make "filename" const.
3593         * gdbcore.h (deprecated_exec_file_display_hook)
3594         (specify_exec_file_hook, exec_file_attach): Constify.
3595         * main.c (captured_main): Use catch_command_errors_const.
3596
3597 2014-07-30  Tom Tromey  <tromey@redhat.com>
3598
3599         * target.c (open_target): New function.
3600         (add_target_with_completer, add_deprecated_target_alias): Use
3601         set_cmd_sfunc, set_cmd_context.
3602         (debug_to_open): Remove.
3603         (setup_target_debug): Update.
3604
3605 2014-07-30  Yao Qi  <yao@codesourcery.com>
3606
3607         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3608         comments.
3609         * parse.c (exp_iterate): Update comments.
3610
3611 2014-07-30  Gary Benson  <gbenson@redhat.com>
3612
3613         * common/common-defs.h: New file.
3614         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3615         * defs.h: Include common-defs.h.
3616         Do not include config.h or build-gnulib/config.h.
3617
3618 2014-07-30  Gary Benson  <gbenson@redhat.com>
3619
3620         * common/common-utils.h: Do not include config.h.
3621         * nat/linux-btrace.h: Likewise.
3622
3623 2014-07-30  Gary Benson  <gbenson@redhat.com>
3624
3625         * btrace.c: Include defs.h.
3626         * common/ptid.c: Include defs.h or server.h as appropriate.
3627         * nat/mips-linux-watch.c: Likewise.
3628
3629 2014-07-29  Tom Tromey  <tromey@redhat.com>
3630
3631         * target.c (target_is_pushed): Simplify.
3632
3633 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
3634
3635         GDB 7.8 released.
3636
3637 2014-07-29  Yao Qi  <yao@codesourcery.com>
3638
3639         PR gdb/17206
3640         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3641
3642 2014-07-28  Doug Evans  <xdje42@gmail.com>
3643
3644         PR guile/17203
3645         * guile/scm-param.c (pascm_parameter_defined_p): New function.
3646         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
3647         parameters.
3648
3649 2014-07-28  Will Newton  <will.newton@linaro.org>
3650
3651         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3652         (THUMB2_SET_R7_SIGRETURN2): Likewise.
3653         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3654         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3655         (THUMB2_EABI_SYSCALL): Likewise.
3656         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3657         struct tramp_frame.
3658         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3659         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3660
3661 2014-07-27  Doug Evans  <xdje42@gmail.com>
3662
3663         * guile/scm-param.c (pascm_print_param_smob): Fix output.
3664
3665 2014-07-27  Doug Evans  <xdje42@gmail.com>
3666
3667         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3668
3669 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3670             Doug Evans  <xdje42@gmail.com>
3671
3672         PR guile/17146
3673         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3674         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3675         * configure.ac: Try to use guild to compile an scm file, if it fails
3676         then disable guile support.
3677         * configure: Regenerate.
3678         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3679         GUILE_FILE_LIST.
3680         (GUILE_COMPILED_FILES): New variable.
3681         (GUILE_FILES) Update.
3682         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3683         (stamp-guile): Compile scm files.
3684         * guile/guile.c (boot_guile_support): New function.
3685         (standard_throw_args_p): New function.
3686         (print_standard_throw_error, print_throw_error): New functions.
3687         (handle_boot_error): New function.
3688         (initialize_scheme_side): Rewrite to call boot_guile_support.
3689         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
3690         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3691
3692 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3693             Doug Evans  <xdje42@gmail.com>
3694
3695         PR guile/17146
3696         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3697         * guile/lib/gdb/support.scm: New file.
3698         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3699         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3700         All uses updated.
3701         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3702         All uses updated.
3703         (%assert-type): Ditto, and renamed to assert-type.
3704         (%exception-print-style): Delete.
3705
3706 2014-07-26  Doug Evans  <xdje42@gmail.com>
3707
3708         PR build/17105
3709         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3710         * configure: Regenerate.
3711         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3712         PYTHON_FILES.
3713         (PYTHON_FILES): New variable.
3714         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3715         (GUILE_FILES): New variable.
3716         (stamp-python, install-python, uninstall-python): Handle empty
3717         file list.
3718         (stamp-guile, install-guile, uninstall-guile): Ditto.
3719
3720 2014-07-26  Doug Evans  <xdje42@gmail.com>
3721
3722         PR guile/17177
3723         * guile/lib/gdb.scm (pretty-printers): Export.
3724         (set-pretty-printers!): Export.
3725         * guile/lib/gdb/printing.scm (gdb module): Update.
3726         (prepend-pretty-printer!, append-pretty-printer!): Update.
3727         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3728         (pretty_printer_list_var): Delete.
3729         (pretty_printer_list): New static global.
3730         (gdbscm_pretty_printers): New function.
3731         (gdbscm_set_pretty_printers_x): New function.
3732         (ppscm_find_pretty_printer_from_gdb): Update.
3733         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3734         (gdbscm_initialize_pretty_printers): Update.
3735
3736 2014-07-26  Doug Evans  <xdje42@gmail.com>
3737
3738         PR 17185
3739         * configure.ac: Add check for header gc/gc.h.
3740         Add check for function setenv.
3741         * configure: Regenerate.
3742         * config.in: Regenerate.
3743         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3744
3745 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
3746
3747         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3748         variation in gdbarch matching.
3749
3750 2014-07-25  Tom Tromey  <tromey@redhat.com>
3751
3752         * exec.c (using_exec_ops): Remove.
3753         (exec_close_1): Update.  Remove extraneous block, reindent.
3754         (add_target_sections): Use target_is_pushed.
3755
3756 2014-07-25  Pedro Alves  <palves@redhat.com>
3757
3758         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3759         * monitor.c (monitor_create_inferior): Likewise.
3760         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3761         * remote-sim.c (gdbsim_create_inferior): Likewise.
3762         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3763         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3764         * windows-nat.c (do_initial_windows_stuff): Likewise.
3765
3766 2014-07-25  Pedro Alves  <palves@redhat.com>
3767
3768         * NEWS: Mention signal passing and "signal" command changes.
3769         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3770         comment.
3771         * breakpoint.c (until_break_command): Adjust clear_proceed_status
3772         call.
3773         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3774         * infcmd.c (proceed_thread_callback, continue_1, step_once)
3775         (jump_command): Adjust clear_proceed_status call.
3776         (signal_command): Warn if other thread that are resumed have
3777         signals that will be delivered.  Adjust clear_proceed_status call.
3778         (until_next_command, finish_command)
3779         (proceed_after_attach_callback, attach_command_post_wait)
3780         (attach_command): Adjust clear_proceed_status call.
3781         * infrun.c (proceed_after_vfork_done): Likewise.
3782         (proceed_after_attach_callback): Adjust comment.
3783         (clear_proceed_status_thread): Clear stop_signal if not in pass
3784         state.
3785         (clear_proceed_status_callback): Delete.
3786         (clear_proceed_status): New 'step' parameter.  Only clear the
3787         proceed status of threads the command being prepared is about to
3788         resume.
3789         (proceed): If passed in an explicit signal, override stop_signal
3790         with it.  Don't pass the last stop signal to the thread we're
3791         resuming.
3792         (init_wait_for_inferior): Adjust clear_proceed_status call.
3793         (switch_back_to_stepped_thread): Clear the signal if it should not
3794         be passed.
3795         * infrun.h (clear_proceed_status): New 'step' parameter.
3796         (user_visible_resume_ptid): Add comment.
3797         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3798         signal is in pass state.
3799         * remote.c (append_pending_thread_resumptions): Likewise.
3800         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3801
3802 2014-07-25  Tom Tromey  <tromey@redhat.com>
3803
3804         * target.h (target_stopped_data_address)
3805         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
3806         parentheses.
3807
3808 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
3809
3810         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3811         comments.
3812         (avr_pointer_to_address): Likewise.
3813
3814 2014-07-24  Tom Tromey  <tromey@redhat.com>
3815
3816         * monitor.c (compile_pattern): Update.
3817         * target.h (struct target_ops) <to_shortname, to_longname,
3818         to_doc>: Now const.
3819
3820 2014-07-24  Tom Tromey  <tromey@redhat.com>
3821
3822         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3823         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3824         (add_info_alias, add_com): Make "doc" const.
3825         (print_doc_line): Make "str" const.
3826         (delete_cmd): Update.
3827         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3828         (print_doc_line): Update.
3829         * cli/cli-script.c (document_command): Update.
3830         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3831         (add_com, add_info, add_info_alias): Update.
3832         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3833         * python/py-cmd.c (cmdpy_destroyer): Update.
3834
3835 2014-07-24  Tom Tromey  <tromey@redhat.com>
3836
3837         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3838         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3839         (help_cmd_list): Constify.
3840         (lookup_cmd): Update.
3841         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3842         const.
3843         (help_cmd_list, apropos_cmd): Update.
3844         * cli/cli-script.c (show_user): Update.
3845         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3846         * cli/cli-setshow.h (cmd_show_list): Update.
3847         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3848         (cmd_show_list): Update.
3849         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3850         * python/py-cmd.c (cmdpy_destroyer): Update.
3851
3852 2014-07-24  Tom Tromey  <tromey@redhat.com>
3853
3854         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3855         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3856         const.
3857         * command.h (deprecate_cmd): Update.
3858         * maint.c (maintenance_do_deprecate): Add casts.
3859
3860 2014-07-24  Tom Tromey  <tromey@redhat.com>
3861
3862         * cli/cli-decode.c (help_cmd): Make parameter "const".
3863         * cli/cli-decode.h (help_cmd): Update.
3864
3865 2014-07-24  Tom Tromey  <tromey@redhat.com>
3866
3867         * stack.c (up_silently_base, down_silently_base): Make argument
3868         const.
3869
3870 2014-07-24  Tom Tromey  <tromey@redhat.com>
3871
3872         * solib.c (solib_add): Make "pattern" const.
3873         * solib.h (solib_add): Update.
3874
3875 2014-07-24  Tom Tromey  <tromey@redhat.com>
3876
3877         * remote.c (remote_serial_open, print_packet, putpkt)
3878         (putpkt_binary): Constify.
3879         * remote.h (putpkt): Update.
3880
3881 2014-07-24  Tom Tromey  <tromey@redhat.com>
3882
3883         * monitor.c (monitor_open): Make "args" const.
3884         * monitor.h (monitor_open): Update.
3885
3886 2014-07-24  Tom Tromey  <tromey@redhat.com>
3887
3888         * maint.c (match_bfd_flags): Make "string" const.
3889         (print_bfd_section_info): Remove casts.
3890         (print_objfile_section_info): Make "string" const.
3891
3892 2014-07-24  Tom Tromey  <tromey@redhat.com>
3893
3894         * inf-child.c (inf_child_open_target): Make "arg" const.
3895         * inf-child.h (inf_child_open_target): Update.
3896
3897 2014-07-24  Tom Tromey  <tromey@redhat.com>
3898
3899         * environ.c (unset_in_environ): Make "var" const.
3900         * environ.h (unset_in_environ): Update.
3901
3902 2014-07-24  Tom Tromey  <tromey@redhat.com>
3903
3904         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3905         Make "cmd" const.
3906         (scan_filename_with_cleanup): Likewise.
3907         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3908         Make arguments const.
3909         (restore_command): Update.
3910
3911 2014-07-24  Pedro Alves  <palves@redhat.com>
3912
3913         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3914
3915 2014-07-24  Tom Tromey  <tromey@redhat.com>
3916             Gary Benson  <gbenson@redhat.com>
3917
3918         * nat/linux-ptrace.c (additional_flags): New global.
3919         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3920         additional_flags; don't check GDBSERVER.
3921         (linux_ptrace_set_additional_flags): New function.
3922         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3923         Declare.
3924         * linux-nat.c (_initialize_linux_nat): Call
3925         linux_ptrace_set_additional_flags.
3926
3927 2014-07-24  Tom Tromey  <tromey@redhat.com>
3928
3929         * make-target-delegates (munge_type, write_debugmethod): New
3930         functions.
3931         (debug_names): New global.
3932         ($TARGET_DEBUG_PRINTER): New global.
3933         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3934         name.
3935         Write debug methods.  Generate init_debug_target.
3936         * target-debug.h: New file.
3937         * target-delegates.c: Rebuild.
3938         * target.c: Include target-debug.h.
3939         (debug_target): Hoist definition.
3940         (target_kill, target_get_section_table, target_memory_map)
3941         (target_flash_erase, target_flash_done, target_detach)
3942         (target_disconnect, target_wait, target_resume)
3943         (target_pass_signals, target_program_signals, target_follow_fork)
3944         (target_mourn_inferior, target_search_memory)
3945         (target_thread_address_space, target_close)
3946         (target_find_new_threads, target_core_of_thread)
3947         (target_verify_memory, target_insert_mask_watchpoint)
3948         (target_remove_mask_watchpoint): Remove targetdebug code.
3949         (debug_to_post_attach, debug_to_prepare_to_store)
3950         (debug_to_files_info, debug_to_insert_breakpoint)
3951         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3952         (debug_to_region_ok_for_hw_watchpoint)
3953         (debug_to_can_accel_watchpoint_condition)
3954         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3955         (debug_to_watchpoint_addr_within_range)
3956         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3957         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3958         (debug_to_terminal_init, debug_to_terminal_inferior)
3959         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3960         (debug_to_terminal_save_ours, debug_to_terminal_info)
3961         (debug_to_load, debug_to_post_startup_inferior)
3962         (debug_to_insert_fork_catchpoint)
3963         (debug_to_remove_fork_catchpoint)
3964         (debug_to_insert_vfork_catchpoint)
3965         (debug_to_remove_vfork_catchpoint)
3966         (debug_to_insert_exec_catchpoint)
3967         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3968         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3969         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3970         (setup_target_debug): Call init_debug_target.
3971         * target.h (TARGET_DEBUG_PRINTER): New macro.
3972         (struct target_ops) <to_resume, to_wait, to_pass_signals,
3973         to_program_signals>: Use TARGET_DEBUG_PRINTER.
3974
3975 2014-07-24  Gary Benson  <gbenson@redhat.com>
3976
3977         * exceptions.h (throw_vfatal): Renamed to...
3978         (throw_vquit): New declaration.
3979         (throw_quit): Likewise.
3980         * exceptions.c (throw_vfatal): Renamed to...
3981         (throw_vquit): New function.
3982         (throw_quit): Likewise.
3983         (throw_error): Call throw_verror rather than throw_it.
3984         * utils.h (vfatal): Removed.
3985         (fatal): Likewise.
3986         * utils.c (vfatal): Removed.
3987         (fatal): Likewise.
3988         (internal_verror): Replaced call to fatal with call to throw_quit.
3989         (quit): Replaced calls to fatal with calls to throw_quit.
3990
3991 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
3992
3993         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3994         target_read_code.
3995
3996 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
3997
3998         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3999         less than zero in conditional expression.
4000
4001 2014-07-23  Tom Tromey  <tromey@redhat.com>
4002
4003         * make-target-delegates ($ARGS_PART): Match trailing close paren.
4004         ($INTRO_PART): Don't match whitespace.
4005         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
4006         argument matching.
4007         ($METHOD): Add $METHOD_TRAILER.
4008         (trim): Rewrite.
4009         (scan_target_h): New sub.
4010         Change main loop not to collect state.
4011         * target-delegates.c: Rebuild.
4012
4013 2014-07-23  Gary Benson  <gbenson@redhat.com>
4014
4015         * cp-support.c (gdb_demangle): Fix build on systems without
4016         sigaltstack.
4017
4018 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4019
4020         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4021         for reference entry value target data value.
4022
4023 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4024
4025         * stack.c (read_frame_arg): Verify value_optimized_out before calling
4026         value_available_contents_eq.
4027
4028 2014-07-22  Pedro Alves  <palves@redhat.com>
4029
4030         * value.c (allocate_optimized_out_value): Don't mark value as
4031         non-lazy.
4032
4033 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
4034
4035         * MAINTAINERS (Write After Approval): Update my email address.
4036
4037 2014-07-20  Doug Evans  <dje@google.com>
4038
4039         PR server/17147
4040         * remote.c (putpkt_binary): Add text to error message.
4041
4042 2014-07-20  Yao Qi  <yao@codesourcery.com>
4043
4044         * eval.c: Remove "Chill" from comments.
4045         * gdbtypes.h: Likewise.
4046         * symtab.h: Likewise.
4047
4048 2014-07-20  Yao Qi  <yao@codesourcery.com>
4049
4050         * std-operator.def: Update comments to TERNOP_SLICE.
4051
4052 2014-07-20  Yao Qi  <yao@codesourcery.com>
4053
4054         * std-operator.def: Remove BINOP_RANGE.
4055         * breakpoint.c (watchpoint_exp_is_const): Update.
4056         * expprint.c (dump_subexp_body_standard): Likewise.
4057         * eval.c (init_array_element): Remove dead code.
4058         (evaluate_subexp_standard): Likewise.
4059
4060 2014-07-20  Yao Qi  <yao@codesourcery.com>
4061
4062         * std-operator.def: Remove BINOP_IN.
4063         * breakpoint.c (watchpoint_exp_is_const): Update.
4064         * eval.c (evaluate_subexp_standard): Likewise.
4065         * expprint.c (dump_subexp_body_standard): Likewise.
4066
4067 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
4068
4069         * microblaze-tdep.c (microblaze_register_names): Add
4070         the rshr and rslr register names.
4071         (microblaze_gdbarch_init): Use of tdesc_has_registers.
4072         Use of tdesc_find_feature. Use of tdesc_data_alloc.
4073         Use of tdesc_numbered_register. Use of
4074         microblaze_register_g_packet_guesses. Use of
4075         tdesc_use_registers. Use of set_gdbarch_register_type.
4076         (microblaze_register_g_packet_guesses): New.
4077         * microblaze-tdep.h (microblaze_reg_num): Add
4078         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4079         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4080         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4081         * features/microblaze-core.xml: New file.
4082         * features/microblaze-stack-protect.xml: New file.
4083         * features/microblaze-with-stack-protect.c: New file.
4084         * features/microblaze-with-stack-protect.xml: New file.
4085         * features/microblaze.xml: New file.
4086         * features/microblaze.c: New file.
4087         * features/Makefile (microblaze-with-stack-protect): Add
4088         microblaze-with-stack-protect microblaze and microblaze-expedite.
4089         * regformats/microblaze-with-stack-protect.dat: New file.
4090         * regformats/microblaze.dat: New file.
4091         * doc/gdb.texinfo (MicroBlaze Features): Added.
4092
4093 2014-07-18  Tom Tromey  <tromey@redhat.com>
4094
4095         * exec.c (exec_ops): Now static.
4096         * exec.h (exec_ops): Don't declare.
4097
4098 2014-07-18  Tom Tromey  <tromey@redhat.com>
4099
4100         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4101         to find_target_beneath.
4102         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4103         find_target_beneath.
4104         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4105
4106 2014-07-18  Tom Tromey  <tromey@redhat.com>
4107
4108         PR gdb/17130:
4109         * utils.c (quit): Use target_supports_terminal_ours.
4110         * target.h (target_supports_terminal_ours): Declare.
4111         * target.c (target_supports_delete_record): Don't check
4112         to_delete_record against NULL.
4113         (target_supports_terminal_ours): New function.
4114
4115 2014-07-18  Tom Tromey  <tromey@redhat.com>
4116
4117         PR gdb/17130:
4118         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4119         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4120         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4121         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4122         * windows-nat.c (windows_xfer_partial): Always delegate.
4123         * record-btrace.c (record_btrace_xfer_partial): Simplify
4124         delegation.
4125         (record_btrace_fetch_registers, record_btrace_store_registers)
4126         (record_btrace_prepare_to_store, record_btrace_resume)
4127         (record_btrace_wait, record_btrace_find_new_threads)
4128         (record_btrace_thread_alive): Likewise.
4129         * procfs.c (procfs_xfer_partial): Always delegate.
4130         * corelow.c (core_xfer_partial): Always delegate.
4131         * sol-thread.c (sol_find_new_threads): Simplify delegation.
4132
4133 2014-07-18  Tom Tromey  <tromey@redhat.com>
4134
4135         * exec.c (exec_make_note_section): Move earlier.
4136
4137 2014-07-17  Doug Evans  <dje@google.com>
4138
4139         PR gdb/17170
4140         * maint.c (count_symtabs_and_blocks): Handle NULL
4141         current_program_space.
4142         (report_command_stats): Check global enabled flag in addition to
4143         recorded enabled flag.
4144         (make_command_stats_cleanup): Handle msg_type == 0, startup.
4145
4146 2014-07-16  Pedro Alves  <palves@redhat.com>
4147
4148         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4149
4150 2014-07-16  Tom Tromey  <tromey@redhat.com>
4151
4152         * target.h (struct target_ops) <to_delete_record>: Reformat
4153         comment.
4154
4155 2014-07-16  Tom Tromey  <tromey@redhat.com>
4156
4157         * target-delegates.c: Rebuild.
4158
4159 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
4160
4161         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4162         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4163         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4164         (avr_pointer_to_address): Likewise.
4165         (avr_address_class_type_flags): New function.
4166         (avr_address_class_type_flags_to_name): Likewise.
4167         (avr_address_class_name_to_type_flags): Likewise.
4168         (avr_gdbarch_init): Set address_class_type_flags,
4169         address_class_type_flags_to_name and
4170         address_class_name_to_type_flags.
4171
4172 2014-07-15  Pedro Alves  <palves@redhat.com>
4173
4174         * linux-nat.c (kill_callback): Save errno and work with saved
4175         copy.
4176
4177 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
4178
4179         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4180
4181 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4182
4183         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4184         breakpoint support correctly.
4185
4186 2014-07-14  Pedro Alves  <palves@redhat.com>
4187
4188         * utils.c (prompt_for_continue): Call target_terminal_ours.
4189
4190 2014-07-14  Pedro Alves  <palves@redhat.com>
4191
4192         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4193         catch_errors.  Don't re-enable stdin or notify observers where,
4194         and rethrow error.
4195         (fetch_inferior_event_wrapper): Delete.
4196
4197 2014-07-14  Pedro Alves  <palves@redhat.com>
4198
4199         PR gdb/17072
4200         * top.c: Include "inf-loop.h".
4201         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4202         field.
4203         (gdb_readline_wrapper_cleanup): Make the target async again, if it
4204         was async before.
4205         (gdb_readline_wrapper): Store whether the target is async, and
4206         make it sync.
4207
4208 2014-07-14  Pedro Alves  <palves@redhat.com>
4209
4210         PR gdb/17072
4211         * top.c (gdb_readline_wrapper_line): Tweak comment.
4212         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4213         the input handler callback.
4214
4215 2014-07-14  Pedro Alves  <palves@redhat.com>
4216
4217         PR gdb/17072
4218         * main.c: Include event-top.h.
4219         (handle_command_errors): New function.
4220         (catch_command_errors, catch_command_errors_const): Use it.
4221
4222 2014-07-14  Pedro Alves  <palves@redhat.com>
4223
4224         * exceptions.c (catch_command_errors, catch_command_errors_const):
4225         Moved to main.c.
4226         * exceptions.h (catch_command_errors_ftype)
4227         (catch_command_errors_const_ftype): Moved to main.c.
4228         (catch_command_errors, catch_command_errors_const): Delete
4229         declarations.
4230         * main.c (catch_command_errors_ftype)
4231         (catch_command_errors_const_ftype): Moved here from exceptions.h.
4232         (catch_command_errors, catch_command_errors_const)): Moved here
4233         from exceptions.c and make static.
4234
4235 2014-07-14  Pedro Alves  <palves@redhat.com>
4236
4237         * exceptions.c (print_any_exception): Delete.
4238         (catch_exceptions_with_msg): Use exception_print instead of
4239         print_any_exception.
4240         (catch_errors): Use exception_fprintf instead of
4241         print_any_exception.
4242         (catch_command_errors, catch_command_errors_const): Use
4243         exception_print instead of print_any_exception.
4244
4245 2014-07-14  Pedro Alves  <palves@redhat.com>
4246
4247         * infcall.c (run_inferior_call): Set 'sync_execution' while
4248         running the inferior call.
4249
4250 2014-07-14  Pedro Alves  <palves@redhat.com>
4251
4252         * value.c (value_contents_equal): Delete function.
4253         * value.h (value_contents_equal): Delete declaration.
4254
4255 2014-07-14  Tom Tromey  <tromey@redhat.com>
4256
4257         PR exp/17106:
4258         * gdbtypes.c (is_dynamic_type_internal): New function, from
4259         is_dynamic_type.
4260         (is_dynamic_type): Rewrite.
4261         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4262         (resolve_dynamic_struct): Likewise.
4263         (resolve_dynamic_type_internal): New function, from
4264         resolve_dynamic_type.
4265         (resolve_dynamic_type): Rewrite.
4266
4267 2014-07-14  Tom Tromey  <tromey@redhat.com>
4268
4269         * target.c (target_require_runnable): Also check record_stratum.
4270         Update comment.
4271
4272 2014-07-11  Yao Qi  <yao@codesourcery.com>
4273
4274         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4275         thumb_instruction_restores_sp return true.
4276
4277 2014-07-11  Yao Qi  <yao@codesourcery.com>
4278
4279         * arm-tdep.c (thumb_instruction_restores_sp): New function.
4280         (thumb_in_function_epilogue_p): Call
4281         thumb_instruction_restores_sp.
4282
4283 2014-07-11  Yao Qi  <yao@codesourcery.com>
4284
4285         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4286         'add sp, #imm'.
4287         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4288
4289 2014-07-11  Gary Benson  <gbenson@redhat.com>
4290
4291         * amd64-linux-nat.c (gdbcore.h): Remove include.
4292         (regset.h): Likewise.
4293         (nat/linux-btrace.h): Likewise.
4294         (btrace.h): Likewise.
4295         (gdb_assert.h): Likewise.
4296         (string.h): Likewise.
4297         (sys/uio.h): Likewise.
4298         (sys/debugreg.h): Likewise.
4299         (sys/syscall.h): Likewise.
4300         (sys/procfs.h): Likewise.
4301         (sys/user.h): Likewise.
4302         (asm/ptrace.h): Likewise.
4303         (i386-nat.h): Likewise.
4304         * i386-linux-nat.c (i386-nat.h): Likewise.
4305         (regset.h): Likewise.
4306         (target.h): Likewise.
4307         (linux-nat.h): Likewise.
4308         (nat/linux-btrace.h): Likewise.
4309         (btrace.h): Likewise.
4310         (gdb_assert.h): Likewise.
4311         (string.h): Likewise.
4312         (sys/uio.h): Likewise.
4313         (sys/user.h): Likewise.
4314         (sys/procfs.h): Likewise.
4315         (sys/reg.h): Likewise.
4316         (sys/debugreg.h): Likewise.
4317         (ORIG_EAX): Remove definition.
4318
4319 2014-07-11  Gary Benson  <gbenson@redhat.com>
4320
4321         * i386-linux-nat.h: New file.
4322         * x86-linux-nat.h: Likewise.
4323         * x86-linux-nat.c: Likewise.
4324         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4325         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4326         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4327         * amd64-linux-nat.c (x86-linux-nat.h): New include.
4328         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4329         (PTRACE_SETREGSET): Likewise.
4330         (arch_lwp_info): Now in x86-linux-nat.c.
4331         (have_ptrace_getregset): Now in x86-linux-nat.h.
4332         (x86_linux_dr_get): Now in x86-linux-nat.c.
4333         (x86_linux_dr_set): Likewise.
4334         (x86_linux_dr_get_addr): Likewise.
4335         (x86_linux_dr_get_control): Likewise.
4336         (x86_linux_dr_get_status): Likewise.
4337         (update_debug_registers_callback): Likewise.
4338         (x86_linux_dr_set_control): Likewise.
4339         (x86_linux_dr_set_addr): Likewise.
4340         (x86_linux_prepare_to_resume): Likewise.
4341         (x86_linux_new_thread): Likewise.
4342         (x86_linux_new_fork): Likewise.
4343         (x86_linux_get_thread_area): Likewise.
4344         (super_post_startup_inferior): Likewise.
4345         (x86_linux_child_post_startup_inferior): Likewise.
4346         (AMD64_LINUX_USER64_CS): Likewise.
4347         (AMD64_LINUX_X32_DS): Likewise.
4348         (x86_linux_read_description): Likewise.
4349         (x86_linux_enable_btrace): Likewise.
4350         (x86_linux_disable_btrace): Likewise.
4351         (x86_linux_teardown_btrace): Likewise.
4352         (x86_linux_read_btrace): Likewise.
4353         (x86_linux_create_target): Likewise.
4354         (x86_linux_add_target): Likewise.
4355         * i386-linux-nat.c (x86-linux-nat.h): New include.
4356         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4357         (PTRACE_SETREGSET): Likewise.
4358         (arch_lwp_info): Now in x86-linux-nat.c.
4359         (have_ptrace_getregset): Now in x86-linux-nat.h.
4360         (x86_linux_dr_get): Now in x86-linux-nat.c.
4361         (x86_linux_dr_set): Likewise.
4362         (x86_linux_dr_get_addr): Likewise.
4363         (x86_linux_dr_get_control): Likewise.
4364         (x86_linux_dr_get_status): Likewise.
4365         (update_debug_registers_callback): Likewise.
4366         (x86_linux_dr_set_control): Likewise.
4367         (x86_linux_dr_set_addr): Likewise.
4368         (x86_linux_prepare_to_resume): Likewise.
4369         (x86_linux_new_thread): Likewise.
4370         (x86_linux_new_fork): Likewise.
4371         (x86_linux_get_thread_area): Likewise.
4372         (super_post_startup_inferior): Likewise.
4373         (x86_linux_child_post_startup_inferior): Likewise.
4374         (AMD64_LINUX_USER64_CS): Likewise.
4375         (AMD64_LINUX_X32_DS): Likewise.
4376         (x86_linux_read_description): Likewise.
4377         (x86_linux_enable_btrace): Likewise.
4378         (x86_linux_disable_btrace): Likewise.
4379         (x86_linux_teardown_btrace): Likewise.
4380         (x86_linux_read_btrace): Likewise.
4381         (x86_linux_create_target): Likewise.
4382         (x86_linux_add_target): Likewise.
4383
4384 2014-07-11  Gary Benson  <gbenson@redhat.com>
4385
4386         * amd64-linux-nat.c: Comment and whitespace changes.
4387         * i386-linux-nat.c: Comment and whitespace changes.
4388
4389 2014-07-11  Gary Benson  <gbenson@redhat.com>
4390
4391         * amd64-linux-nat.c (x86_linux_create_target): New function.
4392         (x86_linux_add_target): Likewise.
4393         (_initialize_amd64_linux_nat): Delegate to the above new functions.
4394         * i386-linux-nat.c (x86_linux_create_target): New function.
4395         (x86_linux_add_target): Likewise.
4396         (_initialize_i386_linux_nat): Delegate to the above new functions.
4397
4398 2014-07-11  Gary Benson  <gbenson@redhat.com>
4399
4400         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4401         (ps_get_thread_area): Delegate to the above in 32-bit mode.
4402         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4403         (ps_get_thread_area): Delegate to the above.
4404
4405 2014-07-11  Gary Benson  <gbenson@redhat.com>
4406
4407         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4408         x86_linux_read_description.  All uses updated.  amd64-specific
4409         code conditionalized.  Conditionalized i386-specific code added.
4410         Redundant cast removed.
4411         * i386-linux-nat.c (i386_linux_read_description): Renamed to
4412         x86_linux_read_description.  All uses updated.  i386-specific
4413         code conditionalized.  Conditionalized amd64-specific code added.
4414         One sizeof replaced with the actual type it is describing.
4415
4416 2014-07-11  Gary Benson  <gbenson@redhat.com>
4417
4418         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4419         x86_linux_dr_get.  All uses updated.
4420         (amd64_linux_dr_set): Renamed to
4421         x86_linux_dr_set.  All uses updated.
4422         (amd64_linux_dr_get_addr): Renamed to
4423         x86_linux_dr_get_addr.  All uses updated.
4424         (amd64_linux_dr_get_control): Renamed to
4425         x86_linux_dr_get_control.  All uses updated.
4426         (amd64_linux_dr_get_status): Renamed to
4427         x86_linux_dr_get_status.  All uses updated.
4428         (amd64_linux_dr_set_control): Renamed to
4429         x86_linux_dr_set_control.  All uses updated.
4430         (amd64_linux_dr_set_addr): Renamed to
4431         x86_linux_dr_set_addr.  All uses updated.
4432         (amd64_linux_prepare_to_resume): Renamed to
4433         x86_linux_prepare_to_resume.  All uses updated.
4434         (amd64_linux_new_thread): Renamed to
4435         x86_linux_new_thread.  All uses updated.
4436         (amd64_linux_new_fork): Renamed to
4437         x86_linux_new_fork.  All uses updated.
4438         (amd64_linux_child_post_startup_inferior): Renamed to
4439         x86_linux_child_post_startup_inferior.  All uses updated.
4440         (amd64_linux_enable_btrace): Renamed to
4441         x86_linux_enable_btrace.  All uses updated.
4442         (amd64_linux_disable_btrace): Renamed to
4443         x86_linux_disable_btrace.  All uses updated.
4444         (amd64_linux_teardown_btrace): Renamed to
4445         x86_linux_teardown_btrace.  All uses updated.
4446         (amd64_linux_read_btrace): Renamed to
4447         x86_linux_read_btrace.  All uses updated.
4448         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4449         x86_linux_dr_get.  All uses updated.
4450         (i386_linux_dr_set): Renamed to
4451         x86_linux_dr_set.  All uses updated.
4452         (i386_linux_dr_get_addr): Renamed to
4453         x86_linux_dr_get_addr.  All uses updated.
4454         (i386_linux_dr_get_control): Renamed to
4455         x86_linux_dr_get_control.  All uses updated.
4456         (i386_linux_dr_get_status): Renamed to
4457         x86_linux_dr_get_status.  All uses updated.
4458         (i386_linux_dr_set_control): Renamed to
4459         x86_linux_dr_set_control.  All uses updated.
4460         (i386_linux_dr_set_addr): Renamed to
4461         x86_linux_dr_set_addr.  All uses updated.
4462         (i386_linux_prepare_to_resume): Renamed to
4463         x86_linux_prepare_to_resume.  All uses updated.
4464         (i386_linux_new_thread): Renamed to
4465         x86_linux_new_thread.  All uses updated.
4466         (i386_linux_new_fork): Renamed to
4467         x86_linux_new_fork.  All uses updated.
4468         (i386_linux_child_post_startup_inferior): Renamed to
4469         x86_linux_child_post_startup_inferior.  All uses updated.
4470         (i386_linux_enable_btrace): Renamed to
4471         x86_linux_enable_btrace.  All uses updated.
4472         (i386_linux_disable_btrace): Renamed to
4473         x86_linux_disable_btrace.  All uses updated.
4474         (i386_linux_teardown_btrace): Renamed to
4475         x86_linux_teardown_btrace.  All uses updated.
4476         (i386_linux_read_btrace): Renamed to
4477         x86_linux_read_btrace.  All uses updated.
4478
4479 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
4480
4481         * remote.c (extended_remote_post_attach): New function.
4482         (init_extended_remote_ops): Install it as to_post_attach method.
4483
4484 2014-07-09  Pedro Alves  <palves@redhat.com>
4485
4486         * infcmd.c (attach_command_post_wait): Don't call
4487         target_terminal_inferior here.
4488         (attach_command): Call it here instead.
4489
4490 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4491
4492         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4493         field.
4494         * c-varobj.c (c_is_path_expr_parent): New function, moved core
4495         from varobj.c, with additional checks.
4496         (c_varobj_ops): Fill in is_path_expr_parent field.
4497         (cplus_varobj_ops): Fill in is_path_expr_parent field.
4498         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4499         field.
4500         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4501         ops method.
4502         (varobj_default_is_path_expr_parent): New function.
4503         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4504         (varobj_default_is_path_expr_parent): Declare new function.
4505
4506 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
4507
4508         * infcmd.c (finish_backward): Turn internal error into normal error.
4509
4510 2014-07-07  Pedro Alves  <palves@redhat.com>
4511
4512         PR gdb/17096
4513         * remote.c (async_handle_remote_sigint)
4514         (async_handle_remote_sigint_twice): Call
4515         gdb_call_async_signal_handler instead of
4516         mark_async_signal_handler.
4517
4518 2014-07-07  Tom Tromey  <tromey@redhat.com>
4519
4520         * target-delegates.c: Rebuild.
4521         * target.c (target_info_record): Remove.
4522         * record.c (info_record_command): Unconditionally call
4523         to_info_record.
4524         * target.h (struct target_ops) <to_info_record>: Use
4525         TARGET_DEFAULT_IGNORE.
4526         (target_info_record): Remove.
4527
4528 2014-07-07  Tom Tromey  <tromey@redhat.com>
4529
4530         * target.h (struct target_ops) <to_get_thread_local_address>: Use
4531         TARGET_DEFAULT_NORETURN.
4532         * target.c (generic_tls_error): New function.
4533         (target_translate_tls_address): Don't search target stack.
4534         * target-delegates.c: Rebuild.
4535         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4536         stack.
4537         * linux-thread-db.c (thread_db_get_thread_local_address):
4538         Unconditionally call beneath target.
4539
4540 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
4541
4542         * cli/cli-logging.c (pop_output_files): Assign targerr to
4543         gdb_stdtargerr.
4544
4545 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
4546
4547         * MAINTAINERS (Write After Approval): Update my email address.
4548
4549 2014-07-02  Gary Benson  <gbenson@redhat.com>
4550
4551         * proc-service.c (ps_xfer_memory): Update comment.
4552         (ps_pstop): Remove unused function.
4553         (ps_pcontinue): Likewise.
4554         (ps_lstop): Likewise.
4555         (ps_lcontinue): Likewise.
4556         (ps_lgetxregsize): Likewise.
4557         (ps_lgetxregs): Likewise.
4558         (ps_lsetxregs): Likewise.
4559         (ps_plog): Likewise.
4560         (ps_ptread): Likewise.
4561         (ps_ptwrite): Likewise.
4562
4563 2014-07-01  Mark Wielaard  <mjw@redhat.com>
4564
4565         * dwarf2read.c (add_array_cv_type): New function.
4566         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4567         (read_tag_volatile_type): Likewise.
4568
4569 2014-07-01  Tom Tromey  <tromey@redhat.com>
4570
4571         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4572         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4573         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4574         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4575         * command.h (cmd_cfunc_ftype): Move earlier.
4576         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4577         (add_com, add_info): Use cmd_cfunc_ftype.
4578
4579 2014-06-30  Tom Tromey  <tromey@redhat.com>
4580
4581         * symtab.c (operator_chars): Make parameters and return type
4582         const.
4583         (file_matches): Make "files" const.
4584         (struct search_symbols_data) <files>: Now const.
4585         (search_symbols): Make "regexp" and "files" parameters const.
4586         Update.
4587         (symtab_symbol_info): Remove cast.
4588         (rbreak_command): Update.
4589         * symtab.h (search_symbols): Update.
4590
4591 2014-06-27  Yao Qi  <yao@codesourcery.com>
4592
4593         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4594         Change parameter type to 'struct thread_info *'.  Caller
4595         updated.
4596         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4597         Update declaration.
4598         * dummy-frame.c (struct dummy_frame_id): New.
4599         (dummy_frame_id_eq): New function.
4600         (struct dummy_frame) <id>: Change its type to 'struct
4601         dummy_frame_id'.
4602         (dummy_frame_push): Add parameter ptid and save it in
4603         dummy_frame_id.
4604         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4605         inferior_ptid.
4606         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4607         to inferior_ptid.
4608         (lookup_dummy_frame): Change parameter type to 'struct
4609         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
4610         instead of frame_id_eq.
4611         (dummy_frame_pop): Add parameter ptid.  Callers updated.
4612         Update comments.  Compose dummy_frame_id and pass it to
4613         lookup_dummy_frame.
4614         (dummy_frame_discard): Add parameter ptid.
4615         (dummy_frame_sniffer): Compose dummy_frame_id and call
4616         dummy_frame_id_eq instead of frame_id_eq.
4617         (fprint_dummy_frames): Print ptid.
4618         * dummy-frame.h: Remove comments.
4619         (dummy_frame_push): Add ptid in declaration.
4620         (dummy_frame_pop, dummy_frame_discard): Likewise.
4621
4622 2014-06-26  Tom Tromey  <tromey@redhat.com>
4623
4624         * cli/cli-cmds.c (error_no_arg): Make "why" const.
4625         * command.h (error_no_arg): Update.
4626
4627 2014-06-26  Tom Tromey  <tromey@redhat.com>
4628
4629         * cli/cli-setshow.c (do_set_command): Make "arg" const.
4630         (do_show_command): Make "arg" const.
4631         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4632
4633 2014-06-26  Tom Tromey  <tromey@redhat.com>
4634
4635         * record-full.c (record_full_get_bookmark): Make "args" const.
4636         (record_full_goto_bookmark): Make "raw_bookmark" const.
4637         * record.c (record_goto): New function.
4638         (cmd_record_goto): Use it.  Now static.
4639         * record.h (record_goto): Declare.
4640         (cmd_record_goto): Remove declaration.
4641         * target-delegates.c: Rebuild.
4642         * target.h (struct target_ops) <to_get_bookmark,
4643         to_goto_bookmark>: Make parameter const.
4644
4645 2014-06-26  Tom Tromey  <tromey@redhat.com>
4646
4647         * defs.h (generic_load): Update.
4648         * m32r-rom.c (m32r_load_gen): Make "filename" const.
4649         * monitor.c (monitor_load): Make "args" const.
4650         * remote-m32r-sdi.c (m32r_load): Make "args" const.
4651         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4652         const.
4653         (mips_load): Make "file" const.
4654         * remote-sim.c (gdbsim_load): Make "args" const.
4655         * remote.c (remote_load): Make "name" const.
4656         * symfile.c (generic_load): Make "args" const.
4657         * target-delegates.c: Rebuild.
4658         * target.c (target_load): Make "arg" const.
4659         (debug_to_load): Make "args" const.
4660         * target.h (struct target_ops) <to_load>: Make parameter const.
4661         (target_load): Update.
4662
4663 2014-06-26  Tom Tromey  <tromey@redhat.com>
4664
4665         PR symtab/16902:
4666         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4667         (dwarf2_physname, read_partial_die)
4668         (guess_partial_die_structure_name, fixup_partial_die)
4669         (guess_full_die_structure_name, anonymous_struct_prefix)
4670         (dwarf2_name): Use per-BFD obstack.
4671
4672 2014-06-26  Yao Qi  <yao@codesourcery.com>
4673
4674         * dummy-frame.c (dummy_frame_sniffer): Move local variables
4675         dummyframe and this_id into inner block below.
4676
4677 2014-06-26  Yao Qi  <yao@codesourcery.com>
4678
4679         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4680         with "signal_pass[0]" in the initialization of signal_pass.
4681
4682 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4683
4684         * record-btrace.c (record_btrace_generating_corefile)
4685         (record_btrace_prepare_to_generate_core)
4686         (record_btrace_done_generating_core): New.
4687         (record_btrace_xfer_partial, record_btrace_fetch_registers)
4688         (record_btrace_store_registers, record_btrace_prepare_to_store):
4689         Forward request when generating a core file.
4690         (record_btrace_open): Set record_btrace_generating_corefile to zero.
4691         (init_record_btrace_ops): Set to_prepare_to_generate_core and
4692         to_done_generating_core.
4693
4694 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4695
4696         * target.h (target_ops) <to_prepare_to_generate_core>
4697         <to_done_generating_core>: New.
4698         (target_prepare_to_generate_core, target_done_generating_core): New.
4699         * target.c (target_prepare_to_generate_core)
4700         (target_done_generating_core): New.
4701         * target-delegates.c: Regenerate.
4702         * gcore.c: (write_gcore_file): Rename to ...
4703         (write_gcore_file_1): ...this.
4704         (write_gcore_file): Call target_prepare_to_generate_core
4705         and target_done_generating_core.
4706
4707 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4708
4709         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4710         * gcore.c (write_gcore_file): Free memory returned from
4711         make_corefile_notes.
4712         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4713         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4714
4715 2014-06-24  Yao Qi  <yao@codesourcery.com>
4716
4717         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4718         (arm_linux_init_abi): Set skip_trampoline_code with
4719         gdbarch_skip_trampoline_code instead of
4720         find_solib_trampoline_target.
4721
4722 2014-06-24  Yao Qi  <yao@codesourcery.com>
4723
4724         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4725         arm_skip_bx_reg returns non-zero.
4726
4727 2014-06-24  Yao Qi  <yao@codesourcery.com>
4728
4729         * arm-tdep.c (arm_skip_bx_reg): New function.
4730         (arm_skip_stub): Call arm_skip_bx_reg.
4731
4732 2014-06-23  Don Breazeal  <donb@codesourcery.com>
4733
4734         * MAINTAINERS: Add myself as write-after-approval maintainer.
4735
4736 2014-06-23  Pedro Alves  <palves@redhat.com>
4737
4738         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4739         DR_CONTROL before setting DR0..DR3.
4740         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4741         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4742         bits of DR_CONTROL related to the debug register slot being
4743         disabled.  If all slots are vacant, clear local slowdown as well,
4744         and assert DR_CONTROL is 0.
4745
4746 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
4747
4748         * python/lib/gdb/command/xmethods.py
4749         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
4750         current progspace only if the string "progspace" matches LOCUS_RE.
4751
4752 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4753
4754         Fix --with-system-readline with readline-6.3 patch 5.
4755         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4756         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4757         types.
4758
4759 2014-06-20  Tom Tromey  <tromey@redhat.com>
4760
4761         * dwarf2read.c (dw2_get_real_path): Use correct type in
4762         OBSTACK_CALLOC.
4763         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4764
4765 2014-06-20  Gary Benson  <gbenson@redhat.com>
4766
4767         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
4768         * common/glibc_thread_db.h: Likewise.
4769         * common/i386-cpuid.h: Likewise.
4770         * common/i386-gcc-cpuid.h: Likewise.
4771         * common/linux-btrace.h: Likewise.
4772         * common/linux-osdata.h: Likewise.
4773         * common/linux-procfs.h: Likewise.
4774         * common/linux-ptrace.h: Likewise.
4775         * common/mips-linux-watch.h: Likewise.
4776         * common/linux-btrace.c: Moved to nat.
4777         * common/linux-osdata.c: Likewise.
4778         * common/linux-procfs.c: Likewise.
4779         * common/linux-ptrace.c: Likewise.
4780         * common/mips-linux-watch.c: Likewise.
4781         * nat/gdb_thread_db.h: Moved from common.
4782         * nat/glibc_thread_db.h: Likewise.
4783         * nat/i386-cpuid.h: Likewise.
4784         * nat/i386-gcc-cpuid.h: Likewise.
4785         * nat/linux-btrace.c: Likewise.
4786         * nat/linux-btrace.h: Likewise.
4787         * nat/linux-osdata.c: Likewise.
4788         * nat/linux-osdata.h: Likewise.
4789         * nat/linux-procfs.c: Likewise.
4790         * nat/linux-procfs.h: Likewise.
4791         * nat/linux-ptrace.c: Likewise.
4792         * nat/linux-ptrace.h: Likewise.
4793         * nat/mips-linux-watch.c: Likewise.
4794         * nat/mips-linux-watch.h: Likewise.
4795         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4796         (object file files): Reordered.
4797         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4798         of glibc_thread_db.h.
4799
4800 2014-06-20  Gary Benson  <gbenson@redhat.com>
4801
4802         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4803         (i386_dr_low_type): Moved to nat/i386-dregs.h.
4804         (i386_dr_low): Likewise.
4805         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4806         (i386_dr_low_set_addr): Likewise.
4807         (i386_dr_low_get_addr): Likewise.
4808         (i386_dr_low_can_set_control): Likewise.
4809         (i386_dr_low_set_control): Likewise.
4810         (i386_dr_low_get_control): Likewise.
4811         (i386_dr_low_get_status): Likewise.
4812         (i386_get_debug_register_length): Likewise.
4813         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4814         (i386_dr_low): Likewise.
4815         * nat/i386-dregs.c (i386-low.h): Remove include.
4816         (i386-nat.h): Likewise.
4817         (nat/i386-dregs.h): New include.
4818         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4819         (i386_dr_low_set_addr): Likewise.
4820         (i386_dr_low_get_addr): Likewise.
4821         (i386_dr_low_can_set_control): Likewise.
4822         (i386_dr_low_set_control): Likewise.
4823         (i386_dr_low_get_control): Likewise.
4824         (i386_dr_low_get_status): Likewise.
4825         (i386_get_debug_register_length): Likewise.
4826         (debug_hw_points): Likewise.
4827
4828 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
4829
4830         * Makefile.in (SFILES): Add d-exp.y.
4831         (YYFILES): Add d-exp.c.
4832         (YYOBJ): Add d-exp.o.
4833         (local-maintainer-clean): Delete d-exp.c.
4834         * d-exp.y: New file.
4835         * d-lang.h (d_parse): New declaration.
4836         (d_error): New declaration.
4837         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4838         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4839         PREC_ORDER operators.
4840         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4841
4842 2014-06-19  Yao Qi  <yao@codesourcery.com>
4843
4844         * gdbthread.h (any_running): Remove the declaration.
4845         * thread.c (any_running): Remove.
4846
4847 2014-06-19  Yao Qi  <yao@codesourcery.com>
4848
4849         * gdbthread.h (struct thread_info) <state>: Change its type to
4850         'enum thread_state'.  Update comments.
4851
4852 2014-06-19  Pedro Alves  <palves@redhat.com>
4853
4854         * gdbthread.h (ALL_THREADS): Delete.
4855         (ALL_NON_EXITED_THREADS): New macro.
4856         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4857         instead of ALL_THREADS.
4858         * infrun.c (find_thread_needs_step_over)
4859         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4860         instead of ALL_THREADS.
4861         * record-btrace.c (record_btrace_open)
4862         (record_btrace_stop_recording, record_btrace_close)
4863         (record_btrace_is_replaying, record_btrace_resume)
4864         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4865         * remote.c (append_pending_thread_resumptions): Likewise.
4866         * thread.c (thread_apply_all_command): Likewise.
4867
4868 2014-06-19  Gary Benson  <gbenson@redhat.com>
4869
4870         * i386-nat.c (i386_stopped_by_watchpoint):
4871         Use i386_dr_stopped_by_watchpoint.
4872         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4873         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4874
4875 2014-06-19  Gary Benson  <gbenson@redhat.com>
4876
4877         * nat/i386-dregs.c: New file.
4878         * Makefile.in (i386-dregs.o): New rule.
4879         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4880         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4881         * config/i386/darwin.mh (NATDEPFILES): Likewise.
4882         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4883         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4884         * config/i386/go32.mh (NATDEPFILES): Likewise.
4885         * config/i386/linux.mh (NATDEPFILES): Likewise.
4886         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4887         * config/i386/mingw.mh (NATDEPFILES): Likewise.
4888         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4889         * i386-nat.h (debug_hw_points): New declaration.
4890         * i386-nat.c (breakpoint.h): Remove include.
4891         (command.h): Likewise.
4892         (target.h): Likewise.
4893         (gdb_assert.h): Likewise.
4894         (debug_hw_points): Made nonstatic.
4895         (debug_printf): Now in i386-dregs.c.
4896         (TARGET_HAS_DR_LEN_8): Likewise.
4897         (DR_CONTROL_SHIFT): Likewise.
4898         (DR_CONTROL_SIZE): Likewise.
4899         (DR_RW_EXECUTE): Likewise.
4900         (DR_RW_WRITE): Likewise.
4901         (DR_RW_READ): Likewise.
4902         (DR_RW_IORW): Likewise.
4903         (DR_LEN_1): Likewise.
4904         (DR_LEN_2): Likewise.
4905         (DR_LEN_4): Likewise.
4906         (DR_LEN_8): Likewise.
4907         (DR_LOCAL_ENABLE_SHIFT): Likewise.
4908         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4909         (DR_ENABLE_SIZE): Likewise.
4910         (DR_LOCAL_SLOWDOWN): Likewise.
4911         (DR_GLOBAL_SLOWDOWN): Likewise.
4912         (DR_CONTROL_RESERVED): Likewise.
4913         (I386_DR_CONTROL_MASK): Likewise.
4914         (I386_DR_VACANT): Likewise.
4915         (I386_DR_LOCAL_ENABLE): Likewise.
4916         (I386_DR_GLOBAL_ENABLE): Likewise.
4917         (I386_DR_DISABLE): Likewise.
4918         (I386_DR_SET_RW_LEN): Likewise.
4919         (I386_DR_GET_RW_LEN): Likewise.
4920         (I386_DR_WATCH_HIT): Likewise.
4921         (i386_wp_op_t): Likewise.
4922         (i386_show_dr): Likewise.
4923         (i386_length_and_rw_bits): Likewise.
4924         (i386_insert_aligned_watchpoint): Likewise.
4925         (i386_remove_aligned_watchpoint): Likewise.
4926         (i386_handle_nonaligned_watchpoint): Likewise.
4927         (i386_update_inferior_debug_regs): Likewise.
4928         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4929         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4930         (i386_region_ok_for_watchpoint):
4931         Use i386_dr_region_ok_for_watchpoint.
4932         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4933
4934 2014-06-19  Gary Benson  <gbenson@redhat.com>
4935
4936         * i386-nat.c (i386_insert_hw_breakpoint): Use
4937         i386_insert_watchpoint.
4938         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4939
4940 2014-06-19  Gary Benson  <gbenson@redhat.com>
4941
4942         * i386-nat.c (i386_dr_show): Renamed to
4943         i386_show_dr and made static.  All uses updated.
4944         (i386_dr_length_and_rw_bits): Renamed to
4945         i386_length_and_rw_bits and made static.
4946         All uses updated.
4947         (i386_dr_insert_aligned_watchpoint): Renamed to
4948         i386_insert_aligned_watchpoint and made static.
4949         All uses updated.
4950         (i386_dr_remove_aligned_watchpoint): Renamed to
4951         i386_remove_aligned_watchpoint and made static.
4952         All uses updated.
4953         (i386_dr_update_inferior_debug_regs): Renamed to
4954         i386_update_inferior_debug_regs and made static.
4955         All uses updated.
4956         * nat/i386-dregs.h (i386_dr_show): Removed.
4957         (i386_dr_length_and_rw_bits): Likewise.
4958         (i386_dr_insert_aligned_watchpoint): Likewise.
4959         (i386_dr_remove_aligned_watchpoint): Likewise.
4960         (i386_dr_update_inferior_debug_regs): Likewise.
4961
4962 2014-06-19  Gary Benson  <gbenson@redhat.com>
4963
4964         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4965         * configure: Regenerate.
4966         * config.in: Likewise.
4967         * main.c (signal.h): New include.
4968         (setup_alternate_signal_stack): New function.
4969         (captured_main): Call the above.
4970         * cp-support.c (signal.h): New include.
4971         (catch_demangler_crashes): New flag.
4972         (SIGJMP_BUF): New define.
4973         (SIGSETJMP): Likewise.
4974         (SIGLONGJMP): Likewise.
4975         (gdb_demangle_jmp_buf): New static global.
4976         (gdb_demangle_attempt_core_dump): Likewise.
4977         (gdb_demangle_signal_handler): New function.
4978         (gdb_demangle): If catch_demangler_crashes is set, install the
4979         above signal handler before calling bfd_demangle, and restore
4980         the original signal handler afterwards.  Display the offending
4981         symbol and call demangler_warning the first time a segmentation
4982         fault is caught.
4983         (_initialize_cp_support): New maint set/show command.
4984
4985 2014-06-19  Gary Benson  <gbenson@redhat.com>
4986
4987         * utils.h (resource_limit_kind): New enum.
4988         (can_dump_core): New declaration.
4989         (warn_cant_dump_core): Likewise.
4990         (dump_core): Likewise.
4991         * utils.c (dump_core): Made nonstatic.  Added new
4992         parameter "limit_kind".
4993         (can_dump_core): Made nonstatic. Moved printing code to...
4994         (warn_cant_dump_core): New function.
4995         (can_dump_core_warn): Likewise.
4996         (internal_vproblem): Replace calls to can_dump_core with
4997         calls to can_dump_core_warn.  Supply new argument to each.
4998
4999 2014-06-19  Gary Benson  <gbenson@redhat.com>
5000
5001         * utils.h (demangler_vwarning): New declaration.
5002         (demangler_warning): Likewise.
5003         * utils.c (struct internal_problem)
5004         <user_settable_should_quit>: New field.
5005         <user_settable_should_dump_core>: Likewise
5006         (internal_error_problem): Add values for above new fields.
5007         (internal_warning_problem): Likewise.
5008         (demangler_warning_problem): New static global.
5009         (demangler_vwarning): New function.
5010         (demangler_warning): Likewise.
5011         (add_internal_problem_command): Selectively add commands.
5012         (_initialize_utils): New internal problem command.
5013         * maint.c (maintenance_demangler_warning): New function.
5014         (_initialize_maint_cmds): New command.
5015
5016 2014-06-18  Tom Tromey  <tromey@redhat.com>
5017
5018         * f-valprint.c (info_common_command_for_block): Update.
5019         * symtab.h (struct general_symbol_info) <common_block>: Now
5020         const.
5021
5022 2014-06-18  Tom Tromey  <tromey@redhat.com>
5023
5024         * symtab.h (struct symtab) <blockvector>: Now const.
5025         * ada-lang.c (ada_add_global_exceptions): Update.
5026         * buildsym.c (augment_type_symtab): Update.
5027         * dwarf2read.c (dw2_lookup_symbol): Update.
5028         * jit.c (finalize_symtab): Update.
5029         * jv-lang.c (add_class_symtab_symbol): Update.
5030         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5031         Update.
5032         * objfiles.c (objfile_relocate1): Update.
5033         * psymtab.c (lookup_symbol_aux_psymtabs)
5034         (maintenance_check_psymtabs): Update.
5035         * python/py-symtab.c (stpy_global_block, stpy_static_block):
5036         Update.
5037         * spu-tdep.c (spu_catch_start): Update.
5038         * symmisc.c (dump_symtab_1): Update.
5039         * symtab.c (lookup_global_symbol_from_objfile)
5040         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5041         (basic_lookup_transparent_type_quick)
5042         (basic_lookup_transparent_type, find_pc_sect_symtab)
5043         (find_pc_sect_line, search_symbols): Update.
5044         * block.c (find_block_in_blockvector): Make "bl" const.
5045         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5046         const.
5047         (blockvector_contains_pc): Make "bv" const.
5048         (block_for_pc_sect): Update.
5049         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5050         (blockvector_contains_pc): Update.
5051         * breakpoint.c (resolve_sal_pc): Update.
5052         * inline-frame.c (block_starting_point_at): Update.
5053
5054 2014-06-18  Tom Tromey  <tromey@redhat.com>
5055
5056         * completer.c (complete_line): Make "line_buffer" const.
5057         * completer.h (complete_line): Update.
5058
5059 2014-06-18  Tom Tromey  <tromey@redhat.com>
5060
5061         * symtab.c (add_macro_name): Remove unneeded cast.
5062
5063 2014-06-18  Tom Tromey  <tromey@redhat.com>
5064
5065         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5066         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5067
5068 2014-06-18  Tom Tromey  <tromey@redhat.com>
5069
5070         * probe.c (info_probes_for_ops): Make "arg" const.
5071         * probe.h (info_probes_for_ops): Update.
5072
5073 2014-06-18  Tom Tromey  <tromey@redhat.com>
5074
5075         * varobj.c (varobj_create): Update.
5076         * valops.c (value_of_this): Update.
5077         * tracepoint.c (add_local_symbols, scope_info): Update.
5078         * symtab.h (struct general_symbol_info) <block>: Now const.
5079         * symtab.c (skip_prologue_sal)
5080         (default_make_symbol_completion_list_break_on)
5081         (skip_prologue_using_sal): Update.
5082         * stack.h (iterate_over_block_locals)
5083         (iterate_over_block_local_vars): Update.
5084         * stack.c (print_frame_args): Update.
5085         (iterate_over_block_locals, iterate_over_block_local_vars): Make
5086         parameter const.
5087         (get_selected_block): Make return type const.
5088         * python/py-frame.c (frapy_block): Update.
5089         * python/py-block.c (gdbpy_block_for_pc): Update.
5090         * p-exp.y (%union) <bval>: Now const.
5091         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5092         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5093         * m2-exp.y (%union) <bval>: Now const.
5094         * linespec.c (get_current_search_block): Make return type const.
5095         (create_sals_line_offset, find_label_symbols): Update.
5096         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5097         Update.
5098         (block_starting_point_at): Make "block" const.
5099         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5100         (check_exception_resume): Update.
5101         * guile/scm-frame.c (gdbscm_frame_block): Update.
5102         * guile/scm-block.c (gdbscm_lookup_block): Update.
5103         * frame.h (get_frame_block): Update.
5104         (get_selected_block): Make return type const.
5105         * frame.c (frame_id_inner): Update.
5106         * f-valprint.c (info_common_command_for_block)
5107         (info_common_command): Update.
5108         * dwarf2loc.c (dwarf2_find_location_expression)
5109         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5110         (locexpr_describe_location_piece): Update.
5111         * c-exp.y (%union) <bval>: Now const.
5112         * breakpoint.c (resolve_sal_pc): Update.
5113         * blockframe.c (get_frame_block):Make return type const.
5114         (get_pc_function_start, get_frame_function, find_pc_sect_function)
5115         (block_innermost_frame): Update.
5116         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5117         (block_for_pc, block_for_pc_sect): Update.
5118         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5119         'pblock' const.
5120         (block_for_pc_sect, block_for_pc): Make return type const.
5121         * ax-gdb.c (gen_expr): Update.
5122         * alpha-mdebug-tdep.c (find_proc_desc): Update.
5123         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5124         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5125         (ada_read_var_value): Update.
5126         * ada-exp.y (struct name_info) <block>: Now const.
5127         (%union): Likewise.
5128         (block_lookup): Constify.
5129
5130 2014-06-18  Gary Benson  <gbenson@redhat.com>
5131
5132         * nat/i386-dregs.h: New file.
5133         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5134         * i386-nat.h (i386-dregs.h): New include.
5135         (DR_FIRSTADDR): Now in i386-dregs.h.
5136         (DR_LASTADDR): Likewise.
5137         (DR_NADDR): Likewise.
5138         (DR_STATUS): Likewise.
5139         (DR_CONTROL): Likewise.
5140         (i386_debug_reg_state): Likewise.
5141         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5142
5143 2014-06-18  Don Breazeal  <donb@codesourcery.com>
5144
5145         * breakpoint.c (set_longjmp_breakpoint): Call
5146         momentary_breakpoint_from_master with additional argument.
5147         (set_longjmp_breakpoint_for_call_dummy): Call
5148         momentary_breakpoint_from_master with additional argument.
5149         (set_std_terminate_breakpoint): Call
5150         momentary_breakpoint_from_master with additional argument.
5151         (momentary_breakpoint_from_master): Add argument to function
5152         definition and use it to initialize structure member flag.
5153         (clone_momentary_breakpoint): Call
5154         momentary_breakpoint_from_master with additional argument.
5155         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5156         member flags set in momentary_breakpoint_from_master.
5157
5158 2014-06-18  Gary Benson  <gbenson@redhat.com>
5159
5160         * i386-nat.c (i386_show_dr): Renamed to
5161         i386_dr_show and made nonstatic.  All uses updated.
5162         (i386_length_and_rw_bits): Renamed to
5163         i386_dr_length_and_rw_bits and made nonstatic.
5164         All uses updated.
5165         (i386_insert_aligned_watchpoint): Renamed to
5166         i386_dr_insert_aligned_watchpoint and made nonstatic.
5167         All uses updated.
5168         (i386_remove_aligned_watchpoint): Renamed to
5169         i386_dr_remove_aligned_watchpoint and made nonstatic.
5170         All uses updated.
5171         (i386_update_inferior_debug_regs): Renamed to
5172         i386_dr_update_inferior_debug_regs and made nonstatic.
5173         All uses updated.
5174
5175 2014-06-18  Gary Benson  <gbenson@redhat.com>
5176
5177         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5178         (i386_dr_low_can_set_control): Likewise.
5179         (i386_dr_low_set_addr): Likewise.
5180         (i386_dr_low_set_control): Likewise.
5181         (i386_dr_low_get_addr): Likewise.
5182         (i386_dr_low_get_status): Likewise.
5183         (i386_dr_low_get_control): Likewise.
5184         (i386_insert_aligned_watchpoint): Use new macros.
5185         (i386_update_inferior_debug_regs): Likewise.
5186         (i386_stopped_data_address): Likewise.
5187
5188 2014-06-18  Gary Benson  <gbenson@redhat.com>
5189
5190         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5191         New parameter.  All uses updated.
5192
5193 2014-06-18  Gary Benson  <gbenson@redhat.com>
5194
5195         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5196         All uses updated.
5197
5198 2014-06-18  Gary Benson  <gbenson@redhat.com>
5199
5200         * i386-nat.c (debug_printf): New macro.
5201         (i386_get_debug_register_length): Likewise.
5202         (TARGET_HAS_DR_LEN_8): Use above macro.
5203         (i386_show_dr): Use debug_printf instead of puts_unfiltered
5204         and printf_unfiltered.  Use phex to format values.
5205
5206 2014-06-18  Gary Benson  <gbenson@redhat.com>
5207
5208         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5209         Make const.
5210
5211 2014-06-18  Gary Benson  <gbenson@redhat.com>
5212
5213         * i386-nat.c: Comment changes.
5214
5215 2014-06-18  Gary Benson  <gbenson@redhat.com>
5216
5217         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5218
5219 2014-06-18  Gary Benson  <gbenson@redhat.com>
5220
5221         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5222         (i386_insert_aligned_watchpoint): Likewise.
5223         (i386_remove_aligned_watchpoint): Likewise.
5224         (i386_handle_nonaligned_watchpoint): Likewise.
5225
5226 2014-06-18  Gary Benson  <gbenson@redhat.com>
5227
5228         * i386-nat.c: Whitespace changes.
5229
5230 2014-06-17  Samuel Bronson  <naesten@gmail.com>
5231
5232         * MAINTAINERS: Update Roland McGrath's email address.
5233         Thanks to Sergio Durigan Junior for pointing out that he left
5234         Red Hat a while ago, and giving me a current address.
5235
5236 2014-06-17  Tom Tromey  <tromey@redhat.com>
5237
5238         * utils.h (savestring): Remove declaration.
5239
5240 2014-06-17  Tom Tromey  <tromey@redhat.com>
5241
5242         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5243
5244 2014-06-16  Keith Seitz  <keiths@redhat.com>
5245
5246         PR mi/15863
5247         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5248         to update the varobj if inferior_ptid is null_ptid.
5249
5250 2014-06-16  Tom Tromey  <tromey@redhat.com>
5251
5252         * target.h (struct target_ops) <to_info_proc>: Make parameter
5253         const.
5254         (target_info_proc): Update.
5255         * target.c (target_info_proc): Make "args" const.
5256         * procfs.c (procfs_info_proc): Update.
5257         * linux-tdep.c (linux_info_proc): Update.
5258         (linux_core_info_proc_mappings): Make "args" const.
5259         (linux_core_info_proc): Update.
5260         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5261         * gdbarch.c: Rebuild.
5262         * gdbarch.h: Rebuild.
5263         * corelow.c (core_info_proc): Update.
5264
5265 2014-06-16  Tom Tromey  <tromey@redhat.com>
5266
5267         * target.h (struct target_ops) <to_disconnect>: Make parameter
5268         const.
5269         (target_disconnect): Update.
5270         * target.c (target_disconnect): Make "args" const.
5271         * target-delegates.c: Rebuild.
5272         * remote.c (remote_disconnect): Update.
5273         * record.h (record_disconnect): Update.
5274         * record.c (record_disconnect): Update.
5275         * inf-child.c (inf_child_disconnect): Update.
5276
5277 2014-06-16  Tom Tromey  <tromey@redhat.com>
5278
5279         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5280         * target.c (debug_to_rcmd, default_rcmd): Update.
5281         * target-delegates.c: Rebuild.
5282         * remote.c (remote_rcmd): Update.
5283         * monitor.c (monitor_rcmd): Update.
5284
5285 2014-06-16  Pedro Alves  <palves@redhat.com>
5286
5287         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5288         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5289         have OBJF_SHARED set.
5290         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5291         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
5292         instead of OBJF_USERLOADED.
5293         * objfiles.h (OBJF_SHARED): Update comment.
5294         (userloaded_objfile_contains_address_p): Rename to ...
5295         (shared_objfile_contains_address_p): ... this, and update
5296         comments.
5297         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5298         new objfile.
5299         (remove_symbol_file_command): Skip objfiles that don't have
5300         OBJF_SHARED set.
5301
5302 2014-06-16  Tom Tromey  <tromey@redhat.com>
5303
5304         * minsyms.h (prim_record_minimal_symbol)
5305         (prim_record_minimal_symbol_and_info): Update comments.
5306
5307 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
5308
5309         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5310         or --without-guile, according to how GDB was built.
5311
5312 2014-06-13  Tom Tromey  <tromey@redhat.com>
5313
5314         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5315         to help_list.
5316         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5317         to help_list.
5318         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5319         help_list.
5320         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5321         help_list.Pass all_commands, not -1, to help_list.
5322         * cli/cli-dump.c (dump_command, append_command)
5323         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5324         (binary_dump_command, binary_append_command): Pass all_commands,
5325         not -1, to help_list.
5326         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5327         -1, to help_list.
5328         * valprint.c (set_print, set_print_raw): Pass all_commands, not
5329         -1, to help_list.
5330         * typeprint.c (set_print_type): Pass all_commands, not -1, to
5331         help_list.
5332         * top.c (set_history): Pass all_commands, not -1, to help_list.
5333         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5334         all_commands, not -1, to help_list.
5335         * symfile.c (overlay_command): Pass all_commands, not -1, to
5336         help_list.
5337         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5338         help_list.
5339         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5340         help_list.
5341         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5342         -1, to help_list.
5343         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5344         not -1, to help_list.
5345         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5346         not -1, to help_list.
5347         * maint.c (maintenance_command, maintenance_info_command)
5348         (maintenance_print_command, maintenance_set_cmd): Pass
5349         all_commands, not -1, to help_list.
5350         * macrocmd.c (macro_command): Pass all_commands, not -1, to
5351         help_list.
5352         * language.c (set_check): Pass all_commands, not -1, to help_list.
5353         * infcmd.c (unset_command): Pass all_commands, not -1, to
5354         help_list.
5355         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5356         help_list.
5357         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5358         help_list.
5359         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5360         help_list.
5361         * breakpoint.c (save_command): Pass all_commands, not -1, to
5362         help_list.
5363         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5364         all_commands, not -1, to help_list.
5365
5366 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
5367
5368         * regcache.c (struct register_to_invalidate): New structure.
5369         (do_register_invalidate, make_cleanup_regcache_invalidate): New
5370         functions.
5371         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5372
5373 2014-06-12  Yao Qi  <yao@codesourcery.com>
5374
5375         * varobj.c (varobj_get_num_children): Call
5376         varobj_is_dynamic_p.
5377         (varobj_list_children): Likewise.
5378         (varobj_update): Likewise.  Update comments.
5379
5380 2014-06-12  Yao Qi  <yao@codesourcery.com>
5381
5382         * varobj.c (varobj_pretty_printed_p): Rename to ...
5383         (varobj_is_dynamic_p): ... this.  New function.
5384         * varobj.h (varobj_pretty_printed_p): Remove declaration.
5385         (varobj_is_dynamic_p): Declare.
5386         * mi/mi-cmd-var.c (print_varobj): All callers updated.
5387         (mi_print_value_p, varobj_update_one): Likewise.
5388
5389 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5390             Yao Qi  <yao@codesourcery.com>
5391
5392         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5393         (varobj_get_iterator): Wrap up code for pretty-printer by
5394         "#if HAVE_PYTHON" and "#endif".
5395         (update_dynamic_varobj_children): Likewise.
5396
5397 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5398             Yao Qi  <yao@codesourcery.com>
5399
5400         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5401         gdb_python_initialized is false.  Move some code from varobj.c.
5402         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5403         * varobj.c: Move "varobj-iter.h" inclusion earlier.
5404         (struct varobj_item): Moved to varobj-iter.h".
5405         (varobj_clear_saved_item): New function.
5406         (update_dynamic_varobj_children): Move python-related code to
5407         py-varobj.c.
5408         (free_variable): Call varobj_clear_saved_item and
5409         varobj_iter_delete.
5410
5411 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5412             Yao Qi  <yao@codesourcery.com>
5413
5414         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5415         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5416         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5417         (py-varobj.o): New rule.
5418         * python/py-varobj.c: New file.
5419         * python/python-internal.h (py_varobj_get_iterator): Declare.
5420         * varobj-iter.h: New file.
5421         * varobj.c: Include "varobj-iter.h"
5422         (struct varobj) <child_iter>: Change its type from "PyObject *"
5423         to "struct varobj_iter *".
5424         <saved_item>: Likewise.
5425         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5426         [HAVE_PYTHON] (varobj_get_iterator): New function.
5427         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5428         python-specific code to python/py-varobj.c.
5429         (install_visualizer): Call varobj_iter_delete instead of
5430         Py_XDECREF.
5431         * varobj.h (varobj_ensure_python_env): Declare.
5432
5433 2014-06-12  Yao Qi  <yao@codesourcery.com>
5434
5435         * varobj.c (struct varobj_item): New structure.
5436         (create_child_with_value): Update declaration.
5437         (varobj_add_child): Replace arguments 'name' and 'value' with
5438         'item'.  All callers updated.
5439         (install_dynamic_child): Likewise.
5440         (update_dynamic_varobj_children): Likewise.
5441         (varobj_add_child): Likewise.
5442         (create_child_with_value): Likewise.
5443
5444 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5445
5446         * NEWS: Create a new section for the next release branch.
5447         Rename the section of the current branch, now that it has
5448         been cut.
5449
5450 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5451
5452         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5453         * version.in: Bump version to 7.8.50.DATE-cvs.
5454
5455 2014-06-11  Pedro Alves  <palves@redhat.com>
5456
5457         PR remote/17028
5458         * ser-mingw.c (net_windows_socket_check_pending): New function.
5459         (net_windows_select_thread): Ignore spurious wakeups.  Use
5460         net_windows_socket_check_pending.
5461         (net_windows_wait_handle): Check for pending events with
5462         ioctlsocket, through net_windows_socket_check_pending, instead of
5463         checking the socket's event.
5464
5465 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
5466
5467         * python/python-internal.h (gdb_PyObject_GetAttrString)
5468         (gdb_PyObject_HasAttrString): New inline function definitions.
5469         * py-value.c (get_field_flag): Remove the now unnecessary cast to
5470         char * of the second argument to PyObject_GetAttrString.
5471
5472 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5473
5474         * serial.c (serial_write): Fix index of character to be printed
5475         in call to serial_logchar when serial debug traces are enabled.
5476
5477 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5478
5479         * gdbtypes (resolve_dynamic_range): Add function description.
5480
5481 2014-06-09  Pedro Alves  <palves@redhat.com>
5482
5483         * linux-nat.c (linux_child_follow_fork): Initialize status with
5484         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
5485         inner block.  Only pass the signal to PTRACE_DETACH if in pass
5486         state.
5487
5488 2014-06-09  Gary Benson  <gbenson@redhat.com>
5489
5490         * common/signals.c (gdb_signal_from_host): Reorder to separate
5491         the always-available ANSI-standard signals from the signals that
5492         require checking.
5493         (do_gdb_signal_to_host): Likewise.
5494         * proc-events.c (signal_table): Likewise.
5495
5496 2014-06-08  Hui Zhu  <hui@codesourcery.com>
5497
5498         * common/linux-ptrace.c (linux_disable_event_reporting): New
5499         function.
5500         * common/linux-ptrace.h (linux_disable_event_reporting): New
5501         declaration.
5502         * linux-nat.c (linux_child_follow_fork): Do a single step before
5503         detach.
5504
5505 2014-06-07  Keith Seitz  <keiths@redhat.com>
5506
5507         Revert:
5508         PR c++/16253
5509         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5510         from symbol_matches_domain in symtab.c. All local callers
5511         of symbol_matches_domain updated.
5512         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5513         search STRUCT_DOMAIN.
5514         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5515         independently.  standard_lookup will do that automatically.
5516         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5517         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5518         (cp_lookup_symbol_in_namespace): Likewise.
5519         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5520         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5521         may return a STRUCT_DOMAIN match.
5522         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5523         * cp-support.c: Include language.h.
5524         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5525         VAR_DOMAIN.
5526         * psymtab.c (match_partial_symbol): Compare the requested
5527         domain with the symbol's domain directly.
5528         (lookup_partial_symbol): Likewise.
5529         * symtab.c (lookup_symbol_in_language): Explain when/why
5530         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5531         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5532         appropriate languages.
5533         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5534         and moved to ada-lang.c
5535         (lookup_block_symbol): Explain that this function only returns
5536         symbol matching the requested DOMAIN.
5537         Compare the requested domain with the symbol's domain directly.
5538         (iterate_over_symbols): Compare the requested domain with the
5539         symbol's domain directly.
5540         * symtab.h (symbol_matches_domain): Remove.
5541
5542 2014-06-06  Doug Evans  <xdje42@gmail.com>
5543
5544         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5545         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5546         (gdbscm_guile_version_is_at_least): Declare.
5547         (gdbscm_scm_string_to_int): Declare.
5548         * guile/guile.c (gdbscm_guile_major_version): New global.
5549         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5550         (guile_datadir): New static global.
5551         (gdbscm_guile_data_directory): New function.
5552         (initialize_scheme_side): Update.
5553         (misc_guile_functions): Add guile-data-directory.
5554         (initialize_gdb_module): Fetch guile version number.
5555         * guile/lib/gdb.scm: Remove call to add-to-load-path.
5556         * guile/lib/gdb/init.scm (%initialize!): Ditto.
5557         * guile/lib/gdb/boot.scm: Use guile-data-directory.
5558         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5559         comments.
5560         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5561         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5562         * guile/scm-value.c (gdbscm_value_to_string): Only call
5563         scm_port_conversion_strategy if Guile version >= 2.0.6.
5564
5565 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
5566
5567         * main.c (print_gdb_help): Add -q and --silent.
5568
5569 2014-06-06  Gary Benson  <gbenson@redhat.com>
5570
5571         * common/signals.c: Remove preprocessor conditionals for
5572         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5573         SIGSEGV and SIGTERM.
5574         * proc-events.c: Likewise.
5575
5576 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
5577
5578         * symfile.c (symfile_free_objfile): Remove restriction to
5579         OBJF_USERLOADED.
5580         * symfile-mem.c (symbol_file_add_from_memory): Call
5581         add_target_sections_of_objfile.
5582
5583 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
5584
5585         * guile/scm-value.c (gdbscm_history_append_x): Use
5586         'vlscm_get_value_smob_arg_unsafe' instead of
5587         'vlscm_scm_to_value'.
5588
5589 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
5590
5591         PR mi/15806
5592         * utils.c (printchar): Don't escape at all if quoter is NUL.
5593         Update function documentation to clarify effect of parameter
5594         QUOTER.
5595         * remote.c (escape_buffer): Pass '\\' as the quoter to
5596         fputstrn_unfiltered.
5597         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5598         generate the output.
5599         (mi_solib_unloaded): Same.
5600
5601 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
5602
5603         * development.sh: Delete.
5604         * Makefile.in (config.status): Adjust dependency on development.sh.
5605         * configure.ac: Adjust development.sh source call.
5606         * configure: Regenerate.
5607
5608 2014-06-04  Doug Evans  <xdje42@gmail.com>
5609
5610         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5611         is_scheme_bkpt, spec.
5612         (bpscm_make_breakpoint_smob): Initialize new members.
5613         (gdbscm_create_breakpoint_x): Split into two ...
5614         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5615         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5616         (scheme_function breakpoint_functions): Update.
5617         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
5618         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
5619         register-breakpoint!.
5620
5621 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
5622
5623         PR server/17023
5624         * mem-break.c (z_type_supported): Return zero if
5625         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5626
5627 2014-06-04  Tom Tromey  <tromey@redhat.com>
5628
5629         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5630         value_from_contents_and_address_unresolved.
5631         (ada_template_to_fixed_record_type_1): Likewise.
5632         (ada_which_variant_applies): Likewise.
5633         * value.h (value_from_contents_and_address_unresolved): Declare.
5634         * value.c (value_from_contents_and_address_unresolved): New
5635         function.
5636         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5637         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5638         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5639
5640 2014-06-04  Tom Tromey  <tromey@redhat.com>
5641
5642         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5643
5644 2014-06-04  Tom Tromey  <tromey@redhat.com>
5645
5646         * procfs.c (procfs_attach): Make "args" const.
5647         * windows-nat.c (windows_attach): Make "args" const.
5648         * nto-procfs.c (procfs_attach): Make "args" const.
5649         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5650         * go32-nat.c (go32_attach): Make "args" const.
5651         * gnu-nat.c (gnu_attach): Make "args" const.
5652         * darwin-nat.c (darwin_attach): Make "args" const.
5653         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5654         * linux-nat.c (linux_nat_attach): Make "args" const.
5655         * remote.c (extended_remote_attach_1, extended_remote_attach):
5656         Make "args" const.
5657         * target.h (struct target_ops) <to_attach>: Make "args" const.
5658         (find_default_attach): Likewise.
5659         * utils.c (parse_pid_to_attach): Make "args" const.
5660         * utils.h (parse_pid_to_attach): Update.
5661
5662 2014-06-04  Tom Tromey  <tromey@redhat.com>
5663
5664         * target-delegates.c: Rebuild.
5665         * target.c (default_thread_address_space): New function.
5666         (target_thread_address_space): Simplify.
5667         * target.h (struct target_ops) <to_thread_address_space>: Add
5668         TARGET_DEFAULT_FUNC.
5669
5670 2014-06-04  Doug Evans  <xdje42@gmail.com>
5671
5672         * guile/scm-type.c (type_smob): Remove duplicate typedef.
5673
5674 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
5675
5676         * record-btrace.c: Include event-loop.h and inf-loop.h.
5677         (record_btrace_resume_exec_dir)
5678         (record_btrace_async_inferior_event_handler)
5679         (record_btrace_handle_async_inferior_event): New.
5680         (record_btrace_open): Create async event handler.
5681         (record_btrace_close): Delete async event handler.
5682         (record_btrace_resume): Set record_btrace_resume_exec_dir,
5683         Mark async event handler.
5684         (record_btrace_execution_direction): New.
5685         (init_record_btrace_ops): Initialize to_execution_direction.
5686
5687 2014-06-03  Doug Evans  <xdje42@gmail.com>
5688
5689         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5690         (gdbscm_make_parameter): Ditto.
5691
5692 2014-06-03  Doug Evans  <dje@google.com>
5693
5694         * exec.c (exec_close_1): Call clear_section_table instead of
5695         resize_section_table.
5696         (clear_section_table): New function.
5697         (resize_section_table): Make static.  Rename arg num_added to
5698         adjustment.
5699         * exec.h (clear_section_table): Declare.
5700         (resize_section_table): Delete.
5701         * progspace.c (release_program_space): Call clear_section_table
5702         instead of resize_section_table.
5703
5704 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5705
5706         * NEWS (Python Scripting): Add entry about the new xmethods
5707         feature.
5708
5709 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5710
5711         * python/py-xmethods.c: New file.
5712         * python/py-objfile.c (objfile_object): New field 'xmethods'.
5713         (objfpy_dealloc): XDECREF on the new xmethods field.
5714         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5715         field.
5716         (objfpy_get_xmethods): New function.
5717         (objfile_getset): New entry 'xmethods'.
5718         * python/py-progspace.c (pspace_object): New field 'xmethods'.
5719         (pspy_dealloc): XDECREF on the new xmethods field.
5720         (pspy_new, pspace_to_pspace_object): Initialize xmethods
5721         field.
5722         (pspy_get_xmethods): New function.
5723         (pspace_getset): New entry 'xmethods'.
5724         * python/python-internal.h: Add declarations for new functions.
5725         * python/python.c (_initialize_python): Invoke
5726         gdbpy_initialize_xmethods.
5727         * python/lib/gdb/__init__.py (xmethods): New
5728         attribute.
5729         * python/lib/gdb/xmethod.py: New file.
5730         * python/lib/gdb/command/xmethods.py: New file.
5731
5732 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5733
5734         * eval.c (evaluate_subexp_standard): Call the xmethod if the
5735         best match method returned by find_overload_match is an xmethod.
5736         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5737         the best matching operator returned by find_overload_match is an
5738         xmethod.
5739         * valops.c: #include "extension.h".
5740         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5741         Return void.  The list of matching source methods is returned in
5742         "fn_list" and a vector of matching debug method workers is
5743         returned in "xm_worker_vec".  Update all callers.
5744         (value_find_oload_method_list): Likewise.
5745         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
5746         non-NULL, then the index of the best matching method in this
5747         vector is returned.  Update all callers.
5748         (find_overload_match): Include xmethods while performing overload
5749         resolution.
5750
5751 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5752
5753         * defs.h (enum lval_type): New enumerator "lval_xcallable".
5754         * extension-priv.h (struct extension_language_ops): Add the
5755         xmethod interface.
5756         * extension.c (new_xmethod_worker, clone_xmethod_worker,
5757         get_matching_xmethod_workers, get_xmethod_argtypes,
5758         invoke_xmethod, free_xmethod_worker,
5759         free_xmethod_worker_vec): New functions.
5760         * extension.h: #include "common/vec.h".
5761         New function declarations.
5762         (struct xmethod_worker): New struct.
5763         (VEC (xmethod_worker_ptr)): New vector type.
5764         (xmethod_worker_ptr): New typedef.
5765         (xmethod_worker_vec): Likewise.
5766         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5767         builtin_type.
5768         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5769         (struct builtin_type): New field "xmethod".
5770         * valarith.c (value_ptradd): Assert that the value argument is not
5771         lval_xcallable.
5772         * valops.c (value_must_coerce_to_target): Return 0 for
5773         lval_xcallable values.
5774         * value.c (struct value): New field XM_WORKER in the field
5775         LOCATION.
5776         (value_address, value_raw_address): Return 0 for lval_xcallable
5777         values.
5778         (set_value_address): Assert that the value is not an
5779         lval_xcallable.
5780         (value_free): Free the associated xmethod worker when freeing
5781         lval_xcallable values.
5782         (set_value_component_location): Assert that the WHOLE value is not
5783         lval_xcallable.
5784         (value_of_xmethod, call_xmethod): New functions.
5785         * value.h: Declare "struct xmethod_worker".
5786         Declare new functions value_of_xmethod, call_xmethod.
5787
5788 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
5789             Pedro Alves  <palves@redhat.com>
5790
5791         PR breakpoints/17000
5792         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5793         New function, extracted from software_breakpoint_inserted_here_p.
5794         (software_breakpoint_inserted_here_p): Replace factored out code
5795         by call to find_non_raw_software_breakpoint_inserted_here.
5796         (bp_target_info_copy_insertion_state): New function.
5797         (bkpt_insert_location): Handle the case of a single-step
5798         breakpoint already inserted at the same address.
5799         (bkpt_remove_location): Handle the case of a single-step
5800         breakpoint still inserted at the same address.
5801         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5802         breakpoint already inserted at the same address.
5803         (deprecated_remove_raw_breakpoint): Handle the case of a
5804         non-raw breakpoint still inserted at the same address.
5805         (find_single_step_breakpoint): New function, extracted from
5806         single_step_breakpoint_inserted_here_p.
5807         (find_single_step_breakpoint): New function,
5808         factored out from single_step_breakpoint_inserted_here_p.
5809         (single_step_breakpoint_inserted_here_p): Reimplement.
5810
5811 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
5812
5813         Pushed by Joel Brobecker  <brobecker@adacore.com>
5814         * source.c (show_substitute_path_command): Fix display of matching
5815         substitution rules.
5816
5817 2014-06-03  Gary Benson  <gbenson@redhat.com>
5818
5819         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5820
5821 2014-06-02  Doug Evans  <xdje42@gmail.com>
5822
5823         Add parameter support for Guile.
5824         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5825         (SUBDIR_GUILE_SRCS): Add scm-param.c.
5826         (scm-param.o): New rule.
5827         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5828         (gdbscm_misc_error): Declare.
5829         (gdbscm_canonicalize_command_name): Declare.
5830         (gdbscm_scm_to_host_string): Declare.
5831         (gdbscm_scm_from_host_string): Declare.
5832         (gdbscm_initialize_parameters): Declare.
5833         * guile/guile.c (initialize_gdb_module): Call
5834         gdbscm_initialize_parameters.
5835         * guile/lib/gdb.scm: Export parameter symbols.
5836         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5837         cmdscm_canonicalize_name and made public.  All callers updated.
5838         * guile/scm-exception.c (gdbscm_misc_error): New function.
5839         * guile/scm-param.c: New file.
5840         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5841         (gdbscm_scm_to_host_string): New function.
5842         (gdbscm_scm_from_host_string): New function.
5843         * scm-utils.c (gdbscm_gc_dup_argv): New function.
5844
5845 2014-06-02  Doug Evans  <xdje42@gmail.com>
5846
5847         Add command support for Guile.
5848         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5849         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5850         (scm-cmd.o): New rule.
5851         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5852         (gdbscm_user_error_p): Declare.
5853         (gdbscm_parse_command_name): Declare.
5854         (gdbscm_valid_command_class_p): Declare.
5855         (gdbscm_initialize_commands): Declare.
5856         * guile/guile.c (initialize_gdb_module): Call
5857         gdbscm_initialize_commands.
5858         * guile/lib/gdb.scm: Export command symbols.
5859         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5860         (throw-user-error): New function.
5861         * guile/scm-cmd.c: New file.
5862         * guile/scm-exception.c (user_error_symbol): New static global.
5863         (gdbscm_user_error_p): New function.
5864         (gdbscm_initialize_exceptions): Set user_error_symbol.
5865         * scm-utils.c (gdbscm_gc_xstrdup): New function.
5866
5867 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
5868
5869         * top.c (command_loop): Handle comments here...
5870         (command_line_input): ... not here.
5871
5872 2014-06-02  Doug Evans  <xdje42@gmail.com>
5873
5874         Add progspace support for Guile.
5875         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5876         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5877         (scm-progspace.o): New rule.
5878         * guile/guile-internal.h (pspace_smob): New typedef.
5879         (psscm_pspace_smob_pretty_printers): Declare.
5880         (psscm_pspace_smob_from_pspace): Declare.
5881         (psscm_scm_from_pspace): Declare.
5882         * guile/guile.c (initialize_gdb_module): Call
5883         gdbscm_initialize_pspaces.
5884         * guile/lib/gdb.scm: Export progspace symbols.
5885         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5886         support.
5887         (append-pretty-printer!): Ditto.
5888         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5889         Implement.
5890         * guile/scm-progspace.c: New file.
5891
5892 2014-06-03  Alan Modra  <amodra@gmail.com>
5893
5894         * ppc64-tdep.c (ppc64_standard_linkage8): New.
5895         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5896
5897 2014-06-02  Doug Evans  <dje@google.com>
5898
5899         Add support for skeletonless type units.
5900         * dwarf2read.c (struct dwarf2_per_objfile): New member
5901         n_allocated_type_units.
5902         (struct dwarf2_per_objfile) <tu_stats>: New member
5903         nr_all_type_units_reallocs.
5904         (create_signatured_type_table_from_index): Initialize
5905         n_allocated_type_units
5906         (create_all_type_units): Ditto.
5907         (add_type_unit): Move up in file.  New arg slot.
5908         All callers updated.  Increase space for all_type_units more
5909         efficiently.
5910         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5911         (lookup_dwo_signatured_type): Handle skeletonless TUs.
5912         (lookup_dwp_signatured_type): Ditto.
5913         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5914         All callers updated.
5915         (build_type_psymtabs_1): Leave type_unit_groups as
5916         NULL if no TUs present.
5917         (print_tu_stats): New function.
5918         (process_skeletonless_type_unit): New function.
5919         (process_dwo_file_for_skeletonless_type_units): New
5920         function.
5921         (process_skeletonless_type_units): New function.
5922         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5923         Call print tu_stats if debugging enabled.
5924
5925 2014-06-02  Pedro Alves  <palves@redhat.com>
5926
5927         * breakpoint.c (build_target_command_list): Don't build a command
5928         list if we have any duplicate location that isn't a dprintf.
5929
5930 2014-06-02  Pedro Alves  <palves@redhat.com>
5931
5932         * breakpoint.c (dprintf_breakpoint_hit): New function.
5933         (initialize_breakpoint_ops): Install it as dprintf's
5934         breakpoint_hit method.
5935
5936 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5937
5938         * source.c (substitute_path_rule_matches): Simplify using
5939         filename_ncmp instead of FILENAME_CMP.
5940
5941 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5942
5943         * source.c (substitute_path_rule_matches): Remove trailing spaces.
5944
5945 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
5946
5947         * configure.ac: When Guile is available, check for the
5948         availability of 'scm_new_smob'.
5949         * configure, config.h.in: Regenerate.
5950         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5951         function.
5952
5953 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5954
5955         * frame.c (struct frame_info): Add stop_string field.
5956         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5957         (get_prev_frame_always): Old content moved into
5958         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
5959         TRY_CATCH, handle MEMORY_ERROR exceptions.
5960         (frame_stop_reason_string): New function definition.
5961         * frame.h (unwind_stop_reason_to_string): Extend comment to
5962         mention frame_stop_reason_string.
5963         (frame_stop_reason_string): New function declaration.
5964         * stack.c (frame_info): Switch to frame_stop_reason_string.
5965         (backtrace_command_1): Switch to frame_stop_reason_string.
5966         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5967         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5968         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5969
5970 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5971
5972         * frame.c (frame_stop_reason_string): Rename to ...
5973         (unwind_stop_reason_to_string): this.
5974         * frame.h (frame_stop_reason_string): Rename to ...
5975         (unwind_stop_reason_to_string): this.
5976         * stack.c (frame_info): Update call to frame_stop_reason_string.
5977         (backtrace_command_1): Likewise.
5978         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5979         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5980
5981 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5982
5983         * frame.c (remove_prev_frame): New function.
5984         (get_prev_frame_if_no_cycle): Create / discard cleanup using
5985         remove_prev_frame.
5986
5987 2014-05-29  Pedro Alves  <palves@redhat.com>
5988
5989         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5990         and make it const.  When a single-step decays to a continue,
5991         clear 'step', not 'hw_step'.  Pass whether the caller wanted
5992         to step to user_visible_resume_ptid, not what we ask the
5993         target to do.
5994
5995 2014-05-29  Pedro Alves  <palves@redhat.com>
5996
5997         * infrun.c (process_event_stop_test, handle_step_into_function)
5998         (handle_step_into_function_backward): Adjust.
5999         Don't set the even thread's stop_step and call stop_waiting before
6000         calling end_stepping_range.  Instead do that ...
6001         (end_stepping_range): ... here.  Take an ecs pointer parameter.
6002
6003 2014-05-29  Pedro Alves  <palves@redhat.com>
6004
6005         * infrun.c (stop_stepping): Rename to ...
6006         (stop_waiting): ... this.
6007         (proceed): Update comment.
6008         (process_event_stop_test, handle_inferior_event)
6009         (handle_signal_stop, handle_step_into_function)
6010         (handle_step_into_function_backward): Update.
6011
6012 2014-05-29  Pedro Alves  <palves@redhat.com>
6013
6014         * infcall.c (run_inferior_call): Don't check whether the current
6015         thread is running after the proceed call.
6016
6017 2014-05-29  Pedro Alves  <palves@redhat.com>
6018             Tom Tromey  <tromey@redhat.com>
6019
6020         * NEWS: Mention "maint set target-async", "set mi-async", and that
6021         background execution commands are now always available.
6022         * target.h (target_async_permitted): Update comment.
6023         * target.c (target_async_permitted, target_async_permitted_1):
6024         Default to 1.
6025         (set_target_async_command): Rename to ...
6026         (maint_set_target_async_command): ... this.
6027         (show_target_async_command): Rename to ...
6028         (maint_show_target_async_command): ... this.
6029         (_initialize_target): Adjust.
6030         * infcmd.c (prepare_execution_command): Make extern.
6031         * inferior.h (prepare_execution_command): Declare.
6032         * infrun.c (set_observer_mode): Leave target async alone.
6033         * mi/mi-interp.c (mi_interpreter_init): Install
6034         mi_on_sync_execution_done as sync_execution_done observer.
6035         (mi_on_sync_execution_done): New function.
6036         (mi_execute_command_input_handler): Don't print the prompt if we
6037         just started a synchronous command with an async target.
6038         (mi_on_resume): Check sync_execution before printing prompt.
6039         * mi/mi-main.h (mi_async_p): Declare.
6040         * mi/mi-main.c: Include gdbcmd.h.
6041         (mi_async_p): New function.
6042         (mi_async, mi_async_1): New globals.
6043         (set_mi_async_command, show_mi_async_command, mi_async): New
6044         functions.
6045         (exec_continue): Call prepare_execution_command.
6046         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6047         (mi_execute_async_cli_command): Use mi_async_p.
6048         (_initialize_mi_main): Install "set mi-async".  Make
6049         "target-async" a deprecated alias.
6050
6051 2014-05-29  Pedro Alves  <palves@redhat.com>
6052
6053         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6054         (_initialize_cli_interp): Adjust.
6055         * event-loop.c: Include "observer.h".
6056         (start_event_loop): Notify 'command_error' observers instead of
6057         calling display_gdb_prompt.  Remove FIXME comment.
6058         * event-top.c (display_gdb_prompt): Remove call into the
6059         interpreters.
6060         * inf-loop.c: Include "observer.h".
6061         (inferior_event_handler): Notify 'command_error' observers instead
6062         of calling display_gdb_prompt.
6063         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6064         observers instead of calling display_gdb_prompt.
6065         * interps.c (interp_set): Don't call display_gdb_prompt.
6066         (current_interp_display_prompt_p): Delete.
6067         * interps.h (interp_prompt_p): Delete declaration.
6068         (interp_prompt_p_ftype): Delete.
6069         (struct interp_procs) <prompt_proc_p>: Delete field.
6070         (current_interp_display_prompt_p): Delete declaration.
6071         * mi-interp.c (mi_interpreter_prompt_p): Delete.
6072         (_initialize_mi_interp): Adjust.
6073         * tui-interp.c (tui_init): Install 'sync_execution_done' and
6074         'command_error' observers.
6075         (tui_on_sync_execution_done, tui_on_command_error): New
6076         functions.
6077         (tui_display_prompt_p): Delete.
6078         (_initialize_tui_interp): Adjust.
6079
6080 2014-05-29  Pedro Alves  <palves@redhat.com>
6081
6082         PR gdb/13860
6083         * cli/cli-interp.c: Include infrun.h and observer.h.
6084         (cli_uiout, cli_interp): New globals.
6085         (cli_on_signal_received, cli_on_end_stepping_range)
6086         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6087         functions.
6088         (cli_interpreter_init): Install them as 'end_stepping_range',
6089         'signal_received' 'signal_exited', 'exited' and 'no_history'
6090         observers.
6091         (_initialize_cli_interp): Remove cli_interp local.
6092         * infrun.c (handle_inferior_event): Call the several stop reason
6093         observers instead of printing the stop reason directly.
6094         (end_stepping_range): New function.
6095         (print_end_stepping_range_reason, print_signal_exited_reason)
6096         (print_exited_reason, print_signal_received_reason)
6097         (print_no_history_reason): Make static, and add an uiout
6098         parameter.  Print to that instead of to CURRENT_UIOUT.
6099         * infrun.h (print_end_stepping_range_reason)
6100         (print_signal_exited_reason, print_exited_reason)
6101         (print_signal_received_reason print_no_history_reason): New
6102         declarations.
6103         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6104         'mi_uiout'.
6105         <cli_uiout>: New field.
6106         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
6107         uiout for CLI output.  Install 'signal_received',
6108         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6109         observers.
6110         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6111         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6112         (mi_on_no_history): New functions.
6113         (ui_out_free_cleanup): Delete function.
6114         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6115         instead use the one already stored in the MI interpreter data.
6116         (mi_ui_out): Adjust.
6117         * tui/tui-interp.c: Include infrun.h and observer.h.
6118         (tui_interp): New global.
6119         (tui_on_signal_received, tui_on_end_stepping_range)
6120         (tui_on_signal_exited, tui_on_exited)
6121         (tui_on_no_history): New functions.
6122         (tui_init): Install them as 'end_stepping_range',
6123         'signal_received' 'signal_exited', 'exited' and 'no_history'
6124         observers.
6125         (_initialize_tui_interp): Delete tui_interp local.
6126
6127 2014-05-29  Pedro Alves  <palves@redhat.com>
6128
6129         PR gdb/15713
6130         * linux-nat.c (linux_nat_resume_callback): Rename the second
6131         parameter to 'except'.  Skip LP if it points to EXCEPT.
6132         (linux_nat_resume): Don't mark the event lwp as not stopped
6133         before resuming sibling lwps.  Instead ask
6134         linux_nat_resume_callback to skip the event lwp.  Mark it as not
6135         stopped after actually resuming it.
6136         (linux_handle_syscall_trap): Mark the lwp as not stopped after
6137         resuming it.
6138         (wait_lwp): Mark the lwp as stopped here.
6139         (stop_wait_callback): Mark the lwp as not stopped right after
6140         resuming it.  Don't mark lwps as stopped here.
6141         (linux_nat_filter_event): Mark the lwp as stopped earlier.
6142         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6143
6144 2014-05-29  Pedro Alves  <palves@redhat.com>
6145
6146         PR PR15693
6147         * infrun.c (resume): Determine how much to resume depending on
6148         whether the caller wanted a step, not whether we can hardware step
6149         the target.  Mark all threads that we intend to run as running,
6150         unless we're calling an inferior function.
6151         (normal_stop): If the thread is running an infcall, don't finish
6152         thread state.
6153         * target.c (target_resume): Don't mark threads as running here.
6154
6155 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
6156
6157         * serial.c (_initialize_serial): Remove support for
6158         the "set remotebaud" and "show remotebaud" commands.
6159         * NEWS: Add entry documenting the removal of that command.
6160
6161 2014-05-28  Yao Qi  <yao@codesourcery.com>
6162
6163         * charset.c: Fix typo in comments.
6164
6165 2014-05-27  Gary Benson  <gbenson@redhat.com>
6166
6167         * utils.c (internal_vproblem): Prompt for a bug report.
6168
6169 2014-05-26  Andy Wingo  <wingo@igalia.com>
6170
6171         * guile/scm-arch.c (arscm_mark_arch_smob):
6172         * guile/scm-block.c (bkscm_mark_block_smob)
6173         (bkscm_mark_block_syms_progress_smob):
6174         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6175         * guile/scm-exception.c (exscm_mark_exception_smob):
6176         * guile/scm-frame.c (frscm_mark_frame_smob):
6177         * guile/scm-iterator.c (itscm_mark_iterator_smob):
6178         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6179         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6180         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6181         (ppscm_mark_pretty_printer_worker_smob):
6182         * guile/scm-symbol.c (syscm_mark_symbol_smob):
6183         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6184         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6185         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6186         mark functions.
6187         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6188         function.
6189
6190 2014-05-26  Andy Wingo  <wingo@igalia.com>
6191             Doug Evans  <xdje42@gmail.com>
6192
6193         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6194         empty_base_class.  All uses updated.
6195         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6196         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6197         Adapt all callers.
6198         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6199         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6200         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6201         (gdbscm_gsmob_has_property_p, add_property_name)
6202         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6203         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6204         (gdb-object-has-property?, gdb-object-properties): Remove.
6205         (gdb-object-kind): Renamed from gsmob-kind.
6206
6207 2014-05-26  Andy Wingo  <wingo@igalia.com>
6208
6209         * configure.ac (try_guile_versions): Allow building with guile 2.2.
6210         * configure: Regenerate.
6211
6212 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6213
6214         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6215
6216 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6217
6218         * record-btrace.c (record_btrace_allow_memory_access): Remove.
6219         (replay_memory_access_read_only, replay_memory_access_read_write)
6220         (replay_memory_access_types, replay_memory_access)
6221         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6222         (cmd_set_record_btrace, cmd_show_record_btrace)
6223         (cmd_show_replay_memory_access): New.
6224         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6225         (record_btrace_remove_breakpoint): Replace
6226         record_btrace_allow_memory_access with replay_memory_access.
6227         (_initialize_record_btrace): Add commands.
6228         * NEWS: Announce it.
6229
6230 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6231
6232         * aarch64-linux-nat.c (asm/ptrace.h): Include.
6233
6234 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6235
6236         * MAINTAINERS (Write After Approval): Move self back from
6237         paper trail.
6238
6239 2014-05-22  Pedro Alves  <palves@redhat.com>
6240
6241         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6242         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6243         (disable_randomization, enum exec_direction_kind)
6244         (execution_direction, stop_registers, start_remote)
6245         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6246         (wait_for_inferior, normal_stop, get_last_target_status)
6247         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6248         (insert_step_resume_breakpoint_at_sal)
6249         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6250         (set_step_info, print_stop_event, signal_stop_state)
6251         (signal_print_state, signal_pass_state, signal_stop_update)
6252         (signal_print_update, signal_pass_update)
6253         (update_signals_program_target, clear_exit_convenience_vars)
6254         (displaced_step_dump_bytes, update_observer_mode)
6255         (signal_catch_update, gdb_signal_from_command): Move
6256         declarations ...
6257         * infrun.h: ... to this new file.
6258         * amd64-tdep.c: Include infrun.h.
6259         * annotate.c: Include infrun.h.
6260         * arch-utils.c: Include infrun.h.
6261         * arm-linux-tdep.c: Include infrun.h.
6262         * arm-tdep.c: Include infrun.h.
6263         * break-catch-sig.c: Include infrun.h.
6264         * breakpoint.c: Include infrun.h.
6265         * common/agent.c: Include infrun.h instead of inferior.h.
6266         * corelow.c: Include infrun.h.
6267         * event-top.c: Include infrun.h.
6268         * go32-nat.c: Include infrun.h.
6269         * i386-tdep.c: Include infrun.h.
6270         * inf-loop.c: Include infrun.h.
6271         * infcall.c: Include infrun.h.
6272         * infcmd.c: Include infrun.h.
6273         * infrun.c: Include infrun.h.
6274         * linux-fork.c: Include infrun.h.
6275         * linux-nat.c: Include infrun.h.
6276         * linux-thread-db.c: Include infrun.h.
6277         * monitor.c: Include infrun.h.
6278         * nto-tdep.c: Include infrun.h.
6279         * procfs.c: Include infrun.h.
6280         * record-btrace.c: Include infrun.h.
6281         * record-full.c: Include infrun.h.
6282         * remote-m32r-sdi.c: Include infrun.h.
6283         * remote-mips.c: Include infrun.h.
6284         * remote-notif.c: Include infrun.h.
6285         * remote-sim.c: Include infrun.h.
6286         * remote.c: Include infrun.h.
6287         * reverse.c: Include infrun.h.
6288         * rs6000-tdep.c: Include infrun.h.
6289         * s390-linux-tdep.c: Include infrun.h.
6290         * solib-irix.c: Include infrun.h.
6291         * solib-osf.c: Include infrun.h.
6292         * solib-svr4.c: Include infrun.h.
6293         * target.c: Include infrun.h.
6294         * top.c: Include infrun.h.
6295         * windows-nat.c: Include infrun.h.
6296         * mi/mi-interp.c: Include infrun.h.
6297         * mi/mi-main.c: Include infrun.h.
6298         * python/py-threadevent.c: Include infrun.h.
6299
6300 2014-05-22  Pedro Alves  <palves@redhat.com>
6301
6302         * infrun.c (handle_inferior_event): Store the exit code for
6303         --return-child-result here, instead of ...
6304         (print_exited_reason): ... here.
6305
6306 2014-05-21  Pedro Alves  <palves@redhat.com>
6307
6308         PR gdb/13860
6309         * gdbthread.h (struct thread_control_state): New field
6310         `command_interp'.
6311         * infrun.c (follow_fork): Copy the new thread control field to the
6312         child fork thread.
6313         (clear_proceed_status_thread): Clear the new thread control field.
6314         (proceed): Set the new thread control field.
6315         * interps.h (command_interp): Declare.
6316         * interps.c (command_interpreter): New global.
6317         (command_interp): New function.
6318         (interp_exec): Set `command_interpreter' while here.
6319         * cli-out.c (cli_uiout_dtor): New function.
6320         (cli_ui_out_impl): Install it.
6321         * mi/mi-interp.c: Include cli-out.h.
6322         (mi_cmd_interpreter_exec): Add comment.
6323         (restore_current_uiout_cleanup): New function.
6324         (ui_out_free_cleanup): New function.
6325         (mi_on_normal_stop): If finishing an execution command started by
6326         a CLI command, or any kind of breakpoint-like event triggered,
6327         print the stop event to the output (CLI) stream.
6328         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6329
6330 2014-05-21  Pedro Alves  <palves@redhat.com>
6331
6332         * cli/cli-cmds.c (list_command): Handle the first "list" after the
6333         current source line having changed.
6334         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6335         * infrun.c (normal_stop): Adjust call to
6336         set_current_sal_from_frame.
6337         * source.c (clear_lines_listed_range): New function.
6338         (set_current_source_symtab_and_line, identify_source_line): Clear
6339         the lines listed range.
6340         (line_info): Handle the first "info line" after the current source
6341         line having changed.
6342         * stack.c (print_stack_frame): Remove center handling.
6343         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
6344         center sal.line.
6345
6346 2014-05-21  Pedro Alves  <palves@redhat.com>
6347
6348         * inf-child.c (inf_child_mourn_inferior): New function.
6349         * inf-child.h (inf_child_mourn_inferior): New declaration.
6350         * darwin-nat.c (darwin_mourn_inferior): Use
6351         inf_child_mourn_inferior.
6352         * gnu-nat.c (gnu_mourn_inferior): Likewise.
6353         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6354         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6355         * nto-procfs.c (procfs_mourn_inferior): Likewise.
6356         * windows-nat.c (windows_mourn_inferior): Likewise.
6357
6358 2014-05-21  Doug Evans  <xdje42@gmail.com>
6359
6360         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6361
6362 2014-05-21  Doug Evans  <xdje42@gmail.com>
6363
6364         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6365         (gdbscm_out_of_range_error): Ditto.
6366         (gdbscm_memory_error): Ditto.
6367         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6368         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6369         (gdbscm_out_of_range_error): Update.
6370         (gdbscm_memory_error): Update.
6371         (gdbscm_scm_to_target_string_unsafe): Delete.
6372
6373 2014-05-21  Pedro Alves  <palves@redhat.com>
6374
6375         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6376         globals.
6377         (inf_child_open_target): New function.
6378         (inf_child_open): Use inf_child_open_target to push the target
6379         instead of erroring out.
6380         (inf_child_disconnect, inf_child_close)
6381         (inf_child_maybe_unpush_target): New functions.
6382         (inf_child_target): Install inf_child_disconnect and
6383         inf_child_close.  Store a pointer to the returned object.
6384         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6385         declarations.
6386         * target.c (auto_connect_native_target): New global.
6387         (show_default_run_target): New function.
6388         (find_default_run_target): Return NULL if automatically connecting
6389         to the native target is disabled.
6390         (_initialize_target): Install set/show auto-connect-native-target.
6391         * NEWS: Mention "set auto-connect-native-target", and "target
6392         native".
6393         * linux-nat.c (super_close): New global.
6394         (linux_nat_close): Call super_close.
6395         (linux_nat_add_target): Store a pointer to the base class's
6396         to_close method.
6397         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6398         inf_child_maybe_unpush.
6399         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6400         already pushed.
6401         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6402         the inferior.  Use inf_child_maybe_unpush_target.
6403         (inf_ttrace_attach): Don't push the target if it is already
6404         pushed.
6405         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6406         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6407         after mourning the inferior.  Use inf_child_maybe_unpush_target.
6408         (darwin_attach_pid): Don't push the target if it is already
6409         pushed.
6410         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6411         mourning the inferior.  Use inf_child_maybe_unpush_target.
6412         (gnu_detach): Use inf_child_maybe_unpush_target.
6413         * go32-nat.c (go32_create_inferior): Don't push the target if it
6414         is already pushed.
6415         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6416         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6417         (procfs_open): Rename to ...
6418         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
6419         comments.  Can target_preopen before changing node.  Call
6420         inf_child_open_target to push the target explicitly.
6421         (procfs_attach): Don't push the target if it is already pushed.
6422         (procfs_detach): Use inf_child_maybe_unpush_target.
6423         (procfs_create_inferior): Don't push the target if it is already
6424         pushed.
6425         (nto_native_ops): New global.
6426         (procfs_open): Reimplement.
6427         (procfs_native_open): New function.
6428         (init_procfs_targets): Install procfs_native_open as to_open of
6429         "target native".  Store a pointer to the "native" target in
6430         nto_native_ops.
6431         * procfs.c (procfs_attach): Don't push the target if it is already
6432         pushed.
6433         (procfs_detach): Use inf_child_maybe_unpush_target.
6434         (procfs_mourn_inferior): Only unpush the target after mourning the
6435         inferior.  Use inf_child_maybe_unpush_target.
6436         (procfs_init_inferior): Don't push the target if it is already
6437         pushed.
6438         * windows-nat.c (do_initial_windows_stuff): Don't push the target
6439         if it is already pushed.
6440
6441 2014-05-21  Pedro Alves  <palves@redhat.com>
6442
6443         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6444         and "procfs" targets are now called "native" instead.
6445
6446 2014-05-21  Pedro Alves  <palves@redhat.com>
6447
6448         * go32-nat.c (go32_open): Delete.
6449         (go32_target): Don't override the to_open method.
6450
6451 2014-05-21  Pedro Alves  <palves@redhat.com>
6452
6453         * nto-procfs.c (procfs_can_run): New function.
6454         (nto_procfs_ops): New global.
6455         (init_procfs_targets): New, based on procfs_target.  Install
6456         "target native" in addition to "target procfs".
6457         (_initialize_procfs): Call init_procfs_targets instead of adding
6458         the target here.
6459
6460 2014-05-21  Pedro Alves  <palves@redhat.com>
6461
6462         * windows-nat.c (windows_target): Don't override to_shortname,
6463         to_longname or to_doc.
6464
6465 2014-05-21  Pedro Alves  <palves@redhat.com>
6466
6467         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6468         to_doc.
6469
6470 2014-05-21  Pedro Alves  <palves@redhat.com>
6471
6472         * darwin-nat.c (_initialize_darwin_inferior): Don't override
6473         to_shortname, to_longname or to_doc.
6474
6475 2014-05-21  Pedro Alves  <palves@redhat.com>
6476
6477         * go32-nat.c (go32_target): Don't override to_shortname,
6478         to_longname or to_doc.
6479
6480 2014-05-21  Pedro Alves  <palves@redhat.com>
6481
6482         * inf-child.c (inf_child_open): Remove mention of "child".
6483         (inf_child_target): Rename target to "native" instead of "child".
6484
6485 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6486
6487         * Makefile.in (SFILES): Delete "regset.c".
6488         (COMMON_OBS): Delete "regset.o".
6489         * regset.c: Remove.
6490         * regset.h (regset_alloc): Delete prototype.
6491
6492 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6493
6494         * sparc-linux-tdep.c (sparc32_linux_gregset)
6495         (sparc32_linux_fpregset): New static regset structures.
6496         (sparc32_linux_init_abi): Drop dynamic regset allocations.
6497         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6498         'fpregset' fields.
6499         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6500         (sparc64_linux_fpregset): New static regset structures.
6501         (sparc64_linux_init_abi): Drop dynamic regset allocations.
6502         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6503         New static regset structures.
6504         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6505         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6506         New static regset structures.
6507         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6508         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6509         New static regset structures.
6510         (sparc64obsd_init_abi): Drop dynamic regset allocations.
6511         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6512         New static regset structures.
6513         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6514
6515 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6516
6517         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6518         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6519         register maps ("regmaps") from "*regset" to "*regmap".  Do this
6520         for all regmap types and variables.
6521         * sparc-linux-tdep.c (sparc32_linux_step_trap)
6522         (sparc32_linux_supply_core_gregset)
6523         (sparc32_linux_collect_core_gregset)
6524         (sparc32_linux_supply_core_fpregset)
6525         (sparc32_linux_collect_core_fpregset): Likewise.
6526         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6527         (sparc_gregmap, sparc_fpregmap): ... these.
6528         (sparc_supply_gregset, sparc_collect_gregset)
6529         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6530         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6531         (_initialize_sparc_nat): Rename regmaps.
6532         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6533         (sparc_gregmap, sparc_fpregmap): ... these.
6534         (sparc_supply_gregset, sparc_collect_gregset)
6535         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6536         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6537         Rename macros to...
6538         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6539         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6540         Likewise.
6541         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6542         Rename to...
6543         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6544         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6545         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6546         regmaps.
6547         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6548         (sparc32_bsd_fpregset): Rename to...
6549         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6550         (sparc32_bsd_fpregmap): ... these.
6551         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6552         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6553         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6554         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6555         (struct sparc_gregmap, struct sparc_fpregmap)
6556         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6557         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6558         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6559         (sparc32_supply_regset, sparc32_collect_gregset)
6560         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6561         prototypes.
6562         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6563         (sparc64_linux_ptrace_gregmap): ... this.
6564         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6565         (_initialize_sparc64_linux_nat): Rename regmaps.
6566         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6567         (sparc64_linux_core_gregmap): ... this.
6568         (sparc64_linux_supply_core_gregset)
6569         (sparc64_linux_collect_core_gregset)
6570         (sparc64_linux_supply_core_fpregset)
6571         (sparc64_linux_collect_core_fpregset): Rename regmaps.
6572         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6573         (sparc64_sol2_fpregset): Rename to...
6574         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6575         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6576         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6577         regmaps.
6578         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6579         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6580         (sparc64_bsd_fpregset): Rename to...
6581         (struct sparc_gregmap, sparc64_sol2_gregmap)
6582         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6583         (sparc64_bsd_fpregmap): ... these.
6584         (sparc64_supply_gregset, sparc64_collect_gregset)
6585         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6586         prototypes.
6587         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6588         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6589         (sparc64fbsd_gregmap): ... this.
6590         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6591         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6592         Rename regmaps.
6593         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6594         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6595         (sparc64nbsd_collect_fpregset): Likewise.
6596         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6597         (sparc64nbsd_gregmap): ... this.
6598         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6599         regmaps.
6600         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6601         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6602         (sparc64obsd_gregmap): ... this.
6603         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6604         regmaps.
6605         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6606         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6607         (sparc32nbsd_gregmap): ... this.
6608         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6609         regmaps.
6610
6611 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6612
6613         * score-tdep.c (score7_linux_gregset): New static regset
6614         structure.
6615         (score7_linux_regset_from_core_section): Remove dynamic regset
6616         allocation.
6617         (score_gdbarch_init): Drop allocation of tdep structure.
6618         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6619
6620 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6621
6622         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6623         regset structures.
6624         (am33_regset_from_core_section): Remove dynamic regset
6625         allocations.
6626
6627 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6628
6629         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6630         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6631         structures.
6632         (mips_linux_regset_from_core_section): Remove dynamic regset
6633         allocations.
6634         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6635         'gregset64', 'fpregset', and 'fpregset64'.
6636         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6637         deleted tdep fields.
6638
6639 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6640
6641         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6642         regset structures.
6643         (amd64_regset_from_core_section): Remove dynamic regset
6644         allocations.
6645         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6646         structure.
6647         (amd64obsd_regset_from_core_section): Remove dynamic regset
6648         allocation.
6649         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6650         Likewise.
6651         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6652         x86-common regset supply function.
6653         * i386-tdep.c (i386_collect_gregset): Make static.
6654         (i386_gregset): New global regset structure.
6655         (i386_fpregset, i386_xstateregset): New static regset structures.
6656         (i386_regset_from_core_section): Remove dynamic regset
6657         allocations.
6658         (i386_gdbarch_init): Remove initialization of tdep fields
6659         'gregset', 'fpregset', and 'xstateregset'.
6660         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6661         'fpregset', and 'xstateregset'.
6662         (i386_collect_gregset): Remove prototype.
6663         (i386_gregset): New declaration.
6664         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6665         structure.
6666         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6667         allocation.
6668
6669 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6670
6671         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6672         (arm_linux_vfpregset): New static regset structures.
6673         (arm_linux_regset_from_core_section): Remove dynamic allocation of
6674         regset structures.
6675         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6676         and 'vfpregset' fields.
6677
6678 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6679
6680         * aarch64-linux-tdep.c (aarch64_linux_gregset)
6681         (aarch64_linux_fpregset): New static regset structures.
6682         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6683         of regset structures.
6684         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6685         'fpregset' fields.
6686
6687 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6688
6689         * regset.h (struct regset): Remove gdbarch field.
6690         * regset.c (regset_alloc): Drop initialization of gdbarch field.
6691         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6692         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6693         Likewise.
6694         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6695         (ppc32_linux_fpregset, ppc32_linux_vrregset)
6696         (ppc32_linux_vsxregset): Likewise.
6697         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6698         via the regcache instead of the regset.
6699         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6700         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6701         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6702         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6703         Likewise.
6704
6705 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6706
6707         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6708         Constify structures.
6709         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6710         (alphanbsd_aout_gregset): Likewise.
6711         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6712         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6713         Likewise.
6714         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6715         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6716         Likewise.
6717         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6718         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6719         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6720         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6721         * m88k-tdep.c (m88k_gregset): Likewise.
6722         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6723         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6724         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6725         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6726         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6727         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6728         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6729         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6730         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6731         Likewise.
6732         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6733         * sh-tdep.h (sh_corefile_gregset): Likewise.
6734         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6735         * vax-tdep.c (vax_gregset): Likewise.
6736
6737 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6738
6739         Fix TLS access for -static -pthread.
6740         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6741         (try_thread_db_load_1): Initialize it.
6742         (thread_db_get_thread_local_address): Call it if LM is zero.
6743         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6744         * target.h (struct target_ops) (to_get_thread_local_address): Add
6745         load_module_addr comment.
6746
6747 2014-05-21  Pedro Alves  <palves@redhat.com>
6748
6749         * dcache.c (dcache_read_memory_partial): If reading the cache line
6750         fails, fallback to reading just the memory the caller wanted.
6751
6752 2014-05-20  Doug Evans  <dje@google.com>
6753
6754         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6755         instead of get_current_arch.
6756
6757 2014-05-20  Pedro Alves  <palves@redhat.com>
6758
6759         * NEWS: Mention that compare-sections now works with all targets.
6760
6761         * remote.c (PACKET_qCRC): New enum value.
6762         (remote_verify_memory): Don't send qCRC if the target has no
6763         execution.  Use packet_support/packet_ok.  If the target doesn't
6764         support the qCRC packet, fallback to a deep memory copy.
6765         (compare_sections_command): Say "target image" instead of "remote
6766         executable".
6767         (_initialize_remote): Add PACKET_qCRC to the list of config
6768         packets that have no associated command.  Extend comment.
6769         * target.c (simple_verify_memory, default_verify_memory): New
6770         function.
6771         * target.h (struct target_ops) <to_verify_memory>: Default to
6772         default_verify_memory.
6773         (simple_verify_memory): New declaration.
6774         * target-delegates.c: Regenerate.
6775
6776 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
6777
6778         * record-btrace.c (record_btrace_step_thread): Check for empty history.
6779
6780 2014-05-20  Hui Zhu  <hui@codesourcery.com>
6781             Yao Qi  <yao@codesourcery.com>
6782
6783         PR backtrace/16558
6784         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6785         and change address of sp and pc.
6786
6787 2014-05-19  Tom Tromey  <tromey@redhat.com>
6788
6789         * gdbtypes.c (rank_function): Use XNEWVEC.
6790         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6791
6792 2014-05-19  Doug Evans  <dje@google.com>
6793
6794         * dwarf2read.c (build_type_psymtabs_1): Renamed from
6795         build_type_unit_groups and moved closer to only caller.  Remove
6796         arguments.  All references updated.  Remove outdated .gdb_index
6797         comment.
6798         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6799         build_type_psymtabs_1.
6800
6801 2014-05-19  Doug Evans  <dje@google.com>
6802
6803         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6804         n_type_unit_groups, all_type_unit_groups.  All uses removed.
6805         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6806         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
6807         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
6808         (add_type_unit_group_to_table): Delete.
6809
6810 2014-05-19  Doug Evans  <dje@google.com>
6811
6812         * eval.c (evaluate_subexp_standard): Add some comments.
6813
6814 2014-05-17  Doug Evans  <xdje42@gmail.com>
6815
6816         * progspace.c (remove_program_space): Delete, unused.
6817         * progspace.h (remove_program_space): Ditto.
6818
6819 2014-05-17  Doug Evans  <xdje42@gmail.com>
6820
6821         * inferior.c (prune_inferiors): Fix comment.
6822         (remove_inferior_command): Call prune_program_spaces.
6823
6824 2014-05-16  Doug Evans  <dje@google.com>
6825
6826         New command line option -D.
6827         * NEWS: Mention it.
6828         * main.c (set_gdb_data_directory): New function.
6829         (captured_main): Recognize -D.  Flag error for --data-directory "".
6830         Call set_gdb_data_directory.
6831         (print_gdb_help): Print --data-directory, -D.
6832         * main.h (set_gdb_data_directory): Declare.
6833         * top.c (staged_gdb_datadir): New static global.
6834         (set_gdb_datadir): Call set_gdb_data_directory
6835         (show_gdb_datadir): New function.
6836         (init_main): Update init of data-directory parameter.
6837
6838 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
6839
6840         Import the "dirfd" gnulib module.
6841         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6842         * gnulib/aclocal.m4: Update.
6843         * gnulib/config.in: Update.
6844         * gnulib/configure: Update.
6845         * gnulib/import/Makefile.am: Update.
6846         * gnulib/import/Makefile.in: Update.
6847         * gnulib/import/dirfd.c: New.
6848         * gnulib/import/m4/dirfd.m4: New.
6849         * gnulib/import/m4/gnulib-cache.m4: Update.
6850         * gnulib/import/m4/gnulib-comp.m4: Update.
6851
6852 2014-05-16  Pierre Muller  <muller@sourceware.org>
6853             Yao Qi  <yao@codesourcery.com>
6854
6855         * valprint.c (print_wchar): Move the code on checking whether
6856         W is a printable wide char to the default branch of switch
6857         statement below.  Call wchar_printable instead of gdb_iswprint.
6858
6859 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
6860
6861         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6862         ldr.w and ldrd instructions.
6863
6864 2014-05-15  Doug Evans  <dje@google.com>
6865
6866         * dwarf2read.c (read_structure_type): Delete outdated comments.
6867
6868 2014-05-14  Tom Tromey  <tromey@redhat.com>
6869
6870         * macrocmd.c (print_macro_definition): Reindent.
6871
6872 2014-05-13  Doug Evans  <xdje42@gmail.com>
6873
6874         * python/py-cmd.c (cmdpy_completer): Add comment.
6875         (completers): Make const.
6876
6877 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
6878
6879         * infrun.c (resume): Remove should_resume (unused).  Move up
6880         declaration of resume_ptid.
6881
6882 2014-05-13  Tom Tromey  <tromey@redhat.com>
6883
6884         * language.h (unop_type_check): Remove.
6885         (binop_type_check): Don't declare.
6886
6887 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
6888
6889         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6890         call to regcache_raw_collect.
6891
6892 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6893
6894         * mi/mi-console.c (mi_console_raw_packet): Use the value from
6895         mi_console->quote as the quoting character.
6896
6897 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6898
6899         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6900
6901 2014-04-29  Tom Tromey  <tromey@redhat.com>
6902
6903         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6904         "show debug varobj".
6905
6906 2014-05-07  Kyle McMartin  <kyle@redhat.com>
6907
6908         Pushed by Joel Brobecker  <brobecker@adacore.com>.
6909         * aarch64-tdep.c (aarch64_software_single_step): New function.
6910         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6911         with aarch64_software_single_step.
6912
6913 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
6914
6915         GDB 7.7.1 released.
6916
6917 2014-05-05  Keith Seitz  <keiths@redhat.com>
6918
6919         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6920         variable or history value is successfully parsed.
6921
6922 2014-05-05  Yao Qi  <yao@codesourcery.com>
6923             Pedro Alves  <palves@redhat.com>
6924
6925         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6926         address of blocks that intersects the requested range.  Trim
6927         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6928         sections.
6929         * ctf.c (ctf_xfer_partial): Likewise.
6930
6931 2014-05-05  Yao Qi  <yao@codesourcery.com>
6932
6933         * printcmd.c (display_command): Remove the check to
6934         target_has_execution.
6935
6936 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
6937
6938         * ppcobsd-nat.c: Include "obsd-nat.h".
6939         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6940         add_target.
6941         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6942
6943 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6944
6945         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6946         and 16-bit signed and unsigned arguments.  Update comment.
6947         (stap_parse_probe_arguments): Extend code to handle such
6948         arguments.  Use warning instead of complaint to notify about
6949         unrecognized bitness.
6950
6951 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6952
6953         PR breakpoints/16889
6954         * stap-probe.c (stap_parse_probe_arguments): Simplify
6955         check for non-prefixed probes (i.e., probes whose
6956         arguments do not start with "N@").  Always set the
6957         argument type to a sane value.
6958
6959 2014-05-01  David Taylor  <dtaylor@emc.com>
6960
6961         * remote.c (compare_sections_command): Add -r option to compare
6962         all loadable read-only sections.
6963
6964 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
6965
6966         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6967         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6968         Update all callers.
6969         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6970         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6971         Remove unused CORE_ADDR argument.  Update all callers.
6972
6973 2014-04-29  Pedro Alves  <palves@redhat.com>
6974
6975         * remote.c (struct packet_config) <detect>: Extend comment.
6976         (add_packet_config_cmd): Don't set the config's detect or support
6977         fields here.
6978         (init_all_packet_configs): Also initialize the config's 'detect'
6979         field.
6980         (reset_all_packet_configs_support): New function.
6981         (remote_open_1): Call reset_all_packet_configs_support instead of
6982         init_all_packet_configs.
6983         (_initialize_remote): Initialize all packet configs.  Assert that
6984         all packets have an associated command, except a few known
6985         outliers.
6986
6987 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6988
6989         * dwarf2read.c (read_subrange_type): Handle dynamic
6990         DW_AT_lower_bound attributes.
6991
6992 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6993
6994         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6995         dynamic bounds before computing its upper bound.
6996         (ada_discrete_type_low_bound): Same as above with the lower bound.
6997
6998 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6999
7000         * dwarf2read.c (is_dynamic_type): Return true for dynamic
7001         range types.  Adjust the array handling implementation to
7002         take advantage of this change.
7003         (resolve_dynamic_range): New function, mostly extracted from
7004         resolve_dynamic_bounds.
7005         (resolve_dynamic_array): New function, mostly extracted from
7006         resolve_dynamic_bounds.
7007         (resolve_dynamic_bounds): Delete.
7008         (resolve_dynamic_type): Reimplement.  Add handling of
7009         TYPE_CODE_RANGE types.
7010
7011 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7012
7013         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7014         handling of parallel ___XA types.
7015
7016 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7017
7018         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7019         unnecessary second call to static_unwrap_type.
7020
7021 2014-04-27  Hui Zhu  <hui@codesourcery.com>
7022
7023         * stack.c (print_frame_info): Call do_gdb_disassembly with
7024         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7025
7026 2014-04-26  Doug Evans  <xdje42@gmail.com>
7027
7028         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7029
7030 2014-04-25  Pedro Alves  <palves@redhat.com>
7031
7032         PR server/16255
7033         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7034         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
7035         and newline from built string.
7036         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7037         (linux_ptrace_attach_fail_reason): ... this.
7038         * linux-nat.c (linux_nat_attach): Adjust to use
7039         linux_ptrace_attach_fail_reason.
7040
7041 2014-04-25  Pedro Alves  <palves@redhat.com>
7042
7043         * remote.c (struct remote_state): Remove multi_process_aware,
7044         non_stop_aware, cond_tracepoints, cond_breakpoints,
7045         breakpoint_commands, fast_tracepoints, static_tracepoints,
7046         install_in_trace, disconnected_tracing,
7047         enable_disable_tracepoints, string_tracing, and
7048         augmented_libraries_svr4_read fields.
7049         (remote_multi_process_p): Move further below in the file.
7050         (struct packet_config): Add comments.
7051         (update_packet_config): Delete function.
7052         (show_packet_config_cmd): Use packet_config_support.
7053         (add_packet_config_cmd): Use NULL as set callback.
7054         (packet_ok): "set remote foo-packet"-style commands no longer
7055         change config->supported -- adjust.
7056         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7057         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7058         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7059         (PACKET_QNonStop, PACKET_multiprocess_feature)
7060         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7061         (PACKET_DisconnectedTracing_feature)
7062         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7063         (set_remote_protocol_packet_cmd): Delete function.
7064         (packet_config_support, packet_support): New functions.
7065         (set_remote_protocol_Z_packet_cmd): Don't call
7066         update_packet_config.
7067         (remote_query_attached, remote_pass_signals)
7068         (remote_program_signals, remote_threads_info)
7069         (remote_threads_extra_info, remote_start_remote): Use
7070         packet_support.
7071         (remote_start_remote): Use packet_config_support and
7072         packet_support.
7073         (init_all_packet_configs): Set all packets to unknown support,
7074         instead of calling update_packet_config.
7075         (remote_check_symbols): Use packet_support.
7076         (remote_supported_packet): Unconditionally set the packet config's
7077         support status.
7078         (remote_multi_process_feature, remote_non_stop_feature)
7079         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7080         (remote_breakpoint_commands_feature)
7081         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7082         (remote_install_in_trace_feature)
7083         (remote_disconnected_tracing_feature)
7084         (remote_enable_disable_tracepoint_feature)
7085         (remote_string_tracing_feature)
7086         (remote_augmented_libraries_svr4_read_feature): Delete functions.
7087         (remote_protocol_features): Adjust to use remote_supported_packet
7088         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7089         "ConditionalTracepoints", "ConditionalBreakpoints",
7090         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7091         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7092         "EnableDisableTracepoints", and "tracenz".
7093         (remote_query_supported): Use packet_support.
7094         (remote_open_1): Adjust.
7095         (extended_remote_attach_1): Use packet_support.  Switch on the
7096         result of packet_ok instead of checking whether the packet ended
7097         up disabled.
7098         (remote_vcont_resume): Use packet_support.
7099         (remote_resume, remote_stop_ns, fetch_register_using_p)
7100         (remote_prepare_to_store, store_register_using_P)
7101         (check_binary_download, remote_write_bytes): Use packet_support.
7102         (remote_vkill): Use packet_support.  Switch on the result of
7103         packet_ok instead of checking whether the packet ended up
7104         disabled.
7105         (extended_remote_supports_disable_randomization): Use
7106         packet_support.
7107         (extended_remote_run): Switch on the result of packet_ok instead
7108         of checking whether the packet ended up disabled.
7109         (remote_insert_breakpoint, remote_remove_breakpoint)
7110         (remote_insert_watchpoint, remote_remove_watchpoint)
7111         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7112         packet_support.
7113         (remote_search_memory): Use packet_config_support.
7114         (remote_get_thread_local_address, remote_get_tib_address)
7115         (remote_hostio_send_command, remote_can_execute_reverse): Use
7116         packet_support.
7117         (remote_supports_cond_tracepoints)
7118         (remote_supports_cond_breakpoints)
7119         (remote_supports_fast_tracepoints)
7120         (remote_supports_static_tracepoints)
7121         (remote_supports_install_in_trace)
7122         (remote_supports_enable_disable_tracepoint)
7123         (remote_supports_string_tracing)
7124         (remote_can_run_breakpoint_commands): Rewrite, checking whether
7125         the packet config says the feature is enabled or disabled.
7126         (remote_download_tracepoint, remote_trace_set_readonly_regions)
7127         (remote_get_trace_status): Use packet_support.
7128         (remote_set_disconnected_tracing): Adjust to check whether the
7129         feature is enabled with packet_support.
7130         (remote_set_trace_buffer_size, remote_use_agent)
7131         (remote_can_use_agent, remote_supports_btrace): Use
7132         packet_support.
7133         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7134         Use packet_config_support.
7135         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7136         the packet config says the feature is enabled or disabled.
7137         (set_range_stepping): Use packet_support.
7138
7139 2014-04-25  Tom Tromey  <tromey@redhat.com>
7140
7141         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7142         argument.
7143
7144 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
7145
7146         * NEWS: Mention support for C99 variable length arrays.
7147
7148 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
7149
7150         * ada-lang.c (standard_exc): Expand introductory comment.
7151
7152 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
7153             Walfred Tedeschi  <walfred.tedeschi@intel.com>
7154
7155         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7156         AVX512 registers.
7157         (amd64_linux_read_description): Add code to handle AVX512 xstate
7158         mask and return respective tdesc.
7159         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7160         and features/i386/x32-avx512-linux.c.
7161         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7162         (amd64_linux_core_read_description): Add code to handle AVX512
7163         xstate mask and return respective tdesc.
7164         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7165         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7166         calculation.
7167         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7168         (tdesc_amd64_avx512_linux): New prototype.
7169         (tdesc_x32_avx512_linux): Likewise.
7170         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7171         features/i386/x32-avx512.c.
7172         (amd64_ymm_avx512_names): New register names for pseudo
7173         registers YMM16-31.
7174         (amd64_ymmh_avx512_names): New register names for raw registers
7175         YMMH16-31.
7176         (amd64_k_names): New register names for K registers.
7177         (amd64_zmmh_names): New register names for ZMM raw registers.
7178         (amd64_zmm_names): New registers names for ZMM pseudo registers.
7179         (amd64_xmm_avx512_names): New register names for XMM16-31
7180         registers.
7181         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7182         registers.
7183         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7184         if feature is present.
7185         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7186         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7187         (AMD64_NUM_REGS): Adjust to new number of registers.
7188         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7189         registers supplied via XSTATE by AVX512 registers.
7190         (i386_linux_read_description): Add case for AVX512.
7191         * i386-linux-tdep.c: Include i386-avx512-linux.c.
7192         (i386_linux_gregset_reg_offset): Add AVX512 registers.
7193         (i386_linux_core_read_description): Add case for AVX512.
7194         (i386_linux_init_abi): Install supported register note section
7195         for AVX512.
7196         (_initialize_i386_linux_tdep): Add call to tdesc init function for
7197         AVX512.
7198         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7199         registers to be number of zmm7h + 1.
7200         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7201         * i386-tdep.c: Include features/i386/i386-avx512.c.
7202         (i386_zmm_names): Add ZMM pseudo register names array.
7203         (i386_zmmh_names): Add ZMM raw register names array.
7204         (i386_k_names): Add K raw register names array.
7205         (num_lower_zmm_regs): Add constant for the number of lower ZMM
7206         registers. AVX512 has 16 more ZMM registers than there are YMM
7207         registers.
7208         (i386_zmmh_regnum_p): Add function to look up register number of
7209         ZMM raw registers.
7210         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7211         (i386_k_regnum_p): Likewise for K raw registers.
7212         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7213         registers added by AVX512.
7214         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7215         registers added by AVX512.
7216         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7217         added by AVX512.
7218         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7219         (i386_pseudo_register_name): Add ZMM pseudo registers.
7220         (i386_zmm_type): Construct and return vector registers type for ZMM
7221         registers.
7222         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7223         ZMM0-31 pseudo registers and K registers.
7224         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7225         and YMM16-31 registers from register cache.
7226         (i386_pseudo_register_write): Add code to write  K, ZMM and
7227         YMM16-31 registers.
7228         (i386_register_reggroup_p): Add code to include/exclude AVX512
7229         registers in/from respective register groups.
7230         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7231         registers if feature is present in xcr0.
7232         (i386_gdbarch_init): Add code to initialize AVX512 feature
7233         variables in tdep structure, wire in pseudo registers and call
7234         initialize_tdesc_i386_avx512.
7235         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7236         variables.
7237         (i386_regnum): Add AVX512 registers.
7238         (I386_SSE_NUM_REGS): New define for number of SSE registers.
7239         (I386_AVX_NUM_REGS): Likewise for AVX registers.
7240         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7241         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7242         512 bits wide.
7243         (i386_xmm_avx512_regnum_p): New prototype for register look up.
7244         (i386_ymm_avx512_regnum_p): Likewise.
7245         (i386_k_regnum_p): Likewise.
7246         (i386_zmm_regnum_p): Likewise.
7247         (i386_zmmh_regnum_p): Likewise.
7248         * i387-tdep.c : Update year in copyright notice.
7249         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7250         XSAVE buffer.
7251         (XSAVE_YMM_AVX512_ADDR): New macro.
7252         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7253         XSAVE buffer.
7254         (XSAVE_XMM_AVX512_ADDR): New macro.
7255         (xsave_avx512_k_offset): New table for K register offsets in
7256         XSAVE buffer.
7257         (XSAVE_AVX512_K_ADDR): New macro.
7258         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7259         in XSAVE buffer.
7260         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7261         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7262         buffer.
7263         (i387_collect_xsave): Add code to collect AVX512 registers from
7264         XSAVE buffer.
7265         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7266         of XMM16-31 registers.
7267         (I387_NUM_K_REGS): New define for number of K registers.
7268         (I387_K0_REGNUM): New define for K0 register number.
7269         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7270         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7271         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7272         registers.
7273         (I387_YMM16H_REGNUM): New define for YMM16H register number.
7274         (I387_XMM16_REGNUM): New define for XMM16 register number.
7275         (I387_YMM0_REGNUM): New define for YMM0 register number.
7276         (I387_KEND_REGNUM): New define for last K register number.
7277         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7278         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7279         number.
7280         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7281         number.
7282         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7283         size.
7284         * features/Makefile: Add AVX512 related files.
7285         * features/i386/32bit-avx512.xml: New file.
7286         * features/i386/64bit-avx512.xml: Likewise.
7287         * features/i386/amd64-avx512-linux.c: Likewise.
7288         * features/i386/amd64-avx512-linux.xml: Likewise.
7289         * features/i386/amd64-avx512.c: Likewise.
7290         * features/i386/amd64-avx512.xml: Likewise.
7291         * features/i386/i386-avx512-linux.c: Likewise.
7292         * features/i386/i386-avx512-linux.xml: Likewise.
7293         * features/i386/i386-avx512.c: Likewise.
7294         * features/i386/i386-avx512.xml: Likewise.
7295         * features/i386/x32-avx512-linux.c: Likewise.
7296         * features/i386/x32-avx512-linux.xml: Likewise.
7297         * features/i386/x32-avx512.c: Likewise.
7298         * features/i386/x32-avx512.xml: Likewise.
7299         * regformats/i386/amd64-avx512-linux.dat: New file.
7300         * regformats/i386/amd64-avx512.dat: Likewise.
7301         * regformats/i386/i386-avx512-linux.dat: Likewise.
7302         * regformats/i386/i386-avx512.dat: Likewise.
7303         * regformats/i386/x32-avx512-linux.dat: Likewise.
7304         * regformats/i386/x32-avx512.dat: Likewise.
7305         * NEWS: Add note about new support for AVX512.
7306
7307
7308 2014-04-23  Pedro Alves  <palves@redhat.com>
7309
7310         * breakpoint.c (insert_bp_location): Tolerate errors if the
7311         breakpoint is set in a user-loaded objfile.
7312         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
7313         location is marked shlib_disabled.  If the breakpoint is set in a
7314         user-loaded objfile is a GDB-side memory breakpoint, validate it
7315         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
7316         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
7317         flag.
7318         * mem-break.c (memory_validate_breakpoint): New function.
7319         * objfiles.c (userloaded_objfile_contains_address_p): New
7320         function.
7321         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7322         * target.h (memory_validate_breakpoint): New declaration.
7323
7324 2014-04-23  Pedro Alves  <palves@redhat.com>
7325
7326         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7327         the breakpoint is set in a shared library, only suppress
7328         errors for software breakpoints, not hardware breakpoints.
7329
7330 2014-04-22  Pedro Alves  <palves@redhat.com>
7331
7332         * infrun.c (schedlock_applies): New function, factored out from
7333         find_thread_needs_step_over.
7334         (find_thread_needs_step_over): Use it.
7335         (switch_back_to_stepped_thread): Always clear trap_expected if the
7336         step over is finished.  Return early if scheduler locking applies.
7337         Look for the stepping thread and a potential step-over thread with
7338         a single loop.
7339         (currently_stepping_or_nexting_callback): Delete.
7340
7341 2014-04-22  Nick Clifton  <nickc@redhat.com>
7342
7343         * NEWS: Mention that ARM sim now supports tracing.
7344
7345 2014-04-22  Yao Qi  <yao@codesourcery.com>
7346
7347         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7348         to ...
7349         * tracefile.c (tracefile_fetch_registers): ... it.  New
7350         function.
7351         * tracefile.h (tracefile_fetch_registers): Declare.
7352         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
7353         tracefile_fetch_registers.
7354
7355 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
7356
7357         PR gdb/14018
7358         * windows-nat.c (thread_rec): Don't display a warning when
7359         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
7360         fails for any reason, set th->suspended to -1, so that we don't
7361         try to resume such a thread.  Also, don't return NULL in these
7362         cases, to avoid completely ruin the session due to "PC register is
7363         not available" error.
7364         (do_windows_fetch_inferior_registers): Check errors in
7365         GetThreadContext call.
7366         (windows_continue): Accept an additional argument KILLED; if not
7367         zero, ignore errors in the SetThreadContext call, since the
7368         inferior was killed and is shutting down.
7369         (windows_resume, get_windows_debug_event)
7370         (windows_create_inferior, windows_mourn_inferior)
7371         (windows_kill_inferior): All callers of windows_continue changed
7372         to adjust to its new calling sequence.
7373
7374 2014-04-19  Yao Qi  <yao@codesourcery.com>
7375
7376         * ctf.c (ctf_open): Call post_create_inferior.
7377
7378 2014-04-19  Yao Qi  <yao@codesourcery.com>
7379
7380         * ctf.c (handle_id): New static variable.
7381         (ctf_open_dir): Get handle_id from bt_context_add_trace return
7382         value.  Get the declaration of event "register" and get length
7383         of field "contents".
7384
7385 2014-04-19  Yao Qi  <yao@codesourcery.com>
7386
7387         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7388
7389 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
7390
7391         * valops.c (oload_method_static): Remove unnecessary argument
7392         METHOD.  Update all callers.
7393
7394 2014-04-18  Pedro alves  <palves@redhat.com>
7395             Tom Tromey  <tromey@redhat.com>
7396
7397         PR backtrace/15558
7398         * frame.c (get_prev_frame_1): Rename to ...
7399         (get_prev_frame_always): ... this, and make extern.  Adjust.
7400         (skip_artificial_frames): Use get_prev_frame_always.
7401         (frame_unwind_caller_id, frame_pop, get_prev_frame)
7402         (get_frame_unwind_stop_reason): Adjust to rename.
7403         * frame.h (get_prev_frame_always): Declare.
7404         * inline-frame.c: Include frame.h.
7405         (inline_frame_this_id): Use get_prev_frame_always.
7406
7407 2014-04-18  Tristan Gingold  <gingold@adacore.com>
7408
7409         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7410         code by using bfd_mach_o_get_base_address.
7411
7412 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7413
7414         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7415         (spu_ax_pseudo_register_collect): New function.
7416         (spu_ax_pseudo_register_push_stack): Likewise.
7417         (spu_dwarf_reg_to_regnum): Likewise.
7418         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
7419
7420 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7421
7422         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7423         Replace FRAME argument with FRAME_ID.
7424         * gdbarch.c, gdbarch.h: Regenerate.
7425         * findvar.c (default_value_from_register): Add GDBARCH argument;
7426         replace FRAME by FRAME_ID.  No longer call get_frame_id.
7427         (value_from_register): Update call to gdbarch_value_from_register.
7428         * value.h (default_value_from_register): Update prototype.
7429         * s390-linux-tdep.c (s390_value_from_register): Update interface
7430         and call to default_value_from_register.
7431         * spu-tdep.c (spu_value_from_register): Likewise.
7432
7433         * findvar.c (address_from_register): Remove TYPE argument.
7434         Do not call value_from_register; use gdbarch_value_from_register
7435         with null_frame_id instead.
7436         * value.h (address_from_register): Update prototype.
7437         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7438         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7439         address_from_register interface change.
7440
7441 2014-04-17  Yao Qi  <yao@codesourcery.com>
7442
7443         * gdbtypes.h: Update comments to link to types and macros'
7444         definitions.
7445
7446 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
7447
7448         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7449
7450 2014-04-16  Keith Seitz  <keiths@redhat.com>
7451
7452         PR gdb/15827
7453         * dwarf2read.c (skip_one_die): Check that all relative-offset
7454         sibling DIEs fall within range of the current reader's buffer.
7455         (read_partial_die): Likewise.
7456
7457 2014-04-16  Keith Seitz  <keiths@redhat.com>
7458
7459         PR c++/16597
7460         * cp-namespace.c (lookup_symbol_file): If the type name of
7461         `this' is NULL, return immediately.
7462
7463 2014-04-14  Keith Seitz  <keiths@redhat.com>
7464
7465         PR c++/16253
7466         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7467         from symbol_matches_domain in symtab.c. All local callers
7468         of symbol_matches_domain updated.
7469         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7470         search STRUCT_DOMAIN.
7471         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7472         independently.  standard_lookup will do that automatically.
7473         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7474         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7475         (cp_lookup_symbol_in_namespace): Likewise.
7476         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7477         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7478         may return a STRUCT_DOMAIN match.
7479         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7480         * cp-support.c: Include language.h.
7481         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7482         VAR_DOMAIN.
7483         * psymtab.c (match_partial_symbol): Compare the requested
7484         domain with the symbol's domain directly.
7485         (lookup_partial_symbol): Likewise.
7486         * symtab.c (lookup_symbol_in_language): Explain when/why
7487         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7488         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7489         appropriate languages.
7490         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7491         and moved to ada-lang.c
7492         (lookup_block_symbol): Explain that this function only returns
7493         symbol matching the requested DOMAIN.
7494         Compare the requested domain with the symbol's domain directly.
7495         (iterate_over_symbols): Compare the requested domain with the
7496         symbol's domain directly.
7497         * symtab.h (symbol_matches_domain): Remove.
7498
7499 2014-04-14  Tom Tromey  <tromey@redhat.com>
7500
7501         PR c++/15246:
7502         * c-exp.y (type_aggregate_p): New function.
7503         (qualified_name, classify_inner_name): Use it.
7504         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7505         and TYPE_TARGET_TYPE of an enum type.
7506         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7507         an enum type.
7508         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7509         handle TYPE_DECLARED_CLASS.
7510         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7511         types.
7512         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7513         * valops.c (enum_constant_from_type): New function.
7514         (value_aggregate_elt): Use it.
7515         * cp-namespace.c (cp_lookup_nested_symbol): Handle
7516         TYPE_CODE_ENUM.
7517
7518 2014-04-14  Tom Tromey  <tromey@redhat.com>
7519
7520         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7521         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7522         const.
7523         * value.h (value_aggregate_elt): Update.
7524
7525 2014-04-14  Tom Tromey  <tromey@redhat.com>
7526
7527         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7528
7529 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7530
7531         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7532         (evaluate_subexp_standard): Pass noside argument.
7533         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7534         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7535         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7536         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7537         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7538
7539 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7540
7541         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7542         points to a constant blob.
7543
7544 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7545
7546         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7547         property and store it as the high bound and flag the range accordingly.
7548         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7549         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7550         * gdbtypes.h (enum range_flags): New enum.
7551         (struct range_bounds): Add flags member.
7552
7553 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7554
7555         * c-typeprint.c (c_type_print_varspec_suffix): Added
7556         check for not yet resolved high bound. If unresolved, print
7557         "variable length" string to the console instead of random
7558         length.
7559
7560 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7561
7562         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7563         value.
7564         (ada_template_to_fixed_record_type_1): Likewise.
7565         (ada_to_fixed_type_1): Likewise.
7566         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7567         (cp_print_value): Likewise.
7568         * d-valprint.c (dynamic_array_type): Likewise.
7569         * findvar.c (address_of_variable): Likewise.
7570         * jv-valprint.c (java_value_print): Likewise.
7571         * valops.c (value_ind): Likewise.
7572         * value.c (coerce_ref): Likewise.
7573
7574 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7575
7576         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7577         value and retrieve the dynamic type size.
7578
7579 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7580
7581         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7582         passed to sizeof is dynamic evaluate the argument to compute the length.
7583
7584 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7585             Joel Brobecker  <brobecker@adacore.com>
7586
7587         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7588         (dwarf2_evaluate_property): New function.
7589         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7590         * dwarf2read.c (attr_to_dynamic_prop): New function.
7591         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7592         attribute.
7593         * gdbtypes.c: Include dwarf2loc.h.
7594         (is_dynamic_type): New function.
7595         (resolve_dynamic_type): New function.
7596         (resolve_dynamic_bounds): New function.
7597         (get_type_length): New function.
7598         (check_typedef): Use get_type_length to compute type length.
7599         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7600         (TYPE_LOW_BOUND_KIND): New macro.
7601         (is_dynamic_type): New function prototype.
7602         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7603         to resolve dynamic properties of the type. Update comment.
7604         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7605
7606 2014-04-14  Richard Henderson  <rth@redhat.com>
7607
7608         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7609
7610 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
7611             Doug Evans  <xdje42@gmail.com>
7612
7613         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7614         dereference TYPE_CODE_REF values.
7615
7616 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
7617
7618         Revert the following changes due to regressions:
7619
7620         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7621         (dwarf2_evaluate_property): New function.
7622         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7623         * dwarf2read.c (attr_to_dynamic_prop): New function.
7624         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7625         attribute.
7626         * gdbtypes.c: Include dwarf2loc.h.
7627         (is_dynamic_type): New function.
7628         (resolve_dynamic_type): New function.
7629         (resolve_dynamic_bounds): New function.
7630         (get_type_length): New function.
7631         (check_typedef): Use get_type_length to compute type length.
7632         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7633         (TYPE_LOW_BOUND_KIND): New macro.
7634         (is_dynamic_type): New function prototype.
7635         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7636         to resolve dynamic properties of the type. Update comment.
7637         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7638
7639         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7640         passed to sizeof is dynamic evaluate the argument to compute the length.
7641
7642         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7643         value and retrieve the dynamic type size.
7644
7645         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7646         (ada_template_to_fixed_record_type_1): Likewise.
7647         (ada_to_fixed_type_1): Likewise.
7648         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7649         (cp_print_value): Likewise.
7650         * d-valprint.c (dynamic_array_type): Likewise.
7651         * eval.c (evaluate_subexp_with_coercion): Likewise.
7652         * findvar.c (address_of_variable): Likewise.
7653         * jv-valprint.c (java_value_print): Likewise.
7654         * valops.c (value_ind): Likewise.
7655         * value.c (coerce_ref): Likewise.
7656
7657         * c-typeprint.c (c_type_print_varspec_suffix): Added
7658         check for not yet resolved high bound. If unresolved, print
7659         "variable length" string to the console instead of random
7660         length.
7661
7662         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7663         property and store it as the high bound and flag the range accordingly.
7664         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7665         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7666         * gdbtypes.h (enum range_flags): New enum.
7667         (struct range_bounds): Add flags member.
7668
7669         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7670         points to a constant blob.
7671
7672         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7673         (evaluate_subexp_standard): Pass noside argument.
7674         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7675         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7676         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7677         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7678         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7679
7680 2014-04-11  Keith Seitz  <keiths@redhat.com>
7681
7682         PR c++/16675
7683         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7684         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7685         reference types.
7686
7687 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7688
7689         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7690         (evaluate_subexp_standard): Pass noside argument.
7691         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7692         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7693         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7694         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7695         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7696
7697 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7698
7699         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7700         points to a constant blob.
7701
7702 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7703
7704         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7705         property and store it as the high bound and flag the range accordingly.
7706         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7707         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7708         * gdbtypes.h (enum range_flags): New enum.
7709         (struct range_bounds): Add flags member.
7710
7711 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7712
7713         * c-typeprint.c (c_type_print_varspec_suffix): Added
7714         check for not yet resolved high bound. If unresolved, print
7715         "variable length" string to the console instead of random
7716         length.
7717
7718 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7719
7720         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7721         (ada_template_to_fixed_record_type_1): Likewise.
7722         (ada_to_fixed_type_1): Likewise.
7723         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7724         (cp_print_value): Likewise.
7725         * d-valprint.c (dynamic_array_type): Likewise.
7726         * eval.c (evaluate_subexp_with_coercion): Likewise.
7727         * findvar.c (address_of_variable): Likewise.
7728         * jv-valprint.c (java_value_print): Likewise.
7729         * valops.c (value_ind): Likewise.
7730         * value.c (coerce_ref): Likewise.
7731
7732 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7733
7734         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7735         value and retrieve the dynamic type size.
7736
7737 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7738
7739         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7740         passed to sizeof is dynamic evaluate the argument to compute the length.
7741
7742 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7743
7744         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7745         (dwarf2_evaluate_property): New function.
7746         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7747         * dwarf2read.c (attr_to_dynamic_prop): New function.
7748         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7749         attribute.
7750         * gdbtypes.c: Include dwarf2loc.h.
7751         (is_dynamic_type): New function.
7752         (resolve_dynamic_type): New function.
7753         (resolve_dynamic_bounds): New function.
7754         (get_type_length): New function.
7755         (check_typedef): Use get_type_length to compute type length.
7756         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7757         (TYPE_LOW_BOUND_KIND): New macro.
7758         (is_dynamic_type): New function prototype.
7759         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7760         to resolve dynamic properties of the type. Update comment.
7761         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7762
7763 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7764
7765         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7766         declaring high/low bounds and change uses accordingly. Call
7767         create_range_type instead of create_static_range_type.
7768         * gdbtypes.c (create_range_type): New function.
7769         (create_range_type): Convert bounds into struct bound_prop and pass
7770         them to create_range_type.
7771         * gdbtypes.h (struct bound_prop): New struct.
7772         (create_range_type): New function prototype.
7773         (struct range_bounds): Use struct bound_prop instead of LONGEST for
7774         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7775         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7776         part of the bound.
7777         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7778
7779 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7780
7781         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7782         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7783         * ada-lang.c: All uses of create_range_type updated.
7784         * coffread.c: All uses of create_range_type updated.
7785         * dwarf2read.c: All uses of create_range_type updated.
7786         * f-exp.y: All uses of create_range_type updated.
7787         * m2-valprint.c: All uses of create_range_type updated.
7788         * mdebugread.c: All uses of create_range_type updated.
7789         * stabsread.c: All uses of create_range_type updated.
7790         * valops.c: All uses of create_range_type updated.
7791         * valprint.c: All uses of create_range_type updated.
7792
7793 2014-04-10  Pedro Alves  <palves@redhat.com>
7794
7795         * breakpoint.c (single_step_breakpoints)
7796         (single_step_gdbarch): Move up in the file.
7797         (one_breakpoint_xfer_memory): New function, factored out from ...
7798         (breakpoint_xfer_memory): ... here.  Also process single-step
7799         breakpoints.
7800
7801 2014-04-09  Tristan Gingold  <gingold@adacore.com>
7802
7803         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7804         comments.
7805         (darwin_decode_exception_message): Free port only after use.
7806
7807 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
7808
7809         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7810         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7811         when setting the size of call_length.
7812
7813 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
7814
7815         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7816         dereference TYPE_CODE_REF values.
7817
7818 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
7819
7820         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7821         end of warning message.
7822
7823 2014-04-03  Doug Evans  <dje@google.com>
7824
7825         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7826         of stub_comp_unit_die, stub_comp_dir is non-NULL.
7827
7828 2014-04-02  Alan Modra  <amodra@gmail.com>
7829
7830         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7831         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
7832         (struct symbol_file_add_from_memory_args): Add size field.
7833         (find_vdso_size): New function.
7834         (add_vsyscall_page): Attempt to find vdso size.
7835
7836 2014-04-01  Doug Evans  <dje@google.com>
7837
7838         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7839
7840 2014-04-01  Tristan Gingold  <gingold@adacore.com>
7841
7842         * darwin-nat.c (darwin_encode_reply): Add prototype.
7843         (darwin_decode_exception_message): Reply to unknown inferiors.
7844         (darwin_decode_message): Handle message by id.  Ignore message
7845         to unknown inferior.
7846         (darwin_wait): Discard unknown messages, add debug trace.
7847
7848 2014-03-31  Doug Evans  <dje@google.com>
7849
7850         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7851         comp_dir_string.
7852
7853 2014-03-31  Doug Evans  <dje@google.com>
7854
7855         New option "set print symbol-loading".
7856         * NEWS: Mention it.
7857         * solib.c (solib_read_symbols): Only print symbol loading messages
7858         if requested.
7859         (solib_add): If symbol loading is in "brief" mode, notify user
7860         symbols are being loaded.
7861         (reload_shared_libraries_1): Ditto.
7862         * symfile.c (print_symbol_loading_off): New static global.
7863         (print_symbol_loading_brief): New static global.
7864         (print_symbol_loading_full): New static global.
7865         (print_symbol_loading_enums): New static global.
7866         (print_symbol_loading): New static global.
7867         (print_symbol_loading_p): New function.
7868         (symbol_file_add_with_addrs): Only print symbol loading messages
7869         if requested.
7870         (_initialize_symfile): Register "print symbol-loading" set/show
7871         command.
7872         * symfile.h (print_symbol_loading_p): Declare.
7873
7874 2014-03-30  Doug Evans  <xdje42@gmail.com>
7875
7876         * infrun.c (set_last_target_status): New function.
7877         (handle_inferior_event): Call it.
7878
7879 2014-03-30  Doug Evans  <xdje42@gmail.com>
7880
7881         * inferior.h (enum stop_kind): Improve comment.
7882
7883 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
7884
7885         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7886         a reference, strip the reference layer before calling
7887         the lang_ops value_has_mutated callback.
7888
7889 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7890
7891         Remove some globals from our parser.
7892         * language.c (unk_lang_parser): Add "struct parser_state"
7893         argument.
7894         * language.h (struct language_defn) <la_parser>: Likewise.
7895         * parse.c (expout, expout_size, expout_ptr): Remove variables.
7896         (initialize_expout): Add "struct parser_state" argument.
7897         Rewrite function to use the parser state.
7898         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7899         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7900         write_exp_elt_longcst, write_exp_elt_dblcst,
7901         write_exp_elt_decfloatcst, write_exp_elt_type,
7902         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7903         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7904         write_dollar_variable): Likewise.
7905         (parse_exp_in_context_1): Use parser state.
7906         (insert_type_address_space): Add "struct parser_state" argument.
7907         Use parser state.
7908         (increase_expout_size): New function.
7909         * parser-defs.h: Forward declare "struct language_defn" and
7910         "struct parser_state".
7911         (expout, expout_size, expout_ptr): Remove extern declarations.
7912         (parse_gdbarch, parse_language): Rewrite macro declarations to
7913         accept the parser state.
7914         (struct parser_state): New struct.
7915         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7916         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7917         write_exp_elt_decfloatcst, write_exp_elt_type,
7918         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7919         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7920         write_exp_msymbol, write_dollar_variable,
7921         mark_struct_expression, insert_type_address_space): Add "struct
7922         parser_state" argument.
7923         (increase_expout_size): New function.
7924         * utils.c (do_clear_parser_state): New function.
7925         (make_cleanup_clear_parser_state): Likewise.
7926         * utils.h (make_cleanup_clear_parser_state): New function
7927         prototype.
7928         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7929         Update calls to write_exp* in order to pass the parser state.
7930         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7931         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7932         (i386_stap_parse_special_token_three_arg_disp): Likewise.
7933         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7934         * stap-probe.c (stap_parse_register_operand): Likewise.
7935         (stap_parse_single_operand): Likewise.
7936         (stap_parse_argument_1): Likewise.
7937         (stap_parse_argument): Use parser state.
7938         * stap-probe.h: Include "parser-defs.h".
7939         (struct stap_parse_info) <pstate>: New field.
7940         * c-exp.y (parse_type): Rewrite to use parser state.
7941         (yyparse): Redefine to c_parse_internal.
7942         (pstate): New global variable.
7943         (parse_number): Add "struct parser_state" argument.
7944         (write_destructor_name): Likewise.
7945         (type_exp): Update calls to write_exp* and similars in order to
7946         use parser state.
7947         (exp1, exp, variable, qualified_name, space_identifier,
7948         typename, typebase): Likewise.
7949         (write_destructor_name, parse_number, lex_one_token,
7950         classify_name, classify_inner_name, c_parse): Add "struct
7951         parser_state" argument.  Update function to use parser state.
7952         * c-lang.h: Forward declare "struct parser_state".
7953         (c_parse): Add "struct parser_state" argument.
7954         * ada-exp.y (parse_type): Rewrite macro to use parser state.
7955         (yyparse): Redefine macro to ada_parse_internal.
7956         (pstate): New variable.
7957         (write_int, write_object_renaming, write_var_or_type,
7958         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7959         type_int, type_long, type_long_long, type_float, type_double,
7960         type_long_double, type_char, type_boolean, type_system_address):
7961         Add "struct parser_state" argument.
7962         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7963         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7964         var_or_type, aggregate, aggregate_component_list,
7965         positional_list, others, component_group,
7966         component_associations): Update calls to write_exp* and similar
7967         functions in order to use parser state.
7968         (ada_parse, write_var_from_sym, write_int,
7969         write_exp_op_with_string, write_object_renaming,
7970         find_primitive_type, write_selectors, write_ambiguous_var,
7971         write_var_or_type, write_name_assoc, type_int, type_long,
7972         type_long_long, type_float, type_double, type_long_double,
7973         type_char, type_boolean, type_system_address): Add "struct
7974         parser_state" argument.  Adjust function to use parser state.
7975         * ada-lang.c (parse): Likewise.
7976         * ada-lang.h: Forward declare "struct parser_state".
7977         (ada_parse): Add "struct parser_state" argument.
7978         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
7979         calls to both functions.
7980         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7981         parser state.
7982         (yyparse): Redefine macro to f_parse_internal.
7983         (pstate): New variable.
7984         (parse_number): Add "struct parser_state" argument.
7985         (type_exp, exp, subrange, typebase): Update calls to write_exp*
7986         and similars in order to use parser state.
7987         (parse_number): Adjust code to use parser state.
7988         (yylex): Likewise.
7989         (f_parse): New function.
7990         * f-lang.h: Forward declare "struct parser_state".
7991         (f_parse): Add "struct parser_state" argument.
7992         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7993         parser state.
7994         (yyparse): Redefine macro for java_parse_internal.
7995         (pstate): New variable.
7996         (push_expression_name, push_expression_name, insert_exp): Add
7997         "struct parser_state" argument.
7998         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7999         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8000         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8001         PostIncrementExpression, PostDecrementExpression,
8002         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8003         UnaryExpressionNotPlusMinus, CastExpression,
8004         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8005         RelationalExpression, EqualityExpression, AndExpression,
8006         ExclusiveOrExpression, InclusiveOrExpression,
8007         ConditionalAndExpression, ConditionalOrExpression,
8008         ConditionalExpression, Assignment, LeftHandSide): Update
8009         calls to write_exp* and similars in order to use parser state.
8010         (parse_number): Ajust code to use parser state.
8011         (yylex): Likewise.
8012         (java_parse): New function.
8013         (push_variable): Add "struct parser_state" argument.  Adjust
8014         code to user parser state.
8015         (push_fieldnames, push_qualified_expression_name,
8016         push_expression_name, insert_exp): Likewise.
8017         * jv-lang.h: Forward declare "struct parser_state".
8018         (java_parse): Add "struct parser_state" argument.
8019         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8020         parser state.
8021         (yyparse): Redefine macro to m2_parse_internal.
8022         (pstate): New variable.
8023         (type_exp, exp, fblock, variable, type): Update calls to
8024         write_exp* and similars to use parser state.
8025         (yylex): Likewise.
8026         (m2_parse): New function.
8027         * m2-lang.h: Forward declare "struct parser_state".
8028         (m2_parse): Add "struct parser_state" argument.
8029         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8030         * objc-lang.h: Forward declare "struct parser_state".
8031         (end_msglist): Add "struct parser_state" argument.
8032         * p-exp.y (parse_type): Rewrite macro to use parser state.
8033         (yyparse): Redefine macro to pascal_parse_internal.
8034         (pstate): New variable.
8035         (parse_number): Add "struct parser_state" argument.
8036         (type_exp, exp1, exp, qualified_name, variable): Update calls to
8037         write_exp* and similars in order to use parser state.
8038         (parse_number, yylex): Adjust code to use parser state.
8039         (pascal_parse): New function.
8040         * p-lang.h: Forward declare "struct parser_state".
8041         (pascal_parse): Add "struct parser_state" argument.
8042         * go-exp.y (parse_type): Rewrite macro to use parser state.
8043         (yyparse): Redefine macro to go_parse_internal.
8044         (pstate): New variable.
8045         (parse_number): Add "struct parser_state" argument.
8046         (type_exp, exp1, exp, variable, type): Update calls to
8047         write_exp* and similars in order to use parser state.
8048         (parse_number, lex_one_token, classify_name, yylex): Adjust code
8049         to use parser state.
8050         (go_parse): Likewise.
8051         * go-lang.h: Forward declare "struct parser_state".
8052         (go_parse): Add "struct parser_state" argument.
8053
8054 2014-03-27  Doug Evans  <dje@google.com>
8055
8056         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
8057
8058 2014-03-27  Doug Evans  <dje@google.com>
8059
8060         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8061         Remove argument abbrev_section.  All callers updated.
8062
8063 2014-03-27  Doug Evans  <dje@google.com>
8064
8065         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8066         addr_base, ranges_base.
8067
8068 2014-03-26  Keith Seitz  <keiths@redhat.com>
8069
8070         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8071         types, not VAR_DOMAIN.
8072
8073 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
8074
8075         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8076         "ra" registers.
8077         * features/nios2-linux.c: Regenerated.
8078         * features/nios2.c: Regenerated.
8079
8080 2014-03-25  Pedro Alves  <palves@redhat.com>
8081
8082         * cli/cli-script.c (script_from_file): Force the interpreter to
8083         sync mode.
8084
8085 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8086
8087         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8088         small stack allocation.
8089
8090 2014-03-24  Tristan Gingold  <gingold@adacore.com>
8091
8092         * darwin-nat.c (exc_server): Remove unused prototype.
8093         (darwin_dump_message): Correctly display data on x86_64.
8094         (darwin_encode_reply): Fix style.
8095         Add comments and fix indentation.
8096
8097 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8098
8099         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8100
8101 2014-03-22  Doug Evans  <xdje42@gmail.com>
8102
8103         * infcmd.c: Whitespace fixes.
8104         (interrupt_command): Merge two function comments into one.
8105
8106 2014-03-22  Doug Evans  <xdje42@gmail.com>
8107
8108         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8109         All uses updated.
8110
8111 2014-03-22  Yao Qi  <yao@codesourcery.com>
8112
8113         * remote.c (target_read_live_memory): Remove.
8114         (memory_xfer_live_readonly_partial): Rename it to
8115         remote_xfer_live_readonly_partial.  Remove argument 'object'.
8116         All callers updated.  Call remote_read_bytes_1
8117         instead of target_read_live_memory.
8118         * tracepoint.c (set_traceframe_number): Remove.
8119         (make_cleanup_restore_traceframe_number): Likewise .
8120         * tracepoint.h (set_traceframe_number): Remove declaration.
8121         (make_cleanup_restore_traceframe_number): Likewise.
8122
8123 2014-03-22  Yao Qi  <yao@codesourcery.com>
8124
8125         * remote.c (remote_read_bytes): Move code on reading from the
8126         remote stub to ...
8127         (remote_read_bytes_1): ... here.  New function.
8128
8129 2014-03-22  Yao Qi  <yao@codesourcery.com>
8130
8131         * ctf.c (ctf_xfer_partial): Check the return value of
8132         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8133         return TARGET_XFER_UNAVAILABLE.
8134         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8135         * target.c (target_read_live_memory): Move it to remote.c.
8136         (memory_xfer_live_readonly_partial): Likewise.
8137         (memory_xfer_partial_1): Move some code to remote_read_bytes.
8138         * remote.c (target_read_live_memory): Moved from target.c.
8139         (memory_xfer_live_readonly_partial): Likewise.
8140         (remote_read_bytes): Factored out from
8141         memory_xfer_partial_1.
8142
8143 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
8144
8145         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8146         NULL pointer.
8147
8148 2014-03-21  Pedro Alves  <palves@redhat.com>
8149
8150         * infrun.c (normal_stop): Extend comment.
8151
8152 2014-03-21  Hui Zhu  <hui@codesourcery.com>
8153             Pedro Alves  <palves@redhat.com>
8154
8155         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8156         static buffer.
8157         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8158         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8159         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8160
8161 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
8162
8163         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8164         `z' formatted output modifier.
8165
8166 2014-03-20  Tom Tromey  <tromey@redhat.com>
8167             Sergio Durigan Junior  <sergiodj@redhat.com>
8168
8169         * probe.c (parse_probes): Turn assert into an ordinary error.
8170         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8171         exceptions when parsing probes.  Rearrange the code for clarity.
8172
8173 2014-03-20  Tom Tromey  <tromey@redhat.com>
8174
8175         PR gdb/14135
8176         * top.c (execute_command): Only dispatch events if the command
8177         started the target.
8178
8179 2014-03-20  Tom Tromey  <tromey@redhat.com>
8180
8181         PR cli/15718
8182         * infcall.c: Include event-top.h.
8183         (run_inferior_call): Call async_disable_stdin if needed.
8184
8185 2014-03-20  Pedro Alves  <palves@redhat.com>
8186
8187         * infrun.c (prepare_to_proceed): Delete.
8188         (thread_still_needs_step_over): New function.
8189         (find_thread_needs_step_over): New function.
8190         (proceed): If the current thread needs a step-over, set its
8191         steping_over_breakpoint flag.  Adjust to use
8192         find_thread_needs_step_over instead of prepare_to_proceed.
8193         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8194         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8195         breakpoint.
8196         (switch_back_to_stepped_thread): Step over breakpoints of all
8197         threads not the stepping thread, before switching back to the
8198         stepping thread.
8199
8200 2014-03-20  Pedro Alves  <palves@redhat.com>
8201
8202         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8203         extern.
8204         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8205         * infrun.c (saved_singlestep_ptid)
8206         (stepping_past_singlestep_breakpoint): Delete.
8207         (resume): Remove stepping_past_singlestep_breakpoint handling.
8208         (proceed): Store the prev_pc of the stepping thread too.
8209         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
8210         singlestep_pc.
8211         (enum infwait_states): Delete infwait_thread_hop_state.
8212         (struct execution_control_state) <hit_singlestep_breakpoint>: New
8213         field.
8214         (handle_inferior_event): Adjust.
8215         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8216         handling and the thread-hop code.  Before removing single-step
8217         breakpoints, check whether the thread hit a single-step breakpoint
8218         of another thread.  If it did, the trap is not a random signal.
8219         (switch_back_to_stepped_thread): If the event thread hit a
8220         single-step breakpoint, unblock it before switching to the
8221         stepping thread.  Handle the case of the stepped thread having
8222         advanced already.
8223         (keep_going): Handle the case of the current thread moving past a
8224         single-step breakpoint.
8225
8226 2014-03-20  Pedro Alves  <palves@redhat.com>
8227
8228         PR breakpoints/7143
8229         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8230         are being stepped over.
8231         (breakpoint_address_match): Make extern.
8232         * breakpoint.h (breakpoint_address_match): New declaration.
8233         * inferior.h (stepping_past_instruction_at): New declaration.
8234         * infrun.c (struct step_over_info): New type.
8235         (step_over_info): New global.
8236         (set_step_over_info, clear_step_over_info)
8237         (stepping_past_instruction_at): New functions.
8238         (handle_inferior_event): Clear the step-over info when
8239         trap_expected is cleared.
8240         (resume): Remove now stale comment.
8241         (clear_proceed_status): Clear step-over info.
8242         (proceed): Adjust step-over handling to set or clear the step-over
8243         info instead of removing all breakpoints.
8244         (handle_signal_stop): When setting up a thread-hop, don't remove
8245         breakpoints here.
8246         (stop_stepping): Clear step-over info.
8247         (keep_going): Adjust step-over handling to set or clear step-over
8248         info and then always inserting breakpoints, instead of removing
8249         all breakpoints when stepping over one.
8250
8251 2014-03-20  Pedro Alves  <palves@redhat.com>
8252
8253         * infrun.c (previous_inferior_ptid): Adjust comment.
8254         (deferred_step_ptid): Delete.
8255         (infrun_thread_ptid_changed, prepare_to_proceed)
8256         (init_wait_for_inferior): Adjust.
8257         (handle_signal_stop): Delete deferred_step_ptid handling.
8258
8259 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
8260
8261         PR gdb/15358
8262         * defs.h (sync_quit_force_run): New declaration.
8263         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8264         * event-top.c (async_sigterm_handler): New declaration.
8265         (async_sigterm_token): New variable.
8266         (async_init_signals): Create also async_sigterm_token.
8267         (async_sigterm_handler): New function.
8268         (sync_quit_force_run): New variable.
8269         (handle_sigterm): Replace quit_force call by other calls.
8270         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8271
8272 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
8273
8274         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8275         offset into SPE pseudo registers.
8276
8277 2014-03-18  Pedro Alves  <palves@redhat.com>
8278
8279         PR gdb/13860
8280         * inferior.h (print_stop_event): Declare.
8281         * infrun.c (print_stop_event): New, factored out from ...
8282         (normal_stop): ... this.
8283         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8284         of bpstat_print/print_stack_frame.
8285
8286 2014-03-17  Tom Tromey  <tromey@redhat.com>
8287
8288         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8289
8290 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
8291
8292         * ada-lang.c (decode_constrained_packed_array): Perform a
8293         minimal coercion for reference with coerce_ref instead of
8294         ada_coerce_ref.
8295
8296 2014-03-17  Tristan Gingold  <gingold@adacore.com>
8297
8298         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8299         (darwin_solib_create_inferior_hook): Emit a warning if version
8300         is unhandled.
8301
8302 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
8303
8304         * python/py-value.c (get_field_flag): Cast flag_name argument to
8305         PyObject_GetAttrString to support Python 2.4.
8306
8307 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8308
8309         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8310         (Global Maintainers): Remove Jan Kratochvil.
8311
8312 2014-03-14  Pedro Alves  <palves@redhat.com>
8313
8314         * inferior.h (terminal_ours_for_output): Rename to ...
8315         (child_terminal_ours_for_output): ... this.
8316         (terminal_save_ours): Rename to ...
8317         (child_terminal_save_ours): ... this.
8318         (terminal_ours): Rename to ...
8319         (child_terminal_ours): ... this.
8320         (terminal_inferior): Rename to ...
8321         (child_terminal_inferior): ... this.
8322         (terminal_init_inferior): Rename to ...
8323         (child_terminal_init_inferior): ... this.
8324         (terminal_init_inferior_with_pgrp): Rename to ...
8325         (child_terminal_init_inferior_with_pgrp): ... this.
8326         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8327         (child_terminal_init_with_pgrp): ... this.
8328         (terminal_save_ours): Rename to ...
8329         (child_terminal_save_ours): ... this.
8330         (terminal_init_inferior): Rename to ...
8331         (child_terminal_init): ... this.  Adjust.
8332         (terminal_inferior): Rename to ...
8333         (child_terminal_inferior): ... this.
8334         (terminal_ours_for_output): Rename to ...
8335         (child_terminal_ours_for_output): ... this.  Adjust.
8336         (terminal_ours): Rename to ...
8337         (child_terminal_ours): ... this.
8338         (terminal_ours_1): Rename to ...
8339         (child_terminal_ours_1): ... this.  Adjust.
8340         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8341         * windows-nat.c (do_initial_windows_stuff): Adjust.
8342         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8343         (gnu_terminal_init): ... this.  Adjust.
8344         (gnu_target): Adjust.
8345         * inf-child.c (inf_child_target): Adjust.
8346
8347 2014-03-13  Doug Evans  <xdje42@gmail.com>
8348
8349         PR guile/16612
8350         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8351         new eq?-hashtab.
8352
8353 2014-03-13  Doug Evans  <xdje42@gmail.com>
8354
8355         * value.c (record_latest_value): Call release_value_or_incref
8356         instead of release_value.
8357
8358 2014-03-13  Pedro Alves  <palves@redhat.com>
8359
8360         * procfs.c (procfs_target): Don't override to_shortname,
8361         to_longname or to_doc.
8362
8363 2014-03-13  Pedro Alves  <palves@redhat.com>
8364
8365         * inf-child.c (inf_child_open, inf_child_target): Don't mention
8366         Unix in user visible strings.
8367
8368 2014-03-12  Stan Shebs  <stan@codesourcery.com>
8369
8370         * gdbtypes.h: Annotate comments for Doxygen, add a page
8371         block comment with some general info.
8372
8373 2014-03-12  Pedro Alves  <palves@redhat.com>
8374
8375         * infcmd.c (prepare_execution_command): New function, factored out
8376         from several execution commands.
8377         (run_command_1, continue_command, step_1, jump_command)
8378         (signal_command, until_command, advance_command, finish_command)
8379         (attach_command): Use prepare_execution_command.
8380
8381 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
8382
8383         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8384         (MAX_BPTS): Define.
8385         (MAX_WPTS): Define.
8386         (struct arm_linux_thread_points): Removed.
8387         (struct arm_linux_process_info): New.
8388         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8389         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8390         (arm_linux_find_breakpoints_by_tid): Removed.
8391         (struct arch_lwp_info): New.
8392         (arm_linux_find_process_pid): New functions.
8393         (arm_linux_add_process): New functions.
8394         (arm_linux_process_info_get): New functions.
8395         (arm_linux_forget_process): New function.
8396         (arm_linux_get_debug_reg_state): New function.
8397         (struct update_registers_data): New.
8398         (update_registers_callback): New function.
8399         (arm_linux_insert_hw_breakpoint1): Updated.
8400         (arm_linux_remove_hw_breakpoint1): Updated.
8401         (arm_linux_insert_hw_breakpoint): Updated.
8402         (arm_linux_remove_hw_breakpoint): Updated.
8403         (arm_linux_insert_watchpoint): Updated.
8404         (arm_linux_remove_watchpoint): Updated.
8405         (arm_linux_new_thread): Updated.
8406         (arm_linux_prepare_to_resume): New function.
8407         (arm_linux_new_fork): New function.
8408         (_initialize_arm_linux_nat): Updated.
8409
8410 2014-03-12  Pedro Alves  <palves@redhat.com>
8411
8412         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8413
8414 2014-03-12  Tom Tromey  <tromey@redhat.com>
8415
8416         * inf-child.c (return_zero): New function.
8417         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8418         * aix-thread.c (aix_thread_inferior_created): New function.
8419         (aix_thread_attach): Remove.
8420         (init_aix_thread_ops): Don't set to_attach.
8421         (_initialize_aix_thread): Register inferior_created observer.
8422         * corelow.c (init_core_ops): Don't set to_attach or
8423         to_create_inferior.
8424         * exec.c (init_exec_ops): Don't set to_attach or
8425         to_create_inferior.
8426         * infcmd.c (run_command_1): Use find_run_target.  Make direct
8427         target calls.
8428         (attach_command): Use find_attach_target.  Make direct target
8429         calls.
8430         * record-btrace.c (init_record_btrace_ops): Don't set
8431         to_create_inferior.
8432         * record-full.c (record_full_can_async_p, record_full_is_async_p):
8433         Remove.
8434         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
8435         set to_create_inferior.
8436         * target.c (complete_target_initialization): Add assertion.
8437         (target_create_inferior): Remove.
8438         (find_default_attach, find_default_create_inferior): Remove.
8439         (find_attach_target, find_run_target): New functions.
8440         (find_default_is_async_p, find_default_can_async_p)
8441         (target_supports_non_stop, target_attach): Remove.
8442         (init_dummy_target): Don't set to_create_inferior or
8443         to_supports_non_stop.
8444         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
8445         TARGET_DEFAULT_FUNC.
8446         <to_create_inferior>: Add comment.
8447         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8448         TARGET_DEFAULT_RETURN.
8449         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8450         (find_attach_target, find_run_target): Declare.
8451         (target_create_inferior): Remove.
8452         (target_has_execution_1): Update comment.
8453         (target_supports_non_stop): Remove.
8454         * target-delegates.c: Rebuild.
8455
8456 2014-03-12  Pedro Alves  <palves@redhat.com>
8457
8458         * inf-child.h: Update comment to not mention Unix.
8459
8460 2014-03-12  Pedro Alves  <palves@redhat.com>
8461
8462         * inf-child.c: Update top comment to not mention Unix.  Add
8463         generic comment describing how this target is meant to be used.
8464         (inf_child_post_attach, inf_child_post_startup_inferior)
8465         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8466         Unix in comment.
8467
8468 2014-03-12  Pedro Alves  <palves@redhat.com>
8469
8470         * nto-procfs.c: Include inf-child.h.
8471         (procfs_ops): Delete global.
8472         (procfs_can_run): Delete method.
8473         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8474         target pointer instead of referencing procfs_ops.
8475         (procfs_prepare_to_store): Delete.
8476         (init_procfs_ops): Delete function.
8477         (procfs_target): New function, based on init_procfs_ops, but
8478         inherit inf_child_target.
8479         (_initialize_procfs): Use procfs_target.
8480
8481 2014-03-12  Pedro Alves  <palves@redhat.com>
8482
8483         * windows-nat.c: Include inf-child.h.
8484         (windows_ops): Delete global.
8485         (windows_open, windows_prepare_to_store, windows_can_run): Delete
8486         methods.
8487         (init_windows_ops): Delete function.
8488         (windows_target): New function, based on init_windows_ops, but
8489         inherit inf_child_target.
8490         (_initialize_windows_nat): Use windows_target.  Install x86
8491         specific target methods here.
8492
8493 2014-03-10  Doug Evans  <xdje42@gmail.com>
8494
8495         * guile/guile.c (call_initialize_gdb_module): New function.
8496         (initialize_guile): Replace call to scm_init_guile with call to
8497         scm_with_guile.
8498
8499 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
8500
8501         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8502         in call to TYPE_CODE macro.
8503
8504 2014-03-10  Jerome Guitton  <guitton@adacore.com>
8505
8506         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8507         Resolve tagged types to full view.
8508
8509 2014-03-10  Hui Zhu  <hui@codesourcery.com>
8510
8511         * target.h (target_insert_breakpoint): Remove "hardware" from its
8512         comments.
8513
8514 2014-03-07  Doug Evans  <dje@google.com>
8515
8516         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8517
8518 2014-03-07  Doug Evans  <dje@google.com>
8519
8520         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8521         Remove unused local comp_dir_attr.  Assert exactly one of
8522         stub_comp_unit_die, stub_comp_dir is non-NULL.
8523
8524 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
8525
8526         * target.h (complete_target_initialization, add_target):
8527         Add comment.
8528
8529 2014-03-07  Pedro Alves  <palves@redhat.com>
8530
8531         * go32-nat.c: Include inf-child.h.
8532         (go32_ops): Delete global.
8533         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8534         Delete methods.
8535         (go32_create_inferior): Push the passed in target pointer instead
8536         of referencing go32_ops.
8537         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
8538         (go32_target): New function, based on init_go32_ops, but inherit
8539         inf_child_target.
8540         (_initialize_go32_nat): Use go32_target.  Move parts of
8541         init_go32_ops here.
8542
8543 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
8544
8545         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8546         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8547         SYMBOL_VALUE_ADDRESS.
8548         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8549
8550 2014-03-06  Yao Qi  <yao@codesourcery.com>
8551
8552         * breakpoint.c (get_tracepoint_by_number): Remove argument
8553         optional_p.  All callers updated.  Adjust comments.  Update
8554         output message.
8555         * breakpoint.h (get_tracepoint_by_number): Update declaration.
8556
8557 2014-03-06  Yao Qi  <yao@codesourcery.com>
8558
8559         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
8560         early if get_number returns zero.  Use 'p' instead of 'args'.
8561
8562 2014-03-06  Yao Qi  <yao@codesourcery.com>
8563
8564         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8565         message.
8566
8567 2014-03-06  Yao Qi  <yao@codesourcery.com>
8568
8569         PR breakpoints/16508
8570         * tracepoint.c (check_trace_running): New function.
8571         (trace_find_command): Move code to check_trace_running and
8572         call check_trace_running.
8573         (trace_find_pc_command): Likewise.
8574         (trace_find_tracepoint_command): Likewise.
8575         (trace_find_line_command): Likewise.
8576         (trace_find_range_command): Likewise.
8577         * tracepoint.h (check_trace_running): Likewise.
8578         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8579
8580 2014-03-06  Yao Qi  <yao@codesourcery.com>
8581
8582         * target.h (struct target_ops) <to_traceframe_info>: Use
8583         TARGET_DEFAULT_NORETURN (tcomplain ()).
8584         * target-delegates.c: Regenerated.
8585
8586 2014-03-05  Pedro Alves  <palves@redhat.com>
8587
8588         PR gdb/16575
8589         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
8590         void.  Update comment.
8591         (dcache_xfer_memory): Delete.
8592         (dcache_read_memory_partial): New, based on the read bits of
8593         dcache_xfer_memory.
8594         (dcache_update): Add status parameter.  Use ULONGEST for len, and
8595         adjust.  Discard cache lines if the reason for the update was
8596         error.
8597         * dcache.h (dcache_xfer_memory): Delete declaration.
8598         (dcache_read_memory_partial): New declaration.
8599         (dcache_update): Update prototype.
8600         * target.c (raw_memory_xfer_partial): Update the dcache here.
8601         (memory_xfer_partial_1): Don't handle dcache writes here.
8602
8603 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
8604
8605         * remote-sim.c (gdbsim_load): Add const to prog.
8606
8607 2014-03-03  Tom Tromey  <tromey@redhat.com>
8608
8609         * elfread.c (probe_key): Change to bfd_data.
8610         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8611         now per-BFD, not per-objfile.
8612         * stap-probe.c (stap_probe_destroy): Update comment.
8613         (handle_stap_probe): Allocate on the per-BFD obstack.
8614
8615 2014-03-03  Tom Tromey  <tromey@redhat.com>
8616
8617         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8618         * breakpoint.c (create_longjmp_master_breakpoint): Use
8619         get_probe_address.
8620         (add_location_to_breakpoint, bkpt_probe_insert_location)
8621         (bkpt_probe_remove_location): Update.
8622         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8623         * elfread.c (elf_symfile_relocate_probe): Remove.
8624         (elf_probe_fns): Update.
8625         (insert_exception_resume_breakpoint): Change type of "probe"
8626         parameter to bound_probe.
8627         (check_exception_resume): Update.
8628         * objfiles.c (objfile_relocate1): Don't relocate probes.
8629         * probe.c (bound_probe_s): New typedef.
8630         (parse_probes): Use get_probe_address.  Set sal's objfile.
8631         (find_probe_by_pc): Return a bound_probe.
8632         (collect_probes): Return a VEC(bound_probe_s).
8633         (compare_probes): Update.
8634         (gen_ui_out_table_header_info): Change type of "probes"
8635         parameter.  Update.
8636         (info_probes_for_ops): Update.
8637         (get_probe_address): New function.
8638         (probe_safe_evaluate_at_pc): Update.
8639         * probe.h (struct probe_ops) <get_probe_address>: New field.
8640         <set_semaphore, clear_semaphore>: Add objfile parameter.
8641         (struct probe) <objfile>: Remove field.
8642         <arch>: New field.
8643         <address>: Update comment.
8644         (struct bound_probe): New.
8645         (find_probe_by_pc): Return a bound_probe.
8646         (get_probe_address): Declare.
8647         * solib-svr4.c (struct probe_and_action) <address>: New field.
8648         (hash_probe_and_action, equal_probe_and_action): Update.
8649         (register_solib_event_probe): Add address parameter.
8650         (solib_event_probe_at): Update.
8651         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
8652         get_probe_address.
8653         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8654         (stap_get_probe_address): New function.
8655         (stap_can_evaluate_probe_arguments, compute_probe_arg)
8656         (compile_probe_arg): Update.
8657         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8658         address.
8659         (handle_stap_probe): Don't relocate the probe.
8660         (stap_relocate): Remove.
8661         (stap_gen_info_probes_table_values): Update.
8662         (stap_probe_ops): Remove stap_relocate.
8663         * symfile-debug.c (debug_sym_relocate_probe): Remove.
8664         (debug_sym_probe_fns): Update.
8665         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8666         * symtab.c (init_sal): Use memset.
8667         * symtab.h (struct symtab_and_line) <objfile>: New field.
8668         * tracepoint.c (start_tracing, stop_tracing): Update.
8669
8670 2014-03-03  Tom Tromey  <tromey@redhat.com>
8671
8672         * probe.h (parse_probes, find_probe_by_pc)
8673         (find_probes_in_objfile): Fix comments.
8674
8675 2014-03-02  Doug Evans  <xdje42@gmail.com>
8676
8677         * infrun.c (handle_signal_stop): Replace test for
8678         TARGET_WAITKIND_STOPPED with an assert.
8679
8680 2014-03-02  Doug Evans  <xdje42@gmail.com>
8681
8682         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8683
8684 2014-03-02  Doug Evans  <xdje42@gmail.com>
8685
8686         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8687
8688 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8689
8690         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8691
8692 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8693
8694         * i386obsd-nat.c: Include "obsd-nat.h".
8695         (_initialize_i386obsd_nat): Call obsd_add_target instead of
8696         add_target.
8697         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8698
8699 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8700
8701         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8702
8703 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8704
8705         * mips64obsd-nat.c: Include "obsd-nath".
8706         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8707         add_target
8708         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8709
8710 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8711
8712         * amd64obsd-nat.c: Include "obsd-nat,h.
8713         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8714         add_target.
8715         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8716
8717 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
8718
8719         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8720         (find_overload_match): Update call to find_oload_champ.
8721         (find_oload_champ_namespace_loop): Likewise
8722
8723 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
8724
8725         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8726
8727         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8728         * config/sparc/obsd64.mh: New file.
8729         * sparc64obsd-nat.c: New file.
8730
8731         * obsd-nat.h: New file.
8732         * obsd-nat.c: New file.
8733         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8734         (ALLDEPFILES): Add obsd-nat.c.
8735
8736 2014-02-28  Tom Tromey  <tromey@redhat.com>
8737
8738         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
8739         * cli-out.h (cli_ui_out_impl): Now const.
8740         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
8741         * ui-out.c (struct ui_out) <impl>: Now const.
8742         (default_ui_out_impl): Now const.
8743         (ui_out_new): Make 'impl' parameter const.
8744         * ui-out.h (ui_out_new): Update.
8745
8746 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8747
8748         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8749
8750 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8751
8752         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8753
8754 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
8755
8756         Additional PR 8882 fix.
8757         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8758
8759 2014-02-27  Pedro Alves  <palves@redhat.com>
8760
8761         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8762         isn't set.
8763
8764 2014-02-27  Pedro Alves  <palves@redhat.com>
8765
8766         PR 12702
8767         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8768         * nat/linux-waitpid.c: Include string.h.
8769         (status_to_str): Moved here and made extern.
8770         * nat/linux-waitpid.h (status_to_str): New declaration.
8771
8772 2014-02-27  Hui Zhu  <hui@codesourcery.com>
8773
8774         PR 12702
8775         * infrun.c (ptid_match): Move ...
8776         * common/ptid.c (ptid_match): ... here.
8777         * inferior.h (ptid_match): Move ...
8778         * common/ptid.h (ptid_match): ... here.
8779
8780 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8781
8782         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8783         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8784         gdb_target_obs.
8785
8786 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8787
8788         * obsd-tdep.c (obsd_auxv_parse): New function.
8789         (obsd_init_abi): Set auxv_parse.
8790
8791         * gdbarch.sh (auxv_parse): New.
8792         * gdbarch.h: Regenerated.
8793         * gdbarch.c: Regenerated.
8794         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8795
8796 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
8797
8798         * guile/scm-value.c (gdbscm_history_append_x): New function.
8799         (value_functions): Add it.
8800
8801 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8802
8803         * dwarf2read.c (attr_value_as_address): New function.
8804         (dwarf2_find_base_address, read_call_site_scope): Use
8805         attr_value_as_address in place of DW_ADDR.
8806         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8807         the low and high addresses.  Slight rework of the handling
8808         of the high pc being a constant form, and limit it to
8809         DWARF verson 4 or higher.
8810         (dwarf2_record_block_ranges): Likewise.
8811         (read_partial_die): Likewise.
8812         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8813
8814 2014-02-26  Tom Tromey  <tromey@redhat.com>
8815
8816         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8817
8818 2014-02-26  Tom Tromey  <tromey@redhat.com>
8819
8820         * elfread.c (elf_read_minimal_symbols): Return early if
8821         minimal symbols have already been read.  Add "ei" parameter.
8822         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8823         * minsyms.c (prim_record_minimal_symbol_full): Update.
8824         * objfiles.h (struct objstats) <n_minsyms>: Move...
8825         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8826         * symmisc.c (print_objfile_statistics): Update.
8827
8828 2014-02-26  Tom Tromey  <tromey@redhat.com>
8829
8830         * elfread.c (elf_read_minimal_symbols): New function, from
8831         elf_symfile_read.
8832         (elf_symfile_read): Call it.
8833
8834 2014-02-26  Tom Tromey  <tromey@redhat.com>
8835
8836         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8837         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8838         (lookup_minimal_symbol_solib_trampoline)
8839         (lookup_minimal_symbol_by_pc_section_1)
8840         (lookup_minimal_symbol_and_objfile): Update.
8841         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8842         Don't allocate a minimal symbol if minsyms have already been read.
8843         (build_minimal_symbol_hash_tables): Update.
8844         (install_minimal_symbols): Do nothing if minsyms already read.
8845         Use the per-BFD obstack.
8846         (terminate_minimal_symbol_table): Use the per-BFD obstack.
8847         * objfiles.c (allocate_objfile): Call
8848         terminate_minimal_symbol_table later.
8849         (have_minimal_symbols): Update.
8850         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8851         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8852         Move from struct objfile.
8853         <minsyms_read>: New field.
8854         (struct objfile) <msymbols, minimal_symbol_count,
8855         msymbol_hash, msymbol_demangled_hash>: Move.
8856         (ALL_OBJFILE_MSYMBOLS): Update.
8857         * symfile.c (read_symbols): Set minsyms_read.
8858         (reread_symbols): Update.
8859         * symmisc.c (dump_objfile, dump_msymbols): Update.
8860
8861 2014-02-26  Tom Tromey  <tromey@redhat.com>
8862
8863         * minsyms.c (msymbols_sort): Remove.
8864         * minsyms.h (msymbols_sort): Remove.
8865         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8866         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8867         * elfread.c (elf_symtab_read): Don't add section offsets.
8868         * xcoffread.c (record_minimal_symbol): Don't add section offset
8869         to minimal symbol address.
8870         * somread.c (text_offset, data_offset): Remove.
8871         (som_symtab_read): Don't add section offsets to minimal symbol
8872         addresses.
8873         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8874         Don't add section offsets to minimal symbols.
8875         * coffread.c (coff_symtab_read): Don't add section offsets
8876         to minimal symbol addresses.
8877         * machoread.c (macho_symtab_add_minsym): Don't add section offset
8878         to minimal symbol addresses.
8879         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8880         section offset to minimal symbol addresses.
8881         * mdebugread.c (parse_partial_symbols): Don't add section
8882         offset to minimal symbol addresses.
8883         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8884         offset to minimal symbol addresses.
8885
8886 2014-02-26  Tom Tromey  <tromey@redhat.com>
8887
8888         * ada-lang.c (ada_main_name): Update.
8889         (ada_add_standard_exceptions): Update.
8890         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8891         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8892         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8893         * auxv.c (ld_so_xfer_auxv): Update.
8894         * avr-tdep.c (avr_scan_prologue): Update.
8895         * ax-gdb.c (gen_var_ref): Update.
8896         * blockframe.c (get_pc_function_start)
8897         (find_pc_partial_function_gnu_ifunc): Update.
8898         * breakpoint.c (create_overlay_event_breakpoint)
8899         (create_longjmp_master_breakpoint)
8900         (create_std_terminate_master_breakpoint)
8901         (create_exception_master_breakpoint): Update.
8902         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8903         * c-valprint.c (c_val_print): Update.
8904         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8905         * common/agent.c (agent_look_up_symbols): Update.
8906         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8907         * dwarf2loc.c (call_site_to_target_addr): Update.
8908         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8909         * elfread.c (elf_gnu_ifunc_record_cache)
8910         (elf_gnu_ifunc_resolve_by_got): Update.
8911         * findvar.c (default_read_var_value): Update.
8912         * frame.c (inside_main_func): Update.
8913         * frv-tdep.c (frv_frame_this_id): Update.
8914         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8915         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8916         Update.
8917         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8918         (hppa_hpux_find_dummy_bpaddr): Update.
8919         * hppa-tdep.c (hppa_symbol_address): Update.
8920         * infcmd.c (until_next_command): Update.
8921         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8922         Update.
8923         * linespec.c (minsym_found, add_minsym): Update.
8924         * linux-nat.c (get_signo): Update.
8925         * linux-thread-db.c (inferior_has_bug): Update.
8926         * m32c-tdep.c (m32c_return_value)
8927         (m32c_m16c_address_to_pointer): Update.
8928         * m32r-tdep.c (m32r_frame_this_id): Update.
8929         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8930         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8931         * maint.c (maintenance_translate_address): Update.
8932         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8933         (frob_address): New function.
8934         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8935         frob_address.  Rename parameter to "pc_in".
8936         (compare_minimal_symbols, compact_minimal_symbols): Use raw
8937         addresses.
8938         (find_solib_trampoline_target, minimal_symbol_upper_bound):
8939         Update.
8940         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8941         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8942         * objc-lang.c (find_objc_msgsend): Update.
8943         * objfiles.c (objfile_relocate1): Update.
8944         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8945         * p-valprint.c (pascal_val_print): Update.
8946         * parse.c (write_exp_msymbol): Update.
8947         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8948         (ppc_elfv2_skip_entrypoint): Update.
8949         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8950         * printcmd.c (build_address_symbolic, msym_info)
8951         (address_info): Update.
8952         * proc-service.c (ps_pglobal_lookup): Update.
8953         * psymtab.c (find_pc_sect_psymtab_closer)
8954         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8955         Change msymbol parameter to bound_minimal_symbol.
8956         * ravenscar-thread.c (get_running_thread_id): Update.
8957         * remote.c (remote_check_symbols): Update.
8958         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8959         address.
8960         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8961         * solib-dsbt.c (lm_base): Update.
8962         * solib-frv.c (lm_base, main_got): Update.
8963         * solib-irix.c (locate_base): Update.
8964         * solib-som.c (som_solib_create_inferior_hook)
8965         (link_map_start): Update.
8966         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8967         * solib-svr4.c (elf_locate_base, enable_break): Update.
8968         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8969         (flush_ea_cache): Update.
8970         * stabsread.c (define_symbol, scan_file_globals): Update.
8971         * stack.c (find_frame_funname): Update.
8972         * symfile-debug.c (debug_qf_expand_symtabs_matching)
8973         (debug_qf_find_pc_sect_symtab): Update.
8974         * symfile.c (simple_read_overlay_table)
8975         (simple_overlay_update): Update.
8976         * symfile.h (struct quick_symbol_functions)
8977         <find_pc_sect_symtab>: Change type of msymbol to
8978         bound_minimal_symbol.
8979         * symmisc.c (dump_msymbols): Update.
8980         * symtab.c (find_pc_sect_symtab_via_partial)
8981         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8982         (search_symbols, print_msymbol_info): Update.
8983         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8984         (MSYMBOL_VALUE_ADDRESS): Redefine.
8985         (BMSYMBOL_VALUE_ADDRESS): New macro.
8986         * tracepoint.c (scope_info): Update.
8987         * tui/tui-disasm.c (tui_find_disassembly_address)
8988         (tui_get_begin_asm_address): Update.
8989         * valops.c (find_function_in_inferior): Update.
8990         * value.c (value_static_field, value_fn_field): Update.
8991
8992 2014-02-26  Tom Tromey  <tromey@redhat.com>
8993
8994         * ada-lang.c (ada_update_initial_language): Update.
8995         (ada_main_name, ada_has_this_exception_support): Update.
8996         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8997         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8998         * arm-tdep.c (arm_skip_stub): Update.
8999         * auxv.c (ld_so_xfer_auxv): Update.
9000         * avr-tdep.c (avr_scan_prologue): Update.
9001         * ax-gdb.c (gen_var_ref): Update.
9002         * breakpoint.c (struct breakpoint_objfile_data)
9003         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9004         type to bound_minimal_symbol.
9005         (create_overlay_event_breakpoint)
9006         (create_longjmp_master_breakpoint)
9007         (create_std_terminate_master_breakpoint)
9008         (create_exception_master_breakpoint): Update.
9009         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9010         * c-exp.y (classify_name): Update.
9011         * coffread.c (coff_symfile_read): Update.
9012         * common/agent.c (agent_look_up_symbols): Update.
9013         * d-lang.c (d_main_name): Update.
9014         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9015         * dec-thread.c (enable_dec_thread): Update.
9016         * dwarf2loc.c (call_site_to_target_addr): Update.
9017         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9018         * eval.c (evaluate_subexp_standard): Update.
9019         * findvar.c (struct minsym_lookup_data) <result>: Change type
9020         to bound_minimal_symbol.
9021         <objfile>: Remove.
9022         (minsym_lookup_iterator_cb, default_read_var_value): Update.
9023         * frame.c (inside_main_func): Update.
9024         * frv-tdep.c (frv_frame_this_id): Update.
9025         * gcore.c (call_target_sbrk): Update.
9026         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9027         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9028         Update.
9029         * go-lang.c (go_main_name): Update.
9030         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9031         (hppa_hpux_find_import_stub_for_addr): Update.
9032         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9033         Update.  Change return type.
9034         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9035         type.
9036         * jit.c (jit_breakpoint_re_set_internal): Update.
9037         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9038         Update.
9039         * linux-nat.c (get_signo): Update.
9040         * linux-thread-db.c (inferior_has_bug): Update
9041         * m32c-tdep.c (m32c_return_value)
9042         (m32c_m16c_address_to_pointer): Update.
9043         * m32r-tdep.c (m32r_frame_this_id): Update.
9044         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9045         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9046         * minsyms.c (lookup_minimal_symbol_internal): Rename to
9047         lookup_minimal_symbol.  Change return type.
9048         (lookup_minimal_symbol): Remove.
9049         (lookup_bound_minimal_symbol): Update.
9050         (lookup_minimal_symbol_text): Change return type.
9051         (lookup_minimal_symbol_solib_trampoline): Change return type.
9052         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9053         (lookup_minimal_symbol_solib_trampoline): Change return type.
9054         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9055         * objc-lang.c (lookup_objc_class, lookup_child_selector)
9056         (value_nsstring, find_imps): Update.
9057         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9058         * p-lang.c (pascal_main_name): Update.
9059         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9060         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9061         * proc-service.c (ps_pglobal_lookup): Update.
9062         * ravenscar-thread.c (get_running_thread_msymbol): Change
9063         return type.
9064         (has_ravenscar_runtime, get_running_thread_id): Update.
9065         * remote.c (remote_check_symbols): Update.
9066         * sol-thread.c (ps_pglobal_lookup): Update.
9067         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9068         * solib-dsbt.c (lm_base): Update.
9069         * solib-frv.c (lm_base, frv_relocate_section_addresses):
9070         Update.
9071         * solib-irix.c (locate_base): Update.
9072         * solib-som.c (som_solib_create_inferior_hook)
9073         (som_solib_desire_dynamic_linker_symbols, link_map_start):
9074         Update.
9075         * solib-spu.c (spu_enable_break): Update.
9076         * solib-svr4.c (elf_locate_base, enable_break): Update.
9077         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9078         (flush_ea_cache): Update.
9079         * stabsread.c (define_symbol): Update.
9080         * symfile.c (simple_read_overlay_table): Update.
9081         * symtab.c (find_pc_sect_line): Update.
9082         * tracepoint.c (scope_info): Update.
9083         * tui-disasm.c (tui_get_begin_asm_address): Update.
9084         * value.c (value_static_field): Update.
9085
9086 2014-02-26  Tom Tromey  <tromey@redhat.com>
9087
9088         * minsyms.c (prim_record_minimal_symbol_full): Use
9089         SET_MSYMBOL_VALUE_ADDRESS.
9090         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9091         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9092         SET_MSYMBOL_VALUE_ADDRESS.
9093         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9094         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9095
9096 2014-02-26  Tom Tromey  <tromey@redhat.com>
9097
9098         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9099         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9100         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9101         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9102         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9103         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9104         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9105         * ada-lang.c (ada_main_name): Update.
9106         (ada_lookup_simple_minsym): Update.
9107         (ada_make_symbol_completion_list): Update.
9108         (ada_add_standard_exceptions): Update.
9109         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9110         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9111         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9112         * arm-tdep.c (skip_prologue_function): Update.
9113         (arm_skip_stack_protector, arm_skip_stub): Update.
9114         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9115         (arm_wince_skip_main_prologue): Update.
9116         * auxv.c (ld_so_xfer_auxv): Update.
9117         * avr-tdep.c (avr_scan_prologue): Update.
9118         * ax-gdb.c (gen_var_ref): Update.
9119         * block.c (call_site_for_pc): Update.
9120         * blockframe.c (get_pc_function_start): Update.
9121         (find_pc_partial_function_gnu_ifunc): Update.
9122         * breakpoint.c (create_overlay_event_breakpoint): Update.
9123         (create_longjmp_master_breakpoint): Update.
9124         (create_std_terminate_master_breakpoint): Update.
9125         (create_exception_master_breakpoint): Update.
9126         (resolve_sal_pc): Update.
9127         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9128         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9129         Update.
9130         * c-valprint.c (c_val_print): Update.
9131         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9132         * coffread.c (coff_symfile_read): Update.
9133         * common/agent.c (agent_look_up_symbols): Update.
9134         * dbxread.c (find_stab_function_addr): Update.
9135         (end_psymtab): Update.
9136         * dwarf2loc.c (call_site_to_target_addr): Update.
9137         (func_verify_no_selftailcall): Update.
9138         (tailcall_dump): Update.
9139         (call_site_find_chain_1): Update.
9140         (dwarf_expr_reg_to_entry_parameter): Update.
9141         * elfread.c (elf_gnu_ifunc_record_cache): Update.
9142         (elf_gnu_ifunc_resolve_by_got): Update.
9143         * f-valprint.c (info_common_command): Update.
9144         * findvar.c (read_var_value): Update.
9145         * frame.c (get_prev_frame_1): Update.
9146         (inside_main_func): Update.
9147         * frv-tdep.c (frv_skip_main_prologue): Update.
9148         (frv_frame_this_id): Update.
9149         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9150         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9151         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9152         (gnuv3_skip_trampoline): Update.
9153         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9154         (hppa64_hpux_in_solib_call_trampoline): Update.
9155         (hppa_hpux_skip_trampoline_code): Update.
9156         (hppa64_hpux_search_dummy_call_sequence): Update.
9157         (hppa_hpux_find_import_stub_for_addr): Update.
9158         (hppa_hpux_find_dummy_bpaddr): Update.
9159         * hppa-tdep.c (hppa_symbol_address)
9160         (hppa_lookup_stub_minimal_symbol): Update.
9161         * i386-tdep.c (i386_skip_main_prologue): Update.
9162         (i386_pe_skip_trampoline_code): Update.
9163         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9164         * infcall.c (get_function_name): Update.
9165         * infcmd.c (until_next_command): Update.
9166         * jit.c (jit_breakpoint_re_set_internal): Update.
9167         (jit_inferior_init): Update.
9168         * linespec.c (minsym_found): Update.
9169         (add_minsym): Update.
9170         * linux-fork.c (info_checkpoints_command): Update.
9171         * linux-nat.c (get_signo): Update.
9172         * linux-thread-db.c (inferior_has_bug): Update.
9173         * m32c-tdep.c (m32c_return_value): Update.
9174         (m32c_m16c_address_to_pointer): Update.
9175         (m32c_m16c_pointer_to_address): Update.
9176         * m32r-tdep.c (m32r_frame_this_id): Update.
9177         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9178         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9179         * maint.c (maintenance_translate_address): Update.
9180         * minsyms.c (add_minsym_to_hash_table): Update.
9181         (add_minsym_to_demangled_hash_table): Update.
9182         (msymbol_objfile): Update.
9183         (lookup_minimal_symbol): Update.
9184         (iterate_over_minimal_symbols): Update.
9185         (lookup_minimal_symbol_text): Update.
9186         (lookup_minimal_symbol_by_pc_name): Update.
9187         (lookup_minimal_symbol_solib_trampoline): Update.
9188         (lookup_minimal_symbol_by_pc_section_1): Update.
9189         (lookup_minimal_symbol_and_objfile): Update.
9190         (prim_record_minimal_symbol_full): Update.
9191         (compare_minimal_symbols): Update.
9192         (compact_minimal_symbols): Update.
9193         (build_minimal_symbol_hash_tables): Update.
9194         (install_minimal_symbols): Update.
9195         (terminate_minimal_symbol_table): Update.
9196         (find_solib_trampoline_target): Update.
9197         (minimal_symbol_upper_bound): Update.
9198         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9199         * mips-tdep.c (mips_stub_frame_sniffer): Update.
9200         (mips_skip_pic_trampoline_code): Update.
9201         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9202         * objc-lang.c (selectors_info): Update.
9203         (classes_info): Update.
9204         (find_methods): Update.
9205         (find_imps): Update.
9206         (find_objc_msgsend): Update.
9207         * objfiles.c (objfile_relocate1): Update.
9208         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9209         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9210         * p-valprint.c (pascal_val_print): Update.
9211         * parse.c (write_exp_msymbol): Update.
9212         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9213         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9214         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9215         * printcmd.c (build_address_symbolic): Update.
9216         (sym_info): Update.
9217         (address_info): Update.
9218         * proc-service.c (ps_pglobal_lookup): Update.
9219         * psymtab.c (find_pc_sect_psymtab_closer): Update.
9220         (find_pc_sect_psymtab): Update.
9221         * python/py-framefilter.c (py_print_frame): Update.
9222         * ravenscar-thread.c (get_running_thread_id): Update.
9223         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9224         Update.
9225         * remote.c (remote_check_symbols): Update.
9226         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9227         (rs6000_skip_trampoline_code): Update.
9228         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9229         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9230         * solib-dsbt.c (lm_base): Update.
9231         * solib-frv.c (lm_base): Update.
9232         (main_got): Update.
9233         * solib-irix.c (locate_base): Update.
9234         * solib-som.c (som_solib_create_inferior_hook): Update.
9235         (som_solib_desire_dynamic_linker_symbols): Update.
9236         (link_map_start): Update.
9237         * solib-spu.c (spu_enable_break): Update.
9238         (ocl_enable_break): Update.
9239         * solib-svr4.c (elf_locate_base): Update.
9240         (enable_break): Update.
9241         * spu-tdep.c (spu_get_overlay_table): Update.
9242         (spu_catch_start): Update.
9243         (flush_ea_cache): Update.
9244         * stabsread.c (define_symbol): Update.
9245         (scan_file_globals): Update.
9246         * stack.c (find_frame_funname): Update.
9247         (frame_info): Update.
9248         * symfile.c (simple_read_overlay_table): Update.
9249         (simple_overlay_update): Update.
9250         * symmisc.c (dump_msymbols): Update.
9251         * symtab.c (fixup_section): Update.
9252         (find_pc_sect_line): Update.
9253         (skip_prologue_sal): Update.
9254         (search_symbols): Update.
9255         (print_msymbol_info): Update.
9256         (rbreak_command): Update.
9257         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9258         (completion_list_objc_symbol): Update.
9259         (default_make_symbol_completion_list_break_on): Update.
9260         * tracepoint.c (scope_info): Update.
9261         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9262         (tui_get_begin_asm_address): Update.
9263         * valops.c (find_function_in_inferior): Update.
9264         * value.c (value_static_field): Update.
9265         (value_fn_field): Update.
9266
9267 2014-02-26  Tom Tromey  <tromey@redhat.com>
9268
9269         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9270         bound minimal symbols.  Move code that knows about minsym
9271         table layout...
9272         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
9273         function.
9274         * minsyms.h (minimal_symbol_upper_bound): Declare.
9275         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9276         minimal_symbol_upper_bound.
9277
9278 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9279
9280         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9281         Use the type's name if its basic type does not have a tag.
9282
9283 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9284
9285         * dwarf2read.c (read_subrange_type): Add comment.
9286
9287 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9288
9289         * dwarf2read.c (update_enumeration_type_from_children): New
9290         function, mostly extracted from process_structure_scope.
9291         (read_enumeration_type): Call update_enumeration_type_from_children.
9292         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9293         and flag_flag_enum fields.
9294
9295 2014-02-26  Pedro Alves  <palves@redhat.com>
9296
9297         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9298         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9299         to_xfer_partial method.
9300
9301 2014-02-26  Pedro Alves  <palves@redhat.com>
9302
9303         * target.c (complete_target_initialization): Don't install
9304         default_xfer_partial as to_xfer_partial hook.
9305         (nomemory): Delete.
9306         (update_current_target): Don't INHERIT nor de_fault
9307         deprecated_xfer_memory.  Delete de_fault macro.
9308         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9309         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9310         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9311         field.
9312
9313 2014-02-26  Pedro Alves  <palves@redhat.com>
9314
9315         * go32-nat.c (my_write_child): New function.
9316         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9317         (go32_xfer_partial): New function.
9318         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9319         Instead install a to_xfer_partial hook.
9320
9321 2014-02-26  Pedro Alves  <palves@redhat.com>
9322
9323         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9324         to_xfer_partial helper.  Rewrite.
9325         (procfs_xfer_partial): New function.
9326         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9327         Install a to_xfer_partial hook.
9328
9329 2014-02-26  Pedro Alves  <palves@redhat.com>
9330
9331         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9332         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9333         (m32r_xfer_partial): New function.
9334         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9335         Install a to_xfer_partial hook.
9336
9337 2014-02-26  Pedro Alves  <palves@redhat.com>
9338
9339         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9340         helper.
9341         (mips_xfer_partial): New function.
9342         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9343         hook.  Install a to_xfer_partial hook.
9344
9345 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
9346
9347         * gdbtypes.h (create_array_type_with_stride): Add declaration.
9348         * gdbtypes.c (create_array_type_with_stride): New function,
9349         renaming create_array_type, but with an added parameter
9350         called "bit_stride".
9351         (create_array_type): Re-implement using
9352         create_array_type_with_stride.
9353         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9354         and DW_AT_bit_stride attributes.
9355
9356 2014-02-26  Pedro Alves  <palves@redhat.com>
9357
9358         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9359         task-specific breakpoints.
9360
9361 2014-02-25  Pedro Alves  <palves@redhat.com>
9362
9363         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9364         handling of object == TARGET_OBJECT_UNWIND_TABLE.
9365
9366 2014-02-25  Stan Shebs  <stan@codesourcery.com>
9367
9368         * defs.h: Annotate comments for Doxygen.
9369
9370 2014-02-25  Tom Tromey  <tromey@redhat.com>
9371
9372         * target.h (target_ignore): Don't declare.
9373         * target.c (target_ignore): Remove.
9374
9375 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9376
9377         PR gdb/16626
9378         * auto-load.c (auto_load_objfile_script_1): Change filename to
9379         debugfile.
9380
9381 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
9382
9383         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9384         documentation.  Adjust prototype to match the target_ops
9385         to_xfer_partial method.  Adjust implementation accordingly.
9386
9387 2014-02-25  Hui Zhu  <hui@codesourcery.com>
9388
9389         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9390         to_traceframe_info.
9391
9392 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
9393
9394         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9395         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9396         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9397         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9398         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9399         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9400         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9401         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9402         New constants.
9403         (rl78_register_type): Use a data pointer type for SP and
9404         new pseudo registers mentioned above.  Use a 16 bit integer
9405         type for all other register pairs.
9406         (rl78_register_name, rl78_g10_register_name): Update for
9407         new pseudo registers.
9408         (rl78_pseudo_register_read): Likewise.
9409         (rl78_pseudo_register_write): Likewise.
9410         (rl78_dwarf_reg_to_regnum): Return register numbers representing
9411         to the newly added pseudo registers.
9412
9413 2014-02-24  Doug Evans  <dje@google.com>
9414
9415         * value.c (record_latest_value): Fix comment.
9416         * printcmd.c (print_command_1): Remove code to handle -1 return from
9417         record_latest_value.
9418
9419 2014-02-24  Pedro Alves  <palves@redhat.com>
9420
9421         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9422         deprecated_xfer_memory hook.
9423         (procfs_xfer_partial): Call procfs_xfer_memory instead
9424         of the deprecated_xfer_memory target hook.
9425         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9426         helper.
9427
9428 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
9429
9430         * windows-nat.c (windows_xfer_shared_libraries): Return
9431         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9432         requested object is TARGET_OBJECT_LIBRARIES.
9433
9434 2014-02-24  Yao Qi  <yao@codesourcery.com>
9435
9436         * target.h (enum target_xfer_status)
9437         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9438         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9439         explicitly.  New.
9440         * corefile.c (memory_error_message): User updated.
9441         * exec.c (section_table_read_available_memory): Likewise.
9442         * record-btrace.c (record_btrace_xfer_partial): Likewise.
9443         * target.c (target_xfer_status_to_string): Likewise.
9444         (raw_memory_xfer_partial): Likewise.
9445         (memory_xfer_partial_1, target_xfer_partial): Likewise.
9446         * valops.c (read_value_memory): Likewise.
9447         * exec.h: Update comments.
9448
9449 2014-02-24  Yao Qi  <yao@codesourcery.com>
9450
9451         * target.c (target_xfer_status_to_string): Rename argument err
9452         to status.
9453         * target.h (target_xfer_status_to_string): Update declaration.
9454         Replace target_xfer_error_to_string with
9455         target_xfer_status_to_string in comment.
9456
9457 2014-02-24  Yao Qi  <yao@codesourcery.com>
9458
9459         * mips-linux-nat.c (super_close): Update its type.
9460         (mips_linux_close): Pass 'self' to super_close.
9461
9462 2014-02-24  Yao Qi  <yao@codesourcery.com>
9463
9464         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9465         * corefile.c (read_memory): Adjusted.
9466         * target.c (target_write_with_progress): Adjusted.
9467
9468 2014-02-23  Yao Qi  <yao@codesourcery.com>
9469
9470         Revert two patches:
9471
9472         2013-10-25  Yao Qi  <yao@codesourcery.com>
9473
9474         * remote.c (remote_traceframe_info): Return early if
9475         traceframe is not selected.
9476
9477         2013-07-19  Yao Qi  <yao@codesourcery.com>
9478
9479         * target.c (update_current_target): Change the default action
9480         of 'to_traceframe_info' from tcomplain to return_zero.
9481         * target.h (struct target_ops) <to_traceframe_info>: Add more
9482         comments.
9483
9484 2014-02-23  Yao Qi  <yao@codesourcery.com>
9485
9486         * valops.c (read_value_memory): Rewrite it.  Call
9487         target_xfer_partial in a loop.
9488         * exec.h (section_table_available_memory): Remove declaration.
9489         Move comments to ...
9490         * exec.c (section_table_available_memory): ... here.  Make it
9491         static.
9492
9493 2014-02-23  Yao Qi  <yao@codesourcery.com>
9494
9495         * exec.c (section_table_read_available_memory): New function.
9496         * exec.h (section_table_read_available_memory): Declare.
9497         * ctf.c (ctf_xfer_partial): Call
9498         section_table_read_available_memory.
9499         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9500
9501 2014-02-23  Yao Qi  <yao@codesourcery.com>
9502
9503         * ctf.c (ctf_xfer_partial): Move code to ...
9504         * exec.c (exec_read_partial_read_only): ... it.  New function.
9505         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9506         * tracefile.c: Include "exec.h".
9507         * exec.h (exec_read_partial_read_only): Declare.
9508
9509 2014-02-23  Yao Qi  <yao@codesourcery.com>
9510
9511         * tracefile-tfile.c (tfile_has_all_memory): Remove.
9512         (tfile_has_memory): Remove.
9513         (init_tfile_ops): Don't set fields to_has_all_memory and
9514         to_has_memory of tfile_ops.
9515         * tracefile.c (tracefile_has_all_memory): New function.
9516         (tracefile_has_memory): New function.
9517         (init_tracefile_ops): Initialize fields to_has_all_memory and
9518         to_has_memory of 'ops'.
9519
9520 2014-02-23  Yao Qi  <yao@codesourcery.com>
9521
9522         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9523         (ctf_thread_alive, ctf_get_trace_status): Remove.
9524         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
9525         init_tracefile_ops.
9526         * tracefile-tfile.c (tfile_get_trace_status): Remove.
9527         (tfile_has_stack, tfile_has_registers): Remove.
9528         (tfile_thread_alive): Remove.
9529         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
9530         init_tracefile_ops.
9531         * tracefile.c (tracefile_has_stack): New function.
9532         (tracefile_has_registers): New function.
9533         (tracefile_thread_alive): New function.
9534         (tracefile_get_trace_status): New function.
9535         (init_tracefile_ops): New function.
9536         * tracefile.h (init_tracefile_ops): Declare.
9537
9538 2014-02-23  Yao Qi  <yao@codesourcery.com>
9539
9540         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9541         (O_LARGEFILE): Likewise.
9542         (tfile_ops): Likewise.
9543         (TRACE_HEADER_SIZE): Likewise.
9544         (trace_fd, trace_frames_offset, cur_offset): Likewise.
9545         (cur_data_size): Likewise.
9546         (tfile_read, tfile_open, tfile_interp_line): Likewise.
9547         (tfile_close, tfile_files_info): Likewise.
9548         (tfile_get_trace_status): Likewise.
9549         (tfile_get_tracepoint_status): Likewise.
9550         (tfile_get_traceframe_address): Likewise.
9551         (tfile_trace_find, match_blocktype): Likewise.
9552         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9553         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9554         (tfile_get_trace_state_variable_value): Likewise.
9555         (tfile_has_all_memory, tfile_has_memory): Likewise.
9556         (tfile_has_stack, tfile_has_registers): Likewise.
9557         (tfile_thread_alive, build_traceframe_info): Likewise.
9558         (tfile_traceframe_info, init_tfile_ops): Likewise.
9559         (_initialize_tracepoint): Don't call init_tfile_ops
9560         and add_target_with_completer.
9561         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9562         exec.h, completer.h and filenames.h.
9563         (_initialize_tracefile_tfile): New function.
9564
9565 2014-02-23  Yao Qi  <yao@codesourcery.com>
9566
9567         * Makefile.in (REMOTE_OBS): Append tracefile.o and
9568         tracefile-tfile.o.
9569         (HFILES_NO_SRCDIR): Add tracefile.h.
9570         * ctf.c: Include "tracefile.h".
9571         * tracefile.h: New file.
9572         * tracefile.c: New file
9573         * tracefile-tfile.c: New file.
9574         * tracepoint.c: Include "tracefile.h".
9575         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9576         (stop_reason_names): Add const.
9577         (trace_file_writer_xfree): Move it to tracefile.c.
9578         (trace_save, trace_save_command, trace_save_tfile): Likewise.
9579         (trace_save_ctf): Likewise.
9580         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9581         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9582         (tfile_write_header, tfile_write_regblock_type): Likewise.
9583         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9584         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9585         (tfile_write_raw_data, tfile_end): Likewise.
9586         (tfile_trace_file_writer_new): Likewise.
9587         (free_uploaded_tp): Make it extern.
9588         (free_uploaded_tsv): Make it extern.
9589         (_initialize_tracepoint): Move code to register command 'tsave'
9590         to tracefile.c.
9591         * tracepoint.h (stop_reason_names): Declare.
9592         (struct trace_frame_write_ops): Move it to tracefile.h.
9593         (struct trace_file_write_ops): Likewise.
9594         (struct trace_file_writer): Likewise.
9595         (free_uploaded_tsvs, free_uploaded_tps): Declare.
9596
9597 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9598
9599         PR gdb/16594
9600         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9601         process name.
9602         (get_cores_used_by_process): New parameter num_cores, use it.
9603         (linux_xfer_osdata_processes): Pass num_cores to it.
9604         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9605         process name.
9606
9607 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
9608
9609         * target.c (memory_xfer_partial): Fix length arg in call to
9610         breakpoint_xfer_memory.
9611
9612 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
9613
9614         PR tdep/16397
9615         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9616         number comes after the + or - signs.  Adjust length of register
9617         name to be extracted.
9618
9619 2014-02-20  Tom Tromey  <tromey@redhat.com>
9620
9621         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9622         (ada_varobj_ops): Mark "extern".
9623
9624 2014-02-20  Tom Tromey  <tromey@redhat.com>
9625
9626         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9627
9628 2014-02-20  Doug Evans  <xdje42@gmail.com>
9629
9630         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9631         All callers updated.
9632         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9633         All callers updated.
9634         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9635         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9636
9637 2014-02-20  lin zuojian  <manjian2006@gmail.com>
9638             Joel Brobecker  <brobecker@adacore.com>
9639             Doug Evans  <xdje42@gmail.com>
9640
9641         PR symtab/16581
9642         * dwarf2read.c (struct die_info): New member in_process.
9643         (reset_die_in_process): New function.
9644         (process_die): Set it at the start, reset when returning.
9645         (inherit_abstract_dies): Only call process_die if origin_child_die
9646         not already being processed.
9647
9648 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9649
9650         * windows-nat.c (handle_unload_dll): Add function documentation.
9651         (do_initial_windows_stuff): Add comment explaining why we wait
9652         until after inferior initialization has finished before
9653         processing all DLLs.
9654
9655 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9656
9657         * windows-nat.c (get_module_name): Delete.
9658         (windows_get_exec_module_filename): New function, mostly
9659         inspired from get_module_name.
9660         (windows_pid_to_exec_file): Replace call to get_module_name
9661         by call to windows_get_exec_module_filename.
9662
9663 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9664
9665         * windows-nat.c (handle_load_dll): Rewrite this function's
9666         introductory comment.  Remove code using get_module_name
9667         to get the DLL's name.
9668
9669 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9670
9671         * windows-nat.c (get_windows_debug_event): Ignore
9672         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9673         if windows_initialization_done == 0.
9674         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9675         Adjust implementation to always load all DLLs.
9676         (do_initial_windows_stuff): Replace call to
9677         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9678
9679 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9680
9681         * windows-nat.c (_initialize_windows_nat): Deprecate the
9682         "dll-symbols" command.  Turn the "add-shared-symbol-files"
9683         and "assf" aliases into commands, and deprecate them as well.
9684         * NEWS: Add entry explaining that "dll-symbols" and its two
9685         aliases are now deprecated.
9686
9687 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9688
9689         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9690         new-line in debug string.  Remove trailing spaces.
9691
9692 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9693
9694         * darwin-nat.c (darwin_xfer_partial): Fix return type.
9695
9696 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
9697
9698         * NEWS: Add entry for the new feature
9699         * python/py-value.c (valpy_binop): Call value_x_binop for struct
9700         and class values.
9701
9702 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9703
9704         * MAINTAINERS: List Yao Qi as nios2 maintainer.
9705
9706 2014-02-19  Pedro Alves  <palves@redhat.com>
9707
9708         * common/ptid.h (struct ptid): Mention that process_stratum
9709         targets should prefer ptid.lwp.
9710
9711 2014-02-19  Pedro Alves  <palves@redhat.com>
9712
9713         * remote.c (remote_thread_alive, write_ptid, read_ptid)
9714         (read_ptid, remote_newthread_step, remote_threads_extra_info)
9715         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9716         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9717         store remote thread ids rather than ptid.tid.
9718         (_initialize_remote): Adjust.
9719
9720 2014-02-19  Tom Tromey  <tromey@redhat.com>
9721
9722         * target.c (target_get_unwinder): Rewrite.
9723         (target_get_tailcall_unwinder): Rewrite.
9724         * record-btrace.c (record_btrace_to_get_unwinder): New function.
9725         (record_btrace_to_get_tailcall_unwinder): New function.
9726         (init_record_btrace_ops): Update.
9727         * target.h (struct target_ops) <to_get_unwinder,
9728         to_get_tailcall_unwinder>: Now function pointers.  Use
9729         TARGET_DEFAULT_RETURN.
9730
9731 2014-02-19  Tom Tromey  <tromey@redhat.com>
9732
9733         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9734         argument.
9735         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9736
9737 2014-02-19  Tom Tromey  <tromey@redhat.com>
9738
9739         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9740         directly.
9741         * target-delegates.c: Rebuild.
9742         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9743         TARGET_DEFAULT_FUNC.
9744         * target.c (default_target_decr_pc_after_break): Rename from
9745         forward_target_decr_pc_after_break.  Simplify.
9746         (target_decr_pc_after_break): Rely on delegation.
9747
9748 2014-02-19  Tom Tromey  <tromey@redhat.com>
9749
9750         * target.c (update_current_target): Do not INHERIT to_doc or
9751         to_magic.  Do not de_fault to_open or to_close.
9752
9753 2014-02-19  Tom Tromey  <tromey@redhat.com>
9754
9755         * gcore.h (objfile_find_memory_regions): Declare.
9756         * gcore.c (objfile_find_memory_regions): No longer static.  Add
9757         "self" argument.
9758         (_initialize_gcore): Don't call exec_set_find_memory_regions.
9759         * exec.c: Include gcore.h.
9760         (exec_set_find_memory_regions): Remove.
9761         (exec_find_memory_regions): Remove.
9762         (exec_do_find_memory_regions): Remove.
9763         (init_exec_ops): Update.
9764         * defs.h (exec_set_find_memory_regions): Remove.
9765
9766 2014-02-19  Tom Tromey  <tromey@redhat.com>
9767
9768         * target-delegates.c: Rebuild.
9769         * target.h (struct target_ops) <to_extra_thread_info,
9770         to_thread_name, to_pid_to_exec_file, to_get_section_table,
9771         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9772         not 0, in TARGET_DEFAULT_RETURN.
9773
9774 2014-02-19  Tom Tromey  <tromey@redhat.com>
9775
9776         * target.c (complete_target_initialization): Remove casts.  Use
9777         return_zero_has_execution.
9778         (return_zero): Add "ignore" argument.
9779         (return_zero_has_execution): New function.
9780         (init_dummy_target): Remove casts.  Use
9781         return_zero_has_execution.
9782
9783 2014-02-19  Tom Tromey  <tromey@redhat.com>
9784
9785         * target.c (update_current_target): Update comments.  Do not
9786         INHERIT to_stratum.
9787
9788 2014-02-19  Tom Tromey  <tromey@redhat.com>
9789
9790         * arm-linux-nat.c (arm_linux_read_description): Delegate when
9791         needed.
9792         * corelow.c (core_read_description): Delegate when needed.
9793         * remote.c (remote_read_description): Delegate when needed.
9794         * target-delegates.c: Rebuild.
9795         * target.c (target_read_description): Rewrite.
9796         * target.h (struct target_ops) <to_read_description>: Update
9797         comment.  Use TARGET_DEFAULT_RETURN.
9798
9799 2014-02-19  Tom Tromey  <tromey@redhat.com>
9800
9801         * target-delegates.c: Rebuild.
9802         * target.c (update_current_target): Don't inherit or default
9803         to_can_run.
9804         (find_default_run_target): Check against delegate_can_run.
9805         * target.h (struct target_ops) <to_can_run>: Use
9806         TARGET_DEFAULT_RETURN.
9807
9808 2014-02-19  Tom Tromey  <tromey@redhat.com>
9809
9810         * target-delegates.c: Rebuild.
9811         * target.c (target_disconnect): Unconditionally delegate.
9812         * target.h (struct target_ops) <to_disconnect>: Use
9813         TARGET_DEFAULT_NORETURN.
9814
9815 2014-02-19  Tom Tromey  <tromey@redhat.com>
9816
9817         * record.c (record_stop): Unconditionally delegate.
9818         * target-delegates.c: Rebuild.
9819         * target.c (target_stop_recording): Unconditionally delegate.
9820         * target.h (struct target_ops) <to_stop_recording>: Use
9821         TARGET_DEFAULT_IGNORE.
9822
9823 2014-02-19  Tom Tromey  <tromey@redhat.com>
9824
9825         * target-delegates.c: Rebuild.
9826         * target.c (target_enable_btrace): Unconditionally delegate.
9827         * target.h (struct target_ops) <to_enable_btrace>: Use
9828         TARGET_DEFAULT_NORETURN.
9829
9830 2014-02-19  Tom Tromey  <tromey@redhat.com>
9831
9832         * target-delegates.c: Rebuild.
9833         * target.c (target_read_btrace): Unconditionally delegate.
9834         * target.h (struct target_ops) <to_read_btrace>: Use
9835         TARGET_DEFAULT_NORETURN.
9836
9837 2014-02-19  Tom Tromey  <tromey@redhat.com>
9838
9839         * target-delegates.c: Rebuild.
9840         * target.c (target_teardown_btrace): Unconditionally delegate.
9841         * target.h (struct target_ops) <to_teardown_btrace>: Use
9842         TARGET_DEFAULT_NORETURN.
9843
9844 2014-02-19  Tom Tromey  <tromey@redhat.com>
9845
9846         * target-delegates.c: Rebuild.
9847         * target.c (target_disable_btrace): Unconditionally delegate.
9848         * target.h (struct target_ops) <to_disable_btrace>: Use
9849         TARGET_DEFAULT_NORETURN.
9850
9851 2014-02-19  Tom Tromey  <tromey@redhat.com>
9852
9853         * target-delegates.c: Rebuild.
9854         * target.c (default_search_memory): New function.
9855         (simple_search_memory): Update comment.
9856         (target_search_memory): Unconditionally delegate.
9857         * target.h (struct target_ops) <to_search_memory>: Use
9858         TARGET_DEFAULT_FUNC.
9859
9860 2014-02-19  Tom Tromey  <tromey@redhat.com>
9861
9862         * auxv.c (default_auxv_parse): No longer static.
9863         (target_auxv_parse): Unconditionally delegate.
9864         * auxv.h (default_auxv_parse): Declare.
9865         * target-delegates.c: Rebuild.
9866         * target.c: Include auxv.h.
9867         * target.h (struct target_ops) <to_auxv_parse>: Use
9868         TARGET_DEFAULT_FUNC.
9869
9870 2014-02-19  Tom Tromey  <tromey@redhat.com>
9871
9872         * target-delegates.c: Rebuild.
9873         * target.c (target_memory_map): Unconditionally delegate.
9874         * target.h (struct target_ops) <to_memory_map>: Use
9875         TARGET_DEFAULT_RETURN.
9876
9877 2014-02-19  Tom Tromey  <tromey@redhat.com>
9878
9879         * target-delegates.c: Rebuild.
9880         * target.c (target_thread_alive): Unconditionally delegate.
9881         * target.h (struct target_ops) <to_thread_alive>: Use
9882         TARGET_DEFAULT_RETURN.
9883
9884 2014-02-19  Tom Tromey  <tromey@redhat.com>
9885
9886         * target-delegates.c: Rebuild.
9887         * target.c (target_save_record): Unconditionally delegate.
9888         * target.h (struct target_ops) <to_save_record>: Use
9889         TARGET_DEFAULT_NORETURN.
9890
9891 2014-02-19  Tom Tromey  <tromey@redhat.com>
9892
9893         * target-delegates.c: Rebuild.
9894         * target.c (target_delete_record): Unconditionally delegate.
9895         * target.h (struct target_ops) <to_delete_record>: Use
9896         TARGET_DEFAULT_NORETURN.
9897
9898 2014-02-19  Tom Tromey  <tromey@redhat.com>
9899
9900         * target-delegates.c: Rebuild.
9901         * target.c (target_record_is_replaying): Unconditionally
9902         delegate.
9903         * target.h (struct target_ops) <to_record_is_replaying>: Use
9904         TARGET_DEFAULT_RETURN.
9905
9906 2014-02-19  Tom Tromey  <tromey@redhat.com>
9907
9908         * target-delegates.c: Rebuild.
9909         * target.c (target_goto_record_begin): Unconditionally delegate.
9910         * target.h (struct target_ops) <to_goto_record_begin>: Use
9911         TARGET_DEFAULT_NORETURN.
9912
9913 2014-02-19  Tom Tromey  <tromey@redhat.com>
9914
9915         * target-delegates.c: Rebuild.
9916         * target.c (target_goto_record_end): Unconditionally delegate.
9917         * target.h (struct target_ops) <to_goto_record_end>: Use
9918         TARGET_DEFAULT_NORETURN.
9919
9920 2014-02-19  Tom Tromey  <tromey@redhat.com>
9921
9922         * target-delegates.c: Rebuild.
9923         * target.c (target_goto_record): Unconditionally delegate.
9924         * target.h (struct target_ops) <to_goto_record>: Use
9925         TARGET_DEFAULT_NORETURN.
9926
9927 2014-02-19  Tom Tromey  <tromey@redhat.com>
9928
9929         * target-delegates.c: Rebuild.
9930         * target.c (target_insn_history): Unconditionally delegate.
9931         * target.h (struct target_ops) <to_insn_history>: Use
9932         TARGET_DEFAULT_NORETURN.
9933
9934 2014-02-19  Tom Tromey  <tromey@redhat.com>
9935
9936         * target-delegates.c: Rebuild.
9937         * target.c (target_insn_history_from): Unconditionally delegate.
9938         * target.h (struct target_ops) <to_insn_history_from>: Use
9939         TARGET_DEFAULT_NORETURN.
9940
9941 2014-02-19  Tom Tromey  <tromey@redhat.com>
9942
9943         * target-delegates.c: Rebuild.
9944         * target.c (target_insn_history_range): Unconditionally delegate.
9945         * target.h (struct target_ops) <to_insn_history_range>: Use
9946         TARGET_DEFAULT_NORETURN.
9947
9948 2014-02-19  Tom Tromey  <tromey@redhat.com>
9949
9950         * target-delegates.c: Rebuild.
9951         * target.c (target_call_history): Unconditionally delegate.
9952         * target.h (struct target_ops) <to_call_history>: Use
9953         TARGET_DEFAULT_NORETURN.
9954
9955 2014-02-19  Tom Tromey  <tromey@redhat.com>
9956
9957         * target-delegates.c: Rebuild.
9958         * target.c (target_call_history_from): Unconditionally delegate.
9959         * target.h (struct target_ops) <to_call_history_from>: Use
9960         TARGET_DEFAULT_NORETURN.
9961
9962 2014-02-19  Tom Tromey  <tromey@redhat.com>
9963
9964         * target-delegates.c: Rebuild.
9965         * target.c (target_call_history_range): Unconditionally delegate.
9966         * target.h (struct target_ops) <to_call_history_range>: Use
9967         TARGET_DEFAULT_NORETURN.
9968
9969 2014-02-19  Tom Tromey  <tromey@redhat.com>
9970
9971         * target-delegates.c: Rebuild.
9972         * target.c (target_verify_memory): Unconditionally delegate.
9973         * target.h (struct target_ops) <to_verify_memory>: Use
9974         TARGET_DEFAULT_NORETURN.
9975
9976 2014-02-19  Tom Tromey  <tromey@redhat.com>
9977
9978         * target-delegates.c: Rebuild.
9979         * target.c (target_core_of_thread): Unconditionally delegate.
9980         * target.h (struct target_ops) <to_core_of_thread>: Use
9981         TARGET_DEFAULT_RETURN.
9982
9983 2014-02-19  Tom Tromey  <tromey@redhat.com>
9984
9985         * target-delegates.c: Rebuild.
9986         * target.c (target_flash_done): Unconditionally delegate.
9987         * target.h (struct target_ops) <to_flash_done>: Use
9988         TARGET_DEFAULT_NORETURN.
9989
9990 2014-02-19  Tom Tromey  <tromey@redhat.com>
9991
9992         * target-delegates.c: Rebuild.
9993         * target.c (target_flash_erase): Unconditionally delegate.
9994         * target.h (struct target_ops) <to_flash_erase>: Use
9995         TARGET_DEFAULT_NORETURN.
9996
9997 2014-02-19  Tom Tromey  <tromey@redhat.com>
9998
9999         * target-delegates.c: Rebuild.
10000         * target.c (target_get_section_table): Unconditionally delegate.
10001         * target.h (struct target_ops) <to_get_section_table>: Use
10002         TARGET_DEFAULT_RETURN.
10003
10004 2014-02-19  Tom Tromey  <tromey@redhat.com>
10005
10006         * target-delegates.c: Rebuild.
10007         * target.c (target_pid_to_str): Unconditionally delegate.
10008         (init_dummy_target): Don't initialize to_pid_to_str.
10009         (default_pid_to_str): Rename from dummy_pid_to_str.
10010         * target.h (struct target_ops) <to_pid_to_str>: Use
10011         TARGET_DEFAULT_FUNC.
10012
10013 2014-02-19  Tom Tromey  <tromey@redhat.com>
10014
10015         * target-delegates.c: Rebuild.
10016         * target.c (target_find_new_threads): Unconditionally delegate.
10017         * target.h (struct target_ops) <to_find_new_threads>: Use
10018         TARGET_DEFAULT_RETURN.
10019
10020 2014-02-19  Tom Tromey  <tromey@redhat.com>
10021
10022         * target-delegates.c: Rebuild.
10023         * target.c (target_program_signals): Unconditionally delegate.
10024         * target.h (struct target_ops) <to_program_signals>: Use
10025         TARGET_DEFAULT_IGNORE.
10026
10027 2014-02-19  Tom Tromey  <tromey@redhat.com>
10028
10029         * target-delegates.c: Rebuild.
10030         * target.c (target_pass_signals): Unconditionally delegate.
10031         * target.h (struct target_ops) <to_pass_signals>: Use
10032         TARGET_DEFAULT_IGNORE.
10033
10034 2014-02-19  Tom Tromey  <tromey@redhat.com>
10035
10036         * target-delegates.c: Rebuild.
10037         * target.c (default_mourn_inferior): New function.
10038         (target_mourn_inferior): Unconditionally delegate.
10039         * target.h (struct target_ops) <to_mourn_inferior>: Use
10040         TARGET_DEFAULT_FUNC.
10041
10042 2014-02-19  Tom Tromey  <tromey@redhat.com>
10043
10044         * target-delegates.c: Rebuild.
10045         * target.c (default_follow_fork): New function.
10046         (target_follow_fork): Unconditionally delegate.
10047         * target.h (struct target_ops) <to_follow_fork>: Use
10048         TARGET_DEFAULT_FUNC.
10049
10050 2014-02-19  Tom Tromey  <tromey@redhat.com>
10051
10052         * target-delegates.c: Rebuild.
10053         * target.c (target_kill): Unconditionally delegate.
10054         * target.h (struct target_ops) <to_kill>: Use
10055         TARGET_DEFAULT_NORETURN.
10056
10057 2014-02-19  Tom Tromey  <tromey@redhat.com>
10058
10059         * target-delegates.c: Rebuild.
10060         * target.c (target_masked_watch_num_registers): Unconditionally
10061         delegate.
10062         * target.h (struct target_ops) <to_masked_watch_num_registers>:
10063         Use TARGET_DEFAULT_RETURN.
10064
10065 2014-02-19  Tom Tromey  <tromey@redhat.com>
10066
10067         * target-delegates.c: Rebuild.
10068         * target.c (target_remove_mask_watchpoint): Unconditionally
10069         delegate.
10070         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10071         TARGET_DEFAULT_RETURN.
10072
10073 2014-02-19  Tom Tromey  <tromey@redhat.com>
10074
10075         * target-delegates.c: Rebuild.
10076         * target.c (target_insert_mask_watchpoint): Unconditionally
10077         delegate.
10078         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10079         TARGET_DEFAULT_RETURN.
10080
10081 2014-02-19  Tom Tromey  <tromey@redhat.com>
10082
10083         * target-delegates.c: Rebuild.
10084         * target.c (target_ranged_break_num_registers): Unconditionally
10085         delegate.
10086         * target.h (struct target_ops) <to_ranged_break_num_registers>:
10087         Use TARGET_DEFAULT_RETURN.
10088
10089 2014-02-19  Tom Tromey  <tromey@redhat.com>
10090
10091         * target-delegates.c: Rebuild.
10092         * target.c (target_fetch_registers): Unconditionally delegate.
10093         * target.h (struct target_ops) <to_fetch_registers>: Use
10094         TARGET_DEFAULT_NORETURN.
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_stop.
10101         * target.h (struct target_ops) <to_stop>: Use
10102         TARGET_DEFAULT_IGNORE.
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_run_breakpoint_commands.
10109         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10110         Use 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_supports_evaluation_of_breakpoint_conditions.
10117         * target.h (struct target_ops)
10118         <to_supports_evaluation_of_breakpoint_conditions>: Use
10119         TARGET_DEFAULT_RETURN.
10120
10121 2014-02-19  Tom Tromey  <tromey@redhat.com>
10122
10123         * target-delegates.c: Rebuild.
10124         * target.c (update_current_target): Don't inherit or default
10125         to_augmented_libraries_svr4_read.
10126         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10127         Use 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_can_use_agent.
10134         * target.h (struct target_ops) <to_can_use_agent>: Use
10135         TARGET_DEFAULT_RETURN.
10136
10137 2014-02-19  Tom Tromey  <tromey@redhat.com>
10138
10139         * target-delegates.c: Rebuild.
10140         * target.c (update_current_target): Don't inherit or default
10141         to_use_agent.
10142         * target.h (struct target_ops) <to_use_agent>: Use
10143         TARGET_DEFAULT_NORETURN.
10144
10145 2014-02-19  Tom Tromey  <tromey@redhat.com>
10146
10147         * target-delegates.c: Rebuild.
10148         * target.c (update_current_target): Don't inherit or default
10149         to_traceframe_info.
10150         (return_null): Remove.
10151         * target.h (struct target_ops) <to_traceframe_info>: Use
10152         TARGET_DEFAULT_RETURN.
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_static_tracepoint_markers_by_strid.
10159         * target.h (struct target_ops)
10160         <to_static_tracepoint_markers_by_strid>: Use
10161         TARGET_DEFAULT_NORETURN.
10162
10163 2014-02-19  Tom Tromey  <tromey@redhat.com>
10164
10165         * target-delegates.c: Rebuild.
10166         * target.c (update_current_target): Don't inherit or default
10167         to_static_tracepoint_marker_at.
10168         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10169         Use TARGET_DEFAULT_RETURN.
10170
10171 2014-02-19  Tom Tromey  <tromey@redhat.com>
10172
10173         * target-delegates.c: Rebuild.
10174         * target.c (update_current_target): Don't inherit or default
10175         to_set_permissions.
10176         * target.h (struct target_ops) <to_set_permissions>: Use
10177         TARGET_DEFAULT_IGNORE.
10178
10179 2014-02-19  Tom Tromey  <tromey@redhat.com>
10180
10181         * target-delegates.c: Rebuild.
10182         * target.c (update_current_target): Don't inherit or default
10183         to_get_tib_address.
10184         * target.h (struct target_ops) <to_get_tib_address>: Use
10185         TARGET_DEFAULT_NORETURN.
10186
10187 2014-02-19  Tom Tromey  <tromey@redhat.com>
10188
10189         * target-delegates.c: Rebuild.
10190         * target.c (update_current_target): Don't inherit or default
10191         to_set_trace_notes.
10192         * target.h (struct target_ops) <to_set_trace_notes>: Use
10193         TARGET_DEFAULT_RETURN.
10194
10195 2014-02-19  Tom Tromey  <tromey@redhat.com>
10196
10197         * target-delegates.c: Rebuild.
10198         * target.c (update_current_target): Don't initialize
10199         to_set_trace_buffer_size.
10200         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10201         TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
10208         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10209         TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
10216         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10217         TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
10224         (return_minus_one): Remove.
10225         * target.h (struct target_ops)
10226         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10227
10228 2014-02-19  Tom Tromey  <tromey@redhat.com>
10229
10230         * target-delegates.c: Rebuild.
10231         * target.c (update_current_target): Don't inherit or default
10232         to_get_raw_trace_data.
10233         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10234         TARGET_DEFAULT_NORETURN.
10235
10236 2014-02-19  Tom Tromey  <tromey@redhat.com>
10237
10238         * target-delegates.c: Rebuild.
10239         * target.c (update_current_target): Don't inherit or default
10240         to_upload_trace_state_variables.
10241         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10242         Use TARGET_DEFAULT_RETURN.
10243
10244 2014-02-19  Tom Tromey  <tromey@redhat.com>
10245
10246         * target-delegates.c: Rebuild.
10247         * target.c (update_current_target): Don't inherit or default
10248         to_upload_tracepoints.
10249         * target.h (struct target_ops) <to_upload_tracepoints>: Use
10250         TARGET_DEFAULT_RETURN.
10251
10252 2014-02-19  Tom Tromey  <tromey@redhat.com>
10253
10254         * target-delegates.c: Rebuild.
10255         * target.c (update_current_target): Don't inherit or default
10256         to_save_trace_data.
10257         * target.h (struct target_ops) <to_save_trace_data>: Use
10258         TARGET_DEFAULT_NORETURN.
10259
10260 2014-02-19  Tom Tromey  <tromey@redhat.com>
10261
10262         * target-delegates.c: Rebuild.
10263         * target.c (update_current_target): Don't inherit or default
10264         to_get_trace_state_variable_value.
10265         * target.h (struct target_ops)
10266         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10267
10268 2014-02-19  Tom Tromey  <tromey@redhat.com>
10269
10270         * target-delegates.c: Rebuild.
10271         * target.c (update_current_target): Don't inherit or default
10272         to_trace_find.
10273         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10274
10275 2014-02-19  Tom Tromey  <tromey@redhat.com>
10276
10277         * target-delegates.c: Rebuild.
10278         * target.c (update_current_target): Don't inherit or default
10279         to_trace_stop.
10280         * target.h (struct target_ops) <to_trace_stop>: Use
10281         TARGET_DEFAULT_NORETURN.
10282
10283 2014-02-19  Tom Tromey  <tromey@redhat.com>
10284
10285         * target-delegates.c: Rebuild.
10286         * target.c (update_current_target): Don't inherit or default
10287         to_get_tracepoint_status.
10288         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10289         TARGET_DEFAULT_NORETURN.
10290
10291 2014-02-19  Tom Tromey  <tromey@redhat.com>
10292
10293         * target-delegates.c: Rebuild.
10294         * target.c (update_current_target): Don't inherit or default
10295         to_get_trace_status.
10296         * target.h (struct target_ops) <to_get_trace_status>: Use
10297         TARGET_DEFAULT_RETURN.
10298
10299 2014-02-19  Tom Tromey  <tromey@redhat.com>
10300
10301         * target-delegates.c: Rebuild.
10302         * target.c (update_current_target): Don't inherit or default
10303         to_trace_start.
10304         * target.h (struct target_ops) <to_trace_start>: Use
10305         TARGET_DEFAULT_NORETURN.
10306
10307 2014-02-19  Tom Tromey  <tromey@redhat.com>
10308
10309         * target-delegates.c: Rebuild.
10310         * target.c (update_current_target): Don't inherit or default
10311         to_trace_set_readonly_regions.
10312         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10313         Use TARGET_DEFAULT_NORETURN.
10314
10315 2014-02-19  Tom Tromey  <tromey@redhat.com>
10316
10317         * target-delegates.c: Rebuild.
10318         * target.c (update_current_target): Don't inherit or default
10319         to_disable_tracepoint.
10320         * target.h (struct target_ops) <to_disable_tracepoint>: Use
10321         TARGET_DEFAULT_NORETURN.
10322
10323 2014-02-19  Tom Tromey  <tromey@redhat.com>
10324
10325         * target-delegates.c: Rebuild.
10326         * target.c (update_current_target): Don't inherit or default
10327         to_enable_tracepoint.
10328         * target.h (struct target_ops) <to_enable_tracepoint>: Use
10329         TARGET_DEFAULT_NORETURN.
10330
10331 2014-02-19  Tom Tromey  <tromey@redhat.com>
10332
10333         * target-delegates.c: Rebuild.
10334         * target.c (update_current_target): Don't inherit or default
10335         to_download_trace_state_variable.
10336         * target.h (struct target_ops) <to_download_trace_state_variable>:
10337         Use TARGET_DEFAULT_NORETURN.
10338
10339 2014-02-19  Tom Tromey  <tromey@redhat.com>
10340
10341         * target-delegates.c: Rebuild.
10342         * target.c (update_current_target): Don't inherit or default
10343         to_can_download_tracepoint.
10344         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10345         TARGET_DEFAULT_RETURN.
10346
10347 2014-02-19  Tom Tromey  <tromey@redhat.com>
10348
10349         * target-delegates.c: Rebuild.
10350         * target.c (update_current_target): Don't inherit or default
10351         to_download_tracepoint.
10352         * target.h (struct target_ops) <to_download_tracepoint>: Use
10353         TARGET_DEFAULT_NORETURN.
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_trace_init.
10360         * target.h (struct target_ops) <to_trace_init>: 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_supports_string_tracing.
10368         * target.h (struct target_ops) <to_supports_string_tracing>: Use
10369         TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
10376         * target.h (struct target_ops)
10377         <to_supports_enable_disable_tracepoint>: Use
10378         TARGET_DEFAULT_RETURN.
10379
10380 2014-02-19  Tom Tromey  <tromey@redhat.com>
10381
10382         * target-delegates.c: Rebuild.
10383         * target.c (update_current_target): Don't inherit or default
10384         to_supports_multi_process.
10385         * target.h (struct target_ops) <to_supports_multi_process>: Use
10386         TARGET_DEFAULT_RETURN.
10387
10388 2014-02-19  Tom Tromey  <tromey@redhat.com>
10389
10390         * target-delegates.c: Rebuild.
10391         * target.c (update_current_target): Don't inherit or default
10392         to_get_ada_task_ptid.
10393         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10394         TARGET_DEFAULT_FUNC.
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_thread_architecture.
10401         * target.h (struct target_ops) <to_thread_architecture>: Use
10402         TARGET_DEFAULT_FUNC.
10403
10404 2014-02-19  Tom Tromey  <tromey@redhat.com>
10405
10406         * target-delegates.c: Rebuild.
10407         * target.c (update_current_target): Don't inherit or default
10408         to_execution_direction.
10409         * target.h (struct target_ops) <to_execution_direction>: Use
10410         TARGET_DEFAULT_FUNC.
10411
10412 2014-02-19  Tom Tromey  <tromey@redhat.com>
10413
10414         * target-delegates.c: Rebuild.
10415         * target.c (update_current_target): Don't inherit or default
10416         to_can_execute_reverse.
10417         * target.h (struct target_ops) <to_can_execute_reverse>: Use
10418         TARGET_DEFAULT_RETURN.
10419         (target_can_execute_reverse): Unconditionally delegate.
10420
10421 2014-02-19  Tom Tromey  <tromey@redhat.com>
10422
10423         * target-delegates.c: Rebuild.
10424         * target.c (update_current_target): Don't inherit or default
10425         to_goto_bookmark.
10426         (dummy_goto_bookmark): Remove.
10427         (init_dummy_target): Don't inherit or default to_goto_bookmark.
10428         * target.h (struct target_ops) <to_goto_bookmark>: Use
10429         TARGET_DEFAULT_NORETURN.
10430
10431 2014-02-19  Tom Tromey  <tromey@redhat.com>
10432
10433         * target-delegates.c: Rebuild.
10434         * target.c (update_current_target): Don't inherit or default
10435         to_get_bookmark.
10436         (dummy_get_bookmark): Remove.
10437         (init_dummy_target): Don't inherit or default to_get_bookmark.
10438         * target.h (struct target_ops) <to_get_bookmark>: Use
10439         TARGET_DEFAULT_NORETURN
10440
10441 2014-02-19  Tom Tromey  <tromey@redhat.com>
10442
10443         * target-delegates.c: Rebuild.
10444         * target.c (update_current_target): Don't inherit or default
10445         to_make_corefile_notes.
10446         (init_dummy_target): Don't initialize to_make_corefile_notes.
10447         * target.h (struct target_ops) <to_make_corefile_notes>: Use
10448         TARGET_DEFAULT_FUNC.
10449
10450 2014-02-19  Tom Tromey  <tromey@redhat.com>
10451
10452         * target-delegates.c: Rebuild.
10453         * target.c (update_current_target): Don't inherit or default
10454         to_find_memory_regions.
10455         (init_dummy_target): Don't initialize to_find_memory_regions.
10456         * target.h (struct target_ops) <to_find_memory_regions>: Use
10457         TARGET_DEFAULT_FUNC.
10458
10459 2014-02-19  Tom Tromey  <tromey@redhat.com>
10460
10461         * target-delegates.c: Rebuild.
10462         * target.c (update_current_target): Don't inherit or default
10463         to_log_command.
10464         * target.h (struct target_ops) <to_log_command>: Use
10465         TARGET_DEFAULT_IGNORE.
10466         (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
10473         * target.h (struct target_ops) <to_pid_to_exec_file>: 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_thread_name.
10481         (target_thread_name): Unconditionally delegate.
10482         * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
10490         * target.h (struct target_ops) <to_extra_thread_info>: Use
10491         TARGET_DEFAULT_RETURN.
10492
10493 2014-02-19  Tom Tromey  <tromey@redhat.com>
10494
10495         * target-delegates.c: Rebuild.
10496         * target.c (update_current_target): Don't inherit or default
10497         to_has_exited.
10498         * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
10506         (return_one): Remove.
10507         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10508         TARGET_DEFAULT_RETURN.
10509
10510 2014-02-19  Tom Tromey  <tromey@redhat.com>
10511
10512         * target-delegates.c: Rebuild.
10513         * target.c (update_current_target): Don't inherit or default
10514         to_insert_exec_catchpoint.
10515         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10516         TARGET_DEFAULT_RETURN.
10517
10518 2014-01-08  Tom Tromey  <tromey@redhat.com>
10519
10520         * target-delegates.c: Rebuild.
10521         * target.c (update_current_target): Don't inherit or default
10522         to_insert_exec_catchpoint.
10523         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10524         TARGET_DEFAULT_RETURN.
10525
10526 2014-02-19  Tom Tromey  <tromey@redhat.com>
10527
10528         * target-delegates.c: Rebuild.
10529         * target.c (update_current_target): Don't inherit or default
10530         to_remove_vfork_catchpoint.
10531         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10532         TARGET_DEFAULT_RETURN.
10533
10534 2014-02-19  Tom Tromey  <tromey@redhat.com>
10535
10536         * target-delegates.c: Rebuild.
10537         * target.c (update_current_target): Don't inherit or default
10538         to_insert_vfork_catchpoint.
10539         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10540         TARGET_DEFAULT_RETURN.
10541
10542 2014-02-19  Tom Tromey  <tromey@redhat.com>
10543
10544         * target-delegates.c: Rebuild.
10545         * target.c (update_current_target): Don't inherit or default
10546         to_remove_fork_catchpoint.
10547         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10548         TARGET_DEFAULT_RETURN.
10549
10550 2014-02-19  Tom Tromey  <tromey@redhat.com>
10551
10552         * target-delegates.c: Rebuild.
10553         * target.c (update_current_target): Don't inherit or default
10554         to_insert_fork_catchpoint.
10555         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10556         TARGET_DEFAULT_RETURN.
10557
10558 2014-02-19  Tom Tromey  <tromey@redhat.com>
10559
10560         * target-delegates.c: Rebuild.
10561         * target.c (update_current_target): Don't inherit or default
10562         to_post_startup_inferior.
10563         * target.h (struct target_ops) <to_post_startup_inferior>: Use
10564         TARGET_DEFAULT_IGNORE.
10565
10566 2014-02-19  Tom Tromey  <tromey@redhat.com>
10567
10568         * target-delegates.c: Rebuild.
10569         * target.c (update_current_target): Don't inherit or default
10570         to_load.
10571         * target.h (struct target_ops) <to_load>: Use
10572         TARGET_DEFAULT_NORETURN.
10573
10574 2014-02-19  Tom Tromey  <tromey@redhat.com>
10575
10576         * target-delegates.c: Rebuild.
10577         * target.c (update_current_target): Don't inherit or default
10578         to_terminal_info.
10579         * target.h (struct target_ops) <to_terminal_info>: Use
10580         TARGET_DEFAULT_FUNC.
10581
10582 2014-02-19  Tom Tromey  <tromey@redhat.com>
10583
10584         * target-delegates.c: Rebuild.
10585         * target.c (update_current_target): Don't inherit or default
10586         to_terminal_save_ours.
10587         * target.h (struct target_ops) <to_terminal_save_ours>: Use
10588         TARGET_DEFAULT_IGNORE.
10589
10590 2014-02-19  Tom Tromey  <tromey@redhat.com>
10591
10592         * target-delegates.c: Rebuild.
10593         * target.c (update_current_target): Don't inherit or default
10594         to_terminal_ours.
10595         * target.h (struct target_ops) <to_terminal_ours>: Use
10596         TARGET_DEFAULT_IGNORE.
10597
10598 2014-02-19  Tom Tromey  <tromey@redhat.com>
10599
10600         * target-delegates.c: Rebuild.
10601         * target.c (update_current_target): Don't inherit or default
10602         to_terminal_ours_for_output.
10603         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10604         TARGET_DEFAULT_IGNORE.
10605
10606 2014-02-19  Tom Tromey  <tromey@redhat.com>
10607
10608         * target-delegates.c: Rebuild.
10609         * target.c (update_current_target): Don't inherit or default
10610         to_terminal_inferior.
10611         * target.h (struct target_ops) <to_terminal_inferior>: Use
10612         TARGET_DEFAULT_IGNORE.
10613
10614 2014-02-19  Tom Tromey  <tromey@redhat.com>
10615
10616         * target-delegates.c: Rebuild.
10617         * target.c (update_current_target): Don't inherit or default
10618         to_terminal_init.
10619         * target.h (struct target_ops) <to_terminal_init>: Use
10620         TARGET_DEFAULT_IGNORE.
10621
10622 2014-02-19  Tom Tromey  <tromey@redhat.com>
10623
10624         * target-delegates.c: Rebuild.
10625         * target.c (update_current_target): Don't inherit or default
10626         to_can_accel_watchpoint_condition.
10627         * target.h (struct target_ops)
10628         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10629
10630 2014-02-19  Tom Tromey  <tromey@redhat.com>
10631
10632         * target-delegates.c: Rebuild.
10633         * target.c (update_current_target): Don't inherit or default
10634         to_region_ok_for_hw_watchpoint.
10635         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10636         Use TARGET_DEFAULT_FUNC.
10637
10638 2014-02-19  Tom Tromey  <tromey@redhat.com>
10639
10640         * target-delegates.c: Rebuild.
10641         * target.c (update_current_target): Don't inherit or default
10642         to_watchpoint_addr_within_range.
10643         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10644         Use TARGET_DEFAULT_FUNC.
10645
10646 2014-02-19  Tom Tromey  <tromey@redhat.com>
10647
10648         * target-delegates.c: Rebuild.
10649         * target.c (update_current_target): Don't inherit or default
10650         to_remove_watchpoint.
10651         * target.h (struct target_ops) <to_remove_watchpoint>: Use
10652         TARGET_DEFAULT_NORETURN.
10653
10654 2014-02-19  Tom Tromey  <tromey@redhat.com>
10655
10656         * target-delegates.c: Rebuild.
10657         * target.c (update_current_target): Don't inherit or default
10658         to_insert_watchpoint.
10659         * target.h (struct target_ops) <to_insert_watchpoint>: Use
10660         TARGET_DEFAULT_RETURN.
10661
10662 2014-02-19  Tom Tromey  <tromey@redhat.com>
10663
10664         * target-delegates.c: Rebuild.
10665         * target.c (update_current_target): Don't inherit or default
10666         to_remove_hw_breakpoint.
10667         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10668         TARGET_DEFAULT_RETURN.
10669
10670 2014-02-19  Tom Tromey  <tromey@redhat.com>
10671
10672         * target-delegates.c: Rebuild.
10673         * target.c (update_current_target): Don't inherit or default
10674         to_insert_hw_breakpoint.
10675         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10676         TARGET_DEFAULT_RETURN.
10677
10678 2014-02-19  Tom Tromey  <tromey@redhat.com>
10679
10680         * target-delegates.c: Rebuild.
10681         * target.c (update_current_target): Don't inherit or default
10682         to_can_use_hw_breakpoint.
10683         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10684         TARGET_DEFAULT_RETURN.
10685
10686 2014-02-19  Tom Tromey  <tromey@redhat.com>
10687
10688         * target-delegates.c: Rebuild.
10689         * target.c (update_current_target): Don't inherit or default
10690         to_files_info.
10691         * target.h (struct target_ops) <to_files_info>: Use
10692         TARGET_DEFAULT_IGNORE.
10693
10694 2014-02-19  Tom Tromey  <tromey@redhat.com>
10695
10696         * target-delegates.c: Rebuild.
10697         * target.c (update_current_target): Don't inherit or default
10698         to_store.
10699         * target.h (struct target_ops) <to_store>: Use
10700         TARGET_DEFAULT_NORETURN.
10701
10702 2014-02-19  Tom Tromey  <tromey@redhat.com>
10703
10704         * target-delegates.c: Rebuild.
10705         * target.c (update_current_target): Don't inherit or default
10706         to_post_attach.
10707         * target.h (struct target_ops) <to_post_attach>: Use
10708         TARGET_DEFAULT_IGNORE.
10709
10710 2014-02-19  Tom Tromey  <tromey@redhat.com>
10711
10712         * target-delegates.c: Rebuild.
10713         * target.c (update_current_target): Don't inherit or default
10714         to_rcmd.
10715         (default_rcmd): New function.
10716         (do_monitor_command): Unconditionally delegate.
10717         * target.h (struct target_ops) <to_rmcd>: Use
10718         TARGET_DEFAULT_FUNC.
10719
10720 2014-02-19  Tom Tromey  <tromey@redhat.com>
10721
10722         * target-delegates.c: Rebuild.
10723         * target.c (init_dummy_target): Don't initialize to_attach.
10724         (target_attach): Unconditionally delegate.
10725         * target.h (struct target_ops) <to_attach>: Use
10726         TARGET_DEFAULT_FUNC.
10727
10728 2014-02-19  Tom Tromey  <tromey@redhat.com>
10729
10730         * target-delegates.c: Rebuild.
10731         * target.c (target_detach): Unconditionally delegate.
10732         (init_dummy_target): Don't initialize to_detach.
10733         * target.h (struct target_ops) <to_detach>: Use
10734         TARGET_DEFAULT_IGNORE.
10735
10736 2014-02-19  Tom Tromey  <tromey@redhat.com>
10737
10738         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10739         Add argument.
10740         (target_augmented_libraries_svr4_read): Add argument.
10741         * target.c (update_current_target): Update.
10742         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10743         argument.
10744
10745 2014-02-19  Tom Tromey  <tromey@redhat.com>
10746
10747         * target.h (struct target_ops) <to_call_history_range>: Add
10748         argument.
10749         * target.c (target_call_history_range): Add argument.
10750         * record-btrace.c (record_btrace_call_history_range): Add 'self'
10751         argument.
10752         (record_btrace_call_history_from): Update.
10753
10754 2014-02-19  Tom Tromey  <tromey@redhat.com>
10755
10756         * target.h (struct target_ops) <to_call_history_from>: Add
10757         argument.
10758         * target.c (target_call_history_from): Add argument.
10759         * record-btrace.c (record_btrace_call_history_from): Add 'self'
10760         argument.
10761
10762 2014-02-19  Tom Tromey  <tromey@redhat.com>
10763
10764         * target.h (struct target_ops) <to_call_history>: Add argument.
10765         * target.c (target_call_history): Add argument.
10766         * record-btrace.c (record_btrace_call_history): Add 'self'
10767         argument.
10768
10769 2014-02-19  Tom Tromey  <tromey@redhat.com>
10770
10771         * target.h (struct target_ops) <to_insn_history_range>: Add
10772         argument.
10773         * target.c (target_insn_history_range): Add argument.
10774         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10775         argument.
10776         (record_btrace_insn_history_from): Update.
10777
10778 2014-02-19  Tom Tromey  <tromey@redhat.com>
10779
10780         * target.h (struct target_ops) <to_insn_history_from>: Add
10781         argument.
10782         * target.c (target_insn_history_from): Add argument.
10783         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10784         argument.
10785
10786 2014-02-19  Tom Tromey  <tromey@redhat.com>
10787
10788         * target.h (struct target_ops) <to_insn_history>: Add argument.
10789         * target.c (target_insn_history): Add argument.
10790         * record-btrace.c (record_btrace_insn_history): Add 'self'
10791         argument.
10792
10793 2014-02-19  Tom Tromey  <tromey@redhat.com>
10794
10795         * target.h (struct target_ops) <to_goto_record>: Add argument.
10796         * target.c (target_goto_record): Add argument.
10797         * record-full.c (record_full_goto): Add 'self' argument.
10798         * record-btrace.c (record_btrace_goto): Add 'self' argument.
10799
10800 2014-02-19  Tom Tromey  <tromey@redhat.com>
10801
10802         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10803         * target.c (target_goto_record_end): Add argument.
10804         * record-full.c (record_full_goto_end): Add 'self' argument.
10805         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10806
10807 2014-02-19  Tom Tromey  <tromey@redhat.com>
10808
10809         * target.h (struct target_ops) <to_goto_record_begin>: Add
10810         argument.
10811         * target.c (target_goto_record_begin): Add argument.
10812         * record-full.c (record_full_goto_begin): Add 'self' argument.
10813         * record-btrace.c (record_btrace_goto_begin): Add 'self'
10814         argument.
10815
10816 2014-02-19  Tom Tromey  <tromey@redhat.com>
10817
10818         * target.h (struct target_ops) <to_record_is_replaying>: Add
10819         argument.
10820         * target.c (target_record_is_replaying): Add argument.
10821         * record-full.c (record_full_is_replaying): Add 'self' argument.
10822         * record-btrace.c (record_btrace_is_replaying): Add 'self'
10823         argument.
10824         (record_btrace_xfer_partial, record_btrace_store_registers)
10825         (record_btrace_prepare_to_store, record_btrace_resume)
10826         (record_btrace_wait, record_btrace_decr_pc_after_break)
10827         (record_btrace_find_new_threads, record_btrace_thread_alive):
10828         Update.
10829
10830 2014-02-19  Tom Tromey  <tromey@redhat.com>
10831
10832         * target.h (struct target_ops) <to_delete_record>: Add argument.
10833         * target.c (target_delete_record): Add argument.
10834         * record-full.c (record_full_delete): Add 'self' argument.
10835
10836 2014-02-19  Tom Tromey  <tromey@redhat.com>
10837
10838         * target.h (struct target_ops) <to_save_record>: Add argument.
10839         * target.c (target_save_record): Add argument.
10840         * record-full.c (record_full_save): Add 'self' argument.
10841         (record_full_save): Add 'self' argument.
10842
10843 2014-02-19  Tom Tromey  <tromey@redhat.com>
10844
10845         * target.h (struct target_ops) <to_info_record>: Add argument.
10846         * target.c (target_info_record): Add argument.
10847         * record.c (info_record_command): Add argument.
10848         * record-full.c (record_full_info): Add 'self' argument.
10849         * record-btrace.c (record_btrace_info): Add 'self' argument.
10850
10851 2014-02-19  Tom Tromey  <tromey@redhat.com>
10852
10853         * target.h (struct target_ops) <to_stop_recording>: Add argument.
10854         * target.c (target_stop_recording): Add argument.
10855         * record.c (record_stop): Add argument.
10856         * record-btrace.c (record_btrace_stop_recording): Add 'self'
10857         argument.
10858
10859 2014-02-19  Tom Tromey  <tromey@redhat.com>
10860
10861         * target.h (struct target_ops) <to_read_btrace>: Add argument.
10862         * target.c (struct target_ops) <to_read_btrace>: Add argument.
10863         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10864         argument.
10865         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10866         (_initialize_amd64_linux_nat): Use it.
10867         * i386-linux-nat.c (i386_linux_read_btrace): New function.
10868         (_initialize_i386_linux_nat): Use it.
10869
10870 2014-02-19  Tom Tromey  <tromey@redhat.com>
10871
10872         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10873         * target.c (target_teardown_btrace): Add argument.
10874         * remote.c (remote_teardown_btrace): Add 'self' argument.
10875         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10876         argument.
10877         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10878         argument.
10879
10880 2014-02-19  Tom Tromey  <tromey@redhat.com>
10881
10882         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10883         * target.c (target_disable_btrace): Add argument.
10884         * remote.c (remote_disable_btrace): Add 'self' argument.
10885         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10886         argument.
10887         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10888         argument.
10889
10890 2014-02-19  Tom Tromey  <tromey@redhat.com>
10891
10892         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10893         * target.c (target_enable_btrace): Add argument.
10894         * remote.c (remote_enable_btrace): Add 'self' argument.
10895         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10896         argument.
10897         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10898         argument.
10899
10900 2014-02-19  Tom Tromey  <tromey@redhat.com>
10901
10902         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10903         (target_can_use_agent): Add argument.
10904         * target.c (update_current_target): Update.
10905         * remote.c (remote_can_use_agent): Add 'self' argument.
10906         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10907
10908 2014-02-19  Tom Tromey  <tromey@redhat.com>
10909
10910         * target.h (struct target_ops) <to_use_agent>: Add argument.
10911         (target_use_agent): Add argument.
10912         * target.c (update_current_target): Update.
10913         * remote.c (remote_use_agent): Add 'self' argument.
10914         * inf-child.c (inf_child_use_agent): Add 'self' argument.
10915
10916 2014-02-19  Tom Tromey  <tromey@redhat.com>
10917
10918         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10919         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10920         (target_traceframe_info): Add argument.
10921         * target.c (update_current_target): Update.
10922         * remote.c (remote_traceframe_info): Add 'self' argument.
10923         * ctf.c (ctf_traceframe_info): Add 'self' argument.
10924
10925 2014-02-19  Tom Tromey  <tromey@redhat.com>
10926
10927         * target.h (target_static_tracepoint_markers_by_strid): Add
10928         argument.
10929         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10930         'self' argument.
10931         * target.c (update_current_target): Update.
10932         * remote.c (struct target_ops)
10933         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10934         * linux-nat.c (struct target_ops)
10935         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10936
10937 2014-02-19  Tom Tromey  <tromey@redhat.com>
10938
10939         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10940         Add argument.
10941         (target_static_tracepoint_marker_at): Add argument.
10942         * target.c (update_current_target): Update.
10943         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10944         argument.
10945
10946 2014-02-19  Tom Tromey  <tromey@redhat.com>
10947
10948         * target.h (struct target_ops) <to_set_permissions>: Add argument.
10949         (target_set_permissions): Add argument.
10950         * target.c (update_current_target): Update.
10951         * remote.c (remote_set_permissions): Add 'self' argument.
10952         (remote_start_remote): Update.
10953
10954 2014-02-19  Tom Tromey  <tromey@redhat.com>
10955
10956         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10957         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10958         (target_get_tib_address): Add argument.
10959         * target.c (update_current_target): Update.
10960         * remote.c (remote_get_tib_address): Add 'self' argument.
10961
10962 2014-02-19  Tom Tromey  <tromey@redhat.com>
10963
10964         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10965         (target_set_trace_notes): Add argument.
10966         * target.c (update_current_target): Update.
10967         * remote.c (remote_set_trace_notes): Add 'self' argument.
10968
10969 2014-02-19  Tom Tromey  <tromey@redhat.com>
10970
10971         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10972         argument.
10973         (target_set_trace_buffer_size): Add argument.
10974         * target.c (update_current_target): Update.
10975         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10976
10977 2014-02-19  Tom Tromey  <tromey@redhat.com>
10978
10979         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10980         argument.
10981         (target_set_circular_trace_buffer): Add argument.
10982         * target.c (update_current_target): Update.
10983         * remote.c (remote_set_circular_trace_buffer): Add 'self'
10984         argument.
10985
10986 2014-02-19  Tom Tromey  <tromey@redhat.com>
10987
10988         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10989         argument.
10990         (target_set_disconnected_tracing): Add argument.
10991         * target.c (update_current_target): Update.
10992         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10993
10994 2014-02-19  Tom Tromey  <tromey@redhat.com>
10995
10996         * target.h (struct target_ops)
10997         <to_get_min_fast_tracepoint_insn_len>: Add argument.
10998         (target_get_min_fast_tracepoint_insn_len): Add argument.
10999         * target.c (update_current_target): Update.
11000         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11001         argument.
11002
11003 2014-02-19  Tom Tromey  <tromey@redhat.com>
11004
11005         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11006         argument.
11007         (target_get_raw_trace_data): Add argument.
11008         * target.c (update_current_target): Update.
11009         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11010
11011 2014-02-19  Tom Tromey  <tromey@redhat.com>
11012
11013         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11014         Add argument.
11015         (target_upload_trace_state_variables): Add argument.
11016         * target.c (update_current_target): Update.
11017         * remote.c (remote_upload_trace_state_variables): Add 'self'
11018         argument.
11019         (remote_start_remote): Update.
11020
11021 2014-02-19  Tom Tromey  <tromey@redhat.com>
11022
11023         * target.h (struct target_ops) <to_upload_tracepoints>: Add
11024         argument.
11025         (target_upload_tracepoints): Add argument.
11026         * target.c (update_current_target): Update.
11027         * remote.c (remote_upload_tracepoints): Add 'self' argument.
11028         (remote_start_remote): Update.
11029
11030 2014-02-19  Tom Tromey  <tromey@redhat.com>
11031
11032         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11033         (target_save_trace_data): Add argument.
11034         * target.c (update_current_target): Update.
11035         * remote.c (remote_save_trace_data): Add 'self' argument.
11036
11037 2014-02-19  Tom Tromey  <tromey@redhat.com>
11038
11039         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11040         argument.
11041         * target.h (struct target_ops)
11042         <to_get_trace_state_variable_value>: Add argument.
11043         (target_get_trace_state_variable_value): Add argument.
11044         * target.c (update_current_target): Update.
11045         * remote.c (remote_get_trace_state_variable_value): Add 'self'
11046         argument.
11047         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11048
11049 2014-02-19  Tom Tromey  <tromey@redhat.com>
11050
11051         * tracepoint.c (tfile_trace_find): Add 'self' argument.
11052         * target.h (struct target_ops) <to_trace_find>: Add argument.
11053         (target_trace_find): Add argument.
11054         * target.c (update_current_target): Update.
11055         * remote.c (remote_trace_find): Add 'self' argument.
11056         * ctf.c (ctf_trace_find): Add 'self' argument.
11057
11058 2014-02-19  Tom Tromey  <tromey@redhat.com>
11059
11060         * target.h (struct target_ops) <to_trace_stop>: Add argument.
11061         (target_trace_stop): Add argument.
11062         * target.c (update_current_target): Update.
11063         * remote.c (remote_trace_stop): Add 'self' argument.
11064
11065 2014-02-19  Tom Tromey  <tromey@redhat.com>
11066
11067         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11068         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11069         argument.
11070         (target_get_tracepoint_status): Add argument.
11071         * target.c (update_current_target): Update.
11072         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11073
11074 2014-02-19  Tom Tromey  <tromey@redhat.com>
11075
11076         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11077         * target.h (struct target_ops) <to_get_trace_status>: Add
11078         argument.
11079         (target_get_trace_status): Add argument.
11080         * target.c (update_current_target): Update.
11081         * remote.c (remote_get_trace_status): Add 'self' argument.
11082         (remote_start_remote, remote_can_download_tracepoint): Update.
11083         * ctf.c (ctf_get_trace_status): Add 'self' argument.
11084
11085 2014-02-19  Tom Tromey  <tromey@redhat.com>
11086
11087         * target.h (struct target_ops) <to_trace_start>: Add argument.
11088         (target_trace_start): Add argument.
11089         * target.c (update_current_target): Update.
11090         * remote.c (remote_trace_start): Add 'self' argument.
11091
11092 2014-02-19  Tom Tromey  <tromey@redhat.com>
11093
11094         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11095         Add argument.
11096         (target_trace_set_readonly_regions): Add argument.
11097         * target.c (update_current_target): Update.
11098         * remote.c (remote_trace_set_readonly_regions): Add 'self'
11099         argument.
11100
11101 2014-02-19  Tom Tromey  <tromey@redhat.com>
11102
11103         * target.h (struct target_ops) <to_disable_tracepoint>: Add
11104         argument.
11105         (target_disable_tracepoint): Add argument.
11106         * target.c (update_current_target): Update.
11107         * remote.c (remote_disable_tracepoint): Add 'self' argument.
11108
11109 2014-02-19  Tom Tromey  <tromey@redhat.com>
11110
11111         * target.h (struct target_ops) <to_enable_tracepoint>: Add
11112         argument.
11113         (target_enable_tracepoint): Add argument.
11114         * target.c (update_current_target): Update.
11115         * remote.c (remote_enable_tracepoint): Add 'self' argument.
11116
11117 2014-02-19  Tom Tromey  <tromey@redhat.com>
11118
11119         * target.h (struct target_ops) <to_download_trace_state_variable>:
11120         Add argument.
11121         (target_download_trace_state_variable): Add argument.
11122         * target.c (update_current_target): Update.
11123         * remote.c (remote_download_trace_state_variable): Add 'self'
11124         argument.
11125
11126 2014-02-19  Tom Tromey  <tromey@redhat.com>
11127
11128         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11129         argument.
11130         (target_can_download_tracepoint): Add argument.
11131         * target.c (update_current_target): Update.
11132         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11133
11134 2014-02-19  Tom Tromey  <tromey@redhat.com>
11135
11136         * target.h (struct target_ops) <to_download_tracepoint>: Add
11137         argument.
11138         (target_download_tracepoint): Add argument.
11139         * target.c (update_current_target): Update.
11140         * remote.c (remote_download_tracepoint): Add 'self' argument.
11141
11142 2014-02-19  Tom Tromey  <tromey@redhat.com>
11143
11144         * target.h (struct target_ops) <to_trace_init>: Add argument.
11145         (target_trace_init): Add argument.
11146         * target.c (update_current_target): Update.
11147         * remote.c (remote_trace_init): Add 'self' argument.
11148
11149 2014-02-19  Tom Tromey  <tromey@redhat.com>
11150
11151         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11152         * target.c (target_fileio_readlink): Add argument.
11153         * remote.c (remote_hostio_readlink): Add 'self' argument.
11154         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11155
11156 2014-02-19  Tom Tromey  <tromey@redhat.com>
11157
11158         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11159         * target.c (target_fileio_unlink): Add argument.
11160         * remote.c (remote_hostio_unlink): Add 'self' argument.
11161         (remote_file_delete): Update.
11162         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11163
11164 2014-02-19  Tom Tromey  <tromey@redhat.com>
11165
11166         * target.h (struct target_ops) <to_fileio_close>: Add argument.
11167         * target.c (target_fileio_close): Add argument.
11168         * remote.c (remote_hostio_close): Add 'self' argument.
11169         (remote_hostio_close_cleanup): Update.
11170         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11171         Update.
11172         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11173
11174 2014-02-19  Tom Tromey  <tromey@redhat.com>
11175
11176         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11177         * target.c (target_fileio_pread): Add argument.
11178         * remote.c (remote_hostio_pread): Add 'self' argument.
11179         (remote_bfd_iovec_pread, remote_file_get): Update.
11180         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11181
11182 2014-02-19  Tom Tromey  <tromey@redhat.com>
11183
11184         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11185         * target.c (target_fileio_pwrite): Add argument.
11186         * remote.c (remote_hostio_pwrite): Add 'self' argument.
11187         (remote_file_put): Update.
11188         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11189
11190 2014-02-19  Tom Tromey  <tromey@redhat.com>
11191
11192         * target.h (struct target_ops) <to_fileio_open>: Add argument.
11193         * target.c (target_fileio_open): Add argument.
11194         * remote.c (remote_hostio_open): Add 'self' argument.
11195         (remote_bfd_iovec_open): Add 'self' argument.
11196         (remote_file_put): Add 'self' argument.
11197         (remote_file_get): Add 'self' argument.
11198         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11199
11200 2014-02-19  Tom Tromey  <tromey@redhat.com>
11201
11202         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11203         Add argument.
11204         (target_can_run_breakpoint_commands): Add argument.
11205         * target.c (update_current_target): Update.
11206         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11207         argument.
11208         (remote_insert_breakpoint): Add 'self' argument.
11209         (remote_insert_hw_breakpoint): Add 'self' argument.
11210         (remote_can_run_breakpoint_commands): Add 'self' argument.
11211
11212 2014-02-19  Tom Tromey  <tromey@redhat.com>
11213
11214         * target.h (struct target_ops)
11215         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11216         (target_supports_evaluation_of_breakpoint_conditions): Add
11217         argument.
11218         * target.c (update_current_target): Update.
11219         * remote.c (remote_supports_cond_breakpoints): Add 'self'
11220         argument.
11221         (remote_insert_breakpoint): Add 'self' argument.
11222         (remote_insert_hw_breakpoint): Add 'self' argument.
11223         (remote_supports_cond_breakpoints): Add 'self' argument.
11224
11225 2014-02-19  Tom Tromey  <tromey@redhat.com>
11226
11227         * target.h (struct target_ops) <to_supports_string_tracing>: Add
11228         argument.
11229         (target_supports_string_tracing): Add argument.
11230         * target.c (update_current_target): Update.
11231         * remote.c (remote_supports_string_tracing): Add 'self' argument.
11232
11233 2014-02-19  Tom Tromey  <tromey@redhat.com>
11234
11235         * target.h (struct target_ops)
11236         <to_supports_disable_randomization>: Add argument.
11237         * target.c (find_default_supports_disable_randomization): Add
11238         argument.
11239         (target_supports_disable_randomization): Add argument.
11240         (find_default_supports_disable_randomization): Add 'self'
11241         argument.
11242         * remote.c (extended_remote_supports_disable_randomization): Add
11243         'self' argument.
11244         (remote_supports_disable_randomization): Add 'self' argument.
11245         (extended_remote_create_inferior): Update.
11246         * linux-nat.c (linux_nat_supports_disable_randomization): Add
11247         'self' argument.
11248
11249 2014-02-19  Tom Tromey  <tromey@redhat.com>
11250
11251         * target.h (struct target_ops)
11252         <to_supports_enable_disable_tracepoint>: Add argument.
11253         (target_supports_enable_disable_tracepoint): Add argument.
11254         * target.c (update_current_target): Update.
11255         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11256         argument.
11257
11258 2014-02-19  Tom Tromey  <tromey@redhat.com>
11259
11260         * target.h (struct target_ops) <to_supports_multi_process>: Add
11261         argument.
11262         (target_supports_multi_process): Add argument.
11263         * target.c (update_current_target): Update.
11264         * remote.c (remote_supports_multi_process): Add 'self' argument.
11265         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11266         argument.
11267         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11268         argument.
11269
11270 2014-02-19  Tom Tromey  <tromey@redhat.com>
11271
11272         * target.h (struct target_ops) <to_execution_direction>: Add
11273         argument.
11274         (target_execution_direction): Add argument.
11275         * target.c (default_execution_direction): Add 'self' argument.
11276         * record-full.c (record_full_execution_direction): Add 'self'
11277         argument.
11278
11279 2014-02-19  Tom Tromey  <tromey@redhat.com>
11280
11281         * target.h (struct target_ops) <to_can_execute_reverse>: Add
11282         argument.
11283         (target_can_execute_reverse): Add argument.
11284         * remote.c (remote_can_execute_reverse): Add 'self' argument.
11285         * record-full.c (record_full_can_execute_reverse): Add 'self'
11286         argument.
11287         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11288         argument.
11289
11290 2014-02-19  Tom Tromey  <tromey@redhat.com>
11291
11292         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11293         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11294         argument.
11295         (target_get_ada_task_ptid): Add argument.
11296         * target.c (update_current_target): Update.
11297         (default_get_ada_task_ptid): Add 'self' argument.
11298         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11299         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11300         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11301         argument.
11302         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11303         argument.
11304         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11305         argument.
11306         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11307         argument.
11308         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11309         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11310         argument.
11311
11312 2014-02-19  Tom Tromey  <tromey@redhat.com>
11313
11314         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11315         (target_goto_bookmark): Add argument.
11316         * target.c (dummy_goto_bookmark): Add 'self' argument.
11317         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11318
11319 2014-02-19  Tom Tromey  <tromey@redhat.com>
11320
11321         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11322         (target_get_bookmark): Add argument.
11323         * target.c (dummy_get_bookmark): Add 'self' argument.
11324         * record-full.c (record_full_get_bookmark): Add 'self' argument.
11325
11326 2014-02-19  Tom Tromey  <tromey@redhat.com>
11327
11328         * target.h (struct target_ops) <to_make_corefile_notes>: Add
11329         argument.
11330         (target_make_corefile_notes): Add argument.
11331         * target.c (dummy_make_corefile_notes): Add 'self' argument.
11332         * procfs.c (procfs_make_note_section): Add 'self' argument.
11333         (procfs_make_note_section): Add 'self' argument.
11334         (procfs_make_note_section): Add 'self' argument.
11335         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11336         argument.
11337         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11338         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11339         * exec.c (exec_make_note_section): Add 'self' argument.
11340         (exec_make_note_section): Add 'self' argument.
11341
11342 2014-02-19  Tom Tromey  <tromey@redhat.com>
11343
11344         * target.h (struct target_ops) <to_find_memory_regions>: Add
11345         argument.
11346         (target_find_memory_regions): Add argument.
11347         * target.c (dummy_find_memory_regions): Add 'self' argument.
11348         * procfs.c (proc_find_memory_regions): Add 'self' argument.
11349         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11350         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11351         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11352         * exec. (exec_do_find_memory_regions): New global.
11353         (exec_set_find_memory_regions): Rewrite.
11354         (exec_find_memory_regions): New function.
11355         (init_exec_ops): Use exec_find_memory_regions.
11356
11357 2014-02-19  Tom Tromey  <tromey@redhat.com>
11358
11359         * target.h (struct target_ops) <to_supports_non_stop>: Add
11360         argument.
11361         * target.c (find_default_supports_non_stop): Add argument.
11362         (target_supports_non_stop): Add argument.
11363         (find_default_supports_non_stop): Add 'self' argument.
11364         * remote.c (remote_supports_non_stop): Add 'self' argument.
11365         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11366
11367 2014-02-19  Tom Tromey  <tromey@redhat.com>
11368
11369         * target.h (struct target_ops) <to_log_command>: Add argument.
11370         (target_log_command): Add argument.
11371         * serial.h (serial_log_command): Add 'self' argument.
11372         * serial.c (serial_log_command): Add 'self' argument.
11373
11374 2014-02-19  Tom Tromey  <tromey@redhat.com>
11375
11376         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11377         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11378         argument.
11379         (target_pid_to_exec_file): Add argument.
11380         * target.c (debug_to_pid_to_exec_file): Add argument.
11381         (update_current_target): Update.
11382         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11383         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11384         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11385         (linux_handle_extended_wait): Update.
11386         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11387         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11388         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11389         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11390
11391 2014-02-19  Tom Tromey  <tromey@redhat.com>
11392
11393         * target.h (struct target_ops) <to_rcmd>: Add argument.
11394         (target_rcmd): Add argument.
11395         * target.c (debug_to_rcmd): Add argument.
11396         (update_current_target, do_monitor_command): Update.
11397         * remote.c (remote_rcmd): Add 'self' argument.
11398         * monitor.c (monitor_rcmd): Add 'self' argument.
11399
11400 2014-02-19  Tom Tromey  <tromey@redhat.com>
11401
11402         * windows-nat.c (windows_stop): Add 'self' argument.
11403         * target.h (struct target_ops) <to_stop>: Add argument.
11404         * target.c (target_stop): Add argument.
11405         (debug_to_stop): Add argument.
11406         (update_current_target): Update.
11407         * remote.c (remote_stop): Add 'self' argument.
11408         * remote-sim.c (gdbsim_stop): Add 'self' argument.
11409         (gdbsim_cntrl_c): Update.
11410         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11411         * procfs.c (procfs_stop): Add 'self' argument.
11412         * nto-procfs.c (procfs_stop): Add 'self' argument.
11413         * monitor.c (monitor_stop): Add 'self' argument.
11414         (monitor_open): Update.
11415         * linux-nat.c (linux_nat_stop): Add argument.
11416         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11417         * gnu-nat.c (gnu_stop): Add 'self' argument.
11418         * darwin-nat.c (darwin_stop): Add 'self' argument.
11419
11420 2014-02-19  Tom Tromey  <tromey@redhat.com>
11421
11422         * target.h (struct target_ops) <to_thread_name>: Add argument.
11423         * target.c (target_thread_name): Add argument.
11424         (update_current_target): Update.
11425         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11426
11427 2014-02-19  Tom Tromey  <tromey@redhat.com>
11428
11429         * target.h (struct target_ops) <to_extra_thread_info>: Add
11430         argument.
11431         (target_extra_thread_info): Add argument.
11432         * target.c (update_current_target): Update.
11433         * remote.c (remote_threads_extra_info): Add 'self' argument.
11434         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11435         argument.
11436         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11437         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11438         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11439         argument.
11440         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11441         argument.
11442         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11443         argument.
11444         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11445         argument.
11446
11447 2014-02-19  Tom Tromey  <tromey@redhat.com>
11448
11449         * target.h (struct target_ops) <to_program_signals>: Add argument.
11450         * target.c (target_program_signals): Add argument.
11451         * remote.c (remote_program_signals): Add 'self' argument.
11452
11453 2014-02-19  Tom Tromey  <tromey@redhat.com>
11454
11455         * target.h (struct target_ops) <to_pass_signals>: Add argument.
11456         * target.c (target_pass_signals): Add argument.
11457         * remote.c (remote_pass_signals): Add 'self' argument.
11458         (remote_start_remote): Update.
11459         * procfs.c (procfs_pass_signals): Add 'self' argument.
11460         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11461         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11462         (linux_nat_create_inferior, linux_nat_attach): Update.
11463
11464 2014-02-19  Tom Tromey  <tromey@redhat.com>
11465
11466         * windows-nat.c (windows_can_run): Add 'self' argument.
11467         * target.h (struct target_ops) <to_can_run>: Add argument.
11468         (target_can_run): Add argument.
11469         * target.c (debug_to_can_run): Add argument.
11470         (update_current_target): Update.
11471         * nto-procfs.c (procfs_can_run): Add 'self' argument.
11472         * inf-child.c (inf_child_can_run): Add 'self' argument.
11473         * go32-nat.c (go32_can_run): Add 'self' argument.
11474
11475 2014-02-19  Tom Tromey  <tromey@redhat.com>
11476
11477         * target.h (struct target_ops) <to_has_exited>: Add argument.
11478         (target_has_exited): Add argument.
11479         * target.c (debug_to_has_exited): Add argument.
11480         (update_current_target): Update.
11481
11482 2014-02-19  Tom Tromey  <tromey@redhat.com>
11483
11484         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11485         argument.
11486         (target_set_syscall_catchpoint): Add argument.
11487         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11488         argument.
11489         * target.c (update_current_target): Update.
11490
11491 2014-02-19  Tom Tromey  <tromey@redhat.com>
11492
11493         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11494         argument.
11495         (target_remove_exec_catchpoint): Add argument.
11496         * target.c (debug_to_remove_exec_catchpoint): Add argument.
11497         (update_current_target): Update.
11498         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11499         argument.
11500
11501 2014-02-19  Tom Tromey  <tromey@redhat.com>
11502
11503         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11504         argument.
11505         (target_insert_exec_catchpoint): Add argument.
11506         * target.c (debug_to_insert_exec_catchpoint): Add argument.
11507         (update_current_target): Update.
11508         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11509         argument.
11510
11511 2014-02-19  Tom Tromey  <tromey@redhat.com>
11512
11513         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11514         argument.
11515         (target_remove_vfork_catchpoint): Add argument.
11516         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11517         (update_current_target): Update.
11518         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11519         argument.
11520
11521 2014-02-19  Tom Tromey  <tromey@redhat.com>
11522
11523         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11524         argument.
11525         (target_insert_vfork_catchpoint): Add argument.
11526         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11527         (update_current_target): Update.
11528         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11529         argument.
11530
11531 2014-02-19  Tom Tromey  <tromey@redhat.com>
11532
11533         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11534         argument.
11535         (target_remove_fork_catchpoint): Add argument.
11536         * target.c (debug_to_remove_fork_catchpoint): Add argument.
11537         (update_current_target): Update.
11538         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11539         argument.
11540
11541 2014-02-19  Tom Tromey  <tromey@redhat.com>
11542
11543         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11544         argument.
11545         (target_insert_fork_catchpoint): Add argument.
11546         * target.c (debug_to_insert_fork_catchpoint): Add argument.
11547         (update_current_target): Update.
11548         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11549         argument.
11550
11551 2014-02-19  Tom Tromey  <tromey@redhat.com>
11552
11553         * target.h (struct target_ops) <to_post_startup_inferior>: Add
11554         argument.
11555         (target_post_startup_inferior): Add argument.
11556         * target.c (debug_to_post_startup_inferior): Add argument.
11557         (update_current_target): Update.
11558         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11559         argument.
11560         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11561         argument.
11562         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11563         argument.
11564         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11565         argument.
11566         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11567         'self' argument.
11568         (super_post_startup_inferior): Likewise.
11569         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11570         'self' argument.
11571         (super_post_startup_inferior): Likewise.
11572         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11573         Add 'self' argument.
11574         (super_post_startup_inferior): Likewise.
11575
11576 2014-02-19  Tom Tromey  <tromey@redhat.com>
11577
11578         * target.h (struct target_ops) <to_load>: Add argument.
11579         * target.c (target_load): Add argument.
11580         (debug_to_load): Add argument.
11581         (update_current_target): Update.
11582         * remote.c (remote_load): Add 'self' argument.
11583         * remote-sim.c (gdbsim_load): Add 'self' argument.
11584         * remote-mips.c (mips_load): Add 'self' argument.
11585         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11586         * monitor.c (monitor_load): Add 'self' argument.
11587         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11588
11589 2014-02-19  Tom Tromey  <tromey@redhat.com>
11590
11591         * target.h (struct target_ops) <to_terminal_info>: Add argument.
11592         (target_terminal_info): Add argument.
11593         * target.c (debug_to_terminal_info): Add argument.
11594         (default_terminal_info): Likewise.
11595         * inflow.c (child_terminal_info): Add 'self' argument.
11596         * inferior.h (child_terminal_info): Add 'self' argument.
11597         * go32-nat.c (go32_terminal_info): Add 'self' argument.
11598
11599 2014-02-19  Tom Tromey  <tromey@redhat.com>
11600
11601         * target.h (struct target_ops) <to_terminal_save_ours>: Add
11602         argument.
11603         (target_terminal_save_ours): Add argument.
11604         * target.c (debug_to_terminal_save_ours): Add argument.
11605         (update_current_target): Update.
11606         * inflow.c (terminal_save_ours): Add 'self' argument.
11607         * inferior.h (terminal_save_ours): Add 'self' argument.
11608
11609 2014-02-19  Tom Tromey  <tromey@redhat.com>
11610
11611         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11612         (target_terminal_ours): Add argument.
11613         * target.c (debug_to_terminal_ours): Add argument.
11614         (update_current_target): Update.
11615         * remote.c (remote_terminal_ours): Add 'self' argument.
11616         (remote_close): Update.
11617         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11618         * inflow.c (terminal_ours): Add 'self' argument.
11619         * inferior.h (terminal_ours): Add 'self' argument.
11620         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11621
11622 2014-02-19  Pedro Alves  <palves@redhat.com>
11623             Tom Tromey  <tromey@redhat.com>
11624
11625         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11626         argument.
11627         (target_terminal_ours_for_output): Add argument.
11628         * target.c (debug_to_terminal_ours_for_output): Add argument.
11629         (update_current_target): Update.
11630         * inflow.c (terminal_ours_for_output): Add 'self' argument.
11631         * inferior.h (terminal_ours_for_output): Add 'self' argument.
11632         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11633
11634 2014-02-19  Tom Tromey  <tromey@redhat.com>
11635
11636         * target.h (struct target_ops) <to_terminal_inferior>: Add
11637         argument.
11638         * target.c (target_terminal_inferior): Add argument.
11639         (update_current_target): Update.
11640         * remote.c (remote_terminal_inferior): Add 'self' argument.
11641         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11642         * inflow.c (terminal_inferior): Add 'self' argument.
11643         * inferior.h (terminal_inferior): Add 'self' argument.
11644         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11645         (go32_terminal_inferior): Add 'self' argument.
11646
11647 2014-02-19  Tom Tromey  <tromey@redhat.com>
11648
11649         * target.h (struct target_ops) <to_terminal_init>: Add argument.
11650         (target_terminal_init): Add argument.
11651         * target.c (debug_to_terminal_init): Add argument.
11652         (update_current_target): Update.
11653         * inflow.c (terminal_init_inferior): Add 'self' argument.
11654         * inferior.h (terminal_init_inferior): Add 'self' argument.
11655         * go32-nat.c (go32_terminal_init): Add 'self' argument.
11656         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11657
11658 2014-02-19  Tom Tromey  <tromey@redhat.com>
11659
11660         * target.h (struct target_ops)
11661         <to_can_accel_watchpoint_condition>: Add argument.
11662         (target_can_accel_watchpoint_condition): Add argument.
11663         * target.c (debug_to_can_accel_watchpoint_condition): Add
11664         argument.
11665         (update_current_target): Update.
11666         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11667         'self' argument.
11668
11669 2014-02-19  Tom Tromey  <tromey@redhat.com>
11670
11671         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11672         Add argument.
11673         (target_region_ok_for_hw_watchpoint): Add argument.
11674         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11675         (default_region_ok_for_hw_watchpoint): Add argument.
11676         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11677         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11678         argument.
11679         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11680         argument.
11681         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11682         argument.
11683         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11684         'self' argument.
11685         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11686         'self' argument.
11687         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11688         'self' argument.
11689         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11690         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11691         'self' argument.
11692         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11693         Add 'self' argument.
11694
11695 2014-02-19  Tom Tromey  <tromey@redhat.com>
11696
11697         * target.h (struct target_ops) <to_insert_watchpoint>: Add
11698         argument.
11699         (target_insert_watchpoint): Add argument.
11700         * target.c (debug_to_insert_watchpoint): Add argument.
11701         (update_current_target): Update.
11702         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11703         * remote.c (remote_insert_watchpoint): Add 'self' argument.
11704         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11705         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11706         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11707         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11708         argument.
11709         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11710         (procfs_insert_hw_watchpoint): Add 'self' argument.
11711         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11712         argument.
11713         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11714         argument.
11715         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11716         argument.
11717         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11718         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11719         argument.
11720         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11721         'self' argument.
11722
11723 2014-02-19  Tom Tromey  <tromey@redhat.com>
11724
11725         * target.h (struct target_ops) <to_remove_watchpoint>: Add
11726         argument.
11727         (target_remove_watchpoint): Add argument.
11728         * target.c (debug_to_remove_watchpoint): Add argument.
11729         (update_current_target): Update.
11730         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11731         * remote.c (remote_remove_watchpoint): Add 'self' argument.
11732         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11733         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11734         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11735         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11736         argument.
11737         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11738         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11739         argument.
11740         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11741         argument.
11742         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11743         argument.
11744         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11745         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11746         argument.
11747         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11748         'self' argument.
11749
11750 2014-02-19  Tom Tromey  <tromey@redhat.com>
11751
11752         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11753         argument.
11754         (target_remove_hw_breakpoint): Add argument.
11755         * target.c (debug_to_remove_hw_breakpoint): Add argument.
11756         (update_current_target): Update.
11757         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11758         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11759         argument.
11760         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11761         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11762         argument.
11763         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11764         'self' argument.
11765
11766 2014-02-19  Tom Tromey  <tromey@redhat.com>
11767
11768         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11769         argument.
11770         (target_insert_hw_breakpoint): Add argument.
11771         * target.c (debug_to_insert_hw_breakpoint): Add argument.
11772         (update_current_target): Update.
11773         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11774         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11775         argument.
11776         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11777         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11778         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11779         argument.
11780         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11781         'self' argument.
11782
11783 2014-02-19  Tom Tromey  <tromey@redhat.com>
11784
11785         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11786         argument.
11787         (target_can_use_hardware_watchpoint): Add argument.
11788         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11789         (update_current_target): Update.
11790         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11791         argument.
11792         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11793         argument.
11794         * remote.c (remote_check_watch_resources): Add 'self' argument.
11795         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11796         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11797         argument.
11798         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11799         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11800         argument.
11801         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11802         argument.
11803         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11804         argument.
11805         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11806         argument.
11807         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11808         argument.
11809         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11810         argument.
11811         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11812         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11813         argument.
11814         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11815         'self' argument.
11816
11817 2014-02-19  Tom Tromey  <tromey@redhat.com>
11818
11819         * target.h (struct target_ops) <to_post_attach>: Add argument.
11820         (target_post_attach): Add argument.
11821         * target.c (debug_to_post_attach): Add argument.
11822         (update_current_target): Update.
11823         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11824         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11825         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11826         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11827         * inf-child.c (inf_child_post_attach): Add 'self' argument.
11828
11829 2014-02-19  Tom Tromey  <tromey@redhat.com>
11830
11831         * windows-nat.c (windows_close): Add 'self' argument.
11832         * tracepoint.c (tfile_close): Add 'self' argument.
11833         * target.h (struct target_ops) <to_close>: Add argument.
11834         * target.c (target_close): Add argument.
11835         (update_current_target): Update.
11836         * remote.c (remote_close): Add 'self' argument.
11837         * remote-sim.c (gdbsim_close): Add 'self' argument.
11838         * remote-mips.c (mips_close): Add 'self' argument.
11839         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11840         * record-full.c (record_full_close): Add 'self' argument.
11841         * record-btrace.c (record_btrace_close): Add 'self' argument.
11842         * monitor.h (monitor_close): Add 'self' argument.
11843         * monitor.c (monitor_close): Add 'self' argument.
11844         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11845         * linux-nat.c (linux_nat_close): Add argument.
11846         * go32-nat.c (go32_close): Add 'self' argument.
11847         * exec.c (exec_close_1): Add 'self' argument.
11848         * ctf.c (ctf_close): Add 'self' argument.
11849         * corelow.c (core_close): Add 'self' argument.
11850         (core_close_cleanup): Update.
11851         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11852         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11853
11854 2014-02-19  Tom Tromey  <tromey@redhat.com>
11855
11856         * remote.c (remote_load): New function.
11857         (init_remote_ops): Use it.
11858
11859 2014-02-19  Tom Tromey  <tromey@redhat.com>
11860
11861         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11862         argument.
11863         * common/linux-btrace.h (linux_supports_btrace): Update.
11864         * remote.c (remote_supports_btrace): Add "self" argument.
11865         * target-delegates.c: Rebuild.
11866         * target.c (target_supports_btrace): Remove.
11867         * target.h (struct target_ops) <to_supports_btrace>: Add
11868         target_ops argument.
11869         (target_supports_btrace): New define.
11870
11871 2014-02-19  Tom Tromey  <tromey@redhat.com>
11872
11873         * record-full.c (record_full_beneath_to_resume_ops)
11874         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11875         (record_full_beneath_to_wait)
11876         (record_full_beneath_to_store_registers_ops)
11877         (record_full_beneath_to_store_registers)
11878         (record_full_beneath_to_xfer_partial_ops)
11879         (record_full_beneath_to_xfer_partial)
11880         (record_full_beneath_to_insert_breakpoint_ops)
11881         (record_full_beneath_to_insert_breakpoint)
11882         (record_full_beneath_to_remove_breakpoint_ops)
11883         (record_full_beneath_to_remove_breakpoint)
11884         (record_full_beneath_to_stopped_by_watchpoint)
11885         (record_full_beneath_to_stopped_data_address)
11886         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11887         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11888         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11889         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11890         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11891         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11892         (tmp_to_stopped_data_address, tmp_to_async): Remove.
11893         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
11894         (record_full_resume, record_full_wait_1)
11895         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11896         (record_full_store_registers, record_full_xfer_partial)
11897         (record_full_insert_breakpoint, record_full_remove_breakpoint)
11898         (record_full_async, record_full_core_xfer_partial): Use target
11899         delegation.
11900         * target-delegates.c: Rebuild.
11901         * target.c (current_xfer_partial): Remove.
11902         (update_current_target): Do not INHERIT or de_fault
11903         to_insert_breakpoint, to_remove_breakpoint,
11904         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11905         to_is_async_p, to_async.  Do not set to_xfer_partial field.
11906         (default_xfer_partial): Simplify.
11907         (current_xfer_partial): Remove.
11908         (target_wait, target_resume): Simplify.
11909         (find_default_can_async_p, find_default_is_async_p): Update.
11910         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11911         to_xfer_partial, to_stopped_by_watchpoint,
11912         to_stopped_data_address.
11913         (target_store_registers): Simplify.
11914         (forward_target_remove_breakpoint)
11915         (forward_target_insert_breakpoint): Remove.
11916         (target_remove_breakpoint, target_insert_breakpoint)
11917         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11918         * target.h (struct target_ops) <to_resume, to_wait,
11919         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11920         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11921         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11922         markup.
11923         (forward_target_remove_breakpoint)
11924         (forward_target_insert_breakpoint): Remove.
11925         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11926         directly.
11927         (record_btrace_insert_breakpoint): Delegate directly.
11928
11929 2014-02-19  Tom Tromey  <tromey@redhat.com>
11930
11931         PR build/7701:
11932         * target-delegates.c: New file.
11933         * target.c: Include target-delegates.c.
11934         (init_dummy_target): Call install_dummy_methods.
11935         (complete_target_initialization): Call install_delegators.
11936         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11937         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11938         * make-target-delegates: New file.
11939
11940 2014-02-19  Tom Tromey  <tromey@redhat.com>
11941
11942         * record.c (find_record_target): Use find_target_at.
11943         * target.c (find_target_at): New function.
11944         * target.h (find_target_at): Declare.
11945
11946 2014-02-19  Tom Tromey  <tromey@redhat.com>
11947
11948         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11949         Add 'ops' argument.
11950         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11951         'ops' argument.
11952         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11953         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11954         'ops' argument.
11955         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11956         argument.
11957         * linux-nat.c (save_sigtrap): Update.
11958         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11959         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11960         (linux_nat_close): Update.
11961         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11962         argument.
11963         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11964         argument.
11965         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11966         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11967         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11968         (tmp_to_async): Add 'ops' argument.
11969         (record_full_stopped_by_watchpoint, record_full_async)
11970         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11971         argument.
11972         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11973         (m32r_stopped_by_watchpoint): Add 'ops' argument.
11974         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11975         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11976         (remote_is_async_p, remote_async): Add 'ops' argument.
11977         (remote_stopped_data_address): Update.
11978         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11979         * target.c (update_current_target)
11980         (find_default_can_async_p, find_default_is_async_p): Update.
11981         (init_dummy_target): Update.
11982         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11983         * target.h (struct target_ops) <to_stopped_by_watchpoint,
11984         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11985         (target_can_async_p, target_is_async_p, target_async)
11986         (target_stopped_by_watchpoint): Update.
11987
11988 2014-02-19  Yao Qi  <yao@codesourcery.com>
11989
11990         PR gdb/16220
11991         * gdbarch.sh: Remove startup_gdbarch.
11992         * gdbarch.c: Regenerated.
11993         * gdbarch.h: Likewise.
11994
11995 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
11996
11997         * rl78-tdep.c (rl78_g10_register_name): New function.
11998         (rl78_return_value): Add g10 support.
11999         (rl78_gdbarch_init): Register rl78_g10_register_name for the
12000         g10.
12001
12002 2014-02-17  Doug Evans  <xdje42@gmail.com>
12003
12004         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12005         (SUBDIR_GUILE_SRCS): Ditto.
12006         (scm-gsmob.o): Ditto.
12007
12008 2014-02-17  Yao Qi  <yao@codesourcery.com>
12009
12010         * gnu-nat.c (ILL_RPC): Declare defined function.
12011
12012 2014-02-17  Yao Qi  <yao@codesourcery.com>
12013
12014         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12015         mach_msg_type_number_t.
12016         (gnu_write_inferior): Likewise.
12017
12018 2014-02-17  Yao Qi  <yao@codesourcery.com>
12019
12020         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12021         in format string.
12022         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12023         (inf_validate_procs, inf_signal): Likewise.
12024         (S_exception_raise_request): Likewise.
12025         (do_mach_notify_dead_name): Likewise.
12026         (steal_exc_port): Likewise.
12027         (gnu_read_inferior): Change 'copy_count''s type to
12028         mach_msg_type_number_t.
12029         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
12030         format string.
12031
12032 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
12033
12034         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12035         flag.  Adjust all users; in particular...
12036         (gnu_wait): ..., don't decrement its value in here...
12037         (gnu_create_inferior): ..., and instead set the flag in here,
12038         around the startup_inferior call, and call that one with
12039         START_INFERIOR_TRAPS_EXPECTED.
12040
12041         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12042         (ILL_RPC): ... new macro.
12043         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12044         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12045         (do_mach_notify_send_once, S_proc_setmsgport_reply)
12046         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12047         functions with ILL_RPC macro.
12048         (S_proc_pid2task_reply, S_proc_task2pid_reply)
12049         (S_proc_task2proc_reply, S_proc_proc2task_reply)
12050         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12051         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12052         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12053         (S_proc_getlogin_reply, S_proc_getsid_reply)
12054         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12055         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12056         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12057         (S_proc_getnports_reply, S_proc_is_important_reply)
12058         (S_proc_get_code_reply): New stub functions, generated with
12059         ILL_RPC macro.
12060
12061         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12062         collected the type check structures.
12063
12064         * reply_mig_hack.awk: Don't expect to see the auto keyword.
12065
12066 2014-02-14  Doug Evans  <dje@google.com>
12067
12068         * target.c (target_write_partial): Fix result type.
12069
12070 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
12071
12072         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12073         the proper offsets to access fpregset_t.
12074
12075 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
12076
12077         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12078         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12079         * h8300-tdep.c (setmachinelist): Remove global.
12080         * hppa-tdep.c (hppa_sigtramp): Remove global.
12081         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12082         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12083         * ravenscar-thread.c (update_target_observer): Remove global.
12084         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12085
12086 2014-02-12  Tom Tromey  <tromey@redhat.com>
12087
12088         * common/rsp-low.c: Update comments.
12089         * common/rsp-low.h: Update comments.
12090
12091 2014-02-12  Tom Tromey  <tromey@redhat.com>
12092
12093         * common/rsp-low.c (convert_ascii_to_int): Remove.
12094         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12095
12096 2014-02-12  Tom Tromey  <tromey@redhat.com>
12097
12098         * common/rsp-low.h (unhexify): Don't declare.
12099         * common/rsp-low.c (unhexify): Remove.
12100
12101 2014-02-12  Tom Tromey  <tromey@redhat.com>
12102
12103         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12104         * common/rsp-low.c (convert_int_to_ascii): Remove.
12105
12106 2014-02-12  Tom Tromey  <tromey@redhat.com>
12107
12108         * common/rsp-low.h (hexify): Don't declare.
12109         * common/rsp-low.c (hexify): Remove.
12110
12111 2014-02-12  Tom Tromey  <tromey@redhat.com>
12112
12113         * common/rsp-low.c (hexify): Never take strlen of argument.
12114
12115 2014-02-12  Tom Tromey  <tromey@redhat.com>
12116
12117         * common/rsp-low.c (bin2hex): Never take strlen of argument.
12118         * remote.c (extended_remote_run, remote_rcmd)
12119         (remote_download_trace_state_variable, remote_save_trace_data)
12120         (remote_set_trace_notes): Update.
12121         * tracepoint.c (encode_source_string, tfile_write_status)
12122         (tfile_write_uploaded_tsv): Update.
12123
12124 2014-02-12  Tom Tromey  <tromey@redhat.com>
12125
12126         * tracepoint.c: Include rsp-low.h.
12127         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12128         * remote.c: Include rsp-low.h.
12129         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12130         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12131         (remote_unescape_input): Move to common/rsp-low.c.
12132         * common/rsp-low.h: New file.
12133         * common/rsp-low.c: New file.
12134         * Makefile.in (SFILES): Add common/rsp-low.c.
12135         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12136         (COMMON_OBS): Add rsp-low.o.
12137         (rsp-low.o): New target.
12138
12139 2014-02-12  Tom Tromey  <tromey@redhat.com>
12140
12141         * utils.h: Include print-utils.h.
12142         (host_address_to_string, plongest, pulongest, phex, phex_nz)
12143         (int_string, core_addr_to_string, core_addr_to_string_nz)
12144         (hex_string, hex_string_custom): Don't declare.
12145         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12146         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12147         (hex_string_custom, int_string, core_addr_to_string)
12148         (core_addr_to_string_nz, host_address_to_string): Move to
12149         common/print-utils.c.
12150         * common/print-utils.h: New file.
12151         * common/print-utils.c: New file
12152         * Makefile.in (SFILES): Add common/print-utils.c.
12153         (HFILES_NO_SRCDIR): Add common/print-utils.h.
12154         (COMMON_OBS): Add print-utils.o.
12155         (print-utils.o): New target.
12156
12157 2014-02-12  Tom Tromey  <tromey@redhat.com>
12158
12159         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12160
12161 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12162
12163         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12164
12165 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12166
12167         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12168         if a PT_IO ptrace request returns sucessfully but indicates that 0
12169         bytes were transferred.
12170
12171 2014-02-12  Pedro Alves  <palves@redhat.com>
12172             Kevin Buettner <kevinb@redhat.com>
12173
12174         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12175         TYPE_INSTANCE_FLAG_CODE_SPACE.
12176
12177 2014-02-12  Pedro Alves  <palves@redhat.com>
12178
12179         * h8300-tdep.c (pseudo_from_raw_register)
12180         (raw_from_pseudo_register): New functions.
12181         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12182         them.
12183
12184 2014-02-12  Pedro Alves  <palves@redhat.com>
12185
12186         * h8300-tdep.c (h8300_register_sim_regno): New function.
12187         (h8300_gdbarch_init): Install h8300_register_sim_regno as
12188         gdbarch_register_sim_regno hook.
12189
12190 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12191
12192         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12193
12194 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12195
12196         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12197
12198 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12199
12200         * obsd-tdep.h (obsd_init_abi): New prototype.
12201         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12202         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12203         (obsd_init_abi): New functions.
12204         * i386obsd-tdep.c: Include "obsd-tdep.h".
12205         (i386obsd_init_abi): Call obsd_init_abi.
12206         * amd64obsd-tdep.c: Include "obsd-tdep.h".
12207         (amd64obsd_init_abi): Call obsd_init_abi.
12208         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12209         obsd-tdep.c to gdb_target_obs.
12210
12211 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
12212
12213         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12214         double float arguments to 16-byte in the argument slots.
12215
12216 2014-02-11  Doug Evans  <xdje42@gmail.com>
12217
12218         * configure.ac: Don't crash if pkg-config is not found and guile
12219         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
12220         in guile checks.
12221         * configure: Regenerate.
12222
12223 2014-02-11  Yao Qi  <yao@codesourcery.com>
12224
12225         * aix-thread.c (aix_thread_xfer_partial): Update comments.
12226         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12227         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12228         * gnu-nat.c (gnu_xfer_memory): Likewise.
12229         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
12230         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12231         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12232         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12233
12234 2014-02-11  Yao Qi  <yao@codesourcery.com>
12235
12236         * target.h (enum target_xfer_error): Rename to ...
12237         (enum target_xfer_status): ... it.  New.  All users updated.
12238         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12239         New.
12240         (TARGET_XFER_STATUS_ERROR_P): New macro.
12241         (target_xfer_error_to_string): Remove declaration.
12242         (target_xfer_status_to_string): Declare.
12243         (target_xfer_partial_ftype): Adjust it.
12244         (struct target_ops) <to_xfer_partial>: Return
12245         target_xfer_status.  Add argument xfered_len.  Update
12246         comments.
12247         * target.c (target_xfer_error_to_string): Rename to ...
12248         (target_xfer_status_to_string): ... it.  New.  All callers
12249         updated.
12250         (target_read_live_memory): Likewise.  Call target_xfer_partial
12251         instead of target_read.
12252         (memory_xfer_live_readonly_partial): Return
12253         target_xfer_status.  Add argument xfered_len.
12254         (raw_memory_xfer_partial): Likewise.
12255         (memory_xfer_partial_1): Likewise.
12256         (memory_xfer_partial): Likewise.
12257         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
12258         properly.  Update debug message.
12259         (default_xfer_partial, current_xfer_partial): Likewise.
12260         (target_write_partial): Likewise.
12261         (target_read_partial): Likewise.  All callers updated.
12262         (read_whatever_is_readable): Likewise.
12263         (target_write_with_progress): Likewise.
12264         (target_read_alloc_1): Likewise.
12265
12266         * aix-thread.c (aix_thread_xfer_partial): Likewise.
12267         * auxv.c (procfs_xfer_auxv): Likewise.
12268         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12269         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12270         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12271         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12272         * corefile.c (read_memory): Adjust.
12273         * corelow.c (core_xfer_partial): Likewise.
12274         * ctf.c (ctf_xfer_partial): Likewise.
12275         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
12276         updated.
12277         (darwin_xfer_partial): Likewise.
12278         * exec.c (section_table_xfer_memory_partial): Likewise.  All
12279         callers updated.
12280         (exec_xfer_partial): Likewise.
12281         * exec.h (section_table_xfer_memory_partial): Update
12282         declaration.
12283         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
12284         negative.
12285         (gnu_xfer_partial): Likewise.
12286         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12287         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12288         (ia64_hpux_xfer_solib_got): Likewise.
12289         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
12290         type of 'partial_len' to ULONGEST.
12291         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12292         * linux-nat.c (linux_xfer_siginfo ): Likewise.
12293         (linux_nat_xfer_partial): Likewise.
12294         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12295         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12296         * monitor.c (monitor_xfer_memory): Likewise.
12297         (monitor_xfer_partial): Likewise.
12298         * procfs.c (procfs_xfer_partial): Likewise.
12299         * record-btrace.c (record_btrace_xfer_partial): Likewise.
12300         * record-full.c (record_full_xfer_partial): Likewise.
12301         (record_full_core_xfer_partial): Likewise.
12302         * remote-sim.c (gdbsim_xfer_memory): Likewise.
12303         (gdbsim_xfer_partial): Likewise.
12304         * remote.c (remote_write_bytes_aux): Likewise.  All callers
12305         updated.
12306         (remote_write_bytes, remote_read_bytes): Likewise.  All
12307         callers updated.
12308         (remote_flash_erase): Likewise.  All callers updated.
12309         (remote_write_qxfer): Likewise.  All callers updated.
12310         (remote_read_qxfer): Likewise.  All callers updated.
12311         (remote_xfer_partial): Likewise.
12312         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12313         (rs6000_xfer_shared_libraries): Likewise.
12314         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12315         (sol_thread_xfer_partial): Likewise.
12316         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12317         (sparc_xfer_partial): Likewise.
12318         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
12319         updated.
12320         (spu_xfer_partial): Likewise.
12321         * spu-multiarch.c (spu_xfer_partial): Likewise.
12322         * tracepoint.c (tfile_xfer_partial): Likewise.
12323         * windows-nat.c (windows_xfer_memory): Likewise.
12324         (windows_xfer_shared_libraries): Likewise.
12325         (windows_xfer_partial): Likewise.
12326         * valprint.c: Replace 'target_xfer_error' with
12327         'target_xfer_status' in comments.
12328
12329 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
12330
12331         Checked in by Joel Brobecker <brobecker@adacore.com>.
12332         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12333
12334 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
12335
12336         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12337         function parameters.
12338
12339 2014-02-10  Will Newton  <will.newton@linaro.org>
12340
12341         * elfread.c (elf_rel_plt_read): Look for a .got section if
12342         looking up .got.plt fails.
12343         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12344         on address passed to elf_gnu_ifunc_record_cache.
12345         (elf_gnu_ifunc_resolve_addr): Likewise.
12346         (elf_gnu_ifunc_resolver_return_stop): Likewise.
12347
12348 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
12349
12350         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12351         (X_RETTURN): New macro.
12352         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12353
12354         * sparc64-tdep.c (sparc64_init_abi): Hook
12355         sparc_in_function_epilogue_p.
12356
12357 2014-02-10  Gary Benson  <gbenson@redhat.com>
12358
12359         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12360         Rename name_matcher to symbol_matcher.
12361
12362 2014-02-10  Gary Benson  <gbenson@redhat.com>
12363
12364         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12365         Use expand_symtabs_file_matcher_ftype and
12366         expand_symtabs_symbol_matcher_ftype.
12367
12368 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12369
12370         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12371         (struct ada_symbol_cache): New.
12372         (ada_free_symbol_cache): Forward declare.
12373         (struct ada_pspace_data): New.
12374         (ada_pspace_data_handle): New static global.
12375         (get_ada_pspace_data, ada_pspace_data_cleanup)
12376         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12377         (cache_space, cache): Delete, now folded inside struct
12378         ada_pspace_data.
12379         (ada_get_symbol_cache): New function.
12380         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12381         implementation.
12382         (_initialize_ada_language): Remove initialization of cache_space.
12383         Move call to observer_attach_inferior_exit up, grouping it
12384         with the other observer registrations inside this function.
12385         Rename command to be more general.  Add call to
12386         register_program_space_data_with_cleanup.
12387
12388 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12389
12390         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12391         ada_new_objfile_observer.
12392         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12393         (_initialize_tasks): Update uses of ada_new_objfile_observer
12394         and ada_tasks_normal_stop_observer.
12395
12396 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12397
12398         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12399         returned by the 'Length attribute to integer.
12400
12401 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12402
12403         * ada-lang.c (_initialize_ada_language): Initialize
12404         cache_space obstack.
12405
12406 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12407
12408         * ada-lang.c (HASH_SIZE): New macro.
12409         (struct cache_entry): New type.
12410         (cache_space, cache): New static globals.
12411         (ada_clear_symbol_cache, find_entry): New functions.
12412         (lookup_cached_symbol, cache_symbol): Implement.
12413         (ada_new_objfile_observer, ada_free_objfile_observer): New.
12414         (_initialize_ada_language): Attach ada_new_objfile_observer
12415         and ada_free_objfile_observer.
12416
12417 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12418
12419         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12420         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12421         struct block * parameter.
12422         (ada_lookup_symbol_list_worker): Constify local variable "block".
12423         Remove cast which is no longer necessary.
12424
12425 2014-02-10  Doug Evans  <xdje42@gmail.com>
12426
12427         Add Guile as an extension language.
12428         * NEWS: Mention Guile scripting.
12429         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12430         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12431         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12432         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12433         (CLIBS): Add GUILE_LIBS.
12434         (install-guile): New rule.
12435         (guile.o): New rule.
12436         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12437         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12438         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12439         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12440         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12441         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12442         (scm-type.o, scm-utils.o, scm-value.o): New rules.
12443         * configure.ac: New option --with-guile.
12444         * configure: Regenerate.
12445         * config.in: Regenerate.
12446         * auto-load.c: Remove #include "python/python.h".  Add #include
12447         "gdb/section-scripts.h".
12448         (source_section_scripts): Handle Guile scripts.
12449         (_initialize_auto_load): Add name of Guile objfile script to
12450         scripts-directory help text.
12451         * breakpoint.c (condition_command): Tweak comment to include Scheme.
12452         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12453         (struct breakpoint): New member scm_bp_object.
12454         * defs.h (enum command_control_type): New value guile_control.
12455         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
12456         "extension.h".
12457         (show_user): Update comment.
12458         (_initialize_cli_cmds): Update help text for "show user".  Update help
12459         text for max-user-call-depth.
12460         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
12461         "extension.h".
12462         (multi_line_command_p): Add guile_control.
12463         (print_command_lines): Handle guile_control.
12464         (execute_control_command, recurse_read_control_structure): Ditto.
12465         (process_next_line): Recognize "guile" commands.
12466         * disasm.c (gdb_disassemble_info): Make non-static.
12467         * disasm.h: #include "dis-asm.h".
12468         (struct gdbarch): Add forward decl.
12469         (gdb_disassemble_info): Declare.
12470         * extension.c: #include "guile/guile.h".
12471         (extension_languages): Add guile.
12472         (get_ext_lang_defn): Handle EXT_LANG_GDB.
12473         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12474         * gdbtypes.c (get_unsigned_type_max): New function.
12475         (get_signed_type_minmax): New function.
12476         * gdbtypes.h (get_unsigned_type_max): Declare.
12477         (get_signed_type_minmax): Declare.
12478         * guile/README: New file.
12479         * guile/guile-internal.h: New file.
12480         * guile/guile.c: New file.
12481         * guile/guile.h: New file.
12482         * guile/scm-arch.c: New file.
12483         * guile/scm-auto-load.c: New file.
12484         * guile/scm-block.c: New file.
12485         * guile/scm-breakpoint.c: New file.
12486         * guile/scm-disasm.c: New file.
12487         * guile/scm-exception.c: New file.
12488         * guile/scm-frame.c: New file.
12489         * guile/scm-gsmob.c: New file.
12490         * guile/scm-iterator.c: New file.
12491         * guile/scm-lazy-string.c: New file.
12492         * guile/scm-math.c: New file.
12493         * guile/scm-objfile.c: New file.
12494         * guile/scm-ports.c: New file.
12495         * guile/scm-pretty-print.c: New file.
12496         * guile/scm-safe-call.c: New file.
12497         * guile/scm-string.c: New file.
12498         * guile/scm-symbol.c: New file.
12499         * guile/scm-symtab.c: New file.
12500         * guile/scm-type.c: New file.
12501         * guile/scm-utils.c: New file.
12502         * guile/scm-value.c: New file.
12503         * guile/lib/gdb.scm: New file.
12504         * guile/lib/gdb/boot.scm: New file.
12505         * guile/lib/gdb/experimental.scm: New file.
12506         * guile/lib/gdb/init.scm: New file.
12507         * guile/lib/gdb/iterator.scm: New file.
12508         * guile/lib/gdb/printing.scm: New file.
12509         * guile/lib/gdb/types.scm: New file.
12510         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12511         (VPATH): Add $(GUILE_SRCDIR).
12512         (GUILE_DIR): New variable.
12513         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12514         (all): Add stamp-guile dependency.
12515         (stamp-guile): New rule.
12516         (clean-guile, install-guile, uninstall-guile): New rules.
12517         (install-only): Add install-guile dependency.
12518         (uninstall): Add uninstall-guile dependency.
12519         (clean): Add clean-guile dependency.
12520
12521 2014-02-09  Doug Evans  <xdje42@gmail.com>
12522
12523         Revert this patch (which I approved, mea culpa).
12524
12525         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12526
12527         * Makefile.in (all-lib): Remove.
12528         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12529
12530 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
12531
12532         Fix Python stack corruption.
12533         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12534         gdb_py_longest.
12535
12536 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12537
12538         * Makefile.in (all-lib): Remove.
12539         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12540
12541 2014-02-07  Doug Evans  <dje@google.com>
12542
12543         * extension-priv.h (extension_language_script_ops): Add comment.
12544         (extension_language_ops): Add comment.
12545         (active_ext_lang_state): Fix typo in comment.
12546
12547 2014-02-07  Pedro Alves  <palves@redhat.com>
12548
12549         PR breakpoints/16292
12550         * infrun.c (handle_signal_stop) <signal arrives while stepping
12551         over a breakpoint>: Switch back to the stepping thread.
12552
12553 2014-02-07  Yao Qi  <yao@codesourcery.com>
12554
12555         * target.c (target_xfer_partial): Return zero if LEN is zero.
12556
12557 2014-02-07  Yao Qi  <yao@codesourcery.com>
12558
12559         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12560         (ld_so_xfer_auxv): Likewise.
12561         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12562         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12563         * corelow.c (core_xfer_partial): Likewise.
12564         * ctf.c (ctf_xfer_partial): Likewise.
12565         * darwin-nat.c (darwin_read_dyld_info): Likewise.
12566         (darwin_xfer_partial): Likewise.
12567         * exec.c (exec_xfer_partial): Likewise.
12568         * gnu-nat.c (gnu_xfer_partial): Likewise.
12569         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12570         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12571         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12572         * linux-nat.c (linux_xfer_siginfo): Likewise.
12573         (linux_proc_xfer_spu): Likewise.
12574         * procfs.c (procfs_xfer_partial): Likewise.
12575         * record-full.c (record_full_xfer_partial): Likewise.
12576         (record_full_core_xfer_partial): Likewise.
12577         * remote-sim.c (gdbsim_xfer_partial): Likewise.
12578         * remote.c (remote_write_qxfer): Likewise.
12579         (remote_write_qxfer, remote_read_qxfer): Likewise.
12580         (remote_xfer_partial): Likewise.
12581         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12582         (rs6000_xfer_shared_libraries): Likewise.
12583         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12584         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12585         (spu_xfer_partial): Likewise.
12586         * target.c (memory_xfer_partial_1): Likewise.
12587         * tracepoint.c (tfile_xfer_partial): Likewise.
12588         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12589         (windows_xfer_partial): Likewise.
12590
12591 2014-02-07  Yao Qi  <yao@codesourcery.com>
12592
12593         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
12594         comments.
12595         (core_xfer_shared_libraries_aix): Likewise.
12596         * gdbarch.c, gdbarch.h: Regenerated.
12597         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12598         ULONGEST.  Change 'len_avail' type to ULONGEST.
12599         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12600         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12601         declaration.
12602         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12603
12604 2014-02-07  Yao Qi  <yao@codesourcery.com>
12605
12606         * corefile.c (memory_error): Get 'exception' from ERR and pass
12607         'exception' to throw_error.
12608
12609 2014-02-06  Doug Evans  <xdje42@gmail.com>
12610
12611         * configure.ac (libpython checking): Remove all but python.o from
12612         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
12613         * configure: Regenerate.
12614
12615         * Makefile.in (SFILES): Add extension.c.
12616         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12617         (COMMON_OBS): Add extension.o.
12618         * extension.h: New file.
12619         * extension-priv.h: New file.
12620         * extension.c: New file.
12621
12622         * python/python-internal.h: #include "extension.h".
12623         (gdbpy_auto_load_enabled): Declare.
12624         (gdbpy_apply_val_pretty_printer): Declare.
12625         (gdbpy_apply_frame_filter): Declare.
12626         (gdbpy_preserve_values): Declare.
12627         (gdbpy_breakpoint_cond_says_stop): Declare.
12628         (gdbpy_breakpoint_has_cond): Declare.
12629         (void source_python_script_for_objfile): Delete.
12630         * python/python.c: #include "extension-priv.h".
12631         Delete inclusion of "observer.h".
12632         (extension_language_python): Moved here and renamed from
12633         script_language_python in py-auto-load.c.
12634         Redefined to be of type extension_language_defn.
12635         (python_extension_script_ops): New global.
12636         (python_extension_ops): New global.
12637         (struct python_env): New member previous_active.
12638         (restore_python_env): Call restore_active_ext_lang.
12639         (ensure_python_env): Call set_active_ext_lang.
12640         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12641         New arg extlang.
12642         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12643         New arg extlang.
12644         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12645         New arg extlang.
12646         (gdbpy_eval_from_control_command): Renamed from
12647         eval_python_from_control_command, made static.  New arg extlang.
12648         (gdbpy_source_script) Renamed from source_python_script, made static.
12649         New arg extlang.
12650         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
12651         result to int.  New arg extlang.
12652         (gdbpy_source_objfile_script): Renamed from
12653         source_python_script_for_objfile, made static.  New arg extlang.
12654         (gdbpy_start_type_printers): Renamed from start_type_printers, made
12655         static.  New args extlang, extlang_printers.  Change result type to
12656         "void".
12657         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12658         static.  New arg extlang.  Rename arg printers to extlang_printers
12659         and change type to ext_lang_type_printers *.
12660         (gdbpy_free_type_printers): Renamed from free_type_printers, made
12661         static.  Replace argument arg with extlang, extlang_printers.
12662         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12663         (!HAVE_PYTHON, source_python_script): Delete.
12664         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12665         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12666         (!HAVE_PYTHON, start_type_printers): Delete.
12667         (!HAVE_PYTHON, apply_type_printers): Delete.
12668         (!HAVE_PYTHON, free_type_printers): Delete.
12669         (_initialize_python): Delete call to observer_attach_before_prompt.
12670         (finalize_python): Set/restore active extension language.
12671         (gdbpy_finish_initialization) Renamed from
12672         finish_python_initialization, made static.  New arg extlang.
12673         (gdbpy_initialized): New function.
12674         * python/python.h: #include "extension.h".  Delete #include
12675         "value.h", "mi/mi-cmds.h".
12676         (extension_language_python): Declare.
12677         (GDBPY_AUTO_FILE_NAME): Delete.
12678         (enum py_bt_status): Moved to extension.h and renamed to
12679         ext_lang_bt_status.
12680         (enum frame_filter_flags): Moved to extension.h.
12681         (enum py_frame_args): Moved to extension.h and renamed to
12682         ext_lang_frame_args.
12683         (finish_python_initialization): Delete.
12684         (eval_python_from_control_command): Delete.
12685         (source_python_script): Delete.
12686         (apply_val_pretty_printer): Delete.
12687         (apply_frame_filter): Delete.
12688         (preserve_python_values): Delete.
12689         (gdbpy_script_language_defn): Delete.
12690         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12691         (start_type_printers, apply_type_printers, free_type_printers): Delete.
12692
12693         * auto-load.c: #include "extension.h".
12694         (GDB_AUTO_FILE_NAME): Delete.
12695         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
12696         (script_language_gdb): Delete, moved to extension.c and renamed to
12697         extension_language_gdb.
12698         (source_gdb_script_for_objfile): Delete.
12699         (auto_load_pspace_info): New member unsupported_script_warning_printed.
12700         (loaded_script): Change type of language member to
12701         struct extension_language_defn *.
12702         (init_loaded_scripts_info): Initialize
12703         unsupported_script_warning_printed.
12704         (maybe_add_script): Make static.  Change type of language arg to
12705         struct extension_language_defn *.
12706         (clear_section_scripts): Reset unsupported_script_warning_printed.
12707         (auto_load_objfile_script_1): Rewrite to use extension language API.
12708         (auto_load_objfile_script): Make public.  Remove support-compiled-in
12709         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12710         (source_section_scripts): Rewrite to use extension language API.
12711         (load_auto_scripts_for_objfile): Rewrite to use
12712         auto_load_scripts_for_objfile.
12713         (collect_matching_scripts_data): Change type of language member to
12714         struct extension_language_defn *.
12715         (auto_load_info_scripts): Change type of language arg to
12716         struct extension_language_defn *.
12717         (unsupported_script_warning_print): New function.
12718         (script_not_found_warning_print): Make static.
12719         (_initialize_auto_load): Rewrite construction of scripts-directory
12720         help.
12721         * auto-load.h (struct objfile): Add forward decl.
12722         (struct script_language): Delete.
12723         (struct auto_load_pspace_info): Add forward decl.
12724         (struct extension_language_defn): Add forward decl.
12725         (maybe_add_script): Delete.
12726         (auto_load_objfile_script): Declare.
12727         (script_not_found_warning_print): Delete.
12728         (auto_load_info_scripts): Update prototype.
12729         (auto_load_gdb_scripts_enabled): Declare.
12730         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12731         auto_load_python_scripts_enabled and made public.
12732         (script_language_python): Delete, moved to python.c.
12733         (gdbpy_script_language_defn): Delete.
12734         (info_auto_load_python_scripts): Update to use
12735         extension_language_python.
12736
12737         * breakpoint.c (condition_command): Replace call to
12738         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12739         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12740         with call to breakpoint_ext_lang_cond_says_stop.
12741         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12742         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
12743         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12744         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12745         New arg slang.
12746         (local_setattro): Print name of extension language with existing
12747         stop condition.
12748
12749         * valprint.c (val_print, value_print): Update to call
12750         apply_ext_lang_val_pretty_printer.
12751         * cp-valprint.c (cp_print_value): Update call to
12752         apply_ext_lang_val_pretty_printer.
12753         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12754         (gdbpy_apply_val_pretty_printer): Renamed from
12755         apply_val_pretty_printer.  New arg extlang.
12756         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12757
12758         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12759         extension language API.
12760         * cli/cli-script.c (execute_control_command): Update to call
12761         eval_ext_lang_from_control_command.
12762
12763         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12764         enum ext_lang_bt_status values.  Update call to
12765         apply_ext_lang_frame_filter.
12766         (mi_cmd_stack_list_locals): Ditto.
12767         (mi_cmd_stack_list_args): Ditto.
12768         (mi_cmd_stack_list_variables): Ditto.
12769         * mi/mi-main.c: Delete #include "python/python-internal.h".
12770         Add #include "extension.h".
12771         (mi_cmd_list_features): Replace reference to python internal variable
12772         gdb_python_initialized with call to ext_lang_initialized_p.
12773
12774         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12775         Update to use enum ext_lang_frame_args.  Update to call
12776         apply_ext_lang_frame_filter.
12777         * python/py-framefilter.c (extract_sym): Update to use enum
12778         ext_lang_bt_status.
12779         (extract_value, py_print_type, py_print_value): Ditto.
12780         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12781         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12782         (py_print_frame): Ditto.
12783         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12784         New arg extlang.  Update to use enum ext_lang_bt_status.
12785
12786         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12787         finish_python_initialization.  Replace with call to
12788         finish_ext_lang_initialization.
12789
12790         * typeprint.c (do_free_global_table): Update to call
12791         free_ext_lang_type_printers.
12792         (create_global_typedef_table): Update to call
12793         start_ext_lang_type_printers.
12794         (find_global_typedef): Update to call apply_ext_lang_type_printers.
12795         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12796         (type_print_options): Change type of global_printers from "void *"
12797         to "struct ext_lang_type_printers *".
12798
12799         * value.c (preserve_values): Update to call preserve_ext_lang_values.
12800         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12801         (gdbpy_preserve_values): Renamed from preserve_python_values.
12802         New arg extlang.
12803         (!HAVE_PYTHON, preserve_python_values): Delete.
12804
12805         * utils.c (quit_flag): Delete, moved to extension.c.
12806         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12807         extension.c.
12808
12809         * eval.c: Delete #include "python/python.h".
12810         * main.c: Delete #include "python/python.h".
12811
12812         * defs.h: Update comment.
12813
12814 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
12815
12816         GDB 7.7 released.
12817
12818 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
12819
12820         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12821         defined.
12822
12823 2014-02-05  Yao Qi  <yao@codesourcery.com>
12824
12825         * remote.c (remote_pass_signals): Remove local 'buf' and use
12826         rs->buf.
12827         (remote_program_signals): Likewise.
12828
12829 2014-02-05  Yao Qi  <yao@codesourcery.com>
12830
12831         * ctf.c: Include "inferior.h" and "gdbthread.h".
12832         (CTF_PID): A new macro.
12833         (ctf_open): Call inferior_appeared and add_thread_silent.
12834         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12835         (ctf_thread_alive): New function.
12836         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12837
12838 2014-02-05  Yao Qi  <yao@codesourcery.com>
12839
12840         Revert this patch:
12841
12842         2013-05-24  Yao Qi  <yao@codesourcery.com>
12843
12844         * tracepoint.c (TFILE_PID): Remove.
12845         (tfile_open): Don't add thread and inferior.
12846         (tfile_close): Don't set 'inferior_ptid'.  Don't call
12847         exit_inferior_silent.
12848         (tfile_thread_alive): Remove.
12849         (init_tfile_ops): Don't set field 'to_thread_alive' of
12850         tfile_ops.
12851
12852 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
12853
12854         * remote.c (remote_start_remote): Call remote_check_symbols even
12855         if only symbol-file (not file) has been given.
12856
12857 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12858
12859         * gdbarch.sh (skip_entrypoint): New callback.
12860         * gdbarch.c, gdbarch.h: Regenerate.
12861         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12862         * infrun.c (fill_in_stop_func): Likewise.
12863         * ppc-linux-tdep.c: Include "elf/ppc64.h".
12864         (ppc_elfv2_elf_make_msymbol_special): New function.
12865         (ppc_elfv2_skip_entrypoint): Likewise.
12866         (ppc_linux_init_abi): Install them for ELFv2.
12867
12868 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12869
12870         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12871         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12872         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12873         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
12874         structures returned in GPRs.
12875
12876 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12877
12878         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12879         offset to the stack parameter list for the ELFv2 ABI.
12880
12881 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12882
12883         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12884         set_gdbarch_convert_from_func_ptr_addr and
12885         set_gdbarch_elf_make_msymbol_special for ELFv1.
12886         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12887         function descriptors on ELFv1.
12888         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
12889         set up r12 at function entry.
12890
12891 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12892
12893         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12894         (struct gdbarch_tdep): New member elf_abi.
12895
12896         * rs6000-tdep.c: Include "elf/ppc64.h".
12897         (rs6000_gdbarch_init): Detect ELF ABI version.
12898
12899 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12900
12901         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12902         within a register pair holding a DFP 128-bit value on little-endian.
12903         (ppc64_sysv_abi_return_value_base): Likewise.
12904         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12905         (dfp_pseudo_register_write): Likewise.
12906
12907 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12908
12909         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12910         offset on little-endian when passing _Decimal32.
12911         (ppc64_sysv_abi_return_value_base): Likewise for return values.
12912
12913 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12914
12915         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12916         of the overlapped FP register within the VSX register on little-
12917         endian platforms.
12918         (efpr_pseudo_register_write): Likewise.
12919
12920 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12921
12922         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12923         offset on little-endian when passing small structures.
12924
12925 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12926
12927         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12928         (struct ppc64_sysv_argpos): New data structure.
12929         (ppc64_sysv_abi_push_float): Remove.
12930         (ppc64_sysv_abi_push_val): New function.
12931         (ppc64_sysv_abi_push_integer): Likewise.
12932         (ppc64_sysv_abi_push_freg): Likewise.
12933         (ppc64_sysv_abi_push_vreg): Likewise.
12934         (ppc64_sysv_abi_push_param): Likewise.
12935         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12936         (ppc64_sysv_abi_return_value_base): New function.
12937         (ppc64_sysv_abi_return_value): Refactor to use it.
12938
12939 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12940
12941         * NEWS: Document new target powerpc64le-*-linux*.
12942
12943 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
12944
12945         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12946         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12947         core dumps.
12948         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12949         register set used in ELF core dumps.  Add floating-point register set.
12950
12951 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
12952
12953         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12954         dwarf2_to_gdb[] table using symbolic constants.  Adjust
12955         penultimate entry from number representing the PC register
12956         to symbolic constant representing the MDR register.  Add
12957         constant for the PC register to the end of the table.
12958
12959 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12960
12961         * bsd-kvm.c: Include <sys/param.h>
12962
12963 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12964
12965         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12966
12967 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
12968
12969         * ada-lang.h (clear_ada_sym_cache): Delete.
12970
12971 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
12972
12973         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12974
12975 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
12976
12977         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12978           the sigreturn register save area only if the syscall is
12979           sigreturn.
12980
12981 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
12982
12983         * valops.c (value_slice): Minor reformatting.
12984
12985 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
12986
12987         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12988
12989 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
12990
12991         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12992         New static globals.
12993         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12994         (ada_ignore_descriptive_types_p): New static global.
12995         (find_parallel_type_by_descriptive_type): Return immediately
12996         if ada_ignore_descriptive_types_p is set.
12997         (_initialize_ada_language): Register new commands "maintenance
12998         set ada", "maintenance show ada", "maintenance set ada
12999         ignore-descriptive-types" and "maintenance show ada
13000         ignore-descriptive-types".
13001         * NEWS: Add entry for new "maint ada set/show
13002         ignore-descriptive-types" commands.
13003
13004 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
13005
13006         * record-btrace.c (record_btrace_close): Call btrace_teardown
13007         for all threads.
13008
13009 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13010
13011         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13012         "ui-out.h".
13013
13014 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13015
13016         * ada-typeprint (type_is_full_subrange_of_target_type):
13017         New function.
13018         (print_range): Add parameter bounds_prefered_p.  If not set,
13019         try printing range types using the name of their base type.
13020         (print_range_type): Add parameter bounds_prefered_p.
13021         Use it in call to print_range.
13022         (print_array_type, ada_print_type): Update calls to print_range
13023         and print_range_type.
13024
13025 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13026
13027         * ada-typeprint.c (print_array_type, print_choices, print_range)
13028         (print_range_bound, print_dynamic_range_bound, print_range_type):
13029         Remove declaration.
13030
13031 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13032
13033         * ada-typeprint.c (print_range): Add missing empty line
13034         after local declaration.
13035
13036 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13037
13038         * ada-valprint.c (print_optional_low_bound): Get index_type's
13039         target type for as long as it is a TYPE_CODE_RANGE.
13040
13041 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13042
13043         * procfs.c (procfs_make_note_section): Remove assertion and
13044         associated comment.
13045
13046 2014-01-24  Yao Qi  <yao@codesourcery.com>
13047
13048         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13049         * corelow.c (get_core_siginfo): Likewise.
13050
13051 2014-01-24  Yao Qi  <yao@codesourcery.com>
13052
13053         * remote.c (remote_write_bytes_aux): Change type of 'len' to
13054         ULONGEST.  Don't check 'len' is negative.
13055         (remote_write_bytes):  Change type of 'len' to ULONGEST.
13056
13057 2014-01-23  Tom Tromey  <tromey@redhat.com>
13058
13059         PR python/16485:
13060         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13061         Handle exception from frame.block.
13062         (FrameVars.fetch_frame_locals): Likewise.
13063
13064 2014-01-23  Tom Tromey  <tromey@redhat.com>
13065
13066         PR python/16487:
13067         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13068         on a NULL pointer.  Move "goto error" to correct place.
13069
13070 2014-01-23  Tom Tromey  <tromey@redhat.com>
13071
13072         PR python/16491:
13073         * python/py-framefilter.c (apply_frame_filter): Call
13074         ensure_python_env after computing gdbarch.
13075
13076 2014-01-23  Yao Qi  <yao@codesourcery.com>
13077
13078         * target.c (raw_memory_xfer_partial): Change argument type
13079         from void * to gdb_byte *.
13080         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13081
13082 2014-01-22  Doug Evans  <dje@google.com>
13083
13084         New gdbserver option --debug-format=timestamp.
13085         * NEWS: Mention it.
13086
13087 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
13088
13089         * syscalls/s390x-linux.xml: New file.
13090         * syscalls/s390-linux.xml: New file.
13091         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13092         (XML_SYSCALL_FILENAME_S390X): Likewise.
13093         (op_svc): New enum value for SVC opcode.
13094         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13095         (s390_linux_get_syscall_number): New function.
13096         (s390_gdbarch_init): Register '*get_syscall_number' and the
13097         syscall xml file name.
13098         * data-directory/Makefile.in (SYSCALLS_FILES): Add
13099         "s390-linux.xml" and "s390x-linux.xml".
13100         * NEWS: Announce new feature.
13101
13102 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
13103
13104         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13105
13106 2014-01-22  Pedro Alves  <palves@redhat.com>
13107
13108         * xtensa-config.c: Include defs.h.
13109
13110 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13111
13112         * common/common-utils.h: Add "ARI:" comment beside __func__
13113         reference.
13114
13115 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13116
13117         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13118         documentation a bit.
13119
13120 2014-01-21  Roland McGrath  <mcgrathr@google.com>
13121
13122         * configure.ac: Call AM_PROG_INSTALL_STRIP.
13123         * configure: Regenerate.
13124         * aclocal.m4: Regenerate.
13125         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13126         New substituted variables.
13127         (install-strip): New target.
13128         (INSTALL_SCRIPT): New substituted variable.
13129         (FLAGS_TO_PASS): Add it.
13130         (install-only): Use $(INSTALL_SCRIPT) rather than
13131         $(INSTALL_PROGRAM) for gcore.
13132
13133 2014-01-20  Tom Tromey  <tromey@redhat.com>
13134
13135         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13136         together.
13137
13138 2014-01-20  Tom Tromey  <tromey@redhat.com>
13139
13140         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13141         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13142         (deprecated_cmd_warning, complete_on_cmdlist): Update.
13143         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13144         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13145         (struct cmd_list_element) <flags>: Remove.
13146         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13147         doc_allocated>: New fields.
13148         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13149         bitfields.
13150         * maint.c (maintenance_do_deprecate): Update.
13151         * top.c (execute_command): Update.
13152
13153 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
13154
13155         * xtensa-linux-nat.c: Include asm/ptrace.h.
13156
13157 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13158
13159         * Makefile.in (SFILES): Add d-support.c.
13160         (COMMON_OBS): Add d-support.o.
13161         * d-lang.h (d_parse_symbol): Add comment, now defined in
13162         d-support.c.
13163         * d-lang.c (parse_call_convention)
13164         (parse_attributes, parse_function_types)
13165         (parse_function_args, parse_type, parse_identifier)
13166         (call_convention_p, d_parse_symbol): Move functions to ...
13167         * d-support.c: ... New file.
13168
13169 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13170
13171         * d-lang.h (d_parse_symbol): Add declaration.
13172         * d-lang.c (extract_identifiers)
13173         (extract_type_info): Remove functions.
13174         (parse_call_convention, parse_attributes)
13175         (parse_function_types, parse_function_args)
13176         (parse_type, parse_identifier, call_convention_p)
13177         (d_parse_symbol): New functions.
13178         (d_demangle): Use d_parse_symbol to demangle D symbols.
13179
13180 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13181
13182         * d-lang.h (struct builtin_d_type): New data type.
13183         (builtin_d_type): Add declaration.
13184         * d-lang.c (d_language_arch_info, build_d_types)
13185         (builtin_d_type): New functions.
13186         (enum d_primitive_types): New data type.
13187         (d_language_defn): Change c_language_arch_info to
13188         d_language_arch_info.
13189         (d_type_data): New static variable.
13190         (_initialize_d_language): Initialize d_type_data.
13191
13192 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13193
13194         * d-lang.h (d_main_name): Add declaration.
13195         * d-lang.c (d_main_name): New function.
13196         * symtab.c (find_main_name): Add call to d_main_name.
13197
13198 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13199
13200         * d-lang.c (d_language_defn): Change macro_expansion_c to
13201         macro_expansion_no.
13202
13203 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13204
13205         * MAINTAINERS: Add myself as a write-after-approval maintainer.
13206
13207 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
13208
13209         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13210         gdb_exception" declaration.
13211         * remote.c (getpkt_or_notif_sane): Likewise.
13212
13213 2014-01-17  Doug Evans  <dje@google.com>
13214
13215         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13216         function, contents of dirnames_to_char_ptr_vec_append moved here.
13217         (delim_string_to_char_ptr_vec): New function.
13218         (dirnames_to_char_ptr_vec_append): Rewrite.
13219         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13220
13221 2014-01-17  Doug Evans  <dje@google.com>
13222
13223         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13224         and moved here ...
13225         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13226         #include "common-utils.h".
13227         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13228         * common/vec.h (VEC_ASSERT_PASS): Update.
13229         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13230         (MACH_CHECK_ERROR): Update.
13231
13232 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
13233
13234         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13235         comments.
13236         * gdbarch.h: Regenerate.
13237
13238 2014-01-16  Tom Tromey  <tromey@redhat.com>
13239
13240         * value.c (struct value) <regnum>: Move earlier.
13241
13242 2014-01-16  Tom Tromey  <tromey@redhat.com>
13243
13244         * remote.c (extended_remote_create_inferior): Rename from
13245         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
13246         old implementation.
13247
13248 2014-01-16  Pedro Alves  <palves@redhat.com>
13249
13250         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13251         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13252         the backchain.
13253
13254 2014-01-16  Doug Evans  <dje@google.com>
13255
13256         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13257
13258 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13259
13260         * btrace.h (btrace_thread_flag): New.
13261         (struct btrace_thread_info) <flags>: New.
13262         * record-btrace.c (record_btrace_resume_thread)
13263         (record_btrace_find_thread_to_move, btrace_step_no_history)
13264         (btrace_step_stopped, record_btrace_start_replaying)
13265         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13266         (record_btrace_find_resume_thread): New.
13267         (record_btrace_resume, record_btrace_wait): Extend.
13268         (record_btrace_can_execute_reverse): New.
13269         (record_btrace_open): Fail in non-stop mode.
13270         (record_btrace_set_replay): Split into this, ...
13271         (record_btrace_stop_replaying): ... this, ...
13272         (record_btrace_clear_histories): ... and this.
13273         (init_record_btrace_ops): Init to_can_execute_reverse.
13274         * NEWS: Announce it.
13275
13276 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13277
13278         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13279         (forward_target_decr_pc_after_break)
13280         (target_decr_pc_after_break): New.
13281         * target.c (forward_target_decr_pc_after_break)
13282         (target_decr_pc_after_break): New.
13283         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13284         instead of gdbarch_decr_pc_after_break.
13285         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13286         instead of gdbarch_decr_pc_after_break.
13287         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13288         instead of gdbarch_decr_pc_after_break.
13289         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13290         instead of gdbarch_decr_pc_after_break.
13291         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13292         instead of gdbarch_decr_pc_after_break.
13293         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13294         instead of gdbarch_decr_pc_after_break.
13295
13296 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13297
13298         * btrace.c: Include regcache.h.
13299         (btrace_add_pc): New.
13300         (btrace_enable): Call btrace_add_pc.
13301         (btrace_is_empty): New.
13302         * btrace.h (btrace_is_empty): New.
13303         * record-btrace.c (require_btrace, record_btrace_info): Call
13304         btrace_is_empty.
13305
13306 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13307
13308         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13309         Support delta reads.
13310         (linux_disable_btrace): Change return type.
13311         * common/linux-btrace.h (linux_read_btrace): Change parameters
13312         and return type to allow error reporting.  Update users.
13313         (linux_disable_btrace): Change return type.  Update users.
13314         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13315         New.
13316         (btrace_error): New.
13317         (btrace_block) <begin>: Comment on BEGIN == 0.
13318         * btrace.c (btrace_compute_ftrace): Start from the end of
13319         the current trace.
13320         (btrace_stitch_trace, btrace_clear_history): New.
13321         (btrace_fetch): Read delta trace, return if replaying.
13322         (btrace_clear): Move clear history code to btrace_clear_history.
13323         (parse_xml_btrace): Throw an error if parsing failed.
13324         * target.h (struct target_ops) <to_read_btrace>: Change parameters
13325         and return type to allow error reporting.
13326         (target_read_btrace): Change parameters and return type to allow
13327         error reporting.
13328         * target.c (target_read_btrace): Update.
13329         * remote.c (remote_read_btrace): Support delta reads.  Pass
13330         errors on.
13331         * NEWS: Announce it.
13332
13333 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13334
13335         * record.h (record_btrace_frame_unwind)
13336         (record_btrace_tailcall_frame_unwind): New declarations.
13337         * dwarf2-frame: Include record.h
13338         (dwarf2_frame_cfa): Throw an error for btrace frames.
13339         * record-btrace.c: Include hashtab.h.
13340         (btrace_get_bfun_name): New.
13341         (btrace_call_history): Call btrace_get_bfun_name.
13342         (struct btrace_frame_cache): New.
13343         (bfcache): New.
13344         (bfcache_hash, bfcache_eq, bfcache_new): New.
13345         (btrace_get_frame_function): New.
13346         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13347         (record_btrace_frame_this_id): Compute own id.
13348         (record_btrace_frame_prev_register): Provide PC, throw_error
13349         for all other registers.
13350         (record_btrace_frame_sniffer): Detect btrace frames.
13351         (record_btrace_tailcall_frame_sniffer): New.
13352         (record_btrace_frame_dealloc_cache): New.
13353         (record_btrace_frame_unwind): Add new functions.
13354         (record_btrace_tailcall_frame_unwind): New.
13355         (_initialize_record_btrace): Allocate cache.
13356         * btrace.c (btrace_clear): Call reinit_frame_cache.
13357         * NEWS: Announce it.
13358
13359 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13360
13361         * record-btrace.c (record_btrace_set_replay)
13362         (record_btrace_goto_begin, record_btrace_goto_end)
13363         (record_btrace_goto): New.
13364         (init_record_btrace_ops): Initialize them.
13365         * NEWS: Announce it.
13366
13367 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13368
13369         * record-btrace.c (record_btrace_find_new_threads)
13370         (record_btrace_thread_alive): New.
13371         (init_record_btrace_ops): Initialize to_find_new_threads and
13372         to_thread_alive.
13373
13374 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13375
13376         * record-btrace.c (record_btrace_resume): New.
13377         (record_btrace_wait): New.
13378         (init_record_btrace_ops): Initialize to_wait and to_resume.
13379
13380 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13381
13382         * record-btrace.c (record_btrace_xfer_partial)
13383         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13384         (record_btrace_allow_memory_access): New.
13385         (init_record_btrace_ops): Initialize new methods.
13386         * target.c (raw_memory_xfer_partial): Bail out if target reports
13387         that this memory is not available.
13388
13389 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13390
13391         * target.h (target_ops) <to_insert_breakpoint>
13392         <to_remove_breakpoint>: Add target_ops parameter.
13393         (forward_target_insert_breakpoint): New.
13394         (forward_target_remove_breakpoint): New.
13395         (memory_remove_breakpoint, memory_insert_breakpoint):
13396         Add target_ops parameter.
13397         * target.c (target_insert_breakpoint): Split into this and ...
13398         (forward_target_insert_breakpoint): ... this.
13399         (target_remove_breakpoint): Split into this and ...
13400         (forward_target_remove_breakpoint): ... this.
13401         (debug_to_insert_breakpoint): Add target_ops parameter.
13402         Call forward_target_insert_breakpoint.
13403         (debug_to_remove_breakpoint): Add target_ops parameter.
13404         Call forward_target_remove_breakpoint.
13405         (update_current_target): Do not inherit or default to_insert_breakpoint
13406         and to_remove_breakpoint.
13407         * corelow.c (ignore): Add target_ops parameter.
13408         * exec.c (ignore): Add target_ops parameter.
13409         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13410         Add target_ops parameter.
13411         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13412         Add target_ops parameter.
13413         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13414         Add target_ops parameter.
13415         * record-full.c (record_full_beneath_to_insert_breakpoint)
13416         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13417         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13418         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13419         (record_full_core_remove_breakpoint): Add target_ops parameter.
13420         Update users.
13421         (record_full_beneath_to_insert_breakpoint_ops)
13422         (record_full_beneath_to_remove_breakpoint_ops)
13423         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13424         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13425         tmp_to_remove_breakpoint_ops,
13426         record_full_beneath_to_insert_breakpoint_ops, and
13427         record_full_beneath_to_remove_breakpoint_ops.
13428         * remote-m32r-sdi.c (m32r_insert_breakpoint)
13429         (m32r_remove_breakpoint): Add target_ops parameter.
13430         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13431         Add target_ops parameter.
13432         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13433         Add target_ops parameter.
13434
13435 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13436             Markus Metzger  <markus.t.metzger@intel.com>
13437
13438         * record-btrace.c: Include frame-unwind.h.
13439         (record_btrace_frame_unwind_stop_reason)
13440         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13441         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13442         New.
13443         (init_record_btrace_ops): Install it.
13444
13445 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13446
13447         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13448         get_prev_frame_1.
13449
13450 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13451
13452         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13453         earlier.
13454
13455 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13456
13457         * frame-unwind.c: Include target.h.
13458         (frame_unwind_try_unwinder): New function with code from ...
13459         (frame_unwind_find_by_frame): ... here.  New variable
13460         unwinder_from_target, call also target_get_unwinder)
13461         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13462         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13463         * target.h (struct target_ops): New fields to_get_unwinder and
13464         to_get_tailcall_unwinder.
13465         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13466
13467 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13468
13469         * record-btrace.c (record_btrace_fetch_registers)
13470         (record_btrace_store_registers)
13471         (record_btrace_to_prepare_to_store): New.
13472         (init_record_btrace_ops): Add the above.
13473
13474 2014-01-16  Tom Tromey  <tromey@redhat.com>
13475
13476         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13477         * target.h (struct target_ops) <to_prepare_to_store>: Add
13478         argument.
13479         (target_prepare_to_store): Add argument.
13480         * target.c (debug_to_prepare_to_store): Add argument.
13481         (update_current_target): Update.
13482         * remote.c (remote_prepare_to_store): Add 'self' argument.
13483         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13484         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13485         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13486         * record-full.c (record_full_core_prepare_to_store): Add 'self'
13487         argument.
13488         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13489         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13490         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13491         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13492         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13493
13494 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13495
13496         * btrace.h (replay) <replay>: New.
13497         (btrace_is_replaying): New.
13498         * btrace.c (btrace_clear): Free replay iterator.
13499         (btrace_is_replaying): New.
13500         * record-btrace.c (record_btrace_is_replaying): New.
13501         (record_btrace_info): Print insn number if replaying.
13502         (record_btrace_insn_history): Start at replay position.
13503         (record_btrace_call_history): Start at replay position.
13504         (init_record_btrace_ops): Init to_record_is_replaying.
13505
13506 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13507
13508         * record-btrace.c (record_btrace_insn_history_range): Include
13509         end.
13510         (record_btrace_insn_history_from): Adjust range.
13511         (record_btrace_call_history_range): Include
13512         end.
13513         (record_btrace_call_history_from): Adjust range.
13514         * NEWS: Announce changes.
13515
13516 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13517
13518         * record.h (enum record_print_flag)
13519         <record_print_indent_calls>: New.
13520         * record.c (get_call_history_modifiers): Recognize /c modifier.
13521         (_initialize_record): Document /c modifier.
13522         * record-btrace.c (btrace_call_history): Add btinfo parameter.
13523         Reorder fields.  Optionally indent the function name.  Update
13524         all users.
13525         * NEWS: Announce changes.
13526
13527 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13528
13529         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13530
13531 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13532
13533         * btrace.c (ftrace_new_function): Start counting at one.
13534         * record-btrace.c (record_btrace_info): Adjust number of calls
13535         and insns.
13536         * NEWS: Announce it.
13537
13538 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13539
13540         * record-btrace.c (btrace_call_history_insn_range): Print
13541         insn range as [begin, end].
13542
13543 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13544
13545         * btrace.h (struct btrace_func_link): New.
13546         (enum btrace_function_flag): New.
13547         (struct btrace_inst): Rename to ...
13548         (struct btrace_insn): ...this. Update all users.
13549         (struct btrace_func) <ibegin, iend>: Remove.
13550         (struct btrace_func_link): New.
13551         (struct btrace_func): Rename to ...
13552         (struct btrace_function): ...this. Update all users.
13553         (struct btrace_function) <segment, flow, up, insn, insn_offset)
13554         (number, level, flags>: New.
13555         (struct btrace_insn_iterator): Rename to ...
13556         (struct btrace_insn_history): ...this.
13557         Update all users.
13558         (struct btrace_insn_iterator, btrace_call_iterator): New.
13559         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13560         (struct btrace_target_info) <begin, end, level>
13561         <insn_history, call_history>: New.
13562         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13563         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13564         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13565         (btrace_call_number, btrace_call_begin, btrace_call_end)
13566         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13567         (btrace_find_function_by_number, btrace_set_insn_history)
13568         (btrace_set_call_history): New.
13569         * btrace.c (btrace_init_insn_iterator)
13570         (btrace_init_func_iterator, compute_itrace): Remove.
13571         (ftrace_print_function_name, ftrace_print_filename)
13572         (ftrace_skip_file): Change
13573         parameter to const.
13574         (ftrace_init_func): Remove.
13575         (ftrace_debug): Use new btrace_function fields.
13576         (ftrace_function_switched): Also consider gaining and
13577         losing symbol information).
13578         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13579         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13580         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13581         New.
13582         (ftrace_new_function): Move. Remove debug print.
13583         (ftrace_update_lines, ftrace_update_insns): New.
13584         (ftrace_update_function): Check for call, ret, and jump.
13585         (compute_ftrace): Renamed to ...
13586         (btrace_compute_ftrace): ...this. Rewritten to compute call
13587         stack.
13588         (btrace_fetch, btrace_clear): Updated.
13589         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13590         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13591         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13592         (btrace_call_number, btrace_call_begin, btrace_call_end)
13593         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13594         (btrace_find_function_by_number, btrace_set_insn_history)
13595         (btrace_set_call_history): New.
13596         * record-btrace.c (require_btrace): Use new btrace thread
13597         info fields.
13598         (record_btrace_info, btrace_insn_history)
13599         (record_btrace_insn_history, record_btrace_insn_history_range):
13600         Use new btrace thread info fields and new iterator.
13601         (btrace_func_history_src_line): Rename to ...
13602         (btrace_call_history_src_line): ...this. Use new btrace
13603         thread info fields.
13604         (btrace_func_history): Rename to ...
13605         (btrace_call_history): ...this. Use new btrace thread info
13606         fields and new iterator.
13607         (record_btrace_call_history, record_btrace_call_history_range):
13608         Use new btrace thread info fields and new iterator.
13609
13610 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13611
13612         * frame.h (frame_id_build_unavailable_stack_special): New.
13613         * frame.c (frame_id_build_unavailable_stack_special): New.
13614
13615 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13616
13617         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13618         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13619         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13620         to gdbarch.
13621         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13622         (i386_insn_is_jump, i386_jmp_p): New.
13623         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13624         insn_is_jump to gdbarch.
13625         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13626         * gdbarch.h: Regenerated.
13627         * gdbarch.c: Regenerated.
13628         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13629         (default_insn_is_jump): New.
13630         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13631         (default_insn_is_jump): New.
13632
13633 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13634
13635         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13636         Change to ...
13637         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
13638         (btrace_read_type) <btrace_read_new>: Change to ...
13639         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
13640
13641 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13642
13643         * common/linux-btrace.c (linux_read_btrace): Free trace from
13644         previous iteration.
13645
13646 2014-01-15  Doug Evans  <dje@google.com>
13647
13648         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13649         uint32_t.
13650
13651 2014-01-15  Tom Tromey  <tromey@redhat.com>
13652
13653         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13654         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13655         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13656         (set_objfile_main_name): New function.
13657         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13658         language_of_main>: New fields.
13659         (set_objfile_main_name): Declare.
13660         * symtab.c (find_main_name): Loop over objfiles to find the main
13661         name and language.
13662         (set_main_name): Now static.
13663         (get_main_info): Add comment.
13664         * symtab.h (set_main_name): Don't declare.
13665
13666 2014-01-15  Tom Tromey  <tromey@redhat.com>
13667
13668         * symtab.c (main_progspace_key): New global.
13669         (struct main_info): New.
13670         (name_of_main, language_of_main): Remove.
13671         (get_main_info, main_info_cleanup): New function.
13672         (set_main_name, main_name, main_language): Use get_main_info.
13673         (_initialize_symtab): Initialize main_progspace_key.
13674
13675 2014-01-15  Tom Tromey  <tromey@redhat.com>
13676
13677         * dbxread.c (process_one_symbol): Update.
13678         * dwarf2read.c (read_partial_die): Update.
13679         * symfile.c (set_initial_language): Call main_language.
13680         * symtab.c (language_of_main): Now static.
13681         (set_main_name): Add 'lang' parameter.
13682         (find_main_name): Update.
13683         (main_language): New function.
13684         (symtab_observer_executable_changed): Update.
13685         * symtab.h (set_main_name): Update.
13686         (language_of_main): Remove.
13687         (main_language): Declare.
13688
13689 2014-01-15  Tom Tromey  <tromey@redhat.com>
13690
13691         * symfile.c (init_entry_point_info): Use new "initialized" field.
13692         Update.
13693         * objfiles.h (struct entry_point) <initialized>: New field.
13694         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13695         (struct objfile) <ei>: ...here.  Remove.
13696         * objfiles.c (entry_point_address_query): Update.
13697
13698 2014-01-15  Tom Tromey  <tromey@redhat.com>
13699
13700         * objfiles.c (entry_point_address_query): Relocate entry point
13701         address.
13702         (objfile_relocate1): Do not relocate entry point address.
13703         * objfiles.h (struct entry_info) <entry_point>: Update comment.
13704         <the_bfd_section_index>: New field.
13705         * symfile.c (init_entry_point_info): Find the entry point's
13706         section.
13707
13708 2014-01-15  Tom Tromey  <tromey@redhat.com>
13709
13710         * solib-frv.c (enable_break): Use entry_point_address_query.
13711
13712 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13713
13714         * NEWS: Add note on improved process record-replay on
13715         arm*-linux* targets.
13716
13717 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13718
13719         * arm-tdep.c (enum arm_record_result): New enum.
13720         (arm_record_unsupported_insn): New function.
13721         (arm_record_coproc_data_proc): Removed.
13722         (thumb2_record_ld_st_multiple): New function.
13723         (thumb2_record_ld_st_dual_ex_tbb): New function.
13724         (thumb2_record_data_proc_sreg_mimm): New function.
13725         (thumb2_record_ps_dest_generic): New function.
13726         (thumb2_record_branch_misc_cntrl): New function.
13727         (thumb2_record_str_single_data): New function.
13728         (thumb2_record_ld_mem_hints): New function.
13729         (thumb2_record_ld_word): New function.
13730         (thumb2_record_lmul_lmla_div): New function.
13731         (thumb2_record_decode_insn_handler): New function.
13732         (decode_insn): Add thumb32 instruction handlers.
13733
13734 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13735
13736         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13737         (struct arm_linux_record_tdep): Declare.
13738         (arm_canonicalize_syscall): New function.
13739         (arm_all_but_pc_registers_record): New function.
13740         (arm_linux_syscall_record): New function.
13741         (arm_linux_init_abi): Add syscall recording constructs.
13742         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13743         decoding.  (arm_record_coproc_data_proc): Update arm syscall
13744         decoding.
13745         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13746         <arm_syscall_record>: New field.
13747         * configure.tgt (arm*-*-linux*): Add linux-record.o to
13748         gdb_target_obs.
13749
13750 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13751
13752         * arm-tdep.c (thumb_record_misc): Update to use sp as base
13753         register for push instruction recording.
13754
13755 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13756
13757         * arm-tdep.c (thumb_record_misc): Update to correct logical
13758         error while recording ldm, ldmia and pop instructions.
13759
13760 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13761
13762         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13763
13764 2014-01-15  Pedro Alves  <palves@redhat.com>
13765
13766         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13767         (go32_resume, go32_fetch_registers, store_register)
13768         (go32_store_registers, go32_prepare_to_store)
13769         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13770         (go32_create_inferior, go32_can_run, go32_terminal_init)
13771         (go32_terminal_inferior, go32_terminal_ours): Delete forward
13772         declarations.
13773
13774 2014-01-15  Tom Tromey  <tromey@redhat.com>
13775
13776         * target.h (async_callback_ftype): New typedef.
13777         (struct target_ops) <to_async>: Use it.
13778
13779 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
13780
13781         * python/py-value.c (get_field_type): Remove unnecessary curly
13782         braces for single-statement if block.
13783
13784 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
13785
13786         * python/py-type.c (convert_field): Add missing empty line
13787         after declarations.
13788
13789 2014-01-14  Doug Evans  <dje@google.com>
13790
13791         * symfile.h (expand_symtabs_matching): Renamed from
13792         expand_partial_symbol_names.  Update prototype.
13793         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13794         * symfile.c (expand_symtabs_matching): Renamed from
13795         expand_partial_symbol_names.  New args file_matcher, kind.
13796         Rename arg fun to symbol_matcher.
13797         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13798         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13799         ada_expand_partial_symbol_name.
13800         (ada_make_symbol_completion_list): Update to call
13801         expand_symtabs_matching.
13802         (ada_add_global_exceptions): Call expand_symtabs_matching.
13803         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13804         call map_symbol_filenames.
13805         * symtab.c (sources_info): Update to call map_symbol_filenames.
13806         (search_symbols): Call expand_symtabs_matching.
13807         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13808         (default_make_symbol_completion_list_break_on): Update to call
13809         expand_symtabs_matching.
13810         (make_source_files_completion_list): Update to call
13811         map_symbol_filenames.
13812
13813 2014-01-14  Doug Evans  <dje@google.com>
13814
13815         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13816         (expand_symtabs_symbol_matcher_ftype): New typedef.
13817         (quick_symbol_functions.expand_symtabs_matching): Update to use.
13818         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13819         * symfile.c (expand_partial_symbol_names): Update to use
13820         expand_symtabs_symbol_matcher_ftype.
13821         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13822         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13823         Arg name_matcher renamed to symbol_matcher.
13824         * psymtab.c (recursively_search_psymtabs): Update to use
13825         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
13826         sym_matcher.
13827         (expand_symtabs_matching_via_partial): Update to use
13828         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13829         Arg name_matcher renamed to symbol_matcher.
13830
13831 2014-01-14  Doug Evans  <dje@google.com>
13832
13833         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13834         (map_partial_symbol_filenames): Ditto.
13835         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13836         (map_partial_symbol_filenames): Ditto.
13837         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13838         (map_partial_symbol_filenames): Ditto.
13839         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13840         (map_partial_symbol_filenames): Ditto.
13841         * symtab.c: Delete #include "psymtab.h".
13842
13843 2014-01-14  Pedro Alves  <palves@redhat.com>
13844             Tom Tromey  <tromey@redhat.com>
13845
13846         * infrun.c (use_displaced_stepping): Use find_record_target
13847         instead of RECORD_IS_USED.
13848         (adjust_pc_after_break): Use record_full_is_used instead of
13849         RECORD_IS_USED.
13850         * record-btrace.c (record_btrace_open): Call record_preopen
13851         instead of checking RECORD_IS_USED.
13852         * record-full.c (record_full_shortname)
13853         (record_full_core_shortname): New globals.
13854         (record_full_is_used): New function.
13855         (find_full_open): Call record_preopen instead of checking
13856         RECORD_IS_USED.
13857         (init_record_full_ops): Set the target's shortname to
13858         record_full_shortname.
13859         (init_record_full_core_ops): Set the target's shortname to
13860         record_full_core_shortname.
13861         * record-full.h (record_full_is_used): Declare.
13862         * record.c (find_record_target): Make extern.
13863         (record_preopen): New function.
13864         * record.h (RECORD_IS_USED): Delete macro.
13865         (find_record_target, record_preopen): Declare functions.
13866
13867 2014-01-14  Yao Qi  <yao@codesourcery.com>
13868
13869         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13870         'len''s type to ULONGEST.
13871         (core_xfer_shared_libraries_aix): Likewise.
13872         * gdbarch.c, gdbarch.h: Regenerated.
13873         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13874         Change type of 'len' to ULONGEST.
13875         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13876         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13877
13878 2014-01-14  Yao Qi  <yao@codesourcery.com>
13879
13880         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13881         type of 'len' to ULONGEST.
13882         (linux_xfer_osdata_processgroups): Likewise.
13883         (linux_xfer_osdata_threads): Likewise.
13884         (linux_xfer_osdata_fds): Likewise.
13885         (linux_xfer_osdata_isockets): Likewise.
13886         (linux_xfer_osdata_shm): Likewise.
13887         (linux_xfer_osdata_sem): Likewise.
13888         (linux_xfer_osdata_msg): Likewise.
13889         (linux_common_xfer_osdata): Likewise.
13890         (struct osdata_type) <getter>: Likewise.
13891         * common/linux-osdata.h (linux_common_xfer_osdata): Update
13892         the declaration.
13893
13894 2014-01-14  Yao Qi  <yao@codesourcery.com>
13895
13896         * target.h (target_xfer_partial_ftype): Update.
13897         (struct target_ops) <to_xfer_partial>: Change 'len' type to
13898         ULONGEST.
13899         * aix-thread.c (aix_thread_xfer_partial): Change type of
13900         argument 'len' to ULONGEST.
13901         * auxv.c (procfs_xfer_auxv): Likewise.
13902         (ld_so_xfer_auxv): Likewise.
13903         (memory_xfer_auxv): Likewise.
13904         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13905         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13906         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13907         * corelow.c (core_xfer_partial): Likewise.
13908         * ctf.c (ctf_xfer_partial): Likewise.
13909         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
13910         '%u'.
13911         (darwin_read_dyld_info): Likewise.
13912         (darwin_xfer_partial): Likewise.
13913         * exec.c (section_table_xfer_memory_partial): Likewise.
13914         (exec_xfer_partial): Likewise.
13915         * exec.h (section_table_xfer_memory_partial): Update
13916         declaration.
13917         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
13918         instead of plongest.
13919         (gnu_xfer_partial): Likewise.
13920         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13921         (ia64_hpux_xfer_solib_got): Likewise.
13922         (ia64_hpux_xfer_partial): Likewise.
13923         * ia64-linux-nat.c (ia64_linux_xfer_partial):
13924         * inf-ptrace.c (inf_ptrace_xfer_partial):
13925         * inf-ttrace.c (inf_ttrace_xfer_partial):
13926         * linux-nat.c (linux_xfer_siginfo): Likewise.
13927         (linux_nat_xfer_partial): Likewise.
13928         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13929         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13930         * monitor.c (monitor_xfer_memory): Likewise.
13931         (monitor_xfer_partial): Likewise.
13932         * procfs.c (procfs_xfer_partial): Likewise.
13933         * record-full.c (record_full_xfer_partial): Likewise.
13934         (record_full_core_xfer_partial): Likewise.
13935         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
13936         instead of plongest.
13937         (gdbsim_xfer_partial): Likewise.
13938         * remote.c (remote_xfer_partial): Likewise.
13939         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13940         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13941         declaration.
13942         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13943         (rs6000_xfer_shared_libraries): Likewise.
13944         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13945         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13946         (sparc_xfer_partial): Likewise.
13947         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13948         (spu_xfer_partial): Likewise.
13949         * spu-multiarch.c (spu_xfer_partial): Likewise.
13950         * target.c (target_read_live_memory): Likewise.
13951         (memory_xfer_live_readonly_partial): Likewise.
13952         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13953         (target_xfer_partial, default_xfer_partial): Likewise.
13954         (current_xfer_partial): Likewise.
13955         * tracepoint.c (tfile_xfer_partial): Likewise.
13956         * windows-nat.c (windows_xfer_memory): Likewise.  Call
13957         pulongest instead of plongest.
13958         (windows_xfer_partial): Likewise.
13959         (windows_xfer_shared_libraries): Likewise.
13960
13961 2014-01-14  Yao Qi  <yao@codesourcery.com>
13962
13963         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13964         target_xfer_partial_ftype.
13965
13966 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
13967
13968         PR python/15464
13969         PR python/16113
13970         * valops.c (value_struct_elt_bitpos): New function
13971         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13972         object to 'None' if the field name is an empty string ("").
13973         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13974         attribute to look for a field when 'name' is 'None'.
13975         (get_field_type): New function
13976
13977 2014-01-13  Doug Evans  <dje@google.com>
13978
13979         PR symtab/16426
13980         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13981         (try_open_dwop_file): Ditto.
13982         * gdb_bfd.c: #include "vec.h".
13983         (bfdp): New typedef.
13984         (struct gdb_bfd_data): New member included_bfds.
13985         (gdb_bfd_unref): Unref all included bfds.
13986         (gdb_bfd_record_inclusion): New function.
13987         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13988
13989 2014-01-13  Tom Tromey  <tromey@redhat.com>
13990
13991         * gdbcore.h (deprecated_core_resize_section_table): Remove.
13992
13993 2014-01-13  Tom Tromey  <tromey@redhat.com>
13994
13995         * defs.h (use_windows): Remove.
13996         * gdb.c (main): Update.
13997         * main.c (captured_main, gdb_main): Update.
13998         * main.h (struct captured_main_args) <use_windows>: Remove.
13999         * top.c (use_windows): Remove.
14000
14001 2014-01-13  Tom Tromey  <tromey@redhat.com>
14002
14003         * defs.h (deprecated_flush_hook): Remove.
14004
14005 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
14006
14007         PR threads/16216
14008         * linux-thread-db.c (try_thread_db_load): Add parameter
14009         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
14010         (try_thread_db_load_from_pdir_1): Move it there from here.
14011         (try_thread_db_load_from_sdir): Update caller.
14012         (try_thread_db_load_from_dir): Move it there from here.
14013
14014 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
14015
14016         * regformats/regdat.sh: Always rewrite the register file.
14017
14018 2014-01-13  Pedro Alves  <palves@redhat.com>
14019
14020         * Makefile.in (CHECK_HEADERS): New variable.
14021         (check-headers:): New rule.
14022
14023 2014-01-13  Tom Tromey  <tromey@redhat.com>
14024
14025         * cli/cli-setshow.c (do_set_command): Update.
14026         * defs.h (deprecated_set_hook): Remove.
14027         * top.c (deprecated_set_hook): Remove.
14028
14029 2014-01-13  Pedro Alves  <palves@redhat.com>
14030
14031         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14032         the tracepoint if the PC is a pseudo-register.
14033
14034 2014-01-13  Tom Tromey  <tromey@redhat.com>
14035
14036         * defs.h (XCALLOC): Remove.
14037         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14038         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14039         * dwarf2loc.c (allocate_piece_closure): Likewise.
14040         * elfread.c (elf_symfile_segments): Likewise.
14041         (elf_symfile_segments): Likewise.
14042         * gdbtypes.c (copy_type_recursive): Likewise.
14043         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14044         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14045         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14046         XCALLOC.
14047         * mt-tdep.c (mt_gdbarch_init): Likewise.
14048         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14049         XCALLOC.
14050         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14051         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14052         * registry.c (registry_alloc_data): Likewise.
14053         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14054         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14055         * serial.c (serial_fdopen_ops): Likewise.
14056         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14057         XCALLOC.
14058         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14059         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14060         not XCALLOC.
14061
14062 2014-01-13  Tom Tromey  <tromey@redhat.com>
14063
14064         * defs.h (XMALLOC): Remove.
14065         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14066         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14067         * cli-out.c (struct ui_out *): Likewise.
14068         * cli/cli-dump.c (add_dump_command): Likewise.
14069         (add_dump_command): Likewise.
14070         * complaints.c (get_complaints): Likewise.
14071         (find_complaint): Likewise.
14072         * dwarf2-frame.c (execute_cfa_program): Likewise.
14073         * dwarf2read.c (abbrev_table_read_table): Likewise.
14074         * gdbarch.sh: Likewise.
14075         * gdbarch.c: Rebuild.
14076         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14077         * interps.c (interp_new): Likewise.
14078         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14079         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14080         * mi/mi-console.c (mi_console_file_new): Likewise.
14081         * mi/mi-interp.c (mi_interpreter_init): Likewise.
14082         * mi/mi-out.c (mi_out_new): Likewise.
14083         * mi/mi-parse.c (mi_parse): Likewise.
14084         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14085         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14086         * observer.c (xalloc_observer_list_node): Likewise.
14087         * regcache.c (regcache_xmalloc_1): Likewise.
14088         * reggroups.c (reggroup_new): Likewise.
14089         (_initialize_reggroup): Likewise.
14090         * registry.c (register_data_with_cleanup): Likewise.
14091         * remote.c (remote_notif_stop_alloc_reply): Likewise.
14092         * ser-base.c (serial_ttystate): Likewise.
14093         * ser-mingw.c (make_pipe_state): Likewise.
14094         * ser-pipe.c (pipe_open): Likewise.
14095         * serial.c (serial_open): Likewise.
14096         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14097         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14098         (tui_alloc_win_info): Likewise.
14099         (tui_add_content_elements): Likewise.
14100         * tui/tui-file.c (tui_file_new): Likewise.
14101         * tui/tui-out.c (tui_out_new): Likewise.
14102         * ui-file.c (mem_file_new): Likewise.
14103         * ui-out.c (push_level): Likewise.
14104         (make_cleanup_ui_out_end): Likewise.
14105         (append_header_to_list): Likewise.
14106         (ui_out_new): Likewise.
14107         * user-regs.c (user_reg_add_builtin): Likewise.
14108
14109 2014-01-13  Tom Tromey  <tromey@redhat.com>
14110
14111         * defs.h (XZALLOC): Remove.
14112         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14113         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14114         (get_ada_tasks_inferior_data): Likewise.
14115         * auto-load.c (get_auto_load_pspace_data): Likewise.
14116         * auxv.c (get_auxv_inferior_data): Likewise.
14117         * bfd-target.c (target_bfd_reopen): Likewise.
14118         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14119         (deprecated_insert_raw_breakpoint): Likewise.
14120         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14121         * corelow.c (core_open): Likewise.
14122         * darwin-nat.c (darwin_check_new_threads): Likewise.
14123         (darwin_attach_pid): Likewise.
14124         * dummy-frame.c (dummy_frame_push): Likewise.
14125         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14126         * dwarf2loc.c (allocate_piece_closure): Likewise.
14127         * elfread.c (elf_symfile_segments): Likewise.
14128         * eval.c (ptrmath_type_p): Likewise.
14129         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14130         * gdbtypes.c (alloc_type_arch): Likewise.
14131         (alloc_type_instance): Likewise.
14132         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14133         * inf-child.c (inf_child_can_use_agent): Likewise.
14134         * inflow.c (get_inflow_inferior_data): Likewise.
14135         * infrun.c (save_infcall_suspend_state): Likewise.
14136         * jit.c (jit_reader_load): Likewise.
14137         (get_jit_objfile_data): Likewise.
14138         (get_jit_program_space_data): Likewise.
14139         (jit_object_open_impl): Likewise.
14140         (jit_symtab_open_impl): Likewise.
14141         (jit_block_open_impl): Likewise.
14142         (jit_frame_sniffer): Likewise.
14143         * linux-fork.c (add_fork): Likewise.
14144         * maint.c (make_command_stats_cleanup): Likewise.
14145         * objfiles.c (get_objfile_pspace_data): Likewise.
14146         * opencl-lang.c (struct lval_closure): Likewise.
14147         * osdata.c (osdata_start_osdata): Likewise.
14148         * progspace.c (new_address_space): Likewise.
14149         (add_program_space): Likewise.
14150         * remote-sim.c (get_sim_inferior_data): Likewise.
14151         * sh-tdep.c (sh_gdbarch_init): Likewise.
14152         * skip.c (Ignore): Likewise.
14153         (skip_delete_command): Likewise.
14154         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14155         (library_list_start_library): Likewise.
14156         (solib_aix_current_sos): Likewise.
14157         * solib-darwin.c (get_darwin_info): Likewise.
14158         (darwin_current_sos): Likewise.
14159         * solib-dsbt.c (get_dsbt_info): Likewise.
14160         * solib-ia64-hpux.c (new_so_list): Likewise.
14161         (ia64_hpux_get_solib_linkage_addr): Likewise.
14162         * solib-spu.c (append_ocl_sos): Likewise.
14163         (spu_current_sos): Likewise.
14164         * solib-svr4.c (get_svr4_info): Likewise.
14165         (svr4_keep_data_in_core): Likewise.
14166         (library_list_start_library): Likewise.
14167         (svr4_default_sos): Likewise.
14168         (svr4_read_so_list): Likewise.
14169         * solib-target.c (library_list_start_library): Likewise.
14170         (solib_target_current_sos): Likewise.
14171         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14172         * symfile-debug.c (install_symfile_debug_logging): Likewise.
14173         * symfile.c (default_symfile_segments): Likewise.
14174         * target-descriptions.c (tdesc_data_init): Likewise.
14175         (tdesc_create_reg): Likewise.
14176         (struct tdesc_type *): Likewise.
14177         (tdesc_create_vector): Likewise.
14178         (tdesc_set_struct_size): Likewise.
14179         (struct tdesc_type *): Likewise.
14180         (tdesc_free_feature): Likewise.
14181         (tdesc_create_feature): Likewise.
14182         * windows-nat.c (windows_add_thread): Likewise.
14183         (windows_make_so): Likewise.
14184         * xml-support.c (gdb_xml_body_text): Likewise.
14185         (gdb_xml_create_parser_and_cleanup): Likewise.
14186         (xml_process_xincludes): Likewise.
14187         * xml-syscall.c (allocate_syscalls_info): Likewise.
14188         (syscall_create_syscall_desc): Likewise.
14189
14190 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
14191
14192         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14193         function, with code from i386_stap_parse_special_token.
14194         (i386_stap_parse_special_token_three_arg_disp): Likewise.
14195         (i386_stap_parse_special_token): Move code to the two functions
14196         above; simplify it.
14197
14198 2014-01-09  Pedro Alves  <palves@redhat.com>
14199             Hui Zhu  <hui@codesourcery.com>
14200
14201         PR gdb/16101
14202         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14203         bp_err_string.  Don't mark the location shlib_disabled if the
14204         error thrown wasn't a generic or memory error.  Catch errors
14205         thrown while inserting breakpoints in overlayed code.  Output
14206         error message of software breakpoints.
14207         * remote.c (remote_insert_breakpoint): If this breakpoint has
14208         target-side commands but this stub doesn't support Z0 packets,
14209         throw NOT_SUPPORTED_ERROR error.
14210         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14211         * target.h (target_insert_breakpoint): Extend comment.
14212         (target_insert_hw_breakpoint): Add comment.
14213
14214 2014-01-08  Pedro Alves  <palves@redhat.com>
14215
14216         * remote.c (remote_add_thread): Add threads silently if starting
14217         up.
14218         (remote_notice_new_inferior): If in all-stop, and starting up,
14219         don't call notice_new_inferior.
14220         (get_current_thread): New function, factored out from ...
14221         (add_current_inferior_and_thread): ... this.  Adjust.
14222         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
14223         found any thread, then select the remote's current thread as GDB's
14224         current thread too.
14225
14226 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14227
14228         * NEWS: Create a new section for the next release branch.
14229         Rename the section of the current branch, now that it has
14230         been cut.
14231
14232 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14233
14234         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14235         * version.in: Bump version to 7.7.50.DATE-cvs.
14236
14237 2014-01-08  Yao Qi  <yao@codesourcery.com>
14238
14239         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14240         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
14241         (spu_xfer_partial): Cast 'buf' to 'const char *'.
14242
14243 2014-01-08  Yao Qi  <yao@codesourcery.com>
14244
14245         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14246         return value of bfd_get_filename to symbol_file_add_from_bfd.
14247
14248 2014-01-08  Pierre Muller  <muller@sourceware.org>
14249
14250         Fix PR16201.
14251         * coff-pe-read.c (struct read_pe_section_data): Add index field.
14252         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14253         to prim_record_mininal_symbol_and_info.
14254         (add_pe_forwarded_sym): Use known section number of forwarded symbol
14255         in call to prim_record_minimal_symbol_and_info.
14256         (read_pe_exported_syms): Set index field of section_data.
14257
14258 2014-01-07  Andrew Pinski  <apinski@cavium.com>
14259
14260         * features/aarch64-core.xml (cpsr): Change to be 64bit.
14261         * features/aarch64.c: Regenerate.
14262
14263 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
14264
14265         * target.c (return_null): Define.
14266         (update_current_target): Use it instead of return_zero for
14267         functions that return a pointer.
14268
14269 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
14270
14271         * source.c (add_path): Fix check for duplicated paths in the previously
14272         included paths.
14273
14274 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
14275
14276         * ada-lang.c: Remove duplicated include statements.
14277         * alphabsd-nat.c: Ditto.
14278         * amd64-darwin-tdep.c: Ditto.
14279         * amd64fbsd-nat.c: Ditto.
14280         * auto-load.c: Ditto.
14281         * ax-gdb.c: Ditto.
14282         * breakpoint.c: Ditto.
14283         * dbxread.c: Ditto.
14284         * fork-child.c: Ditto.
14285         * gdb_usleep.c: Ditto.
14286         * i386-darwin-tdep.c: Ditto.
14287         * i386fbsd-nat.c: Ditto.
14288         * infcmd.c: Ditto.
14289         * inferior.c: Ditto.
14290         * jv-lang.c: Ditto.
14291         * linux-nat.c: Ditto.
14292         * linux-tdep.c: Ditto.
14293         * m68kbsd-nat.c: Ditto.
14294         * m68klinux-nat.c: Ditto.
14295         * microblaze-tdep.c: Ditto.
14296         * mips-linux-tdep.c: Ditto.
14297         * mn10300-tdep.c: Ditto.
14298         * nto-tdep.c: Ditto.
14299         * opencl-lang.c: Ditto.
14300         * osdata.c: Ditto.
14301         * printcmd.c: Ditto.
14302         * regcache.c: Ditto.
14303         * remote-m32r-sdi.c: Ditto.
14304         * remote.c: Ditto.
14305         * symfile.c: Ditto.
14306         * symtab.c: Ditto.
14307         * tilegx-linux-nat.c: Ditto.
14308         * tilegx-tdep.c: Ditto.
14309         * tracepoint.c: Ditto.
14310         * valops.c: Ditto.
14311         * vaxbsd-nat.c: Ditto.
14312         * windows-nat.c: Ditto.
14313         * xtensa-tdep.c: Ditto.
14314
14315 2014-01-07  Yao Qi  <yao@codesourcery.com>
14316
14317         * spu-linux-nat.c (_initialize_spu_nat): Declare.
14318
14319 2014-01-07  Yao Qi  <yao@codesourcery.com>
14320             Joel Brobecker  <brobecker@adacore.com>
14321
14322         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14323         (pdc_write_regs): Likewise.
14324         (fetch_regs_kernel_thread): Likewise.
14325         (store_regs_kernel_thread): Likewise.
14326
14327 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14328
14329         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14330         tagged type objects to their actual type.
14331
14332 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14333
14334         * ada-valprint.c (print_field_values): Add "language" parameter.
14335         Update calls to print_field_values and print_variant_part.
14336         Pass new parameter "language" in call to val_print instead
14337         of "current_language".  Replace call to ada_val_print by call
14338         to val_print.
14339         (print_variant_part): Add "language" parameter.
14340         (ada_val_print_struct_union): Update call to print_field_values.
14341
14342 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14343
14344         * ada-valprint.c (ui_memcpy): Delete.
14345         (ada_print_floating): Update documentation.  Add empty line
14346         between between function documentation and implementation.
14347         Delete variable "buffer".  Use ui_file_xstrdup in place of
14348         ui_file_put.  Minor adjustments following this change.
14349
14350 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14351
14352         * ada-valprint.c (ada_val_print_string): New function,
14353         extracted from ada_val_print_array.
14354         (ada_val_print_array): Replace extracted code by call
14355         to ada_val_print_string followed by a return.  Move
14356         "else" branch to the function's top block.
14357
14358 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14359
14360         * ada-valprint.c (ada_val_print_array): Move implementation
14361         down.  Rename parameter "offset" and "val" into "offset_aligned"
14362         and "original_value" respectively.  Add parameter "offset".
14363
14364 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14365
14366         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14367         re-organizing the code. Change the "???" message printed
14368         when target type is a TYPE_CODE_UNDEF into
14369         "<ref to undefined type>".
14370
14371 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14372
14373         * ada-valprint.c (print_record): Delete, implementation inlined...
14374         (ada_val_print_struct_union): ... here.  Remove call to
14375         ada_check_typedef in inlined implementation.
14376
14377 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14378
14379         * ada-valprint.c (ada_val_print_gnat_array): New function,
14380         extracted from ada_val_print_1;
14381         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14382         (ada_val_print_flt, ada_val_print_struct_union)
14383         (ada_val_print_ref): Likewise.
14384         (ada_val_print_1): Delete variables i and elttype.
14385         Replace extracted-out code by call to corresponding
14386         new functions.
14387
14388 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14389
14390         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14391
14392 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14393
14394         * ada-valprint.c (ada_val_print_1): Replace calls to
14395         ada_val_print_1 by calls to val_print.
14396
14397 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14398
14399         * ada-valprint.c (ada_val_print_1): Add parameter "language".
14400         Update calls to self accordingly.  Replace calls to c_val_print
14401         by calls to val_print.
14402
14403 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14404
14405         * ada-valprint.c (print_record): Delete declaration.
14406         (adjust_type_signedness, ada_val_print_1): Likewise.
14407         (ada_val_print): Move function implementation down.
14408         (print_variant_part, print_field_values, print_record):
14409         Move function implementation up.
14410
14411 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14412
14413         * python/py-type.c (typy_get_name): New function.
14414         (type_object_getset): Add entry for attribute "name".
14415         * NEWS: Add entry mentioning this new attribute.
14416
14417 2014-01-07  Yao Qi  <yao@codesourcery.com>
14418
14419         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14420         statement.
14421
14422 2014-01-07  Yao Qi  <yao@codesourcery.com>
14423
14424         * gnu-nat.c (info_port_rights): Add qualifier const to
14425         argument args.
14426
14427 2014-01-07  Yao Qi  <yao@codesourcery.com>
14428
14429         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14430
14431 2014-01-07  Yao Qi  <yao@codesourcery.com>
14432
14433         * gnu-nat.c (make_inf) Update declaration.
14434         (make_inf): Make it static.
14435         (inf_set_traced): Likewise.
14436         (inf_port_to_thread, inf_task_died_status): Likewise.
14437
14438 2014-01-07  Yao Qi  <yao@codesourcery.com>
14439
14440         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14441
14442 2014-01-07  Yao Qi  <yao@codesourcery.com>
14443
14444         * gnu-nat.c (_initialize_gnu_nat): Declare.
14445
14446 2014-01-07  Yao Qi  <yao@codesourcery.com>
14447
14448         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14449         'enum bfd_endian'.
14450         (struct gdbarch_info) <byte_order>: Change type to
14451         'enum bfd_endian'.
14452         <byte_order_for_code>: Likewise.
14453         * gdbarch.c, gdbarch.h: Regenerated.
14454
14455 2014-01-06  Sasha Smundak  <asmundak@google.com>
14456
14457         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14458
14459 2014-01-06  Tom Tromey  <tromey@redhat.com>
14460
14461         * doublest.c (convert_doublest_to_floatformat): Use const, not
14462         CONST.
14463         * somread.c (som_symtab_read): Likewise.
14464
14465 2014-01-07  Hui Zhu  <hui@codesourcery.com>
14466
14467         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14468         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14469         (gdb_bfd_fopen): Ditto.
14470         (gdb_bfd_openr): Ditto.
14471         (gdb_bfd_openw): Ditto.
14472         (gdb_bfd_openr_iovec): Ditto.
14473         (gdb_bfd_fdopenr): Ditto.
14474         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14475         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14476         with xstrdup.
14477         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14478         with xstrdup.
14479         * symfile-mem.c (symbol_file_add_from_memory): Removed
14480         gdb_bfd_stash_filename.
14481
14482 2014-01-03  Doug Evans  <dje@google.com>
14483
14484         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14485         output.
14486
14487 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14488
14489         Update year range in copyright notice of all files.
14490
14491 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14492
14493         * top.c (print_gdb_version): Set copyright year to 2014.
14494
14495 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14496
14497         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14498
14499 For older changes see ChangeLog-2013.
14500 \f
14501 Local Variables:
14502 mode: change-log
14503 left-margin: 8
14504 fill-column: 74
14505 version-control: never
14506 coding: utf-8
14507 End: