lookup_symbol_in_block: Renamed from lookup_symbol_aux_block.
[external/binutils.git] / gdb / ChangeLog
1 2014-11-06  Doug Evans  <xdje42@gmail.com>
2
3         * symtab.c (lookup_symbol_in_block): Renamed from
4         lookup_symbol_aux_block.  All callers updated.
5
6 2014-11-06  Doug Evans  <xdje42@gmail.com>
7
8         * symtab.c (lookup_static_symbol): Renamed from
9         lookup_static_symbol_aux.  All callers updated.
10         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
11         All callers updated.
12
13 2014-11-06  Doug Evans  <xdje42@gmail.com>
14
15         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
16         * block.c (block_lookup_symbol): Use it.
17         * cp-support.c (make_symbol_overload_list_block): Use it.
18         * symtab.c (iterate_over_symbols): Use it.
19
20 2014-11-06  Doug Evans  <xdje42@gmail.com>
21
22         * symtab.c (lookup_block_symbol): Moved to ...
23         * block.c (block_lookup_symbol):  ... here and renamed.
24         All callers updated.
25         * block.h (block_lookup_symbol): Declare.
26         * symtab.h (lookup_block_symbol): Delete.
27
28 2014-11-06  Doug Evans  <xdje42@gmail.com>
29
30         * ada-lang.c (ada_make_symbol_completion_list): Use
31         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
32         * symtab.c (lookup_objfile_from_block): Ditto.
33
34 2014-11-06  Doug Evans  <xdje42@gmail.com>
35
36         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
37         TYPE_CODE_STRUCT.
38
39 2014-11-06  Doug Evans  <xdje42@gmail.com>
40
41         * objfiles.c (get_objfile_arch): Constify.
42         * objfiles.h (get_objfile_arch): Update prototype.
43         * solib.c (solib_global_lookup): Fetch arch from objfile,
44         not target_gdbarch.
45
46 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
47
48         * nios2-tdep.c (wild_insn): Delete.
49         (profiler_insn, irqentry_insn): Delete.
50         (nios2_match_sequence): Delete.
51         (nios2_analyze_prologue): Update comments.  Remove matching
52         of obsolete profiler_insn and irqentry_insn sequences.
53
54 2014-11-05  Alan Modra  <amodra@gmail.com>
55
56         * charset.c (convert_between_encodings): Shrink obstack using
57         obstack_blank_fast.
58         * minsyms.c (install_minimal_symbols): Likewise.
59         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
60         to char* before doing pointer arithmetic.
61
62 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
63
64         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
65
66 2014-11-04  Pedro Alves  <palves@redhat.com>
67
68         * breakpoint.c (breakpoint_thread_match): Delete function.
69         * breakpoint.h (breakpoint_thread_match): Delete declaration.
70
71 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
72
73         PR c++/17494
74         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
75         the method args also under EVAL_SKIP when evaluating method
76         calls under EVAL_SKIP.
77
78 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
79
80         * dwarf2loc.c (read_pieced_value): Do big endian
81         processing only if gdb_regnum is not -1.
82         (write_pieced_value): Ditto.
83
84 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
85
86         * arm-linux-tdep.c (arm_linux_init_abi): Use
87         info.byte_order_for_code to choose endianity of breakpoint
88         instructions snippets.
89
90 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
91
92         * arm-tdep.c (extract_arm_insn): Use
93         gdbarch_byte_order_for_code to read arm instruction.
94
95 2014-11-02  Doug Evans  <xdje42@gmail.com>
96
97         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
98
99 2014-11-02  Doug Evans  <xdje42@gmail.com>
100
101         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
102         main_subfile before returning.
103
104 2014-10-31  Doug Evans  <xdje42@gmail.com>
105
106         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
107         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
108
109 2014-10-31  Doug Evans  <xdje42@gmail.com>
110
111         * valops.c (value_cast_pointers): Fix whitespace.
112         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
113         Ditto.
114
115 2014-10-30  Doug Evans  <dje@google.com>
116
117         * NEWS: Mention ability add attributes to gdb.Objfile and
118         gdb.Progspace objects.
119         * python/py-objfile.c (objfile_object): New member dict.
120         (objfpy_dealloc): Py_XDECREF dict.
121         (objfpy_initialize): Initialize dict.
122         (objfile_getset): Add __dict__.
123         (objfile_object_type): Set tp_dictoffset member.
124         * python/py-progspace.c (progspace_object): New member dict.
125         (pspy_dealloc): Py_XDECREF dict.
126         (pspy_initialize): Initialize dict.
127         (pspace_getset): Add __dict__.
128         (pspace_object_type): Set tp_dictoffset member.
129
130 2014-10-30  Yao Qi  <yao@codesourcery.com>
131
132         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
133         replace '\\' with '\\\\'.
134
135 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
136
137         GDB 7.8.1 released.
138
139 2014-10-29  Pedro Alves  <palves@redhat.com>
140
141         PR gdb/17408
142         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
143         instead of assuming a thread with a stepping range is always
144         stepping.
145
146 2014-10-29  Pedro Alves  <palves@redhat.com>
147
148         PR python/17372
149         * event-top.c (change_line_handler): Call
150         gdb_rl_callback_handler_remove instead of
151         rl_callback_handler_remove.
152         (callback_handler_installed): New global.
153         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
154         (gdb_rl_callback_handler_reinstall): New functions.
155         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
156         gdb_rl_callback_handler_install instead of
157         rl_callback_handler_remove and rl_callback_handler_install.
158         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
159         instead of rl_callback_handler_remove.
160         * event-top.h (gdb_rl_callback_handler_remove)
161         (gdb_rl_callback_handler_install)
162         (gdb_rl_callback_handler_reinstall): New declarations.
163         * infrun.c (reinstall_readline_callback_handler_cleanup): New
164         cleanup function.
165         (fetch_inferior_event): Install it.
166         * top.c (gdb_readline_wrapper_line) Call
167         gdb_rl_callback_handler_remove instead of
168         rl_callback_handler_remove.
169         (gdb_readline_wrapper_cleanup): Don't call
170         rl_callback_handler_install.
171
172 2014-10-29  Pedro Alves  <palves@redhat.com>
173
174         * event-top.c (command_line_handler): Clear the first byte of
175         linebuffer, when it is first allocated.
176
177 2014-10-29  Pedro Alves  <palves@redhat.com>
178
179         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
180         TRY_CATCH.
181
182 2014-10-29  Pedro Alves  <palves@redhat.com>
183
184         PR tui/16138
185         PR tui/17519
186         * tui/tui-interp.c (tui_is_toplevel): Delete global.
187         (tui_allowed_p): Delete function.
188         * tui/tui.c: Include "interps.h".
189         (tui_enable): Don't use tui_allowed_p.  Error out here with
190         detailed error messages if the TUI is the top level interpreter,
191         or if output is not a terminal.  Use newterm instead of initscr,
192         and error out if initializing the terminal fails.  Also error out if
193         the terminal doesn't support cursor addressing.
194         * tui/tui.h (tui_allowed_p): Delete declaration.
195
196 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
197
198         * arm-tdep.c (arm_skip_stack_protector): Return early if
199         address loaded by first "ldr" instruction does not have
200         a corresponding minimal symbol.  Update comment.
201
202 2014-10-29  Yao Qi  <yao@codesourcery.com>
203
204         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
205         loaded address correctly of ldr instruction.
206
207 2014-10-28  Pedro Alves  <palves@redhat.com>
208
209         PR gdb/12623
210         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
211         field.
212         * infrun.c (resume) <stepping breakpoint instruction>: Set the
213         thread's stepped_breakpoint field.  Skip if reverse debugging.
214         Add comment.
215         (init_thread_stepping_state, handle_signal_stop): Clear the
216         thread's stepped_breakpoint field.
217
218 2014-10-27  Pedro Alves  <palves@redhat.com>
219
220         * remote.c (remote_thread_alive): New, factored out from ...
221         (remote_thread_alive): ... this.
222         (remote_update_thread_list): Bail out before deleting threads if
223         the target returned an empty list, and, the current thread has a
224         magic/fake ptid.
225
226 2014-10-27  Pedro Alves  <palves@redhat.com>
227
228         * infrun.c (handle_signal_stop): Also skip handlers when a random
229         signal arrives while handling a "stepi" or a "nexti".  Set the
230         thread's 'step_after_step_resume_breakpoint' flag.
231
232 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
233
234         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
235         (arm_record_ld_st_imm_offset): Reimplement to cover all
236         load/store cases for ARM opcode 010.
237         (arm_record_ld_st_multiple): Reimplement to cover all
238         load/store cases for ARM opcode 100.
239
240 2014-10-26  Doug Evans  <xdje42@gmail.com>
241
242         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
243
244 2014-10-26  Doug Evans  <xdje42@gmail.com>
245
246         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
247         parameter "kind" to "block_index".
248         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
249         "block_index".
250         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
251
252 2014-10-26  Doug Evans  <xdje42@gmail.com>
253
254         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
255
256 2014-10-26  Doug Evans  <xdje42@gmail.com>
257
258         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
259         obstack_alloc.
260
261 2014-10-26  Doug Evans  <xdje42@gmail.com>
262
263         * parser-defs.h (block_found): Move decl from here ...
264         * symtab.h (block_found): ... to here.
265
266 2014-10-26  Doug Evans  <xdje42@gmail.com>
267
268         * symtab.h (struct field_of_this_result): Fix typo in comment.
269         (lookup_symbol_in_language): Move function comment here.
270         (lookup_symbol): Improve function comment.
271         (basic_lookup_symbol_nonlocal): Ditto.
272         (lookup_symbol_static, lookup_symbol_global): Ditto.
273         (lookup_symbol_aux_block): Ditto.
274         (lookup_language_this): Add function comment.
275         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
276         function comment.
277         (lookup_block_symbol): Improve function comment.
278         (lookup_struct): Fix capitalization in function comment.
279         (lookup_transparent_type): Add function comment.
280         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
281         Improve function comment.
282         (lookup_objfile_from_block): Add function comment.
283         * symtab.c (lookup_symbol_in_language): Update function comment.
284         (lookup_symbol, lookup_language_this): Ditto.
285         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
286         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
287         (basic_lookup_symbol_nonlocal): Ditto.
288         (lookup_symbol_static, lookup_symbol_global): Ditto.
289         (lookup_transparent_type, lookup_block_symbol): Ditto.
290
291 2014-10-25  Doug Evans  <xdje42@gmail.com>
292
293         * symtab.c (types_info): Delete forward decl.
294         (functions_info, variables_info, sources_info): Ditto.
295         (_initialize_symtab): Rewrite forward decl to use
296         initialize_file_ftype.
297
298 2014-10-25  Doug Evans  <xdje42@gmail.com>
299
300         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
301
302 2014-10-25  Doug Evans  <xdje42@gmail.com>
303
304         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
305         of local var child_die.
306
307 2014-10-24  Don Breazeal  <donb@codesourcery.com>
308
309         * infrun.c (follow_fork_inferior): Update fork message printing
310         to use target_terminal_ours_for_output instead of
311         target_terminal_ours, to use _() for all format strings, to print
312         "vfork" instead of "fork" for vforks, and to add a detach message.
313         (handle_vfork_child_exec_or_exit): Update message printing to use
314         target_terminal_ours_for_output instead of target_terminal_ours, to
315         use _() for all format strings, and to fix some formatting.
316
317 2014-10-24  Pedro Alves  <palves@redhat.com>
318
319         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
320         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
321         * config/vax/vax.mh: Delete.
322         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
323         obsolete configurations section.
324         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
325         * vax-nat.c: Delete file.
326
327 2014-10-24  Pedro Alves  <palves@redhat.com>
328
329         * NEWS (Removed targets): Add OS/arch column.
330
331 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
332
333         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
334         on the arg type of a constructor only if it is of reference type.
335
336 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
337
338         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
339         accessors and constants from nios2 opcodes update.
340         (nios2_get_next_pc): Likewise.
341
342 2014-10-19  Doug Evans  <xdje42@gmail.com>
343
344         * gdbthread.h (set_running): Fix comment.
345         (set_executing, finish_thread_state): Fix comment.
346
347 2014-10-18  Doug Evans  <xdje42@gmail.com>
348
349         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
350
351 2014-10-17  Doug Evans  <dje@google.com>
352
353         * NEWS: Mention new event gdb.clear_objfiles.
354         * python/py-event.h (emit_clear_objfiles_event): Clear
355         * python/py-events.h (events_object): New member clear_objfiles.
356         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
357         event.
358         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
359         emit clear_objfiles event.
360         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
361         function.
362         (emit_clear_objfiles_event): New function.
363         (clear_objfiles): New event.
364         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
365         Declare.
366         * python/python.c (_initialize_python): Call
367         gdbpy_initialize_clear_objfiles_event.
368
369 2014-10-17  Doug Evans  <dje@google.com>
370
371         * NEWS: Mention new gdb.Objfile.progspace attribute.
372         * python/py-objfile.c (objfpy_get_progspace): New function.
373         (objfile_getset): New entry for "progspace".
374
375 2014-10-17  Pedro Alves  <palves@redhat.com>
376
377         PR gdb/17471
378         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
379         returns a copy of the input.
380         (run_command_1, continue_command, step_1, jump_command)
381         (signal_command, until_command, advance_command, finish_command)
382         (attach_command): Adjust and install a cleanup to free the
383         stripped args.
384
385 2014-10-17  Pedro Alves  <palves@redhat.com>
386
387         PR gdb/17300
388         * infcmd.c (continue_1): If continuing all threads in the
389         foreground, make sure the inferior's terminal settings are put in
390         effect.
391
392 2014-10-17  Pedro Alves  <palves@redhat.com>
393
394         PR gdb/17472
395         * annotate.c (annotate_breakpoints_invalid): Use
396         target_terminal_our_for_output instead of target_terminal_ours.
397         Give back the terminal to the target.
398         (annotate_frames_invalid): Likewise.
399
400 2014-10-17  Pedro Alves  <palves@redhat.com>
401
402         * target.c (enum terminal_state): New enum.
403         (terminal_state): New global.
404         (target_terminal_init): New function.
405         (target_terminal_inferior): Skip if inferior already owns the
406         terminal.
407         (target_terminal_ours, target_terminal_ours_for_output): New
408         functions.
409         * target.h (target_terminal_init): Convert to function prototype.
410         (target_terminal_ours_for_output): Convert to function prototype
411         and tweak comment.
412         (target_terminal_ours): Convert to function prototype and tweak
413         comment.
414         * windows-nat.c (do_initial_windows_stuff): Call
415         target_terminal_init instead of child_terminal_init_with_pgrp.
416
417 2014-10-17  Pedro Alves  <palves@redhat.com>
418
419         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
420         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
421         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
422         solib-osf.c.
423         * NEWS: Mention that support for alpha*-*-osf* has been removed.
424         * ada-lang.h [__alpha__ && __osf__]
425         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
426         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
427         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
428         GDB_OSABI_OSF1.
429         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
430         files.
431         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
432         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
433         * configure: Regenerate.
434         * configure.ac: Remove references to osf.
435         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
436         section.  Remove all other references to osf.
437         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
438         Remove all other references to osf.
439         * dec-thread.c: Delete file.
440         * defs.h (GDB_OSABI_OSF1): Delete.
441         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
442         defined.
443         * osabi.c (gdb_osabi_names): Delete "OSF/1".
444         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
445         Delete code.
446         (unconditionally_kill_inferior)
447         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
448         * solib-osf.c: Delete file.
449
450 2014-10-17  Pedro Alves  <palves@redhat.com>
451
452         * remote.c (clear_threads_listing_context): Move higher up, out of
453         the HAVE_LIBEXPAT guard.
454
455 2014-10-16  Tristan Gingold  <gingold@adacore.com>
456
457         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
458         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
459         on amd64.
460
461 2014-10-15  Pedro Alves  <palves@redhat.com>
462
463         * dec-thread.c (dec_thread_count_gdb_threads)
464         (dec_thread_add_gdb_thread): Delete.
465         (dec_thread_update_thread_list): Delete.
466         (dec_thread_find_new_threads): Rename to ...
467         (dec_thread_update_thread_list): ... this.  Delete GDB-size
468         threads that are no longer found in dec_thread_list.
469         (resync_thread_list): Delete.
470         (dec_thread_wait): Call dec_thread_update_thread_list instead of
471         resync_thread_list.
472
473 2014-10-15  Pedro Alves  <palves@redhat.com>
474
475         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
476         * remote.c (remote_update_thread_list): Skip calling prune_threads
477         if any thread listing method is supported, and instead walk over
478         the set of remote threads listed, deleting those that are not
479         found in GDB's thread list.
480
481 2014-10-15  Pedro Alves  <palves@redhat.com>
482
483         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
484         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
485         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
486         (bsd_uthread_target): Adjust.
487         * corelow.c (core_open): Adjust.
488         * dec-thread.c (dec_thread_find_new_threads): Update comment.
489         (dec_thread_update_thread_list): New function.
490         (init_dec_thread_ops): Adjust.
491         * gdbthread.h (prune_threads): New declaration.
492         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
493         (thread_db_update_thread_list): ... this.  Call prune_threads.
494         (init_thread_db_ops): Adjust.
495         * nto-procfs.c (procfs_find_new_threads): Rename to ...
496         (procfs_update_thread_list): ... this.  Call prune_threads.
497         (procfs_attach, procfs_create_inferior, init_procfs_targets):
498         Adjust.
499         * obsd-nat.c (obsd_find_new_threads): Rename to ...
500         (obsd_update_thread_list): ... this.  Call prune_threads.
501         (obsd_add_target): Adjust.
502         * procfs.c (procfs_target): Adjust.
503         (procfs_notice_thread): Update comment.
504         (procfs_find_new_threads): Rename to ...
505         (procfs_update_thread_list): ... this.  Call prune_threads.
506         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
507         comment.
508         (ravenscar_wait): Adjust.
509         (ravenscar_find_new_threads): Rename to ...
510         (ravenscar_update_thread_list): ... this.  Call prune_threads.
511         (init_ravenscar_thread_ops): Adjust.
512         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
513         (record_btrace_update_thread_list): ... this.  Adjust comment.
514         (init_record_btrace_ops): Adjust.
515         * remote.c (remote_threads_info): Rename to ...
516         (remote_update_thread_list): ... this.  Call prune_threads.
517         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
518         Adjust.
519         * sol-thread.c (check_for_thread_db): Adjust.
520         (sol_find_new_threads_callback): Rename to ...
521         (sol_update_thread_list_callback): ... this.
522         (sol_find_new_threads): Rename to ...
523         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
524         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
525         * target-delegates.c: Regenerate.
526         * target.c (target_find_new_threads): Rename to ...
527         (target_update_thread_list): ... this.
528         * target.h (struct target_ops): Rename to_find_new_threads field
529         to to_update_thread_list.
530         (target_find_new_threads): Rename to ...
531         (target_update_thread_list): ... this.
532         * thread.c (prune_threads): Make extern.
533         (update_thread_list): Adjust.
534
535 2014-10-15  Pedro Alves  <palves@redhat.com>
536
537         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
538         Add describing comment.  Return -1 if the qL packet is not
539         supported.
540         (struct thread_item, thread_item_t): Move higher up in
541         the file.  Add comments.
542         (struct threads_parsing_context): Move higher up in
543         the file, add comments, and remote to ...
544         (struct threads_listing_context): ... this.
545         (remote_newthread_step): Don't add the thread to GDB's thread
546         database here.  Instead push it to the thread_listing_context
547         list.
548         (remote_find_new_threads): Rename to ...
549         (remote_get_threads_with_ql): ... this.  Add target_ops and
550         targets_listing_context parameters.  Pass down context.
551         (start_thread): Adjust.
552         (clear_threads_parsing_context): Rename to ...
553         (clear_threads_listing_context): ... this.
554         (remote_get_threads_with_qxfer): New, with parts salvaged from old
555         remote_threads_info.
556         (remote_get_threads_with_qthreadinfo): Ditto.
557         (remote_threads_info): Reimplement.
558
559 2014-10-15  Pedro Alves  <palves@redhat.com>
560
561         * infrun.c (resume): Don't force displaced-stepping for all
562         single-steps on software single-stepping archs.
563
564 2014-10-15  Pedro Alves  <palves@redhat.com>
565
566         * breakpoint.c (single_step_breakpoints): Delete global.
567         (insert_single_step_breakpoint): Adjust to store the breakpoint
568         pointer in the current thread.
569         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
570         (cancel_single_step_breakpoints): Delete functions.
571         (breakpoint_has_location_inserted_here): Make extern.
572         (single_step_breakpoint_inserted_here_p): Adjust to walk the
573         breakpoint list.
574         * breakpoint.h (breakpoint_has_location_inserted_here): New
575         declaration.
576         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
577         (cancel_single_step_breakpoints): Remove declarations.
578         * gdbthread.h (struct thread_control_state)
579         <single_step_breakpoints>: New field.
580         (delete_single_step_breakpoints)
581         (thread_has_single_step_breakpoints_set)
582         (thread_has_single_step_breakpoint_here): New declarations.
583         * infrun.c (follow_exec): Also clear the single-step breakpoints.
584         (singlestep_breakpoints_inserted_p, singlestep_ptid)
585         (singlestep_pc): Delete globals.
586         (infrun_thread_ptid_changed): Remove references to removed
587         globals.
588         (resume_cleanups): Delete the current thread's single-step
589         breakpoints.
590         (maybe_software_singlestep): Remove references to removed globals.
591         (resume): Adjust to use thread_has_single_step_breakpoints_set and
592         delete_single_step_breakpoints.
593         (init_wait_for_inferior): Remove references to removed globals.
594         (delete_thread_infrun_breakpoints): Delete the thread's
595         single-step breakpoints too.
596         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
597         single-step breakpoints here.
598         (delete_stopped_threads_single_step_breakpoints): New function.
599         (adjust_pc_after_break): Adjust to use
600         thread_has_single_step_breakpoints_set.
601         (handle_inferior_event): Remove references to removed globals.
602         Use delete_stopped_threads_single_step_breakpoints.
603         (handle_signal_stop): Adjust to per-thread single-step
604         breakpoints.  Swap test order to do cheaper tests first.
605         (switch_back_to_stepped_thread): Extend debug output.  Remove
606         references to removed globals.
607         * record-full.c (record_full_wait_1): Adjust to per-thread
608         single-step breakpoints.
609         * thread.c (delete_single_step_breakpoints)
610         (thread_has_single_step_breakpoints_set)
611         (thread_has_single_step_breakpoint_here): New functions.
612         (clear_thread_inferior_resources): Also delete the thread's
613         single-step breakpoints.
614
615 2014-10-15  Pedro Alves  <palves@redhat.com>
616
617         * thread.c (delete_thread_breakpoint): New function.
618         (delete_step_resume_breakpoint)
619         (delete_exception_resume_breakpoint): Use it.
620         (delete_at_next_stop): New function.
621         (clear_thread_inferior_resources): Use delete_at_next_stop.
622
623 2014-10-15  Pedro Alves  <palves@redhat.com>
624
625         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
626         (breakpoint_inserted_here_p): ... here.  Remove special case for
627         software single-step breakpoints.
628         (find_non_raw_software_breakpoint_inserted_here): Inline ...
629         (software_breakpoint_inserted_here_p): ... here.  Remove special
630         case for software single-step breakpoints.
631         (bp_target_info_copy_insertion_state)
632         (deprecated_insert_raw_breakpoint)
633         (deprecated_remove_raw_breakpoint): Delete functions.
634         * breakpoint.h (deprecated_insert_raw_breakpoint)
635         (deprecated_remove_raw_breakpoint): Remove declarations.
636
637 2014-10-15  Pedro Alves  <palves@redhat.com>
638
639         PR breakpoints/9649
640         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
641         Delete array globals.
642         (single_step_breakpoints): New global.
643         (breakpoint_xfer_memory): Remove special handling for single-step
644         breakpoints.
645         (update_breakpoints_after_exec): Delete bp_single_step
646         breakpoints.
647         (detach_breakpoints): Remove special handling for single-step
648         breakpoints.
649         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
650         (bpstat_stop_status): Add comment.
651         (bpstat_what, bptype_string, print_one_breakpoint_location)
652         (adjust_breakpoint_address, init_bp_location): Handle
653         bp_single_step.
654         (new_single_step_breakpoint): New function.
655         (set_momentary_breakpoint, bkpt_remove_location): Remove special
656         handling for single-step breakpoints.
657         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
658         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
659         Rewrite.
660         (detach_single_step_breakpoints, find_single_step_breakpoint):
661         Delete functions.
662         (breakpoint_has_location_inserted_here): New function.
663         (single_step_breakpoint_inserted_here_p): Rewrite.
664         * breakpoint.h: Remove FIXME.
665         (enum bptype) <bp_single_step>: New enum value.
666         (insert_single_step_breakpoint): Update comment.
667         * infrun.c (resume_cleanups)
668         (delete_step_thread_step_resume_breakpoint): Remove single-step
669         breakpoints.
670         (fetch_inferior_event): Install a cleanup that removes infrun
671         breakpoints.
672         (switch_back_to_stepped_thread) <expect thread advanced also>:
673         Clear step-over info.
674
675 2014-10-15  Pedro Alves  <palves@redhat.com>
676
677         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
678         (delete_thread_infrun_breakpoints): New function, with parts
679         salvaged from delete_step_resume_breakpoint_callback.
680         (delete_step_thread_step_resume_breakpoint): Delete.
681         (for_each_just_stopped_thread_callback_func): New typedef.
682         (for_each_just_stopped_thread): New function.
683         (delete_just_stopped_threads_infrun_breakpoints): New function.
684         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
685         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
686         ... this.  Adjust.
687         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
688
689 2014-10-15  Pedro Alves  <palves@redhat.com>
690
691         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
692         trying to step past a non-steppable watchpoint.
693         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
694         field.
695         * infrun.c (struct step_over_info): Add new field
696         'nonsteppable_watchpoint_p' and adjust comments.
697         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
698         Adjust.
699         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
700         (stepping_past_nonsteppable_watchpoint): New function.
701         (step_over_info_valid_p): Also return true if stepping past a
702         nonsteppable watchpoint.
703         (proceed): Adjust call to set_step_over_info.  Remove reference to
704         init_infwait_state.
705         (init_wait_for_inferior): Remove reference to init_infwait_state.
706         (waiton_ptid): Delete global.
707         (struct execution_control_state)
708         <stepped_after_stopped_by_watchpoint>: Delete field.
709         (wait_for_inferior, fetch_inferior_event): Always pass
710         minus_one_ptid to target_wait.
711         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
712         field.
713         (init_infwait_state): Delete function.
714         (handle_inferior_event): Remove infwait_state handling.
715         (handle_signal_stop) <watchpoints handling>: Adjust after
716         stepped_after_stopped_by_watchpoint removal.  Don't remove
717         breakpoints here nor set infwait_state.  Set the thread's
718         stepping_over_watchpoint flag, and call keep_going instead.
719         (keep_going): Handle stepping_over_watchpoint.  Adjust
720         set_step_over_info calls.
721         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
722         function.
723
724 2014-10-15  Pedro Alves  <palves@redhat.com>
725
726         * infrun.c (step_over_info_valid_p): New function.
727         (resume): Use step_over_info_valid_p instead of checking the
728         threads's trap_expected flag.
729
730 2014-10-15  Doug Evans  <dje@google.com>
731             Walfred Tedeschi  <walfred.tedeschi@intel.com>
732
733         PR python/17364
734         * python/lib/gdb/__init__.py (packages): Add "printer".
735         * python/lib/gdb/command/bound_registers.py: Moved to ...
736         * python/lib/gdb/printer/bound_registers.py: ... here.
737         Add printer to global set of builtin printers.  Rename printer from
738         "bound" to "mpx_bound128".
739         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
740         registered as global "builtin" printer.
741         (add_builtin_pretty_printer): New function.
742         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
743         gdb/printer/__init__.py.
744
745 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
746
747         * Makefile.in (SFILES): Remove d-support.c.
748         (COMMON_OBS): Remove d-support.o.
749         * d-lang.h (d_parse_symbol): Remove declaration.
750         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
751         * d-support.c: Remove file.
752
753 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
754
755         * gdb/infrun.c (process_event_stop_test): Apply
756         gdbarch_addr_bits_remove to longjmp resume address.
757
758 2014-10-15  Pedro Alves  <palves@redhat.com>
759
760         * regformats/microblaze.dat: Delete file.
761
762 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
763
764         * features/Makefile (microblaze-expedite): Replace pc with rpc.
765         * regformats/microblaze-with-stack-protect.dat: Regenerate.
766
767 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
768
769         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
770         as non-trivial.
771
772 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
773
774         PR c++/13403
775         PR c++/15154
776         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
777         with qualified args.
778
779 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
780
781         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
782         of the case where the second operand is a pointer.
783         <BINOP_SUB>: Likewise.
784
785 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
786
787         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
788         only if it is not NULL.
789         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
790         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
791         (struct probe_ops) <clear_semaphore>: Likewise.
792         * tracepoint.c (start_tracing): Call set_semaphore only if it is
793         not NULL.
794         (stop_tracing): Likewise, for clear_semaphore.
795
796 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
797
798         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
799         using language_c, instead of current_language.
800
801 2014-10-13  Doug Evans  <dje@google.com>
802
803         * python/py-objfile.c (objfpy_initialize): New function.
804         (objfpy_new, objfile_to_objfile_object): Call it.
805         * python/py-progspace.c (pspy_initialize): New function.
806         (pspy_new, pspace_to_pspace_object): Call it.
807
808 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
809             Jan Kratochvil  <jan.kratochvil@redhat.com>
810
811         Fix "save breakpoints" for "catch" command.
812         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
813         newline.
814
815 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
816
817         Fix "save breakpoints" for "disable $bpnum" command.
818         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
819
820 2014-10-10  Pedro Alves  <palves@redhat.com>
821
822         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
823         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
824         (HFILES_NO_SRCDIR): Remove solib-irix.h.
825         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
826         and been removed.
827         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
828         * configure.ac: Remove references to IRIX.
829         * configure.host: Add *-*-irix* to the obsolete hosts section.
830         Remove all other references to irix.
831         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
832         Delete files.
833
834 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
835
836         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
837         isn't valid, release the tdesc arch data and return NULL.
838
839 2014-10-10  Pedro Alves  <palves@redhat.com>
840
841         * linux-tdep.c: Include observer.h.
842         (linux_inferior_data): New global.
843         (struct linux_info): New structure.
844         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
845         (get_linux_inferior_data): New functions.
846         (linux_vsyscall_range): Rename to ...
847         (linux_vsyscall_range_raw): ... this.
848         (linux_vsyscall_range): New function; handles caching.
849         (_initialize_linux_tdep): Register linux_inferior_data.  Install
850         inferior_exit and inferior_appeared observers.
851
852 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
853             Pedro Alves  <palves@redhat.com>
854
855         PR symtab/14466
856         * solib-svr4.c (svr4_read_so_list): Rename to ...
857         (svr4_current_sos_1): ... this and change the function comment.
858         (svr4_current_sos): New function.
859
860 2014-10-10  Pedro Alves  <palves@redhat.com>
861
862         * arch-utils.c (default_vsyscall_range): New function.
863         * arch-utils.h (default_vsyscall_range): New declaration.
864         * gdbarch.sh (vsyscall_range): New hook.
865         * gdbarch.h, gdbarch.c: Regenerate.
866         * linux-tdep.c (linux_vsyscall_range): New function.
867         (linux_init_abi): Install linux_vsyscall_range as
868         vsyscall_range gdbarch hook.
869         * memrange.c (address_in_mem_range): New function.
870         * memrange.h (address_in_mem_range): New declaration.
871         * symfile-mem.c (find_vdso_size): Delete function.
872         (add_vsyscall_page): Use gdbarch_vsyscall_range.
873
874 2014-10-10  Pedro Alves  <palves@redhat.com>
875
876         * infrun.c (normal_stop): Fix typo in comment.
877
878 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
879
880         PR tdep/9390
881         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
882         typo when using logical AND to determine instruction type.
883
884 2014-10-09  Yao Qi  <yao@codesourcery.com>
885
886         * infrun.c (handle_signal_stop): Remove local variable
887         'printed'.
888
889 2014-10-08  Stan Shebs  <stan@codesourcery.com>
890
891         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
892
893 2014-10-08  Gary Benson  <gbenson@redhat.com>
894
895         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
896
897 2014-10-08  Gary Benson  <gbenson@redhat.com>
898
899         * common/common-defs.h: Include common-exceptions.h.
900         * exceptions.h: Do not include common-exceptions.h.
901
902 2014-10-08  Gary Benson  <gbenson@redhat.com>
903
904         * common/common-defs.h: Include cleanups.h.
905         * common/common-exceptions.c: Do not include cleanups.h.
906         * utils.h: Likewise.
907
908 2014-10-08  Gary Benson  <gbenson@redhat.com>
909
910         * ada-lang.c: Do not include exceptions.h.
911         * ada-valprint.c: Likewise.
912         * amd64-tdep.c: Likewise.
913         * auto-load.c: Likewise.
914         * block.c: Likewise.
915         * break-catch-throw.c: Likewise.
916         * breakpoint.c: Likewise.
917         * btrace.c: Likewise.
918         * c-lang.c: Likewise.
919         * cli/cli-cmds.c: Likewise.
920         * cli/cli-interp.c: Likewise.
921         * cli/cli-script.c: Likewise.
922         * completer.c: Likewise.
923         * corefile.c: Likewise.
924         * corelow.c: Likewise.
925         * cp-abi.c: Likewise.
926         * cp-support.c: Likewise.
927         * cp-valprint.c: Likewise.
928         * darwin-nat.c: Likewise.
929         * dwarf2-frame-tailcall.c: Likewise.
930         * dwarf2-frame.c: Likewise.
931         * dwarf2loc.c: Likewise.
932         * dwarf2read.c: Likewise.
933         * eval.c: Likewise.
934         * event-loop.c: Likewise.
935         * event-top.c: Likewise.
936         * f-valprint.c: Likewise.
937         * frame-unwind.c: Likewise.
938         * frame.c: Likewise.
939         * gdbtypes.c: Likewise.
940         * gnu-v2-abi.c: Likewise.
941         * gnu-v3-abi.c: Likewise.
942         * guile/scm-auto-load.c: Likewise.
943         * guile/scm-breakpoint.c: Likewise.
944         * guile/scm-cmd.c: Likewise.
945         * guile/scm-frame.c: Likewise.
946         * guile/scm-lazy-string.c: Likewise.
947         * guile/scm-param.c: Likewise.
948         * guile/scm-symbol.c: Likewise.
949         * guile/scm-type.c: Likewise.
950         * hppa-hpux-tdep.c: Likewise.
951         * i386-tdep.c: Likewise.
952         * inf-loop.c: Likewise.
953         * infcall.c: Likewise.
954         * infcmd.c: Likewise.
955         * infrun.c: Likewise.
956         * interps.c: Likewise.
957         * interps.h: Likewise.
958         * jit.c: Likewise.
959         * linespec.c: Likewise.
960         * linux-nat.c: Likewise.
961         * linux-thread-db.c: Likewise.
962         * m32r-rom.c: Likewise.
963         * main.c: Likewise.
964         * memory-map.c: Likewise.
965         * mi/mi-cmd-break.c: Likewise.
966         * mi/mi-cmd-stack.c: Likewise.
967         * mi/mi-interp.c: Likewise.
968         * mi/mi-main.c: Likewise.
969         * monitor.c: Likewise.
970         * nto-procfs.c: Likewise.
971         * objc-lang.c: Likewise.
972         * p-valprint.c: Likewise.
973         * parse.c: Likewise.
974         * ppc-linux-tdep.c: Likewise.
975         * printcmd.c: Likewise.
976         * probe.c: Likewise.
977         * python/py-auto-load.c: Likewise.
978         * python/py-breakpoint.c: Likewise.
979         * python/py-cmd.c: Likewise.
980         * python/py-finishbreakpoint.c: Likewise.
981         * python/py-frame.c: Likewise.
982         * python/py-framefilter.c: Likewise.
983         * python/py-function.c: Likewise.
984         * python/py-gdb-readline.c: Likewise.
985         * python/py-inferior.c: Likewise.
986         * python/py-infthread.c: Likewise.
987         * python/py-lazy-string.c: Likewise.
988         * python/py-linetable.c: Likewise.
989         * python/py-param.c: Likewise.
990         * python/py-prettyprint.c: Likewise.
991         * python/py-symbol.c: Likewise.
992         * python/py-type.c: Likewise.
993         * python/py-value.c: Likewise.
994         * python/python-internal.h: Likewise.
995         * python/python.c: Likewise.
996         * record-btrace.c: Likewise.
997         * record-full.c: Likewise.
998         * regcache.c: Likewise.
999         * remote-fileio.c: Likewise.
1000         * remote-mips.c: Likewise.
1001         * remote.c: Likewise.
1002         * rs6000-aix-tdep.c: Likewise.
1003         * rs6000-nat.c: Likewise.
1004         * skip.c: Likewise.
1005         * solib-darwin.c: Likewise.
1006         * solib-dsbt.c: Likewise.
1007         * solib-frv.c: Likewise.
1008         * solib-ia64-hpux.c: Likewise.
1009         * solib-spu.c: Likewise.
1010         * solib-svr4.c: Likewise.
1011         * solib.c: Likewise.
1012         * spu-tdep.c: Likewise.
1013         * stack.c: Likewise.
1014         * stap-probe.c: Likewise.
1015         * symfile-mem.c: Likewise.
1016         * symmisc.c: Likewise.
1017         * target.c: Likewise.
1018         * thread.c: Likewise.
1019         * top.c: Likewise.
1020         * tracepoint.c: Likewise.
1021         * tui/tui-interp.c: Likewise.
1022         * typeprint.c: Likewise.
1023         * utils.c: Likewise.
1024         * valarith.c: Likewise.
1025         * valops.c: Likewise.
1026         * valprint.c: Likewise.
1027         * value.c: Likewise.
1028         * varobj.c: Likewise.
1029         * windows-nat.c: Likewise.
1030         * xml-support.c: Likewise.
1031
1032 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1033
1034         * mips-tdep.c (add_offset_16): Rewrite to implement what the
1035         name implies.
1036         (extended_mips16_next_pc): Update accordingly.
1037
1038 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1039
1040         * mips-tdep.c (mips16_instruction_is_compact_branch): New
1041         function.
1042         (micromips_instruction_is_compact_branch): Likewise.
1043         (mips16_scan_prologue): Terminate scanning upon seeing a branch
1044         or a compact jump, reaching a jump delay slot, or seeing a
1045         second non-prologue instruction.
1046         (micromips_scan_prologue): Also terminate scanning upon seeing a
1047         compact branch or jump, or reaching a branch or jump delay slot.
1048         (mips32_scan_prologue): Terminate scanning upon reaching a branch
1049         or jump delay slot, or seeing a second non-prologue instruction.
1050         (mips32_instruction_has_delay_slot): Retain instruction
1051         examination code only, update arguments accordingly and move
1052         instruction fetch pieces to...
1053         (mips32_insn_at_pc_has_delay_slot): ... this new function.
1054         (micromips_instruction_has_delay_slot): Likewise and to...
1055         (micromips_insn_at_pc_has_delay_slot): ... this new function.
1056         (mips16_instruction_has_delay_slot): Likewise and to...
1057         (mips16_insn_at_pc_has_delay_slot): ... this new function.
1058         (mips_single_step_through_delay): Update accordingly.
1059         (mips_adjust_breakpoint_address): Likewise.
1060
1061 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1062
1063         * mips-tdep.c (micromips_instruction_has_delay_slot): When
1064         !mustbe32 also return 1 for 32-bit instructions.
1065         (mips16_instruction_has_delay_slot): Likewise.  Add an
1066         explanatory comment.
1067
1068 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1069
1070         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1071         symbols special.
1072
1073 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1074
1075         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1076         update comments.
1077         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1078         for the breakpoint's address.  Don't preinitialize `placed_size'.
1079         (insert_bp_location): Set `reqstd_address' rather than
1080         `placed_address'.
1081         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1082         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1083         address.
1084         (bkpt_remove_location): Likewise.
1085         (deprecated_insert_raw_breakpoint): Likewise.
1086         (deprecated_remove_raw_breakpoint): Likewise.
1087         (find_single_step_breakpoint): Likewise.
1088         * mem-break.c (default_memory_insert_breakpoint): Use
1089         `reqstd_address' for the breakpoint's address.  Don't set
1090         `placed_address' or `placed_size' if breakpoint contents couldn't
1091         have been determined.
1092         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1093         the breakpoint's address.
1094         (remote_insert_hw_breakpoint): Likewise.  Don't set
1095         `placed_address' or `placed_size' if breakpoint couldn't have been
1096         set.
1097         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1098         `reqstd_address' for the breakpoint's address.
1099         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1100         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1101         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1102         * microblaze-linux-tdep.c
1103         (microblaze_linux_memory_remove_breakpoint): Likewise.
1104         * monitor.c (monitor_insert_breakpoint): Likewise.
1105         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1106         (procfs_insert_hw_breakpoint): Likewise.
1107         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1108         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1109         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1110         * remote-mips.c (mips_insert_breakpoint): Likewise.
1111         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1112
1113 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
1114
1115         * valops.c (value_assign): Check for bit field assignments
1116         before calling architecture-specific register value
1117         conversion functions.
1118
1119 2014-10-03  Pierre Muller  <muller@sourceware.org>
1120
1121         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1122
1123 2014-10-02  Pedro Alves  <palves@redhat.com>
1124
1125         * breakpoint.c (breakpoints_should_be_inserted_now): Use
1126         threads_are_executing.
1127         * breakpoint.h (breakpoints_should_be_inserted_now): Add
1128         describing comment.
1129         * gdbthread.h (threads_are_executing): Declare.
1130         (handle_signal_stop) <random signals>: Don't print about the
1131         signal here if stopping.
1132         (end_stepping_range): Don't notify observers here.
1133         (normal_stop): Update the thread list.  If stopped by a random
1134         signal or a stepping range ended, notify observers.
1135         * thread.c (threads_executing): New global.
1136         (init_thread_list): Clear 'threads_executing'.
1137         (set_executing): Set or clear 'threads_executing'.
1138         (threads_are_executing): New function.
1139         (update_threads_executing): New function.
1140         (update_thread_list): Use it.
1141
1142 2014-10-02  Pedro Alves  <palves@redhat.com>
1143
1144         PR breakpoints/17431
1145         * breakpoint.c (update_breakpoints_after_exec): Don't create
1146         overlay, longjmp, std terminate nor exception breakpoints here.
1147
1148 2014-10-02  Pedro Alves  <palves@redhat.com>
1149
1150         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1151         Adjust comments.
1152         * inferior.c (find_inferior_for_program_space): Give preference to
1153         the current inferior.
1154         * inferior.h (find_inferior_for_program_space): Update comment.
1155         * progspace.c (switch_to_program_space_and_thread): Prefer the
1156         current inferior if it's bound to the program space requested.  If
1157         the inferior found doesn't have a PID yet, don't bother looking up
1158         a thread.
1159         * progspace.h (switch_to_program_space_and_thread): Adjust
1160         comment.
1161         * thread.c (any_thread_of_process, any_live_thread_of_process):
1162         Give preference to the current thread.
1163
1164 2014-10-01  Pedro Alves  <palves@redhat.com>
1165
1166         * breakpoint.c (insert_bp_location): Error out if inserting a
1167         software breakpoint at a read-only address.
1168         * target.c (memory_xfer_check_region): New function, factored out
1169         from ...
1170         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
1171         ULONGEST.
1172         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1173         against the memory region attributes.
1174
1175 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
1176
1177         * NEWS: Announce new exit-code field in -list-thread-groups
1178         output.
1179         * inferior.c (exit_inferior_1): Don't clear exit code.
1180         (inferior_appeared): Clear exit code.
1181         * mi/mi-main.c (print_one_inferior): Add printing of the exit
1182         code.
1183
1184 2014-10-01  Pedro Alves  <palves@redhat.com>
1185
1186         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1187         GENERATED" along with emacs/vi read-only markers.
1188         * regformats/aarch64.dat: Regenerate.
1189         * regformats/arm-with-iwmmxt.dat: Regenerate.
1190         * regformats/arm-with-neon.dat: Regenerate.
1191         * regformats/arm-with-vfpv2.dat: Regenerate.
1192         * regformats/arm-with-vfpv3.dat: Regenerate.
1193         * regformats/i386/amd64-avx-linux.dat: Regenerate.
1194         * regformats/i386/amd64-avx.dat: Regenerate.
1195         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1196         * regformats/i386/amd64-avx512.dat: Regenerate.
1197         * regformats/i386/amd64-linux.dat: Regenerate.
1198         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1199         * regformats/i386/amd64-mpx.dat: Regenerate.
1200         * regformats/i386/amd64.dat: Regenerate.
1201         * regformats/i386/i386-avx-linux.dat: Regenerate.
1202         * regformats/i386/i386-avx.dat: Regenerate.
1203         * regformats/i386/i386-avx512-linux.dat: Regenerate.
1204         * regformats/i386/i386-avx512.dat: Regenerate.
1205         * regformats/i386/i386-linux.dat: Regenerate.
1206         * regformats/i386/i386-mmx-linux.dat: Regenerate.
1207         * regformats/i386/i386-mmx.dat: Regenerate.
1208         * regformats/i386/i386-mpx-linux.dat: Regenerate.
1209         * regformats/i386/i386-mpx.dat: Regenerate.
1210         * regformats/i386/i386.dat: Regenerate.
1211         * regformats/i386/x32-avx-linux.dat: Regenerate.
1212         * regformats/i386/x32-avx.dat: Regenerate.
1213         * regformats/i386/x32-avx512-linux.dat: Regenerate.
1214         * regformats/i386/x32-avx512.dat: Regenerate.
1215         * regformats/i386/x32-linux.dat: Regenerate.
1216         * regformats/i386/x32.dat: Regenerate.
1217         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1218         * regformats/mips-dsp-linux.dat: Regenerate.
1219         * regformats/mips-linux.dat: Regenerate.
1220         * regformats/mips64-dsp-linux.dat: Regenerate.
1221         * regformats/mips64-linux.dat: Regenerate.
1222         * regformats/nios2-linux.dat: Regenerate.
1223         * regformats/rs6000/powerpc-32.dat: Regenerate.
1224         * regformats/rs6000/powerpc-32l.dat: Regenerate.
1225         * regformats/rs6000/powerpc-64l.dat: Regenerate.
1226         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1227         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1228         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1229         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1230         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1231         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1232         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1233         * regformats/s390-linux32.dat: Regenerate.
1234         * regformats/s390-linux32v1.dat: Regenerate.
1235         * regformats/s390-linux32v2.dat: Regenerate.
1236         * regformats/s390-linux64.dat: Regenerate.
1237         * regformats/s390-linux64v1.dat: Regenerate.
1238         * regformats/s390-linux64v2.dat: Regenerate.
1239         * regformats/s390-te-linux64.dat: Regenerate.
1240         * regformats/s390x-linux64.dat: Regenerate.
1241         * regformats/s390x-linux64v1.dat: Regenerate.
1242         * regformats/s390x-linux64v2.dat: Regenerate.
1243         * regformats/s390x-te-linux64.dat: Regenerate.
1244         * regformats/tic6x-c62x-linux.dat: Regenerate.
1245         * regformats/tic6x-c62x.dat: Regenerate.
1246         * regformats/tic6x-c64x-linux.dat: Regenerate.
1247         * regformats/tic6x-c64x.dat: Regenerate.
1248         * regformats/tic6x-c64xp-linux.dat: Regenerate.
1249         * regformats/tic6x-c64xp.dat: Regenerate.
1250
1251 2014-10-01  Pedro Alves  <palves@redhat.com>
1252
1253         * features/Makefile: Update comments.
1254         (XMLTOC): List all xml files we build C files from.
1255         (clean-cfiles): New rule.
1256
1257 2014-10-01  Pedro Alves  <palves@redhat.com>
1258
1259         * features/i386/amd64-avx512-linux.c: Regenerate.
1260         * features/i386/amd64-avx512.c: Regenerate.
1261         * features/i386/x32-avx512-linux.c: Regenerate.
1262         * features/i386/x32-avx512.c: Regenerate.
1263
1264 2014-10-01  Pedro Alves  <palves@redhat.com>
1265
1266         * features/Makefile (WHICH): Remove arm-with-m,
1267         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1268
1269 2014-10-01  Pedro Alves  <palves@redhat.com>
1270
1271         * features/Makefile (clean): New rule.
1272
1273 2014-10-01  Pedro Alves  <palves@redhat.com>
1274
1275         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1276         (zmm14h): Add missing end quotes.
1277
1278 2014-10-01  Pedro Alves  <palves@redhat.com>
1279
1280         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1281         * features/aarch64.c: Regenerate.
1282
1283 2014-09-30  Don Breazeal  <donb@codesourcery.com>
1284
1285         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1286         code so as to work with follow_fork_inferior.
1287         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1288         (inf_ttrace_create_inferior): Remove reference to
1289         inf_ttrace_vfork_ppid.
1290         (inf_ttrace_attach): Ditto.
1291         (inf_ttrace_detach): Ditto.
1292         (inf_ttrace_kill): Use current_inferior instead of
1293         inf_ttrace_vfork_ppid.
1294         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1295         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1296         inferior away from the parent.
1297         * infrun.c (follow_fork): Call follow_fork_inferior instead of
1298         target_follow_fork.
1299         (follow_fork_inferior): New function.
1300         (follow_inferior_reset_breakpoints): Make function static.
1301         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1302         * linux-nat.c (linux_child_follow_fork): Move target-independent
1303         code to infrun.c:follow_fork_inferior.
1304
1305 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1306
1307         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1308         * gdbarch.c: Regenerate.
1309         * gdbarch.h: Likewise.
1310         * corelow.c (sniff_core_bfd): Drop presence check for deleted
1311         gdbarch method 'regset_from_core_section'.
1312         (get_core_register_section): Remove handling for the case that
1313         regset == NULL and regset_from_core_section is defined.
1314         (get_core_registers): Drop check for deleted method.
1315         * procfs.c (procfs_do_thread_registers): Adjust comment.
1316
1317 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1318
1319         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1320         (linux_nat_make_corefile_notes): Remove.
1321         (linux_target_install_ops): Do not set target method
1322         'make_corefile_notes'.
1323         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1324         Remove field.
1325         (linux_corefile_thread_callback): Instead of args->collect, call
1326         linux_collect_thread_registers.
1327         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
1328         NULL unless there is a regset iterator.
1329         (linux_make_corefile_notes_1): Remove.
1330         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1331         by linux_make_corefile_notes.
1332         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1333
1334 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1335
1336         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1337         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1338         Remove.
1339         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1340
1341 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1342
1343         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1344         (xtensa_iterate_over_regset_sections): New.
1345         (xtensa_gdbarch_init): Adjust gdbarch initialization.
1346
1347 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1348
1349         * vax-tdep.c (vax_regset_from_core_section): Remove.
1350         (vax_iterate_over_regset_sections): New.
1351         (vax_gdbarch_init): Adjust gdbarch initialization.
1352
1353 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1354
1355         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1356         (tilegx_regset_from_core_section): Remove.
1357         (tilegx_iterate_over_regset_sections): New.
1358         (tilegx_linux_init_abi): Adjust gdbarch initialization.
1359
1360 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1361
1362         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1363         (sparc_iterate_over_regset_sections): New.
1364         (sparc32_gdbarch_init): Adjust gdbarch initialization.
1365         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1366         targets.
1367         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1368         (sparc64fbsd_init_abi): Call fbsd_init_abi.
1369         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1370         target method 'make_corefile_notes'.
1371
1372 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1373
1374         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1375         'sizeof_gregset' and 'sizeof_fpregset'.
1376         * sh-tdep.c (sh_regset_from_core_section): Remove.
1377         (sh_iterate_over_regset_sections): New.
1378         (sh_gdbarch_init): Adjust gdbarch initialization.
1379         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1380         sizeof_fpregset.
1381         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1382         'sizeof_gregset'.
1383
1384 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1385
1386         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1387         (score7_linux_iterate_over_regset_sections): New.
1388         (score_gdbarch_init): Adjust gdbarch initialization.
1389
1390 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1391
1392         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1393         FreeBSD targets.
1394         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1395         method 'make_corefile_notes'.
1396         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1397         (ppcfbsd_regset_from_core_section): Remove.
1398         (ppcfbsd_iterate_over_regset_sections): New.
1399         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
1400         initialization.
1401         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1402         (ppcnbsd_iterate_over_regset_sections): New.
1403         (ppcnbsd_init_abi): Adjust.
1404         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1405         (ppcobsd_iterate_over_regset_sections): New.
1406         (ppcobsd_init_abi): Adjust.
1407         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1408         (rs6000_aix_iterate_over_regset_sections): New.
1409         (rs6000_aix_init_osabi): Adjust.
1410
1411 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1412
1413         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1414         (nios2_regset_from_core_section): Remove.
1415         (nios2_iterate_over_regset_sections): New.
1416         (nios2_linux_init_abi): Adjust gdbarch initialization.
1417
1418 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1419
1420         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1421         (am33_iterate_over_regset_sections): New.
1422         (am33_linux_init_osabi): Adjust gdbarch initialization.
1423
1424 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1425
1426         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1427         (mips_linux_iterate_over_regset_sections): New.
1428         (mips_linux_init_abi): Adjust gdbarch initialization.
1429         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1430         (mips64obsd_iterate_over_regset_sections): New.
1431         (mips64obsd_init_abi): Adjust.
1432         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1433         (mipsnbsd_iterate_over_regset_sections): New.
1434         (mipsnbsd_init_abi): Adjust.
1435
1436 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1437
1438         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1439         (m88k_iterate_over_regset_sections): New.
1440         (m88k_gdbarch_init): Adjust gdbarch initialization.
1441
1442 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1443
1444         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1445         (ia64_linux_iterate_over_regset_sections): New.
1446         (ia64_linux_init_abi): Adjust gdbarch initialization.
1447
1448 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1449
1450         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1451         (m68kbsd_iterate_over_regset_sections): New.
1452         (m68kbsd_init_abi): Adjust gdbarch initialization.
1453         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1454         (m68k_linux_iterate_over_regset_sections): New.
1455         (m68k_linux_init_abi): Adjust gdbarch initialization.
1456
1457 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1458
1459         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1460         (m32r_linux_regset_from_core_section): Remove.
1461         (m32r_linux_iterate_over_regset_sections): New.
1462         (m32r_linux_init_abi): Adjust gdbarch initialization.
1463
1464 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1465
1466         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1467         (amd64obsd_iterate_over_regset_sections): New.
1468         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1469         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1470         Remove.
1471         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
1472         regset_from_core_section initialization.
1473         * i386-tdep.c (i386_regset_from_core_section): Remove.
1474         (i386_iterate_over_regset_sections): New.
1475         (i386_gdbarch_init): Adjust gdbarch initialization.
1476         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1477         (i386_iterate_over_regset_sections): New prototype.
1478         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1479         Remove.
1480         (i386obsd_aout_iterate_over_regset_sections): New.
1481         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1482         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1483         targets.
1484         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1485         (amd64fbsd_init_abi): Call fbsd_init_abi.
1486         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1487         (i386fbsd4_init_abi): Call fbsd_init_abi.
1488         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1489         target method 'make_corefile_notes'.
1490         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1491
1492 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1493
1494         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1495         (hppa_hpux_iterate_over_regset_sections): New.
1496         (hppa_hpux_init_abi): Adjust gdbarch initialization.
1497         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1498         (hppa_linux_iterate_over_regset_sections): New.
1499         (hppa_linux_init_abi): Adjust.
1500         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1501         (hppanbsd_iterate_over_regset_sections): New.
1502         (hppanbsd_init_abi): Adjust.
1503         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1504         (hppaobsd_iterate_over_regset_sections): New.
1505         (hppaobsd_init_abi): Adjust.
1506
1507 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1508
1509         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1510         (frv_linux_iterate_over_regset_sections): New.
1511         (frv_linux_init_abi): Adjust gdbarch initialization.
1512
1513 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1514
1515         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1516         (armbsd_iterate_over_regset_sections): New prototype.
1517         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1518         (armbsd_iterate_over_regset_sections): New.
1519         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1520         initialization.
1521
1522 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1523
1524         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1525         (alpha_linux_iterate_over_regset_sections): New.
1526         (alpha_linux_init_abi): Adjust gdbarch initialization.
1527         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1528         prototype.
1529         (alphanbsd_iterate_over_regset_sections): New prototype.
1530
1531 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1532
1533         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1534         Remove.
1535         (aarch64_linux_iterate_over_regset_sections): New.
1536         (aarch64_linux_init_abi): Adjust gdbarch initialization.
1537
1538 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1539
1540         * fbsd-tdep.c: New file.
1541         * fbsd-tdep.h: New file.
1542         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1543         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1544         (ALLDEPFILES): Add fbsd-tdep.c.
1545
1546 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1547
1548         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1549         parameter.
1550         * gdbarch.h: Regenerate.
1551         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1552         iterator.
1553         (get_core_register_section): Add parameter 'regset' and use it, if
1554         set.  Add parameter 'min_size' and verify the bfd section size
1555         against it.
1556         (get_core_registers_cb): Add parameter 'regset' and pass it to
1557         get_core_register section.  For the "standard" register sections
1558         ".reg" and ".reg2", set an appropriate default for human_name.
1559         (get_core_registers): Don't abort when the gdbarch has an iterator
1560         but no regset_from_core_section.  Add NULL/0 for parameters
1561         'regset'/'min_size' in calls to get_core_register_section.
1562         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1563         'regset' and use it instead of calling the
1564         regset_from_core_section gdbarch method.
1565         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1566         * i386-tdep.c (i386_supply_xstateregset)
1567         (i386_collect_xstateregset, i386_xstateregset): Moved to
1568         i386-linux-tdep.c.
1569         (i386_regset_from_core_section): Drop handling for .reg-xfp and
1570         .reg-xstate.
1571         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
1572         core file support only if the regset iterator hasn't been set.
1573         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1574         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1575         Moved from i386-tdep.c and renamed to *_linux*.
1576         (i386_linux_iterate_over_regset_sections): Add regset parameter to
1577         each callback invocation.  Allow any .reg-xstate size when reading
1578         from a core file.
1579         * amd64-tdep.c (amd64_supply_xstateregset)
1580         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1581         amd64-linux-tdep.c.
1582         (amd64_regset_from_core_section): Remove.
1583         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
1584         install an amd64-specific regset_from_core_section gdbarch method.
1585         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1586         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1587         Moved from amd64-tdep.c and renamed to *_linux*.
1588         (amd64_linux_iterate_over_regset_sections): Add regset parameter
1589         to each callback invocation.  Allow any .reg-xstate size when
1590         reading from a core file.
1591         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1592         (arm_linux_iterate_over_regset_sections): Add regset parameter to
1593         each callback invocation.
1594         (arm_linux_init_abi): No longer set the regset_from_core_section
1595         gdbarch method.
1596         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1597         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1598         each callback invocation.
1599         (ppc_linux_init_abi): No longer set the regset_from_core_section
1600         gdbarch method.
1601         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1602         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1603         (s390_regset_from_core_section): Remove.
1604         (s390_iterate_over_regset_sections): Add regset parameter to each
1605         callback invocation.
1606         (s390_gdbarch_init): No longer set the regset_from_core_section
1607         gdbarch method.  Drop initialization of deleted tdep fields.
1608
1609 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1610
1611         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1612         (amd64_linux_iterate_over_regset_sections): New.
1613         (amd64_linux_init_abi_common): Don't install the regset section
1614         list, but the new iterator in gdbarch.
1615         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1616         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
1617         (arm_linux_iterate_over_regset_sections): ...here.  New function.
1618         (arm_linux_init_abi): Set iterator instead of section list.
1619         * corelow.c (get_core_registers_cb): New function, logic moved
1620         from...
1621         (get_core_registers): ...loop body here.  Use new iterator method
1622         instead of walking through the regset section list.
1623         * gdbarch.sh: Remove 'core_regset_sections'.  New method
1624         'iterate_over_regset_sections'.  New typedef
1625         'iterate_over_regset_sections_cb'.
1626         * gdbarch.c: Regenerate.
1627         * gdbarch.h: Likewise.
1628         * i386-linux-tdep.c (i386_linux_regset_sections)
1629         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1630         Remove.
1631         (i386_linux_iterate_over_regset_sections): New.
1632         (i386_linux_init_abi): Don't choose a regset section list, but
1633         install new iterator in gdbarch.
1634         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1635         (linux_collect_regset_section_cb): New function, logic moved
1636         from...
1637         (linux_collect_thread_registers): ...loop body here.  Use iterator
1638         method instead of walking through list.
1639         (linux_make_corefile_notes_1): Check for presence of iterator
1640         method instead of regset section list.
1641         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1642         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1643         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1644         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
1645         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
1646         (ppc_linux_init_abi): Don't choose from above regset section
1647         lists, but install new iterator in gdbarch.
1648         * regset.h (struct core_regset_section): Remove.
1649         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1650         have_linux_v1, have_linux_v2, and have_tdb.
1651         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1652         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1653         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1654         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1655         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
1656         (s390_iterate_over_regset_sections): ...here.  New function.  Use
1657         new tdep fields.
1658         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
1659         regset section lists, but install new iterator.
1660
1661 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1662
1663         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1664
1665 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
1666
1667         * progspace.c (print_program_space): Don't prune program spaces
1668         before printing them.
1669
1670 2014-09-25  Pedro Alves  <palves@redhat.com>
1671
1672         * infrun.c (user_visible_resume_ptid): Don't check
1673         singlestep_breakpoints_inserted_p.
1674
1675 2014-09-25  Pedro Alves  <palves@redhat.com>
1676
1677         * breakpoint.c (should_be_inserted): Add debug output.
1678
1679 2014-09-25  Pedro Alves  <palves@redhat.com>
1680
1681         * infrun.c (stepping_past_instruction_at)
1682         (clear_exit_convenience_vars): Point at infrun.h instead of
1683         inferior.h.
1684         (handle_signal_stop): Fix typo.
1685
1686 2014-09-24  Yao Qi  <yao@codesourcery.com>
1687
1688         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1689         bitmask.
1690
1691 2014-09-22  Gary Benson  <gbenson@redhat.com>
1692
1693         * target.c (target_stop): Updated comment.
1694
1695 2014-09-22  Gary Benson  <gbenson@redhat.com>
1696
1697         * target/target.h (target_stop_ptid): Renamed as...
1698         (target_stop_and_wait): New function.  Updated comment.
1699         All uses updated.
1700         (target_continue_ptid): Renamed as...
1701         (target_continue_no_signal): New function.  Updated comment.
1702         All uses updated.
1703
1704 2014-09-22  Pedro Alves  <palves@redhat.com>
1705
1706         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1707         and "auto" merged.
1708         * breakpoint.c (enum ugll_insert_mode): New enum.
1709         (always_inserted_mode): Now a plain boolean.
1710         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1711         (breakpoints_always_inserted_mode): Delete.
1712         (breakpoints_should_be_inserted_now): New function.
1713         (insert_breakpoints): Pass UGLL_INSERT to
1714         update_global_location_list instead of calling
1715         insert_breakpoint_locations manually.
1716         (create_solib_event_breakpoint_1): New, factored out from ...
1717         (create_solib_event_breakpoint): ... this.
1718         (create_and_insert_solib_event_breakpoint): Use
1719         create_solib_event_breakpoint_1 instead of calling
1720         insert_breakpoint_locations manually.
1721         (update_global_location_list): Change parameter type from boolean
1722         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1723         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1724         (update_global_location_list_nothrow): Change parameter type from
1725         boolean to enum ugll_insert_mode.
1726         (_initialize_breakpoint): "breakpoint always-inserted" option is
1727         now a boolean command.  Update help text.
1728         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1729         (breakpoints_should_be_inserted_now): New declaration.
1730         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1731         Remove breakpoints_always_inserted_mode check.
1732         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1733         * remote.c (remote_start_remote): Likewise.
1734
1735 2014-09-22  Pedro Alves  <palves@redhat.com>
1736
1737         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1738         (insert_breakpoints): Don't call insert_breakpoint_locations here.
1739         Instead, pass UGLL_INSERT to update_global_location_list.
1740         (update_global_location_list): Change parameter type from boolean
1741         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1742         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1743         (create_solib_event_breakpoint_1): New, factored out from ...
1744         (create_solib_event_breakpoint): ... this.
1745         (create_and_insert_solib_event_breakpoint): Use
1746         create_solib_event_breakpoint_1 instead of calling
1747         insert_breakpoint_locations manually.
1748         (update_global_location_list): Handle UGLL_INSERT.
1749
1750 2014-09-22  Pedro Alves  <palves@redhat.com>
1751
1752         * breakpoint.c (enum ugll_insert_mode): New enum.
1753         (update_global_location_list)
1754         (update_global_location_list_nothrow): Change parameter type from
1755         boolean to enum ugll_insert_mode.  All callers adjusted.
1756
1757 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
1758
1759         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1760         SystemTap support in GDB.
1761
1762 2014-09-19  Don Breazeal  <donb@codesourcery.com>
1763
1764         * linux-nat.c (linux_handle_extended_wait): Call
1765         linux_ptrace_get_extended_event.
1766         (wait_lwp): Call linux_is_extended_waitstatus.
1767         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1768         and linux_is_extended_waitstatus.
1769         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1770         linux_ptrace_get_extended_event.
1771         (linux_ptrace_get_extended_event): New function.
1772         (linux_is_extended_waitstatus): New function.
1773         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1774         (linux_is_extended_waitstatus): New declarations.
1775
1776 2014-09-19  Yao Qi  <yao@codesourcery.com>
1777
1778         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1779         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
1780         comments.  Callers update.
1781         (dwarf_decode_lines): Likewise.
1782         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
1783         comments.  Skip the line table if  'lowpc' is greater than
1784         'address'.  Don't check
1785         dwarf2_per_objfile->has_section_at_zero.
1786
1787 2014-09-18  Doug Evans  <dje@google.com>
1788
1789         * NEWS: Mention new "producer" attribute of gdb.Symtab.
1790         * python/py-symtab.c (stpy_get_producer): New function.
1791         (symtab_object_getset): Add "producer" attribute.
1792
1793 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
1794
1795         PR gdb/17384
1796         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1797         (do_captured_read_memory_integer): Remove.
1798         (safe_read_memory_integer): Use target_read_memory directly instead
1799         of catching errors in do_captured_read_memory_integer.
1800
1801 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
1802
1803         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1804         not gdb/doc.
1805
1806 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1807
1808         * objc-lang.c (find_implementation_from_class): Remove dead code.
1809
1810 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1811
1812         PR cli/7233
1813         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1814         "fprintf_unfiltered (gdb_stdlog...)".
1815
1816 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
1817
1818         PR breakpoints/12526
1819         * breakpoint.h (struct watchpoint): New fields val_bitpos and
1820         val_bitsize.
1821         * breakpoint.c (watch_command_1): Use these fields to retain
1822         bitfield information.
1823         (extract_bitfield_from_watchpoint_value): New function.
1824         (watchpoint_check): Use it.
1825         (update_watchpoint): Use it.  Optimize the address and length of a
1826         HW watchpoint pointing to a bitfield.
1827         * value.h (unpack_value_bitfield): New prototype.
1828         * value.c (unpack_value_bitfield): Make extern.
1829
1830 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1831
1832         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1833         x86-dregs.o.
1834         * gnu-nat.c (inf_threads): New function.
1835         * gnu-nat.h (inf_threads_ftype): New typedef.
1836         (inf_threads): New declaration.
1837         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1838         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1839         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1840         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1841         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1842         (i386_gnu_dr_get_control): New functions.
1843         (reg_addr): New structure.
1844         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1845         i386 debugging register hooks.
1846         * NEWS: Mention this.
1847
1848 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1849
1850         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1851         vector data transfer instructions.
1852         (arm_record_coproc_data_proc): Updated.
1853
1854 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1855
1856         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1857         arm_record_exreg_ld_st_insn.
1858         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1859         load/store insns.
1860
1861 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1862
1863         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1864         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1865         processing instructions.
1866
1867 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1868
1869         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1870         for advance SIMD struct ld/st insn.
1871         (thumb2_record_decode_insn_handler): Replace stub handler with
1872         thumb2_record_asimd_struct_ld_st.
1873
1874 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1875
1876         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1877         for asimd, vfp and coprocessor insns.
1878         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1879         and coprocessor insns.
1880         (thumb2_record_coproc_insn): New function.
1881         (thumb2_record_decode_insn_handler): Update coprocessor insns record
1882         handlers.
1883         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1884         opcode 110 insns.
1885
1886 2014-09-13  Doug Evans  <xdje42@gmail.com>
1887
1888         * NEWS: Mention new "queue-signal" command.
1889         * infcmd.c (queue_signal_command): New function.
1890         (_initialize_infcmd): Add new queue-signal command.
1891
1892 2014-09-13  Doug Evans  <xdje42@gmail.com>
1893
1894         * linux-nat.c (wait_lwp): Add debugging printf.
1895         (linux_nat_wait_1): Ditto.
1896
1897 2014-09-12  Pedro Alves  <palves@redhat.com>
1898
1899         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1900         (create_and_insert_solib_event_breakpoint): New functions.
1901         * breakpoint.h (create_and_insert_solib_event_breakpoint)
1902         (remove_solib_event_breakpoints_at_next_stop): New declarations.
1903         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1904         (remove_dbx_link_breakpoint): Delete function.
1905         (insert_dbx_link_bpt_in_file): Use
1906         create_and_insert_solib_event_breakpoint instead of
1907         deprecated_insert_raw_breakpoint.
1908         (procfs_wait): Don't check whether we hit __dbx_link here.
1909         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1910         here.
1911         * solib-irix.c (base_breakpoint): Delete global.
1912         (disable_break): Delete function.
1913         (enable_break): Use create_solib_event_breakpoint
1914         instead of deprecated_insert_raw_breakpoint.
1915         (irix_solib_handle_event): New function.
1916         (irix_solib_create_inferior_hook): Don't run the target or disable
1917         the mapping-complete breakpoint here.
1918         (_initialize_irix_solib): Install irix_solib_handle_event as
1919         so_ops->handle_event hook.
1920
1921 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1922             Ulrich Weigand  <uweigand@de.ibm.com>
1923
1924         PR tdep/17379
1925         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1926         instead of read_memory_unsigned_integer.
1927
1928 2014-09-12  Gary Benson  <gbenson@redhat.com>
1929
1930         * nat/linux-waitpid.c: Include common-defs.h.
1931         [GDBSERVER]: Add FIXME comment.
1932         [!GDBSERVER]: Don't include defs.h or signal.h.
1933         (linux_debug) [!GDBSERVER]: Remove empty block.
1934
1935 2014-09-12  Gary Benson  <gbenson@redhat.com>
1936
1937         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1938         Don't include defs.h or server.h.
1939
1940 2014-09-12  Gary Benson  <gbenson@redhat.com>
1941
1942         * nat/linux-btrace.c: Include common-defs.h.
1943         Don't include defs.h, server.h or gdbthread.h.
1944         * nat/linux-btrace.h (struct target_ops): New forward declaration.
1945
1946 2014-09-12  Gary Benson  <gbenson@redhat.com>
1947
1948         * common/agent.c: Include common-defs.h.
1949         Don't include defs.h or server.h.
1950         * common/buffer.c: Likewise.
1951         * common/common-debug.c: Likewise.
1952         * common/common-utils.c: Likewise.
1953         * common/errors.c: Likewise.
1954         * common/filestuff.c: Likewise.
1955         * common/format.c: Likewise.
1956         * common/gdb_vecs.c: Likewise.
1957         * common/print-utils.c: Likewise.
1958         * common/ptid.c: Likewise.
1959         * common/rsp-low.c: Likewise.
1960         * common/signals.c: Likewise.
1961         * common/vec.c: Likewise.
1962         * common/xml-utils.c: Likewise.
1963         * nat/linux-osdata.c: Likewise.
1964         * nat/linux-procfs.c: Likewise.
1965         * nat/linux-ptrace.c: Likewise.
1966         * nat/mips-linux-watch.c: Likewise.
1967         * target/waitstatus.c: Likewise.
1968
1969 2014-09-12  Tom Tromey  <tromey@redhat.com>
1970             Gary Benson  <gbenson@redhat.com>
1971
1972         * common/common-regcache.h: New file.
1973         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1974         * regcache.h: Include common-regcache.h.
1975         (regcache_read_pc): Don't declare.
1976         * regcache.c (get_thread_regcache_for_ptid): New function.
1977         * nat/linux-btrace.c: Don't include regcache.h.
1978         Include common-regcache.h.
1979         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1980
1981 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
1982
1983         * regcache.h (struct regset): Declare.
1984
1985 2014-09-11  Pedro Alves  <palves@redhat.com>
1986
1987         PR gdb/17347
1988         * main.c: Include "infrun.h".
1989         (catch_command_errors, catch_command_errors_const): Wait for the
1990         foreground command to complete.
1991         * top.c (maybe_wait_sync_command_done): New function, factored out
1992         from ...
1993         (maybe_wait_sync_command_done): ... here.
1994         * top.h (maybe_wait_sync_command_done): New declaration.
1995
1996 2014-09-11  Tom Tromey  <tromey@redhat.com>
1997             Gary Benson  <gbenson@redhat.com>
1998
1999         * common/symbol.h: New file.
2000         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2001         * minsyms.c (find_minimal_symbol_address): New function.
2002         * common/agent.c: Include common/symbol.h.
2003         [!GDBSERVER]: Don't include objfiles.h.
2004         (agent_look_up_symbols): Use find_minimal_symbol_address.
2005
2006 2014-09-11  Gary Benson  <gbenson@redhat.com>
2007
2008         * target/target.h (target_stop_ptid, target_continue_ptid):
2009         Declare.
2010         * target.c (target_stop_ptid, target_continue_ptid): New
2011         functions.
2012         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2013         (agent_run_command): Always use target_stop_ptid and
2014         target_continue_ptid.
2015
2016 2014-09-11  Tom Tromey  <tromey@redhat.com>
2017             Gary Benson  <gbenson@redhat.com>
2018
2019         * target/target.h: New file.
2020         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2021         * target.h: Include target/target.h.
2022         (target_read_memory, target_write_memory): Don't declare.
2023         * target.c (target_read_uint32): New function.
2024         * common/agent.c: Include target/target.h.
2025         [!GDBSERVER]: Don't include target.h.
2026         (helper_thread_id): Type changed to uint32_t.
2027         (agent_get_helper_thread_id): Use target_read_uint32.
2028         (agent_run_command): Always use target_read_memory and
2029         target_write_memory.
2030         (agent_capability): Type changed to uint32_t.
2031         (agent_capability_check): Use target_read_uint32.
2032
2033 2014-09-11  Gary Benson  <gbenson@redhat.com>
2034
2035         * common/common-debug.h (show_debug_regs): Declare.
2036         * common/common-debug.c (show_debug_regs): Define.
2037         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
2038         all uses with show_debug_regs.  Replace all uses that considered
2039         debug_hw_points as a multi-value integer with straight boolean
2040         uses.
2041         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
2042         with show_debug_regs.
2043         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
2044         all uses with show_debug_regs.
2045         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
2046         uses with show_debug_regs.
2047
2048 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2049
2050         * findvar.c (address_from_register): Handle targets requiring
2051         a special conversion routine even for plain pointer types.
2052
2053 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2054
2055         * rs6000-nat.c (exec_one_dummy_insn): Remove.
2056         (store_register): Do not call exec_one_dummy_insn.
2057
2058 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2059
2060         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2061         dereference it first.  Use value_enclosing_type instead of
2062         value_type.
2063         (ada_array_length): Likewise.
2064
2065 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2066
2067         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2068         Adjust function implementation and documentation accordingly.
2069         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2070         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2071         Update call to ada_value_ptr_subscript.
2072
2073 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2074
2075         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2076         instead of VAL's type.
2077
2078 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2079
2080         * amd64-linux-nat.c: Add <sys/uio.h> #include.
2081
2082 2014-09-09  Doug Evans  <xdje42@gmail.com>
2083
2084         PR guile/17367
2085         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2086         last parameter to pkg-config, not first.
2087         * configure.ac: Pass --with-guile provided pkg-config path to
2088         GDB_GUILE_PROGRAM_NAMES.
2089         * configure: Regenerate.
2090
2091 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2092
2093         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2094         Bertazi".
2095
2096 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
2097
2098         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2099         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2100         the list of sections determining GDB_OSABI_IRIX.
2101
2102 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2103
2104         * MAINTAINERS (Write After Approval): Add "James Hogan".
2105
2106 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2107
2108         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2109
2110 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
2111
2112         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2113
2114 2014-09-08  Doug Evans  <xdje42@gmail.com>
2115
2116         PR 17247
2117         * guile.c: #include <signal.h>.
2118         (_initialize_guile): Block SIGCHLD while initializing Guile.
2119
2120         Replaces the following, which is reverted.
2121
2122         2014-07-26  Doug Evans  <xdje42@gmail.com>
2123
2124         PR 17185
2125         * configure.ac: Add check for header gc/gc.h.
2126         Add check for function setenv.
2127         * configure: Regenerate.
2128         * config.in: Regenerate.
2129         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2130
2131 2014-09-08  Doug Evans  <xdje42@gmail.com>
2132
2133         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2134         with named constant.  Fix style of pointer comparison.
2135         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2136
2137 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2138
2139         PR gdb/17035
2140         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2141         decide whether we display the command on "show user".
2142         * cli/cli-script.c (show_user_1): Only verify cmdlines after
2143         printing command name.
2144         * cli/cli-decode.h (cli_user_command_p): Declare new function.
2145         * cli/cli-decode.c (cli_user_command_p): Create helper function
2146         to verify whether cmd_list_element is a user-defined command.
2147
2148 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2149
2150         PR python/17355
2151         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2152         Fix goto out of TRY_CATCH.
2153
2154 2014-09-06  Doug Evans  <xdje42@gmail.com>
2155             Tom Tromey  <tromey@redhat.com>
2156
2157         PR 15276
2158         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2159         $_any_caller_matches.
2160         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2161         * python/lib/gdb/function/caller_is.py: New file.
2162
2163 2014-09-06  Doug Evans  <xdje42@gmail.com>
2164
2165         * infcmd.c (program_info): Fix typo.
2166
2167 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
2168
2169         PR gdb/17235
2170         * stap-probe.c (stap_parse_single_operand): Delete unused variable
2171         'number'.  New variable 'has_digit'.  Rewrite code to deal with
2172         subexpressions on SDT probes.
2173
2174 2014-09-04  Pedro Alves  <palves@redhat.com>
2175
2176         * c-exp.y (parse_number): Skip handling base-switching prefixes if
2177         the input is only one character long.
2178
2179 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
2180
2181         PR fortran/17237
2182         * f-valprint.c (f_val_print): Specify the correct print option to
2183         use when printing integer values.
2184
2185 2014-09-04  Gary Benson  <gbenson@redhat.com>
2186
2187         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2188         Remove code to cope with LWPs wrapped as PIDs.
2189         Add assertions to ensure no wrapped LWPs are passed.
2190
2191 2014-09-04  Pedro Alves  <palves@redhat.com>
2192
2193         * value.c (value_ranges_copy_adjusted): New function, factored out
2194         from ...
2195         (value_contents_copy_raw): ... here.
2196         (unpack_value_bits_as_long_1): Rename back to ...
2197         (unpack_bits_as_long): ... this.  Remove 'original_value' and
2198         'result' parameters.  Change return type to LONGEST.
2199         (unpack_value_bits_as_long): Delete.
2200         (unpack_value_field_as_long_1): Delete.
2201         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2202         (unpack_value_bitfield): New function.
2203         (value_field_bitfield): Reimplement using unpack_value_bitfield.
2204         (value_fetch_lazy): Use unpack_value_bitfield.
2205         * value.h (unpack_value_bits_as_long): Delete declaration.
2206
2207 2014-09-03  Sasha Smundak  <asmundak@google.com>
2208
2209         * python/py-frame.c (frapy_read_register): New function.
2210
2211 2014-09-03  James Hogan  <james.hogan@imgtec.com>
2212
2213         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2214         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2215
2216 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
2217
2218         PR python/16699
2219         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2220         function.
2221         (add_cmd): Set "completer_handle_brkchars" to NULL.
2222         * cli/cli-decode.h (struct cmd_list_element)
2223         <completer_handle_brkchars>: New field.
2224         * command.h (completer_ftype_void): New typedef.
2225         (set_cmd_completer_handle_brkchars): New prototype.
2226         * completer.c (set_gdb_completion_word_break_characters): New
2227         function.
2228         (complete_line_internal): Call "completer_handle_brkchars"
2229         callback from command.
2230         * completer.h: Include "command.h".
2231         (set_gdb_completion_word_break_characters): New prototype.
2232         * python/py-cmd.c (cmdpy_completer_helper): New function.
2233         (cmdpy_completer_handle_brkchars): New function.
2234         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2235         (cmdpy_init): Set completer_handle_brkchars to
2236         cmdpy_completer_handle_brkchars.
2237
2238 2014-09-03  Gary Benson  <gbenson@redhat.com>
2239
2240         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2241         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
2242         Loop conditions changed to equivalent form.
2243         (struct x86_debug_reg_state): Updated dr_ref_count comment.
2244         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2245         ALL_DEBUG_ADDRESS_REGISTERS.
2246
2247 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
2248
2249         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2250         description fix.
2251
2252 2014-09-02  Doug Evans  <dje@google.com>
2253
2254         * typeprint.c (find_global_typedef): Fix comment.
2255
2256 2014-09-02  Gary Benson  <gbenson@redhat.com>
2257
2258         * i386-nat.h: Renamed as...
2259         * x86-nat.h: New file.  All type, function and variable name
2260         prefixes changed from "i386_" to "x86_".  All references updated.
2261         * i386-nat.c: Renamed as...
2262         * x86-nat.c: New file.  All type, function and variable name
2263         prefixes changed from "i386_" to "x86_".  All references updated.
2264         * common/i386-xstate.h: Renamed as...
2265         * common/x86-xstate.h: New file.  All type, function and variable
2266         name prefixes changed from "i386_" to "x86_".  All references
2267         updated.
2268         * nat/i386-cpuid.h: Renamed as...
2269         * nat/x86-cpuid.h: New file.  All type, function and variable name
2270         prefixes changed from "i386_" to "x86_".  All references updated.
2271         * nat/i386-gcc-cpuid.h: Renamed as...
2272         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
2273         name prefixes changed from "i386_" to "x86_".  All references
2274         updated.
2275         * nat/i386-dregs.h: Renamed as...
2276         * nat/x86-dregs.h: New file.  All type, function and variable name
2277         prefixes changed from "i386_" to "x86_".  All references updated.
2278         * nat/i386-dregs.c: Renamed as...
2279         * nat/x86-dregs.c: New file.  All type, function and variable name
2280         prefixes changed from "i386_" to "x86_".  All references updated.
2281
2282 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
2283
2284         * varobj.c (_initialize_varobj): Move to the end of file.
2285
2286 2014-08-29  Gary Benson  <gbenson@redhat.com>
2287
2288         * common/common-exceptions.h: New file.
2289         * common/common-exceptions.c: Likewise.
2290         * Makefile.in (SFILES): Add common/common-exceptions.c.
2291         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2292         (COMMON_OBS): Add common-exceptions.o.
2293         (common-exceptions.o): New rule.
2294         * exceptions.h (common-exceptions.h): Include.
2295         (gdb_setjmp.h): Do not include.
2296         (return_reason): Moved to common-exceptions.h.
2297         (enum return_reason): Likewise.
2298         (RETURN_MASK): Likewise.
2299         (typedef return_mask): Likewise.
2300         (enum errors): Likewise.
2301         (struct gdb_exception): Likewise.
2302         (exceptions_state_mc_init): Likewise.
2303         (exceptions_state_mc_action_iter): Likewise.
2304         (exceptions_state_mc_action_iter_1): Likewise.
2305         (TRY_CATCH): Likewise.
2306         (throw_exception): Likewise.
2307         (throw_verror): Likewise.
2308         (throw_vquit): Likewise.
2309         (throw_error): Likewise.
2310         (throw_quit): Likewise.
2311         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2312         (enum catcher_action): Likewise.
2313         (struct catcher): Likewise.
2314         (current_catcher): Likewise.
2315         (catcher_list_size): Likewise.
2316         (exceptions_state_mc_init): Likewise.
2317         (catcher_pop): Likewise.
2318         (exceptions_state_mc): Likewise.
2319         (exceptions_state_mc_action_iter): Likewise.
2320         (exceptions_state_mc_action_iter_1): Likewise.
2321         (throw_exception): Likewise.
2322         (exception_messages): Likewise.
2323         (exception_messages_size): Likewise.
2324         (throw_it): Likewise.
2325         (throw_verror): Likewise.
2326         (throw_vquit): Likewise.
2327         (throw_error): Likewise.
2328         (throw_quit): Likewise.
2329         (prepare_to_throw_exception): New function.
2330
2331 2014-08-29  Gary Benson  <gbenson@redhat.com>
2332
2333         * common/gdb_setjmp.h: New file.
2334         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2335         * configure.ac: Move sigsetjmp check...
2336         * common/common.m4: ...here.
2337         * configure: Regenerate.
2338         * cp-support.c (SIGJMP_BUF): Delete.
2339         (SIGSETJMP): Likewise.
2340         (SIGLONGJMP): Likewise.
2341         * exceptions.h (gdb_setjmp.h): Include.
2342         (setjmp.h): Do not include.
2343         (EXCEPTIONS_SIGJMP_BUF): Delete.
2344         (EXCEPTIONS_SIGSETJMP): Likewise.
2345         (EXCEPTIONS_SIGLONGJMP): Likewise.
2346         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2347         from gdb_setjmp.h.
2348         * exceptions.c: Likewise.
2349
2350 2014-08-29  Gary Benson  <gbenson@redhat.com>
2351
2352         * cleanups.h: Moved to...
2353         * common/cleanups.h: New file.
2354         * cleanups.c: Moved to...
2355         * common/cleanups.c: New file.  Include common-defs.h and
2356         cleanups.h.  Do not include defs.h.
2357         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2358         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2359         (cleanups.o): New rule.
2360
2361 2014-08-29  Gary Benson  <gbenson@redhat.com>
2362
2363         * common/errors.h (internal_warning): New declaration.
2364         (internal_vwarning): Likewise.
2365         * common/errors.c (internal_warning): New function.
2366         * utils.h (internal_warning): Don't declare.
2367         (internal_vwarning): Likewise.
2368         * utils.c (internal_warning): Removed.
2369
2370 2014-08-29  Gary Benson  <gbenson@redhat.com>
2371
2372         * main.c (captured_main): Use warning during startup.
2373         Prefix startup warning messages with command name.
2374
2375 2014-08-29  Gary Benson  <gbenson@redhat.com>
2376
2377         * main.c (captured_main): Handle usage errors with error.
2378
2379 2014-08-29  Gary Benson  <gbenson@redhat.com>
2380
2381         * go32-nat.c (go32_create_inferior): Replace a fprintf/
2382         exit pair with a call to error.  Wrap the message with _().
2383
2384 2014-08-29  Gary Benson  <gbenson@redhat.com>
2385
2386         * main.c (captured_main): Replace a fprintf/exit
2387         pair with a call to error.  Wrap the message with _().
2388
2389 2014-08-29  Gary Benson  <gbenson@redhat.com>
2390
2391         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2392         pairs with calls to error.  Wrap the message with _().
2393
2394 2014-08-29  Gary Benson  <gbenson@redhat.com>
2395
2396         * utils.c (vwarning): Protect calls to target_terminal_ours
2397         and wrap_here.
2398
2399 2014-08-29  Gary Benson  <gbenson@redhat.com>
2400
2401         * exceptions.c (print_flush): Protect calls to
2402         target_terminal_ours and wrap_here.
2403
2404 2014-08-29  Gary Benson  <gbenson@redhat.com>
2405
2406         * utils.h (filtered_printing_initialized): New declaration.
2407         * utils.c (abort_with_message): New function.
2408         (internal_vproblem): Use abort_with_message for first level
2409         recursive internal problems, and if gdb_stderr is not set up.
2410         Protect calls to target_terminal_ours, begin_line and query.
2411
2412 2014-08-28  Doug Evans  <dje@google.com>
2413
2414         * symtab.c (in_prologue): Move definition to better spot.
2415         (skip_prologue_using_sal): Ditto.
2416
2417 2014-08-28  Doug Evans  <dje@google.com>
2418
2419         * symtab.c (find_function_start_sal): Move definition to better spot.
2420
2421 2014-08-28  Yao Qi  <yao@codesourcery.com>
2422
2423         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2424         found_stack_adjust in forward scan.  Remove condition check
2425         on found_stack_adjust which is always true.  Indent the code.
2426
2427 2014-08-28  Yao Qi  <yao@codesourcery.com>
2428
2429         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2430         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2431         (dwarf_decode_lines): Remove argument
2432         want_line_info.  Remove condition check on want_line_info.
2433         Callers update.
2434
2435 2014-08-27  Doug Evans  <dje@google.com>
2436
2437         * dwarf2read.c (dwarf_record_line): Fix typo.
2438
2439 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
2440
2441         * target.h (struct target_ops::to_terminal_save_ours): Remove
2442         declaration.
2443         (target_terminal_save_ours): Remove macro.
2444         * target-delegates.c: Regenerate.
2445         * inf-child.c (inf_child_target): Don't set the nonexistent
2446         field to_terminal_save_ours.
2447         * inferior.h (child_terminal_save_ours): Remove declaration.
2448         * terminal.h (gdb_save_tty_state): New declaration.
2449         * inflow.c (child_terminal_save_ours): Rename to ...
2450         (gdb_save_tty_state): ... this.
2451         * tui/tui.c: Include terminal.h.
2452         (tui_enable): Use gdb_save_tty_state instead of
2453         target_terminal_save_ours.
2454         (tui_disable): Likewise.
2455
2456 2014-08-25  Doug Evans  <dje@google.com>
2457
2458         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2459         Pass NULL instead of 0 for context pointer.
2460
2461 2014-08-25  Yao Qi  <yao@codesourcery.com>
2462
2463         * dwarf2read.c: Fix grammatical error.
2464
2465 2014-08-24  Yao Qi  <yao@codesourcery.com>
2466
2467         * dwarf2read.c (scan_partial_symbols):  Update comments.
2468         Rename argument 'need_pc' with 'set_addrmap'.
2469         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
2470         'set_addrmap'.
2471         (add_partial_module): Likewise.
2472         (add_partial_subprogram): Likewise.  Update comments.
2473         (dwarf2_name): Fix typo.
2474
2475 2014-08-22  Doug Evans  <dje@google.com>
2476
2477         PR 17276
2478         * dwarf2read.c (dwarf_record_line_p): New function.
2479         (dwarf_decode_lines_1): Ignore subsequent line number entries
2480         for the same line if any entry had a non-zero discriminator.
2481
2482 2014-08-22  Doug Evans  <dje@google.com>
2483
2484         * buildsym.h (record_line_ftype): New typedef.
2485         (record_line): Use it.
2486         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2487         (dwarf_decode_lines_1): Call them.
2488
2489 2014-08-22  Yao Qi  <yao@codesourcery.com>
2490
2491         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2492         (ctf_end): Remove code.
2493
2494 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2495
2496         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2497         (linux_make_corefile_notes): call update_thread_list, protected against
2498         exceptions.
2499
2500 2014-08-21  Pedro Alves  <palves@redhat.com>
2501
2502         * infcmd.c (attach_command): Remove comment.
2503
2504 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
2505
2506         * aarch64-linux-nat.c (dr_changed_t): Change the type from
2507         unsigned LONGEST to ULONGEST.
2508
2509 2014-08-20  Pedro Alves  <palves@redhat.com>
2510
2511         * Makefile.in (check-read1): New rule.
2512
2513 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
2514
2515         * value.c (value_from_contents_and_address): Strip resolved_type's
2516         typedef layers before checking its TYPE_DATA_LOCATION.
2517
2518 2014-08-20  Pedro Alves  <palves@redhat.com>
2519
2520         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2521
2522 2014-08-20  Yao Qi  <yao@codesourcery.com>
2523
2524         * amd64-tdep.c (amd64_classify): Add a blank line after the
2525         example.  Move "*/" to a new line.
2526         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2527         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2528         * dwarf2read.c (psymtab_include_file_name): Likewise.
2529
2530 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
2531             Pedro Alves  <palves@redhat.com>
2532
2533         PR symtab/14604
2534         PR symtab/14605
2535         * ada-lang.c (coerce_unspec_val_to_type): Use
2536         value_contents_copy_raw.
2537         * ada-valprint.c (val_print_packed_array_elements): Adjust.
2538         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2539         * cp-valprint.c (cp_print_value_fields): Let the common printing
2540         code handle optimized out values.
2541         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2542         * d-valprint.c (dynamic_array_type): Use
2543         value_bits_any_optimized_out.
2544         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2545         check_any_valid fields.
2546         (check_pieced_value_bits): Delete and inline ...
2547         (check_pieced_synthetic_pointer): ... here.
2548         (check_pieced_value_validity): Delete.
2549         (check_pieced_value_invalid): Delete.
2550         (pieced_value_funcs): Remove check_validity and check_any_valid
2551         fields.
2552         (read_pieced_value): Use mark_value_bits_optimized_out.
2553         (write_pieced_value): Switch to use
2554         mark_value_bytes_optimized_out.
2555         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2556         of assuming the whole value is optimized out.
2557         * findvar.c (read_frame_register_value): Remove special handling
2558         of optimized out registers.
2559         (value_from_register): Use mark_value_bytes_optimized_out.
2560         * frame-unwind.c (frame_unwind_got_optimized): Use
2561         mark_value_bytes_optimized_out.
2562         * jv-valprint.c (java_value_print): Adjust.
2563         (java_print_value_fields): Let the common printing code handle
2564         optimized out values.
2565         * mips-tdep.c (mips_print_register): Remove special handling of
2566         optimized out registers.
2567         * opencl-lang.c (lval_func_check_validity): Delete.
2568         (lval_func_check_any_valid): Delete.
2569         (opencl_value_funcs): Remove check_validity and check_any_valid
2570         fields.
2571         * p-valprint.c (pascal_object_print_value_fields): Let the common
2572         printing code handle optimized out values.
2573         * stack.c (read_frame_arg): Remove special handling of optimized
2574         out values.  Fetch both VAL and ENTRYVAL before comparing
2575         contents.  Adjust to value_available_contents_eq rename.
2576         * valprint.c (valprint_check_validity)
2577         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2578         (val_print_array_elements): Adjust.
2579         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2580         (value_bits_any_optimized_out): New function.
2581         (value_entirely_covered_by_range_vector): New function, factored
2582         out from value_entirely_unavailable.
2583         (value_entirely_unavailable): Reimplement.
2584         (value_entirely_optimized_out): New function.
2585         (insert_into_bit_range_vector): New function, factored out from
2586         mark_value_bits_unavailable.
2587         (mark_value_bits_unavailable): Reimplement.
2588         (struct ranges_and_idx): New struct.
2589         (find_first_range_overlap_and_match): New function, factored out
2590         from value_available_contents_bits_eq.
2591         (value_available_contents_bits_eq): Rename to ...
2592         (value_contents_bits_eq): ... this.  Check both unavailable
2593         contents and optimized out contents.
2594         (value_available_contents_eq): Rename to ...
2595         (value_contents_eq): ... this.
2596         (allocate_value_lazy): Remove reference to the old optimized_out
2597         boolean.
2598         (allocate_optimized_out_value): Use
2599         mark_value_bytes_optimized_out.
2600         (require_not_optimized_out): Adjust to check whether the
2601         optimized_out vec is empty.
2602         (ranges_copy_adjusted): New function, factored out from
2603         value_contents_copy_raw.
2604         (value_contents_copy_raw): Also copy the optimized out ranges.
2605         Assert the destination ranges aren't optimized out.
2606         (value_contents_copy): Update comment, remove call to
2607         require_not_optimized_out.
2608         (value_contents_equal): Adjust to check whether the optimized_out
2609         vec is empty.
2610         (set_value_optimized_out, value_optimized_out_const): Delete.
2611         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2612         New functions.
2613         (value_entirely_optimized_out, value_bits_valid): Delete.
2614         (value_copy): Take a VEC copy of the 'optimized_out' field.
2615         (value_primitive_field): Remove special handling of optimized out.
2616         (value_fetch_lazy): Assert that lazy values have no unavailable
2617         regions.  Use value_bits_any_optimized_out.  Remove some special
2618         handling for optimized out values.
2619         * value.h: Add intro comment about <optimized out> and
2620         <unavailable>.
2621         (struct lval_funcs): Remove check_validity and check_any_valid
2622         fields.
2623         (set_value_optimized_out, value_optimized_out_const): Remove.
2624         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2625         New declarations.
2626         (value_bits_any_optimized_out): New declaration.
2627         (value_bits_valid): Delete declaration.
2628         (value_available_contents_eq): Rename to ...
2629         (value_contents_eq): ... this, and extend comments.
2630
2631 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2632
2633         Fix -fsanitize=address on unreadable inferior strings.
2634         * valprint.c (val_print_string): Fix access before BUFFER.
2635
2636 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
2637
2638         * target.c (target_struct_size): Remove.
2639         (target_struct_allocsize): Remove.
2640         (DEFAULT_ALLOCSIZE): Remove.
2641         (target_ops_p): New typedef.
2642         (DEF_VEC_P (target_ops_p)): New vector type.
2643         (target_structs): Change type to VEC (target_ops_p).
2644         (add_target_with_completer): Replace "push" code by VEC_safe_push.
2645         (find_default_run_target): Rewrite for loop following changes to
2646         target_structs.
2647
2648 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
2649
2650         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2651         Adjust code accordingly.  Adjust function description comment.
2652
2653 2014-08-19  Yao Qi  <yao@codesourcery.com>
2654
2655         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2656         types.
2657
2658 2014-08-19  Alan Modra  <amodra@gmail.com>
2659
2660         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2661         * config.in: Regenerate.
2662         * configure: Regenerate.
2663
2664 2014-08-19  Tom Tromey  <tromey@redhat.com>
2665             Gary Benson  <gbenson@redhat.com>
2666
2667         * common/common-debug.h: New file.
2668         * common/common-debug.c: Likewise.
2669         * debug.c: Likewise.
2670         * Makefile.in (SFILES): Add common/common-debug.c.
2671         (HFILES_NO_SRCDIR): Add common/common-debug.h.
2672         (COMMON_OBS): Add common-debug.o and debug.o.
2673         (common-debug.o): New rule.
2674         * common/common-defs.h: Include common-debug.h.
2675         * common/agent.c (debug_agent_printf): New function.
2676         (DEBUG_AGENT): Redefine.
2677         * nat/i386-dregs.c (debug_printf): Undefine.
2678
2679 2014-08-19  Gary Benson  <gbenson@redhat.com>
2680
2681         * common/common-defs.h: Include print-utils.h.
2682         * utils.h: Do not include print-utils.h.
2683
2684 2014-08-19  Tom Tromey  <tromey@redhat.com>
2685             Gary Benson  <gbenson@redhat.com>
2686
2687         * common/common-types.h: New file.
2688         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2689         * common/common-defs.h: Include common-types.h.
2690         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2691         (ULONGEST): Remove.
2692
2693 2014-08-19  Tom Tromey  <tromey@redhat.com>
2694             Gary Benson  <gbenson@redhat.com>
2695
2696         * common/errors.h: New file.
2697         * common/errors.c: Likewise.
2698         * Makefile.in (SFILES): Add common/errors.c.
2699         (HFILES_NO_SRCDIR): Add common/errors.h.
2700         (COMMON_OBS): Add errors.o.
2701         (errors.o): New rule.
2702         * common/common-defs.h: Include errors.h.
2703         * utils.h (perror_with_name, error, verror, warning, vwarning):
2704         Don't declare.
2705         * common/common-utils.h: (malloc_failure, internal_error):
2706         Likewise.
2707
2708 2014-08-19  Gary Benson  <gbenson@redhat.com>
2709
2710         * utils.c (internal_vproblem): Always print the message.
2711
2712 2014-08-18  Doug Evans  <dje@google.com>
2713
2714         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2715
2716 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2717
2718         * ada-typeprint.c (type_is_full_subrange_of_target_type):
2719         Return 0 if TYPE is dynamic.
2720         (print_range): Add handling of dynamic ranges.
2721
2722 2014-08-18  Keven Boell  <keven.boell@intel.com>
2723             Joel Brobecker  <brobecker@adacore.com>
2724
2725         * gdbtypes.h (struct main_type): Add field "data_location".
2726         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2727         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2728         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2729         a dynamic data location.
2730         (resolve_dynamic_type): Add DW_AT_data_location handling.
2731         (copy_recursive, copy_type): Copy the data_location information
2732         when present.
2733         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2734         * value.c (value_from_contents_and_address): Add
2735         DW_AT_data_location handling.
2736
2737 2014-08-18  Keven Boell  <keven.boell@intel.com>
2738             Joel Brobecker  <brobecker@adacore.com>
2739
2740         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2741         field "get_object_address".
2742         * dwarf2expr.c (execute_stack_op): Add handling for
2743         DW_OP_push_object_address.
2744         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2745         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2746         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2747         (dwarf_expr_get_obj_addr): New function.
2748         (dwarf_expr_ctx_funcs): Add get_object_address field.
2749         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2750         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
2751         (dwarf2_evaluate_property): Add parameter "address".  Use it.
2752         (needs_get_obj_addr): New function.
2753         (needs_frame_ctx_funcs): Add get_object_address field.
2754         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2755         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
2756         (resolve_dynamic_array): Likewise.
2757
2758 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2759
2760         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2761         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2762         fixed value for records and unions for which some GNAT encodings
2763         are present.
2764
2765 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2766
2767         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2768         rewrite to avoid "else if" and "else" constructs.  Should be
2769         a no-op in practice.
2770
2771 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2772
2773         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2774         of lexical block.
2775
2776 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2777
2778         PR c++/17132
2779         * eval.c: Update all calls to find_overload_match.
2780         * valarith.c: Likewise.
2781         (value_user_defined_cpp_op, value_user_defined_op): New
2782         argument NOSIDE.  Update all callers.
2783         * valops.c (find_overload_match): New argument NOSIDE.
2784         * value.h (find_overload_match): Update signature.
2785
2786 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2787
2788         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2789         'items' methods instead of 'iteritems' method on dictionaries.
2790
2791 2014-08-15  Doug Evans  <dje@google.com>
2792
2793         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2794         closer to use.
2795
2796 2014-08-15  Doug Evans  <dje@google.com>
2797
2798         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2799
2800 2014-08-15  Doug Evans  <dje@google.com>
2801
2802         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2803
2804 2014-08-15  Doug Evans  <dje@google.com>
2805
2806         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2807         unused.
2808
2809 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
2810
2811         * dcache.h: Include target.h, to avoid compile time warnings.
2812
2813 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
2814
2815         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
2816         frame_info" partial declaration.
2817         * gdbarch.h: Regenerate.
2818
2819 2014-08-15  Yao Qi  <yao@codesourcery.com>
2820
2821         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2822         Add parameter 'decode_for_pst_p'.  Callers update.
2823
2824 2014-08-13  Yao Qi  <yao@codesourcery.com>
2825
2826         PR build/17104
2827         * configure.ac: Use local variable 'pos'.
2828         * configure: Regenerated.
2829
2830 2014-08-11  Doug Evans  <dje@google.com>
2831
2832         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2833         message, it is redundant with "Reading symbols from ..." message.
2834
2835 2014-08-10  Doug Evans  <xdje42@gmail.com>
2836
2837         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2838
2839 2014-08-09  Yao Qi  <yao@codesourcery.com>
2840
2841         PR remote/9053
2842         * remote.c (remote_xfer_partial): Remove dead code.
2843
2844 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2845
2846         * ia64-linux-tdep.c: Include "regset.h".
2847         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2848         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2849         (ia64_linux_supply_fpregset): New function.
2850         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2851         (ia64_linux_regset_from_core_section): New function.
2852         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2853         method.
2854
2855 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2856
2857         * m68klinux-tdep.c: Include "regset.h".
2858         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2859         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2860         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2861         (m68k_linux_regset_from_core_section): New function.
2862         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2863         method.
2864
2865 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2866
2867         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2868         function.  Move logic to...
2869         (tilegx_linux_regmap): ... this new register map.
2870         (tilegx_linux_regset): Refer to register map, replace supply
2871         method by regcache_supply_regset, and add collect method.
2872         * tilegx-tdep.h (enum tilegx_regnum): New enum value
2873         TILEGX_FIRST_EASY_REGNUM.
2874
2875 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2876
2877         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2878         that calls regcache_supply_regset and handles the EPC register
2879         separately.  Move main logic to...
2880         (score7_linux_gregmap): ... this new register map.
2881         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2882         (score7_linux_gregset): Refer to register map.  Add collect method.
2883         (score7_linux_regset_from_core_section): Replace
2884         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2885         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2886         (struct regset): Delete unused forward declaraction.
2887         (struct pt_regs): Delete structure definition.
2888         (elf_gregset_t): Delete typedef.
2889
2890 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2891
2892         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2893         (nios2_core_regset): Add collect method.
2894
2895 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2896
2897         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2898         platform-independent and don't write to read-only input buffer.
2899         (m32r_linux_collect_gregset): New function.
2900         (m32r_linux_gregset): Add collect method.
2901
2902 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2903
2904         * hppa-linux-tdep.c (greg_map): Rename to...
2905         (hppa_linux_gregmap): ... this.  Also convert to
2906         regcache_map_entry format.
2907         (hppa_linux_supply_regset): Delete function.
2908         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
2909         (hppa_linux_fpregmap): ... this new register map.
2910         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2911         register map, replace supply method by regcache_supply_regset, and
2912         add collect method regcache_collect_regset.
2913
2914 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2915
2916         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2917         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2918         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2919         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2920         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2921         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2922         (frv_linux_supply_gregset): Replace main logic by call to
2923         regcache_supply_regset, but keep clearing gr32-gr63.
2924         (frv_linux_supply_fpregset): Delete function.
2925         (frv_linux_gregset): Refer to appropriate register map and add
2926         regcache_collect_regset as the collect method.
2927         (frv_linux_fpregset): Likewise.  Also exchange the supply method
2928         by regcache_supply_regset.
2929
2930 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2931
2932         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2933         by call to alpha_supply_int_regs.
2934         (alpha_linux_collect_gregset): New function.
2935         (alpha_linux_supply_fpregset): Replace logic by call to
2936         alpha_supply_fp_regs.
2937         (alpha_linux_collect_fpregset): New function.
2938         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2939
2940 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2941
2942         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2943         by call to regcache_collect_regset.
2944         (supply_gregset, supply_fpregset): Call regcache_supply_regset
2945         instead of aarch64_linux_supply_gregset/_fpregset.
2946         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2947         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2948         header file instead.
2949         (aarch64_linux_supply_gregset, supply_gregset_from_core)
2950         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2951         functions.  Move logic to ...
2952         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2953         register maps.
2954         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2955         refer to new register maps, replace *_regset_from_core by
2956         regcache_supply_regset, and also use regcache_collect_regset.
2957         * aarch64-linux-tdep.h: Include "regset.h".
2958         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2959         Delete prototypes.
2960         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2961         macros, moved from C source file.
2962         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2963         variable declarations.
2964
2965 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2966
2967         * s390-linux-nat.c: Include "regset.h".
2968         (regmap_gregset): Delete macro.
2969         (s390_64_regmap_gregset): New register map for
2970         regcache_supply/_collect_regset.
2971         (s390_64_gregset): New regset.
2972         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2973         (regmap_fpregset): Delete macro.
2974         (s390_native_supply, s390_native_collect): Delete functions.
2975         (supply_gregset, fill_gregset): Replace s390-specific regmap
2976         handling by a call to regcache_supply/_collect_regset.
2977         (supply_fpregset, fill_fpregset): Call regcache_supply/
2978         _collect_regset instead of s390_native_supply/_collect.
2979         (fetch_regset, store_regset): Likewise.  Also change the last
2980         parameter to a regset instead of a regmap.
2981         (s390_linux_fetch_inferior_registers)
2982         (390_linux_store_inferior_registers): Adjust last parameter in
2983         calls to fetch_regset and store_regset.
2984         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2985         (s390_gregmap): ... this.  Also make static const and convert to
2986         regcache_map_entry format.
2987         (s390x_regmap_gregset): Delete.
2988         (s390_regmap_fpregset): Rename to...
2989         (s390_fpregmap): ... this.  Make static const and convert to
2990         regcache_map_entry format.
2991         (s390_regmap_upper, s390_regmap_last_break)
2992         (s390x_regmap_last_break, s390_regmap_system_call)
2993         (s390_regmap_tdb): Likewise.
2994         (s390_supply_regset, s390_collect_regset): Remove functions.
2995         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2996         s390_supply_regset.
2997         (s390_gregset, s390_fpregset, s390_upper_regset)
2998         (s390_last_break_regset, s390x_last_break_regset)
2999         (s390_system_call_regset, s390_tdb_regset): Make global and
3000         replace s390_supply/_collect_regset by regcache_supply/
3001         _collect_regset.
3002         (s390x_gregset): Delete.
3003         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3004         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3005         (s390_regmap_fpregset, s390_regmap_last_break)
3006         (s390x_regmap_last_break, s390_regmap_system_call)
3007         (s390_regmap_tdb): Delete global variable declarations.
3008         (s390_gregset, s390_fpregset, s390_last_break_regset)
3009         (s390x_last_break_regset, s390_system_call_regset)
3010         (s390_tdb_regset): New global variable declarations.
3011
3012 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3013
3014         * regcache.c: Include "regset.h".
3015         (regcache_transfer_regset): New local function.
3016         (regcache_supply_regset, regcache_collect_regset): New functions.
3017         * regcache.h (struct regcache_map_entry): New structure.
3018         (REGCACHE_MAP_SKIP): New enum value.
3019         (regcache_supply_regset, regcache_collect_regset): New prototypes.
3020
3021 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3022
3023         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3024         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3025         (ppc_linux_collect_gregset ): Likewise.
3026         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3027         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3028         (ppc_collect_vrregset): Likewise.
3029         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3030         Likewise.
3031
3032 2014-08-07  Yao Qi  <yao@codesourcery.com>
3033
3034         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3035         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3036         * remote.c (remote_read_bytes): Likewise.
3037
3038 2014-08-07  Yao Qi  <yao@codesourcery.com>
3039
3040         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3041
3042 2014-08-07  Yao Qi  <yao@codesourcery.com>
3043
3044         PR remote/17230
3045         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3046         TARGET_XFER_OK instead of 0.
3047
3048 2014-08-07  Gary Benson  <gbenson@redhat.com>
3049
3050         * common/common-defs.h: Include errno.h.
3051         * defs.h: Do not include errno.h.
3052         * ada-typeprint.c: Likewise.
3053         * c-typeprint.c: Likewise.
3054         * core-regset.c: Likewise.
3055         * corefile.c: Likewise.
3056         * corelow.c: Likewise.
3057         * event-loop.c: Likewise.
3058         * f-typeprint.c: Likewise.
3059         * gnu-nat.c: Likewise.
3060         * go32-nat.c: Likewise.
3061         * i386gnu-nat.c: Likewise.
3062         * m2-typeprint.c: Likewise.
3063         * nat/linux-btrace.c: Likewise.
3064         * p-typeprint.c: Likewise.
3065         * procfs.c: Likewise.
3066         * remote-sim.c: Likewise.
3067         * rs6000-nat.c: Likewise.
3068         * target.c: Likewise.
3069         * typeprint.c: Likewise.
3070         * ui-file.c: Likewise.
3071         * valops.c: Likewise.
3072         * valprint.c: Likewise.
3073
3074 2014-08-07  Gary Benson  <gbenson@redhat.com>
3075
3076         * common/common-defs.h: Include string.h.
3077         * aarch64-tdep.c: Do not include string.h.
3078         * ada-exp.y: Likewise.
3079         * ada-lang.c: Likewise.
3080         * ada-lex.l: Likewise.
3081         * ada-typeprint.c: Likewise.
3082         * ada-valprint.c: Likewise.
3083         * aix-thread.c: Likewise.
3084         * alpha-linux-tdep.c: Likewise.
3085         * alpha-mdebug-tdep.c: Likewise.
3086         * alpha-nat.c: Likewise.
3087         * alpha-osf1-tdep.c: Likewise.
3088         * alpha-tdep.c: Likewise.
3089         * alphanbsd-tdep.c: Likewise.
3090         * amd64-dicos-tdep.c: Likewise.
3091         * amd64-linux-tdep.c: Likewise.
3092         * amd64-nat.c: Likewise.
3093         * amd64-sol2-tdep.c: Likewise.
3094         * amd64fbsd-tdep.c: Likewise.
3095         * amd64obsd-tdep.c: Likewise.
3096         * arch-utils.c: Likewise.
3097         * arm-linux-nat.c: Likewise.
3098         * arm-linux-tdep.c: Likewise.
3099         * arm-tdep.c: Likewise.
3100         * arm-wince-tdep.c: Likewise.
3101         * armbsd-tdep.c: Likewise.
3102         * armnbsd-nat.c: Likewise.
3103         * armnbsd-tdep.c: Likewise.
3104         * armobsd-tdep.c: Likewise.
3105         * avr-tdep.c: Likewise.
3106         * ax-gdb.c: Likewise.
3107         * ax-general.c: Likewise.
3108         * bcache.c: Likewise.
3109         * bfin-tdep.c: Likewise.
3110         * breakpoint.c: Likewise.
3111         * build-id.c: Likewise.
3112         * buildsym.c: Likewise.
3113         * c-exp.y: Likewise.
3114         * c-lang.c: Likewise.
3115         * c-typeprint.c: Likewise.
3116         * c-valprint.c: Likewise.
3117         * charset.c: Likewise.
3118         * cli-out.c: Likewise.
3119         * cli/cli-cmds.c: Likewise.
3120         * cli/cli-decode.c: Likewise.
3121         * cli/cli-dump.c: Likewise.
3122         * cli/cli-interp.c: Likewise.
3123         * cli/cli-logging.c: Likewise.
3124         * cli/cli-script.c: Likewise.
3125         * cli/cli-setshow.c: Likewise.
3126         * cli/cli-utils.c: Likewise.
3127         * coffread.c: Likewise.
3128         * common/agent.c: Likewise.
3129         * common/buffer.c: Likewise.
3130         * common/buffer.h: Likewise.
3131         * common/common-utils.c: Likewise.
3132         * common/filestuff.c: Likewise.
3133         * common/filestuff.c: Likewise.
3134         * common/format.c: Likewise.
3135         * common/print-utils.c: Likewise.
3136         * common/rsp-low.c: Likewise.
3137         * common/signals.c: Likewise.
3138         * common/vec.h: Likewise.
3139         * common/xml-utils.c: Likewise.
3140         * core-regset.c: Likewise.
3141         * corefile.c: Likewise.
3142         * corelow.c: Likewise.
3143         * cp-abi.c: Likewise.
3144         * cp-name-parser.y: Likewise.
3145         * cp-support.c: Likewise.
3146         * cp-valprint.c: Likewise.
3147         * cris-tdep.c: Likewise.
3148         * d-exp.y: Likewise.
3149         * darwin-nat.c: Likewise.
3150         * dbxread.c: Likewise.
3151         * dcache.c: Likewise.
3152         * demangle.c: Likewise.
3153         * dicos-tdep.c: Likewise.
3154         * disasm.c: Likewise.
3155         * doublest.c: Likewise.
3156         * dsrec.c: Likewise.
3157         * dummy-frame.c: Likewise.
3158         * dwarf2-frame.c: Likewise.
3159         * dwarf2loc.c: Likewise.
3160         * dwarf2read.c: Likewise.
3161         * elfread.c: Likewise.
3162         * environ.c: Likewise.
3163         * eval.c: Likewise.
3164         * event-loop.c: Likewise.
3165         * exceptions.c: Likewise.
3166         * exec.c: Likewise.
3167         * expprint.c: Likewise.
3168         * f-exp.y: Likewise.
3169         * f-lang.c: Likewise.
3170         * f-typeprint.c: Likewise.
3171         * f-valprint.c: Likewise.
3172         * fbsd-nat.c: Likewise.
3173         * findcmd.c: Likewise.
3174         * findvar.c: Likewise.
3175         * fork-child.c: Likewise.
3176         * frame.c: Likewise.
3177         * frv-linux-tdep.c: Likewise.
3178         * frv-tdep.c: Likewise.
3179         * gdb.c: Likewise.
3180         * gdb_bfd.c: Likewise.
3181         * gdbarch.c: Likewise.
3182         * gdbarch.sh: Likewise.
3183         * gdbtypes.c: Likewise.
3184         * gnu-nat.c: Likewise.
3185         * gnu-v2-abi.c: Likewise.
3186         * gnu-v3-abi.c: Likewise.
3187         * go-exp.y: Likewise.
3188         * go-lang.c: Likewise.
3189         * go32-nat.c: Likewise.
3190         * guile/guile.c: Likewise.
3191         * guile/scm-auto-load.c: Likewise.
3192         * hppa-hpux-tdep.c: Likewise.
3193         * hppa-linux-nat.c: Likewise.
3194         * hppanbsd-tdep.c: Likewise.
3195         * hppaobsd-tdep.c: Likewise.
3196         * i386-cygwin-tdep.c: Likewise.
3197         * i386-dicos-tdep.c: Likewise.
3198         * i386-linux-tdep.c: Likewise.
3199         * i386-nto-tdep.c: Likewise.
3200         * i386-sol2-tdep.c: Likewise.
3201         * i386-tdep.c: Likewise.
3202         * i386bsd-tdep.c: Likewise.
3203         * i386gnu-nat.c: Likewise.
3204         * i386nbsd-tdep.c: Likewise.
3205         * i386obsd-tdep.c: Likewise.
3206         * i387-tdep.c: Likewise.
3207         * ia64-libunwind-tdep.c: Likewise.
3208         * ia64-linux-nat.c: Likewise.
3209         * inf-child.c: Likewise.
3210         * inf-ptrace.c: Likewise.
3211         * inf-ttrace.c: Likewise.
3212         * infcall.c: Likewise.
3213         * infcmd.c: Likewise.
3214         * inflow.c: Likewise.
3215         * infrun.c: Likewise.
3216         * interps.c: Likewise.
3217         * iq2000-tdep.c: Likewise.
3218         * irix5-nat.c: Likewise.
3219         * jv-exp.y: Likewise.
3220         * jv-lang.c: Likewise.
3221         * jv-typeprint.c: Likewise.
3222         * jv-valprint.c: Likewise.
3223         * language.c: Likewise.
3224         * linux-fork.c: Likewise.
3225         * linux-nat.c: Likewise.
3226         * lm32-tdep.c: Likewise.
3227         * m2-exp.y: Likewise.
3228         * m2-typeprint.c: Likewise.
3229         * m32c-tdep.c: Likewise.
3230         * m32r-linux-nat.c: Likewise.
3231         * m32r-linux-tdep.c: Likewise.
3232         * m32r-rom.c: Likewise.
3233         * m32r-tdep.c: Likewise.
3234         * m68hc11-tdep.c: Likewise.
3235         * m68k-tdep.c: Likewise.
3236         * m68kbsd-tdep.c: Likewise.
3237         * m68klinux-nat.c: Likewise.
3238         * m68klinux-tdep.c: Likewise.
3239         * m88k-tdep.c: Likewise.
3240         * machoread.c: Likewise.
3241         * macrocmd.c: Likewise.
3242         * main.c: Likewise.
3243         * mdebugread.c: Likewise.
3244         * mem-break.c: Likewise.
3245         * memattr.c: Likewise.
3246         * memory-map.c: Likewise.
3247         * mep-tdep.c: Likewise.
3248         * mi/mi-cmd-break.c: Likewise.
3249         * mi/mi-cmd-disas.c: Likewise.
3250         * mi/mi-cmd-env.c: Likewise.
3251         * mi/mi-cmd-stack.c: Likewise.
3252         * mi/mi-cmd-var.c: Likewise.
3253         * mi/mi-cmds.c: Likewise.
3254         * mi/mi-console.c: Likewise.
3255         * mi/mi-getopt.c: Likewise.
3256         * mi/mi-interp.c: Likewise.
3257         * mi/mi-main.c: Likewise.
3258         * mi/mi-parse.c: Likewise.
3259         * microblaze-rom.c: Likewise.
3260         * microblaze-tdep.c: Likewise.
3261         * mingw-hdep.c: Likewise.
3262         * minidebug.c: Likewise.
3263         * minsyms.c: Likewise.
3264         * mips-irix-tdep.c: Likewise.
3265         * mips-linux-tdep.c: Likewise.
3266         * mips-tdep.c: Likewise.
3267         * mips64obsd-tdep.c: Likewise.
3268         * mipsnbsd-tdep.c: Likewise.
3269         * mipsread.c: Likewise.
3270         * mn10300-linux-tdep.c: Likewise.
3271         * mn10300-tdep.c: Likewise.
3272         * monitor.c: Likewise.
3273         * moxie-tdep.c: Likewise.
3274         * mt-tdep.c: Likewise.
3275         * nat/linux-btrace.c: Likewise.
3276         * nat/linux-osdata.c: Likewise.
3277         * nat/linux-procfs.c: Likewise.
3278         * nat/linux-ptrace.c: Likewise.
3279         * nat/linux-waitpid.c: Likewise.
3280         * nbsd-tdep.c: Likewise.
3281         * nios2-linux-tdep.c: Likewise.
3282         * nto-procfs.c: Likewise.
3283         * nto-tdep.c: Likewise.
3284         * objc-lang.c: Likewise.
3285         * objfiles.c: Likewise.
3286         * opencl-lang.c: Likewise.
3287         * osabi.c: Likewise.
3288         * osdata.c: Likewise.
3289         * p-exp.y: Likewise.
3290         * p-lang.c: Likewise.
3291         * p-typeprint.c: Likewise.
3292         * parse.c: Likewise.
3293         * posix-hdep.c: Likewise.
3294         * ppc-linux-nat.c: Likewise.
3295         * ppc-sysv-tdep.c: Likewise.
3296         * ppcfbsd-tdep.c: Likewise.
3297         * ppcnbsd-tdep.c: Likewise.
3298         * ppcobsd-tdep.c: Likewise.
3299         * printcmd.c: Likewise.
3300         * procfs.c: Likewise.
3301         * prologue-value.c: Likewise.
3302         * python/py-auto-load.c: Likewise.
3303         * python/py-gdb-readline.c: Likewise.
3304         * ravenscar-thread.c: Likewise.
3305         * regcache.c: Likewise.
3306         * registry.c: Likewise.
3307         * remote-fileio.c: Likewise.
3308         * remote-m32r-sdi.c: Likewise.
3309         * remote-mips.c: Likewise.
3310         * remote-notif.c: Likewise.
3311         * remote-sim.c: Likewise.
3312         * remote.c: Likewise.
3313         * reverse.c: Likewise.
3314         * rs6000-aix-tdep.c: Likewise.
3315         * ser-base.c: Likewise.
3316         * ser-go32.c: Likewise.
3317         * ser-mingw.c: Likewise.
3318         * ser-pipe.c: Likewise.
3319         * ser-tcp.c: Likewise.
3320         * ser-unix.c: Likewise.
3321         * serial.c: Likewise.
3322         * sh-tdep.c: Likewise.
3323         * sh64-tdep.c: Likewise.
3324         * shnbsd-tdep.c: Likewise.
3325         * skip.c: Likewise.
3326         * sol-thread.c: Likewise.
3327         * solib-dsbt.c: Likewise.
3328         * solib-frv.c: Likewise.
3329         * solib-osf.c: Likewise.
3330         * solib-som.c: Likewise.
3331         * solib-spu.c: Likewise.
3332         * solib-target.c: Likewise.
3333         * solib.c: Likewise.
3334         * somread.c: Likewise.
3335         * source.c: Likewise.
3336         * sparc-nat.c: Likewise.
3337         * sparc-sol2-tdep.c: Likewise.
3338         * sparc-tdep.c: Likewise.
3339         * sparc64-tdep.c: Likewise.
3340         * sparc64fbsd-tdep.c: Likewise.
3341         * sparc64nbsd-tdep.c: Likewise.
3342         * sparcnbsd-tdep.c: Likewise.
3343         * spu-linux-nat.c: Likewise.
3344         * spu-multiarch.c: Likewise.
3345         * spu-tdep.c: Likewise.
3346         * stabsread.c: Likewise.
3347         * stack.c: Likewise.
3348         * std-regs.c: Likewise.
3349         * symfile.c: Likewise.
3350         * symmisc.c: Likewise.
3351         * symtab.c: Likewise.
3352         * target.c: Likewise.
3353         * thread.c: Likewise.
3354         * tilegx-linux-nat.c: Likewise.
3355         * tilegx-tdep.c: Likewise.
3356         * top.c: Likewise.
3357         * tracepoint.c: Likewise.
3358         * tui/tui-command.c: Likewise.
3359         * tui/tui-data.c: Likewise.
3360         * tui/tui-disasm.c: Likewise.
3361         * tui/tui-file.c: Likewise.
3362         * tui/tui-layout.c: Likewise.
3363         * tui/tui-out.c: Likewise.
3364         * tui/tui-regs.c: Likewise.
3365         * tui/tui-source.c: Likewise.
3366         * tui/tui-stack.c: Likewise.
3367         * tui/tui-win.c: Likewise.
3368         * tui/tui-windata.c: Likewise.
3369         * tui/tui-winsource.c: Likewise.
3370         * typeprint.c: Likewise.
3371         * ui-file.c: Likewise.
3372         * ui-out.c: Likewise.
3373         * user-regs.c: Likewise.
3374         * utils.c: Likewise.
3375         * v850-tdep.c: Likewise.
3376         * valarith.c: Likewise.
3377         * valops.c: Likewise.
3378         * valprint.c: Likewise.
3379         * value.c: Likewise.
3380         * varobj.c: Likewise.
3381         * vax-tdep.c: Likewise.
3382         * vaxnbsd-tdep.c: Likewise.
3383         * vaxobsd-tdep.c: Likewise.
3384         * windows-nat.c: Likewise.
3385         * xcoffread.c: Likewise.
3386         * xml-support.c: Likewise.
3387         * xstormy16-tdep.c: Likewise.
3388         * xtensa-linux-nat.c: Likewise.
3389
3390 2014-08-07  Gary Benson  <gbenson@redhat.com>
3391
3392         * common/common-defs.h: Include gdb_assert.h.
3393         * aarch64-tdep.c: Do not include gdb_assert.h.
3394         * addrmap.c: Likewise.
3395         * aix-thread.c: Likewise.
3396         * alpha-linux-tdep.c: Likewise.
3397         * alpha-mdebug-tdep.c: Likewise.
3398         * alphanbsd-tdep.c: Likewise.
3399         * amd64-nat.c: Likewise.
3400         * amd64-tdep.c: Likewise.
3401         * amd64bsd-nat.c: Likewise.
3402         * amd64fbsd-nat.c: Likewise.
3403         * amd64fbsd-tdep.c: Likewise.
3404         * amd64nbsd-nat.c: Likewise.
3405         * amd64nbsd-tdep.c: Likewise.
3406         * amd64obsd-nat.c: Likewise.
3407         * amd64obsd-tdep.c: Likewise.
3408         * arch-utils.c: Likewise.
3409         * arm-tdep.c: Likewise.
3410         * armbsd-tdep.c: Likewise.
3411         * auxv.c: Likewise.
3412         * bcache.c: Likewise.
3413         * bfin-tdep.c: Likewise.
3414         * blockframe.c: Likewise.
3415         * breakpoint.c: Likewise.
3416         * bsd-kvm.c: Likewise.
3417         * bsd-uthread.c: Likewise.
3418         * buildsym.c: Likewise.
3419         * c-exp.y: Likewise.
3420         * c-lang.c: Likewise.
3421         * charset.c: Likewise.
3422         * cleanups.c: Likewise.
3423         * cli-out.c: Likewise.
3424         * cli/cli-decode.c: Likewise.
3425         * cli/cli-dump.c: Likewise.
3426         * cli/cli-logging.c: Likewise.
3427         * cli/cli-script.c: Likewise.
3428         * cli/cli-utils.c: Likewise.
3429         * coffread.c: Likewise.
3430         * common/common-utils.c: Likewise.
3431         * common/queue.h: Likewise.
3432         * common/signals.c: Likewise.
3433         * common/vec.h: Likewise.
3434         * complaints.c: Likewise.
3435         * completer.c: Likewise.
3436         * corelow.c: Likewise.
3437         * cp-abi.c: Likewise.
3438         * cp-name-parser.y: Likewise.
3439         * cp-namespace.c: Likewise.
3440         * cp-support.c: Likewise.
3441         * cris-tdep.c: Likewise.
3442         * dbxread.c: Likewise.
3443         * dictionary.c: Likewise.
3444         * doublest.c: Likewise.
3445         * dsrec.c: Likewise.
3446         * dummy-frame.c: Likewise.
3447         * dwarf2-frame-tailcall.c: Likewise.
3448         * dwarf2-frame.c: Likewise.
3449         * dwarf2expr.c: Likewise.
3450         * dwarf2loc.c: Likewise.
3451         * dwarf2read.c: Likewise.
3452         * eval.c: Likewise.
3453         * event-loop.c: Likewise.
3454         * exceptions.c: Likewise.
3455         * expprint.c: Likewise.
3456         * f-valprint.c: Likewise.
3457         * fbsd-nat.c: Likewise.
3458         * findvar.c: Likewise.
3459         * frame-unwind.c: Likewise.
3460         * frame.c: Likewise.
3461         * frv-tdep.c: Likewise.
3462         * gcore.c: Likewise.
3463         * gdb-dlfcn.c: Likewise.
3464         * gdb_bfd.c: Likewise.
3465         * gdbarch.c: Likewise.
3466         * gdbarch.sh: Likewise.
3467         * gdbtypes.c: Likewise.
3468         * gnu-nat.c: Likewise.
3469         * gnu-v3-abi.c: Likewise.
3470         * go-lang.c: Likewise.
3471         * guile/scm-exception.c: Likewise.
3472         * guile/scm-gsmob.c: Likewise.
3473         * guile/scm-lazy-string.c: Likewise.
3474         * guile/scm-math.c: Likewise.
3475         * guile/scm-pretty-print.c: Likewise.
3476         * guile/scm-safe-call.c: Likewise.
3477         * guile/scm-utils.c: Likewise.
3478         * guile/scm-value.c: Likewise.
3479         * h8300-tdep.c: Likewise.
3480         * hppa-hpux-nat.c: Likewise.
3481         * hppa-tdep.c: Likewise.
3482         * hppanbsd-tdep.c: Likewise.
3483         * hppaobsd-tdep.c: Likewise.
3484         * i386-darwin-nat.c: Likewise.
3485         * i386-darwin-tdep.c: Likewise.
3486         * i386-nto-tdep.c: Likewise.
3487         * i386-tdep.c: Likewise.
3488         * i386bsd-nat.c: Likewise.
3489         * i386fbsd-tdep.c: Likewise.
3490         * i386gnu-nat.c: Likewise.
3491         * i386nbsd-tdep.c: Likewise.
3492         * i386obsd-tdep.c: Likewise.
3493         * i387-tdep.c: Likewise.
3494         * ia64-libunwind-tdep.c: Likewise.
3495         * ia64-tdep.c: Likewise.
3496         * inf-ptrace.c: Likewise.
3497         * inf-ttrace.c: Likewise.
3498         * infcall.c: Likewise.
3499         * infcmd.c: Likewise.
3500         * infrun.c: Likewise.
3501         * inline-frame.c: Likewise.
3502         * interps.c: Likewise.
3503         * jv-lang.c: Likewise.
3504         * jv-typeprint.c: Likewise.
3505         * linux-fork.c: Likewise.
3506         * linux-nat.c: Likewise.
3507         * linux-thread-db.c: Likewise.
3508         * m32c-tdep.c: Likewise.
3509         * m32r-linux-nat.c: Likewise.
3510         * m32r-tdep.c: Likewise.
3511         * m68k-tdep.c: Likewise.
3512         * m68kbsd-nat.c: Likewise.
3513         * m68kbsd-tdep.c: Likewise.
3514         * m88k-tdep.c: Likewise.
3515         * machoread.c: Likewise.
3516         * macroexp.c: Likewise.
3517         * macrotab.c: Likewise.
3518         * maint.c: Likewise.
3519         * mdebugread.c: Likewise.
3520         * memory-map.c: Likewise.
3521         * mep-tdep.c: Likewise.
3522         * mi/mi-common.c: Likewise.
3523         * microblaze-tdep.c: Likewise.
3524         * mingw-hdep.c: Likewise.
3525         * mips-linux-nat.c: Likewise.
3526         * mips-linux-tdep.c: Likewise.
3527         * mips-tdep.c: Likewise.
3528         * mips64obsd-tdep.c: Likewise.
3529         * mipsnbsd-tdep.c: Likewise.
3530         * mn10300-linux-tdep.c: Likewise.
3531         * mn10300-tdep.c: Likewise.
3532         * moxie-tdep.c: Likewise.
3533         * mt-tdep.c: Likewise.
3534         * nat/linux-btrace.c: Likewise.
3535         * nat/linux-osdata.c: Likewise.
3536         * nat/linux-ptrace.c: Likewise.
3537         * nat/mips-linux-watch.c: Likewise.
3538         * nios2-linux-tdep.c: Likewise.
3539         * nios2-tdep.c: Likewise.
3540         * objc-lang.c: Likewise.
3541         * objfiles.c: Likewise.
3542         * obsd-nat.c: Likewise.
3543         * opencl-lang.c: Likewise.
3544         * osabi.c: Likewise.
3545         * parse.c: Likewise.
3546         * ppc-linux-nat.c: Likewise.
3547         * ppc-sysv-tdep.c: Likewise.
3548         * ppcfbsd-nat.c: Likewise.
3549         * ppcfbsd-tdep.c: Likewise.
3550         * ppcnbsd-nat.c: Likewise.
3551         * ppcnbsd-tdep.c: Likewise.
3552         * ppcobsd-nat.c: Likewise.
3553         * ppcobsd-tdep.c: Likewise.
3554         * printcmd.c: Likewise.
3555         * procfs.c: Likewise.
3556         * prologue-value.c: Likewise.
3557         * psymtab.c: Likewise.
3558         * python/py-lazy-string.c: Likewise.
3559         * python/py-value.c: Likewise.
3560         * regcache.c: Likewise.
3561         * reggroups.c: Likewise.
3562         * registry.c: Likewise.
3563         * remote-sim.c: Likewise.
3564         * remote.c: Likewise.
3565         * rs6000-aix-tdep.c: Likewise.
3566         * rs6000-tdep.c: Likewise.
3567         * s390-linux-tdep.c: Likewise.
3568         * score-tdep.c: Likewise.
3569         * ser-base.c: Likewise.
3570         * ser-mingw.c: Likewise.
3571         * sh-tdep.c: Likewise.
3572         * sh64-tdep.c: Likewise.
3573         * solib-darwin.c: Likewise.
3574         * solib-spu.c: Likewise.
3575         * solib-svr4.c: Likewise.
3576         * source.c: Likewise.
3577         * sparc-nat.c: Likewise.
3578         * sparc-sol2-tdep.c: Likewise.
3579         * sparc-tdep.c: Likewise.
3580         * sparc64-sol2-tdep.c: Likewise.
3581         * sparc64-tdep.c: Likewise.
3582         * sparc64fbsd-tdep.c: Likewise.
3583         * sparc64nbsd-tdep.c: Likewise.
3584         * sparc64obsd-tdep.c: Likewise.
3585         * sparcnbsd-tdep.c: Likewise.
3586         * sparcobsd-tdep.c: Likewise.
3587         * spu-multiarch.c: Likewise.
3588         * spu-tdep.c: Likewise.
3589         * stabsread.c: Likewise.
3590         * stack.c: Likewise.
3591         * symfile.c: Likewise.
3592         * symtab.c: Likewise.
3593         * target-descriptions.c: Likewise.
3594         * target-memory.c: Likewise.
3595         * target.c: Likewise.
3596         * tic6x-linux-tdep.c: Likewise.
3597         * tic6x-tdep.c: Likewise.
3598         * tilegx-linux-nat.c: Likewise.
3599         * tilegx-tdep.c: Likewise.
3600         * top.c: Likewise.
3601         * tramp-frame.c: Likewise.
3602         * tui/tui-out.c: Likewise.
3603         * tui/tui-winsource.c: Likewise.
3604         * ui-out.c: Likewise.
3605         * user-regs.c: Likewise.
3606         * utils.c: Likewise.
3607         * v850-tdep.c: Likewise.
3608         * valops.c: Likewise.
3609         * value.c: Likewise.
3610         * varobj.c: Likewise.
3611         * vax-nat.c: Likewise.
3612         * xml-syscall.c: Likewise.
3613         * xml-tdesc.c: Likewise.
3614         * xstormy16-tdep.c: Likewise.
3615         * xtensa-linux-nat.c: Likewise.
3616         * xtensa-tdep.c: Likewise.
3617
3618 2014-08-07  Gary Benson  <gbenson@redhat.com>
3619
3620         * common/common-defs.h: Include common-utils.h.
3621         * defs.h: Do not include common-utils.h.
3622         * common/gdb_assert.h: Likewise.
3623         * darwin-nat.h: Likewise.
3624         * nat/linux-btrace.c: Likewise.
3625         * target/waitstatus.h: Likewise.
3626
3627 2014-08-07  Gary Benson  <gbenson@redhat.com>
3628
3629         * common/common-defs.h: Include ptid.h.
3630         * defs.h: Do not include ptid.h.
3631         * inferior.h: Likewise.
3632         * infrun.h: Likewise.
3633         * nat/linux-btrace.h: Likewise.
3634         * nat/linux-osdata.h: Likewise.
3635         * target/waitstatus.h: Likewise.
3636
3637 2014-08-07  Gary Benson  <gbenson@redhat.com>
3638
3639         * common/common-defs.h: Include gdb_locale.h.
3640         * defs.h: Do not include gdb_locale.h.
3641
3642 2014-08-07  Gary Benson  <gbenson@redhat.com>
3643
3644         * common/common-defs.h: Include gdb/signals.h.
3645         * defs.h: Do not include gdb/signals.h.
3646
3647 2014-08-07  Gary Benson  <gbenson@redhat.com>
3648
3649         * common/common-defs.h: Include pathmax.h.
3650         * defs.h: Do not include pathmax.h.
3651
3652 2014-08-07  Gary Benson  <gbenson@redhat.com>
3653
3654         * common/common-defs.h: Include libiberty.h.
3655         * defs.h: Do not include libiberty.h.
3656         * common/queue.h: Likewise.
3657         * cp-name-parser.y: Likewise.
3658         * mi/mi-cmd-catch.c: Likewise.
3659         * python/python.c: Likewise.
3660
3661 2014-08-07  Gary Benson  <gbenson@redhat.com>
3662
3663         * common/common-defs.h: Include ansidecl.h.
3664         * defs.h: Do not include ansidecl.h.
3665         * common/buffer.h: Likewise.
3666         * common/common-utils.h: Likewise.
3667
3668 2014-08-07  Gary Benson  <gbenson@redhat.com>
3669
3670         * common/common-defs.h: Include stddef.h.
3671         * defs.h: Do not include stddef.h.
3672         * common/common-utils.h: Likewise.
3673         * amd64fbsd-nat.c: Likewise.
3674         * bcache.c: Likewise.
3675         * charset.c: Likewise.
3676         * common/buffer.h: Likewise.
3677         * common/vec.h: Likewise.
3678         * i386bsd-nat.c: Likewise.
3679         * nat/linux-btrace.h: Likewise.
3680         * ppcfbsd-nat.c: Likewise.
3681         * ppcnbsd-tdep.h: Likewise.
3682         * ppcobsd-nat.c: Likewise.
3683         * ppcobsd-tdep.h: Likewise.
3684         * python/py-gdb-readline.c: Likewise.
3685
3686 2014-08-07  Gary Benson  <gbenson@redhat.com>
3687
3688         * common/common-defs.h: Include stdarg.h.
3689         * defs.h: Do not include stdarg.h.
3690         * ada-lang.c: Likewise.
3691         * common/common-utils.h: Likewise.
3692         * guile/scm-string.c: Likewise.
3693         * guile/scm-utils.c: Likewise.
3694         * m32c-tdep.c: Likewise.
3695
3696 2014-08-07  Gary Benson  <gbenson@redhat.com>
3697
3698         * common/common-defs.h: Include stdlib.h.
3699         * defs.h: Do not include stdlib.h.
3700         * addrmap.c: Likewise.
3701         * bcache.c: Likewise.
3702         * common/buffer.c: Likewise.
3703         * common/common-utils.c: Likewise.
3704         * cp-name-parser.y: Likewise.
3705         * go32-nat.c: Likewise.
3706         * mn10300-linux-tdep.c: Likewise.
3707         * nat/linux-osdata.c: Likewise.
3708         * tui/tui.c: Likewise.
3709         * windows-nat.c: Likewise.
3710
3711 2014-08-07  Gary Benson  <gbenson@redhat.com>
3712
3713         * common/common-defs.h: Include stdio.h.
3714         * defs.h: Do not include stdio.h.
3715         * ada-lang.c: Likewise.
3716         * common/buffer.c: Likewise.
3717         * common/common-utils.c: Likewise.
3718         * cp-name-parser.y: Likewise.
3719         * gnu-nat.c: Likewise.
3720         * go32-nat.c: Likewise.
3721         * i386gnu-nat.c: Likewise.
3722         * proc-api.c: Likewise.
3723         * proc-events.c: Likewise.
3724         * proc-flags.c: Likewise.
3725         * proc-why.c: Likewise.
3726         * python/python-internal.h: Likewise.
3727         * target-memory.c: Likewise.
3728         * tui/tui-io.c: Likewise.
3729         * tui/tui.c: Likewise.
3730
3731 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
3732
3733         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3734         (scan_dyntag_auxv): Same.
3735
3736 2014-08-06  Yao Qi  <yao@codesourcery.com>
3737
3738         * amd64-linux-nat.c: Remove duplicated include
3739         "x86-linux-nat.h".
3740         * i386-linux-nat.c: Likewise.
3741
3742 2014-08-06  Yao Qi  <yao@codesourcery.com>
3743
3744         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3745         operand" with "Special opcode" in comments.
3746
3747 2014-08-05  Gary Benson  <gbenson@redhat.com>
3748
3749         * interps.c (initialize_interps): Remove prototype.
3750         (interpreter_initialized): Remove static global.
3751         (interp_add): Do not call initialize_interps.
3752         (initialize_interps): Remove function.
3753
3754 2014-08-05  Gary Benson  <gbenson@redhat.com>
3755
3756         * utils.c (vwarning): Remove spurious va_end.
3757
3758 2014-08-05  Alan Modra  <amodra@gmail.com>
3759
3760         * charset.c (convert_between_encodings): Cast result of obstack_base.
3761         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3762         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3763         (read_unwind_info): Use size_t for some locals.
3764         * jit.c (finalize_symtab): Likewise.
3765         * utils.c (hashtab_obstack_allocate): Likewise.
3766         * symmisc.c (print_objfile_statistics): Update format strings.
3767
3768 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3769
3770         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3771         (Changes in GDB 7.8): ... here.
3772
3773 2014-08-04  Tom Tromey  <tromey@redhat.com>
3774
3775         * target.c (set_targetdebug): New function.
3776         (initialize_targets): Pass set_targetdebug when creating "set
3777         debug target".
3778
3779 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3780
3781         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3782         if detecting a variable-sized field that is not the last field.
3783         Fix struct type length computation.
3784
3785 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3786
3787         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3788         Add debug trace.
3789
3790 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3791
3792         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3793         Remove "+ 8" offset in computation of CHAIN_VMA.
3794
3795 2014-07-31  Doug Evans  <dje@google.com>
3796
3797         * inflow.c (child_terminal_inferior): Add comment.
3798         (child_terminal_ours_for_output): Add comment.
3799         (child_terminal_ours): Add comment.
3800         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3801         (linux_nat_terminal_ours): Add comment.
3802
3803 2014-07-31  Gary Benson  <gbenson@redhat.com>
3804
3805         * common/btrace-common.h: Do not include defs.h or server.h.
3806         * nat/mips-linux-watch.h: Likewise.
3807         * gdb-dlfcn.h: Do not include defs.h.
3808         * tracefile.h: Likewise.
3809
3810 2014-07-30  Roland McGrath  <mcgrathr@google.com>
3811
3812         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3813
3814 2014-07-30  Tom Tromey  <tromey@redhat.com>
3815
3816         * bsd-kvm.c (bsd_kvm_open): Constify.
3817         * corelow.c (core_open): Constify.
3818         * ctf.c (ctf_open): Constify.
3819         * dbug-rom.c (dbug_open): Constify.
3820         * exec.c (exec_open): Constify.
3821         * m32r-rom.c (m32r_open, mon2000_open): Constify.
3822         * microblaze-rom.c (picobug_open): Constify.
3823         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3824         Constify.
3825         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3826         * record-btrace.c (record_btrace_open): Constify.
3827         * record-full.c (record_full_core_open_1, record_full_open_1)
3828         (record_full_open): Constify.
3829         * remote-m32r-sdi.c (m32r_open): Constify.
3830         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3831         (rockhopper_open, lsi_open): Constify.
3832         * remote-sim.c (gdbsim_open): Constify.
3833         * remote.c (remote_open, extended_remote_open, remote_open_1):
3834         Constify.
3835         * target.h (struct target_ops) <to_open>: Make "arg" const.
3836         * tracefile-tfile.c (tfile_open): Constify.
3837
3838 2014-07-30  Tom Tromey  <tromey@redhat.com>
3839
3840         * breakpoint.c (map_breakpoint_numbers): Update.
3841         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
3842         (get_number_const): New function.
3843         (get_number): Rewrite using get_number_const.
3844         (init_number_or_range): Make "string" const.
3845         (number_is_in_list): Make "list" const.
3846         * cli/cli-utils.h (get_number_const): Declare.
3847         (struct get_number_or_range_state) <string, end_ptr>: Now const.
3848         (init_number_or_range, number_is_in_list): Update.
3849         * printcmd.c (map_display_numbers): Update.
3850         * value.c (value_from_history_ref): Constify.
3851         * value.h (value_from_history_ref): Update.
3852
3853 2014-07-30  Tom Tromey  <tromey@redhat.com>
3854
3855         * corefile.c (hook_type, call_extra_exec_file_hooks)
3856         (specify_exec_file_hook): Constify.
3857         * exec.c (exec_file_attach): Make "filename" const.
3858         * gdbcore.h (deprecated_exec_file_display_hook)
3859         (specify_exec_file_hook, exec_file_attach): Constify.
3860         * main.c (captured_main): Use catch_command_errors_const.
3861
3862 2014-07-30  Tom Tromey  <tromey@redhat.com>
3863
3864         * target.c (open_target): New function.
3865         (add_target_with_completer, add_deprecated_target_alias): Use
3866         set_cmd_sfunc, set_cmd_context.
3867         (debug_to_open): Remove.
3868         (setup_target_debug): Update.
3869
3870 2014-07-30  Yao Qi  <yao@codesourcery.com>
3871
3872         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3873         comments.
3874         * parse.c (exp_iterate): Update comments.
3875
3876 2014-07-30  Gary Benson  <gbenson@redhat.com>
3877
3878         * common/common-defs.h: New file.
3879         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3880         * defs.h: Include common-defs.h.
3881         Do not include config.h or build-gnulib/config.h.
3882
3883 2014-07-30  Gary Benson  <gbenson@redhat.com>
3884
3885         * common/common-utils.h: Do not include config.h.
3886         * nat/linux-btrace.h: Likewise.
3887
3888 2014-07-30  Gary Benson  <gbenson@redhat.com>
3889
3890         * btrace.c: Include defs.h.
3891         * common/ptid.c: Include defs.h or server.h as appropriate.
3892         * nat/mips-linux-watch.c: Likewise.
3893
3894 2014-07-29  Tom Tromey  <tromey@redhat.com>
3895
3896         * target.c (target_is_pushed): Simplify.
3897
3898 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
3899
3900         GDB 7.8 released.
3901
3902 2014-07-29  Yao Qi  <yao@codesourcery.com>
3903
3904         PR gdb/17206
3905         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3906
3907 2014-07-28  Doug Evans  <xdje42@gmail.com>
3908
3909         PR guile/17203
3910         * guile/scm-param.c (pascm_parameter_defined_p): New function.
3911         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
3912         parameters.
3913
3914 2014-07-28  Will Newton  <will.newton@linaro.org>
3915
3916         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3917         (THUMB2_SET_R7_SIGRETURN2): Likewise.
3918         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3919         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3920         (THUMB2_EABI_SYSCALL): Likewise.
3921         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3922         struct tramp_frame.
3923         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3924         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3925
3926 2014-07-27  Doug Evans  <xdje42@gmail.com>
3927
3928         * guile/scm-param.c (pascm_print_param_smob): Fix output.
3929
3930 2014-07-27  Doug Evans  <xdje42@gmail.com>
3931
3932         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3933
3934 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3935             Doug Evans  <xdje42@gmail.com>
3936
3937         PR guile/17146
3938         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3939         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3940         * configure.ac: Try to use guild to compile an scm file, if it fails
3941         then disable guile support.
3942         * configure: Regenerate.
3943         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3944         GUILE_FILE_LIST.
3945         (GUILE_COMPILED_FILES): New variable.
3946         (GUILE_FILES) Update.
3947         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3948         (stamp-guile): Compile scm files.
3949         * guile/guile.c (boot_guile_support): New function.
3950         (standard_throw_args_p): New function.
3951         (print_standard_throw_error, print_throw_error): New functions.
3952         (handle_boot_error): New function.
3953         (initialize_scheme_side): Rewrite to call boot_guile_support.
3954         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
3955         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3956
3957 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3958             Doug Evans  <xdje42@gmail.com>
3959
3960         PR guile/17146
3961         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3962         * guile/lib/gdb/support.scm: New file.
3963         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3964         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3965         All uses updated.
3966         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3967         All uses updated.
3968         (%assert-type): Ditto, and renamed to assert-type.
3969         (%exception-print-style): Delete.
3970
3971 2014-07-26  Doug Evans  <xdje42@gmail.com>
3972
3973         PR build/17105
3974         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3975         * configure: Regenerate.
3976         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3977         PYTHON_FILES.
3978         (PYTHON_FILES): New variable.
3979         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3980         (GUILE_FILES): New variable.
3981         (stamp-python, install-python, uninstall-python): Handle empty
3982         file list.
3983         (stamp-guile, install-guile, uninstall-guile): Ditto.
3984
3985 2014-07-26  Doug Evans  <xdje42@gmail.com>
3986
3987         PR guile/17177
3988         * guile/lib/gdb.scm (pretty-printers): Export.
3989         (set-pretty-printers!): Export.
3990         * guile/lib/gdb/printing.scm (gdb module): Update.
3991         (prepend-pretty-printer!, append-pretty-printer!): Update.
3992         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3993         (pretty_printer_list_var): Delete.
3994         (pretty_printer_list): New static global.
3995         (gdbscm_pretty_printers): New function.
3996         (gdbscm_set_pretty_printers_x): New function.
3997         (ppscm_find_pretty_printer_from_gdb): Update.
3998         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3999         (gdbscm_initialize_pretty_printers): Update.
4000
4001 2014-07-26  Doug Evans  <xdje42@gmail.com>
4002
4003         PR 17185
4004         * configure.ac: Add check for header gc/gc.h.
4005         Add check for function setenv.
4006         * configure: Regenerate.
4007         * config.in: Regenerate.
4008         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4009
4010 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
4011
4012         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4013         variation in gdbarch matching.
4014
4015 2014-07-25  Tom Tromey  <tromey@redhat.com>
4016
4017         * exec.c (using_exec_ops): Remove.
4018         (exec_close_1): Update.  Remove extraneous block, reindent.
4019         (add_target_sections): Use target_is_pushed.
4020
4021 2014-07-25  Pedro Alves  <palves@redhat.com>
4022
4023         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4024         * monitor.c (monitor_create_inferior): Likewise.
4025         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4026         * remote-sim.c (gdbsim_create_inferior): Likewise.
4027         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4028         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4029         * windows-nat.c (do_initial_windows_stuff): Likewise.
4030
4031 2014-07-25  Pedro Alves  <palves@redhat.com>
4032
4033         * NEWS: Mention signal passing and "signal" command changes.
4034         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4035         comment.
4036         * breakpoint.c (until_break_command): Adjust clear_proceed_status
4037         call.
4038         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4039         * infcmd.c (proceed_thread_callback, continue_1, step_once)
4040         (jump_command): Adjust clear_proceed_status call.
4041         (signal_command): Warn if other thread that are resumed have
4042         signals that will be delivered.  Adjust clear_proceed_status call.
4043         (until_next_command, finish_command)
4044         (proceed_after_attach_callback, attach_command_post_wait)
4045         (attach_command): Adjust clear_proceed_status call.
4046         * infrun.c (proceed_after_vfork_done): Likewise.
4047         (proceed_after_attach_callback): Adjust comment.
4048         (clear_proceed_status_thread): Clear stop_signal if not in pass
4049         state.
4050         (clear_proceed_status_callback): Delete.
4051         (clear_proceed_status): New 'step' parameter.  Only clear the
4052         proceed status of threads the command being prepared is about to
4053         resume.
4054         (proceed): If passed in an explicit signal, override stop_signal
4055         with it.  Don't pass the last stop signal to the thread we're
4056         resuming.
4057         (init_wait_for_inferior): Adjust clear_proceed_status call.
4058         (switch_back_to_stepped_thread): Clear the signal if it should not
4059         be passed.
4060         * infrun.h (clear_proceed_status): New 'step' parameter.
4061         (user_visible_resume_ptid): Add comment.
4062         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4063         signal is in pass state.
4064         * remote.c (append_pending_thread_resumptions): Likewise.
4065         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4066
4067 2014-07-25  Tom Tromey  <tromey@redhat.com>
4068
4069         * target.h (target_stopped_data_address)
4070         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
4071         parentheses.
4072
4073 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
4074
4075         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4076         comments.
4077         (avr_pointer_to_address): Likewise.
4078
4079 2014-07-24  Tom Tromey  <tromey@redhat.com>
4080
4081         * monitor.c (compile_pattern): Update.
4082         * target.h (struct target_ops) <to_shortname, to_longname,
4083         to_doc>: Now const.
4084
4085 2014-07-24  Tom Tromey  <tromey@redhat.com>
4086
4087         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4088         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4089         (add_info_alias, add_com): Make "doc" const.
4090         (print_doc_line): Make "str" const.
4091         (delete_cmd): Update.
4092         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4093         (print_doc_line): Update.
4094         * cli/cli-script.c (document_command): Update.
4095         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4096         (add_com, add_info, add_info_alias): Update.
4097         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4098         * python/py-cmd.c (cmdpy_destroyer): Update.
4099
4100 2014-07-24  Tom Tromey  <tromey@redhat.com>
4101
4102         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4103         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4104         (help_cmd_list): Constify.
4105         (lookup_cmd): Update.
4106         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4107         const.
4108         (help_cmd_list, apropos_cmd): Update.
4109         * cli/cli-script.c (show_user): Update.
4110         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4111         * cli/cli-setshow.h (cmd_show_list): Update.
4112         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4113         (cmd_show_list): Update.
4114         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4115         * python/py-cmd.c (cmdpy_destroyer): Update.
4116
4117 2014-07-24  Tom Tromey  <tromey@redhat.com>
4118
4119         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4120         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4121         const.
4122         * command.h (deprecate_cmd): Update.
4123         * maint.c (maintenance_do_deprecate): Add casts.
4124
4125 2014-07-24  Tom Tromey  <tromey@redhat.com>
4126
4127         * cli/cli-decode.c (help_cmd): Make parameter "const".
4128         * cli/cli-decode.h (help_cmd): Update.
4129
4130 2014-07-24  Tom Tromey  <tromey@redhat.com>
4131
4132         * stack.c (up_silently_base, down_silently_base): Make argument
4133         const.
4134
4135 2014-07-24  Tom Tromey  <tromey@redhat.com>
4136
4137         * solib.c (solib_add): Make "pattern" const.
4138         * solib.h (solib_add): Update.
4139
4140 2014-07-24  Tom Tromey  <tromey@redhat.com>
4141
4142         * remote.c (remote_serial_open, print_packet, putpkt)
4143         (putpkt_binary): Constify.
4144         * remote.h (putpkt): Update.
4145
4146 2014-07-24  Tom Tromey  <tromey@redhat.com>
4147
4148         * monitor.c (monitor_open): Make "args" const.
4149         * monitor.h (monitor_open): Update.
4150
4151 2014-07-24  Tom Tromey  <tromey@redhat.com>
4152
4153         * maint.c (match_bfd_flags): Make "string" const.
4154         (print_bfd_section_info): Remove casts.
4155         (print_objfile_section_info): Make "string" const.
4156
4157 2014-07-24  Tom Tromey  <tromey@redhat.com>
4158
4159         * inf-child.c (inf_child_open_target): Make "arg" const.
4160         * inf-child.h (inf_child_open_target): Update.
4161
4162 2014-07-24  Tom Tromey  <tromey@redhat.com>
4163
4164         * environ.c (unset_in_environ): Make "var" const.
4165         * environ.h (unset_in_environ): Update.
4166
4167 2014-07-24  Tom Tromey  <tromey@redhat.com>
4168
4169         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4170         Make "cmd" const.
4171         (scan_filename_with_cleanup): Likewise.
4172         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4173         Make arguments const.
4174         (restore_command): Update.
4175
4176 2014-07-24  Pedro Alves  <palves@redhat.com>
4177
4178         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4179
4180 2014-07-24  Tom Tromey  <tromey@redhat.com>
4181             Gary Benson  <gbenson@redhat.com>
4182
4183         * nat/linux-ptrace.c (additional_flags): New global.
4184         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4185         additional_flags; don't check GDBSERVER.
4186         (linux_ptrace_set_additional_flags): New function.
4187         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4188         Declare.
4189         * linux-nat.c (_initialize_linux_nat): Call
4190         linux_ptrace_set_additional_flags.
4191
4192 2014-07-24  Tom Tromey  <tromey@redhat.com>
4193
4194         * make-target-delegates (munge_type, write_debugmethod): New
4195         functions.
4196         (debug_names): New global.
4197         ($TARGET_DEBUG_PRINTER): New global.
4198         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4199         name.
4200         Write debug methods.  Generate init_debug_target.
4201         * target-debug.h: New file.
4202         * target-delegates.c: Rebuild.
4203         * target.c: Include target-debug.h.
4204         (debug_target): Hoist definition.
4205         (target_kill, target_get_section_table, target_memory_map)
4206         (target_flash_erase, target_flash_done, target_detach)
4207         (target_disconnect, target_wait, target_resume)
4208         (target_pass_signals, target_program_signals, target_follow_fork)
4209         (target_mourn_inferior, target_search_memory)
4210         (target_thread_address_space, target_close)
4211         (target_find_new_threads, target_core_of_thread)
4212         (target_verify_memory, target_insert_mask_watchpoint)
4213         (target_remove_mask_watchpoint): Remove targetdebug code.
4214         (debug_to_post_attach, debug_to_prepare_to_store)
4215         (debug_to_files_info, debug_to_insert_breakpoint)
4216         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4217         (debug_to_region_ok_for_hw_watchpoint)
4218         (debug_to_can_accel_watchpoint_condition)
4219         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4220         (debug_to_watchpoint_addr_within_range)
4221         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4222         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4223         (debug_to_terminal_init, debug_to_terminal_inferior)
4224         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4225         (debug_to_terminal_save_ours, debug_to_terminal_info)
4226         (debug_to_load, debug_to_post_startup_inferior)
4227         (debug_to_insert_fork_catchpoint)
4228         (debug_to_remove_fork_catchpoint)
4229         (debug_to_insert_vfork_catchpoint)
4230         (debug_to_remove_vfork_catchpoint)
4231         (debug_to_insert_exec_catchpoint)
4232         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4233         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4234         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4235         (setup_target_debug): Call init_debug_target.
4236         * target.h (TARGET_DEBUG_PRINTER): New macro.
4237         (struct target_ops) <to_resume, to_wait, to_pass_signals,
4238         to_program_signals>: Use TARGET_DEBUG_PRINTER.
4239
4240 2014-07-24  Gary Benson  <gbenson@redhat.com>
4241
4242         * exceptions.h (throw_vfatal): Renamed to...
4243         (throw_vquit): New declaration.
4244         (throw_quit): Likewise.
4245         * exceptions.c (throw_vfatal): Renamed to...
4246         (throw_vquit): New function.
4247         (throw_quit): Likewise.
4248         (throw_error): Call throw_verror rather than throw_it.
4249         * utils.h (vfatal): Removed.
4250         (fatal): Likewise.
4251         * utils.c (vfatal): Removed.
4252         (fatal): Likewise.
4253         (internal_verror): Replaced call to fatal with call to throw_quit.
4254         (quit): Replaced calls to fatal with calls to throw_quit.
4255
4256 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
4257
4258         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4259         target_read_code.
4260
4261 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
4262
4263         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4264         less than zero in conditional expression.
4265
4266 2014-07-23  Tom Tromey  <tromey@redhat.com>
4267
4268         * make-target-delegates ($ARGS_PART): Match trailing close paren.
4269         ($INTRO_PART): Don't match whitespace.
4270         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
4271         argument matching.
4272         ($METHOD): Add $METHOD_TRAILER.
4273         (trim): Rewrite.
4274         (scan_target_h): New sub.
4275         Change main loop not to collect state.
4276         * target-delegates.c: Rebuild.
4277
4278 2014-07-23  Gary Benson  <gbenson@redhat.com>
4279
4280         * cp-support.c (gdb_demangle): Fix build on systems without
4281         sigaltstack.
4282
4283 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4284
4285         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4286         for reference entry value target data value.
4287
4288 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4289
4290         * stack.c (read_frame_arg): Verify value_optimized_out before calling
4291         value_available_contents_eq.
4292
4293 2014-07-22  Pedro Alves  <palves@redhat.com>
4294
4295         * value.c (allocate_optimized_out_value): Don't mark value as
4296         non-lazy.
4297
4298 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
4299
4300         * MAINTAINERS (Write After Approval): Update my email address.
4301
4302 2014-07-20  Doug Evans  <dje@google.com>
4303
4304         PR server/17147
4305         * remote.c (putpkt_binary): Add text to error message.
4306
4307 2014-07-20  Yao Qi  <yao@codesourcery.com>
4308
4309         * eval.c: Remove "Chill" from comments.
4310         * gdbtypes.h: Likewise.
4311         * symtab.h: Likewise.
4312
4313 2014-07-20  Yao Qi  <yao@codesourcery.com>
4314
4315         * std-operator.def: Update comments to TERNOP_SLICE.
4316
4317 2014-07-20  Yao Qi  <yao@codesourcery.com>
4318
4319         * std-operator.def: Remove BINOP_RANGE.
4320         * breakpoint.c (watchpoint_exp_is_const): Update.
4321         * expprint.c (dump_subexp_body_standard): Likewise.
4322         * eval.c (init_array_element): Remove dead code.
4323         (evaluate_subexp_standard): Likewise.
4324
4325 2014-07-20  Yao Qi  <yao@codesourcery.com>
4326
4327         * std-operator.def: Remove BINOP_IN.
4328         * breakpoint.c (watchpoint_exp_is_const): Update.
4329         * eval.c (evaluate_subexp_standard): Likewise.
4330         * expprint.c (dump_subexp_body_standard): Likewise.
4331
4332 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
4333
4334         * microblaze-tdep.c (microblaze_register_names): Add
4335         the rshr and rslr register names.
4336         (microblaze_gdbarch_init): Use of tdesc_has_registers.
4337         Use of tdesc_find_feature. Use of tdesc_data_alloc.
4338         Use of tdesc_numbered_register. Use of
4339         microblaze_register_g_packet_guesses. Use of
4340         tdesc_use_registers. Use of set_gdbarch_register_type.
4341         (microblaze_register_g_packet_guesses): New.
4342         * microblaze-tdep.h (microblaze_reg_num): Add
4343         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4344         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4345         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4346         * features/microblaze-core.xml: New file.
4347         * features/microblaze-stack-protect.xml: New file.
4348         * features/microblaze-with-stack-protect.c: New file.
4349         * features/microblaze-with-stack-protect.xml: New file.
4350         * features/microblaze.xml: New file.
4351         * features/microblaze.c: New file.
4352         * features/Makefile (microblaze-with-stack-protect): Add
4353         microblaze-with-stack-protect microblaze and microblaze-expedite.
4354         * regformats/microblaze-with-stack-protect.dat: New file.
4355         * regformats/microblaze.dat: New file.
4356         * doc/gdb.texinfo (MicroBlaze Features): Added.
4357
4358 2014-07-18  Tom Tromey  <tromey@redhat.com>
4359
4360         * exec.c (exec_ops): Now static.
4361         * exec.h (exec_ops): Don't declare.
4362
4363 2014-07-18  Tom Tromey  <tromey@redhat.com>
4364
4365         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4366         to find_target_beneath.
4367         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4368         find_target_beneath.
4369         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4370
4371 2014-07-18  Tom Tromey  <tromey@redhat.com>
4372
4373         PR gdb/17130:
4374         * utils.c (quit): Use target_supports_terminal_ours.
4375         * target.h (target_supports_terminal_ours): Declare.
4376         * target.c (target_supports_delete_record): Don't check
4377         to_delete_record against NULL.
4378         (target_supports_terminal_ours): New function.
4379
4380 2014-07-18  Tom Tromey  <tromey@redhat.com>
4381
4382         PR gdb/17130:
4383         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4384         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4385         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4386         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4387         * windows-nat.c (windows_xfer_partial): Always delegate.
4388         * record-btrace.c (record_btrace_xfer_partial): Simplify
4389         delegation.
4390         (record_btrace_fetch_registers, record_btrace_store_registers)
4391         (record_btrace_prepare_to_store, record_btrace_resume)
4392         (record_btrace_wait, record_btrace_find_new_threads)
4393         (record_btrace_thread_alive): Likewise.
4394         * procfs.c (procfs_xfer_partial): Always delegate.
4395         * corelow.c (core_xfer_partial): Always delegate.
4396         * sol-thread.c (sol_find_new_threads): Simplify delegation.
4397
4398 2014-07-18  Tom Tromey  <tromey@redhat.com>
4399
4400         * exec.c (exec_make_note_section): Move earlier.
4401
4402 2014-07-17  Doug Evans  <dje@google.com>
4403
4404         PR gdb/17170
4405         * maint.c (count_symtabs_and_blocks): Handle NULL
4406         current_program_space.
4407         (report_command_stats): Check global enabled flag in addition to
4408         recorded enabled flag.
4409         (make_command_stats_cleanup): Handle msg_type == 0, startup.
4410
4411 2014-07-16  Pedro Alves  <palves@redhat.com>
4412
4413         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4414
4415 2014-07-16  Tom Tromey  <tromey@redhat.com>
4416
4417         * target.h (struct target_ops) <to_delete_record>: Reformat
4418         comment.
4419
4420 2014-07-16  Tom Tromey  <tromey@redhat.com>
4421
4422         * target-delegates.c: Rebuild.
4423
4424 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
4425
4426         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4427         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4428         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4429         (avr_pointer_to_address): Likewise.
4430         (avr_address_class_type_flags): New function.
4431         (avr_address_class_type_flags_to_name): Likewise.
4432         (avr_address_class_name_to_type_flags): Likewise.
4433         (avr_gdbarch_init): Set address_class_type_flags,
4434         address_class_type_flags_to_name and
4435         address_class_name_to_type_flags.
4436
4437 2014-07-15  Pedro Alves  <palves@redhat.com>
4438
4439         * linux-nat.c (kill_callback): Save errno and work with saved
4440         copy.
4441
4442 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
4443
4444         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4445
4446 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4447
4448         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4449         breakpoint support correctly.
4450
4451 2014-07-14  Pedro Alves  <palves@redhat.com>
4452
4453         * utils.c (prompt_for_continue): Call target_terminal_ours.
4454
4455 2014-07-14  Pedro Alves  <palves@redhat.com>
4456
4457         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4458         catch_errors.  Don't re-enable stdin or notify observers where,
4459         and rethrow error.
4460         (fetch_inferior_event_wrapper): Delete.
4461
4462 2014-07-14  Pedro Alves  <palves@redhat.com>
4463
4464         PR gdb/17072
4465         * top.c: Include "inf-loop.h".
4466         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4467         field.
4468         (gdb_readline_wrapper_cleanup): Make the target async again, if it
4469         was async before.
4470         (gdb_readline_wrapper): Store whether the target is async, and
4471         make it sync.
4472
4473 2014-07-14  Pedro Alves  <palves@redhat.com>
4474
4475         PR gdb/17072
4476         * top.c (gdb_readline_wrapper_line): Tweak comment.
4477         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4478         the input handler callback.
4479
4480 2014-07-14  Pedro Alves  <palves@redhat.com>
4481
4482         PR gdb/17072
4483         * main.c: Include event-top.h.
4484         (handle_command_errors): New function.
4485         (catch_command_errors, catch_command_errors_const): Use it.
4486
4487 2014-07-14  Pedro Alves  <palves@redhat.com>
4488
4489         * exceptions.c (catch_command_errors, catch_command_errors_const):
4490         Moved to main.c.
4491         * exceptions.h (catch_command_errors_ftype)
4492         (catch_command_errors_const_ftype): Moved to main.c.
4493         (catch_command_errors, catch_command_errors_const): Delete
4494         declarations.
4495         * main.c (catch_command_errors_ftype)
4496         (catch_command_errors_const_ftype): Moved here from exceptions.h.
4497         (catch_command_errors, catch_command_errors_const)): Moved here
4498         from exceptions.c and make static.
4499
4500 2014-07-14  Pedro Alves  <palves@redhat.com>
4501
4502         * exceptions.c (print_any_exception): Delete.
4503         (catch_exceptions_with_msg): Use exception_print instead of
4504         print_any_exception.
4505         (catch_errors): Use exception_fprintf instead of
4506         print_any_exception.
4507         (catch_command_errors, catch_command_errors_const): Use
4508         exception_print instead of print_any_exception.
4509
4510 2014-07-14  Pedro Alves  <palves@redhat.com>
4511
4512         * infcall.c (run_inferior_call): Set 'sync_execution' while
4513         running the inferior call.
4514
4515 2014-07-14  Pedro Alves  <palves@redhat.com>
4516
4517         * value.c (value_contents_equal): Delete function.
4518         * value.h (value_contents_equal): Delete declaration.
4519
4520 2014-07-14  Tom Tromey  <tromey@redhat.com>
4521
4522         PR exp/17106:
4523         * gdbtypes.c (is_dynamic_type_internal): New function, from
4524         is_dynamic_type.
4525         (is_dynamic_type): Rewrite.
4526         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4527         (resolve_dynamic_struct): Likewise.
4528         (resolve_dynamic_type_internal): New function, from
4529         resolve_dynamic_type.
4530         (resolve_dynamic_type): Rewrite.
4531
4532 2014-07-14  Tom Tromey  <tromey@redhat.com>
4533
4534         * target.c (target_require_runnable): Also check record_stratum.
4535         Update comment.
4536
4537 2014-07-11  Yao Qi  <yao@codesourcery.com>
4538
4539         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4540         thumb_instruction_restores_sp return true.
4541
4542 2014-07-11  Yao Qi  <yao@codesourcery.com>
4543
4544         * arm-tdep.c (thumb_instruction_restores_sp): New function.
4545         (thumb_in_function_epilogue_p): Call
4546         thumb_instruction_restores_sp.
4547
4548 2014-07-11  Yao Qi  <yao@codesourcery.com>
4549
4550         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4551         'add sp, #imm'.
4552         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4553
4554 2014-07-11  Gary Benson  <gbenson@redhat.com>
4555
4556         * amd64-linux-nat.c (gdbcore.h): Remove include.
4557         (regset.h): Likewise.
4558         (nat/linux-btrace.h): Likewise.
4559         (btrace.h): Likewise.
4560         (gdb_assert.h): Likewise.
4561         (string.h): Likewise.
4562         (sys/uio.h): Likewise.
4563         (sys/debugreg.h): Likewise.
4564         (sys/syscall.h): Likewise.
4565         (sys/procfs.h): Likewise.
4566         (sys/user.h): Likewise.
4567         (asm/ptrace.h): Likewise.
4568         (i386-nat.h): Likewise.
4569         * i386-linux-nat.c (i386-nat.h): Likewise.
4570         (regset.h): Likewise.
4571         (target.h): Likewise.
4572         (linux-nat.h): Likewise.
4573         (nat/linux-btrace.h): Likewise.
4574         (btrace.h): Likewise.
4575         (gdb_assert.h): Likewise.
4576         (string.h): Likewise.
4577         (sys/uio.h): Likewise.
4578         (sys/user.h): Likewise.
4579         (sys/procfs.h): Likewise.
4580         (sys/reg.h): Likewise.
4581         (sys/debugreg.h): Likewise.
4582         (ORIG_EAX): Remove definition.
4583
4584 2014-07-11  Gary Benson  <gbenson@redhat.com>
4585
4586         * i386-linux-nat.h: New file.
4587         * x86-linux-nat.h: Likewise.
4588         * x86-linux-nat.c: Likewise.
4589         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4590         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4591         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4592         * amd64-linux-nat.c (x86-linux-nat.h): New include.
4593         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4594         (PTRACE_SETREGSET): Likewise.
4595         (arch_lwp_info): Now in x86-linux-nat.c.
4596         (have_ptrace_getregset): Now in x86-linux-nat.h.
4597         (x86_linux_dr_get): Now in x86-linux-nat.c.
4598         (x86_linux_dr_set): Likewise.
4599         (x86_linux_dr_get_addr): Likewise.
4600         (x86_linux_dr_get_control): Likewise.
4601         (x86_linux_dr_get_status): Likewise.
4602         (update_debug_registers_callback): Likewise.
4603         (x86_linux_dr_set_control): Likewise.
4604         (x86_linux_dr_set_addr): Likewise.
4605         (x86_linux_prepare_to_resume): Likewise.
4606         (x86_linux_new_thread): Likewise.
4607         (x86_linux_new_fork): Likewise.
4608         (x86_linux_get_thread_area): Likewise.
4609         (super_post_startup_inferior): Likewise.
4610         (x86_linux_child_post_startup_inferior): Likewise.
4611         (AMD64_LINUX_USER64_CS): Likewise.
4612         (AMD64_LINUX_X32_DS): Likewise.
4613         (x86_linux_read_description): Likewise.
4614         (x86_linux_enable_btrace): Likewise.
4615         (x86_linux_disable_btrace): Likewise.
4616         (x86_linux_teardown_btrace): Likewise.
4617         (x86_linux_read_btrace): Likewise.
4618         (x86_linux_create_target): Likewise.
4619         (x86_linux_add_target): Likewise.
4620         * i386-linux-nat.c (x86-linux-nat.h): New include.
4621         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4622         (PTRACE_SETREGSET): Likewise.
4623         (arch_lwp_info): Now in x86-linux-nat.c.
4624         (have_ptrace_getregset): Now in x86-linux-nat.h.
4625         (x86_linux_dr_get): Now in x86-linux-nat.c.
4626         (x86_linux_dr_set): Likewise.
4627         (x86_linux_dr_get_addr): Likewise.
4628         (x86_linux_dr_get_control): Likewise.
4629         (x86_linux_dr_get_status): Likewise.
4630         (update_debug_registers_callback): Likewise.
4631         (x86_linux_dr_set_control): Likewise.
4632         (x86_linux_dr_set_addr): Likewise.
4633         (x86_linux_prepare_to_resume): Likewise.
4634         (x86_linux_new_thread): Likewise.
4635         (x86_linux_new_fork): Likewise.
4636         (x86_linux_get_thread_area): Likewise.
4637         (super_post_startup_inferior): Likewise.
4638         (x86_linux_child_post_startup_inferior): Likewise.
4639         (AMD64_LINUX_USER64_CS): Likewise.
4640         (AMD64_LINUX_X32_DS): Likewise.
4641         (x86_linux_read_description): Likewise.
4642         (x86_linux_enable_btrace): Likewise.
4643         (x86_linux_disable_btrace): Likewise.
4644         (x86_linux_teardown_btrace): Likewise.
4645         (x86_linux_read_btrace): Likewise.
4646         (x86_linux_create_target): Likewise.
4647         (x86_linux_add_target): Likewise.
4648
4649 2014-07-11  Gary Benson  <gbenson@redhat.com>
4650
4651         * amd64-linux-nat.c: Comment and whitespace changes.
4652         * i386-linux-nat.c: Comment and whitespace changes.
4653
4654 2014-07-11  Gary Benson  <gbenson@redhat.com>
4655
4656         * amd64-linux-nat.c (x86_linux_create_target): New function.
4657         (x86_linux_add_target): Likewise.
4658         (_initialize_amd64_linux_nat): Delegate to the above new functions.
4659         * i386-linux-nat.c (x86_linux_create_target): New function.
4660         (x86_linux_add_target): Likewise.
4661         (_initialize_i386_linux_nat): Delegate to the above new functions.
4662
4663 2014-07-11  Gary Benson  <gbenson@redhat.com>
4664
4665         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4666         (ps_get_thread_area): Delegate to the above in 32-bit mode.
4667         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4668         (ps_get_thread_area): Delegate to the above.
4669
4670 2014-07-11  Gary Benson  <gbenson@redhat.com>
4671
4672         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4673         x86_linux_read_description.  All uses updated.  amd64-specific
4674         code conditionalized.  Conditionalized i386-specific code added.
4675         Redundant cast removed.
4676         * i386-linux-nat.c (i386_linux_read_description): Renamed to
4677         x86_linux_read_description.  All uses updated.  i386-specific
4678         code conditionalized.  Conditionalized amd64-specific code added.
4679         One sizeof replaced with the actual type it is describing.
4680
4681 2014-07-11  Gary Benson  <gbenson@redhat.com>
4682
4683         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4684         x86_linux_dr_get.  All uses updated.
4685         (amd64_linux_dr_set): Renamed to
4686         x86_linux_dr_set.  All uses updated.
4687         (amd64_linux_dr_get_addr): Renamed to
4688         x86_linux_dr_get_addr.  All uses updated.
4689         (amd64_linux_dr_get_control): Renamed to
4690         x86_linux_dr_get_control.  All uses updated.
4691         (amd64_linux_dr_get_status): Renamed to
4692         x86_linux_dr_get_status.  All uses updated.
4693         (amd64_linux_dr_set_control): Renamed to
4694         x86_linux_dr_set_control.  All uses updated.
4695         (amd64_linux_dr_set_addr): Renamed to
4696         x86_linux_dr_set_addr.  All uses updated.
4697         (amd64_linux_prepare_to_resume): Renamed to
4698         x86_linux_prepare_to_resume.  All uses updated.
4699         (amd64_linux_new_thread): Renamed to
4700         x86_linux_new_thread.  All uses updated.
4701         (amd64_linux_new_fork): Renamed to
4702         x86_linux_new_fork.  All uses updated.
4703         (amd64_linux_child_post_startup_inferior): Renamed to
4704         x86_linux_child_post_startup_inferior.  All uses updated.
4705         (amd64_linux_enable_btrace): Renamed to
4706         x86_linux_enable_btrace.  All uses updated.
4707         (amd64_linux_disable_btrace): Renamed to
4708         x86_linux_disable_btrace.  All uses updated.
4709         (amd64_linux_teardown_btrace): Renamed to
4710         x86_linux_teardown_btrace.  All uses updated.
4711         (amd64_linux_read_btrace): Renamed to
4712         x86_linux_read_btrace.  All uses updated.
4713         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4714         x86_linux_dr_get.  All uses updated.
4715         (i386_linux_dr_set): Renamed to
4716         x86_linux_dr_set.  All uses updated.
4717         (i386_linux_dr_get_addr): Renamed to
4718         x86_linux_dr_get_addr.  All uses updated.
4719         (i386_linux_dr_get_control): Renamed to
4720         x86_linux_dr_get_control.  All uses updated.
4721         (i386_linux_dr_get_status): Renamed to
4722         x86_linux_dr_get_status.  All uses updated.
4723         (i386_linux_dr_set_control): Renamed to
4724         x86_linux_dr_set_control.  All uses updated.
4725         (i386_linux_dr_set_addr): Renamed to
4726         x86_linux_dr_set_addr.  All uses updated.
4727         (i386_linux_prepare_to_resume): Renamed to
4728         x86_linux_prepare_to_resume.  All uses updated.
4729         (i386_linux_new_thread): Renamed to
4730         x86_linux_new_thread.  All uses updated.
4731         (i386_linux_new_fork): Renamed to
4732         x86_linux_new_fork.  All uses updated.
4733         (i386_linux_child_post_startup_inferior): Renamed to
4734         x86_linux_child_post_startup_inferior.  All uses updated.
4735         (i386_linux_enable_btrace): Renamed to
4736         x86_linux_enable_btrace.  All uses updated.
4737         (i386_linux_disable_btrace): Renamed to
4738         x86_linux_disable_btrace.  All uses updated.
4739         (i386_linux_teardown_btrace): Renamed to
4740         x86_linux_teardown_btrace.  All uses updated.
4741         (i386_linux_read_btrace): Renamed to
4742         x86_linux_read_btrace.  All uses updated.
4743
4744 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
4745
4746         * remote.c (extended_remote_post_attach): New function.
4747         (init_extended_remote_ops): Install it as to_post_attach method.
4748
4749 2014-07-09  Pedro Alves  <palves@redhat.com>
4750
4751         * infcmd.c (attach_command_post_wait): Don't call
4752         target_terminal_inferior here.
4753         (attach_command): Call it here instead.
4754
4755 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4756
4757         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4758         field.
4759         * c-varobj.c (c_is_path_expr_parent): New function, moved core
4760         from varobj.c, with additional checks.
4761         (c_varobj_ops): Fill in is_path_expr_parent field.
4762         (cplus_varobj_ops): Fill in is_path_expr_parent field.
4763         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4764         field.
4765         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4766         ops method.
4767         (varobj_default_is_path_expr_parent): New function.
4768         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4769         (varobj_default_is_path_expr_parent): Declare new function.
4770
4771 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
4772
4773         * infcmd.c (finish_backward): Turn internal error into normal error.
4774
4775 2014-07-07  Pedro Alves  <palves@redhat.com>
4776
4777         PR gdb/17096
4778         * remote.c (async_handle_remote_sigint)
4779         (async_handle_remote_sigint_twice): Call
4780         gdb_call_async_signal_handler instead of
4781         mark_async_signal_handler.
4782
4783 2014-07-07  Tom Tromey  <tromey@redhat.com>
4784
4785         * target-delegates.c: Rebuild.
4786         * target.c (target_info_record): Remove.
4787         * record.c (info_record_command): Unconditionally call
4788         to_info_record.
4789         * target.h (struct target_ops) <to_info_record>: Use
4790         TARGET_DEFAULT_IGNORE.
4791         (target_info_record): Remove.
4792
4793 2014-07-07  Tom Tromey  <tromey@redhat.com>
4794
4795         * target.h (struct target_ops) <to_get_thread_local_address>: Use
4796         TARGET_DEFAULT_NORETURN.
4797         * target.c (generic_tls_error): New function.
4798         (target_translate_tls_address): Don't search target stack.
4799         * target-delegates.c: Rebuild.
4800         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4801         stack.
4802         * linux-thread-db.c (thread_db_get_thread_local_address):
4803         Unconditionally call beneath target.
4804
4805 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
4806
4807         * cli/cli-logging.c (pop_output_files): Assign targerr to
4808         gdb_stdtargerr.
4809
4810 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
4811
4812         * MAINTAINERS (Write After Approval): Update my email address.
4813
4814 2014-07-02  Gary Benson  <gbenson@redhat.com>
4815
4816         * proc-service.c (ps_xfer_memory): Update comment.
4817         (ps_pstop): Remove unused function.
4818         (ps_pcontinue): Likewise.
4819         (ps_lstop): Likewise.
4820         (ps_lcontinue): Likewise.
4821         (ps_lgetxregsize): Likewise.
4822         (ps_lgetxregs): Likewise.
4823         (ps_lsetxregs): Likewise.
4824         (ps_plog): Likewise.
4825         (ps_ptread): Likewise.
4826         (ps_ptwrite): Likewise.
4827
4828 2014-07-01  Mark Wielaard  <mjw@redhat.com>
4829
4830         * dwarf2read.c (add_array_cv_type): New function.
4831         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4832         (read_tag_volatile_type): Likewise.
4833
4834 2014-07-01  Tom Tromey  <tromey@redhat.com>
4835
4836         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4837         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4838         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4839         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4840         * command.h (cmd_cfunc_ftype): Move earlier.
4841         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4842         (add_com, add_info): Use cmd_cfunc_ftype.
4843
4844 2014-06-30  Tom Tromey  <tromey@redhat.com>
4845
4846         * symtab.c (operator_chars): Make parameters and return type
4847         const.
4848         (file_matches): Make "files" const.
4849         (struct search_symbols_data) <files>: Now const.
4850         (search_symbols): Make "regexp" and "files" parameters const.
4851         Update.
4852         (symtab_symbol_info): Remove cast.
4853         (rbreak_command): Update.
4854         * symtab.h (search_symbols): Update.
4855
4856 2014-06-27  Yao Qi  <yao@codesourcery.com>
4857
4858         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4859         Change parameter type to 'struct thread_info *'.  Caller
4860         updated.
4861         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4862         Update declaration.
4863         * dummy-frame.c (struct dummy_frame_id): New.
4864         (dummy_frame_id_eq): New function.
4865         (struct dummy_frame) <id>: Change its type to 'struct
4866         dummy_frame_id'.
4867         (dummy_frame_push): Add parameter ptid and save it in
4868         dummy_frame_id.
4869         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4870         inferior_ptid.
4871         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4872         to inferior_ptid.
4873         (lookup_dummy_frame): Change parameter type to 'struct
4874         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
4875         instead of frame_id_eq.
4876         (dummy_frame_pop): Add parameter ptid.  Callers updated.
4877         Update comments.  Compose dummy_frame_id and pass it to
4878         lookup_dummy_frame.
4879         (dummy_frame_discard): Add parameter ptid.
4880         (dummy_frame_sniffer): Compose dummy_frame_id and call
4881         dummy_frame_id_eq instead of frame_id_eq.
4882         (fprint_dummy_frames): Print ptid.
4883         * dummy-frame.h: Remove comments.
4884         (dummy_frame_push): Add ptid in declaration.
4885         (dummy_frame_pop, dummy_frame_discard): Likewise.
4886
4887 2014-06-26  Tom Tromey  <tromey@redhat.com>
4888
4889         * cli/cli-cmds.c (error_no_arg): Make "why" const.
4890         * command.h (error_no_arg): Update.
4891
4892 2014-06-26  Tom Tromey  <tromey@redhat.com>
4893
4894         * cli/cli-setshow.c (do_set_command): Make "arg" const.
4895         (do_show_command): Make "arg" const.
4896         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4897
4898 2014-06-26  Tom Tromey  <tromey@redhat.com>
4899
4900         * record-full.c (record_full_get_bookmark): Make "args" const.
4901         (record_full_goto_bookmark): Make "raw_bookmark" const.
4902         * record.c (record_goto): New function.
4903         (cmd_record_goto): Use it.  Now static.
4904         * record.h (record_goto): Declare.
4905         (cmd_record_goto): Remove declaration.
4906         * target-delegates.c: Rebuild.
4907         * target.h (struct target_ops) <to_get_bookmark,
4908         to_goto_bookmark>: Make parameter const.
4909
4910 2014-06-26  Tom Tromey  <tromey@redhat.com>
4911
4912         * defs.h (generic_load): Update.
4913         * m32r-rom.c (m32r_load_gen): Make "filename" const.
4914         * monitor.c (monitor_load): Make "args" const.
4915         * remote-m32r-sdi.c (m32r_load): Make "args" const.
4916         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4917         const.
4918         (mips_load): Make "file" const.
4919         * remote-sim.c (gdbsim_load): Make "args" const.
4920         * remote.c (remote_load): Make "name" const.
4921         * symfile.c (generic_load): Make "args" const.
4922         * target-delegates.c: Rebuild.
4923         * target.c (target_load): Make "arg" const.
4924         (debug_to_load): Make "args" const.
4925         * target.h (struct target_ops) <to_load>: Make parameter const.
4926         (target_load): Update.
4927
4928 2014-06-26  Tom Tromey  <tromey@redhat.com>
4929
4930         PR symtab/16902:
4931         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4932         (dwarf2_physname, read_partial_die)
4933         (guess_partial_die_structure_name, fixup_partial_die)
4934         (guess_full_die_structure_name, anonymous_struct_prefix)
4935         (dwarf2_name): Use per-BFD obstack.
4936
4937 2014-06-26  Yao Qi  <yao@codesourcery.com>
4938
4939         * dummy-frame.c (dummy_frame_sniffer): Move local variables
4940         dummyframe and this_id into inner block below.
4941
4942 2014-06-26  Yao Qi  <yao@codesourcery.com>
4943
4944         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4945         with "signal_pass[0]" in the initialization of signal_pass.
4946
4947 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4948
4949         * record-btrace.c (record_btrace_generating_corefile)
4950         (record_btrace_prepare_to_generate_core)
4951         (record_btrace_done_generating_core): New.
4952         (record_btrace_xfer_partial, record_btrace_fetch_registers)
4953         (record_btrace_store_registers, record_btrace_prepare_to_store):
4954         Forward request when generating a core file.
4955         (record_btrace_open): Set record_btrace_generating_corefile to zero.
4956         (init_record_btrace_ops): Set to_prepare_to_generate_core and
4957         to_done_generating_core.
4958
4959 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4960
4961         * target.h (target_ops) <to_prepare_to_generate_core>
4962         <to_done_generating_core>: New.
4963         (target_prepare_to_generate_core, target_done_generating_core): New.
4964         * target.c (target_prepare_to_generate_core)
4965         (target_done_generating_core): New.
4966         * target-delegates.c: Regenerate.
4967         * gcore.c: (write_gcore_file): Rename to ...
4968         (write_gcore_file_1): ...this.
4969         (write_gcore_file): Call target_prepare_to_generate_core
4970         and target_done_generating_core.
4971
4972 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4973
4974         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4975         * gcore.c (write_gcore_file): Free memory returned from
4976         make_corefile_notes.
4977         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4978         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4979
4980 2014-06-24  Yao Qi  <yao@codesourcery.com>
4981
4982         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4983         (arm_linux_init_abi): Set skip_trampoline_code with
4984         gdbarch_skip_trampoline_code instead of
4985         find_solib_trampoline_target.
4986
4987 2014-06-24  Yao Qi  <yao@codesourcery.com>
4988
4989         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4990         arm_skip_bx_reg returns non-zero.
4991
4992 2014-06-24  Yao Qi  <yao@codesourcery.com>
4993
4994         * arm-tdep.c (arm_skip_bx_reg): New function.
4995         (arm_skip_stub): Call arm_skip_bx_reg.
4996
4997 2014-06-23  Don Breazeal  <donb@codesourcery.com>
4998
4999         * MAINTAINERS: Add myself as write-after-approval maintainer.
5000
5001 2014-06-23  Pedro Alves  <palves@redhat.com>
5002
5003         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5004         DR_CONTROL before setting DR0..DR3.
5005         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5006         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5007         bits of DR_CONTROL related to the debug register slot being
5008         disabled.  If all slots are vacant, clear local slowdown as well,
5009         and assert DR_CONTROL is 0.
5010
5011 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
5012
5013         * python/lib/gdb/command/xmethods.py
5014         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
5015         current progspace only if the string "progspace" matches LOCUS_RE.
5016
5017 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5018
5019         Fix --with-system-readline with readline-6.3 patch 5.
5020         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5021         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5022         types.
5023
5024 2014-06-20  Tom Tromey  <tromey@redhat.com>
5025
5026         * dwarf2read.c (dw2_get_real_path): Use correct type in
5027         OBSTACK_CALLOC.
5028         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5029
5030 2014-06-20  Gary Benson  <gbenson@redhat.com>
5031
5032         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
5033         * common/glibc_thread_db.h: Likewise.
5034         * common/i386-cpuid.h: Likewise.
5035         * common/i386-gcc-cpuid.h: Likewise.
5036         * common/linux-btrace.h: Likewise.
5037         * common/linux-osdata.h: Likewise.
5038         * common/linux-procfs.h: Likewise.
5039         * common/linux-ptrace.h: Likewise.
5040         * common/mips-linux-watch.h: Likewise.
5041         * common/linux-btrace.c: Moved to nat.
5042         * common/linux-osdata.c: Likewise.
5043         * common/linux-procfs.c: Likewise.
5044         * common/linux-ptrace.c: Likewise.
5045         * common/mips-linux-watch.c: Likewise.
5046         * nat/gdb_thread_db.h: Moved from common.
5047         * nat/glibc_thread_db.h: Likewise.
5048         * nat/i386-cpuid.h: Likewise.
5049         * nat/i386-gcc-cpuid.h: Likewise.
5050         * nat/linux-btrace.c: Likewise.
5051         * nat/linux-btrace.h: Likewise.
5052         * nat/linux-osdata.c: Likewise.
5053         * nat/linux-osdata.h: Likewise.
5054         * nat/linux-procfs.c: Likewise.
5055         * nat/linux-procfs.h: Likewise.
5056         * nat/linux-ptrace.c: Likewise.
5057         * nat/linux-ptrace.h: Likewise.
5058         * nat/mips-linux-watch.c: Likewise.
5059         * nat/mips-linux-watch.h: Likewise.
5060         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5061         (object file files): Reordered.
5062         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5063         of glibc_thread_db.h.
5064
5065 2014-06-20  Gary Benson  <gbenson@redhat.com>
5066
5067         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5068         (i386_dr_low_type): Moved to nat/i386-dregs.h.
5069         (i386_dr_low): Likewise.
5070         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5071         (i386_dr_low_set_addr): Likewise.
5072         (i386_dr_low_get_addr): Likewise.
5073         (i386_dr_low_can_set_control): Likewise.
5074         (i386_dr_low_set_control): Likewise.
5075         (i386_dr_low_get_control): Likewise.
5076         (i386_dr_low_get_status): Likewise.
5077         (i386_get_debug_register_length): Likewise.
5078         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5079         (i386_dr_low): Likewise.
5080         * nat/i386-dregs.c (i386-low.h): Remove include.
5081         (i386-nat.h): Likewise.
5082         (nat/i386-dregs.h): New include.
5083         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5084         (i386_dr_low_set_addr): Likewise.
5085         (i386_dr_low_get_addr): Likewise.
5086         (i386_dr_low_can_set_control): Likewise.
5087         (i386_dr_low_set_control): Likewise.
5088         (i386_dr_low_get_control): Likewise.
5089         (i386_dr_low_get_status): Likewise.
5090         (i386_get_debug_register_length): Likewise.
5091         (debug_hw_points): Likewise.
5092
5093 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
5094
5095         * Makefile.in (SFILES): Add d-exp.y.
5096         (YYFILES): Add d-exp.c.
5097         (YYOBJ): Add d-exp.o.
5098         (local-maintainer-clean): Delete d-exp.c.
5099         * d-exp.y: New file.
5100         * d-lang.h (d_parse): New declaration.
5101         (d_error): New declaration.
5102         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5103         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5104         PREC_ORDER operators.
5105         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5106
5107 2014-06-19  Yao Qi  <yao@codesourcery.com>
5108
5109         * gdbthread.h (any_running): Remove the declaration.
5110         * thread.c (any_running): Remove.
5111
5112 2014-06-19  Yao Qi  <yao@codesourcery.com>
5113
5114         * gdbthread.h (struct thread_info) <state>: Change its type to
5115         'enum thread_state'.  Update comments.
5116
5117 2014-06-19  Pedro Alves  <palves@redhat.com>
5118
5119         * gdbthread.h (ALL_THREADS): Delete.
5120         (ALL_NON_EXITED_THREADS): New macro.
5121         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5122         instead of ALL_THREADS.
5123         * infrun.c (find_thread_needs_step_over)
5124         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5125         instead of ALL_THREADS.
5126         * record-btrace.c (record_btrace_open)
5127         (record_btrace_stop_recording, record_btrace_close)
5128         (record_btrace_is_replaying, record_btrace_resume)
5129         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5130         * remote.c (append_pending_thread_resumptions): Likewise.
5131         * thread.c (thread_apply_all_command): Likewise.
5132
5133 2014-06-19  Gary Benson  <gbenson@redhat.com>
5134
5135         * i386-nat.c (i386_stopped_by_watchpoint):
5136         Use i386_dr_stopped_by_watchpoint.
5137         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5138         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5139
5140 2014-06-19  Gary Benson  <gbenson@redhat.com>
5141
5142         * nat/i386-dregs.c: New file.
5143         * Makefile.in (i386-dregs.o): New rule.
5144         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5145         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5146         * config/i386/darwin.mh (NATDEPFILES): Likewise.
5147         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5148         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5149         * config/i386/go32.mh (NATDEPFILES): Likewise.
5150         * config/i386/linux.mh (NATDEPFILES): Likewise.
5151         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5152         * config/i386/mingw.mh (NATDEPFILES): Likewise.
5153         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5154         * i386-nat.h (debug_hw_points): New declaration.
5155         * i386-nat.c (breakpoint.h): Remove include.
5156         (command.h): Likewise.
5157         (target.h): Likewise.
5158         (gdb_assert.h): Likewise.
5159         (debug_hw_points): Made nonstatic.
5160         (debug_printf): Now in i386-dregs.c.
5161         (TARGET_HAS_DR_LEN_8): Likewise.
5162         (DR_CONTROL_SHIFT): Likewise.
5163         (DR_CONTROL_SIZE): Likewise.
5164         (DR_RW_EXECUTE): Likewise.
5165         (DR_RW_WRITE): Likewise.
5166         (DR_RW_READ): Likewise.
5167         (DR_RW_IORW): Likewise.
5168         (DR_LEN_1): Likewise.
5169         (DR_LEN_2): Likewise.
5170         (DR_LEN_4): Likewise.
5171         (DR_LEN_8): Likewise.
5172         (DR_LOCAL_ENABLE_SHIFT): Likewise.
5173         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5174         (DR_ENABLE_SIZE): Likewise.
5175         (DR_LOCAL_SLOWDOWN): Likewise.
5176         (DR_GLOBAL_SLOWDOWN): Likewise.
5177         (DR_CONTROL_RESERVED): Likewise.
5178         (I386_DR_CONTROL_MASK): Likewise.
5179         (I386_DR_VACANT): Likewise.
5180         (I386_DR_LOCAL_ENABLE): Likewise.
5181         (I386_DR_GLOBAL_ENABLE): Likewise.
5182         (I386_DR_DISABLE): Likewise.
5183         (I386_DR_SET_RW_LEN): Likewise.
5184         (I386_DR_GET_RW_LEN): Likewise.
5185         (I386_DR_WATCH_HIT): Likewise.
5186         (i386_wp_op_t): Likewise.
5187         (i386_show_dr): Likewise.
5188         (i386_length_and_rw_bits): Likewise.
5189         (i386_insert_aligned_watchpoint): Likewise.
5190         (i386_remove_aligned_watchpoint): Likewise.
5191         (i386_handle_nonaligned_watchpoint): Likewise.
5192         (i386_update_inferior_debug_regs): Likewise.
5193         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5194         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5195         (i386_region_ok_for_watchpoint):
5196         Use i386_dr_region_ok_for_watchpoint.
5197         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5198
5199 2014-06-19  Gary Benson  <gbenson@redhat.com>
5200
5201         * i386-nat.c (i386_insert_hw_breakpoint): Use
5202         i386_insert_watchpoint.
5203         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5204
5205 2014-06-19  Gary Benson  <gbenson@redhat.com>
5206
5207         * i386-nat.c (i386_dr_show): Renamed to
5208         i386_show_dr and made static.  All uses updated.
5209         (i386_dr_length_and_rw_bits): Renamed to
5210         i386_length_and_rw_bits and made static.
5211         All uses updated.
5212         (i386_dr_insert_aligned_watchpoint): Renamed to
5213         i386_insert_aligned_watchpoint and made static.
5214         All uses updated.
5215         (i386_dr_remove_aligned_watchpoint): Renamed to
5216         i386_remove_aligned_watchpoint and made static.
5217         All uses updated.
5218         (i386_dr_update_inferior_debug_regs): Renamed to
5219         i386_update_inferior_debug_regs and made static.
5220         All uses updated.
5221         * nat/i386-dregs.h (i386_dr_show): Removed.
5222         (i386_dr_length_and_rw_bits): Likewise.
5223         (i386_dr_insert_aligned_watchpoint): Likewise.
5224         (i386_dr_remove_aligned_watchpoint): Likewise.
5225         (i386_dr_update_inferior_debug_regs): Likewise.
5226
5227 2014-06-19  Gary Benson  <gbenson@redhat.com>
5228
5229         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5230         * configure: Regenerate.
5231         * config.in: Likewise.
5232         * main.c (signal.h): New include.
5233         (setup_alternate_signal_stack): New function.
5234         (captured_main): Call the above.
5235         * cp-support.c (signal.h): New include.
5236         (catch_demangler_crashes): New flag.
5237         (SIGJMP_BUF): New define.
5238         (SIGSETJMP): Likewise.
5239         (SIGLONGJMP): Likewise.
5240         (gdb_demangle_jmp_buf): New static global.
5241         (gdb_demangle_attempt_core_dump): Likewise.
5242         (gdb_demangle_signal_handler): New function.
5243         (gdb_demangle): If catch_demangler_crashes is set, install the
5244         above signal handler before calling bfd_demangle, and restore
5245         the original signal handler afterwards.  Display the offending
5246         symbol and call demangler_warning the first time a segmentation
5247         fault is caught.
5248         (_initialize_cp_support): New maint set/show command.
5249
5250 2014-06-19  Gary Benson  <gbenson@redhat.com>
5251
5252         * utils.h (resource_limit_kind): New enum.
5253         (can_dump_core): New declaration.
5254         (warn_cant_dump_core): Likewise.
5255         (dump_core): Likewise.
5256         * utils.c (dump_core): Made nonstatic.  Added new
5257         parameter "limit_kind".
5258         (can_dump_core): Made nonstatic. Moved printing code to...
5259         (warn_cant_dump_core): New function.
5260         (can_dump_core_warn): Likewise.
5261         (internal_vproblem): Replace calls to can_dump_core with
5262         calls to can_dump_core_warn.  Supply new argument to each.
5263
5264 2014-06-19  Gary Benson  <gbenson@redhat.com>
5265
5266         * utils.h (demangler_vwarning): New declaration.
5267         (demangler_warning): Likewise.
5268         * utils.c (struct internal_problem)
5269         <user_settable_should_quit>: New field.
5270         <user_settable_should_dump_core>: Likewise
5271         (internal_error_problem): Add values for above new fields.
5272         (internal_warning_problem): Likewise.
5273         (demangler_warning_problem): New static global.
5274         (demangler_vwarning): New function.
5275         (demangler_warning): Likewise.
5276         (add_internal_problem_command): Selectively add commands.
5277         (_initialize_utils): New internal problem command.
5278         * maint.c (maintenance_demangler_warning): New function.
5279         (_initialize_maint_cmds): New command.
5280
5281 2014-06-18  Tom Tromey  <tromey@redhat.com>
5282
5283         * f-valprint.c (info_common_command_for_block): Update.
5284         * symtab.h (struct general_symbol_info) <common_block>: Now
5285         const.
5286
5287 2014-06-18  Tom Tromey  <tromey@redhat.com>
5288
5289         * symtab.h (struct symtab) <blockvector>: Now const.
5290         * ada-lang.c (ada_add_global_exceptions): Update.
5291         * buildsym.c (augment_type_symtab): Update.
5292         * dwarf2read.c (dw2_lookup_symbol): Update.
5293         * jit.c (finalize_symtab): Update.
5294         * jv-lang.c (add_class_symtab_symbol): Update.
5295         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5296         Update.
5297         * objfiles.c (objfile_relocate1): Update.
5298         * psymtab.c (lookup_symbol_aux_psymtabs)
5299         (maintenance_check_psymtabs): Update.
5300         * python/py-symtab.c (stpy_global_block, stpy_static_block):
5301         Update.
5302         * spu-tdep.c (spu_catch_start): Update.
5303         * symmisc.c (dump_symtab_1): Update.
5304         * symtab.c (lookup_global_symbol_from_objfile)
5305         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5306         (basic_lookup_transparent_type_quick)
5307         (basic_lookup_transparent_type, find_pc_sect_symtab)
5308         (find_pc_sect_line, search_symbols): Update.
5309         * block.c (find_block_in_blockvector): Make "bl" const.
5310         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5311         const.
5312         (blockvector_contains_pc): Make "bv" const.
5313         (block_for_pc_sect): Update.
5314         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5315         (blockvector_contains_pc): Update.
5316         * breakpoint.c (resolve_sal_pc): Update.
5317         * inline-frame.c (block_starting_point_at): Update.
5318
5319 2014-06-18  Tom Tromey  <tromey@redhat.com>
5320
5321         * completer.c (complete_line): Make "line_buffer" const.
5322         * completer.h (complete_line): Update.
5323
5324 2014-06-18  Tom Tromey  <tromey@redhat.com>
5325
5326         * symtab.c (add_macro_name): Remove unneeded cast.
5327
5328 2014-06-18  Tom Tromey  <tromey@redhat.com>
5329
5330         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5331         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5332
5333 2014-06-18  Tom Tromey  <tromey@redhat.com>
5334
5335         * probe.c (info_probes_for_ops): Make "arg" const.
5336         * probe.h (info_probes_for_ops): Update.
5337
5338 2014-06-18  Tom Tromey  <tromey@redhat.com>
5339
5340         * varobj.c (varobj_create): Update.
5341         * valops.c (value_of_this): Update.
5342         * tracepoint.c (add_local_symbols, scope_info): Update.
5343         * symtab.h (struct general_symbol_info) <block>: Now const.
5344         * symtab.c (skip_prologue_sal)
5345         (default_make_symbol_completion_list_break_on)
5346         (skip_prologue_using_sal): Update.
5347         * stack.h (iterate_over_block_locals)
5348         (iterate_over_block_local_vars): Update.
5349         * stack.c (print_frame_args): Update.
5350         (iterate_over_block_locals, iterate_over_block_local_vars): Make
5351         parameter const.
5352         (get_selected_block): Make return type const.
5353         * python/py-frame.c (frapy_block): Update.
5354         * python/py-block.c (gdbpy_block_for_pc): Update.
5355         * p-exp.y (%union) <bval>: Now const.
5356         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5357         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5358         * m2-exp.y (%union) <bval>: Now const.
5359         * linespec.c (get_current_search_block): Make return type const.
5360         (create_sals_line_offset, find_label_symbols): Update.
5361         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5362         Update.
5363         (block_starting_point_at): Make "block" const.
5364         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5365         (check_exception_resume): Update.
5366         * guile/scm-frame.c (gdbscm_frame_block): Update.
5367         * guile/scm-block.c (gdbscm_lookup_block): Update.
5368         * frame.h (get_frame_block): Update.
5369         (get_selected_block): Make return type const.
5370         * frame.c (frame_id_inner): Update.
5371         * f-valprint.c (info_common_command_for_block)
5372         (info_common_command): Update.
5373         * dwarf2loc.c (dwarf2_find_location_expression)
5374         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5375         (locexpr_describe_location_piece): Update.
5376         * c-exp.y (%union) <bval>: Now const.
5377         * breakpoint.c (resolve_sal_pc): Update.
5378         * blockframe.c (get_frame_block):Make return type const.
5379         (get_pc_function_start, get_frame_function, find_pc_sect_function)
5380         (block_innermost_frame): Update.
5381         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5382         (block_for_pc, block_for_pc_sect): Update.
5383         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5384         'pblock' const.
5385         (block_for_pc_sect, block_for_pc): Make return type const.
5386         * ax-gdb.c (gen_expr): Update.
5387         * alpha-mdebug-tdep.c (find_proc_desc): Update.
5388         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5389         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5390         (ada_read_var_value): Update.
5391         * ada-exp.y (struct name_info) <block>: Now const.
5392         (%union): Likewise.
5393         (block_lookup): Constify.
5394
5395 2014-06-18  Gary Benson  <gbenson@redhat.com>
5396
5397         * nat/i386-dregs.h: New file.
5398         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5399         * i386-nat.h (i386-dregs.h): New include.
5400         (DR_FIRSTADDR): Now in i386-dregs.h.
5401         (DR_LASTADDR): Likewise.
5402         (DR_NADDR): Likewise.
5403         (DR_STATUS): Likewise.
5404         (DR_CONTROL): Likewise.
5405         (i386_debug_reg_state): Likewise.
5406         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5407
5408 2014-06-18  Don Breazeal  <donb@codesourcery.com>
5409
5410         * breakpoint.c (set_longjmp_breakpoint): Call
5411         momentary_breakpoint_from_master with additional argument.
5412         (set_longjmp_breakpoint_for_call_dummy): Call
5413         momentary_breakpoint_from_master with additional argument.
5414         (set_std_terminate_breakpoint): Call
5415         momentary_breakpoint_from_master with additional argument.
5416         (momentary_breakpoint_from_master): Add argument to function
5417         definition and use it to initialize structure member flag.
5418         (clone_momentary_breakpoint): Call
5419         momentary_breakpoint_from_master with additional argument.
5420         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5421         member flags set in momentary_breakpoint_from_master.
5422
5423 2014-06-18  Gary Benson  <gbenson@redhat.com>
5424
5425         * i386-nat.c (i386_show_dr): Renamed to
5426         i386_dr_show and made nonstatic.  All uses updated.
5427         (i386_length_and_rw_bits): Renamed to
5428         i386_dr_length_and_rw_bits and made nonstatic.
5429         All uses updated.
5430         (i386_insert_aligned_watchpoint): Renamed to
5431         i386_dr_insert_aligned_watchpoint and made nonstatic.
5432         All uses updated.
5433         (i386_remove_aligned_watchpoint): Renamed to
5434         i386_dr_remove_aligned_watchpoint and made nonstatic.
5435         All uses updated.
5436         (i386_update_inferior_debug_regs): Renamed to
5437         i386_dr_update_inferior_debug_regs and made nonstatic.
5438         All uses updated.
5439
5440 2014-06-18  Gary Benson  <gbenson@redhat.com>
5441
5442         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5443         (i386_dr_low_can_set_control): Likewise.
5444         (i386_dr_low_set_addr): Likewise.
5445         (i386_dr_low_set_control): Likewise.
5446         (i386_dr_low_get_addr): Likewise.
5447         (i386_dr_low_get_status): Likewise.
5448         (i386_dr_low_get_control): Likewise.
5449         (i386_insert_aligned_watchpoint): Use new macros.
5450         (i386_update_inferior_debug_regs): Likewise.
5451         (i386_stopped_data_address): Likewise.
5452
5453 2014-06-18  Gary Benson  <gbenson@redhat.com>
5454
5455         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5456         New parameter.  All uses updated.
5457
5458 2014-06-18  Gary Benson  <gbenson@redhat.com>
5459
5460         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5461         All uses updated.
5462
5463 2014-06-18  Gary Benson  <gbenson@redhat.com>
5464
5465         * i386-nat.c (debug_printf): New macro.
5466         (i386_get_debug_register_length): Likewise.
5467         (TARGET_HAS_DR_LEN_8): Use above macro.
5468         (i386_show_dr): Use debug_printf instead of puts_unfiltered
5469         and printf_unfiltered.  Use phex to format values.
5470
5471 2014-06-18  Gary Benson  <gbenson@redhat.com>
5472
5473         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5474         Make const.
5475
5476 2014-06-18  Gary Benson  <gbenson@redhat.com>
5477
5478         * i386-nat.c: Comment changes.
5479
5480 2014-06-18  Gary Benson  <gbenson@redhat.com>
5481
5482         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5483
5484 2014-06-18  Gary Benson  <gbenson@redhat.com>
5485
5486         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5487         (i386_insert_aligned_watchpoint): Likewise.
5488         (i386_remove_aligned_watchpoint): Likewise.
5489         (i386_handle_nonaligned_watchpoint): Likewise.
5490
5491 2014-06-18  Gary Benson  <gbenson@redhat.com>
5492
5493         * i386-nat.c: Whitespace changes.
5494
5495 2014-06-17  Samuel Bronson  <naesten@gmail.com>
5496
5497         * MAINTAINERS: Update Roland McGrath's email address.
5498         Thanks to Sergio Durigan Junior for pointing out that he left
5499         Red Hat a while ago, and giving me a current address.
5500
5501 2014-06-17  Tom Tromey  <tromey@redhat.com>
5502
5503         * utils.h (savestring): Remove declaration.
5504
5505 2014-06-17  Tom Tromey  <tromey@redhat.com>
5506
5507         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5508
5509 2014-06-16  Keith Seitz  <keiths@redhat.com>
5510
5511         PR mi/15863
5512         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5513         to update the varobj if inferior_ptid is null_ptid.
5514
5515 2014-06-16  Tom Tromey  <tromey@redhat.com>
5516
5517         * target.h (struct target_ops) <to_info_proc>: Make parameter
5518         const.
5519         (target_info_proc): Update.
5520         * target.c (target_info_proc): Make "args" const.
5521         * procfs.c (procfs_info_proc): Update.
5522         * linux-tdep.c (linux_info_proc): Update.
5523         (linux_core_info_proc_mappings): Make "args" const.
5524         (linux_core_info_proc): Update.
5525         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5526         * gdbarch.c: Rebuild.
5527         * gdbarch.h: Rebuild.
5528         * corelow.c (core_info_proc): Update.
5529
5530 2014-06-16  Tom Tromey  <tromey@redhat.com>
5531
5532         * target.h (struct target_ops) <to_disconnect>: Make parameter
5533         const.
5534         (target_disconnect): Update.
5535         * target.c (target_disconnect): Make "args" const.
5536         * target-delegates.c: Rebuild.
5537         * remote.c (remote_disconnect): Update.
5538         * record.h (record_disconnect): Update.
5539         * record.c (record_disconnect): Update.
5540         * inf-child.c (inf_child_disconnect): Update.
5541
5542 2014-06-16  Tom Tromey  <tromey@redhat.com>
5543
5544         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5545         * target.c (debug_to_rcmd, default_rcmd): Update.
5546         * target-delegates.c: Rebuild.
5547         * remote.c (remote_rcmd): Update.
5548         * monitor.c (monitor_rcmd): Update.
5549
5550 2014-06-16  Pedro Alves  <palves@redhat.com>
5551
5552         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5553         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5554         have OBJF_SHARED set.
5555         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5556         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
5557         instead of OBJF_USERLOADED.
5558         * objfiles.h (OBJF_SHARED): Update comment.
5559         (userloaded_objfile_contains_address_p): Rename to ...
5560         (shared_objfile_contains_address_p): ... this, and update
5561         comments.
5562         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5563         new objfile.
5564         (remove_symbol_file_command): Skip objfiles that don't have
5565         OBJF_SHARED set.
5566
5567 2014-06-16  Tom Tromey  <tromey@redhat.com>
5568
5569         * minsyms.h (prim_record_minimal_symbol)
5570         (prim_record_minimal_symbol_and_info): Update comments.
5571
5572 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
5573
5574         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5575         or --without-guile, according to how GDB was built.
5576
5577 2014-06-13  Tom Tromey  <tromey@redhat.com>
5578
5579         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5580         to help_list.
5581         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5582         to help_list.
5583         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5584         help_list.
5585         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5586         help_list.Pass all_commands, not -1, to help_list.
5587         * cli/cli-dump.c (dump_command, append_command)
5588         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5589         (binary_dump_command, binary_append_command): Pass all_commands,
5590         not -1, to help_list.
5591         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5592         -1, to help_list.
5593         * valprint.c (set_print, set_print_raw): Pass all_commands, not
5594         -1, to help_list.
5595         * typeprint.c (set_print_type): Pass all_commands, not -1, to
5596         help_list.
5597         * top.c (set_history): Pass all_commands, not -1, to help_list.
5598         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5599         all_commands, not -1, to help_list.
5600         * symfile.c (overlay_command): Pass all_commands, not -1, to
5601         help_list.
5602         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5603         help_list.
5604         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5605         help_list.
5606         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5607         -1, to help_list.
5608         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5609         not -1, to help_list.
5610         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5611         not -1, to help_list.
5612         * maint.c (maintenance_command, maintenance_info_command)
5613         (maintenance_print_command, maintenance_set_cmd): Pass
5614         all_commands, not -1, to help_list.
5615         * macrocmd.c (macro_command): Pass all_commands, not -1, to
5616         help_list.
5617         * language.c (set_check): Pass all_commands, not -1, to help_list.
5618         * infcmd.c (unset_command): Pass all_commands, not -1, to
5619         help_list.
5620         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5621         help_list.
5622         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5623         help_list.
5624         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5625         help_list.
5626         * breakpoint.c (save_command): Pass all_commands, not -1, to
5627         help_list.
5628         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5629         all_commands, not -1, to help_list.
5630
5631 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
5632
5633         * regcache.c (struct register_to_invalidate): New structure.
5634         (do_register_invalidate, make_cleanup_regcache_invalidate): New
5635         functions.
5636         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5637
5638 2014-06-12  Yao Qi  <yao@codesourcery.com>
5639
5640         * varobj.c (varobj_get_num_children): Call
5641         varobj_is_dynamic_p.
5642         (varobj_list_children): Likewise.
5643         (varobj_update): Likewise.  Update comments.
5644
5645 2014-06-12  Yao Qi  <yao@codesourcery.com>
5646
5647         * varobj.c (varobj_pretty_printed_p): Rename to ...
5648         (varobj_is_dynamic_p): ... this.  New function.
5649         * varobj.h (varobj_pretty_printed_p): Remove declaration.
5650         (varobj_is_dynamic_p): Declare.
5651         * mi/mi-cmd-var.c (print_varobj): All callers updated.
5652         (mi_print_value_p, varobj_update_one): Likewise.
5653
5654 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5655             Yao Qi  <yao@codesourcery.com>
5656
5657         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5658         (varobj_get_iterator): Wrap up code for pretty-printer by
5659         "#if HAVE_PYTHON" and "#endif".
5660         (update_dynamic_varobj_children): Likewise.
5661
5662 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5663             Yao Qi  <yao@codesourcery.com>
5664
5665         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5666         gdb_python_initialized is false.  Move some code from varobj.c.
5667         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5668         * varobj.c: Move "varobj-iter.h" inclusion earlier.
5669         (struct varobj_item): Moved to varobj-iter.h".
5670         (varobj_clear_saved_item): New function.
5671         (update_dynamic_varobj_children): Move python-related code to
5672         py-varobj.c.
5673         (free_variable): Call varobj_clear_saved_item and
5674         varobj_iter_delete.
5675
5676 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5677             Yao Qi  <yao@codesourcery.com>
5678
5679         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5680         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5681         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5682         (py-varobj.o): New rule.
5683         * python/py-varobj.c: New file.
5684         * python/python-internal.h (py_varobj_get_iterator): Declare.
5685         * varobj-iter.h: New file.
5686         * varobj.c: Include "varobj-iter.h"
5687         (struct varobj) <child_iter>: Change its type from "PyObject *"
5688         to "struct varobj_iter *".
5689         <saved_item>: Likewise.
5690         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5691         [HAVE_PYTHON] (varobj_get_iterator): New function.
5692         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5693         python-specific code to python/py-varobj.c.
5694         (install_visualizer): Call varobj_iter_delete instead of
5695         Py_XDECREF.
5696         * varobj.h (varobj_ensure_python_env): Declare.
5697
5698 2014-06-12  Yao Qi  <yao@codesourcery.com>
5699
5700         * varobj.c (struct varobj_item): New structure.
5701         (create_child_with_value): Update declaration.
5702         (varobj_add_child): Replace arguments 'name' and 'value' with
5703         'item'.  All callers updated.
5704         (install_dynamic_child): Likewise.
5705         (update_dynamic_varobj_children): Likewise.
5706         (varobj_add_child): Likewise.
5707         (create_child_with_value): Likewise.
5708
5709 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5710
5711         * NEWS: Create a new section for the next release branch.
5712         Rename the section of the current branch, now that it has
5713         been cut.
5714
5715 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5716
5717         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5718         * version.in: Bump version to 7.8.50.DATE-cvs.
5719
5720 2014-06-11  Pedro Alves  <palves@redhat.com>
5721
5722         PR remote/17028
5723         * ser-mingw.c (net_windows_socket_check_pending): New function.
5724         (net_windows_select_thread): Ignore spurious wakeups.  Use
5725         net_windows_socket_check_pending.
5726         (net_windows_wait_handle): Check for pending events with
5727         ioctlsocket, through net_windows_socket_check_pending, instead of
5728         checking the socket's event.
5729
5730 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
5731
5732         * python/python-internal.h (gdb_PyObject_GetAttrString)
5733         (gdb_PyObject_HasAttrString): New inline function definitions.
5734         * py-value.c (get_field_flag): Remove the now unnecessary cast to
5735         char * of the second argument to PyObject_GetAttrString.
5736
5737 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5738
5739         * serial.c (serial_write): Fix index of character to be printed
5740         in call to serial_logchar when serial debug traces are enabled.
5741
5742 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5743
5744         * gdbtypes (resolve_dynamic_range): Add function description.
5745
5746 2014-06-09  Pedro Alves  <palves@redhat.com>
5747
5748         * linux-nat.c (linux_child_follow_fork): Initialize status with
5749         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
5750         inner block.  Only pass the signal to PTRACE_DETACH if in pass
5751         state.
5752
5753 2014-06-09  Gary Benson  <gbenson@redhat.com>
5754
5755         * common/signals.c (gdb_signal_from_host): Reorder to separate
5756         the always-available ANSI-standard signals from the signals that
5757         require checking.
5758         (do_gdb_signal_to_host): Likewise.
5759         * proc-events.c (signal_table): Likewise.
5760
5761 2014-06-08  Hui Zhu  <hui@codesourcery.com>
5762
5763         * common/linux-ptrace.c (linux_disable_event_reporting): New
5764         function.
5765         * common/linux-ptrace.h (linux_disable_event_reporting): New
5766         declaration.
5767         * linux-nat.c (linux_child_follow_fork): Do a single step before
5768         detach.
5769
5770 2014-06-07  Keith Seitz  <keiths@redhat.com>
5771
5772         Revert:
5773         PR c++/16253
5774         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5775         from symbol_matches_domain in symtab.c. All local callers
5776         of symbol_matches_domain updated.
5777         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5778         search STRUCT_DOMAIN.
5779         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5780         independently.  standard_lookup will do that automatically.
5781         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5782         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5783         (cp_lookup_symbol_in_namespace): Likewise.
5784         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5785         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5786         may return a STRUCT_DOMAIN match.
5787         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5788         * cp-support.c: Include language.h.
5789         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5790         VAR_DOMAIN.
5791         * psymtab.c (match_partial_symbol): Compare the requested
5792         domain with the symbol's domain directly.
5793         (lookup_partial_symbol): Likewise.
5794         * symtab.c (lookup_symbol_in_language): Explain when/why
5795         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5796         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5797         appropriate languages.
5798         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5799         and moved to ada-lang.c
5800         (lookup_block_symbol): Explain that this function only returns
5801         symbol matching the requested DOMAIN.
5802         Compare the requested domain with the symbol's domain directly.
5803         (iterate_over_symbols): Compare the requested domain with the
5804         symbol's domain directly.
5805         * symtab.h (symbol_matches_domain): Remove.
5806
5807 2014-06-06  Doug Evans  <xdje42@gmail.com>
5808
5809         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5810         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5811         (gdbscm_guile_version_is_at_least): Declare.
5812         (gdbscm_scm_string_to_int): Declare.
5813         * guile/guile.c (gdbscm_guile_major_version): New global.
5814         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5815         (guile_datadir): New static global.
5816         (gdbscm_guile_data_directory): New function.
5817         (initialize_scheme_side): Update.
5818         (misc_guile_functions): Add guile-data-directory.
5819         (initialize_gdb_module): Fetch guile version number.
5820         * guile/lib/gdb.scm: Remove call to add-to-load-path.
5821         * guile/lib/gdb/init.scm (%initialize!): Ditto.
5822         * guile/lib/gdb/boot.scm: Use guile-data-directory.
5823         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5824         comments.
5825         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5826         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5827         * guile/scm-value.c (gdbscm_value_to_string): Only call
5828         scm_port_conversion_strategy if Guile version >= 2.0.6.
5829
5830 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
5831
5832         * main.c (print_gdb_help): Add -q and --silent.
5833
5834 2014-06-06  Gary Benson  <gbenson@redhat.com>
5835
5836         * common/signals.c: Remove preprocessor conditionals for
5837         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5838         SIGSEGV and SIGTERM.
5839         * proc-events.c: Likewise.
5840
5841 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
5842
5843         * symfile.c (symfile_free_objfile): Remove restriction to
5844         OBJF_USERLOADED.
5845         * symfile-mem.c (symbol_file_add_from_memory): Call
5846         add_target_sections_of_objfile.
5847
5848 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
5849
5850         * guile/scm-value.c (gdbscm_history_append_x): Use
5851         'vlscm_get_value_smob_arg_unsafe' instead of
5852         'vlscm_scm_to_value'.
5853
5854 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
5855
5856         PR mi/15806
5857         * utils.c (printchar): Don't escape at all if quoter is NUL.
5858         Update function documentation to clarify effect of parameter
5859         QUOTER.
5860         * remote.c (escape_buffer): Pass '\\' as the quoter to
5861         fputstrn_unfiltered.
5862         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5863         generate the output.
5864         (mi_solib_unloaded): Same.
5865
5866 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
5867
5868         * development.sh: Delete.
5869         * Makefile.in (config.status): Adjust dependency on development.sh.
5870         * configure.ac: Adjust development.sh source call.
5871         * configure: Regenerate.
5872
5873 2014-06-04  Doug Evans  <xdje42@gmail.com>
5874
5875         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5876         is_scheme_bkpt, spec.
5877         (bpscm_make_breakpoint_smob): Initialize new members.
5878         (gdbscm_create_breakpoint_x): Split into two ...
5879         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5880         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5881         (scheme_function breakpoint_functions): Update.
5882         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
5883         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
5884         register-breakpoint!.
5885
5886 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
5887
5888         PR server/17023
5889         * mem-break.c (z_type_supported): Return zero if
5890         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5891
5892 2014-06-04  Tom Tromey  <tromey@redhat.com>
5893
5894         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5895         value_from_contents_and_address_unresolved.
5896         (ada_template_to_fixed_record_type_1): Likewise.
5897         (ada_which_variant_applies): Likewise.
5898         * value.h (value_from_contents_and_address_unresolved): Declare.
5899         * value.c (value_from_contents_and_address_unresolved): New
5900         function.
5901         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5902         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5903         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5904
5905 2014-06-04  Tom Tromey  <tromey@redhat.com>
5906
5907         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5908
5909 2014-06-04  Tom Tromey  <tromey@redhat.com>
5910
5911         * procfs.c (procfs_attach): Make "args" const.
5912         * windows-nat.c (windows_attach): Make "args" const.
5913         * nto-procfs.c (procfs_attach): Make "args" const.
5914         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5915         * go32-nat.c (go32_attach): Make "args" const.
5916         * gnu-nat.c (gnu_attach): Make "args" const.
5917         * darwin-nat.c (darwin_attach): Make "args" const.
5918         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5919         * linux-nat.c (linux_nat_attach): Make "args" const.
5920         * remote.c (extended_remote_attach_1, extended_remote_attach):
5921         Make "args" const.
5922         * target.h (struct target_ops) <to_attach>: Make "args" const.
5923         (find_default_attach): Likewise.
5924         * utils.c (parse_pid_to_attach): Make "args" const.
5925         * utils.h (parse_pid_to_attach): Update.
5926
5927 2014-06-04  Tom Tromey  <tromey@redhat.com>
5928
5929         * target-delegates.c: Rebuild.
5930         * target.c (default_thread_address_space): New function.
5931         (target_thread_address_space): Simplify.
5932         * target.h (struct target_ops) <to_thread_address_space>: Add
5933         TARGET_DEFAULT_FUNC.
5934
5935 2014-06-04  Doug Evans  <xdje42@gmail.com>
5936
5937         * guile/scm-type.c (type_smob): Remove duplicate typedef.
5938
5939 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
5940
5941         * record-btrace.c: Include event-loop.h and inf-loop.h.
5942         (record_btrace_resume_exec_dir)
5943         (record_btrace_async_inferior_event_handler)
5944         (record_btrace_handle_async_inferior_event): New.
5945         (record_btrace_open): Create async event handler.
5946         (record_btrace_close): Delete async event handler.
5947         (record_btrace_resume): Set record_btrace_resume_exec_dir,
5948         Mark async event handler.
5949         (record_btrace_execution_direction): New.
5950         (init_record_btrace_ops): Initialize to_execution_direction.
5951
5952 2014-06-03  Doug Evans  <xdje42@gmail.com>
5953
5954         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5955         (gdbscm_make_parameter): Ditto.
5956
5957 2014-06-03  Doug Evans  <dje@google.com>
5958
5959         * exec.c (exec_close_1): Call clear_section_table instead of
5960         resize_section_table.
5961         (clear_section_table): New function.
5962         (resize_section_table): Make static.  Rename arg num_added to
5963         adjustment.
5964         * exec.h (clear_section_table): Declare.
5965         (resize_section_table): Delete.
5966         * progspace.c (release_program_space): Call clear_section_table
5967         instead of resize_section_table.
5968
5969 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5970
5971         * NEWS (Python Scripting): Add entry about the new xmethods
5972         feature.
5973
5974 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5975
5976         * python/py-xmethods.c: New file.
5977         * python/py-objfile.c (objfile_object): New field 'xmethods'.
5978         (objfpy_dealloc): XDECREF on the new xmethods field.
5979         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5980         field.
5981         (objfpy_get_xmethods): New function.
5982         (objfile_getset): New entry 'xmethods'.
5983         * python/py-progspace.c (pspace_object): New field 'xmethods'.
5984         (pspy_dealloc): XDECREF on the new xmethods field.
5985         (pspy_new, pspace_to_pspace_object): Initialize xmethods
5986         field.
5987         (pspy_get_xmethods): New function.
5988         (pspace_getset): New entry 'xmethods'.
5989         * python/python-internal.h: Add declarations for new functions.
5990         * python/python.c (_initialize_python): Invoke
5991         gdbpy_initialize_xmethods.
5992         * python/lib/gdb/__init__.py (xmethods): New
5993         attribute.
5994         * python/lib/gdb/xmethod.py: New file.
5995         * python/lib/gdb/command/xmethods.py: New file.
5996
5997 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5998
5999         * eval.c (evaluate_subexp_standard): Call the xmethod if the
6000         best match method returned by find_overload_match is an xmethod.
6001         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6002         the best matching operator returned by find_overload_match is an
6003         xmethod.
6004         * valops.c: #include "extension.h".
6005         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6006         Return void.  The list of matching source methods is returned in
6007         "fn_list" and a vector of matching debug method workers is
6008         returned in "xm_worker_vec".  Update all callers.
6009         (value_find_oload_method_list): Likewise.
6010         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
6011         non-NULL, then the index of the best matching method in this
6012         vector is returned.  Update all callers.
6013         (find_overload_match): Include xmethods while performing overload
6014         resolution.
6015
6016 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6017
6018         * defs.h (enum lval_type): New enumerator "lval_xcallable".
6019         * extension-priv.h (struct extension_language_ops): Add the
6020         xmethod interface.
6021         * extension.c (new_xmethod_worker, clone_xmethod_worker,
6022         get_matching_xmethod_workers, get_xmethod_argtypes,
6023         invoke_xmethod, free_xmethod_worker,
6024         free_xmethod_worker_vec): New functions.
6025         * extension.h: #include "common/vec.h".
6026         New function declarations.
6027         (struct xmethod_worker): New struct.
6028         (VEC (xmethod_worker_ptr)): New vector type.
6029         (xmethod_worker_ptr): New typedef.
6030         (xmethod_worker_vec): Likewise.
6031         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6032         builtin_type.
6033         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6034         (struct builtin_type): New field "xmethod".
6035         * valarith.c (value_ptradd): Assert that the value argument is not
6036         lval_xcallable.
6037         * valops.c (value_must_coerce_to_target): Return 0 for
6038         lval_xcallable values.
6039         * value.c (struct value): New field XM_WORKER in the field
6040         LOCATION.
6041         (value_address, value_raw_address): Return 0 for lval_xcallable
6042         values.
6043         (set_value_address): Assert that the value is not an
6044         lval_xcallable.
6045         (value_free): Free the associated xmethod worker when freeing
6046         lval_xcallable values.
6047         (set_value_component_location): Assert that the WHOLE value is not
6048         lval_xcallable.
6049         (value_of_xmethod, call_xmethod): New functions.
6050         * value.h: Declare "struct xmethod_worker".
6051         Declare new functions value_of_xmethod, call_xmethod.
6052
6053 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
6054             Pedro Alves  <palves@redhat.com>
6055
6056         PR breakpoints/17000
6057         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6058         New function, extracted from software_breakpoint_inserted_here_p.
6059         (software_breakpoint_inserted_here_p): Replace factored out code
6060         by call to find_non_raw_software_breakpoint_inserted_here.
6061         (bp_target_info_copy_insertion_state): New function.
6062         (bkpt_insert_location): Handle the case of a single-step
6063         breakpoint already inserted at the same address.
6064         (bkpt_remove_location): Handle the case of a single-step
6065         breakpoint still inserted at the same address.
6066         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6067         breakpoint already inserted at the same address.
6068         (deprecated_remove_raw_breakpoint): Handle the case of a
6069         non-raw breakpoint still inserted at the same address.
6070         (find_single_step_breakpoint): New function, extracted from
6071         single_step_breakpoint_inserted_here_p.
6072         (find_single_step_breakpoint): New function,
6073         factored out from single_step_breakpoint_inserted_here_p.
6074         (single_step_breakpoint_inserted_here_p): Reimplement.
6075
6076 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
6077
6078         Pushed by Joel Brobecker  <brobecker@adacore.com>
6079         * source.c (show_substitute_path_command): Fix display of matching
6080         substitution rules.
6081
6082 2014-06-03  Gary Benson  <gbenson@redhat.com>
6083
6084         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6085
6086 2014-06-02  Doug Evans  <xdje42@gmail.com>
6087
6088         Add parameter support for Guile.
6089         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6090         (SUBDIR_GUILE_SRCS): Add scm-param.c.
6091         (scm-param.o): New rule.
6092         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6093         (gdbscm_misc_error): Declare.
6094         (gdbscm_canonicalize_command_name): Declare.
6095         (gdbscm_scm_to_host_string): Declare.
6096         (gdbscm_scm_from_host_string): Declare.
6097         (gdbscm_initialize_parameters): Declare.
6098         * guile/guile.c (initialize_gdb_module): Call
6099         gdbscm_initialize_parameters.
6100         * guile/lib/gdb.scm: Export parameter symbols.
6101         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6102         cmdscm_canonicalize_name and made public.  All callers updated.
6103         * guile/scm-exception.c (gdbscm_misc_error): New function.
6104         * guile/scm-param.c: New file.
6105         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6106         (gdbscm_scm_to_host_string): New function.
6107         (gdbscm_scm_from_host_string): New function.
6108         * scm-utils.c (gdbscm_gc_dup_argv): New function.
6109
6110 2014-06-02  Doug Evans  <xdje42@gmail.com>
6111
6112         Add command support for Guile.
6113         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6114         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6115         (scm-cmd.o): New rule.
6116         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6117         (gdbscm_user_error_p): Declare.
6118         (gdbscm_parse_command_name): Declare.
6119         (gdbscm_valid_command_class_p): Declare.
6120         (gdbscm_initialize_commands): Declare.
6121         * guile/guile.c (initialize_gdb_module): Call
6122         gdbscm_initialize_commands.
6123         * guile/lib/gdb.scm: Export command symbols.
6124         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6125         (throw-user-error): New function.
6126         * guile/scm-cmd.c: New file.
6127         * guile/scm-exception.c (user_error_symbol): New static global.
6128         (gdbscm_user_error_p): New function.
6129         (gdbscm_initialize_exceptions): Set user_error_symbol.
6130         * scm-utils.c (gdbscm_gc_xstrdup): New function.
6131
6132 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
6133
6134         * top.c (command_loop): Handle comments here...
6135         (command_line_input): ... not here.
6136
6137 2014-06-02  Doug Evans  <xdje42@gmail.com>
6138
6139         Add progspace support for Guile.
6140         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6141         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6142         (scm-progspace.o): New rule.
6143         * guile/guile-internal.h (pspace_smob): New typedef.
6144         (psscm_pspace_smob_pretty_printers): Declare.
6145         (psscm_pspace_smob_from_pspace): Declare.
6146         (psscm_scm_from_pspace): Declare.
6147         * guile/guile.c (initialize_gdb_module): Call
6148         gdbscm_initialize_pspaces.
6149         * guile/lib/gdb.scm: Export progspace symbols.
6150         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6151         support.
6152         (append-pretty-printer!): Ditto.
6153         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6154         Implement.
6155         * guile/scm-progspace.c: New file.
6156
6157 2014-06-03  Alan Modra  <amodra@gmail.com>
6158
6159         * ppc64-tdep.c (ppc64_standard_linkage8): New.
6160         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6161
6162 2014-06-02  Doug Evans  <dje@google.com>
6163
6164         Add support for skeletonless type units.
6165         * dwarf2read.c (struct dwarf2_per_objfile): New member
6166         n_allocated_type_units.
6167         (struct dwarf2_per_objfile) <tu_stats>: New member
6168         nr_all_type_units_reallocs.
6169         (create_signatured_type_table_from_index): Initialize
6170         n_allocated_type_units
6171         (create_all_type_units): Ditto.
6172         (add_type_unit): Move up in file.  New arg slot.
6173         All callers updated.  Increase space for all_type_units more
6174         efficiently.
6175         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6176         (lookup_dwo_signatured_type): Handle skeletonless TUs.
6177         (lookup_dwp_signatured_type): Ditto.
6178         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6179         All callers updated.
6180         (build_type_psymtabs_1): Leave type_unit_groups as
6181         NULL if no TUs present.
6182         (print_tu_stats): New function.
6183         (process_skeletonless_type_unit): New function.
6184         (process_dwo_file_for_skeletonless_type_units): New
6185         function.
6186         (process_skeletonless_type_units): New function.
6187         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6188         Call print tu_stats if debugging enabled.
6189
6190 2014-06-02  Pedro Alves  <palves@redhat.com>
6191
6192         * breakpoint.c (build_target_command_list): Don't build a command
6193         list if we have any duplicate location that isn't a dprintf.
6194
6195 2014-06-02  Pedro Alves  <palves@redhat.com>
6196
6197         * breakpoint.c (dprintf_breakpoint_hit): New function.
6198         (initialize_breakpoint_ops): Install it as dprintf's
6199         breakpoint_hit method.
6200
6201 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
6202
6203         * source.c (substitute_path_rule_matches): Simplify using
6204         filename_ncmp instead of FILENAME_CMP.
6205
6206 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
6207
6208         * source.c (substitute_path_rule_matches): Remove trailing spaces.
6209
6210 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
6211
6212         * configure.ac: When Guile is available, check for the
6213         availability of 'scm_new_smob'.
6214         * configure, config.h.in: Regenerate.
6215         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6216         function.
6217
6218 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6219
6220         * frame.c (struct frame_info): Add stop_string field.
6221         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6222         (get_prev_frame_always): Old content moved into
6223         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
6224         TRY_CATCH, handle MEMORY_ERROR exceptions.
6225         (frame_stop_reason_string): New function definition.
6226         * frame.h (unwind_stop_reason_to_string): Extend comment to
6227         mention frame_stop_reason_string.
6228         (frame_stop_reason_string): New function declaration.
6229         * stack.c (frame_info): Switch to frame_stop_reason_string.
6230         (backtrace_command_1): Switch to frame_stop_reason_string.
6231         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6232         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6233         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6234
6235 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6236
6237         * frame.c (frame_stop_reason_string): Rename to ...
6238         (unwind_stop_reason_to_string): this.
6239         * frame.h (frame_stop_reason_string): Rename to ...
6240         (unwind_stop_reason_to_string): this.
6241         * stack.c (frame_info): Update call to frame_stop_reason_string.
6242         (backtrace_command_1): Likewise.
6243         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6244         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6245
6246 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6247
6248         * frame.c (remove_prev_frame): New function.
6249         (get_prev_frame_if_no_cycle): Create / discard cleanup using
6250         remove_prev_frame.
6251
6252 2014-05-29  Pedro Alves  <palves@redhat.com>
6253
6254         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6255         and make it const.  When a single-step decays to a continue,
6256         clear 'step', not 'hw_step'.  Pass whether the caller wanted
6257         to step to user_visible_resume_ptid, not what we ask the
6258         target to do.
6259
6260 2014-05-29  Pedro Alves  <palves@redhat.com>
6261
6262         * infrun.c (process_event_stop_test, handle_step_into_function)
6263         (handle_step_into_function_backward): Adjust.
6264         Don't set the even thread's stop_step and call stop_waiting before
6265         calling end_stepping_range.  Instead do that ...
6266         (end_stepping_range): ... here.  Take an ecs pointer parameter.
6267
6268 2014-05-29  Pedro Alves  <palves@redhat.com>
6269
6270         * infrun.c (stop_stepping): Rename to ...
6271         (stop_waiting): ... this.
6272         (proceed): Update comment.
6273         (process_event_stop_test, handle_inferior_event)
6274         (handle_signal_stop, handle_step_into_function)
6275         (handle_step_into_function_backward): Update.
6276
6277 2014-05-29  Pedro Alves  <palves@redhat.com>
6278
6279         * infcall.c (run_inferior_call): Don't check whether the current
6280         thread is running after the proceed call.
6281
6282 2014-05-29  Pedro Alves  <palves@redhat.com>
6283             Tom Tromey  <tromey@redhat.com>
6284
6285         * NEWS: Mention "maint set target-async", "set mi-async", and that
6286         background execution commands are now always available.
6287         * target.h (target_async_permitted): Update comment.
6288         * target.c (target_async_permitted, target_async_permitted_1):
6289         Default to 1.
6290         (set_target_async_command): Rename to ...
6291         (maint_set_target_async_command): ... this.
6292         (show_target_async_command): Rename to ...
6293         (maint_show_target_async_command): ... this.
6294         (_initialize_target): Adjust.
6295         * infcmd.c (prepare_execution_command): Make extern.
6296         * inferior.h (prepare_execution_command): Declare.
6297         * infrun.c (set_observer_mode): Leave target async alone.
6298         * mi/mi-interp.c (mi_interpreter_init): Install
6299         mi_on_sync_execution_done as sync_execution_done observer.
6300         (mi_on_sync_execution_done): New function.
6301         (mi_execute_command_input_handler): Don't print the prompt if we
6302         just started a synchronous command with an async target.
6303         (mi_on_resume): Check sync_execution before printing prompt.
6304         * mi/mi-main.h (mi_async_p): Declare.
6305         * mi/mi-main.c: Include gdbcmd.h.
6306         (mi_async_p): New function.
6307         (mi_async, mi_async_1): New globals.
6308         (set_mi_async_command, show_mi_async_command, mi_async): New
6309         functions.
6310         (exec_continue): Call prepare_execution_command.
6311         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6312         (mi_execute_async_cli_command): Use mi_async_p.
6313         (_initialize_mi_main): Install "set mi-async".  Make
6314         "target-async" a deprecated alias.
6315
6316 2014-05-29  Pedro Alves  <palves@redhat.com>
6317
6318         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6319         (_initialize_cli_interp): Adjust.
6320         * event-loop.c: Include "observer.h".
6321         (start_event_loop): Notify 'command_error' observers instead of
6322         calling display_gdb_prompt.  Remove FIXME comment.
6323         * event-top.c (display_gdb_prompt): Remove call into the
6324         interpreters.
6325         * inf-loop.c: Include "observer.h".
6326         (inferior_event_handler): Notify 'command_error' observers instead
6327         of calling display_gdb_prompt.
6328         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6329         observers instead of calling display_gdb_prompt.
6330         * interps.c (interp_set): Don't call display_gdb_prompt.
6331         (current_interp_display_prompt_p): Delete.
6332         * interps.h (interp_prompt_p): Delete declaration.
6333         (interp_prompt_p_ftype): Delete.
6334         (struct interp_procs) <prompt_proc_p>: Delete field.
6335         (current_interp_display_prompt_p): Delete declaration.
6336         * mi-interp.c (mi_interpreter_prompt_p): Delete.
6337         (_initialize_mi_interp): Adjust.
6338         * tui-interp.c (tui_init): Install 'sync_execution_done' and
6339         'command_error' observers.
6340         (tui_on_sync_execution_done, tui_on_command_error): New
6341         functions.
6342         (tui_display_prompt_p): Delete.
6343         (_initialize_tui_interp): Adjust.
6344
6345 2014-05-29  Pedro Alves  <palves@redhat.com>
6346
6347         PR gdb/13860
6348         * cli/cli-interp.c: Include infrun.h and observer.h.
6349         (cli_uiout, cli_interp): New globals.
6350         (cli_on_signal_received, cli_on_end_stepping_range)
6351         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6352         functions.
6353         (cli_interpreter_init): Install them as 'end_stepping_range',
6354         'signal_received' 'signal_exited', 'exited' and 'no_history'
6355         observers.
6356         (_initialize_cli_interp): Remove cli_interp local.
6357         * infrun.c (handle_inferior_event): Call the several stop reason
6358         observers instead of printing the stop reason directly.
6359         (end_stepping_range): New function.
6360         (print_end_stepping_range_reason, print_signal_exited_reason)
6361         (print_exited_reason, print_signal_received_reason)
6362         (print_no_history_reason): Make static, and add an uiout
6363         parameter.  Print to that instead of to CURRENT_UIOUT.
6364         * infrun.h (print_end_stepping_range_reason)
6365         (print_signal_exited_reason, print_exited_reason)
6366         (print_signal_received_reason print_no_history_reason): New
6367         declarations.
6368         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6369         'mi_uiout'.
6370         <cli_uiout>: New field.
6371         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
6372         uiout for CLI output.  Install 'signal_received',
6373         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6374         observers.
6375         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6376         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6377         (mi_on_no_history): New functions.
6378         (ui_out_free_cleanup): Delete function.
6379         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6380         instead use the one already stored in the MI interpreter data.
6381         (mi_ui_out): Adjust.
6382         * tui/tui-interp.c: Include infrun.h and observer.h.
6383         (tui_interp): New global.
6384         (tui_on_signal_received, tui_on_end_stepping_range)
6385         (tui_on_signal_exited, tui_on_exited)
6386         (tui_on_no_history): New functions.
6387         (tui_init): Install them as 'end_stepping_range',
6388         'signal_received' 'signal_exited', 'exited' and 'no_history'
6389         observers.
6390         (_initialize_tui_interp): Delete tui_interp local.
6391
6392 2014-05-29  Pedro Alves  <palves@redhat.com>
6393
6394         PR gdb/15713
6395         * linux-nat.c (linux_nat_resume_callback): Rename the second
6396         parameter to 'except'.  Skip LP if it points to EXCEPT.
6397         (linux_nat_resume): Don't mark the event lwp as not stopped
6398         before resuming sibling lwps.  Instead ask
6399         linux_nat_resume_callback to skip the event lwp.  Mark it as not
6400         stopped after actually resuming it.
6401         (linux_handle_syscall_trap): Mark the lwp as not stopped after
6402         resuming it.
6403         (wait_lwp): Mark the lwp as stopped here.
6404         (stop_wait_callback): Mark the lwp as not stopped right after
6405         resuming it.  Don't mark lwps as stopped here.
6406         (linux_nat_filter_event): Mark the lwp as stopped earlier.
6407         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6408
6409 2014-05-29  Pedro Alves  <palves@redhat.com>
6410
6411         PR PR15693
6412         * infrun.c (resume): Determine how much to resume depending on
6413         whether the caller wanted a step, not whether we can hardware step
6414         the target.  Mark all threads that we intend to run as running,
6415         unless we're calling an inferior function.
6416         (normal_stop): If the thread is running an infcall, don't finish
6417         thread state.
6418         * target.c (target_resume): Don't mark threads as running here.
6419
6420 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
6421
6422         * serial.c (_initialize_serial): Remove support for
6423         the "set remotebaud" and "show remotebaud" commands.
6424         * NEWS: Add entry documenting the removal of that command.
6425
6426 2014-05-28  Yao Qi  <yao@codesourcery.com>
6427
6428         * charset.c: Fix typo in comments.
6429
6430 2014-05-27  Gary Benson  <gbenson@redhat.com>
6431
6432         * utils.c (internal_vproblem): Prompt for a bug report.
6433
6434 2014-05-26  Andy Wingo  <wingo@igalia.com>
6435
6436         * guile/scm-arch.c (arscm_mark_arch_smob):
6437         * guile/scm-block.c (bkscm_mark_block_smob)
6438         (bkscm_mark_block_syms_progress_smob):
6439         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6440         * guile/scm-exception.c (exscm_mark_exception_smob):
6441         * guile/scm-frame.c (frscm_mark_frame_smob):
6442         * guile/scm-iterator.c (itscm_mark_iterator_smob):
6443         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6444         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6445         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6446         (ppscm_mark_pretty_printer_worker_smob):
6447         * guile/scm-symbol.c (syscm_mark_symbol_smob):
6448         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6449         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6450         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6451         mark functions.
6452         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6453         function.
6454
6455 2014-05-26  Andy Wingo  <wingo@igalia.com>
6456             Doug Evans  <xdje42@gmail.com>
6457
6458         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6459         empty_base_class.  All uses updated.
6460         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6461         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6462         Adapt all callers.
6463         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6464         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6465         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6466         (gdbscm_gsmob_has_property_p, add_property_name)
6467         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6468         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6469         (gdb-object-has-property?, gdb-object-properties): Remove.
6470         (gdb-object-kind): Renamed from gsmob-kind.
6471
6472 2014-05-26  Andy Wingo  <wingo@igalia.com>
6473
6474         * configure.ac (try_guile_versions): Allow building with guile 2.2.
6475         * configure: Regenerate.
6476
6477 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6478
6479         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6480
6481 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6482
6483         * record-btrace.c (record_btrace_allow_memory_access): Remove.
6484         (replay_memory_access_read_only, replay_memory_access_read_write)
6485         (replay_memory_access_types, replay_memory_access)
6486         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6487         (cmd_set_record_btrace, cmd_show_record_btrace)
6488         (cmd_show_replay_memory_access): New.
6489         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6490         (record_btrace_remove_breakpoint): Replace
6491         record_btrace_allow_memory_access with replay_memory_access.
6492         (_initialize_record_btrace): Add commands.
6493         * NEWS: Announce it.
6494
6495 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6496
6497         * aarch64-linux-nat.c (asm/ptrace.h): Include.
6498
6499 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6500
6501         * MAINTAINERS (Write After Approval): Move self back from
6502         paper trail.
6503
6504 2014-05-22  Pedro Alves  <palves@redhat.com>
6505
6506         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6507         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6508         (disable_randomization, enum exec_direction_kind)
6509         (execution_direction, stop_registers, start_remote)
6510         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6511         (wait_for_inferior, normal_stop, get_last_target_status)
6512         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6513         (insert_step_resume_breakpoint_at_sal)
6514         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6515         (set_step_info, print_stop_event, signal_stop_state)
6516         (signal_print_state, signal_pass_state, signal_stop_update)
6517         (signal_print_update, signal_pass_update)
6518         (update_signals_program_target, clear_exit_convenience_vars)
6519         (displaced_step_dump_bytes, update_observer_mode)
6520         (signal_catch_update, gdb_signal_from_command): Move
6521         declarations ...
6522         * infrun.h: ... to this new file.
6523         * amd64-tdep.c: Include infrun.h.
6524         * annotate.c: Include infrun.h.
6525         * arch-utils.c: Include infrun.h.
6526         * arm-linux-tdep.c: Include infrun.h.
6527         * arm-tdep.c: Include infrun.h.
6528         * break-catch-sig.c: Include infrun.h.
6529         * breakpoint.c: Include infrun.h.
6530         * common/agent.c: Include infrun.h instead of inferior.h.
6531         * corelow.c: Include infrun.h.
6532         * event-top.c: Include infrun.h.
6533         * go32-nat.c: Include infrun.h.
6534         * i386-tdep.c: Include infrun.h.
6535         * inf-loop.c: Include infrun.h.
6536         * infcall.c: Include infrun.h.
6537         * infcmd.c: Include infrun.h.
6538         * infrun.c: Include infrun.h.
6539         * linux-fork.c: Include infrun.h.
6540         * linux-nat.c: Include infrun.h.
6541         * linux-thread-db.c: Include infrun.h.
6542         * monitor.c: Include infrun.h.
6543         * nto-tdep.c: Include infrun.h.
6544         * procfs.c: Include infrun.h.
6545         * record-btrace.c: Include infrun.h.
6546         * record-full.c: Include infrun.h.
6547         * remote-m32r-sdi.c: Include infrun.h.
6548         * remote-mips.c: Include infrun.h.
6549         * remote-notif.c: Include infrun.h.
6550         * remote-sim.c: Include infrun.h.
6551         * remote.c: Include infrun.h.
6552         * reverse.c: Include infrun.h.
6553         * rs6000-tdep.c: Include infrun.h.
6554         * s390-linux-tdep.c: Include infrun.h.
6555         * solib-irix.c: Include infrun.h.
6556         * solib-osf.c: Include infrun.h.
6557         * solib-svr4.c: Include infrun.h.
6558         * target.c: Include infrun.h.
6559         * top.c: Include infrun.h.
6560         * windows-nat.c: Include infrun.h.
6561         * mi/mi-interp.c: Include infrun.h.
6562         * mi/mi-main.c: Include infrun.h.
6563         * python/py-threadevent.c: Include infrun.h.
6564
6565 2014-05-22  Pedro Alves  <palves@redhat.com>
6566
6567         * infrun.c (handle_inferior_event): Store the exit code for
6568         --return-child-result here, instead of ...
6569         (print_exited_reason): ... here.
6570
6571 2014-05-21  Pedro Alves  <palves@redhat.com>
6572
6573         PR gdb/13860
6574         * gdbthread.h (struct thread_control_state): New field
6575         `command_interp'.
6576         * infrun.c (follow_fork): Copy the new thread control field to the
6577         child fork thread.
6578         (clear_proceed_status_thread): Clear the new thread control field.
6579         (proceed): Set the new thread control field.
6580         * interps.h (command_interp): Declare.
6581         * interps.c (command_interpreter): New global.
6582         (command_interp): New function.
6583         (interp_exec): Set `command_interpreter' while here.
6584         * cli-out.c (cli_uiout_dtor): New function.
6585         (cli_ui_out_impl): Install it.
6586         * mi/mi-interp.c: Include cli-out.h.
6587         (mi_cmd_interpreter_exec): Add comment.
6588         (restore_current_uiout_cleanup): New function.
6589         (ui_out_free_cleanup): New function.
6590         (mi_on_normal_stop): If finishing an execution command started by
6591         a CLI command, or any kind of breakpoint-like event triggered,
6592         print the stop event to the output (CLI) stream.
6593         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6594
6595 2014-05-21  Pedro Alves  <palves@redhat.com>
6596
6597         * cli/cli-cmds.c (list_command): Handle the first "list" after the
6598         current source line having changed.
6599         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6600         * infrun.c (normal_stop): Adjust call to
6601         set_current_sal_from_frame.
6602         * source.c (clear_lines_listed_range): New function.
6603         (set_current_source_symtab_and_line, identify_source_line): Clear
6604         the lines listed range.
6605         (line_info): Handle the first "info line" after the current source
6606         line having changed.
6607         * stack.c (print_stack_frame): Remove center handling.
6608         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
6609         center sal.line.
6610
6611 2014-05-21  Pedro Alves  <palves@redhat.com>
6612
6613         * inf-child.c (inf_child_mourn_inferior): New function.
6614         * inf-child.h (inf_child_mourn_inferior): New declaration.
6615         * darwin-nat.c (darwin_mourn_inferior): Use
6616         inf_child_mourn_inferior.
6617         * gnu-nat.c (gnu_mourn_inferior): Likewise.
6618         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6619         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6620         * nto-procfs.c (procfs_mourn_inferior): Likewise.
6621         * windows-nat.c (windows_mourn_inferior): Likewise.
6622
6623 2014-05-21  Doug Evans  <xdje42@gmail.com>
6624
6625         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6626
6627 2014-05-21  Doug Evans  <xdje42@gmail.com>
6628
6629         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6630         (gdbscm_out_of_range_error): Ditto.
6631         (gdbscm_memory_error): Ditto.
6632         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6633         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6634         (gdbscm_out_of_range_error): Update.
6635         (gdbscm_memory_error): Update.
6636         (gdbscm_scm_to_target_string_unsafe): Delete.
6637
6638 2014-05-21  Pedro Alves  <palves@redhat.com>
6639
6640         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6641         globals.
6642         (inf_child_open_target): New function.
6643         (inf_child_open): Use inf_child_open_target to push the target
6644         instead of erroring out.
6645         (inf_child_disconnect, inf_child_close)
6646         (inf_child_maybe_unpush_target): New functions.
6647         (inf_child_target): Install inf_child_disconnect and
6648         inf_child_close.  Store a pointer to the returned object.
6649         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6650         declarations.
6651         * target.c (auto_connect_native_target): New global.
6652         (show_default_run_target): New function.
6653         (find_default_run_target): Return NULL if automatically connecting
6654         to the native target is disabled.
6655         (_initialize_target): Install set/show auto-connect-native-target.
6656         * NEWS: Mention "set auto-connect-native-target", and "target
6657         native".
6658         * linux-nat.c (super_close): New global.
6659         (linux_nat_close): Call super_close.
6660         (linux_nat_add_target): Store a pointer to the base class's
6661         to_close method.
6662         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6663         inf_child_maybe_unpush.
6664         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6665         already pushed.
6666         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6667         the inferior.  Use inf_child_maybe_unpush_target.
6668         (inf_ttrace_attach): Don't push the target if it is already
6669         pushed.
6670         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6671         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6672         after mourning the inferior.  Use inf_child_maybe_unpush_target.
6673         (darwin_attach_pid): Don't push the target if it is already
6674         pushed.
6675         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6676         mourning the inferior.  Use inf_child_maybe_unpush_target.
6677         (gnu_detach): Use inf_child_maybe_unpush_target.
6678         * go32-nat.c (go32_create_inferior): Don't push the target if it
6679         is already pushed.
6680         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6681         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6682         (procfs_open): Rename to ...
6683         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
6684         comments.  Can target_preopen before changing node.  Call
6685         inf_child_open_target to push the target explicitly.
6686         (procfs_attach): Don't push the target if it is already pushed.
6687         (procfs_detach): Use inf_child_maybe_unpush_target.
6688         (procfs_create_inferior): Don't push the target if it is already
6689         pushed.
6690         (nto_native_ops): New global.
6691         (procfs_open): Reimplement.
6692         (procfs_native_open): New function.
6693         (init_procfs_targets): Install procfs_native_open as to_open of
6694         "target native".  Store a pointer to the "native" target in
6695         nto_native_ops.
6696         * procfs.c (procfs_attach): Don't push the target if it is already
6697         pushed.
6698         (procfs_detach): Use inf_child_maybe_unpush_target.
6699         (procfs_mourn_inferior): Only unpush the target after mourning the
6700         inferior.  Use inf_child_maybe_unpush_target.
6701         (procfs_init_inferior): Don't push the target if it is already
6702         pushed.
6703         * windows-nat.c (do_initial_windows_stuff): Don't push the target
6704         if it is already pushed.
6705
6706 2014-05-21  Pedro Alves  <palves@redhat.com>
6707
6708         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6709         and "procfs" targets are now called "native" instead.
6710
6711 2014-05-21  Pedro Alves  <palves@redhat.com>
6712
6713         * go32-nat.c (go32_open): Delete.
6714         (go32_target): Don't override the to_open method.
6715
6716 2014-05-21  Pedro Alves  <palves@redhat.com>
6717
6718         * nto-procfs.c (procfs_can_run): New function.
6719         (nto_procfs_ops): New global.
6720         (init_procfs_targets): New, based on procfs_target.  Install
6721         "target native" in addition to "target procfs".
6722         (_initialize_procfs): Call init_procfs_targets instead of adding
6723         the target here.
6724
6725 2014-05-21  Pedro Alves  <palves@redhat.com>
6726
6727         * windows-nat.c (windows_target): Don't override to_shortname,
6728         to_longname or to_doc.
6729
6730 2014-05-21  Pedro Alves  <palves@redhat.com>
6731
6732         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6733         to_doc.
6734
6735 2014-05-21  Pedro Alves  <palves@redhat.com>
6736
6737         * darwin-nat.c (_initialize_darwin_inferior): Don't override
6738         to_shortname, to_longname or to_doc.
6739
6740 2014-05-21  Pedro Alves  <palves@redhat.com>
6741
6742         * go32-nat.c (go32_target): Don't override to_shortname,
6743         to_longname or to_doc.
6744
6745 2014-05-21  Pedro Alves  <palves@redhat.com>
6746
6747         * inf-child.c (inf_child_open): Remove mention of "child".
6748         (inf_child_target): Rename target to "native" instead of "child".
6749
6750 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6751
6752         * Makefile.in (SFILES): Delete "regset.c".
6753         (COMMON_OBS): Delete "regset.o".
6754         * regset.c: Remove.
6755         * regset.h (regset_alloc): Delete prototype.
6756
6757 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6758
6759         * sparc-linux-tdep.c (sparc32_linux_gregset)
6760         (sparc32_linux_fpregset): New static regset structures.
6761         (sparc32_linux_init_abi): Drop dynamic regset allocations.
6762         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6763         'fpregset' fields.
6764         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6765         (sparc64_linux_fpregset): New static regset structures.
6766         (sparc64_linux_init_abi): Drop dynamic regset allocations.
6767         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6768         New static regset structures.
6769         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6770         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6771         New static regset structures.
6772         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6773         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6774         New static regset structures.
6775         (sparc64obsd_init_abi): Drop dynamic regset allocations.
6776         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6777         New static regset structures.
6778         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6779
6780 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6781
6782         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6783         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6784         register maps ("regmaps") from "*regset" to "*regmap".  Do this
6785         for all regmap types and variables.
6786         * sparc-linux-tdep.c (sparc32_linux_step_trap)
6787         (sparc32_linux_supply_core_gregset)
6788         (sparc32_linux_collect_core_gregset)
6789         (sparc32_linux_supply_core_fpregset)
6790         (sparc32_linux_collect_core_fpregset): Likewise.
6791         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6792         (sparc_gregmap, sparc_fpregmap): ... these.
6793         (sparc_supply_gregset, sparc_collect_gregset)
6794         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6795         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6796         (_initialize_sparc_nat): Rename regmaps.
6797         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6798         (sparc_gregmap, sparc_fpregmap): ... these.
6799         (sparc_supply_gregset, sparc_collect_gregset)
6800         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6801         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6802         Rename macros to...
6803         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6804         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6805         Likewise.
6806         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6807         Rename to...
6808         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6809         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6810         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6811         regmaps.
6812         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6813         (sparc32_bsd_fpregset): Rename to...
6814         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6815         (sparc32_bsd_fpregmap): ... these.
6816         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6817         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6818         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6819         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6820         (struct sparc_gregmap, struct sparc_fpregmap)
6821         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6822         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6823         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6824         (sparc32_supply_regset, sparc32_collect_gregset)
6825         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6826         prototypes.
6827         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6828         (sparc64_linux_ptrace_gregmap): ... this.
6829         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6830         (_initialize_sparc64_linux_nat): Rename regmaps.
6831         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6832         (sparc64_linux_core_gregmap): ... this.
6833         (sparc64_linux_supply_core_gregset)
6834         (sparc64_linux_collect_core_gregset)
6835         (sparc64_linux_supply_core_fpregset)
6836         (sparc64_linux_collect_core_fpregset): Rename regmaps.
6837         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6838         (sparc64_sol2_fpregset): Rename to...
6839         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6840         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6841         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6842         regmaps.
6843         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6844         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6845         (sparc64_bsd_fpregset): Rename to...
6846         (struct sparc_gregmap, sparc64_sol2_gregmap)
6847         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6848         (sparc64_bsd_fpregmap): ... these.
6849         (sparc64_supply_gregset, sparc64_collect_gregset)
6850         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6851         prototypes.
6852         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6853         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6854         (sparc64fbsd_gregmap): ... this.
6855         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6856         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6857         Rename regmaps.
6858         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6859         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6860         (sparc64nbsd_collect_fpregset): Likewise.
6861         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6862         (sparc64nbsd_gregmap): ... this.
6863         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6864         regmaps.
6865         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6866         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6867         (sparc64obsd_gregmap): ... this.
6868         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6869         regmaps.
6870         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6871         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6872         (sparc32nbsd_gregmap): ... this.
6873         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6874         regmaps.
6875
6876 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6877
6878         * score-tdep.c (score7_linux_gregset): New static regset
6879         structure.
6880         (score7_linux_regset_from_core_section): Remove dynamic regset
6881         allocation.
6882         (score_gdbarch_init): Drop allocation of tdep structure.
6883         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6884
6885 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6886
6887         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6888         regset structures.
6889         (am33_regset_from_core_section): Remove dynamic regset
6890         allocations.
6891
6892 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6893
6894         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6895         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6896         structures.
6897         (mips_linux_regset_from_core_section): Remove dynamic regset
6898         allocations.
6899         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6900         'gregset64', 'fpregset', and 'fpregset64'.
6901         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6902         deleted tdep fields.
6903
6904 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6905
6906         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6907         regset structures.
6908         (amd64_regset_from_core_section): Remove dynamic regset
6909         allocations.
6910         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6911         structure.
6912         (amd64obsd_regset_from_core_section): Remove dynamic regset
6913         allocation.
6914         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6915         Likewise.
6916         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6917         x86-common regset supply function.
6918         * i386-tdep.c (i386_collect_gregset): Make static.
6919         (i386_gregset): New global regset structure.
6920         (i386_fpregset, i386_xstateregset): New static regset structures.
6921         (i386_regset_from_core_section): Remove dynamic regset
6922         allocations.
6923         (i386_gdbarch_init): Remove initialization of tdep fields
6924         'gregset', 'fpregset', and 'xstateregset'.
6925         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6926         'fpregset', and 'xstateregset'.
6927         (i386_collect_gregset): Remove prototype.
6928         (i386_gregset): New declaration.
6929         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6930         structure.
6931         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6932         allocation.
6933
6934 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6935
6936         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6937         (arm_linux_vfpregset): New static regset structures.
6938         (arm_linux_regset_from_core_section): Remove dynamic allocation of
6939         regset structures.
6940         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6941         and 'vfpregset' fields.
6942
6943 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6944
6945         * aarch64-linux-tdep.c (aarch64_linux_gregset)
6946         (aarch64_linux_fpregset): New static regset structures.
6947         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6948         of regset structures.
6949         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6950         'fpregset' fields.
6951
6952 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6953
6954         * regset.h (struct regset): Remove gdbarch field.
6955         * regset.c (regset_alloc): Drop initialization of gdbarch field.
6956         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6957         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6958         Likewise.
6959         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6960         (ppc32_linux_fpregset, ppc32_linux_vrregset)
6961         (ppc32_linux_vsxregset): Likewise.
6962         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6963         via the regcache instead of the regset.
6964         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6965         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6966         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6967         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6968         Likewise.
6969
6970 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6971
6972         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6973         Constify structures.
6974         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6975         (alphanbsd_aout_gregset): Likewise.
6976         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6977         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6978         Likewise.
6979         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6980         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6981         Likewise.
6982         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6983         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6984         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6985         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6986         * m88k-tdep.c (m88k_gregset): Likewise.
6987         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6988         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6989         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6990         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6991         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6992         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6993         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6994         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6995         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6996         Likewise.
6997         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6998         * sh-tdep.h (sh_corefile_gregset): Likewise.
6999         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7000         * vax-tdep.c (vax_gregset): Likewise.
7001
7002 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7003
7004         Fix TLS access for -static -pthread.
7005         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7006         (try_thread_db_load_1): Initialize it.
7007         (thread_db_get_thread_local_address): Call it if LM is zero.
7008         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7009         * target.h (struct target_ops) (to_get_thread_local_address): Add
7010         load_module_addr comment.
7011
7012 2014-05-21  Pedro Alves  <palves@redhat.com>
7013
7014         * dcache.c (dcache_read_memory_partial): If reading the cache line
7015         fails, fallback to reading just the memory the caller wanted.
7016
7017 2014-05-20  Doug Evans  <dje@google.com>
7018
7019         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7020         instead of get_current_arch.
7021
7022 2014-05-20  Pedro Alves  <palves@redhat.com>
7023
7024         * NEWS: Mention that compare-sections now works with all targets.
7025
7026         * remote.c (PACKET_qCRC): New enum value.
7027         (remote_verify_memory): Don't send qCRC if the target has no
7028         execution.  Use packet_support/packet_ok.  If the target doesn't
7029         support the qCRC packet, fallback to a deep memory copy.
7030         (compare_sections_command): Say "target image" instead of "remote
7031         executable".
7032         (_initialize_remote): Add PACKET_qCRC to the list of config
7033         packets that have no associated command.  Extend comment.
7034         * target.c (simple_verify_memory, default_verify_memory): New
7035         function.
7036         * target.h (struct target_ops) <to_verify_memory>: Default to
7037         default_verify_memory.
7038         (simple_verify_memory): New declaration.
7039         * target-delegates.c: Regenerate.
7040
7041 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
7042
7043         * record-btrace.c (record_btrace_step_thread): Check for empty history.
7044
7045 2014-05-20  Hui Zhu  <hui@codesourcery.com>
7046             Yao Qi  <yao@codesourcery.com>
7047
7048         PR backtrace/16558
7049         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7050         and change address of sp and pc.
7051
7052 2014-05-19  Tom Tromey  <tromey@redhat.com>
7053
7054         * gdbtypes.c (rank_function): Use XNEWVEC.
7055         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7056
7057 2014-05-19  Doug Evans  <dje@google.com>
7058
7059         * dwarf2read.c (build_type_psymtabs_1): Renamed from
7060         build_type_unit_groups and moved closer to only caller.  Remove
7061         arguments.  All references updated.  Remove outdated .gdb_index
7062         comment.
7063         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7064         build_type_psymtabs_1.
7065
7066 2014-05-19  Doug Evans  <dje@google.com>
7067
7068         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7069         n_type_unit_groups, all_type_unit_groups.  All uses removed.
7070         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7071         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
7072         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
7073         (add_type_unit_group_to_table): Delete.
7074
7075 2014-05-19  Doug Evans  <dje@google.com>
7076
7077         * eval.c (evaluate_subexp_standard): Add some comments.
7078
7079 2014-05-17  Doug Evans  <xdje42@gmail.com>
7080
7081         * progspace.c (remove_program_space): Delete, unused.
7082         * progspace.h (remove_program_space): Ditto.
7083
7084 2014-05-17  Doug Evans  <xdje42@gmail.com>
7085
7086         * inferior.c (prune_inferiors): Fix comment.
7087         (remove_inferior_command): Call prune_program_spaces.
7088
7089 2014-05-16  Doug Evans  <dje@google.com>
7090
7091         New command line option -D.
7092         * NEWS: Mention it.
7093         * main.c (set_gdb_data_directory): New function.
7094         (captured_main): Recognize -D.  Flag error for --data-directory "".
7095         Call set_gdb_data_directory.
7096         (print_gdb_help): Print --data-directory, -D.
7097         * main.h (set_gdb_data_directory): Declare.
7098         * top.c (staged_gdb_datadir): New static global.
7099         (set_gdb_datadir): Call set_gdb_data_directory
7100         (show_gdb_datadir): New function.
7101         (init_main): Update init of data-directory parameter.
7102
7103 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
7104
7105         Import the "dirfd" gnulib module.
7106         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7107         * gnulib/aclocal.m4: Update.
7108         * gnulib/config.in: Update.
7109         * gnulib/configure: Update.
7110         * gnulib/import/Makefile.am: Update.
7111         * gnulib/import/Makefile.in: Update.
7112         * gnulib/import/dirfd.c: New.
7113         * gnulib/import/m4/dirfd.m4: New.
7114         * gnulib/import/m4/gnulib-cache.m4: Update.
7115         * gnulib/import/m4/gnulib-comp.m4: Update.
7116
7117 2014-05-16  Pierre Muller  <muller@sourceware.org>
7118             Yao Qi  <yao@codesourcery.com>
7119
7120         * valprint.c (print_wchar): Move the code on checking whether
7121         W is a printable wide char to the default branch of switch
7122         statement below.  Call wchar_printable instead of gdb_iswprint.
7123
7124 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
7125
7126         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7127         ldr.w and ldrd instructions.
7128
7129 2014-05-15  Doug Evans  <dje@google.com>
7130
7131         * dwarf2read.c (read_structure_type): Delete outdated comments.
7132
7133 2014-05-14  Tom Tromey  <tromey@redhat.com>
7134
7135         * macrocmd.c (print_macro_definition): Reindent.
7136
7137 2014-05-13  Doug Evans  <xdje42@gmail.com>
7138
7139         * python/py-cmd.c (cmdpy_completer): Add comment.
7140         (completers): Make const.
7141
7142 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
7143
7144         * infrun.c (resume): Remove should_resume (unused).  Move up
7145         declaration of resume_ptid.
7146
7147 2014-05-13  Tom Tromey  <tromey@redhat.com>
7148
7149         * language.h (unop_type_check): Remove.
7150         (binop_type_check): Don't declare.
7151
7152 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7153
7154         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7155         call to regcache_raw_collect.
7156
7157 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7158
7159         * mi/mi-console.c (mi_console_raw_packet): Use the value from
7160         mi_console->quote as the quoting character.
7161
7162 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7163
7164         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7165
7166 2014-04-29  Tom Tromey  <tromey@redhat.com>
7167
7168         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7169         "show debug varobj".
7170
7171 2014-05-07  Kyle McMartin  <kyle@redhat.com>
7172
7173         Pushed by Joel Brobecker  <brobecker@adacore.com>.
7174         * aarch64-tdep.c (aarch64_software_single_step): New function.
7175         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7176         with aarch64_software_single_step.
7177
7178 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
7179
7180         GDB 7.7.1 released.
7181
7182 2014-05-05  Keith Seitz  <keiths@redhat.com>
7183
7184         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7185         variable or history value is successfully parsed.
7186
7187 2014-05-05  Yao Qi  <yao@codesourcery.com>
7188             Pedro Alves  <palves@redhat.com>
7189
7190         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7191         address of blocks that intersects the requested range.  Trim
7192         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7193         sections.
7194         * ctf.c (ctf_xfer_partial): Likewise.
7195
7196 2014-05-05  Yao Qi  <yao@codesourcery.com>
7197
7198         * printcmd.c (display_command): Remove the check to
7199         target_has_execution.
7200
7201 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
7202
7203         * ppcobsd-nat.c: Include "obsd-nat.h".
7204         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7205         add_target.
7206         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7207
7208 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
7209
7210         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7211         and 16-bit signed and unsigned arguments.  Update comment.
7212         (stap_parse_probe_arguments): Extend code to handle such
7213         arguments.  Use warning instead of complaint to notify about
7214         unrecognized bitness.
7215
7216 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
7217
7218         PR breakpoints/16889
7219         * stap-probe.c (stap_parse_probe_arguments): Simplify
7220         check for non-prefixed probes (i.e., probes whose
7221         arguments do not start with "N@").  Always set the
7222         argument type to a sane value.
7223
7224 2014-05-01  David Taylor  <dtaylor@emc.com>
7225
7226         * remote.c (compare_sections_command): Add -r option to compare
7227         all loadable read-only sections.
7228
7229 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
7230
7231         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7232         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7233         Update all callers.
7234         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7235         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7236         Remove unused CORE_ADDR argument.  Update all callers.
7237
7238 2014-04-29  Pedro Alves  <palves@redhat.com>
7239
7240         * remote.c (struct packet_config) <detect>: Extend comment.
7241         (add_packet_config_cmd): Don't set the config's detect or support
7242         fields here.
7243         (init_all_packet_configs): Also initialize the config's 'detect'
7244         field.
7245         (reset_all_packet_configs_support): New function.
7246         (remote_open_1): Call reset_all_packet_configs_support instead of
7247         init_all_packet_configs.
7248         (_initialize_remote): Initialize all packet configs.  Assert that
7249         all packets have an associated command, except a few known
7250         outliers.
7251
7252 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7253
7254         * dwarf2read.c (read_subrange_type): Handle dynamic
7255         DW_AT_lower_bound attributes.
7256
7257 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7258
7259         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7260         dynamic bounds before computing its upper bound.
7261         (ada_discrete_type_low_bound): Same as above with the lower bound.
7262
7263 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7264
7265         * dwarf2read.c (is_dynamic_type): Return true for dynamic
7266         range types.  Adjust the array handling implementation to
7267         take advantage of this change.
7268         (resolve_dynamic_range): New function, mostly extracted from
7269         resolve_dynamic_bounds.
7270         (resolve_dynamic_array): New function, mostly extracted from
7271         resolve_dynamic_bounds.
7272         (resolve_dynamic_bounds): Delete.
7273         (resolve_dynamic_type): Reimplement.  Add handling of
7274         TYPE_CODE_RANGE types.
7275
7276 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7277
7278         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7279         handling of parallel ___XA types.
7280
7281 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7282
7283         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7284         unnecessary second call to static_unwrap_type.
7285
7286 2014-04-27  Hui Zhu  <hui@codesourcery.com>
7287
7288         * stack.c (print_frame_info): Call do_gdb_disassembly with
7289         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7290
7291 2014-04-26  Doug Evans  <xdje42@gmail.com>
7292
7293         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7294
7295 2014-04-25  Pedro Alves  <palves@redhat.com>
7296
7297         PR server/16255
7298         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7299         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
7300         and newline from built string.
7301         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7302         (linux_ptrace_attach_fail_reason): ... this.
7303         * linux-nat.c (linux_nat_attach): Adjust to use
7304         linux_ptrace_attach_fail_reason.
7305
7306 2014-04-25  Pedro Alves  <palves@redhat.com>
7307
7308         * remote.c (struct remote_state): Remove multi_process_aware,
7309         non_stop_aware, cond_tracepoints, cond_breakpoints,
7310         breakpoint_commands, fast_tracepoints, static_tracepoints,
7311         install_in_trace, disconnected_tracing,
7312         enable_disable_tracepoints, string_tracing, and
7313         augmented_libraries_svr4_read fields.
7314         (remote_multi_process_p): Move further below in the file.
7315         (struct packet_config): Add comments.
7316         (update_packet_config): Delete function.
7317         (show_packet_config_cmd): Use packet_config_support.
7318         (add_packet_config_cmd): Use NULL as set callback.
7319         (packet_ok): "set remote foo-packet"-style commands no longer
7320         change config->supported -- adjust.
7321         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7322         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7323         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7324         (PACKET_QNonStop, PACKET_multiprocess_feature)
7325         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7326         (PACKET_DisconnectedTracing_feature)
7327         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7328         (set_remote_protocol_packet_cmd): Delete function.
7329         (packet_config_support, packet_support): New functions.
7330         (set_remote_protocol_Z_packet_cmd): Don't call
7331         update_packet_config.
7332         (remote_query_attached, remote_pass_signals)
7333         (remote_program_signals, remote_threads_info)
7334         (remote_threads_extra_info, remote_start_remote): Use
7335         packet_support.
7336         (remote_start_remote): Use packet_config_support and
7337         packet_support.
7338         (init_all_packet_configs): Set all packets to unknown support,
7339         instead of calling update_packet_config.
7340         (remote_check_symbols): Use packet_support.
7341         (remote_supported_packet): Unconditionally set the packet config's
7342         support status.
7343         (remote_multi_process_feature, remote_non_stop_feature)
7344         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7345         (remote_breakpoint_commands_feature)
7346         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7347         (remote_install_in_trace_feature)
7348         (remote_disconnected_tracing_feature)
7349         (remote_enable_disable_tracepoint_feature)
7350         (remote_string_tracing_feature)
7351         (remote_augmented_libraries_svr4_read_feature): Delete functions.
7352         (remote_protocol_features): Adjust to use remote_supported_packet
7353         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7354         "ConditionalTracepoints", "ConditionalBreakpoints",
7355         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7356         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7357         "EnableDisableTracepoints", and "tracenz".
7358         (remote_query_supported): Use packet_support.
7359         (remote_open_1): Adjust.
7360         (extended_remote_attach_1): Use packet_support.  Switch on the
7361         result of packet_ok instead of checking whether the packet ended
7362         up disabled.
7363         (remote_vcont_resume): Use packet_support.
7364         (remote_resume, remote_stop_ns, fetch_register_using_p)
7365         (remote_prepare_to_store, store_register_using_P)
7366         (check_binary_download, remote_write_bytes): Use packet_support.
7367         (remote_vkill): Use packet_support.  Switch on the result of
7368         packet_ok instead of checking whether the packet ended up
7369         disabled.
7370         (extended_remote_supports_disable_randomization): Use
7371         packet_support.
7372         (extended_remote_run): Switch on the result of packet_ok instead
7373         of checking whether the packet ended up disabled.
7374         (remote_insert_breakpoint, remote_remove_breakpoint)
7375         (remote_insert_watchpoint, remote_remove_watchpoint)
7376         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7377         packet_support.
7378         (remote_search_memory): Use packet_config_support.
7379         (remote_get_thread_local_address, remote_get_tib_address)
7380         (remote_hostio_send_command, remote_can_execute_reverse): Use
7381         packet_support.
7382         (remote_supports_cond_tracepoints)
7383         (remote_supports_cond_breakpoints)
7384         (remote_supports_fast_tracepoints)
7385         (remote_supports_static_tracepoints)
7386         (remote_supports_install_in_trace)
7387         (remote_supports_enable_disable_tracepoint)
7388         (remote_supports_string_tracing)
7389         (remote_can_run_breakpoint_commands): Rewrite, checking whether
7390         the packet config says the feature is enabled or disabled.
7391         (remote_download_tracepoint, remote_trace_set_readonly_regions)
7392         (remote_get_trace_status): Use packet_support.
7393         (remote_set_disconnected_tracing): Adjust to check whether the
7394         feature is enabled with packet_support.
7395         (remote_set_trace_buffer_size, remote_use_agent)
7396         (remote_can_use_agent, remote_supports_btrace): Use
7397         packet_support.
7398         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7399         Use packet_config_support.
7400         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7401         the packet config says the feature is enabled or disabled.
7402         (set_range_stepping): Use packet_support.
7403
7404 2014-04-25  Tom Tromey  <tromey@redhat.com>
7405
7406         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7407         argument.
7408
7409 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
7410
7411         * NEWS: Mention support for C99 variable length arrays.
7412
7413 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
7414
7415         * ada-lang.c (standard_exc): Expand introductory comment.
7416
7417 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
7418             Walfred Tedeschi  <walfred.tedeschi@intel.com>
7419
7420         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7421         AVX512 registers.
7422         (amd64_linux_read_description): Add code to handle AVX512 xstate
7423         mask and return respective tdesc.
7424         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7425         and features/i386/x32-avx512-linux.c.
7426         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7427         (amd64_linux_core_read_description): Add code to handle AVX512
7428         xstate mask and return respective tdesc.
7429         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7430         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7431         calculation.
7432         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7433         (tdesc_amd64_avx512_linux): New prototype.
7434         (tdesc_x32_avx512_linux): Likewise.
7435         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7436         features/i386/x32-avx512.c.
7437         (amd64_ymm_avx512_names): New register names for pseudo
7438         registers YMM16-31.
7439         (amd64_ymmh_avx512_names): New register names for raw registers
7440         YMMH16-31.
7441         (amd64_k_names): New register names for K registers.
7442         (amd64_zmmh_names): New register names for ZMM raw registers.
7443         (amd64_zmm_names): New registers names for ZMM pseudo registers.
7444         (amd64_xmm_avx512_names): New register names for XMM16-31
7445         registers.
7446         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7447         registers.
7448         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7449         if feature is present.
7450         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7451         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7452         (AMD64_NUM_REGS): Adjust to new number of registers.
7453         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7454         registers supplied via XSTATE by AVX512 registers.
7455         (i386_linux_read_description): Add case for AVX512.
7456         * i386-linux-tdep.c: Include i386-avx512-linux.c.
7457         (i386_linux_gregset_reg_offset): Add AVX512 registers.
7458         (i386_linux_core_read_description): Add case for AVX512.
7459         (i386_linux_init_abi): Install supported register note section
7460         for AVX512.
7461         (_initialize_i386_linux_tdep): Add call to tdesc init function for
7462         AVX512.
7463         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7464         registers to be number of zmm7h + 1.
7465         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7466         * i386-tdep.c: Include features/i386/i386-avx512.c.
7467         (i386_zmm_names): Add ZMM pseudo register names array.
7468         (i386_zmmh_names): Add ZMM raw register names array.
7469         (i386_k_names): Add K raw register names array.
7470         (num_lower_zmm_regs): Add constant for the number of lower ZMM
7471         registers. AVX512 has 16 more ZMM registers than there are YMM
7472         registers.
7473         (i386_zmmh_regnum_p): Add function to look up register number of
7474         ZMM raw registers.
7475         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7476         (i386_k_regnum_p): Likewise for K raw registers.
7477         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7478         registers added by AVX512.
7479         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7480         registers added by AVX512.
7481         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7482         added by AVX512.
7483         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7484         (i386_pseudo_register_name): Add ZMM pseudo registers.
7485         (i386_zmm_type): Construct and return vector registers type for ZMM
7486         registers.
7487         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7488         ZMM0-31 pseudo registers and K registers.
7489         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7490         and YMM16-31 registers from register cache.
7491         (i386_pseudo_register_write): Add code to write  K, ZMM and
7492         YMM16-31 registers.
7493         (i386_register_reggroup_p): Add code to include/exclude AVX512
7494         registers in/from respective register groups.
7495         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7496         registers if feature is present in xcr0.
7497         (i386_gdbarch_init): Add code to initialize AVX512 feature
7498         variables in tdep structure, wire in pseudo registers and call
7499         initialize_tdesc_i386_avx512.
7500         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7501         variables.
7502         (i386_regnum): Add AVX512 registers.
7503         (I386_SSE_NUM_REGS): New define for number of SSE registers.
7504         (I386_AVX_NUM_REGS): Likewise for AVX registers.
7505         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7506         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7507         512 bits wide.
7508         (i386_xmm_avx512_regnum_p): New prototype for register look up.
7509         (i386_ymm_avx512_regnum_p): Likewise.
7510         (i386_k_regnum_p): Likewise.
7511         (i386_zmm_regnum_p): Likewise.
7512         (i386_zmmh_regnum_p): Likewise.
7513         * i387-tdep.c : Update year in copyright notice.
7514         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7515         XSAVE buffer.
7516         (XSAVE_YMM_AVX512_ADDR): New macro.
7517         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7518         XSAVE buffer.
7519         (XSAVE_XMM_AVX512_ADDR): New macro.
7520         (xsave_avx512_k_offset): New table for K register offsets in
7521         XSAVE buffer.
7522         (XSAVE_AVX512_K_ADDR): New macro.
7523         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7524         in XSAVE buffer.
7525         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7526         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7527         buffer.
7528         (i387_collect_xsave): Add code to collect AVX512 registers from
7529         XSAVE buffer.
7530         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7531         of XMM16-31 registers.
7532         (I387_NUM_K_REGS): New define for number of K registers.
7533         (I387_K0_REGNUM): New define for K0 register number.
7534         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7535         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7536         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7537         registers.
7538         (I387_YMM16H_REGNUM): New define for YMM16H register number.
7539         (I387_XMM16_REGNUM): New define for XMM16 register number.
7540         (I387_YMM0_REGNUM): New define for YMM0 register number.
7541         (I387_KEND_REGNUM): New define for last K register number.
7542         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7543         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7544         number.
7545         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7546         number.
7547         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7548         size.
7549         * features/Makefile: Add AVX512 related files.
7550         * features/i386/32bit-avx512.xml: New file.
7551         * features/i386/64bit-avx512.xml: Likewise.
7552         * features/i386/amd64-avx512-linux.c: Likewise.
7553         * features/i386/amd64-avx512-linux.xml: Likewise.
7554         * features/i386/amd64-avx512.c: Likewise.
7555         * features/i386/amd64-avx512.xml: Likewise.
7556         * features/i386/i386-avx512-linux.c: Likewise.
7557         * features/i386/i386-avx512-linux.xml: Likewise.
7558         * features/i386/i386-avx512.c: Likewise.
7559         * features/i386/i386-avx512.xml: Likewise.
7560         * features/i386/x32-avx512-linux.c: Likewise.
7561         * features/i386/x32-avx512-linux.xml: Likewise.
7562         * features/i386/x32-avx512.c: Likewise.
7563         * features/i386/x32-avx512.xml: Likewise.
7564         * regformats/i386/amd64-avx512-linux.dat: New file.
7565         * regformats/i386/amd64-avx512.dat: Likewise.
7566         * regformats/i386/i386-avx512-linux.dat: Likewise.
7567         * regformats/i386/i386-avx512.dat: Likewise.
7568         * regformats/i386/x32-avx512-linux.dat: Likewise.
7569         * regformats/i386/x32-avx512.dat: Likewise.
7570         * NEWS: Add note about new support for AVX512.
7571
7572
7573 2014-04-23  Pedro Alves  <palves@redhat.com>
7574
7575         * breakpoint.c (insert_bp_location): Tolerate errors if the
7576         breakpoint is set in a user-loaded objfile.
7577         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
7578         location is marked shlib_disabled.  If the breakpoint is set in a
7579         user-loaded objfile is a GDB-side memory breakpoint, validate it
7580         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
7581         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
7582         flag.
7583         * mem-break.c (memory_validate_breakpoint): New function.
7584         * objfiles.c (userloaded_objfile_contains_address_p): New
7585         function.
7586         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7587         * target.h (memory_validate_breakpoint): New declaration.
7588
7589 2014-04-23  Pedro Alves  <palves@redhat.com>
7590
7591         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7592         the breakpoint is set in a shared library, only suppress
7593         errors for software breakpoints, not hardware breakpoints.
7594
7595 2014-04-22  Pedro Alves  <palves@redhat.com>
7596
7597         * infrun.c (schedlock_applies): New function, factored out from
7598         find_thread_needs_step_over.
7599         (find_thread_needs_step_over): Use it.
7600         (switch_back_to_stepped_thread): Always clear trap_expected if the
7601         step over is finished.  Return early if scheduler locking applies.
7602         Look for the stepping thread and a potential step-over thread with
7603         a single loop.
7604         (currently_stepping_or_nexting_callback): Delete.
7605
7606 2014-04-22  Nick Clifton  <nickc@redhat.com>
7607
7608         * NEWS: Mention that ARM sim now supports tracing.
7609
7610 2014-04-22  Yao Qi  <yao@codesourcery.com>
7611
7612         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7613         to ...
7614         * tracefile.c (tracefile_fetch_registers): ... it.  New
7615         function.
7616         * tracefile.h (tracefile_fetch_registers): Declare.
7617         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
7618         tracefile_fetch_registers.
7619
7620 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
7621
7622         PR gdb/14018
7623         * windows-nat.c (thread_rec): Don't display a warning when
7624         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
7625         fails for any reason, set th->suspended to -1, so that we don't
7626         try to resume such a thread.  Also, don't return NULL in these
7627         cases, to avoid completely ruin the session due to "PC register is
7628         not available" error.
7629         (do_windows_fetch_inferior_registers): Check errors in
7630         GetThreadContext call.
7631         (windows_continue): Accept an additional argument KILLED; if not
7632         zero, ignore errors in the SetThreadContext call, since the
7633         inferior was killed and is shutting down.
7634         (windows_resume, get_windows_debug_event)
7635         (windows_create_inferior, windows_mourn_inferior)
7636         (windows_kill_inferior): All callers of windows_continue changed
7637         to adjust to its new calling sequence.
7638
7639 2014-04-19  Yao Qi  <yao@codesourcery.com>
7640
7641         * ctf.c (ctf_open): Call post_create_inferior.
7642
7643 2014-04-19  Yao Qi  <yao@codesourcery.com>
7644
7645         * ctf.c (handle_id): New static variable.
7646         (ctf_open_dir): Get handle_id from bt_context_add_trace return
7647         value.  Get the declaration of event "register" and get length
7648         of field "contents".
7649
7650 2014-04-19  Yao Qi  <yao@codesourcery.com>
7651
7652         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7653
7654 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
7655
7656         * valops.c (oload_method_static): Remove unnecessary argument
7657         METHOD.  Update all callers.
7658
7659 2014-04-18  Pedro alves  <palves@redhat.com>
7660             Tom Tromey  <tromey@redhat.com>
7661
7662         PR backtrace/15558
7663         * frame.c (get_prev_frame_1): Rename to ...
7664         (get_prev_frame_always): ... this, and make extern.  Adjust.
7665         (skip_artificial_frames): Use get_prev_frame_always.
7666         (frame_unwind_caller_id, frame_pop, get_prev_frame)
7667         (get_frame_unwind_stop_reason): Adjust to rename.
7668         * frame.h (get_prev_frame_always): Declare.
7669         * inline-frame.c: Include frame.h.
7670         (inline_frame_this_id): Use get_prev_frame_always.
7671
7672 2014-04-18  Tristan Gingold  <gingold@adacore.com>
7673
7674         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7675         code by using bfd_mach_o_get_base_address.
7676
7677 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7678
7679         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7680         (spu_ax_pseudo_register_collect): New function.
7681         (spu_ax_pseudo_register_push_stack): Likewise.
7682         (spu_dwarf_reg_to_regnum): Likewise.
7683         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
7684
7685 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7686
7687         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7688         Replace FRAME argument with FRAME_ID.
7689         * gdbarch.c, gdbarch.h: Regenerate.
7690         * findvar.c (default_value_from_register): Add GDBARCH argument;
7691         replace FRAME by FRAME_ID.  No longer call get_frame_id.
7692         (value_from_register): Update call to gdbarch_value_from_register.
7693         * value.h (default_value_from_register): Update prototype.
7694         * s390-linux-tdep.c (s390_value_from_register): Update interface
7695         and call to default_value_from_register.
7696         * spu-tdep.c (spu_value_from_register): Likewise.
7697
7698         * findvar.c (address_from_register): Remove TYPE argument.
7699         Do not call value_from_register; use gdbarch_value_from_register
7700         with null_frame_id instead.
7701         * value.h (address_from_register): Update prototype.
7702         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7703         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7704         address_from_register interface change.
7705
7706 2014-04-17  Yao Qi  <yao@codesourcery.com>
7707
7708         * gdbtypes.h: Update comments to link to types and macros'
7709         definitions.
7710
7711 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
7712
7713         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7714
7715 2014-04-16  Keith Seitz  <keiths@redhat.com>
7716
7717         PR gdb/15827
7718         * dwarf2read.c (skip_one_die): Check that all relative-offset
7719         sibling DIEs fall within range of the current reader's buffer.
7720         (read_partial_die): Likewise.
7721
7722 2014-04-16  Keith Seitz  <keiths@redhat.com>
7723
7724         PR c++/16597
7725         * cp-namespace.c (lookup_symbol_file): If the type name of
7726         `this' is NULL, return immediately.
7727
7728 2014-04-14  Keith Seitz  <keiths@redhat.com>
7729
7730         PR c++/16253
7731         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7732         from symbol_matches_domain in symtab.c. All local callers
7733         of symbol_matches_domain updated.
7734         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7735         search STRUCT_DOMAIN.
7736         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7737         independently.  standard_lookup will do that automatically.
7738         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7739         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7740         (cp_lookup_symbol_in_namespace): Likewise.
7741         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7742         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7743         may return a STRUCT_DOMAIN match.
7744         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7745         * cp-support.c: Include language.h.
7746         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7747         VAR_DOMAIN.
7748         * psymtab.c (match_partial_symbol): Compare the requested
7749         domain with the symbol's domain directly.
7750         (lookup_partial_symbol): Likewise.
7751         * symtab.c (lookup_symbol_in_language): Explain when/why
7752         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7753         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7754         appropriate languages.
7755         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7756         and moved to ada-lang.c
7757         (lookup_block_symbol): Explain that this function only returns
7758         symbol matching the requested DOMAIN.
7759         Compare the requested domain with the symbol's domain directly.
7760         (iterate_over_symbols): Compare the requested domain with the
7761         symbol's domain directly.
7762         * symtab.h (symbol_matches_domain): Remove.
7763
7764 2014-04-14  Tom Tromey  <tromey@redhat.com>
7765
7766         PR c++/15246:
7767         * c-exp.y (type_aggregate_p): New function.
7768         (qualified_name, classify_inner_name): Use it.
7769         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7770         and TYPE_TARGET_TYPE of an enum type.
7771         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7772         an enum type.
7773         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7774         handle TYPE_DECLARED_CLASS.
7775         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7776         types.
7777         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7778         * valops.c (enum_constant_from_type): New function.
7779         (value_aggregate_elt): Use it.
7780         * cp-namespace.c (cp_lookup_nested_symbol): Handle
7781         TYPE_CODE_ENUM.
7782
7783 2014-04-14  Tom Tromey  <tromey@redhat.com>
7784
7785         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7786         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7787         const.
7788         * value.h (value_aggregate_elt): Update.
7789
7790 2014-04-14  Tom Tromey  <tromey@redhat.com>
7791
7792         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7793
7794 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7795
7796         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7797         (evaluate_subexp_standard): Pass noside argument.
7798         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7799         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7800         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7801         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7802         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7803
7804 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7805
7806         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7807         points to a constant blob.
7808
7809 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7810
7811         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7812         property and store it as the high bound and flag the range accordingly.
7813         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7814         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7815         * gdbtypes.h (enum range_flags): New enum.
7816         (struct range_bounds): Add flags member.
7817
7818 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7819
7820         * c-typeprint.c (c_type_print_varspec_suffix): Added
7821         check for not yet resolved high bound. If unresolved, print
7822         "variable length" string to the console instead of random
7823         length.
7824
7825 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7826
7827         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7828         value.
7829         (ada_template_to_fixed_record_type_1): Likewise.
7830         (ada_to_fixed_type_1): Likewise.
7831         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7832         (cp_print_value): Likewise.
7833         * d-valprint.c (dynamic_array_type): Likewise.
7834         * findvar.c (address_of_variable): Likewise.
7835         * jv-valprint.c (java_value_print): Likewise.
7836         * valops.c (value_ind): Likewise.
7837         * value.c (coerce_ref): Likewise.
7838
7839 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7840
7841         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7842         value and retrieve the dynamic type size.
7843
7844 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7845
7846         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7847         passed to sizeof is dynamic evaluate the argument to compute the length.
7848
7849 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7850             Joel Brobecker  <brobecker@adacore.com>
7851
7852         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7853         (dwarf2_evaluate_property): New function.
7854         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7855         * dwarf2read.c (attr_to_dynamic_prop): New function.
7856         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7857         attribute.
7858         * gdbtypes.c: Include dwarf2loc.h.
7859         (is_dynamic_type): New function.
7860         (resolve_dynamic_type): New function.
7861         (resolve_dynamic_bounds): New function.
7862         (get_type_length): New function.
7863         (check_typedef): Use get_type_length to compute type length.
7864         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7865         (TYPE_LOW_BOUND_KIND): New macro.
7866         (is_dynamic_type): New function prototype.
7867         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7868         to resolve dynamic properties of the type. Update comment.
7869         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7870
7871 2014-04-14  Richard Henderson  <rth@redhat.com>
7872
7873         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7874
7875 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
7876             Doug Evans  <xdje42@gmail.com>
7877
7878         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7879         dereference TYPE_CODE_REF values.
7880
7881 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
7882
7883         Revert the following changes due to regressions:
7884
7885         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7886         (dwarf2_evaluate_property): New function.
7887         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7888         * dwarf2read.c (attr_to_dynamic_prop): New function.
7889         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7890         attribute.
7891         * gdbtypes.c: Include dwarf2loc.h.
7892         (is_dynamic_type): New function.
7893         (resolve_dynamic_type): New function.
7894         (resolve_dynamic_bounds): New function.
7895         (get_type_length): New function.
7896         (check_typedef): Use get_type_length to compute type length.
7897         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7898         (TYPE_LOW_BOUND_KIND): New macro.
7899         (is_dynamic_type): New function prototype.
7900         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7901         to resolve dynamic properties of the type. Update comment.
7902         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7903
7904         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7905         passed to sizeof is dynamic evaluate the argument to compute the length.
7906
7907         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7908         value and retrieve the dynamic type size.
7909
7910         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7911         (ada_template_to_fixed_record_type_1): Likewise.
7912         (ada_to_fixed_type_1): Likewise.
7913         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7914         (cp_print_value): Likewise.
7915         * d-valprint.c (dynamic_array_type): Likewise.
7916         * eval.c (evaluate_subexp_with_coercion): Likewise.
7917         * findvar.c (address_of_variable): Likewise.
7918         * jv-valprint.c (java_value_print): Likewise.
7919         * valops.c (value_ind): Likewise.
7920         * value.c (coerce_ref): Likewise.
7921
7922         * c-typeprint.c (c_type_print_varspec_suffix): Added
7923         check for not yet resolved high bound. If unresolved, print
7924         "variable length" string to the console instead of random
7925         length.
7926
7927         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7928         property and store it as the high bound and flag the range accordingly.
7929         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7930         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7931         * gdbtypes.h (enum range_flags): New enum.
7932         (struct range_bounds): Add flags member.
7933
7934         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7935         points to a constant blob.
7936
7937         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7938         (evaluate_subexp_standard): Pass noside argument.
7939         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7940         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7941         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7942         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7943         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7944
7945 2014-04-11  Keith Seitz  <keiths@redhat.com>
7946
7947         PR c++/16675
7948         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7949         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7950         reference types.
7951
7952 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7953
7954         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7955         (evaluate_subexp_standard): Pass noside argument.
7956         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7957         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7958         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7959         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7960         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7961
7962 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7963
7964         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7965         points to a constant blob.
7966
7967 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7968
7969         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7970         property and store it as the high bound and flag the range accordingly.
7971         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7972         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7973         * gdbtypes.h (enum range_flags): New enum.
7974         (struct range_bounds): Add flags member.
7975
7976 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7977
7978         * c-typeprint.c (c_type_print_varspec_suffix): Added
7979         check for not yet resolved high bound. If unresolved, print
7980         "variable length" string to the console instead of random
7981         length.
7982
7983 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7984
7985         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7986         (ada_template_to_fixed_record_type_1): Likewise.
7987         (ada_to_fixed_type_1): Likewise.
7988         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7989         (cp_print_value): Likewise.
7990         * d-valprint.c (dynamic_array_type): Likewise.
7991         * eval.c (evaluate_subexp_with_coercion): Likewise.
7992         * findvar.c (address_of_variable): Likewise.
7993         * jv-valprint.c (java_value_print): Likewise.
7994         * valops.c (value_ind): Likewise.
7995         * value.c (coerce_ref): Likewise.
7996
7997 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7998
7999         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8000         value and retrieve the dynamic type size.
8001
8002 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8003
8004         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8005         passed to sizeof is dynamic evaluate the argument to compute the length.
8006
8007 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8008
8009         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8010         (dwarf2_evaluate_property): New function.
8011         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8012         * dwarf2read.c (attr_to_dynamic_prop): New function.
8013         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8014         attribute.
8015         * gdbtypes.c: Include dwarf2loc.h.
8016         (is_dynamic_type): New function.
8017         (resolve_dynamic_type): New function.
8018         (resolve_dynamic_bounds): New function.
8019         (get_type_length): New function.
8020         (check_typedef): Use get_type_length to compute type length.
8021         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8022         (TYPE_LOW_BOUND_KIND): New macro.
8023         (is_dynamic_type): New function prototype.
8024         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8025         to resolve dynamic properties of the type. Update comment.
8026         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8027
8028 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8029
8030         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8031         declaring high/low bounds and change uses accordingly. Call
8032         create_range_type instead of create_static_range_type.
8033         * gdbtypes.c (create_range_type): New function.
8034         (create_range_type): Convert bounds into struct bound_prop and pass
8035         them to create_range_type.
8036         * gdbtypes.h (struct bound_prop): New struct.
8037         (create_range_type): New function prototype.
8038         (struct range_bounds): Use struct bound_prop instead of LONGEST for
8039         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8040         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8041         part of the bound.
8042         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8043
8044 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8045
8046         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8047         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8048         * ada-lang.c: All uses of create_range_type updated.
8049         * coffread.c: All uses of create_range_type updated.
8050         * dwarf2read.c: All uses of create_range_type updated.
8051         * f-exp.y: All uses of create_range_type updated.
8052         * m2-valprint.c: All uses of create_range_type updated.
8053         * mdebugread.c: All uses of create_range_type updated.
8054         * stabsread.c: All uses of create_range_type updated.
8055         * valops.c: All uses of create_range_type updated.
8056         * valprint.c: All uses of create_range_type updated.
8057
8058 2014-04-10  Pedro Alves  <palves@redhat.com>
8059
8060         * breakpoint.c (single_step_breakpoints)
8061         (single_step_gdbarch): Move up in the file.
8062         (one_breakpoint_xfer_memory): New function, factored out from ...
8063         (breakpoint_xfer_memory): ... here.  Also process single-step
8064         breakpoints.
8065
8066 2014-04-09  Tristan Gingold  <gingold@adacore.com>
8067
8068         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8069         comments.
8070         (darwin_decode_exception_message): Free port only after use.
8071
8072 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
8073
8074         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8075         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8076         when setting the size of call_length.
8077
8078 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
8079
8080         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8081         dereference TYPE_CODE_REF values.
8082
8083 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
8084
8085         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8086         end of warning message.
8087
8088 2014-04-03  Doug Evans  <dje@google.com>
8089
8090         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8091         of stub_comp_unit_die, stub_comp_dir is non-NULL.
8092
8093 2014-04-02  Alan Modra  <amodra@gmail.com>
8094
8095         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8096         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
8097         (struct symbol_file_add_from_memory_args): Add size field.
8098         (find_vdso_size): New function.
8099         (add_vsyscall_page): Attempt to find vdso size.
8100
8101 2014-04-01  Doug Evans  <dje@google.com>
8102
8103         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8104
8105 2014-04-01  Tristan Gingold  <gingold@adacore.com>
8106
8107         * darwin-nat.c (darwin_encode_reply): Add prototype.
8108         (darwin_decode_exception_message): Reply to unknown inferiors.
8109         (darwin_decode_message): Handle message by id.  Ignore message
8110         to unknown inferior.
8111         (darwin_wait): Discard unknown messages, add debug trace.
8112
8113 2014-03-31  Doug Evans  <dje@google.com>
8114
8115         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8116         comp_dir_string.
8117
8118 2014-03-31  Doug Evans  <dje@google.com>
8119
8120         New option "set print symbol-loading".
8121         * NEWS: Mention it.
8122         * solib.c (solib_read_symbols): Only print symbol loading messages
8123         if requested.
8124         (solib_add): If symbol loading is in "brief" mode, notify user
8125         symbols are being loaded.
8126         (reload_shared_libraries_1): Ditto.
8127         * symfile.c (print_symbol_loading_off): New static global.
8128         (print_symbol_loading_brief): New static global.
8129         (print_symbol_loading_full): New static global.
8130         (print_symbol_loading_enums): New static global.
8131         (print_symbol_loading): New static global.
8132         (print_symbol_loading_p): New function.
8133         (symbol_file_add_with_addrs): Only print symbol loading messages
8134         if requested.
8135         (_initialize_symfile): Register "print symbol-loading" set/show
8136         command.
8137         * symfile.h (print_symbol_loading_p): Declare.
8138
8139 2014-03-30  Doug Evans  <xdje42@gmail.com>
8140
8141         * infrun.c (set_last_target_status): New function.
8142         (handle_inferior_event): Call it.
8143
8144 2014-03-30  Doug Evans  <xdje42@gmail.com>
8145
8146         * inferior.h (enum stop_kind): Improve comment.
8147
8148 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
8149
8150         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8151         a reference, strip the reference layer before calling
8152         the lang_ops value_has_mutated callback.
8153
8154 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8155
8156         Remove some globals from our parser.
8157         * language.c (unk_lang_parser): Add "struct parser_state"
8158         argument.
8159         * language.h (struct language_defn) <la_parser>: Likewise.
8160         * parse.c (expout, expout_size, expout_ptr): Remove variables.
8161         (initialize_expout): Add "struct parser_state" argument.
8162         Rewrite function to use the parser state.
8163         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8164         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8165         write_exp_elt_longcst, write_exp_elt_dblcst,
8166         write_exp_elt_decfloatcst, write_exp_elt_type,
8167         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8168         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8169         write_dollar_variable): Likewise.
8170         (parse_exp_in_context_1): Use parser state.
8171         (insert_type_address_space): Add "struct parser_state" argument.
8172         Use parser state.
8173         (increase_expout_size): New function.
8174         * parser-defs.h: Forward declare "struct language_defn" and
8175         "struct parser_state".
8176         (expout, expout_size, expout_ptr): Remove extern declarations.
8177         (parse_gdbarch, parse_language): Rewrite macro declarations to
8178         accept the parser state.
8179         (struct parser_state): New struct.
8180         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8181         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8182         write_exp_elt_decfloatcst, write_exp_elt_type,
8183         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8184         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8185         write_exp_msymbol, write_dollar_variable,
8186         mark_struct_expression, insert_type_address_space): Add "struct
8187         parser_state" argument.
8188         (increase_expout_size): New function.
8189         * utils.c (do_clear_parser_state): New function.
8190         (make_cleanup_clear_parser_state): Likewise.
8191         * utils.h (make_cleanup_clear_parser_state): New function
8192         prototype.
8193         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8194         Update calls to write_exp* in order to pass the parser state.
8195         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8196         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8197         (i386_stap_parse_special_token_three_arg_disp): Likewise.
8198         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8199         * stap-probe.c (stap_parse_register_operand): Likewise.
8200         (stap_parse_single_operand): Likewise.
8201         (stap_parse_argument_1): Likewise.
8202         (stap_parse_argument): Use parser state.
8203         * stap-probe.h: Include "parser-defs.h".
8204         (struct stap_parse_info) <pstate>: New field.
8205         * c-exp.y (parse_type): Rewrite to use parser state.
8206         (yyparse): Redefine to c_parse_internal.
8207         (pstate): New global variable.
8208         (parse_number): Add "struct parser_state" argument.
8209         (write_destructor_name): Likewise.
8210         (type_exp): Update calls to write_exp* and similars in order to
8211         use parser state.
8212         (exp1, exp, variable, qualified_name, space_identifier,
8213         typename, typebase): Likewise.
8214         (write_destructor_name, parse_number, lex_one_token,
8215         classify_name, classify_inner_name, c_parse): Add "struct
8216         parser_state" argument.  Update function to use parser state.
8217         * c-lang.h: Forward declare "struct parser_state".
8218         (c_parse): Add "struct parser_state" argument.
8219         * ada-exp.y (parse_type): Rewrite macro to use parser state.
8220         (yyparse): Redefine macro to ada_parse_internal.
8221         (pstate): New variable.
8222         (write_int, write_object_renaming, write_var_or_type,
8223         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8224         type_int, type_long, type_long_long, type_float, type_double,
8225         type_long_double, type_char, type_boolean, type_system_address):
8226         Add "struct parser_state" argument.
8227         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8228         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8229         var_or_type, aggregate, aggregate_component_list,
8230         positional_list, others, component_group,
8231         component_associations): Update calls to write_exp* and similar
8232         functions in order to use parser state.
8233         (ada_parse, write_var_from_sym, write_int,
8234         write_exp_op_with_string, write_object_renaming,
8235         find_primitive_type, write_selectors, write_ambiguous_var,
8236         write_var_or_type, write_name_assoc, type_int, type_long,
8237         type_long_long, type_float, type_double, type_long_double,
8238         type_char, type_boolean, type_system_address): Add "struct
8239         parser_state" argument.  Adjust function to use parser state.
8240         * ada-lang.c (parse): Likewise.
8241         * ada-lang.h: Forward declare "struct parser_state".
8242         (ada_parse): Add "struct parser_state" argument.
8243         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
8244         calls to both functions.
8245         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8246         parser state.
8247         (yyparse): Redefine macro to f_parse_internal.
8248         (pstate): New variable.
8249         (parse_number): Add "struct parser_state" argument.
8250         (type_exp, exp, subrange, typebase): Update calls to write_exp*
8251         and similars in order to use parser state.
8252         (parse_number): Adjust code to use parser state.
8253         (yylex): Likewise.
8254         (f_parse): New function.
8255         * f-lang.h: Forward declare "struct parser_state".
8256         (f_parse): Add "struct parser_state" argument.
8257         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8258         parser state.
8259         (yyparse): Redefine macro for java_parse_internal.
8260         (pstate): New variable.
8261         (push_expression_name, push_expression_name, insert_exp): Add
8262         "struct parser_state" argument.
8263         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8264         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8265         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8266         PostIncrementExpression, PostDecrementExpression,
8267         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8268         UnaryExpressionNotPlusMinus, CastExpression,
8269         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8270         RelationalExpression, EqualityExpression, AndExpression,
8271         ExclusiveOrExpression, InclusiveOrExpression,
8272         ConditionalAndExpression, ConditionalOrExpression,
8273         ConditionalExpression, Assignment, LeftHandSide): Update
8274         calls to write_exp* and similars in order to use parser state.
8275         (parse_number): Ajust code to use parser state.
8276         (yylex): Likewise.
8277         (java_parse): New function.
8278         (push_variable): Add "struct parser_state" argument.  Adjust
8279         code to user parser state.
8280         (push_fieldnames, push_qualified_expression_name,
8281         push_expression_name, insert_exp): Likewise.
8282         * jv-lang.h: Forward declare "struct parser_state".
8283         (java_parse): Add "struct parser_state" argument.
8284         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8285         parser state.
8286         (yyparse): Redefine macro to m2_parse_internal.
8287         (pstate): New variable.
8288         (type_exp, exp, fblock, variable, type): Update calls to
8289         write_exp* and similars to use parser state.
8290         (yylex): Likewise.
8291         (m2_parse): New function.
8292         * m2-lang.h: Forward declare "struct parser_state".
8293         (m2_parse): Add "struct parser_state" argument.
8294         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8295         * objc-lang.h: Forward declare "struct parser_state".
8296         (end_msglist): Add "struct parser_state" argument.
8297         * p-exp.y (parse_type): Rewrite macro to use parser state.
8298         (yyparse): Redefine macro to pascal_parse_internal.
8299         (pstate): New variable.
8300         (parse_number): Add "struct parser_state" argument.
8301         (type_exp, exp1, exp, qualified_name, variable): Update calls to
8302         write_exp* and similars in order to use parser state.
8303         (parse_number, yylex): Adjust code to use parser state.
8304         (pascal_parse): New function.
8305         * p-lang.h: Forward declare "struct parser_state".
8306         (pascal_parse): Add "struct parser_state" argument.
8307         * go-exp.y (parse_type): Rewrite macro to use parser state.
8308         (yyparse): Redefine macro to go_parse_internal.
8309         (pstate): New variable.
8310         (parse_number): Add "struct parser_state" argument.
8311         (type_exp, exp1, exp, variable, type): Update calls to
8312         write_exp* and similars in order to use parser state.
8313         (parse_number, lex_one_token, classify_name, yylex): Adjust code
8314         to use parser state.
8315         (go_parse): Likewise.
8316         * go-lang.h: Forward declare "struct parser_state".
8317         (go_parse): Add "struct parser_state" argument.
8318
8319 2014-03-27  Doug Evans  <dje@google.com>
8320
8321         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
8322
8323 2014-03-27  Doug Evans  <dje@google.com>
8324
8325         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8326         Remove argument abbrev_section.  All callers updated.
8327
8328 2014-03-27  Doug Evans  <dje@google.com>
8329
8330         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8331         addr_base, ranges_base.
8332
8333 2014-03-26  Keith Seitz  <keiths@redhat.com>
8334
8335         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8336         types, not VAR_DOMAIN.
8337
8338 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
8339
8340         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8341         "ra" registers.
8342         * features/nios2-linux.c: Regenerated.
8343         * features/nios2.c: Regenerated.
8344
8345 2014-03-25  Pedro Alves  <palves@redhat.com>
8346
8347         * cli/cli-script.c (script_from_file): Force the interpreter to
8348         sync mode.
8349
8350 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8351
8352         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8353         small stack allocation.
8354
8355 2014-03-24  Tristan Gingold  <gingold@adacore.com>
8356
8357         * darwin-nat.c (exc_server): Remove unused prototype.
8358         (darwin_dump_message): Correctly display data on x86_64.
8359         (darwin_encode_reply): Fix style.
8360         Add comments and fix indentation.
8361
8362 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8363
8364         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8365
8366 2014-03-22  Doug Evans  <xdje42@gmail.com>
8367
8368         * infcmd.c: Whitespace fixes.
8369         (interrupt_command): Merge two function comments into one.
8370
8371 2014-03-22  Doug Evans  <xdje42@gmail.com>
8372
8373         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8374         All uses updated.
8375
8376 2014-03-22  Yao Qi  <yao@codesourcery.com>
8377
8378         * remote.c (target_read_live_memory): Remove.
8379         (memory_xfer_live_readonly_partial): Rename it to
8380         remote_xfer_live_readonly_partial.  Remove argument 'object'.
8381         All callers updated.  Call remote_read_bytes_1
8382         instead of target_read_live_memory.
8383         * tracepoint.c (set_traceframe_number): Remove.
8384         (make_cleanup_restore_traceframe_number): Likewise .
8385         * tracepoint.h (set_traceframe_number): Remove declaration.
8386         (make_cleanup_restore_traceframe_number): Likewise.
8387
8388 2014-03-22  Yao Qi  <yao@codesourcery.com>
8389
8390         * remote.c (remote_read_bytes): Move code on reading from the
8391         remote stub to ...
8392         (remote_read_bytes_1): ... here.  New function.
8393
8394 2014-03-22  Yao Qi  <yao@codesourcery.com>
8395
8396         * ctf.c (ctf_xfer_partial): Check the return value of
8397         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8398         return TARGET_XFER_UNAVAILABLE.
8399         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8400         * target.c (target_read_live_memory): Move it to remote.c.
8401         (memory_xfer_live_readonly_partial): Likewise.
8402         (memory_xfer_partial_1): Move some code to remote_read_bytes.
8403         * remote.c (target_read_live_memory): Moved from target.c.
8404         (memory_xfer_live_readonly_partial): Likewise.
8405         (remote_read_bytes): Factored out from
8406         memory_xfer_partial_1.
8407
8408 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
8409
8410         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8411         NULL pointer.
8412
8413 2014-03-21  Pedro Alves  <palves@redhat.com>
8414
8415         * infrun.c (normal_stop): Extend comment.
8416
8417 2014-03-21  Hui Zhu  <hui@codesourcery.com>
8418             Pedro Alves  <palves@redhat.com>
8419
8420         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8421         static buffer.
8422         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8423         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8424         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8425
8426 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
8427
8428         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8429         `z' formatted output modifier.
8430
8431 2014-03-20  Tom Tromey  <tromey@redhat.com>
8432             Sergio Durigan Junior  <sergiodj@redhat.com>
8433
8434         * probe.c (parse_probes): Turn assert into an ordinary error.
8435         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8436         exceptions when parsing probes.  Rearrange the code for clarity.
8437
8438 2014-03-20  Tom Tromey  <tromey@redhat.com>
8439
8440         PR gdb/14135
8441         * top.c (execute_command): Only dispatch events if the command
8442         started the target.
8443
8444 2014-03-20  Tom Tromey  <tromey@redhat.com>
8445
8446         PR cli/15718
8447         * infcall.c: Include event-top.h.
8448         (run_inferior_call): Call async_disable_stdin if needed.
8449
8450 2014-03-20  Pedro Alves  <palves@redhat.com>
8451
8452         * infrun.c (prepare_to_proceed): Delete.
8453         (thread_still_needs_step_over): New function.
8454         (find_thread_needs_step_over): New function.
8455         (proceed): If the current thread needs a step-over, set its
8456         steping_over_breakpoint flag.  Adjust to use
8457         find_thread_needs_step_over instead of prepare_to_proceed.
8458         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8459         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8460         breakpoint.
8461         (switch_back_to_stepped_thread): Step over breakpoints of all
8462         threads not the stepping thread, before switching back to the
8463         stepping thread.
8464
8465 2014-03-20  Pedro Alves  <palves@redhat.com>
8466
8467         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8468         extern.
8469         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8470         * infrun.c (saved_singlestep_ptid)
8471         (stepping_past_singlestep_breakpoint): Delete.
8472         (resume): Remove stepping_past_singlestep_breakpoint handling.
8473         (proceed): Store the prev_pc of the stepping thread too.
8474         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
8475         singlestep_pc.
8476         (enum infwait_states): Delete infwait_thread_hop_state.
8477         (struct execution_control_state) <hit_singlestep_breakpoint>: New
8478         field.
8479         (handle_inferior_event): Adjust.
8480         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8481         handling and the thread-hop code.  Before removing single-step
8482         breakpoints, check whether the thread hit a single-step breakpoint
8483         of another thread.  If it did, the trap is not a random signal.
8484         (switch_back_to_stepped_thread): If the event thread hit a
8485         single-step breakpoint, unblock it before switching to the
8486         stepping thread.  Handle the case of the stepped thread having
8487         advanced already.
8488         (keep_going): Handle the case of the current thread moving past a
8489         single-step breakpoint.
8490
8491 2014-03-20  Pedro Alves  <palves@redhat.com>
8492
8493         PR breakpoints/7143
8494         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8495         are being stepped over.
8496         (breakpoint_address_match): Make extern.
8497         * breakpoint.h (breakpoint_address_match): New declaration.
8498         * inferior.h (stepping_past_instruction_at): New declaration.
8499         * infrun.c (struct step_over_info): New type.
8500         (step_over_info): New global.
8501         (set_step_over_info, clear_step_over_info)
8502         (stepping_past_instruction_at): New functions.
8503         (handle_inferior_event): Clear the step-over info when
8504         trap_expected is cleared.
8505         (resume): Remove now stale comment.
8506         (clear_proceed_status): Clear step-over info.
8507         (proceed): Adjust step-over handling to set or clear the step-over
8508         info instead of removing all breakpoints.
8509         (handle_signal_stop): When setting up a thread-hop, don't remove
8510         breakpoints here.
8511         (stop_stepping): Clear step-over info.
8512         (keep_going): Adjust step-over handling to set or clear step-over
8513         info and then always inserting breakpoints, instead of removing
8514         all breakpoints when stepping over one.
8515
8516 2014-03-20  Pedro Alves  <palves@redhat.com>
8517
8518         * infrun.c (previous_inferior_ptid): Adjust comment.
8519         (deferred_step_ptid): Delete.
8520         (infrun_thread_ptid_changed, prepare_to_proceed)
8521         (init_wait_for_inferior): Adjust.
8522         (handle_signal_stop): Delete deferred_step_ptid handling.
8523
8524 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
8525
8526         PR gdb/15358
8527         * defs.h (sync_quit_force_run): New declaration.
8528         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8529         * event-top.c (async_sigterm_handler): New declaration.
8530         (async_sigterm_token): New variable.
8531         (async_init_signals): Create also async_sigterm_token.
8532         (async_sigterm_handler): New function.
8533         (sync_quit_force_run): New variable.
8534         (handle_sigterm): Replace quit_force call by other calls.
8535         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8536
8537 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
8538
8539         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8540         offset into SPE pseudo registers.
8541
8542 2014-03-18  Pedro Alves  <palves@redhat.com>
8543
8544         PR gdb/13860
8545         * inferior.h (print_stop_event): Declare.
8546         * infrun.c (print_stop_event): New, factored out from ...
8547         (normal_stop): ... this.
8548         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8549         of bpstat_print/print_stack_frame.
8550
8551 2014-03-17  Tom Tromey  <tromey@redhat.com>
8552
8553         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8554
8555 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
8556
8557         * ada-lang.c (decode_constrained_packed_array): Perform a
8558         minimal coercion for reference with coerce_ref instead of
8559         ada_coerce_ref.
8560
8561 2014-03-17  Tristan Gingold  <gingold@adacore.com>
8562
8563         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8564         (darwin_solib_create_inferior_hook): Emit a warning if version
8565         is unhandled.
8566
8567 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
8568
8569         * python/py-value.c (get_field_flag): Cast flag_name argument to
8570         PyObject_GetAttrString to support Python 2.4.
8571
8572 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8573
8574         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8575         (Global Maintainers): Remove Jan Kratochvil.
8576
8577 2014-03-14  Pedro Alves  <palves@redhat.com>
8578
8579         * inferior.h (terminal_ours_for_output): Rename to ...
8580         (child_terminal_ours_for_output): ... this.
8581         (terminal_save_ours): Rename to ...
8582         (child_terminal_save_ours): ... this.
8583         (terminal_ours): Rename to ...
8584         (child_terminal_ours): ... this.
8585         (terminal_inferior): Rename to ...
8586         (child_terminal_inferior): ... this.
8587         (terminal_init_inferior): Rename to ...
8588         (child_terminal_init_inferior): ... this.
8589         (terminal_init_inferior_with_pgrp): Rename to ...
8590         (child_terminal_init_inferior_with_pgrp): ... this.
8591         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8592         (child_terminal_init_with_pgrp): ... this.
8593         (terminal_save_ours): Rename to ...
8594         (child_terminal_save_ours): ... this.
8595         (terminal_init_inferior): Rename to ...
8596         (child_terminal_init): ... this.  Adjust.
8597         (terminal_inferior): Rename to ...
8598         (child_terminal_inferior): ... this.
8599         (terminal_ours_for_output): Rename to ...
8600         (child_terminal_ours_for_output): ... this.  Adjust.
8601         (terminal_ours): Rename to ...
8602         (child_terminal_ours): ... this.
8603         (terminal_ours_1): Rename to ...
8604         (child_terminal_ours_1): ... this.  Adjust.
8605         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8606         * windows-nat.c (do_initial_windows_stuff): Adjust.
8607         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8608         (gnu_terminal_init): ... this.  Adjust.
8609         (gnu_target): Adjust.
8610         * inf-child.c (inf_child_target): Adjust.
8611
8612 2014-03-13  Doug Evans  <xdje42@gmail.com>
8613
8614         PR guile/16612
8615         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8616         new eq?-hashtab.
8617
8618 2014-03-13  Doug Evans  <xdje42@gmail.com>
8619
8620         * value.c (record_latest_value): Call release_value_or_incref
8621         instead of release_value.
8622
8623 2014-03-13  Pedro Alves  <palves@redhat.com>
8624
8625         * procfs.c (procfs_target): Don't override to_shortname,
8626         to_longname or to_doc.
8627
8628 2014-03-13  Pedro Alves  <palves@redhat.com>
8629
8630         * inf-child.c (inf_child_open, inf_child_target): Don't mention
8631         Unix in user visible strings.
8632
8633 2014-03-12  Stan Shebs  <stan@codesourcery.com>
8634
8635         * gdbtypes.h: Annotate comments for Doxygen, add a page
8636         block comment with some general info.
8637
8638 2014-03-12  Pedro Alves  <palves@redhat.com>
8639
8640         * infcmd.c (prepare_execution_command): New function, factored out
8641         from several execution commands.
8642         (run_command_1, continue_command, step_1, jump_command)
8643         (signal_command, until_command, advance_command, finish_command)
8644         (attach_command): Use prepare_execution_command.
8645
8646 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
8647
8648         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8649         (MAX_BPTS): Define.
8650         (MAX_WPTS): Define.
8651         (struct arm_linux_thread_points): Removed.
8652         (struct arm_linux_process_info): New.
8653         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8654         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8655         (arm_linux_find_breakpoints_by_tid): Removed.
8656         (struct arch_lwp_info): New.
8657         (arm_linux_find_process_pid): New functions.
8658         (arm_linux_add_process): New functions.
8659         (arm_linux_process_info_get): New functions.
8660         (arm_linux_forget_process): New function.
8661         (arm_linux_get_debug_reg_state): New function.
8662         (struct update_registers_data): New.
8663         (update_registers_callback): New function.
8664         (arm_linux_insert_hw_breakpoint1): Updated.
8665         (arm_linux_remove_hw_breakpoint1): Updated.
8666         (arm_linux_insert_hw_breakpoint): Updated.
8667         (arm_linux_remove_hw_breakpoint): Updated.
8668         (arm_linux_insert_watchpoint): Updated.
8669         (arm_linux_remove_watchpoint): Updated.
8670         (arm_linux_new_thread): Updated.
8671         (arm_linux_prepare_to_resume): New function.
8672         (arm_linux_new_fork): New function.
8673         (_initialize_arm_linux_nat): Updated.
8674
8675 2014-03-12  Pedro Alves  <palves@redhat.com>
8676
8677         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8678
8679 2014-03-12  Tom Tromey  <tromey@redhat.com>
8680
8681         * inf-child.c (return_zero): New function.
8682         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8683         * aix-thread.c (aix_thread_inferior_created): New function.
8684         (aix_thread_attach): Remove.
8685         (init_aix_thread_ops): Don't set to_attach.
8686         (_initialize_aix_thread): Register inferior_created observer.
8687         * corelow.c (init_core_ops): Don't set to_attach or
8688         to_create_inferior.
8689         * exec.c (init_exec_ops): Don't set to_attach or
8690         to_create_inferior.
8691         * infcmd.c (run_command_1): Use find_run_target.  Make direct
8692         target calls.
8693         (attach_command): Use find_attach_target.  Make direct target
8694         calls.
8695         * record-btrace.c (init_record_btrace_ops): Don't set
8696         to_create_inferior.
8697         * record-full.c (record_full_can_async_p, record_full_is_async_p):
8698         Remove.
8699         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
8700         set to_create_inferior.
8701         * target.c (complete_target_initialization): Add assertion.
8702         (target_create_inferior): Remove.
8703         (find_default_attach, find_default_create_inferior): Remove.
8704         (find_attach_target, find_run_target): New functions.
8705         (find_default_is_async_p, find_default_can_async_p)
8706         (target_supports_non_stop, target_attach): Remove.
8707         (init_dummy_target): Don't set to_create_inferior or
8708         to_supports_non_stop.
8709         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
8710         TARGET_DEFAULT_FUNC.
8711         <to_create_inferior>: Add comment.
8712         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8713         TARGET_DEFAULT_RETURN.
8714         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8715         (find_attach_target, find_run_target): Declare.
8716         (target_create_inferior): Remove.
8717         (target_has_execution_1): Update comment.
8718         (target_supports_non_stop): Remove.
8719         * target-delegates.c: Rebuild.
8720
8721 2014-03-12  Pedro Alves  <palves@redhat.com>
8722
8723         * inf-child.h: Update comment to not mention Unix.
8724
8725 2014-03-12  Pedro Alves  <palves@redhat.com>
8726
8727         * inf-child.c: Update top comment to not mention Unix.  Add
8728         generic comment describing how this target is meant to be used.
8729         (inf_child_post_attach, inf_child_post_startup_inferior)
8730         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8731         Unix in comment.
8732
8733 2014-03-12  Pedro Alves  <palves@redhat.com>
8734
8735         * nto-procfs.c: Include inf-child.h.
8736         (procfs_ops): Delete global.
8737         (procfs_can_run): Delete method.
8738         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8739         target pointer instead of referencing procfs_ops.
8740         (procfs_prepare_to_store): Delete.
8741         (init_procfs_ops): Delete function.
8742         (procfs_target): New function, based on init_procfs_ops, but
8743         inherit inf_child_target.
8744         (_initialize_procfs): Use procfs_target.
8745
8746 2014-03-12  Pedro Alves  <palves@redhat.com>
8747
8748         * windows-nat.c: Include inf-child.h.
8749         (windows_ops): Delete global.
8750         (windows_open, windows_prepare_to_store, windows_can_run): Delete
8751         methods.
8752         (init_windows_ops): Delete function.
8753         (windows_target): New function, based on init_windows_ops, but
8754         inherit inf_child_target.
8755         (_initialize_windows_nat): Use windows_target.  Install x86
8756         specific target methods here.
8757
8758 2014-03-10  Doug Evans  <xdje42@gmail.com>
8759
8760         * guile/guile.c (call_initialize_gdb_module): New function.
8761         (initialize_guile): Replace call to scm_init_guile with call to
8762         scm_with_guile.
8763
8764 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
8765
8766         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8767         in call to TYPE_CODE macro.
8768
8769 2014-03-10  Jerome Guitton  <guitton@adacore.com>
8770
8771         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8772         Resolve tagged types to full view.
8773
8774 2014-03-10  Hui Zhu  <hui@codesourcery.com>
8775
8776         * target.h (target_insert_breakpoint): Remove "hardware" from its
8777         comments.
8778
8779 2014-03-07  Doug Evans  <dje@google.com>
8780
8781         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8782
8783 2014-03-07  Doug Evans  <dje@google.com>
8784
8785         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8786         Remove unused local comp_dir_attr.  Assert exactly one of
8787         stub_comp_unit_die, stub_comp_dir is non-NULL.
8788
8789 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
8790
8791         * target.h (complete_target_initialization, add_target):
8792         Add comment.
8793
8794 2014-03-07  Pedro Alves  <palves@redhat.com>
8795
8796         * go32-nat.c: Include inf-child.h.
8797         (go32_ops): Delete global.
8798         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8799         Delete methods.
8800         (go32_create_inferior): Push the passed in target pointer instead
8801         of referencing go32_ops.
8802         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
8803         (go32_target): New function, based on init_go32_ops, but inherit
8804         inf_child_target.
8805         (_initialize_go32_nat): Use go32_target.  Move parts of
8806         init_go32_ops here.
8807
8808 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
8809
8810         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8811         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8812         SYMBOL_VALUE_ADDRESS.
8813         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8814
8815 2014-03-06  Yao Qi  <yao@codesourcery.com>
8816
8817         * breakpoint.c (get_tracepoint_by_number): Remove argument
8818         optional_p.  All callers updated.  Adjust comments.  Update
8819         output message.
8820         * breakpoint.h (get_tracepoint_by_number): Update declaration.
8821
8822 2014-03-06  Yao Qi  <yao@codesourcery.com>
8823
8824         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
8825         early if get_number returns zero.  Use 'p' instead of 'args'.
8826
8827 2014-03-06  Yao Qi  <yao@codesourcery.com>
8828
8829         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8830         message.
8831
8832 2014-03-06  Yao Qi  <yao@codesourcery.com>
8833
8834         PR breakpoints/16508
8835         * tracepoint.c (check_trace_running): New function.
8836         (trace_find_command): Move code to check_trace_running and
8837         call check_trace_running.
8838         (trace_find_pc_command): Likewise.
8839         (trace_find_tracepoint_command): Likewise.
8840         (trace_find_line_command): Likewise.
8841         (trace_find_range_command): Likewise.
8842         * tracepoint.h (check_trace_running): Likewise.
8843         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8844
8845 2014-03-06  Yao Qi  <yao@codesourcery.com>
8846
8847         * target.h (struct target_ops) <to_traceframe_info>: Use
8848         TARGET_DEFAULT_NORETURN (tcomplain ()).
8849         * target-delegates.c: Regenerated.
8850
8851 2014-03-05  Pedro Alves  <palves@redhat.com>
8852
8853         PR gdb/16575
8854         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
8855         void.  Update comment.
8856         (dcache_xfer_memory): Delete.
8857         (dcache_read_memory_partial): New, based on the read bits of
8858         dcache_xfer_memory.
8859         (dcache_update): Add status parameter.  Use ULONGEST for len, and
8860         adjust.  Discard cache lines if the reason for the update was
8861         error.
8862         * dcache.h (dcache_xfer_memory): Delete declaration.
8863         (dcache_read_memory_partial): New declaration.
8864         (dcache_update): Update prototype.
8865         * target.c (raw_memory_xfer_partial): Update the dcache here.
8866         (memory_xfer_partial_1): Don't handle dcache writes here.
8867
8868 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
8869
8870         * remote-sim.c (gdbsim_load): Add const to prog.
8871
8872 2014-03-03  Tom Tromey  <tromey@redhat.com>
8873
8874         * elfread.c (probe_key): Change to bfd_data.
8875         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8876         now per-BFD, not per-objfile.
8877         * stap-probe.c (stap_probe_destroy): Update comment.
8878         (handle_stap_probe): Allocate on the per-BFD obstack.
8879
8880 2014-03-03  Tom Tromey  <tromey@redhat.com>
8881
8882         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8883         * breakpoint.c (create_longjmp_master_breakpoint): Use
8884         get_probe_address.
8885         (add_location_to_breakpoint, bkpt_probe_insert_location)
8886         (bkpt_probe_remove_location): Update.
8887         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8888         * elfread.c (elf_symfile_relocate_probe): Remove.
8889         (elf_probe_fns): Update.
8890         (insert_exception_resume_breakpoint): Change type of "probe"
8891         parameter to bound_probe.
8892         (check_exception_resume): Update.
8893         * objfiles.c (objfile_relocate1): Don't relocate probes.
8894         * probe.c (bound_probe_s): New typedef.
8895         (parse_probes): Use get_probe_address.  Set sal's objfile.
8896         (find_probe_by_pc): Return a bound_probe.
8897         (collect_probes): Return a VEC(bound_probe_s).
8898         (compare_probes): Update.
8899         (gen_ui_out_table_header_info): Change type of "probes"
8900         parameter.  Update.
8901         (info_probes_for_ops): Update.
8902         (get_probe_address): New function.
8903         (probe_safe_evaluate_at_pc): Update.
8904         * probe.h (struct probe_ops) <get_probe_address>: New field.
8905         <set_semaphore, clear_semaphore>: Add objfile parameter.
8906         (struct probe) <objfile>: Remove field.
8907         <arch>: New field.
8908         <address>: Update comment.
8909         (struct bound_probe): New.
8910         (find_probe_by_pc): Return a bound_probe.
8911         (get_probe_address): Declare.
8912         * solib-svr4.c (struct probe_and_action) <address>: New field.
8913         (hash_probe_and_action, equal_probe_and_action): Update.
8914         (register_solib_event_probe): Add address parameter.
8915         (solib_event_probe_at): Update.
8916         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
8917         get_probe_address.
8918         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8919         (stap_get_probe_address): New function.
8920         (stap_can_evaluate_probe_arguments, compute_probe_arg)
8921         (compile_probe_arg): Update.
8922         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8923         address.
8924         (handle_stap_probe): Don't relocate the probe.
8925         (stap_relocate): Remove.
8926         (stap_gen_info_probes_table_values): Update.
8927         (stap_probe_ops): Remove stap_relocate.
8928         * symfile-debug.c (debug_sym_relocate_probe): Remove.
8929         (debug_sym_probe_fns): Update.
8930         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8931         * symtab.c (init_sal): Use memset.
8932         * symtab.h (struct symtab_and_line) <objfile>: New field.
8933         * tracepoint.c (start_tracing, stop_tracing): Update.
8934
8935 2014-03-03  Tom Tromey  <tromey@redhat.com>
8936
8937         * probe.h (parse_probes, find_probe_by_pc)
8938         (find_probes_in_objfile): Fix comments.
8939
8940 2014-03-02  Doug Evans  <xdje42@gmail.com>
8941
8942         * infrun.c (handle_signal_stop): Replace test for
8943         TARGET_WAITKIND_STOPPED with an assert.
8944
8945 2014-03-02  Doug Evans  <xdje42@gmail.com>
8946
8947         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8948
8949 2014-03-02  Doug Evans  <xdje42@gmail.com>
8950
8951         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8952
8953 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8954
8955         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8956
8957 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8958
8959         * i386obsd-nat.c: Include "obsd-nat.h".
8960         (_initialize_i386obsd_nat): Call obsd_add_target instead of
8961         add_target.
8962         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8963
8964 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8965
8966         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8967
8968 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8969
8970         * mips64obsd-nat.c: Include "obsd-nath".
8971         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8972         add_target
8973         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8974
8975 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8976
8977         * amd64obsd-nat.c: Include "obsd-nat,h.
8978         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8979         add_target.
8980         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8981
8982 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
8983
8984         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8985         (find_overload_match): Update call to find_oload_champ.
8986         (find_oload_champ_namespace_loop): Likewise
8987
8988 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
8989
8990         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8991
8992         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8993         * config/sparc/obsd64.mh: New file.
8994         * sparc64obsd-nat.c: New file.
8995
8996         * obsd-nat.h: New file.
8997         * obsd-nat.c: New file.
8998         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8999         (ALLDEPFILES): Add obsd-nat.c.
9000
9001 2014-02-28  Tom Tromey  <tromey@redhat.com>
9002
9003         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
9004         * cli-out.h (cli_ui_out_impl): Now const.
9005         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
9006         * ui-out.c (struct ui_out) <impl>: Now const.
9007         (default_ui_out_impl): Now const.
9008         (ui_out_new): Make 'impl' parameter const.
9009         * ui-out.h (ui_out_new): Update.
9010
9011 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9012
9013         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9014
9015 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9016
9017         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9018
9019 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9020
9021         Additional PR 8882 fix.
9022         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9023
9024 2014-02-27  Pedro Alves  <palves@redhat.com>
9025
9026         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9027         isn't set.
9028
9029 2014-02-27  Pedro Alves  <palves@redhat.com>
9030
9031         PR 12702
9032         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9033         * nat/linux-waitpid.c: Include string.h.
9034         (status_to_str): Moved here and made extern.
9035         * nat/linux-waitpid.h (status_to_str): New declaration.
9036
9037 2014-02-27  Hui Zhu  <hui@codesourcery.com>
9038
9039         PR 12702
9040         * infrun.c (ptid_match): Move ...
9041         * common/ptid.c (ptid_match): ... here.
9042         * inferior.h (ptid_match): Move ...
9043         * common/ptid.h (ptid_match): ... here.
9044
9045 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9046
9047         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9048         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9049         gdb_target_obs.
9050
9051 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9052
9053         * obsd-tdep.c (obsd_auxv_parse): New function.
9054         (obsd_init_abi): Set auxv_parse.
9055
9056         * gdbarch.sh (auxv_parse): New.
9057         * gdbarch.h: Regenerated.
9058         * gdbarch.c: Regenerated.
9059         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9060
9061 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
9062
9063         * guile/scm-value.c (gdbscm_history_append_x): New function.
9064         (value_functions): Add it.
9065
9066 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9067
9068         * dwarf2read.c (attr_value_as_address): New function.
9069         (dwarf2_find_base_address, read_call_site_scope): Use
9070         attr_value_as_address in place of DW_ADDR.
9071         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9072         the low and high addresses.  Slight rework of the handling
9073         of the high pc being a constant form, and limit it to
9074         DWARF verson 4 or higher.
9075         (dwarf2_record_block_ranges): Likewise.
9076         (read_partial_die): Likewise.
9077         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9078
9079 2014-02-26  Tom Tromey  <tromey@redhat.com>
9080
9081         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9082
9083 2014-02-26  Tom Tromey  <tromey@redhat.com>
9084
9085         * elfread.c (elf_read_minimal_symbols): Return early if
9086         minimal symbols have already been read.  Add "ei" parameter.
9087         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9088         * minsyms.c (prim_record_minimal_symbol_full): Update.
9089         * objfiles.h (struct objstats) <n_minsyms>: Move...
9090         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9091         * symmisc.c (print_objfile_statistics): Update.
9092
9093 2014-02-26  Tom Tromey  <tromey@redhat.com>
9094
9095         * elfread.c (elf_read_minimal_symbols): New function, from
9096         elf_symfile_read.
9097         (elf_symfile_read): Call it.
9098
9099 2014-02-26  Tom Tromey  <tromey@redhat.com>
9100
9101         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9102         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9103         (lookup_minimal_symbol_solib_trampoline)
9104         (lookup_minimal_symbol_by_pc_section_1)
9105         (lookup_minimal_symbol_and_objfile): Update.
9106         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9107         Don't allocate a minimal symbol if minsyms have already been read.
9108         (build_minimal_symbol_hash_tables): Update.
9109         (install_minimal_symbols): Do nothing if minsyms already read.
9110         Use the per-BFD obstack.
9111         (terminate_minimal_symbol_table): Use the per-BFD obstack.
9112         * objfiles.c (allocate_objfile): Call
9113         terminate_minimal_symbol_table later.
9114         (have_minimal_symbols): Update.
9115         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9116         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9117         Move from struct objfile.
9118         <minsyms_read>: New field.
9119         (struct objfile) <msymbols, minimal_symbol_count,
9120         msymbol_hash, msymbol_demangled_hash>: Move.
9121         (ALL_OBJFILE_MSYMBOLS): Update.
9122         * symfile.c (read_symbols): Set minsyms_read.
9123         (reread_symbols): Update.
9124         * symmisc.c (dump_objfile, dump_msymbols): Update.
9125
9126 2014-02-26  Tom Tromey  <tromey@redhat.com>
9127
9128         * minsyms.c (msymbols_sort): Remove.
9129         * minsyms.h (msymbols_sort): Remove.
9130         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9131         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9132         * elfread.c (elf_symtab_read): Don't add section offsets.
9133         * xcoffread.c (record_minimal_symbol): Don't add section offset
9134         to minimal symbol address.
9135         * somread.c (text_offset, data_offset): Remove.
9136         (som_symtab_read): Don't add section offsets to minimal symbol
9137         addresses.
9138         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9139         Don't add section offsets to minimal symbols.
9140         * coffread.c (coff_symtab_read): Don't add section offsets
9141         to minimal symbol addresses.
9142         * machoread.c (macho_symtab_add_minsym): Don't add section offset
9143         to minimal symbol addresses.
9144         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9145         section offset to minimal symbol addresses.
9146         * mdebugread.c (parse_partial_symbols): Don't add section
9147         offset to minimal symbol addresses.
9148         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9149         offset to minimal symbol addresses.
9150
9151 2014-02-26  Tom Tromey  <tromey@redhat.com>
9152
9153         * ada-lang.c (ada_main_name): Update.
9154         (ada_add_standard_exceptions): Update.
9155         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9156         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9157         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9158         * auxv.c (ld_so_xfer_auxv): Update.
9159         * avr-tdep.c (avr_scan_prologue): Update.
9160         * ax-gdb.c (gen_var_ref): Update.
9161         * blockframe.c (get_pc_function_start)
9162         (find_pc_partial_function_gnu_ifunc): Update.
9163         * breakpoint.c (create_overlay_event_breakpoint)
9164         (create_longjmp_master_breakpoint)
9165         (create_std_terminate_master_breakpoint)
9166         (create_exception_master_breakpoint): Update.
9167         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9168         * c-valprint.c (c_val_print): Update.
9169         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9170         * common/agent.c (agent_look_up_symbols): Update.
9171         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9172         * dwarf2loc.c (call_site_to_target_addr): Update.
9173         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9174         * elfread.c (elf_gnu_ifunc_record_cache)
9175         (elf_gnu_ifunc_resolve_by_got): Update.
9176         * findvar.c (default_read_var_value): Update.
9177         * frame.c (inside_main_func): Update.
9178         * frv-tdep.c (frv_frame_this_id): Update.
9179         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9180         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9181         Update.
9182         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9183         (hppa_hpux_find_dummy_bpaddr): Update.
9184         * hppa-tdep.c (hppa_symbol_address): Update.
9185         * infcmd.c (until_next_command): Update.
9186         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9187         Update.
9188         * linespec.c (minsym_found, add_minsym): Update.
9189         * linux-nat.c (get_signo): Update.
9190         * linux-thread-db.c (inferior_has_bug): Update.
9191         * m32c-tdep.c (m32c_return_value)
9192         (m32c_m16c_address_to_pointer): Update.
9193         * m32r-tdep.c (m32r_frame_this_id): Update.
9194         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9195         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9196         * maint.c (maintenance_translate_address): Update.
9197         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9198         (frob_address): New function.
9199         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9200         frob_address.  Rename parameter to "pc_in".
9201         (compare_minimal_symbols, compact_minimal_symbols): Use raw
9202         addresses.
9203         (find_solib_trampoline_target, minimal_symbol_upper_bound):
9204         Update.
9205         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9206         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9207         * objc-lang.c (find_objc_msgsend): Update.
9208         * objfiles.c (objfile_relocate1): Update.
9209         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9210         * p-valprint.c (pascal_val_print): Update.
9211         * parse.c (write_exp_msymbol): Update.
9212         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9213         (ppc_elfv2_skip_entrypoint): Update.
9214         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9215         * printcmd.c (build_address_symbolic, msym_info)
9216         (address_info): Update.
9217         * proc-service.c (ps_pglobal_lookup): Update.
9218         * psymtab.c (find_pc_sect_psymtab_closer)
9219         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9220         Change msymbol parameter to bound_minimal_symbol.
9221         * ravenscar-thread.c (get_running_thread_id): Update.
9222         * remote.c (remote_check_symbols): Update.
9223         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9224         address.
9225         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9226         * solib-dsbt.c (lm_base): Update.
9227         * solib-frv.c (lm_base, main_got): Update.
9228         * solib-irix.c (locate_base): Update.
9229         * solib-som.c (som_solib_create_inferior_hook)
9230         (link_map_start): Update.
9231         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9232         * solib-svr4.c (elf_locate_base, enable_break): Update.
9233         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9234         (flush_ea_cache): Update.
9235         * stabsread.c (define_symbol, scan_file_globals): Update.
9236         * stack.c (find_frame_funname): Update.
9237         * symfile-debug.c (debug_qf_expand_symtabs_matching)
9238         (debug_qf_find_pc_sect_symtab): Update.
9239         * symfile.c (simple_read_overlay_table)
9240         (simple_overlay_update): Update.
9241         * symfile.h (struct quick_symbol_functions)
9242         <find_pc_sect_symtab>: Change type of msymbol to
9243         bound_minimal_symbol.
9244         * symmisc.c (dump_msymbols): Update.
9245         * symtab.c (find_pc_sect_symtab_via_partial)
9246         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9247         (search_symbols, print_msymbol_info): Update.
9248         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9249         (MSYMBOL_VALUE_ADDRESS): Redefine.
9250         (BMSYMBOL_VALUE_ADDRESS): New macro.
9251         * tracepoint.c (scope_info): Update.
9252         * tui/tui-disasm.c (tui_find_disassembly_address)
9253         (tui_get_begin_asm_address): Update.
9254         * valops.c (find_function_in_inferior): Update.
9255         * value.c (value_static_field, value_fn_field): Update.
9256
9257 2014-02-26  Tom Tromey  <tromey@redhat.com>
9258
9259         * ada-lang.c (ada_update_initial_language): Update.
9260         (ada_main_name, ada_has_this_exception_support): Update.
9261         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9262         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9263         * arm-tdep.c (arm_skip_stub): Update.
9264         * auxv.c (ld_so_xfer_auxv): Update.
9265         * avr-tdep.c (avr_scan_prologue): Update.
9266         * ax-gdb.c (gen_var_ref): Update.
9267         * breakpoint.c (struct breakpoint_objfile_data)
9268         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9269         type to bound_minimal_symbol.
9270         (create_overlay_event_breakpoint)
9271         (create_longjmp_master_breakpoint)
9272         (create_std_terminate_master_breakpoint)
9273         (create_exception_master_breakpoint): Update.
9274         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9275         * c-exp.y (classify_name): Update.
9276         * coffread.c (coff_symfile_read): Update.
9277         * common/agent.c (agent_look_up_symbols): Update.
9278         * d-lang.c (d_main_name): Update.
9279         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9280         * dec-thread.c (enable_dec_thread): Update.
9281         * dwarf2loc.c (call_site_to_target_addr): Update.
9282         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9283         * eval.c (evaluate_subexp_standard): Update.
9284         * findvar.c (struct minsym_lookup_data) <result>: Change type
9285         to bound_minimal_symbol.
9286         <objfile>: Remove.
9287         (minsym_lookup_iterator_cb, default_read_var_value): Update.
9288         * frame.c (inside_main_func): Update.
9289         * frv-tdep.c (frv_frame_this_id): Update.
9290         * gcore.c (call_target_sbrk): Update.
9291         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9292         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9293         Update.
9294         * go-lang.c (go_main_name): Update.
9295         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9296         (hppa_hpux_find_import_stub_for_addr): Update.
9297         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9298         Update.  Change return type.
9299         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9300         type.
9301         * jit.c (jit_breakpoint_re_set_internal): Update.
9302         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9303         Update.
9304         * linux-nat.c (get_signo): Update.
9305         * linux-thread-db.c (inferior_has_bug): Update
9306         * m32c-tdep.c (m32c_return_value)
9307         (m32c_m16c_address_to_pointer): Update.
9308         * m32r-tdep.c (m32r_frame_this_id): Update.
9309         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9310         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9311         * minsyms.c (lookup_minimal_symbol_internal): Rename to
9312         lookup_minimal_symbol.  Change return type.
9313         (lookup_minimal_symbol): Remove.
9314         (lookup_bound_minimal_symbol): Update.
9315         (lookup_minimal_symbol_text): Change return type.
9316         (lookup_minimal_symbol_solib_trampoline): Change return type.
9317         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9318         (lookup_minimal_symbol_solib_trampoline): Change return type.
9319         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9320         * objc-lang.c (lookup_objc_class, lookup_child_selector)
9321         (value_nsstring, find_imps): Update.
9322         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9323         * p-lang.c (pascal_main_name): Update.
9324         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9325         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9326         * proc-service.c (ps_pglobal_lookup): Update.
9327         * ravenscar-thread.c (get_running_thread_msymbol): Change
9328         return type.
9329         (has_ravenscar_runtime, get_running_thread_id): Update.
9330         * remote.c (remote_check_symbols): Update.
9331         * sol-thread.c (ps_pglobal_lookup): Update.
9332         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9333         * solib-dsbt.c (lm_base): Update.
9334         * solib-frv.c (lm_base, frv_relocate_section_addresses):
9335         Update.
9336         * solib-irix.c (locate_base): Update.
9337         * solib-som.c (som_solib_create_inferior_hook)
9338         (som_solib_desire_dynamic_linker_symbols, link_map_start):
9339         Update.
9340         * solib-spu.c (spu_enable_break): Update.
9341         * solib-svr4.c (elf_locate_base, enable_break): Update.
9342         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9343         (flush_ea_cache): Update.
9344         * stabsread.c (define_symbol): Update.
9345         * symfile.c (simple_read_overlay_table): Update.
9346         * symtab.c (find_pc_sect_line): Update.
9347         * tracepoint.c (scope_info): Update.
9348         * tui-disasm.c (tui_get_begin_asm_address): Update.
9349         * value.c (value_static_field): Update.
9350
9351 2014-02-26  Tom Tromey  <tromey@redhat.com>
9352
9353         * minsyms.c (prim_record_minimal_symbol_full): Use
9354         SET_MSYMBOL_VALUE_ADDRESS.
9355         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9356         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9357         SET_MSYMBOL_VALUE_ADDRESS.
9358         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9359         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9360
9361 2014-02-26  Tom Tromey  <tromey@redhat.com>
9362
9363         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9364         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9365         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9366         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9367         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9368         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9369         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9370         * ada-lang.c (ada_main_name): Update.
9371         (ada_lookup_simple_minsym): Update.
9372         (ada_make_symbol_completion_list): Update.
9373         (ada_add_standard_exceptions): Update.
9374         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9375         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9376         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9377         * arm-tdep.c (skip_prologue_function): Update.
9378         (arm_skip_stack_protector, arm_skip_stub): Update.
9379         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9380         (arm_wince_skip_main_prologue): Update.
9381         * auxv.c (ld_so_xfer_auxv): Update.
9382         * avr-tdep.c (avr_scan_prologue): Update.
9383         * ax-gdb.c (gen_var_ref): Update.
9384         * block.c (call_site_for_pc): Update.
9385         * blockframe.c (get_pc_function_start): Update.
9386         (find_pc_partial_function_gnu_ifunc): Update.
9387         * breakpoint.c (create_overlay_event_breakpoint): Update.
9388         (create_longjmp_master_breakpoint): Update.
9389         (create_std_terminate_master_breakpoint): Update.
9390         (create_exception_master_breakpoint): Update.
9391         (resolve_sal_pc): Update.
9392         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9393         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9394         Update.
9395         * c-valprint.c (c_val_print): Update.
9396         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9397         * coffread.c (coff_symfile_read): Update.
9398         * common/agent.c (agent_look_up_symbols): Update.
9399         * dbxread.c (find_stab_function_addr): Update.
9400         (end_psymtab): Update.
9401         * dwarf2loc.c (call_site_to_target_addr): Update.
9402         (func_verify_no_selftailcall): Update.
9403         (tailcall_dump): Update.
9404         (call_site_find_chain_1): Update.
9405         (dwarf_expr_reg_to_entry_parameter): Update.
9406         * elfread.c (elf_gnu_ifunc_record_cache): Update.
9407         (elf_gnu_ifunc_resolve_by_got): Update.
9408         * f-valprint.c (info_common_command): Update.
9409         * findvar.c (read_var_value): Update.
9410         * frame.c (get_prev_frame_1): Update.
9411         (inside_main_func): Update.
9412         * frv-tdep.c (frv_skip_main_prologue): Update.
9413         (frv_frame_this_id): Update.
9414         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9415         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9416         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9417         (gnuv3_skip_trampoline): Update.
9418         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9419         (hppa64_hpux_in_solib_call_trampoline): Update.
9420         (hppa_hpux_skip_trampoline_code): Update.
9421         (hppa64_hpux_search_dummy_call_sequence): Update.
9422         (hppa_hpux_find_import_stub_for_addr): Update.
9423         (hppa_hpux_find_dummy_bpaddr): Update.
9424         * hppa-tdep.c (hppa_symbol_address)
9425         (hppa_lookup_stub_minimal_symbol): Update.
9426         * i386-tdep.c (i386_skip_main_prologue): Update.
9427         (i386_pe_skip_trampoline_code): Update.
9428         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9429         * infcall.c (get_function_name): Update.
9430         * infcmd.c (until_next_command): Update.
9431         * jit.c (jit_breakpoint_re_set_internal): Update.
9432         (jit_inferior_init): Update.
9433         * linespec.c (minsym_found): Update.
9434         (add_minsym): Update.
9435         * linux-fork.c (info_checkpoints_command): Update.
9436         * linux-nat.c (get_signo): Update.
9437         * linux-thread-db.c (inferior_has_bug): Update.
9438         * m32c-tdep.c (m32c_return_value): Update.
9439         (m32c_m16c_address_to_pointer): Update.
9440         (m32c_m16c_pointer_to_address): Update.
9441         * m32r-tdep.c (m32r_frame_this_id): Update.
9442         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9443         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9444         * maint.c (maintenance_translate_address): Update.
9445         * minsyms.c (add_minsym_to_hash_table): Update.
9446         (add_minsym_to_demangled_hash_table): Update.
9447         (msymbol_objfile): Update.
9448         (lookup_minimal_symbol): Update.
9449         (iterate_over_minimal_symbols): Update.
9450         (lookup_minimal_symbol_text): Update.
9451         (lookup_minimal_symbol_by_pc_name): Update.
9452         (lookup_minimal_symbol_solib_trampoline): Update.
9453         (lookup_minimal_symbol_by_pc_section_1): Update.
9454         (lookup_minimal_symbol_and_objfile): Update.
9455         (prim_record_minimal_symbol_full): Update.
9456         (compare_minimal_symbols): Update.
9457         (compact_minimal_symbols): Update.
9458         (build_minimal_symbol_hash_tables): Update.
9459         (install_minimal_symbols): Update.
9460         (terminate_minimal_symbol_table): Update.
9461         (find_solib_trampoline_target): Update.
9462         (minimal_symbol_upper_bound): Update.
9463         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9464         * mips-tdep.c (mips_stub_frame_sniffer): Update.
9465         (mips_skip_pic_trampoline_code): Update.
9466         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9467         * objc-lang.c (selectors_info): Update.
9468         (classes_info): Update.
9469         (find_methods): Update.
9470         (find_imps): Update.
9471         (find_objc_msgsend): Update.
9472         * objfiles.c (objfile_relocate1): Update.
9473         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9474         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9475         * p-valprint.c (pascal_val_print): Update.
9476         * parse.c (write_exp_msymbol): Update.
9477         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9478         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9479         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9480         * printcmd.c (build_address_symbolic): Update.
9481         (sym_info): Update.
9482         (address_info): Update.
9483         * proc-service.c (ps_pglobal_lookup): Update.
9484         * psymtab.c (find_pc_sect_psymtab_closer): Update.
9485         (find_pc_sect_psymtab): Update.
9486         * python/py-framefilter.c (py_print_frame): Update.
9487         * ravenscar-thread.c (get_running_thread_id): Update.
9488         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9489         Update.
9490         * remote.c (remote_check_symbols): Update.
9491         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9492         (rs6000_skip_trampoline_code): Update.
9493         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9494         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9495         * solib-dsbt.c (lm_base): Update.
9496         * solib-frv.c (lm_base): Update.
9497         (main_got): Update.
9498         * solib-irix.c (locate_base): Update.
9499         * solib-som.c (som_solib_create_inferior_hook): Update.
9500         (som_solib_desire_dynamic_linker_symbols): Update.
9501         (link_map_start): Update.
9502         * solib-spu.c (spu_enable_break): Update.
9503         (ocl_enable_break): Update.
9504         * solib-svr4.c (elf_locate_base): Update.
9505         (enable_break): Update.
9506         * spu-tdep.c (spu_get_overlay_table): Update.
9507         (spu_catch_start): Update.
9508         (flush_ea_cache): Update.
9509         * stabsread.c (define_symbol): Update.
9510         (scan_file_globals): Update.
9511         * stack.c (find_frame_funname): Update.
9512         (frame_info): Update.
9513         * symfile.c (simple_read_overlay_table): Update.
9514         (simple_overlay_update): Update.
9515         * symmisc.c (dump_msymbols): Update.
9516         * symtab.c (fixup_section): Update.
9517         (find_pc_sect_line): Update.
9518         (skip_prologue_sal): Update.
9519         (search_symbols): Update.
9520         (print_msymbol_info): Update.
9521         (rbreak_command): Update.
9522         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9523         (completion_list_objc_symbol): Update.
9524         (default_make_symbol_completion_list_break_on): Update.
9525         * tracepoint.c (scope_info): Update.
9526         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9527         (tui_get_begin_asm_address): Update.
9528         * valops.c (find_function_in_inferior): Update.
9529         * value.c (value_static_field): Update.
9530         (value_fn_field): Update.
9531
9532 2014-02-26  Tom Tromey  <tromey@redhat.com>
9533
9534         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9535         bound minimal symbols.  Move code that knows about minsym
9536         table layout...
9537         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
9538         function.
9539         * minsyms.h (minimal_symbol_upper_bound): Declare.
9540         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9541         minimal_symbol_upper_bound.
9542
9543 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9544
9545         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9546         Use the type's name if its basic type does not have a tag.
9547
9548 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9549
9550         * dwarf2read.c (read_subrange_type): Add comment.
9551
9552 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9553
9554         * dwarf2read.c (update_enumeration_type_from_children): New
9555         function, mostly extracted from process_structure_scope.
9556         (read_enumeration_type): Call update_enumeration_type_from_children.
9557         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9558         and flag_flag_enum fields.
9559
9560 2014-02-26  Pedro Alves  <palves@redhat.com>
9561
9562         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9563         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9564         to_xfer_partial method.
9565
9566 2014-02-26  Pedro Alves  <palves@redhat.com>
9567
9568         * target.c (complete_target_initialization): Don't install
9569         default_xfer_partial as to_xfer_partial hook.
9570         (nomemory): Delete.
9571         (update_current_target): Don't INHERIT nor de_fault
9572         deprecated_xfer_memory.  Delete de_fault macro.
9573         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9574         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9575         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9576         field.
9577
9578 2014-02-26  Pedro Alves  <palves@redhat.com>
9579
9580         * go32-nat.c (my_write_child): New function.
9581         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9582         (go32_xfer_partial): New function.
9583         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9584         Instead install a to_xfer_partial hook.
9585
9586 2014-02-26  Pedro Alves  <palves@redhat.com>
9587
9588         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9589         to_xfer_partial helper.  Rewrite.
9590         (procfs_xfer_partial): New function.
9591         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9592         Install a to_xfer_partial hook.
9593
9594 2014-02-26  Pedro Alves  <palves@redhat.com>
9595
9596         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9597         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9598         (m32r_xfer_partial): New function.
9599         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9600         Install a to_xfer_partial hook.
9601
9602 2014-02-26  Pedro Alves  <palves@redhat.com>
9603
9604         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9605         helper.
9606         (mips_xfer_partial): New function.
9607         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9608         hook.  Install a to_xfer_partial hook.
9609
9610 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
9611
9612         * gdbtypes.h (create_array_type_with_stride): Add declaration.
9613         * gdbtypes.c (create_array_type_with_stride): New function,
9614         renaming create_array_type, but with an added parameter
9615         called "bit_stride".
9616         (create_array_type): Re-implement using
9617         create_array_type_with_stride.
9618         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9619         and DW_AT_bit_stride attributes.
9620
9621 2014-02-26  Pedro Alves  <palves@redhat.com>
9622
9623         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9624         task-specific breakpoints.
9625
9626 2014-02-25  Pedro Alves  <palves@redhat.com>
9627
9628         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9629         handling of object == TARGET_OBJECT_UNWIND_TABLE.
9630
9631 2014-02-25  Stan Shebs  <stan@codesourcery.com>
9632
9633         * defs.h: Annotate comments for Doxygen.
9634
9635 2014-02-25  Tom Tromey  <tromey@redhat.com>
9636
9637         * target.h (target_ignore): Don't declare.
9638         * target.c (target_ignore): Remove.
9639
9640 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9641
9642         PR gdb/16626
9643         * auto-load.c (auto_load_objfile_script_1): Change filename to
9644         debugfile.
9645
9646 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
9647
9648         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9649         documentation.  Adjust prototype to match the target_ops
9650         to_xfer_partial method.  Adjust implementation accordingly.
9651
9652 2014-02-25  Hui Zhu  <hui@codesourcery.com>
9653
9654         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9655         to_traceframe_info.
9656
9657 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
9658
9659         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9660         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9661         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9662         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9663         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9664         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9665         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9666         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9667         New constants.
9668         (rl78_register_type): Use a data pointer type for SP and
9669         new pseudo registers mentioned above.  Use a 16 bit integer
9670         type for all other register pairs.
9671         (rl78_register_name, rl78_g10_register_name): Update for
9672         new pseudo registers.
9673         (rl78_pseudo_register_read): Likewise.
9674         (rl78_pseudo_register_write): Likewise.
9675         (rl78_dwarf_reg_to_regnum): Return register numbers representing
9676         to the newly added pseudo registers.
9677
9678 2014-02-24  Doug Evans  <dje@google.com>
9679
9680         * value.c (record_latest_value): Fix comment.
9681         * printcmd.c (print_command_1): Remove code to handle -1 return from
9682         record_latest_value.
9683
9684 2014-02-24  Pedro Alves  <palves@redhat.com>
9685
9686         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9687         deprecated_xfer_memory hook.
9688         (procfs_xfer_partial): Call procfs_xfer_memory instead
9689         of the deprecated_xfer_memory target hook.
9690         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9691         helper.
9692
9693 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
9694
9695         * windows-nat.c (windows_xfer_shared_libraries): Return
9696         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9697         requested object is TARGET_OBJECT_LIBRARIES.
9698
9699 2014-02-24  Yao Qi  <yao@codesourcery.com>
9700
9701         * target.h (enum target_xfer_status)
9702         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9703         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9704         explicitly.  New.
9705         * corefile.c (memory_error_message): User updated.
9706         * exec.c (section_table_read_available_memory): Likewise.
9707         * record-btrace.c (record_btrace_xfer_partial): Likewise.
9708         * target.c (target_xfer_status_to_string): Likewise.
9709         (raw_memory_xfer_partial): Likewise.
9710         (memory_xfer_partial_1, target_xfer_partial): Likewise.
9711         * valops.c (read_value_memory): Likewise.
9712         * exec.h: Update comments.
9713
9714 2014-02-24  Yao Qi  <yao@codesourcery.com>
9715
9716         * target.c (target_xfer_status_to_string): Rename argument err
9717         to status.
9718         * target.h (target_xfer_status_to_string): Update declaration.
9719         Replace target_xfer_error_to_string with
9720         target_xfer_status_to_string in comment.
9721
9722 2014-02-24  Yao Qi  <yao@codesourcery.com>
9723
9724         * mips-linux-nat.c (super_close): Update its type.
9725         (mips_linux_close): Pass 'self' to super_close.
9726
9727 2014-02-24  Yao Qi  <yao@codesourcery.com>
9728
9729         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9730         * corefile.c (read_memory): Adjusted.
9731         * target.c (target_write_with_progress): Adjusted.
9732
9733 2014-02-23  Yao Qi  <yao@codesourcery.com>
9734
9735         Revert two patches:
9736
9737         2013-10-25  Yao Qi  <yao@codesourcery.com>
9738
9739         * remote.c (remote_traceframe_info): Return early if
9740         traceframe is not selected.
9741
9742         2013-07-19  Yao Qi  <yao@codesourcery.com>
9743
9744         * target.c (update_current_target): Change the default action
9745         of 'to_traceframe_info' from tcomplain to return_zero.
9746         * target.h (struct target_ops) <to_traceframe_info>: Add more
9747         comments.
9748
9749 2014-02-23  Yao Qi  <yao@codesourcery.com>
9750
9751         * valops.c (read_value_memory): Rewrite it.  Call
9752         target_xfer_partial in a loop.
9753         * exec.h (section_table_available_memory): Remove declaration.
9754         Move comments to ...
9755         * exec.c (section_table_available_memory): ... here.  Make it
9756         static.
9757
9758 2014-02-23  Yao Qi  <yao@codesourcery.com>
9759
9760         * exec.c (section_table_read_available_memory): New function.
9761         * exec.h (section_table_read_available_memory): Declare.
9762         * ctf.c (ctf_xfer_partial): Call
9763         section_table_read_available_memory.
9764         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9765
9766 2014-02-23  Yao Qi  <yao@codesourcery.com>
9767
9768         * ctf.c (ctf_xfer_partial): Move code to ...
9769         * exec.c (exec_read_partial_read_only): ... it.  New function.
9770         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9771         * tracefile.c: Include "exec.h".
9772         * exec.h (exec_read_partial_read_only): Declare.
9773
9774 2014-02-23  Yao Qi  <yao@codesourcery.com>
9775
9776         * tracefile-tfile.c (tfile_has_all_memory): Remove.
9777         (tfile_has_memory): Remove.
9778         (init_tfile_ops): Don't set fields to_has_all_memory and
9779         to_has_memory of tfile_ops.
9780         * tracefile.c (tracefile_has_all_memory): New function.
9781         (tracefile_has_memory): New function.
9782         (init_tracefile_ops): Initialize fields to_has_all_memory and
9783         to_has_memory of 'ops'.
9784
9785 2014-02-23  Yao Qi  <yao@codesourcery.com>
9786
9787         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9788         (ctf_thread_alive, ctf_get_trace_status): Remove.
9789         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
9790         init_tracefile_ops.
9791         * tracefile-tfile.c (tfile_get_trace_status): Remove.
9792         (tfile_has_stack, tfile_has_registers): Remove.
9793         (tfile_thread_alive): Remove.
9794         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
9795         init_tracefile_ops.
9796         * tracefile.c (tracefile_has_stack): New function.
9797         (tracefile_has_registers): New function.
9798         (tracefile_thread_alive): New function.
9799         (tracefile_get_trace_status): New function.
9800         (init_tracefile_ops): New function.
9801         * tracefile.h (init_tracefile_ops): Declare.
9802
9803 2014-02-23  Yao Qi  <yao@codesourcery.com>
9804
9805         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9806         (O_LARGEFILE): Likewise.
9807         (tfile_ops): Likewise.
9808         (TRACE_HEADER_SIZE): Likewise.
9809         (trace_fd, trace_frames_offset, cur_offset): Likewise.
9810         (cur_data_size): Likewise.
9811         (tfile_read, tfile_open, tfile_interp_line): Likewise.
9812         (tfile_close, tfile_files_info): Likewise.
9813         (tfile_get_trace_status): Likewise.
9814         (tfile_get_tracepoint_status): Likewise.
9815         (tfile_get_traceframe_address): Likewise.
9816         (tfile_trace_find, match_blocktype): Likewise.
9817         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9818         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9819         (tfile_get_trace_state_variable_value): Likewise.
9820         (tfile_has_all_memory, tfile_has_memory): Likewise.
9821         (tfile_has_stack, tfile_has_registers): Likewise.
9822         (tfile_thread_alive, build_traceframe_info): Likewise.
9823         (tfile_traceframe_info, init_tfile_ops): Likewise.
9824         (_initialize_tracepoint): Don't call init_tfile_ops
9825         and add_target_with_completer.
9826         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9827         exec.h, completer.h and filenames.h.
9828         (_initialize_tracefile_tfile): New function.
9829
9830 2014-02-23  Yao Qi  <yao@codesourcery.com>
9831
9832         * Makefile.in (REMOTE_OBS): Append tracefile.o and
9833         tracefile-tfile.o.
9834         (HFILES_NO_SRCDIR): Add tracefile.h.
9835         * ctf.c: Include "tracefile.h".
9836         * tracefile.h: New file.
9837         * tracefile.c: New file
9838         * tracefile-tfile.c: New file.
9839         * tracepoint.c: Include "tracefile.h".
9840         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9841         (stop_reason_names): Add const.
9842         (trace_file_writer_xfree): Move it to tracefile.c.
9843         (trace_save, trace_save_command, trace_save_tfile): Likewise.
9844         (trace_save_ctf): Likewise.
9845         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9846         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9847         (tfile_write_header, tfile_write_regblock_type): Likewise.
9848         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9849         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9850         (tfile_write_raw_data, tfile_end): Likewise.
9851         (tfile_trace_file_writer_new): Likewise.
9852         (free_uploaded_tp): Make it extern.
9853         (free_uploaded_tsv): Make it extern.
9854         (_initialize_tracepoint): Move code to register command 'tsave'
9855         to tracefile.c.
9856         * tracepoint.h (stop_reason_names): Declare.
9857         (struct trace_frame_write_ops): Move it to tracefile.h.
9858         (struct trace_file_write_ops): Likewise.
9859         (struct trace_file_writer): Likewise.
9860         (free_uploaded_tsvs, free_uploaded_tps): Declare.
9861
9862 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9863
9864         PR gdb/16594
9865         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9866         process name.
9867         (get_cores_used_by_process): New parameter num_cores, use it.
9868         (linux_xfer_osdata_processes): Pass num_cores to it.
9869         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9870         process name.
9871
9872 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
9873
9874         * target.c (memory_xfer_partial): Fix length arg in call to
9875         breakpoint_xfer_memory.
9876
9877 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
9878
9879         PR tdep/16397
9880         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9881         number comes after the + or - signs.  Adjust length of register
9882         name to be extracted.
9883
9884 2014-02-20  Tom Tromey  <tromey@redhat.com>
9885
9886         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9887         (ada_varobj_ops): Mark "extern".
9888
9889 2014-02-20  Tom Tromey  <tromey@redhat.com>
9890
9891         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9892
9893 2014-02-20  Doug Evans  <xdje42@gmail.com>
9894
9895         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9896         All callers updated.
9897         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9898         All callers updated.
9899         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9900         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9901
9902 2014-02-20  lin zuojian  <manjian2006@gmail.com>
9903             Joel Brobecker  <brobecker@adacore.com>
9904             Doug Evans  <xdje42@gmail.com>
9905
9906         PR symtab/16581
9907         * dwarf2read.c (struct die_info): New member in_process.
9908         (reset_die_in_process): New function.
9909         (process_die): Set it at the start, reset when returning.
9910         (inherit_abstract_dies): Only call process_die if origin_child_die
9911         not already being processed.
9912
9913 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9914
9915         * windows-nat.c (handle_unload_dll): Add function documentation.
9916         (do_initial_windows_stuff): Add comment explaining why we wait
9917         until after inferior initialization has finished before
9918         processing all DLLs.
9919
9920 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9921
9922         * windows-nat.c (get_module_name): Delete.
9923         (windows_get_exec_module_filename): New function, mostly
9924         inspired from get_module_name.
9925         (windows_pid_to_exec_file): Replace call to get_module_name
9926         by call to windows_get_exec_module_filename.
9927
9928 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9929
9930         * windows-nat.c (handle_load_dll): Rewrite this function's
9931         introductory comment.  Remove code using get_module_name
9932         to get the DLL's name.
9933
9934 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9935
9936         * windows-nat.c (get_windows_debug_event): Ignore
9937         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9938         if windows_initialization_done == 0.
9939         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9940         Adjust implementation to always load all DLLs.
9941         (do_initial_windows_stuff): Replace call to
9942         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9943
9944 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9945
9946         * windows-nat.c (_initialize_windows_nat): Deprecate the
9947         "dll-symbols" command.  Turn the "add-shared-symbol-files"
9948         and "assf" aliases into commands, and deprecate them as well.
9949         * NEWS: Add entry explaining that "dll-symbols" and its two
9950         aliases are now deprecated.
9951
9952 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9953
9954         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9955         new-line in debug string.  Remove trailing spaces.
9956
9957 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9958
9959         * darwin-nat.c (darwin_xfer_partial): Fix return type.
9960
9961 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
9962
9963         * NEWS: Add entry for the new feature
9964         * python/py-value.c (valpy_binop): Call value_x_binop for struct
9965         and class values.
9966
9967 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9968
9969         * MAINTAINERS: List Yao Qi as nios2 maintainer.
9970
9971 2014-02-19  Pedro Alves  <palves@redhat.com>
9972
9973         * common/ptid.h (struct ptid): Mention that process_stratum
9974         targets should prefer ptid.lwp.
9975
9976 2014-02-19  Pedro Alves  <palves@redhat.com>
9977
9978         * remote.c (remote_thread_alive, write_ptid, read_ptid)
9979         (read_ptid, remote_newthread_step, remote_threads_extra_info)
9980         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9981         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9982         store remote thread ids rather than ptid.tid.
9983         (_initialize_remote): Adjust.
9984
9985 2014-02-19  Tom Tromey  <tromey@redhat.com>
9986
9987         * target.c (target_get_unwinder): Rewrite.
9988         (target_get_tailcall_unwinder): Rewrite.
9989         * record-btrace.c (record_btrace_to_get_unwinder): New function.
9990         (record_btrace_to_get_tailcall_unwinder): New function.
9991         (init_record_btrace_ops): Update.
9992         * target.h (struct target_ops) <to_get_unwinder,
9993         to_get_tailcall_unwinder>: Now function pointers.  Use
9994         TARGET_DEFAULT_RETURN.
9995
9996 2014-02-19  Tom Tromey  <tromey@redhat.com>
9997
9998         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9999         argument.
10000         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10001
10002 2014-02-19  Tom Tromey  <tromey@redhat.com>
10003
10004         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10005         directly.
10006         * target-delegates.c: Rebuild.
10007         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10008         TARGET_DEFAULT_FUNC.
10009         * target.c (default_target_decr_pc_after_break): Rename from
10010         forward_target_decr_pc_after_break.  Simplify.
10011         (target_decr_pc_after_break): Rely on delegation.
10012
10013 2014-02-19  Tom Tromey  <tromey@redhat.com>
10014
10015         * target.c (update_current_target): Do not INHERIT to_doc or
10016         to_magic.  Do not de_fault to_open or to_close.
10017
10018 2014-02-19  Tom Tromey  <tromey@redhat.com>
10019
10020         * gcore.h (objfile_find_memory_regions): Declare.
10021         * gcore.c (objfile_find_memory_regions): No longer static.  Add
10022         "self" argument.
10023         (_initialize_gcore): Don't call exec_set_find_memory_regions.
10024         * exec.c: Include gcore.h.
10025         (exec_set_find_memory_regions): Remove.
10026         (exec_find_memory_regions): Remove.
10027         (exec_do_find_memory_regions): Remove.
10028         (init_exec_ops): Update.
10029         * defs.h (exec_set_find_memory_regions): Remove.
10030
10031 2014-02-19  Tom Tromey  <tromey@redhat.com>
10032
10033         * target-delegates.c: Rebuild.
10034         * target.h (struct target_ops) <to_extra_thread_info,
10035         to_thread_name, to_pid_to_exec_file, to_get_section_table,
10036         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10037         not 0, in TARGET_DEFAULT_RETURN.
10038
10039 2014-02-19  Tom Tromey  <tromey@redhat.com>
10040
10041         * target.c (complete_target_initialization): Remove casts.  Use
10042         return_zero_has_execution.
10043         (return_zero): Add "ignore" argument.
10044         (return_zero_has_execution): New function.
10045         (init_dummy_target): Remove casts.  Use
10046         return_zero_has_execution.
10047
10048 2014-02-19  Tom Tromey  <tromey@redhat.com>
10049
10050         * target.c (update_current_target): Update comments.  Do not
10051         INHERIT to_stratum.
10052
10053 2014-02-19  Tom Tromey  <tromey@redhat.com>
10054
10055         * arm-linux-nat.c (arm_linux_read_description): Delegate when
10056         needed.
10057         * corelow.c (core_read_description): Delegate when needed.
10058         * remote.c (remote_read_description): Delegate when needed.
10059         * target-delegates.c: Rebuild.
10060         * target.c (target_read_description): Rewrite.
10061         * target.h (struct target_ops) <to_read_description>: Update
10062         comment.  Use TARGET_DEFAULT_RETURN.
10063
10064 2014-02-19  Tom Tromey  <tromey@redhat.com>
10065
10066         * target-delegates.c: Rebuild.
10067         * target.c (update_current_target): Don't inherit or default
10068         to_can_run.
10069         (find_default_run_target): Check against delegate_can_run.
10070         * target.h (struct target_ops) <to_can_run>: Use
10071         TARGET_DEFAULT_RETURN.
10072
10073 2014-02-19  Tom Tromey  <tromey@redhat.com>
10074
10075         * target-delegates.c: Rebuild.
10076         * target.c (target_disconnect): Unconditionally delegate.
10077         * target.h (struct target_ops) <to_disconnect>: Use
10078         TARGET_DEFAULT_NORETURN.
10079
10080 2014-02-19  Tom Tromey  <tromey@redhat.com>
10081
10082         * record.c (record_stop): Unconditionally delegate.
10083         * target-delegates.c: Rebuild.
10084         * target.c (target_stop_recording): Unconditionally delegate.
10085         * target.h (struct target_ops) <to_stop_recording>: Use
10086         TARGET_DEFAULT_IGNORE.
10087
10088 2014-02-19  Tom Tromey  <tromey@redhat.com>
10089
10090         * target-delegates.c: Rebuild.
10091         * target.c (target_enable_btrace): Unconditionally delegate.
10092         * target.h (struct target_ops) <to_enable_btrace>: Use
10093         TARGET_DEFAULT_NORETURN.
10094
10095 2014-02-19  Tom Tromey  <tromey@redhat.com>
10096
10097         * target-delegates.c: Rebuild.
10098         * target.c (target_read_btrace): Unconditionally delegate.
10099         * target.h (struct target_ops) <to_read_btrace>: Use
10100         TARGET_DEFAULT_NORETURN.
10101
10102 2014-02-19  Tom Tromey  <tromey@redhat.com>
10103
10104         * target-delegates.c: Rebuild.
10105         * target.c (target_teardown_btrace): Unconditionally delegate.
10106         * target.h (struct target_ops) <to_teardown_btrace>: Use
10107         TARGET_DEFAULT_NORETURN.
10108
10109 2014-02-19  Tom Tromey  <tromey@redhat.com>
10110
10111         * target-delegates.c: Rebuild.
10112         * target.c (target_disable_btrace): Unconditionally delegate.
10113         * target.h (struct target_ops) <to_disable_btrace>: Use
10114         TARGET_DEFAULT_NORETURN.
10115
10116 2014-02-19  Tom Tromey  <tromey@redhat.com>
10117
10118         * target-delegates.c: Rebuild.
10119         * target.c (default_search_memory): New function.
10120         (simple_search_memory): Update comment.
10121         (target_search_memory): Unconditionally delegate.
10122         * target.h (struct target_ops) <to_search_memory>: Use
10123         TARGET_DEFAULT_FUNC.
10124
10125 2014-02-19  Tom Tromey  <tromey@redhat.com>
10126
10127         * auxv.c (default_auxv_parse): No longer static.
10128         (target_auxv_parse): Unconditionally delegate.
10129         * auxv.h (default_auxv_parse): Declare.
10130         * target-delegates.c: Rebuild.
10131         * target.c: Include auxv.h.
10132         * target.h (struct target_ops) <to_auxv_parse>: Use
10133         TARGET_DEFAULT_FUNC.
10134
10135 2014-02-19  Tom Tromey  <tromey@redhat.com>
10136
10137         * target-delegates.c: Rebuild.
10138         * target.c (target_memory_map): Unconditionally delegate.
10139         * target.h (struct target_ops) <to_memory_map>: Use
10140         TARGET_DEFAULT_RETURN.
10141
10142 2014-02-19  Tom Tromey  <tromey@redhat.com>
10143
10144         * target-delegates.c: Rebuild.
10145         * target.c (target_thread_alive): Unconditionally delegate.
10146         * target.h (struct target_ops) <to_thread_alive>: Use
10147         TARGET_DEFAULT_RETURN.
10148
10149 2014-02-19  Tom Tromey  <tromey@redhat.com>
10150
10151         * target-delegates.c: Rebuild.
10152         * target.c (target_save_record): Unconditionally delegate.
10153         * target.h (struct target_ops) <to_save_record>: Use
10154         TARGET_DEFAULT_NORETURN.
10155
10156 2014-02-19  Tom Tromey  <tromey@redhat.com>
10157
10158         * target-delegates.c: Rebuild.
10159         * target.c (target_delete_record): Unconditionally delegate.
10160         * target.h (struct target_ops) <to_delete_record>: Use
10161         TARGET_DEFAULT_NORETURN.
10162
10163 2014-02-19  Tom Tromey  <tromey@redhat.com>
10164
10165         * target-delegates.c: Rebuild.
10166         * target.c (target_record_is_replaying): Unconditionally
10167         delegate.
10168         * target.h (struct target_ops) <to_record_is_replaying>: Use
10169         TARGET_DEFAULT_RETURN.
10170
10171 2014-02-19  Tom Tromey  <tromey@redhat.com>
10172
10173         * target-delegates.c: Rebuild.
10174         * target.c (target_goto_record_begin): Unconditionally delegate.
10175         * target.h (struct target_ops) <to_goto_record_begin>: Use
10176         TARGET_DEFAULT_NORETURN.
10177
10178 2014-02-19  Tom Tromey  <tromey@redhat.com>
10179
10180         * target-delegates.c: Rebuild.
10181         * target.c (target_goto_record_end): Unconditionally delegate.
10182         * target.h (struct target_ops) <to_goto_record_end>: Use
10183         TARGET_DEFAULT_NORETURN.
10184
10185 2014-02-19  Tom Tromey  <tromey@redhat.com>
10186
10187         * target-delegates.c: Rebuild.
10188         * target.c (target_goto_record): Unconditionally delegate.
10189         * target.h (struct target_ops) <to_goto_record>: Use
10190         TARGET_DEFAULT_NORETURN.
10191
10192 2014-02-19  Tom Tromey  <tromey@redhat.com>
10193
10194         * target-delegates.c: Rebuild.
10195         * target.c (target_insn_history): Unconditionally delegate.
10196         * target.h (struct target_ops) <to_insn_history>: Use
10197         TARGET_DEFAULT_NORETURN.
10198
10199 2014-02-19  Tom Tromey  <tromey@redhat.com>
10200
10201         * target-delegates.c: Rebuild.
10202         * target.c (target_insn_history_from): Unconditionally delegate.
10203         * target.h (struct target_ops) <to_insn_history_from>: Use
10204         TARGET_DEFAULT_NORETURN.
10205
10206 2014-02-19  Tom Tromey  <tromey@redhat.com>
10207
10208         * target-delegates.c: Rebuild.
10209         * target.c (target_insn_history_range): Unconditionally delegate.
10210         * target.h (struct target_ops) <to_insn_history_range>: Use
10211         TARGET_DEFAULT_NORETURN.
10212
10213 2014-02-19  Tom Tromey  <tromey@redhat.com>
10214
10215         * target-delegates.c: Rebuild.
10216         * target.c (target_call_history): Unconditionally delegate.
10217         * target.h (struct target_ops) <to_call_history>: Use
10218         TARGET_DEFAULT_NORETURN.
10219
10220 2014-02-19  Tom Tromey  <tromey@redhat.com>
10221
10222         * target-delegates.c: Rebuild.
10223         * target.c (target_call_history_from): Unconditionally delegate.
10224         * target.h (struct target_ops) <to_call_history_from>: Use
10225         TARGET_DEFAULT_NORETURN.
10226
10227 2014-02-19  Tom Tromey  <tromey@redhat.com>
10228
10229         * target-delegates.c: Rebuild.
10230         * target.c (target_call_history_range): Unconditionally delegate.
10231         * target.h (struct target_ops) <to_call_history_range>: Use
10232         TARGET_DEFAULT_NORETURN.
10233
10234 2014-02-19  Tom Tromey  <tromey@redhat.com>
10235
10236         * target-delegates.c: Rebuild.
10237         * target.c (target_verify_memory): Unconditionally delegate.
10238         * target.h (struct target_ops) <to_verify_memory>: Use
10239         TARGET_DEFAULT_NORETURN.
10240
10241 2014-02-19  Tom Tromey  <tromey@redhat.com>
10242
10243         * target-delegates.c: Rebuild.
10244         * target.c (target_core_of_thread): Unconditionally delegate.
10245         * target.h (struct target_ops) <to_core_of_thread>: Use
10246         TARGET_DEFAULT_RETURN.
10247
10248 2014-02-19  Tom Tromey  <tromey@redhat.com>
10249
10250         * target-delegates.c: Rebuild.
10251         * target.c (target_flash_done): Unconditionally delegate.
10252         * target.h (struct target_ops) <to_flash_done>: Use
10253         TARGET_DEFAULT_NORETURN.
10254
10255 2014-02-19  Tom Tromey  <tromey@redhat.com>
10256
10257         * target-delegates.c: Rebuild.
10258         * target.c (target_flash_erase): Unconditionally delegate.
10259         * target.h (struct target_ops) <to_flash_erase>: Use
10260         TARGET_DEFAULT_NORETURN.
10261
10262 2014-02-19  Tom Tromey  <tromey@redhat.com>
10263
10264         * target-delegates.c: Rebuild.
10265         * target.c (target_get_section_table): Unconditionally delegate.
10266         * target.h (struct target_ops) <to_get_section_table>: Use
10267         TARGET_DEFAULT_RETURN.
10268
10269 2014-02-19  Tom Tromey  <tromey@redhat.com>
10270
10271         * target-delegates.c: Rebuild.
10272         * target.c (target_pid_to_str): Unconditionally delegate.
10273         (init_dummy_target): Don't initialize to_pid_to_str.
10274         (default_pid_to_str): Rename from dummy_pid_to_str.
10275         * target.h (struct target_ops) <to_pid_to_str>: Use
10276         TARGET_DEFAULT_FUNC.
10277
10278 2014-02-19  Tom Tromey  <tromey@redhat.com>
10279
10280         * target-delegates.c: Rebuild.
10281         * target.c (target_find_new_threads): Unconditionally delegate.
10282         * target.h (struct target_ops) <to_find_new_threads>: Use
10283         TARGET_DEFAULT_RETURN.
10284
10285 2014-02-19  Tom Tromey  <tromey@redhat.com>
10286
10287         * target-delegates.c: Rebuild.
10288         * target.c (target_program_signals): Unconditionally delegate.
10289         * target.h (struct target_ops) <to_program_signals>: Use
10290         TARGET_DEFAULT_IGNORE.
10291
10292 2014-02-19  Tom Tromey  <tromey@redhat.com>
10293
10294         * target-delegates.c: Rebuild.
10295         * target.c (target_pass_signals): Unconditionally delegate.
10296         * target.h (struct target_ops) <to_pass_signals>: Use
10297         TARGET_DEFAULT_IGNORE.
10298
10299 2014-02-19  Tom Tromey  <tromey@redhat.com>
10300
10301         * target-delegates.c: Rebuild.
10302         * target.c (default_mourn_inferior): New function.
10303         (target_mourn_inferior): Unconditionally delegate.
10304         * target.h (struct target_ops) <to_mourn_inferior>: Use
10305         TARGET_DEFAULT_FUNC.
10306
10307 2014-02-19  Tom Tromey  <tromey@redhat.com>
10308
10309         * target-delegates.c: Rebuild.
10310         * target.c (default_follow_fork): New function.
10311         (target_follow_fork): Unconditionally delegate.
10312         * target.h (struct target_ops) <to_follow_fork>: Use
10313         TARGET_DEFAULT_FUNC.
10314
10315 2014-02-19  Tom Tromey  <tromey@redhat.com>
10316
10317         * target-delegates.c: Rebuild.
10318         * target.c (target_kill): Unconditionally delegate.
10319         * target.h (struct target_ops) <to_kill>: Use
10320         TARGET_DEFAULT_NORETURN.
10321
10322 2014-02-19  Tom Tromey  <tromey@redhat.com>
10323
10324         * target-delegates.c: Rebuild.
10325         * target.c (target_masked_watch_num_registers): Unconditionally
10326         delegate.
10327         * target.h (struct target_ops) <to_masked_watch_num_registers>:
10328         Use TARGET_DEFAULT_RETURN.
10329
10330 2014-02-19  Tom Tromey  <tromey@redhat.com>
10331
10332         * target-delegates.c: Rebuild.
10333         * target.c (target_remove_mask_watchpoint): Unconditionally
10334         delegate.
10335         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10336         TARGET_DEFAULT_RETURN.
10337
10338 2014-02-19  Tom Tromey  <tromey@redhat.com>
10339
10340         * target-delegates.c: Rebuild.
10341         * target.c (target_insert_mask_watchpoint): Unconditionally
10342         delegate.
10343         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10344         TARGET_DEFAULT_RETURN.
10345
10346 2014-02-19  Tom Tromey  <tromey@redhat.com>
10347
10348         * target-delegates.c: Rebuild.
10349         * target.c (target_ranged_break_num_registers): Unconditionally
10350         delegate.
10351         * target.h (struct target_ops) <to_ranged_break_num_registers>:
10352         Use TARGET_DEFAULT_RETURN.
10353
10354 2014-02-19  Tom Tromey  <tromey@redhat.com>
10355
10356         * target-delegates.c: Rebuild.
10357         * target.c (target_fetch_registers): Unconditionally delegate.
10358         * target.h (struct target_ops) <to_fetch_registers>: Use
10359         TARGET_DEFAULT_NORETURN.
10360
10361 2014-02-19  Tom Tromey  <tromey@redhat.com>
10362
10363         * target-delegates.c: Rebuild.
10364         * target.c (update_current_target): Don't inherit or default
10365         to_stop.
10366         * target.h (struct target_ops) <to_stop>: Use
10367         TARGET_DEFAULT_IGNORE.
10368
10369 2014-02-19  Tom Tromey  <tromey@redhat.com>
10370
10371         * target-delegates.c: Rebuild.
10372         * target.c (update_current_target): Don't inherit or default
10373         to_can_run_breakpoint_commands.
10374         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10375         Use TARGET_DEFAULT_RETURN.
10376
10377 2014-02-19  Tom Tromey  <tromey@redhat.com>
10378
10379         * target-delegates.c: Rebuild.
10380         * target.c (update_current_target): Don't inherit or default
10381         to_supports_evaluation_of_breakpoint_conditions.
10382         * target.h (struct target_ops)
10383         <to_supports_evaluation_of_breakpoint_conditions>: Use
10384         TARGET_DEFAULT_RETURN.
10385
10386 2014-02-19  Tom Tromey  <tromey@redhat.com>
10387
10388         * target-delegates.c: Rebuild.
10389         * target.c (update_current_target): Don't inherit or default
10390         to_augmented_libraries_svr4_read.
10391         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10392         Use TARGET_DEFAULT_RETURN.
10393
10394 2014-02-19  Tom Tromey  <tromey@redhat.com>
10395
10396         * target-delegates.c: Rebuild.
10397         * target.c (update_current_target): Don't inherit or default
10398         to_can_use_agent.
10399         * target.h (struct target_ops) <to_can_use_agent>: Use
10400         TARGET_DEFAULT_RETURN.
10401
10402 2014-02-19  Tom Tromey  <tromey@redhat.com>
10403
10404         * target-delegates.c: Rebuild.
10405         * target.c (update_current_target): Don't inherit or default
10406         to_use_agent.
10407         * target.h (struct target_ops) <to_use_agent>: Use
10408         TARGET_DEFAULT_NORETURN.
10409
10410 2014-02-19  Tom Tromey  <tromey@redhat.com>
10411
10412         * target-delegates.c: Rebuild.
10413         * target.c (update_current_target): Don't inherit or default
10414         to_traceframe_info.
10415         (return_null): Remove.
10416         * target.h (struct target_ops) <to_traceframe_info>: Use
10417         TARGET_DEFAULT_RETURN.
10418
10419 2014-02-19  Tom Tromey  <tromey@redhat.com>
10420
10421         * target-delegates.c: Rebuild.
10422         * target.c (update_current_target): Don't inherit or default
10423         to_static_tracepoint_markers_by_strid.
10424         * target.h (struct target_ops)
10425         <to_static_tracepoint_markers_by_strid>: Use
10426         TARGET_DEFAULT_NORETURN.
10427
10428 2014-02-19  Tom Tromey  <tromey@redhat.com>
10429
10430         * target-delegates.c: Rebuild.
10431         * target.c (update_current_target): Don't inherit or default
10432         to_static_tracepoint_marker_at.
10433         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10434         Use TARGET_DEFAULT_RETURN.
10435
10436 2014-02-19  Tom Tromey  <tromey@redhat.com>
10437
10438         * target-delegates.c: Rebuild.
10439         * target.c (update_current_target): Don't inherit or default
10440         to_set_permissions.
10441         * target.h (struct target_ops) <to_set_permissions>: Use
10442         TARGET_DEFAULT_IGNORE.
10443
10444 2014-02-19  Tom Tromey  <tromey@redhat.com>
10445
10446         * target-delegates.c: Rebuild.
10447         * target.c (update_current_target): Don't inherit or default
10448         to_get_tib_address.
10449         * target.h (struct target_ops) <to_get_tib_address>: Use
10450         TARGET_DEFAULT_NORETURN.
10451
10452 2014-02-19  Tom Tromey  <tromey@redhat.com>
10453
10454         * target-delegates.c: Rebuild.
10455         * target.c (update_current_target): Don't inherit or default
10456         to_set_trace_notes.
10457         * target.h (struct target_ops) <to_set_trace_notes>: Use
10458         TARGET_DEFAULT_RETURN.
10459
10460 2014-02-19  Tom Tromey  <tromey@redhat.com>
10461
10462         * target-delegates.c: Rebuild.
10463         * target.c (update_current_target): Don't initialize
10464         to_set_trace_buffer_size.
10465         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10466         TARGET_DEFAULT_IGNORE.
10467
10468 2014-02-19  Tom Tromey  <tromey@redhat.com>
10469
10470         * target-delegates.c: Rebuild.
10471         * target.c (update_current_target): Don't inherit or default
10472         to_set_circular_trace_buffer.
10473         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10474         TARGET_DEFAULT_IGNORE.
10475
10476 2014-02-19  Tom Tromey  <tromey@redhat.com>
10477
10478         * target-delegates.c: Rebuild.
10479         * target.c (update_current_target): Don't inherit or default
10480         to_set_disconnected_tracing.
10481         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10482         TARGET_DEFAULT_IGNORE.
10483
10484 2014-02-19  Tom Tromey  <tromey@redhat.com>
10485
10486         * target-delegates.c: Rebuild.
10487         * target.c (update_current_target): Don't inherit or default
10488         to_get_min_fast_tracepoint_insn_len.
10489         (return_minus_one): Remove.
10490         * target.h (struct target_ops)
10491         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10492
10493 2014-02-19  Tom Tromey  <tromey@redhat.com>
10494
10495         * target-delegates.c: Rebuild.
10496         * target.c (update_current_target): Don't inherit or default
10497         to_get_raw_trace_data.
10498         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10499         TARGET_DEFAULT_NORETURN.
10500
10501 2014-02-19  Tom Tromey  <tromey@redhat.com>
10502
10503         * target-delegates.c: Rebuild.
10504         * target.c (update_current_target): Don't inherit or default
10505         to_upload_trace_state_variables.
10506         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10507         Use TARGET_DEFAULT_RETURN.
10508
10509 2014-02-19  Tom Tromey  <tromey@redhat.com>
10510
10511         * target-delegates.c: Rebuild.
10512         * target.c (update_current_target): Don't inherit or default
10513         to_upload_tracepoints.
10514         * target.h (struct target_ops) <to_upload_tracepoints>: Use
10515         TARGET_DEFAULT_RETURN.
10516
10517 2014-02-19  Tom Tromey  <tromey@redhat.com>
10518
10519         * target-delegates.c: Rebuild.
10520         * target.c (update_current_target): Don't inherit or default
10521         to_save_trace_data.
10522         * target.h (struct target_ops) <to_save_trace_data>: Use
10523         TARGET_DEFAULT_NORETURN.
10524
10525 2014-02-19  Tom Tromey  <tromey@redhat.com>
10526
10527         * target-delegates.c: Rebuild.
10528         * target.c (update_current_target): Don't inherit or default
10529         to_get_trace_state_variable_value.
10530         * target.h (struct target_ops)
10531         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10532
10533 2014-02-19  Tom Tromey  <tromey@redhat.com>
10534
10535         * target-delegates.c: Rebuild.
10536         * target.c (update_current_target): Don't inherit or default
10537         to_trace_find.
10538         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10539
10540 2014-02-19  Tom Tromey  <tromey@redhat.com>
10541
10542         * target-delegates.c: Rebuild.
10543         * target.c (update_current_target): Don't inherit or default
10544         to_trace_stop.
10545         * target.h (struct target_ops) <to_trace_stop>: Use
10546         TARGET_DEFAULT_NORETURN.
10547
10548 2014-02-19  Tom Tromey  <tromey@redhat.com>
10549
10550         * target-delegates.c: Rebuild.
10551         * target.c (update_current_target): Don't inherit or default
10552         to_get_tracepoint_status.
10553         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10554         TARGET_DEFAULT_NORETURN.
10555
10556 2014-02-19  Tom Tromey  <tromey@redhat.com>
10557
10558         * target-delegates.c: Rebuild.
10559         * target.c (update_current_target): Don't inherit or default
10560         to_get_trace_status.
10561         * target.h (struct target_ops) <to_get_trace_status>: Use
10562         TARGET_DEFAULT_RETURN.
10563
10564 2014-02-19  Tom Tromey  <tromey@redhat.com>
10565
10566         * target-delegates.c: Rebuild.
10567         * target.c (update_current_target): Don't inherit or default
10568         to_trace_start.
10569         * target.h (struct target_ops) <to_trace_start>: Use
10570         TARGET_DEFAULT_NORETURN.
10571
10572 2014-02-19  Tom Tromey  <tromey@redhat.com>
10573
10574         * target-delegates.c: Rebuild.
10575         * target.c (update_current_target): Don't inherit or default
10576         to_trace_set_readonly_regions.
10577         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10578         Use TARGET_DEFAULT_NORETURN.
10579
10580 2014-02-19  Tom Tromey  <tromey@redhat.com>
10581
10582         * target-delegates.c: Rebuild.
10583         * target.c (update_current_target): Don't inherit or default
10584         to_disable_tracepoint.
10585         * target.h (struct target_ops) <to_disable_tracepoint>: Use
10586         TARGET_DEFAULT_NORETURN.
10587
10588 2014-02-19  Tom Tromey  <tromey@redhat.com>
10589
10590         * target-delegates.c: Rebuild.
10591         * target.c (update_current_target): Don't inherit or default
10592         to_enable_tracepoint.
10593         * target.h (struct target_ops) <to_enable_tracepoint>: Use
10594         TARGET_DEFAULT_NORETURN.
10595
10596 2014-02-19  Tom Tromey  <tromey@redhat.com>
10597
10598         * target-delegates.c: Rebuild.
10599         * target.c (update_current_target): Don't inherit or default
10600         to_download_trace_state_variable.
10601         * target.h (struct target_ops) <to_download_trace_state_variable>:
10602         Use TARGET_DEFAULT_NORETURN.
10603
10604 2014-02-19  Tom Tromey  <tromey@redhat.com>
10605
10606         * target-delegates.c: Rebuild.
10607         * target.c (update_current_target): Don't inherit or default
10608         to_can_download_tracepoint.
10609         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10610         TARGET_DEFAULT_RETURN.
10611
10612 2014-02-19  Tom Tromey  <tromey@redhat.com>
10613
10614         * target-delegates.c: Rebuild.
10615         * target.c (update_current_target): Don't inherit or default
10616         to_download_tracepoint.
10617         * target.h (struct target_ops) <to_download_tracepoint>: Use
10618         TARGET_DEFAULT_NORETURN.
10619
10620 2014-02-19  Tom Tromey  <tromey@redhat.com>
10621
10622         * target-delegates.c: Rebuild.
10623         * target.c (update_current_target): Don't inherit or default
10624         to_trace_init.
10625         * target.h (struct target_ops) <to_trace_init>: Use
10626         TARGET_DEFAULT_RETURN.
10627
10628 2014-02-19  Tom Tromey  <tromey@redhat.com>
10629
10630         * target-delegates.c: Rebuild.
10631         * target.c (update_current_target): Don't inherit or default
10632         to_supports_string_tracing.
10633         * target.h (struct target_ops) <to_supports_string_tracing>: Use
10634         TARGET_DEFAULT_RETURN.
10635
10636 2014-02-19  Tom Tromey  <tromey@redhat.com>
10637
10638         * target-delegates.c: Rebuild.
10639         * target.c (update_current_target): Don't inherit or default
10640         to_supports_enable_disable_tracepoint.
10641         * target.h (struct target_ops)
10642         <to_supports_enable_disable_tracepoint>: Use
10643         TARGET_DEFAULT_RETURN.
10644
10645 2014-02-19  Tom Tromey  <tromey@redhat.com>
10646
10647         * target-delegates.c: Rebuild.
10648         * target.c (update_current_target): Don't inherit or default
10649         to_supports_multi_process.
10650         * target.h (struct target_ops) <to_supports_multi_process>: Use
10651         TARGET_DEFAULT_RETURN.
10652
10653 2014-02-19  Tom Tromey  <tromey@redhat.com>
10654
10655         * target-delegates.c: Rebuild.
10656         * target.c (update_current_target): Don't inherit or default
10657         to_get_ada_task_ptid.
10658         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10659         TARGET_DEFAULT_FUNC.
10660
10661 2014-02-19  Tom Tromey  <tromey@redhat.com>
10662
10663         * target-delegates.c: Rebuild.
10664         * target.c (update_current_target): Don't inherit or default
10665         to_thread_architecture.
10666         * target.h (struct target_ops) <to_thread_architecture>: Use
10667         TARGET_DEFAULT_FUNC.
10668
10669 2014-02-19  Tom Tromey  <tromey@redhat.com>
10670
10671         * target-delegates.c: Rebuild.
10672         * target.c (update_current_target): Don't inherit or default
10673         to_execution_direction.
10674         * target.h (struct target_ops) <to_execution_direction>: 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_can_execute_reverse.
10682         * target.h (struct target_ops) <to_can_execute_reverse>: Use
10683         TARGET_DEFAULT_RETURN.
10684         (target_can_execute_reverse): Unconditionally delegate.
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_goto_bookmark.
10691         (dummy_goto_bookmark): Remove.
10692         (init_dummy_target): Don't inherit or default to_goto_bookmark.
10693         * target.h (struct target_ops) <to_goto_bookmark>: Use
10694         TARGET_DEFAULT_NORETURN.
10695
10696 2014-02-19  Tom Tromey  <tromey@redhat.com>
10697
10698         * target-delegates.c: Rebuild.
10699         * target.c (update_current_target): Don't inherit or default
10700         to_get_bookmark.
10701         (dummy_get_bookmark): Remove.
10702         (init_dummy_target): Don't inherit or default to_get_bookmark.
10703         * target.h (struct target_ops) <to_get_bookmark>: Use
10704         TARGET_DEFAULT_NORETURN
10705
10706 2014-02-19  Tom Tromey  <tromey@redhat.com>
10707
10708         * target-delegates.c: Rebuild.
10709         * target.c (update_current_target): Don't inherit or default
10710         to_make_corefile_notes.
10711         (init_dummy_target): Don't initialize to_make_corefile_notes.
10712         * target.h (struct target_ops) <to_make_corefile_notes>: Use
10713         TARGET_DEFAULT_FUNC.
10714
10715 2014-02-19  Tom Tromey  <tromey@redhat.com>
10716
10717         * target-delegates.c: Rebuild.
10718         * target.c (update_current_target): Don't inherit or default
10719         to_find_memory_regions.
10720         (init_dummy_target): Don't initialize to_find_memory_regions.
10721         * target.h (struct target_ops) <to_find_memory_regions>: Use
10722         TARGET_DEFAULT_FUNC.
10723
10724 2014-02-19  Tom Tromey  <tromey@redhat.com>
10725
10726         * target-delegates.c: Rebuild.
10727         * target.c (update_current_target): Don't inherit or default
10728         to_log_command.
10729         * target.h (struct target_ops) <to_log_command>: Use
10730         TARGET_DEFAULT_IGNORE.
10731         (target_log_command): Unconditionally delegate.
10732
10733 2014-02-19  Tom Tromey  <tromey@redhat.com>
10734
10735         * target-delegates.c: Rebuild.
10736         * target.c (update_current_target): Don't inherit or default
10737         to_pid_to_exec_file.
10738         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10739         TARGET_DEFAULT_RETURN.
10740
10741 2014-02-19  Tom Tromey  <tromey@redhat.com>
10742
10743         * target-delegates.c: Rebuild.
10744         * target.c (update_current_target): Don't inherit or default
10745         to_thread_name.
10746         (target_thread_name): Unconditionally delegate.
10747         * target.h (struct target_ops) <to_thread_name>: Use
10748         TARGET_DEFAULT_RETURN.
10749
10750 2014-02-19  Tom Tromey  <tromey@redhat.com>
10751
10752         * target-delegates.c: Rebuild.
10753         * target.c (update_current_target): Don't inherit or default
10754         to_extra_thread_info.
10755         * target.h (struct target_ops) <to_extra_thread_info>: Use
10756         TARGET_DEFAULT_RETURN.
10757
10758 2014-02-19  Tom Tromey  <tromey@redhat.com>
10759
10760         * target-delegates.c: Rebuild.
10761         * target.c (update_current_target): Don't inherit or default
10762         to_has_exited.
10763         * target.h (struct target_ops) <to_has_exited>: Use
10764         TARGET_DEFAULT_RETURN..
10765
10766 2014-02-19  Tom Tromey  <tromey@redhat.com>
10767
10768         * target-delegates.c: Rebuild.
10769         * target.c (update_current_target): Don't inherit or default
10770         to_set_syscall_catchpoint.
10771         (return_one): Remove.
10772         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10773         TARGET_DEFAULT_RETURN.
10774
10775 2014-02-19  Tom Tromey  <tromey@redhat.com>
10776
10777         * target-delegates.c: Rebuild.
10778         * target.c (update_current_target): Don't inherit or default
10779         to_insert_exec_catchpoint.
10780         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10781         TARGET_DEFAULT_RETURN.
10782
10783 2014-01-08  Tom Tromey  <tromey@redhat.com>
10784
10785         * target-delegates.c: Rebuild.
10786         * target.c (update_current_target): Don't inherit or default
10787         to_insert_exec_catchpoint.
10788         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10789         TARGET_DEFAULT_RETURN.
10790
10791 2014-02-19  Tom Tromey  <tromey@redhat.com>
10792
10793         * target-delegates.c: Rebuild.
10794         * target.c (update_current_target): Don't inherit or default
10795         to_remove_vfork_catchpoint.
10796         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10797         TARGET_DEFAULT_RETURN.
10798
10799 2014-02-19  Tom Tromey  <tromey@redhat.com>
10800
10801         * target-delegates.c: Rebuild.
10802         * target.c (update_current_target): Don't inherit or default
10803         to_insert_vfork_catchpoint.
10804         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10805         TARGET_DEFAULT_RETURN.
10806
10807 2014-02-19  Tom Tromey  <tromey@redhat.com>
10808
10809         * target-delegates.c: Rebuild.
10810         * target.c (update_current_target): Don't inherit or default
10811         to_remove_fork_catchpoint.
10812         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10813         TARGET_DEFAULT_RETURN.
10814
10815 2014-02-19  Tom Tromey  <tromey@redhat.com>
10816
10817         * target-delegates.c: Rebuild.
10818         * target.c (update_current_target): Don't inherit or default
10819         to_insert_fork_catchpoint.
10820         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10821         TARGET_DEFAULT_RETURN.
10822
10823 2014-02-19  Tom Tromey  <tromey@redhat.com>
10824
10825         * target-delegates.c: Rebuild.
10826         * target.c (update_current_target): Don't inherit or default
10827         to_post_startup_inferior.
10828         * target.h (struct target_ops) <to_post_startup_inferior>: Use
10829         TARGET_DEFAULT_IGNORE.
10830
10831 2014-02-19  Tom Tromey  <tromey@redhat.com>
10832
10833         * target-delegates.c: Rebuild.
10834         * target.c (update_current_target): Don't inherit or default
10835         to_load.
10836         * target.h (struct target_ops) <to_load>: Use
10837         TARGET_DEFAULT_NORETURN.
10838
10839 2014-02-19  Tom Tromey  <tromey@redhat.com>
10840
10841         * target-delegates.c: Rebuild.
10842         * target.c (update_current_target): Don't inherit or default
10843         to_terminal_info.
10844         * target.h (struct target_ops) <to_terminal_info>: Use
10845         TARGET_DEFAULT_FUNC.
10846
10847 2014-02-19  Tom Tromey  <tromey@redhat.com>
10848
10849         * target-delegates.c: Rebuild.
10850         * target.c (update_current_target): Don't inherit or default
10851         to_terminal_save_ours.
10852         * target.h (struct target_ops) <to_terminal_save_ours>: Use
10853         TARGET_DEFAULT_IGNORE.
10854
10855 2014-02-19  Tom Tromey  <tromey@redhat.com>
10856
10857         * target-delegates.c: Rebuild.
10858         * target.c (update_current_target): Don't inherit or default
10859         to_terminal_ours.
10860         * target.h (struct target_ops) <to_terminal_ours>: Use
10861         TARGET_DEFAULT_IGNORE.
10862
10863 2014-02-19  Tom Tromey  <tromey@redhat.com>
10864
10865         * target-delegates.c: Rebuild.
10866         * target.c (update_current_target): Don't inherit or default
10867         to_terminal_ours_for_output.
10868         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10869         TARGET_DEFAULT_IGNORE.
10870
10871 2014-02-19  Tom Tromey  <tromey@redhat.com>
10872
10873         * target-delegates.c: Rebuild.
10874         * target.c (update_current_target): Don't inherit or default
10875         to_terminal_inferior.
10876         * target.h (struct target_ops) <to_terminal_inferior>: Use
10877         TARGET_DEFAULT_IGNORE.
10878
10879 2014-02-19  Tom Tromey  <tromey@redhat.com>
10880
10881         * target-delegates.c: Rebuild.
10882         * target.c (update_current_target): Don't inherit or default
10883         to_terminal_init.
10884         * target.h (struct target_ops) <to_terminal_init>: Use
10885         TARGET_DEFAULT_IGNORE.
10886
10887 2014-02-19  Tom Tromey  <tromey@redhat.com>
10888
10889         * target-delegates.c: Rebuild.
10890         * target.c (update_current_target): Don't inherit or default
10891         to_can_accel_watchpoint_condition.
10892         * target.h (struct target_ops)
10893         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10894
10895 2014-02-19  Tom Tromey  <tromey@redhat.com>
10896
10897         * target-delegates.c: Rebuild.
10898         * target.c (update_current_target): Don't inherit or default
10899         to_region_ok_for_hw_watchpoint.
10900         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10901         Use TARGET_DEFAULT_FUNC.
10902
10903 2014-02-19  Tom Tromey  <tromey@redhat.com>
10904
10905         * target-delegates.c: Rebuild.
10906         * target.c (update_current_target): Don't inherit or default
10907         to_watchpoint_addr_within_range.
10908         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10909         Use TARGET_DEFAULT_FUNC.
10910
10911 2014-02-19  Tom Tromey  <tromey@redhat.com>
10912
10913         * target-delegates.c: Rebuild.
10914         * target.c (update_current_target): Don't inherit or default
10915         to_remove_watchpoint.
10916         * target.h (struct target_ops) <to_remove_watchpoint>: Use
10917         TARGET_DEFAULT_NORETURN.
10918
10919 2014-02-19  Tom Tromey  <tromey@redhat.com>
10920
10921         * target-delegates.c: Rebuild.
10922         * target.c (update_current_target): Don't inherit or default
10923         to_insert_watchpoint.
10924         * target.h (struct target_ops) <to_insert_watchpoint>: Use
10925         TARGET_DEFAULT_RETURN.
10926
10927 2014-02-19  Tom Tromey  <tromey@redhat.com>
10928
10929         * target-delegates.c: Rebuild.
10930         * target.c (update_current_target): Don't inherit or default
10931         to_remove_hw_breakpoint.
10932         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10933         TARGET_DEFAULT_RETURN.
10934
10935 2014-02-19  Tom Tromey  <tromey@redhat.com>
10936
10937         * target-delegates.c: Rebuild.
10938         * target.c (update_current_target): Don't inherit or default
10939         to_insert_hw_breakpoint.
10940         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10941         TARGET_DEFAULT_RETURN.
10942
10943 2014-02-19  Tom Tromey  <tromey@redhat.com>
10944
10945         * target-delegates.c: Rebuild.
10946         * target.c (update_current_target): Don't inherit or default
10947         to_can_use_hw_breakpoint.
10948         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10949         TARGET_DEFAULT_RETURN.
10950
10951 2014-02-19  Tom Tromey  <tromey@redhat.com>
10952
10953         * target-delegates.c: Rebuild.
10954         * target.c (update_current_target): Don't inherit or default
10955         to_files_info.
10956         * target.h (struct target_ops) <to_files_info>: Use
10957         TARGET_DEFAULT_IGNORE.
10958
10959 2014-02-19  Tom Tromey  <tromey@redhat.com>
10960
10961         * target-delegates.c: Rebuild.
10962         * target.c (update_current_target): Don't inherit or default
10963         to_store.
10964         * target.h (struct target_ops) <to_store>: Use
10965         TARGET_DEFAULT_NORETURN.
10966
10967 2014-02-19  Tom Tromey  <tromey@redhat.com>
10968
10969         * target-delegates.c: Rebuild.
10970         * target.c (update_current_target): Don't inherit or default
10971         to_post_attach.
10972         * target.h (struct target_ops) <to_post_attach>: Use
10973         TARGET_DEFAULT_IGNORE.
10974
10975 2014-02-19  Tom Tromey  <tromey@redhat.com>
10976
10977         * target-delegates.c: Rebuild.
10978         * target.c (update_current_target): Don't inherit or default
10979         to_rcmd.
10980         (default_rcmd): New function.
10981         (do_monitor_command): Unconditionally delegate.
10982         * target.h (struct target_ops) <to_rmcd>: Use
10983         TARGET_DEFAULT_FUNC.
10984
10985 2014-02-19  Tom Tromey  <tromey@redhat.com>
10986
10987         * target-delegates.c: Rebuild.
10988         * target.c (init_dummy_target): Don't initialize to_attach.
10989         (target_attach): Unconditionally delegate.
10990         * target.h (struct target_ops) <to_attach>: Use
10991         TARGET_DEFAULT_FUNC.
10992
10993 2014-02-19  Tom Tromey  <tromey@redhat.com>
10994
10995         * target-delegates.c: Rebuild.
10996         * target.c (target_detach): Unconditionally delegate.
10997         (init_dummy_target): Don't initialize to_detach.
10998         * target.h (struct target_ops) <to_detach>: Use
10999         TARGET_DEFAULT_IGNORE.
11000
11001 2014-02-19  Tom Tromey  <tromey@redhat.com>
11002
11003         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11004         Add argument.
11005         (target_augmented_libraries_svr4_read): Add argument.
11006         * target.c (update_current_target): Update.
11007         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11008         argument.
11009
11010 2014-02-19  Tom Tromey  <tromey@redhat.com>
11011
11012         * target.h (struct target_ops) <to_call_history_range>: Add
11013         argument.
11014         * target.c (target_call_history_range): Add argument.
11015         * record-btrace.c (record_btrace_call_history_range): Add 'self'
11016         argument.
11017         (record_btrace_call_history_from): Update.
11018
11019 2014-02-19  Tom Tromey  <tromey@redhat.com>
11020
11021         * target.h (struct target_ops) <to_call_history_from>: Add
11022         argument.
11023         * target.c (target_call_history_from): Add argument.
11024         * record-btrace.c (record_btrace_call_history_from): Add 'self'
11025         argument.
11026
11027 2014-02-19  Tom Tromey  <tromey@redhat.com>
11028
11029         * target.h (struct target_ops) <to_call_history>: Add argument.
11030         * target.c (target_call_history): Add argument.
11031         * record-btrace.c (record_btrace_call_history): Add 'self'
11032         argument.
11033
11034 2014-02-19  Tom Tromey  <tromey@redhat.com>
11035
11036         * target.h (struct target_ops) <to_insn_history_range>: Add
11037         argument.
11038         * target.c (target_insn_history_range): Add argument.
11039         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11040         argument.
11041         (record_btrace_insn_history_from): Update.
11042
11043 2014-02-19  Tom Tromey  <tromey@redhat.com>
11044
11045         * target.h (struct target_ops) <to_insn_history_from>: Add
11046         argument.
11047         * target.c (target_insn_history_from): Add argument.
11048         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11049         argument.
11050
11051 2014-02-19  Tom Tromey  <tromey@redhat.com>
11052
11053         * target.h (struct target_ops) <to_insn_history>: Add argument.
11054         * target.c (target_insn_history): Add argument.
11055         * record-btrace.c (record_btrace_insn_history): Add 'self'
11056         argument.
11057
11058 2014-02-19  Tom Tromey  <tromey@redhat.com>
11059
11060         * target.h (struct target_ops) <to_goto_record>: Add argument.
11061         * target.c (target_goto_record): Add argument.
11062         * record-full.c (record_full_goto): Add 'self' argument.
11063         * record-btrace.c (record_btrace_goto): Add 'self' argument.
11064
11065 2014-02-19  Tom Tromey  <tromey@redhat.com>
11066
11067         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11068         * target.c (target_goto_record_end): Add argument.
11069         * record-full.c (record_full_goto_end): Add 'self' argument.
11070         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11071
11072 2014-02-19  Tom Tromey  <tromey@redhat.com>
11073
11074         * target.h (struct target_ops) <to_goto_record_begin>: Add
11075         argument.
11076         * target.c (target_goto_record_begin): Add argument.
11077         * record-full.c (record_full_goto_begin): Add 'self' argument.
11078         * record-btrace.c (record_btrace_goto_begin): Add 'self'
11079         argument.
11080
11081 2014-02-19  Tom Tromey  <tromey@redhat.com>
11082
11083         * target.h (struct target_ops) <to_record_is_replaying>: Add
11084         argument.
11085         * target.c (target_record_is_replaying): Add argument.
11086         * record-full.c (record_full_is_replaying): Add 'self' argument.
11087         * record-btrace.c (record_btrace_is_replaying): Add 'self'
11088         argument.
11089         (record_btrace_xfer_partial, record_btrace_store_registers)
11090         (record_btrace_prepare_to_store, record_btrace_resume)
11091         (record_btrace_wait, record_btrace_decr_pc_after_break)
11092         (record_btrace_find_new_threads, record_btrace_thread_alive):
11093         Update.
11094
11095 2014-02-19  Tom Tromey  <tromey@redhat.com>
11096
11097         * target.h (struct target_ops) <to_delete_record>: Add argument.
11098         * target.c (target_delete_record): Add argument.
11099         * record-full.c (record_full_delete): Add 'self' argument.
11100
11101 2014-02-19  Tom Tromey  <tromey@redhat.com>
11102
11103         * target.h (struct target_ops) <to_save_record>: Add argument.
11104         * target.c (target_save_record): Add argument.
11105         * record-full.c (record_full_save): Add 'self' argument.
11106         (record_full_save): Add 'self' argument.
11107
11108 2014-02-19  Tom Tromey  <tromey@redhat.com>
11109
11110         * target.h (struct target_ops) <to_info_record>: Add argument.
11111         * target.c (target_info_record): Add argument.
11112         * record.c (info_record_command): Add argument.
11113         * record-full.c (record_full_info): Add 'self' argument.
11114         * record-btrace.c (record_btrace_info): Add 'self' argument.
11115
11116 2014-02-19  Tom Tromey  <tromey@redhat.com>
11117
11118         * target.h (struct target_ops) <to_stop_recording>: Add argument.
11119         * target.c (target_stop_recording): Add argument.
11120         * record.c (record_stop): Add argument.
11121         * record-btrace.c (record_btrace_stop_recording): Add 'self'
11122         argument.
11123
11124 2014-02-19  Tom Tromey  <tromey@redhat.com>
11125
11126         * target.h (struct target_ops) <to_read_btrace>: Add argument.
11127         * target.c (struct target_ops) <to_read_btrace>: Add argument.
11128         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11129         argument.
11130         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11131         (_initialize_amd64_linux_nat): Use it.
11132         * i386-linux-nat.c (i386_linux_read_btrace): New function.
11133         (_initialize_i386_linux_nat): Use it.
11134
11135 2014-02-19  Tom Tromey  <tromey@redhat.com>
11136
11137         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11138         * target.c (target_teardown_btrace): Add argument.
11139         * remote.c (remote_teardown_btrace): Add 'self' argument.
11140         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11141         argument.
11142         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11143         argument.
11144
11145 2014-02-19  Tom Tromey  <tromey@redhat.com>
11146
11147         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11148         * target.c (target_disable_btrace): Add argument.
11149         * remote.c (remote_disable_btrace): Add 'self' argument.
11150         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11151         argument.
11152         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11153         argument.
11154
11155 2014-02-19  Tom Tromey  <tromey@redhat.com>
11156
11157         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11158         * target.c (target_enable_btrace): Add argument.
11159         * remote.c (remote_enable_btrace): Add 'self' argument.
11160         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11161         argument.
11162         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11163         argument.
11164
11165 2014-02-19  Tom Tromey  <tromey@redhat.com>
11166
11167         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11168         (target_can_use_agent): Add argument.
11169         * target.c (update_current_target): Update.
11170         * remote.c (remote_can_use_agent): Add 'self' argument.
11171         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11172
11173 2014-02-19  Tom Tromey  <tromey@redhat.com>
11174
11175         * target.h (struct target_ops) <to_use_agent>: Add argument.
11176         (target_use_agent): Add argument.
11177         * target.c (update_current_target): Update.
11178         * remote.c (remote_use_agent): Add 'self' argument.
11179         * inf-child.c (inf_child_use_agent): Add 'self' argument.
11180
11181 2014-02-19  Tom Tromey  <tromey@redhat.com>
11182
11183         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11184         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11185         (target_traceframe_info): Add argument.
11186         * target.c (update_current_target): Update.
11187         * remote.c (remote_traceframe_info): Add 'self' argument.
11188         * ctf.c (ctf_traceframe_info): Add 'self' argument.
11189
11190 2014-02-19  Tom Tromey  <tromey@redhat.com>
11191
11192         * target.h (target_static_tracepoint_markers_by_strid): Add
11193         argument.
11194         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11195         'self' argument.
11196         * target.c (update_current_target): Update.
11197         * remote.c (struct target_ops)
11198         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11199         * linux-nat.c (struct target_ops)
11200         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11201
11202 2014-02-19  Tom Tromey  <tromey@redhat.com>
11203
11204         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11205         Add argument.
11206         (target_static_tracepoint_marker_at): Add argument.
11207         * target.c (update_current_target): Update.
11208         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11209         argument.
11210
11211 2014-02-19  Tom Tromey  <tromey@redhat.com>
11212
11213         * target.h (struct target_ops) <to_set_permissions>: Add argument.
11214         (target_set_permissions): Add argument.
11215         * target.c (update_current_target): Update.
11216         * remote.c (remote_set_permissions): Add 'self' argument.
11217         (remote_start_remote): Update.
11218
11219 2014-02-19  Tom Tromey  <tromey@redhat.com>
11220
11221         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11222         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11223         (target_get_tib_address): Add argument.
11224         * target.c (update_current_target): Update.
11225         * remote.c (remote_get_tib_address): Add 'self' argument.
11226
11227 2014-02-19  Tom Tromey  <tromey@redhat.com>
11228
11229         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11230         (target_set_trace_notes): Add argument.
11231         * target.c (update_current_target): Update.
11232         * remote.c (remote_set_trace_notes): Add 'self' argument.
11233
11234 2014-02-19  Tom Tromey  <tromey@redhat.com>
11235
11236         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11237         argument.
11238         (target_set_trace_buffer_size): Add argument.
11239         * target.c (update_current_target): Update.
11240         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11241
11242 2014-02-19  Tom Tromey  <tromey@redhat.com>
11243
11244         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11245         argument.
11246         (target_set_circular_trace_buffer): Add argument.
11247         * target.c (update_current_target): Update.
11248         * remote.c (remote_set_circular_trace_buffer): Add 'self'
11249         argument.
11250
11251 2014-02-19  Tom Tromey  <tromey@redhat.com>
11252
11253         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11254         argument.
11255         (target_set_disconnected_tracing): Add argument.
11256         * target.c (update_current_target): Update.
11257         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11258
11259 2014-02-19  Tom Tromey  <tromey@redhat.com>
11260
11261         * target.h (struct target_ops)
11262         <to_get_min_fast_tracepoint_insn_len>: Add argument.
11263         (target_get_min_fast_tracepoint_insn_len): Add argument.
11264         * target.c (update_current_target): Update.
11265         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11266         argument.
11267
11268 2014-02-19  Tom Tromey  <tromey@redhat.com>
11269
11270         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11271         argument.
11272         (target_get_raw_trace_data): Add argument.
11273         * target.c (update_current_target): Update.
11274         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11275
11276 2014-02-19  Tom Tromey  <tromey@redhat.com>
11277
11278         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11279         Add argument.
11280         (target_upload_trace_state_variables): Add argument.
11281         * target.c (update_current_target): Update.
11282         * remote.c (remote_upload_trace_state_variables): Add 'self'
11283         argument.
11284         (remote_start_remote): Update.
11285
11286 2014-02-19  Tom Tromey  <tromey@redhat.com>
11287
11288         * target.h (struct target_ops) <to_upload_tracepoints>: Add
11289         argument.
11290         (target_upload_tracepoints): Add argument.
11291         * target.c (update_current_target): Update.
11292         * remote.c (remote_upload_tracepoints): Add 'self' argument.
11293         (remote_start_remote): Update.
11294
11295 2014-02-19  Tom Tromey  <tromey@redhat.com>
11296
11297         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11298         (target_save_trace_data): Add argument.
11299         * target.c (update_current_target): Update.
11300         * remote.c (remote_save_trace_data): Add 'self' argument.
11301
11302 2014-02-19  Tom Tromey  <tromey@redhat.com>
11303
11304         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11305         argument.
11306         * target.h (struct target_ops)
11307         <to_get_trace_state_variable_value>: Add argument.
11308         (target_get_trace_state_variable_value): Add argument.
11309         * target.c (update_current_target): Update.
11310         * remote.c (remote_get_trace_state_variable_value): Add 'self'
11311         argument.
11312         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11313
11314 2014-02-19  Tom Tromey  <tromey@redhat.com>
11315
11316         * tracepoint.c (tfile_trace_find): Add 'self' argument.
11317         * target.h (struct target_ops) <to_trace_find>: Add argument.
11318         (target_trace_find): Add argument.
11319         * target.c (update_current_target): Update.
11320         * remote.c (remote_trace_find): Add 'self' argument.
11321         * ctf.c (ctf_trace_find): Add 'self' argument.
11322
11323 2014-02-19  Tom Tromey  <tromey@redhat.com>
11324
11325         * target.h (struct target_ops) <to_trace_stop>: Add argument.
11326         (target_trace_stop): Add argument.
11327         * target.c (update_current_target): Update.
11328         * remote.c (remote_trace_stop): Add 'self' argument.
11329
11330 2014-02-19  Tom Tromey  <tromey@redhat.com>
11331
11332         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11333         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11334         argument.
11335         (target_get_tracepoint_status): Add argument.
11336         * target.c (update_current_target): Update.
11337         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11338
11339 2014-02-19  Tom Tromey  <tromey@redhat.com>
11340
11341         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11342         * target.h (struct target_ops) <to_get_trace_status>: Add
11343         argument.
11344         (target_get_trace_status): Add argument.
11345         * target.c (update_current_target): Update.
11346         * remote.c (remote_get_trace_status): Add 'self' argument.
11347         (remote_start_remote, remote_can_download_tracepoint): Update.
11348         * ctf.c (ctf_get_trace_status): Add 'self' argument.
11349
11350 2014-02-19  Tom Tromey  <tromey@redhat.com>
11351
11352         * target.h (struct target_ops) <to_trace_start>: Add argument.
11353         (target_trace_start): Add argument.
11354         * target.c (update_current_target): Update.
11355         * remote.c (remote_trace_start): Add 'self' argument.
11356
11357 2014-02-19  Tom Tromey  <tromey@redhat.com>
11358
11359         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11360         Add argument.
11361         (target_trace_set_readonly_regions): Add argument.
11362         * target.c (update_current_target): Update.
11363         * remote.c (remote_trace_set_readonly_regions): Add 'self'
11364         argument.
11365
11366 2014-02-19  Tom Tromey  <tromey@redhat.com>
11367
11368         * target.h (struct target_ops) <to_disable_tracepoint>: Add
11369         argument.
11370         (target_disable_tracepoint): Add argument.
11371         * target.c (update_current_target): Update.
11372         * remote.c (remote_disable_tracepoint): Add 'self' argument.
11373
11374 2014-02-19  Tom Tromey  <tromey@redhat.com>
11375
11376         * target.h (struct target_ops) <to_enable_tracepoint>: Add
11377         argument.
11378         (target_enable_tracepoint): Add argument.
11379         * target.c (update_current_target): Update.
11380         * remote.c (remote_enable_tracepoint): Add 'self' argument.
11381
11382 2014-02-19  Tom Tromey  <tromey@redhat.com>
11383
11384         * target.h (struct target_ops) <to_download_trace_state_variable>:
11385         Add argument.
11386         (target_download_trace_state_variable): Add argument.
11387         * target.c (update_current_target): Update.
11388         * remote.c (remote_download_trace_state_variable): Add 'self'
11389         argument.
11390
11391 2014-02-19  Tom Tromey  <tromey@redhat.com>
11392
11393         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11394         argument.
11395         (target_can_download_tracepoint): Add argument.
11396         * target.c (update_current_target): Update.
11397         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11398
11399 2014-02-19  Tom Tromey  <tromey@redhat.com>
11400
11401         * target.h (struct target_ops) <to_download_tracepoint>: Add
11402         argument.
11403         (target_download_tracepoint): Add argument.
11404         * target.c (update_current_target): Update.
11405         * remote.c (remote_download_tracepoint): Add 'self' argument.
11406
11407 2014-02-19  Tom Tromey  <tromey@redhat.com>
11408
11409         * target.h (struct target_ops) <to_trace_init>: Add argument.
11410         (target_trace_init): Add argument.
11411         * target.c (update_current_target): Update.
11412         * remote.c (remote_trace_init): Add 'self' argument.
11413
11414 2014-02-19  Tom Tromey  <tromey@redhat.com>
11415
11416         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11417         * target.c (target_fileio_readlink): Add argument.
11418         * remote.c (remote_hostio_readlink): Add 'self' argument.
11419         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11420
11421 2014-02-19  Tom Tromey  <tromey@redhat.com>
11422
11423         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11424         * target.c (target_fileio_unlink): Add argument.
11425         * remote.c (remote_hostio_unlink): Add 'self' argument.
11426         (remote_file_delete): Update.
11427         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11428
11429 2014-02-19  Tom Tromey  <tromey@redhat.com>
11430
11431         * target.h (struct target_ops) <to_fileio_close>: Add argument.
11432         * target.c (target_fileio_close): Add argument.
11433         * remote.c (remote_hostio_close): Add 'self' argument.
11434         (remote_hostio_close_cleanup): Update.
11435         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11436         Update.
11437         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11438
11439 2014-02-19  Tom Tromey  <tromey@redhat.com>
11440
11441         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11442         * target.c (target_fileio_pread): Add argument.
11443         * remote.c (remote_hostio_pread): Add 'self' argument.
11444         (remote_bfd_iovec_pread, remote_file_get): Update.
11445         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11446
11447 2014-02-19  Tom Tromey  <tromey@redhat.com>
11448
11449         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11450         * target.c (target_fileio_pwrite): Add argument.
11451         * remote.c (remote_hostio_pwrite): Add 'self' argument.
11452         (remote_file_put): Update.
11453         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11454
11455 2014-02-19  Tom Tromey  <tromey@redhat.com>
11456
11457         * target.h (struct target_ops) <to_fileio_open>: Add argument.
11458         * target.c (target_fileio_open): Add argument.
11459         * remote.c (remote_hostio_open): Add 'self' argument.
11460         (remote_bfd_iovec_open): Add 'self' argument.
11461         (remote_file_put): Add 'self' argument.
11462         (remote_file_get): Add 'self' argument.
11463         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11464
11465 2014-02-19  Tom Tromey  <tromey@redhat.com>
11466
11467         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11468         Add argument.
11469         (target_can_run_breakpoint_commands): Add argument.
11470         * target.c (update_current_target): Update.
11471         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11472         argument.
11473         (remote_insert_breakpoint): Add 'self' argument.
11474         (remote_insert_hw_breakpoint): Add 'self' argument.
11475         (remote_can_run_breakpoint_commands): Add 'self' argument.
11476
11477 2014-02-19  Tom Tromey  <tromey@redhat.com>
11478
11479         * target.h (struct target_ops)
11480         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11481         (target_supports_evaluation_of_breakpoint_conditions): Add
11482         argument.
11483         * target.c (update_current_target): Update.
11484         * remote.c (remote_supports_cond_breakpoints): Add 'self'
11485         argument.
11486         (remote_insert_breakpoint): Add 'self' argument.
11487         (remote_insert_hw_breakpoint): Add 'self' argument.
11488         (remote_supports_cond_breakpoints): Add 'self' argument.
11489
11490 2014-02-19  Tom Tromey  <tromey@redhat.com>
11491
11492         * target.h (struct target_ops) <to_supports_string_tracing>: Add
11493         argument.
11494         (target_supports_string_tracing): Add argument.
11495         * target.c (update_current_target): Update.
11496         * remote.c (remote_supports_string_tracing): Add 'self' argument.
11497
11498 2014-02-19  Tom Tromey  <tromey@redhat.com>
11499
11500         * target.h (struct target_ops)
11501         <to_supports_disable_randomization>: Add argument.
11502         * target.c (find_default_supports_disable_randomization): Add
11503         argument.
11504         (target_supports_disable_randomization): Add argument.
11505         (find_default_supports_disable_randomization): Add 'self'
11506         argument.
11507         * remote.c (extended_remote_supports_disable_randomization): Add
11508         'self' argument.
11509         (remote_supports_disable_randomization): Add 'self' argument.
11510         (extended_remote_create_inferior): Update.
11511         * linux-nat.c (linux_nat_supports_disable_randomization): Add
11512         'self' argument.
11513
11514 2014-02-19  Tom Tromey  <tromey@redhat.com>
11515
11516         * target.h (struct target_ops)
11517         <to_supports_enable_disable_tracepoint>: Add argument.
11518         (target_supports_enable_disable_tracepoint): Add argument.
11519         * target.c (update_current_target): Update.
11520         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11521         argument.
11522
11523 2014-02-19  Tom Tromey  <tromey@redhat.com>
11524
11525         * target.h (struct target_ops) <to_supports_multi_process>: Add
11526         argument.
11527         (target_supports_multi_process): Add argument.
11528         * target.c (update_current_target): Update.
11529         * remote.c (remote_supports_multi_process): Add 'self' argument.
11530         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11531         argument.
11532         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11533         argument.
11534
11535 2014-02-19  Tom Tromey  <tromey@redhat.com>
11536
11537         * target.h (struct target_ops) <to_execution_direction>: Add
11538         argument.
11539         (target_execution_direction): Add argument.
11540         * target.c (default_execution_direction): Add 'self' argument.
11541         * record-full.c (record_full_execution_direction): Add 'self'
11542         argument.
11543
11544 2014-02-19  Tom Tromey  <tromey@redhat.com>
11545
11546         * target.h (struct target_ops) <to_can_execute_reverse>: Add
11547         argument.
11548         (target_can_execute_reverse): Add argument.
11549         * remote.c (remote_can_execute_reverse): Add 'self' argument.
11550         * record-full.c (record_full_can_execute_reverse): Add 'self'
11551         argument.
11552         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11553         argument.
11554
11555 2014-02-19  Tom Tromey  <tromey@redhat.com>
11556
11557         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11558         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11559         argument.
11560         (target_get_ada_task_ptid): Add argument.
11561         * target.c (update_current_target): Update.
11562         (default_get_ada_task_ptid): Add 'self' argument.
11563         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11564         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11565         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11566         argument.
11567         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11568         argument.
11569         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11570         argument.
11571         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11572         argument.
11573         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11574         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11575         argument.
11576
11577 2014-02-19  Tom Tromey  <tromey@redhat.com>
11578
11579         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11580         (target_goto_bookmark): Add argument.
11581         * target.c (dummy_goto_bookmark): Add 'self' argument.
11582         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11583
11584 2014-02-19  Tom Tromey  <tromey@redhat.com>
11585
11586         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11587         (target_get_bookmark): Add argument.
11588         * target.c (dummy_get_bookmark): Add 'self' argument.
11589         * record-full.c (record_full_get_bookmark): Add 'self' argument.
11590
11591 2014-02-19  Tom Tromey  <tromey@redhat.com>
11592
11593         * target.h (struct target_ops) <to_make_corefile_notes>: Add
11594         argument.
11595         (target_make_corefile_notes): Add argument.
11596         * target.c (dummy_make_corefile_notes): Add 'self' argument.
11597         * procfs.c (procfs_make_note_section): Add 'self' argument.
11598         (procfs_make_note_section): Add 'self' argument.
11599         (procfs_make_note_section): Add 'self' argument.
11600         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11601         argument.
11602         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11603         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11604         * exec.c (exec_make_note_section): Add 'self' argument.
11605         (exec_make_note_section): Add 'self' argument.
11606
11607 2014-02-19  Tom Tromey  <tromey@redhat.com>
11608
11609         * target.h (struct target_ops) <to_find_memory_regions>: Add
11610         argument.
11611         (target_find_memory_regions): Add argument.
11612         * target.c (dummy_find_memory_regions): Add 'self' argument.
11613         * procfs.c (proc_find_memory_regions): Add 'self' argument.
11614         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11615         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11616         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11617         * exec. (exec_do_find_memory_regions): New global.
11618         (exec_set_find_memory_regions): Rewrite.
11619         (exec_find_memory_regions): New function.
11620         (init_exec_ops): Use exec_find_memory_regions.
11621
11622 2014-02-19  Tom Tromey  <tromey@redhat.com>
11623
11624         * target.h (struct target_ops) <to_supports_non_stop>: Add
11625         argument.
11626         * target.c (find_default_supports_non_stop): Add argument.
11627         (target_supports_non_stop): Add argument.
11628         (find_default_supports_non_stop): Add 'self' argument.
11629         * remote.c (remote_supports_non_stop): Add 'self' argument.
11630         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11631
11632 2014-02-19  Tom Tromey  <tromey@redhat.com>
11633
11634         * target.h (struct target_ops) <to_log_command>: Add argument.
11635         (target_log_command): Add argument.
11636         * serial.h (serial_log_command): Add 'self' argument.
11637         * serial.c (serial_log_command): Add 'self' argument.
11638
11639 2014-02-19  Tom Tromey  <tromey@redhat.com>
11640
11641         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11642         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11643         argument.
11644         (target_pid_to_exec_file): Add argument.
11645         * target.c (debug_to_pid_to_exec_file): Add argument.
11646         (update_current_target): Update.
11647         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11648         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11649         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11650         (linux_handle_extended_wait): Update.
11651         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11652         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11653         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11654         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11655
11656 2014-02-19  Tom Tromey  <tromey@redhat.com>
11657
11658         * target.h (struct target_ops) <to_rcmd>: Add argument.
11659         (target_rcmd): Add argument.
11660         * target.c (debug_to_rcmd): Add argument.
11661         (update_current_target, do_monitor_command): Update.
11662         * remote.c (remote_rcmd): Add 'self' argument.
11663         * monitor.c (monitor_rcmd): Add 'self' argument.
11664
11665 2014-02-19  Tom Tromey  <tromey@redhat.com>
11666
11667         * windows-nat.c (windows_stop): Add 'self' argument.
11668         * target.h (struct target_ops) <to_stop>: Add argument.
11669         * target.c (target_stop): Add argument.
11670         (debug_to_stop): Add argument.
11671         (update_current_target): Update.
11672         * remote.c (remote_stop): Add 'self' argument.
11673         * remote-sim.c (gdbsim_stop): Add 'self' argument.
11674         (gdbsim_cntrl_c): Update.
11675         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11676         * procfs.c (procfs_stop): Add 'self' argument.
11677         * nto-procfs.c (procfs_stop): Add 'self' argument.
11678         * monitor.c (monitor_stop): Add 'self' argument.
11679         (monitor_open): Update.
11680         * linux-nat.c (linux_nat_stop): Add argument.
11681         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11682         * gnu-nat.c (gnu_stop): Add 'self' argument.
11683         * darwin-nat.c (darwin_stop): Add 'self' argument.
11684
11685 2014-02-19  Tom Tromey  <tromey@redhat.com>
11686
11687         * target.h (struct target_ops) <to_thread_name>: Add argument.
11688         * target.c (target_thread_name): Add argument.
11689         (update_current_target): Update.
11690         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11691
11692 2014-02-19  Tom Tromey  <tromey@redhat.com>
11693
11694         * target.h (struct target_ops) <to_extra_thread_info>: Add
11695         argument.
11696         (target_extra_thread_info): Add argument.
11697         * target.c (update_current_target): Update.
11698         * remote.c (remote_threads_extra_info): Add 'self' argument.
11699         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11700         argument.
11701         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11702         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11703         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11704         argument.
11705         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11706         argument.
11707         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11708         argument.
11709         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11710         argument.
11711
11712 2014-02-19  Tom Tromey  <tromey@redhat.com>
11713
11714         * target.h (struct target_ops) <to_program_signals>: Add argument.
11715         * target.c (target_program_signals): Add argument.
11716         * remote.c (remote_program_signals): Add 'self' argument.
11717
11718 2014-02-19  Tom Tromey  <tromey@redhat.com>
11719
11720         * target.h (struct target_ops) <to_pass_signals>: Add argument.
11721         * target.c (target_pass_signals): Add argument.
11722         * remote.c (remote_pass_signals): Add 'self' argument.
11723         (remote_start_remote): Update.
11724         * procfs.c (procfs_pass_signals): Add 'self' argument.
11725         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11726         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11727         (linux_nat_create_inferior, linux_nat_attach): Update.
11728
11729 2014-02-19  Tom Tromey  <tromey@redhat.com>
11730
11731         * windows-nat.c (windows_can_run): Add 'self' argument.
11732         * target.h (struct target_ops) <to_can_run>: Add argument.
11733         (target_can_run): Add argument.
11734         * target.c (debug_to_can_run): Add argument.
11735         (update_current_target): Update.
11736         * nto-procfs.c (procfs_can_run): Add 'self' argument.
11737         * inf-child.c (inf_child_can_run): Add 'self' argument.
11738         * go32-nat.c (go32_can_run): Add 'self' argument.
11739
11740 2014-02-19  Tom Tromey  <tromey@redhat.com>
11741
11742         * target.h (struct target_ops) <to_has_exited>: Add argument.
11743         (target_has_exited): Add argument.
11744         * target.c (debug_to_has_exited): Add argument.
11745         (update_current_target): Update.
11746
11747 2014-02-19  Tom Tromey  <tromey@redhat.com>
11748
11749         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11750         argument.
11751         (target_set_syscall_catchpoint): Add argument.
11752         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11753         argument.
11754         * target.c (update_current_target): Update.
11755
11756 2014-02-19  Tom Tromey  <tromey@redhat.com>
11757
11758         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11759         argument.
11760         (target_remove_exec_catchpoint): Add argument.
11761         * target.c (debug_to_remove_exec_catchpoint): Add argument.
11762         (update_current_target): Update.
11763         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11764         argument.
11765
11766 2014-02-19  Tom Tromey  <tromey@redhat.com>
11767
11768         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11769         argument.
11770         (target_insert_exec_catchpoint): Add argument.
11771         * target.c (debug_to_insert_exec_catchpoint): Add argument.
11772         (update_current_target): Update.
11773         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11774         argument.
11775
11776 2014-02-19  Tom Tromey  <tromey@redhat.com>
11777
11778         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11779         argument.
11780         (target_remove_vfork_catchpoint): Add argument.
11781         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11782         (update_current_target): Update.
11783         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11784         argument.
11785
11786 2014-02-19  Tom Tromey  <tromey@redhat.com>
11787
11788         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11789         argument.
11790         (target_insert_vfork_catchpoint): Add argument.
11791         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11792         (update_current_target): Update.
11793         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11794         argument.
11795
11796 2014-02-19  Tom Tromey  <tromey@redhat.com>
11797
11798         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11799         argument.
11800         (target_remove_fork_catchpoint): Add argument.
11801         * target.c (debug_to_remove_fork_catchpoint): Add argument.
11802         (update_current_target): Update.
11803         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11804         argument.
11805
11806 2014-02-19  Tom Tromey  <tromey@redhat.com>
11807
11808         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11809         argument.
11810         (target_insert_fork_catchpoint): Add argument.
11811         * target.c (debug_to_insert_fork_catchpoint): Add argument.
11812         (update_current_target): Update.
11813         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11814         argument.
11815
11816 2014-02-19  Tom Tromey  <tromey@redhat.com>
11817
11818         * target.h (struct target_ops) <to_post_startup_inferior>: Add
11819         argument.
11820         (target_post_startup_inferior): Add argument.
11821         * target.c (debug_to_post_startup_inferior): Add argument.
11822         (update_current_target): Update.
11823         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11824         argument.
11825         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11826         argument.
11827         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11828         argument.
11829         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11830         argument.
11831         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11832         'self' argument.
11833         (super_post_startup_inferior): Likewise.
11834         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11835         'self' argument.
11836         (super_post_startup_inferior): Likewise.
11837         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11838         Add 'self' argument.
11839         (super_post_startup_inferior): Likewise.
11840
11841 2014-02-19  Tom Tromey  <tromey@redhat.com>
11842
11843         * target.h (struct target_ops) <to_load>: Add argument.
11844         * target.c (target_load): Add argument.
11845         (debug_to_load): Add argument.
11846         (update_current_target): Update.
11847         * remote.c (remote_load): Add 'self' argument.
11848         * remote-sim.c (gdbsim_load): Add 'self' argument.
11849         * remote-mips.c (mips_load): Add 'self' argument.
11850         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11851         * monitor.c (monitor_load): Add 'self' argument.
11852         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11853
11854 2014-02-19  Tom Tromey  <tromey@redhat.com>
11855
11856         * target.h (struct target_ops) <to_terminal_info>: Add argument.
11857         (target_terminal_info): Add argument.
11858         * target.c (debug_to_terminal_info): Add argument.
11859         (default_terminal_info): Likewise.
11860         * inflow.c (child_terminal_info): Add 'self' argument.
11861         * inferior.h (child_terminal_info): Add 'self' argument.
11862         * go32-nat.c (go32_terminal_info): Add 'self' argument.
11863
11864 2014-02-19  Tom Tromey  <tromey@redhat.com>
11865
11866         * target.h (struct target_ops) <to_terminal_save_ours>: Add
11867         argument.
11868         (target_terminal_save_ours): Add argument.
11869         * target.c (debug_to_terminal_save_ours): Add argument.
11870         (update_current_target): Update.
11871         * inflow.c (terminal_save_ours): Add 'self' argument.
11872         * inferior.h (terminal_save_ours): Add 'self' argument.
11873
11874 2014-02-19  Tom Tromey  <tromey@redhat.com>
11875
11876         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11877         (target_terminal_ours): Add argument.
11878         * target.c (debug_to_terminal_ours): Add argument.
11879         (update_current_target): Update.
11880         * remote.c (remote_terminal_ours): Add 'self' argument.
11881         (remote_close): Update.
11882         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11883         * inflow.c (terminal_ours): Add 'self' argument.
11884         * inferior.h (terminal_ours): Add 'self' argument.
11885         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11886
11887 2014-02-19  Pedro Alves  <palves@redhat.com>
11888             Tom Tromey  <tromey@redhat.com>
11889
11890         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11891         argument.
11892         (target_terminal_ours_for_output): Add argument.
11893         * target.c (debug_to_terminal_ours_for_output): Add argument.
11894         (update_current_target): Update.
11895         * inflow.c (terminal_ours_for_output): Add 'self' argument.
11896         * inferior.h (terminal_ours_for_output): Add 'self' argument.
11897         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11898
11899 2014-02-19  Tom Tromey  <tromey@redhat.com>
11900
11901         * target.h (struct target_ops) <to_terminal_inferior>: Add
11902         argument.
11903         * target.c (target_terminal_inferior): Add argument.
11904         (update_current_target): Update.
11905         * remote.c (remote_terminal_inferior): Add 'self' argument.
11906         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11907         * inflow.c (terminal_inferior): Add 'self' argument.
11908         * inferior.h (terminal_inferior): Add 'self' argument.
11909         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11910         (go32_terminal_inferior): Add 'self' argument.
11911
11912 2014-02-19  Tom Tromey  <tromey@redhat.com>
11913
11914         * target.h (struct target_ops) <to_terminal_init>: Add argument.
11915         (target_terminal_init): Add argument.
11916         * target.c (debug_to_terminal_init): Add argument.
11917         (update_current_target): Update.
11918         * inflow.c (terminal_init_inferior): Add 'self' argument.
11919         * inferior.h (terminal_init_inferior): Add 'self' argument.
11920         * go32-nat.c (go32_terminal_init): Add 'self' argument.
11921         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11922
11923 2014-02-19  Tom Tromey  <tromey@redhat.com>
11924
11925         * target.h (struct target_ops)
11926         <to_can_accel_watchpoint_condition>: Add argument.
11927         (target_can_accel_watchpoint_condition): Add argument.
11928         * target.c (debug_to_can_accel_watchpoint_condition): Add
11929         argument.
11930         (update_current_target): Update.
11931         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11932         'self' argument.
11933
11934 2014-02-19  Tom Tromey  <tromey@redhat.com>
11935
11936         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11937         Add argument.
11938         (target_region_ok_for_hw_watchpoint): Add argument.
11939         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11940         (default_region_ok_for_hw_watchpoint): Add argument.
11941         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11942         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11943         argument.
11944         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11945         argument.
11946         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11947         argument.
11948         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11949         'self' argument.
11950         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11951         'self' argument.
11952         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11953         'self' argument.
11954         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11955         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11956         'self' argument.
11957         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11958         Add 'self' argument.
11959
11960 2014-02-19  Tom Tromey  <tromey@redhat.com>
11961
11962         * target.h (struct target_ops) <to_insert_watchpoint>: Add
11963         argument.
11964         (target_insert_watchpoint): Add argument.
11965         * target.c (debug_to_insert_watchpoint): Add argument.
11966         (update_current_target): Update.
11967         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11968         * remote.c (remote_insert_watchpoint): Add 'self' argument.
11969         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11970         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11971         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11972         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11973         argument.
11974         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11975         (procfs_insert_hw_watchpoint): Add 'self' argument.
11976         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11977         argument.
11978         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11979         argument.
11980         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11981         argument.
11982         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11983         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11984         argument.
11985         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11986         'self' argument.
11987
11988 2014-02-19  Tom Tromey  <tromey@redhat.com>
11989
11990         * target.h (struct target_ops) <to_remove_watchpoint>: Add
11991         argument.
11992         (target_remove_watchpoint): Add argument.
11993         * target.c (debug_to_remove_watchpoint): Add argument.
11994         (update_current_target): Update.
11995         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11996         * remote.c (remote_remove_watchpoint): Add 'self' argument.
11997         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11998         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11999         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12000         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12001         argument.
12002         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12003         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12004         argument.
12005         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12006         argument.
12007         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12008         argument.
12009         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12010         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12011         argument.
12012         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12013         'self' argument.
12014
12015 2014-02-19  Tom Tromey  <tromey@redhat.com>
12016
12017         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12018         argument.
12019         (target_remove_hw_breakpoint): Add argument.
12020         * target.c (debug_to_remove_hw_breakpoint): Add argument.
12021         (update_current_target): Update.
12022         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12023         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12024         argument.
12025         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12026         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12027         argument.
12028         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12029         'self' argument.
12030
12031 2014-02-19  Tom Tromey  <tromey@redhat.com>
12032
12033         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12034         argument.
12035         (target_insert_hw_breakpoint): Add argument.
12036         * target.c (debug_to_insert_hw_breakpoint): Add argument.
12037         (update_current_target): Update.
12038         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12039         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12040         argument.
12041         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12042         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12043         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12044         argument.
12045         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12046         'self' argument.
12047
12048 2014-02-19  Tom Tromey  <tromey@redhat.com>
12049
12050         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12051         argument.
12052         (target_can_use_hardware_watchpoint): Add argument.
12053         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12054         (update_current_target): Update.
12055         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12056         argument.
12057         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12058         argument.
12059         * remote.c (remote_check_watch_resources): Add 'self' argument.
12060         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12061         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12062         argument.
12063         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12064         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12065         argument.
12066         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12067         argument.
12068         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12069         argument.
12070         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12071         argument.
12072         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12073         argument.
12074         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12075         argument.
12076         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12077         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12078         argument.
12079         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12080         'self' argument.
12081
12082 2014-02-19  Tom Tromey  <tromey@redhat.com>
12083
12084         * target.h (struct target_ops) <to_post_attach>: Add argument.
12085         (target_post_attach): Add argument.
12086         * target.c (debug_to_post_attach): Add argument.
12087         (update_current_target): Update.
12088         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12089         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12090         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12091         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12092         * inf-child.c (inf_child_post_attach): Add 'self' argument.
12093
12094 2014-02-19  Tom Tromey  <tromey@redhat.com>
12095
12096         * windows-nat.c (windows_close): Add 'self' argument.
12097         * tracepoint.c (tfile_close): Add 'self' argument.
12098         * target.h (struct target_ops) <to_close>: Add argument.
12099         * target.c (target_close): Add argument.
12100         (update_current_target): Update.
12101         * remote.c (remote_close): Add 'self' argument.
12102         * remote-sim.c (gdbsim_close): Add 'self' argument.
12103         * remote-mips.c (mips_close): Add 'self' argument.
12104         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12105         * record-full.c (record_full_close): Add 'self' argument.
12106         * record-btrace.c (record_btrace_close): Add 'self' argument.
12107         * monitor.h (monitor_close): Add 'self' argument.
12108         * monitor.c (monitor_close): Add 'self' argument.
12109         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12110         * linux-nat.c (linux_nat_close): Add argument.
12111         * go32-nat.c (go32_close): Add 'self' argument.
12112         * exec.c (exec_close_1): Add 'self' argument.
12113         * ctf.c (ctf_close): Add 'self' argument.
12114         * corelow.c (core_close): Add 'self' argument.
12115         (core_close_cleanup): Update.
12116         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12117         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12118
12119 2014-02-19  Tom Tromey  <tromey@redhat.com>
12120
12121         * remote.c (remote_load): New function.
12122         (init_remote_ops): Use it.
12123
12124 2014-02-19  Tom Tromey  <tromey@redhat.com>
12125
12126         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12127         argument.
12128         * common/linux-btrace.h (linux_supports_btrace): Update.
12129         * remote.c (remote_supports_btrace): Add "self" argument.
12130         * target-delegates.c: Rebuild.
12131         * target.c (target_supports_btrace): Remove.
12132         * target.h (struct target_ops) <to_supports_btrace>: Add
12133         target_ops argument.
12134         (target_supports_btrace): New define.
12135
12136 2014-02-19  Tom Tromey  <tromey@redhat.com>
12137
12138         * record-full.c (record_full_beneath_to_resume_ops)
12139         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12140         (record_full_beneath_to_wait)
12141         (record_full_beneath_to_store_registers_ops)
12142         (record_full_beneath_to_store_registers)
12143         (record_full_beneath_to_xfer_partial_ops)
12144         (record_full_beneath_to_xfer_partial)
12145         (record_full_beneath_to_insert_breakpoint_ops)
12146         (record_full_beneath_to_insert_breakpoint)
12147         (record_full_beneath_to_remove_breakpoint_ops)
12148         (record_full_beneath_to_remove_breakpoint)
12149         (record_full_beneath_to_stopped_by_watchpoint)
12150         (record_full_beneath_to_stopped_data_address)
12151         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12152         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12153         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12154         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12155         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12156         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12157         (tmp_to_stopped_data_address, tmp_to_async): Remove.
12158         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
12159         (record_full_resume, record_full_wait_1)
12160         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12161         (record_full_store_registers, record_full_xfer_partial)
12162         (record_full_insert_breakpoint, record_full_remove_breakpoint)
12163         (record_full_async, record_full_core_xfer_partial): Use target
12164         delegation.
12165         * target-delegates.c: Rebuild.
12166         * target.c (current_xfer_partial): Remove.
12167         (update_current_target): Do not INHERIT or de_fault
12168         to_insert_breakpoint, to_remove_breakpoint,
12169         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12170         to_is_async_p, to_async.  Do not set to_xfer_partial field.
12171         (default_xfer_partial): Simplify.
12172         (current_xfer_partial): Remove.
12173         (target_wait, target_resume): Simplify.
12174         (find_default_can_async_p, find_default_is_async_p): Update.
12175         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12176         to_xfer_partial, to_stopped_by_watchpoint,
12177         to_stopped_data_address.
12178         (target_store_registers): Simplify.
12179         (forward_target_remove_breakpoint)
12180         (forward_target_insert_breakpoint): Remove.
12181         (target_remove_breakpoint, target_insert_breakpoint)
12182         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12183         * target.h (struct target_ops) <to_resume, to_wait,
12184         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12185         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12186         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12187         markup.
12188         (forward_target_remove_breakpoint)
12189         (forward_target_insert_breakpoint): Remove.
12190         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12191         directly.
12192         (record_btrace_insert_breakpoint): Delegate directly.
12193
12194 2014-02-19  Tom Tromey  <tromey@redhat.com>
12195
12196         PR build/7701:
12197         * target-delegates.c: New file.
12198         * target.c: Include target-delegates.c.
12199         (init_dummy_target): Call install_dummy_methods.
12200         (complete_target_initialization): Call install_delegators.
12201         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12202         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12203         * make-target-delegates: New file.
12204
12205 2014-02-19  Tom Tromey  <tromey@redhat.com>
12206
12207         * record.c (find_record_target): Use find_target_at.
12208         * target.c (find_target_at): New function.
12209         * target.h (find_target_at): Declare.
12210
12211 2014-02-19  Tom Tromey  <tromey@redhat.com>
12212
12213         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12214         Add 'ops' argument.
12215         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12216         'ops' argument.
12217         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12218         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12219         'ops' argument.
12220         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12221         argument.
12222         * linux-nat.c (save_sigtrap): Update.
12223         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12224         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12225         (linux_nat_close): Update.
12226         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12227         argument.
12228         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12229         argument.
12230         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12231         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12232         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12233         (tmp_to_async): Add 'ops' argument.
12234         (record_full_stopped_by_watchpoint, record_full_async)
12235         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12236         argument.
12237         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12238         (m32r_stopped_by_watchpoint): Add 'ops' argument.
12239         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12240         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12241         (remote_is_async_p, remote_async): Add 'ops' argument.
12242         (remote_stopped_data_address): Update.
12243         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12244         * target.c (update_current_target)
12245         (find_default_can_async_p, find_default_is_async_p): Update.
12246         (init_dummy_target): Update.
12247         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12248         * target.h (struct target_ops) <to_stopped_by_watchpoint,
12249         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12250         (target_can_async_p, target_is_async_p, target_async)
12251         (target_stopped_by_watchpoint): Update.
12252
12253 2014-02-19  Yao Qi  <yao@codesourcery.com>
12254
12255         PR gdb/16220
12256         * gdbarch.sh: Remove startup_gdbarch.
12257         * gdbarch.c: Regenerated.
12258         * gdbarch.h: Likewise.
12259
12260 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
12261
12262         * rl78-tdep.c (rl78_g10_register_name): New function.
12263         (rl78_return_value): Add g10 support.
12264         (rl78_gdbarch_init): Register rl78_g10_register_name for the
12265         g10.
12266
12267 2014-02-17  Doug Evans  <xdje42@gmail.com>
12268
12269         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12270         (SUBDIR_GUILE_SRCS): Ditto.
12271         (scm-gsmob.o): Ditto.
12272
12273 2014-02-17  Yao Qi  <yao@codesourcery.com>
12274
12275         * gnu-nat.c (ILL_RPC): Declare defined function.
12276
12277 2014-02-17  Yao Qi  <yao@codesourcery.com>
12278
12279         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12280         mach_msg_type_number_t.
12281         (gnu_write_inferior): Likewise.
12282
12283 2014-02-17  Yao Qi  <yao@codesourcery.com>
12284
12285         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12286         in format string.
12287         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12288         (inf_validate_procs, inf_signal): Likewise.
12289         (S_exception_raise_request): Likewise.
12290         (do_mach_notify_dead_name): Likewise.
12291         (steal_exc_port): Likewise.
12292         (gnu_read_inferior): Change 'copy_count''s type to
12293         mach_msg_type_number_t.
12294         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
12295         format string.
12296
12297 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
12298
12299         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12300         flag.  Adjust all users; in particular...
12301         (gnu_wait): ..., don't decrement its value in here...
12302         (gnu_create_inferior): ..., and instead set the flag in here,
12303         around the startup_inferior call, and call that one with
12304         START_INFERIOR_TRAPS_EXPECTED.
12305
12306         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12307         (ILL_RPC): ... new macro.
12308         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12309         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12310         (do_mach_notify_send_once, S_proc_setmsgport_reply)
12311         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12312         functions with ILL_RPC macro.
12313         (S_proc_pid2task_reply, S_proc_task2pid_reply)
12314         (S_proc_task2proc_reply, S_proc_proc2task_reply)
12315         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12316         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12317         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12318         (S_proc_getlogin_reply, S_proc_getsid_reply)
12319         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12320         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12321         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12322         (S_proc_getnports_reply, S_proc_is_important_reply)
12323         (S_proc_get_code_reply): New stub functions, generated with
12324         ILL_RPC macro.
12325
12326         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12327         collected the type check structures.
12328
12329         * reply_mig_hack.awk: Don't expect to see the auto keyword.
12330
12331 2014-02-14  Doug Evans  <dje@google.com>
12332
12333         * target.c (target_write_partial): Fix result type.
12334
12335 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
12336
12337         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12338         the proper offsets to access fpregset_t.
12339
12340 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
12341
12342         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12343         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12344         * h8300-tdep.c (setmachinelist): Remove global.
12345         * hppa-tdep.c (hppa_sigtramp): Remove global.
12346         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12347         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12348         * ravenscar-thread.c (update_target_observer): Remove global.
12349         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12350
12351 2014-02-12  Tom Tromey  <tromey@redhat.com>
12352
12353         * common/rsp-low.c: Update comments.
12354         * common/rsp-low.h: Update comments.
12355
12356 2014-02-12  Tom Tromey  <tromey@redhat.com>
12357
12358         * common/rsp-low.c (convert_ascii_to_int): Remove.
12359         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12360
12361 2014-02-12  Tom Tromey  <tromey@redhat.com>
12362
12363         * common/rsp-low.h (unhexify): Don't declare.
12364         * common/rsp-low.c (unhexify): Remove.
12365
12366 2014-02-12  Tom Tromey  <tromey@redhat.com>
12367
12368         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12369         * common/rsp-low.c (convert_int_to_ascii): Remove.
12370
12371 2014-02-12  Tom Tromey  <tromey@redhat.com>
12372
12373         * common/rsp-low.h (hexify): Don't declare.
12374         * common/rsp-low.c (hexify): Remove.
12375
12376 2014-02-12  Tom Tromey  <tromey@redhat.com>
12377
12378         * common/rsp-low.c (hexify): Never take strlen of argument.
12379
12380 2014-02-12  Tom Tromey  <tromey@redhat.com>
12381
12382         * common/rsp-low.c (bin2hex): Never take strlen of argument.
12383         * remote.c (extended_remote_run, remote_rcmd)
12384         (remote_download_trace_state_variable, remote_save_trace_data)
12385         (remote_set_trace_notes): Update.
12386         * tracepoint.c (encode_source_string, tfile_write_status)
12387         (tfile_write_uploaded_tsv): Update.
12388
12389 2014-02-12  Tom Tromey  <tromey@redhat.com>
12390
12391         * tracepoint.c: Include rsp-low.h.
12392         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12393         * remote.c: Include rsp-low.h.
12394         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12395         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12396         (remote_unescape_input): Move to common/rsp-low.c.
12397         * common/rsp-low.h: New file.
12398         * common/rsp-low.c: New file.
12399         * Makefile.in (SFILES): Add common/rsp-low.c.
12400         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12401         (COMMON_OBS): Add rsp-low.o.
12402         (rsp-low.o): New target.
12403
12404 2014-02-12  Tom Tromey  <tromey@redhat.com>
12405
12406         * utils.h: Include print-utils.h.
12407         (host_address_to_string, plongest, pulongest, phex, phex_nz)
12408         (int_string, core_addr_to_string, core_addr_to_string_nz)
12409         (hex_string, hex_string_custom): Don't declare.
12410         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12411         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12412         (hex_string_custom, int_string, core_addr_to_string)
12413         (core_addr_to_string_nz, host_address_to_string): Move to
12414         common/print-utils.c.
12415         * common/print-utils.h: New file.
12416         * common/print-utils.c: New file
12417         * Makefile.in (SFILES): Add common/print-utils.c.
12418         (HFILES_NO_SRCDIR): Add common/print-utils.h.
12419         (COMMON_OBS): Add print-utils.o.
12420         (print-utils.o): New target.
12421
12422 2014-02-12  Tom Tromey  <tromey@redhat.com>
12423
12424         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12425
12426 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12427
12428         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12429
12430 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12431
12432         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12433         if a PT_IO ptrace request returns sucessfully but indicates that 0
12434         bytes were transferred.
12435
12436 2014-02-12  Pedro Alves  <palves@redhat.com>
12437             Kevin Buettner <kevinb@redhat.com>
12438
12439         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12440         TYPE_INSTANCE_FLAG_CODE_SPACE.
12441
12442 2014-02-12  Pedro Alves  <palves@redhat.com>
12443
12444         * h8300-tdep.c (pseudo_from_raw_register)
12445         (raw_from_pseudo_register): New functions.
12446         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12447         them.
12448
12449 2014-02-12  Pedro Alves  <palves@redhat.com>
12450
12451         * h8300-tdep.c (h8300_register_sim_regno): New function.
12452         (h8300_gdbarch_init): Install h8300_register_sim_regno as
12453         gdbarch_register_sim_regno hook.
12454
12455 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12456
12457         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12458
12459 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12460
12461         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12462
12463 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12464
12465         * obsd-tdep.h (obsd_init_abi): New prototype.
12466         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12467         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12468         (obsd_init_abi): New functions.
12469         * i386obsd-tdep.c: Include "obsd-tdep.h".
12470         (i386obsd_init_abi): Call obsd_init_abi.
12471         * amd64obsd-tdep.c: Include "obsd-tdep.h".
12472         (amd64obsd_init_abi): Call obsd_init_abi.
12473         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12474         obsd-tdep.c to gdb_target_obs.
12475
12476 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
12477
12478         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12479         double float arguments to 16-byte in the argument slots.
12480
12481 2014-02-11  Doug Evans  <xdje42@gmail.com>
12482
12483         * configure.ac: Don't crash if pkg-config is not found and guile
12484         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
12485         in guile checks.
12486         * configure: Regenerate.
12487
12488 2014-02-11  Yao Qi  <yao@codesourcery.com>
12489
12490         * aix-thread.c (aix_thread_xfer_partial): Update comments.
12491         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12492         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12493         * gnu-nat.c (gnu_xfer_memory): Likewise.
12494         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
12495         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12496         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12497         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12498
12499 2014-02-11  Yao Qi  <yao@codesourcery.com>
12500
12501         * target.h (enum target_xfer_error): Rename to ...
12502         (enum target_xfer_status): ... it.  New.  All users updated.
12503         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12504         New.
12505         (TARGET_XFER_STATUS_ERROR_P): New macro.
12506         (target_xfer_error_to_string): Remove declaration.
12507         (target_xfer_status_to_string): Declare.
12508         (target_xfer_partial_ftype): Adjust it.
12509         (struct target_ops) <to_xfer_partial>: Return
12510         target_xfer_status.  Add argument xfered_len.  Update
12511         comments.
12512         * target.c (target_xfer_error_to_string): Rename to ...
12513         (target_xfer_status_to_string): ... it.  New.  All callers
12514         updated.
12515         (target_read_live_memory): Likewise.  Call target_xfer_partial
12516         instead of target_read.
12517         (memory_xfer_live_readonly_partial): Return
12518         target_xfer_status.  Add argument xfered_len.
12519         (raw_memory_xfer_partial): Likewise.
12520         (memory_xfer_partial_1): Likewise.
12521         (memory_xfer_partial): Likewise.
12522         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
12523         properly.  Update debug message.
12524         (default_xfer_partial, current_xfer_partial): Likewise.
12525         (target_write_partial): Likewise.
12526         (target_read_partial): Likewise.  All callers updated.
12527         (read_whatever_is_readable): Likewise.
12528         (target_write_with_progress): Likewise.
12529         (target_read_alloc_1): Likewise.
12530
12531         * aix-thread.c (aix_thread_xfer_partial): Likewise.
12532         * auxv.c (procfs_xfer_auxv): Likewise.
12533         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12534         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12535         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12536         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12537         * corefile.c (read_memory): Adjust.
12538         * corelow.c (core_xfer_partial): Likewise.
12539         * ctf.c (ctf_xfer_partial): Likewise.
12540         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
12541         updated.
12542         (darwin_xfer_partial): Likewise.
12543         * exec.c (section_table_xfer_memory_partial): Likewise.  All
12544         callers updated.
12545         (exec_xfer_partial): Likewise.
12546         * exec.h (section_table_xfer_memory_partial): Update
12547         declaration.
12548         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
12549         negative.
12550         (gnu_xfer_partial): Likewise.
12551         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12552         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12553         (ia64_hpux_xfer_solib_got): Likewise.
12554         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
12555         type of 'partial_len' to ULONGEST.
12556         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12557         * linux-nat.c (linux_xfer_siginfo ): Likewise.
12558         (linux_nat_xfer_partial): Likewise.
12559         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12560         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12561         * monitor.c (monitor_xfer_memory): Likewise.
12562         (monitor_xfer_partial): Likewise.
12563         * procfs.c (procfs_xfer_partial): Likewise.
12564         * record-btrace.c (record_btrace_xfer_partial): Likewise.
12565         * record-full.c (record_full_xfer_partial): Likewise.
12566         (record_full_core_xfer_partial): Likewise.
12567         * remote-sim.c (gdbsim_xfer_memory): Likewise.
12568         (gdbsim_xfer_partial): Likewise.
12569         * remote.c (remote_write_bytes_aux): Likewise.  All callers
12570         updated.
12571         (remote_write_bytes, remote_read_bytes): Likewise.  All
12572         callers updated.
12573         (remote_flash_erase): Likewise.  All callers updated.
12574         (remote_write_qxfer): Likewise.  All callers updated.
12575         (remote_read_qxfer): Likewise.  All callers updated.
12576         (remote_xfer_partial): Likewise.
12577         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12578         (rs6000_xfer_shared_libraries): Likewise.
12579         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12580         (sol_thread_xfer_partial): Likewise.
12581         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12582         (sparc_xfer_partial): Likewise.
12583         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
12584         updated.
12585         (spu_xfer_partial): Likewise.
12586         * spu-multiarch.c (spu_xfer_partial): Likewise.
12587         * tracepoint.c (tfile_xfer_partial): Likewise.
12588         * windows-nat.c (windows_xfer_memory): Likewise.
12589         (windows_xfer_shared_libraries): Likewise.
12590         (windows_xfer_partial): Likewise.
12591         * valprint.c: Replace 'target_xfer_error' with
12592         'target_xfer_status' in comments.
12593
12594 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
12595
12596         Checked in by Joel Brobecker <brobecker@adacore.com>.
12597         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12598
12599 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
12600
12601         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12602         function parameters.
12603
12604 2014-02-10  Will Newton  <will.newton@linaro.org>
12605
12606         * elfread.c (elf_rel_plt_read): Look for a .got section if
12607         looking up .got.plt fails.
12608         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12609         on address passed to elf_gnu_ifunc_record_cache.
12610         (elf_gnu_ifunc_resolve_addr): Likewise.
12611         (elf_gnu_ifunc_resolver_return_stop): Likewise.
12612
12613 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
12614
12615         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12616         (X_RETTURN): New macro.
12617         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12618
12619         * sparc64-tdep.c (sparc64_init_abi): Hook
12620         sparc_in_function_epilogue_p.
12621
12622 2014-02-10  Gary Benson  <gbenson@redhat.com>
12623
12624         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12625         Rename name_matcher to symbol_matcher.
12626
12627 2014-02-10  Gary Benson  <gbenson@redhat.com>
12628
12629         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12630         Use expand_symtabs_file_matcher_ftype and
12631         expand_symtabs_symbol_matcher_ftype.
12632
12633 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12634
12635         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12636         (struct ada_symbol_cache): New.
12637         (ada_free_symbol_cache): Forward declare.
12638         (struct ada_pspace_data): New.
12639         (ada_pspace_data_handle): New static global.
12640         (get_ada_pspace_data, ada_pspace_data_cleanup)
12641         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12642         (cache_space, cache): Delete, now folded inside struct
12643         ada_pspace_data.
12644         (ada_get_symbol_cache): New function.
12645         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12646         implementation.
12647         (_initialize_ada_language): Remove initialization of cache_space.
12648         Move call to observer_attach_inferior_exit up, grouping it
12649         with the other observer registrations inside this function.
12650         Rename command to be more general.  Add call to
12651         register_program_space_data_with_cleanup.
12652
12653 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12654
12655         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12656         ada_new_objfile_observer.
12657         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12658         (_initialize_tasks): Update uses of ada_new_objfile_observer
12659         and ada_tasks_normal_stop_observer.
12660
12661 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12662
12663         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12664         returned by the 'Length attribute to integer.
12665
12666 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12667
12668         * ada-lang.c (_initialize_ada_language): Initialize
12669         cache_space obstack.
12670
12671 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12672
12673         * ada-lang.c (HASH_SIZE): New macro.
12674         (struct cache_entry): New type.
12675         (cache_space, cache): New static globals.
12676         (ada_clear_symbol_cache, find_entry): New functions.
12677         (lookup_cached_symbol, cache_symbol): Implement.
12678         (ada_new_objfile_observer, ada_free_objfile_observer): New.
12679         (_initialize_ada_language): Attach ada_new_objfile_observer
12680         and ada_free_objfile_observer.
12681
12682 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12683
12684         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12685         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12686         struct block * parameter.
12687         (ada_lookup_symbol_list_worker): Constify local variable "block".
12688         Remove cast which is no longer necessary.
12689
12690 2014-02-10  Doug Evans  <xdje42@gmail.com>
12691
12692         Add Guile as an extension language.
12693         * NEWS: Mention Guile scripting.
12694         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12695         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12696         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12697         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12698         (CLIBS): Add GUILE_LIBS.
12699         (install-guile): New rule.
12700         (guile.o): New rule.
12701         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12702         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12703         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12704         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12705         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12706         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12707         (scm-type.o, scm-utils.o, scm-value.o): New rules.
12708         * configure.ac: New option --with-guile.
12709         * configure: Regenerate.
12710         * config.in: Regenerate.
12711         * auto-load.c: Remove #include "python/python.h".  Add #include
12712         "gdb/section-scripts.h".
12713         (source_section_scripts): Handle Guile scripts.
12714         (_initialize_auto_load): Add name of Guile objfile script to
12715         scripts-directory help text.
12716         * breakpoint.c (condition_command): Tweak comment to include Scheme.
12717         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12718         (struct breakpoint): New member scm_bp_object.
12719         * defs.h (enum command_control_type): New value guile_control.
12720         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
12721         "extension.h".
12722         (show_user): Update comment.
12723         (_initialize_cli_cmds): Update help text for "show user".  Update help
12724         text for max-user-call-depth.
12725         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
12726         "extension.h".
12727         (multi_line_command_p): Add guile_control.
12728         (print_command_lines): Handle guile_control.
12729         (execute_control_command, recurse_read_control_structure): Ditto.
12730         (process_next_line): Recognize "guile" commands.
12731         * disasm.c (gdb_disassemble_info): Make non-static.
12732         * disasm.h: #include "dis-asm.h".
12733         (struct gdbarch): Add forward decl.
12734         (gdb_disassemble_info): Declare.
12735         * extension.c: #include "guile/guile.h".
12736         (extension_languages): Add guile.
12737         (get_ext_lang_defn): Handle EXT_LANG_GDB.
12738         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12739         * gdbtypes.c (get_unsigned_type_max): New function.
12740         (get_signed_type_minmax): New function.
12741         * gdbtypes.h (get_unsigned_type_max): Declare.
12742         (get_signed_type_minmax): Declare.
12743         * guile/README: New file.
12744         * guile/guile-internal.h: New file.
12745         * guile/guile.c: New file.
12746         * guile/guile.h: New file.
12747         * guile/scm-arch.c: New file.
12748         * guile/scm-auto-load.c: New file.
12749         * guile/scm-block.c: New file.
12750         * guile/scm-breakpoint.c: New file.
12751         * guile/scm-disasm.c: New file.
12752         * guile/scm-exception.c: New file.
12753         * guile/scm-frame.c: New file.
12754         * guile/scm-gsmob.c: New file.
12755         * guile/scm-iterator.c: New file.
12756         * guile/scm-lazy-string.c: New file.
12757         * guile/scm-math.c: New file.
12758         * guile/scm-objfile.c: New file.
12759         * guile/scm-ports.c: New file.
12760         * guile/scm-pretty-print.c: New file.
12761         * guile/scm-safe-call.c: New file.
12762         * guile/scm-string.c: New file.
12763         * guile/scm-symbol.c: New file.
12764         * guile/scm-symtab.c: New file.
12765         * guile/scm-type.c: New file.
12766         * guile/scm-utils.c: New file.
12767         * guile/scm-value.c: New file.
12768         * guile/lib/gdb.scm: New file.
12769         * guile/lib/gdb/boot.scm: New file.
12770         * guile/lib/gdb/experimental.scm: New file.
12771         * guile/lib/gdb/init.scm: New file.
12772         * guile/lib/gdb/iterator.scm: New file.
12773         * guile/lib/gdb/printing.scm: New file.
12774         * guile/lib/gdb/types.scm: New file.
12775         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12776         (VPATH): Add $(GUILE_SRCDIR).
12777         (GUILE_DIR): New variable.
12778         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12779         (all): Add stamp-guile dependency.
12780         (stamp-guile): New rule.
12781         (clean-guile, install-guile, uninstall-guile): New rules.
12782         (install-only): Add install-guile dependency.
12783         (uninstall): Add uninstall-guile dependency.
12784         (clean): Add clean-guile dependency.
12785
12786 2014-02-09  Doug Evans  <xdje42@gmail.com>
12787
12788         Revert this patch (which I approved, mea culpa).
12789
12790         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12791
12792         * Makefile.in (all-lib): Remove.
12793         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12794
12795 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
12796
12797         Fix Python stack corruption.
12798         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12799         gdb_py_longest.
12800
12801 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12802
12803         * Makefile.in (all-lib): Remove.
12804         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12805
12806 2014-02-07  Doug Evans  <dje@google.com>
12807
12808         * extension-priv.h (extension_language_script_ops): Add comment.
12809         (extension_language_ops): Add comment.
12810         (active_ext_lang_state): Fix typo in comment.
12811
12812 2014-02-07  Pedro Alves  <palves@redhat.com>
12813
12814         PR breakpoints/16292
12815         * infrun.c (handle_signal_stop) <signal arrives while stepping
12816         over a breakpoint>: Switch back to the stepping thread.
12817
12818 2014-02-07  Yao Qi  <yao@codesourcery.com>
12819
12820         * target.c (target_xfer_partial): Return zero if LEN is zero.
12821
12822 2014-02-07  Yao Qi  <yao@codesourcery.com>
12823
12824         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12825         (ld_so_xfer_auxv): Likewise.
12826         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12827         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12828         * corelow.c (core_xfer_partial): Likewise.
12829         * ctf.c (ctf_xfer_partial): Likewise.
12830         * darwin-nat.c (darwin_read_dyld_info): Likewise.
12831         (darwin_xfer_partial): Likewise.
12832         * exec.c (exec_xfer_partial): Likewise.
12833         * gnu-nat.c (gnu_xfer_partial): Likewise.
12834         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12835         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12836         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12837         * linux-nat.c (linux_xfer_siginfo): Likewise.
12838         (linux_proc_xfer_spu): Likewise.
12839         * procfs.c (procfs_xfer_partial): Likewise.
12840         * record-full.c (record_full_xfer_partial): Likewise.
12841         (record_full_core_xfer_partial): Likewise.
12842         * remote-sim.c (gdbsim_xfer_partial): Likewise.
12843         * remote.c (remote_write_qxfer): Likewise.
12844         (remote_write_qxfer, remote_read_qxfer): Likewise.
12845         (remote_xfer_partial): Likewise.
12846         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12847         (rs6000_xfer_shared_libraries): Likewise.
12848         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12849         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12850         (spu_xfer_partial): Likewise.
12851         * target.c (memory_xfer_partial_1): Likewise.
12852         * tracepoint.c (tfile_xfer_partial): Likewise.
12853         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12854         (windows_xfer_partial): Likewise.
12855
12856 2014-02-07  Yao Qi  <yao@codesourcery.com>
12857
12858         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
12859         comments.
12860         (core_xfer_shared_libraries_aix): Likewise.
12861         * gdbarch.c, gdbarch.h: Regenerated.
12862         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12863         ULONGEST.  Change 'len_avail' type to ULONGEST.
12864         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12865         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12866         declaration.
12867         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12868
12869 2014-02-07  Yao Qi  <yao@codesourcery.com>
12870
12871         * corefile.c (memory_error): Get 'exception' from ERR and pass
12872         'exception' to throw_error.
12873
12874 2014-02-06  Doug Evans  <xdje42@gmail.com>
12875
12876         * configure.ac (libpython checking): Remove all but python.o from
12877         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
12878         * configure: Regenerate.
12879
12880         * Makefile.in (SFILES): Add extension.c.
12881         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12882         (COMMON_OBS): Add extension.o.
12883         * extension.h: New file.
12884         * extension-priv.h: New file.
12885         * extension.c: New file.
12886
12887         * python/python-internal.h: #include "extension.h".
12888         (gdbpy_auto_load_enabled): Declare.
12889         (gdbpy_apply_val_pretty_printer): Declare.
12890         (gdbpy_apply_frame_filter): Declare.
12891         (gdbpy_preserve_values): Declare.
12892         (gdbpy_breakpoint_cond_says_stop): Declare.
12893         (gdbpy_breakpoint_has_cond): Declare.
12894         (void source_python_script_for_objfile): Delete.
12895         * python/python.c: #include "extension-priv.h".
12896         Delete inclusion of "observer.h".
12897         (extension_language_python): Moved here and renamed from
12898         script_language_python in py-auto-load.c.
12899         Redefined to be of type extension_language_defn.
12900         (python_extension_script_ops): New global.
12901         (python_extension_ops): New global.
12902         (struct python_env): New member previous_active.
12903         (restore_python_env): Call restore_active_ext_lang.
12904         (ensure_python_env): Call set_active_ext_lang.
12905         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12906         New arg extlang.
12907         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12908         New arg extlang.
12909         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12910         New arg extlang.
12911         (gdbpy_eval_from_control_command): Renamed from
12912         eval_python_from_control_command, made static.  New arg extlang.
12913         (gdbpy_source_script) Renamed from source_python_script, made static.
12914         New arg extlang.
12915         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
12916         result to int.  New arg extlang.
12917         (gdbpy_source_objfile_script): Renamed from
12918         source_python_script_for_objfile, made static.  New arg extlang.
12919         (gdbpy_start_type_printers): Renamed from start_type_printers, made
12920         static.  New args extlang, extlang_printers.  Change result type to
12921         "void".
12922         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12923         static.  New arg extlang.  Rename arg printers to extlang_printers
12924         and change type to ext_lang_type_printers *.
12925         (gdbpy_free_type_printers): Renamed from free_type_printers, made
12926         static.  Replace argument arg with extlang, extlang_printers.
12927         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12928         (!HAVE_PYTHON, source_python_script): Delete.
12929         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12930         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12931         (!HAVE_PYTHON, start_type_printers): Delete.
12932         (!HAVE_PYTHON, apply_type_printers): Delete.
12933         (!HAVE_PYTHON, free_type_printers): Delete.
12934         (_initialize_python): Delete call to observer_attach_before_prompt.
12935         (finalize_python): Set/restore active extension language.
12936         (gdbpy_finish_initialization) Renamed from
12937         finish_python_initialization, made static.  New arg extlang.
12938         (gdbpy_initialized): New function.
12939         * python/python.h: #include "extension.h".  Delete #include
12940         "value.h", "mi/mi-cmds.h".
12941         (extension_language_python): Declare.
12942         (GDBPY_AUTO_FILE_NAME): Delete.
12943         (enum py_bt_status): Moved to extension.h and renamed to
12944         ext_lang_bt_status.
12945         (enum frame_filter_flags): Moved to extension.h.
12946         (enum py_frame_args): Moved to extension.h and renamed to
12947         ext_lang_frame_args.
12948         (finish_python_initialization): Delete.
12949         (eval_python_from_control_command): Delete.
12950         (source_python_script): Delete.
12951         (apply_val_pretty_printer): Delete.
12952         (apply_frame_filter): Delete.
12953         (preserve_python_values): Delete.
12954         (gdbpy_script_language_defn): Delete.
12955         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12956         (start_type_printers, apply_type_printers, free_type_printers): Delete.
12957
12958         * auto-load.c: #include "extension.h".
12959         (GDB_AUTO_FILE_NAME): Delete.
12960         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
12961         (script_language_gdb): Delete, moved to extension.c and renamed to
12962         extension_language_gdb.
12963         (source_gdb_script_for_objfile): Delete.
12964         (auto_load_pspace_info): New member unsupported_script_warning_printed.
12965         (loaded_script): Change type of language member to
12966         struct extension_language_defn *.
12967         (init_loaded_scripts_info): Initialize
12968         unsupported_script_warning_printed.
12969         (maybe_add_script): Make static.  Change type of language arg to
12970         struct extension_language_defn *.
12971         (clear_section_scripts): Reset unsupported_script_warning_printed.
12972         (auto_load_objfile_script_1): Rewrite to use extension language API.
12973         (auto_load_objfile_script): Make public.  Remove support-compiled-in
12974         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12975         (source_section_scripts): Rewrite to use extension language API.
12976         (load_auto_scripts_for_objfile): Rewrite to use
12977         auto_load_scripts_for_objfile.
12978         (collect_matching_scripts_data): Change type of language member to
12979         struct extension_language_defn *.
12980         (auto_load_info_scripts): Change type of language arg to
12981         struct extension_language_defn *.
12982         (unsupported_script_warning_print): New function.
12983         (script_not_found_warning_print): Make static.
12984         (_initialize_auto_load): Rewrite construction of scripts-directory
12985         help.
12986         * auto-load.h (struct objfile): Add forward decl.
12987         (struct script_language): Delete.
12988         (struct auto_load_pspace_info): Add forward decl.
12989         (struct extension_language_defn): Add forward decl.
12990         (maybe_add_script): Delete.
12991         (auto_load_objfile_script): Declare.
12992         (script_not_found_warning_print): Delete.
12993         (auto_load_info_scripts): Update prototype.
12994         (auto_load_gdb_scripts_enabled): Declare.
12995         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12996         auto_load_python_scripts_enabled and made public.
12997         (script_language_python): Delete, moved to python.c.
12998         (gdbpy_script_language_defn): Delete.
12999         (info_auto_load_python_scripts): Update to use
13000         extension_language_python.
13001
13002         * breakpoint.c (condition_command): Replace call to
13003         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13004         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13005         with call to breakpoint_ext_lang_cond_says_stop.
13006         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13007         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
13008         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13009         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13010         New arg slang.
13011         (local_setattro): Print name of extension language with existing
13012         stop condition.
13013
13014         * valprint.c (val_print, value_print): Update to call
13015         apply_ext_lang_val_pretty_printer.
13016         * cp-valprint.c (cp_print_value): Update call to
13017         apply_ext_lang_val_pretty_printer.
13018         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13019         (gdbpy_apply_val_pretty_printer): Renamed from
13020         apply_val_pretty_printer.  New arg extlang.
13021         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13022
13023         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13024         extension language API.
13025         * cli/cli-script.c (execute_control_command): Update to call
13026         eval_ext_lang_from_control_command.
13027
13028         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13029         enum ext_lang_bt_status values.  Update call to
13030         apply_ext_lang_frame_filter.
13031         (mi_cmd_stack_list_locals): Ditto.
13032         (mi_cmd_stack_list_args): Ditto.
13033         (mi_cmd_stack_list_variables): Ditto.
13034         * mi/mi-main.c: Delete #include "python/python-internal.h".
13035         Add #include "extension.h".
13036         (mi_cmd_list_features): Replace reference to python internal variable
13037         gdb_python_initialized with call to ext_lang_initialized_p.
13038
13039         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13040         Update to use enum ext_lang_frame_args.  Update to call
13041         apply_ext_lang_frame_filter.
13042         * python/py-framefilter.c (extract_sym): Update to use enum
13043         ext_lang_bt_status.
13044         (extract_value, py_print_type, py_print_value): Ditto.
13045         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13046         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13047         (py_print_frame): Ditto.
13048         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13049         New arg extlang.  Update to use enum ext_lang_bt_status.
13050
13051         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13052         finish_python_initialization.  Replace with call to
13053         finish_ext_lang_initialization.
13054
13055         * typeprint.c (do_free_global_table): Update to call
13056         free_ext_lang_type_printers.
13057         (create_global_typedef_table): Update to call
13058         start_ext_lang_type_printers.
13059         (find_global_typedef): Update to call apply_ext_lang_type_printers.
13060         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13061         (type_print_options): Change type of global_printers from "void *"
13062         to "struct ext_lang_type_printers *".
13063
13064         * value.c (preserve_values): Update to call preserve_ext_lang_values.
13065         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13066         (gdbpy_preserve_values): Renamed from preserve_python_values.
13067         New arg extlang.
13068         (!HAVE_PYTHON, preserve_python_values): Delete.
13069
13070         * utils.c (quit_flag): Delete, moved to extension.c.
13071         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13072         extension.c.
13073
13074         * eval.c: Delete #include "python/python.h".
13075         * main.c: Delete #include "python/python.h".
13076
13077         * defs.h: Update comment.
13078
13079 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
13080
13081         GDB 7.7 released.
13082
13083 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
13084
13085         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13086         defined.
13087
13088 2014-02-05  Yao Qi  <yao@codesourcery.com>
13089
13090         * remote.c (remote_pass_signals): Remove local 'buf' and use
13091         rs->buf.
13092         (remote_program_signals): Likewise.
13093
13094 2014-02-05  Yao Qi  <yao@codesourcery.com>
13095
13096         * ctf.c: Include "inferior.h" and "gdbthread.h".
13097         (CTF_PID): A new macro.
13098         (ctf_open): Call inferior_appeared and add_thread_silent.
13099         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13100         (ctf_thread_alive): New function.
13101         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13102
13103 2014-02-05  Yao Qi  <yao@codesourcery.com>
13104
13105         Revert this patch:
13106
13107         2013-05-24  Yao Qi  <yao@codesourcery.com>
13108
13109         * tracepoint.c (TFILE_PID): Remove.
13110         (tfile_open): Don't add thread and inferior.
13111         (tfile_close): Don't set 'inferior_ptid'.  Don't call
13112         exit_inferior_silent.
13113         (tfile_thread_alive): Remove.
13114         (init_tfile_ops): Don't set field 'to_thread_alive' of
13115         tfile_ops.
13116
13117 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
13118
13119         * remote.c (remote_start_remote): Call remote_check_symbols even
13120         if only symbol-file (not file) has been given.
13121
13122 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13123
13124         * gdbarch.sh (skip_entrypoint): New callback.
13125         * gdbarch.c, gdbarch.h: Regenerate.
13126         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13127         * infrun.c (fill_in_stop_func): Likewise.
13128         * ppc-linux-tdep.c: Include "elf/ppc64.h".
13129         (ppc_elfv2_elf_make_msymbol_special): New function.
13130         (ppc_elfv2_skip_entrypoint): Likewise.
13131         (ppc_linux_init_abi): Install them for ELFv2.
13132
13133 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13134
13135         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13136         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13137         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13138         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
13139         structures returned in GPRs.
13140
13141 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13142
13143         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13144         offset to the stack parameter list for the ELFv2 ABI.
13145
13146 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13147
13148         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13149         set_gdbarch_convert_from_func_ptr_addr and
13150         set_gdbarch_elf_make_msymbol_special for ELFv1.
13151         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13152         function descriptors on ELFv1.
13153         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
13154         set up r12 at function entry.
13155
13156 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13157
13158         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13159         (struct gdbarch_tdep): New member elf_abi.
13160
13161         * rs6000-tdep.c: Include "elf/ppc64.h".
13162         (rs6000_gdbarch_init): Detect ELF ABI version.
13163
13164 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13165
13166         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13167         within a register pair holding a DFP 128-bit value on little-endian.
13168         (ppc64_sysv_abi_return_value_base): Likewise.
13169         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13170         (dfp_pseudo_register_write): Likewise.
13171
13172 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13173
13174         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13175         offset on little-endian when passing _Decimal32.
13176         (ppc64_sysv_abi_return_value_base): Likewise for return values.
13177
13178 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13179
13180         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13181         of the overlapped FP register within the VSX register on little-
13182         endian platforms.
13183         (efpr_pseudo_register_write): Likewise.
13184
13185 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13186
13187         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13188         offset on little-endian when passing small structures.
13189
13190 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13191
13192         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13193         (struct ppc64_sysv_argpos): New data structure.
13194         (ppc64_sysv_abi_push_float): Remove.
13195         (ppc64_sysv_abi_push_val): New function.
13196         (ppc64_sysv_abi_push_integer): Likewise.
13197         (ppc64_sysv_abi_push_freg): Likewise.
13198         (ppc64_sysv_abi_push_vreg): Likewise.
13199         (ppc64_sysv_abi_push_param): Likewise.
13200         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13201         (ppc64_sysv_abi_return_value_base): New function.
13202         (ppc64_sysv_abi_return_value): Refactor to use it.
13203
13204 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13205
13206         * NEWS: Document new target powerpc64le-*-linux*.
13207
13208 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
13209
13210         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13211         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13212         core dumps.
13213         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13214         register set used in ELF core dumps.  Add floating-point register set.
13215
13216 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
13217
13218         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13219         dwarf2_to_gdb[] table using symbolic constants.  Adjust
13220         penultimate entry from number representing the PC register
13221         to symbolic constant representing the MDR register.  Add
13222         constant for the PC register to the end of the table.
13223
13224 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
13225
13226         * bsd-kvm.c: Include <sys/param.h>
13227
13228 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
13229
13230         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13231
13232 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
13233
13234         * ada-lang.h (clear_ada_sym_cache): Delete.
13235
13236 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
13237
13238         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13239
13240 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
13241
13242         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13243           the sigreturn register save area only if the syscall is
13244           sigreturn.
13245
13246 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
13247
13248         * valops.c (value_slice): Minor reformatting.
13249
13250 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
13251
13252         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13253
13254 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
13255
13256         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13257         New static globals.
13258         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13259         (ada_ignore_descriptive_types_p): New static global.
13260         (find_parallel_type_by_descriptive_type): Return immediately
13261         if ada_ignore_descriptive_types_p is set.
13262         (_initialize_ada_language): Register new commands "maintenance
13263         set ada", "maintenance show ada", "maintenance set ada
13264         ignore-descriptive-types" and "maintenance show ada
13265         ignore-descriptive-types".
13266         * NEWS: Add entry for new "maint ada set/show
13267         ignore-descriptive-types" commands.
13268
13269 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
13270
13271         * record-btrace.c (record_btrace_close): Call btrace_teardown
13272         for all threads.
13273
13274 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13275
13276         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13277         "ui-out.h".
13278
13279 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13280
13281         * ada-typeprint (type_is_full_subrange_of_target_type):
13282         New function.
13283         (print_range): Add parameter bounds_prefered_p.  If not set,
13284         try printing range types using the name of their base type.
13285         (print_range_type): Add parameter bounds_prefered_p.
13286         Use it in call to print_range.
13287         (print_array_type, ada_print_type): Update calls to print_range
13288         and print_range_type.
13289
13290 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13291
13292         * ada-typeprint.c (print_array_type, print_choices, print_range)
13293         (print_range_bound, print_dynamic_range_bound, print_range_type):
13294         Remove declaration.
13295
13296 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13297
13298         * ada-typeprint.c (print_range): Add missing empty line
13299         after local declaration.
13300
13301 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13302
13303         * ada-valprint.c (print_optional_low_bound): Get index_type's
13304         target type for as long as it is a TYPE_CODE_RANGE.
13305
13306 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13307
13308         * procfs.c (procfs_make_note_section): Remove assertion and
13309         associated comment.
13310
13311 2014-01-24  Yao Qi  <yao@codesourcery.com>
13312
13313         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13314         * corelow.c (get_core_siginfo): Likewise.
13315
13316 2014-01-24  Yao Qi  <yao@codesourcery.com>
13317
13318         * remote.c (remote_write_bytes_aux): Change type of 'len' to
13319         ULONGEST.  Don't check 'len' is negative.
13320         (remote_write_bytes):  Change type of 'len' to ULONGEST.
13321
13322 2014-01-23  Tom Tromey  <tromey@redhat.com>
13323
13324         PR python/16485:
13325         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13326         Handle exception from frame.block.
13327         (FrameVars.fetch_frame_locals): Likewise.
13328
13329 2014-01-23  Tom Tromey  <tromey@redhat.com>
13330
13331         PR python/16487:
13332         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13333         on a NULL pointer.  Move "goto error" to correct place.
13334
13335 2014-01-23  Tom Tromey  <tromey@redhat.com>
13336
13337         PR python/16491:
13338         * python/py-framefilter.c (apply_frame_filter): Call
13339         ensure_python_env after computing gdbarch.
13340
13341 2014-01-23  Yao Qi  <yao@codesourcery.com>
13342
13343         * target.c (raw_memory_xfer_partial): Change argument type
13344         from void * to gdb_byte *.
13345         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13346
13347 2014-01-22  Doug Evans  <dje@google.com>
13348
13349         New gdbserver option --debug-format=timestamp.
13350         * NEWS: Mention it.
13351
13352 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
13353
13354         * syscalls/s390x-linux.xml: New file.
13355         * syscalls/s390-linux.xml: New file.
13356         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13357         (XML_SYSCALL_FILENAME_S390X): Likewise.
13358         (op_svc): New enum value for SVC opcode.
13359         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13360         (s390_linux_get_syscall_number): New function.
13361         (s390_gdbarch_init): Register '*get_syscall_number' and the
13362         syscall xml file name.
13363         * data-directory/Makefile.in (SYSCALLS_FILES): Add
13364         "s390-linux.xml" and "s390x-linux.xml".
13365         * NEWS: Announce new feature.
13366
13367 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
13368
13369         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13370
13371 2014-01-22  Pedro Alves  <palves@redhat.com>
13372
13373         * xtensa-config.c: Include defs.h.
13374
13375 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13376
13377         * common/common-utils.h: Add "ARI:" comment beside __func__
13378         reference.
13379
13380 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13381
13382         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13383         documentation a bit.
13384
13385 2014-01-21  Roland McGrath  <mcgrathr@google.com>
13386
13387         * configure.ac: Call AM_PROG_INSTALL_STRIP.
13388         * configure: Regenerate.
13389         * aclocal.m4: Regenerate.
13390         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13391         New substituted variables.
13392         (install-strip): New target.
13393         (INSTALL_SCRIPT): New substituted variable.
13394         (FLAGS_TO_PASS): Add it.
13395         (install-only): Use $(INSTALL_SCRIPT) rather than
13396         $(INSTALL_PROGRAM) for gcore.
13397
13398 2014-01-20  Tom Tromey  <tromey@redhat.com>
13399
13400         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13401         together.
13402
13403 2014-01-20  Tom Tromey  <tromey@redhat.com>
13404
13405         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13406         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13407         (deprecated_cmd_warning, complete_on_cmdlist): Update.
13408         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13409         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13410         (struct cmd_list_element) <flags>: Remove.
13411         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13412         doc_allocated>: New fields.
13413         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13414         bitfields.
13415         * maint.c (maintenance_do_deprecate): Update.
13416         * top.c (execute_command): Update.
13417
13418 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
13419
13420         * xtensa-linux-nat.c: Include asm/ptrace.h.
13421
13422 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13423
13424         * Makefile.in (SFILES): Add d-support.c.
13425         (COMMON_OBS): Add d-support.o.
13426         * d-lang.h (d_parse_symbol): Add comment, now defined in
13427         d-support.c.
13428         * d-lang.c (parse_call_convention)
13429         (parse_attributes, parse_function_types)
13430         (parse_function_args, parse_type, parse_identifier)
13431         (call_convention_p, d_parse_symbol): Move functions to ...
13432         * d-support.c: ... New file.
13433
13434 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13435
13436         * d-lang.h (d_parse_symbol): Add declaration.
13437         * d-lang.c (extract_identifiers)
13438         (extract_type_info): Remove functions.
13439         (parse_call_convention, parse_attributes)
13440         (parse_function_types, parse_function_args)
13441         (parse_type, parse_identifier, call_convention_p)
13442         (d_parse_symbol): New functions.
13443         (d_demangle): Use d_parse_symbol to demangle D symbols.
13444
13445 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13446
13447         * d-lang.h (struct builtin_d_type): New data type.
13448         (builtin_d_type): Add declaration.
13449         * d-lang.c (d_language_arch_info, build_d_types)
13450         (builtin_d_type): New functions.
13451         (enum d_primitive_types): New data type.
13452         (d_language_defn): Change c_language_arch_info to
13453         d_language_arch_info.
13454         (d_type_data): New static variable.
13455         (_initialize_d_language): Initialize d_type_data.
13456
13457 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13458
13459         * d-lang.h (d_main_name): Add declaration.
13460         * d-lang.c (d_main_name): New function.
13461         * symtab.c (find_main_name): Add call to d_main_name.
13462
13463 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13464
13465         * d-lang.c (d_language_defn): Change macro_expansion_c to
13466         macro_expansion_no.
13467
13468 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13469
13470         * MAINTAINERS: Add myself as a write-after-approval maintainer.
13471
13472 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
13473
13474         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13475         gdb_exception" declaration.
13476         * remote.c (getpkt_or_notif_sane): Likewise.
13477
13478 2014-01-17  Doug Evans  <dje@google.com>
13479
13480         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13481         function, contents of dirnames_to_char_ptr_vec_append moved here.
13482         (delim_string_to_char_ptr_vec): New function.
13483         (dirnames_to_char_ptr_vec_append): Rewrite.
13484         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13485
13486 2014-01-17  Doug Evans  <dje@google.com>
13487
13488         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13489         and moved here ...
13490         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13491         #include "common-utils.h".
13492         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13493         * common/vec.h (VEC_ASSERT_PASS): Update.
13494         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13495         (MACH_CHECK_ERROR): Update.
13496
13497 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
13498
13499         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13500         comments.
13501         * gdbarch.h: Regenerate.
13502
13503 2014-01-16  Tom Tromey  <tromey@redhat.com>
13504
13505         * value.c (struct value) <regnum>: Move earlier.
13506
13507 2014-01-16  Tom Tromey  <tromey@redhat.com>
13508
13509         * remote.c (extended_remote_create_inferior): Rename from
13510         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
13511         old implementation.
13512
13513 2014-01-16  Pedro Alves  <palves@redhat.com>
13514
13515         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13516         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13517         the backchain.
13518
13519 2014-01-16  Doug Evans  <dje@google.com>
13520
13521         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13522
13523 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13524
13525         * btrace.h (btrace_thread_flag): New.
13526         (struct btrace_thread_info) <flags>: New.
13527         * record-btrace.c (record_btrace_resume_thread)
13528         (record_btrace_find_thread_to_move, btrace_step_no_history)
13529         (btrace_step_stopped, record_btrace_start_replaying)
13530         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13531         (record_btrace_find_resume_thread): New.
13532         (record_btrace_resume, record_btrace_wait): Extend.
13533         (record_btrace_can_execute_reverse): New.
13534         (record_btrace_open): Fail in non-stop mode.
13535         (record_btrace_set_replay): Split into this, ...
13536         (record_btrace_stop_replaying): ... this, ...
13537         (record_btrace_clear_histories): ... and this.
13538         (init_record_btrace_ops): Init to_can_execute_reverse.
13539         * NEWS: Announce it.
13540
13541 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13542
13543         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13544         (forward_target_decr_pc_after_break)
13545         (target_decr_pc_after_break): New.
13546         * target.c (forward_target_decr_pc_after_break)
13547         (target_decr_pc_after_break): New.
13548         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13549         instead of gdbarch_decr_pc_after_break.
13550         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13551         instead of gdbarch_decr_pc_after_break.
13552         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13553         instead of gdbarch_decr_pc_after_break.
13554         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13555         instead of gdbarch_decr_pc_after_break.
13556         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13557         instead of gdbarch_decr_pc_after_break.
13558         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13559         instead of gdbarch_decr_pc_after_break.
13560
13561 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13562
13563         * btrace.c: Include regcache.h.
13564         (btrace_add_pc): New.
13565         (btrace_enable): Call btrace_add_pc.
13566         (btrace_is_empty): New.
13567         * btrace.h (btrace_is_empty): New.
13568         * record-btrace.c (require_btrace, record_btrace_info): Call
13569         btrace_is_empty.
13570
13571 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13572
13573         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13574         Support delta reads.
13575         (linux_disable_btrace): Change return type.
13576         * common/linux-btrace.h (linux_read_btrace): Change parameters
13577         and return type to allow error reporting.  Update users.
13578         (linux_disable_btrace): Change return type.  Update users.
13579         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13580         New.
13581         (btrace_error): New.
13582         (btrace_block) <begin>: Comment on BEGIN == 0.
13583         * btrace.c (btrace_compute_ftrace): Start from the end of
13584         the current trace.
13585         (btrace_stitch_trace, btrace_clear_history): New.
13586         (btrace_fetch): Read delta trace, return if replaying.
13587         (btrace_clear): Move clear history code to btrace_clear_history.
13588         (parse_xml_btrace): Throw an error if parsing failed.
13589         * target.h (struct target_ops) <to_read_btrace>: Change parameters
13590         and return type to allow error reporting.
13591         (target_read_btrace): Change parameters and return type to allow
13592         error reporting.
13593         * target.c (target_read_btrace): Update.
13594         * remote.c (remote_read_btrace): Support delta reads.  Pass
13595         errors on.
13596         * NEWS: Announce it.
13597
13598 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13599
13600         * record.h (record_btrace_frame_unwind)
13601         (record_btrace_tailcall_frame_unwind): New declarations.
13602         * dwarf2-frame: Include record.h
13603         (dwarf2_frame_cfa): Throw an error for btrace frames.
13604         * record-btrace.c: Include hashtab.h.
13605         (btrace_get_bfun_name): New.
13606         (btrace_call_history): Call btrace_get_bfun_name.
13607         (struct btrace_frame_cache): New.
13608         (bfcache): New.
13609         (bfcache_hash, bfcache_eq, bfcache_new): New.
13610         (btrace_get_frame_function): New.
13611         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13612         (record_btrace_frame_this_id): Compute own id.
13613         (record_btrace_frame_prev_register): Provide PC, throw_error
13614         for all other registers.
13615         (record_btrace_frame_sniffer): Detect btrace frames.
13616         (record_btrace_tailcall_frame_sniffer): New.
13617         (record_btrace_frame_dealloc_cache): New.
13618         (record_btrace_frame_unwind): Add new functions.
13619         (record_btrace_tailcall_frame_unwind): New.
13620         (_initialize_record_btrace): Allocate cache.
13621         * btrace.c (btrace_clear): Call reinit_frame_cache.
13622         * NEWS: Announce it.
13623
13624 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13625
13626         * record-btrace.c (record_btrace_set_replay)
13627         (record_btrace_goto_begin, record_btrace_goto_end)
13628         (record_btrace_goto): New.
13629         (init_record_btrace_ops): Initialize them.
13630         * NEWS: Announce it.
13631
13632 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13633
13634         * record-btrace.c (record_btrace_find_new_threads)
13635         (record_btrace_thread_alive): New.
13636         (init_record_btrace_ops): Initialize to_find_new_threads and
13637         to_thread_alive.
13638
13639 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13640
13641         * record-btrace.c (record_btrace_resume): New.
13642         (record_btrace_wait): New.
13643         (init_record_btrace_ops): Initialize to_wait and to_resume.
13644
13645 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13646
13647         * record-btrace.c (record_btrace_xfer_partial)
13648         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13649         (record_btrace_allow_memory_access): New.
13650         (init_record_btrace_ops): Initialize new methods.
13651         * target.c (raw_memory_xfer_partial): Bail out if target reports
13652         that this memory is not available.
13653
13654 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13655
13656         * target.h (target_ops) <to_insert_breakpoint>
13657         <to_remove_breakpoint>: Add target_ops parameter.
13658         (forward_target_insert_breakpoint): New.
13659         (forward_target_remove_breakpoint): New.
13660         (memory_remove_breakpoint, memory_insert_breakpoint):
13661         Add target_ops parameter.
13662         * target.c (target_insert_breakpoint): Split into this and ...
13663         (forward_target_insert_breakpoint): ... this.
13664         (target_remove_breakpoint): Split into this and ...
13665         (forward_target_remove_breakpoint): ... this.
13666         (debug_to_insert_breakpoint): Add target_ops parameter.
13667         Call forward_target_insert_breakpoint.
13668         (debug_to_remove_breakpoint): Add target_ops parameter.
13669         Call forward_target_remove_breakpoint.
13670         (update_current_target): Do not inherit or default to_insert_breakpoint
13671         and to_remove_breakpoint.
13672         * corelow.c (ignore): Add target_ops parameter.
13673         * exec.c (ignore): Add target_ops parameter.
13674         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13675         Add target_ops parameter.
13676         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13677         Add target_ops parameter.
13678         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13679         Add target_ops parameter.
13680         * record-full.c (record_full_beneath_to_insert_breakpoint)
13681         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13682         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13683         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13684         (record_full_core_remove_breakpoint): Add target_ops parameter.
13685         Update users.
13686         (record_full_beneath_to_insert_breakpoint_ops)
13687         (record_full_beneath_to_remove_breakpoint_ops)
13688         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13689         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13690         tmp_to_remove_breakpoint_ops,
13691         record_full_beneath_to_insert_breakpoint_ops, and
13692         record_full_beneath_to_remove_breakpoint_ops.
13693         * remote-m32r-sdi.c (m32r_insert_breakpoint)
13694         (m32r_remove_breakpoint): Add target_ops parameter.
13695         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13696         Add target_ops parameter.
13697         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13698         Add target_ops parameter.
13699
13700 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13701             Markus Metzger  <markus.t.metzger@intel.com>
13702
13703         * record-btrace.c: Include frame-unwind.h.
13704         (record_btrace_frame_unwind_stop_reason)
13705         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13706         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13707         New.
13708         (init_record_btrace_ops): Install it.
13709
13710 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13711
13712         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13713         get_prev_frame_1.
13714
13715 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13716
13717         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13718         earlier.
13719
13720 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13721
13722         * frame-unwind.c: Include target.h.
13723         (frame_unwind_try_unwinder): New function with code from ...
13724         (frame_unwind_find_by_frame): ... here.  New variable
13725         unwinder_from_target, call also target_get_unwinder)
13726         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13727         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13728         * target.h (struct target_ops): New fields to_get_unwinder and
13729         to_get_tailcall_unwinder.
13730         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13731
13732 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13733
13734         * record-btrace.c (record_btrace_fetch_registers)
13735         (record_btrace_store_registers)
13736         (record_btrace_to_prepare_to_store): New.
13737         (init_record_btrace_ops): Add the above.
13738
13739 2014-01-16  Tom Tromey  <tromey@redhat.com>
13740
13741         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13742         * target.h (struct target_ops) <to_prepare_to_store>: Add
13743         argument.
13744         (target_prepare_to_store): Add argument.
13745         * target.c (debug_to_prepare_to_store): Add argument.
13746         (update_current_target): Update.
13747         * remote.c (remote_prepare_to_store): Add 'self' argument.
13748         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13749         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13750         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13751         * record-full.c (record_full_core_prepare_to_store): Add 'self'
13752         argument.
13753         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13754         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13755         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13756         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13757         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13758
13759 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13760
13761         * btrace.h (replay) <replay>: New.
13762         (btrace_is_replaying): New.
13763         * btrace.c (btrace_clear): Free replay iterator.
13764         (btrace_is_replaying): New.
13765         * record-btrace.c (record_btrace_is_replaying): New.
13766         (record_btrace_info): Print insn number if replaying.
13767         (record_btrace_insn_history): Start at replay position.
13768         (record_btrace_call_history): Start at replay position.
13769         (init_record_btrace_ops): Init to_record_is_replaying.
13770
13771 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13772
13773         * record-btrace.c (record_btrace_insn_history_range): Include
13774         end.
13775         (record_btrace_insn_history_from): Adjust range.
13776         (record_btrace_call_history_range): Include
13777         end.
13778         (record_btrace_call_history_from): Adjust range.
13779         * NEWS: Announce changes.
13780
13781 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13782
13783         * record.h (enum record_print_flag)
13784         <record_print_indent_calls>: New.
13785         * record.c (get_call_history_modifiers): Recognize /c modifier.
13786         (_initialize_record): Document /c modifier.
13787         * record-btrace.c (btrace_call_history): Add btinfo parameter.
13788         Reorder fields.  Optionally indent the function name.  Update
13789         all users.
13790         * NEWS: Announce changes.
13791
13792 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13793
13794         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13795
13796 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13797
13798         * btrace.c (ftrace_new_function): Start counting at one.
13799         * record-btrace.c (record_btrace_info): Adjust number of calls
13800         and insns.
13801         * NEWS: Announce it.
13802
13803 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13804
13805         * record-btrace.c (btrace_call_history_insn_range): Print
13806         insn range as [begin, end].
13807
13808 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13809
13810         * btrace.h (struct btrace_func_link): New.
13811         (enum btrace_function_flag): New.
13812         (struct btrace_inst): Rename to ...
13813         (struct btrace_insn): ...this. Update all users.
13814         (struct btrace_func) <ibegin, iend>: Remove.
13815         (struct btrace_func_link): New.
13816         (struct btrace_func): Rename to ...
13817         (struct btrace_function): ...this. Update all users.
13818         (struct btrace_function) <segment, flow, up, insn, insn_offset)
13819         (number, level, flags>: New.
13820         (struct btrace_insn_iterator): Rename to ...
13821         (struct btrace_insn_history): ...this.
13822         Update all users.
13823         (struct btrace_insn_iterator, btrace_call_iterator): New.
13824         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13825         (struct btrace_target_info) <begin, end, level>
13826         <insn_history, call_history>: New.
13827         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13828         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13829         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13830         (btrace_call_number, btrace_call_begin, btrace_call_end)
13831         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13832         (btrace_find_function_by_number, btrace_set_insn_history)
13833         (btrace_set_call_history): New.
13834         * btrace.c (btrace_init_insn_iterator)
13835         (btrace_init_func_iterator, compute_itrace): Remove.
13836         (ftrace_print_function_name, ftrace_print_filename)
13837         (ftrace_skip_file): Change
13838         parameter to const.
13839         (ftrace_init_func): Remove.
13840         (ftrace_debug): Use new btrace_function fields.
13841         (ftrace_function_switched): Also consider gaining and
13842         losing symbol information).
13843         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13844         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13845         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13846         New.
13847         (ftrace_new_function): Move. Remove debug print.
13848         (ftrace_update_lines, ftrace_update_insns): New.
13849         (ftrace_update_function): Check for call, ret, and jump.
13850         (compute_ftrace): Renamed to ...
13851         (btrace_compute_ftrace): ...this. Rewritten to compute call
13852         stack.
13853         (btrace_fetch, btrace_clear): Updated.
13854         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13855         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13856         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13857         (btrace_call_number, btrace_call_begin, btrace_call_end)
13858         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13859         (btrace_find_function_by_number, btrace_set_insn_history)
13860         (btrace_set_call_history): New.
13861         * record-btrace.c (require_btrace): Use new btrace thread
13862         info fields.
13863         (record_btrace_info, btrace_insn_history)
13864         (record_btrace_insn_history, record_btrace_insn_history_range):
13865         Use new btrace thread info fields and new iterator.
13866         (btrace_func_history_src_line): Rename to ...
13867         (btrace_call_history_src_line): ...this. Use new btrace
13868         thread info fields.
13869         (btrace_func_history): Rename to ...
13870         (btrace_call_history): ...this. Use new btrace thread info
13871         fields and new iterator.
13872         (record_btrace_call_history, record_btrace_call_history_range):
13873         Use new btrace thread info fields and new iterator.
13874
13875 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13876
13877         * frame.h (frame_id_build_unavailable_stack_special): New.
13878         * frame.c (frame_id_build_unavailable_stack_special): New.
13879
13880 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13881
13882         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13883         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13884         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13885         to gdbarch.
13886         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13887         (i386_insn_is_jump, i386_jmp_p): New.
13888         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13889         insn_is_jump to gdbarch.
13890         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13891         * gdbarch.h: Regenerated.
13892         * gdbarch.c: Regenerated.
13893         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13894         (default_insn_is_jump): New.
13895         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13896         (default_insn_is_jump): New.
13897
13898 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13899
13900         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13901         Change to ...
13902         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
13903         (btrace_read_type) <btrace_read_new>: Change to ...
13904         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
13905
13906 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13907
13908         * common/linux-btrace.c (linux_read_btrace): Free trace from
13909         previous iteration.
13910
13911 2014-01-15  Doug Evans  <dje@google.com>
13912
13913         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13914         uint32_t.
13915
13916 2014-01-15  Tom Tromey  <tromey@redhat.com>
13917
13918         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13919         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13920         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13921         (set_objfile_main_name): New function.
13922         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13923         language_of_main>: New fields.
13924         (set_objfile_main_name): Declare.
13925         * symtab.c (find_main_name): Loop over objfiles to find the main
13926         name and language.
13927         (set_main_name): Now static.
13928         (get_main_info): Add comment.
13929         * symtab.h (set_main_name): Don't declare.
13930
13931 2014-01-15  Tom Tromey  <tromey@redhat.com>
13932
13933         * symtab.c (main_progspace_key): New global.
13934         (struct main_info): New.
13935         (name_of_main, language_of_main): Remove.
13936         (get_main_info, main_info_cleanup): New function.
13937         (set_main_name, main_name, main_language): Use get_main_info.
13938         (_initialize_symtab): Initialize main_progspace_key.
13939
13940 2014-01-15  Tom Tromey  <tromey@redhat.com>
13941
13942         * dbxread.c (process_one_symbol): Update.
13943         * dwarf2read.c (read_partial_die): Update.
13944         * symfile.c (set_initial_language): Call main_language.
13945         * symtab.c (language_of_main): Now static.
13946         (set_main_name): Add 'lang' parameter.
13947         (find_main_name): Update.
13948         (main_language): New function.
13949         (symtab_observer_executable_changed): Update.
13950         * symtab.h (set_main_name): Update.
13951         (language_of_main): Remove.
13952         (main_language): Declare.
13953
13954 2014-01-15  Tom Tromey  <tromey@redhat.com>
13955
13956         * symfile.c (init_entry_point_info): Use new "initialized" field.
13957         Update.
13958         * objfiles.h (struct entry_point) <initialized>: New field.
13959         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13960         (struct objfile) <ei>: ...here.  Remove.
13961         * objfiles.c (entry_point_address_query): Update.
13962
13963 2014-01-15  Tom Tromey  <tromey@redhat.com>
13964
13965         * objfiles.c (entry_point_address_query): Relocate entry point
13966         address.
13967         (objfile_relocate1): Do not relocate entry point address.
13968         * objfiles.h (struct entry_info) <entry_point>: Update comment.
13969         <the_bfd_section_index>: New field.
13970         * symfile.c (init_entry_point_info): Find the entry point's
13971         section.
13972
13973 2014-01-15  Tom Tromey  <tromey@redhat.com>
13974
13975         * solib-frv.c (enable_break): Use entry_point_address_query.
13976
13977 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13978
13979         * NEWS: Add note on improved process record-replay on
13980         arm*-linux* targets.
13981
13982 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13983
13984         * arm-tdep.c (enum arm_record_result): New enum.
13985         (arm_record_unsupported_insn): New function.
13986         (arm_record_coproc_data_proc): Removed.
13987         (thumb2_record_ld_st_multiple): New function.
13988         (thumb2_record_ld_st_dual_ex_tbb): New function.
13989         (thumb2_record_data_proc_sreg_mimm): New function.
13990         (thumb2_record_ps_dest_generic): New function.
13991         (thumb2_record_branch_misc_cntrl): New function.
13992         (thumb2_record_str_single_data): New function.
13993         (thumb2_record_ld_mem_hints): New function.
13994         (thumb2_record_ld_word): New function.
13995         (thumb2_record_lmul_lmla_div): New function.
13996         (thumb2_record_decode_insn_handler): New function.
13997         (decode_insn): Add thumb32 instruction handlers.
13998
13999 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14000
14001         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14002         (struct arm_linux_record_tdep): Declare.
14003         (arm_canonicalize_syscall): New function.
14004         (arm_all_but_pc_registers_record): New function.
14005         (arm_linux_syscall_record): New function.
14006         (arm_linux_init_abi): Add syscall recording constructs.
14007         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14008         decoding.  (arm_record_coproc_data_proc): Update arm syscall
14009         decoding.
14010         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14011         <arm_syscall_record>: New field.
14012         * configure.tgt (arm*-*-linux*): Add linux-record.o to
14013         gdb_target_obs.
14014
14015 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14016
14017         * arm-tdep.c (thumb_record_misc): Update to use sp as base
14018         register for push instruction recording.
14019
14020 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14021
14022         * arm-tdep.c (thumb_record_misc): Update to correct logical
14023         error while recording ldm, ldmia and pop instructions.
14024
14025 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14026
14027         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14028
14029 2014-01-15  Pedro Alves  <palves@redhat.com>
14030
14031         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14032         (go32_resume, go32_fetch_registers, store_register)
14033         (go32_store_registers, go32_prepare_to_store)
14034         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14035         (go32_create_inferior, go32_can_run, go32_terminal_init)
14036         (go32_terminal_inferior, go32_terminal_ours): Delete forward
14037         declarations.
14038
14039 2014-01-15  Tom Tromey  <tromey@redhat.com>
14040
14041         * target.h (async_callback_ftype): New typedef.
14042         (struct target_ops) <to_async>: Use it.
14043
14044 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14045
14046         * python/py-value.c (get_field_type): Remove unnecessary curly
14047         braces for single-statement if block.
14048
14049 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14050
14051         * python/py-type.c (convert_field): Add missing empty line
14052         after declarations.
14053
14054 2014-01-14  Doug Evans  <dje@google.com>
14055
14056         * symfile.h (expand_symtabs_matching): Renamed from
14057         expand_partial_symbol_names.  Update prototype.
14058         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14059         * symfile.c (expand_symtabs_matching): Renamed from
14060         expand_partial_symbol_names.  New args file_matcher, kind.
14061         Rename arg fun to symbol_matcher.
14062         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14063         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14064         ada_expand_partial_symbol_name.
14065         (ada_make_symbol_completion_list): Update to call
14066         expand_symtabs_matching.
14067         (ada_add_global_exceptions): Call expand_symtabs_matching.
14068         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14069         call map_symbol_filenames.
14070         * symtab.c (sources_info): Update to call map_symbol_filenames.
14071         (search_symbols): Call expand_symtabs_matching.
14072         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14073         (default_make_symbol_completion_list_break_on): Update to call
14074         expand_symtabs_matching.
14075         (make_source_files_completion_list): Update to call
14076         map_symbol_filenames.
14077
14078 2014-01-14  Doug Evans  <dje@google.com>
14079
14080         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14081         (expand_symtabs_symbol_matcher_ftype): New typedef.
14082         (quick_symbol_functions.expand_symtabs_matching): Update to use.
14083         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14084         * symfile.c (expand_partial_symbol_names): Update to use
14085         expand_symtabs_symbol_matcher_ftype.
14086         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14087         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14088         Arg name_matcher renamed to symbol_matcher.
14089         * psymtab.c (recursively_search_psymtabs): Update to use
14090         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
14091         sym_matcher.
14092         (expand_symtabs_matching_via_partial): Update to use
14093         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14094         Arg name_matcher renamed to symbol_matcher.
14095
14096 2014-01-14  Doug Evans  <dje@google.com>
14097
14098         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14099         (map_partial_symbol_filenames): Ditto.
14100         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14101         (map_partial_symbol_filenames): Ditto.
14102         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14103         (map_partial_symbol_filenames): Ditto.
14104         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14105         (map_partial_symbol_filenames): Ditto.
14106         * symtab.c: Delete #include "psymtab.h".
14107
14108 2014-01-14  Pedro Alves  <palves@redhat.com>
14109             Tom Tromey  <tromey@redhat.com>
14110
14111         * infrun.c (use_displaced_stepping): Use find_record_target
14112         instead of RECORD_IS_USED.
14113         (adjust_pc_after_break): Use record_full_is_used instead of
14114         RECORD_IS_USED.
14115         * record-btrace.c (record_btrace_open): Call record_preopen
14116         instead of checking RECORD_IS_USED.
14117         * record-full.c (record_full_shortname)
14118         (record_full_core_shortname): New globals.
14119         (record_full_is_used): New function.
14120         (find_full_open): Call record_preopen instead of checking
14121         RECORD_IS_USED.
14122         (init_record_full_ops): Set the target's shortname to
14123         record_full_shortname.
14124         (init_record_full_core_ops): Set the target's shortname to
14125         record_full_core_shortname.
14126         * record-full.h (record_full_is_used): Declare.
14127         * record.c (find_record_target): Make extern.
14128         (record_preopen): New function.
14129         * record.h (RECORD_IS_USED): Delete macro.
14130         (find_record_target, record_preopen): Declare functions.
14131
14132 2014-01-14  Yao Qi  <yao@codesourcery.com>
14133
14134         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14135         'len''s type to ULONGEST.
14136         (core_xfer_shared_libraries_aix): Likewise.
14137         * gdbarch.c, gdbarch.h: Regenerated.
14138         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14139         Change type of 'len' to ULONGEST.
14140         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14141         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14142
14143 2014-01-14  Yao Qi  <yao@codesourcery.com>
14144
14145         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14146         type of 'len' to ULONGEST.
14147         (linux_xfer_osdata_processgroups): Likewise.
14148         (linux_xfer_osdata_threads): Likewise.
14149         (linux_xfer_osdata_fds): Likewise.
14150         (linux_xfer_osdata_isockets): Likewise.
14151         (linux_xfer_osdata_shm): Likewise.
14152         (linux_xfer_osdata_sem): Likewise.
14153         (linux_xfer_osdata_msg): Likewise.
14154         (linux_common_xfer_osdata): Likewise.
14155         (struct osdata_type) <getter>: Likewise.
14156         * common/linux-osdata.h (linux_common_xfer_osdata): Update
14157         the declaration.
14158
14159 2014-01-14  Yao Qi  <yao@codesourcery.com>
14160
14161         * target.h (target_xfer_partial_ftype): Update.
14162         (struct target_ops) <to_xfer_partial>: Change 'len' type to
14163         ULONGEST.
14164         * aix-thread.c (aix_thread_xfer_partial): Change type of
14165         argument 'len' to ULONGEST.
14166         * auxv.c (procfs_xfer_auxv): Likewise.
14167         (ld_so_xfer_auxv): Likewise.
14168         (memory_xfer_auxv): Likewise.
14169         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14170         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14171         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14172         * corelow.c (core_xfer_partial): Likewise.
14173         * ctf.c (ctf_xfer_partial): Likewise.
14174         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
14175         '%u'.
14176         (darwin_read_dyld_info): Likewise.
14177         (darwin_xfer_partial): Likewise.
14178         * exec.c (section_table_xfer_memory_partial): Likewise.
14179         (exec_xfer_partial): Likewise.
14180         * exec.h (section_table_xfer_memory_partial): Update
14181         declaration.
14182         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
14183         instead of plongest.
14184         (gnu_xfer_partial): Likewise.
14185         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14186         (ia64_hpux_xfer_solib_got): Likewise.
14187         (ia64_hpux_xfer_partial): Likewise.
14188         * ia64-linux-nat.c (ia64_linux_xfer_partial):
14189         * inf-ptrace.c (inf_ptrace_xfer_partial):
14190         * inf-ttrace.c (inf_ttrace_xfer_partial):
14191         * linux-nat.c (linux_xfer_siginfo): Likewise.
14192         (linux_nat_xfer_partial): Likewise.
14193         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14194         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14195         * monitor.c (monitor_xfer_memory): Likewise.
14196         (monitor_xfer_partial): Likewise.
14197         * procfs.c (procfs_xfer_partial): Likewise.
14198         * record-full.c (record_full_xfer_partial): Likewise.
14199         (record_full_core_xfer_partial): Likewise.
14200         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
14201         instead of plongest.
14202         (gdbsim_xfer_partial): Likewise.
14203         * remote.c (remote_xfer_partial): Likewise.
14204         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14205         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14206         declaration.
14207         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14208         (rs6000_xfer_shared_libraries): Likewise.
14209         * sol-thread.c (sol_thread_xfer_partial): Likewise.
14210         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14211         (sparc_xfer_partial): Likewise.
14212         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14213         (spu_xfer_partial): Likewise.
14214         * spu-multiarch.c (spu_xfer_partial): Likewise.
14215         * target.c (target_read_live_memory): Likewise.
14216         (memory_xfer_live_readonly_partial): Likewise.
14217         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14218         (target_xfer_partial, default_xfer_partial): Likewise.
14219         (current_xfer_partial): Likewise.
14220         * tracepoint.c (tfile_xfer_partial): Likewise.
14221         * windows-nat.c (windows_xfer_memory): Likewise.  Call
14222         pulongest instead of plongest.
14223         (windows_xfer_partial): Likewise.
14224         (windows_xfer_shared_libraries): Likewise.
14225
14226 2014-01-14  Yao Qi  <yao@codesourcery.com>
14227
14228         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14229         target_xfer_partial_ftype.
14230
14231 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
14232
14233         PR python/15464
14234         PR python/16113
14235         * valops.c (value_struct_elt_bitpos): New function
14236         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14237         object to 'None' if the field name is an empty string ("").
14238         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14239         attribute to look for a field when 'name' is 'None'.
14240         (get_field_type): New function
14241
14242 2014-01-13  Doug Evans  <dje@google.com>
14243
14244         PR symtab/16426
14245         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14246         (try_open_dwop_file): Ditto.
14247         * gdb_bfd.c: #include "vec.h".
14248         (bfdp): New typedef.
14249         (struct gdb_bfd_data): New member included_bfds.
14250         (gdb_bfd_unref): Unref all included bfds.
14251         (gdb_bfd_record_inclusion): New function.
14252         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14253
14254 2014-01-13  Tom Tromey  <tromey@redhat.com>
14255
14256         * gdbcore.h (deprecated_core_resize_section_table): Remove.
14257
14258 2014-01-13  Tom Tromey  <tromey@redhat.com>
14259
14260         * defs.h (use_windows): Remove.
14261         * gdb.c (main): Update.
14262         * main.c (captured_main, gdb_main): Update.
14263         * main.h (struct captured_main_args) <use_windows>: Remove.
14264         * top.c (use_windows): Remove.
14265
14266 2014-01-13  Tom Tromey  <tromey@redhat.com>
14267
14268         * defs.h (deprecated_flush_hook): Remove.
14269
14270 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
14271
14272         PR threads/16216
14273         * linux-thread-db.c (try_thread_db_load): Add parameter
14274         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
14275         (try_thread_db_load_from_pdir_1): Move it there from here.
14276         (try_thread_db_load_from_sdir): Update caller.
14277         (try_thread_db_load_from_dir): Move it there from here.
14278
14279 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
14280
14281         * regformats/regdat.sh: Always rewrite the register file.
14282
14283 2014-01-13  Pedro Alves  <palves@redhat.com>
14284
14285         * Makefile.in (CHECK_HEADERS): New variable.
14286         (check-headers:): New rule.
14287
14288 2014-01-13  Tom Tromey  <tromey@redhat.com>
14289
14290         * cli/cli-setshow.c (do_set_command): Update.
14291         * defs.h (deprecated_set_hook): Remove.
14292         * top.c (deprecated_set_hook): Remove.
14293
14294 2014-01-13  Pedro Alves  <palves@redhat.com>
14295
14296         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14297         the tracepoint if the PC is a pseudo-register.
14298
14299 2014-01-13  Tom Tromey  <tromey@redhat.com>
14300
14301         * defs.h (XCALLOC): Remove.
14302         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14303         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14304         * dwarf2loc.c (allocate_piece_closure): Likewise.
14305         * elfread.c (elf_symfile_segments): Likewise.
14306         (elf_symfile_segments): Likewise.
14307         * gdbtypes.c (copy_type_recursive): Likewise.
14308         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14309         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14310         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14311         XCALLOC.
14312         * mt-tdep.c (mt_gdbarch_init): Likewise.
14313         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14314         XCALLOC.
14315         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14316         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14317         * registry.c (registry_alloc_data): Likewise.
14318         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14319         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14320         * serial.c (serial_fdopen_ops): Likewise.
14321         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14322         XCALLOC.
14323         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14324         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14325         not XCALLOC.
14326
14327 2014-01-13  Tom Tromey  <tromey@redhat.com>
14328
14329         * defs.h (XMALLOC): Remove.
14330         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14331         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14332         * cli-out.c (struct ui_out *): Likewise.
14333         * cli/cli-dump.c (add_dump_command): Likewise.
14334         (add_dump_command): Likewise.
14335         * complaints.c (get_complaints): Likewise.
14336         (find_complaint): Likewise.
14337         * dwarf2-frame.c (execute_cfa_program): Likewise.
14338         * dwarf2read.c (abbrev_table_read_table): Likewise.
14339         * gdbarch.sh: Likewise.
14340         * gdbarch.c: Rebuild.
14341         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14342         * interps.c (interp_new): Likewise.
14343         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14344         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14345         * mi/mi-console.c (mi_console_file_new): Likewise.
14346         * mi/mi-interp.c (mi_interpreter_init): Likewise.
14347         * mi/mi-out.c (mi_out_new): Likewise.
14348         * mi/mi-parse.c (mi_parse): Likewise.
14349         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14350         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14351         * observer.c (xalloc_observer_list_node): Likewise.
14352         * regcache.c (regcache_xmalloc_1): Likewise.
14353         * reggroups.c (reggroup_new): Likewise.
14354         (_initialize_reggroup): Likewise.
14355         * registry.c (register_data_with_cleanup): Likewise.
14356         * remote.c (remote_notif_stop_alloc_reply): Likewise.
14357         * ser-base.c (serial_ttystate): Likewise.
14358         * ser-mingw.c (make_pipe_state): Likewise.
14359         * ser-pipe.c (pipe_open): Likewise.
14360         * serial.c (serial_open): Likewise.
14361         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14362         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14363         (tui_alloc_win_info): Likewise.
14364         (tui_add_content_elements): Likewise.
14365         * tui/tui-file.c (tui_file_new): Likewise.
14366         * tui/tui-out.c (tui_out_new): Likewise.
14367         * ui-file.c (mem_file_new): Likewise.
14368         * ui-out.c (push_level): Likewise.
14369         (make_cleanup_ui_out_end): Likewise.
14370         (append_header_to_list): Likewise.
14371         (ui_out_new): Likewise.
14372         * user-regs.c (user_reg_add_builtin): Likewise.
14373
14374 2014-01-13  Tom Tromey  <tromey@redhat.com>
14375
14376         * defs.h (XZALLOC): Remove.
14377         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14378         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14379         (get_ada_tasks_inferior_data): Likewise.
14380         * auto-load.c (get_auto_load_pspace_data): Likewise.
14381         * auxv.c (get_auxv_inferior_data): Likewise.
14382         * bfd-target.c (target_bfd_reopen): Likewise.
14383         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14384         (deprecated_insert_raw_breakpoint): Likewise.
14385         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14386         * corelow.c (core_open): Likewise.
14387         * darwin-nat.c (darwin_check_new_threads): Likewise.
14388         (darwin_attach_pid): Likewise.
14389         * dummy-frame.c (dummy_frame_push): Likewise.
14390         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14391         * dwarf2loc.c (allocate_piece_closure): Likewise.
14392         * elfread.c (elf_symfile_segments): Likewise.
14393         * eval.c (ptrmath_type_p): Likewise.
14394         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14395         * gdbtypes.c (alloc_type_arch): Likewise.
14396         (alloc_type_instance): Likewise.
14397         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14398         * inf-child.c (inf_child_can_use_agent): Likewise.
14399         * inflow.c (get_inflow_inferior_data): Likewise.
14400         * infrun.c (save_infcall_suspend_state): Likewise.
14401         * jit.c (jit_reader_load): Likewise.
14402         (get_jit_objfile_data): Likewise.
14403         (get_jit_program_space_data): Likewise.
14404         (jit_object_open_impl): Likewise.
14405         (jit_symtab_open_impl): Likewise.
14406         (jit_block_open_impl): Likewise.
14407         (jit_frame_sniffer): Likewise.
14408         * linux-fork.c (add_fork): Likewise.
14409         * maint.c (make_command_stats_cleanup): Likewise.
14410         * objfiles.c (get_objfile_pspace_data): Likewise.
14411         * opencl-lang.c (struct lval_closure): Likewise.
14412         * osdata.c (osdata_start_osdata): Likewise.
14413         * progspace.c (new_address_space): Likewise.
14414         (add_program_space): Likewise.
14415         * remote-sim.c (get_sim_inferior_data): Likewise.
14416         * sh-tdep.c (sh_gdbarch_init): Likewise.
14417         * skip.c (Ignore): Likewise.
14418         (skip_delete_command): Likewise.
14419         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14420         (library_list_start_library): Likewise.
14421         (solib_aix_current_sos): Likewise.
14422         * solib-darwin.c (get_darwin_info): Likewise.
14423         (darwin_current_sos): Likewise.
14424         * solib-dsbt.c (get_dsbt_info): Likewise.
14425         * solib-ia64-hpux.c (new_so_list): Likewise.
14426         (ia64_hpux_get_solib_linkage_addr): Likewise.
14427         * solib-spu.c (append_ocl_sos): Likewise.
14428         (spu_current_sos): Likewise.
14429         * solib-svr4.c (get_svr4_info): Likewise.
14430         (svr4_keep_data_in_core): Likewise.
14431         (library_list_start_library): Likewise.
14432         (svr4_default_sos): Likewise.
14433         (svr4_read_so_list): Likewise.
14434         * solib-target.c (library_list_start_library): Likewise.
14435         (solib_target_current_sos): Likewise.
14436         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14437         * symfile-debug.c (install_symfile_debug_logging): Likewise.
14438         * symfile.c (default_symfile_segments): Likewise.
14439         * target-descriptions.c (tdesc_data_init): Likewise.
14440         (tdesc_create_reg): Likewise.
14441         (struct tdesc_type *): Likewise.
14442         (tdesc_create_vector): Likewise.
14443         (tdesc_set_struct_size): Likewise.
14444         (struct tdesc_type *): Likewise.
14445         (tdesc_free_feature): Likewise.
14446         (tdesc_create_feature): Likewise.
14447         * windows-nat.c (windows_add_thread): Likewise.
14448         (windows_make_so): Likewise.
14449         * xml-support.c (gdb_xml_body_text): Likewise.
14450         (gdb_xml_create_parser_and_cleanup): Likewise.
14451         (xml_process_xincludes): Likewise.
14452         * xml-syscall.c (allocate_syscalls_info): Likewise.
14453         (syscall_create_syscall_desc): Likewise.
14454
14455 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
14456
14457         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14458         function, with code from i386_stap_parse_special_token.
14459         (i386_stap_parse_special_token_three_arg_disp): Likewise.
14460         (i386_stap_parse_special_token): Move code to the two functions
14461         above; simplify it.
14462
14463 2014-01-09  Pedro Alves  <palves@redhat.com>
14464             Hui Zhu  <hui@codesourcery.com>
14465
14466         PR gdb/16101
14467         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14468         bp_err_string.  Don't mark the location shlib_disabled if the
14469         error thrown wasn't a generic or memory error.  Catch errors
14470         thrown while inserting breakpoints in overlayed code.  Output
14471         error message of software breakpoints.
14472         * remote.c (remote_insert_breakpoint): If this breakpoint has
14473         target-side commands but this stub doesn't support Z0 packets,
14474         throw NOT_SUPPORTED_ERROR error.
14475         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14476         * target.h (target_insert_breakpoint): Extend comment.
14477         (target_insert_hw_breakpoint): Add comment.
14478
14479 2014-01-08  Pedro Alves  <palves@redhat.com>
14480
14481         * remote.c (remote_add_thread): Add threads silently if starting
14482         up.
14483         (remote_notice_new_inferior): If in all-stop, and starting up,
14484         don't call notice_new_inferior.
14485         (get_current_thread): New function, factored out from ...
14486         (add_current_inferior_and_thread): ... this.  Adjust.
14487         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
14488         found any thread, then select the remote's current thread as GDB's
14489         current thread too.
14490
14491 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14492
14493         * NEWS: Create a new section for the next release branch.
14494         Rename the section of the current branch, now that it has
14495         been cut.
14496
14497 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14498
14499         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14500         * version.in: Bump version to 7.7.50.DATE-cvs.
14501
14502 2014-01-08  Yao Qi  <yao@codesourcery.com>
14503
14504         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14505         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
14506         (spu_xfer_partial): Cast 'buf' to 'const char *'.
14507
14508 2014-01-08  Yao Qi  <yao@codesourcery.com>
14509
14510         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14511         return value of bfd_get_filename to symbol_file_add_from_bfd.
14512
14513 2014-01-08  Pierre Muller  <muller@sourceware.org>
14514
14515         Fix PR16201.
14516         * coff-pe-read.c (struct read_pe_section_data): Add index field.
14517         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14518         to prim_record_mininal_symbol_and_info.
14519         (add_pe_forwarded_sym): Use known section number of forwarded symbol
14520         in call to prim_record_minimal_symbol_and_info.
14521         (read_pe_exported_syms): Set index field of section_data.
14522
14523 2014-01-07  Andrew Pinski  <apinski@cavium.com>
14524
14525         * features/aarch64-core.xml (cpsr): Change to be 64bit.
14526         * features/aarch64.c: Regenerate.
14527
14528 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
14529
14530         * target.c (return_null): Define.
14531         (update_current_target): Use it instead of return_zero for
14532         functions that return a pointer.
14533
14534 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
14535
14536         * source.c (add_path): Fix check for duplicated paths in the previously
14537         included paths.
14538
14539 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
14540
14541         * ada-lang.c: Remove duplicated include statements.
14542         * alphabsd-nat.c: Ditto.
14543         * amd64-darwin-tdep.c: Ditto.
14544         * amd64fbsd-nat.c: Ditto.
14545         * auto-load.c: Ditto.
14546         * ax-gdb.c: Ditto.
14547         * breakpoint.c: Ditto.
14548         * dbxread.c: Ditto.
14549         * fork-child.c: Ditto.
14550         * gdb_usleep.c: Ditto.
14551         * i386-darwin-tdep.c: Ditto.
14552         * i386fbsd-nat.c: Ditto.
14553         * infcmd.c: Ditto.
14554         * inferior.c: Ditto.
14555         * jv-lang.c: Ditto.
14556         * linux-nat.c: Ditto.
14557         * linux-tdep.c: Ditto.
14558         * m68kbsd-nat.c: Ditto.
14559         * m68klinux-nat.c: Ditto.
14560         * microblaze-tdep.c: Ditto.
14561         * mips-linux-tdep.c: Ditto.
14562         * mn10300-tdep.c: Ditto.
14563         * nto-tdep.c: Ditto.
14564         * opencl-lang.c: Ditto.
14565         * osdata.c: Ditto.
14566         * printcmd.c: Ditto.
14567         * regcache.c: Ditto.
14568         * remote-m32r-sdi.c: Ditto.
14569         * remote.c: Ditto.
14570         * symfile.c: Ditto.
14571         * symtab.c: Ditto.
14572         * tilegx-linux-nat.c: Ditto.
14573         * tilegx-tdep.c: Ditto.
14574         * tracepoint.c: Ditto.
14575         * valops.c: Ditto.
14576         * vaxbsd-nat.c: Ditto.
14577         * windows-nat.c: Ditto.
14578         * xtensa-tdep.c: Ditto.
14579
14580 2014-01-07  Yao Qi  <yao@codesourcery.com>
14581
14582         * spu-linux-nat.c (_initialize_spu_nat): Declare.
14583
14584 2014-01-07  Yao Qi  <yao@codesourcery.com>
14585             Joel Brobecker  <brobecker@adacore.com>
14586
14587         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14588         (pdc_write_regs): Likewise.
14589         (fetch_regs_kernel_thread): Likewise.
14590         (store_regs_kernel_thread): Likewise.
14591
14592 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14593
14594         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14595         tagged type objects to their actual type.
14596
14597 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14598
14599         * ada-valprint.c (print_field_values): Add "language" parameter.
14600         Update calls to print_field_values and print_variant_part.
14601         Pass new parameter "language" in call to val_print instead
14602         of "current_language".  Replace call to ada_val_print by call
14603         to val_print.
14604         (print_variant_part): Add "language" parameter.
14605         (ada_val_print_struct_union): Update call to print_field_values.
14606
14607 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14608
14609         * ada-valprint.c (ui_memcpy): Delete.
14610         (ada_print_floating): Update documentation.  Add empty line
14611         between between function documentation and implementation.
14612         Delete variable "buffer".  Use ui_file_xstrdup in place of
14613         ui_file_put.  Minor adjustments following this change.
14614
14615 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14616
14617         * ada-valprint.c (ada_val_print_string): New function,
14618         extracted from ada_val_print_array.
14619         (ada_val_print_array): Replace extracted code by call
14620         to ada_val_print_string followed by a return.  Move
14621         "else" branch to the function's top block.
14622
14623 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14624
14625         * ada-valprint.c (ada_val_print_array): Move implementation
14626         down.  Rename parameter "offset" and "val" into "offset_aligned"
14627         and "original_value" respectively.  Add parameter "offset".
14628
14629 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14630
14631         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14632         re-organizing the code. Change the "???" message printed
14633         when target type is a TYPE_CODE_UNDEF into
14634         "<ref to undefined type>".
14635
14636 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14637
14638         * ada-valprint.c (print_record): Delete, implementation inlined...
14639         (ada_val_print_struct_union): ... here.  Remove call to
14640         ada_check_typedef in inlined implementation.
14641
14642 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14643
14644         * ada-valprint.c (ada_val_print_gnat_array): New function,
14645         extracted from ada_val_print_1;
14646         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14647         (ada_val_print_flt, ada_val_print_struct_union)
14648         (ada_val_print_ref): Likewise.
14649         (ada_val_print_1): Delete variables i and elttype.
14650         Replace extracted-out code by call to corresponding
14651         new functions.
14652
14653 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14654
14655         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14656
14657 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14658
14659         * ada-valprint.c (ada_val_print_1): Replace calls to
14660         ada_val_print_1 by calls to val_print.
14661
14662 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14663
14664         * ada-valprint.c (ada_val_print_1): Add parameter "language".
14665         Update calls to self accordingly.  Replace calls to c_val_print
14666         by calls to val_print.
14667
14668 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14669
14670         * ada-valprint.c (print_record): Delete declaration.
14671         (adjust_type_signedness, ada_val_print_1): Likewise.
14672         (ada_val_print): Move function implementation down.
14673         (print_variant_part, print_field_values, print_record):
14674         Move function implementation up.
14675
14676 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14677
14678         * python/py-type.c (typy_get_name): New function.
14679         (type_object_getset): Add entry for attribute "name".
14680         * NEWS: Add entry mentioning this new attribute.
14681
14682 2014-01-07  Yao Qi  <yao@codesourcery.com>
14683
14684         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14685         statement.
14686
14687 2014-01-07  Yao Qi  <yao@codesourcery.com>
14688
14689         * gnu-nat.c (info_port_rights): Add qualifier const to
14690         argument args.
14691
14692 2014-01-07  Yao Qi  <yao@codesourcery.com>
14693
14694         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14695
14696 2014-01-07  Yao Qi  <yao@codesourcery.com>
14697
14698         * gnu-nat.c (make_inf) Update declaration.
14699         (make_inf): Make it static.
14700         (inf_set_traced): Likewise.
14701         (inf_port_to_thread, inf_task_died_status): Likewise.
14702
14703 2014-01-07  Yao Qi  <yao@codesourcery.com>
14704
14705         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14706
14707 2014-01-07  Yao Qi  <yao@codesourcery.com>
14708
14709         * gnu-nat.c (_initialize_gnu_nat): Declare.
14710
14711 2014-01-07  Yao Qi  <yao@codesourcery.com>
14712
14713         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14714         'enum bfd_endian'.
14715         (struct gdbarch_info) <byte_order>: Change type to
14716         'enum bfd_endian'.
14717         <byte_order_for_code>: Likewise.
14718         * gdbarch.c, gdbarch.h: Regenerated.
14719
14720 2014-01-06  Sasha Smundak  <asmundak@google.com>
14721
14722         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14723
14724 2014-01-06  Tom Tromey  <tromey@redhat.com>
14725
14726         * doublest.c (convert_doublest_to_floatformat): Use const, not
14727         CONST.
14728         * somread.c (som_symtab_read): Likewise.
14729
14730 2014-01-07  Hui Zhu  <hui@codesourcery.com>
14731
14732         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14733         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14734         (gdb_bfd_fopen): Ditto.
14735         (gdb_bfd_openr): Ditto.
14736         (gdb_bfd_openw): Ditto.
14737         (gdb_bfd_openr_iovec): Ditto.
14738         (gdb_bfd_fdopenr): Ditto.
14739         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14740         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14741         with xstrdup.
14742         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14743         with xstrdup.
14744         * symfile-mem.c (symbol_file_add_from_memory): Removed
14745         gdb_bfd_stash_filename.
14746
14747 2014-01-03  Doug Evans  <dje@google.com>
14748
14749         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14750         output.
14751
14752 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14753
14754         Update year range in copyright notice of all files.
14755
14756 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14757
14758         * top.c (print_gdb_version): Set copyright year to 2014.
14759
14760 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14761
14762         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14763
14764 For older changes see ChangeLog-2013.
14765 \f
14766 Local Variables:
14767 mode: change-log
14768 left-margin: 8
14769 fill-column: 74
14770 version-control: never
14771 coding: utf-8
14772 End: