solib_global_lookup: Fetch arch from objfile, not target_gdbarch.
[external/binutils.git] / gdb / ChangeLog
1 2014-11-06  Doug Evans  <xdje42@gmail.com>
2
3         * objfiles.c (get_objfile_arch): Constify.
4         * objfiles.h (get_objfile_arch): Update prototype.
5         * solib.c (solib_global_lookup): Fetch arch from objfile,
6         not target_gdbarch.
7
8 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
9
10         * nios2-tdep.c (wild_insn): Delete.
11         (profiler_insn, irqentry_insn): Delete.
12         (nios2_match_sequence): Delete.
13         (nios2_analyze_prologue): Update comments.  Remove matching
14         of obsolete profiler_insn and irqentry_insn sequences.
15
16 2014-11-05  Alan Modra  <amodra@gmail.com>
17
18         * charset.c (convert_between_encodings): Shrink obstack using
19         obstack_blank_fast.
20         * minsyms.c (install_minimal_symbols): Likewise.
21         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
22         to char* before doing pointer arithmetic.
23
24 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
25
26         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
27
28 2014-11-04  Pedro Alves  <palves@redhat.com>
29
30         * breakpoint.c (breakpoint_thread_match): Delete function.
31         * breakpoint.h (breakpoint_thread_match): Delete declaration.
32
33 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
34
35         PR c++/17494
36         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
37         the method args also under EVAL_SKIP when evaluating method
38         calls under EVAL_SKIP.
39
40 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
41
42         * dwarf2loc.c (read_pieced_value): Do big endian
43         processing only if gdb_regnum is not -1.
44         (write_pieced_value): Ditto.
45
46 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
47
48         * arm-linux-tdep.c (arm_linux_init_abi): Use
49         info.byte_order_for_code to choose endianity of breakpoint
50         instructions snippets.
51
52 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
53
54         * arm-tdep.c (extract_arm_insn): Use
55         gdbarch_byte_order_for_code to read arm instruction.
56
57 2014-11-02  Doug Evans  <xdje42@gmail.com>
58
59         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
60
61 2014-11-02  Doug Evans  <xdje42@gmail.com>
62
63         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
64         main_subfile before returning.
65
66 2014-10-31  Doug Evans  <xdje42@gmail.com>
67
68         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
69         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
70
71 2014-10-31  Doug Evans  <xdje42@gmail.com>
72
73         * valops.c (value_cast_pointers): Fix whitespace.
74         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
75         Ditto.
76
77 2014-10-30  Doug Evans  <dje@google.com>
78
79         * NEWS: Mention ability add attributes to gdb.Objfile and
80         gdb.Progspace objects.
81         * python/py-objfile.c (objfile_object): New member dict.
82         (objfpy_dealloc): Py_XDECREF dict.
83         (objfpy_initialize): Initialize dict.
84         (objfile_getset): Add __dict__.
85         (objfile_object_type): Set tp_dictoffset member.
86         * python/py-progspace.c (progspace_object): New member dict.
87         (pspy_dealloc): Py_XDECREF dict.
88         (pspy_initialize): Initialize dict.
89         (pspace_getset): Add __dict__.
90         (pspace_object_type): Set tp_dictoffset member.
91
92 2014-10-30  Yao Qi  <yao@codesourcery.com>
93
94         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
95         replace '\\' with '\\\\'.
96
97 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
98
99         GDB 7.8.1 released.
100
101 2014-10-29  Pedro Alves  <palves@redhat.com>
102
103         PR gdb/17408
104         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
105         instead of assuming a thread with a stepping range is always
106         stepping.
107
108 2014-10-29  Pedro Alves  <palves@redhat.com>
109
110         PR python/17372
111         * event-top.c (change_line_handler): Call
112         gdb_rl_callback_handler_remove instead of
113         rl_callback_handler_remove.
114         (callback_handler_installed): New global.
115         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
116         (gdb_rl_callback_handler_reinstall): New functions.
117         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
118         gdb_rl_callback_handler_install instead of
119         rl_callback_handler_remove and rl_callback_handler_install.
120         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
121         instead of rl_callback_handler_remove.
122         * event-top.h (gdb_rl_callback_handler_remove)
123         (gdb_rl_callback_handler_install)
124         (gdb_rl_callback_handler_reinstall): New declarations.
125         * infrun.c (reinstall_readline_callback_handler_cleanup): New
126         cleanup function.
127         (fetch_inferior_event): Install it.
128         * top.c (gdb_readline_wrapper_line) Call
129         gdb_rl_callback_handler_remove instead of
130         rl_callback_handler_remove.
131         (gdb_readline_wrapper_cleanup): Don't call
132         rl_callback_handler_install.
133
134 2014-10-29  Pedro Alves  <palves@redhat.com>
135
136         * event-top.c (command_line_handler): Clear the first byte of
137         linebuffer, when it is first allocated.
138
139 2014-10-29  Pedro Alves  <palves@redhat.com>
140
141         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
142         TRY_CATCH.
143
144 2014-10-29  Pedro Alves  <palves@redhat.com>
145
146         PR tui/16138
147         PR tui/17519
148         * tui/tui-interp.c (tui_is_toplevel): Delete global.
149         (tui_allowed_p): Delete function.
150         * tui/tui.c: Include "interps.h".
151         (tui_enable): Don't use tui_allowed_p.  Error out here with
152         detailed error messages if the TUI is the top level interpreter,
153         or if output is not a terminal.  Use newterm instead of initscr,
154         and error out if initializing the terminal fails.  Also error out if
155         the terminal doesn't support cursor addressing.
156         * tui/tui.h (tui_allowed_p): Delete declaration.
157
158 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
159
160         * arm-tdep.c (arm_skip_stack_protector): Return early if
161         address loaded by first "ldr" instruction does not have
162         a corresponding minimal symbol.  Update comment.
163
164 2014-10-29  Yao Qi  <yao@codesourcery.com>
165
166         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
167         loaded address correctly of ldr instruction.
168
169 2014-10-28  Pedro Alves  <palves@redhat.com>
170
171         PR gdb/12623
172         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
173         field.
174         * infrun.c (resume) <stepping breakpoint instruction>: Set the
175         thread's stepped_breakpoint field.  Skip if reverse debugging.
176         Add comment.
177         (init_thread_stepping_state, handle_signal_stop): Clear the
178         thread's stepped_breakpoint field.
179
180 2014-10-27  Pedro Alves  <palves@redhat.com>
181
182         * remote.c (remote_thread_alive): New, factored out from ...
183         (remote_thread_alive): ... this.
184         (remote_update_thread_list): Bail out before deleting threads if
185         the target returned an empty list, and, the current thread has a
186         magic/fake ptid.
187
188 2014-10-27  Pedro Alves  <palves@redhat.com>
189
190         * infrun.c (handle_signal_stop): Also skip handlers when a random
191         signal arrives while handling a "stepi" or a "nexti".  Set the
192         thread's 'step_after_step_resume_breakpoint' flag.
193
194 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
195
196         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
197         (arm_record_ld_st_imm_offset): Reimplement to cover all
198         load/store cases for ARM opcode 010.
199         (arm_record_ld_st_multiple): Reimplement to cover all
200         load/store cases for ARM opcode 100.
201
202 2014-10-26  Doug Evans  <xdje42@gmail.com>
203
204         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
205
206 2014-10-26  Doug Evans  <xdje42@gmail.com>
207
208         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
209         parameter "kind" to "block_index".
210         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
211         "block_index".
212         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
213
214 2014-10-26  Doug Evans  <xdje42@gmail.com>
215
216         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
217
218 2014-10-26  Doug Evans  <xdje42@gmail.com>
219
220         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
221         obstack_alloc.
222
223 2014-10-26  Doug Evans  <xdje42@gmail.com>
224
225         * parser-defs.h (block_found): Move decl from here ...
226         * symtab.h (block_found): ... to here.
227
228 2014-10-26  Doug Evans  <xdje42@gmail.com>
229
230         * symtab.h (struct field_of_this_result): Fix typo in comment.
231         (lookup_symbol_in_language): Move function comment here.
232         (lookup_symbol): Improve function comment.
233         (basic_lookup_symbol_nonlocal): Ditto.
234         (lookup_symbol_static, lookup_symbol_global): Ditto.
235         (lookup_symbol_aux_block): Ditto.
236         (lookup_language_this): Add function comment.
237         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
238         function comment.
239         (lookup_block_symbol): Improve function comment.
240         (lookup_struct): Fix capitalization in function comment.
241         (lookup_transparent_type): Add function comment.
242         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
243         Improve function comment.
244         (lookup_objfile_from_block): Add function comment.
245         * symtab.c (lookup_symbol_in_language): Update function comment.
246         (lookup_symbol, lookup_language_this): Ditto.
247         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
248         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
249         (basic_lookup_symbol_nonlocal): Ditto.
250         (lookup_symbol_static, lookup_symbol_global): Ditto.
251         (lookup_transparent_type, lookup_block_symbol): Ditto.
252
253 2014-10-25  Doug Evans  <xdje42@gmail.com>
254
255         * symtab.c (types_info): Delete forward decl.
256         (functions_info, variables_info, sources_info): Ditto.
257         (_initialize_symtab): Rewrite forward decl to use
258         initialize_file_ftype.
259
260 2014-10-25  Doug Evans  <xdje42@gmail.com>
261
262         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
263
264 2014-10-25  Doug Evans  <xdje42@gmail.com>
265
266         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
267         of local var child_die.
268
269 2014-10-24  Don Breazeal  <donb@codesourcery.com>
270
271         * infrun.c (follow_fork_inferior): Update fork message printing
272         to use target_terminal_ours_for_output instead of
273         target_terminal_ours, to use _() for all format strings, to print
274         "vfork" instead of "fork" for vforks, and to add a detach message.
275         (handle_vfork_child_exec_or_exit): Update message printing to use
276         target_terminal_ours_for_output instead of target_terminal_ours, to
277         use _() for all format strings, and to fix some formatting.
278
279 2014-10-24  Pedro Alves  <palves@redhat.com>
280
281         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
282         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
283         * config/vax/vax.mh: Delete.
284         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
285         obsolete configurations section.
286         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
287         * vax-nat.c: Delete file.
288
289 2014-10-24  Pedro Alves  <palves@redhat.com>
290
291         * NEWS (Removed targets): Add OS/arch column.
292
293 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
294
295         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
296         on the arg type of a constructor only if it is of reference type.
297
298 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
299
300         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
301         accessors and constants from nios2 opcodes update.
302         (nios2_get_next_pc): Likewise.
303
304 2014-10-19  Doug Evans  <xdje42@gmail.com>
305
306         * gdbthread.h (set_running): Fix comment.
307         (set_executing, finish_thread_state): Fix comment.
308
309 2014-10-18  Doug Evans  <xdje42@gmail.com>
310
311         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
312
313 2014-10-17  Doug Evans  <dje@google.com>
314
315         * NEWS: Mention new event gdb.clear_objfiles.
316         * python/py-event.h (emit_clear_objfiles_event): Clear
317         * python/py-events.h (events_object): New member clear_objfiles.
318         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
319         event.
320         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
321         emit clear_objfiles event.
322         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
323         function.
324         (emit_clear_objfiles_event): New function.
325         (clear_objfiles): New event.
326         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
327         Declare.
328         * python/python.c (_initialize_python): Call
329         gdbpy_initialize_clear_objfiles_event.
330
331 2014-10-17  Doug Evans  <dje@google.com>
332
333         * NEWS: Mention new gdb.Objfile.progspace attribute.
334         * python/py-objfile.c (objfpy_get_progspace): New function.
335         (objfile_getset): New entry for "progspace".
336
337 2014-10-17  Pedro Alves  <palves@redhat.com>
338
339         PR gdb/17471
340         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
341         returns a copy of the input.
342         (run_command_1, continue_command, step_1, jump_command)
343         (signal_command, until_command, advance_command, finish_command)
344         (attach_command): Adjust and install a cleanup to free the
345         stripped args.
346
347 2014-10-17  Pedro Alves  <palves@redhat.com>
348
349         PR gdb/17300
350         * infcmd.c (continue_1): If continuing all threads in the
351         foreground, make sure the inferior's terminal settings are put in
352         effect.
353
354 2014-10-17  Pedro Alves  <palves@redhat.com>
355
356         PR gdb/17472
357         * annotate.c (annotate_breakpoints_invalid): Use
358         target_terminal_our_for_output instead of target_terminal_ours.
359         Give back the terminal to the target.
360         (annotate_frames_invalid): Likewise.
361
362 2014-10-17  Pedro Alves  <palves@redhat.com>
363
364         * target.c (enum terminal_state): New enum.
365         (terminal_state): New global.
366         (target_terminal_init): New function.
367         (target_terminal_inferior): Skip if inferior already owns the
368         terminal.
369         (target_terminal_ours, target_terminal_ours_for_output): New
370         functions.
371         * target.h (target_terminal_init): Convert to function prototype.
372         (target_terminal_ours_for_output): Convert to function prototype
373         and tweak comment.
374         (target_terminal_ours): Convert to function prototype and tweak
375         comment.
376         * windows-nat.c (do_initial_windows_stuff): Call
377         target_terminal_init instead of child_terminal_init_with_pgrp.
378
379 2014-10-17  Pedro Alves  <palves@redhat.com>
380
381         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
382         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
383         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
384         solib-osf.c.
385         * NEWS: Mention that support for alpha*-*-osf* has been removed.
386         * ada-lang.h [__alpha__ && __osf__]
387         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
388         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
389         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
390         GDB_OSABI_OSF1.
391         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
392         files.
393         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
394         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
395         * configure: Regenerate.
396         * configure.ac: Remove references to osf.
397         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
398         section.  Remove all other references to osf.
399         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
400         Remove all other references to osf.
401         * dec-thread.c: Delete file.
402         * defs.h (GDB_OSABI_OSF1): Delete.
403         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
404         defined.
405         * osabi.c (gdb_osabi_names): Delete "OSF/1".
406         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
407         Delete code.
408         (unconditionally_kill_inferior)
409         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
410         * solib-osf.c: Delete file.
411
412 2014-10-17  Pedro Alves  <palves@redhat.com>
413
414         * remote.c (clear_threads_listing_context): Move higher up, out of
415         the HAVE_LIBEXPAT guard.
416
417 2014-10-16  Tristan Gingold  <gingold@adacore.com>
418
419         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
420         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
421         on amd64.
422
423 2014-10-15  Pedro Alves  <palves@redhat.com>
424
425         * dec-thread.c (dec_thread_count_gdb_threads)
426         (dec_thread_add_gdb_thread): Delete.
427         (dec_thread_update_thread_list): Delete.
428         (dec_thread_find_new_threads): Rename to ...
429         (dec_thread_update_thread_list): ... this.  Delete GDB-size
430         threads that are no longer found in dec_thread_list.
431         (resync_thread_list): Delete.
432         (dec_thread_wait): Call dec_thread_update_thread_list instead of
433         resync_thread_list.
434
435 2014-10-15  Pedro Alves  <palves@redhat.com>
436
437         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
438         * remote.c (remote_update_thread_list): Skip calling prune_threads
439         if any thread listing method is supported, and instead walk over
440         the set of remote threads listed, deleting those that are not
441         found in GDB's thread list.
442
443 2014-10-15  Pedro Alves  <palves@redhat.com>
444
445         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
446         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
447         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
448         (bsd_uthread_target): Adjust.
449         * corelow.c (core_open): Adjust.
450         * dec-thread.c (dec_thread_find_new_threads): Update comment.
451         (dec_thread_update_thread_list): New function.
452         (init_dec_thread_ops): Adjust.
453         * gdbthread.h (prune_threads): New declaration.
454         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
455         (thread_db_update_thread_list): ... this.  Call prune_threads.
456         (init_thread_db_ops): Adjust.
457         * nto-procfs.c (procfs_find_new_threads): Rename to ...
458         (procfs_update_thread_list): ... this.  Call prune_threads.
459         (procfs_attach, procfs_create_inferior, init_procfs_targets):
460         Adjust.
461         * obsd-nat.c (obsd_find_new_threads): Rename to ...
462         (obsd_update_thread_list): ... this.  Call prune_threads.
463         (obsd_add_target): Adjust.
464         * procfs.c (procfs_target): Adjust.
465         (procfs_notice_thread): Update comment.
466         (procfs_find_new_threads): Rename to ...
467         (procfs_update_thread_list): ... this.  Call prune_threads.
468         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
469         comment.
470         (ravenscar_wait): Adjust.
471         (ravenscar_find_new_threads): Rename to ...
472         (ravenscar_update_thread_list): ... this.  Call prune_threads.
473         (init_ravenscar_thread_ops): Adjust.
474         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
475         (record_btrace_update_thread_list): ... this.  Adjust comment.
476         (init_record_btrace_ops): Adjust.
477         * remote.c (remote_threads_info): Rename to ...
478         (remote_update_thread_list): ... this.  Call prune_threads.
479         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
480         Adjust.
481         * sol-thread.c (check_for_thread_db): Adjust.
482         (sol_find_new_threads_callback): Rename to ...
483         (sol_update_thread_list_callback): ... this.
484         (sol_find_new_threads): Rename to ...
485         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
486         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
487         * target-delegates.c: Regenerate.
488         * target.c (target_find_new_threads): Rename to ...
489         (target_update_thread_list): ... this.
490         * target.h (struct target_ops): Rename to_find_new_threads field
491         to to_update_thread_list.
492         (target_find_new_threads): Rename to ...
493         (target_update_thread_list): ... this.
494         * thread.c (prune_threads): Make extern.
495         (update_thread_list): Adjust.
496
497 2014-10-15  Pedro Alves  <palves@redhat.com>
498
499         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
500         Add describing comment.  Return -1 if the qL packet is not
501         supported.
502         (struct thread_item, thread_item_t): Move higher up in
503         the file.  Add comments.
504         (struct threads_parsing_context): Move higher up in
505         the file, add comments, and remote to ...
506         (struct threads_listing_context): ... this.
507         (remote_newthread_step): Don't add the thread to GDB's thread
508         database here.  Instead push it to the thread_listing_context
509         list.
510         (remote_find_new_threads): Rename to ...
511         (remote_get_threads_with_ql): ... this.  Add target_ops and
512         targets_listing_context parameters.  Pass down context.
513         (start_thread): Adjust.
514         (clear_threads_parsing_context): Rename to ...
515         (clear_threads_listing_context): ... this.
516         (remote_get_threads_with_qxfer): New, with parts salvaged from old
517         remote_threads_info.
518         (remote_get_threads_with_qthreadinfo): Ditto.
519         (remote_threads_info): Reimplement.
520
521 2014-10-15  Pedro Alves  <palves@redhat.com>
522
523         * infrun.c (resume): Don't force displaced-stepping for all
524         single-steps on software single-stepping archs.
525
526 2014-10-15  Pedro Alves  <palves@redhat.com>
527
528         * breakpoint.c (single_step_breakpoints): Delete global.
529         (insert_single_step_breakpoint): Adjust to store the breakpoint
530         pointer in the current thread.
531         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
532         (cancel_single_step_breakpoints): Delete functions.
533         (breakpoint_has_location_inserted_here): Make extern.
534         (single_step_breakpoint_inserted_here_p): Adjust to walk the
535         breakpoint list.
536         * breakpoint.h (breakpoint_has_location_inserted_here): New
537         declaration.
538         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
539         (cancel_single_step_breakpoints): Remove declarations.
540         * gdbthread.h (struct thread_control_state)
541         <single_step_breakpoints>: New field.
542         (delete_single_step_breakpoints)
543         (thread_has_single_step_breakpoints_set)
544         (thread_has_single_step_breakpoint_here): New declarations.
545         * infrun.c (follow_exec): Also clear the single-step breakpoints.
546         (singlestep_breakpoints_inserted_p, singlestep_ptid)
547         (singlestep_pc): Delete globals.
548         (infrun_thread_ptid_changed): Remove references to removed
549         globals.
550         (resume_cleanups): Delete the current thread's single-step
551         breakpoints.
552         (maybe_software_singlestep): Remove references to removed globals.
553         (resume): Adjust to use thread_has_single_step_breakpoints_set and
554         delete_single_step_breakpoints.
555         (init_wait_for_inferior): Remove references to removed globals.
556         (delete_thread_infrun_breakpoints): Delete the thread's
557         single-step breakpoints too.
558         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
559         single-step breakpoints here.
560         (delete_stopped_threads_single_step_breakpoints): New function.
561         (adjust_pc_after_break): Adjust to use
562         thread_has_single_step_breakpoints_set.
563         (handle_inferior_event): Remove references to removed globals.
564         Use delete_stopped_threads_single_step_breakpoints.
565         (handle_signal_stop): Adjust to per-thread single-step
566         breakpoints.  Swap test order to do cheaper tests first.
567         (switch_back_to_stepped_thread): Extend debug output.  Remove
568         references to removed globals.
569         * record-full.c (record_full_wait_1): Adjust to per-thread
570         single-step breakpoints.
571         * thread.c (delete_single_step_breakpoints)
572         (thread_has_single_step_breakpoints_set)
573         (thread_has_single_step_breakpoint_here): New functions.
574         (clear_thread_inferior_resources): Also delete the thread's
575         single-step breakpoints.
576
577 2014-10-15  Pedro Alves  <palves@redhat.com>
578
579         * thread.c (delete_thread_breakpoint): New function.
580         (delete_step_resume_breakpoint)
581         (delete_exception_resume_breakpoint): Use it.
582         (delete_at_next_stop): New function.
583         (clear_thread_inferior_resources): Use delete_at_next_stop.
584
585 2014-10-15  Pedro Alves  <palves@redhat.com>
586
587         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
588         (breakpoint_inserted_here_p): ... here.  Remove special case for
589         software single-step breakpoints.
590         (find_non_raw_software_breakpoint_inserted_here): Inline ...
591         (software_breakpoint_inserted_here_p): ... here.  Remove special
592         case for software single-step breakpoints.
593         (bp_target_info_copy_insertion_state)
594         (deprecated_insert_raw_breakpoint)
595         (deprecated_remove_raw_breakpoint): Delete functions.
596         * breakpoint.h (deprecated_insert_raw_breakpoint)
597         (deprecated_remove_raw_breakpoint): Remove declarations.
598
599 2014-10-15  Pedro Alves  <palves@redhat.com>
600
601         PR breakpoints/9649
602         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
603         Delete array globals.
604         (single_step_breakpoints): New global.
605         (breakpoint_xfer_memory): Remove special handling for single-step
606         breakpoints.
607         (update_breakpoints_after_exec): Delete bp_single_step
608         breakpoints.
609         (detach_breakpoints): Remove special handling for single-step
610         breakpoints.
611         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
612         (bpstat_stop_status): Add comment.
613         (bpstat_what, bptype_string, print_one_breakpoint_location)
614         (adjust_breakpoint_address, init_bp_location): Handle
615         bp_single_step.
616         (new_single_step_breakpoint): New function.
617         (set_momentary_breakpoint, bkpt_remove_location): Remove special
618         handling for single-step breakpoints.
619         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
620         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
621         Rewrite.
622         (detach_single_step_breakpoints, find_single_step_breakpoint):
623         Delete functions.
624         (breakpoint_has_location_inserted_here): New function.
625         (single_step_breakpoint_inserted_here_p): Rewrite.
626         * breakpoint.h: Remove FIXME.
627         (enum bptype) <bp_single_step>: New enum value.
628         (insert_single_step_breakpoint): Update comment.
629         * infrun.c (resume_cleanups)
630         (delete_step_thread_step_resume_breakpoint): Remove single-step
631         breakpoints.
632         (fetch_inferior_event): Install a cleanup that removes infrun
633         breakpoints.
634         (switch_back_to_stepped_thread) <expect thread advanced also>:
635         Clear step-over info.
636
637 2014-10-15  Pedro Alves  <palves@redhat.com>
638
639         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
640         (delete_thread_infrun_breakpoints): New function, with parts
641         salvaged from delete_step_resume_breakpoint_callback.
642         (delete_step_thread_step_resume_breakpoint): Delete.
643         (for_each_just_stopped_thread_callback_func): New typedef.
644         (for_each_just_stopped_thread): New function.
645         (delete_just_stopped_threads_infrun_breakpoints): New function.
646         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
647         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
648         ... this.  Adjust.
649         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
650
651 2014-10-15  Pedro Alves  <palves@redhat.com>
652
653         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
654         trying to step past a non-steppable watchpoint.
655         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
656         field.
657         * infrun.c (struct step_over_info): Add new field
658         'nonsteppable_watchpoint_p' and adjust comments.
659         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
660         Adjust.
661         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
662         (stepping_past_nonsteppable_watchpoint): New function.
663         (step_over_info_valid_p): Also return true if stepping past a
664         nonsteppable watchpoint.
665         (proceed): Adjust call to set_step_over_info.  Remove reference to
666         init_infwait_state.
667         (init_wait_for_inferior): Remove reference to init_infwait_state.
668         (waiton_ptid): Delete global.
669         (struct execution_control_state)
670         <stepped_after_stopped_by_watchpoint>: Delete field.
671         (wait_for_inferior, fetch_inferior_event): Always pass
672         minus_one_ptid to target_wait.
673         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
674         field.
675         (init_infwait_state): Delete function.
676         (handle_inferior_event): Remove infwait_state handling.
677         (handle_signal_stop) <watchpoints handling>: Adjust after
678         stepped_after_stopped_by_watchpoint removal.  Don't remove
679         breakpoints here nor set infwait_state.  Set the thread's
680         stepping_over_watchpoint flag, and call keep_going instead.
681         (keep_going): Handle stepping_over_watchpoint.  Adjust
682         set_step_over_info calls.
683         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
684         function.
685
686 2014-10-15  Pedro Alves  <palves@redhat.com>
687
688         * infrun.c (step_over_info_valid_p): New function.
689         (resume): Use step_over_info_valid_p instead of checking the
690         threads's trap_expected flag.
691
692 2014-10-15  Doug Evans  <dje@google.com>
693             Walfred Tedeschi  <walfred.tedeschi@intel.com>
694
695         PR python/17364
696         * python/lib/gdb/__init__.py (packages): Add "printer".
697         * python/lib/gdb/command/bound_registers.py: Moved to ...
698         * python/lib/gdb/printer/bound_registers.py: ... here.
699         Add printer to global set of builtin printers.  Rename printer from
700         "bound" to "mpx_bound128".
701         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
702         registered as global "builtin" printer.
703         (add_builtin_pretty_printer): New function.
704         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
705         gdb/printer/__init__.py.
706
707 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
708
709         * Makefile.in (SFILES): Remove d-support.c.
710         (COMMON_OBS): Remove d-support.o.
711         * d-lang.h (d_parse_symbol): Remove declaration.
712         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
713         * d-support.c: Remove file.
714
715 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
716
717         * gdb/infrun.c (process_event_stop_test): Apply
718         gdbarch_addr_bits_remove to longjmp resume address.
719
720 2014-10-15  Pedro Alves  <palves@redhat.com>
721
722         * regformats/microblaze.dat: Delete file.
723
724 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
725
726         * features/Makefile (microblaze-expedite): Replace pc with rpc.
727         * regformats/microblaze-with-stack-protect.dat: Regenerate.
728
729 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
730
731         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
732         as non-trivial.
733
734 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
735
736         PR c++/13403
737         PR c++/15154
738         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
739         with qualified args.
740
741 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
742
743         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
744         of the case where the second operand is a pointer.
745         <BINOP_SUB>: Likewise.
746
747 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
748
749         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
750         only if it is not NULL.
751         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
752         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
753         (struct probe_ops) <clear_semaphore>: Likewise.
754         * tracepoint.c (start_tracing): Call set_semaphore only if it is
755         not NULL.
756         (stop_tracing): Likewise, for clear_semaphore.
757
758 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
759
760         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
761         using language_c, instead of current_language.
762
763 2014-10-13  Doug Evans  <dje@google.com>
764
765         * python/py-objfile.c (objfpy_initialize): New function.
766         (objfpy_new, objfile_to_objfile_object): Call it.
767         * python/py-progspace.c (pspy_initialize): New function.
768         (pspy_new, pspace_to_pspace_object): Call it.
769
770 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
771             Jan Kratochvil  <jan.kratochvil@redhat.com>
772
773         Fix "save breakpoints" for "catch" command.
774         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
775         newline.
776
777 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
778
779         Fix "save breakpoints" for "disable $bpnum" command.
780         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
781
782 2014-10-10  Pedro Alves  <palves@redhat.com>
783
784         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
785         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
786         (HFILES_NO_SRCDIR): Remove solib-irix.h.
787         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
788         and been removed.
789         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
790         * configure.ac: Remove references to IRIX.
791         * configure.host: Add *-*-irix* to the obsolete hosts section.
792         Remove all other references to irix.
793         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
794         Delete files.
795
796 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
797
798         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
799         isn't valid, release the tdesc arch data and return NULL.
800
801 2014-10-10  Pedro Alves  <palves@redhat.com>
802
803         * linux-tdep.c: Include observer.h.
804         (linux_inferior_data): New global.
805         (struct linux_info): New structure.
806         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
807         (get_linux_inferior_data): New functions.
808         (linux_vsyscall_range): Rename to ...
809         (linux_vsyscall_range_raw): ... this.
810         (linux_vsyscall_range): New function; handles caching.
811         (_initialize_linux_tdep): Register linux_inferior_data.  Install
812         inferior_exit and inferior_appeared observers.
813
814 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
815             Pedro Alves  <palves@redhat.com>
816
817         PR symtab/14466
818         * solib-svr4.c (svr4_read_so_list): Rename to ...
819         (svr4_current_sos_1): ... this and change the function comment.
820         (svr4_current_sos): New function.
821
822 2014-10-10  Pedro Alves  <palves@redhat.com>
823
824         * arch-utils.c (default_vsyscall_range): New function.
825         * arch-utils.h (default_vsyscall_range): New declaration.
826         * gdbarch.sh (vsyscall_range): New hook.
827         * gdbarch.h, gdbarch.c: Regenerate.
828         * linux-tdep.c (linux_vsyscall_range): New function.
829         (linux_init_abi): Install linux_vsyscall_range as
830         vsyscall_range gdbarch hook.
831         * memrange.c (address_in_mem_range): New function.
832         * memrange.h (address_in_mem_range): New declaration.
833         * symfile-mem.c (find_vdso_size): Delete function.
834         (add_vsyscall_page): Use gdbarch_vsyscall_range.
835
836 2014-10-10  Pedro Alves  <palves@redhat.com>
837
838         * infrun.c (normal_stop): Fix typo in comment.
839
840 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
841
842         PR tdep/9390
843         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
844         typo when using logical AND to determine instruction type.
845
846 2014-10-09  Yao Qi  <yao@codesourcery.com>
847
848         * infrun.c (handle_signal_stop): Remove local variable
849         'printed'.
850
851 2014-10-08  Stan Shebs  <stan@codesourcery.com>
852
853         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
854
855 2014-10-08  Gary Benson  <gbenson@redhat.com>
856
857         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
858
859 2014-10-08  Gary Benson  <gbenson@redhat.com>
860
861         * common/common-defs.h: Include common-exceptions.h.
862         * exceptions.h: Do not include common-exceptions.h.
863
864 2014-10-08  Gary Benson  <gbenson@redhat.com>
865
866         * common/common-defs.h: Include cleanups.h.
867         * common/common-exceptions.c: Do not include cleanups.h.
868         * utils.h: Likewise.
869
870 2014-10-08  Gary Benson  <gbenson@redhat.com>
871
872         * ada-lang.c: Do not include exceptions.h.
873         * ada-valprint.c: Likewise.
874         * amd64-tdep.c: Likewise.
875         * auto-load.c: Likewise.
876         * block.c: Likewise.
877         * break-catch-throw.c: Likewise.
878         * breakpoint.c: Likewise.
879         * btrace.c: Likewise.
880         * c-lang.c: Likewise.
881         * cli/cli-cmds.c: Likewise.
882         * cli/cli-interp.c: Likewise.
883         * cli/cli-script.c: Likewise.
884         * completer.c: Likewise.
885         * corefile.c: Likewise.
886         * corelow.c: Likewise.
887         * cp-abi.c: Likewise.
888         * cp-support.c: Likewise.
889         * cp-valprint.c: Likewise.
890         * darwin-nat.c: Likewise.
891         * dwarf2-frame-tailcall.c: Likewise.
892         * dwarf2-frame.c: Likewise.
893         * dwarf2loc.c: Likewise.
894         * dwarf2read.c: Likewise.
895         * eval.c: Likewise.
896         * event-loop.c: Likewise.
897         * event-top.c: Likewise.
898         * f-valprint.c: Likewise.
899         * frame-unwind.c: Likewise.
900         * frame.c: Likewise.
901         * gdbtypes.c: Likewise.
902         * gnu-v2-abi.c: Likewise.
903         * gnu-v3-abi.c: Likewise.
904         * guile/scm-auto-load.c: Likewise.
905         * guile/scm-breakpoint.c: Likewise.
906         * guile/scm-cmd.c: Likewise.
907         * guile/scm-frame.c: Likewise.
908         * guile/scm-lazy-string.c: Likewise.
909         * guile/scm-param.c: Likewise.
910         * guile/scm-symbol.c: Likewise.
911         * guile/scm-type.c: Likewise.
912         * hppa-hpux-tdep.c: Likewise.
913         * i386-tdep.c: Likewise.
914         * inf-loop.c: Likewise.
915         * infcall.c: Likewise.
916         * infcmd.c: Likewise.
917         * infrun.c: Likewise.
918         * interps.c: Likewise.
919         * interps.h: Likewise.
920         * jit.c: Likewise.
921         * linespec.c: Likewise.
922         * linux-nat.c: Likewise.
923         * linux-thread-db.c: Likewise.
924         * m32r-rom.c: Likewise.
925         * main.c: Likewise.
926         * memory-map.c: Likewise.
927         * mi/mi-cmd-break.c: Likewise.
928         * mi/mi-cmd-stack.c: Likewise.
929         * mi/mi-interp.c: Likewise.
930         * mi/mi-main.c: Likewise.
931         * monitor.c: Likewise.
932         * nto-procfs.c: Likewise.
933         * objc-lang.c: Likewise.
934         * p-valprint.c: Likewise.
935         * parse.c: Likewise.
936         * ppc-linux-tdep.c: Likewise.
937         * printcmd.c: Likewise.
938         * probe.c: Likewise.
939         * python/py-auto-load.c: Likewise.
940         * python/py-breakpoint.c: Likewise.
941         * python/py-cmd.c: Likewise.
942         * python/py-finishbreakpoint.c: Likewise.
943         * python/py-frame.c: Likewise.
944         * python/py-framefilter.c: Likewise.
945         * python/py-function.c: Likewise.
946         * python/py-gdb-readline.c: Likewise.
947         * python/py-inferior.c: Likewise.
948         * python/py-infthread.c: Likewise.
949         * python/py-lazy-string.c: Likewise.
950         * python/py-linetable.c: Likewise.
951         * python/py-param.c: Likewise.
952         * python/py-prettyprint.c: Likewise.
953         * python/py-symbol.c: Likewise.
954         * python/py-type.c: Likewise.
955         * python/py-value.c: Likewise.
956         * python/python-internal.h: Likewise.
957         * python/python.c: Likewise.
958         * record-btrace.c: Likewise.
959         * record-full.c: Likewise.
960         * regcache.c: Likewise.
961         * remote-fileio.c: Likewise.
962         * remote-mips.c: Likewise.
963         * remote.c: Likewise.
964         * rs6000-aix-tdep.c: Likewise.
965         * rs6000-nat.c: Likewise.
966         * skip.c: Likewise.
967         * solib-darwin.c: Likewise.
968         * solib-dsbt.c: Likewise.
969         * solib-frv.c: Likewise.
970         * solib-ia64-hpux.c: Likewise.
971         * solib-spu.c: Likewise.
972         * solib-svr4.c: Likewise.
973         * solib.c: Likewise.
974         * spu-tdep.c: Likewise.
975         * stack.c: Likewise.
976         * stap-probe.c: Likewise.
977         * symfile-mem.c: Likewise.
978         * symmisc.c: Likewise.
979         * target.c: Likewise.
980         * thread.c: Likewise.
981         * top.c: Likewise.
982         * tracepoint.c: Likewise.
983         * tui/tui-interp.c: Likewise.
984         * typeprint.c: Likewise.
985         * utils.c: Likewise.
986         * valarith.c: Likewise.
987         * valops.c: Likewise.
988         * valprint.c: Likewise.
989         * value.c: Likewise.
990         * varobj.c: Likewise.
991         * windows-nat.c: Likewise.
992         * xml-support.c: Likewise.
993
994 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
995
996         * mips-tdep.c (add_offset_16): Rewrite to implement what the
997         name implies.
998         (extended_mips16_next_pc): Update accordingly.
999
1000 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1001
1002         * mips-tdep.c (mips16_instruction_is_compact_branch): New
1003         function.
1004         (micromips_instruction_is_compact_branch): Likewise.
1005         (mips16_scan_prologue): Terminate scanning upon seeing a branch
1006         or a compact jump, reaching a jump delay slot, or seeing a
1007         second non-prologue instruction.
1008         (micromips_scan_prologue): Also terminate scanning upon seeing a
1009         compact branch or jump, or reaching a branch or jump delay slot.
1010         (mips32_scan_prologue): Terminate scanning upon reaching a branch
1011         or jump delay slot, or seeing a second non-prologue instruction.
1012         (mips32_instruction_has_delay_slot): Retain instruction
1013         examination code only, update arguments accordingly and move
1014         instruction fetch pieces to...
1015         (mips32_insn_at_pc_has_delay_slot): ... this new function.
1016         (micromips_instruction_has_delay_slot): Likewise and to...
1017         (micromips_insn_at_pc_has_delay_slot): ... this new function.
1018         (mips16_instruction_has_delay_slot): Likewise and to...
1019         (mips16_insn_at_pc_has_delay_slot): ... this new function.
1020         (mips_single_step_through_delay): Update accordingly.
1021         (mips_adjust_breakpoint_address): Likewise.
1022
1023 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1024
1025         * mips-tdep.c (micromips_instruction_has_delay_slot): When
1026         !mustbe32 also return 1 for 32-bit instructions.
1027         (mips16_instruction_has_delay_slot): Likewise.  Add an
1028         explanatory comment.
1029
1030 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1031
1032         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1033         symbols special.
1034
1035 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1036
1037         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1038         update comments.
1039         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1040         for the breakpoint's address.  Don't preinitialize `placed_size'.
1041         (insert_bp_location): Set `reqstd_address' rather than
1042         `placed_address'.
1043         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1044         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1045         address.
1046         (bkpt_remove_location): Likewise.
1047         (deprecated_insert_raw_breakpoint): Likewise.
1048         (deprecated_remove_raw_breakpoint): Likewise.
1049         (find_single_step_breakpoint): Likewise.
1050         * mem-break.c (default_memory_insert_breakpoint): Use
1051         `reqstd_address' for the breakpoint's address.  Don't set
1052         `placed_address' or `placed_size' if breakpoint contents couldn't
1053         have been determined.
1054         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1055         the breakpoint's address.
1056         (remote_insert_hw_breakpoint): Likewise.  Don't set
1057         `placed_address' or `placed_size' if breakpoint couldn't have been
1058         set.
1059         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1060         `reqstd_address' for the breakpoint's address.
1061         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1062         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1063         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1064         * microblaze-linux-tdep.c
1065         (microblaze_linux_memory_remove_breakpoint): Likewise.
1066         * monitor.c (monitor_insert_breakpoint): Likewise.
1067         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1068         (procfs_insert_hw_breakpoint): Likewise.
1069         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1070         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1071         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1072         * remote-mips.c (mips_insert_breakpoint): Likewise.
1073         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1074
1075 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
1076
1077         * valops.c (value_assign): Check for bit field assignments
1078         before calling architecture-specific register value
1079         conversion functions.
1080
1081 2014-10-03  Pierre Muller  <muller@sourceware.org>
1082
1083         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1084
1085 2014-10-02  Pedro Alves  <palves@redhat.com>
1086
1087         * breakpoint.c (breakpoints_should_be_inserted_now): Use
1088         threads_are_executing.
1089         * breakpoint.h (breakpoints_should_be_inserted_now): Add
1090         describing comment.
1091         * gdbthread.h (threads_are_executing): Declare.
1092         (handle_signal_stop) <random signals>: Don't print about the
1093         signal here if stopping.
1094         (end_stepping_range): Don't notify observers here.
1095         (normal_stop): Update the thread list.  If stopped by a random
1096         signal or a stepping range ended, notify observers.
1097         * thread.c (threads_executing): New global.
1098         (init_thread_list): Clear 'threads_executing'.
1099         (set_executing): Set or clear 'threads_executing'.
1100         (threads_are_executing): New function.
1101         (update_threads_executing): New function.
1102         (update_thread_list): Use it.
1103
1104 2014-10-02  Pedro Alves  <palves@redhat.com>
1105
1106         PR breakpoints/17431
1107         * breakpoint.c (update_breakpoints_after_exec): Don't create
1108         overlay, longjmp, std terminate nor exception breakpoints here.
1109
1110 2014-10-02  Pedro Alves  <palves@redhat.com>
1111
1112         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1113         Adjust comments.
1114         * inferior.c (find_inferior_for_program_space): Give preference to
1115         the current inferior.
1116         * inferior.h (find_inferior_for_program_space): Update comment.
1117         * progspace.c (switch_to_program_space_and_thread): Prefer the
1118         current inferior if it's bound to the program space requested.  If
1119         the inferior found doesn't have a PID yet, don't bother looking up
1120         a thread.
1121         * progspace.h (switch_to_program_space_and_thread): Adjust
1122         comment.
1123         * thread.c (any_thread_of_process, any_live_thread_of_process):
1124         Give preference to the current thread.
1125
1126 2014-10-01  Pedro Alves  <palves@redhat.com>
1127
1128         * breakpoint.c (insert_bp_location): Error out if inserting a
1129         software breakpoint at a read-only address.
1130         * target.c (memory_xfer_check_region): New function, factored out
1131         from ...
1132         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
1133         ULONGEST.
1134         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1135         against the memory region attributes.
1136
1137 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
1138
1139         * NEWS: Announce new exit-code field in -list-thread-groups
1140         output.
1141         * inferior.c (exit_inferior_1): Don't clear exit code.
1142         (inferior_appeared): Clear exit code.
1143         * mi/mi-main.c (print_one_inferior): Add printing of the exit
1144         code.
1145
1146 2014-10-01  Pedro Alves  <palves@redhat.com>
1147
1148         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1149         GENERATED" along with emacs/vi read-only markers.
1150         * regformats/aarch64.dat: Regenerate.
1151         * regformats/arm-with-iwmmxt.dat: Regenerate.
1152         * regformats/arm-with-neon.dat: Regenerate.
1153         * regformats/arm-with-vfpv2.dat: Regenerate.
1154         * regformats/arm-with-vfpv3.dat: Regenerate.
1155         * regformats/i386/amd64-avx-linux.dat: Regenerate.
1156         * regformats/i386/amd64-avx.dat: Regenerate.
1157         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1158         * regformats/i386/amd64-avx512.dat: Regenerate.
1159         * regformats/i386/amd64-linux.dat: Regenerate.
1160         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1161         * regformats/i386/amd64-mpx.dat: Regenerate.
1162         * regformats/i386/amd64.dat: Regenerate.
1163         * regformats/i386/i386-avx-linux.dat: Regenerate.
1164         * regformats/i386/i386-avx.dat: Regenerate.
1165         * regformats/i386/i386-avx512-linux.dat: Regenerate.
1166         * regformats/i386/i386-avx512.dat: Regenerate.
1167         * regformats/i386/i386-linux.dat: Regenerate.
1168         * regformats/i386/i386-mmx-linux.dat: Regenerate.
1169         * regformats/i386/i386-mmx.dat: Regenerate.
1170         * regformats/i386/i386-mpx-linux.dat: Regenerate.
1171         * regformats/i386/i386-mpx.dat: Regenerate.
1172         * regformats/i386/i386.dat: Regenerate.
1173         * regformats/i386/x32-avx-linux.dat: Regenerate.
1174         * regformats/i386/x32-avx.dat: Regenerate.
1175         * regformats/i386/x32-avx512-linux.dat: Regenerate.
1176         * regformats/i386/x32-avx512.dat: Regenerate.
1177         * regformats/i386/x32-linux.dat: Regenerate.
1178         * regformats/i386/x32.dat: Regenerate.
1179         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1180         * regformats/mips-dsp-linux.dat: Regenerate.
1181         * regformats/mips-linux.dat: Regenerate.
1182         * regformats/mips64-dsp-linux.dat: Regenerate.
1183         * regformats/mips64-linux.dat: Regenerate.
1184         * regformats/nios2-linux.dat: Regenerate.
1185         * regformats/rs6000/powerpc-32.dat: Regenerate.
1186         * regformats/rs6000/powerpc-32l.dat: Regenerate.
1187         * regformats/rs6000/powerpc-64l.dat: Regenerate.
1188         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1189         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1190         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1191         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1192         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1193         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1194         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1195         * regformats/s390-linux32.dat: Regenerate.
1196         * regformats/s390-linux32v1.dat: Regenerate.
1197         * regformats/s390-linux32v2.dat: Regenerate.
1198         * regformats/s390-linux64.dat: Regenerate.
1199         * regformats/s390-linux64v1.dat: Regenerate.
1200         * regformats/s390-linux64v2.dat: Regenerate.
1201         * regformats/s390-te-linux64.dat: Regenerate.
1202         * regformats/s390x-linux64.dat: Regenerate.
1203         * regformats/s390x-linux64v1.dat: Regenerate.
1204         * regformats/s390x-linux64v2.dat: Regenerate.
1205         * regformats/s390x-te-linux64.dat: Regenerate.
1206         * regformats/tic6x-c62x-linux.dat: Regenerate.
1207         * regformats/tic6x-c62x.dat: Regenerate.
1208         * regformats/tic6x-c64x-linux.dat: Regenerate.
1209         * regformats/tic6x-c64x.dat: Regenerate.
1210         * regformats/tic6x-c64xp-linux.dat: Regenerate.
1211         * regformats/tic6x-c64xp.dat: Regenerate.
1212
1213 2014-10-01  Pedro Alves  <palves@redhat.com>
1214
1215         * features/Makefile: Update comments.
1216         (XMLTOC): List all xml files we build C files from.
1217         (clean-cfiles): New rule.
1218
1219 2014-10-01  Pedro Alves  <palves@redhat.com>
1220
1221         * features/i386/amd64-avx512-linux.c: Regenerate.
1222         * features/i386/amd64-avx512.c: Regenerate.
1223         * features/i386/x32-avx512-linux.c: Regenerate.
1224         * features/i386/x32-avx512.c: Regenerate.
1225
1226 2014-10-01  Pedro Alves  <palves@redhat.com>
1227
1228         * features/Makefile (WHICH): Remove arm-with-m,
1229         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1230
1231 2014-10-01  Pedro Alves  <palves@redhat.com>
1232
1233         * features/Makefile (clean): New rule.
1234
1235 2014-10-01  Pedro Alves  <palves@redhat.com>
1236
1237         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1238         (zmm14h): Add missing end quotes.
1239
1240 2014-10-01  Pedro Alves  <palves@redhat.com>
1241
1242         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1243         * features/aarch64.c: Regenerate.
1244
1245 2014-09-30  Don Breazeal  <donb@codesourcery.com>
1246
1247         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1248         code so as to work with follow_fork_inferior.
1249         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1250         (inf_ttrace_create_inferior): Remove reference to
1251         inf_ttrace_vfork_ppid.
1252         (inf_ttrace_attach): Ditto.
1253         (inf_ttrace_detach): Ditto.
1254         (inf_ttrace_kill): Use current_inferior instead of
1255         inf_ttrace_vfork_ppid.
1256         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1257         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1258         inferior away from the parent.
1259         * infrun.c (follow_fork): Call follow_fork_inferior instead of
1260         target_follow_fork.
1261         (follow_fork_inferior): New function.
1262         (follow_inferior_reset_breakpoints): Make function static.
1263         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1264         * linux-nat.c (linux_child_follow_fork): Move target-independent
1265         code to infrun.c:follow_fork_inferior.
1266
1267 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1268
1269         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1270         * gdbarch.c: Regenerate.
1271         * gdbarch.h: Likewise.
1272         * corelow.c (sniff_core_bfd): Drop presence check for deleted
1273         gdbarch method 'regset_from_core_section'.
1274         (get_core_register_section): Remove handling for the case that
1275         regset == NULL and regset_from_core_section is defined.
1276         (get_core_registers): Drop check for deleted method.
1277         * procfs.c (procfs_do_thread_registers): Adjust comment.
1278
1279 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1280
1281         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1282         (linux_nat_make_corefile_notes): Remove.
1283         (linux_target_install_ops): Do not set target method
1284         'make_corefile_notes'.
1285         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1286         Remove field.
1287         (linux_corefile_thread_callback): Instead of args->collect, call
1288         linux_collect_thread_registers.
1289         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
1290         NULL unless there is a regset iterator.
1291         (linux_make_corefile_notes_1): Remove.
1292         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1293         by linux_make_corefile_notes.
1294         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1295
1296 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1297
1298         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1299         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1300         Remove.
1301         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1302
1303 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1304
1305         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1306         (xtensa_iterate_over_regset_sections): New.
1307         (xtensa_gdbarch_init): Adjust gdbarch initialization.
1308
1309 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1310
1311         * vax-tdep.c (vax_regset_from_core_section): Remove.
1312         (vax_iterate_over_regset_sections): New.
1313         (vax_gdbarch_init): Adjust gdbarch initialization.
1314
1315 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1316
1317         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1318         (tilegx_regset_from_core_section): Remove.
1319         (tilegx_iterate_over_regset_sections): New.
1320         (tilegx_linux_init_abi): Adjust gdbarch initialization.
1321
1322 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1323
1324         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1325         (sparc_iterate_over_regset_sections): New.
1326         (sparc32_gdbarch_init): Adjust gdbarch initialization.
1327         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1328         targets.
1329         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1330         (sparc64fbsd_init_abi): Call fbsd_init_abi.
1331         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1332         target method 'make_corefile_notes'.
1333
1334 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1335
1336         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1337         'sizeof_gregset' and 'sizeof_fpregset'.
1338         * sh-tdep.c (sh_regset_from_core_section): Remove.
1339         (sh_iterate_over_regset_sections): New.
1340         (sh_gdbarch_init): Adjust gdbarch initialization.
1341         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1342         sizeof_fpregset.
1343         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1344         'sizeof_gregset'.
1345
1346 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1347
1348         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1349         (score7_linux_iterate_over_regset_sections): New.
1350         (score_gdbarch_init): Adjust gdbarch initialization.
1351
1352 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1353
1354         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1355         FreeBSD targets.
1356         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1357         method 'make_corefile_notes'.
1358         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1359         (ppcfbsd_regset_from_core_section): Remove.
1360         (ppcfbsd_iterate_over_regset_sections): New.
1361         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
1362         initialization.
1363         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1364         (ppcnbsd_iterate_over_regset_sections): New.
1365         (ppcnbsd_init_abi): Adjust.
1366         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1367         (ppcobsd_iterate_over_regset_sections): New.
1368         (ppcobsd_init_abi): Adjust.
1369         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1370         (rs6000_aix_iterate_over_regset_sections): New.
1371         (rs6000_aix_init_osabi): Adjust.
1372
1373 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1374
1375         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1376         (nios2_regset_from_core_section): Remove.
1377         (nios2_iterate_over_regset_sections): New.
1378         (nios2_linux_init_abi): Adjust gdbarch initialization.
1379
1380 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1381
1382         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1383         (am33_iterate_over_regset_sections): New.
1384         (am33_linux_init_osabi): Adjust gdbarch initialization.
1385
1386 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1387
1388         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1389         (mips_linux_iterate_over_regset_sections): New.
1390         (mips_linux_init_abi): Adjust gdbarch initialization.
1391         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1392         (mips64obsd_iterate_over_regset_sections): New.
1393         (mips64obsd_init_abi): Adjust.
1394         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1395         (mipsnbsd_iterate_over_regset_sections): New.
1396         (mipsnbsd_init_abi): Adjust.
1397
1398 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1399
1400         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1401         (m88k_iterate_over_regset_sections): New.
1402         (m88k_gdbarch_init): Adjust gdbarch initialization.
1403
1404 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1405
1406         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1407         (ia64_linux_iterate_over_regset_sections): New.
1408         (ia64_linux_init_abi): Adjust gdbarch initialization.
1409
1410 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1411
1412         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1413         (m68kbsd_iterate_over_regset_sections): New.
1414         (m68kbsd_init_abi): Adjust gdbarch initialization.
1415         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1416         (m68k_linux_iterate_over_regset_sections): New.
1417         (m68k_linux_init_abi): Adjust gdbarch initialization.
1418
1419 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1420
1421         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1422         (m32r_linux_regset_from_core_section): Remove.
1423         (m32r_linux_iterate_over_regset_sections): New.
1424         (m32r_linux_init_abi): Adjust gdbarch initialization.
1425
1426 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1427
1428         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1429         (amd64obsd_iterate_over_regset_sections): New.
1430         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1431         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1432         Remove.
1433         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
1434         regset_from_core_section initialization.
1435         * i386-tdep.c (i386_regset_from_core_section): Remove.
1436         (i386_iterate_over_regset_sections): New.
1437         (i386_gdbarch_init): Adjust gdbarch initialization.
1438         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1439         (i386_iterate_over_regset_sections): New prototype.
1440         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1441         Remove.
1442         (i386obsd_aout_iterate_over_regset_sections): New.
1443         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1444         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1445         targets.
1446         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1447         (amd64fbsd_init_abi): Call fbsd_init_abi.
1448         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1449         (i386fbsd4_init_abi): Call fbsd_init_abi.
1450         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1451         target method 'make_corefile_notes'.
1452         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1453
1454 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1455
1456         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1457         (hppa_hpux_iterate_over_regset_sections): New.
1458         (hppa_hpux_init_abi): Adjust gdbarch initialization.
1459         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1460         (hppa_linux_iterate_over_regset_sections): New.
1461         (hppa_linux_init_abi): Adjust.
1462         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1463         (hppanbsd_iterate_over_regset_sections): New.
1464         (hppanbsd_init_abi): Adjust.
1465         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1466         (hppaobsd_iterate_over_regset_sections): New.
1467         (hppaobsd_init_abi): Adjust.
1468
1469 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1470
1471         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1472         (frv_linux_iterate_over_regset_sections): New.
1473         (frv_linux_init_abi): Adjust gdbarch initialization.
1474
1475 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1476
1477         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1478         (armbsd_iterate_over_regset_sections): New prototype.
1479         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1480         (armbsd_iterate_over_regset_sections): New.
1481         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1482         initialization.
1483
1484 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1485
1486         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1487         (alpha_linux_iterate_over_regset_sections): New.
1488         (alpha_linux_init_abi): Adjust gdbarch initialization.
1489         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1490         prototype.
1491         (alphanbsd_iterate_over_regset_sections): New prototype.
1492
1493 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1494
1495         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1496         Remove.
1497         (aarch64_linux_iterate_over_regset_sections): New.
1498         (aarch64_linux_init_abi): Adjust gdbarch initialization.
1499
1500 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1501
1502         * fbsd-tdep.c: New file.
1503         * fbsd-tdep.h: New file.
1504         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1505         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1506         (ALLDEPFILES): Add fbsd-tdep.c.
1507
1508 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1509
1510         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1511         parameter.
1512         * gdbarch.h: Regenerate.
1513         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1514         iterator.
1515         (get_core_register_section): Add parameter 'regset' and use it, if
1516         set.  Add parameter 'min_size' and verify the bfd section size
1517         against it.
1518         (get_core_registers_cb): Add parameter 'regset' and pass it to
1519         get_core_register section.  For the "standard" register sections
1520         ".reg" and ".reg2", set an appropriate default for human_name.
1521         (get_core_registers): Don't abort when the gdbarch has an iterator
1522         but no regset_from_core_section.  Add NULL/0 for parameters
1523         'regset'/'min_size' in calls to get_core_register_section.
1524         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1525         'regset' and use it instead of calling the
1526         regset_from_core_section gdbarch method.
1527         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1528         * i386-tdep.c (i386_supply_xstateregset)
1529         (i386_collect_xstateregset, i386_xstateregset): Moved to
1530         i386-linux-tdep.c.
1531         (i386_regset_from_core_section): Drop handling for .reg-xfp and
1532         .reg-xstate.
1533         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
1534         core file support only if the regset iterator hasn't been set.
1535         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1536         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1537         Moved from i386-tdep.c and renamed to *_linux*.
1538         (i386_linux_iterate_over_regset_sections): Add regset parameter to
1539         each callback invocation.  Allow any .reg-xstate size when reading
1540         from a core file.
1541         * amd64-tdep.c (amd64_supply_xstateregset)
1542         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1543         amd64-linux-tdep.c.
1544         (amd64_regset_from_core_section): Remove.
1545         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
1546         install an amd64-specific regset_from_core_section gdbarch method.
1547         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1548         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1549         Moved from amd64-tdep.c and renamed to *_linux*.
1550         (amd64_linux_iterate_over_regset_sections): Add regset parameter
1551         to each callback invocation.  Allow any .reg-xstate size when
1552         reading from a core file.
1553         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1554         (arm_linux_iterate_over_regset_sections): Add regset parameter to
1555         each callback invocation.
1556         (arm_linux_init_abi): No longer set the regset_from_core_section
1557         gdbarch method.
1558         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1559         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1560         each callback invocation.
1561         (ppc_linux_init_abi): No longer set the regset_from_core_section
1562         gdbarch method.
1563         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1564         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1565         (s390_regset_from_core_section): Remove.
1566         (s390_iterate_over_regset_sections): Add regset parameter to each
1567         callback invocation.
1568         (s390_gdbarch_init): No longer set the regset_from_core_section
1569         gdbarch method.  Drop initialization of deleted tdep fields.
1570
1571 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1572
1573         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1574         (amd64_linux_iterate_over_regset_sections): New.
1575         (amd64_linux_init_abi_common): Don't install the regset section
1576         list, but the new iterator in gdbarch.
1577         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1578         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
1579         (arm_linux_iterate_over_regset_sections): ...here.  New function.
1580         (arm_linux_init_abi): Set iterator instead of section list.
1581         * corelow.c (get_core_registers_cb): New function, logic moved
1582         from...
1583         (get_core_registers): ...loop body here.  Use new iterator method
1584         instead of walking through the regset section list.
1585         * gdbarch.sh: Remove 'core_regset_sections'.  New method
1586         'iterate_over_regset_sections'.  New typedef
1587         'iterate_over_regset_sections_cb'.
1588         * gdbarch.c: Regenerate.
1589         * gdbarch.h: Likewise.
1590         * i386-linux-tdep.c (i386_linux_regset_sections)
1591         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1592         Remove.
1593         (i386_linux_iterate_over_regset_sections): New.
1594         (i386_linux_init_abi): Don't choose a regset section list, but
1595         install new iterator in gdbarch.
1596         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1597         (linux_collect_regset_section_cb): New function, logic moved
1598         from...
1599         (linux_collect_thread_registers): ...loop body here.  Use iterator
1600         method instead of walking through list.
1601         (linux_make_corefile_notes_1): Check for presence of iterator
1602         method instead of regset section list.
1603         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1604         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1605         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1606         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
1607         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
1608         (ppc_linux_init_abi): Don't choose from above regset section
1609         lists, but install new iterator in gdbarch.
1610         * regset.h (struct core_regset_section): Remove.
1611         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1612         have_linux_v1, have_linux_v2, and have_tdb.
1613         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1614         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1615         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1616         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1617         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
1618         (s390_iterate_over_regset_sections): ...here.  New function.  Use
1619         new tdep fields.
1620         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
1621         regset section lists, but install new iterator.
1622
1623 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1624
1625         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1626
1627 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
1628
1629         * progspace.c (print_program_space): Don't prune program spaces
1630         before printing them.
1631
1632 2014-09-25  Pedro Alves  <palves@redhat.com>
1633
1634         * infrun.c (user_visible_resume_ptid): Don't check
1635         singlestep_breakpoints_inserted_p.
1636
1637 2014-09-25  Pedro Alves  <palves@redhat.com>
1638
1639         * breakpoint.c (should_be_inserted): Add debug output.
1640
1641 2014-09-25  Pedro Alves  <palves@redhat.com>
1642
1643         * infrun.c (stepping_past_instruction_at)
1644         (clear_exit_convenience_vars): Point at infrun.h instead of
1645         inferior.h.
1646         (handle_signal_stop): Fix typo.
1647
1648 2014-09-24  Yao Qi  <yao@codesourcery.com>
1649
1650         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1651         bitmask.
1652
1653 2014-09-22  Gary Benson  <gbenson@redhat.com>
1654
1655         * target.c (target_stop): Updated comment.
1656
1657 2014-09-22  Gary Benson  <gbenson@redhat.com>
1658
1659         * target/target.h (target_stop_ptid): Renamed as...
1660         (target_stop_and_wait): New function.  Updated comment.
1661         All uses updated.
1662         (target_continue_ptid): Renamed as...
1663         (target_continue_no_signal): New function.  Updated comment.
1664         All uses updated.
1665
1666 2014-09-22  Pedro Alves  <palves@redhat.com>
1667
1668         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1669         and "auto" merged.
1670         * breakpoint.c (enum ugll_insert_mode): New enum.
1671         (always_inserted_mode): Now a plain boolean.
1672         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1673         (breakpoints_always_inserted_mode): Delete.
1674         (breakpoints_should_be_inserted_now): New function.
1675         (insert_breakpoints): Pass UGLL_INSERT to
1676         update_global_location_list instead of calling
1677         insert_breakpoint_locations manually.
1678         (create_solib_event_breakpoint_1): New, factored out from ...
1679         (create_solib_event_breakpoint): ... this.
1680         (create_and_insert_solib_event_breakpoint): Use
1681         create_solib_event_breakpoint_1 instead of calling
1682         insert_breakpoint_locations manually.
1683         (update_global_location_list): Change parameter type from boolean
1684         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1685         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1686         (update_global_location_list_nothrow): Change parameter type from
1687         boolean to enum ugll_insert_mode.
1688         (_initialize_breakpoint): "breakpoint always-inserted" option is
1689         now a boolean command.  Update help text.
1690         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1691         (breakpoints_should_be_inserted_now): New declaration.
1692         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1693         Remove breakpoints_always_inserted_mode check.
1694         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1695         * remote.c (remote_start_remote): Likewise.
1696
1697 2014-09-22  Pedro Alves  <palves@redhat.com>
1698
1699         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1700         (insert_breakpoints): Don't call insert_breakpoint_locations here.
1701         Instead, pass UGLL_INSERT to update_global_location_list.
1702         (update_global_location_list): Change parameter type from boolean
1703         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1704         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1705         (create_solib_event_breakpoint_1): New, factored out from ...
1706         (create_solib_event_breakpoint): ... this.
1707         (create_and_insert_solib_event_breakpoint): Use
1708         create_solib_event_breakpoint_1 instead of calling
1709         insert_breakpoint_locations manually.
1710         (update_global_location_list): Handle UGLL_INSERT.
1711
1712 2014-09-22  Pedro Alves  <palves@redhat.com>
1713
1714         * breakpoint.c (enum ugll_insert_mode): New enum.
1715         (update_global_location_list)
1716         (update_global_location_list_nothrow): Change parameter type from
1717         boolean to enum ugll_insert_mode.  All callers adjusted.
1718
1719 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
1720
1721         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1722         SystemTap support in GDB.
1723
1724 2014-09-19  Don Breazeal  <donb@codesourcery.com>
1725
1726         * linux-nat.c (linux_handle_extended_wait): Call
1727         linux_ptrace_get_extended_event.
1728         (wait_lwp): Call linux_is_extended_waitstatus.
1729         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1730         and linux_is_extended_waitstatus.
1731         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1732         linux_ptrace_get_extended_event.
1733         (linux_ptrace_get_extended_event): New function.
1734         (linux_is_extended_waitstatus): New function.
1735         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1736         (linux_is_extended_waitstatus): New declarations.
1737
1738 2014-09-19  Yao Qi  <yao@codesourcery.com>
1739
1740         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1741         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
1742         comments.  Callers update.
1743         (dwarf_decode_lines): Likewise.
1744         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
1745         comments.  Skip the line table if  'lowpc' is greater than
1746         'address'.  Don't check
1747         dwarf2_per_objfile->has_section_at_zero.
1748
1749 2014-09-18  Doug Evans  <dje@google.com>
1750
1751         * NEWS: Mention new "producer" attribute of gdb.Symtab.
1752         * python/py-symtab.c (stpy_get_producer): New function.
1753         (symtab_object_getset): Add "producer" attribute.
1754
1755 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
1756
1757         PR gdb/17384
1758         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1759         (do_captured_read_memory_integer): Remove.
1760         (safe_read_memory_integer): Use target_read_memory directly instead
1761         of catching errors in do_captured_read_memory_integer.
1762
1763 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
1764
1765         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1766         not gdb/doc.
1767
1768 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1769
1770         * objc-lang.c (find_implementation_from_class): Remove dead code.
1771
1772 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1773
1774         PR cli/7233
1775         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1776         "fprintf_unfiltered (gdb_stdlog...)".
1777
1778 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
1779
1780         PR breakpoints/12526
1781         * breakpoint.h (struct watchpoint): New fields val_bitpos and
1782         val_bitsize.
1783         * breakpoint.c (watch_command_1): Use these fields to retain
1784         bitfield information.
1785         (extract_bitfield_from_watchpoint_value): New function.
1786         (watchpoint_check): Use it.
1787         (update_watchpoint): Use it.  Optimize the address and length of a
1788         HW watchpoint pointing to a bitfield.
1789         * value.h (unpack_value_bitfield): New prototype.
1790         * value.c (unpack_value_bitfield): Make extern.
1791
1792 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1793
1794         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1795         x86-dregs.o.
1796         * gnu-nat.c (inf_threads): New function.
1797         * gnu-nat.h (inf_threads_ftype): New typedef.
1798         (inf_threads): New declaration.
1799         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1800         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1801         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1802         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1803         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1804         (i386_gnu_dr_get_control): New functions.
1805         (reg_addr): New structure.
1806         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1807         i386 debugging register hooks.
1808         * NEWS: Mention this.
1809
1810 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1811
1812         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1813         vector data transfer instructions.
1814         (arm_record_coproc_data_proc): Updated.
1815
1816 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1817
1818         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1819         arm_record_exreg_ld_st_insn.
1820         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1821         load/store insns.
1822
1823 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1824
1825         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1826         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1827         processing instructions.
1828
1829 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1830
1831         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1832         for advance SIMD struct ld/st insn.
1833         (thumb2_record_decode_insn_handler): Replace stub handler with
1834         thumb2_record_asimd_struct_ld_st.
1835
1836 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1837
1838         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1839         for asimd, vfp and coprocessor insns.
1840         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1841         and coprocessor insns.
1842         (thumb2_record_coproc_insn): New function.
1843         (thumb2_record_decode_insn_handler): Update coprocessor insns record
1844         handlers.
1845         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1846         opcode 110 insns.
1847
1848 2014-09-13  Doug Evans  <xdje42@gmail.com>
1849
1850         * NEWS: Mention new "queue-signal" command.
1851         * infcmd.c (queue_signal_command): New function.
1852         (_initialize_infcmd): Add new queue-signal command.
1853
1854 2014-09-13  Doug Evans  <xdje42@gmail.com>
1855
1856         * linux-nat.c (wait_lwp): Add debugging printf.
1857         (linux_nat_wait_1): Ditto.
1858
1859 2014-09-12  Pedro Alves  <palves@redhat.com>
1860
1861         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1862         (create_and_insert_solib_event_breakpoint): New functions.
1863         * breakpoint.h (create_and_insert_solib_event_breakpoint)
1864         (remove_solib_event_breakpoints_at_next_stop): New declarations.
1865         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1866         (remove_dbx_link_breakpoint): Delete function.
1867         (insert_dbx_link_bpt_in_file): Use
1868         create_and_insert_solib_event_breakpoint instead of
1869         deprecated_insert_raw_breakpoint.
1870         (procfs_wait): Don't check whether we hit __dbx_link here.
1871         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1872         here.
1873         * solib-irix.c (base_breakpoint): Delete global.
1874         (disable_break): Delete function.
1875         (enable_break): Use create_solib_event_breakpoint
1876         instead of deprecated_insert_raw_breakpoint.
1877         (irix_solib_handle_event): New function.
1878         (irix_solib_create_inferior_hook): Don't run the target or disable
1879         the mapping-complete breakpoint here.
1880         (_initialize_irix_solib): Install irix_solib_handle_event as
1881         so_ops->handle_event hook.
1882
1883 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1884             Ulrich Weigand  <uweigand@de.ibm.com>
1885
1886         PR tdep/17379
1887         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1888         instead of read_memory_unsigned_integer.
1889
1890 2014-09-12  Gary Benson  <gbenson@redhat.com>
1891
1892         * nat/linux-waitpid.c: Include common-defs.h.
1893         [GDBSERVER]: Add FIXME comment.
1894         [!GDBSERVER]: Don't include defs.h or signal.h.
1895         (linux_debug) [!GDBSERVER]: Remove empty block.
1896
1897 2014-09-12  Gary Benson  <gbenson@redhat.com>
1898
1899         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1900         Don't include defs.h or server.h.
1901
1902 2014-09-12  Gary Benson  <gbenson@redhat.com>
1903
1904         * nat/linux-btrace.c: Include common-defs.h.
1905         Don't include defs.h, server.h or gdbthread.h.
1906         * nat/linux-btrace.h (struct target_ops): New forward declaration.
1907
1908 2014-09-12  Gary Benson  <gbenson@redhat.com>
1909
1910         * common/agent.c: Include common-defs.h.
1911         Don't include defs.h or server.h.
1912         * common/buffer.c: Likewise.
1913         * common/common-debug.c: Likewise.
1914         * common/common-utils.c: Likewise.
1915         * common/errors.c: Likewise.
1916         * common/filestuff.c: Likewise.
1917         * common/format.c: Likewise.
1918         * common/gdb_vecs.c: Likewise.
1919         * common/print-utils.c: Likewise.
1920         * common/ptid.c: Likewise.
1921         * common/rsp-low.c: Likewise.
1922         * common/signals.c: Likewise.
1923         * common/vec.c: Likewise.
1924         * common/xml-utils.c: Likewise.
1925         * nat/linux-osdata.c: Likewise.
1926         * nat/linux-procfs.c: Likewise.
1927         * nat/linux-ptrace.c: Likewise.
1928         * nat/mips-linux-watch.c: Likewise.
1929         * target/waitstatus.c: Likewise.
1930
1931 2014-09-12  Tom Tromey  <tromey@redhat.com>
1932             Gary Benson  <gbenson@redhat.com>
1933
1934         * common/common-regcache.h: New file.
1935         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1936         * regcache.h: Include common-regcache.h.
1937         (regcache_read_pc): Don't declare.
1938         * regcache.c (get_thread_regcache_for_ptid): New function.
1939         * nat/linux-btrace.c: Don't include regcache.h.
1940         Include common-regcache.h.
1941         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1942
1943 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
1944
1945         * regcache.h (struct regset): Declare.
1946
1947 2014-09-11  Pedro Alves  <palves@redhat.com>
1948
1949         PR gdb/17347
1950         * main.c: Include "infrun.h".
1951         (catch_command_errors, catch_command_errors_const): Wait for the
1952         foreground command to complete.
1953         * top.c (maybe_wait_sync_command_done): New function, factored out
1954         from ...
1955         (maybe_wait_sync_command_done): ... here.
1956         * top.h (maybe_wait_sync_command_done): New declaration.
1957
1958 2014-09-11  Tom Tromey  <tromey@redhat.com>
1959             Gary Benson  <gbenson@redhat.com>
1960
1961         * common/symbol.h: New file.
1962         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1963         * minsyms.c (find_minimal_symbol_address): New function.
1964         * common/agent.c: Include common/symbol.h.
1965         [!GDBSERVER]: Don't include objfiles.h.
1966         (agent_look_up_symbols): Use find_minimal_symbol_address.
1967
1968 2014-09-11  Gary Benson  <gbenson@redhat.com>
1969
1970         * target/target.h (target_stop_ptid, target_continue_ptid):
1971         Declare.
1972         * target.c (target_stop_ptid, target_continue_ptid): New
1973         functions.
1974         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1975         (agent_run_command): Always use target_stop_ptid and
1976         target_continue_ptid.
1977
1978 2014-09-11  Tom Tromey  <tromey@redhat.com>
1979             Gary Benson  <gbenson@redhat.com>
1980
1981         * target/target.h: New file.
1982         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1983         * target.h: Include target/target.h.
1984         (target_read_memory, target_write_memory): Don't declare.
1985         * target.c (target_read_uint32): New function.
1986         * common/agent.c: Include target/target.h.
1987         [!GDBSERVER]: Don't include target.h.
1988         (helper_thread_id): Type changed to uint32_t.
1989         (agent_get_helper_thread_id): Use target_read_uint32.
1990         (agent_run_command): Always use target_read_memory and
1991         target_write_memory.
1992         (agent_capability): Type changed to uint32_t.
1993         (agent_capability_check): Use target_read_uint32.
1994
1995 2014-09-11  Gary Benson  <gbenson@redhat.com>
1996
1997         * common/common-debug.h (show_debug_regs): Declare.
1998         * common/common-debug.c (show_debug_regs): Define.
1999         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
2000         all uses with show_debug_regs.  Replace all uses that considered
2001         debug_hw_points as a multi-value integer with straight boolean
2002         uses.
2003         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
2004         with show_debug_regs.
2005         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
2006         all uses with show_debug_regs.
2007         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
2008         uses with show_debug_regs.
2009
2010 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2011
2012         * findvar.c (address_from_register): Handle targets requiring
2013         a special conversion routine even for plain pointer types.
2014
2015 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2016
2017         * rs6000-nat.c (exec_one_dummy_insn): Remove.
2018         (store_register): Do not call exec_one_dummy_insn.
2019
2020 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2021
2022         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2023         dereference it first.  Use value_enclosing_type instead of
2024         value_type.
2025         (ada_array_length): Likewise.
2026
2027 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2028
2029         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2030         Adjust function implementation and documentation accordingly.
2031         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2032         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2033         Update call to ada_value_ptr_subscript.
2034
2035 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2036
2037         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2038         instead of VAL's type.
2039
2040 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2041
2042         * amd64-linux-nat.c: Add <sys/uio.h> #include.
2043
2044 2014-09-09  Doug Evans  <xdje42@gmail.com>
2045
2046         PR guile/17367
2047         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2048         last parameter to pkg-config, not first.
2049         * configure.ac: Pass --with-guile provided pkg-config path to
2050         GDB_GUILE_PROGRAM_NAMES.
2051         * configure: Regenerate.
2052
2053 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2054
2055         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2056         Bertazi".
2057
2058 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
2059
2060         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2061         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2062         the list of sections determining GDB_OSABI_IRIX.
2063
2064 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2065
2066         * MAINTAINERS (Write After Approval): Add "James Hogan".
2067
2068 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2069
2070         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2071
2072 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
2073
2074         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2075
2076 2014-09-08  Doug Evans  <xdje42@gmail.com>
2077
2078         PR 17247
2079         * guile.c: #include <signal.h>.
2080         (_initialize_guile): Block SIGCHLD while initializing Guile.
2081
2082         Replaces the following, which is reverted.
2083
2084         2014-07-26  Doug Evans  <xdje42@gmail.com>
2085
2086         PR 17185
2087         * configure.ac: Add check for header gc/gc.h.
2088         Add check for function setenv.
2089         * configure: Regenerate.
2090         * config.in: Regenerate.
2091         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2092
2093 2014-09-08  Doug Evans  <xdje42@gmail.com>
2094
2095         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2096         with named constant.  Fix style of pointer comparison.
2097         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2098
2099 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2100
2101         PR gdb/17035
2102         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2103         decide whether we display the command on "show user".
2104         * cli/cli-script.c (show_user_1): Only verify cmdlines after
2105         printing command name.
2106         * cli/cli-decode.h (cli_user_command_p): Declare new function.
2107         * cli/cli-decode.c (cli_user_command_p): Create helper function
2108         to verify whether cmd_list_element is a user-defined command.
2109
2110 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2111
2112         PR python/17355
2113         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2114         Fix goto out of TRY_CATCH.
2115
2116 2014-09-06  Doug Evans  <xdje42@gmail.com>
2117             Tom Tromey  <tromey@redhat.com>
2118
2119         PR 15276
2120         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2121         $_any_caller_matches.
2122         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2123         * python/lib/gdb/function/caller_is.py: New file.
2124
2125 2014-09-06  Doug Evans  <xdje42@gmail.com>
2126
2127         * infcmd.c (program_info): Fix typo.
2128
2129 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
2130
2131         PR gdb/17235
2132         * stap-probe.c (stap_parse_single_operand): Delete unused variable
2133         'number'.  New variable 'has_digit'.  Rewrite code to deal with
2134         subexpressions on SDT probes.
2135
2136 2014-09-04  Pedro Alves  <palves@redhat.com>
2137
2138         * c-exp.y (parse_number): Skip handling base-switching prefixes if
2139         the input is only one character long.
2140
2141 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
2142
2143         PR fortran/17237
2144         * f-valprint.c (f_val_print): Specify the correct print option to
2145         use when printing integer values.
2146
2147 2014-09-04  Gary Benson  <gbenson@redhat.com>
2148
2149         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2150         Remove code to cope with LWPs wrapped as PIDs.
2151         Add assertions to ensure no wrapped LWPs are passed.
2152
2153 2014-09-04  Pedro Alves  <palves@redhat.com>
2154
2155         * value.c (value_ranges_copy_adjusted): New function, factored out
2156         from ...
2157         (value_contents_copy_raw): ... here.
2158         (unpack_value_bits_as_long_1): Rename back to ...
2159         (unpack_bits_as_long): ... this.  Remove 'original_value' and
2160         'result' parameters.  Change return type to LONGEST.
2161         (unpack_value_bits_as_long): Delete.
2162         (unpack_value_field_as_long_1): Delete.
2163         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2164         (unpack_value_bitfield): New function.
2165         (value_field_bitfield): Reimplement using unpack_value_bitfield.
2166         (value_fetch_lazy): Use unpack_value_bitfield.
2167         * value.h (unpack_value_bits_as_long): Delete declaration.
2168
2169 2014-09-03  Sasha Smundak  <asmundak@google.com>
2170
2171         * python/py-frame.c (frapy_read_register): New function.
2172
2173 2014-09-03  James Hogan  <james.hogan@imgtec.com>
2174
2175         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2176         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2177
2178 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
2179
2180         PR python/16699
2181         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2182         function.
2183         (add_cmd): Set "completer_handle_brkchars" to NULL.
2184         * cli/cli-decode.h (struct cmd_list_element)
2185         <completer_handle_brkchars>: New field.
2186         * command.h (completer_ftype_void): New typedef.
2187         (set_cmd_completer_handle_brkchars): New prototype.
2188         * completer.c (set_gdb_completion_word_break_characters): New
2189         function.
2190         (complete_line_internal): Call "completer_handle_brkchars"
2191         callback from command.
2192         * completer.h: Include "command.h".
2193         (set_gdb_completion_word_break_characters): New prototype.
2194         * python/py-cmd.c (cmdpy_completer_helper): New function.
2195         (cmdpy_completer_handle_brkchars): New function.
2196         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2197         (cmdpy_init): Set completer_handle_brkchars to
2198         cmdpy_completer_handle_brkchars.
2199
2200 2014-09-03  Gary Benson  <gbenson@redhat.com>
2201
2202         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2203         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
2204         Loop conditions changed to equivalent form.
2205         (struct x86_debug_reg_state): Updated dr_ref_count comment.
2206         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2207         ALL_DEBUG_ADDRESS_REGISTERS.
2208
2209 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
2210
2211         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2212         description fix.
2213
2214 2014-09-02  Doug Evans  <dje@google.com>
2215
2216         * typeprint.c (find_global_typedef): Fix comment.
2217
2218 2014-09-02  Gary Benson  <gbenson@redhat.com>
2219
2220         * i386-nat.h: Renamed as...
2221         * x86-nat.h: New file.  All type, function and variable name
2222         prefixes changed from "i386_" to "x86_".  All references updated.
2223         * i386-nat.c: Renamed as...
2224         * x86-nat.c: New file.  All type, function and variable name
2225         prefixes changed from "i386_" to "x86_".  All references updated.
2226         * common/i386-xstate.h: Renamed as...
2227         * common/x86-xstate.h: New file.  All type, function and variable
2228         name prefixes changed from "i386_" to "x86_".  All references
2229         updated.
2230         * nat/i386-cpuid.h: Renamed as...
2231         * nat/x86-cpuid.h: New file.  All type, function and variable name
2232         prefixes changed from "i386_" to "x86_".  All references updated.
2233         * nat/i386-gcc-cpuid.h: Renamed as...
2234         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
2235         name prefixes changed from "i386_" to "x86_".  All references
2236         updated.
2237         * nat/i386-dregs.h: Renamed as...
2238         * nat/x86-dregs.h: New file.  All type, function and variable name
2239         prefixes changed from "i386_" to "x86_".  All references updated.
2240         * nat/i386-dregs.c: Renamed as...
2241         * nat/x86-dregs.c: New file.  All type, function and variable name
2242         prefixes changed from "i386_" to "x86_".  All references updated.
2243
2244 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
2245
2246         * varobj.c (_initialize_varobj): Move to the end of file.
2247
2248 2014-08-29  Gary Benson  <gbenson@redhat.com>
2249
2250         * common/common-exceptions.h: New file.
2251         * common/common-exceptions.c: Likewise.
2252         * Makefile.in (SFILES): Add common/common-exceptions.c.
2253         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2254         (COMMON_OBS): Add common-exceptions.o.
2255         (common-exceptions.o): New rule.
2256         * exceptions.h (common-exceptions.h): Include.
2257         (gdb_setjmp.h): Do not include.
2258         (return_reason): Moved to common-exceptions.h.
2259         (enum return_reason): Likewise.
2260         (RETURN_MASK): Likewise.
2261         (typedef return_mask): Likewise.
2262         (enum errors): Likewise.
2263         (struct gdb_exception): Likewise.
2264         (exceptions_state_mc_init): Likewise.
2265         (exceptions_state_mc_action_iter): Likewise.
2266         (exceptions_state_mc_action_iter_1): Likewise.
2267         (TRY_CATCH): Likewise.
2268         (throw_exception): Likewise.
2269         (throw_verror): Likewise.
2270         (throw_vquit): Likewise.
2271         (throw_error): Likewise.
2272         (throw_quit): Likewise.
2273         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2274         (enum catcher_action): Likewise.
2275         (struct catcher): Likewise.
2276         (current_catcher): Likewise.
2277         (catcher_list_size): Likewise.
2278         (exceptions_state_mc_init): Likewise.
2279         (catcher_pop): Likewise.
2280         (exceptions_state_mc): Likewise.
2281         (exceptions_state_mc_action_iter): Likewise.
2282         (exceptions_state_mc_action_iter_1): Likewise.
2283         (throw_exception): Likewise.
2284         (exception_messages): Likewise.
2285         (exception_messages_size): Likewise.
2286         (throw_it): Likewise.
2287         (throw_verror): Likewise.
2288         (throw_vquit): Likewise.
2289         (throw_error): Likewise.
2290         (throw_quit): Likewise.
2291         (prepare_to_throw_exception): New function.
2292
2293 2014-08-29  Gary Benson  <gbenson@redhat.com>
2294
2295         * common/gdb_setjmp.h: New file.
2296         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2297         * configure.ac: Move sigsetjmp check...
2298         * common/common.m4: ...here.
2299         * configure: Regenerate.
2300         * cp-support.c (SIGJMP_BUF): Delete.
2301         (SIGSETJMP): Likewise.
2302         (SIGLONGJMP): Likewise.
2303         * exceptions.h (gdb_setjmp.h): Include.
2304         (setjmp.h): Do not include.
2305         (EXCEPTIONS_SIGJMP_BUF): Delete.
2306         (EXCEPTIONS_SIGSETJMP): Likewise.
2307         (EXCEPTIONS_SIGLONGJMP): Likewise.
2308         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2309         from gdb_setjmp.h.
2310         * exceptions.c: Likewise.
2311
2312 2014-08-29  Gary Benson  <gbenson@redhat.com>
2313
2314         * cleanups.h: Moved to...
2315         * common/cleanups.h: New file.
2316         * cleanups.c: Moved to...
2317         * common/cleanups.c: New file.  Include common-defs.h and
2318         cleanups.h.  Do not include defs.h.
2319         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2320         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2321         (cleanups.o): New rule.
2322
2323 2014-08-29  Gary Benson  <gbenson@redhat.com>
2324
2325         * common/errors.h (internal_warning): New declaration.
2326         (internal_vwarning): Likewise.
2327         * common/errors.c (internal_warning): New function.
2328         * utils.h (internal_warning): Don't declare.
2329         (internal_vwarning): Likewise.
2330         * utils.c (internal_warning): Removed.
2331
2332 2014-08-29  Gary Benson  <gbenson@redhat.com>
2333
2334         * main.c (captured_main): Use warning during startup.
2335         Prefix startup warning messages with command name.
2336
2337 2014-08-29  Gary Benson  <gbenson@redhat.com>
2338
2339         * main.c (captured_main): Handle usage errors with error.
2340
2341 2014-08-29  Gary Benson  <gbenson@redhat.com>
2342
2343         * go32-nat.c (go32_create_inferior): Replace a fprintf/
2344         exit pair with a call to error.  Wrap the message with _().
2345
2346 2014-08-29  Gary Benson  <gbenson@redhat.com>
2347
2348         * main.c (captured_main): Replace a fprintf/exit
2349         pair with a call to error.  Wrap the message with _().
2350
2351 2014-08-29  Gary Benson  <gbenson@redhat.com>
2352
2353         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2354         pairs with calls to error.  Wrap the message with _().
2355
2356 2014-08-29  Gary Benson  <gbenson@redhat.com>
2357
2358         * utils.c (vwarning): Protect calls to target_terminal_ours
2359         and wrap_here.
2360
2361 2014-08-29  Gary Benson  <gbenson@redhat.com>
2362
2363         * exceptions.c (print_flush): Protect calls to
2364         target_terminal_ours and wrap_here.
2365
2366 2014-08-29  Gary Benson  <gbenson@redhat.com>
2367
2368         * utils.h (filtered_printing_initialized): New declaration.
2369         * utils.c (abort_with_message): New function.
2370         (internal_vproblem): Use abort_with_message for first level
2371         recursive internal problems, and if gdb_stderr is not set up.
2372         Protect calls to target_terminal_ours, begin_line and query.
2373
2374 2014-08-28  Doug Evans  <dje@google.com>
2375
2376         * symtab.c (in_prologue): Move definition to better spot.
2377         (skip_prologue_using_sal): Ditto.
2378
2379 2014-08-28  Doug Evans  <dje@google.com>
2380
2381         * symtab.c (find_function_start_sal): Move definition to better spot.
2382
2383 2014-08-28  Yao Qi  <yao@codesourcery.com>
2384
2385         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2386         found_stack_adjust in forward scan.  Remove condition check
2387         on found_stack_adjust which is always true.  Indent the code.
2388
2389 2014-08-28  Yao Qi  <yao@codesourcery.com>
2390
2391         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2392         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2393         (dwarf_decode_lines): Remove argument
2394         want_line_info.  Remove condition check on want_line_info.
2395         Callers update.
2396
2397 2014-08-27  Doug Evans  <dje@google.com>
2398
2399         * dwarf2read.c (dwarf_record_line): Fix typo.
2400
2401 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
2402
2403         * target.h (struct target_ops::to_terminal_save_ours): Remove
2404         declaration.
2405         (target_terminal_save_ours): Remove macro.
2406         * target-delegates.c: Regenerate.
2407         * inf-child.c (inf_child_target): Don't set the nonexistent
2408         field to_terminal_save_ours.
2409         * inferior.h (child_terminal_save_ours): Remove declaration.
2410         * terminal.h (gdb_save_tty_state): New declaration.
2411         * inflow.c (child_terminal_save_ours): Rename to ...
2412         (gdb_save_tty_state): ... this.
2413         * tui/tui.c: Include terminal.h.
2414         (tui_enable): Use gdb_save_tty_state instead of
2415         target_terminal_save_ours.
2416         (tui_disable): Likewise.
2417
2418 2014-08-25  Doug Evans  <dje@google.com>
2419
2420         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2421         Pass NULL instead of 0 for context pointer.
2422
2423 2014-08-25  Yao Qi  <yao@codesourcery.com>
2424
2425         * dwarf2read.c: Fix grammatical error.
2426
2427 2014-08-24  Yao Qi  <yao@codesourcery.com>
2428
2429         * dwarf2read.c (scan_partial_symbols):  Update comments.
2430         Rename argument 'need_pc' with 'set_addrmap'.
2431         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
2432         'set_addrmap'.
2433         (add_partial_module): Likewise.
2434         (add_partial_subprogram): Likewise.  Update comments.
2435         (dwarf2_name): Fix typo.
2436
2437 2014-08-22  Doug Evans  <dje@google.com>
2438
2439         PR 17276
2440         * dwarf2read.c (dwarf_record_line_p): New function.
2441         (dwarf_decode_lines_1): Ignore subsequent line number entries
2442         for the same line if any entry had a non-zero discriminator.
2443
2444 2014-08-22  Doug Evans  <dje@google.com>
2445
2446         * buildsym.h (record_line_ftype): New typedef.
2447         (record_line): Use it.
2448         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2449         (dwarf_decode_lines_1): Call them.
2450
2451 2014-08-22  Yao Qi  <yao@codesourcery.com>
2452
2453         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2454         (ctf_end): Remove code.
2455
2456 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2457
2458         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2459         (linux_make_corefile_notes): call update_thread_list, protected against
2460         exceptions.
2461
2462 2014-08-21  Pedro Alves  <palves@redhat.com>
2463
2464         * infcmd.c (attach_command): Remove comment.
2465
2466 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
2467
2468         * aarch64-linux-nat.c (dr_changed_t): Change the type from
2469         unsigned LONGEST to ULONGEST.
2470
2471 2014-08-20  Pedro Alves  <palves@redhat.com>
2472
2473         * Makefile.in (check-read1): New rule.
2474
2475 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
2476
2477         * value.c (value_from_contents_and_address): Strip resolved_type's
2478         typedef layers before checking its TYPE_DATA_LOCATION.
2479
2480 2014-08-20  Pedro Alves  <palves@redhat.com>
2481
2482         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2483
2484 2014-08-20  Yao Qi  <yao@codesourcery.com>
2485
2486         * amd64-tdep.c (amd64_classify): Add a blank line after the
2487         example.  Move "*/" to a new line.
2488         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2489         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2490         * dwarf2read.c (psymtab_include_file_name): Likewise.
2491
2492 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
2493             Pedro Alves  <palves@redhat.com>
2494
2495         PR symtab/14604
2496         PR symtab/14605
2497         * ada-lang.c (coerce_unspec_val_to_type): Use
2498         value_contents_copy_raw.
2499         * ada-valprint.c (val_print_packed_array_elements): Adjust.
2500         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2501         * cp-valprint.c (cp_print_value_fields): Let the common printing
2502         code handle optimized out values.
2503         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2504         * d-valprint.c (dynamic_array_type): Use
2505         value_bits_any_optimized_out.
2506         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2507         check_any_valid fields.
2508         (check_pieced_value_bits): Delete and inline ...
2509         (check_pieced_synthetic_pointer): ... here.
2510         (check_pieced_value_validity): Delete.
2511         (check_pieced_value_invalid): Delete.
2512         (pieced_value_funcs): Remove check_validity and check_any_valid
2513         fields.
2514         (read_pieced_value): Use mark_value_bits_optimized_out.
2515         (write_pieced_value): Switch to use
2516         mark_value_bytes_optimized_out.
2517         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2518         of assuming the whole value is optimized out.
2519         * findvar.c (read_frame_register_value): Remove special handling
2520         of optimized out registers.
2521         (value_from_register): Use mark_value_bytes_optimized_out.
2522         * frame-unwind.c (frame_unwind_got_optimized): Use
2523         mark_value_bytes_optimized_out.
2524         * jv-valprint.c (java_value_print): Adjust.
2525         (java_print_value_fields): Let the common printing code handle
2526         optimized out values.
2527         * mips-tdep.c (mips_print_register): Remove special handling of
2528         optimized out registers.
2529         * opencl-lang.c (lval_func_check_validity): Delete.
2530         (lval_func_check_any_valid): Delete.
2531         (opencl_value_funcs): Remove check_validity and check_any_valid
2532         fields.
2533         * p-valprint.c (pascal_object_print_value_fields): Let the common
2534         printing code handle optimized out values.
2535         * stack.c (read_frame_arg): Remove special handling of optimized
2536         out values.  Fetch both VAL and ENTRYVAL before comparing
2537         contents.  Adjust to value_available_contents_eq rename.
2538         * valprint.c (valprint_check_validity)
2539         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2540         (val_print_array_elements): Adjust.
2541         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2542         (value_bits_any_optimized_out): New function.
2543         (value_entirely_covered_by_range_vector): New function, factored
2544         out from value_entirely_unavailable.
2545         (value_entirely_unavailable): Reimplement.
2546         (value_entirely_optimized_out): New function.
2547         (insert_into_bit_range_vector): New function, factored out from
2548         mark_value_bits_unavailable.
2549         (mark_value_bits_unavailable): Reimplement.
2550         (struct ranges_and_idx): New struct.
2551         (find_first_range_overlap_and_match): New function, factored out
2552         from value_available_contents_bits_eq.
2553         (value_available_contents_bits_eq): Rename to ...
2554         (value_contents_bits_eq): ... this.  Check both unavailable
2555         contents and optimized out contents.
2556         (value_available_contents_eq): Rename to ...
2557         (value_contents_eq): ... this.
2558         (allocate_value_lazy): Remove reference to the old optimized_out
2559         boolean.
2560         (allocate_optimized_out_value): Use
2561         mark_value_bytes_optimized_out.
2562         (require_not_optimized_out): Adjust to check whether the
2563         optimized_out vec is empty.
2564         (ranges_copy_adjusted): New function, factored out from
2565         value_contents_copy_raw.
2566         (value_contents_copy_raw): Also copy the optimized out ranges.
2567         Assert the destination ranges aren't optimized out.
2568         (value_contents_copy): Update comment, remove call to
2569         require_not_optimized_out.
2570         (value_contents_equal): Adjust to check whether the optimized_out
2571         vec is empty.
2572         (set_value_optimized_out, value_optimized_out_const): Delete.
2573         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2574         New functions.
2575         (value_entirely_optimized_out, value_bits_valid): Delete.
2576         (value_copy): Take a VEC copy of the 'optimized_out' field.
2577         (value_primitive_field): Remove special handling of optimized out.
2578         (value_fetch_lazy): Assert that lazy values have no unavailable
2579         regions.  Use value_bits_any_optimized_out.  Remove some special
2580         handling for optimized out values.
2581         * value.h: Add intro comment about <optimized out> and
2582         <unavailable>.
2583         (struct lval_funcs): Remove check_validity and check_any_valid
2584         fields.
2585         (set_value_optimized_out, value_optimized_out_const): Remove.
2586         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2587         New declarations.
2588         (value_bits_any_optimized_out): New declaration.
2589         (value_bits_valid): Delete declaration.
2590         (value_available_contents_eq): Rename to ...
2591         (value_contents_eq): ... this, and extend comments.
2592
2593 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2594
2595         Fix -fsanitize=address on unreadable inferior strings.
2596         * valprint.c (val_print_string): Fix access before BUFFER.
2597
2598 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
2599
2600         * target.c (target_struct_size): Remove.
2601         (target_struct_allocsize): Remove.
2602         (DEFAULT_ALLOCSIZE): Remove.
2603         (target_ops_p): New typedef.
2604         (DEF_VEC_P (target_ops_p)): New vector type.
2605         (target_structs): Change type to VEC (target_ops_p).
2606         (add_target_with_completer): Replace "push" code by VEC_safe_push.
2607         (find_default_run_target): Rewrite for loop following changes to
2608         target_structs.
2609
2610 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
2611
2612         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2613         Adjust code accordingly.  Adjust function description comment.
2614
2615 2014-08-19  Yao Qi  <yao@codesourcery.com>
2616
2617         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2618         types.
2619
2620 2014-08-19  Alan Modra  <amodra@gmail.com>
2621
2622         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2623         * config.in: Regenerate.
2624         * configure: Regenerate.
2625
2626 2014-08-19  Tom Tromey  <tromey@redhat.com>
2627             Gary Benson  <gbenson@redhat.com>
2628
2629         * common/common-debug.h: New file.
2630         * common/common-debug.c: Likewise.
2631         * debug.c: Likewise.
2632         * Makefile.in (SFILES): Add common/common-debug.c.
2633         (HFILES_NO_SRCDIR): Add common/common-debug.h.
2634         (COMMON_OBS): Add common-debug.o and debug.o.
2635         (common-debug.o): New rule.
2636         * common/common-defs.h: Include common-debug.h.
2637         * common/agent.c (debug_agent_printf): New function.
2638         (DEBUG_AGENT): Redefine.
2639         * nat/i386-dregs.c (debug_printf): Undefine.
2640
2641 2014-08-19  Gary Benson  <gbenson@redhat.com>
2642
2643         * common/common-defs.h: Include print-utils.h.
2644         * utils.h: Do not include print-utils.h.
2645
2646 2014-08-19  Tom Tromey  <tromey@redhat.com>
2647             Gary Benson  <gbenson@redhat.com>
2648
2649         * common/common-types.h: New file.
2650         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2651         * common/common-defs.h: Include common-types.h.
2652         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2653         (ULONGEST): Remove.
2654
2655 2014-08-19  Tom Tromey  <tromey@redhat.com>
2656             Gary Benson  <gbenson@redhat.com>
2657
2658         * common/errors.h: New file.
2659         * common/errors.c: Likewise.
2660         * Makefile.in (SFILES): Add common/errors.c.
2661         (HFILES_NO_SRCDIR): Add common/errors.h.
2662         (COMMON_OBS): Add errors.o.
2663         (errors.o): New rule.
2664         * common/common-defs.h: Include errors.h.
2665         * utils.h (perror_with_name, error, verror, warning, vwarning):
2666         Don't declare.
2667         * common/common-utils.h: (malloc_failure, internal_error):
2668         Likewise.
2669
2670 2014-08-19  Gary Benson  <gbenson@redhat.com>
2671
2672         * utils.c (internal_vproblem): Always print the message.
2673
2674 2014-08-18  Doug Evans  <dje@google.com>
2675
2676         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2677
2678 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2679
2680         * ada-typeprint.c (type_is_full_subrange_of_target_type):
2681         Return 0 if TYPE is dynamic.
2682         (print_range): Add handling of dynamic ranges.
2683
2684 2014-08-18  Keven Boell  <keven.boell@intel.com>
2685             Joel Brobecker  <brobecker@adacore.com>
2686
2687         * gdbtypes.h (struct main_type): Add field "data_location".
2688         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2689         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2690         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2691         a dynamic data location.
2692         (resolve_dynamic_type): Add DW_AT_data_location handling.
2693         (copy_recursive, copy_type): Copy the data_location information
2694         when present.
2695         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2696         * value.c (value_from_contents_and_address): Add
2697         DW_AT_data_location handling.
2698
2699 2014-08-18  Keven Boell  <keven.boell@intel.com>
2700             Joel Brobecker  <brobecker@adacore.com>
2701
2702         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2703         field "get_object_address".
2704         * dwarf2expr.c (execute_stack_op): Add handling for
2705         DW_OP_push_object_address.
2706         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2707         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2708         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2709         (dwarf_expr_get_obj_addr): New function.
2710         (dwarf_expr_ctx_funcs): Add get_object_address field.
2711         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2712         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
2713         (dwarf2_evaluate_property): Add parameter "address".  Use it.
2714         (needs_get_obj_addr): New function.
2715         (needs_frame_ctx_funcs): Add get_object_address field.
2716         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2717         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
2718         (resolve_dynamic_array): Likewise.
2719
2720 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2721
2722         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2723         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2724         fixed value for records and unions for which some GNAT encodings
2725         are present.
2726
2727 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2728
2729         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2730         rewrite to avoid "else if" and "else" constructs.  Should be
2731         a no-op in practice.
2732
2733 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2734
2735         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2736         of lexical block.
2737
2738 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2739
2740         PR c++/17132
2741         * eval.c: Update all calls to find_overload_match.
2742         * valarith.c: Likewise.
2743         (value_user_defined_cpp_op, value_user_defined_op): New
2744         argument NOSIDE.  Update all callers.
2745         * valops.c (find_overload_match): New argument NOSIDE.
2746         * value.h (find_overload_match): Update signature.
2747
2748 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2749
2750         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2751         'items' methods instead of 'iteritems' method on dictionaries.
2752
2753 2014-08-15  Doug Evans  <dje@google.com>
2754
2755         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2756         closer to use.
2757
2758 2014-08-15  Doug Evans  <dje@google.com>
2759
2760         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2761
2762 2014-08-15  Doug Evans  <dje@google.com>
2763
2764         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2765
2766 2014-08-15  Doug Evans  <dje@google.com>
2767
2768         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2769         unused.
2770
2771 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
2772
2773         * dcache.h: Include target.h, to avoid compile time warnings.
2774
2775 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
2776
2777         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
2778         frame_info" partial declaration.
2779         * gdbarch.h: Regenerate.
2780
2781 2014-08-15  Yao Qi  <yao@codesourcery.com>
2782
2783         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2784         Add parameter 'decode_for_pst_p'.  Callers update.
2785
2786 2014-08-13  Yao Qi  <yao@codesourcery.com>
2787
2788         PR build/17104
2789         * configure.ac: Use local variable 'pos'.
2790         * configure: Regenerated.
2791
2792 2014-08-11  Doug Evans  <dje@google.com>
2793
2794         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2795         message, it is redundant with "Reading symbols from ..." message.
2796
2797 2014-08-10  Doug Evans  <xdje42@gmail.com>
2798
2799         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2800
2801 2014-08-09  Yao Qi  <yao@codesourcery.com>
2802
2803         PR remote/9053
2804         * remote.c (remote_xfer_partial): Remove dead code.
2805
2806 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2807
2808         * ia64-linux-tdep.c: Include "regset.h".
2809         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2810         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2811         (ia64_linux_supply_fpregset): New function.
2812         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2813         (ia64_linux_regset_from_core_section): New function.
2814         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2815         method.
2816
2817 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2818
2819         * m68klinux-tdep.c: Include "regset.h".
2820         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2821         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2822         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2823         (m68k_linux_regset_from_core_section): New function.
2824         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2825         method.
2826
2827 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2828
2829         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2830         function.  Move logic to...
2831         (tilegx_linux_regmap): ... this new register map.
2832         (tilegx_linux_regset): Refer to register map, replace supply
2833         method by regcache_supply_regset, and add collect method.
2834         * tilegx-tdep.h (enum tilegx_regnum): New enum value
2835         TILEGX_FIRST_EASY_REGNUM.
2836
2837 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2838
2839         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2840         that calls regcache_supply_regset and handles the EPC register
2841         separately.  Move main logic to...
2842         (score7_linux_gregmap): ... this new register map.
2843         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2844         (score7_linux_gregset): Refer to register map.  Add collect method.
2845         (score7_linux_regset_from_core_section): Replace
2846         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2847         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2848         (struct regset): Delete unused forward declaraction.
2849         (struct pt_regs): Delete structure definition.
2850         (elf_gregset_t): Delete typedef.
2851
2852 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2853
2854         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2855         (nios2_core_regset): Add collect method.
2856
2857 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2858
2859         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2860         platform-independent and don't write to read-only input buffer.
2861         (m32r_linux_collect_gregset): New function.
2862         (m32r_linux_gregset): Add collect method.
2863
2864 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2865
2866         * hppa-linux-tdep.c (greg_map): Rename to...
2867         (hppa_linux_gregmap): ... this.  Also convert to
2868         regcache_map_entry format.
2869         (hppa_linux_supply_regset): Delete function.
2870         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
2871         (hppa_linux_fpregmap): ... this new register map.
2872         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2873         register map, replace supply method by regcache_supply_regset, and
2874         add collect method regcache_collect_regset.
2875
2876 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2877
2878         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2879         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2880         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2881         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2882         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2883         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2884         (frv_linux_supply_gregset): Replace main logic by call to
2885         regcache_supply_regset, but keep clearing gr32-gr63.
2886         (frv_linux_supply_fpregset): Delete function.
2887         (frv_linux_gregset): Refer to appropriate register map and add
2888         regcache_collect_regset as the collect method.
2889         (frv_linux_fpregset): Likewise.  Also exchange the supply method
2890         by regcache_supply_regset.
2891
2892 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2893
2894         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2895         by call to alpha_supply_int_regs.
2896         (alpha_linux_collect_gregset): New function.
2897         (alpha_linux_supply_fpregset): Replace logic by call to
2898         alpha_supply_fp_regs.
2899         (alpha_linux_collect_fpregset): New function.
2900         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2901
2902 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2903
2904         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2905         by call to regcache_collect_regset.
2906         (supply_gregset, supply_fpregset): Call regcache_supply_regset
2907         instead of aarch64_linux_supply_gregset/_fpregset.
2908         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2909         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2910         header file instead.
2911         (aarch64_linux_supply_gregset, supply_gregset_from_core)
2912         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2913         functions.  Move logic to ...
2914         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2915         register maps.
2916         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2917         refer to new register maps, replace *_regset_from_core by
2918         regcache_supply_regset, and also use regcache_collect_regset.
2919         * aarch64-linux-tdep.h: Include "regset.h".
2920         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2921         Delete prototypes.
2922         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2923         macros, moved from C source file.
2924         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2925         variable declarations.
2926
2927 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2928
2929         * s390-linux-nat.c: Include "regset.h".
2930         (regmap_gregset): Delete macro.
2931         (s390_64_regmap_gregset): New register map for
2932         regcache_supply/_collect_regset.
2933         (s390_64_gregset): New regset.
2934         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2935         (regmap_fpregset): Delete macro.
2936         (s390_native_supply, s390_native_collect): Delete functions.
2937         (supply_gregset, fill_gregset): Replace s390-specific regmap
2938         handling by a call to regcache_supply/_collect_regset.
2939         (supply_fpregset, fill_fpregset): Call regcache_supply/
2940         _collect_regset instead of s390_native_supply/_collect.
2941         (fetch_regset, store_regset): Likewise.  Also change the last
2942         parameter to a regset instead of a regmap.
2943         (s390_linux_fetch_inferior_registers)
2944         (390_linux_store_inferior_registers): Adjust last parameter in
2945         calls to fetch_regset and store_regset.
2946         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2947         (s390_gregmap): ... this.  Also make static const and convert to
2948         regcache_map_entry format.
2949         (s390x_regmap_gregset): Delete.
2950         (s390_regmap_fpregset): Rename to...
2951         (s390_fpregmap): ... this.  Make static const and convert to
2952         regcache_map_entry format.
2953         (s390_regmap_upper, s390_regmap_last_break)
2954         (s390x_regmap_last_break, s390_regmap_system_call)
2955         (s390_regmap_tdb): Likewise.
2956         (s390_supply_regset, s390_collect_regset): Remove functions.
2957         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2958         s390_supply_regset.
2959         (s390_gregset, s390_fpregset, s390_upper_regset)
2960         (s390_last_break_regset, s390x_last_break_regset)
2961         (s390_system_call_regset, s390_tdb_regset): Make global and
2962         replace s390_supply/_collect_regset by regcache_supply/
2963         _collect_regset.
2964         (s390x_gregset): Delete.
2965         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2966         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2967         (s390_regmap_fpregset, s390_regmap_last_break)
2968         (s390x_regmap_last_break, s390_regmap_system_call)
2969         (s390_regmap_tdb): Delete global variable declarations.
2970         (s390_gregset, s390_fpregset, s390_last_break_regset)
2971         (s390x_last_break_regset, s390_system_call_regset)
2972         (s390_tdb_regset): New global variable declarations.
2973
2974 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2975
2976         * regcache.c: Include "regset.h".
2977         (regcache_transfer_regset): New local function.
2978         (regcache_supply_regset, regcache_collect_regset): New functions.
2979         * regcache.h (struct regcache_map_entry): New structure.
2980         (REGCACHE_MAP_SKIP): New enum value.
2981         (regcache_supply_regset, regcache_collect_regset): New prototypes.
2982
2983 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2984
2985         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2986         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2987         (ppc_linux_collect_gregset ): Likewise.
2988         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2989         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2990         (ppc_collect_vrregset): Likewise.
2991         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2992         Likewise.
2993
2994 2014-08-07  Yao Qi  <yao@codesourcery.com>
2995
2996         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2997         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2998         * remote.c (remote_read_bytes): Likewise.
2999
3000 2014-08-07  Yao Qi  <yao@codesourcery.com>
3001
3002         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3003
3004 2014-08-07  Yao Qi  <yao@codesourcery.com>
3005
3006         PR remote/17230
3007         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3008         TARGET_XFER_OK instead of 0.
3009
3010 2014-08-07  Gary Benson  <gbenson@redhat.com>
3011
3012         * common/common-defs.h: Include errno.h.
3013         * defs.h: Do not include errno.h.
3014         * ada-typeprint.c: Likewise.
3015         * c-typeprint.c: Likewise.
3016         * core-regset.c: Likewise.
3017         * corefile.c: Likewise.
3018         * corelow.c: Likewise.
3019         * event-loop.c: Likewise.
3020         * f-typeprint.c: Likewise.
3021         * gnu-nat.c: Likewise.
3022         * go32-nat.c: Likewise.
3023         * i386gnu-nat.c: Likewise.
3024         * m2-typeprint.c: Likewise.
3025         * nat/linux-btrace.c: Likewise.
3026         * p-typeprint.c: Likewise.
3027         * procfs.c: Likewise.
3028         * remote-sim.c: Likewise.
3029         * rs6000-nat.c: Likewise.
3030         * target.c: Likewise.
3031         * typeprint.c: Likewise.
3032         * ui-file.c: Likewise.
3033         * valops.c: Likewise.
3034         * valprint.c: Likewise.
3035
3036 2014-08-07  Gary Benson  <gbenson@redhat.com>
3037
3038         * common/common-defs.h: Include string.h.
3039         * aarch64-tdep.c: Do not include string.h.
3040         * ada-exp.y: Likewise.
3041         * ada-lang.c: Likewise.
3042         * ada-lex.l: Likewise.
3043         * ada-typeprint.c: Likewise.
3044         * ada-valprint.c: Likewise.
3045         * aix-thread.c: Likewise.
3046         * alpha-linux-tdep.c: Likewise.
3047         * alpha-mdebug-tdep.c: Likewise.
3048         * alpha-nat.c: Likewise.
3049         * alpha-osf1-tdep.c: Likewise.
3050         * alpha-tdep.c: Likewise.
3051         * alphanbsd-tdep.c: Likewise.
3052         * amd64-dicos-tdep.c: Likewise.
3053         * amd64-linux-tdep.c: Likewise.
3054         * amd64-nat.c: Likewise.
3055         * amd64-sol2-tdep.c: Likewise.
3056         * amd64fbsd-tdep.c: Likewise.
3057         * amd64obsd-tdep.c: Likewise.
3058         * arch-utils.c: Likewise.
3059         * arm-linux-nat.c: Likewise.
3060         * arm-linux-tdep.c: Likewise.
3061         * arm-tdep.c: Likewise.
3062         * arm-wince-tdep.c: Likewise.
3063         * armbsd-tdep.c: Likewise.
3064         * armnbsd-nat.c: Likewise.
3065         * armnbsd-tdep.c: Likewise.
3066         * armobsd-tdep.c: Likewise.
3067         * avr-tdep.c: Likewise.
3068         * ax-gdb.c: Likewise.
3069         * ax-general.c: Likewise.
3070         * bcache.c: Likewise.
3071         * bfin-tdep.c: Likewise.
3072         * breakpoint.c: Likewise.
3073         * build-id.c: Likewise.
3074         * buildsym.c: Likewise.
3075         * c-exp.y: Likewise.
3076         * c-lang.c: Likewise.
3077         * c-typeprint.c: Likewise.
3078         * c-valprint.c: Likewise.
3079         * charset.c: Likewise.
3080         * cli-out.c: Likewise.
3081         * cli/cli-cmds.c: Likewise.
3082         * cli/cli-decode.c: Likewise.
3083         * cli/cli-dump.c: Likewise.
3084         * cli/cli-interp.c: Likewise.
3085         * cli/cli-logging.c: Likewise.
3086         * cli/cli-script.c: Likewise.
3087         * cli/cli-setshow.c: Likewise.
3088         * cli/cli-utils.c: Likewise.
3089         * coffread.c: Likewise.
3090         * common/agent.c: Likewise.
3091         * common/buffer.c: Likewise.
3092         * common/buffer.h: Likewise.
3093         * common/common-utils.c: Likewise.
3094         * common/filestuff.c: Likewise.
3095         * common/filestuff.c: Likewise.
3096         * common/format.c: Likewise.
3097         * common/print-utils.c: Likewise.
3098         * common/rsp-low.c: Likewise.
3099         * common/signals.c: Likewise.
3100         * common/vec.h: Likewise.
3101         * common/xml-utils.c: Likewise.
3102         * core-regset.c: Likewise.
3103         * corefile.c: Likewise.
3104         * corelow.c: Likewise.
3105         * cp-abi.c: Likewise.
3106         * cp-name-parser.y: Likewise.
3107         * cp-support.c: Likewise.
3108         * cp-valprint.c: Likewise.
3109         * cris-tdep.c: Likewise.
3110         * d-exp.y: Likewise.
3111         * darwin-nat.c: Likewise.
3112         * dbxread.c: Likewise.
3113         * dcache.c: Likewise.
3114         * demangle.c: Likewise.
3115         * dicos-tdep.c: Likewise.
3116         * disasm.c: Likewise.
3117         * doublest.c: Likewise.
3118         * dsrec.c: Likewise.
3119         * dummy-frame.c: Likewise.
3120         * dwarf2-frame.c: Likewise.
3121         * dwarf2loc.c: Likewise.
3122         * dwarf2read.c: Likewise.
3123         * elfread.c: Likewise.
3124         * environ.c: Likewise.
3125         * eval.c: Likewise.
3126         * event-loop.c: Likewise.
3127         * exceptions.c: Likewise.
3128         * exec.c: Likewise.
3129         * expprint.c: Likewise.
3130         * f-exp.y: Likewise.
3131         * f-lang.c: Likewise.
3132         * f-typeprint.c: Likewise.
3133         * f-valprint.c: Likewise.
3134         * fbsd-nat.c: Likewise.
3135         * findcmd.c: Likewise.
3136         * findvar.c: Likewise.
3137         * fork-child.c: Likewise.
3138         * frame.c: Likewise.
3139         * frv-linux-tdep.c: Likewise.
3140         * frv-tdep.c: Likewise.
3141         * gdb.c: Likewise.
3142         * gdb_bfd.c: Likewise.
3143         * gdbarch.c: Likewise.
3144         * gdbarch.sh: Likewise.
3145         * gdbtypes.c: Likewise.
3146         * gnu-nat.c: Likewise.
3147         * gnu-v2-abi.c: Likewise.
3148         * gnu-v3-abi.c: Likewise.
3149         * go-exp.y: Likewise.
3150         * go-lang.c: Likewise.
3151         * go32-nat.c: Likewise.
3152         * guile/guile.c: Likewise.
3153         * guile/scm-auto-load.c: Likewise.
3154         * hppa-hpux-tdep.c: Likewise.
3155         * hppa-linux-nat.c: Likewise.
3156         * hppanbsd-tdep.c: Likewise.
3157         * hppaobsd-tdep.c: Likewise.
3158         * i386-cygwin-tdep.c: Likewise.
3159         * i386-dicos-tdep.c: Likewise.
3160         * i386-linux-tdep.c: Likewise.
3161         * i386-nto-tdep.c: Likewise.
3162         * i386-sol2-tdep.c: Likewise.
3163         * i386-tdep.c: Likewise.
3164         * i386bsd-tdep.c: Likewise.
3165         * i386gnu-nat.c: Likewise.
3166         * i386nbsd-tdep.c: Likewise.
3167         * i386obsd-tdep.c: Likewise.
3168         * i387-tdep.c: Likewise.
3169         * ia64-libunwind-tdep.c: Likewise.
3170         * ia64-linux-nat.c: Likewise.
3171         * inf-child.c: Likewise.
3172         * inf-ptrace.c: Likewise.
3173         * inf-ttrace.c: Likewise.
3174         * infcall.c: Likewise.
3175         * infcmd.c: Likewise.
3176         * inflow.c: Likewise.
3177         * infrun.c: Likewise.
3178         * interps.c: Likewise.
3179         * iq2000-tdep.c: Likewise.
3180         * irix5-nat.c: Likewise.
3181         * jv-exp.y: Likewise.
3182         * jv-lang.c: Likewise.
3183         * jv-typeprint.c: Likewise.
3184         * jv-valprint.c: Likewise.
3185         * language.c: Likewise.
3186         * linux-fork.c: Likewise.
3187         * linux-nat.c: Likewise.
3188         * lm32-tdep.c: Likewise.
3189         * m2-exp.y: Likewise.
3190         * m2-typeprint.c: Likewise.
3191         * m32c-tdep.c: Likewise.
3192         * m32r-linux-nat.c: Likewise.
3193         * m32r-linux-tdep.c: Likewise.
3194         * m32r-rom.c: Likewise.
3195         * m32r-tdep.c: Likewise.
3196         * m68hc11-tdep.c: Likewise.
3197         * m68k-tdep.c: Likewise.
3198         * m68kbsd-tdep.c: Likewise.
3199         * m68klinux-nat.c: Likewise.
3200         * m68klinux-tdep.c: Likewise.
3201         * m88k-tdep.c: Likewise.
3202         * machoread.c: Likewise.
3203         * macrocmd.c: Likewise.
3204         * main.c: Likewise.
3205         * mdebugread.c: Likewise.
3206         * mem-break.c: Likewise.
3207         * memattr.c: Likewise.
3208         * memory-map.c: Likewise.
3209         * mep-tdep.c: Likewise.
3210         * mi/mi-cmd-break.c: Likewise.
3211         * mi/mi-cmd-disas.c: Likewise.
3212         * mi/mi-cmd-env.c: Likewise.
3213         * mi/mi-cmd-stack.c: Likewise.
3214         * mi/mi-cmd-var.c: Likewise.
3215         * mi/mi-cmds.c: Likewise.
3216         * mi/mi-console.c: Likewise.
3217         * mi/mi-getopt.c: Likewise.
3218         * mi/mi-interp.c: Likewise.
3219         * mi/mi-main.c: Likewise.
3220         * mi/mi-parse.c: Likewise.
3221         * microblaze-rom.c: Likewise.
3222         * microblaze-tdep.c: Likewise.
3223         * mingw-hdep.c: Likewise.
3224         * minidebug.c: Likewise.
3225         * minsyms.c: Likewise.
3226         * mips-irix-tdep.c: Likewise.
3227         * mips-linux-tdep.c: Likewise.
3228         * mips-tdep.c: Likewise.
3229         * mips64obsd-tdep.c: Likewise.
3230         * mipsnbsd-tdep.c: Likewise.
3231         * mipsread.c: Likewise.
3232         * mn10300-linux-tdep.c: Likewise.
3233         * mn10300-tdep.c: Likewise.
3234         * monitor.c: Likewise.
3235         * moxie-tdep.c: Likewise.
3236         * mt-tdep.c: Likewise.
3237         * nat/linux-btrace.c: Likewise.
3238         * nat/linux-osdata.c: Likewise.
3239         * nat/linux-procfs.c: Likewise.
3240         * nat/linux-ptrace.c: Likewise.
3241         * nat/linux-waitpid.c: Likewise.
3242         * nbsd-tdep.c: Likewise.
3243         * nios2-linux-tdep.c: Likewise.
3244         * nto-procfs.c: Likewise.
3245         * nto-tdep.c: Likewise.
3246         * objc-lang.c: Likewise.
3247         * objfiles.c: Likewise.
3248         * opencl-lang.c: Likewise.
3249         * osabi.c: Likewise.
3250         * osdata.c: Likewise.
3251         * p-exp.y: Likewise.
3252         * p-lang.c: Likewise.
3253         * p-typeprint.c: Likewise.
3254         * parse.c: Likewise.
3255         * posix-hdep.c: Likewise.
3256         * ppc-linux-nat.c: Likewise.
3257         * ppc-sysv-tdep.c: Likewise.
3258         * ppcfbsd-tdep.c: Likewise.
3259         * ppcnbsd-tdep.c: Likewise.
3260         * ppcobsd-tdep.c: Likewise.
3261         * printcmd.c: Likewise.
3262         * procfs.c: Likewise.
3263         * prologue-value.c: Likewise.
3264         * python/py-auto-load.c: Likewise.
3265         * python/py-gdb-readline.c: Likewise.
3266         * ravenscar-thread.c: Likewise.
3267         * regcache.c: Likewise.
3268         * registry.c: Likewise.
3269         * remote-fileio.c: Likewise.
3270         * remote-m32r-sdi.c: Likewise.
3271         * remote-mips.c: Likewise.
3272         * remote-notif.c: Likewise.
3273         * remote-sim.c: Likewise.
3274         * remote.c: Likewise.
3275         * reverse.c: Likewise.
3276         * rs6000-aix-tdep.c: Likewise.
3277         * ser-base.c: Likewise.
3278         * ser-go32.c: Likewise.
3279         * ser-mingw.c: Likewise.
3280         * ser-pipe.c: Likewise.
3281         * ser-tcp.c: Likewise.
3282         * ser-unix.c: Likewise.
3283         * serial.c: Likewise.
3284         * sh-tdep.c: Likewise.
3285         * sh64-tdep.c: Likewise.
3286         * shnbsd-tdep.c: Likewise.
3287         * skip.c: Likewise.
3288         * sol-thread.c: Likewise.
3289         * solib-dsbt.c: Likewise.
3290         * solib-frv.c: Likewise.
3291         * solib-osf.c: Likewise.
3292         * solib-som.c: Likewise.
3293         * solib-spu.c: Likewise.
3294         * solib-target.c: Likewise.
3295         * solib.c: Likewise.
3296         * somread.c: Likewise.
3297         * source.c: Likewise.
3298         * sparc-nat.c: Likewise.
3299         * sparc-sol2-tdep.c: Likewise.
3300         * sparc-tdep.c: Likewise.
3301         * sparc64-tdep.c: Likewise.
3302         * sparc64fbsd-tdep.c: Likewise.
3303         * sparc64nbsd-tdep.c: Likewise.
3304         * sparcnbsd-tdep.c: Likewise.
3305         * spu-linux-nat.c: Likewise.
3306         * spu-multiarch.c: Likewise.
3307         * spu-tdep.c: Likewise.
3308         * stabsread.c: Likewise.
3309         * stack.c: Likewise.
3310         * std-regs.c: Likewise.
3311         * symfile.c: Likewise.
3312         * symmisc.c: Likewise.
3313         * symtab.c: Likewise.
3314         * target.c: Likewise.
3315         * thread.c: Likewise.
3316         * tilegx-linux-nat.c: Likewise.
3317         * tilegx-tdep.c: Likewise.
3318         * top.c: Likewise.
3319         * tracepoint.c: Likewise.
3320         * tui/tui-command.c: Likewise.
3321         * tui/tui-data.c: Likewise.
3322         * tui/tui-disasm.c: Likewise.
3323         * tui/tui-file.c: Likewise.
3324         * tui/tui-layout.c: Likewise.
3325         * tui/tui-out.c: Likewise.
3326         * tui/tui-regs.c: Likewise.
3327         * tui/tui-source.c: Likewise.
3328         * tui/tui-stack.c: Likewise.
3329         * tui/tui-win.c: Likewise.
3330         * tui/tui-windata.c: Likewise.
3331         * tui/tui-winsource.c: Likewise.
3332         * typeprint.c: Likewise.
3333         * ui-file.c: Likewise.
3334         * ui-out.c: Likewise.
3335         * user-regs.c: Likewise.
3336         * utils.c: Likewise.
3337         * v850-tdep.c: Likewise.
3338         * valarith.c: Likewise.
3339         * valops.c: Likewise.
3340         * valprint.c: Likewise.
3341         * value.c: Likewise.
3342         * varobj.c: Likewise.
3343         * vax-tdep.c: Likewise.
3344         * vaxnbsd-tdep.c: Likewise.
3345         * vaxobsd-tdep.c: Likewise.
3346         * windows-nat.c: Likewise.
3347         * xcoffread.c: Likewise.
3348         * xml-support.c: Likewise.
3349         * xstormy16-tdep.c: Likewise.
3350         * xtensa-linux-nat.c: Likewise.
3351
3352 2014-08-07  Gary Benson  <gbenson@redhat.com>
3353
3354         * common/common-defs.h: Include gdb_assert.h.
3355         * aarch64-tdep.c: Do not include gdb_assert.h.
3356         * addrmap.c: Likewise.
3357         * aix-thread.c: Likewise.
3358         * alpha-linux-tdep.c: Likewise.
3359         * alpha-mdebug-tdep.c: Likewise.
3360         * alphanbsd-tdep.c: Likewise.
3361         * amd64-nat.c: Likewise.
3362         * amd64-tdep.c: Likewise.
3363         * amd64bsd-nat.c: Likewise.
3364         * amd64fbsd-nat.c: Likewise.
3365         * amd64fbsd-tdep.c: Likewise.
3366         * amd64nbsd-nat.c: Likewise.
3367         * amd64nbsd-tdep.c: Likewise.
3368         * amd64obsd-nat.c: Likewise.
3369         * amd64obsd-tdep.c: Likewise.
3370         * arch-utils.c: Likewise.
3371         * arm-tdep.c: Likewise.
3372         * armbsd-tdep.c: Likewise.
3373         * auxv.c: Likewise.
3374         * bcache.c: Likewise.
3375         * bfin-tdep.c: Likewise.
3376         * blockframe.c: Likewise.
3377         * breakpoint.c: Likewise.
3378         * bsd-kvm.c: Likewise.
3379         * bsd-uthread.c: Likewise.
3380         * buildsym.c: Likewise.
3381         * c-exp.y: Likewise.
3382         * c-lang.c: Likewise.
3383         * charset.c: Likewise.
3384         * cleanups.c: Likewise.
3385         * cli-out.c: Likewise.
3386         * cli/cli-decode.c: Likewise.
3387         * cli/cli-dump.c: Likewise.
3388         * cli/cli-logging.c: Likewise.
3389         * cli/cli-script.c: Likewise.
3390         * cli/cli-utils.c: Likewise.
3391         * coffread.c: Likewise.
3392         * common/common-utils.c: Likewise.
3393         * common/queue.h: Likewise.
3394         * common/signals.c: Likewise.
3395         * common/vec.h: Likewise.
3396         * complaints.c: Likewise.
3397         * completer.c: Likewise.
3398         * corelow.c: Likewise.
3399         * cp-abi.c: Likewise.
3400         * cp-name-parser.y: Likewise.
3401         * cp-namespace.c: Likewise.
3402         * cp-support.c: Likewise.
3403         * cris-tdep.c: Likewise.
3404         * dbxread.c: Likewise.
3405         * dictionary.c: Likewise.
3406         * doublest.c: Likewise.
3407         * dsrec.c: Likewise.
3408         * dummy-frame.c: Likewise.
3409         * dwarf2-frame-tailcall.c: Likewise.
3410         * dwarf2-frame.c: Likewise.
3411         * dwarf2expr.c: Likewise.
3412         * dwarf2loc.c: Likewise.
3413         * dwarf2read.c: Likewise.
3414         * eval.c: Likewise.
3415         * event-loop.c: Likewise.
3416         * exceptions.c: Likewise.
3417         * expprint.c: Likewise.
3418         * f-valprint.c: Likewise.
3419         * fbsd-nat.c: Likewise.
3420         * findvar.c: Likewise.
3421         * frame-unwind.c: Likewise.
3422         * frame.c: Likewise.
3423         * frv-tdep.c: Likewise.
3424         * gcore.c: Likewise.
3425         * gdb-dlfcn.c: Likewise.
3426         * gdb_bfd.c: Likewise.
3427         * gdbarch.c: Likewise.
3428         * gdbarch.sh: Likewise.
3429         * gdbtypes.c: Likewise.
3430         * gnu-nat.c: Likewise.
3431         * gnu-v3-abi.c: Likewise.
3432         * go-lang.c: Likewise.
3433         * guile/scm-exception.c: Likewise.
3434         * guile/scm-gsmob.c: Likewise.
3435         * guile/scm-lazy-string.c: Likewise.
3436         * guile/scm-math.c: Likewise.
3437         * guile/scm-pretty-print.c: Likewise.
3438         * guile/scm-safe-call.c: Likewise.
3439         * guile/scm-utils.c: Likewise.
3440         * guile/scm-value.c: Likewise.
3441         * h8300-tdep.c: Likewise.
3442         * hppa-hpux-nat.c: Likewise.
3443         * hppa-tdep.c: Likewise.
3444         * hppanbsd-tdep.c: Likewise.
3445         * hppaobsd-tdep.c: Likewise.
3446         * i386-darwin-nat.c: Likewise.
3447         * i386-darwin-tdep.c: Likewise.
3448         * i386-nto-tdep.c: Likewise.
3449         * i386-tdep.c: Likewise.
3450         * i386bsd-nat.c: Likewise.
3451         * i386fbsd-tdep.c: Likewise.
3452         * i386gnu-nat.c: Likewise.
3453         * i386nbsd-tdep.c: Likewise.
3454         * i386obsd-tdep.c: Likewise.
3455         * i387-tdep.c: Likewise.
3456         * ia64-libunwind-tdep.c: Likewise.
3457         * ia64-tdep.c: Likewise.
3458         * inf-ptrace.c: Likewise.
3459         * inf-ttrace.c: Likewise.
3460         * infcall.c: Likewise.
3461         * infcmd.c: Likewise.
3462         * infrun.c: Likewise.
3463         * inline-frame.c: Likewise.
3464         * interps.c: Likewise.
3465         * jv-lang.c: Likewise.
3466         * jv-typeprint.c: Likewise.
3467         * linux-fork.c: Likewise.
3468         * linux-nat.c: Likewise.
3469         * linux-thread-db.c: Likewise.
3470         * m32c-tdep.c: Likewise.
3471         * m32r-linux-nat.c: Likewise.
3472         * m32r-tdep.c: Likewise.
3473         * m68k-tdep.c: Likewise.
3474         * m68kbsd-nat.c: Likewise.
3475         * m68kbsd-tdep.c: Likewise.
3476         * m88k-tdep.c: Likewise.
3477         * machoread.c: Likewise.
3478         * macroexp.c: Likewise.
3479         * macrotab.c: Likewise.
3480         * maint.c: Likewise.
3481         * mdebugread.c: Likewise.
3482         * memory-map.c: Likewise.
3483         * mep-tdep.c: Likewise.
3484         * mi/mi-common.c: Likewise.
3485         * microblaze-tdep.c: Likewise.
3486         * mingw-hdep.c: Likewise.
3487         * mips-linux-nat.c: Likewise.
3488         * mips-linux-tdep.c: Likewise.
3489         * mips-tdep.c: Likewise.
3490         * mips64obsd-tdep.c: Likewise.
3491         * mipsnbsd-tdep.c: Likewise.
3492         * mn10300-linux-tdep.c: Likewise.
3493         * mn10300-tdep.c: Likewise.
3494         * moxie-tdep.c: Likewise.
3495         * mt-tdep.c: Likewise.
3496         * nat/linux-btrace.c: Likewise.
3497         * nat/linux-osdata.c: Likewise.
3498         * nat/linux-ptrace.c: Likewise.
3499         * nat/mips-linux-watch.c: Likewise.
3500         * nios2-linux-tdep.c: Likewise.
3501         * nios2-tdep.c: Likewise.
3502         * objc-lang.c: Likewise.
3503         * objfiles.c: Likewise.
3504         * obsd-nat.c: Likewise.
3505         * opencl-lang.c: Likewise.
3506         * osabi.c: Likewise.
3507         * parse.c: Likewise.
3508         * ppc-linux-nat.c: Likewise.
3509         * ppc-sysv-tdep.c: Likewise.
3510         * ppcfbsd-nat.c: Likewise.
3511         * ppcfbsd-tdep.c: Likewise.
3512         * ppcnbsd-nat.c: Likewise.
3513         * ppcnbsd-tdep.c: Likewise.
3514         * ppcobsd-nat.c: Likewise.
3515         * ppcobsd-tdep.c: Likewise.
3516         * printcmd.c: Likewise.
3517         * procfs.c: Likewise.
3518         * prologue-value.c: Likewise.
3519         * psymtab.c: Likewise.
3520         * python/py-lazy-string.c: Likewise.
3521         * python/py-value.c: Likewise.
3522         * regcache.c: Likewise.
3523         * reggroups.c: Likewise.
3524         * registry.c: Likewise.
3525         * remote-sim.c: Likewise.
3526         * remote.c: Likewise.
3527         * rs6000-aix-tdep.c: Likewise.
3528         * rs6000-tdep.c: Likewise.
3529         * s390-linux-tdep.c: Likewise.
3530         * score-tdep.c: Likewise.
3531         * ser-base.c: Likewise.
3532         * ser-mingw.c: Likewise.
3533         * sh-tdep.c: Likewise.
3534         * sh64-tdep.c: Likewise.
3535         * solib-darwin.c: Likewise.
3536         * solib-spu.c: Likewise.
3537         * solib-svr4.c: Likewise.
3538         * source.c: Likewise.
3539         * sparc-nat.c: Likewise.
3540         * sparc-sol2-tdep.c: Likewise.
3541         * sparc-tdep.c: Likewise.
3542         * sparc64-sol2-tdep.c: Likewise.
3543         * sparc64-tdep.c: Likewise.
3544         * sparc64fbsd-tdep.c: Likewise.
3545         * sparc64nbsd-tdep.c: Likewise.
3546         * sparc64obsd-tdep.c: Likewise.
3547         * sparcnbsd-tdep.c: Likewise.
3548         * sparcobsd-tdep.c: Likewise.
3549         * spu-multiarch.c: Likewise.
3550         * spu-tdep.c: Likewise.
3551         * stabsread.c: Likewise.
3552         * stack.c: Likewise.
3553         * symfile.c: Likewise.
3554         * symtab.c: Likewise.
3555         * target-descriptions.c: Likewise.
3556         * target-memory.c: Likewise.
3557         * target.c: Likewise.
3558         * tic6x-linux-tdep.c: Likewise.
3559         * tic6x-tdep.c: Likewise.
3560         * tilegx-linux-nat.c: Likewise.
3561         * tilegx-tdep.c: Likewise.
3562         * top.c: Likewise.
3563         * tramp-frame.c: Likewise.
3564         * tui/tui-out.c: Likewise.
3565         * tui/tui-winsource.c: Likewise.
3566         * ui-out.c: Likewise.
3567         * user-regs.c: Likewise.
3568         * utils.c: Likewise.
3569         * v850-tdep.c: Likewise.
3570         * valops.c: Likewise.
3571         * value.c: Likewise.
3572         * varobj.c: Likewise.
3573         * vax-nat.c: Likewise.
3574         * xml-syscall.c: Likewise.
3575         * xml-tdesc.c: Likewise.
3576         * xstormy16-tdep.c: Likewise.
3577         * xtensa-linux-nat.c: Likewise.
3578         * xtensa-tdep.c: Likewise.
3579
3580 2014-08-07  Gary Benson  <gbenson@redhat.com>
3581
3582         * common/common-defs.h: Include common-utils.h.
3583         * defs.h: Do not include common-utils.h.
3584         * common/gdb_assert.h: Likewise.
3585         * darwin-nat.h: Likewise.
3586         * nat/linux-btrace.c: Likewise.
3587         * target/waitstatus.h: Likewise.
3588
3589 2014-08-07  Gary Benson  <gbenson@redhat.com>
3590
3591         * common/common-defs.h: Include ptid.h.
3592         * defs.h: Do not include ptid.h.
3593         * inferior.h: Likewise.
3594         * infrun.h: Likewise.
3595         * nat/linux-btrace.h: Likewise.
3596         * nat/linux-osdata.h: Likewise.
3597         * target/waitstatus.h: Likewise.
3598
3599 2014-08-07  Gary Benson  <gbenson@redhat.com>
3600
3601         * common/common-defs.h: Include gdb_locale.h.
3602         * defs.h: Do not include gdb_locale.h.
3603
3604 2014-08-07  Gary Benson  <gbenson@redhat.com>
3605
3606         * common/common-defs.h: Include gdb/signals.h.
3607         * defs.h: Do not include gdb/signals.h.
3608
3609 2014-08-07  Gary Benson  <gbenson@redhat.com>
3610
3611         * common/common-defs.h: Include pathmax.h.
3612         * defs.h: Do not include pathmax.h.
3613
3614 2014-08-07  Gary Benson  <gbenson@redhat.com>
3615
3616         * common/common-defs.h: Include libiberty.h.
3617         * defs.h: Do not include libiberty.h.
3618         * common/queue.h: Likewise.
3619         * cp-name-parser.y: Likewise.
3620         * mi/mi-cmd-catch.c: Likewise.
3621         * python/python.c: Likewise.
3622
3623 2014-08-07  Gary Benson  <gbenson@redhat.com>
3624
3625         * common/common-defs.h: Include ansidecl.h.
3626         * defs.h: Do not include ansidecl.h.
3627         * common/buffer.h: Likewise.
3628         * common/common-utils.h: Likewise.
3629
3630 2014-08-07  Gary Benson  <gbenson@redhat.com>
3631
3632         * common/common-defs.h: Include stddef.h.
3633         * defs.h: Do not include stddef.h.
3634         * common/common-utils.h: Likewise.
3635         * amd64fbsd-nat.c: Likewise.
3636         * bcache.c: Likewise.
3637         * charset.c: Likewise.
3638         * common/buffer.h: Likewise.
3639         * common/vec.h: Likewise.
3640         * i386bsd-nat.c: Likewise.
3641         * nat/linux-btrace.h: Likewise.
3642         * ppcfbsd-nat.c: Likewise.
3643         * ppcnbsd-tdep.h: Likewise.
3644         * ppcobsd-nat.c: Likewise.
3645         * ppcobsd-tdep.h: Likewise.
3646         * python/py-gdb-readline.c: Likewise.
3647
3648 2014-08-07  Gary Benson  <gbenson@redhat.com>
3649
3650         * common/common-defs.h: Include stdarg.h.
3651         * defs.h: Do not include stdarg.h.
3652         * ada-lang.c: Likewise.
3653         * common/common-utils.h: Likewise.
3654         * guile/scm-string.c: Likewise.
3655         * guile/scm-utils.c: Likewise.
3656         * m32c-tdep.c: Likewise.
3657
3658 2014-08-07  Gary Benson  <gbenson@redhat.com>
3659
3660         * common/common-defs.h: Include stdlib.h.
3661         * defs.h: Do not include stdlib.h.
3662         * addrmap.c: Likewise.
3663         * bcache.c: Likewise.
3664         * common/buffer.c: Likewise.
3665         * common/common-utils.c: Likewise.
3666         * cp-name-parser.y: Likewise.
3667         * go32-nat.c: Likewise.
3668         * mn10300-linux-tdep.c: Likewise.
3669         * nat/linux-osdata.c: Likewise.
3670         * tui/tui.c: Likewise.
3671         * windows-nat.c: Likewise.
3672
3673 2014-08-07  Gary Benson  <gbenson@redhat.com>
3674
3675         * common/common-defs.h: Include stdio.h.
3676         * defs.h: Do not include stdio.h.
3677         * ada-lang.c: Likewise.
3678         * common/buffer.c: Likewise.
3679         * common/common-utils.c: Likewise.
3680         * cp-name-parser.y: Likewise.
3681         * gnu-nat.c: Likewise.
3682         * go32-nat.c: Likewise.
3683         * i386gnu-nat.c: Likewise.
3684         * proc-api.c: Likewise.
3685         * proc-events.c: Likewise.
3686         * proc-flags.c: Likewise.
3687         * proc-why.c: Likewise.
3688         * python/python-internal.h: Likewise.
3689         * target-memory.c: Likewise.
3690         * tui/tui-io.c: Likewise.
3691         * tui/tui.c: Likewise.
3692
3693 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
3694
3695         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3696         (scan_dyntag_auxv): Same.
3697
3698 2014-08-06  Yao Qi  <yao@codesourcery.com>
3699
3700         * amd64-linux-nat.c: Remove duplicated include
3701         "x86-linux-nat.h".
3702         * i386-linux-nat.c: Likewise.
3703
3704 2014-08-06  Yao Qi  <yao@codesourcery.com>
3705
3706         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3707         operand" with "Special opcode" in comments.
3708
3709 2014-08-05  Gary Benson  <gbenson@redhat.com>
3710
3711         * interps.c (initialize_interps): Remove prototype.
3712         (interpreter_initialized): Remove static global.
3713         (interp_add): Do not call initialize_interps.
3714         (initialize_interps): Remove function.
3715
3716 2014-08-05  Gary Benson  <gbenson@redhat.com>
3717
3718         * utils.c (vwarning): Remove spurious va_end.
3719
3720 2014-08-05  Alan Modra  <amodra@gmail.com>
3721
3722         * charset.c (convert_between_encodings): Cast result of obstack_base.
3723         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3724         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3725         (read_unwind_info): Use size_t for some locals.
3726         * jit.c (finalize_symtab): Likewise.
3727         * utils.c (hashtab_obstack_allocate): Likewise.
3728         * symmisc.c (print_objfile_statistics): Update format strings.
3729
3730 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3731
3732         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3733         (Changes in GDB 7.8): ... here.
3734
3735 2014-08-04  Tom Tromey  <tromey@redhat.com>
3736
3737         * target.c (set_targetdebug): New function.
3738         (initialize_targets): Pass set_targetdebug when creating "set
3739         debug target".
3740
3741 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3742
3743         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3744         if detecting a variable-sized field that is not the last field.
3745         Fix struct type length computation.
3746
3747 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3748
3749         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3750         Add debug trace.
3751
3752 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3753
3754         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3755         Remove "+ 8" offset in computation of CHAIN_VMA.
3756
3757 2014-07-31  Doug Evans  <dje@google.com>
3758
3759         * inflow.c (child_terminal_inferior): Add comment.
3760         (child_terminal_ours_for_output): Add comment.
3761         (child_terminal_ours): Add comment.
3762         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3763         (linux_nat_terminal_ours): Add comment.
3764
3765 2014-07-31  Gary Benson  <gbenson@redhat.com>
3766
3767         * common/btrace-common.h: Do not include defs.h or server.h.
3768         * nat/mips-linux-watch.h: Likewise.
3769         * gdb-dlfcn.h: Do not include defs.h.
3770         * tracefile.h: Likewise.
3771
3772 2014-07-30  Roland McGrath  <mcgrathr@google.com>
3773
3774         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3775
3776 2014-07-30  Tom Tromey  <tromey@redhat.com>
3777
3778         * bsd-kvm.c (bsd_kvm_open): Constify.
3779         * corelow.c (core_open): Constify.
3780         * ctf.c (ctf_open): Constify.
3781         * dbug-rom.c (dbug_open): Constify.
3782         * exec.c (exec_open): Constify.
3783         * m32r-rom.c (m32r_open, mon2000_open): Constify.
3784         * microblaze-rom.c (picobug_open): Constify.
3785         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3786         Constify.
3787         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3788         * record-btrace.c (record_btrace_open): Constify.
3789         * record-full.c (record_full_core_open_1, record_full_open_1)
3790         (record_full_open): Constify.
3791         * remote-m32r-sdi.c (m32r_open): Constify.
3792         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3793         (rockhopper_open, lsi_open): Constify.
3794         * remote-sim.c (gdbsim_open): Constify.
3795         * remote.c (remote_open, extended_remote_open, remote_open_1):
3796         Constify.
3797         * target.h (struct target_ops) <to_open>: Make "arg" const.
3798         * tracefile-tfile.c (tfile_open): Constify.
3799
3800 2014-07-30  Tom Tromey  <tromey@redhat.com>
3801
3802         * breakpoint.c (map_breakpoint_numbers): Update.
3803         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
3804         (get_number_const): New function.
3805         (get_number): Rewrite using get_number_const.
3806         (init_number_or_range): Make "string" const.
3807         (number_is_in_list): Make "list" const.
3808         * cli/cli-utils.h (get_number_const): Declare.
3809         (struct get_number_or_range_state) <string, end_ptr>: Now const.
3810         (init_number_or_range, number_is_in_list): Update.
3811         * printcmd.c (map_display_numbers): Update.
3812         * value.c (value_from_history_ref): Constify.
3813         * value.h (value_from_history_ref): Update.
3814
3815 2014-07-30  Tom Tromey  <tromey@redhat.com>
3816
3817         * corefile.c (hook_type, call_extra_exec_file_hooks)
3818         (specify_exec_file_hook): Constify.
3819         * exec.c (exec_file_attach): Make "filename" const.
3820         * gdbcore.h (deprecated_exec_file_display_hook)
3821         (specify_exec_file_hook, exec_file_attach): Constify.
3822         * main.c (captured_main): Use catch_command_errors_const.
3823
3824 2014-07-30  Tom Tromey  <tromey@redhat.com>
3825
3826         * target.c (open_target): New function.
3827         (add_target_with_completer, add_deprecated_target_alias): Use
3828         set_cmd_sfunc, set_cmd_context.
3829         (debug_to_open): Remove.
3830         (setup_target_debug): Update.
3831
3832 2014-07-30  Yao Qi  <yao@codesourcery.com>
3833
3834         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3835         comments.
3836         * parse.c (exp_iterate): Update comments.
3837
3838 2014-07-30  Gary Benson  <gbenson@redhat.com>
3839
3840         * common/common-defs.h: New file.
3841         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3842         * defs.h: Include common-defs.h.
3843         Do not include config.h or build-gnulib/config.h.
3844
3845 2014-07-30  Gary Benson  <gbenson@redhat.com>
3846
3847         * common/common-utils.h: Do not include config.h.
3848         * nat/linux-btrace.h: Likewise.
3849
3850 2014-07-30  Gary Benson  <gbenson@redhat.com>
3851
3852         * btrace.c: Include defs.h.
3853         * common/ptid.c: Include defs.h or server.h as appropriate.
3854         * nat/mips-linux-watch.c: Likewise.
3855
3856 2014-07-29  Tom Tromey  <tromey@redhat.com>
3857
3858         * target.c (target_is_pushed): Simplify.
3859
3860 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
3861
3862         GDB 7.8 released.
3863
3864 2014-07-29  Yao Qi  <yao@codesourcery.com>
3865
3866         PR gdb/17206
3867         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3868
3869 2014-07-28  Doug Evans  <xdje42@gmail.com>
3870
3871         PR guile/17203
3872         * guile/scm-param.c (pascm_parameter_defined_p): New function.
3873         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
3874         parameters.
3875
3876 2014-07-28  Will Newton  <will.newton@linaro.org>
3877
3878         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3879         (THUMB2_SET_R7_SIGRETURN2): Likewise.
3880         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3881         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3882         (THUMB2_EABI_SYSCALL): Likewise.
3883         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3884         struct tramp_frame.
3885         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3886         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3887
3888 2014-07-27  Doug Evans  <xdje42@gmail.com>
3889
3890         * guile/scm-param.c (pascm_print_param_smob): Fix output.
3891
3892 2014-07-27  Doug Evans  <xdje42@gmail.com>
3893
3894         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3895
3896 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3897             Doug Evans  <xdje42@gmail.com>
3898
3899         PR guile/17146
3900         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3901         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3902         * configure.ac: Try to use guild to compile an scm file, if it fails
3903         then disable guile support.
3904         * configure: Regenerate.
3905         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3906         GUILE_FILE_LIST.
3907         (GUILE_COMPILED_FILES): New variable.
3908         (GUILE_FILES) Update.
3909         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3910         (stamp-guile): Compile scm files.
3911         * guile/guile.c (boot_guile_support): New function.
3912         (standard_throw_args_p): New function.
3913         (print_standard_throw_error, print_throw_error): New functions.
3914         (handle_boot_error): New function.
3915         (initialize_scheme_side): Rewrite to call boot_guile_support.
3916         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
3917         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3918
3919 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3920             Doug Evans  <xdje42@gmail.com>
3921
3922         PR guile/17146
3923         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3924         * guile/lib/gdb/support.scm: New file.
3925         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3926         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3927         All uses updated.
3928         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3929         All uses updated.
3930         (%assert-type): Ditto, and renamed to assert-type.
3931         (%exception-print-style): Delete.
3932
3933 2014-07-26  Doug Evans  <xdje42@gmail.com>
3934
3935         PR build/17105
3936         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3937         * configure: Regenerate.
3938         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3939         PYTHON_FILES.
3940         (PYTHON_FILES): New variable.
3941         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3942         (GUILE_FILES): New variable.
3943         (stamp-python, install-python, uninstall-python): Handle empty
3944         file list.
3945         (stamp-guile, install-guile, uninstall-guile): Ditto.
3946
3947 2014-07-26  Doug Evans  <xdje42@gmail.com>
3948
3949         PR guile/17177
3950         * guile/lib/gdb.scm (pretty-printers): Export.
3951         (set-pretty-printers!): Export.
3952         * guile/lib/gdb/printing.scm (gdb module): Update.
3953         (prepend-pretty-printer!, append-pretty-printer!): Update.
3954         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3955         (pretty_printer_list_var): Delete.
3956         (pretty_printer_list): New static global.
3957         (gdbscm_pretty_printers): New function.
3958         (gdbscm_set_pretty_printers_x): New function.
3959         (ppscm_find_pretty_printer_from_gdb): Update.
3960         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3961         (gdbscm_initialize_pretty_printers): Update.
3962
3963 2014-07-26  Doug Evans  <xdje42@gmail.com>
3964
3965         PR 17185
3966         * configure.ac: Add check for header gc/gc.h.
3967         Add check for function setenv.
3968         * configure: Regenerate.
3969         * config.in: Regenerate.
3970         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3971
3972 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
3973
3974         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3975         variation in gdbarch matching.
3976
3977 2014-07-25  Tom Tromey  <tromey@redhat.com>
3978
3979         * exec.c (using_exec_ops): Remove.
3980         (exec_close_1): Update.  Remove extraneous block, reindent.
3981         (add_target_sections): Use target_is_pushed.
3982
3983 2014-07-25  Pedro Alves  <palves@redhat.com>
3984
3985         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3986         * monitor.c (monitor_create_inferior): Likewise.
3987         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3988         * remote-sim.c (gdbsim_create_inferior): Likewise.
3989         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3990         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3991         * windows-nat.c (do_initial_windows_stuff): Likewise.
3992
3993 2014-07-25  Pedro Alves  <palves@redhat.com>
3994
3995         * NEWS: Mention signal passing and "signal" command changes.
3996         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3997         comment.
3998         * breakpoint.c (until_break_command): Adjust clear_proceed_status
3999         call.
4000         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4001         * infcmd.c (proceed_thread_callback, continue_1, step_once)
4002         (jump_command): Adjust clear_proceed_status call.
4003         (signal_command): Warn if other thread that are resumed have
4004         signals that will be delivered.  Adjust clear_proceed_status call.
4005         (until_next_command, finish_command)
4006         (proceed_after_attach_callback, attach_command_post_wait)
4007         (attach_command): Adjust clear_proceed_status call.
4008         * infrun.c (proceed_after_vfork_done): Likewise.
4009         (proceed_after_attach_callback): Adjust comment.
4010         (clear_proceed_status_thread): Clear stop_signal if not in pass
4011         state.
4012         (clear_proceed_status_callback): Delete.
4013         (clear_proceed_status): New 'step' parameter.  Only clear the
4014         proceed status of threads the command being prepared is about to
4015         resume.
4016         (proceed): If passed in an explicit signal, override stop_signal
4017         with it.  Don't pass the last stop signal to the thread we're
4018         resuming.
4019         (init_wait_for_inferior): Adjust clear_proceed_status call.
4020         (switch_back_to_stepped_thread): Clear the signal if it should not
4021         be passed.
4022         * infrun.h (clear_proceed_status): New 'step' parameter.
4023         (user_visible_resume_ptid): Add comment.
4024         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4025         signal is in pass state.
4026         * remote.c (append_pending_thread_resumptions): Likewise.
4027         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4028
4029 2014-07-25  Tom Tromey  <tromey@redhat.com>
4030
4031         * target.h (target_stopped_data_address)
4032         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
4033         parentheses.
4034
4035 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
4036
4037         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4038         comments.
4039         (avr_pointer_to_address): Likewise.
4040
4041 2014-07-24  Tom Tromey  <tromey@redhat.com>
4042
4043         * monitor.c (compile_pattern): Update.
4044         * target.h (struct target_ops) <to_shortname, to_longname,
4045         to_doc>: Now const.
4046
4047 2014-07-24  Tom Tromey  <tromey@redhat.com>
4048
4049         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4050         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4051         (add_info_alias, add_com): Make "doc" const.
4052         (print_doc_line): Make "str" const.
4053         (delete_cmd): Update.
4054         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4055         (print_doc_line): Update.
4056         * cli/cli-script.c (document_command): Update.
4057         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4058         (add_com, add_info, add_info_alias): Update.
4059         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4060         * python/py-cmd.c (cmdpy_destroyer): Update.
4061
4062 2014-07-24  Tom Tromey  <tromey@redhat.com>
4063
4064         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4065         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4066         (help_cmd_list): Constify.
4067         (lookup_cmd): Update.
4068         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4069         const.
4070         (help_cmd_list, apropos_cmd): Update.
4071         * cli/cli-script.c (show_user): Update.
4072         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4073         * cli/cli-setshow.h (cmd_show_list): Update.
4074         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4075         (cmd_show_list): Update.
4076         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4077         * python/py-cmd.c (cmdpy_destroyer): Update.
4078
4079 2014-07-24  Tom Tromey  <tromey@redhat.com>
4080
4081         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4082         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4083         const.
4084         * command.h (deprecate_cmd): Update.
4085         * maint.c (maintenance_do_deprecate): Add casts.
4086
4087 2014-07-24  Tom Tromey  <tromey@redhat.com>
4088
4089         * cli/cli-decode.c (help_cmd): Make parameter "const".
4090         * cli/cli-decode.h (help_cmd): Update.
4091
4092 2014-07-24  Tom Tromey  <tromey@redhat.com>
4093
4094         * stack.c (up_silently_base, down_silently_base): Make argument
4095         const.
4096
4097 2014-07-24  Tom Tromey  <tromey@redhat.com>
4098
4099         * solib.c (solib_add): Make "pattern" const.
4100         * solib.h (solib_add): Update.
4101
4102 2014-07-24  Tom Tromey  <tromey@redhat.com>
4103
4104         * remote.c (remote_serial_open, print_packet, putpkt)
4105         (putpkt_binary): Constify.
4106         * remote.h (putpkt): Update.
4107
4108 2014-07-24  Tom Tromey  <tromey@redhat.com>
4109
4110         * monitor.c (monitor_open): Make "args" const.
4111         * monitor.h (monitor_open): Update.
4112
4113 2014-07-24  Tom Tromey  <tromey@redhat.com>
4114
4115         * maint.c (match_bfd_flags): Make "string" const.
4116         (print_bfd_section_info): Remove casts.
4117         (print_objfile_section_info): Make "string" const.
4118
4119 2014-07-24  Tom Tromey  <tromey@redhat.com>
4120
4121         * inf-child.c (inf_child_open_target): Make "arg" const.
4122         * inf-child.h (inf_child_open_target): Update.
4123
4124 2014-07-24  Tom Tromey  <tromey@redhat.com>
4125
4126         * environ.c (unset_in_environ): Make "var" const.
4127         * environ.h (unset_in_environ): Update.
4128
4129 2014-07-24  Tom Tromey  <tromey@redhat.com>
4130
4131         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4132         Make "cmd" const.
4133         (scan_filename_with_cleanup): Likewise.
4134         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4135         Make arguments const.
4136         (restore_command): Update.
4137
4138 2014-07-24  Pedro Alves  <palves@redhat.com>
4139
4140         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4141
4142 2014-07-24  Tom Tromey  <tromey@redhat.com>
4143             Gary Benson  <gbenson@redhat.com>
4144
4145         * nat/linux-ptrace.c (additional_flags): New global.
4146         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4147         additional_flags; don't check GDBSERVER.
4148         (linux_ptrace_set_additional_flags): New function.
4149         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4150         Declare.
4151         * linux-nat.c (_initialize_linux_nat): Call
4152         linux_ptrace_set_additional_flags.
4153
4154 2014-07-24  Tom Tromey  <tromey@redhat.com>
4155
4156         * make-target-delegates (munge_type, write_debugmethod): New
4157         functions.
4158         (debug_names): New global.
4159         ($TARGET_DEBUG_PRINTER): New global.
4160         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4161         name.
4162         Write debug methods.  Generate init_debug_target.
4163         * target-debug.h: New file.
4164         * target-delegates.c: Rebuild.
4165         * target.c: Include target-debug.h.
4166         (debug_target): Hoist definition.
4167         (target_kill, target_get_section_table, target_memory_map)
4168         (target_flash_erase, target_flash_done, target_detach)
4169         (target_disconnect, target_wait, target_resume)
4170         (target_pass_signals, target_program_signals, target_follow_fork)
4171         (target_mourn_inferior, target_search_memory)
4172         (target_thread_address_space, target_close)
4173         (target_find_new_threads, target_core_of_thread)
4174         (target_verify_memory, target_insert_mask_watchpoint)
4175         (target_remove_mask_watchpoint): Remove targetdebug code.
4176         (debug_to_post_attach, debug_to_prepare_to_store)
4177         (debug_to_files_info, debug_to_insert_breakpoint)
4178         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4179         (debug_to_region_ok_for_hw_watchpoint)
4180         (debug_to_can_accel_watchpoint_condition)
4181         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4182         (debug_to_watchpoint_addr_within_range)
4183         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4184         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4185         (debug_to_terminal_init, debug_to_terminal_inferior)
4186         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4187         (debug_to_terminal_save_ours, debug_to_terminal_info)
4188         (debug_to_load, debug_to_post_startup_inferior)
4189         (debug_to_insert_fork_catchpoint)
4190         (debug_to_remove_fork_catchpoint)
4191         (debug_to_insert_vfork_catchpoint)
4192         (debug_to_remove_vfork_catchpoint)
4193         (debug_to_insert_exec_catchpoint)
4194         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4195         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4196         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4197         (setup_target_debug): Call init_debug_target.
4198         * target.h (TARGET_DEBUG_PRINTER): New macro.
4199         (struct target_ops) <to_resume, to_wait, to_pass_signals,
4200         to_program_signals>: Use TARGET_DEBUG_PRINTER.
4201
4202 2014-07-24  Gary Benson  <gbenson@redhat.com>
4203
4204         * exceptions.h (throw_vfatal): Renamed to...
4205         (throw_vquit): New declaration.
4206         (throw_quit): Likewise.
4207         * exceptions.c (throw_vfatal): Renamed to...
4208         (throw_vquit): New function.
4209         (throw_quit): Likewise.
4210         (throw_error): Call throw_verror rather than throw_it.
4211         * utils.h (vfatal): Removed.
4212         (fatal): Likewise.
4213         * utils.c (vfatal): Removed.
4214         (fatal): Likewise.
4215         (internal_verror): Replaced call to fatal with call to throw_quit.
4216         (quit): Replaced calls to fatal with calls to throw_quit.
4217
4218 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
4219
4220         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4221         target_read_code.
4222
4223 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
4224
4225         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4226         less than zero in conditional expression.
4227
4228 2014-07-23  Tom Tromey  <tromey@redhat.com>
4229
4230         * make-target-delegates ($ARGS_PART): Match trailing close paren.
4231         ($INTRO_PART): Don't match whitespace.
4232         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
4233         argument matching.
4234         ($METHOD): Add $METHOD_TRAILER.
4235         (trim): Rewrite.
4236         (scan_target_h): New sub.
4237         Change main loop not to collect state.
4238         * target-delegates.c: Rebuild.
4239
4240 2014-07-23  Gary Benson  <gbenson@redhat.com>
4241
4242         * cp-support.c (gdb_demangle): Fix build on systems without
4243         sigaltstack.
4244
4245 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4246
4247         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4248         for reference entry value target data value.
4249
4250 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4251
4252         * stack.c (read_frame_arg): Verify value_optimized_out before calling
4253         value_available_contents_eq.
4254
4255 2014-07-22  Pedro Alves  <palves@redhat.com>
4256
4257         * value.c (allocate_optimized_out_value): Don't mark value as
4258         non-lazy.
4259
4260 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
4261
4262         * MAINTAINERS (Write After Approval): Update my email address.
4263
4264 2014-07-20  Doug Evans  <dje@google.com>
4265
4266         PR server/17147
4267         * remote.c (putpkt_binary): Add text to error message.
4268
4269 2014-07-20  Yao Qi  <yao@codesourcery.com>
4270
4271         * eval.c: Remove "Chill" from comments.
4272         * gdbtypes.h: Likewise.
4273         * symtab.h: Likewise.
4274
4275 2014-07-20  Yao Qi  <yao@codesourcery.com>
4276
4277         * std-operator.def: Update comments to TERNOP_SLICE.
4278
4279 2014-07-20  Yao Qi  <yao@codesourcery.com>
4280
4281         * std-operator.def: Remove BINOP_RANGE.
4282         * breakpoint.c (watchpoint_exp_is_const): Update.
4283         * expprint.c (dump_subexp_body_standard): Likewise.
4284         * eval.c (init_array_element): Remove dead code.
4285         (evaluate_subexp_standard): Likewise.
4286
4287 2014-07-20  Yao Qi  <yao@codesourcery.com>
4288
4289         * std-operator.def: Remove BINOP_IN.
4290         * breakpoint.c (watchpoint_exp_is_const): Update.
4291         * eval.c (evaluate_subexp_standard): Likewise.
4292         * expprint.c (dump_subexp_body_standard): Likewise.
4293
4294 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
4295
4296         * microblaze-tdep.c (microblaze_register_names): Add
4297         the rshr and rslr register names.
4298         (microblaze_gdbarch_init): Use of tdesc_has_registers.
4299         Use of tdesc_find_feature. Use of tdesc_data_alloc.
4300         Use of tdesc_numbered_register. Use of
4301         microblaze_register_g_packet_guesses. Use of
4302         tdesc_use_registers. Use of set_gdbarch_register_type.
4303         (microblaze_register_g_packet_guesses): New.
4304         * microblaze-tdep.h (microblaze_reg_num): Add
4305         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4306         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4307         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4308         * features/microblaze-core.xml: New file.
4309         * features/microblaze-stack-protect.xml: New file.
4310         * features/microblaze-with-stack-protect.c: New file.
4311         * features/microblaze-with-stack-protect.xml: New file.
4312         * features/microblaze.xml: New file.
4313         * features/microblaze.c: New file.
4314         * features/Makefile (microblaze-with-stack-protect): Add
4315         microblaze-with-stack-protect microblaze and microblaze-expedite.
4316         * regformats/microblaze-with-stack-protect.dat: New file.
4317         * regformats/microblaze.dat: New file.
4318         * doc/gdb.texinfo (MicroBlaze Features): Added.
4319
4320 2014-07-18  Tom Tromey  <tromey@redhat.com>
4321
4322         * exec.c (exec_ops): Now static.
4323         * exec.h (exec_ops): Don't declare.
4324
4325 2014-07-18  Tom Tromey  <tromey@redhat.com>
4326
4327         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4328         to find_target_beneath.
4329         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4330         find_target_beneath.
4331         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4332
4333 2014-07-18  Tom Tromey  <tromey@redhat.com>
4334
4335         PR gdb/17130:
4336         * utils.c (quit): Use target_supports_terminal_ours.
4337         * target.h (target_supports_terminal_ours): Declare.
4338         * target.c (target_supports_delete_record): Don't check
4339         to_delete_record against NULL.
4340         (target_supports_terminal_ours): New function.
4341
4342 2014-07-18  Tom Tromey  <tromey@redhat.com>
4343
4344         PR gdb/17130:
4345         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4346         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4347         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4348         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4349         * windows-nat.c (windows_xfer_partial): Always delegate.
4350         * record-btrace.c (record_btrace_xfer_partial): Simplify
4351         delegation.
4352         (record_btrace_fetch_registers, record_btrace_store_registers)
4353         (record_btrace_prepare_to_store, record_btrace_resume)
4354         (record_btrace_wait, record_btrace_find_new_threads)
4355         (record_btrace_thread_alive): Likewise.
4356         * procfs.c (procfs_xfer_partial): Always delegate.
4357         * corelow.c (core_xfer_partial): Always delegate.
4358         * sol-thread.c (sol_find_new_threads): Simplify delegation.
4359
4360 2014-07-18  Tom Tromey  <tromey@redhat.com>
4361
4362         * exec.c (exec_make_note_section): Move earlier.
4363
4364 2014-07-17  Doug Evans  <dje@google.com>
4365
4366         PR gdb/17170
4367         * maint.c (count_symtabs_and_blocks): Handle NULL
4368         current_program_space.
4369         (report_command_stats): Check global enabled flag in addition to
4370         recorded enabled flag.
4371         (make_command_stats_cleanup): Handle msg_type == 0, startup.
4372
4373 2014-07-16  Pedro Alves  <palves@redhat.com>
4374
4375         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4376
4377 2014-07-16  Tom Tromey  <tromey@redhat.com>
4378
4379         * target.h (struct target_ops) <to_delete_record>: Reformat
4380         comment.
4381
4382 2014-07-16  Tom Tromey  <tromey@redhat.com>
4383
4384         * target-delegates.c: Rebuild.
4385
4386 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
4387
4388         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4389         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4390         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4391         (avr_pointer_to_address): Likewise.
4392         (avr_address_class_type_flags): New function.
4393         (avr_address_class_type_flags_to_name): Likewise.
4394         (avr_address_class_name_to_type_flags): Likewise.
4395         (avr_gdbarch_init): Set address_class_type_flags,
4396         address_class_type_flags_to_name and
4397         address_class_name_to_type_flags.
4398
4399 2014-07-15  Pedro Alves  <palves@redhat.com>
4400
4401         * linux-nat.c (kill_callback): Save errno and work with saved
4402         copy.
4403
4404 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
4405
4406         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4407
4408 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4409
4410         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4411         breakpoint support correctly.
4412
4413 2014-07-14  Pedro Alves  <palves@redhat.com>
4414
4415         * utils.c (prompt_for_continue): Call target_terminal_ours.
4416
4417 2014-07-14  Pedro Alves  <palves@redhat.com>
4418
4419         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4420         catch_errors.  Don't re-enable stdin or notify observers where,
4421         and rethrow error.
4422         (fetch_inferior_event_wrapper): Delete.
4423
4424 2014-07-14  Pedro Alves  <palves@redhat.com>
4425
4426         PR gdb/17072
4427         * top.c: Include "inf-loop.h".
4428         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4429         field.
4430         (gdb_readline_wrapper_cleanup): Make the target async again, if it
4431         was async before.
4432         (gdb_readline_wrapper): Store whether the target is async, and
4433         make it sync.
4434
4435 2014-07-14  Pedro Alves  <palves@redhat.com>
4436
4437         PR gdb/17072
4438         * top.c (gdb_readline_wrapper_line): Tweak comment.
4439         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4440         the input handler callback.
4441
4442 2014-07-14  Pedro Alves  <palves@redhat.com>
4443
4444         PR gdb/17072
4445         * main.c: Include event-top.h.
4446         (handle_command_errors): New function.
4447         (catch_command_errors, catch_command_errors_const): Use it.
4448
4449 2014-07-14  Pedro Alves  <palves@redhat.com>
4450
4451         * exceptions.c (catch_command_errors, catch_command_errors_const):
4452         Moved to main.c.
4453         * exceptions.h (catch_command_errors_ftype)
4454         (catch_command_errors_const_ftype): Moved to main.c.
4455         (catch_command_errors, catch_command_errors_const): Delete
4456         declarations.
4457         * main.c (catch_command_errors_ftype)
4458         (catch_command_errors_const_ftype): Moved here from exceptions.h.
4459         (catch_command_errors, catch_command_errors_const)): Moved here
4460         from exceptions.c and make static.
4461
4462 2014-07-14  Pedro Alves  <palves@redhat.com>
4463
4464         * exceptions.c (print_any_exception): Delete.
4465         (catch_exceptions_with_msg): Use exception_print instead of
4466         print_any_exception.
4467         (catch_errors): Use exception_fprintf instead of
4468         print_any_exception.
4469         (catch_command_errors, catch_command_errors_const): Use
4470         exception_print instead of print_any_exception.
4471
4472 2014-07-14  Pedro Alves  <palves@redhat.com>
4473
4474         * infcall.c (run_inferior_call): Set 'sync_execution' while
4475         running the inferior call.
4476
4477 2014-07-14  Pedro Alves  <palves@redhat.com>
4478
4479         * value.c (value_contents_equal): Delete function.
4480         * value.h (value_contents_equal): Delete declaration.
4481
4482 2014-07-14  Tom Tromey  <tromey@redhat.com>
4483
4484         PR exp/17106:
4485         * gdbtypes.c (is_dynamic_type_internal): New function, from
4486         is_dynamic_type.
4487         (is_dynamic_type): Rewrite.
4488         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4489         (resolve_dynamic_struct): Likewise.
4490         (resolve_dynamic_type_internal): New function, from
4491         resolve_dynamic_type.
4492         (resolve_dynamic_type): Rewrite.
4493
4494 2014-07-14  Tom Tromey  <tromey@redhat.com>
4495
4496         * target.c (target_require_runnable): Also check record_stratum.
4497         Update comment.
4498
4499 2014-07-11  Yao Qi  <yao@codesourcery.com>
4500
4501         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4502         thumb_instruction_restores_sp return true.
4503
4504 2014-07-11  Yao Qi  <yao@codesourcery.com>
4505
4506         * arm-tdep.c (thumb_instruction_restores_sp): New function.
4507         (thumb_in_function_epilogue_p): Call
4508         thumb_instruction_restores_sp.
4509
4510 2014-07-11  Yao Qi  <yao@codesourcery.com>
4511
4512         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4513         'add sp, #imm'.
4514         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4515
4516 2014-07-11  Gary Benson  <gbenson@redhat.com>
4517
4518         * amd64-linux-nat.c (gdbcore.h): Remove include.
4519         (regset.h): Likewise.
4520         (nat/linux-btrace.h): Likewise.
4521         (btrace.h): Likewise.
4522         (gdb_assert.h): Likewise.
4523         (string.h): Likewise.
4524         (sys/uio.h): Likewise.
4525         (sys/debugreg.h): Likewise.
4526         (sys/syscall.h): Likewise.
4527         (sys/procfs.h): Likewise.
4528         (sys/user.h): Likewise.
4529         (asm/ptrace.h): Likewise.
4530         (i386-nat.h): Likewise.
4531         * i386-linux-nat.c (i386-nat.h): Likewise.
4532         (regset.h): Likewise.
4533         (target.h): Likewise.
4534         (linux-nat.h): Likewise.
4535         (nat/linux-btrace.h): Likewise.
4536         (btrace.h): Likewise.
4537         (gdb_assert.h): Likewise.
4538         (string.h): Likewise.
4539         (sys/uio.h): Likewise.
4540         (sys/user.h): Likewise.
4541         (sys/procfs.h): Likewise.
4542         (sys/reg.h): Likewise.
4543         (sys/debugreg.h): Likewise.
4544         (ORIG_EAX): Remove definition.
4545
4546 2014-07-11  Gary Benson  <gbenson@redhat.com>
4547
4548         * i386-linux-nat.h: New file.
4549         * x86-linux-nat.h: Likewise.
4550         * x86-linux-nat.c: Likewise.
4551         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4552         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4553         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4554         * amd64-linux-nat.c (x86-linux-nat.h): New include.
4555         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4556         (PTRACE_SETREGSET): Likewise.
4557         (arch_lwp_info): Now in x86-linux-nat.c.
4558         (have_ptrace_getregset): Now in x86-linux-nat.h.
4559         (x86_linux_dr_get): Now in x86-linux-nat.c.
4560         (x86_linux_dr_set): Likewise.
4561         (x86_linux_dr_get_addr): Likewise.
4562         (x86_linux_dr_get_control): Likewise.
4563         (x86_linux_dr_get_status): Likewise.
4564         (update_debug_registers_callback): Likewise.
4565         (x86_linux_dr_set_control): Likewise.
4566         (x86_linux_dr_set_addr): Likewise.
4567         (x86_linux_prepare_to_resume): Likewise.
4568         (x86_linux_new_thread): Likewise.
4569         (x86_linux_new_fork): Likewise.
4570         (x86_linux_get_thread_area): Likewise.
4571         (super_post_startup_inferior): Likewise.
4572         (x86_linux_child_post_startup_inferior): Likewise.
4573         (AMD64_LINUX_USER64_CS): Likewise.
4574         (AMD64_LINUX_X32_DS): Likewise.
4575         (x86_linux_read_description): Likewise.
4576         (x86_linux_enable_btrace): Likewise.
4577         (x86_linux_disable_btrace): Likewise.
4578         (x86_linux_teardown_btrace): Likewise.
4579         (x86_linux_read_btrace): Likewise.
4580         (x86_linux_create_target): Likewise.
4581         (x86_linux_add_target): Likewise.
4582         * i386-linux-nat.c (x86-linux-nat.h): New include.
4583         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4584         (PTRACE_SETREGSET): Likewise.
4585         (arch_lwp_info): Now in x86-linux-nat.c.
4586         (have_ptrace_getregset): Now in x86-linux-nat.h.
4587         (x86_linux_dr_get): Now in x86-linux-nat.c.
4588         (x86_linux_dr_set): Likewise.
4589         (x86_linux_dr_get_addr): Likewise.
4590         (x86_linux_dr_get_control): Likewise.
4591         (x86_linux_dr_get_status): Likewise.
4592         (update_debug_registers_callback): Likewise.
4593         (x86_linux_dr_set_control): Likewise.
4594         (x86_linux_dr_set_addr): Likewise.
4595         (x86_linux_prepare_to_resume): Likewise.
4596         (x86_linux_new_thread): Likewise.
4597         (x86_linux_new_fork): Likewise.
4598         (x86_linux_get_thread_area): Likewise.
4599         (super_post_startup_inferior): Likewise.
4600         (x86_linux_child_post_startup_inferior): Likewise.
4601         (AMD64_LINUX_USER64_CS): Likewise.
4602         (AMD64_LINUX_X32_DS): Likewise.
4603         (x86_linux_read_description): Likewise.
4604         (x86_linux_enable_btrace): Likewise.
4605         (x86_linux_disable_btrace): Likewise.
4606         (x86_linux_teardown_btrace): Likewise.
4607         (x86_linux_read_btrace): Likewise.
4608         (x86_linux_create_target): Likewise.
4609         (x86_linux_add_target): Likewise.
4610
4611 2014-07-11  Gary Benson  <gbenson@redhat.com>
4612
4613         * amd64-linux-nat.c: Comment and whitespace changes.
4614         * i386-linux-nat.c: Comment and whitespace changes.
4615
4616 2014-07-11  Gary Benson  <gbenson@redhat.com>
4617
4618         * amd64-linux-nat.c (x86_linux_create_target): New function.
4619         (x86_linux_add_target): Likewise.
4620         (_initialize_amd64_linux_nat): Delegate to the above new functions.
4621         * i386-linux-nat.c (x86_linux_create_target): New function.
4622         (x86_linux_add_target): Likewise.
4623         (_initialize_i386_linux_nat): Delegate to the above new functions.
4624
4625 2014-07-11  Gary Benson  <gbenson@redhat.com>
4626
4627         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4628         (ps_get_thread_area): Delegate to the above in 32-bit mode.
4629         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4630         (ps_get_thread_area): Delegate to the above.
4631
4632 2014-07-11  Gary Benson  <gbenson@redhat.com>
4633
4634         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4635         x86_linux_read_description.  All uses updated.  amd64-specific
4636         code conditionalized.  Conditionalized i386-specific code added.
4637         Redundant cast removed.
4638         * i386-linux-nat.c (i386_linux_read_description): Renamed to
4639         x86_linux_read_description.  All uses updated.  i386-specific
4640         code conditionalized.  Conditionalized amd64-specific code added.
4641         One sizeof replaced with the actual type it is describing.
4642
4643 2014-07-11  Gary Benson  <gbenson@redhat.com>
4644
4645         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4646         x86_linux_dr_get.  All uses updated.
4647         (amd64_linux_dr_set): Renamed to
4648         x86_linux_dr_set.  All uses updated.
4649         (amd64_linux_dr_get_addr): Renamed to
4650         x86_linux_dr_get_addr.  All uses updated.
4651         (amd64_linux_dr_get_control): Renamed to
4652         x86_linux_dr_get_control.  All uses updated.
4653         (amd64_linux_dr_get_status): Renamed to
4654         x86_linux_dr_get_status.  All uses updated.
4655         (amd64_linux_dr_set_control): Renamed to
4656         x86_linux_dr_set_control.  All uses updated.
4657         (amd64_linux_dr_set_addr): Renamed to
4658         x86_linux_dr_set_addr.  All uses updated.
4659         (amd64_linux_prepare_to_resume): Renamed to
4660         x86_linux_prepare_to_resume.  All uses updated.
4661         (amd64_linux_new_thread): Renamed to
4662         x86_linux_new_thread.  All uses updated.
4663         (amd64_linux_new_fork): Renamed to
4664         x86_linux_new_fork.  All uses updated.
4665         (amd64_linux_child_post_startup_inferior): Renamed to
4666         x86_linux_child_post_startup_inferior.  All uses updated.
4667         (amd64_linux_enable_btrace): Renamed to
4668         x86_linux_enable_btrace.  All uses updated.
4669         (amd64_linux_disable_btrace): Renamed to
4670         x86_linux_disable_btrace.  All uses updated.
4671         (amd64_linux_teardown_btrace): Renamed to
4672         x86_linux_teardown_btrace.  All uses updated.
4673         (amd64_linux_read_btrace): Renamed to
4674         x86_linux_read_btrace.  All uses updated.
4675         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4676         x86_linux_dr_get.  All uses updated.
4677         (i386_linux_dr_set): Renamed to
4678         x86_linux_dr_set.  All uses updated.
4679         (i386_linux_dr_get_addr): Renamed to
4680         x86_linux_dr_get_addr.  All uses updated.
4681         (i386_linux_dr_get_control): Renamed to
4682         x86_linux_dr_get_control.  All uses updated.
4683         (i386_linux_dr_get_status): Renamed to
4684         x86_linux_dr_get_status.  All uses updated.
4685         (i386_linux_dr_set_control): Renamed to
4686         x86_linux_dr_set_control.  All uses updated.
4687         (i386_linux_dr_set_addr): Renamed to
4688         x86_linux_dr_set_addr.  All uses updated.
4689         (i386_linux_prepare_to_resume): Renamed to
4690         x86_linux_prepare_to_resume.  All uses updated.
4691         (i386_linux_new_thread): Renamed to
4692         x86_linux_new_thread.  All uses updated.
4693         (i386_linux_new_fork): Renamed to
4694         x86_linux_new_fork.  All uses updated.
4695         (i386_linux_child_post_startup_inferior): Renamed to
4696         x86_linux_child_post_startup_inferior.  All uses updated.
4697         (i386_linux_enable_btrace): Renamed to
4698         x86_linux_enable_btrace.  All uses updated.
4699         (i386_linux_disable_btrace): Renamed to
4700         x86_linux_disable_btrace.  All uses updated.
4701         (i386_linux_teardown_btrace): Renamed to
4702         x86_linux_teardown_btrace.  All uses updated.
4703         (i386_linux_read_btrace): Renamed to
4704         x86_linux_read_btrace.  All uses updated.
4705
4706 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
4707
4708         * remote.c (extended_remote_post_attach): New function.
4709         (init_extended_remote_ops): Install it as to_post_attach method.
4710
4711 2014-07-09  Pedro Alves  <palves@redhat.com>
4712
4713         * infcmd.c (attach_command_post_wait): Don't call
4714         target_terminal_inferior here.
4715         (attach_command): Call it here instead.
4716
4717 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4718
4719         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4720         field.
4721         * c-varobj.c (c_is_path_expr_parent): New function, moved core
4722         from varobj.c, with additional checks.
4723         (c_varobj_ops): Fill in is_path_expr_parent field.
4724         (cplus_varobj_ops): Fill in is_path_expr_parent field.
4725         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4726         field.
4727         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4728         ops method.
4729         (varobj_default_is_path_expr_parent): New function.
4730         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4731         (varobj_default_is_path_expr_parent): Declare new function.
4732
4733 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
4734
4735         * infcmd.c (finish_backward): Turn internal error into normal error.
4736
4737 2014-07-07  Pedro Alves  <palves@redhat.com>
4738
4739         PR gdb/17096
4740         * remote.c (async_handle_remote_sigint)
4741         (async_handle_remote_sigint_twice): Call
4742         gdb_call_async_signal_handler instead of
4743         mark_async_signal_handler.
4744
4745 2014-07-07  Tom Tromey  <tromey@redhat.com>
4746
4747         * target-delegates.c: Rebuild.
4748         * target.c (target_info_record): Remove.
4749         * record.c (info_record_command): Unconditionally call
4750         to_info_record.
4751         * target.h (struct target_ops) <to_info_record>: Use
4752         TARGET_DEFAULT_IGNORE.
4753         (target_info_record): Remove.
4754
4755 2014-07-07  Tom Tromey  <tromey@redhat.com>
4756
4757         * target.h (struct target_ops) <to_get_thread_local_address>: Use
4758         TARGET_DEFAULT_NORETURN.
4759         * target.c (generic_tls_error): New function.
4760         (target_translate_tls_address): Don't search target stack.
4761         * target-delegates.c: Rebuild.
4762         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4763         stack.
4764         * linux-thread-db.c (thread_db_get_thread_local_address):
4765         Unconditionally call beneath target.
4766
4767 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
4768
4769         * cli/cli-logging.c (pop_output_files): Assign targerr to
4770         gdb_stdtargerr.
4771
4772 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
4773
4774         * MAINTAINERS (Write After Approval): Update my email address.
4775
4776 2014-07-02  Gary Benson  <gbenson@redhat.com>
4777
4778         * proc-service.c (ps_xfer_memory): Update comment.
4779         (ps_pstop): Remove unused function.
4780         (ps_pcontinue): Likewise.
4781         (ps_lstop): Likewise.
4782         (ps_lcontinue): Likewise.
4783         (ps_lgetxregsize): Likewise.
4784         (ps_lgetxregs): Likewise.
4785         (ps_lsetxregs): Likewise.
4786         (ps_plog): Likewise.
4787         (ps_ptread): Likewise.
4788         (ps_ptwrite): Likewise.
4789
4790 2014-07-01  Mark Wielaard  <mjw@redhat.com>
4791
4792         * dwarf2read.c (add_array_cv_type): New function.
4793         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4794         (read_tag_volatile_type): Likewise.
4795
4796 2014-07-01  Tom Tromey  <tromey@redhat.com>
4797
4798         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4799         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4800         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4801         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4802         * command.h (cmd_cfunc_ftype): Move earlier.
4803         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4804         (add_com, add_info): Use cmd_cfunc_ftype.
4805
4806 2014-06-30  Tom Tromey  <tromey@redhat.com>
4807
4808         * symtab.c (operator_chars): Make parameters and return type
4809         const.
4810         (file_matches): Make "files" const.
4811         (struct search_symbols_data) <files>: Now const.
4812         (search_symbols): Make "regexp" and "files" parameters const.
4813         Update.
4814         (symtab_symbol_info): Remove cast.
4815         (rbreak_command): Update.
4816         * symtab.h (search_symbols): Update.
4817
4818 2014-06-27  Yao Qi  <yao@codesourcery.com>
4819
4820         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4821         Change parameter type to 'struct thread_info *'.  Caller
4822         updated.
4823         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4824         Update declaration.
4825         * dummy-frame.c (struct dummy_frame_id): New.
4826         (dummy_frame_id_eq): New function.
4827         (struct dummy_frame) <id>: Change its type to 'struct
4828         dummy_frame_id'.
4829         (dummy_frame_push): Add parameter ptid and save it in
4830         dummy_frame_id.
4831         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4832         inferior_ptid.
4833         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4834         to inferior_ptid.
4835         (lookup_dummy_frame): Change parameter type to 'struct
4836         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
4837         instead of frame_id_eq.
4838         (dummy_frame_pop): Add parameter ptid.  Callers updated.
4839         Update comments.  Compose dummy_frame_id and pass it to
4840         lookup_dummy_frame.
4841         (dummy_frame_discard): Add parameter ptid.
4842         (dummy_frame_sniffer): Compose dummy_frame_id and call
4843         dummy_frame_id_eq instead of frame_id_eq.
4844         (fprint_dummy_frames): Print ptid.
4845         * dummy-frame.h: Remove comments.
4846         (dummy_frame_push): Add ptid in declaration.
4847         (dummy_frame_pop, dummy_frame_discard): Likewise.
4848
4849 2014-06-26  Tom Tromey  <tromey@redhat.com>
4850
4851         * cli/cli-cmds.c (error_no_arg): Make "why" const.
4852         * command.h (error_no_arg): Update.
4853
4854 2014-06-26  Tom Tromey  <tromey@redhat.com>
4855
4856         * cli/cli-setshow.c (do_set_command): Make "arg" const.
4857         (do_show_command): Make "arg" const.
4858         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4859
4860 2014-06-26  Tom Tromey  <tromey@redhat.com>
4861
4862         * record-full.c (record_full_get_bookmark): Make "args" const.
4863         (record_full_goto_bookmark): Make "raw_bookmark" const.
4864         * record.c (record_goto): New function.
4865         (cmd_record_goto): Use it.  Now static.
4866         * record.h (record_goto): Declare.
4867         (cmd_record_goto): Remove declaration.
4868         * target-delegates.c: Rebuild.
4869         * target.h (struct target_ops) <to_get_bookmark,
4870         to_goto_bookmark>: Make parameter const.
4871
4872 2014-06-26  Tom Tromey  <tromey@redhat.com>
4873
4874         * defs.h (generic_load): Update.
4875         * m32r-rom.c (m32r_load_gen): Make "filename" const.
4876         * monitor.c (monitor_load): Make "args" const.
4877         * remote-m32r-sdi.c (m32r_load): Make "args" const.
4878         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4879         const.
4880         (mips_load): Make "file" const.
4881         * remote-sim.c (gdbsim_load): Make "args" const.
4882         * remote.c (remote_load): Make "name" const.
4883         * symfile.c (generic_load): Make "args" const.
4884         * target-delegates.c: Rebuild.
4885         * target.c (target_load): Make "arg" const.
4886         (debug_to_load): Make "args" const.
4887         * target.h (struct target_ops) <to_load>: Make parameter const.
4888         (target_load): Update.
4889
4890 2014-06-26  Tom Tromey  <tromey@redhat.com>
4891
4892         PR symtab/16902:
4893         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4894         (dwarf2_physname, read_partial_die)
4895         (guess_partial_die_structure_name, fixup_partial_die)
4896         (guess_full_die_structure_name, anonymous_struct_prefix)
4897         (dwarf2_name): Use per-BFD obstack.
4898
4899 2014-06-26  Yao Qi  <yao@codesourcery.com>
4900
4901         * dummy-frame.c (dummy_frame_sniffer): Move local variables
4902         dummyframe and this_id into inner block below.
4903
4904 2014-06-26  Yao Qi  <yao@codesourcery.com>
4905
4906         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4907         with "signal_pass[0]" in the initialization of signal_pass.
4908
4909 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4910
4911         * record-btrace.c (record_btrace_generating_corefile)
4912         (record_btrace_prepare_to_generate_core)
4913         (record_btrace_done_generating_core): New.
4914         (record_btrace_xfer_partial, record_btrace_fetch_registers)
4915         (record_btrace_store_registers, record_btrace_prepare_to_store):
4916         Forward request when generating a core file.
4917         (record_btrace_open): Set record_btrace_generating_corefile to zero.
4918         (init_record_btrace_ops): Set to_prepare_to_generate_core and
4919         to_done_generating_core.
4920
4921 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4922
4923         * target.h (target_ops) <to_prepare_to_generate_core>
4924         <to_done_generating_core>: New.
4925         (target_prepare_to_generate_core, target_done_generating_core): New.
4926         * target.c (target_prepare_to_generate_core)
4927         (target_done_generating_core): New.
4928         * target-delegates.c: Regenerate.
4929         * gcore.c: (write_gcore_file): Rename to ...
4930         (write_gcore_file_1): ...this.
4931         (write_gcore_file): Call target_prepare_to_generate_core
4932         and target_done_generating_core.
4933
4934 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4935
4936         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4937         * gcore.c (write_gcore_file): Free memory returned from
4938         make_corefile_notes.
4939         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4940         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4941
4942 2014-06-24  Yao Qi  <yao@codesourcery.com>
4943
4944         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4945         (arm_linux_init_abi): Set skip_trampoline_code with
4946         gdbarch_skip_trampoline_code instead of
4947         find_solib_trampoline_target.
4948
4949 2014-06-24  Yao Qi  <yao@codesourcery.com>
4950
4951         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4952         arm_skip_bx_reg returns non-zero.
4953
4954 2014-06-24  Yao Qi  <yao@codesourcery.com>
4955
4956         * arm-tdep.c (arm_skip_bx_reg): New function.
4957         (arm_skip_stub): Call arm_skip_bx_reg.
4958
4959 2014-06-23  Don Breazeal  <donb@codesourcery.com>
4960
4961         * MAINTAINERS: Add myself as write-after-approval maintainer.
4962
4963 2014-06-23  Pedro Alves  <palves@redhat.com>
4964
4965         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4966         DR_CONTROL before setting DR0..DR3.
4967         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4968         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4969         bits of DR_CONTROL related to the debug register slot being
4970         disabled.  If all slots are vacant, clear local slowdown as well,
4971         and assert DR_CONTROL is 0.
4972
4973 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
4974
4975         * python/lib/gdb/command/xmethods.py
4976         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
4977         current progspace only if the string "progspace" matches LOCUS_RE.
4978
4979 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4980
4981         Fix --with-system-readline with readline-6.3 patch 5.
4982         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4983         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4984         types.
4985
4986 2014-06-20  Tom Tromey  <tromey@redhat.com>
4987
4988         * dwarf2read.c (dw2_get_real_path): Use correct type in
4989         OBSTACK_CALLOC.
4990         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4991
4992 2014-06-20  Gary Benson  <gbenson@redhat.com>
4993
4994         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
4995         * common/glibc_thread_db.h: Likewise.
4996         * common/i386-cpuid.h: Likewise.
4997         * common/i386-gcc-cpuid.h: Likewise.
4998         * common/linux-btrace.h: Likewise.
4999         * common/linux-osdata.h: Likewise.
5000         * common/linux-procfs.h: Likewise.
5001         * common/linux-ptrace.h: Likewise.
5002         * common/mips-linux-watch.h: Likewise.
5003         * common/linux-btrace.c: Moved to nat.
5004         * common/linux-osdata.c: Likewise.
5005         * common/linux-procfs.c: Likewise.
5006         * common/linux-ptrace.c: Likewise.
5007         * common/mips-linux-watch.c: Likewise.
5008         * nat/gdb_thread_db.h: Moved from common.
5009         * nat/glibc_thread_db.h: Likewise.
5010         * nat/i386-cpuid.h: Likewise.
5011         * nat/i386-gcc-cpuid.h: Likewise.
5012         * nat/linux-btrace.c: Likewise.
5013         * nat/linux-btrace.h: Likewise.
5014         * nat/linux-osdata.c: Likewise.
5015         * nat/linux-osdata.h: Likewise.
5016         * nat/linux-procfs.c: Likewise.
5017         * nat/linux-procfs.h: Likewise.
5018         * nat/linux-ptrace.c: Likewise.
5019         * nat/linux-ptrace.h: Likewise.
5020         * nat/mips-linux-watch.c: Likewise.
5021         * nat/mips-linux-watch.h: Likewise.
5022         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5023         (object file files): Reordered.
5024         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5025         of glibc_thread_db.h.
5026
5027 2014-06-20  Gary Benson  <gbenson@redhat.com>
5028
5029         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5030         (i386_dr_low_type): Moved to nat/i386-dregs.h.
5031         (i386_dr_low): Likewise.
5032         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5033         (i386_dr_low_set_addr): Likewise.
5034         (i386_dr_low_get_addr): Likewise.
5035         (i386_dr_low_can_set_control): Likewise.
5036         (i386_dr_low_set_control): Likewise.
5037         (i386_dr_low_get_control): Likewise.
5038         (i386_dr_low_get_status): Likewise.
5039         (i386_get_debug_register_length): Likewise.
5040         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5041         (i386_dr_low): Likewise.
5042         * nat/i386-dregs.c (i386-low.h): Remove include.
5043         (i386-nat.h): Likewise.
5044         (nat/i386-dregs.h): New include.
5045         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5046         (i386_dr_low_set_addr): Likewise.
5047         (i386_dr_low_get_addr): Likewise.
5048         (i386_dr_low_can_set_control): Likewise.
5049         (i386_dr_low_set_control): Likewise.
5050         (i386_dr_low_get_control): Likewise.
5051         (i386_dr_low_get_status): Likewise.
5052         (i386_get_debug_register_length): Likewise.
5053         (debug_hw_points): Likewise.
5054
5055 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
5056
5057         * Makefile.in (SFILES): Add d-exp.y.
5058         (YYFILES): Add d-exp.c.
5059         (YYOBJ): Add d-exp.o.
5060         (local-maintainer-clean): Delete d-exp.c.
5061         * d-exp.y: New file.
5062         * d-lang.h (d_parse): New declaration.
5063         (d_error): New declaration.
5064         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5065         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5066         PREC_ORDER operators.
5067         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5068
5069 2014-06-19  Yao Qi  <yao@codesourcery.com>
5070
5071         * gdbthread.h (any_running): Remove the declaration.
5072         * thread.c (any_running): Remove.
5073
5074 2014-06-19  Yao Qi  <yao@codesourcery.com>
5075
5076         * gdbthread.h (struct thread_info) <state>: Change its type to
5077         'enum thread_state'.  Update comments.
5078
5079 2014-06-19  Pedro Alves  <palves@redhat.com>
5080
5081         * gdbthread.h (ALL_THREADS): Delete.
5082         (ALL_NON_EXITED_THREADS): New macro.
5083         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5084         instead of ALL_THREADS.
5085         * infrun.c (find_thread_needs_step_over)
5086         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5087         instead of ALL_THREADS.
5088         * record-btrace.c (record_btrace_open)
5089         (record_btrace_stop_recording, record_btrace_close)
5090         (record_btrace_is_replaying, record_btrace_resume)
5091         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5092         * remote.c (append_pending_thread_resumptions): Likewise.
5093         * thread.c (thread_apply_all_command): Likewise.
5094
5095 2014-06-19  Gary Benson  <gbenson@redhat.com>
5096
5097         * i386-nat.c (i386_stopped_by_watchpoint):
5098         Use i386_dr_stopped_by_watchpoint.
5099         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5100         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5101
5102 2014-06-19  Gary Benson  <gbenson@redhat.com>
5103
5104         * nat/i386-dregs.c: New file.
5105         * Makefile.in (i386-dregs.o): New rule.
5106         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5107         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5108         * config/i386/darwin.mh (NATDEPFILES): Likewise.
5109         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5110         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5111         * config/i386/go32.mh (NATDEPFILES): Likewise.
5112         * config/i386/linux.mh (NATDEPFILES): Likewise.
5113         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5114         * config/i386/mingw.mh (NATDEPFILES): Likewise.
5115         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5116         * i386-nat.h (debug_hw_points): New declaration.
5117         * i386-nat.c (breakpoint.h): Remove include.
5118         (command.h): Likewise.
5119         (target.h): Likewise.
5120         (gdb_assert.h): Likewise.
5121         (debug_hw_points): Made nonstatic.
5122         (debug_printf): Now in i386-dregs.c.
5123         (TARGET_HAS_DR_LEN_8): Likewise.
5124         (DR_CONTROL_SHIFT): Likewise.
5125         (DR_CONTROL_SIZE): Likewise.
5126         (DR_RW_EXECUTE): Likewise.
5127         (DR_RW_WRITE): Likewise.
5128         (DR_RW_READ): Likewise.
5129         (DR_RW_IORW): Likewise.
5130         (DR_LEN_1): Likewise.
5131         (DR_LEN_2): Likewise.
5132         (DR_LEN_4): Likewise.
5133         (DR_LEN_8): Likewise.
5134         (DR_LOCAL_ENABLE_SHIFT): Likewise.
5135         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5136         (DR_ENABLE_SIZE): Likewise.
5137         (DR_LOCAL_SLOWDOWN): Likewise.
5138         (DR_GLOBAL_SLOWDOWN): Likewise.
5139         (DR_CONTROL_RESERVED): Likewise.
5140         (I386_DR_CONTROL_MASK): Likewise.
5141         (I386_DR_VACANT): Likewise.
5142         (I386_DR_LOCAL_ENABLE): Likewise.
5143         (I386_DR_GLOBAL_ENABLE): Likewise.
5144         (I386_DR_DISABLE): Likewise.
5145         (I386_DR_SET_RW_LEN): Likewise.
5146         (I386_DR_GET_RW_LEN): Likewise.
5147         (I386_DR_WATCH_HIT): Likewise.
5148         (i386_wp_op_t): Likewise.
5149         (i386_show_dr): Likewise.
5150         (i386_length_and_rw_bits): Likewise.
5151         (i386_insert_aligned_watchpoint): Likewise.
5152         (i386_remove_aligned_watchpoint): Likewise.
5153         (i386_handle_nonaligned_watchpoint): Likewise.
5154         (i386_update_inferior_debug_regs): Likewise.
5155         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5156         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5157         (i386_region_ok_for_watchpoint):
5158         Use i386_dr_region_ok_for_watchpoint.
5159         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5160
5161 2014-06-19  Gary Benson  <gbenson@redhat.com>
5162
5163         * i386-nat.c (i386_insert_hw_breakpoint): Use
5164         i386_insert_watchpoint.
5165         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5166
5167 2014-06-19  Gary Benson  <gbenson@redhat.com>
5168
5169         * i386-nat.c (i386_dr_show): Renamed to
5170         i386_show_dr and made static.  All uses updated.
5171         (i386_dr_length_and_rw_bits): Renamed to
5172         i386_length_and_rw_bits and made static.
5173         All uses updated.
5174         (i386_dr_insert_aligned_watchpoint): Renamed to
5175         i386_insert_aligned_watchpoint and made static.
5176         All uses updated.
5177         (i386_dr_remove_aligned_watchpoint): Renamed to
5178         i386_remove_aligned_watchpoint and made static.
5179         All uses updated.
5180         (i386_dr_update_inferior_debug_regs): Renamed to
5181         i386_update_inferior_debug_regs and made static.
5182         All uses updated.
5183         * nat/i386-dregs.h (i386_dr_show): Removed.
5184         (i386_dr_length_and_rw_bits): Likewise.
5185         (i386_dr_insert_aligned_watchpoint): Likewise.
5186         (i386_dr_remove_aligned_watchpoint): Likewise.
5187         (i386_dr_update_inferior_debug_regs): Likewise.
5188
5189 2014-06-19  Gary Benson  <gbenson@redhat.com>
5190
5191         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5192         * configure: Regenerate.
5193         * config.in: Likewise.
5194         * main.c (signal.h): New include.
5195         (setup_alternate_signal_stack): New function.
5196         (captured_main): Call the above.
5197         * cp-support.c (signal.h): New include.
5198         (catch_demangler_crashes): New flag.
5199         (SIGJMP_BUF): New define.
5200         (SIGSETJMP): Likewise.
5201         (SIGLONGJMP): Likewise.
5202         (gdb_demangle_jmp_buf): New static global.
5203         (gdb_demangle_attempt_core_dump): Likewise.
5204         (gdb_demangle_signal_handler): New function.
5205         (gdb_demangle): If catch_demangler_crashes is set, install the
5206         above signal handler before calling bfd_demangle, and restore
5207         the original signal handler afterwards.  Display the offending
5208         symbol and call demangler_warning the first time a segmentation
5209         fault is caught.
5210         (_initialize_cp_support): New maint set/show command.
5211
5212 2014-06-19  Gary Benson  <gbenson@redhat.com>
5213
5214         * utils.h (resource_limit_kind): New enum.
5215         (can_dump_core): New declaration.
5216         (warn_cant_dump_core): Likewise.
5217         (dump_core): Likewise.
5218         * utils.c (dump_core): Made nonstatic.  Added new
5219         parameter "limit_kind".
5220         (can_dump_core): Made nonstatic. Moved printing code to...
5221         (warn_cant_dump_core): New function.
5222         (can_dump_core_warn): Likewise.
5223         (internal_vproblem): Replace calls to can_dump_core with
5224         calls to can_dump_core_warn.  Supply new argument to each.
5225
5226 2014-06-19  Gary Benson  <gbenson@redhat.com>
5227
5228         * utils.h (demangler_vwarning): New declaration.
5229         (demangler_warning): Likewise.
5230         * utils.c (struct internal_problem)
5231         <user_settable_should_quit>: New field.
5232         <user_settable_should_dump_core>: Likewise
5233         (internal_error_problem): Add values for above new fields.
5234         (internal_warning_problem): Likewise.
5235         (demangler_warning_problem): New static global.
5236         (demangler_vwarning): New function.
5237         (demangler_warning): Likewise.
5238         (add_internal_problem_command): Selectively add commands.
5239         (_initialize_utils): New internal problem command.
5240         * maint.c (maintenance_demangler_warning): New function.
5241         (_initialize_maint_cmds): New command.
5242
5243 2014-06-18  Tom Tromey  <tromey@redhat.com>
5244
5245         * f-valprint.c (info_common_command_for_block): Update.
5246         * symtab.h (struct general_symbol_info) <common_block>: Now
5247         const.
5248
5249 2014-06-18  Tom Tromey  <tromey@redhat.com>
5250
5251         * symtab.h (struct symtab) <blockvector>: Now const.
5252         * ada-lang.c (ada_add_global_exceptions): Update.
5253         * buildsym.c (augment_type_symtab): Update.
5254         * dwarf2read.c (dw2_lookup_symbol): Update.
5255         * jit.c (finalize_symtab): Update.
5256         * jv-lang.c (add_class_symtab_symbol): Update.
5257         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5258         Update.
5259         * objfiles.c (objfile_relocate1): Update.
5260         * psymtab.c (lookup_symbol_aux_psymtabs)
5261         (maintenance_check_psymtabs): Update.
5262         * python/py-symtab.c (stpy_global_block, stpy_static_block):
5263         Update.
5264         * spu-tdep.c (spu_catch_start): Update.
5265         * symmisc.c (dump_symtab_1): Update.
5266         * symtab.c (lookup_global_symbol_from_objfile)
5267         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5268         (basic_lookup_transparent_type_quick)
5269         (basic_lookup_transparent_type, find_pc_sect_symtab)
5270         (find_pc_sect_line, search_symbols): Update.
5271         * block.c (find_block_in_blockvector): Make "bl" const.
5272         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5273         const.
5274         (blockvector_contains_pc): Make "bv" const.
5275         (block_for_pc_sect): Update.
5276         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5277         (blockvector_contains_pc): Update.
5278         * breakpoint.c (resolve_sal_pc): Update.
5279         * inline-frame.c (block_starting_point_at): Update.
5280
5281 2014-06-18  Tom Tromey  <tromey@redhat.com>
5282
5283         * completer.c (complete_line): Make "line_buffer" const.
5284         * completer.h (complete_line): Update.
5285
5286 2014-06-18  Tom Tromey  <tromey@redhat.com>
5287
5288         * symtab.c (add_macro_name): Remove unneeded cast.
5289
5290 2014-06-18  Tom Tromey  <tromey@redhat.com>
5291
5292         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5293         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5294
5295 2014-06-18  Tom Tromey  <tromey@redhat.com>
5296
5297         * probe.c (info_probes_for_ops): Make "arg" const.
5298         * probe.h (info_probes_for_ops): Update.
5299
5300 2014-06-18  Tom Tromey  <tromey@redhat.com>
5301
5302         * varobj.c (varobj_create): Update.
5303         * valops.c (value_of_this): Update.
5304         * tracepoint.c (add_local_symbols, scope_info): Update.
5305         * symtab.h (struct general_symbol_info) <block>: Now const.
5306         * symtab.c (skip_prologue_sal)
5307         (default_make_symbol_completion_list_break_on)
5308         (skip_prologue_using_sal): Update.
5309         * stack.h (iterate_over_block_locals)
5310         (iterate_over_block_local_vars): Update.
5311         * stack.c (print_frame_args): Update.
5312         (iterate_over_block_locals, iterate_over_block_local_vars): Make
5313         parameter const.
5314         (get_selected_block): Make return type const.
5315         * python/py-frame.c (frapy_block): Update.
5316         * python/py-block.c (gdbpy_block_for_pc): Update.
5317         * p-exp.y (%union) <bval>: Now const.
5318         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5319         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5320         * m2-exp.y (%union) <bval>: Now const.
5321         * linespec.c (get_current_search_block): Make return type const.
5322         (create_sals_line_offset, find_label_symbols): Update.
5323         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5324         Update.
5325         (block_starting_point_at): Make "block" const.
5326         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5327         (check_exception_resume): Update.
5328         * guile/scm-frame.c (gdbscm_frame_block): Update.
5329         * guile/scm-block.c (gdbscm_lookup_block): Update.
5330         * frame.h (get_frame_block): Update.
5331         (get_selected_block): Make return type const.
5332         * frame.c (frame_id_inner): Update.
5333         * f-valprint.c (info_common_command_for_block)
5334         (info_common_command): Update.
5335         * dwarf2loc.c (dwarf2_find_location_expression)
5336         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5337         (locexpr_describe_location_piece): Update.
5338         * c-exp.y (%union) <bval>: Now const.
5339         * breakpoint.c (resolve_sal_pc): Update.
5340         * blockframe.c (get_frame_block):Make return type const.
5341         (get_pc_function_start, get_frame_function, find_pc_sect_function)
5342         (block_innermost_frame): Update.
5343         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5344         (block_for_pc, block_for_pc_sect): Update.
5345         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5346         'pblock' const.
5347         (block_for_pc_sect, block_for_pc): Make return type const.
5348         * ax-gdb.c (gen_expr): Update.
5349         * alpha-mdebug-tdep.c (find_proc_desc): Update.
5350         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5351         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5352         (ada_read_var_value): Update.
5353         * ada-exp.y (struct name_info) <block>: Now const.
5354         (%union): Likewise.
5355         (block_lookup): Constify.
5356
5357 2014-06-18  Gary Benson  <gbenson@redhat.com>
5358
5359         * nat/i386-dregs.h: New file.
5360         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5361         * i386-nat.h (i386-dregs.h): New include.
5362         (DR_FIRSTADDR): Now in i386-dregs.h.
5363         (DR_LASTADDR): Likewise.
5364         (DR_NADDR): Likewise.
5365         (DR_STATUS): Likewise.
5366         (DR_CONTROL): Likewise.
5367         (i386_debug_reg_state): Likewise.
5368         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5369
5370 2014-06-18  Don Breazeal  <donb@codesourcery.com>
5371
5372         * breakpoint.c (set_longjmp_breakpoint): Call
5373         momentary_breakpoint_from_master with additional argument.
5374         (set_longjmp_breakpoint_for_call_dummy): Call
5375         momentary_breakpoint_from_master with additional argument.
5376         (set_std_terminate_breakpoint): Call
5377         momentary_breakpoint_from_master with additional argument.
5378         (momentary_breakpoint_from_master): Add argument to function
5379         definition and use it to initialize structure member flag.
5380         (clone_momentary_breakpoint): Call
5381         momentary_breakpoint_from_master with additional argument.
5382         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5383         member flags set in momentary_breakpoint_from_master.
5384
5385 2014-06-18  Gary Benson  <gbenson@redhat.com>
5386
5387         * i386-nat.c (i386_show_dr): Renamed to
5388         i386_dr_show and made nonstatic.  All uses updated.
5389         (i386_length_and_rw_bits): Renamed to
5390         i386_dr_length_and_rw_bits and made nonstatic.
5391         All uses updated.
5392         (i386_insert_aligned_watchpoint): Renamed to
5393         i386_dr_insert_aligned_watchpoint and made nonstatic.
5394         All uses updated.
5395         (i386_remove_aligned_watchpoint): Renamed to
5396         i386_dr_remove_aligned_watchpoint and made nonstatic.
5397         All uses updated.
5398         (i386_update_inferior_debug_regs): Renamed to
5399         i386_dr_update_inferior_debug_regs and made nonstatic.
5400         All uses updated.
5401
5402 2014-06-18  Gary Benson  <gbenson@redhat.com>
5403
5404         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5405         (i386_dr_low_can_set_control): Likewise.
5406         (i386_dr_low_set_addr): Likewise.
5407         (i386_dr_low_set_control): Likewise.
5408         (i386_dr_low_get_addr): Likewise.
5409         (i386_dr_low_get_status): Likewise.
5410         (i386_dr_low_get_control): Likewise.
5411         (i386_insert_aligned_watchpoint): Use new macros.
5412         (i386_update_inferior_debug_regs): Likewise.
5413         (i386_stopped_data_address): Likewise.
5414
5415 2014-06-18  Gary Benson  <gbenson@redhat.com>
5416
5417         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5418         New parameter.  All uses updated.
5419
5420 2014-06-18  Gary Benson  <gbenson@redhat.com>
5421
5422         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5423         All uses updated.
5424
5425 2014-06-18  Gary Benson  <gbenson@redhat.com>
5426
5427         * i386-nat.c (debug_printf): New macro.
5428         (i386_get_debug_register_length): Likewise.
5429         (TARGET_HAS_DR_LEN_8): Use above macro.
5430         (i386_show_dr): Use debug_printf instead of puts_unfiltered
5431         and printf_unfiltered.  Use phex to format values.
5432
5433 2014-06-18  Gary Benson  <gbenson@redhat.com>
5434
5435         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5436         Make const.
5437
5438 2014-06-18  Gary Benson  <gbenson@redhat.com>
5439
5440         * i386-nat.c: Comment changes.
5441
5442 2014-06-18  Gary Benson  <gbenson@redhat.com>
5443
5444         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5445
5446 2014-06-18  Gary Benson  <gbenson@redhat.com>
5447
5448         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5449         (i386_insert_aligned_watchpoint): Likewise.
5450         (i386_remove_aligned_watchpoint): Likewise.
5451         (i386_handle_nonaligned_watchpoint): Likewise.
5452
5453 2014-06-18  Gary Benson  <gbenson@redhat.com>
5454
5455         * i386-nat.c: Whitespace changes.
5456
5457 2014-06-17  Samuel Bronson  <naesten@gmail.com>
5458
5459         * MAINTAINERS: Update Roland McGrath's email address.
5460         Thanks to Sergio Durigan Junior for pointing out that he left
5461         Red Hat a while ago, and giving me a current address.
5462
5463 2014-06-17  Tom Tromey  <tromey@redhat.com>
5464
5465         * utils.h (savestring): Remove declaration.
5466
5467 2014-06-17  Tom Tromey  <tromey@redhat.com>
5468
5469         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5470
5471 2014-06-16  Keith Seitz  <keiths@redhat.com>
5472
5473         PR mi/15863
5474         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5475         to update the varobj if inferior_ptid is null_ptid.
5476
5477 2014-06-16  Tom Tromey  <tromey@redhat.com>
5478
5479         * target.h (struct target_ops) <to_info_proc>: Make parameter
5480         const.
5481         (target_info_proc): Update.
5482         * target.c (target_info_proc): Make "args" const.
5483         * procfs.c (procfs_info_proc): Update.
5484         * linux-tdep.c (linux_info_proc): Update.
5485         (linux_core_info_proc_mappings): Make "args" const.
5486         (linux_core_info_proc): Update.
5487         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5488         * gdbarch.c: Rebuild.
5489         * gdbarch.h: Rebuild.
5490         * corelow.c (core_info_proc): Update.
5491
5492 2014-06-16  Tom Tromey  <tromey@redhat.com>
5493
5494         * target.h (struct target_ops) <to_disconnect>: Make parameter
5495         const.
5496         (target_disconnect): Update.
5497         * target.c (target_disconnect): Make "args" const.
5498         * target-delegates.c: Rebuild.
5499         * remote.c (remote_disconnect): Update.
5500         * record.h (record_disconnect): Update.
5501         * record.c (record_disconnect): Update.
5502         * inf-child.c (inf_child_disconnect): Update.
5503
5504 2014-06-16  Tom Tromey  <tromey@redhat.com>
5505
5506         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5507         * target.c (debug_to_rcmd, default_rcmd): Update.
5508         * target-delegates.c: Rebuild.
5509         * remote.c (remote_rcmd): Update.
5510         * monitor.c (monitor_rcmd): Update.
5511
5512 2014-06-16  Pedro Alves  <palves@redhat.com>
5513
5514         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5515         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5516         have OBJF_SHARED set.
5517         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5518         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
5519         instead of OBJF_USERLOADED.
5520         * objfiles.h (OBJF_SHARED): Update comment.
5521         (userloaded_objfile_contains_address_p): Rename to ...
5522         (shared_objfile_contains_address_p): ... this, and update
5523         comments.
5524         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5525         new objfile.
5526         (remove_symbol_file_command): Skip objfiles that don't have
5527         OBJF_SHARED set.
5528
5529 2014-06-16  Tom Tromey  <tromey@redhat.com>
5530
5531         * minsyms.h (prim_record_minimal_symbol)
5532         (prim_record_minimal_symbol_and_info): Update comments.
5533
5534 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
5535
5536         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5537         or --without-guile, according to how GDB was built.
5538
5539 2014-06-13  Tom Tromey  <tromey@redhat.com>
5540
5541         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5542         to help_list.
5543         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5544         to help_list.
5545         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5546         help_list.
5547         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5548         help_list.Pass all_commands, not -1, to help_list.
5549         * cli/cli-dump.c (dump_command, append_command)
5550         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5551         (binary_dump_command, binary_append_command): Pass all_commands,
5552         not -1, to help_list.
5553         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5554         -1, to help_list.
5555         * valprint.c (set_print, set_print_raw): Pass all_commands, not
5556         -1, to help_list.
5557         * typeprint.c (set_print_type): Pass all_commands, not -1, to
5558         help_list.
5559         * top.c (set_history): Pass all_commands, not -1, to help_list.
5560         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5561         all_commands, not -1, to help_list.
5562         * symfile.c (overlay_command): Pass all_commands, not -1, to
5563         help_list.
5564         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5565         help_list.
5566         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5567         help_list.
5568         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5569         -1, to help_list.
5570         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5571         not -1, to help_list.
5572         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5573         not -1, to help_list.
5574         * maint.c (maintenance_command, maintenance_info_command)
5575         (maintenance_print_command, maintenance_set_cmd): Pass
5576         all_commands, not -1, to help_list.
5577         * macrocmd.c (macro_command): Pass all_commands, not -1, to
5578         help_list.
5579         * language.c (set_check): Pass all_commands, not -1, to help_list.
5580         * infcmd.c (unset_command): Pass all_commands, not -1, to
5581         help_list.
5582         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5583         help_list.
5584         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5585         help_list.
5586         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5587         help_list.
5588         * breakpoint.c (save_command): Pass all_commands, not -1, to
5589         help_list.
5590         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5591         all_commands, not -1, to help_list.
5592
5593 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
5594
5595         * regcache.c (struct register_to_invalidate): New structure.
5596         (do_register_invalidate, make_cleanup_regcache_invalidate): New
5597         functions.
5598         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5599
5600 2014-06-12  Yao Qi  <yao@codesourcery.com>
5601
5602         * varobj.c (varobj_get_num_children): Call
5603         varobj_is_dynamic_p.
5604         (varobj_list_children): Likewise.
5605         (varobj_update): Likewise.  Update comments.
5606
5607 2014-06-12  Yao Qi  <yao@codesourcery.com>
5608
5609         * varobj.c (varobj_pretty_printed_p): Rename to ...
5610         (varobj_is_dynamic_p): ... this.  New function.
5611         * varobj.h (varobj_pretty_printed_p): Remove declaration.
5612         (varobj_is_dynamic_p): Declare.
5613         * mi/mi-cmd-var.c (print_varobj): All callers updated.
5614         (mi_print_value_p, varobj_update_one): Likewise.
5615
5616 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5617             Yao Qi  <yao@codesourcery.com>
5618
5619         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5620         (varobj_get_iterator): Wrap up code for pretty-printer by
5621         "#if HAVE_PYTHON" and "#endif".
5622         (update_dynamic_varobj_children): Likewise.
5623
5624 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5625             Yao Qi  <yao@codesourcery.com>
5626
5627         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5628         gdb_python_initialized is false.  Move some code from varobj.c.
5629         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5630         * varobj.c: Move "varobj-iter.h" inclusion earlier.
5631         (struct varobj_item): Moved to varobj-iter.h".
5632         (varobj_clear_saved_item): New function.
5633         (update_dynamic_varobj_children): Move python-related code to
5634         py-varobj.c.
5635         (free_variable): Call varobj_clear_saved_item and
5636         varobj_iter_delete.
5637
5638 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5639             Yao Qi  <yao@codesourcery.com>
5640
5641         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5642         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5643         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5644         (py-varobj.o): New rule.
5645         * python/py-varobj.c: New file.
5646         * python/python-internal.h (py_varobj_get_iterator): Declare.
5647         * varobj-iter.h: New file.
5648         * varobj.c: Include "varobj-iter.h"
5649         (struct varobj) <child_iter>: Change its type from "PyObject *"
5650         to "struct varobj_iter *".
5651         <saved_item>: Likewise.
5652         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5653         [HAVE_PYTHON] (varobj_get_iterator): New function.
5654         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5655         python-specific code to python/py-varobj.c.
5656         (install_visualizer): Call varobj_iter_delete instead of
5657         Py_XDECREF.
5658         * varobj.h (varobj_ensure_python_env): Declare.
5659
5660 2014-06-12  Yao Qi  <yao@codesourcery.com>
5661
5662         * varobj.c (struct varobj_item): New structure.
5663         (create_child_with_value): Update declaration.
5664         (varobj_add_child): Replace arguments 'name' and 'value' with
5665         'item'.  All callers updated.
5666         (install_dynamic_child): Likewise.
5667         (update_dynamic_varobj_children): Likewise.
5668         (varobj_add_child): Likewise.
5669         (create_child_with_value): Likewise.
5670
5671 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5672
5673         * NEWS: Create a new section for the next release branch.
5674         Rename the section of the current branch, now that it has
5675         been cut.
5676
5677 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5678
5679         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5680         * version.in: Bump version to 7.8.50.DATE-cvs.
5681
5682 2014-06-11  Pedro Alves  <palves@redhat.com>
5683
5684         PR remote/17028
5685         * ser-mingw.c (net_windows_socket_check_pending): New function.
5686         (net_windows_select_thread): Ignore spurious wakeups.  Use
5687         net_windows_socket_check_pending.
5688         (net_windows_wait_handle): Check for pending events with
5689         ioctlsocket, through net_windows_socket_check_pending, instead of
5690         checking the socket's event.
5691
5692 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
5693
5694         * python/python-internal.h (gdb_PyObject_GetAttrString)
5695         (gdb_PyObject_HasAttrString): New inline function definitions.
5696         * py-value.c (get_field_flag): Remove the now unnecessary cast to
5697         char * of the second argument to PyObject_GetAttrString.
5698
5699 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5700
5701         * serial.c (serial_write): Fix index of character to be printed
5702         in call to serial_logchar when serial debug traces are enabled.
5703
5704 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5705
5706         * gdbtypes (resolve_dynamic_range): Add function description.
5707
5708 2014-06-09  Pedro Alves  <palves@redhat.com>
5709
5710         * linux-nat.c (linux_child_follow_fork): Initialize status with
5711         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
5712         inner block.  Only pass the signal to PTRACE_DETACH if in pass
5713         state.
5714
5715 2014-06-09  Gary Benson  <gbenson@redhat.com>
5716
5717         * common/signals.c (gdb_signal_from_host): Reorder to separate
5718         the always-available ANSI-standard signals from the signals that
5719         require checking.
5720         (do_gdb_signal_to_host): Likewise.
5721         * proc-events.c (signal_table): Likewise.
5722
5723 2014-06-08  Hui Zhu  <hui@codesourcery.com>
5724
5725         * common/linux-ptrace.c (linux_disable_event_reporting): New
5726         function.
5727         * common/linux-ptrace.h (linux_disable_event_reporting): New
5728         declaration.
5729         * linux-nat.c (linux_child_follow_fork): Do a single step before
5730         detach.
5731
5732 2014-06-07  Keith Seitz  <keiths@redhat.com>
5733
5734         Revert:
5735         PR c++/16253
5736         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5737         from symbol_matches_domain in symtab.c. All local callers
5738         of symbol_matches_domain updated.
5739         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5740         search STRUCT_DOMAIN.
5741         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5742         independently.  standard_lookup will do that automatically.
5743         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5744         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5745         (cp_lookup_symbol_in_namespace): Likewise.
5746         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5747         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5748         may return a STRUCT_DOMAIN match.
5749         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5750         * cp-support.c: Include language.h.
5751         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5752         VAR_DOMAIN.
5753         * psymtab.c (match_partial_symbol): Compare the requested
5754         domain with the symbol's domain directly.
5755         (lookup_partial_symbol): Likewise.
5756         * symtab.c (lookup_symbol_in_language): Explain when/why
5757         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5758         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5759         appropriate languages.
5760         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5761         and moved to ada-lang.c
5762         (lookup_block_symbol): Explain that this function only returns
5763         symbol matching the requested DOMAIN.
5764         Compare the requested domain with the symbol's domain directly.
5765         (iterate_over_symbols): Compare the requested domain with the
5766         symbol's domain directly.
5767         * symtab.h (symbol_matches_domain): Remove.
5768
5769 2014-06-06  Doug Evans  <xdje42@gmail.com>
5770
5771         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5772         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5773         (gdbscm_guile_version_is_at_least): Declare.
5774         (gdbscm_scm_string_to_int): Declare.
5775         * guile/guile.c (gdbscm_guile_major_version): New global.
5776         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5777         (guile_datadir): New static global.
5778         (gdbscm_guile_data_directory): New function.
5779         (initialize_scheme_side): Update.
5780         (misc_guile_functions): Add guile-data-directory.
5781         (initialize_gdb_module): Fetch guile version number.
5782         * guile/lib/gdb.scm: Remove call to add-to-load-path.
5783         * guile/lib/gdb/init.scm (%initialize!): Ditto.
5784         * guile/lib/gdb/boot.scm: Use guile-data-directory.
5785         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5786         comments.
5787         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5788         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5789         * guile/scm-value.c (gdbscm_value_to_string): Only call
5790         scm_port_conversion_strategy if Guile version >= 2.0.6.
5791
5792 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
5793
5794         * main.c (print_gdb_help): Add -q and --silent.
5795
5796 2014-06-06  Gary Benson  <gbenson@redhat.com>
5797
5798         * common/signals.c: Remove preprocessor conditionals for
5799         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5800         SIGSEGV and SIGTERM.
5801         * proc-events.c: Likewise.
5802
5803 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
5804
5805         * symfile.c (symfile_free_objfile): Remove restriction to
5806         OBJF_USERLOADED.
5807         * symfile-mem.c (symbol_file_add_from_memory): Call
5808         add_target_sections_of_objfile.
5809
5810 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
5811
5812         * guile/scm-value.c (gdbscm_history_append_x): Use
5813         'vlscm_get_value_smob_arg_unsafe' instead of
5814         'vlscm_scm_to_value'.
5815
5816 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
5817
5818         PR mi/15806
5819         * utils.c (printchar): Don't escape at all if quoter is NUL.
5820         Update function documentation to clarify effect of parameter
5821         QUOTER.
5822         * remote.c (escape_buffer): Pass '\\' as the quoter to
5823         fputstrn_unfiltered.
5824         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5825         generate the output.
5826         (mi_solib_unloaded): Same.
5827
5828 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
5829
5830         * development.sh: Delete.
5831         * Makefile.in (config.status): Adjust dependency on development.sh.
5832         * configure.ac: Adjust development.sh source call.
5833         * configure: Regenerate.
5834
5835 2014-06-04  Doug Evans  <xdje42@gmail.com>
5836
5837         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5838         is_scheme_bkpt, spec.
5839         (bpscm_make_breakpoint_smob): Initialize new members.
5840         (gdbscm_create_breakpoint_x): Split into two ...
5841         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5842         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5843         (scheme_function breakpoint_functions): Update.
5844         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
5845         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
5846         register-breakpoint!.
5847
5848 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
5849
5850         PR server/17023
5851         * mem-break.c (z_type_supported): Return zero if
5852         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5853
5854 2014-06-04  Tom Tromey  <tromey@redhat.com>
5855
5856         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5857         value_from_contents_and_address_unresolved.
5858         (ada_template_to_fixed_record_type_1): Likewise.
5859         (ada_which_variant_applies): Likewise.
5860         * value.h (value_from_contents_and_address_unresolved): Declare.
5861         * value.c (value_from_contents_and_address_unresolved): New
5862         function.
5863         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5864         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5865         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5866
5867 2014-06-04  Tom Tromey  <tromey@redhat.com>
5868
5869         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5870
5871 2014-06-04  Tom Tromey  <tromey@redhat.com>
5872
5873         * procfs.c (procfs_attach): Make "args" const.
5874         * windows-nat.c (windows_attach): Make "args" const.
5875         * nto-procfs.c (procfs_attach): Make "args" const.
5876         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5877         * go32-nat.c (go32_attach): Make "args" const.
5878         * gnu-nat.c (gnu_attach): Make "args" const.
5879         * darwin-nat.c (darwin_attach): Make "args" const.
5880         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5881         * linux-nat.c (linux_nat_attach): Make "args" const.
5882         * remote.c (extended_remote_attach_1, extended_remote_attach):
5883         Make "args" const.
5884         * target.h (struct target_ops) <to_attach>: Make "args" const.
5885         (find_default_attach): Likewise.
5886         * utils.c (parse_pid_to_attach): Make "args" const.
5887         * utils.h (parse_pid_to_attach): Update.
5888
5889 2014-06-04  Tom Tromey  <tromey@redhat.com>
5890
5891         * target-delegates.c: Rebuild.
5892         * target.c (default_thread_address_space): New function.
5893         (target_thread_address_space): Simplify.
5894         * target.h (struct target_ops) <to_thread_address_space>: Add
5895         TARGET_DEFAULT_FUNC.
5896
5897 2014-06-04  Doug Evans  <xdje42@gmail.com>
5898
5899         * guile/scm-type.c (type_smob): Remove duplicate typedef.
5900
5901 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
5902
5903         * record-btrace.c: Include event-loop.h and inf-loop.h.
5904         (record_btrace_resume_exec_dir)
5905         (record_btrace_async_inferior_event_handler)
5906         (record_btrace_handle_async_inferior_event): New.
5907         (record_btrace_open): Create async event handler.
5908         (record_btrace_close): Delete async event handler.
5909         (record_btrace_resume): Set record_btrace_resume_exec_dir,
5910         Mark async event handler.
5911         (record_btrace_execution_direction): New.
5912         (init_record_btrace_ops): Initialize to_execution_direction.
5913
5914 2014-06-03  Doug Evans  <xdje42@gmail.com>
5915
5916         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5917         (gdbscm_make_parameter): Ditto.
5918
5919 2014-06-03  Doug Evans  <dje@google.com>
5920
5921         * exec.c (exec_close_1): Call clear_section_table instead of
5922         resize_section_table.
5923         (clear_section_table): New function.
5924         (resize_section_table): Make static.  Rename arg num_added to
5925         adjustment.
5926         * exec.h (clear_section_table): Declare.
5927         (resize_section_table): Delete.
5928         * progspace.c (release_program_space): Call clear_section_table
5929         instead of resize_section_table.
5930
5931 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5932
5933         * NEWS (Python Scripting): Add entry about the new xmethods
5934         feature.
5935
5936 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5937
5938         * python/py-xmethods.c: New file.
5939         * python/py-objfile.c (objfile_object): New field 'xmethods'.
5940         (objfpy_dealloc): XDECREF on the new xmethods field.
5941         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5942         field.
5943         (objfpy_get_xmethods): New function.
5944         (objfile_getset): New entry 'xmethods'.
5945         * python/py-progspace.c (pspace_object): New field 'xmethods'.
5946         (pspy_dealloc): XDECREF on the new xmethods field.
5947         (pspy_new, pspace_to_pspace_object): Initialize xmethods
5948         field.
5949         (pspy_get_xmethods): New function.
5950         (pspace_getset): New entry 'xmethods'.
5951         * python/python-internal.h: Add declarations for new functions.
5952         * python/python.c (_initialize_python): Invoke
5953         gdbpy_initialize_xmethods.
5954         * python/lib/gdb/__init__.py (xmethods): New
5955         attribute.
5956         * python/lib/gdb/xmethod.py: New file.
5957         * python/lib/gdb/command/xmethods.py: New file.
5958
5959 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5960
5961         * eval.c (evaluate_subexp_standard): Call the xmethod if the
5962         best match method returned by find_overload_match is an xmethod.
5963         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5964         the best matching operator returned by find_overload_match is an
5965         xmethod.
5966         * valops.c: #include "extension.h".
5967         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5968         Return void.  The list of matching source methods is returned in
5969         "fn_list" and a vector of matching debug method workers is
5970         returned in "xm_worker_vec".  Update all callers.
5971         (value_find_oload_method_list): Likewise.
5972         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
5973         non-NULL, then the index of the best matching method in this
5974         vector is returned.  Update all callers.
5975         (find_overload_match): Include xmethods while performing overload
5976         resolution.
5977
5978 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5979
5980         * defs.h (enum lval_type): New enumerator "lval_xcallable".
5981         * extension-priv.h (struct extension_language_ops): Add the
5982         xmethod interface.
5983         * extension.c (new_xmethod_worker, clone_xmethod_worker,
5984         get_matching_xmethod_workers, get_xmethod_argtypes,
5985         invoke_xmethod, free_xmethod_worker,
5986         free_xmethod_worker_vec): New functions.
5987         * extension.h: #include "common/vec.h".
5988         New function declarations.
5989         (struct xmethod_worker): New struct.
5990         (VEC (xmethod_worker_ptr)): New vector type.
5991         (xmethod_worker_ptr): New typedef.
5992         (xmethod_worker_vec): Likewise.
5993         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5994         builtin_type.
5995         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5996         (struct builtin_type): New field "xmethod".
5997         * valarith.c (value_ptradd): Assert that the value argument is not
5998         lval_xcallable.
5999         * valops.c (value_must_coerce_to_target): Return 0 for
6000         lval_xcallable values.
6001         * value.c (struct value): New field XM_WORKER in the field
6002         LOCATION.
6003         (value_address, value_raw_address): Return 0 for lval_xcallable
6004         values.
6005         (set_value_address): Assert that the value is not an
6006         lval_xcallable.
6007         (value_free): Free the associated xmethod worker when freeing
6008         lval_xcallable values.
6009         (set_value_component_location): Assert that the WHOLE value is not
6010         lval_xcallable.
6011         (value_of_xmethod, call_xmethod): New functions.
6012         * value.h: Declare "struct xmethod_worker".
6013         Declare new functions value_of_xmethod, call_xmethod.
6014
6015 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
6016             Pedro Alves  <palves@redhat.com>
6017
6018         PR breakpoints/17000
6019         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6020         New function, extracted from software_breakpoint_inserted_here_p.
6021         (software_breakpoint_inserted_here_p): Replace factored out code
6022         by call to find_non_raw_software_breakpoint_inserted_here.
6023         (bp_target_info_copy_insertion_state): New function.
6024         (bkpt_insert_location): Handle the case of a single-step
6025         breakpoint already inserted at the same address.
6026         (bkpt_remove_location): Handle the case of a single-step
6027         breakpoint still inserted at the same address.
6028         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6029         breakpoint already inserted at the same address.
6030         (deprecated_remove_raw_breakpoint): Handle the case of a
6031         non-raw breakpoint still inserted at the same address.
6032         (find_single_step_breakpoint): New function, extracted from
6033         single_step_breakpoint_inserted_here_p.
6034         (find_single_step_breakpoint): New function,
6035         factored out from single_step_breakpoint_inserted_here_p.
6036         (single_step_breakpoint_inserted_here_p): Reimplement.
6037
6038 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
6039
6040         Pushed by Joel Brobecker  <brobecker@adacore.com>
6041         * source.c (show_substitute_path_command): Fix display of matching
6042         substitution rules.
6043
6044 2014-06-03  Gary Benson  <gbenson@redhat.com>
6045
6046         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6047
6048 2014-06-02  Doug Evans  <xdje42@gmail.com>
6049
6050         Add parameter support for Guile.
6051         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6052         (SUBDIR_GUILE_SRCS): Add scm-param.c.
6053         (scm-param.o): New rule.
6054         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6055         (gdbscm_misc_error): Declare.
6056         (gdbscm_canonicalize_command_name): Declare.
6057         (gdbscm_scm_to_host_string): Declare.
6058         (gdbscm_scm_from_host_string): Declare.
6059         (gdbscm_initialize_parameters): Declare.
6060         * guile/guile.c (initialize_gdb_module): Call
6061         gdbscm_initialize_parameters.
6062         * guile/lib/gdb.scm: Export parameter symbols.
6063         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6064         cmdscm_canonicalize_name and made public.  All callers updated.
6065         * guile/scm-exception.c (gdbscm_misc_error): New function.
6066         * guile/scm-param.c: New file.
6067         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6068         (gdbscm_scm_to_host_string): New function.
6069         (gdbscm_scm_from_host_string): New function.
6070         * scm-utils.c (gdbscm_gc_dup_argv): New function.
6071
6072 2014-06-02  Doug Evans  <xdje42@gmail.com>
6073
6074         Add command support for Guile.
6075         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6076         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6077         (scm-cmd.o): New rule.
6078         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6079         (gdbscm_user_error_p): Declare.
6080         (gdbscm_parse_command_name): Declare.
6081         (gdbscm_valid_command_class_p): Declare.
6082         (gdbscm_initialize_commands): Declare.
6083         * guile/guile.c (initialize_gdb_module): Call
6084         gdbscm_initialize_commands.
6085         * guile/lib/gdb.scm: Export command symbols.
6086         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6087         (throw-user-error): New function.
6088         * guile/scm-cmd.c: New file.
6089         * guile/scm-exception.c (user_error_symbol): New static global.
6090         (gdbscm_user_error_p): New function.
6091         (gdbscm_initialize_exceptions): Set user_error_symbol.
6092         * scm-utils.c (gdbscm_gc_xstrdup): New function.
6093
6094 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
6095
6096         * top.c (command_loop): Handle comments here...
6097         (command_line_input): ... not here.
6098
6099 2014-06-02  Doug Evans  <xdje42@gmail.com>
6100
6101         Add progspace support for Guile.
6102         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6103         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6104         (scm-progspace.o): New rule.
6105         * guile/guile-internal.h (pspace_smob): New typedef.
6106         (psscm_pspace_smob_pretty_printers): Declare.
6107         (psscm_pspace_smob_from_pspace): Declare.
6108         (psscm_scm_from_pspace): Declare.
6109         * guile/guile.c (initialize_gdb_module): Call
6110         gdbscm_initialize_pspaces.
6111         * guile/lib/gdb.scm: Export progspace symbols.
6112         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6113         support.
6114         (append-pretty-printer!): Ditto.
6115         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6116         Implement.
6117         * guile/scm-progspace.c: New file.
6118
6119 2014-06-03  Alan Modra  <amodra@gmail.com>
6120
6121         * ppc64-tdep.c (ppc64_standard_linkage8): New.
6122         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6123
6124 2014-06-02  Doug Evans  <dje@google.com>
6125
6126         Add support for skeletonless type units.
6127         * dwarf2read.c (struct dwarf2_per_objfile): New member
6128         n_allocated_type_units.
6129         (struct dwarf2_per_objfile) <tu_stats>: New member
6130         nr_all_type_units_reallocs.
6131         (create_signatured_type_table_from_index): Initialize
6132         n_allocated_type_units
6133         (create_all_type_units): Ditto.
6134         (add_type_unit): Move up in file.  New arg slot.
6135         All callers updated.  Increase space for all_type_units more
6136         efficiently.
6137         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6138         (lookup_dwo_signatured_type): Handle skeletonless TUs.
6139         (lookup_dwp_signatured_type): Ditto.
6140         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6141         All callers updated.
6142         (build_type_psymtabs_1): Leave type_unit_groups as
6143         NULL if no TUs present.
6144         (print_tu_stats): New function.
6145         (process_skeletonless_type_unit): New function.
6146         (process_dwo_file_for_skeletonless_type_units): New
6147         function.
6148         (process_skeletonless_type_units): New function.
6149         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6150         Call print tu_stats if debugging enabled.
6151
6152 2014-06-02  Pedro Alves  <palves@redhat.com>
6153
6154         * breakpoint.c (build_target_command_list): Don't build a command
6155         list if we have any duplicate location that isn't a dprintf.
6156
6157 2014-06-02  Pedro Alves  <palves@redhat.com>
6158
6159         * breakpoint.c (dprintf_breakpoint_hit): New function.
6160         (initialize_breakpoint_ops): Install it as dprintf's
6161         breakpoint_hit method.
6162
6163 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
6164
6165         * source.c (substitute_path_rule_matches): Simplify using
6166         filename_ncmp instead of FILENAME_CMP.
6167
6168 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
6169
6170         * source.c (substitute_path_rule_matches): Remove trailing spaces.
6171
6172 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
6173
6174         * configure.ac: When Guile is available, check for the
6175         availability of 'scm_new_smob'.
6176         * configure, config.h.in: Regenerate.
6177         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6178         function.
6179
6180 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6181
6182         * frame.c (struct frame_info): Add stop_string field.
6183         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6184         (get_prev_frame_always): Old content moved into
6185         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
6186         TRY_CATCH, handle MEMORY_ERROR exceptions.
6187         (frame_stop_reason_string): New function definition.
6188         * frame.h (unwind_stop_reason_to_string): Extend comment to
6189         mention frame_stop_reason_string.
6190         (frame_stop_reason_string): New function declaration.
6191         * stack.c (frame_info): Switch to frame_stop_reason_string.
6192         (backtrace_command_1): Switch to frame_stop_reason_string.
6193         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6194         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6195         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6196
6197 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6198
6199         * frame.c (frame_stop_reason_string): Rename to ...
6200         (unwind_stop_reason_to_string): this.
6201         * frame.h (frame_stop_reason_string): Rename to ...
6202         (unwind_stop_reason_to_string): this.
6203         * stack.c (frame_info): Update call to frame_stop_reason_string.
6204         (backtrace_command_1): Likewise.
6205         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6206         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6207
6208 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6209
6210         * frame.c (remove_prev_frame): New function.
6211         (get_prev_frame_if_no_cycle): Create / discard cleanup using
6212         remove_prev_frame.
6213
6214 2014-05-29  Pedro Alves  <palves@redhat.com>
6215
6216         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6217         and make it const.  When a single-step decays to a continue,
6218         clear 'step', not 'hw_step'.  Pass whether the caller wanted
6219         to step to user_visible_resume_ptid, not what we ask the
6220         target to do.
6221
6222 2014-05-29  Pedro Alves  <palves@redhat.com>
6223
6224         * infrun.c (process_event_stop_test, handle_step_into_function)
6225         (handle_step_into_function_backward): Adjust.
6226         Don't set the even thread's stop_step and call stop_waiting before
6227         calling end_stepping_range.  Instead do that ...
6228         (end_stepping_range): ... here.  Take an ecs pointer parameter.
6229
6230 2014-05-29  Pedro Alves  <palves@redhat.com>
6231
6232         * infrun.c (stop_stepping): Rename to ...
6233         (stop_waiting): ... this.
6234         (proceed): Update comment.
6235         (process_event_stop_test, handle_inferior_event)
6236         (handle_signal_stop, handle_step_into_function)
6237         (handle_step_into_function_backward): Update.
6238
6239 2014-05-29  Pedro Alves  <palves@redhat.com>
6240
6241         * infcall.c (run_inferior_call): Don't check whether the current
6242         thread is running after the proceed call.
6243
6244 2014-05-29  Pedro Alves  <palves@redhat.com>
6245             Tom Tromey  <tromey@redhat.com>
6246
6247         * NEWS: Mention "maint set target-async", "set mi-async", and that
6248         background execution commands are now always available.
6249         * target.h (target_async_permitted): Update comment.
6250         * target.c (target_async_permitted, target_async_permitted_1):
6251         Default to 1.
6252         (set_target_async_command): Rename to ...
6253         (maint_set_target_async_command): ... this.
6254         (show_target_async_command): Rename to ...
6255         (maint_show_target_async_command): ... this.
6256         (_initialize_target): Adjust.
6257         * infcmd.c (prepare_execution_command): Make extern.
6258         * inferior.h (prepare_execution_command): Declare.
6259         * infrun.c (set_observer_mode): Leave target async alone.
6260         * mi/mi-interp.c (mi_interpreter_init): Install
6261         mi_on_sync_execution_done as sync_execution_done observer.
6262         (mi_on_sync_execution_done): New function.
6263         (mi_execute_command_input_handler): Don't print the prompt if we
6264         just started a synchronous command with an async target.
6265         (mi_on_resume): Check sync_execution before printing prompt.
6266         * mi/mi-main.h (mi_async_p): Declare.
6267         * mi/mi-main.c: Include gdbcmd.h.
6268         (mi_async_p): New function.
6269         (mi_async, mi_async_1): New globals.
6270         (set_mi_async_command, show_mi_async_command, mi_async): New
6271         functions.
6272         (exec_continue): Call prepare_execution_command.
6273         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6274         (mi_execute_async_cli_command): Use mi_async_p.
6275         (_initialize_mi_main): Install "set mi-async".  Make
6276         "target-async" a deprecated alias.
6277
6278 2014-05-29  Pedro Alves  <palves@redhat.com>
6279
6280         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6281         (_initialize_cli_interp): Adjust.
6282         * event-loop.c: Include "observer.h".
6283         (start_event_loop): Notify 'command_error' observers instead of
6284         calling display_gdb_prompt.  Remove FIXME comment.
6285         * event-top.c (display_gdb_prompt): Remove call into the
6286         interpreters.
6287         * inf-loop.c: Include "observer.h".
6288         (inferior_event_handler): Notify 'command_error' observers instead
6289         of calling display_gdb_prompt.
6290         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6291         observers instead of calling display_gdb_prompt.
6292         * interps.c (interp_set): Don't call display_gdb_prompt.
6293         (current_interp_display_prompt_p): Delete.
6294         * interps.h (interp_prompt_p): Delete declaration.
6295         (interp_prompt_p_ftype): Delete.
6296         (struct interp_procs) <prompt_proc_p>: Delete field.
6297         (current_interp_display_prompt_p): Delete declaration.
6298         * mi-interp.c (mi_interpreter_prompt_p): Delete.
6299         (_initialize_mi_interp): Adjust.
6300         * tui-interp.c (tui_init): Install 'sync_execution_done' and
6301         'command_error' observers.
6302         (tui_on_sync_execution_done, tui_on_command_error): New
6303         functions.
6304         (tui_display_prompt_p): Delete.
6305         (_initialize_tui_interp): Adjust.
6306
6307 2014-05-29  Pedro Alves  <palves@redhat.com>
6308
6309         PR gdb/13860
6310         * cli/cli-interp.c: Include infrun.h and observer.h.
6311         (cli_uiout, cli_interp): New globals.
6312         (cli_on_signal_received, cli_on_end_stepping_range)
6313         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6314         functions.
6315         (cli_interpreter_init): Install them as 'end_stepping_range',
6316         'signal_received' 'signal_exited', 'exited' and 'no_history'
6317         observers.
6318         (_initialize_cli_interp): Remove cli_interp local.
6319         * infrun.c (handle_inferior_event): Call the several stop reason
6320         observers instead of printing the stop reason directly.
6321         (end_stepping_range): New function.
6322         (print_end_stepping_range_reason, print_signal_exited_reason)
6323         (print_exited_reason, print_signal_received_reason)
6324         (print_no_history_reason): Make static, and add an uiout
6325         parameter.  Print to that instead of to CURRENT_UIOUT.
6326         * infrun.h (print_end_stepping_range_reason)
6327         (print_signal_exited_reason, print_exited_reason)
6328         (print_signal_received_reason print_no_history_reason): New
6329         declarations.
6330         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6331         'mi_uiout'.
6332         <cli_uiout>: New field.
6333         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
6334         uiout for CLI output.  Install 'signal_received',
6335         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6336         observers.
6337         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6338         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6339         (mi_on_no_history): New functions.
6340         (ui_out_free_cleanup): Delete function.
6341         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6342         instead use the one already stored in the MI interpreter data.
6343         (mi_ui_out): Adjust.
6344         * tui/tui-interp.c: Include infrun.h and observer.h.
6345         (tui_interp): New global.
6346         (tui_on_signal_received, tui_on_end_stepping_range)
6347         (tui_on_signal_exited, tui_on_exited)
6348         (tui_on_no_history): New functions.
6349         (tui_init): Install them as 'end_stepping_range',
6350         'signal_received' 'signal_exited', 'exited' and 'no_history'
6351         observers.
6352         (_initialize_tui_interp): Delete tui_interp local.
6353
6354 2014-05-29  Pedro Alves  <palves@redhat.com>
6355
6356         PR gdb/15713
6357         * linux-nat.c (linux_nat_resume_callback): Rename the second
6358         parameter to 'except'.  Skip LP if it points to EXCEPT.
6359         (linux_nat_resume): Don't mark the event lwp as not stopped
6360         before resuming sibling lwps.  Instead ask
6361         linux_nat_resume_callback to skip the event lwp.  Mark it as not
6362         stopped after actually resuming it.
6363         (linux_handle_syscall_trap): Mark the lwp as not stopped after
6364         resuming it.
6365         (wait_lwp): Mark the lwp as stopped here.
6366         (stop_wait_callback): Mark the lwp as not stopped right after
6367         resuming it.  Don't mark lwps as stopped here.
6368         (linux_nat_filter_event): Mark the lwp as stopped earlier.
6369         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6370
6371 2014-05-29  Pedro Alves  <palves@redhat.com>
6372
6373         PR PR15693
6374         * infrun.c (resume): Determine how much to resume depending on
6375         whether the caller wanted a step, not whether we can hardware step
6376         the target.  Mark all threads that we intend to run as running,
6377         unless we're calling an inferior function.
6378         (normal_stop): If the thread is running an infcall, don't finish
6379         thread state.
6380         * target.c (target_resume): Don't mark threads as running here.
6381
6382 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
6383
6384         * serial.c (_initialize_serial): Remove support for
6385         the "set remotebaud" and "show remotebaud" commands.
6386         * NEWS: Add entry documenting the removal of that command.
6387
6388 2014-05-28  Yao Qi  <yao@codesourcery.com>
6389
6390         * charset.c: Fix typo in comments.
6391
6392 2014-05-27  Gary Benson  <gbenson@redhat.com>
6393
6394         * utils.c (internal_vproblem): Prompt for a bug report.
6395
6396 2014-05-26  Andy Wingo  <wingo@igalia.com>
6397
6398         * guile/scm-arch.c (arscm_mark_arch_smob):
6399         * guile/scm-block.c (bkscm_mark_block_smob)
6400         (bkscm_mark_block_syms_progress_smob):
6401         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6402         * guile/scm-exception.c (exscm_mark_exception_smob):
6403         * guile/scm-frame.c (frscm_mark_frame_smob):
6404         * guile/scm-iterator.c (itscm_mark_iterator_smob):
6405         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6406         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6407         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6408         (ppscm_mark_pretty_printer_worker_smob):
6409         * guile/scm-symbol.c (syscm_mark_symbol_smob):
6410         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6411         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6412         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6413         mark functions.
6414         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6415         function.
6416
6417 2014-05-26  Andy Wingo  <wingo@igalia.com>
6418             Doug Evans  <xdje42@gmail.com>
6419
6420         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6421         empty_base_class.  All uses updated.
6422         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6423         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6424         Adapt all callers.
6425         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6426         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6427         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6428         (gdbscm_gsmob_has_property_p, add_property_name)
6429         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6430         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6431         (gdb-object-has-property?, gdb-object-properties): Remove.
6432         (gdb-object-kind): Renamed from gsmob-kind.
6433
6434 2014-05-26  Andy Wingo  <wingo@igalia.com>
6435
6436         * configure.ac (try_guile_versions): Allow building with guile 2.2.
6437         * configure: Regenerate.
6438
6439 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6440
6441         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6442
6443 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6444
6445         * record-btrace.c (record_btrace_allow_memory_access): Remove.
6446         (replay_memory_access_read_only, replay_memory_access_read_write)
6447         (replay_memory_access_types, replay_memory_access)
6448         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6449         (cmd_set_record_btrace, cmd_show_record_btrace)
6450         (cmd_show_replay_memory_access): New.
6451         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6452         (record_btrace_remove_breakpoint): Replace
6453         record_btrace_allow_memory_access with replay_memory_access.
6454         (_initialize_record_btrace): Add commands.
6455         * NEWS: Announce it.
6456
6457 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6458
6459         * aarch64-linux-nat.c (asm/ptrace.h): Include.
6460
6461 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6462
6463         * MAINTAINERS (Write After Approval): Move self back from
6464         paper trail.
6465
6466 2014-05-22  Pedro Alves  <palves@redhat.com>
6467
6468         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6469         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6470         (disable_randomization, enum exec_direction_kind)
6471         (execution_direction, stop_registers, start_remote)
6472         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6473         (wait_for_inferior, normal_stop, get_last_target_status)
6474         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6475         (insert_step_resume_breakpoint_at_sal)
6476         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6477         (set_step_info, print_stop_event, signal_stop_state)
6478         (signal_print_state, signal_pass_state, signal_stop_update)
6479         (signal_print_update, signal_pass_update)
6480         (update_signals_program_target, clear_exit_convenience_vars)
6481         (displaced_step_dump_bytes, update_observer_mode)
6482         (signal_catch_update, gdb_signal_from_command): Move
6483         declarations ...
6484         * infrun.h: ... to this new file.
6485         * amd64-tdep.c: Include infrun.h.
6486         * annotate.c: Include infrun.h.
6487         * arch-utils.c: Include infrun.h.
6488         * arm-linux-tdep.c: Include infrun.h.
6489         * arm-tdep.c: Include infrun.h.
6490         * break-catch-sig.c: Include infrun.h.
6491         * breakpoint.c: Include infrun.h.
6492         * common/agent.c: Include infrun.h instead of inferior.h.
6493         * corelow.c: Include infrun.h.
6494         * event-top.c: Include infrun.h.
6495         * go32-nat.c: Include infrun.h.
6496         * i386-tdep.c: Include infrun.h.
6497         * inf-loop.c: Include infrun.h.
6498         * infcall.c: Include infrun.h.
6499         * infcmd.c: Include infrun.h.
6500         * infrun.c: Include infrun.h.
6501         * linux-fork.c: Include infrun.h.
6502         * linux-nat.c: Include infrun.h.
6503         * linux-thread-db.c: Include infrun.h.
6504         * monitor.c: Include infrun.h.
6505         * nto-tdep.c: Include infrun.h.
6506         * procfs.c: Include infrun.h.
6507         * record-btrace.c: Include infrun.h.
6508         * record-full.c: Include infrun.h.
6509         * remote-m32r-sdi.c: Include infrun.h.
6510         * remote-mips.c: Include infrun.h.
6511         * remote-notif.c: Include infrun.h.
6512         * remote-sim.c: Include infrun.h.
6513         * remote.c: Include infrun.h.
6514         * reverse.c: Include infrun.h.
6515         * rs6000-tdep.c: Include infrun.h.
6516         * s390-linux-tdep.c: Include infrun.h.
6517         * solib-irix.c: Include infrun.h.
6518         * solib-osf.c: Include infrun.h.
6519         * solib-svr4.c: Include infrun.h.
6520         * target.c: Include infrun.h.
6521         * top.c: Include infrun.h.
6522         * windows-nat.c: Include infrun.h.
6523         * mi/mi-interp.c: Include infrun.h.
6524         * mi/mi-main.c: Include infrun.h.
6525         * python/py-threadevent.c: Include infrun.h.
6526
6527 2014-05-22  Pedro Alves  <palves@redhat.com>
6528
6529         * infrun.c (handle_inferior_event): Store the exit code for
6530         --return-child-result here, instead of ...
6531         (print_exited_reason): ... here.
6532
6533 2014-05-21  Pedro Alves  <palves@redhat.com>
6534
6535         PR gdb/13860
6536         * gdbthread.h (struct thread_control_state): New field
6537         `command_interp'.
6538         * infrun.c (follow_fork): Copy the new thread control field to the
6539         child fork thread.
6540         (clear_proceed_status_thread): Clear the new thread control field.
6541         (proceed): Set the new thread control field.
6542         * interps.h (command_interp): Declare.
6543         * interps.c (command_interpreter): New global.
6544         (command_interp): New function.
6545         (interp_exec): Set `command_interpreter' while here.
6546         * cli-out.c (cli_uiout_dtor): New function.
6547         (cli_ui_out_impl): Install it.
6548         * mi/mi-interp.c: Include cli-out.h.
6549         (mi_cmd_interpreter_exec): Add comment.
6550         (restore_current_uiout_cleanup): New function.
6551         (ui_out_free_cleanup): New function.
6552         (mi_on_normal_stop): If finishing an execution command started by
6553         a CLI command, or any kind of breakpoint-like event triggered,
6554         print the stop event to the output (CLI) stream.
6555         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6556
6557 2014-05-21  Pedro Alves  <palves@redhat.com>
6558
6559         * cli/cli-cmds.c (list_command): Handle the first "list" after the
6560         current source line having changed.
6561         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6562         * infrun.c (normal_stop): Adjust call to
6563         set_current_sal_from_frame.
6564         * source.c (clear_lines_listed_range): New function.
6565         (set_current_source_symtab_and_line, identify_source_line): Clear
6566         the lines listed range.
6567         (line_info): Handle the first "info line" after the current source
6568         line having changed.
6569         * stack.c (print_stack_frame): Remove center handling.
6570         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
6571         center sal.line.
6572
6573 2014-05-21  Pedro Alves  <palves@redhat.com>
6574
6575         * inf-child.c (inf_child_mourn_inferior): New function.
6576         * inf-child.h (inf_child_mourn_inferior): New declaration.
6577         * darwin-nat.c (darwin_mourn_inferior): Use
6578         inf_child_mourn_inferior.
6579         * gnu-nat.c (gnu_mourn_inferior): Likewise.
6580         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6581         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6582         * nto-procfs.c (procfs_mourn_inferior): Likewise.
6583         * windows-nat.c (windows_mourn_inferior): Likewise.
6584
6585 2014-05-21  Doug Evans  <xdje42@gmail.com>
6586
6587         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6588
6589 2014-05-21  Doug Evans  <xdje42@gmail.com>
6590
6591         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6592         (gdbscm_out_of_range_error): Ditto.
6593         (gdbscm_memory_error): Ditto.
6594         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6595         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6596         (gdbscm_out_of_range_error): Update.
6597         (gdbscm_memory_error): Update.
6598         (gdbscm_scm_to_target_string_unsafe): Delete.
6599
6600 2014-05-21  Pedro Alves  <palves@redhat.com>
6601
6602         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6603         globals.
6604         (inf_child_open_target): New function.
6605         (inf_child_open): Use inf_child_open_target to push the target
6606         instead of erroring out.
6607         (inf_child_disconnect, inf_child_close)
6608         (inf_child_maybe_unpush_target): New functions.
6609         (inf_child_target): Install inf_child_disconnect and
6610         inf_child_close.  Store a pointer to the returned object.
6611         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6612         declarations.
6613         * target.c (auto_connect_native_target): New global.
6614         (show_default_run_target): New function.
6615         (find_default_run_target): Return NULL if automatically connecting
6616         to the native target is disabled.
6617         (_initialize_target): Install set/show auto-connect-native-target.
6618         * NEWS: Mention "set auto-connect-native-target", and "target
6619         native".
6620         * linux-nat.c (super_close): New global.
6621         (linux_nat_close): Call super_close.
6622         (linux_nat_add_target): Store a pointer to the base class's
6623         to_close method.
6624         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6625         inf_child_maybe_unpush.
6626         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6627         already pushed.
6628         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6629         the inferior.  Use inf_child_maybe_unpush_target.
6630         (inf_ttrace_attach): Don't push the target if it is already
6631         pushed.
6632         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6633         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6634         after mourning the inferior.  Use inf_child_maybe_unpush_target.
6635         (darwin_attach_pid): Don't push the target if it is already
6636         pushed.
6637         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6638         mourning the inferior.  Use inf_child_maybe_unpush_target.
6639         (gnu_detach): Use inf_child_maybe_unpush_target.
6640         * go32-nat.c (go32_create_inferior): Don't push the target if it
6641         is already pushed.
6642         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6643         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6644         (procfs_open): Rename to ...
6645         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
6646         comments.  Can target_preopen before changing node.  Call
6647         inf_child_open_target to push the target explicitly.
6648         (procfs_attach): Don't push the target if it is already pushed.
6649         (procfs_detach): Use inf_child_maybe_unpush_target.
6650         (procfs_create_inferior): Don't push the target if it is already
6651         pushed.
6652         (nto_native_ops): New global.
6653         (procfs_open): Reimplement.
6654         (procfs_native_open): New function.
6655         (init_procfs_targets): Install procfs_native_open as to_open of
6656         "target native".  Store a pointer to the "native" target in
6657         nto_native_ops.
6658         * procfs.c (procfs_attach): Don't push the target if it is already
6659         pushed.
6660         (procfs_detach): Use inf_child_maybe_unpush_target.
6661         (procfs_mourn_inferior): Only unpush the target after mourning the
6662         inferior.  Use inf_child_maybe_unpush_target.
6663         (procfs_init_inferior): Don't push the target if it is already
6664         pushed.
6665         * windows-nat.c (do_initial_windows_stuff): Don't push the target
6666         if it is already pushed.
6667
6668 2014-05-21  Pedro Alves  <palves@redhat.com>
6669
6670         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6671         and "procfs" targets are now called "native" instead.
6672
6673 2014-05-21  Pedro Alves  <palves@redhat.com>
6674
6675         * go32-nat.c (go32_open): Delete.
6676         (go32_target): Don't override the to_open method.
6677
6678 2014-05-21  Pedro Alves  <palves@redhat.com>
6679
6680         * nto-procfs.c (procfs_can_run): New function.
6681         (nto_procfs_ops): New global.
6682         (init_procfs_targets): New, based on procfs_target.  Install
6683         "target native" in addition to "target procfs".
6684         (_initialize_procfs): Call init_procfs_targets instead of adding
6685         the target here.
6686
6687 2014-05-21  Pedro Alves  <palves@redhat.com>
6688
6689         * windows-nat.c (windows_target): Don't override to_shortname,
6690         to_longname or to_doc.
6691
6692 2014-05-21  Pedro Alves  <palves@redhat.com>
6693
6694         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6695         to_doc.
6696
6697 2014-05-21  Pedro Alves  <palves@redhat.com>
6698
6699         * darwin-nat.c (_initialize_darwin_inferior): Don't override
6700         to_shortname, to_longname or to_doc.
6701
6702 2014-05-21  Pedro Alves  <palves@redhat.com>
6703
6704         * go32-nat.c (go32_target): Don't override to_shortname,
6705         to_longname or to_doc.
6706
6707 2014-05-21  Pedro Alves  <palves@redhat.com>
6708
6709         * inf-child.c (inf_child_open): Remove mention of "child".
6710         (inf_child_target): Rename target to "native" instead of "child".
6711
6712 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6713
6714         * Makefile.in (SFILES): Delete "regset.c".
6715         (COMMON_OBS): Delete "regset.o".
6716         * regset.c: Remove.
6717         * regset.h (regset_alloc): Delete prototype.
6718
6719 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6720
6721         * sparc-linux-tdep.c (sparc32_linux_gregset)
6722         (sparc32_linux_fpregset): New static regset structures.
6723         (sparc32_linux_init_abi): Drop dynamic regset allocations.
6724         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6725         'fpregset' fields.
6726         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6727         (sparc64_linux_fpregset): New static regset structures.
6728         (sparc64_linux_init_abi): Drop dynamic regset allocations.
6729         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6730         New static regset structures.
6731         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6732         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6733         New static regset structures.
6734         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6735         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6736         New static regset structures.
6737         (sparc64obsd_init_abi): Drop dynamic regset allocations.
6738         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6739         New static regset structures.
6740         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6741
6742 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6743
6744         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6745         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6746         register maps ("regmaps") from "*regset" to "*regmap".  Do this
6747         for all regmap types and variables.
6748         * sparc-linux-tdep.c (sparc32_linux_step_trap)
6749         (sparc32_linux_supply_core_gregset)
6750         (sparc32_linux_collect_core_gregset)
6751         (sparc32_linux_supply_core_fpregset)
6752         (sparc32_linux_collect_core_fpregset): Likewise.
6753         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6754         (sparc_gregmap, sparc_fpregmap): ... these.
6755         (sparc_supply_gregset, sparc_collect_gregset)
6756         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6757         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6758         (_initialize_sparc_nat): Rename regmaps.
6759         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6760         (sparc_gregmap, sparc_fpregmap): ... these.
6761         (sparc_supply_gregset, sparc_collect_gregset)
6762         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6763         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6764         Rename macros to...
6765         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6766         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6767         Likewise.
6768         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6769         Rename to...
6770         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6771         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6772         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6773         regmaps.
6774         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6775         (sparc32_bsd_fpregset): Rename to...
6776         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6777         (sparc32_bsd_fpregmap): ... these.
6778         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6779         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6780         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6781         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6782         (struct sparc_gregmap, struct sparc_fpregmap)
6783         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6784         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6785         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6786         (sparc32_supply_regset, sparc32_collect_gregset)
6787         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6788         prototypes.
6789         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6790         (sparc64_linux_ptrace_gregmap): ... this.
6791         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6792         (_initialize_sparc64_linux_nat): Rename regmaps.
6793         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6794         (sparc64_linux_core_gregmap): ... this.
6795         (sparc64_linux_supply_core_gregset)
6796         (sparc64_linux_collect_core_gregset)
6797         (sparc64_linux_supply_core_fpregset)
6798         (sparc64_linux_collect_core_fpregset): Rename regmaps.
6799         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6800         (sparc64_sol2_fpregset): Rename to...
6801         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6802         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6803         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6804         regmaps.
6805         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6806         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6807         (sparc64_bsd_fpregset): Rename to...
6808         (struct sparc_gregmap, sparc64_sol2_gregmap)
6809         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6810         (sparc64_bsd_fpregmap): ... these.
6811         (sparc64_supply_gregset, sparc64_collect_gregset)
6812         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6813         prototypes.
6814         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6815         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6816         (sparc64fbsd_gregmap): ... this.
6817         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6818         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6819         Rename regmaps.
6820         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6821         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6822         (sparc64nbsd_collect_fpregset): Likewise.
6823         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6824         (sparc64nbsd_gregmap): ... this.
6825         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6826         regmaps.
6827         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6828         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6829         (sparc64obsd_gregmap): ... this.
6830         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6831         regmaps.
6832         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6833         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6834         (sparc32nbsd_gregmap): ... this.
6835         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6836         regmaps.
6837
6838 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6839
6840         * score-tdep.c (score7_linux_gregset): New static regset
6841         structure.
6842         (score7_linux_regset_from_core_section): Remove dynamic regset
6843         allocation.
6844         (score_gdbarch_init): Drop allocation of tdep structure.
6845         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6846
6847 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6848
6849         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6850         regset structures.
6851         (am33_regset_from_core_section): Remove dynamic regset
6852         allocations.
6853
6854 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6855
6856         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6857         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6858         structures.
6859         (mips_linux_regset_from_core_section): Remove dynamic regset
6860         allocations.
6861         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6862         'gregset64', 'fpregset', and 'fpregset64'.
6863         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6864         deleted tdep fields.
6865
6866 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6867
6868         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6869         regset structures.
6870         (amd64_regset_from_core_section): Remove dynamic regset
6871         allocations.
6872         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6873         structure.
6874         (amd64obsd_regset_from_core_section): Remove dynamic regset
6875         allocation.
6876         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6877         Likewise.
6878         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6879         x86-common regset supply function.
6880         * i386-tdep.c (i386_collect_gregset): Make static.
6881         (i386_gregset): New global regset structure.
6882         (i386_fpregset, i386_xstateregset): New static regset structures.
6883         (i386_regset_from_core_section): Remove dynamic regset
6884         allocations.
6885         (i386_gdbarch_init): Remove initialization of tdep fields
6886         'gregset', 'fpregset', and 'xstateregset'.
6887         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6888         'fpregset', and 'xstateregset'.
6889         (i386_collect_gregset): Remove prototype.
6890         (i386_gregset): New declaration.
6891         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6892         structure.
6893         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6894         allocation.
6895
6896 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6897
6898         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6899         (arm_linux_vfpregset): New static regset structures.
6900         (arm_linux_regset_from_core_section): Remove dynamic allocation of
6901         regset structures.
6902         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6903         and 'vfpregset' fields.
6904
6905 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6906
6907         * aarch64-linux-tdep.c (aarch64_linux_gregset)
6908         (aarch64_linux_fpregset): New static regset structures.
6909         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6910         of regset structures.
6911         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6912         'fpregset' fields.
6913
6914 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6915
6916         * regset.h (struct regset): Remove gdbarch field.
6917         * regset.c (regset_alloc): Drop initialization of gdbarch field.
6918         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6919         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6920         Likewise.
6921         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6922         (ppc32_linux_fpregset, ppc32_linux_vrregset)
6923         (ppc32_linux_vsxregset): Likewise.
6924         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6925         via the regcache instead of the regset.
6926         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6927         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6928         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6929         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6930         Likewise.
6931
6932 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6933
6934         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6935         Constify structures.
6936         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6937         (alphanbsd_aout_gregset): Likewise.
6938         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6939         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6940         Likewise.
6941         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6942         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6943         Likewise.
6944         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6945         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6946         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6947         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6948         * m88k-tdep.c (m88k_gregset): Likewise.
6949         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6950         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6951         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6952         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6953         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6954         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6955         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6956         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6957         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6958         Likewise.
6959         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6960         * sh-tdep.h (sh_corefile_gregset): Likewise.
6961         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6962         * vax-tdep.c (vax_gregset): Likewise.
6963
6964 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6965
6966         Fix TLS access for -static -pthread.
6967         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6968         (try_thread_db_load_1): Initialize it.
6969         (thread_db_get_thread_local_address): Call it if LM is zero.
6970         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6971         * target.h (struct target_ops) (to_get_thread_local_address): Add
6972         load_module_addr comment.
6973
6974 2014-05-21  Pedro Alves  <palves@redhat.com>
6975
6976         * dcache.c (dcache_read_memory_partial): If reading the cache line
6977         fails, fallback to reading just the memory the caller wanted.
6978
6979 2014-05-20  Doug Evans  <dje@google.com>
6980
6981         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6982         instead of get_current_arch.
6983
6984 2014-05-20  Pedro Alves  <palves@redhat.com>
6985
6986         * NEWS: Mention that compare-sections now works with all targets.
6987
6988         * remote.c (PACKET_qCRC): New enum value.
6989         (remote_verify_memory): Don't send qCRC if the target has no
6990         execution.  Use packet_support/packet_ok.  If the target doesn't
6991         support the qCRC packet, fallback to a deep memory copy.
6992         (compare_sections_command): Say "target image" instead of "remote
6993         executable".
6994         (_initialize_remote): Add PACKET_qCRC to the list of config
6995         packets that have no associated command.  Extend comment.
6996         * target.c (simple_verify_memory, default_verify_memory): New
6997         function.
6998         * target.h (struct target_ops) <to_verify_memory>: Default to
6999         default_verify_memory.
7000         (simple_verify_memory): New declaration.
7001         * target-delegates.c: Regenerate.
7002
7003 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
7004
7005         * record-btrace.c (record_btrace_step_thread): Check for empty history.
7006
7007 2014-05-20  Hui Zhu  <hui@codesourcery.com>
7008             Yao Qi  <yao@codesourcery.com>
7009
7010         PR backtrace/16558
7011         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7012         and change address of sp and pc.
7013
7014 2014-05-19  Tom Tromey  <tromey@redhat.com>
7015
7016         * gdbtypes.c (rank_function): Use XNEWVEC.
7017         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7018
7019 2014-05-19  Doug Evans  <dje@google.com>
7020
7021         * dwarf2read.c (build_type_psymtabs_1): Renamed from
7022         build_type_unit_groups and moved closer to only caller.  Remove
7023         arguments.  All references updated.  Remove outdated .gdb_index
7024         comment.
7025         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7026         build_type_psymtabs_1.
7027
7028 2014-05-19  Doug Evans  <dje@google.com>
7029
7030         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7031         n_type_unit_groups, all_type_unit_groups.  All uses removed.
7032         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7033         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
7034         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
7035         (add_type_unit_group_to_table): Delete.
7036
7037 2014-05-19  Doug Evans  <dje@google.com>
7038
7039         * eval.c (evaluate_subexp_standard): Add some comments.
7040
7041 2014-05-17  Doug Evans  <xdje42@gmail.com>
7042
7043         * progspace.c (remove_program_space): Delete, unused.
7044         * progspace.h (remove_program_space): Ditto.
7045
7046 2014-05-17  Doug Evans  <xdje42@gmail.com>
7047
7048         * inferior.c (prune_inferiors): Fix comment.
7049         (remove_inferior_command): Call prune_program_spaces.
7050
7051 2014-05-16  Doug Evans  <dje@google.com>
7052
7053         New command line option -D.
7054         * NEWS: Mention it.
7055         * main.c (set_gdb_data_directory): New function.
7056         (captured_main): Recognize -D.  Flag error for --data-directory "".
7057         Call set_gdb_data_directory.
7058         (print_gdb_help): Print --data-directory, -D.
7059         * main.h (set_gdb_data_directory): Declare.
7060         * top.c (staged_gdb_datadir): New static global.
7061         (set_gdb_datadir): Call set_gdb_data_directory
7062         (show_gdb_datadir): New function.
7063         (init_main): Update init of data-directory parameter.
7064
7065 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
7066
7067         Import the "dirfd" gnulib module.
7068         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7069         * gnulib/aclocal.m4: Update.
7070         * gnulib/config.in: Update.
7071         * gnulib/configure: Update.
7072         * gnulib/import/Makefile.am: Update.
7073         * gnulib/import/Makefile.in: Update.
7074         * gnulib/import/dirfd.c: New.
7075         * gnulib/import/m4/dirfd.m4: New.
7076         * gnulib/import/m4/gnulib-cache.m4: Update.
7077         * gnulib/import/m4/gnulib-comp.m4: Update.
7078
7079 2014-05-16  Pierre Muller  <muller@sourceware.org>
7080             Yao Qi  <yao@codesourcery.com>
7081
7082         * valprint.c (print_wchar): Move the code on checking whether
7083         W is a printable wide char to the default branch of switch
7084         statement below.  Call wchar_printable instead of gdb_iswprint.
7085
7086 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
7087
7088         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7089         ldr.w and ldrd instructions.
7090
7091 2014-05-15  Doug Evans  <dje@google.com>
7092
7093         * dwarf2read.c (read_structure_type): Delete outdated comments.
7094
7095 2014-05-14  Tom Tromey  <tromey@redhat.com>
7096
7097         * macrocmd.c (print_macro_definition): Reindent.
7098
7099 2014-05-13  Doug Evans  <xdje42@gmail.com>
7100
7101         * python/py-cmd.c (cmdpy_completer): Add comment.
7102         (completers): Make const.
7103
7104 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
7105
7106         * infrun.c (resume): Remove should_resume (unused).  Move up
7107         declaration of resume_ptid.
7108
7109 2014-05-13  Tom Tromey  <tromey@redhat.com>
7110
7111         * language.h (unop_type_check): Remove.
7112         (binop_type_check): Don't declare.
7113
7114 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7115
7116         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7117         call to regcache_raw_collect.
7118
7119 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7120
7121         * mi/mi-console.c (mi_console_raw_packet): Use the value from
7122         mi_console->quote as the quoting character.
7123
7124 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7125
7126         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7127
7128 2014-04-29  Tom Tromey  <tromey@redhat.com>
7129
7130         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7131         "show debug varobj".
7132
7133 2014-05-07  Kyle McMartin  <kyle@redhat.com>
7134
7135         Pushed by Joel Brobecker  <brobecker@adacore.com>.
7136         * aarch64-tdep.c (aarch64_software_single_step): New function.
7137         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7138         with aarch64_software_single_step.
7139
7140 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
7141
7142         GDB 7.7.1 released.
7143
7144 2014-05-05  Keith Seitz  <keiths@redhat.com>
7145
7146         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7147         variable or history value is successfully parsed.
7148
7149 2014-05-05  Yao Qi  <yao@codesourcery.com>
7150             Pedro Alves  <palves@redhat.com>
7151
7152         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7153         address of blocks that intersects the requested range.  Trim
7154         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7155         sections.
7156         * ctf.c (ctf_xfer_partial): Likewise.
7157
7158 2014-05-05  Yao Qi  <yao@codesourcery.com>
7159
7160         * printcmd.c (display_command): Remove the check to
7161         target_has_execution.
7162
7163 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
7164
7165         * ppcobsd-nat.c: Include "obsd-nat.h".
7166         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7167         add_target.
7168         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7169
7170 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
7171
7172         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7173         and 16-bit signed and unsigned arguments.  Update comment.
7174         (stap_parse_probe_arguments): Extend code to handle such
7175         arguments.  Use warning instead of complaint to notify about
7176         unrecognized bitness.
7177
7178 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
7179
7180         PR breakpoints/16889
7181         * stap-probe.c (stap_parse_probe_arguments): Simplify
7182         check for non-prefixed probes (i.e., probes whose
7183         arguments do not start with "N@").  Always set the
7184         argument type to a sane value.
7185
7186 2014-05-01  David Taylor  <dtaylor@emc.com>
7187
7188         * remote.c (compare_sections_command): Add -r option to compare
7189         all loadable read-only sections.
7190
7191 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
7192
7193         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7194         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7195         Update all callers.
7196         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7197         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7198         Remove unused CORE_ADDR argument.  Update all callers.
7199
7200 2014-04-29  Pedro Alves  <palves@redhat.com>
7201
7202         * remote.c (struct packet_config) <detect>: Extend comment.
7203         (add_packet_config_cmd): Don't set the config's detect or support
7204         fields here.
7205         (init_all_packet_configs): Also initialize the config's 'detect'
7206         field.
7207         (reset_all_packet_configs_support): New function.
7208         (remote_open_1): Call reset_all_packet_configs_support instead of
7209         init_all_packet_configs.
7210         (_initialize_remote): Initialize all packet configs.  Assert that
7211         all packets have an associated command, except a few known
7212         outliers.
7213
7214 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7215
7216         * dwarf2read.c (read_subrange_type): Handle dynamic
7217         DW_AT_lower_bound attributes.
7218
7219 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7220
7221         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7222         dynamic bounds before computing its upper bound.
7223         (ada_discrete_type_low_bound): Same as above with the lower bound.
7224
7225 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7226
7227         * dwarf2read.c (is_dynamic_type): Return true for dynamic
7228         range types.  Adjust the array handling implementation to
7229         take advantage of this change.
7230         (resolve_dynamic_range): New function, mostly extracted from
7231         resolve_dynamic_bounds.
7232         (resolve_dynamic_array): New function, mostly extracted from
7233         resolve_dynamic_bounds.
7234         (resolve_dynamic_bounds): Delete.
7235         (resolve_dynamic_type): Reimplement.  Add handling of
7236         TYPE_CODE_RANGE types.
7237
7238 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7239
7240         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7241         handling of parallel ___XA types.
7242
7243 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7244
7245         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7246         unnecessary second call to static_unwrap_type.
7247
7248 2014-04-27  Hui Zhu  <hui@codesourcery.com>
7249
7250         * stack.c (print_frame_info): Call do_gdb_disassembly with
7251         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7252
7253 2014-04-26  Doug Evans  <xdje42@gmail.com>
7254
7255         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7256
7257 2014-04-25  Pedro Alves  <palves@redhat.com>
7258
7259         PR server/16255
7260         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7261         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
7262         and newline from built string.
7263         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7264         (linux_ptrace_attach_fail_reason): ... this.
7265         * linux-nat.c (linux_nat_attach): Adjust to use
7266         linux_ptrace_attach_fail_reason.
7267
7268 2014-04-25  Pedro Alves  <palves@redhat.com>
7269
7270         * remote.c (struct remote_state): Remove multi_process_aware,
7271         non_stop_aware, cond_tracepoints, cond_breakpoints,
7272         breakpoint_commands, fast_tracepoints, static_tracepoints,
7273         install_in_trace, disconnected_tracing,
7274         enable_disable_tracepoints, string_tracing, and
7275         augmented_libraries_svr4_read fields.
7276         (remote_multi_process_p): Move further below in the file.
7277         (struct packet_config): Add comments.
7278         (update_packet_config): Delete function.
7279         (show_packet_config_cmd): Use packet_config_support.
7280         (add_packet_config_cmd): Use NULL as set callback.
7281         (packet_ok): "set remote foo-packet"-style commands no longer
7282         change config->supported -- adjust.
7283         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7284         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7285         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7286         (PACKET_QNonStop, PACKET_multiprocess_feature)
7287         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7288         (PACKET_DisconnectedTracing_feature)
7289         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7290         (set_remote_protocol_packet_cmd): Delete function.
7291         (packet_config_support, packet_support): New functions.
7292         (set_remote_protocol_Z_packet_cmd): Don't call
7293         update_packet_config.
7294         (remote_query_attached, remote_pass_signals)
7295         (remote_program_signals, remote_threads_info)
7296         (remote_threads_extra_info, remote_start_remote): Use
7297         packet_support.
7298         (remote_start_remote): Use packet_config_support and
7299         packet_support.
7300         (init_all_packet_configs): Set all packets to unknown support,
7301         instead of calling update_packet_config.
7302         (remote_check_symbols): Use packet_support.
7303         (remote_supported_packet): Unconditionally set the packet config's
7304         support status.
7305         (remote_multi_process_feature, remote_non_stop_feature)
7306         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7307         (remote_breakpoint_commands_feature)
7308         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7309         (remote_install_in_trace_feature)
7310         (remote_disconnected_tracing_feature)
7311         (remote_enable_disable_tracepoint_feature)
7312         (remote_string_tracing_feature)
7313         (remote_augmented_libraries_svr4_read_feature): Delete functions.
7314         (remote_protocol_features): Adjust to use remote_supported_packet
7315         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7316         "ConditionalTracepoints", "ConditionalBreakpoints",
7317         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7318         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7319         "EnableDisableTracepoints", and "tracenz".
7320         (remote_query_supported): Use packet_support.
7321         (remote_open_1): Adjust.
7322         (extended_remote_attach_1): Use packet_support.  Switch on the
7323         result of packet_ok instead of checking whether the packet ended
7324         up disabled.
7325         (remote_vcont_resume): Use packet_support.
7326         (remote_resume, remote_stop_ns, fetch_register_using_p)
7327         (remote_prepare_to_store, store_register_using_P)
7328         (check_binary_download, remote_write_bytes): Use packet_support.
7329         (remote_vkill): Use packet_support.  Switch on the result of
7330         packet_ok instead of checking whether the packet ended up
7331         disabled.
7332         (extended_remote_supports_disable_randomization): Use
7333         packet_support.
7334         (extended_remote_run): Switch on the result of packet_ok instead
7335         of checking whether the packet ended up disabled.
7336         (remote_insert_breakpoint, remote_remove_breakpoint)
7337         (remote_insert_watchpoint, remote_remove_watchpoint)
7338         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7339         packet_support.
7340         (remote_search_memory): Use packet_config_support.
7341         (remote_get_thread_local_address, remote_get_tib_address)
7342         (remote_hostio_send_command, remote_can_execute_reverse): Use
7343         packet_support.
7344         (remote_supports_cond_tracepoints)
7345         (remote_supports_cond_breakpoints)
7346         (remote_supports_fast_tracepoints)
7347         (remote_supports_static_tracepoints)
7348         (remote_supports_install_in_trace)
7349         (remote_supports_enable_disable_tracepoint)
7350         (remote_supports_string_tracing)
7351         (remote_can_run_breakpoint_commands): Rewrite, checking whether
7352         the packet config says the feature is enabled or disabled.
7353         (remote_download_tracepoint, remote_trace_set_readonly_regions)
7354         (remote_get_trace_status): Use packet_support.
7355         (remote_set_disconnected_tracing): Adjust to check whether the
7356         feature is enabled with packet_support.
7357         (remote_set_trace_buffer_size, remote_use_agent)
7358         (remote_can_use_agent, remote_supports_btrace): Use
7359         packet_support.
7360         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7361         Use packet_config_support.
7362         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7363         the packet config says the feature is enabled or disabled.
7364         (set_range_stepping): Use packet_support.
7365
7366 2014-04-25  Tom Tromey  <tromey@redhat.com>
7367
7368         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7369         argument.
7370
7371 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
7372
7373         * NEWS: Mention support for C99 variable length arrays.
7374
7375 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
7376
7377         * ada-lang.c (standard_exc): Expand introductory comment.
7378
7379 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
7380             Walfred Tedeschi  <walfred.tedeschi@intel.com>
7381
7382         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7383         AVX512 registers.
7384         (amd64_linux_read_description): Add code to handle AVX512 xstate
7385         mask and return respective tdesc.
7386         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7387         and features/i386/x32-avx512-linux.c.
7388         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7389         (amd64_linux_core_read_description): Add code to handle AVX512
7390         xstate mask and return respective tdesc.
7391         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7392         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7393         calculation.
7394         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7395         (tdesc_amd64_avx512_linux): New prototype.
7396         (tdesc_x32_avx512_linux): Likewise.
7397         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7398         features/i386/x32-avx512.c.
7399         (amd64_ymm_avx512_names): New register names for pseudo
7400         registers YMM16-31.
7401         (amd64_ymmh_avx512_names): New register names for raw registers
7402         YMMH16-31.
7403         (amd64_k_names): New register names for K registers.
7404         (amd64_zmmh_names): New register names for ZMM raw registers.
7405         (amd64_zmm_names): New registers names for ZMM pseudo registers.
7406         (amd64_xmm_avx512_names): New register names for XMM16-31
7407         registers.
7408         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7409         registers.
7410         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7411         if feature is present.
7412         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7413         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7414         (AMD64_NUM_REGS): Adjust to new number of registers.
7415         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7416         registers supplied via XSTATE by AVX512 registers.
7417         (i386_linux_read_description): Add case for AVX512.
7418         * i386-linux-tdep.c: Include i386-avx512-linux.c.
7419         (i386_linux_gregset_reg_offset): Add AVX512 registers.
7420         (i386_linux_core_read_description): Add case for AVX512.
7421         (i386_linux_init_abi): Install supported register note section
7422         for AVX512.
7423         (_initialize_i386_linux_tdep): Add call to tdesc init function for
7424         AVX512.
7425         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7426         registers to be number of zmm7h + 1.
7427         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7428         * i386-tdep.c: Include features/i386/i386-avx512.c.
7429         (i386_zmm_names): Add ZMM pseudo register names array.
7430         (i386_zmmh_names): Add ZMM raw register names array.
7431         (i386_k_names): Add K raw register names array.
7432         (num_lower_zmm_regs): Add constant for the number of lower ZMM
7433         registers. AVX512 has 16 more ZMM registers than there are YMM
7434         registers.
7435         (i386_zmmh_regnum_p): Add function to look up register number of
7436         ZMM raw registers.
7437         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7438         (i386_k_regnum_p): Likewise for K raw registers.
7439         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7440         registers added by AVX512.
7441         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7442         registers added by AVX512.
7443         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7444         added by AVX512.
7445         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7446         (i386_pseudo_register_name): Add ZMM pseudo registers.
7447         (i386_zmm_type): Construct and return vector registers type for ZMM
7448         registers.
7449         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7450         ZMM0-31 pseudo registers and K registers.
7451         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7452         and YMM16-31 registers from register cache.
7453         (i386_pseudo_register_write): Add code to write  K, ZMM and
7454         YMM16-31 registers.
7455         (i386_register_reggroup_p): Add code to include/exclude AVX512
7456         registers in/from respective register groups.
7457         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7458         registers if feature is present in xcr0.
7459         (i386_gdbarch_init): Add code to initialize AVX512 feature
7460         variables in tdep structure, wire in pseudo registers and call
7461         initialize_tdesc_i386_avx512.
7462         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7463         variables.
7464         (i386_regnum): Add AVX512 registers.
7465         (I386_SSE_NUM_REGS): New define for number of SSE registers.
7466         (I386_AVX_NUM_REGS): Likewise for AVX registers.
7467         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7468         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7469         512 bits wide.
7470         (i386_xmm_avx512_regnum_p): New prototype for register look up.
7471         (i386_ymm_avx512_regnum_p): Likewise.
7472         (i386_k_regnum_p): Likewise.
7473         (i386_zmm_regnum_p): Likewise.
7474         (i386_zmmh_regnum_p): Likewise.
7475         * i387-tdep.c : Update year in copyright notice.
7476         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7477         XSAVE buffer.
7478         (XSAVE_YMM_AVX512_ADDR): New macro.
7479         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7480         XSAVE buffer.
7481         (XSAVE_XMM_AVX512_ADDR): New macro.
7482         (xsave_avx512_k_offset): New table for K register offsets in
7483         XSAVE buffer.
7484         (XSAVE_AVX512_K_ADDR): New macro.
7485         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7486         in XSAVE buffer.
7487         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7488         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7489         buffer.
7490         (i387_collect_xsave): Add code to collect AVX512 registers from
7491         XSAVE buffer.
7492         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7493         of XMM16-31 registers.
7494         (I387_NUM_K_REGS): New define for number of K registers.
7495         (I387_K0_REGNUM): New define for K0 register number.
7496         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7497         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7498         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7499         registers.
7500         (I387_YMM16H_REGNUM): New define for YMM16H register number.
7501         (I387_XMM16_REGNUM): New define for XMM16 register number.
7502         (I387_YMM0_REGNUM): New define for YMM0 register number.
7503         (I387_KEND_REGNUM): New define for last K register number.
7504         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7505         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7506         number.
7507         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7508         number.
7509         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7510         size.
7511         * features/Makefile: Add AVX512 related files.
7512         * features/i386/32bit-avx512.xml: New file.
7513         * features/i386/64bit-avx512.xml: Likewise.
7514         * features/i386/amd64-avx512-linux.c: Likewise.
7515         * features/i386/amd64-avx512-linux.xml: Likewise.
7516         * features/i386/amd64-avx512.c: Likewise.
7517         * features/i386/amd64-avx512.xml: Likewise.
7518         * features/i386/i386-avx512-linux.c: Likewise.
7519         * features/i386/i386-avx512-linux.xml: Likewise.
7520         * features/i386/i386-avx512.c: Likewise.
7521         * features/i386/i386-avx512.xml: Likewise.
7522         * features/i386/x32-avx512-linux.c: Likewise.
7523         * features/i386/x32-avx512-linux.xml: Likewise.
7524         * features/i386/x32-avx512.c: Likewise.
7525         * features/i386/x32-avx512.xml: Likewise.
7526         * regformats/i386/amd64-avx512-linux.dat: New file.
7527         * regformats/i386/amd64-avx512.dat: Likewise.
7528         * regformats/i386/i386-avx512-linux.dat: Likewise.
7529         * regformats/i386/i386-avx512.dat: Likewise.
7530         * regformats/i386/x32-avx512-linux.dat: Likewise.
7531         * regformats/i386/x32-avx512.dat: Likewise.
7532         * NEWS: Add note about new support for AVX512.
7533
7534
7535 2014-04-23  Pedro Alves  <palves@redhat.com>
7536
7537         * breakpoint.c (insert_bp_location): Tolerate errors if the
7538         breakpoint is set in a user-loaded objfile.
7539         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
7540         location is marked shlib_disabled.  If the breakpoint is set in a
7541         user-loaded objfile is a GDB-side memory breakpoint, validate it
7542         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
7543         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
7544         flag.
7545         * mem-break.c (memory_validate_breakpoint): New function.
7546         * objfiles.c (userloaded_objfile_contains_address_p): New
7547         function.
7548         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7549         * target.h (memory_validate_breakpoint): New declaration.
7550
7551 2014-04-23  Pedro Alves  <palves@redhat.com>
7552
7553         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7554         the breakpoint is set in a shared library, only suppress
7555         errors for software breakpoints, not hardware breakpoints.
7556
7557 2014-04-22  Pedro Alves  <palves@redhat.com>
7558
7559         * infrun.c (schedlock_applies): New function, factored out from
7560         find_thread_needs_step_over.
7561         (find_thread_needs_step_over): Use it.
7562         (switch_back_to_stepped_thread): Always clear trap_expected if the
7563         step over is finished.  Return early if scheduler locking applies.
7564         Look for the stepping thread and a potential step-over thread with
7565         a single loop.
7566         (currently_stepping_or_nexting_callback): Delete.
7567
7568 2014-04-22  Nick Clifton  <nickc@redhat.com>
7569
7570         * NEWS: Mention that ARM sim now supports tracing.
7571
7572 2014-04-22  Yao Qi  <yao@codesourcery.com>
7573
7574         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7575         to ...
7576         * tracefile.c (tracefile_fetch_registers): ... it.  New
7577         function.
7578         * tracefile.h (tracefile_fetch_registers): Declare.
7579         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
7580         tracefile_fetch_registers.
7581
7582 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
7583
7584         PR gdb/14018
7585         * windows-nat.c (thread_rec): Don't display a warning when
7586         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
7587         fails for any reason, set th->suspended to -1, so that we don't
7588         try to resume such a thread.  Also, don't return NULL in these
7589         cases, to avoid completely ruin the session due to "PC register is
7590         not available" error.
7591         (do_windows_fetch_inferior_registers): Check errors in
7592         GetThreadContext call.
7593         (windows_continue): Accept an additional argument KILLED; if not
7594         zero, ignore errors in the SetThreadContext call, since the
7595         inferior was killed and is shutting down.
7596         (windows_resume, get_windows_debug_event)
7597         (windows_create_inferior, windows_mourn_inferior)
7598         (windows_kill_inferior): All callers of windows_continue changed
7599         to adjust to its new calling sequence.
7600
7601 2014-04-19  Yao Qi  <yao@codesourcery.com>
7602
7603         * ctf.c (ctf_open): Call post_create_inferior.
7604
7605 2014-04-19  Yao Qi  <yao@codesourcery.com>
7606
7607         * ctf.c (handle_id): New static variable.
7608         (ctf_open_dir): Get handle_id from bt_context_add_trace return
7609         value.  Get the declaration of event "register" and get length
7610         of field "contents".
7611
7612 2014-04-19  Yao Qi  <yao@codesourcery.com>
7613
7614         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7615
7616 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
7617
7618         * valops.c (oload_method_static): Remove unnecessary argument
7619         METHOD.  Update all callers.
7620
7621 2014-04-18  Pedro alves  <palves@redhat.com>
7622             Tom Tromey  <tromey@redhat.com>
7623
7624         PR backtrace/15558
7625         * frame.c (get_prev_frame_1): Rename to ...
7626         (get_prev_frame_always): ... this, and make extern.  Adjust.
7627         (skip_artificial_frames): Use get_prev_frame_always.
7628         (frame_unwind_caller_id, frame_pop, get_prev_frame)
7629         (get_frame_unwind_stop_reason): Adjust to rename.
7630         * frame.h (get_prev_frame_always): Declare.
7631         * inline-frame.c: Include frame.h.
7632         (inline_frame_this_id): Use get_prev_frame_always.
7633
7634 2014-04-18  Tristan Gingold  <gingold@adacore.com>
7635
7636         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7637         code by using bfd_mach_o_get_base_address.
7638
7639 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7640
7641         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7642         (spu_ax_pseudo_register_collect): New function.
7643         (spu_ax_pseudo_register_push_stack): Likewise.
7644         (spu_dwarf_reg_to_regnum): Likewise.
7645         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
7646
7647 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7648
7649         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7650         Replace FRAME argument with FRAME_ID.
7651         * gdbarch.c, gdbarch.h: Regenerate.
7652         * findvar.c (default_value_from_register): Add GDBARCH argument;
7653         replace FRAME by FRAME_ID.  No longer call get_frame_id.
7654         (value_from_register): Update call to gdbarch_value_from_register.
7655         * value.h (default_value_from_register): Update prototype.
7656         * s390-linux-tdep.c (s390_value_from_register): Update interface
7657         and call to default_value_from_register.
7658         * spu-tdep.c (spu_value_from_register): Likewise.
7659
7660         * findvar.c (address_from_register): Remove TYPE argument.
7661         Do not call value_from_register; use gdbarch_value_from_register
7662         with null_frame_id instead.
7663         * value.h (address_from_register): Update prototype.
7664         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7665         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7666         address_from_register interface change.
7667
7668 2014-04-17  Yao Qi  <yao@codesourcery.com>
7669
7670         * gdbtypes.h: Update comments to link to types and macros'
7671         definitions.
7672
7673 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
7674
7675         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7676
7677 2014-04-16  Keith Seitz  <keiths@redhat.com>
7678
7679         PR gdb/15827
7680         * dwarf2read.c (skip_one_die): Check that all relative-offset
7681         sibling DIEs fall within range of the current reader's buffer.
7682         (read_partial_die): Likewise.
7683
7684 2014-04-16  Keith Seitz  <keiths@redhat.com>
7685
7686         PR c++/16597
7687         * cp-namespace.c (lookup_symbol_file): If the type name of
7688         `this' is NULL, return immediately.
7689
7690 2014-04-14  Keith Seitz  <keiths@redhat.com>
7691
7692         PR c++/16253
7693         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7694         from symbol_matches_domain in symtab.c. All local callers
7695         of symbol_matches_domain updated.
7696         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7697         search STRUCT_DOMAIN.
7698         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7699         independently.  standard_lookup will do that automatically.
7700         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7701         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7702         (cp_lookup_symbol_in_namespace): Likewise.
7703         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7704         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7705         may return a STRUCT_DOMAIN match.
7706         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7707         * cp-support.c: Include language.h.
7708         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7709         VAR_DOMAIN.
7710         * psymtab.c (match_partial_symbol): Compare the requested
7711         domain with the symbol's domain directly.
7712         (lookup_partial_symbol): Likewise.
7713         * symtab.c (lookup_symbol_in_language): Explain when/why
7714         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7715         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7716         appropriate languages.
7717         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7718         and moved to ada-lang.c
7719         (lookup_block_symbol): Explain that this function only returns
7720         symbol matching the requested DOMAIN.
7721         Compare the requested domain with the symbol's domain directly.
7722         (iterate_over_symbols): Compare the requested domain with the
7723         symbol's domain directly.
7724         * symtab.h (symbol_matches_domain): Remove.
7725
7726 2014-04-14  Tom Tromey  <tromey@redhat.com>
7727
7728         PR c++/15246:
7729         * c-exp.y (type_aggregate_p): New function.
7730         (qualified_name, classify_inner_name): Use it.
7731         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7732         and TYPE_TARGET_TYPE of an enum type.
7733         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7734         an enum type.
7735         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7736         handle TYPE_DECLARED_CLASS.
7737         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7738         types.
7739         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7740         * valops.c (enum_constant_from_type): New function.
7741         (value_aggregate_elt): Use it.
7742         * cp-namespace.c (cp_lookup_nested_symbol): Handle
7743         TYPE_CODE_ENUM.
7744
7745 2014-04-14  Tom Tromey  <tromey@redhat.com>
7746
7747         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7748         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7749         const.
7750         * value.h (value_aggregate_elt): Update.
7751
7752 2014-04-14  Tom Tromey  <tromey@redhat.com>
7753
7754         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7755
7756 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7757
7758         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7759         (evaluate_subexp_standard): Pass noside argument.
7760         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7761         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7762         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7763         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7764         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7765
7766 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7767
7768         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7769         points to a constant blob.
7770
7771 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7772
7773         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7774         property and store it as the high bound and flag the range accordingly.
7775         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7776         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7777         * gdbtypes.h (enum range_flags): New enum.
7778         (struct range_bounds): Add flags member.
7779
7780 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7781
7782         * c-typeprint.c (c_type_print_varspec_suffix): Added
7783         check for not yet resolved high bound. If unresolved, print
7784         "variable length" string to the console instead of random
7785         length.
7786
7787 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7788
7789         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7790         value.
7791         (ada_template_to_fixed_record_type_1): Likewise.
7792         (ada_to_fixed_type_1): Likewise.
7793         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7794         (cp_print_value): Likewise.
7795         * d-valprint.c (dynamic_array_type): Likewise.
7796         * findvar.c (address_of_variable): Likewise.
7797         * jv-valprint.c (java_value_print): Likewise.
7798         * valops.c (value_ind): Likewise.
7799         * value.c (coerce_ref): Likewise.
7800
7801 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7802
7803         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7804         value and retrieve the dynamic type size.
7805
7806 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7807
7808         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7809         passed to sizeof is dynamic evaluate the argument to compute the length.
7810
7811 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7812             Joel Brobecker  <brobecker@adacore.com>
7813
7814         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7815         (dwarf2_evaluate_property): New function.
7816         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7817         * dwarf2read.c (attr_to_dynamic_prop): New function.
7818         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7819         attribute.
7820         * gdbtypes.c: Include dwarf2loc.h.
7821         (is_dynamic_type): New function.
7822         (resolve_dynamic_type): New function.
7823         (resolve_dynamic_bounds): New function.
7824         (get_type_length): New function.
7825         (check_typedef): Use get_type_length to compute type length.
7826         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7827         (TYPE_LOW_BOUND_KIND): New macro.
7828         (is_dynamic_type): New function prototype.
7829         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7830         to resolve dynamic properties of the type. Update comment.
7831         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7832
7833 2014-04-14  Richard Henderson  <rth@redhat.com>
7834
7835         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7836
7837 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
7838             Doug Evans  <xdje42@gmail.com>
7839
7840         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7841         dereference TYPE_CODE_REF values.
7842
7843 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
7844
7845         Revert the following changes due to regressions:
7846
7847         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7848         (dwarf2_evaluate_property): New function.
7849         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7850         * dwarf2read.c (attr_to_dynamic_prop): New function.
7851         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7852         attribute.
7853         * gdbtypes.c: Include dwarf2loc.h.
7854         (is_dynamic_type): New function.
7855         (resolve_dynamic_type): New function.
7856         (resolve_dynamic_bounds): New function.
7857         (get_type_length): New function.
7858         (check_typedef): Use get_type_length to compute type length.
7859         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7860         (TYPE_LOW_BOUND_KIND): New macro.
7861         (is_dynamic_type): New function prototype.
7862         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7863         to resolve dynamic properties of the type. Update comment.
7864         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7865
7866         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7867         passed to sizeof is dynamic evaluate the argument to compute the length.
7868
7869         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7870         value and retrieve the dynamic type size.
7871
7872         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7873         (ada_template_to_fixed_record_type_1): Likewise.
7874         (ada_to_fixed_type_1): Likewise.
7875         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7876         (cp_print_value): Likewise.
7877         * d-valprint.c (dynamic_array_type): Likewise.
7878         * eval.c (evaluate_subexp_with_coercion): Likewise.
7879         * findvar.c (address_of_variable): Likewise.
7880         * jv-valprint.c (java_value_print): Likewise.
7881         * valops.c (value_ind): Likewise.
7882         * value.c (coerce_ref): Likewise.
7883
7884         * c-typeprint.c (c_type_print_varspec_suffix): Added
7885         check for not yet resolved high bound. If unresolved, print
7886         "variable length" string to the console instead of random
7887         length.
7888
7889         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7890         property and store it as the high bound and flag the range accordingly.
7891         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7892         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7893         * gdbtypes.h (enum range_flags): New enum.
7894         (struct range_bounds): Add flags member.
7895
7896         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7897         points to a constant blob.
7898
7899         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7900         (evaluate_subexp_standard): Pass noside argument.
7901         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7902         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7903         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7904         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7905         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7906
7907 2014-04-11  Keith Seitz  <keiths@redhat.com>
7908
7909         PR c++/16675
7910         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7911         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7912         reference types.
7913
7914 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7915
7916         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7917         (evaluate_subexp_standard): Pass noside argument.
7918         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7919         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7920         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7921         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7922         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7923
7924 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7925
7926         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7927         points to a constant blob.
7928
7929 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7930
7931         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7932         property and store it as the high bound and flag the range accordingly.
7933         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7934         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7935         * gdbtypes.h (enum range_flags): New enum.
7936         (struct range_bounds): Add flags member.
7937
7938 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7939
7940         * c-typeprint.c (c_type_print_varspec_suffix): Added
7941         check for not yet resolved high bound. If unresolved, print
7942         "variable length" string to the console instead of random
7943         length.
7944
7945 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7946
7947         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7948         (ada_template_to_fixed_record_type_1): Likewise.
7949         (ada_to_fixed_type_1): Likewise.
7950         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7951         (cp_print_value): Likewise.
7952         * d-valprint.c (dynamic_array_type): Likewise.
7953         * eval.c (evaluate_subexp_with_coercion): Likewise.
7954         * findvar.c (address_of_variable): Likewise.
7955         * jv-valprint.c (java_value_print): Likewise.
7956         * valops.c (value_ind): Likewise.
7957         * value.c (coerce_ref): Likewise.
7958
7959 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7960
7961         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7962         value and retrieve the dynamic type size.
7963
7964 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7965
7966         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7967         passed to sizeof is dynamic evaluate the argument to compute the length.
7968
7969 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7970
7971         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7972         (dwarf2_evaluate_property): New function.
7973         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7974         * dwarf2read.c (attr_to_dynamic_prop): New function.
7975         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7976         attribute.
7977         * gdbtypes.c: Include dwarf2loc.h.
7978         (is_dynamic_type): New function.
7979         (resolve_dynamic_type): New function.
7980         (resolve_dynamic_bounds): New function.
7981         (get_type_length): New function.
7982         (check_typedef): Use get_type_length to compute type length.
7983         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7984         (TYPE_LOW_BOUND_KIND): New macro.
7985         (is_dynamic_type): New function prototype.
7986         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7987         to resolve dynamic properties of the type. Update comment.
7988         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7989
7990 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7991
7992         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7993         declaring high/low bounds and change uses accordingly. Call
7994         create_range_type instead of create_static_range_type.
7995         * gdbtypes.c (create_range_type): New function.
7996         (create_range_type): Convert bounds into struct bound_prop and pass
7997         them to create_range_type.
7998         * gdbtypes.h (struct bound_prop): New struct.
7999         (create_range_type): New function prototype.
8000         (struct range_bounds): Use struct bound_prop instead of LONGEST for
8001         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8002         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8003         part of the bound.
8004         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8005
8006 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8007
8008         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8009         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8010         * ada-lang.c: All uses of create_range_type updated.
8011         * coffread.c: All uses of create_range_type updated.
8012         * dwarf2read.c: All uses of create_range_type updated.
8013         * f-exp.y: All uses of create_range_type updated.
8014         * m2-valprint.c: All uses of create_range_type updated.
8015         * mdebugread.c: All uses of create_range_type updated.
8016         * stabsread.c: All uses of create_range_type updated.
8017         * valops.c: All uses of create_range_type updated.
8018         * valprint.c: All uses of create_range_type updated.
8019
8020 2014-04-10  Pedro Alves  <palves@redhat.com>
8021
8022         * breakpoint.c (single_step_breakpoints)
8023         (single_step_gdbarch): Move up in the file.
8024         (one_breakpoint_xfer_memory): New function, factored out from ...
8025         (breakpoint_xfer_memory): ... here.  Also process single-step
8026         breakpoints.
8027
8028 2014-04-09  Tristan Gingold  <gingold@adacore.com>
8029
8030         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8031         comments.
8032         (darwin_decode_exception_message): Free port only after use.
8033
8034 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
8035
8036         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8037         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8038         when setting the size of call_length.
8039
8040 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
8041
8042         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8043         dereference TYPE_CODE_REF values.
8044
8045 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
8046
8047         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8048         end of warning message.
8049
8050 2014-04-03  Doug Evans  <dje@google.com>
8051
8052         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8053         of stub_comp_unit_die, stub_comp_dir is non-NULL.
8054
8055 2014-04-02  Alan Modra  <amodra@gmail.com>
8056
8057         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8058         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
8059         (struct symbol_file_add_from_memory_args): Add size field.
8060         (find_vdso_size): New function.
8061         (add_vsyscall_page): Attempt to find vdso size.
8062
8063 2014-04-01  Doug Evans  <dje@google.com>
8064
8065         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8066
8067 2014-04-01  Tristan Gingold  <gingold@adacore.com>
8068
8069         * darwin-nat.c (darwin_encode_reply): Add prototype.
8070         (darwin_decode_exception_message): Reply to unknown inferiors.
8071         (darwin_decode_message): Handle message by id.  Ignore message
8072         to unknown inferior.
8073         (darwin_wait): Discard unknown messages, add debug trace.
8074
8075 2014-03-31  Doug Evans  <dje@google.com>
8076
8077         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8078         comp_dir_string.
8079
8080 2014-03-31  Doug Evans  <dje@google.com>
8081
8082         New option "set print symbol-loading".
8083         * NEWS: Mention it.
8084         * solib.c (solib_read_symbols): Only print symbol loading messages
8085         if requested.
8086         (solib_add): If symbol loading is in "brief" mode, notify user
8087         symbols are being loaded.
8088         (reload_shared_libraries_1): Ditto.
8089         * symfile.c (print_symbol_loading_off): New static global.
8090         (print_symbol_loading_brief): New static global.
8091         (print_symbol_loading_full): New static global.
8092         (print_symbol_loading_enums): New static global.
8093         (print_symbol_loading): New static global.
8094         (print_symbol_loading_p): New function.
8095         (symbol_file_add_with_addrs): Only print symbol loading messages
8096         if requested.
8097         (_initialize_symfile): Register "print symbol-loading" set/show
8098         command.
8099         * symfile.h (print_symbol_loading_p): Declare.
8100
8101 2014-03-30  Doug Evans  <xdje42@gmail.com>
8102
8103         * infrun.c (set_last_target_status): New function.
8104         (handle_inferior_event): Call it.
8105
8106 2014-03-30  Doug Evans  <xdje42@gmail.com>
8107
8108         * inferior.h (enum stop_kind): Improve comment.
8109
8110 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
8111
8112         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8113         a reference, strip the reference layer before calling
8114         the lang_ops value_has_mutated callback.
8115
8116 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8117
8118         Remove some globals from our parser.
8119         * language.c (unk_lang_parser): Add "struct parser_state"
8120         argument.
8121         * language.h (struct language_defn) <la_parser>: Likewise.
8122         * parse.c (expout, expout_size, expout_ptr): Remove variables.
8123         (initialize_expout): Add "struct parser_state" argument.
8124         Rewrite function to use the parser state.
8125         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8126         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8127         write_exp_elt_longcst, write_exp_elt_dblcst,
8128         write_exp_elt_decfloatcst, write_exp_elt_type,
8129         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8130         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8131         write_dollar_variable): Likewise.
8132         (parse_exp_in_context_1): Use parser state.
8133         (insert_type_address_space): Add "struct parser_state" argument.
8134         Use parser state.
8135         (increase_expout_size): New function.
8136         * parser-defs.h: Forward declare "struct language_defn" and
8137         "struct parser_state".
8138         (expout, expout_size, expout_ptr): Remove extern declarations.
8139         (parse_gdbarch, parse_language): Rewrite macro declarations to
8140         accept the parser state.
8141         (struct parser_state): New struct.
8142         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8143         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8144         write_exp_elt_decfloatcst, write_exp_elt_type,
8145         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8146         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8147         write_exp_msymbol, write_dollar_variable,
8148         mark_struct_expression, insert_type_address_space): Add "struct
8149         parser_state" argument.
8150         (increase_expout_size): New function.
8151         * utils.c (do_clear_parser_state): New function.
8152         (make_cleanup_clear_parser_state): Likewise.
8153         * utils.h (make_cleanup_clear_parser_state): New function
8154         prototype.
8155         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8156         Update calls to write_exp* in order to pass the parser state.
8157         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8158         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8159         (i386_stap_parse_special_token_three_arg_disp): Likewise.
8160         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8161         * stap-probe.c (stap_parse_register_operand): Likewise.
8162         (stap_parse_single_operand): Likewise.
8163         (stap_parse_argument_1): Likewise.
8164         (stap_parse_argument): Use parser state.
8165         * stap-probe.h: Include "parser-defs.h".
8166         (struct stap_parse_info) <pstate>: New field.
8167         * c-exp.y (parse_type): Rewrite to use parser state.
8168         (yyparse): Redefine to c_parse_internal.
8169         (pstate): New global variable.
8170         (parse_number): Add "struct parser_state" argument.
8171         (write_destructor_name): Likewise.
8172         (type_exp): Update calls to write_exp* and similars in order to
8173         use parser state.
8174         (exp1, exp, variable, qualified_name, space_identifier,
8175         typename, typebase): Likewise.
8176         (write_destructor_name, parse_number, lex_one_token,
8177         classify_name, classify_inner_name, c_parse): Add "struct
8178         parser_state" argument.  Update function to use parser state.
8179         * c-lang.h: Forward declare "struct parser_state".
8180         (c_parse): Add "struct parser_state" argument.
8181         * ada-exp.y (parse_type): Rewrite macro to use parser state.
8182         (yyparse): Redefine macro to ada_parse_internal.
8183         (pstate): New variable.
8184         (write_int, write_object_renaming, write_var_or_type,
8185         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8186         type_int, type_long, type_long_long, type_float, type_double,
8187         type_long_double, type_char, type_boolean, type_system_address):
8188         Add "struct parser_state" argument.
8189         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8190         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8191         var_or_type, aggregate, aggregate_component_list,
8192         positional_list, others, component_group,
8193         component_associations): Update calls to write_exp* and similar
8194         functions in order to use parser state.
8195         (ada_parse, write_var_from_sym, write_int,
8196         write_exp_op_with_string, write_object_renaming,
8197         find_primitive_type, write_selectors, write_ambiguous_var,
8198         write_var_or_type, write_name_assoc, type_int, type_long,
8199         type_long_long, type_float, type_double, type_long_double,
8200         type_char, type_boolean, type_system_address): Add "struct
8201         parser_state" argument.  Adjust function to use parser state.
8202         * ada-lang.c (parse): Likewise.
8203         * ada-lang.h: Forward declare "struct parser_state".
8204         (ada_parse): Add "struct parser_state" argument.
8205         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
8206         calls to both functions.
8207         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8208         parser state.
8209         (yyparse): Redefine macro to f_parse_internal.
8210         (pstate): New variable.
8211         (parse_number): Add "struct parser_state" argument.
8212         (type_exp, exp, subrange, typebase): Update calls to write_exp*
8213         and similars in order to use parser state.
8214         (parse_number): Adjust code to use parser state.
8215         (yylex): Likewise.
8216         (f_parse): New function.
8217         * f-lang.h: Forward declare "struct parser_state".
8218         (f_parse): Add "struct parser_state" argument.
8219         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8220         parser state.
8221         (yyparse): Redefine macro for java_parse_internal.
8222         (pstate): New variable.
8223         (push_expression_name, push_expression_name, insert_exp): Add
8224         "struct parser_state" argument.
8225         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8226         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8227         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8228         PostIncrementExpression, PostDecrementExpression,
8229         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8230         UnaryExpressionNotPlusMinus, CastExpression,
8231         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8232         RelationalExpression, EqualityExpression, AndExpression,
8233         ExclusiveOrExpression, InclusiveOrExpression,
8234         ConditionalAndExpression, ConditionalOrExpression,
8235         ConditionalExpression, Assignment, LeftHandSide): Update
8236         calls to write_exp* and similars in order to use parser state.
8237         (parse_number): Ajust code to use parser state.
8238         (yylex): Likewise.
8239         (java_parse): New function.
8240         (push_variable): Add "struct parser_state" argument.  Adjust
8241         code to user parser state.
8242         (push_fieldnames, push_qualified_expression_name,
8243         push_expression_name, insert_exp): Likewise.
8244         * jv-lang.h: Forward declare "struct parser_state".
8245         (java_parse): Add "struct parser_state" argument.
8246         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8247         parser state.
8248         (yyparse): Redefine macro to m2_parse_internal.
8249         (pstate): New variable.
8250         (type_exp, exp, fblock, variable, type): Update calls to
8251         write_exp* and similars to use parser state.
8252         (yylex): Likewise.
8253         (m2_parse): New function.
8254         * m2-lang.h: Forward declare "struct parser_state".
8255         (m2_parse): Add "struct parser_state" argument.
8256         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8257         * objc-lang.h: Forward declare "struct parser_state".
8258         (end_msglist): Add "struct parser_state" argument.
8259         * p-exp.y (parse_type): Rewrite macro to use parser state.
8260         (yyparse): Redefine macro to pascal_parse_internal.
8261         (pstate): New variable.
8262         (parse_number): Add "struct parser_state" argument.
8263         (type_exp, exp1, exp, qualified_name, variable): Update calls to
8264         write_exp* and similars in order to use parser state.
8265         (parse_number, yylex): Adjust code to use parser state.
8266         (pascal_parse): New function.
8267         * p-lang.h: Forward declare "struct parser_state".
8268         (pascal_parse): Add "struct parser_state" argument.
8269         * go-exp.y (parse_type): Rewrite macro to use parser state.
8270         (yyparse): Redefine macro to go_parse_internal.
8271         (pstate): New variable.
8272         (parse_number): Add "struct parser_state" argument.
8273         (type_exp, exp1, exp, variable, type): Update calls to
8274         write_exp* and similars in order to use parser state.
8275         (parse_number, lex_one_token, classify_name, yylex): Adjust code
8276         to use parser state.
8277         (go_parse): Likewise.
8278         * go-lang.h: Forward declare "struct parser_state".
8279         (go_parse): Add "struct parser_state" argument.
8280
8281 2014-03-27  Doug Evans  <dje@google.com>
8282
8283         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
8284
8285 2014-03-27  Doug Evans  <dje@google.com>
8286
8287         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8288         Remove argument abbrev_section.  All callers updated.
8289
8290 2014-03-27  Doug Evans  <dje@google.com>
8291
8292         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8293         addr_base, ranges_base.
8294
8295 2014-03-26  Keith Seitz  <keiths@redhat.com>
8296
8297         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8298         types, not VAR_DOMAIN.
8299
8300 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
8301
8302         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8303         "ra" registers.
8304         * features/nios2-linux.c: Regenerated.
8305         * features/nios2.c: Regenerated.
8306
8307 2014-03-25  Pedro Alves  <palves@redhat.com>
8308
8309         * cli/cli-script.c (script_from_file): Force the interpreter to
8310         sync mode.
8311
8312 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8313
8314         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8315         small stack allocation.
8316
8317 2014-03-24  Tristan Gingold  <gingold@adacore.com>
8318
8319         * darwin-nat.c (exc_server): Remove unused prototype.
8320         (darwin_dump_message): Correctly display data on x86_64.
8321         (darwin_encode_reply): Fix style.
8322         Add comments and fix indentation.
8323
8324 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8325
8326         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8327
8328 2014-03-22  Doug Evans  <xdje42@gmail.com>
8329
8330         * infcmd.c: Whitespace fixes.
8331         (interrupt_command): Merge two function comments into one.
8332
8333 2014-03-22  Doug Evans  <xdje42@gmail.com>
8334
8335         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8336         All uses updated.
8337
8338 2014-03-22  Yao Qi  <yao@codesourcery.com>
8339
8340         * remote.c (target_read_live_memory): Remove.
8341         (memory_xfer_live_readonly_partial): Rename it to
8342         remote_xfer_live_readonly_partial.  Remove argument 'object'.
8343         All callers updated.  Call remote_read_bytes_1
8344         instead of target_read_live_memory.
8345         * tracepoint.c (set_traceframe_number): Remove.
8346         (make_cleanup_restore_traceframe_number): Likewise .
8347         * tracepoint.h (set_traceframe_number): Remove declaration.
8348         (make_cleanup_restore_traceframe_number): Likewise.
8349
8350 2014-03-22  Yao Qi  <yao@codesourcery.com>
8351
8352         * remote.c (remote_read_bytes): Move code on reading from the
8353         remote stub to ...
8354         (remote_read_bytes_1): ... here.  New function.
8355
8356 2014-03-22  Yao Qi  <yao@codesourcery.com>
8357
8358         * ctf.c (ctf_xfer_partial): Check the return value of
8359         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8360         return TARGET_XFER_UNAVAILABLE.
8361         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8362         * target.c (target_read_live_memory): Move it to remote.c.
8363         (memory_xfer_live_readonly_partial): Likewise.
8364         (memory_xfer_partial_1): Move some code to remote_read_bytes.
8365         * remote.c (target_read_live_memory): Moved from target.c.
8366         (memory_xfer_live_readonly_partial): Likewise.
8367         (remote_read_bytes): Factored out from
8368         memory_xfer_partial_1.
8369
8370 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
8371
8372         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8373         NULL pointer.
8374
8375 2014-03-21  Pedro Alves  <palves@redhat.com>
8376
8377         * infrun.c (normal_stop): Extend comment.
8378
8379 2014-03-21  Hui Zhu  <hui@codesourcery.com>
8380             Pedro Alves  <palves@redhat.com>
8381
8382         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8383         static buffer.
8384         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8385         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8386         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8387
8388 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
8389
8390         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8391         `z' formatted output modifier.
8392
8393 2014-03-20  Tom Tromey  <tromey@redhat.com>
8394             Sergio Durigan Junior  <sergiodj@redhat.com>
8395
8396         * probe.c (parse_probes): Turn assert into an ordinary error.
8397         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8398         exceptions when parsing probes.  Rearrange the code for clarity.
8399
8400 2014-03-20  Tom Tromey  <tromey@redhat.com>
8401
8402         PR gdb/14135
8403         * top.c (execute_command): Only dispatch events if the command
8404         started the target.
8405
8406 2014-03-20  Tom Tromey  <tromey@redhat.com>
8407
8408         PR cli/15718
8409         * infcall.c: Include event-top.h.
8410         (run_inferior_call): Call async_disable_stdin if needed.
8411
8412 2014-03-20  Pedro Alves  <palves@redhat.com>
8413
8414         * infrun.c (prepare_to_proceed): Delete.
8415         (thread_still_needs_step_over): New function.
8416         (find_thread_needs_step_over): New function.
8417         (proceed): If the current thread needs a step-over, set its
8418         steping_over_breakpoint flag.  Adjust to use
8419         find_thread_needs_step_over instead of prepare_to_proceed.
8420         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8421         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8422         breakpoint.
8423         (switch_back_to_stepped_thread): Step over breakpoints of all
8424         threads not the stepping thread, before switching back to the
8425         stepping thread.
8426
8427 2014-03-20  Pedro Alves  <palves@redhat.com>
8428
8429         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8430         extern.
8431         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8432         * infrun.c (saved_singlestep_ptid)
8433         (stepping_past_singlestep_breakpoint): Delete.
8434         (resume): Remove stepping_past_singlestep_breakpoint handling.
8435         (proceed): Store the prev_pc of the stepping thread too.
8436         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
8437         singlestep_pc.
8438         (enum infwait_states): Delete infwait_thread_hop_state.
8439         (struct execution_control_state) <hit_singlestep_breakpoint>: New
8440         field.
8441         (handle_inferior_event): Adjust.
8442         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8443         handling and the thread-hop code.  Before removing single-step
8444         breakpoints, check whether the thread hit a single-step breakpoint
8445         of another thread.  If it did, the trap is not a random signal.
8446         (switch_back_to_stepped_thread): If the event thread hit a
8447         single-step breakpoint, unblock it before switching to the
8448         stepping thread.  Handle the case of the stepped thread having
8449         advanced already.
8450         (keep_going): Handle the case of the current thread moving past a
8451         single-step breakpoint.
8452
8453 2014-03-20  Pedro Alves  <palves@redhat.com>
8454
8455         PR breakpoints/7143
8456         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8457         are being stepped over.
8458         (breakpoint_address_match): Make extern.
8459         * breakpoint.h (breakpoint_address_match): New declaration.
8460         * inferior.h (stepping_past_instruction_at): New declaration.
8461         * infrun.c (struct step_over_info): New type.
8462         (step_over_info): New global.
8463         (set_step_over_info, clear_step_over_info)
8464         (stepping_past_instruction_at): New functions.
8465         (handle_inferior_event): Clear the step-over info when
8466         trap_expected is cleared.
8467         (resume): Remove now stale comment.
8468         (clear_proceed_status): Clear step-over info.
8469         (proceed): Adjust step-over handling to set or clear the step-over
8470         info instead of removing all breakpoints.
8471         (handle_signal_stop): When setting up a thread-hop, don't remove
8472         breakpoints here.
8473         (stop_stepping): Clear step-over info.
8474         (keep_going): Adjust step-over handling to set or clear step-over
8475         info and then always inserting breakpoints, instead of removing
8476         all breakpoints when stepping over one.
8477
8478 2014-03-20  Pedro Alves  <palves@redhat.com>
8479
8480         * infrun.c (previous_inferior_ptid): Adjust comment.
8481         (deferred_step_ptid): Delete.
8482         (infrun_thread_ptid_changed, prepare_to_proceed)
8483         (init_wait_for_inferior): Adjust.
8484         (handle_signal_stop): Delete deferred_step_ptid handling.
8485
8486 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
8487
8488         PR gdb/15358
8489         * defs.h (sync_quit_force_run): New declaration.
8490         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8491         * event-top.c (async_sigterm_handler): New declaration.
8492         (async_sigterm_token): New variable.
8493         (async_init_signals): Create also async_sigterm_token.
8494         (async_sigterm_handler): New function.
8495         (sync_quit_force_run): New variable.
8496         (handle_sigterm): Replace quit_force call by other calls.
8497         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8498
8499 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
8500
8501         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8502         offset into SPE pseudo registers.
8503
8504 2014-03-18  Pedro Alves  <palves@redhat.com>
8505
8506         PR gdb/13860
8507         * inferior.h (print_stop_event): Declare.
8508         * infrun.c (print_stop_event): New, factored out from ...
8509         (normal_stop): ... this.
8510         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8511         of bpstat_print/print_stack_frame.
8512
8513 2014-03-17  Tom Tromey  <tromey@redhat.com>
8514
8515         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8516
8517 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
8518
8519         * ada-lang.c (decode_constrained_packed_array): Perform a
8520         minimal coercion for reference with coerce_ref instead of
8521         ada_coerce_ref.
8522
8523 2014-03-17  Tristan Gingold  <gingold@adacore.com>
8524
8525         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8526         (darwin_solib_create_inferior_hook): Emit a warning if version
8527         is unhandled.
8528
8529 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
8530
8531         * python/py-value.c (get_field_flag): Cast flag_name argument to
8532         PyObject_GetAttrString to support Python 2.4.
8533
8534 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8535
8536         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8537         (Global Maintainers): Remove Jan Kratochvil.
8538
8539 2014-03-14  Pedro Alves  <palves@redhat.com>
8540
8541         * inferior.h (terminal_ours_for_output): Rename to ...
8542         (child_terminal_ours_for_output): ... this.
8543         (terminal_save_ours): Rename to ...
8544         (child_terminal_save_ours): ... this.
8545         (terminal_ours): Rename to ...
8546         (child_terminal_ours): ... this.
8547         (terminal_inferior): Rename to ...
8548         (child_terminal_inferior): ... this.
8549         (terminal_init_inferior): Rename to ...
8550         (child_terminal_init_inferior): ... this.
8551         (terminal_init_inferior_with_pgrp): Rename to ...
8552         (child_terminal_init_inferior_with_pgrp): ... this.
8553         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8554         (child_terminal_init_with_pgrp): ... this.
8555         (terminal_save_ours): Rename to ...
8556         (child_terminal_save_ours): ... this.
8557         (terminal_init_inferior): Rename to ...
8558         (child_terminal_init): ... this.  Adjust.
8559         (terminal_inferior): Rename to ...
8560         (child_terminal_inferior): ... this.
8561         (terminal_ours_for_output): Rename to ...
8562         (child_terminal_ours_for_output): ... this.  Adjust.
8563         (terminal_ours): Rename to ...
8564         (child_terminal_ours): ... this.
8565         (terminal_ours_1): Rename to ...
8566         (child_terminal_ours_1): ... this.  Adjust.
8567         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8568         * windows-nat.c (do_initial_windows_stuff): Adjust.
8569         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8570         (gnu_terminal_init): ... this.  Adjust.
8571         (gnu_target): Adjust.
8572         * inf-child.c (inf_child_target): Adjust.
8573
8574 2014-03-13  Doug Evans  <xdje42@gmail.com>
8575
8576         PR guile/16612
8577         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8578         new eq?-hashtab.
8579
8580 2014-03-13  Doug Evans  <xdje42@gmail.com>
8581
8582         * value.c (record_latest_value): Call release_value_or_incref
8583         instead of release_value.
8584
8585 2014-03-13  Pedro Alves  <palves@redhat.com>
8586
8587         * procfs.c (procfs_target): Don't override to_shortname,
8588         to_longname or to_doc.
8589
8590 2014-03-13  Pedro Alves  <palves@redhat.com>
8591
8592         * inf-child.c (inf_child_open, inf_child_target): Don't mention
8593         Unix in user visible strings.
8594
8595 2014-03-12  Stan Shebs  <stan@codesourcery.com>
8596
8597         * gdbtypes.h: Annotate comments for Doxygen, add a page
8598         block comment with some general info.
8599
8600 2014-03-12  Pedro Alves  <palves@redhat.com>
8601
8602         * infcmd.c (prepare_execution_command): New function, factored out
8603         from several execution commands.
8604         (run_command_1, continue_command, step_1, jump_command)
8605         (signal_command, until_command, advance_command, finish_command)
8606         (attach_command): Use prepare_execution_command.
8607
8608 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
8609
8610         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8611         (MAX_BPTS): Define.
8612         (MAX_WPTS): Define.
8613         (struct arm_linux_thread_points): Removed.
8614         (struct arm_linux_process_info): New.
8615         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8616         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8617         (arm_linux_find_breakpoints_by_tid): Removed.
8618         (struct arch_lwp_info): New.
8619         (arm_linux_find_process_pid): New functions.
8620         (arm_linux_add_process): New functions.
8621         (arm_linux_process_info_get): New functions.
8622         (arm_linux_forget_process): New function.
8623         (arm_linux_get_debug_reg_state): New function.
8624         (struct update_registers_data): New.
8625         (update_registers_callback): New function.
8626         (arm_linux_insert_hw_breakpoint1): Updated.
8627         (arm_linux_remove_hw_breakpoint1): Updated.
8628         (arm_linux_insert_hw_breakpoint): Updated.
8629         (arm_linux_remove_hw_breakpoint): Updated.
8630         (arm_linux_insert_watchpoint): Updated.
8631         (arm_linux_remove_watchpoint): Updated.
8632         (arm_linux_new_thread): Updated.
8633         (arm_linux_prepare_to_resume): New function.
8634         (arm_linux_new_fork): New function.
8635         (_initialize_arm_linux_nat): Updated.
8636
8637 2014-03-12  Pedro Alves  <palves@redhat.com>
8638
8639         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8640
8641 2014-03-12  Tom Tromey  <tromey@redhat.com>
8642
8643         * inf-child.c (return_zero): New function.
8644         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8645         * aix-thread.c (aix_thread_inferior_created): New function.
8646         (aix_thread_attach): Remove.
8647         (init_aix_thread_ops): Don't set to_attach.
8648         (_initialize_aix_thread): Register inferior_created observer.
8649         * corelow.c (init_core_ops): Don't set to_attach or
8650         to_create_inferior.
8651         * exec.c (init_exec_ops): Don't set to_attach or
8652         to_create_inferior.
8653         * infcmd.c (run_command_1): Use find_run_target.  Make direct
8654         target calls.
8655         (attach_command): Use find_attach_target.  Make direct target
8656         calls.
8657         * record-btrace.c (init_record_btrace_ops): Don't set
8658         to_create_inferior.
8659         * record-full.c (record_full_can_async_p, record_full_is_async_p):
8660         Remove.
8661         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
8662         set to_create_inferior.
8663         * target.c (complete_target_initialization): Add assertion.
8664         (target_create_inferior): Remove.
8665         (find_default_attach, find_default_create_inferior): Remove.
8666         (find_attach_target, find_run_target): New functions.
8667         (find_default_is_async_p, find_default_can_async_p)
8668         (target_supports_non_stop, target_attach): Remove.
8669         (init_dummy_target): Don't set to_create_inferior or
8670         to_supports_non_stop.
8671         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
8672         TARGET_DEFAULT_FUNC.
8673         <to_create_inferior>: Add comment.
8674         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8675         TARGET_DEFAULT_RETURN.
8676         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8677         (find_attach_target, find_run_target): Declare.
8678         (target_create_inferior): Remove.
8679         (target_has_execution_1): Update comment.
8680         (target_supports_non_stop): Remove.
8681         * target-delegates.c: Rebuild.
8682
8683 2014-03-12  Pedro Alves  <palves@redhat.com>
8684
8685         * inf-child.h: Update comment to not mention Unix.
8686
8687 2014-03-12  Pedro Alves  <palves@redhat.com>
8688
8689         * inf-child.c: Update top comment to not mention Unix.  Add
8690         generic comment describing how this target is meant to be used.
8691         (inf_child_post_attach, inf_child_post_startup_inferior)
8692         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8693         Unix in comment.
8694
8695 2014-03-12  Pedro Alves  <palves@redhat.com>
8696
8697         * nto-procfs.c: Include inf-child.h.
8698         (procfs_ops): Delete global.
8699         (procfs_can_run): Delete method.
8700         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8701         target pointer instead of referencing procfs_ops.
8702         (procfs_prepare_to_store): Delete.
8703         (init_procfs_ops): Delete function.
8704         (procfs_target): New function, based on init_procfs_ops, but
8705         inherit inf_child_target.
8706         (_initialize_procfs): Use procfs_target.
8707
8708 2014-03-12  Pedro Alves  <palves@redhat.com>
8709
8710         * windows-nat.c: Include inf-child.h.
8711         (windows_ops): Delete global.
8712         (windows_open, windows_prepare_to_store, windows_can_run): Delete
8713         methods.
8714         (init_windows_ops): Delete function.
8715         (windows_target): New function, based on init_windows_ops, but
8716         inherit inf_child_target.
8717         (_initialize_windows_nat): Use windows_target.  Install x86
8718         specific target methods here.
8719
8720 2014-03-10  Doug Evans  <xdje42@gmail.com>
8721
8722         * guile/guile.c (call_initialize_gdb_module): New function.
8723         (initialize_guile): Replace call to scm_init_guile with call to
8724         scm_with_guile.
8725
8726 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
8727
8728         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8729         in call to TYPE_CODE macro.
8730
8731 2014-03-10  Jerome Guitton  <guitton@adacore.com>
8732
8733         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8734         Resolve tagged types to full view.
8735
8736 2014-03-10  Hui Zhu  <hui@codesourcery.com>
8737
8738         * target.h (target_insert_breakpoint): Remove "hardware" from its
8739         comments.
8740
8741 2014-03-07  Doug Evans  <dje@google.com>
8742
8743         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8744
8745 2014-03-07  Doug Evans  <dje@google.com>
8746
8747         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8748         Remove unused local comp_dir_attr.  Assert exactly one of
8749         stub_comp_unit_die, stub_comp_dir is non-NULL.
8750
8751 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
8752
8753         * target.h (complete_target_initialization, add_target):
8754         Add comment.
8755
8756 2014-03-07  Pedro Alves  <palves@redhat.com>
8757
8758         * go32-nat.c: Include inf-child.h.
8759         (go32_ops): Delete global.
8760         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8761         Delete methods.
8762         (go32_create_inferior): Push the passed in target pointer instead
8763         of referencing go32_ops.
8764         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
8765         (go32_target): New function, based on init_go32_ops, but inherit
8766         inf_child_target.
8767         (_initialize_go32_nat): Use go32_target.  Move parts of
8768         init_go32_ops here.
8769
8770 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
8771
8772         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8773         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8774         SYMBOL_VALUE_ADDRESS.
8775         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8776
8777 2014-03-06  Yao Qi  <yao@codesourcery.com>
8778
8779         * breakpoint.c (get_tracepoint_by_number): Remove argument
8780         optional_p.  All callers updated.  Adjust comments.  Update
8781         output message.
8782         * breakpoint.h (get_tracepoint_by_number): Update declaration.
8783
8784 2014-03-06  Yao Qi  <yao@codesourcery.com>
8785
8786         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
8787         early if get_number returns zero.  Use 'p' instead of 'args'.
8788
8789 2014-03-06  Yao Qi  <yao@codesourcery.com>
8790
8791         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8792         message.
8793
8794 2014-03-06  Yao Qi  <yao@codesourcery.com>
8795
8796         PR breakpoints/16508
8797         * tracepoint.c (check_trace_running): New function.
8798         (trace_find_command): Move code to check_trace_running and
8799         call check_trace_running.
8800         (trace_find_pc_command): Likewise.
8801         (trace_find_tracepoint_command): Likewise.
8802         (trace_find_line_command): Likewise.
8803         (trace_find_range_command): Likewise.
8804         * tracepoint.h (check_trace_running): Likewise.
8805         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8806
8807 2014-03-06  Yao Qi  <yao@codesourcery.com>
8808
8809         * target.h (struct target_ops) <to_traceframe_info>: Use
8810         TARGET_DEFAULT_NORETURN (tcomplain ()).
8811         * target-delegates.c: Regenerated.
8812
8813 2014-03-05  Pedro Alves  <palves@redhat.com>
8814
8815         PR gdb/16575
8816         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
8817         void.  Update comment.
8818         (dcache_xfer_memory): Delete.
8819         (dcache_read_memory_partial): New, based on the read bits of
8820         dcache_xfer_memory.
8821         (dcache_update): Add status parameter.  Use ULONGEST for len, and
8822         adjust.  Discard cache lines if the reason for the update was
8823         error.
8824         * dcache.h (dcache_xfer_memory): Delete declaration.
8825         (dcache_read_memory_partial): New declaration.
8826         (dcache_update): Update prototype.
8827         * target.c (raw_memory_xfer_partial): Update the dcache here.
8828         (memory_xfer_partial_1): Don't handle dcache writes here.
8829
8830 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
8831
8832         * remote-sim.c (gdbsim_load): Add const to prog.
8833
8834 2014-03-03  Tom Tromey  <tromey@redhat.com>
8835
8836         * elfread.c (probe_key): Change to bfd_data.
8837         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8838         now per-BFD, not per-objfile.
8839         * stap-probe.c (stap_probe_destroy): Update comment.
8840         (handle_stap_probe): Allocate on the per-BFD obstack.
8841
8842 2014-03-03  Tom Tromey  <tromey@redhat.com>
8843
8844         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8845         * breakpoint.c (create_longjmp_master_breakpoint): Use
8846         get_probe_address.
8847         (add_location_to_breakpoint, bkpt_probe_insert_location)
8848         (bkpt_probe_remove_location): Update.
8849         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8850         * elfread.c (elf_symfile_relocate_probe): Remove.
8851         (elf_probe_fns): Update.
8852         (insert_exception_resume_breakpoint): Change type of "probe"
8853         parameter to bound_probe.
8854         (check_exception_resume): Update.
8855         * objfiles.c (objfile_relocate1): Don't relocate probes.
8856         * probe.c (bound_probe_s): New typedef.
8857         (parse_probes): Use get_probe_address.  Set sal's objfile.
8858         (find_probe_by_pc): Return a bound_probe.
8859         (collect_probes): Return a VEC(bound_probe_s).
8860         (compare_probes): Update.
8861         (gen_ui_out_table_header_info): Change type of "probes"
8862         parameter.  Update.
8863         (info_probes_for_ops): Update.
8864         (get_probe_address): New function.
8865         (probe_safe_evaluate_at_pc): Update.
8866         * probe.h (struct probe_ops) <get_probe_address>: New field.
8867         <set_semaphore, clear_semaphore>: Add objfile parameter.
8868         (struct probe) <objfile>: Remove field.
8869         <arch>: New field.
8870         <address>: Update comment.
8871         (struct bound_probe): New.
8872         (find_probe_by_pc): Return a bound_probe.
8873         (get_probe_address): Declare.
8874         * solib-svr4.c (struct probe_and_action) <address>: New field.
8875         (hash_probe_and_action, equal_probe_and_action): Update.
8876         (register_solib_event_probe): Add address parameter.
8877         (solib_event_probe_at): Update.
8878         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
8879         get_probe_address.
8880         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8881         (stap_get_probe_address): New function.
8882         (stap_can_evaluate_probe_arguments, compute_probe_arg)
8883         (compile_probe_arg): Update.
8884         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8885         address.
8886         (handle_stap_probe): Don't relocate the probe.
8887         (stap_relocate): Remove.
8888         (stap_gen_info_probes_table_values): Update.
8889         (stap_probe_ops): Remove stap_relocate.
8890         * symfile-debug.c (debug_sym_relocate_probe): Remove.
8891         (debug_sym_probe_fns): Update.
8892         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8893         * symtab.c (init_sal): Use memset.
8894         * symtab.h (struct symtab_and_line) <objfile>: New field.
8895         * tracepoint.c (start_tracing, stop_tracing): Update.
8896
8897 2014-03-03  Tom Tromey  <tromey@redhat.com>
8898
8899         * probe.h (parse_probes, find_probe_by_pc)
8900         (find_probes_in_objfile): Fix comments.
8901
8902 2014-03-02  Doug Evans  <xdje42@gmail.com>
8903
8904         * infrun.c (handle_signal_stop): Replace test for
8905         TARGET_WAITKIND_STOPPED with an assert.
8906
8907 2014-03-02  Doug Evans  <xdje42@gmail.com>
8908
8909         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8910
8911 2014-03-02  Doug Evans  <xdje42@gmail.com>
8912
8913         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8914
8915 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8916
8917         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8918
8919 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8920
8921         * i386obsd-nat.c: Include "obsd-nat.h".
8922         (_initialize_i386obsd_nat): Call obsd_add_target instead of
8923         add_target.
8924         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8925
8926 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8927
8928         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8929
8930 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8931
8932         * mips64obsd-nat.c: Include "obsd-nath".
8933         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8934         add_target
8935         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8936
8937 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8938
8939         * amd64obsd-nat.c: Include "obsd-nat,h.
8940         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8941         add_target.
8942         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8943
8944 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
8945
8946         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8947         (find_overload_match): Update call to find_oload_champ.
8948         (find_oload_champ_namespace_loop): Likewise
8949
8950 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
8951
8952         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8953
8954         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8955         * config/sparc/obsd64.mh: New file.
8956         * sparc64obsd-nat.c: New file.
8957
8958         * obsd-nat.h: New file.
8959         * obsd-nat.c: New file.
8960         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8961         (ALLDEPFILES): Add obsd-nat.c.
8962
8963 2014-02-28  Tom Tromey  <tromey@redhat.com>
8964
8965         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
8966         * cli-out.h (cli_ui_out_impl): Now const.
8967         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
8968         * ui-out.c (struct ui_out) <impl>: Now const.
8969         (default_ui_out_impl): Now const.
8970         (ui_out_new): Make 'impl' parameter const.
8971         * ui-out.h (ui_out_new): Update.
8972
8973 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8974
8975         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8976
8977 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8978
8979         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8980
8981 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
8982
8983         Additional PR 8882 fix.
8984         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8985
8986 2014-02-27  Pedro Alves  <palves@redhat.com>
8987
8988         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8989         isn't set.
8990
8991 2014-02-27  Pedro Alves  <palves@redhat.com>
8992
8993         PR 12702
8994         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8995         * nat/linux-waitpid.c: Include string.h.
8996         (status_to_str): Moved here and made extern.
8997         * nat/linux-waitpid.h (status_to_str): New declaration.
8998
8999 2014-02-27  Hui Zhu  <hui@codesourcery.com>
9000
9001         PR 12702
9002         * infrun.c (ptid_match): Move ...
9003         * common/ptid.c (ptid_match): ... here.
9004         * inferior.h (ptid_match): Move ...
9005         * common/ptid.h (ptid_match): ... here.
9006
9007 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9008
9009         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9010         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9011         gdb_target_obs.
9012
9013 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9014
9015         * obsd-tdep.c (obsd_auxv_parse): New function.
9016         (obsd_init_abi): Set auxv_parse.
9017
9018         * gdbarch.sh (auxv_parse): New.
9019         * gdbarch.h: Regenerated.
9020         * gdbarch.c: Regenerated.
9021         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9022
9023 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
9024
9025         * guile/scm-value.c (gdbscm_history_append_x): New function.
9026         (value_functions): Add it.
9027
9028 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9029
9030         * dwarf2read.c (attr_value_as_address): New function.
9031         (dwarf2_find_base_address, read_call_site_scope): Use
9032         attr_value_as_address in place of DW_ADDR.
9033         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9034         the low and high addresses.  Slight rework of the handling
9035         of the high pc being a constant form, and limit it to
9036         DWARF verson 4 or higher.
9037         (dwarf2_record_block_ranges): Likewise.
9038         (read_partial_die): Likewise.
9039         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9040
9041 2014-02-26  Tom Tromey  <tromey@redhat.com>
9042
9043         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9044
9045 2014-02-26  Tom Tromey  <tromey@redhat.com>
9046
9047         * elfread.c (elf_read_minimal_symbols): Return early if
9048         minimal symbols have already been read.  Add "ei" parameter.
9049         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9050         * minsyms.c (prim_record_minimal_symbol_full): Update.
9051         * objfiles.h (struct objstats) <n_minsyms>: Move...
9052         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9053         * symmisc.c (print_objfile_statistics): Update.
9054
9055 2014-02-26  Tom Tromey  <tromey@redhat.com>
9056
9057         * elfread.c (elf_read_minimal_symbols): New function, from
9058         elf_symfile_read.
9059         (elf_symfile_read): Call it.
9060
9061 2014-02-26  Tom Tromey  <tromey@redhat.com>
9062
9063         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9064         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9065         (lookup_minimal_symbol_solib_trampoline)
9066         (lookup_minimal_symbol_by_pc_section_1)
9067         (lookup_minimal_symbol_and_objfile): Update.
9068         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9069         Don't allocate a minimal symbol if minsyms have already been read.
9070         (build_minimal_symbol_hash_tables): Update.
9071         (install_minimal_symbols): Do nothing if minsyms already read.
9072         Use the per-BFD obstack.
9073         (terminate_minimal_symbol_table): Use the per-BFD obstack.
9074         * objfiles.c (allocate_objfile): Call
9075         terminate_minimal_symbol_table later.
9076         (have_minimal_symbols): Update.
9077         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9078         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9079         Move from struct objfile.
9080         <minsyms_read>: New field.
9081         (struct objfile) <msymbols, minimal_symbol_count,
9082         msymbol_hash, msymbol_demangled_hash>: Move.
9083         (ALL_OBJFILE_MSYMBOLS): Update.
9084         * symfile.c (read_symbols): Set minsyms_read.
9085         (reread_symbols): Update.
9086         * symmisc.c (dump_objfile, dump_msymbols): Update.
9087
9088 2014-02-26  Tom Tromey  <tromey@redhat.com>
9089
9090         * minsyms.c (msymbols_sort): Remove.
9091         * minsyms.h (msymbols_sort): Remove.
9092         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9093         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9094         * elfread.c (elf_symtab_read): Don't add section offsets.
9095         * xcoffread.c (record_minimal_symbol): Don't add section offset
9096         to minimal symbol address.
9097         * somread.c (text_offset, data_offset): Remove.
9098         (som_symtab_read): Don't add section offsets to minimal symbol
9099         addresses.
9100         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9101         Don't add section offsets to minimal symbols.
9102         * coffread.c (coff_symtab_read): Don't add section offsets
9103         to minimal symbol addresses.
9104         * machoread.c (macho_symtab_add_minsym): Don't add section offset
9105         to minimal symbol addresses.
9106         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9107         section offset to minimal symbol addresses.
9108         * mdebugread.c (parse_partial_symbols): Don't add section
9109         offset to minimal symbol addresses.
9110         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9111         offset to minimal symbol addresses.
9112
9113 2014-02-26  Tom Tromey  <tromey@redhat.com>
9114
9115         * ada-lang.c (ada_main_name): Update.
9116         (ada_add_standard_exceptions): Update.
9117         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9118         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9119         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9120         * auxv.c (ld_so_xfer_auxv): Update.
9121         * avr-tdep.c (avr_scan_prologue): Update.
9122         * ax-gdb.c (gen_var_ref): Update.
9123         * blockframe.c (get_pc_function_start)
9124         (find_pc_partial_function_gnu_ifunc): Update.
9125         * breakpoint.c (create_overlay_event_breakpoint)
9126         (create_longjmp_master_breakpoint)
9127         (create_std_terminate_master_breakpoint)
9128         (create_exception_master_breakpoint): Update.
9129         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9130         * c-valprint.c (c_val_print): Update.
9131         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9132         * common/agent.c (agent_look_up_symbols): Update.
9133         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9134         * dwarf2loc.c (call_site_to_target_addr): Update.
9135         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9136         * elfread.c (elf_gnu_ifunc_record_cache)
9137         (elf_gnu_ifunc_resolve_by_got): Update.
9138         * findvar.c (default_read_var_value): Update.
9139         * frame.c (inside_main_func): Update.
9140         * frv-tdep.c (frv_frame_this_id): Update.
9141         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9142         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9143         Update.
9144         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9145         (hppa_hpux_find_dummy_bpaddr): Update.
9146         * hppa-tdep.c (hppa_symbol_address): Update.
9147         * infcmd.c (until_next_command): Update.
9148         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9149         Update.
9150         * linespec.c (minsym_found, add_minsym): Update.
9151         * linux-nat.c (get_signo): Update.
9152         * linux-thread-db.c (inferior_has_bug): Update.
9153         * m32c-tdep.c (m32c_return_value)
9154         (m32c_m16c_address_to_pointer): Update.
9155         * m32r-tdep.c (m32r_frame_this_id): Update.
9156         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9157         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9158         * maint.c (maintenance_translate_address): Update.
9159         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9160         (frob_address): New function.
9161         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9162         frob_address.  Rename parameter to "pc_in".
9163         (compare_minimal_symbols, compact_minimal_symbols): Use raw
9164         addresses.
9165         (find_solib_trampoline_target, minimal_symbol_upper_bound):
9166         Update.
9167         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9168         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9169         * objc-lang.c (find_objc_msgsend): Update.
9170         * objfiles.c (objfile_relocate1): Update.
9171         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9172         * p-valprint.c (pascal_val_print): Update.
9173         * parse.c (write_exp_msymbol): Update.
9174         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9175         (ppc_elfv2_skip_entrypoint): Update.
9176         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9177         * printcmd.c (build_address_symbolic, msym_info)
9178         (address_info): Update.
9179         * proc-service.c (ps_pglobal_lookup): Update.
9180         * psymtab.c (find_pc_sect_psymtab_closer)
9181         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9182         Change msymbol parameter to bound_minimal_symbol.
9183         * ravenscar-thread.c (get_running_thread_id): Update.
9184         * remote.c (remote_check_symbols): Update.
9185         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9186         address.
9187         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9188         * solib-dsbt.c (lm_base): Update.
9189         * solib-frv.c (lm_base, main_got): Update.
9190         * solib-irix.c (locate_base): Update.
9191         * solib-som.c (som_solib_create_inferior_hook)
9192         (link_map_start): Update.
9193         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9194         * solib-svr4.c (elf_locate_base, enable_break): Update.
9195         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9196         (flush_ea_cache): Update.
9197         * stabsread.c (define_symbol, scan_file_globals): Update.
9198         * stack.c (find_frame_funname): Update.
9199         * symfile-debug.c (debug_qf_expand_symtabs_matching)
9200         (debug_qf_find_pc_sect_symtab): Update.
9201         * symfile.c (simple_read_overlay_table)
9202         (simple_overlay_update): Update.
9203         * symfile.h (struct quick_symbol_functions)
9204         <find_pc_sect_symtab>: Change type of msymbol to
9205         bound_minimal_symbol.
9206         * symmisc.c (dump_msymbols): Update.
9207         * symtab.c (find_pc_sect_symtab_via_partial)
9208         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9209         (search_symbols, print_msymbol_info): Update.
9210         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9211         (MSYMBOL_VALUE_ADDRESS): Redefine.
9212         (BMSYMBOL_VALUE_ADDRESS): New macro.
9213         * tracepoint.c (scope_info): Update.
9214         * tui/tui-disasm.c (tui_find_disassembly_address)
9215         (tui_get_begin_asm_address): Update.
9216         * valops.c (find_function_in_inferior): Update.
9217         * value.c (value_static_field, value_fn_field): Update.
9218
9219 2014-02-26  Tom Tromey  <tromey@redhat.com>
9220
9221         * ada-lang.c (ada_update_initial_language): Update.
9222         (ada_main_name, ada_has_this_exception_support): Update.
9223         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9224         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9225         * arm-tdep.c (arm_skip_stub): Update.
9226         * auxv.c (ld_so_xfer_auxv): Update.
9227         * avr-tdep.c (avr_scan_prologue): Update.
9228         * ax-gdb.c (gen_var_ref): Update.
9229         * breakpoint.c (struct breakpoint_objfile_data)
9230         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9231         type to bound_minimal_symbol.
9232         (create_overlay_event_breakpoint)
9233         (create_longjmp_master_breakpoint)
9234         (create_std_terminate_master_breakpoint)
9235         (create_exception_master_breakpoint): Update.
9236         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9237         * c-exp.y (classify_name): Update.
9238         * coffread.c (coff_symfile_read): Update.
9239         * common/agent.c (agent_look_up_symbols): Update.
9240         * d-lang.c (d_main_name): Update.
9241         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9242         * dec-thread.c (enable_dec_thread): Update.
9243         * dwarf2loc.c (call_site_to_target_addr): Update.
9244         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9245         * eval.c (evaluate_subexp_standard): Update.
9246         * findvar.c (struct minsym_lookup_data) <result>: Change type
9247         to bound_minimal_symbol.
9248         <objfile>: Remove.
9249         (minsym_lookup_iterator_cb, default_read_var_value): Update.
9250         * frame.c (inside_main_func): Update.
9251         * frv-tdep.c (frv_frame_this_id): Update.
9252         * gcore.c (call_target_sbrk): Update.
9253         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9254         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9255         Update.
9256         * go-lang.c (go_main_name): Update.
9257         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9258         (hppa_hpux_find_import_stub_for_addr): Update.
9259         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9260         Update.  Change return type.
9261         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9262         type.
9263         * jit.c (jit_breakpoint_re_set_internal): Update.
9264         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9265         Update.
9266         * linux-nat.c (get_signo): Update.
9267         * linux-thread-db.c (inferior_has_bug): Update
9268         * m32c-tdep.c (m32c_return_value)
9269         (m32c_m16c_address_to_pointer): Update.
9270         * m32r-tdep.c (m32r_frame_this_id): Update.
9271         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9272         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9273         * minsyms.c (lookup_minimal_symbol_internal): Rename to
9274         lookup_minimal_symbol.  Change return type.
9275         (lookup_minimal_symbol): Remove.
9276         (lookup_bound_minimal_symbol): Update.
9277         (lookup_minimal_symbol_text): Change return type.
9278         (lookup_minimal_symbol_solib_trampoline): Change return type.
9279         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9280         (lookup_minimal_symbol_solib_trampoline): Change return type.
9281         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9282         * objc-lang.c (lookup_objc_class, lookup_child_selector)
9283         (value_nsstring, find_imps): Update.
9284         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9285         * p-lang.c (pascal_main_name): Update.
9286         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9287         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9288         * proc-service.c (ps_pglobal_lookup): Update.
9289         * ravenscar-thread.c (get_running_thread_msymbol): Change
9290         return type.
9291         (has_ravenscar_runtime, get_running_thread_id): Update.
9292         * remote.c (remote_check_symbols): Update.
9293         * sol-thread.c (ps_pglobal_lookup): Update.
9294         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9295         * solib-dsbt.c (lm_base): Update.
9296         * solib-frv.c (lm_base, frv_relocate_section_addresses):
9297         Update.
9298         * solib-irix.c (locate_base): Update.
9299         * solib-som.c (som_solib_create_inferior_hook)
9300         (som_solib_desire_dynamic_linker_symbols, link_map_start):
9301         Update.
9302         * solib-spu.c (spu_enable_break): Update.
9303         * solib-svr4.c (elf_locate_base, enable_break): Update.
9304         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9305         (flush_ea_cache): Update.
9306         * stabsread.c (define_symbol): Update.
9307         * symfile.c (simple_read_overlay_table): Update.
9308         * symtab.c (find_pc_sect_line): Update.
9309         * tracepoint.c (scope_info): Update.
9310         * tui-disasm.c (tui_get_begin_asm_address): Update.
9311         * value.c (value_static_field): Update.
9312
9313 2014-02-26  Tom Tromey  <tromey@redhat.com>
9314
9315         * minsyms.c (prim_record_minimal_symbol_full): Use
9316         SET_MSYMBOL_VALUE_ADDRESS.
9317         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9318         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9319         SET_MSYMBOL_VALUE_ADDRESS.
9320         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9321         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9322
9323 2014-02-26  Tom Tromey  <tromey@redhat.com>
9324
9325         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9326         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9327         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9328         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9329         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9330         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9331         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9332         * ada-lang.c (ada_main_name): Update.
9333         (ada_lookup_simple_minsym): Update.
9334         (ada_make_symbol_completion_list): Update.
9335         (ada_add_standard_exceptions): Update.
9336         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9337         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9338         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9339         * arm-tdep.c (skip_prologue_function): Update.
9340         (arm_skip_stack_protector, arm_skip_stub): Update.
9341         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9342         (arm_wince_skip_main_prologue): Update.
9343         * auxv.c (ld_so_xfer_auxv): Update.
9344         * avr-tdep.c (avr_scan_prologue): Update.
9345         * ax-gdb.c (gen_var_ref): Update.
9346         * block.c (call_site_for_pc): Update.
9347         * blockframe.c (get_pc_function_start): Update.
9348         (find_pc_partial_function_gnu_ifunc): Update.
9349         * breakpoint.c (create_overlay_event_breakpoint): Update.
9350         (create_longjmp_master_breakpoint): Update.
9351         (create_std_terminate_master_breakpoint): Update.
9352         (create_exception_master_breakpoint): Update.
9353         (resolve_sal_pc): Update.
9354         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9355         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9356         Update.
9357         * c-valprint.c (c_val_print): Update.
9358         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9359         * coffread.c (coff_symfile_read): Update.
9360         * common/agent.c (agent_look_up_symbols): Update.
9361         * dbxread.c (find_stab_function_addr): Update.
9362         (end_psymtab): Update.
9363         * dwarf2loc.c (call_site_to_target_addr): Update.
9364         (func_verify_no_selftailcall): Update.
9365         (tailcall_dump): Update.
9366         (call_site_find_chain_1): Update.
9367         (dwarf_expr_reg_to_entry_parameter): Update.
9368         * elfread.c (elf_gnu_ifunc_record_cache): Update.
9369         (elf_gnu_ifunc_resolve_by_got): Update.
9370         * f-valprint.c (info_common_command): Update.
9371         * findvar.c (read_var_value): Update.
9372         * frame.c (get_prev_frame_1): Update.
9373         (inside_main_func): Update.
9374         * frv-tdep.c (frv_skip_main_prologue): Update.
9375         (frv_frame_this_id): Update.
9376         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9377         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9378         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9379         (gnuv3_skip_trampoline): Update.
9380         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9381         (hppa64_hpux_in_solib_call_trampoline): Update.
9382         (hppa_hpux_skip_trampoline_code): Update.
9383         (hppa64_hpux_search_dummy_call_sequence): Update.
9384         (hppa_hpux_find_import_stub_for_addr): Update.
9385         (hppa_hpux_find_dummy_bpaddr): Update.
9386         * hppa-tdep.c (hppa_symbol_address)
9387         (hppa_lookup_stub_minimal_symbol): Update.
9388         * i386-tdep.c (i386_skip_main_prologue): Update.
9389         (i386_pe_skip_trampoline_code): Update.
9390         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9391         * infcall.c (get_function_name): Update.
9392         * infcmd.c (until_next_command): Update.
9393         * jit.c (jit_breakpoint_re_set_internal): Update.
9394         (jit_inferior_init): Update.
9395         * linespec.c (minsym_found): Update.
9396         (add_minsym): Update.
9397         * linux-fork.c (info_checkpoints_command): Update.
9398         * linux-nat.c (get_signo): Update.
9399         * linux-thread-db.c (inferior_has_bug): Update.
9400         * m32c-tdep.c (m32c_return_value): Update.
9401         (m32c_m16c_address_to_pointer): Update.
9402         (m32c_m16c_pointer_to_address): Update.
9403         * m32r-tdep.c (m32r_frame_this_id): Update.
9404         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9405         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9406         * maint.c (maintenance_translate_address): Update.
9407         * minsyms.c (add_minsym_to_hash_table): Update.
9408         (add_minsym_to_demangled_hash_table): Update.
9409         (msymbol_objfile): Update.
9410         (lookup_minimal_symbol): Update.
9411         (iterate_over_minimal_symbols): Update.
9412         (lookup_minimal_symbol_text): Update.
9413         (lookup_minimal_symbol_by_pc_name): Update.
9414         (lookup_minimal_symbol_solib_trampoline): Update.
9415         (lookup_minimal_symbol_by_pc_section_1): Update.
9416         (lookup_minimal_symbol_and_objfile): Update.
9417         (prim_record_minimal_symbol_full): Update.
9418         (compare_minimal_symbols): Update.
9419         (compact_minimal_symbols): Update.
9420         (build_minimal_symbol_hash_tables): Update.
9421         (install_minimal_symbols): Update.
9422         (terminate_minimal_symbol_table): Update.
9423         (find_solib_trampoline_target): Update.
9424         (minimal_symbol_upper_bound): Update.
9425         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9426         * mips-tdep.c (mips_stub_frame_sniffer): Update.
9427         (mips_skip_pic_trampoline_code): Update.
9428         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9429         * objc-lang.c (selectors_info): Update.
9430         (classes_info): Update.
9431         (find_methods): Update.
9432         (find_imps): Update.
9433         (find_objc_msgsend): Update.
9434         * objfiles.c (objfile_relocate1): Update.
9435         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9436         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9437         * p-valprint.c (pascal_val_print): Update.
9438         * parse.c (write_exp_msymbol): Update.
9439         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9440         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9441         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9442         * printcmd.c (build_address_symbolic): Update.
9443         (sym_info): Update.
9444         (address_info): Update.
9445         * proc-service.c (ps_pglobal_lookup): Update.
9446         * psymtab.c (find_pc_sect_psymtab_closer): Update.
9447         (find_pc_sect_psymtab): Update.
9448         * python/py-framefilter.c (py_print_frame): Update.
9449         * ravenscar-thread.c (get_running_thread_id): Update.
9450         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9451         Update.
9452         * remote.c (remote_check_symbols): Update.
9453         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9454         (rs6000_skip_trampoline_code): Update.
9455         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9456         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9457         * solib-dsbt.c (lm_base): Update.
9458         * solib-frv.c (lm_base): Update.
9459         (main_got): Update.
9460         * solib-irix.c (locate_base): Update.
9461         * solib-som.c (som_solib_create_inferior_hook): Update.
9462         (som_solib_desire_dynamic_linker_symbols): Update.
9463         (link_map_start): Update.
9464         * solib-spu.c (spu_enable_break): Update.
9465         (ocl_enable_break): Update.
9466         * solib-svr4.c (elf_locate_base): Update.
9467         (enable_break): Update.
9468         * spu-tdep.c (spu_get_overlay_table): Update.
9469         (spu_catch_start): Update.
9470         (flush_ea_cache): Update.
9471         * stabsread.c (define_symbol): Update.
9472         (scan_file_globals): Update.
9473         * stack.c (find_frame_funname): Update.
9474         (frame_info): Update.
9475         * symfile.c (simple_read_overlay_table): Update.
9476         (simple_overlay_update): Update.
9477         * symmisc.c (dump_msymbols): Update.
9478         * symtab.c (fixup_section): Update.
9479         (find_pc_sect_line): Update.
9480         (skip_prologue_sal): Update.
9481         (search_symbols): Update.
9482         (print_msymbol_info): Update.
9483         (rbreak_command): Update.
9484         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9485         (completion_list_objc_symbol): Update.
9486         (default_make_symbol_completion_list_break_on): Update.
9487         * tracepoint.c (scope_info): Update.
9488         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9489         (tui_get_begin_asm_address): Update.
9490         * valops.c (find_function_in_inferior): Update.
9491         * value.c (value_static_field): Update.
9492         (value_fn_field): Update.
9493
9494 2014-02-26  Tom Tromey  <tromey@redhat.com>
9495
9496         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9497         bound minimal symbols.  Move code that knows about minsym
9498         table layout...
9499         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
9500         function.
9501         * minsyms.h (minimal_symbol_upper_bound): Declare.
9502         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9503         minimal_symbol_upper_bound.
9504
9505 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9506
9507         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9508         Use the type's name if its basic type does not have a tag.
9509
9510 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9511
9512         * dwarf2read.c (read_subrange_type): Add comment.
9513
9514 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9515
9516         * dwarf2read.c (update_enumeration_type_from_children): New
9517         function, mostly extracted from process_structure_scope.
9518         (read_enumeration_type): Call update_enumeration_type_from_children.
9519         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9520         and flag_flag_enum fields.
9521
9522 2014-02-26  Pedro Alves  <palves@redhat.com>
9523
9524         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9525         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9526         to_xfer_partial method.
9527
9528 2014-02-26  Pedro Alves  <palves@redhat.com>
9529
9530         * target.c (complete_target_initialization): Don't install
9531         default_xfer_partial as to_xfer_partial hook.
9532         (nomemory): Delete.
9533         (update_current_target): Don't INHERIT nor de_fault
9534         deprecated_xfer_memory.  Delete de_fault macro.
9535         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9536         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9537         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9538         field.
9539
9540 2014-02-26  Pedro Alves  <palves@redhat.com>
9541
9542         * go32-nat.c (my_write_child): New function.
9543         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9544         (go32_xfer_partial): New function.
9545         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9546         Instead install a to_xfer_partial hook.
9547
9548 2014-02-26  Pedro Alves  <palves@redhat.com>
9549
9550         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9551         to_xfer_partial helper.  Rewrite.
9552         (procfs_xfer_partial): New function.
9553         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9554         Install a to_xfer_partial hook.
9555
9556 2014-02-26  Pedro Alves  <palves@redhat.com>
9557
9558         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9559         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9560         (m32r_xfer_partial): New function.
9561         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9562         Install a to_xfer_partial hook.
9563
9564 2014-02-26  Pedro Alves  <palves@redhat.com>
9565
9566         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9567         helper.
9568         (mips_xfer_partial): New function.
9569         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9570         hook.  Install a to_xfer_partial hook.
9571
9572 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
9573
9574         * gdbtypes.h (create_array_type_with_stride): Add declaration.
9575         * gdbtypes.c (create_array_type_with_stride): New function,
9576         renaming create_array_type, but with an added parameter
9577         called "bit_stride".
9578         (create_array_type): Re-implement using
9579         create_array_type_with_stride.
9580         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9581         and DW_AT_bit_stride attributes.
9582
9583 2014-02-26  Pedro Alves  <palves@redhat.com>
9584
9585         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9586         task-specific breakpoints.
9587
9588 2014-02-25  Pedro Alves  <palves@redhat.com>
9589
9590         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9591         handling of object == TARGET_OBJECT_UNWIND_TABLE.
9592
9593 2014-02-25  Stan Shebs  <stan@codesourcery.com>
9594
9595         * defs.h: Annotate comments for Doxygen.
9596
9597 2014-02-25  Tom Tromey  <tromey@redhat.com>
9598
9599         * target.h (target_ignore): Don't declare.
9600         * target.c (target_ignore): Remove.
9601
9602 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9603
9604         PR gdb/16626
9605         * auto-load.c (auto_load_objfile_script_1): Change filename to
9606         debugfile.
9607
9608 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
9609
9610         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9611         documentation.  Adjust prototype to match the target_ops
9612         to_xfer_partial method.  Adjust implementation accordingly.
9613
9614 2014-02-25  Hui Zhu  <hui@codesourcery.com>
9615
9616         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9617         to_traceframe_info.
9618
9619 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
9620
9621         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9622         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9623         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9624         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9625         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9626         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9627         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9628         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9629         New constants.
9630         (rl78_register_type): Use a data pointer type for SP and
9631         new pseudo registers mentioned above.  Use a 16 bit integer
9632         type for all other register pairs.
9633         (rl78_register_name, rl78_g10_register_name): Update for
9634         new pseudo registers.
9635         (rl78_pseudo_register_read): Likewise.
9636         (rl78_pseudo_register_write): Likewise.
9637         (rl78_dwarf_reg_to_regnum): Return register numbers representing
9638         to the newly added pseudo registers.
9639
9640 2014-02-24  Doug Evans  <dje@google.com>
9641
9642         * value.c (record_latest_value): Fix comment.
9643         * printcmd.c (print_command_1): Remove code to handle -1 return from
9644         record_latest_value.
9645
9646 2014-02-24  Pedro Alves  <palves@redhat.com>
9647
9648         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9649         deprecated_xfer_memory hook.
9650         (procfs_xfer_partial): Call procfs_xfer_memory instead
9651         of the deprecated_xfer_memory target hook.
9652         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9653         helper.
9654
9655 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
9656
9657         * windows-nat.c (windows_xfer_shared_libraries): Return
9658         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9659         requested object is TARGET_OBJECT_LIBRARIES.
9660
9661 2014-02-24  Yao Qi  <yao@codesourcery.com>
9662
9663         * target.h (enum target_xfer_status)
9664         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9665         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9666         explicitly.  New.
9667         * corefile.c (memory_error_message): User updated.
9668         * exec.c (section_table_read_available_memory): Likewise.
9669         * record-btrace.c (record_btrace_xfer_partial): Likewise.
9670         * target.c (target_xfer_status_to_string): Likewise.
9671         (raw_memory_xfer_partial): Likewise.
9672         (memory_xfer_partial_1, target_xfer_partial): Likewise.
9673         * valops.c (read_value_memory): Likewise.
9674         * exec.h: Update comments.
9675
9676 2014-02-24  Yao Qi  <yao@codesourcery.com>
9677
9678         * target.c (target_xfer_status_to_string): Rename argument err
9679         to status.
9680         * target.h (target_xfer_status_to_string): Update declaration.
9681         Replace target_xfer_error_to_string with
9682         target_xfer_status_to_string in comment.
9683
9684 2014-02-24  Yao Qi  <yao@codesourcery.com>
9685
9686         * mips-linux-nat.c (super_close): Update its type.
9687         (mips_linux_close): Pass 'self' to super_close.
9688
9689 2014-02-24  Yao Qi  <yao@codesourcery.com>
9690
9691         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9692         * corefile.c (read_memory): Adjusted.
9693         * target.c (target_write_with_progress): Adjusted.
9694
9695 2014-02-23  Yao Qi  <yao@codesourcery.com>
9696
9697         Revert two patches:
9698
9699         2013-10-25  Yao Qi  <yao@codesourcery.com>
9700
9701         * remote.c (remote_traceframe_info): Return early if
9702         traceframe is not selected.
9703
9704         2013-07-19  Yao Qi  <yao@codesourcery.com>
9705
9706         * target.c (update_current_target): Change the default action
9707         of 'to_traceframe_info' from tcomplain to return_zero.
9708         * target.h (struct target_ops) <to_traceframe_info>: Add more
9709         comments.
9710
9711 2014-02-23  Yao Qi  <yao@codesourcery.com>
9712
9713         * valops.c (read_value_memory): Rewrite it.  Call
9714         target_xfer_partial in a loop.
9715         * exec.h (section_table_available_memory): Remove declaration.
9716         Move comments to ...
9717         * exec.c (section_table_available_memory): ... here.  Make it
9718         static.
9719
9720 2014-02-23  Yao Qi  <yao@codesourcery.com>
9721
9722         * exec.c (section_table_read_available_memory): New function.
9723         * exec.h (section_table_read_available_memory): Declare.
9724         * ctf.c (ctf_xfer_partial): Call
9725         section_table_read_available_memory.
9726         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9727
9728 2014-02-23  Yao Qi  <yao@codesourcery.com>
9729
9730         * ctf.c (ctf_xfer_partial): Move code to ...
9731         * exec.c (exec_read_partial_read_only): ... it.  New function.
9732         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9733         * tracefile.c: Include "exec.h".
9734         * exec.h (exec_read_partial_read_only): Declare.
9735
9736 2014-02-23  Yao Qi  <yao@codesourcery.com>
9737
9738         * tracefile-tfile.c (tfile_has_all_memory): Remove.
9739         (tfile_has_memory): Remove.
9740         (init_tfile_ops): Don't set fields to_has_all_memory and
9741         to_has_memory of tfile_ops.
9742         * tracefile.c (tracefile_has_all_memory): New function.
9743         (tracefile_has_memory): New function.
9744         (init_tracefile_ops): Initialize fields to_has_all_memory and
9745         to_has_memory of 'ops'.
9746
9747 2014-02-23  Yao Qi  <yao@codesourcery.com>
9748
9749         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9750         (ctf_thread_alive, ctf_get_trace_status): Remove.
9751         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
9752         init_tracefile_ops.
9753         * tracefile-tfile.c (tfile_get_trace_status): Remove.
9754         (tfile_has_stack, tfile_has_registers): Remove.
9755         (tfile_thread_alive): Remove.
9756         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
9757         init_tracefile_ops.
9758         * tracefile.c (tracefile_has_stack): New function.
9759         (tracefile_has_registers): New function.
9760         (tracefile_thread_alive): New function.
9761         (tracefile_get_trace_status): New function.
9762         (init_tracefile_ops): New function.
9763         * tracefile.h (init_tracefile_ops): Declare.
9764
9765 2014-02-23  Yao Qi  <yao@codesourcery.com>
9766
9767         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9768         (O_LARGEFILE): Likewise.
9769         (tfile_ops): Likewise.
9770         (TRACE_HEADER_SIZE): Likewise.
9771         (trace_fd, trace_frames_offset, cur_offset): Likewise.
9772         (cur_data_size): Likewise.
9773         (tfile_read, tfile_open, tfile_interp_line): Likewise.
9774         (tfile_close, tfile_files_info): Likewise.
9775         (tfile_get_trace_status): Likewise.
9776         (tfile_get_tracepoint_status): Likewise.
9777         (tfile_get_traceframe_address): Likewise.
9778         (tfile_trace_find, match_blocktype): Likewise.
9779         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9780         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9781         (tfile_get_trace_state_variable_value): Likewise.
9782         (tfile_has_all_memory, tfile_has_memory): Likewise.
9783         (tfile_has_stack, tfile_has_registers): Likewise.
9784         (tfile_thread_alive, build_traceframe_info): Likewise.
9785         (tfile_traceframe_info, init_tfile_ops): Likewise.
9786         (_initialize_tracepoint): Don't call init_tfile_ops
9787         and add_target_with_completer.
9788         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9789         exec.h, completer.h and filenames.h.
9790         (_initialize_tracefile_tfile): New function.
9791
9792 2014-02-23  Yao Qi  <yao@codesourcery.com>
9793
9794         * Makefile.in (REMOTE_OBS): Append tracefile.o and
9795         tracefile-tfile.o.
9796         (HFILES_NO_SRCDIR): Add tracefile.h.
9797         * ctf.c: Include "tracefile.h".
9798         * tracefile.h: New file.
9799         * tracefile.c: New file
9800         * tracefile-tfile.c: New file.
9801         * tracepoint.c: Include "tracefile.h".
9802         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9803         (stop_reason_names): Add const.
9804         (trace_file_writer_xfree): Move it to tracefile.c.
9805         (trace_save, trace_save_command, trace_save_tfile): Likewise.
9806         (trace_save_ctf): Likewise.
9807         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9808         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9809         (tfile_write_header, tfile_write_regblock_type): Likewise.
9810         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9811         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9812         (tfile_write_raw_data, tfile_end): Likewise.
9813         (tfile_trace_file_writer_new): Likewise.
9814         (free_uploaded_tp): Make it extern.
9815         (free_uploaded_tsv): Make it extern.
9816         (_initialize_tracepoint): Move code to register command 'tsave'
9817         to tracefile.c.
9818         * tracepoint.h (stop_reason_names): Declare.
9819         (struct trace_frame_write_ops): Move it to tracefile.h.
9820         (struct trace_file_write_ops): Likewise.
9821         (struct trace_file_writer): Likewise.
9822         (free_uploaded_tsvs, free_uploaded_tps): Declare.
9823
9824 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9825
9826         PR gdb/16594
9827         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9828         process name.
9829         (get_cores_used_by_process): New parameter num_cores, use it.
9830         (linux_xfer_osdata_processes): Pass num_cores to it.
9831         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9832         process name.
9833
9834 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
9835
9836         * target.c (memory_xfer_partial): Fix length arg in call to
9837         breakpoint_xfer_memory.
9838
9839 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
9840
9841         PR tdep/16397
9842         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9843         number comes after the + or - signs.  Adjust length of register
9844         name to be extracted.
9845
9846 2014-02-20  Tom Tromey  <tromey@redhat.com>
9847
9848         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9849         (ada_varobj_ops): Mark "extern".
9850
9851 2014-02-20  Tom Tromey  <tromey@redhat.com>
9852
9853         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9854
9855 2014-02-20  Doug Evans  <xdje42@gmail.com>
9856
9857         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9858         All callers updated.
9859         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9860         All callers updated.
9861         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9862         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9863
9864 2014-02-20  lin zuojian  <manjian2006@gmail.com>
9865             Joel Brobecker  <brobecker@adacore.com>
9866             Doug Evans  <xdje42@gmail.com>
9867
9868         PR symtab/16581
9869         * dwarf2read.c (struct die_info): New member in_process.
9870         (reset_die_in_process): New function.
9871         (process_die): Set it at the start, reset when returning.
9872         (inherit_abstract_dies): Only call process_die if origin_child_die
9873         not already being processed.
9874
9875 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9876
9877         * windows-nat.c (handle_unload_dll): Add function documentation.
9878         (do_initial_windows_stuff): Add comment explaining why we wait
9879         until after inferior initialization has finished before
9880         processing all DLLs.
9881
9882 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9883
9884         * windows-nat.c (get_module_name): Delete.
9885         (windows_get_exec_module_filename): New function, mostly
9886         inspired from get_module_name.
9887         (windows_pid_to_exec_file): Replace call to get_module_name
9888         by call to windows_get_exec_module_filename.
9889
9890 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9891
9892         * windows-nat.c (handle_load_dll): Rewrite this function's
9893         introductory comment.  Remove code using get_module_name
9894         to get the DLL's name.
9895
9896 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9897
9898         * windows-nat.c (get_windows_debug_event): Ignore
9899         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9900         if windows_initialization_done == 0.
9901         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9902         Adjust implementation to always load all DLLs.
9903         (do_initial_windows_stuff): Replace call to
9904         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9905
9906 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9907
9908         * windows-nat.c (_initialize_windows_nat): Deprecate the
9909         "dll-symbols" command.  Turn the "add-shared-symbol-files"
9910         and "assf" aliases into commands, and deprecate them as well.
9911         * NEWS: Add entry explaining that "dll-symbols" and its two
9912         aliases are now deprecated.
9913
9914 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9915
9916         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9917         new-line in debug string.  Remove trailing spaces.
9918
9919 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9920
9921         * darwin-nat.c (darwin_xfer_partial): Fix return type.
9922
9923 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
9924
9925         * NEWS: Add entry for the new feature
9926         * python/py-value.c (valpy_binop): Call value_x_binop for struct
9927         and class values.
9928
9929 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9930
9931         * MAINTAINERS: List Yao Qi as nios2 maintainer.
9932
9933 2014-02-19  Pedro Alves  <palves@redhat.com>
9934
9935         * common/ptid.h (struct ptid): Mention that process_stratum
9936         targets should prefer ptid.lwp.
9937
9938 2014-02-19  Pedro Alves  <palves@redhat.com>
9939
9940         * remote.c (remote_thread_alive, write_ptid, read_ptid)
9941         (read_ptid, remote_newthread_step, remote_threads_extra_info)
9942         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9943         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9944         store remote thread ids rather than ptid.tid.
9945         (_initialize_remote): Adjust.
9946
9947 2014-02-19  Tom Tromey  <tromey@redhat.com>
9948
9949         * target.c (target_get_unwinder): Rewrite.
9950         (target_get_tailcall_unwinder): Rewrite.
9951         * record-btrace.c (record_btrace_to_get_unwinder): New function.
9952         (record_btrace_to_get_tailcall_unwinder): New function.
9953         (init_record_btrace_ops): Update.
9954         * target.h (struct target_ops) <to_get_unwinder,
9955         to_get_tailcall_unwinder>: Now function pointers.  Use
9956         TARGET_DEFAULT_RETURN.
9957
9958 2014-02-19  Tom Tromey  <tromey@redhat.com>
9959
9960         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9961         argument.
9962         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9963
9964 2014-02-19  Tom Tromey  <tromey@redhat.com>
9965
9966         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9967         directly.
9968         * target-delegates.c: Rebuild.
9969         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9970         TARGET_DEFAULT_FUNC.
9971         * target.c (default_target_decr_pc_after_break): Rename from
9972         forward_target_decr_pc_after_break.  Simplify.
9973         (target_decr_pc_after_break): Rely on delegation.
9974
9975 2014-02-19  Tom Tromey  <tromey@redhat.com>
9976
9977         * target.c (update_current_target): Do not INHERIT to_doc or
9978         to_magic.  Do not de_fault to_open or to_close.
9979
9980 2014-02-19  Tom Tromey  <tromey@redhat.com>
9981
9982         * gcore.h (objfile_find_memory_regions): Declare.
9983         * gcore.c (objfile_find_memory_regions): No longer static.  Add
9984         "self" argument.
9985         (_initialize_gcore): Don't call exec_set_find_memory_regions.
9986         * exec.c: Include gcore.h.
9987         (exec_set_find_memory_regions): Remove.
9988         (exec_find_memory_regions): Remove.
9989         (exec_do_find_memory_regions): Remove.
9990         (init_exec_ops): Update.
9991         * defs.h (exec_set_find_memory_regions): Remove.
9992
9993 2014-02-19  Tom Tromey  <tromey@redhat.com>
9994
9995         * target-delegates.c: Rebuild.
9996         * target.h (struct target_ops) <to_extra_thread_info,
9997         to_thread_name, to_pid_to_exec_file, to_get_section_table,
9998         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9999         not 0, in TARGET_DEFAULT_RETURN.
10000
10001 2014-02-19  Tom Tromey  <tromey@redhat.com>
10002
10003         * target.c (complete_target_initialization): Remove casts.  Use
10004         return_zero_has_execution.
10005         (return_zero): Add "ignore" argument.
10006         (return_zero_has_execution): New function.
10007         (init_dummy_target): Remove casts.  Use
10008         return_zero_has_execution.
10009
10010 2014-02-19  Tom Tromey  <tromey@redhat.com>
10011
10012         * target.c (update_current_target): Update comments.  Do not
10013         INHERIT to_stratum.
10014
10015 2014-02-19  Tom Tromey  <tromey@redhat.com>
10016
10017         * arm-linux-nat.c (arm_linux_read_description): Delegate when
10018         needed.
10019         * corelow.c (core_read_description): Delegate when needed.
10020         * remote.c (remote_read_description): Delegate when needed.
10021         * target-delegates.c: Rebuild.
10022         * target.c (target_read_description): Rewrite.
10023         * target.h (struct target_ops) <to_read_description>: Update
10024         comment.  Use TARGET_DEFAULT_RETURN.
10025
10026 2014-02-19  Tom Tromey  <tromey@redhat.com>
10027
10028         * target-delegates.c: Rebuild.
10029         * target.c (update_current_target): Don't inherit or default
10030         to_can_run.
10031         (find_default_run_target): Check against delegate_can_run.
10032         * target.h (struct target_ops) <to_can_run>: Use
10033         TARGET_DEFAULT_RETURN.
10034
10035 2014-02-19  Tom Tromey  <tromey@redhat.com>
10036
10037         * target-delegates.c: Rebuild.
10038         * target.c (target_disconnect): Unconditionally delegate.
10039         * target.h (struct target_ops) <to_disconnect>: Use
10040         TARGET_DEFAULT_NORETURN.
10041
10042 2014-02-19  Tom Tromey  <tromey@redhat.com>
10043
10044         * record.c (record_stop): Unconditionally delegate.
10045         * target-delegates.c: Rebuild.
10046         * target.c (target_stop_recording): Unconditionally delegate.
10047         * target.h (struct target_ops) <to_stop_recording>: Use
10048         TARGET_DEFAULT_IGNORE.
10049
10050 2014-02-19  Tom Tromey  <tromey@redhat.com>
10051
10052         * target-delegates.c: Rebuild.
10053         * target.c (target_enable_btrace): Unconditionally delegate.
10054         * target.h (struct target_ops) <to_enable_btrace>: 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_read_btrace): Unconditionally delegate.
10061         * target.h (struct target_ops) <to_read_btrace>: Use
10062         TARGET_DEFAULT_NORETURN.
10063
10064 2014-02-19  Tom Tromey  <tromey@redhat.com>
10065
10066         * target-delegates.c: Rebuild.
10067         * target.c (target_teardown_btrace): Unconditionally delegate.
10068         * target.h (struct target_ops) <to_teardown_btrace>: Use
10069         TARGET_DEFAULT_NORETURN.
10070
10071 2014-02-19  Tom Tromey  <tromey@redhat.com>
10072
10073         * target-delegates.c: Rebuild.
10074         * target.c (target_disable_btrace): Unconditionally delegate.
10075         * target.h (struct target_ops) <to_disable_btrace>: Use
10076         TARGET_DEFAULT_NORETURN.
10077
10078 2014-02-19  Tom Tromey  <tromey@redhat.com>
10079
10080         * target-delegates.c: Rebuild.
10081         * target.c (default_search_memory): New function.
10082         (simple_search_memory): Update comment.
10083         (target_search_memory): Unconditionally delegate.
10084         * target.h (struct target_ops) <to_search_memory>: Use
10085         TARGET_DEFAULT_FUNC.
10086
10087 2014-02-19  Tom Tromey  <tromey@redhat.com>
10088
10089         * auxv.c (default_auxv_parse): No longer static.
10090         (target_auxv_parse): Unconditionally delegate.
10091         * auxv.h (default_auxv_parse): Declare.
10092         * target-delegates.c: Rebuild.
10093         * target.c: Include auxv.h.
10094         * target.h (struct target_ops) <to_auxv_parse>: Use
10095         TARGET_DEFAULT_FUNC.
10096
10097 2014-02-19  Tom Tromey  <tromey@redhat.com>
10098
10099         * target-delegates.c: Rebuild.
10100         * target.c (target_memory_map): Unconditionally delegate.
10101         * target.h (struct target_ops) <to_memory_map>: Use
10102         TARGET_DEFAULT_RETURN.
10103
10104 2014-02-19  Tom Tromey  <tromey@redhat.com>
10105
10106         * target-delegates.c: Rebuild.
10107         * target.c (target_thread_alive): Unconditionally delegate.
10108         * target.h (struct target_ops) <to_thread_alive>: Use
10109         TARGET_DEFAULT_RETURN.
10110
10111 2014-02-19  Tom Tromey  <tromey@redhat.com>
10112
10113         * target-delegates.c: Rebuild.
10114         * target.c (target_save_record): Unconditionally delegate.
10115         * target.h (struct target_ops) <to_save_record>: Use
10116         TARGET_DEFAULT_NORETURN.
10117
10118 2014-02-19  Tom Tromey  <tromey@redhat.com>
10119
10120         * target-delegates.c: Rebuild.
10121         * target.c (target_delete_record): Unconditionally delegate.
10122         * target.h (struct target_ops) <to_delete_record>: Use
10123         TARGET_DEFAULT_NORETURN.
10124
10125 2014-02-19  Tom Tromey  <tromey@redhat.com>
10126
10127         * target-delegates.c: Rebuild.
10128         * target.c (target_record_is_replaying): Unconditionally
10129         delegate.
10130         * target.h (struct target_ops) <to_record_is_replaying>: Use
10131         TARGET_DEFAULT_RETURN.
10132
10133 2014-02-19  Tom Tromey  <tromey@redhat.com>
10134
10135         * target-delegates.c: Rebuild.
10136         * target.c (target_goto_record_begin): Unconditionally delegate.
10137         * target.h (struct target_ops) <to_goto_record_begin>: Use
10138         TARGET_DEFAULT_NORETURN.
10139
10140 2014-02-19  Tom Tromey  <tromey@redhat.com>
10141
10142         * target-delegates.c: Rebuild.
10143         * target.c (target_goto_record_end): Unconditionally delegate.
10144         * target.h (struct target_ops) <to_goto_record_end>: Use
10145         TARGET_DEFAULT_NORETURN.
10146
10147 2014-02-19  Tom Tromey  <tromey@redhat.com>
10148
10149         * target-delegates.c: Rebuild.
10150         * target.c (target_goto_record): Unconditionally delegate.
10151         * target.h (struct target_ops) <to_goto_record>: Use
10152         TARGET_DEFAULT_NORETURN.
10153
10154 2014-02-19  Tom Tromey  <tromey@redhat.com>
10155
10156         * target-delegates.c: Rebuild.
10157         * target.c (target_insn_history): Unconditionally delegate.
10158         * target.h (struct target_ops) <to_insn_history>: Use
10159         TARGET_DEFAULT_NORETURN.
10160
10161 2014-02-19  Tom Tromey  <tromey@redhat.com>
10162
10163         * target-delegates.c: Rebuild.
10164         * target.c (target_insn_history_from): Unconditionally delegate.
10165         * target.h (struct target_ops) <to_insn_history_from>: Use
10166         TARGET_DEFAULT_NORETURN.
10167
10168 2014-02-19  Tom Tromey  <tromey@redhat.com>
10169
10170         * target-delegates.c: Rebuild.
10171         * target.c (target_insn_history_range): Unconditionally delegate.
10172         * target.h (struct target_ops) <to_insn_history_range>: Use
10173         TARGET_DEFAULT_NORETURN.
10174
10175 2014-02-19  Tom Tromey  <tromey@redhat.com>
10176
10177         * target-delegates.c: Rebuild.
10178         * target.c (target_call_history): Unconditionally delegate.
10179         * target.h (struct target_ops) <to_call_history>: Use
10180         TARGET_DEFAULT_NORETURN.
10181
10182 2014-02-19  Tom Tromey  <tromey@redhat.com>
10183
10184         * target-delegates.c: Rebuild.
10185         * target.c (target_call_history_from): Unconditionally delegate.
10186         * target.h (struct target_ops) <to_call_history_from>: Use
10187         TARGET_DEFAULT_NORETURN.
10188
10189 2014-02-19  Tom Tromey  <tromey@redhat.com>
10190
10191         * target-delegates.c: Rebuild.
10192         * target.c (target_call_history_range): Unconditionally delegate.
10193         * target.h (struct target_ops) <to_call_history_range>: Use
10194         TARGET_DEFAULT_NORETURN.
10195
10196 2014-02-19  Tom Tromey  <tromey@redhat.com>
10197
10198         * target-delegates.c: Rebuild.
10199         * target.c (target_verify_memory): Unconditionally delegate.
10200         * target.h (struct target_ops) <to_verify_memory>: Use
10201         TARGET_DEFAULT_NORETURN.
10202
10203 2014-02-19  Tom Tromey  <tromey@redhat.com>
10204
10205         * target-delegates.c: Rebuild.
10206         * target.c (target_core_of_thread): Unconditionally delegate.
10207         * target.h (struct target_ops) <to_core_of_thread>: Use
10208         TARGET_DEFAULT_RETURN.
10209
10210 2014-02-19  Tom Tromey  <tromey@redhat.com>
10211
10212         * target-delegates.c: Rebuild.
10213         * target.c (target_flash_done): Unconditionally delegate.
10214         * target.h (struct target_ops) <to_flash_done>: Use
10215         TARGET_DEFAULT_NORETURN.
10216
10217 2014-02-19  Tom Tromey  <tromey@redhat.com>
10218
10219         * target-delegates.c: Rebuild.
10220         * target.c (target_flash_erase): Unconditionally delegate.
10221         * target.h (struct target_ops) <to_flash_erase>: Use
10222         TARGET_DEFAULT_NORETURN.
10223
10224 2014-02-19  Tom Tromey  <tromey@redhat.com>
10225
10226         * target-delegates.c: Rebuild.
10227         * target.c (target_get_section_table): Unconditionally delegate.
10228         * target.h (struct target_ops) <to_get_section_table>: Use
10229         TARGET_DEFAULT_RETURN.
10230
10231 2014-02-19  Tom Tromey  <tromey@redhat.com>
10232
10233         * target-delegates.c: Rebuild.
10234         * target.c (target_pid_to_str): Unconditionally delegate.
10235         (init_dummy_target): Don't initialize to_pid_to_str.
10236         (default_pid_to_str): Rename from dummy_pid_to_str.
10237         * target.h (struct target_ops) <to_pid_to_str>: Use
10238         TARGET_DEFAULT_FUNC.
10239
10240 2014-02-19  Tom Tromey  <tromey@redhat.com>
10241
10242         * target-delegates.c: Rebuild.
10243         * target.c (target_find_new_threads): Unconditionally delegate.
10244         * target.h (struct target_ops) <to_find_new_threads>: Use
10245         TARGET_DEFAULT_RETURN.
10246
10247 2014-02-19  Tom Tromey  <tromey@redhat.com>
10248
10249         * target-delegates.c: Rebuild.
10250         * target.c (target_program_signals): Unconditionally delegate.
10251         * target.h (struct target_ops) <to_program_signals>: Use
10252         TARGET_DEFAULT_IGNORE.
10253
10254 2014-02-19  Tom Tromey  <tromey@redhat.com>
10255
10256         * target-delegates.c: Rebuild.
10257         * target.c (target_pass_signals): Unconditionally delegate.
10258         * target.h (struct target_ops) <to_pass_signals>: Use
10259         TARGET_DEFAULT_IGNORE.
10260
10261 2014-02-19  Tom Tromey  <tromey@redhat.com>
10262
10263         * target-delegates.c: Rebuild.
10264         * target.c (default_mourn_inferior): New function.
10265         (target_mourn_inferior): Unconditionally delegate.
10266         * target.h (struct target_ops) <to_mourn_inferior>: Use
10267         TARGET_DEFAULT_FUNC.
10268
10269 2014-02-19  Tom Tromey  <tromey@redhat.com>
10270
10271         * target-delegates.c: Rebuild.
10272         * target.c (default_follow_fork): New function.
10273         (target_follow_fork): Unconditionally delegate.
10274         * target.h (struct target_ops) <to_follow_fork>: Use
10275         TARGET_DEFAULT_FUNC.
10276
10277 2014-02-19  Tom Tromey  <tromey@redhat.com>
10278
10279         * target-delegates.c: Rebuild.
10280         * target.c (target_kill): Unconditionally delegate.
10281         * target.h (struct target_ops) <to_kill>: Use
10282         TARGET_DEFAULT_NORETURN.
10283
10284 2014-02-19  Tom Tromey  <tromey@redhat.com>
10285
10286         * target-delegates.c: Rebuild.
10287         * target.c (target_masked_watch_num_registers): Unconditionally
10288         delegate.
10289         * target.h (struct target_ops) <to_masked_watch_num_registers>:
10290         Use TARGET_DEFAULT_RETURN.
10291
10292 2014-02-19  Tom Tromey  <tromey@redhat.com>
10293
10294         * target-delegates.c: Rebuild.
10295         * target.c (target_remove_mask_watchpoint): Unconditionally
10296         delegate.
10297         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10298         TARGET_DEFAULT_RETURN.
10299
10300 2014-02-19  Tom Tromey  <tromey@redhat.com>
10301
10302         * target-delegates.c: Rebuild.
10303         * target.c (target_insert_mask_watchpoint): Unconditionally
10304         delegate.
10305         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10306         TARGET_DEFAULT_RETURN.
10307
10308 2014-02-19  Tom Tromey  <tromey@redhat.com>
10309
10310         * target-delegates.c: Rebuild.
10311         * target.c (target_ranged_break_num_registers): Unconditionally
10312         delegate.
10313         * target.h (struct target_ops) <to_ranged_break_num_registers>:
10314         Use TARGET_DEFAULT_RETURN.
10315
10316 2014-02-19  Tom Tromey  <tromey@redhat.com>
10317
10318         * target-delegates.c: Rebuild.
10319         * target.c (target_fetch_registers): Unconditionally delegate.
10320         * target.h (struct target_ops) <to_fetch_registers>: 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_stop.
10328         * target.h (struct target_ops) <to_stop>: Use
10329         TARGET_DEFAULT_IGNORE.
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_can_run_breakpoint_commands.
10336         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10337         Use TARGET_DEFAULT_RETURN.
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_supports_evaluation_of_breakpoint_conditions.
10344         * target.h (struct target_ops)
10345         <to_supports_evaluation_of_breakpoint_conditions>: Use
10346         TARGET_DEFAULT_RETURN.
10347
10348 2014-02-19  Tom Tromey  <tromey@redhat.com>
10349
10350         * target-delegates.c: Rebuild.
10351         * target.c (update_current_target): Don't inherit or default
10352         to_augmented_libraries_svr4_read.
10353         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10354         Use TARGET_DEFAULT_RETURN.
10355
10356 2014-02-19  Tom Tromey  <tromey@redhat.com>
10357
10358         * target-delegates.c: Rebuild.
10359         * target.c (update_current_target): Don't inherit or default
10360         to_can_use_agent.
10361         * target.h (struct target_ops) <to_can_use_agent>: Use
10362         TARGET_DEFAULT_RETURN.
10363
10364 2014-02-19  Tom Tromey  <tromey@redhat.com>
10365
10366         * target-delegates.c: Rebuild.
10367         * target.c (update_current_target): Don't inherit or default
10368         to_use_agent.
10369         * target.h (struct target_ops) <to_use_agent>: Use
10370         TARGET_DEFAULT_NORETURN.
10371
10372 2014-02-19  Tom Tromey  <tromey@redhat.com>
10373
10374         * target-delegates.c: Rebuild.
10375         * target.c (update_current_target): Don't inherit or default
10376         to_traceframe_info.
10377         (return_null): Remove.
10378         * target.h (struct target_ops) <to_traceframe_info>: Use
10379         TARGET_DEFAULT_RETURN.
10380
10381 2014-02-19  Tom Tromey  <tromey@redhat.com>
10382
10383         * target-delegates.c: Rebuild.
10384         * target.c (update_current_target): Don't inherit or default
10385         to_static_tracepoint_markers_by_strid.
10386         * target.h (struct target_ops)
10387         <to_static_tracepoint_markers_by_strid>: Use
10388         TARGET_DEFAULT_NORETURN.
10389
10390 2014-02-19  Tom Tromey  <tromey@redhat.com>
10391
10392         * target-delegates.c: Rebuild.
10393         * target.c (update_current_target): Don't inherit or default
10394         to_static_tracepoint_marker_at.
10395         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10396         Use TARGET_DEFAULT_RETURN.
10397
10398 2014-02-19  Tom Tromey  <tromey@redhat.com>
10399
10400         * target-delegates.c: Rebuild.
10401         * target.c (update_current_target): Don't inherit or default
10402         to_set_permissions.
10403         * target.h (struct target_ops) <to_set_permissions>: Use
10404         TARGET_DEFAULT_IGNORE.
10405
10406 2014-02-19  Tom Tromey  <tromey@redhat.com>
10407
10408         * target-delegates.c: Rebuild.
10409         * target.c (update_current_target): Don't inherit or default
10410         to_get_tib_address.
10411         * target.h (struct target_ops) <to_get_tib_address>: Use
10412         TARGET_DEFAULT_NORETURN.
10413
10414 2014-02-19  Tom Tromey  <tromey@redhat.com>
10415
10416         * target-delegates.c: Rebuild.
10417         * target.c (update_current_target): Don't inherit or default
10418         to_set_trace_notes.
10419         * target.h (struct target_ops) <to_set_trace_notes>: Use
10420         TARGET_DEFAULT_RETURN.
10421
10422 2014-02-19  Tom Tromey  <tromey@redhat.com>
10423
10424         * target-delegates.c: Rebuild.
10425         * target.c (update_current_target): Don't initialize
10426         to_set_trace_buffer_size.
10427         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10428         TARGET_DEFAULT_IGNORE.
10429
10430 2014-02-19  Tom Tromey  <tromey@redhat.com>
10431
10432         * target-delegates.c: Rebuild.
10433         * target.c (update_current_target): Don't inherit or default
10434         to_set_circular_trace_buffer.
10435         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10436         TARGET_DEFAULT_IGNORE.
10437
10438 2014-02-19  Tom Tromey  <tromey@redhat.com>
10439
10440         * target-delegates.c: Rebuild.
10441         * target.c (update_current_target): Don't inherit or default
10442         to_set_disconnected_tracing.
10443         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10444         TARGET_DEFAULT_IGNORE.
10445
10446 2014-02-19  Tom Tromey  <tromey@redhat.com>
10447
10448         * target-delegates.c: Rebuild.
10449         * target.c (update_current_target): Don't inherit or default
10450         to_get_min_fast_tracepoint_insn_len.
10451         (return_minus_one): Remove.
10452         * target.h (struct target_ops)
10453         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10454
10455 2014-02-19  Tom Tromey  <tromey@redhat.com>
10456
10457         * target-delegates.c: Rebuild.
10458         * target.c (update_current_target): Don't inherit or default
10459         to_get_raw_trace_data.
10460         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10461         TARGET_DEFAULT_NORETURN.
10462
10463 2014-02-19  Tom Tromey  <tromey@redhat.com>
10464
10465         * target-delegates.c: Rebuild.
10466         * target.c (update_current_target): Don't inherit or default
10467         to_upload_trace_state_variables.
10468         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10469         Use TARGET_DEFAULT_RETURN.
10470
10471 2014-02-19  Tom Tromey  <tromey@redhat.com>
10472
10473         * target-delegates.c: Rebuild.
10474         * target.c (update_current_target): Don't inherit or default
10475         to_upload_tracepoints.
10476         * target.h (struct target_ops) <to_upload_tracepoints>: Use
10477         TARGET_DEFAULT_RETURN.
10478
10479 2014-02-19  Tom Tromey  <tromey@redhat.com>
10480
10481         * target-delegates.c: Rebuild.
10482         * target.c (update_current_target): Don't inherit or default
10483         to_save_trace_data.
10484         * target.h (struct target_ops) <to_save_trace_data>: Use
10485         TARGET_DEFAULT_NORETURN.
10486
10487 2014-02-19  Tom Tromey  <tromey@redhat.com>
10488
10489         * target-delegates.c: Rebuild.
10490         * target.c (update_current_target): Don't inherit or default
10491         to_get_trace_state_variable_value.
10492         * target.h (struct target_ops)
10493         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10494
10495 2014-02-19  Tom Tromey  <tromey@redhat.com>
10496
10497         * target-delegates.c: Rebuild.
10498         * target.c (update_current_target): Don't inherit or default
10499         to_trace_find.
10500         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10501
10502 2014-02-19  Tom Tromey  <tromey@redhat.com>
10503
10504         * target-delegates.c: Rebuild.
10505         * target.c (update_current_target): Don't inherit or default
10506         to_trace_stop.
10507         * target.h (struct target_ops) <to_trace_stop>: Use
10508         TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
10515         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10516         TARGET_DEFAULT_NORETURN.
10517
10518 2014-02-19  Tom Tromey  <tromey@redhat.com>
10519
10520         * target-delegates.c: Rebuild.
10521         * target.c (update_current_target): Don't inherit or default
10522         to_get_trace_status.
10523         * target.h (struct target_ops) <to_get_trace_status>: 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_trace_start.
10531         * target.h (struct target_ops) <to_trace_start>: Use
10532         TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
10539         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10540         Use TARGET_DEFAULT_NORETURN.
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_disable_tracepoint.
10547         * target.h (struct target_ops) <to_disable_tracepoint>: Use
10548         TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
10555         * target.h (struct target_ops) <to_enable_tracepoint>: Use
10556         TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
10563         * target.h (struct target_ops) <to_download_trace_state_variable>:
10564         Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
10571         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10572         TARGET_DEFAULT_RETURN.
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_download_tracepoint.
10579         * target.h (struct target_ops) <to_download_tracepoint>: Use
10580         TARGET_DEFAULT_NORETURN.
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_trace_init.
10587         * target.h (struct target_ops) <to_trace_init>: Use
10588         TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
10595         * target.h (struct target_ops) <to_supports_string_tracing>: Use
10596         TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
10603         * target.h (struct target_ops)
10604         <to_supports_enable_disable_tracepoint>: Use
10605         TARGET_DEFAULT_RETURN.
10606
10607 2014-02-19  Tom Tromey  <tromey@redhat.com>
10608
10609         * target-delegates.c: Rebuild.
10610         * target.c (update_current_target): Don't inherit or default
10611         to_supports_multi_process.
10612         * target.h (struct target_ops) <to_supports_multi_process>: Use
10613         TARGET_DEFAULT_RETURN.
10614
10615 2014-02-19  Tom Tromey  <tromey@redhat.com>
10616
10617         * target-delegates.c: Rebuild.
10618         * target.c (update_current_target): Don't inherit or default
10619         to_get_ada_task_ptid.
10620         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10621         TARGET_DEFAULT_FUNC.
10622
10623 2014-02-19  Tom Tromey  <tromey@redhat.com>
10624
10625         * target-delegates.c: Rebuild.
10626         * target.c (update_current_target): Don't inherit or default
10627         to_thread_architecture.
10628         * target.h (struct target_ops) <to_thread_architecture>: Use
10629         TARGET_DEFAULT_FUNC.
10630
10631 2014-02-19  Tom Tromey  <tromey@redhat.com>
10632
10633         * target-delegates.c: Rebuild.
10634         * target.c (update_current_target): Don't inherit or default
10635         to_execution_direction.
10636         * target.h (struct target_ops) <to_execution_direction>: Use
10637         TARGET_DEFAULT_FUNC.
10638
10639 2014-02-19  Tom Tromey  <tromey@redhat.com>
10640
10641         * target-delegates.c: Rebuild.
10642         * target.c (update_current_target): Don't inherit or default
10643         to_can_execute_reverse.
10644         * target.h (struct target_ops) <to_can_execute_reverse>: Use
10645         TARGET_DEFAULT_RETURN.
10646         (target_can_execute_reverse): Unconditionally delegate.
10647
10648 2014-02-19  Tom Tromey  <tromey@redhat.com>
10649
10650         * target-delegates.c: Rebuild.
10651         * target.c (update_current_target): Don't inherit or default
10652         to_goto_bookmark.
10653         (dummy_goto_bookmark): Remove.
10654         (init_dummy_target): Don't inherit or default to_goto_bookmark.
10655         * target.h (struct target_ops) <to_goto_bookmark>: Use
10656         TARGET_DEFAULT_NORETURN.
10657
10658 2014-02-19  Tom Tromey  <tromey@redhat.com>
10659
10660         * target-delegates.c: Rebuild.
10661         * target.c (update_current_target): Don't inherit or default
10662         to_get_bookmark.
10663         (dummy_get_bookmark): Remove.
10664         (init_dummy_target): Don't inherit or default to_get_bookmark.
10665         * target.h (struct target_ops) <to_get_bookmark>: Use
10666         TARGET_DEFAULT_NORETURN
10667
10668 2014-02-19  Tom Tromey  <tromey@redhat.com>
10669
10670         * target-delegates.c: Rebuild.
10671         * target.c (update_current_target): Don't inherit or default
10672         to_make_corefile_notes.
10673         (init_dummy_target): Don't initialize to_make_corefile_notes.
10674         * target.h (struct target_ops) <to_make_corefile_notes>: Use
10675         TARGET_DEFAULT_FUNC.
10676
10677 2014-02-19  Tom Tromey  <tromey@redhat.com>
10678
10679         * target-delegates.c: Rebuild.
10680         * target.c (update_current_target): Don't inherit or default
10681         to_find_memory_regions.
10682         (init_dummy_target): Don't initialize to_find_memory_regions.
10683         * target.h (struct target_ops) <to_find_memory_regions>: Use
10684         TARGET_DEFAULT_FUNC.
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_log_command.
10691         * target.h (struct target_ops) <to_log_command>: Use
10692         TARGET_DEFAULT_IGNORE.
10693         (target_log_command): Unconditionally delegate.
10694
10695 2014-02-19  Tom Tromey  <tromey@redhat.com>
10696
10697         * target-delegates.c: Rebuild.
10698         * target.c (update_current_target): Don't inherit or default
10699         to_pid_to_exec_file.
10700         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10701         TARGET_DEFAULT_RETURN.
10702
10703 2014-02-19  Tom Tromey  <tromey@redhat.com>
10704
10705         * target-delegates.c: Rebuild.
10706         * target.c (update_current_target): Don't inherit or default
10707         to_thread_name.
10708         (target_thread_name): Unconditionally delegate.
10709         * target.h (struct target_ops) <to_thread_name>: Use
10710         TARGET_DEFAULT_RETURN.
10711
10712 2014-02-19  Tom Tromey  <tromey@redhat.com>
10713
10714         * target-delegates.c: Rebuild.
10715         * target.c (update_current_target): Don't inherit or default
10716         to_extra_thread_info.
10717         * target.h (struct target_ops) <to_extra_thread_info>: Use
10718         TARGET_DEFAULT_RETURN.
10719
10720 2014-02-19  Tom Tromey  <tromey@redhat.com>
10721
10722         * target-delegates.c: Rebuild.
10723         * target.c (update_current_target): Don't inherit or default
10724         to_has_exited.
10725         * target.h (struct target_ops) <to_has_exited>: Use
10726         TARGET_DEFAULT_RETURN..
10727
10728 2014-02-19  Tom Tromey  <tromey@redhat.com>
10729
10730         * target-delegates.c: Rebuild.
10731         * target.c (update_current_target): Don't inherit or default
10732         to_set_syscall_catchpoint.
10733         (return_one): Remove.
10734         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10735         TARGET_DEFAULT_RETURN.
10736
10737 2014-02-19  Tom Tromey  <tromey@redhat.com>
10738
10739         * target-delegates.c: Rebuild.
10740         * target.c (update_current_target): Don't inherit or default
10741         to_insert_exec_catchpoint.
10742         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10743         TARGET_DEFAULT_RETURN.
10744
10745 2014-01-08  Tom Tromey  <tromey@redhat.com>
10746
10747         * target-delegates.c: Rebuild.
10748         * target.c (update_current_target): Don't inherit or default
10749         to_insert_exec_catchpoint.
10750         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10751         TARGET_DEFAULT_RETURN.
10752
10753 2014-02-19  Tom Tromey  <tromey@redhat.com>
10754
10755         * target-delegates.c: Rebuild.
10756         * target.c (update_current_target): Don't inherit or default
10757         to_remove_vfork_catchpoint.
10758         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10759         TARGET_DEFAULT_RETURN.
10760
10761 2014-02-19  Tom Tromey  <tromey@redhat.com>
10762
10763         * target-delegates.c: Rebuild.
10764         * target.c (update_current_target): Don't inherit or default
10765         to_insert_vfork_catchpoint.
10766         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10767         TARGET_DEFAULT_RETURN.
10768
10769 2014-02-19  Tom Tromey  <tromey@redhat.com>
10770
10771         * target-delegates.c: Rebuild.
10772         * target.c (update_current_target): Don't inherit or default
10773         to_remove_fork_catchpoint.
10774         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10775         TARGET_DEFAULT_RETURN.
10776
10777 2014-02-19  Tom Tromey  <tromey@redhat.com>
10778
10779         * target-delegates.c: Rebuild.
10780         * target.c (update_current_target): Don't inherit or default
10781         to_insert_fork_catchpoint.
10782         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10783         TARGET_DEFAULT_RETURN.
10784
10785 2014-02-19  Tom Tromey  <tromey@redhat.com>
10786
10787         * target-delegates.c: Rebuild.
10788         * target.c (update_current_target): Don't inherit or default
10789         to_post_startup_inferior.
10790         * target.h (struct target_ops) <to_post_startup_inferior>: Use
10791         TARGET_DEFAULT_IGNORE.
10792
10793 2014-02-19  Tom Tromey  <tromey@redhat.com>
10794
10795         * target-delegates.c: Rebuild.
10796         * target.c (update_current_target): Don't inherit or default
10797         to_load.
10798         * target.h (struct target_ops) <to_load>: Use
10799         TARGET_DEFAULT_NORETURN.
10800
10801 2014-02-19  Tom Tromey  <tromey@redhat.com>
10802
10803         * target-delegates.c: Rebuild.
10804         * target.c (update_current_target): Don't inherit or default
10805         to_terminal_info.
10806         * target.h (struct target_ops) <to_terminal_info>: Use
10807         TARGET_DEFAULT_FUNC.
10808
10809 2014-02-19  Tom Tromey  <tromey@redhat.com>
10810
10811         * target-delegates.c: Rebuild.
10812         * target.c (update_current_target): Don't inherit or default
10813         to_terminal_save_ours.
10814         * target.h (struct target_ops) <to_terminal_save_ours>: Use
10815         TARGET_DEFAULT_IGNORE.
10816
10817 2014-02-19  Tom Tromey  <tromey@redhat.com>
10818
10819         * target-delegates.c: Rebuild.
10820         * target.c (update_current_target): Don't inherit or default
10821         to_terminal_ours.
10822         * target.h (struct target_ops) <to_terminal_ours>: Use
10823         TARGET_DEFAULT_IGNORE.
10824
10825 2014-02-19  Tom Tromey  <tromey@redhat.com>
10826
10827         * target-delegates.c: Rebuild.
10828         * target.c (update_current_target): Don't inherit or default
10829         to_terminal_ours_for_output.
10830         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10831         TARGET_DEFAULT_IGNORE.
10832
10833 2014-02-19  Tom Tromey  <tromey@redhat.com>
10834
10835         * target-delegates.c: Rebuild.
10836         * target.c (update_current_target): Don't inherit or default
10837         to_terminal_inferior.
10838         * target.h (struct target_ops) <to_terminal_inferior>: Use
10839         TARGET_DEFAULT_IGNORE.
10840
10841 2014-02-19  Tom Tromey  <tromey@redhat.com>
10842
10843         * target-delegates.c: Rebuild.
10844         * target.c (update_current_target): Don't inherit or default
10845         to_terminal_init.
10846         * target.h (struct target_ops) <to_terminal_init>: Use
10847         TARGET_DEFAULT_IGNORE.
10848
10849 2014-02-19  Tom Tromey  <tromey@redhat.com>
10850
10851         * target-delegates.c: Rebuild.
10852         * target.c (update_current_target): Don't inherit or default
10853         to_can_accel_watchpoint_condition.
10854         * target.h (struct target_ops)
10855         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10856
10857 2014-02-19  Tom Tromey  <tromey@redhat.com>
10858
10859         * target-delegates.c: Rebuild.
10860         * target.c (update_current_target): Don't inherit or default
10861         to_region_ok_for_hw_watchpoint.
10862         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10863         Use TARGET_DEFAULT_FUNC.
10864
10865 2014-02-19  Tom Tromey  <tromey@redhat.com>
10866
10867         * target-delegates.c: Rebuild.
10868         * target.c (update_current_target): Don't inherit or default
10869         to_watchpoint_addr_within_range.
10870         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10871         Use TARGET_DEFAULT_FUNC.
10872
10873 2014-02-19  Tom Tromey  <tromey@redhat.com>
10874
10875         * target-delegates.c: Rebuild.
10876         * target.c (update_current_target): Don't inherit or default
10877         to_remove_watchpoint.
10878         * target.h (struct target_ops) <to_remove_watchpoint>: Use
10879         TARGET_DEFAULT_NORETURN.
10880
10881 2014-02-19  Tom Tromey  <tromey@redhat.com>
10882
10883         * target-delegates.c: Rebuild.
10884         * target.c (update_current_target): Don't inherit or default
10885         to_insert_watchpoint.
10886         * target.h (struct target_ops) <to_insert_watchpoint>: Use
10887         TARGET_DEFAULT_RETURN.
10888
10889 2014-02-19  Tom Tromey  <tromey@redhat.com>
10890
10891         * target-delegates.c: Rebuild.
10892         * target.c (update_current_target): Don't inherit or default
10893         to_remove_hw_breakpoint.
10894         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10895         TARGET_DEFAULT_RETURN.
10896
10897 2014-02-19  Tom Tromey  <tromey@redhat.com>
10898
10899         * target-delegates.c: Rebuild.
10900         * target.c (update_current_target): Don't inherit or default
10901         to_insert_hw_breakpoint.
10902         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10903         TARGET_DEFAULT_RETURN.
10904
10905 2014-02-19  Tom Tromey  <tromey@redhat.com>
10906
10907         * target-delegates.c: Rebuild.
10908         * target.c (update_current_target): Don't inherit or default
10909         to_can_use_hw_breakpoint.
10910         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10911         TARGET_DEFAULT_RETURN.
10912
10913 2014-02-19  Tom Tromey  <tromey@redhat.com>
10914
10915         * target-delegates.c: Rebuild.
10916         * target.c (update_current_target): Don't inherit or default
10917         to_files_info.
10918         * target.h (struct target_ops) <to_files_info>: Use
10919         TARGET_DEFAULT_IGNORE.
10920
10921 2014-02-19  Tom Tromey  <tromey@redhat.com>
10922
10923         * target-delegates.c: Rebuild.
10924         * target.c (update_current_target): Don't inherit or default
10925         to_store.
10926         * target.h (struct target_ops) <to_store>: Use
10927         TARGET_DEFAULT_NORETURN.
10928
10929 2014-02-19  Tom Tromey  <tromey@redhat.com>
10930
10931         * target-delegates.c: Rebuild.
10932         * target.c (update_current_target): Don't inherit or default
10933         to_post_attach.
10934         * target.h (struct target_ops) <to_post_attach>: Use
10935         TARGET_DEFAULT_IGNORE.
10936
10937 2014-02-19  Tom Tromey  <tromey@redhat.com>
10938
10939         * target-delegates.c: Rebuild.
10940         * target.c (update_current_target): Don't inherit or default
10941         to_rcmd.
10942         (default_rcmd): New function.
10943         (do_monitor_command): Unconditionally delegate.
10944         * target.h (struct target_ops) <to_rmcd>: Use
10945         TARGET_DEFAULT_FUNC.
10946
10947 2014-02-19  Tom Tromey  <tromey@redhat.com>
10948
10949         * target-delegates.c: Rebuild.
10950         * target.c (init_dummy_target): Don't initialize to_attach.
10951         (target_attach): Unconditionally delegate.
10952         * target.h (struct target_ops) <to_attach>: Use
10953         TARGET_DEFAULT_FUNC.
10954
10955 2014-02-19  Tom Tromey  <tromey@redhat.com>
10956
10957         * target-delegates.c: Rebuild.
10958         * target.c (target_detach): Unconditionally delegate.
10959         (init_dummy_target): Don't initialize to_detach.
10960         * target.h (struct target_ops) <to_detach>: Use
10961         TARGET_DEFAULT_IGNORE.
10962
10963 2014-02-19  Tom Tromey  <tromey@redhat.com>
10964
10965         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10966         Add argument.
10967         (target_augmented_libraries_svr4_read): Add argument.
10968         * target.c (update_current_target): Update.
10969         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10970         argument.
10971
10972 2014-02-19  Tom Tromey  <tromey@redhat.com>
10973
10974         * target.h (struct target_ops) <to_call_history_range>: Add
10975         argument.
10976         * target.c (target_call_history_range): Add argument.
10977         * record-btrace.c (record_btrace_call_history_range): Add 'self'
10978         argument.
10979         (record_btrace_call_history_from): Update.
10980
10981 2014-02-19  Tom Tromey  <tromey@redhat.com>
10982
10983         * target.h (struct target_ops) <to_call_history_from>: Add
10984         argument.
10985         * target.c (target_call_history_from): Add argument.
10986         * record-btrace.c (record_btrace_call_history_from): Add 'self'
10987         argument.
10988
10989 2014-02-19  Tom Tromey  <tromey@redhat.com>
10990
10991         * target.h (struct target_ops) <to_call_history>: Add argument.
10992         * target.c (target_call_history): Add argument.
10993         * record-btrace.c (record_btrace_call_history): Add 'self'
10994         argument.
10995
10996 2014-02-19  Tom Tromey  <tromey@redhat.com>
10997
10998         * target.h (struct target_ops) <to_insn_history_range>: Add
10999         argument.
11000         * target.c (target_insn_history_range): Add argument.
11001         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11002         argument.
11003         (record_btrace_insn_history_from): Update.
11004
11005 2014-02-19  Tom Tromey  <tromey@redhat.com>
11006
11007         * target.h (struct target_ops) <to_insn_history_from>: Add
11008         argument.
11009         * target.c (target_insn_history_from): Add argument.
11010         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11011         argument.
11012
11013 2014-02-19  Tom Tromey  <tromey@redhat.com>
11014
11015         * target.h (struct target_ops) <to_insn_history>: Add argument.
11016         * target.c (target_insn_history): Add argument.
11017         * record-btrace.c (record_btrace_insn_history): Add 'self'
11018         argument.
11019
11020 2014-02-19  Tom Tromey  <tromey@redhat.com>
11021
11022         * target.h (struct target_ops) <to_goto_record>: Add argument.
11023         * target.c (target_goto_record): Add argument.
11024         * record-full.c (record_full_goto): Add 'self' argument.
11025         * record-btrace.c (record_btrace_goto): Add 'self' argument.
11026
11027 2014-02-19  Tom Tromey  <tromey@redhat.com>
11028
11029         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11030         * target.c (target_goto_record_end): Add argument.
11031         * record-full.c (record_full_goto_end): Add 'self' argument.
11032         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11033
11034 2014-02-19  Tom Tromey  <tromey@redhat.com>
11035
11036         * target.h (struct target_ops) <to_goto_record_begin>: Add
11037         argument.
11038         * target.c (target_goto_record_begin): Add argument.
11039         * record-full.c (record_full_goto_begin): Add 'self' argument.
11040         * record-btrace.c (record_btrace_goto_begin): Add 'self'
11041         argument.
11042
11043 2014-02-19  Tom Tromey  <tromey@redhat.com>
11044
11045         * target.h (struct target_ops) <to_record_is_replaying>: Add
11046         argument.
11047         * target.c (target_record_is_replaying): Add argument.
11048         * record-full.c (record_full_is_replaying): Add 'self' argument.
11049         * record-btrace.c (record_btrace_is_replaying): Add 'self'
11050         argument.
11051         (record_btrace_xfer_partial, record_btrace_store_registers)
11052         (record_btrace_prepare_to_store, record_btrace_resume)
11053         (record_btrace_wait, record_btrace_decr_pc_after_break)
11054         (record_btrace_find_new_threads, record_btrace_thread_alive):
11055         Update.
11056
11057 2014-02-19  Tom Tromey  <tromey@redhat.com>
11058
11059         * target.h (struct target_ops) <to_delete_record>: Add argument.
11060         * target.c (target_delete_record): Add argument.
11061         * record-full.c (record_full_delete): Add 'self' argument.
11062
11063 2014-02-19  Tom Tromey  <tromey@redhat.com>
11064
11065         * target.h (struct target_ops) <to_save_record>: Add argument.
11066         * target.c (target_save_record): Add argument.
11067         * record-full.c (record_full_save): Add 'self' argument.
11068         (record_full_save): Add 'self' argument.
11069
11070 2014-02-19  Tom Tromey  <tromey@redhat.com>
11071
11072         * target.h (struct target_ops) <to_info_record>: Add argument.
11073         * target.c (target_info_record): Add argument.
11074         * record.c (info_record_command): Add argument.
11075         * record-full.c (record_full_info): Add 'self' argument.
11076         * record-btrace.c (record_btrace_info): Add 'self' argument.
11077
11078 2014-02-19  Tom Tromey  <tromey@redhat.com>
11079
11080         * target.h (struct target_ops) <to_stop_recording>: Add argument.
11081         * target.c (target_stop_recording): Add argument.
11082         * record.c (record_stop): Add argument.
11083         * record-btrace.c (record_btrace_stop_recording): Add 'self'
11084         argument.
11085
11086 2014-02-19  Tom Tromey  <tromey@redhat.com>
11087
11088         * target.h (struct target_ops) <to_read_btrace>: Add argument.
11089         * target.c (struct target_ops) <to_read_btrace>: Add argument.
11090         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11091         argument.
11092         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11093         (_initialize_amd64_linux_nat): Use it.
11094         * i386-linux-nat.c (i386_linux_read_btrace): New function.
11095         (_initialize_i386_linux_nat): Use it.
11096
11097 2014-02-19  Tom Tromey  <tromey@redhat.com>
11098
11099         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11100         * target.c (target_teardown_btrace): Add argument.
11101         * remote.c (remote_teardown_btrace): Add 'self' argument.
11102         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11103         argument.
11104         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11105         argument.
11106
11107 2014-02-19  Tom Tromey  <tromey@redhat.com>
11108
11109         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11110         * target.c (target_disable_btrace): Add argument.
11111         * remote.c (remote_disable_btrace): Add 'self' argument.
11112         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11113         argument.
11114         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11115         argument.
11116
11117 2014-02-19  Tom Tromey  <tromey@redhat.com>
11118
11119         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11120         * target.c (target_enable_btrace): Add argument.
11121         * remote.c (remote_enable_btrace): Add 'self' argument.
11122         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11123         argument.
11124         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11125         argument.
11126
11127 2014-02-19  Tom Tromey  <tromey@redhat.com>
11128
11129         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11130         (target_can_use_agent): Add argument.
11131         * target.c (update_current_target): Update.
11132         * remote.c (remote_can_use_agent): Add 'self' argument.
11133         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11134
11135 2014-02-19  Tom Tromey  <tromey@redhat.com>
11136
11137         * target.h (struct target_ops) <to_use_agent>: Add argument.
11138         (target_use_agent): Add argument.
11139         * target.c (update_current_target): Update.
11140         * remote.c (remote_use_agent): Add 'self' argument.
11141         * inf-child.c (inf_child_use_agent): Add 'self' argument.
11142
11143 2014-02-19  Tom Tromey  <tromey@redhat.com>
11144
11145         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11146         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11147         (target_traceframe_info): Add argument.
11148         * target.c (update_current_target): Update.
11149         * remote.c (remote_traceframe_info): Add 'self' argument.
11150         * ctf.c (ctf_traceframe_info): Add 'self' argument.
11151
11152 2014-02-19  Tom Tromey  <tromey@redhat.com>
11153
11154         * target.h (target_static_tracepoint_markers_by_strid): Add
11155         argument.
11156         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11157         'self' argument.
11158         * target.c (update_current_target): Update.
11159         * remote.c (struct target_ops)
11160         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11161         * linux-nat.c (struct target_ops)
11162         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11163
11164 2014-02-19  Tom Tromey  <tromey@redhat.com>
11165
11166         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11167         Add argument.
11168         (target_static_tracepoint_marker_at): Add argument.
11169         * target.c (update_current_target): Update.
11170         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11171         argument.
11172
11173 2014-02-19  Tom Tromey  <tromey@redhat.com>
11174
11175         * target.h (struct target_ops) <to_set_permissions>: Add argument.
11176         (target_set_permissions): Add argument.
11177         * target.c (update_current_target): Update.
11178         * remote.c (remote_set_permissions): Add 'self' argument.
11179         (remote_start_remote): Update.
11180
11181 2014-02-19  Tom Tromey  <tromey@redhat.com>
11182
11183         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11184         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11185         (target_get_tib_address): Add argument.
11186         * target.c (update_current_target): Update.
11187         * remote.c (remote_get_tib_address): Add 'self' argument.
11188
11189 2014-02-19  Tom Tromey  <tromey@redhat.com>
11190
11191         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11192         (target_set_trace_notes): Add argument.
11193         * target.c (update_current_target): Update.
11194         * remote.c (remote_set_trace_notes): Add 'self' argument.
11195
11196 2014-02-19  Tom Tromey  <tromey@redhat.com>
11197
11198         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11199         argument.
11200         (target_set_trace_buffer_size): Add argument.
11201         * target.c (update_current_target): Update.
11202         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11203
11204 2014-02-19  Tom Tromey  <tromey@redhat.com>
11205
11206         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11207         argument.
11208         (target_set_circular_trace_buffer): Add argument.
11209         * target.c (update_current_target): Update.
11210         * remote.c (remote_set_circular_trace_buffer): Add 'self'
11211         argument.
11212
11213 2014-02-19  Tom Tromey  <tromey@redhat.com>
11214
11215         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11216         argument.
11217         (target_set_disconnected_tracing): Add argument.
11218         * target.c (update_current_target): Update.
11219         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11220
11221 2014-02-19  Tom Tromey  <tromey@redhat.com>
11222
11223         * target.h (struct target_ops)
11224         <to_get_min_fast_tracepoint_insn_len>: Add argument.
11225         (target_get_min_fast_tracepoint_insn_len): Add argument.
11226         * target.c (update_current_target): Update.
11227         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11228         argument.
11229
11230 2014-02-19  Tom Tromey  <tromey@redhat.com>
11231
11232         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11233         argument.
11234         (target_get_raw_trace_data): Add argument.
11235         * target.c (update_current_target): Update.
11236         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11237
11238 2014-02-19  Tom Tromey  <tromey@redhat.com>
11239
11240         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11241         Add argument.
11242         (target_upload_trace_state_variables): Add argument.
11243         * target.c (update_current_target): Update.
11244         * remote.c (remote_upload_trace_state_variables): Add 'self'
11245         argument.
11246         (remote_start_remote): Update.
11247
11248 2014-02-19  Tom Tromey  <tromey@redhat.com>
11249
11250         * target.h (struct target_ops) <to_upload_tracepoints>: Add
11251         argument.
11252         (target_upload_tracepoints): Add argument.
11253         * target.c (update_current_target): Update.
11254         * remote.c (remote_upload_tracepoints): Add 'self' argument.
11255         (remote_start_remote): Update.
11256
11257 2014-02-19  Tom Tromey  <tromey@redhat.com>
11258
11259         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11260         (target_save_trace_data): Add argument.
11261         * target.c (update_current_target): Update.
11262         * remote.c (remote_save_trace_data): Add 'self' argument.
11263
11264 2014-02-19  Tom Tromey  <tromey@redhat.com>
11265
11266         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11267         argument.
11268         * target.h (struct target_ops)
11269         <to_get_trace_state_variable_value>: Add argument.
11270         (target_get_trace_state_variable_value): Add argument.
11271         * target.c (update_current_target): Update.
11272         * remote.c (remote_get_trace_state_variable_value): Add 'self'
11273         argument.
11274         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11275
11276 2014-02-19  Tom Tromey  <tromey@redhat.com>
11277
11278         * tracepoint.c (tfile_trace_find): Add 'self' argument.
11279         * target.h (struct target_ops) <to_trace_find>: Add argument.
11280         (target_trace_find): Add argument.
11281         * target.c (update_current_target): Update.
11282         * remote.c (remote_trace_find): Add 'self' argument.
11283         * ctf.c (ctf_trace_find): Add 'self' argument.
11284
11285 2014-02-19  Tom Tromey  <tromey@redhat.com>
11286
11287         * target.h (struct target_ops) <to_trace_stop>: Add argument.
11288         (target_trace_stop): Add argument.
11289         * target.c (update_current_target): Update.
11290         * remote.c (remote_trace_stop): Add 'self' argument.
11291
11292 2014-02-19  Tom Tromey  <tromey@redhat.com>
11293
11294         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11295         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11296         argument.
11297         (target_get_tracepoint_status): Add argument.
11298         * target.c (update_current_target): Update.
11299         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11300
11301 2014-02-19  Tom Tromey  <tromey@redhat.com>
11302
11303         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11304         * target.h (struct target_ops) <to_get_trace_status>: Add
11305         argument.
11306         (target_get_trace_status): Add argument.
11307         * target.c (update_current_target): Update.
11308         * remote.c (remote_get_trace_status): Add 'self' argument.
11309         (remote_start_remote, remote_can_download_tracepoint): Update.
11310         * ctf.c (ctf_get_trace_status): Add 'self' argument.
11311
11312 2014-02-19  Tom Tromey  <tromey@redhat.com>
11313
11314         * target.h (struct target_ops) <to_trace_start>: Add argument.
11315         (target_trace_start): Add argument.
11316         * target.c (update_current_target): Update.
11317         * remote.c (remote_trace_start): Add 'self' argument.
11318
11319 2014-02-19  Tom Tromey  <tromey@redhat.com>
11320
11321         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11322         Add argument.
11323         (target_trace_set_readonly_regions): Add argument.
11324         * target.c (update_current_target): Update.
11325         * remote.c (remote_trace_set_readonly_regions): Add 'self'
11326         argument.
11327
11328 2014-02-19  Tom Tromey  <tromey@redhat.com>
11329
11330         * target.h (struct target_ops) <to_disable_tracepoint>: Add
11331         argument.
11332         (target_disable_tracepoint): Add argument.
11333         * target.c (update_current_target): Update.
11334         * remote.c (remote_disable_tracepoint): Add 'self' argument.
11335
11336 2014-02-19  Tom Tromey  <tromey@redhat.com>
11337
11338         * target.h (struct target_ops) <to_enable_tracepoint>: Add
11339         argument.
11340         (target_enable_tracepoint): Add argument.
11341         * target.c (update_current_target): Update.
11342         * remote.c (remote_enable_tracepoint): Add 'self' argument.
11343
11344 2014-02-19  Tom Tromey  <tromey@redhat.com>
11345
11346         * target.h (struct target_ops) <to_download_trace_state_variable>:
11347         Add argument.
11348         (target_download_trace_state_variable): Add argument.
11349         * target.c (update_current_target): Update.
11350         * remote.c (remote_download_trace_state_variable): Add 'self'
11351         argument.
11352
11353 2014-02-19  Tom Tromey  <tromey@redhat.com>
11354
11355         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11356         argument.
11357         (target_can_download_tracepoint): Add argument.
11358         * target.c (update_current_target): Update.
11359         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11360
11361 2014-02-19  Tom Tromey  <tromey@redhat.com>
11362
11363         * target.h (struct target_ops) <to_download_tracepoint>: Add
11364         argument.
11365         (target_download_tracepoint): Add argument.
11366         * target.c (update_current_target): Update.
11367         * remote.c (remote_download_tracepoint): Add 'self' argument.
11368
11369 2014-02-19  Tom Tromey  <tromey@redhat.com>
11370
11371         * target.h (struct target_ops) <to_trace_init>: Add argument.
11372         (target_trace_init): Add argument.
11373         * target.c (update_current_target): Update.
11374         * remote.c (remote_trace_init): Add 'self' argument.
11375
11376 2014-02-19  Tom Tromey  <tromey@redhat.com>
11377
11378         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11379         * target.c (target_fileio_readlink): Add argument.
11380         * remote.c (remote_hostio_readlink): Add 'self' argument.
11381         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11382
11383 2014-02-19  Tom Tromey  <tromey@redhat.com>
11384
11385         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11386         * target.c (target_fileio_unlink): Add argument.
11387         * remote.c (remote_hostio_unlink): Add 'self' argument.
11388         (remote_file_delete): Update.
11389         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11390
11391 2014-02-19  Tom Tromey  <tromey@redhat.com>
11392
11393         * target.h (struct target_ops) <to_fileio_close>: Add argument.
11394         * target.c (target_fileio_close): Add argument.
11395         * remote.c (remote_hostio_close): Add 'self' argument.
11396         (remote_hostio_close_cleanup): Update.
11397         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11398         Update.
11399         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11400
11401 2014-02-19  Tom Tromey  <tromey@redhat.com>
11402
11403         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11404         * target.c (target_fileio_pread): Add argument.
11405         * remote.c (remote_hostio_pread): Add 'self' argument.
11406         (remote_bfd_iovec_pread, remote_file_get): Update.
11407         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11408
11409 2014-02-19  Tom Tromey  <tromey@redhat.com>
11410
11411         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11412         * target.c (target_fileio_pwrite): Add argument.
11413         * remote.c (remote_hostio_pwrite): Add 'self' argument.
11414         (remote_file_put): Update.
11415         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11416
11417 2014-02-19  Tom Tromey  <tromey@redhat.com>
11418
11419         * target.h (struct target_ops) <to_fileio_open>: Add argument.
11420         * target.c (target_fileio_open): Add argument.
11421         * remote.c (remote_hostio_open): Add 'self' argument.
11422         (remote_bfd_iovec_open): Add 'self' argument.
11423         (remote_file_put): Add 'self' argument.
11424         (remote_file_get): Add 'self' argument.
11425         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11426
11427 2014-02-19  Tom Tromey  <tromey@redhat.com>
11428
11429         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11430         Add argument.
11431         (target_can_run_breakpoint_commands): Add argument.
11432         * target.c (update_current_target): Update.
11433         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11434         argument.
11435         (remote_insert_breakpoint): Add 'self' argument.
11436         (remote_insert_hw_breakpoint): Add 'self' argument.
11437         (remote_can_run_breakpoint_commands): Add 'self' argument.
11438
11439 2014-02-19  Tom Tromey  <tromey@redhat.com>
11440
11441         * target.h (struct target_ops)
11442         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11443         (target_supports_evaluation_of_breakpoint_conditions): Add
11444         argument.
11445         * target.c (update_current_target): Update.
11446         * remote.c (remote_supports_cond_breakpoints): Add 'self'
11447         argument.
11448         (remote_insert_breakpoint): Add 'self' argument.
11449         (remote_insert_hw_breakpoint): Add 'self' argument.
11450         (remote_supports_cond_breakpoints): Add 'self' argument.
11451
11452 2014-02-19  Tom Tromey  <tromey@redhat.com>
11453
11454         * target.h (struct target_ops) <to_supports_string_tracing>: Add
11455         argument.
11456         (target_supports_string_tracing): Add argument.
11457         * target.c (update_current_target): Update.
11458         * remote.c (remote_supports_string_tracing): Add 'self' argument.
11459
11460 2014-02-19  Tom Tromey  <tromey@redhat.com>
11461
11462         * target.h (struct target_ops)
11463         <to_supports_disable_randomization>: Add argument.
11464         * target.c (find_default_supports_disable_randomization): Add
11465         argument.
11466         (target_supports_disable_randomization): Add argument.
11467         (find_default_supports_disable_randomization): Add 'self'
11468         argument.
11469         * remote.c (extended_remote_supports_disable_randomization): Add
11470         'self' argument.
11471         (remote_supports_disable_randomization): Add 'self' argument.
11472         (extended_remote_create_inferior): Update.
11473         * linux-nat.c (linux_nat_supports_disable_randomization): Add
11474         'self' argument.
11475
11476 2014-02-19  Tom Tromey  <tromey@redhat.com>
11477
11478         * target.h (struct target_ops)
11479         <to_supports_enable_disable_tracepoint>: Add argument.
11480         (target_supports_enable_disable_tracepoint): Add argument.
11481         * target.c (update_current_target): Update.
11482         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11483         argument.
11484
11485 2014-02-19  Tom Tromey  <tromey@redhat.com>
11486
11487         * target.h (struct target_ops) <to_supports_multi_process>: Add
11488         argument.
11489         (target_supports_multi_process): Add argument.
11490         * target.c (update_current_target): Update.
11491         * remote.c (remote_supports_multi_process): Add 'self' argument.
11492         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11493         argument.
11494         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11495         argument.
11496
11497 2014-02-19  Tom Tromey  <tromey@redhat.com>
11498
11499         * target.h (struct target_ops) <to_execution_direction>: Add
11500         argument.
11501         (target_execution_direction): Add argument.
11502         * target.c (default_execution_direction): Add 'self' argument.
11503         * record-full.c (record_full_execution_direction): Add 'self'
11504         argument.
11505
11506 2014-02-19  Tom Tromey  <tromey@redhat.com>
11507
11508         * target.h (struct target_ops) <to_can_execute_reverse>: Add
11509         argument.
11510         (target_can_execute_reverse): Add argument.
11511         * remote.c (remote_can_execute_reverse): Add 'self' argument.
11512         * record-full.c (record_full_can_execute_reverse): Add 'self'
11513         argument.
11514         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11515         argument.
11516
11517 2014-02-19  Tom Tromey  <tromey@redhat.com>
11518
11519         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11520         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11521         argument.
11522         (target_get_ada_task_ptid): Add argument.
11523         * target.c (update_current_target): Update.
11524         (default_get_ada_task_ptid): Add 'self' argument.
11525         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11526         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11527         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11528         argument.
11529         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11530         argument.
11531         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11532         argument.
11533         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11534         argument.
11535         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11536         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11537         argument.
11538
11539 2014-02-19  Tom Tromey  <tromey@redhat.com>
11540
11541         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11542         (target_goto_bookmark): Add argument.
11543         * target.c (dummy_goto_bookmark): Add 'self' argument.
11544         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11545
11546 2014-02-19  Tom Tromey  <tromey@redhat.com>
11547
11548         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11549         (target_get_bookmark): Add argument.
11550         * target.c (dummy_get_bookmark): Add 'self' argument.
11551         * record-full.c (record_full_get_bookmark): Add 'self' argument.
11552
11553 2014-02-19  Tom Tromey  <tromey@redhat.com>
11554
11555         * target.h (struct target_ops) <to_make_corefile_notes>: Add
11556         argument.
11557         (target_make_corefile_notes): Add argument.
11558         * target.c (dummy_make_corefile_notes): Add 'self' argument.
11559         * procfs.c (procfs_make_note_section): Add 'self' argument.
11560         (procfs_make_note_section): Add 'self' argument.
11561         (procfs_make_note_section): Add 'self' argument.
11562         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11563         argument.
11564         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11565         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11566         * exec.c (exec_make_note_section): Add 'self' argument.
11567         (exec_make_note_section): Add 'self' argument.
11568
11569 2014-02-19  Tom Tromey  <tromey@redhat.com>
11570
11571         * target.h (struct target_ops) <to_find_memory_regions>: Add
11572         argument.
11573         (target_find_memory_regions): Add argument.
11574         * target.c (dummy_find_memory_regions): Add 'self' argument.
11575         * procfs.c (proc_find_memory_regions): Add 'self' argument.
11576         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11577         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11578         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11579         * exec. (exec_do_find_memory_regions): New global.
11580         (exec_set_find_memory_regions): Rewrite.
11581         (exec_find_memory_regions): New function.
11582         (init_exec_ops): Use exec_find_memory_regions.
11583
11584 2014-02-19  Tom Tromey  <tromey@redhat.com>
11585
11586         * target.h (struct target_ops) <to_supports_non_stop>: Add
11587         argument.
11588         * target.c (find_default_supports_non_stop): Add argument.
11589         (target_supports_non_stop): Add argument.
11590         (find_default_supports_non_stop): Add 'self' argument.
11591         * remote.c (remote_supports_non_stop): Add 'self' argument.
11592         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11593
11594 2014-02-19  Tom Tromey  <tromey@redhat.com>
11595
11596         * target.h (struct target_ops) <to_log_command>: Add argument.
11597         (target_log_command): Add argument.
11598         * serial.h (serial_log_command): Add 'self' argument.
11599         * serial.c (serial_log_command): Add 'self' argument.
11600
11601 2014-02-19  Tom Tromey  <tromey@redhat.com>
11602
11603         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11604         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11605         argument.
11606         (target_pid_to_exec_file): Add argument.
11607         * target.c (debug_to_pid_to_exec_file): Add argument.
11608         (update_current_target): Update.
11609         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11610         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11611         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11612         (linux_handle_extended_wait): Update.
11613         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11614         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11615         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11616         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11617
11618 2014-02-19  Tom Tromey  <tromey@redhat.com>
11619
11620         * target.h (struct target_ops) <to_rcmd>: Add argument.
11621         (target_rcmd): Add argument.
11622         * target.c (debug_to_rcmd): Add argument.
11623         (update_current_target, do_monitor_command): Update.
11624         * remote.c (remote_rcmd): Add 'self' argument.
11625         * monitor.c (monitor_rcmd): Add 'self' argument.
11626
11627 2014-02-19  Tom Tromey  <tromey@redhat.com>
11628
11629         * windows-nat.c (windows_stop): Add 'self' argument.
11630         * target.h (struct target_ops) <to_stop>: Add argument.
11631         * target.c (target_stop): Add argument.
11632         (debug_to_stop): Add argument.
11633         (update_current_target): Update.
11634         * remote.c (remote_stop): Add 'self' argument.
11635         * remote-sim.c (gdbsim_stop): Add 'self' argument.
11636         (gdbsim_cntrl_c): Update.
11637         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11638         * procfs.c (procfs_stop): Add 'self' argument.
11639         * nto-procfs.c (procfs_stop): Add 'self' argument.
11640         * monitor.c (monitor_stop): Add 'self' argument.
11641         (monitor_open): Update.
11642         * linux-nat.c (linux_nat_stop): Add argument.
11643         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11644         * gnu-nat.c (gnu_stop): Add 'self' argument.
11645         * darwin-nat.c (darwin_stop): Add 'self' argument.
11646
11647 2014-02-19  Tom Tromey  <tromey@redhat.com>
11648
11649         * target.h (struct target_ops) <to_thread_name>: Add argument.
11650         * target.c (target_thread_name): Add argument.
11651         (update_current_target): Update.
11652         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11653
11654 2014-02-19  Tom Tromey  <tromey@redhat.com>
11655
11656         * target.h (struct target_ops) <to_extra_thread_info>: Add
11657         argument.
11658         (target_extra_thread_info): Add argument.
11659         * target.c (update_current_target): Update.
11660         * remote.c (remote_threads_extra_info): Add 'self' argument.
11661         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11662         argument.
11663         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11664         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11665         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11666         argument.
11667         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11668         argument.
11669         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11670         argument.
11671         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11672         argument.
11673
11674 2014-02-19  Tom Tromey  <tromey@redhat.com>
11675
11676         * target.h (struct target_ops) <to_program_signals>: Add argument.
11677         * target.c (target_program_signals): Add argument.
11678         * remote.c (remote_program_signals): Add 'self' argument.
11679
11680 2014-02-19  Tom Tromey  <tromey@redhat.com>
11681
11682         * target.h (struct target_ops) <to_pass_signals>: Add argument.
11683         * target.c (target_pass_signals): Add argument.
11684         * remote.c (remote_pass_signals): Add 'self' argument.
11685         (remote_start_remote): Update.
11686         * procfs.c (procfs_pass_signals): Add 'self' argument.
11687         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11688         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11689         (linux_nat_create_inferior, linux_nat_attach): Update.
11690
11691 2014-02-19  Tom Tromey  <tromey@redhat.com>
11692
11693         * windows-nat.c (windows_can_run): Add 'self' argument.
11694         * target.h (struct target_ops) <to_can_run>: Add argument.
11695         (target_can_run): Add argument.
11696         * target.c (debug_to_can_run): Add argument.
11697         (update_current_target): Update.
11698         * nto-procfs.c (procfs_can_run): Add 'self' argument.
11699         * inf-child.c (inf_child_can_run): Add 'self' argument.
11700         * go32-nat.c (go32_can_run): Add 'self' argument.
11701
11702 2014-02-19  Tom Tromey  <tromey@redhat.com>
11703
11704         * target.h (struct target_ops) <to_has_exited>: Add argument.
11705         (target_has_exited): Add argument.
11706         * target.c (debug_to_has_exited): Add argument.
11707         (update_current_target): Update.
11708
11709 2014-02-19  Tom Tromey  <tromey@redhat.com>
11710
11711         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11712         argument.
11713         (target_set_syscall_catchpoint): Add argument.
11714         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11715         argument.
11716         * target.c (update_current_target): Update.
11717
11718 2014-02-19  Tom Tromey  <tromey@redhat.com>
11719
11720         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11721         argument.
11722         (target_remove_exec_catchpoint): Add argument.
11723         * target.c (debug_to_remove_exec_catchpoint): Add argument.
11724         (update_current_target): Update.
11725         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11726         argument.
11727
11728 2014-02-19  Tom Tromey  <tromey@redhat.com>
11729
11730         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11731         argument.
11732         (target_insert_exec_catchpoint): Add argument.
11733         * target.c (debug_to_insert_exec_catchpoint): Add argument.
11734         (update_current_target): Update.
11735         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11736         argument.
11737
11738 2014-02-19  Tom Tromey  <tromey@redhat.com>
11739
11740         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11741         argument.
11742         (target_remove_vfork_catchpoint): Add argument.
11743         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11744         (update_current_target): Update.
11745         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11746         argument.
11747
11748 2014-02-19  Tom Tromey  <tromey@redhat.com>
11749
11750         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11751         argument.
11752         (target_insert_vfork_catchpoint): Add argument.
11753         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11754         (update_current_target): Update.
11755         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11756         argument.
11757
11758 2014-02-19  Tom Tromey  <tromey@redhat.com>
11759
11760         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11761         argument.
11762         (target_remove_fork_catchpoint): Add argument.
11763         * target.c (debug_to_remove_fork_catchpoint): Add argument.
11764         (update_current_target): Update.
11765         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11766         argument.
11767
11768 2014-02-19  Tom Tromey  <tromey@redhat.com>
11769
11770         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11771         argument.
11772         (target_insert_fork_catchpoint): Add argument.
11773         * target.c (debug_to_insert_fork_catchpoint): Add argument.
11774         (update_current_target): Update.
11775         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11776         argument.
11777
11778 2014-02-19  Tom Tromey  <tromey@redhat.com>
11779
11780         * target.h (struct target_ops) <to_post_startup_inferior>: Add
11781         argument.
11782         (target_post_startup_inferior): Add argument.
11783         * target.c (debug_to_post_startup_inferior): Add argument.
11784         (update_current_target): Update.
11785         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11786         argument.
11787         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11788         argument.
11789         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11790         argument.
11791         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11792         argument.
11793         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11794         'self' argument.
11795         (super_post_startup_inferior): Likewise.
11796         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11797         'self' argument.
11798         (super_post_startup_inferior): Likewise.
11799         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11800         Add 'self' argument.
11801         (super_post_startup_inferior): Likewise.
11802
11803 2014-02-19  Tom Tromey  <tromey@redhat.com>
11804
11805         * target.h (struct target_ops) <to_load>: Add argument.
11806         * target.c (target_load): Add argument.
11807         (debug_to_load): Add argument.
11808         (update_current_target): Update.
11809         * remote.c (remote_load): Add 'self' argument.
11810         * remote-sim.c (gdbsim_load): Add 'self' argument.
11811         * remote-mips.c (mips_load): Add 'self' argument.
11812         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11813         * monitor.c (monitor_load): Add 'self' argument.
11814         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11815
11816 2014-02-19  Tom Tromey  <tromey@redhat.com>
11817
11818         * target.h (struct target_ops) <to_terminal_info>: Add argument.
11819         (target_terminal_info): Add argument.
11820         * target.c (debug_to_terminal_info): Add argument.
11821         (default_terminal_info): Likewise.
11822         * inflow.c (child_terminal_info): Add 'self' argument.
11823         * inferior.h (child_terminal_info): Add 'self' argument.
11824         * go32-nat.c (go32_terminal_info): Add 'self' argument.
11825
11826 2014-02-19  Tom Tromey  <tromey@redhat.com>
11827
11828         * target.h (struct target_ops) <to_terminal_save_ours>: Add
11829         argument.
11830         (target_terminal_save_ours): Add argument.
11831         * target.c (debug_to_terminal_save_ours): Add argument.
11832         (update_current_target): Update.
11833         * inflow.c (terminal_save_ours): Add 'self' argument.
11834         * inferior.h (terminal_save_ours): Add 'self' argument.
11835
11836 2014-02-19  Tom Tromey  <tromey@redhat.com>
11837
11838         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11839         (target_terminal_ours): Add argument.
11840         * target.c (debug_to_terminal_ours): Add argument.
11841         (update_current_target): Update.
11842         * remote.c (remote_terminal_ours): Add 'self' argument.
11843         (remote_close): Update.
11844         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11845         * inflow.c (terminal_ours): Add 'self' argument.
11846         * inferior.h (terminal_ours): Add 'self' argument.
11847         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11848
11849 2014-02-19  Pedro Alves  <palves@redhat.com>
11850             Tom Tromey  <tromey@redhat.com>
11851
11852         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11853         argument.
11854         (target_terminal_ours_for_output): Add argument.
11855         * target.c (debug_to_terminal_ours_for_output): Add argument.
11856         (update_current_target): Update.
11857         * inflow.c (terminal_ours_for_output): Add 'self' argument.
11858         * inferior.h (terminal_ours_for_output): Add 'self' argument.
11859         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11860
11861 2014-02-19  Tom Tromey  <tromey@redhat.com>
11862
11863         * target.h (struct target_ops) <to_terminal_inferior>: Add
11864         argument.
11865         * target.c (target_terminal_inferior): Add argument.
11866         (update_current_target): Update.
11867         * remote.c (remote_terminal_inferior): Add 'self' argument.
11868         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11869         * inflow.c (terminal_inferior): Add 'self' argument.
11870         * inferior.h (terminal_inferior): Add 'self' argument.
11871         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11872         (go32_terminal_inferior): Add 'self' argument.
11873
11874 2014-02-19  Tom Tromey  <tromey@redhat.com>
11875
11876         * target.h (struct target_ops) <to_terminal_init>: Add argument.
11877         (target_terminal_init): Add argument.
11878         * target.c (debug_to_terminal_init): Add argument.
11879         (update_current_target): Update.
11880         * inflow.c (terminal_init_inferior): Add 'self' argument.
11881         * inferior.h (terminal_init_inferior): Add 'self' argument.
11882         * go32-nat.c (go32_terminal_init): Add 'self' argument.
11883         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11884
11885 2014-02-19  Tom Tromey  <tromey@redhat.com>
11886
11887         * target.h (struct target_ops)
11888         <to_can_accel_watchpoint_condition>: Add argument.
11889         (target_can_accel_watchpoint_condition): Add argument.
11890         * target.c (debug_to_can_accel_watchpoint_condition): Add
11891         argument.
11892         (update_current_target): Update.
11893         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11894         'self' argument.
11895
11896 2014-02-19  Tom Tromey  <tromey@redhat.com>
11897
11898         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11899         Add argument.
11900         (target_region_ok_for_hw_watchpoint): Add argument.
11901         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11902         (default_region_ok_for_hw_watchpoint): Add argument.
11903         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11904         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11905         argument.
11906         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11907         argument.
11908         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11909         argument.
11910         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11911         'self' argument.
11912         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11913         'self' argument.
11914         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11915         'self' argument.
11916         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11917         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11918         'self' argument.
11919         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11920         Add 'self' argument.
11921
11922 2014-02-19  Tom Tromey  <tromey@redhat.com>
11923
11924         * target.h (struct target_ops) <to_insert_watchpoint>: Add
11925         argument.
11926         (target_insert_watchpoint): Add argument.
11927         * target.c (debug_to_insert_watchpoint): Add argument.
11928         (update_current_target): Update.
11929         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11930         * remote.c (remote_insert_watchpoint): Add 'self' argument.
11931         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11932         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11933         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11934         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11935         argument.
11936         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11937         (procfs_insert_hw_watchpoint): Add 'self' argument.
11938         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11939         argument.
11940         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11941         argument.
11942         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11943         argument.
11944         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11945         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11946         argument.
11947         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11948         'self' argument.
11949
11950 2014-02-19  Tom Tromey  <tromey@redhat.com>
11951
11952         * target.h (struct target_ops) <to_remove_watchpoint>: Add
11953         argument.
11954         (target_remove_watchpoint): Add argument.
11955         * target.c (debug_to_remove_watchpoint): Add argument.
11956         (update_current_target): Update.
11957         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11958         * remote.c (remote_remove_watchpoint): Add 'self' argument.
11959         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11960         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11961         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11962         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11963         argument.
11964         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11965         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11966         argument.
11967         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11968         argument.
11969         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11970         argument.
11971         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11972         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11973         argument.
11974         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11975         'self' argument.
11976
11977 2014-02-19  Tom Tromey  <tromey@redhat.com>
11978
11979         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11980         argument.
11981         (target_remove_hw_breakpoint): Add argument.
11982         * target.c (debug_to_remove_hw_breakpoint): Add argument.
11983         (update_current_target): Update.
11984         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11985         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11986         argument.
11987         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11988         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11989         argument.
11990         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11991         'self' argument.
11992
11993 2014-02-19  Tom Tromey  <tromey@redhat.com>
11994
11995         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11996         argument.
11997         (target_insert_hw_breakpoint): Add argument.
11998         * target.c (debug_to_insert_hw_breakpoint): Add argument.
11999         (update_current_target): Update.
12000         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12001         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12002         argument.
12003         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12004         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12005         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12006         argument.
12007         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12008         'self' argument.
12009
12010 2014-02-19  Tom Tromey  <tromey@redhat.com>
12011
12012         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12013         argument.
12014         (target_can_use_hardware_watchpoint): Add argument.
12015         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12016         (update_current_target): Update.
12017         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12018         argument.
12019         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12020         argument.
12021         * remote.c (remote_check_watch_resources): Add 'self' argument.
12022         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12023         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12024         argument.
12025         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12026         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12027         argument.
12028         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12029         argument.
12030         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12031         argument.
12032         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12033         argument.
12034         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12035         argument.
12036         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12037         argument.
12038         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12039         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12040         argument.
12041         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12042         'self' argument.
12043
12044 2014-02-19  Tom Tromey  <tromey@redhat.com>
12045
12046         * target.h (struct target_ops) <to_post_attach>: Add argument.
12047         (target_post_attach): Add argument.
12048         * target.c (debug_to_post_attach): Add argument.
12049         (update_current_target): Update.
12050         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12051         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12052         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12053         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12054         * inf-child.c (inf_child_post_attach): Add 'self' argument.
12055
12056 2014-02-19  Tom Tromey  <tromey@redhat.com>
12057
12058         * windows-nat.c (windows_close): Add 'self' argument.
12059         * tracepoint.c (tfile_close): Add 'self' argument.
12060         * target.h (struct target_ops) <to_close>: Add argument.
12061         * target.c (target_close): Add argument.
12062         (update_current_target): Update.
12063         * remote.c (remote_close): Add 'self' argument.
12064         * remote-sim.c (gdbsim_close): Add 'self' argument.
12065         * remote-mips.c (mips_close): Add 'self' argument.
12066         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12067         * record-full.c (record_full_close): Add 'self' argument.
12068         * record-btrace.c (record_btrace_close): Add 'self' argument.
12069         * monitor.h (monitor_close): Add 'self' argument.
12070         * monitor.c (monitor_close): Add 'self' argument.
12071         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12072         * linux-nat.c (linux_nat_close): Add argument.
12073         * go32-nat.c (go32_close): Add 'self' argument.
12074         * exec.c (exec_close_1): Add 'self' argument.
12075         * ctf.c (ctf_close): Add 'self' argument.
12076         * corelow.c (core_close): Add 'self' argument.
12077         (core_close_cleanup): Update.
12078         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12079         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12080
12081 2014-02-19  Tom Tromey  <tromey@redhat.com>
12082
12083         * remote.c (remote_load): New function.
12084         (init_remote_ops): Use it.
12085
12086 2014-02-19  Tom Tromey  <tromey@redhat.com>
12087
12088         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12089         argument.
12090         * common/linux-btrace.h (linux_supports_btrace): Update.
12091         * remote.c (remote_supports_btrace): Add "self" argument.
12092         * target-delegates.c: Rebuild.
12093         * target.c (target_supports_btrace): Remove.
12094         * target.h (struct target_ops) <to_supports_btrace>: Add
12095         target_ops argument.
12096         (target_supports_btrace): New define.
12097
12098 2014-02-19  Tom Tromey  <tromey@redhat.com>
12099
12100         * record-full.c (record_full_beneath_to_resume_ops)
12101         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12102         (record_full_beneath_to_wait)
12103         (record_full_beneath_to_store_registers_ops)
12104         (record_full_beneath_to_store_registers)
12105         (record_full_beneath_to_xfer_partial_ops)
12106         (record_full_beneath_to_xfer_partial)
12107         (record_full_beneath_to_insert_breakpoint_ops)
12108         (record_full_beneath_to_insert_breakpoint)
12109         (record_full_beneath_to_remove_breakpoint_ops)
12110         (record_full_beneath_to_remove_breakpoint)
12111         (record_full_beneath_to_stopped_by_watchpoint)
12112         (record_full_beneath_to_stopped_data_address)
12113         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12114         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12115         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12116         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12117         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12118         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12119         (tmp_to_stopped_data_address, tmp_to_async): Remove.
12120         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
12121         (record_full_resume, record_full_wait_1)
12122         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12123         (record_full_store_registers, record_full_xfer_partial)
12124         (record_full_insert_breakpoint, record_full_remove_breakpoint)
12125         (record_full_async, record_full_core_xfer_partial): Use target
12126         delegation.
12127         * target-delegates.c: Rebuild.
12128         * target.c (current_xfer_partial): Remove.
12129         (update_current_target): Do not INHERIT or de_fault
12130         to_insert_breakpoint, to_remove_breakpoint,
12131         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12132         to_is_async_p, to_async.  Do not set to_xfer_partial field.
12133         (default_xfer_partial): Simplify.
12134         (current_xfer_partial): Remove.
12135         (target_wait, target_resume): Simplify.
12136         (find_default_can_async_p, find_default_is_async_p): Update.
12137         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12138         to_xfer_partial, to_stopped_by_watchpoint,
12139         to_stopped_data_address.
12140         (target_store_registers): Simplify.
12141         (forward_target_remove_breakpoint)
12142         (forward_target_insert_breakpoint): Remove.
12143         (target_remove_breakpoint, target_insert_breakpoint)
12144         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12145         * target.h (struct target_ops) <to_resume, to_wait,
12146         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12147         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12148         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12149         markup.
12150         (forward_target_remove_breakpoint)
12151         (forward_target_insert_breakpoint): Remove.
12152         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12153         directly.
12154         (record_btrace_insert_breakpoint): Delegate directly.
12155
12156 2014-02-19  Tom Tromey  <tromey@redhat.com>
12157
12158         PR build/7701:
12159         * target-delegates.c: New file.
12160         * target.c: Include target-delegates.c.
12161         (init_dummy_target): Call install_dummy_methods.
12162         (complete_target_initialization): Call install_delegators.
12163         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12164         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12165         * make-target-delegates: New file.
12166
12167 2014-02-19  Tom Tromey  <tromey@redhat.com>
12168
12169         * record.c (find_record_target): Use find_target_at.
12170         * target.c (find_target_at): New function.
12171         * target.h (find_target_at): Declare.
12172
12173 2014-02-19  Tom Tromey  <tromey@redhat.com>
12174
12175         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12176         Add 'ops' argument.
12177         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12178         'ops' argument.
12179         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12180         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12181         'ops' argument.
12182         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12183         argument.
12184         * linux-nat.c (save_sigtrap): Update.
12185         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12186         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12187         (linux_nat_close): Update.
12188         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12189         argument.
12190         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12191         argument.
12192         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12193         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12194         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12195         (tmp_to_async): Add 'ops' argument.
12196         (record_full_stopped_by_watchpoint, record_full_async)
12197         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12198         argument.
12199         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12200         (m32r_stopped_by_watchpoint): Add 'ops' argument.
12201         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12202         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12203         (remote_is_async_p, remote_async): Add 'ops' argument.
12204         (remote_stopped_data_address): Update.
12205         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12206         * target.c (update_current_target)
12207         (find_default_can_async_p, find_default_is_async_p): Update.
12208         (init_dummy_target): Update.
12209         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12210         * target.h (struct target_ops) <to_stopped_by_watchpoint,
12211         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12212         (target_can_async_p, target_is_async_p, target_async)
12213         (target_stopped_by_watchpoint): Update.
12214
12215 2014-02-19  Yao Qi  <yao@codesourcery.com>
12216
12217         PR gdb/16220
12218         * gdbarch.sh: Remove startup_gdbarch.
12219         * gdbarch.c: Regenerated.
12220         * gdbarch.h: Likewise.
12221
12222 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
12223
12224         * rl78-tdep.c (rl78_g10_register_name): New function.
12225         (rl78_return_value): Add g10 support.
12226         (rl78_gdbarch_init): Register rl78_g10_register_name for the
12227         g10.
12228
12229 2014-02-17  Doug Evans  <xdje42@gmail.com>
12230
12231         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12232         (SUBDIR_GUILE_SRCS): Ditto.
12233         (scm-gsmob.o): Ditto.
12234
12235 2014-02-17  Yao Qi  <yao@codesourcery.com>
12236
12237         * gnu-nat.c (ILL_RPC): Declare defined function.
12238
12239 2014-02-17  Yao Qi  <yao@codesourcery.com>
12240
12241         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12242         mach_msg_type_number_t.
12243         (gnu_write_inferior): Likewise.
12244
12245 2014-02-17  Yao Qi  <yao@codesourcery.com>
12246
12247         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12248         in format string.
12249         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12250         (inf_validate_procs, inf_signal): Likewise.
12251         (S_exception_raise_request): Likewise.
12252         (do_mach_notify_dead_name): Likewise.
12253         (steal_exc_port): Likewise.
12254         (gnu_read_inferior): Change 'copy_count''s type to
12255         mach_msg_type_number_t.
12256         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
12257         format string.
12258
12259 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
12260
12261         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12262         flag.  Adjust all users; in particular...
12263         (gnu_wait): ..., don't decrement its value in here...
12264         (gnu_create_inferior): ..., and instead set the flag in here,
12265         around the startup_inferior call, and call that one with
12266         START_INFERIOR_TRAPS_EXPECTED.
12267
12268         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12269         (ILL_RPC): ... new macro.
12270         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12271         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12272         (do_mach_notify_send_once, S_proc_setmsgport_reply)
12273         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12274         functions with ILL_RPC macro.
12275         (S_proc_pid2task_reply, S_proc_task2pid_reply)
12276         (S_proc_task2proc_reply, S_proc_proc2task_reply)
12277         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12278         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12279         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12280         (S_proc_getlogin_reply, S_proc_getsid_reply)
12281         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12282         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12283         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12284         (S_proc_getnports_reply, S_proc_is_important_reply)
12285         (S_proc_get_code_reply): New stub functions, generated with
12286         ILL_RPC macro.
12287
12288         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12289         collected the type check structures.
12290
12291         * reply_mig_hack.awk: Don't expect to see the auto keyword.
12292
12293 2014-02-14  Doug Evans  <dje@google.com>
12294
12295         * target.c (target_write_partial): Fix result type.
12296
12297 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
12298
12299         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12300         the proper offsets to access fpregset_t.
12301
12302 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
12303
12304         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12305         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12306         * h8300-tdep.c (setmachinelist): Remove global.
12307         * hppa-tdep.c (hppa_sigtramp): Remove global.
12308         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12309         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12310         * ravenscar-thread.c (update_target_observer): Remove global.
12311         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12312
12313 2014-02-12  Tom Tromey  <tromey@redhat.com>
12314
12315         * common/rsp-low.c: Update comments.
12316         * common/rsp-low.h: Update comments.
12317
12318 2014-02-12  Tom Tromey  <tromey@redhat.com>
12319
12320         * common/rsp-low.c (convert_ascii_to_int): Remove.
12321         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12322
12323 2014-02-12  Tom Tromey  <tromey@redhat.com>
12324
12325         * common/rsp-low.h (unhexify): Don't declare.
12326         * common/rsp-low.c (unhexify): Remove.
12327
12328 2014-02-12  Tom Tromey  <tromey@redhat.com>
12329
12330         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12331         * common/rsp-low.c (convert_int_to_ascii): Remove.
12332
12333 2014-02-12  Tom Tromey  <tromey@redhat.com>
12334
12335         * common/rsp-low.h (hexify): Don't declare.
12336         * common/rsp-low.c (hexify): Remove.
12337
12338 2014-02-12  Tom Tromey  <tromey@redhat.com>
12339
12340         * common/rsp-low.c (hexify): Never take strlen of argument.
12341
12342 2014-02-12  Tom Tromey  <tromey@redhat.com>
12343
12344         * common/rsp-low.c (bin2hex): Never take strlen of argument.
12345         * remote.c (extended_remote_run, remote_rcmd)
12346         (remote_download_trace_state_variable, remote_save_trace_data)
12347         (remote_set_trace_notes): Update.
12348         * tracepoint.c (encode_source_string, tfile_write_status)
12349         (tfile_write_uploaded_tsv): Update.
12350
12351 2014-02-12  Tom Tromey  <tromey@redhat.com>
12352
12353         * tracepoint.c: Include rsp-low.h.
12354         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12355         * remote.c: Include rsp-low.h.
12356         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12357         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12358         (remote_unescape_input): Move to common/rsp-low.c.
12359         * common/rsp-low.h: New file.
12360         * common/rsp-low.c: New file.
12361         * Makefile.in (SFILES): Add common/rsp-low.c.
12362         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12363         (COMMON_OBS): Add rsp-low.o.
12364         (rsp-low.o): New target.
12365
12366 2014-02-12  Tom Tromey  <tromey@redhat.com>
12367
12368         * utils.h: Include print-utils.h.
12369         (host_address_to_string, plongest, pulongest, phex, phex_nz)
12370         (int_string, core_addr_to_string, core_addr_to_string_nz)
12371         (hex_string, hex_string_custom): Don't declare.
12372         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12373         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12374         (hex_string_custom, int_string, core_addr_to_string)
12375         (core_addr_to_string_nz, host_address_to_string): Move to
12376         common/print-utils.c.
12377         * common/print-utils.h: New file.
12378         * common/print-utils.c: New file
12379         * Makefile.in (SFILES): Add common/print-utils.c.
12380         (HFILES_NO_SRCDIR): Add common/print-utils.h.
12381         (COMMON_OBS): Add print-utils.o.
12382         (print-utils.o): New target.
12383
12384 2014-02-12  Tom Tromey  <tromey@redhat.com>
12385
12386         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12387
12388 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12389
12390         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12391
12392 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12393
12394         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12395         if a PT_IO ptrace request returns sucessfully but indicates that 0
12396         bytes were transferred.
12397
12398 2014-02-12  Pedro Alves  <palves@redhat.com>
12399             Kevin Buettner <kevinb@redhat.com>
12400
12401         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12402         TYPE_INSTANCE_FLAG_CODE_SPACE.
12403
12404 2014-02-12  Pedro Alves  <palves@redhat.com>
12405
12406         * h8300-tdep.c (pseudo_from_raw_register)
12407         (raw_from_pseudo_register): New functions.
12408         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12409         them.
12410
12411 2014-02-12  Pedro Alves  <palves@redhat.com>
12412
12413         * h8300-tdep.c (h8300_register_sim_regno): New function.
12414         (h8300_gdbarch_init): Install h8300_register_sim_regno as
12415         gdbarch_register_sim_regno hook.
12416
12417 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12418
12419         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12420
12421 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12422
12423         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12424
12425 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12426
12427         * obsd-tdep.h (obsd_init_abi): New prototype.
12428         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12429         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12430         (obsd_init_abi): New functions.
12431         * i386obsd-tdep.c: Include "obsd-tdep.h".
12432         (i386obsd_init_abi): Call obsd_init_abi.
12433         * amd64obsd-tdep.c: Include "obsd-tdep.h".
12434         (amd64obsd_init_abi): Call obsd_init_abi.
12435         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12436         obsd-tdep.c to gdb_target_obs.
12437
12438 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
12439
12440         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12441         double float arguments to 16-byte in the argument slots.
12442
12443 2014-02-11  Doug Evans  <xdje42@gmail.com>
12444
12445         * configure.ac: Don't crash if pkg-config is not found and guile
12446         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
12447         in guile checks.
12448         * configure: Regenerate.
12449
12450 2014-02-11  Yao Qi  <yao@codesourcery.com>
12451
12452         * aix-thread.c (aix_thread_xfer_partial): Update comments.
12453         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12454         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12455         * gnu-nat.c (gnu_xfer_memory): Likewise.
12456         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
12457         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12458         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12459         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12460
12461 2014-02-11  Yao Qi  <yao@codesourcery.com>
12462
12463         * target.h (enum target_xfer_error): Rename to ...
12464         (enum target_xfer_status): ... it.  New.  All users updated.
12465         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12466         New.
12467         (TARGET_XFER_STATUS_ERROR_P): New macro.
12468         (target_xfer_error_to_string): Remove declaration.
12469         (target_xfer_status_to_string): Declare.
12470         (target_xfer_partial_ftype): Adjust it.
12471         (struct target_ops) <to_xfer_partial>: Return
12472         target_xfer_status.  Add argument xfered_len.  Update
12473         comments.
12474         * target.c (target_xfer_error_to_string): Rename to ...
12475         (target_xfer_status_to_string): ... it.  New.  All callers
12476         updated.
12477         (target_read_live_memory): Likewise.  Call target_xfer_partial
12478         instead of target_read.
12479         (memory_xfer_live_readonly_partial): Return
12480         target_xfer_status.  Add argument xfered_len.
12481         (raw_memory_xfer_partial): Likewise.
12482         (memory_xfer_partial_1): Likewise.
12483         (memory_xfer_partial): Likewise.
12484         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
12485         properly.  Update debug message.
12486         (default_xfer_partial, current_xfer_partial): Likewise.
12487         (target_write_partial): Likewise.
12488         (target_read_partial): Likewise.  All callers updated.
12489         (read_whatever_is_readable): Likewise.
12490         (target_write_with_progress): Likewise.
12491         (target_read_alloc_1): Likewise.
12492
12493         * aix-thread.c (aix_thread_xfer_partial): Likewise.
12494         * auxv.c (procfs_xfer_auxv): Likewise.
12495         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12496         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12497         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12498         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12499         * corefile.c (read_memory): Adjust.
12500         * corelow.c (core_xfer_partial): Likewise.
12501         * ctf.c (ctf_xfer_partial): Likewise.
12502         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
12503         updated.
12504         (darwin_xfer_partial): Likewise.
12505         * exec.c (section_table_xfer_memory_partial): Likewise.  All
12506         callers updated.
12507         (exec_xfer_partial): Likewise.
12508         * exec.h (section_table_xfer_memory_partial): Update
12509         declaration.
12510         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
12511         negative.
12512         (gnu_xfer_partial): Likewise.
12513         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12514         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12515         (ia64_hpux_xfer_solib_got): Likewise.
12516         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
12517         type of 'partial_len' to ULONGEST.
12518         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12519         * linux-nat.c (linux_xfer_siginfo ): Likewise.
12520         (linux_nat_xfer_partial): Likewise.
12521         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12522         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12523         * monitor.c (monitor_xfer_memory): Likewise.
12524         (monitor_xfer_partial): Likewise.
12525         * procfs.c (procfs_xfer_partial): Likewise.
12526         * record-btrace.c (record_btrace_xfer_partial): Likewise.
12527         * record-full.c (record_full_xfer_partial): Likewise.
12528         (record_full_core_xfer_partial): Likewise.
12529         * remote-sim.c (gdbsim_xfer_memory): Likewise.
12530         (gdbsim_xfer_partial): Likewise.
12531         * remote.c (remote_write_bytes_aux): Likewise.  All callers
12532         updated.
12533         (remote_write_bytes, remote_read_bytes): Likewise.  All
12534         callers updated.
12535         (remote_flash_erase): Likewise.  All callers updated.
12536         (remote_write_qxfer): Likewise.  All callers updated.
12537         (remote_read_qxfer): Likewise.  All callers updated.
12538         (remote_xfer_partial): Likewise.
12539         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12540         (rs6000_xfer_shared_libraries): Likewise.
12541         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12542         (sol_thread_xfer_partial): Likewise.
12543         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12544         (sparc_xfer_partial): Likewise.
12545         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
12546         updated.
12547         (spu_xfer_partial): Likewise.
12548         * spu-multiarch.c (spu_xfer_partial): Likewise.
12549         * tracepoint.c (tfile_xfer_partial): Likewise.
12550         * windows-nat.c (windows_xfer_memory): Likewise.
12551         (windows_xfer_shared_libraries): Likewise.
12552         (windows_xfer_partial): Likewise.
12553         * valprint.c: Replace 'target_xfer_error' with
12554         'target_xfer_status' in comments.
12555
12556 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
12557
12558         Checked in by Joel Brobecker <brobecker@adacore.com>.
12559         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12560
12561 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
12562
12563         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12564         function parameters.
12565
12566 2014-02-10  Will Newton  <will.newton@linaro.org>
12567
12568         * elfread.c (elf_rel_plt_read): Look for a .got section if
12569         looking up .got.plt fails.
12570         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12571         on address passed to elf_gnu_ifunc_record_cache.
12572         (elf_gnu_ifunc_resolve_addr): Likewise.
12573         (elf_gnu_ifunc_resolver_return_stop): Likewise.
12574
12575 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
12576
12577         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12578         (X_RETTURN): New macro.
12579         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12580
12581         * sparc64-tdep.c (sparc64_init_abi): Hook
12582         sparc_in_function_epilogue_p.
12583
12584 2014-02-10  Gary Benson  <gbenson@redhat.com>
12585
12586         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12587         Rename name_matcher to symbol_matcher.
12588
12589 2014-02-10  Gary Benson  <gbenson@redhat.com>
12590
12591         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12592         Use expand_symtabs_file_matcher_ftype and
12593         expand_symtabs_symbol_matcher_ftype.
12594
12595 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12596
12597         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12598         (struct ada_symbol_cache): New.
12599         (ada_free_symbol_cache): Forward declare.
12600         (struct ada_pspace_data): New.
12601         (ada_pspace_data_handle): New static global.
12602         (get_ada_pspace_data, ada_pspace_data_cleanup)
12603         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12604         (cache_space, cache): Delete, now folded inside struct
12605         ada_pspace_data.
12606         (ada_get_symbol_cache): New function.
12607         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12608         implementation.
12609         (_initialize_ada_language): Remove initialization of cache_space.
12610         Move call to observer_attach_inferior_exit up, grouping it
12611         with the other observer registrations inside this function.
12612         Rename command to be more general.  Add call to
12613         register_program_space_data_with_cleanup.
12614
12615 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12616
12617         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12618         ada_new_objfile_observer.
12619         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12620         (_initialize_tasks): Update uses of ada_new_objfile_observer
12621         and ada_tasks_normal_stop_observer.
12622
12623 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12624
12625         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12626         returned by the 'Length attribute to integer.
12627
12628 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12629
12630         * ada-lang.c (_initialize_ada_language): Initialize
12631         cache_space obstack.
12632
12633 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12634
12635         * ada-lang.c (HASH_SIZE): New macro.
12636         (struct cache_entry): New type.
12637         (cache_space, cache): New static globals.
12638         (ada_clear_symbol_cache, find_entry): New functions.
12639         (lookup_cached_symbol, cache_symbol): Implement.
12640         (ada_new_objfile_observer, ada_free_objfile_observer): New.
12641         (_initialize_ada_language): Attach ada_new_objfile_observer
12642         and ada_free_objfile_observer.
12643
12644 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12645
12646         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12647         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12648         struct block * parameter.
12649         (ada_lookup_symbol_list_worker): Constify local variable "block".
12650         Remove cast which is no longer necessary.
12651
12652 2014-02-10  Doug Evans  <xdje42@gmail.com>
12653
12654         Add Guile as an extension language.
12655         * NEWS: Mention Guile scripting.
12656         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12657         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12658         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12659         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12660         (CLIBS): Add GUILE_LIBS.
12661         (install-guile): New rule.
12662         (guile.o): New rule.
12663         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12664         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12665         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12666         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12667         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12668         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12669         (scm-type.o, scm-utils.o, scm-value.o): New rules.
12670         * configure.ac: New option --with-guile.
12671         * configure: Regenerate.
12672         * config.in: Regenerate.
12673         * auto-load.c: Remove #include "python/python.h".  Add #include
12674         "gdb/section-scripts.h".
12675         (source_section_scripts): Handle Guile scripts.
12676         (_initialize_auto_load): Add name of Guile objfile script to
12677         scripts-directory help text.
12678         * breakpoint.c (condition_command): Tweak comment to include Scheme.
12679         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12680         (struct breakpoint): New member scm_bp_object.
12681         * defs.h (enum command_control_type): New value guile_control.
12682         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
12683         "extension.h".
12684         (show_user): Update comment.
12685         (_initialize_cli_cmds): Update help text for "show user".  Update help
12686         text for max-user-call-depth.
12687         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
12688         "extension.h".
12689         (multi_line_command_p): Add guile_control.
12690         (print_command_lines): Handle guile_control.
12691         (execute_control_command, recurse_read_control_structure): Ditto.
12692         (process_next_line): Recognize "guile" commands.
12693         * disasm.c (gdb_disassemble_info): Make non-static.
12694         * disasm.h: #include "dis-asm.h".
12695         (struct gdbarch): Add forward decl.
12696         (gdb_disassemble_info): Declare.
12697         * extension.c: #include "guile/guile.h".
12698         (extension_languages): Add guile.
12699         (get_ext_lang_defn): Handle EXT_LANG_GDB.
12700         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12701         * gdbtypes.c (get_unsigned_type_max): New function.
12702         (get_signed_type_minmax): New function.
12703         * gdbtypes.h (get_unsigned_type_max): Declare.
12704         (get_signed_type_minmax): Declare.
12705         * guile/README: New file.
12706         * guile/guile-internal.h: New file.
12707         * guile/guile.c: New file.
12708         * guile/guile.h: New file.
12709         * guile/scm-arch.c: New file.
12710         * guile/scm-auto-load.c: New file.
12711         * guile/scm-block.c: New file.
12712         * guile/scm-breakpoint.c: New file.
12713         * guile/scm-disasm.c: New file.
12714         * guile/scm-exception.c: New file.
12715         * guile/scm-frame.c: New file.
12716         * guile/scm-gsmob.c: New file.
12717         * guile/scm-iterator.c: New file.
12718         * guile/scm-lazy-string.c: New file.
12719         * guile/scm-math.c: New file.
12720         * guile/scm-objfile.c: New file.
12721         * guile/scm-ports.c: New file.
12722         * guile/scm-pretty-print.c: New file.
12723         * guile/scm-safe-call.c: New file.
12724         * guile/scm-string.c: New file.
12725         * guile/scm-symbol.c: New file.
12726         * guile/scm-symtab.c: New file.
12727         * guile/scm-type.c: New file.
12728         * guile/scm-utils.c: New file.
12729         * guile/scm-value.c: New file.
12730         * guile/lib/gdb.scm: New file.
12731         * guile/lib/gdb/boot.scm: New file.
12732         * guile/lib/gdb/experimental.scm: New file.
12733         * guile/lib/gdb/init.scm: New file.
12734         * guile/lib/gdb/iterator.scm: New file.
12735         * guile/lib/gdb/printing.scm: New file.
12736         * guile/lib/gdb/types.scm: New file.
12737         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12738         (VPATH): Add $(GUILE_SRCDIR).
12739         (GUILE_DIR): New variable.
12740         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12741         (all): Add stamp-guile dependency.
12742         (stamp-guile): New rule.
12743         (clean-guile, install-guile, uninstall-guile): New rules.
12744         (install-only): Add install-guile dependency.
12745         (uninstall): Add uninstall-guile dependency.
12746         (clean): Add clean-guile dependency.
12747
12748 2014-02-09  Doug Evans  <xdje42@gmail.com>
12749
12750         Revert this patch (which I approved, mea culpa).
12751
12752         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12753
12754         * Makefile.in (all-lib): Remove.
12755         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12756
12757 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
12758
12759         Fix Python stack corruption.
12760         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12761         gdb_py_longest.
12762
12763 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12764
12765         * Makefile.in (all-lib): Remove.
12766         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12767
12768 2014-02-07  Doug Evans  <dje@google.com>
12769
12770         * extension-priv.h (extension_language_script_ops): Add comment.
12771         (extension_language_ops): Add comment.
12772         (active_ext_lang_state): Fix typo in comment.
12773
12774 2014-02-07  Pedro Alves  <palves@redhat.com>
12775
12776         PR breakpoints/16292
12777         * infrun.c (handle_signal_stop) <signal arrives while stepping
12778         over a breakpoint>: Switch back to the stepping thread.
12779
12780 2014-02-07  Yao Qi  <yao@codesourcery.com>
12781
12782         * target.c (target_xfer_partial): Return zero if LEN is zero.
12783
12784 2014-02-07  Yao Qi  <yao@codesourcery.com>
12785
12786         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12787         (ld_so_xfer_auxv): Likewise.
12788         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12789         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12790         * corelow.c (core_xfer_partial): Likewise.
12791         * ctf.c (ctf_xfer_partial): Likewise.
12792         * darwin-nat.c (darwin_read_dyld_info): Likewise.
12793         (darwin_xfer_partial): Likewise.
12794         * exec.c (exec_xfer_partial): Likewise.
12795         * gnu-nat.c (gnu_xfer_partial): Likewise.
12796         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12797         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12798         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12799         * linux-nat.c (linux_xfer_siginfo): Likewise.
12800         (linux_proc_xfer_spu): Likewise.
12801         * procfs.c (procfs_xfer_partial): Likewise.
12802         * record-full.c (record_full_xfer_partial): Likewise.
12803         (record_full_core_xfer_partial): Likewise.
12804         * remote-sim.c (gdbsim_xfer_partial): Likewise.
12805         * remote.c (remote_write_qxfer): Likewise.
12806         (remote_write_qxfer, remote_read_qxfer): Likewise.
12807         (remote_xfer_partial): Likewise.
12808         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12809         (rs6000_xfer_shared_libraries): Likewise.
12810         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12811         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12812         (spu_xfer_partial): Likewise.
12813         * target.c (memory_xfer_partial_1): Likewise.
12814         * tracepoint.c (tfile_xfer_partial): Likewise.
12815         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12816         (windows_xfer_partial): Likewise.
12817
12818 2014-02-07  Yao Qi  <yao@codesourcery.com>
12819
12820         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
12821         comments.
12822         (core_xfer_shared_libraries_aix): Likewise.
12823         * gdbarch.c, gdbarch.h: Regenerated.
12824         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12825         ULONGEST.  Change 'len_avail' type to ULONGEST.
12826         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12827         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12828         declaration.
12829         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12830
12831 2014-02-07  Yao Qi  <yao@codesourcery.com>
12832
12833         * corefile.c (memory_error): Get 'exception' from ERR and pass
12834         'exception' to throw_error.
12835
12836 2014-02-06  Doug Evans  <xdje42@gmail.com>
12837
12838         * configure.ac (libpython checking): Remove all but python.o from
12839         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
12840         * configure: Regenerate.
12841
12842         * Makefile.in (SFILES): Add extension.c.
12843         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12844         (COMMON_OBS): Add extension.o.
12845         * extension.h: New file.
12846         * extension-priv.h: New file.
12847         * extension.c: New file.
12848
12849         * python/python-internal.h: #include "extension.h".
12850         (gdbpy_auto_load_enabled): Declare.
12851         (gdbpy_apply_val_pretty_printer): Declare.
12852         (gdbpy_apply_frame_filter): Declare.
12853         (gdbpy_preserve_values): Declare.
12854         (gdbpy_breakpoint_cond_says_stop): Declare.
12855         (gdbpy_breakpoint_has_cond): Declare.
12856         (void source_python_script_for_objfile): Delete.
12857         * python/python.c: #include "extension-priv.h".
12858         Delete inclusion of "observer.h".
12859         (extension_language_python): Moved here and renamed from
12860         script_language_python in py-auto-load.c.
12861         Redefined to be of type extension_language_defn.
12862         (python_extension_script_ops): New global.
12863         (python_extension_ops): New global.
12864         (struct python_env): New member previous_active.
12865         (restore_python_env): Call restore_active_ext_lang.
12866         (ensure_python_env): Call set_active_ext_lang.
12867         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12868         New arg extlang.
12869         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12870         New arg extlang.
12871         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12872         New arg extlang.
12873         (gdbpy_eval_from_control_command): Renamed from
12874         eval_python_from_control_command, made static.  New arg extlang.
12875         (gdbpy_source_script) Renamed from source_python_script, made static.
12876         New arg extlang.
12877         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
12878         result to int.  New arg extlang.
12879         (gdbpy_source_objfile_script): Renamed from
12880         source_python_script_for_objfile, made static.  New arg extlang.
12881         (gdbpy_start_type_printers): Renamed from start_type_printers, made
12882         static.  New args extlang, extlang_printers.  Change result type to
12883         "void".
12884         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12885         static.  New arg extlang.  Rename arg printers to extlang_printers
12886         and change type to ext_lang_type_printers *.
12887         (gdbpy_free_type_printers): Renamed from free_type_printers, made
12888         static.  Replace argument arg with extlang, extlang_printers.
12889         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12890         (!HAVE_PYTHON, source_python_script): Delete.
12891         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12892         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12893         (!HAVE_PYTHON, start_type_printers): Delete.
12894         (!HAVE_PYTHON, apply_type_printers): Delete.
12895         (!HAVE_PYTHON, free_type_printers): Delete.
12896         (_initialize_python): Delete call to observer_attach_before_prompt.
12897         (finalize_python): Set/restore active extension language.
12898         (gdbpy_finish_initialization) Renamed from
12899         finish_python_initialization, made static.  New arg extlang.
12900         (gdbpy_initialized): New function.
12901         * python/python.h: #include "extension.h".  Delete #include
12902         "value.h", "mi/mi-cmds.h".
12903         (extension_language_python): Declare.
12904         (GDBPY_AUTO_FILE_NAME): Delete.
12905         (enum py_bt_status): Moved to extension.h and renamed to
12906         ext_lang_bt_status.
12907         (enum frame_filter_flags): Moved to extension.h.
12908         (enum py_frame_args): Moved to extension.h and renamed to
12909         ext_lang_frame_args.
12910         (finish_python_initialization): Delete.
12911         (eval_python_from_control_command): Delete.
12912         (source_python_script): Delete.
12913         (apply_val_pretty_printer): Delete.
12914         (apply_frame_filter): Delete.
12915         (preserve_python_values): Delete.
12916         (gdbpy_script_language_defn): Delete.
12917         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12918         (start_type_printers, apply_type_printers, free_type_printers): Delete.
12919
12920         * auto-load.c: #include "extension.h".
12921         (GDB_AUTO_FILE_NAME): Delete.
12922         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
12923         (script_language_gdb): Delete, moved to extension.c and renamed to
12924         extension_language_gdb.
12925         (source_gdb_script_for_objfile): Delete.
12926         (auto_load_pspace_info): New member unsupported_script_warning_printed.
12927         (loaded_script): Change type of language member to
12928         struct extension_language_defn *.
12929         (init_loaded_scripts_info): Initialize
12930         unsupported_script_warning_printed.
12931         (maybe_add_script): Make static.  Change type of language arg to
12932         struct extension_language_defn *.
12933         (clear_section_scripts): Reset unsupported_script_warning_printed.
12934         (auto_load_objfile_script_1): Rewrite to use extension language API.
12935         (auto_load_objfile_script): Make public.  Remove support-compiled-in
12936         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12937         (source_section_scripts): Rewrite to use extension language API.
12938         (load_auto_scripts_for_objfile): Rewrite to use
12939         auto_load_scripts_for_objfile.
12940         (collect_matching_scripts_data): Change type of language member to
12941         struct extension_language_defn *.
12942         (auto_load_info_scripts): Change type of language arg to
12943         struct extension_language_defn *.
12944         (unsupported_script_warning_print): New function.
12945         (script_not_found_warning_print): Make static.
12946         (_initialize_auto_load): Rewrite construction of scripts-directory
12947         help.
12948         * auto-load.h (struct objfile): Add forward decl.
12949         (struct script_language): Delete.
12950         (struct auto_load_pspace_info): Add forward decl.
12951         (struct extension_language_defn): Add forward decl.
12952         (maybe_add_script): Delete.
12953         (auto_load_objfile_script): Declare.
12954         (script_not_found_warning_print): Delete.
12955         (auto_load_info_scripts): Update prototype.
12956         (auto_load_gdb_scripts_enabled): Declare.
12957         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12958         auto_load_python_scripts_enabled and made public.
12959         (script_language_python): Delete, moved to python.c.
12960         (gdbpy_script_language_defn): Delete.
12961         (info_auto_load_python_scripts): Update to use
12962         extension_language_python.
12963
12964         * breakpoint.c (condition_command): Replace call to
12965         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12966         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12967         with call to breakpoint_ext_lang_cond_says_stop.
12968         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12969         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
12970         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12971         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12972         New arg slang.
12973         (local_setattro): Print name of extension language with existing
12974         stop condition.
12975
12976         * valprint.c (val_print, value_print): Update to call
12977         apply_ext_lang_val_pretty_printer.
12978         * cp-valprint.c (cp_print_value): Update call to
12979         apply_ext_lang_val_pretty_printer.
12980         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12981         (gdbpy_apply_val_pretty_printer): Renamed from
12982         apply_val_pretty_printer.  New arg extlang.
12983         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12984
12985         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12986         extension language API.
12987         * cli/cli-script.c (execute_control_command): Update to call
12988         eval_ext_lang_from_control_command.
12989
12990         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12991         enum ext_lang_bt_status values.  Update call to
12992         apply_ext_lang_frame_filter.
12993         (mi_cmd_stack_list_locals): Ditto.
12994         (mi_cmd_stack_list_args): Ditto.
12995         (mi_cmd_stack_list_variables): Ditto.
12996         * mi/mi-main.c: Delete #include "python/python-internal.h".
12997         Add #include "extension.h".
12998         (mi_cmd_list_features): Replace reference to python internal variable
12999         gdb_python_initialized with call to ext_lang_initialized_p.
13000
13001         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13002         Update to use enum ext_lang_frame_args.  Update to call
13003         apply_ext_lang_frame_filter.
13004         * python/py-framefilter.c (extract_sym): Update to use enum
13005         ext_lang_bt_status.
13006         (extract_value, py_print_type, py_print_value): Ditto.
13007         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13008         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13009         (py_print_frame): Ditto.
13010         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13011         New arg extlang.  Update to use enum ext_lang_bt_status.
13012
13013         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13014         finish_python_initialization.  Replace with call to
13015         finish_ext_lang_initialization.
13016
13017         * typeprint.c (do_free_global_table): Update to call
13018         free_ext_lang_type_printers.
13019         (create_global_typedef_table): Update to call
13020         start_ext_lang_type_printers.
13021         (find_global_typedef): Update to call apply_ext_lang_type_printers.
13022         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13023         (type_print_options): Change type of global_printers from "void *"
13024         to "struct ext_lang_type_printers *".
13025
13026         * value.c (preserve_values): Update to call preserve_ext_lang_values.
13027         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13028         (gdbpy_preserve_values): Renamed from preserve_python_values.
13029         New arg extlang.
13030         (!HAVE_PYTHON, preserve_python_values): Delete.
13031
13032         * utils.c (quit_flag): Delete, moved to extension.c.
13033         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13034         extension.c.
13035
13036         * eval.c: Delete #include "python/python.h".
13037         * main.c: Delete #include "python/python.h".
13038
13039         * defs.h: Update comment.
13040
13041 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
13042
13043         GDB 7.7 released.
13044
13045 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
13046
13047         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13048         defined.
13049
13050 2014-02-05  Yao Qi  <yao@codesourcery.com>
13051
13052         * remote.c (remote_pass_signals): Remove local 'buf' and use
13053         rs->buf.
13054         (remote_program_signals): Likewise.
13055
13056 2014-02-05  Yao Qi  <yao@codesourcery.com>
13057
13058         * ctf.c: Include "inferior.h" and "gdbthread.h".
13059         (CTF_PID): A new macro.
13060         (ctf_open): Call inferior_appeared and add_thread_silent.
13061         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13062         (ctf_thread_alive): New function.
13063         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13064
13065 2014-02-05  Yao Qi  <yao@codesourcery.com>
13066
13067         Revert this patch:
13068
13069         2013-05-24  Yao Qi  <yao@codesourcery.com>
13070
13071         * tracepoint.c (TFILE_PID): Remove.
13072         (tfile_open): Don't add thread and inferior.
13073         (tfile_close): Don't set 'inferior_ptid'.  Don't call
13074         exit_inferior_silent.
13075         (tfile_thread_alive): Remove.
13076         (init_tfile_ops): Don't set field 'to_thread_alive' of
13077         tfile_ops.
13078
13079 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
13080
13081         * remote.c (remote_start_remote): Call remote_check_symbols even
13082         if only symbol-file (not file) has been given.
13083
13084 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13085
13086         * gdbarch.sh (skip_entrypoint): New callback.
13087         * gdbarch.c, gdbarch.h: Regenerate.
13088         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13089         * infrun.c (fill_in_stop_func): Likewise.
13090         * ppc-linux-tdep.c: Include "elf/ppc64.h".
13091         (ppc_elfv2_elf_make_msymbol_special): New function.
13092         (ppc_elfv2_skip_entrypoint): Likewise.
13093         (ppc_linux_init_abi): Install them for ELFv2.
13094
13095 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13096
13097         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13098         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13099         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13100         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
13101         structures returned in GPRs.
13102
13103 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13104
13105         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13106         offset to the stack parameter list for the ELFv2 ABI.
13107
13108 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13109
13110         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13111         set_gdbarch_convert_from_func_ptr_addr and
13112         set_gdbarch_elf_make_msymbol_special for ELFv1.
13113         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13114         function descriptors on ELFv1.
13115         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
13116         set up r12 at function entry.
13117
13118 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13119
13120         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13121         (struct gdbarch_tdep): New member elf_abi.
13122
13123         * rs6000-tdep.c: Include "elf/ppc64.h".
13124         (rs6000_gdbarch_init): Detect ELF ABI version.
13125
13126 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13127
13128         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13129         within a register pair holding a DFP 128-bit value on little-endian.
13130         (ppc64_sysv_abi_return_value_base): Likewise.
13131         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13132         (dfp_pseudo_register_write): Likewise.
13133
13134 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13135
13136         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13137         offset on little-endian when passing _Decimal32.
13138         (ppc64_sysv_abi_return_value_base): Likewise for return values.
13139
13140 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13141
13142         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13143         of the overlapped FP register within the VSX register on little-
13144         endian platforms.
13145         (efpr_pseudo_register_write): Likewise.
13146
13147 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13148
13149         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13150         offset on little-endian when passing small structures.
13151
13152 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13153
13154         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13155         (struct ppc64_sysv_argpos): New data structure.
13156         (ppc64_sysv_abi_push_float): Remove.
13157         (ppc64_sysv_abi_push_val): New function.
13158         (ppc64_sysv_abi_push_integer): Likewise.
13159         (ppc64_sysv_abi_push_freg): Likewise.
13160         (ppc64_sysv_abi_push_vreg): Likewise.
13161         (ppc64_sysv_abi_push_param): Likewise.
13162         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13163         (ppc64_sysv_abi_return_value_base): New function.
13164         (ppc64_sysv_abi_return_value): Refactor to use it.
13165
13166 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13167
13168         * NEWS: Document new target powerpc64le-*-linux*.
13169
13170 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
13171
13172         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13173         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13174         core dumps.
13175         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13176         register set used in ELF core dumps.  Add floating-point register set.
13177
13178 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
13179
13180         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13181         dwarf2_to_gdb[] table using symbolic constants.  Adjust
13182         penultimate entry from number representing the PC register
13183         to symbolic constant representing the MDR register.  Add
13184         constant for the PC register to the end of the table.
13185
13186 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
13187
13188         * bsd-kvm.c: Include <sys/param.h>
13189
13190 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
13191
13192         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13193
13194 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
13195
13196         * ada-lang.h (clear_ada_sym_cache): Delete.
13197
13198 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
13199
13200         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13201
13202 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
13203
13204         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13205           the sigreturn register save area only if the syscall is
13206           sigreturn.
13207
13208 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
13209
13210         * valops.c (value_slice): Minor reformatting.
13211
13212 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
13213
13214         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13215
13216 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
13217
13218         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13219         New static globals.
13220         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13221         (ada_ignore_descriptive_types_p): New static global.
13222         (find_parallel_type_by_descriptive_type): Return immediately
13223         if ada_ignore_descriptive_types_p is set.
13224         (_initialize_ada_language): Register new commands "maintenance
13225         set ada", "maintenance show ada", "maintenance set ada
13226         ignore-descriptive-types" and "maintenance show ada
13227         ignore-descriptive-types".
13228         * NEWS: Add entry for new "maint ada set/show
13229         ignore-descriptive-types" commands.
13230
13231 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
13232
13233         * record-btrace.c (record_btrace_close): Call btrace_teardown
13234         for all threads.
13235
13236 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13237
13238         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13239         "ui-out.h".
13240
13241 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13242
13243         * ada-typeprint (type_is_full_subrange_of_target_type):
13244         New function.
13245         (print_range): Add parameter bounds_prefered_p.  If not set,
13246         try printing range types using the name of their base type.
13247         (print_range_type): Add parameter bounds_prefered_p.
13248         Use it in call to print_range.
13249         (print_array_type, ada_print_type): Update calls to print_range
13250         and print_range_type.
13251
13252 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13253
13254         * ada-typeprint.c (print_array_type, print_choices, print_range)
13255         (print_range_bound, print_dynamic_range_bound, print_range_type):
13256         Remove declaration.
13257
13258 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13259
13260         * ada-typeprint.c (print_range): Add missing empty line
13261         after local declaration.
13262
13263 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13264
13265         * ada-valprint.c (print_optional_low_bound): Get index_type's
13266         target type for as long as it is a TYPE_CODE_RANGE.
13267
13268 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13269
13270         * procfs.c (procfs_make_note_section): Remove assertion and
13271         associated comment.
13272
13273 2014-01-24  Yao Qi  <yao@codesourcery.com>
13274
13275         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13276         * corelow.c (get_core_siginfo): Likewise.
13277
13278 2014-01-24  Yao Qi  <yao@codesourcery.com>
13279
13280         * remote.c (remote_write_bytes_aux): Change type of 'len' to
13281         ULONGEST.  Don't check 'len' is negative.
13282         (remote_write_bytes):  Change type of 'len' to ULONGEST.
13283
13284 2014-01-23  Tom Tromey  <tromey@redhat.com>
13285
13286         PR python/16485:
13287         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13288         Handle exception from frame.block.
13289         (FrameVars.fetch_frame_locals): Likewise.
13290
13291 2014-01-23  Tom Tromey  <tromey@redhat.com>
13292
13293         PR python/16487:
13294         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13295         on a NULL pointer.  Move "goto error" to correct place.
13296
13297 2014-01-23  Tom Tromey  <tromey@redhat.com>
13298
13299         PR python/16491:
13300         * python/py-framefilter.c (apply_frame_filter): Call
13301         ensure_python_env after computing gdbarch.
13302
13303 2014-01-23  Yao Qi  <yao@codesourcery.com>
13304
13305         * target.c (raw_memory_xfer_partial): Change argument type
13306         from void * to gdb_byte *.
13307         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13308
13309 2014-01-22  Doug Evans  <dje@google.com>
13310
13311         New gdbserver option --debug-format=timestamp.
13312         * NEWS: Mention it.
13313
13314 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
13315
13316         * syscalls/s390x-linux.xml: New file.
13317         * syscalls/s390-linux.xml: New file.
13318         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13319         (XML_SYSCALL_FILENAME_S390X): Likewise.
13320         (op_svc): New enum value for SVC opcode.
13321         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13322         (s390_linux_get_syscall_number): New function.
13323         (s390_gdbarch_init): Register '*get_syscall_number' and the
13324         syscall xml file name.
13325         * data-directory/Makefile.in (SYSCALLS_FILES): Add
13326         "s390-linux.xml" and "s390x-linux.xml".
13327         * NEWS: Announce new feature.
13328
13329 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
13330
13331         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13332
13333 2014-01-22  Pedro Alves  <palves@redhat.com>
13334
13335         * xtensa-config.c: Include defs.h.
13336
13337 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13338
13339         * common/common-utils.h: Add "ARI:" comment beside __func__
13340         reference.
13341
13342 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13343
13344         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13345         documentation a bit.
13346
13347 2014-01-21  Roland McGrath  <mcgrathr@google.com>
13348
13349         * configure.ac: Call AM_PROG_INSTALL_STRIP.
13350         * configure: Regenerate.
13351         * aclocal.m4: Regenerate.
13352         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13353         New substituted variables.
13354         (install-strip): New target.
13355         (INSTALL_SCRIPT): New substituted variable.
13356         (FLAGS_TO_PASS): Add it.
13357         (install-only): Use $(INSTALL_SCRIPT) rather than
13358         $(INSTALL_PROGRAM) for gcore.
13359
13360 2014-01-20  Tom Tromey  <tromey@redhat.com>
13361
13362         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13363         together.
13364
13365 2014-01-20  Tom Tromey  <tromey@redhat.com>
13366
13367         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13368         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13369         (deprecated_cmd_warning, complete_on_cmdlist): Update.
13370         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13371         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13372         (struct cmd_list_element) <flags>: Remove.
13373         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13374         doc_allocated>: New fields.
13375         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13376         bitfields.
13377         * maint.c (maintenance_do_deprecate): Update.
13378         * top.c (execute_command): Update.
13379
13380 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
13381
13382         * xtensa-linux-nat.c: Include asm/ptrace.h.
13383
13384 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13385
13386         * Makefile.in (SFILES): Add d-support.c.
13387         (COMMON_OBS): Add d-support.o.
13388         * d-lang.h (d_parse_symbol): Add comment, now defined in
13389         d-support.c.
13390         * d-lang.c (parse_call_convention)
13391         (parse_attributes, parse_function_types)
13392         (parse_function_args, parse_type, parse_identifier)
13393         (call_convention_p, d_parse_symbol): Move functions to ...
13394         * d-support.c: ... New file.
13395
13396 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13397
13398         * d-lang.h (d_parse_symbol): Add declaration.
13399         * d-lang.c (extract_identifiers)
13400         (extract_type_info): Remove functions.
13401         (parse_call_convention, parse_attributes)
13402         (parse_function_types, parse_function_args)
13403         (parse_type, parse_identifier, call_convention_p)
13404         (d_parse_symbol): New functions.
13405         (d_demangle): Use d_parse_symbol to demangle D symbols.
13406
13407 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13408
13409         * d-lang.h (struct builtin_d_type): New data type.
13410         (builtin_d_type): Add declaration.
13411         * d-lang.c (d_language_arch_info, build_d_types)
13412         (builtin_d_type): New functions.
13413         (enum d_primitive_types): New data type.
13414         (d_language_defn): Change c_language_arch_info to
13415         d_language_arch_info.
13416         (d_type_data): New static variable.
13417         (_initialize_d_language): Initialize d_type_data.
13418
13419 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13420
13421         * d-lang.h (d_main_name): Add declaration.
13422         * d-lang.c (d_main_name): New function.
13423         * symtab.c (find_main_name): Add call to d_main_name.
13424
13425 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13426
13427         * d-lang.c (d_language_defn): Change macro_expansion_c to
13428         macro_expansion_no.
13429
13430 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13431
13432         * MAINTAINERS: Add myself as a write-after-approval maintainer.
13433
13434 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
13435
13436         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13437         gdb_exception" declaration.
13438         * remote.c (getpkt_or_notif_sane): Likewise.
13439
13440 2014-01-17  Doug Evans  <dje@google.com>
13441
13442         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13443         function, contents of dirnames_to_char_ptr_vec_append moved here.
13444         (delim_string_to_char_ptr_vec): New function.
13445         (dirnames_to_char_ptr_vec_append): Rewrite.
13446         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13447
13448 2014-01-17  Doug Evans  <dje@google.com>
13449
13450         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13451         and moved here ...
13452         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13453         #include "common-utils.h".
13454         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13455         * common/vec.h (VEC_ASSERT_PASS): Update.
13456         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13457         (MACH_CHECK_ERROR): Update.
13458
13459 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
13460
13461         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13462         comments.
13463         * gdbarch.h: Regenerate.
13464
13465 2014-01-16  Tom Tromey  <tromey@redhat.com>
13466
13467         * value.c (struct value) <regnum>: Move earlier.
13468
13469 2014-01-16  Tom Tromey  <tromey@redhat.com>
13470
13471         * remote.c (extended_remote_create_inferior): Rename from
13472         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
13473         old implementation.
13474
13475 2014-01-16  Pedro Alves  <palves@redhat.com>
13476
13477         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13478         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13479         the backchain.
13480
13481 2014-01-16  Doug Evans  <dje@google.com>
13482
13483         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13484
13485 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13486
13487         * btrace.h (btrace_thread_flag): New.
13488         (struct btrace_thread_info) <flags>: New.
13489         * record-btrace.c (record_btrace_resume_thread)
13490         (record_btrace_find_thread_to_move, btrace_step_no_history)
13491         (btrace_step_stopped, record_btrace_start_replaying)
13492         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13493         (record_btrace_find_resume_thread): New.
13494         (record_btrace_resume, record_btrace_wait): Extend.
13495         (record_btrace_can_execute_reverse): New.
13496         (record_btrace_open): Fail in non-stop mode.
13497         (record_btrace_set_replay): Split into this, ...
13498         (record_btrace_stop_replaying): ... this, ...
13499         (record_btrace_clear_histories): ... and this.
13500         (init_record_btrace_ops): Init to_can_execute_reverse.
13501         * NEWS: Announce it.
13502
13503 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13504
13505         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13506         (forward_target_decr_pc_after_break)
13507         (target_decr_pc_after_break): New.
13508         * target.c (forward_target_decr_pc_after_break)
13509         (target_decr_pc_after_break): New.
13510         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13511         instead of gdbarch_decr_pc_after_break.
13512         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13513         instead of gdbarch_decr_pc_after_break.
13514         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13515         instead of gdbarch_decr_pc_after_break.
13516         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13517         instead of gdbarch_decr_pc_after_break.
13518         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13519         instead of gdbarch_decr_pc_after_break.
13520         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13521         instead of gdbarch_decr_pc_after_break.
13522
13523 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13524
13525         * btrace.c: Include regcache.h.
13526         (btrace_add_pc): New.
13527         (btrace_enable): Call btrace_add_pc.
13528         (btrace_is_empty): New.
13529         * btrace.h (btrace_is_empty): New.
13530         * record-btrace.c (require_btrace, record_btrace_info): Call
13531         btrace_is_empty.
13532
13533 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13534
13535         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13536         Support delta reads.
13537         (linux_disable_btrace): Change return type.
13538         * common/linux-btrace.h (linux_read_btrace): Change parameters
13539         and return type to allow error reporting.  Update users.
13540         (linux_disable_btrace): Change return type.  Update users.
13541         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13542         New.
13543         (btrace_error): New.
13544         (btrace_block) <begin>: Comment on BEGIN == 0.
13545         * btrace.c (btrace_compute_ftrace): Start from the end of
13546         the current trace.
13547         (btrace_stitch_trace, btrace_clear_history): New.
13548         (btrace_fetch): Read delta trace, return if replaying.
13549         (btrace_clear): Move clear history code to btrace_clear_history.
13550         (parse_xml_btrace): Throw an error if parsing failed.
13551         * target.h (struct target_ops) <to_read_btrace>: Change parameters
13552         and return type to allow error reporting.
13553         (target_read_btrace): Change parameters and return type to allow
13554         error reporting.
13555         * target.c (target_read_btrace): Update.
13556         * remote.c (remote_read_btrace): Support delta reads.  Pass
13557         errors on.
13558         * NEWS: Announce it.
13559
13560 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13561
13562         * record.h (record_btrace_frame_unwind)
13563         (record_btrace_tailcall_frame_unwind): New declarations.
13564         * dwarf2-frame: Include record.h
13565         (dwarf2_frame_cfa): Throw an error for btrace frames.
13566         * record-btrace.c: Include hashtab.h.
13567         (btrace_get_bfun_name): New.
13568         (btrace_call_history): Call btrace_get_bfun_name.
13569         (struct btrace_frame_cache): New.
13570         (bfcache): New.
13571         (bfcache_hash, bfcache_eq, bfcache_new): New.
13572         (btrace_get_frame_function): New.
13573         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13574         (record_btrace_frame_this_id): Compute own id.
13575         (record_btrace_frame_prev_register): Provide PC, throw_error
13576         for all other registers.
13577         (record_btrace_frame_sniffer): Detect btrace frames.
13578         (record_btrace_tailcall_frame_sniffer): New.
13579         (record_btrace_frame_dealloc_cache): New.
13580         (record_btrace_frame_unwind): Add new functions.
13581         (record_btrace_tailcall_frame_unwind): New.
13582         (_initialize_record_btrace): Allocate cache.
13583         * btrace.c (btrace_clear): Call reinit_frame_cache.
13584         * NEWS: Announce it.
13585
13586 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13587
13588         * record-btrace.c (record_btrace_set_replay)
13589         (record_btrace_goto_begin, record_btrace_goto_end)
13590         (record_btrace_goto): New.
13591         (init_record_btrace_ops): Initialize them.
13592         * NEWS: Announce it.
13593
13594 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13595
13596         * record-btrace.c (record_btrace_find_new_threads)
13597         (record_btrace_thread_alive): New.
13598         (init_record_btrace_ops): Initialize to_find_new_threads and
13599         to_thread_alive.
13600
13601 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13602
13603         * record-btrace.c (record_btrace_resume): New.
13604         (record_btrace_wait): New.
13605         (init_record_btrace_ops): Initialize to_wait and to_resume.
13606
13607 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13608
13609         * record-btrace.c (record_btrace_xfer_partial)
13610         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13611         (record_btrace_allow_memory_access): New.
13612         (init_record_btrace_ops): Initialize new methods.
13613         * target.c (raw_memory_xfer_partial): Bail out if target reports
13614         that this memory is not available.
13615
13616 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13617
13618         * target.h (target_ops) <to_insert_breakpoint>
13619         <to_remove_breakpoint>: Add target_ops parameter.
13620         (forward_target_insert_breakpoint): New.
13621         (forward_target_remove_breakpoint): New.
13622         (memory_remove_breakpoint, memory_insert_breakpoint):
13623         Add target_ops parameter.
13624         * target.c (target_insert_breakpoint): Split into this and ...
13625         (forward_target_insert_breakpoint): ... this.
13626         (target_remove_breakpoint): Split into this and ...
13627         (forward_target_remove_breakpoint): ... this.
13628         (debug_to_insert_breakpoint): Add target_ops parameter.
13629         Call forward_target_insert_breakpoint.
13630         (debug_to_remove_breakpoint): Add target_ops parameter.
13631         Call forward_target_remove_breakpoint.
13632         (update_current_target): Do not inherit or default to_insert_breakpoint
13633         and to_remove_breakpoint.
13634         * corelow.c (ignore): Add target_ops parameter.
13635         * exec.c (ignore): Add target_ops parameter.
13636         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13637         Add target_ops parameter.
13638         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13639         Add target_ops parameter.
13640         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13641         Add target_ops parameter.
13642         * record-full.c (record_full_beneath_to_insert_breakpoint)
13643         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13644         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13645         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13646         (record_full_core_remove_breakpoint): Add target_ops parameter.
13647         Update users.
13648         (record_full_beneath_to_insert_breakpoint_ops)
13649         (record_full_beneath_to_remove_breakpoint_ops)
13650         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13651         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13652         tmp_to_remove_breakpoint_ops,
13653         record_full_beneath_to_insert_breakpoint_ops, and
13654         record_full_beneath_to_remove_breakpoint_ops.
13655         * remote-m32r-sdi.c (m32r_insert_breakpoint)
13656         (m32r_remove_breakpoint): Add target_ops parameter.
13657         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13658         Add target_ops parameter.
13659         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13660         Add target_ops parameter.
13661
13662 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13663             Markus Metzger  <markus.t.metzger@intel.com>
13664
13665         * record-btrace.c: Include frame-unwind.h.
13666         (record_btrace_frame_unwind_stop_reason)
13667         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13668         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13669         New.
13670         (init_record_btrace_ops): Install it.
13671
13672 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13673
13674         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13675         get_prev_frame_1.
13676
13677 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13678
13679         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13680         earlier.
13681
13682 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13683
13684         * frame-unwind.c: Include target.h.
13685         (frame_unwind_try_unwinder): New function with code from ...
13686         (frame_unwind_find_by_frame): ... here.  New variable
13687         unwinder_from_target, call also target_get_unwinder)
13688         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13689         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13690         * target.h (struct target_ops): New fields to_get_unwinder and
13691         to_get_tailcall_unwinder.
13692         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13693
13694 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13695
13696         * record-btrace.c (record_btrace_fetch_registers)
13697         (record_btrace_store_registers)
13698         (record_btrace_to_prepare_to_store): New.
13699         (init_record_btrace_ops): Add the above.
13700
13701 2014-01-16  Tom Tromey  <tromey@redhat.com>
13702
13703         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13704         * target.h (struct target_ops) <to_prepare_to_store>: Add
13705         argument.
13706         (target_prepare_to_store): Add argument.
13707         * target.c (debug_to_prepare_to_store): Add argument.
13708         (update_current_target): Update.
13709         * remote.c (remote_prepare_to_store): Add 'self' argument.
13710         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13711         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13712         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13713         * record-full.c (record_full_core_prepare_to_store): Add 'self'
13714         argument.
13715         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13716         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13717         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13718         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13719         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13720
13721 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13722
13723         * btrace.h (replay) <replay>: New.
13724         (btrace_is_replaying): New.
13725         * btrace.c (btrace_clear): Free replay iterator.
13726         (btrace_is_replaying): New.
13727         * record-btrace.c (record_btrace_is_replaying): New.
13728         (record_btrace_info): Print insn number if replaying.
13729         (record_btrace_insn_history): Start at replay position.
13730         (record_btrace_call_history): Start at replay position.
13731         (init_record_btrace_ops): Init to_record_is_replaying.
13732
13733 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13734
13735         * record-btrace.c (record_btrace_insn_history_range): Include
13736         end.
13737         (record_btrace_insn_history_from): Adjust range.
13738         (record_btrace_call_history_range): Include
13739         end.
13740         (record_btrace_call_history_from): Adjust range.
13741         * NEWS: Announce changes.
13742
13743 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13744
13745         * record.h (enum record_print_flag)
13746         <record_print_indent_calls>: New.
13747         * record.c (get_call_history_modifiers): Recognize /c modifier.
13748         (_initialize_record): Document /c modifier.
13749         * record-btrace.c (btrace_call_history): Add btinfo parameter.
13750         Reorder fields.  Optionally indent the function name.  Update
13751         all users.
13752         * NEWS: Announce changes.
13753
13754 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13755
13756         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13757
13758 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13759
13760         * btrace.c (ftrace_new_function): Start counting at one.
13761         * record-btrace.c (record_btrace_info): Adjust number of calls
13762         and insns.
13763         * NEWS: Announce it.
13764
13765 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13766
13767         * record-btrace.c (btrace_call_history_insn_range): Print
13768         insn range as [begin, end].
13769
13770 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13771
13772         * btrace.h (struct btrace_func_link): New.
13773         (enum btrace_function_flag): New.
13774         (struct btrace_inst): Rename to ...
13775         (struct btrace_insn): ...this. Update all users.
13776         (struct btrace_func) <ibegin, iend>: Remove.
13777         (struct btrace_func_link): New.
13778         (struct btrace_func): Rename to ...
13779         (struct btrace_function): ...this. Update all users.
13780         (struct btrace_function) <segment, flow, up, insn, insn_offset)
13781         (number, level, flags>: New.
13782         (struct btrace_insn_iterator): Rename to ...
13783         (struct btrace_insn_history): ...this.
13784         Update all users.
13785         (struct btrace_insn_iterator, btrace_call_iterator): New.
13786         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13787         (struct btrace_target_info) <begin, end, level>
13788         <insn_history, call_history>: New.
13789         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13790         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13791         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13792         (btrace_call_number, btrace_call_begin, btrace_call_end)
13793         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13794         (btrace_find_function_by_number, btrace_set_insn_history)
13795         (btrace_set_call_history): New.
13796         * btrace.c (btrace_init_insn_iterator)
13797         (btrace_init_func_iterator, compute_itrace): Remove.
13798         (ftrace_print_function_name, ftrace_print_filename)
13799         (ftrace_skip_file): Change
13800         parameter to const.
13801         (ftrace_init_func): Remove.
13802         (ftrace_debug): Use new btrace_function fields.
13803         (ftrace_function_switched): Also consider gaining and
13804         losing symbol information).
13805         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13806         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13807         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13808         New.
13809         (ftrace_new_function): Move. Remove debug print.
13810         (ftrace_update_lines, ftrace_update_insns): New.
13811         (ftrace_update_function): Check for call, ret, and jump.
13812         (compute_ftrace): Renamed to ...
13813         (btrace_compute_ftrace): ...this. Rewritten to compute call
13814         stack.
13815         (btrace_fetch, btrace_clear): Updated.
13816         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13817         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13818         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13819         (btrace_call_number, btrace_call_begin, btrace_call_end)
13820         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13821         (btrace_find_function_by_number, btrace_set_insn_history)
13822         (btrace_set_call_history): New.
13823         * record-btrace.c (require_btrace): Use new btrace thread
13824         info fields.
13825         (record_btrace_info, btrace_insn_history)
13826         (record_btrace_insn_history, record_btrace_insn_history_range):
13827         Use new btrace thread info fields and new iterator.
13828         (btrace_func_history_src_line): Rename to ...
13829         (btrace_call_history_src_line): ...this. Use new btrace
13830         thread info fields.
13831         (btrace_func_history): Rename to ...
13832         (btrace_call_history): ...this. Use new btrace thread info
13833         fields and new iterator.
13834         (record_btrace_call_history, record_btrace_call_history_range):
13835         Use new btrace thread info fields and new iterator.
13836
13837 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13838
13839         * frame.h (frame_id_build_unavailable_stack_special): New.
13840         * frame.c (frame_id_build_unavailable_stack_special): New.
13841
13842 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13843
13844         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13845         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13846         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13847         to gdbarch.
13848         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13849         (i386_insn_is_jump, i386_jmp_p): New.
13850         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13851         insn_is_jump to gdbarch.
13852         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13853         * gdbarch.h: Regenerated.
13854         * gdbarch.c: Regenerated.
13855         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13856         (default_insn_is_jump): New.
13857         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13858         (default_insn_is_jump): New.
13859
13860 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13861
13862         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13863         Change to ...
13864         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
13865         (btrace_read_type) <btrace_read_new>: Change to ...
13866         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
13867
13868 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13869
13870         * common/linux-btrace.c (linux_read_btrace): Free trace from
13871         previous iteration.
13872
13873 2014-01-15  Doug Evans  <dje@google.com>
13874
13875         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13876         uint32_t.
13877
13878 2014-01-15  Tom Tromey  <tromey@redhat.com>
13879
13880         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13881         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13882         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13883         (set_objfile_main_name): New function.
13884         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13885         language_of_main>: New fields.
13886         (set_objfile_main_name): Declare.
13887         * symtab.c (find_main_name): Loop over objfiles to find the main
13888         name and language.
13889         (set_main_name): Now static.
13890         (get_main_info): Add comment.
13891         * symtab.h (set_main_name): Don't declare.
13892
13893 2014-01-15  Tom Tromey  <tromey@redhat.com>
13894
13895         * symtab.c (main_progspace_key): New global.
13896         (struct main_info): New.
13897         (name_of_main, language_of_main): Remove.
13898         (get_main_info, main_info_cleanup): New function.
13899         (set_main_name, main_name, main_language): Use get_main_info.
13900         (_initialize_symtab): Initialize main_progspace_key.
13901
13902 2014-01-15  Tom Tromey  <tromey@redhat.com>
13903
13904         * dbxread.c (process_one_symbol): Update.
13905         * dwarf2read.c (read_partial_die): Update.
13906         * symfile.c (set_initial_language): Call main_language.
13907         * symtab.c (language_of_main): Now static.
13908         (set_main_name): Add 'lang' parameter.
13909         (find_main_name): Update.
13910         (main_language): New function.
13911         (symtab_observer_executable_changed): Update.
13912         * symtab.h (set_main_name): Update.
13913         (language_of_main): Remove.
13914         (main_language): Declare.
13915
13916 2014-01-15  Tom Tromey  <tromey@redhat.com>
13917
13918         * symfile.c (init_entry_point_info): Use new "initialized" field.
13919         Update.
13920         * objfiles.h (struct entry_point) <initialized>: New field.
13921         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13922         (struct objfile) <ei>: ...here.  Remove.
13923         * objfiles.c (entry_point_address_query): Update.
13924
13925 2014-01-15  Tom Tromey  <tromey@redhat.com>
13926
13927         * objfiles.c (entry_point_address_query): Relocate entry point
13928         address.
13929         (objfile_relocate1): Do not relocate entry point address.
13930         * objfiles.h (struct entry_info) <entry_point>: Update comment.
13931         <the_bfd_section_index>: New field.
13932         * symfile.c (init_entry_point_info): Find the entry point's
13933         section.
13934
13935 2014-01-15  Tom Tromey  <tromey@redhat.com>
13936
13937         * solib-frv.c (enable_break): Use entry_point_address_query.
13938
13939 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13940
13941         * NEWS: Add note on improved process record-replay on
13942         arm*-linux* targets.
13943
13944 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13945
13946         * arm-tdep.c (enum arm_record_result): New enum.
13947         (arm_record_unsupported_insn): New function.
13948         (arm_record_coproc_data_proc): Removed.
13949         (thumb2_record_ld_st_multiple): New function.
13950         (thumb2_record_ld_st_dual_ex_tbb): New function.
13951         (thumb2_record_data_proc_sreg_mimm): New function.
13952         (thumb2_record_ps_dest_generic): New function.
13953         (thumb2_record_branch_misc_cntrl): New function.
13954         (thumb2_record_str_single_data): New function.
13955         (thumb2_record_ld_mem_hints): New function.
13956         (thumb2_record_ld_word): New function.
13957         (thumb2_record_lmul_lmla_div): New function.
13958         (thumb2_record_decode_insn_handler): New function.
13959         (decode_insn): Add thumb32 instruction handlers.
13960
13961 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13962
13963         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13964         (struct arm_linux_record_tdep): Declare.
13965         (arm_canonicalize_syscall): New function.
13966         (arm_all_but_pc_registers_record): New function.
13967         (arm_linux_syscall_record): New function.
13968         (arm_linux_init_abi): Add syscall recording constructs.
13969         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13970         decoding.  (arm_record_coproc_data_proc): Update arm syscall
13971         decoding.
13972         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13973         <arm_syscall_record>: New field.
13974         * configure.tgt (arm*-*-linux*): Add linux-record.o to
13975         gdb_target_obs.
13976
13977 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13978
13979         * arm-tdep.c (thumb_record_misc): Update to use sp as base
13980         register for push instruction recording.
13981
13982 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13983
13984         * arm-tdep.c (thumb_record_misc): Update to correct logical
13985         error while recording ldm, ldmia and pop instructions.
13986
13987 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13988
13989         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13990
13991 2014-01-15  Pedro Alves  <palves@redhat.com>
13992
13993         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13994         (go32_resume, go32_fetch_registers, store_register)
13995         (go32_store_registers, go32_prepare_to_store)
13996         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13997         (go32_create_inferior, go32_can_run, go32_terminal_init)
13998         (go32_terminal_inferior, go32_terminal_ours): Delete forward
13999         declarations.
14000
14001 2014-01-15  Tom Tromey  <tromey@redhat.com>
14002
14003         * target.h (async_callback_ftype): New typedef.
14004         (struct target_ops) <to_async>: Use it.
14005
14006 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14007
14008         * python/py-value.c (get_field_type): Remove unnecessary curly
14009         braces for single-statement if block.
14010
14011 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14012
14013         * python/py-type.c (convert_field): Add missing empty line
14014         after declarations.
14015
14016 2014-01-14  Doug Evans  <dje@google.com>
14017
14018         * symfile.h (expand_symtabs_matching): Renamed from
14019         expand_partial_symbol_names.  Update prototype.
14020         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14021         * symfile.c (expand_symtabs_matching): Renamed from
14022         expand_partial_symbol_names.  New args file_matcher, kind.
14023         Rename arg fun to symbol_matcher.
14024         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14025         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14026         ada_expand_partial_symbol_name.
14027         (ada_make_symbol_completion_list): Update to call
14028         expand_symtabs_matching.
14029         (ada_add_global_exceptions): Call expand_symtabs_matching.
14030         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14031         call map_symbol_filenames.
14032         * symtab.c (sources_info): Update to call map_symbol_filenames.
14033         (search_symbols): Call expand_symtabs_matching.
14034         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14035         (default_make_symbol_completion_list_break_on): Update to call
14036         expand_symtabs_matching.
14037         (make_source_files_completion_list): Update to call
14038         map_symbol_filenames.
14039
14040 2014-01-14  Doug Evans  <dje@google.com>
14041
14042         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14043         (expand_symtabs_symbol_matcher_ftype): New typedef.
14044         (quick_symbol_functions.expand_symtabs_matching): Update to use.
14045         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14046         * symfile.c (expand_partial_symbol_names): Update to use
14047         expand_symtabs_symbol_matcher_ftype.
14048         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14049         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14050         Arg name_matcher renamed to symbol_matcher.
14051         * psymtab.c (recursively_search_psymtabs): Update to use
14052         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
14053         sym_matcher.
14054         (expand_symtabs_matching_via_partial): Update to use
14055         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14056         Arg name_matcher renamed to symbol_matcher.
14057
14058 2014-01-14  Doug Evans  <dje@google.com>
14059
14060         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14061         (map_partial_symbol_filenames): Ditto.
14062         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14063         (map_partial_symbol_filenames): Ditto.
14064         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14065         (map_partial_symbol_filenames): Ditto.
14066         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14067         (map_partial_symbol_filenames): Ditto.
14068         * symtab.c: Delete #include "psymtab.h".
14069
14070 2014-01-14  Pedro Alves  <palves@redhat.com>
14071             Tom Tromey  <tromey@redhat.com>
14072
14073         * infrun.c (use_displaced_stepping): Use find_record_target
14074         instead of RECORD_IS_USED.
14075         (adjust_pc_after_break): Use record_full_is_used instead of
14076         RECORD_IS_USED.
14077         * record-btrace.c (record_btrace_open): Call record_preopen
14078         instead of checking RECORD_IS_USED.
14079         * record-full.c (record_full_shortname)
14080         (record_full_core_shortname): New globals.
14081         (record_full_is_used): New function.
14082         (find_full_open): Call record_preopen instead of checking
14083         RECORD_IS_USED.
14084         (init_record_full_ops): Set the target's shortname to
14085         record_full_shortname.
14086         (init_record_full_core_ops): Set the target's shortname to
14087         record_full_core_shortname.
14088         * record-full.h (record_full_is_used): Declare.
14089         * record.c (find_record_target): Make extern.
14090         (record_preopen): New function.
14091         * record.h (RECORD_IS_USED): Delete macro.
14092         (find_record_target, record_preopen): Declare functions.
14093
14094 2014-01-14  Yao Qi  <yao@codesourcery.com>
14095
14096         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14097         'len''s type to ULONGEST.
14098         (core_xfer_shared_libraries_aix): Likewise.
14099         * gdbarch.c, gdbarch.h: Regenerated.
14100         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14101         Change type of 'len' to ULONGEST.
14102         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14103         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14104
14105 2014-01-14  Yao Qi  <yao@codesourcery.com>
14106
14107         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14108         type of 'len' to ULONGEST.
14109         (linux_xfer_osdata_processgroups): Likewise.
14110         (linux_xfer_osdata_threads): Likewise.
14111         (linux_xfer_osdata_fds): Likewise.
14112         (linux_xfer_osdata_isockets): Likewise.
14113         (linux_xfer_osdata_shm): Likewise.
14114         (linux_xfer_osdata_sem): Likewise.
14115         (linux_xfer_osdata_msg): Likewise.
14116         (linux_common_xfer_osdata): Likewise.
14117         (struct osdata_type) <getter>: Likewise.
14118         * common/linux-osdata.h (linux_common_xfer_osdata): Update
14119         the declaration.
14120
14121 2014-01-14  Yao Qi  <yao@codesourcery.com>
14122
14123         * target.h (target_xfer_partial_ftype): Update.
14124         (struct target_ops) <to_xfer_partial>: Change 'len' type to
14125         ULONGEST.
14126         * aix-thread.c (aix_thread_xfer_partial): Change type of
14127         argument 'len' to ULONGEST.
14128         * auxv.c (procfs_xfer_auxv): Likewise.
14129         (ld_so_xfer_auxv): Likewise.
14130         (memory_xfer_auxv): Likewise.
14131         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14132         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14133         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14134         * corelow.c (core_xfer_partial): Likewise.
14135         * ctf.c (ctf_xfer_partial): Likewise.
14136         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
14137         '%u'.
14138         (darwin_read_dyld_info): Likewise.
14139         (darwin_xfer_partial): Likewise.
14140         * exec.c (section_table_xfer_memory_partial): Likewise.
14141         (exec_xfer_partial): Likewise.
14142         * exec.h (section_table_xfer_memory_partial): Update
14143         declaration.
14144         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
14145         instead of plongest.
14146         (gnu_xfer_partial): Likewise.
14147         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14148         (ia64_hpux_xfer_solib_got): Likewise.
14149         (ia64_hpux_xfer_partial): Likewise.
14150         * ia64-linux-nat.c (ia64_linux_xfer_partial):
14151         * inf-ptrace.c (inf_ptrace_xfer_partial):
14152         * inf-ttrace.c (inf_ttrace_xfer_partial):
14153         * linux-nat.c (linux_xfer_siginfo): Likewise.
14154         (linux_nat_xfer_partial): Likewise.
14155         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14156         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14157         * monitor.c (monitor_xfer_memory): Likewise.
14158         (monitor_xfer_partial): Likewise.
14159         * procfs.c (procfs_xfer_partial): Likewise.
14160         * record-full.c (record_full_xfer_partial): Likewise.
14161         (record_full_core_xfer_partial): Likewise.
14162         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
14163         instead of plongest.
14164         (gdbsim_xfer_partial): Likewise.
14165         * remote.c (remote_xfer_partial): Likewise.
14166         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14167         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14168         declaration.
14169         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14170         (rs6000_xfer_shared_libraries): Likewise.
14171         * sol-thread.c (sol_thread_xfer_partial): Likewise.
14172         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14173         (sparc_xfer_partial): Likewise.
14174         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14175         (spu_xfer_partial): Likewise.
14176         * spu-multiarch.c (spu_xfer_partial): Likewise.
14177         * target.c (target_read_live_memory): Likewise.
14178         (memory_xfer_live_readonly_partial): Likewise.
14179         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14180         (target_xfer_partial, default_xfer_partial): Likewise.
14181         (current_xfer_partial): Likewise.
14182         * tracepoint.c (tfile_xfer_partial): Likewise.
14183         * windows-nat.c (windows_xfer_memory): Likewise.  Call
14184         pulongest instead of plongest.
14185         (windows_xfer_partial): Likewise.
14186         (windows_xfer_shared_libraries): Likewise.
14187
14188 2014-01-14  Yao Qi  <yao@codesourcery.com>
14189
14190         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14191         target_xfer_partial_ftype.
14192
14193 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
14194
14195         PR python/15464
14196         PR python/16113
14197         * valops.c (value_struct_elt_bitpos): New function
14198         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14199         object to 'None' if the field name is an empty string ("").
14200         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14201         attribute to look for a field when 'name' is 'None'.
14202         (get_field_type): New function
14203
14204 2014-01-13  Doug Evans  <dje@google.com>
14205
14206         PR symtab/16426
14207         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14208         (try_open_dwop_file): Ditto.
14209         * gdb_bfd.c: #include "vec.h".
14210         (bfdp): New typedef.
14211         (struct gdb_bfd_data): New member included_bfds.
14212         (gdb_bfd_unref): Unref all included bfds.
14213         (gdb_bfd_record_inclusion): New function.
14214         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14215
14216 2014-01-13  Tom Tromey  <tromey@redhat.com>
14217
14218         * gdbcore.h (deprecated_core_resize_section_table): Remove.
14219
14220 2014-01-13  Tom Tromey  <tromey@redhat.com>
14221
14222         * defs.h (use_windows): Remove.
14223         * gdb.c (main): Update.
14224         * main.c (captured_main, gdb_main): Update.
14225         * main.h (struct captured_main_args) <use_windows>: Remove.
14226         * top.c (use_windows): Remove.
14227
14228 2014-01-13  Tom Tromey  <tromey@redhat.com>
14229
14230         * defs.h (deprecated_flush_hook): Remove.
14231
14232 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
14233
14234         PR threads/16216
14235         * linux-thread-db.c (try_thread_db_load): Add parameter
14236         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
14237         (try_thread_db_load_from_pdir_1): Move it there from here.
14238         (try_thread_db_load_from_sdir): Update caller.
14239         (try_thread_db_load_from_dir): Move it there from here.
14240
14241 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
14242
14243         * regformats/regdat.sh: Always rewrite the register file.
14244
14245 2014-01-13  Pedro Alves  <palves@redhat.com>
14246
14247         * Makefile.in (CHECK_HEADERS): New variable.
14248         (check-headers:): New rule.
14249
14250 2014-01-13  Tom Tromey  <tromey@redhat.com>
14251
14252         * cli/cli-setshow.c (do_set_command): Update.
14253         * defs.h (deprecated_set_hook): Remove.
14254         * top.c (deprecated_set_hook): Remove.
14255
14256 2014-01-13  Pedro Alves  <palves@redhat.com>
14257
14258         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14259         the tracepoint if the PC is a pseudo-register.
14260
14261 2014-01-13  Tom Tromey  <tromey@redhat.com>
14262
14263         * defs.h (XCALLOC): Remove.
14264         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14265         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14266         * dwarf2loc.c (allocate_piece_closure): Likewise.
14267         * elfread.c (elf_symfile_segments): Likewise.
14268         (elf_symfile_segments): Likewise.
14269         * gdbtypes.c (copy_type_recursive): Likewise.
14270         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14271         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14272         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14273         XCALLOC.
14274         * mt-tdep.c (mt_gdbarch_init): Likewise.
14275         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14276         XCALLOC.
14277         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14278         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14279         * registry.c (registry_alloc_data): Likewise.
14280         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14281         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14282         * serial.c (serial_fdopen_ops): Likewise.
14283         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14284         XCALLOC.
14285         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14286         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14287         not XCALLOC.
14288
14289 2014-01-13  Tom Tromey  <tromey@redhat.com>
14290
14291         * defs.h (XMALLOC): Remove.
14292         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14293         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14294         * cli-out.c (struct ui_out *): Likewise.
14295         * cli/cli-dump.c (add_dump_command): Likewise.
14296         (add_dump_command): Likewise.
14297         * complaints.c (get_complaints): Likewise.
14298         (find_complaint): Likewise.
14299         * dwarf2-frame.c (execute_cfa_program): Likewise.
14300         * dwarf2read.c (abbrev_table_read_table): Likewise.
14301         * gdbarch.sh: Likewise.
14302         * gdbarch.c: Rebuild.
14303         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14304         * interps.c (interp_new): Likewise.
14305         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14306         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14307         * mi/mi-console.c (mi_console_file_new): Likewise.
14308         * mi/mi-interp.c (mi_interpreter_init): Likewise.
14309         * mi/mi-out.c (mi_out_new): Likewise.
14310         * mi/mi-parse.c (mi_parse): Likewise.
14311         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14312         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14313         * observer.c (xalloc_observer_list_node): Likewise.
14314         * regcache.c (regcache_xmalloc_1): Likewise.
14315         * reggroups.c (reggroup_new): Likewise.
14316         (_initialize_reggroup): Likewise.
14317         * registry.c (register_data_with_cleanup): Likewise.
14318         * remote.c (remote_notif_stop_alloc_reply): Likewise.
14319         * ser-base.c (serial_ttystate): Likewise.
14320         * ser-mingw.c (make_pipe_state): Likewise.
14321         * ser-pipe.c (pipe_open): Likewise.
14322         * serial.c (serial_open): Likewise.
14323         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14324         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14325         (tui_alloc_win_info): Likewise.
14326         (tui_add_content_elements): Likewise.
14327         * tui/tui-file.c (tui_file_new): Likewise.
14328         * tui/tui-out.c (tui_out_new): Likewise.
14329         * ui-file.c (mem_file_new): Likewise.
14330         * ui-out.c (push_level): Likewise.
14331         (make_cleanup_ui_out_end): Likewise.
14332         (append_header_to_list): Likewise.
14333         (ui_out_new): Likewise.
14334         * user-regs.c (user_reg_add_builtin): Likewise.
14335
14336 2014-01-13  Tom Tromey  <tromey@redhat.com>
14337
14338         * defs.h (XZALLOC): Remove.
14339         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14340         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14341         (get_ada_tasks_inferior_data): Likewise.
14342         * auto-load.c (get_auto_load_pspace_data): Likewise.
14343         * auxv.c (get_auxv_inferior_data): Likewise.
14344         * bfd-target.c (target_bfd_reopen): Likewise.
14345         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14346         (deprecated_insert_raw_breakpoint): Likewise.
14347         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14348         * corelow.c (core_open): Likewise.
14349         * darwin-nat.c (darwin_check_new_threads): Likewise.
14350         (darwin_attach_pid): Likewise.
14351         * dummy-frame.c (dummy_frame_push): Likewise.
14352         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14353         * dwarf2loc.c (allocate_piece_closure): Likewise.
14354         * elfread.c (elf_symfile_segments): Likewise.
14355         * eval.c (ptrmath_type_p): Likewise.
14356         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14357         * gdbtypes.c (alloc_type_arch): Likewise.
14358         (alloc_type_instance): Likewise.
14359         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14360         * inf-child.c (inf_child_can_use_agent): Likewise.
14361         * inflow.c (get_inflow_inferior_data): Likewise.
14362         * infrun.c (save_infcall_suspend_state): Likewise.
14363         * jit.c (jit_reader_load): Likewise.
14364         (get_jit_objfile_data): Likewise.
14365         (get_jit_program_space_data): Likewise.
14366         (jit_object_open_impl): Likewise.
14367         (jit_symtab_open_impl): Likewise.
14368         (jit_block_open_impl): Likewise.
14369         (jit_frame_sniffer): Likewise.
14370         * linux-fork.c (add_fork): Likewise.
14371         * maint.c (make_command_stats_cleanup): Likewise.
14372         * objfiles.c (get_objfile_pspace_data): Likewise.
14373         * opencl-lang.c (struct lval_closure): Likewise.
14374         * osdata.c (osdata_start_osdata): Likewise.
14375         * progspace.c (new_address_space): Likewise.
14376         (add_program_space): Likewise.
14377         * remote-sim.c (get_sim_inferior_data): Likewise.
14378         * sh-tdep.c (sh_gdbarch_init): Likewise.
14379         * skip.c (Ignore): Likewise.
14380         (skip_delete_command): Likewise.
14381         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14382         (library_list_start_library): Likewise.
14383         (solib_aix_current_sos): Likewise.
14384         * solib-darwin.c (get_darwin_info): Likewise.
14385         (darwin_current_sos): Likewise.
14386         * solib-dsbt.c (get_dsbt_info): Likewise.
14387         * solib-ia64-hpux.c (new_so_list): Likewise.
14388         (ia64_hpux_get_solib_linkage_addr): Likewise.
14389         * solib-spu.c (append_ocl_sos): Likewise.
14390         (spu_current_sos): Likewise.
14391         * solib-svr4.c (get_svr4_info): Likewise.
14392         (svr4_keep_data_in_core): Likewise.
14393         (library_list_start_library): Likewise.
14394         (svr4_default_sos): Likewise.
14395         (svr4_read_so_list): Likewise.
14396         * solib-target.c (library_list_start_library): Likewise.
14397         (solib_target_current_sos): Likewise.
14398         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14399         * symfile-debug.c (install_symfile_debug_logging): Likewise.
14400         * symfile.c (default_symfile_segments): Likewise.
14401         * target-descriptions.c (tdesc_data_init): Likewise.
14402         (tdesc_create_reg): Likewise.
14403         (struct tdesc_type *): Likewise.
14404         (tdesc_create_vector): Likewise.
14405         (tdesc_set_struct_size): Likewise.
14406         (struct tdesc_type *): Likewise.
14407         (tdesc_free_feature): Likewise.
14408         (tdesc_create_feature): Likewise.
14409         * windows-nat.c (windows_add_thread): Likewise.
14410         (windows_make_so): Likewise.
14411         * xml-support.c (gdb_xml_body_text): Likewise.
14412         (gdb_xml_create_parser_and_cleanup): Likewise.
14413         (xml_process_xincludes): Likewise.
14414         * xml-syscall.c (allocate_syscalls_info): Likewise.
14415         (syscall_create_syscall_desc): Likewise.
14416
14417 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
14418
14419         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14420         function, with code from i386_stap_parse_special_token.
14421         (i386_stap_parse_special_token_three_arg_disp): Likewise.
14422         (i386_stap_parse_special_token): Move code to the two functions
14423         above; simplify it.
14424
14425 2014-01-09  Pedro Alves  <palves@redhat.com>
14426             Hui Zhu  <hui@codesourcery.com>
14427
14428         PR gdb/16101
14429         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14430         bp_err_string.  Don't mark the location shlib_disabled if the
14431         error thrown wasn't a generic or memory error.  Catch errors
14432         thrown while inserting breakpoints in overlayed code.  Output
14433         error message of software breakpoints.
14434         * remote.c (remote_insert_breakpoint): If this breakpoint has
14435         target-side commands but this stub doesn't support Z0 packets,
14436         throw NOT_SUPPORTED_ERROR error.
14437         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14438         * target.h (target_insert_breakpoint): Extend comment.
14439         (target_insert_hw_breakpoint): Add comment.
14440
14441 2014-01-08  Pedro Alves  <palves@redhat.com>
14442
14443         * remote.c (remote_add_thread): Add threads silently if starting
14444         up.
14445         (remote_notice_new_inferior): If in all-stop, and starting up,
14446         don't call notice_new_inferior.
14447         (get_current_thread): New function, factored out from ...
14448         (add_current_inferior_and_thread): ... this.  Adjust.
14449         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
14450         found any thread, then select the remote's current thread as GDB's
14451         current thread too.
14452
14453 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14454
14455         * NEWS: Create a new section for the next release branch.
14456         Rename the section of the current branch, now that it has
14457         been cut.
14458
14459 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14460
14461         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14462         * version.in: Bump version to 7.7.50.DATE-cvs.
14463
14464 2014-01-08  Yao Qi  <yao@codesourcery.com>
14465
14466         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14467         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
14468         (spu_xfer_partial): Cast 'buf' to 'const char *'.
14469
14470 2014-01-08  Yao Qi  <yao@codesourcery.com>
14471
14472         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14473         return value of bfd_get_filename to symbol_file_add_from_bfd.
14474
14475 2014-01-08  Pierre Muller  <muller@sourceware.org>
14476
14477         Fix PR16201.
14478         * coff-pe-read.c (struct read_pe_section_data): Add index field.
14479         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14480         to prim_record_mininal_symbol_and_info.
14481         (add_pe_forwarded_sym): Use known section number of forwarded symbol
14482         in call to prim_record_minimal_symbol_and_info.
14483         (read_pe_exported_syms): Set index field of section_data.
14484
14485 2014-01-07  Andrew Pinski  <apinski@cavium.com>
14486
14487         * features/aarch64-core.xml (cpsr): Change to be 64bit.
14488         * features/aarch64.c: Regenerate.
14489
14490 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
14491
14492         * target.c (return_null): Define.
14493         (update_current_target): Use it instead of return_zero for
14494         functions that return a pointer.
14495
14496 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
14497
14498         * source.c (add_path): Fix check for duplicated paths in the previously
14499         included paths.
14500
14501 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
14502
14503         * ada-lang.c: Remove duplicated include statements.
14504         * alphabsd-nat.c: Ditto.
14505         * amd64-darwin-tdep.c: Ditto.
14506         * amd64fbsd-nat.c: Ditto.
14507         * auto-load.c: Ditto.
14508         * ax-gdb.c: Ditto.
14509         * breakpoint.c: Ditto.
14510         * dbxread.c: Ditto.
14511         * fork-child.c: Ditto.
14512         * gdb_usleep.c: Ditto.
14513         * i386-darwin-tdep.c: Ditto.
14514         * i386fbsd-nat.c: Ditto.
14515         * infcmd.c: Ditto.
14516         * inferior.c: Ditto.
14517         * jv-lang.c: Ditto.
14518         * linux-nat.c: Ditto.
14519         * linux-tdep.c: Ditto.
14520         * m68kbsd-nat.c: Ditto.
14521         * m68klinux-nat.c: Ditto.
14522         * microblaze-tdep.c: Ditto.
14523         * mips-linux-tdep.c: Ditto.
14524         * mn10300-tdep.c: Ditto.
14525         * nto-tdep.c: Ditto.
14526         * opencl-lang.c: Ditto.
14527         * osdata.c: Ditto.
14528         * printcmd.c: Ditto.
14529         * regcache.c: Ditto.
14530         * remote-m32r-sdi.c: Ditto.
14531         * remote.c: Ditto.
14532         * symfile.c: Ditto.
14533         * symtab.c: Ditto.
14534         * tilegx-linux-nat.c: Ditto.
14535         * tilegx-tdep.c: Ditto.
14536         * tracepoint.c: Ditto.
14537         * valops.c: Ditto.
14538         * vaxbsd-nat.c: Ditto.
14539         * windows-nat.c: Ditto.
14540         * xtensa-tdep.c: Ditto.
14541
14542 2014-01-07  Yao Qi  <yao@codesourcery.com>
14543
14544         * spu-linux-nat.c (_initialize_spu_nat): Declare.
14545
14546 2014-01-07  Yao Qi  <yao@codesourcery.com>
14547             Joel Brobecker  <brobecker@adacore.com>
14548
14549         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14550         (pdc_write_regs): Likewise.
14551         (fetch_regs_kernel_thread): Likewise.
14552         (store_regs_kernel_thread): Likewise.
14553
14554 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14555
14556         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14557         tagged type objects to their actual type.
14558
14559 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14560
14561         * ada-valprint.c (print_field_values): Add "language" parameter.
14562         Update calls to print_field_values and print_variant_part.
14563         Pass new parameter "language" in call to val_print instead
14564         of "current_language".  Replace call to ada_val_print by call
14565         to val_print.
14566         (print_variant_part): Add "language" parameter.
14567         (ada_val_print_struct_union): Update call to print_field_values.
14568
14569 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14570
14571         * ada-valprint.c (ui_memcpy): Delete.
14572         (ada_print_floating): Update documentation.  Add empty line
14573         between between function documentation and implementation.
14574         Delete variable "buffer".  Use ui_file_xstrdup in place of
14575         ui_file_put.  Minor adjustments following this change.
14576
14577 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14578
14579         * ada-valprint.c (ada_val_print_string): New function,
14580         extracted from ada_val_print_array.
14581         (ada_val_print_array): Replace extracted code by call
14582         to ada_val_print_string followed by a return.  Move
14583         "else" branch to the function's top block.
14584
14585 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14586
14587         * ada-valprint.c (ada_val_print_array): Move implementation
14588         down.  Rename parameter "offset" and "val" into "offset_aligned"
14589         and "original_value" respectively.  Add parameter "offset".
14590
14591 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14592
14593         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14594         re-organizing the code. Change the "???" message printed
14595         when target type is a TYPE_CODE_UNDEF into
14596         "<ref to undefined type>".
14597
14598 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14599
14600         * ada-valprint.c (print_record): Delete, implementation inlined...
14601         (ada_val_print_struct_union): ... here.  Remove call to
14602         ada_check_typedef in inlined implementation.
14603
14604 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14605
14606         * ada-valprint.c (ada_val_print_gnat_array): New function,
14607         extracted from ada_val_print_1;
14608         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14609         (ada_val_print_flt, ada_val_print_struct_union)
14610         (ada_val_print_ref): Likewise.
14611         (ada_val_print_1): Delete variables i and elttype.
14612         Replace extracted-out code by call to corresponding
14613         new functions.
14614
14615 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14616
14617         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14618
14619 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14620
14621         * ada-valprint.c (ada_val_print_1): Replace calls to
14622         ada_val_print_1 by calls to val_print.
14623
14624 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14625
14626         * ada-valprint.c (ada_val_print_1): Add parameter "language".
14627         Update calls to self accordingly.  Replace calls to c_val_print
14628         by calls to val_print.
14629
14630 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14631
14632         * ada-valprint.c (print_record): Delete declaration.
14633         (adjust_type_signedness, ada_val_print_1): Likewise.
14634         (ada_val_print): Move function implementation down.
14635         (print_variant_part, print_field_values, print_record):
14636         Move function implementation up.
14637
14638 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14639
14640         * python/py-type.c (typy_get_name): New function.
14641         (type_object_getset): Add entry for attribute "name".
14642         * NEWS: Add entry mentioning this new attribute.
14643
14644 2014-01-07  Yao Qi  <yao@codesourcery.com>
14645
14646         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14647         statement.
14648
14649 2014-01-07  Yao Qi  <yao@codesourcery.com>
14650
14651         * gnu-nat.c (info_port_rights): Add qualifier const to
14652         argument args.
14653
14654 2014-01-07  Yao Qi  <yao@codesourcery.com>
14655
14656         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14657
14658 2014-01-07  Yao Qi  <yao@codesourcery.com>
14659
14660         * gnu-nat.c (make_inf) Update declaration.
14661         (make_inf): Make it static.
14662         (inf_set_traced): Likewise.
14663         (inf_port_to_thread, inf_task_died_status): Likewise.
14664
14665 2014-01-07  Yao Qi  <yao@codesourcery.com>
14666
14667         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14668
14669 2014-01-07  Yao Qi  <yao@codesourcery.com>
14670
14671         * gnu-nat.c (_initialize_gnu_nat): Declare.
14672
14673 2014-01-07  Yao Qi  <yao@codesourcery.com>
14674
14675         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14676         'enum bfd_endian'.
14677         (struct gdbarch_info) <byte_order>: Change type to
14678         'enum bfd_endian'.
14679         <byte_order_for_code>: Likewise.
14680         * gdbarch.c, gdbarch.h: Regenerated.
14681
14682 2014-01-06  Sasha Smundak  <asmundak@google.com>
14683
14684         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14685
14686 2014-01-06  Tom Tromey  <tromey@redhat.com>
14687
14688         * doublest.c (convert_doublest_to_floatformat): Use const, not
14689         CONST.
14690         * somread.c (som_symtab_read): Likewise.
14691
14692 2014-01-07  Hui Zhu  <hui@codesourcery.com>
14693
14694         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14695         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14696         (gdb_bfd_fopen): Ditto.
14697         (gdb_bfd_openr): Ditto.
14698         (gdb_bfd_openw): Ditto.
14699         (gdb_bfd_openr_iovec): Ditto.
14700         (gdb_bfd_fdopenr): Ditto.
14701         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14702         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14703         with xstrdup.
14704         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14705         with xstrdup.
14706         * symfile-mem.c (symbol_file_add_from_memory): Removed
14707         gdb_bfd_stash_filename.
14708
14709 2014-01-03  Doug Evans  <dje@google.com>
14710
14711         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14712         output.
14713
14714 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14715
14716         Update year range in copyright notice of all files.
14717
14718 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14719
14720         * top.c (print_gdb_version): Set copyright year to 2014.
14721
14722 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14723
14724         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14725
14726 For older changes see ChangeLog-2013.
14727 \f
14728 Local Variables:
14729 mode: change-log
14730 left-margin: 8
14731 fill-column: 74
14732 version-control: never
14733 coding: utf-8
14734 End: