New macro ALL_BLOCK_SYMBOLS_WITH_NAME.
[external/binutils.git] / gdb / ChangeLog
1 2014-11-06  Doug Evans  <xdje42@gmail.com>
2
3         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
4         * block.c (block_lookup_symbol): Use it.
5         * cp-support.c (make_symbol_overload_list_block): Use it.
6         * symtab.c (iterate_over_symbols): Use it.
7
8 2014-11-06  Doug Evans  <xdje42@gmail.com>
9
10         * symtab.c (lookup_block_symbol): Moved to ...
11         * block.c (block_lookup_symbol):  ... here and renamed.
12         All callers updated.
13         * block.h (block_lookup_symbol): Declare.
14         * symtab.h (lookup_block_symbol): Delete.
15
16 2014-11-06  Doug Evans  <xdje42@gmail.com>
17
18         * ada-lang.c (ada_make_symbol_completion_list): Use
19         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
20         * symtab.c (lookup_objfile_from_block): Ditto.
21
22 2014-11-06  Doug Evans  <xdje42@gmail.com>
23
24         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
25         TYPE_CODE_STRUCT.
26
27 2014-11-06  Doug Evans  <xdje42@gmail.com>
28
29         * objfiles.c (get_objfile_arch): Constify.
30         * objfiles.h (get_objfile_arch): Update prototype.
31         * solib.c (solib_global_lookup): Fetch arch from objfile,
32         not target_gdbarch.
33
34 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
35
36         * nios2-tdep.c (wild_insn): Delete.
37         (profiler_insn, irqentry_insn): Delete.
38         (nios2_match_sequence): Delete.
39         (nios2_analyze_prologue): Update comments.  Remove matching
40         of obsolete profiler_insn and irqentry_insn sequences.
41
42 2014-11-05  Alan Modra  <amodra@gmail.com>
43
44         * charset.c (convert_between_encodings): Shrink obstack using
45         obstack_blank_fast.
46         * minsyms.c (install_minimal_symbols): Likewise.
47         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
48         to char* before doing pointer arithmetic.
49
50 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
51
52         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
53
54 2014-11-04  Pedro Alves  <palves@redhat.com>
55
56         * breakpoint.c (breakpoint_thread_match): Delete function.
57         * breakpoint.h (breakpoint_thread_match): Delete declaration.
58
59 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
60
61         PR c++/17494
62         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
63         the method args also under EVAL_SKIP when evaluating method
64         calls under EVAL_SKIP.
65
66 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
67
68         * dwarf2loc.c (read_pieced_value): Do big endian
69         processing only if gdb_regnum is not -1.
70         (write_pieced_value): Ditto.
71
72 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
73
74         * arm-linux-tdep.c (arm_linux_init_abi): Use
75         info.byte_order_for_code to choose endianity of breakpoint
76         instructions snippets.
77
78 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
79
80         * arm-tdep.c (extract_arm_insn): Use
81         gdbarch_byte_order_for_code to read arm instruction.
82
83 2014-11-02  Doug Evans  <xdje42@gmail.com>
84
85         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
86
87 2014-11-02  Doug Evans  <xdje42@gmail.com>
88
89         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
90         main_subfile before returning.
91
92 2014-10-31  Doug Evans  <xdje42@gmail.com>
93
94         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
95         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
96
97 2014-10-31  Doug Evans  <xdje42@gmail.com>
98
99         * valops.c (value_cast_pointers): Fix whitespace.
100         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
101         Ditto.
102
103 2014-10-30  Doug Evans  <dje@google.com>
104
105         * NEWS: Mention ability add attributes to gdb.Objfile and
106         gdb.Progspace objects.
107         * python/py-objfile.c (objfile_object): New member dict.
108         (objfpy_dealloc): Py_XDECREF dict.
109         (objfpy_initialize): Initialize dict.
110         (objfile_getset): Add __dict__.
111         (objfile_object_type): Set tp_dictoffset member.
112         * python/py-progspace.c (progspace_object): New member dict.
113         (pspy_dealloc): Py_XDECREF dict.
114         (pspy_initialize): Initialize dict.
115         (pspace_getset): Add __dict__.
116         (pspace_object_type): Set tp_dictoffset member.
117
118 2014-10-30  Yao Qi  <yao@codesourcery.com>
119
120         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
121         replace '\\' with '\\\\'.
122
123 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
124
125         GDB 7.8.1 released.
126
127 2014-10-29  Pedro Alves  <palves@redhat.com>
128
129         PR gdb/17408
130         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
131         instead of assuming a thread with a stepping range is always
132         stepping.
133
134 2014-10-29  Pedro Alves  <palves@redhat.com>
135
136         PR python/17372
137         * event-top.c (change_line_handler): Call
138         gdb_rl_callback_handler_remove instead of
139         rl_callback_handler_remove.
140         (callback_handler_installed): New global.
141         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
142         (gdb_rl_callback_handler_reinstall): New functions.
143         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
144         gdb_rl_callback_handler_install instead of
145         rl_callback_handler_remove and rl_callback_handler_install.
146         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
147         instead of rl_callback_handler_remove.
148         * event-top.h (gdb_rl_callback_handler_remove)
149         (gdb_rl_callback_handler_install)
150         (gdb_rl_callback_handler_reinstall): New declarations.
151         * infrun.c (reinstall_readline_callback_handler_cleanup): New
152         cleanup function.
153         (fetch_inferior_event): Install it.
154         * top.c (gdb_readline_wrapper_line) Call
155         gdb_rl_callback_handler_remove instead of
156         rl_callback_handler_remove.
157         (gdb_readline_wrapper_cleanup): Don't call
158         rl_callback_handler_install.
159
160 2014-10-29  Pedro Alves  <palves@redhat.com>
161
162         * event-top.c (command_line_handler): Clear the first byte of
163         linebuffer, when it is first allocated.
164
165 2014-10-29  Pedro Alves  <palves@redhat.com>
166
167         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
168         TRY_CATCH.
169
170 2014-10-29  Pedro Alves  <palves@redhat.com>
171
172         PR tui/16138
173         PR tui/17519
174         * tui/tui-interp.c (tui_is_toplevel): Delete global.
175         (tui_allowed_p): Delete function.
176         * tui/tui.c: Include "interps.h".
177         (tui_enable): Don't use tui_allowed_p.  Error out here with
178         detailed error messages if the TUI is the top level interpreter,
179         or if output is not a terminal.  Use newterm instead of initscr,
180         and error out if initializing the terminal fails.  Also error out if
181         the terminal doesn't support cursor addressing.
182         * tui/tui.h (tui_allowed_p): Delete declaration.
183
184 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
185
186         * arm-tdep.c (arm_skip_stack_protector): Return early if
187         address loaded by first "ldr" instruction does not have
188         a corresponding minimal symbol.  Update comment.
189
190 2014-10-29  Yao Qi  <yao@codesourcery.com>
191
192         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
193         loaded address correctly of ldr instruction.
194
195 2014-10-28  Pedro Alves  <palves@redhat.com>
196
197         PR gdb/12623
198         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
199         field.
200         * infrun.c (resume) <stepping breakpoint instruction>: Set the
201         thread's stepped_breakpoint field.  Skip if reverse debugging.
202         Add comment.
203         (init_thread_stepping_state, handle_signal_stop): Clear the
204         thread's stepped_breakpoint field.
205
206 2014-10-27  Pedro Alves  <palves@redhat.com>
207
208         * remote.c (remote_thread_alive): New, factored out from ...
209         (remote_thread_alive): ... this.
210         (remote_update_thread_list): Bail out before deleting threads if
211         the target returned an empty list, and, the current thread has a
212         magic/fake ptid.
213
214 2014-10-27  Pedro Alves  <palves@redhat.com>
215
216         * infrun.c (handle_signal_stop): Also skip handlers when a random
217         signal arrives while handling a "stepi" or a "nexti".  Set the
218         thread's 'step_after_step_resume_breakpoint' flag.
219
220 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
221
222         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
223         (arm_record_ld_st_imm_offset): Reimplement to cover all
224         load/store cases for ARM opcode 010.
225         (arm_record_ld_st_multiple): Reimplement to cover all
226         load/store cases for ARM opcode 100.
227
228 2014-10-26  Doug Evans  <xdje42@gmail.com>
229
230         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
231
232 2014-10-26  Doug Evans  <xdje42@gmail.com>
233
234         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
235         parameter "kind" to "block_index".
236         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
237         "block_index".
238         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
239
240 2014-10-26  Doug Evans  <xdje42@gmail.com>
241
242         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
243
244 2014-10-26  Doug Evans  <xdje42@gmail.com>
245
246         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
247         obstack_alloc.
248
249 2014-10-26  Doug Evans  <xdje42@gmail.com>
250
251         * parser-defs.h (block_found): Move decl from here ...
252         * symtab.h (block_found): ... to here.
253
254 2014-10-26  Doug Evans  <xdje42@gmail.com>
255
256         * symtab.h (struct field_of_this_result): Fix typo in comment.
257         (lookup_symbol_in_language): Move function comment here.
258         (lookup_symbol): Improve function comment.
259         (basic_lookup_symbol_nonlocal): Ditto.
260         (lookup_symbol_static, lookup_symbol_global): Ditto.
261         (lookup_symbol_aux_block): Ditto.
262         (lookup_language_this): Add function comment.
263         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
264         function comment.
265         (lookup_block_symbol): Improve function comment.
266         (lookup_struct): Fix capitalization in function comment.
267         (lookup_transparent_type): Add function comment.
268         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
269         Improve function comment.
270         (lookup_objfile_from_block): Add function comment.
271         * symtab.c (lookup_symbol_in_language): Update function comment.
272         (lookup_symbol, lookup_language_this): Ditto.
273         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
274         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
275         (basic_lookup_symbol_nonlocal): Ditto.
276         (lookup_symbol_static, lookup_symbol_global): Ditto.
277         (lookup_transparent_type, lookup_block_symbol): Ditto.
278
279 2014-10-25  Doug Evans  <xdje42@gmail.com>
280
281         * symtab.c (types_info): Delete forward decl.
282         (functions_info, variables_info, sources_info): Ditto.
283         (_initialize_symtab): Rewrite forward decl to use
284         initialize_file_ftype.
285
286 2014-10-25  Doug Evans  <xdje42@gmail.com>
287
288         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
289
290 2014-10-25  Doug Evans  <xdje42@gmail.com>
291
292         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
293         of local var child_die.
294
295 2014-10-24  Don Breazeal  <donb@codesourcery.com>
296
297         * infrun.c (follow_fork_inferior): Update fork message printing
298         to use target_terminal_ours_for_output instead of
299         target_terminal_ours, to use _() for all format strings, to print
300         "vfork" instead of "fork" for vforks, and to add a detach message.
301         (handle_vfork_child_exec_or_exit): Update message printing to use
302         target_terminal_ours_for_output instead of target_terminal_ours, to
303         use _() for all format strings, and to fix some formatting.
304
305 2014-10-24  Pedro Alves  <palves@redhat.com>
306
307         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
308         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
309         * config/vax/vax.mh: Delete.
310         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
311         obsolete configurations section.
312         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
313         * vax-nat.c: Delete file.
314
315 2014-10-24  Pedro Alves  <palves@redhat.com>
316
317         * NEWS (Removed targets): Add OS/arch column.
318
319 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
320
321         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
322         on the arg type of a constructor only if it is of reference type.
323
324 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
325
326         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
327         accessors and constants from nios2 opcodes update.
328         (nios2_get_next_pc): Likewise.
329
330 2014-10-19  Doug Evans  <xdje42@gmail.com>
331
332         * gdbthread.h (set_running): Fix comment.
333         (set_executing, finish_thread_state): Fix comment.
334
335 2014-10-18  Doug Evans  <xdje42@gmail.com>
336
337         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
338
339 2014-10-17  Doug Evans  <dje@google.com>
340
341         * NEWS: Mention new event gdb.clear_objfiles.
342         * python/py-event.h (emit_clear_objfiles_event): Clear
343         * python/py-events.h (events_object): New member clear_objfiles.
344         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
345         event.
346         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
347         emit clear_objfiles event.
348         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
349         function.
350         (emit_clear_objfiles_event): New function.
351         (clear_objfiles): New event.
352         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
353         Declare.
354         * python/python.c (_initialize_python): Call
355         gdbpy_initialize_clear_objfiles_event.
356
357 2014-10-17  Doug Evans  <dje@google.com>
358
359         * NEWS: Mention new gdb.Objfile.progspace attribute.
360         * python/py-objfile.c (objfpy_get_progspace): New function.
361         (objfile_getset): New entry for "progspace".
362
363 2014-10-17  Pedro Alves  <palves@redhat.com>
364
365         PR gdb/17471
366         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
367         returns a copy of the input.
368         (run_command_1, continue_command, step_1, jump_command)
369         (signal_command, until_command, advance_command, finish_command)
370         (attach_command): Adjust and install a cleanup to free the
371         stripped args.
372
373 2014-10-17  Pedro Alves  <palves@redhat.com>
374
375         PR gdb/17300
376         * infcmd.c (continue_1): If continuing all threads in the
377         foreground, make sure the inferior's terminal settings are put in
378         effect.
379
380 2014-10-17  Pedro Alves  <palves@redhat.com>
381
382         PR gdb/17472
383         * annotate.c (annotate_breakpoints_invalid): Use
384         target_terminal_our_for_output instead of target_terminal_ours.
385         Give back the terminal to the target.
386         (annotate_frames_invalid): Likewise.
387
388 2014-10-17  Pedro Alves  <palves@redhat.com>
389
390         * target.c (enum terminal_state): New enum.
391         (terminal_state): New global.
392         (target_terminal_init): New function.
393         (target_terminal_inferior): Skip if inferior already owns the
394         terminal.
395         (target_terminal_ours, target_terminal_ours_for_output): New
396         functions.
397         * target.h (target_terminal_init): Convert to function prototype.
398         (target_terminal_ours_for_output): Convert to function prototype
399         and tweak comment.
400         (target_terminal_ours): Convert to function prototype and tweak
401         comment.
402         * windows-nat.c (do_initial_windows_stuff): Call
403         target_terminal_init instead of child_terminal_init_with_pgrp.
404
405 2014-10-17  Pedro Alves  <palves@redhat.com>
406
407         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
408         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
409         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
410         solib-osf.c.
411         * NEWS: Mention that support for alpha*-*-osf* has been removed.
412         * ada-lang.h [__alpha__ && __osf__]
413         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
414         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
415         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
416         GDB_OSABI_OSF1.
417         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
418         files.
419         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
420         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
421         * configure: Regenerate.
422         * configure.ac: Remove references to osf.
423         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
424         section.  Remove all other references to osf.
425         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
426         Remove all other references to osf.
427         * dec-thread.c: Delete file.
428         * defs.h (GDB_OSABI_OSF1): Delete.
429         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
430         defined.
431         * osabi.c (gdb_osabi_names): Delete "OSF/1".
432         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
433         Delete code.
434         (unconditionally_kill_inferior)
435         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
436         * solib-osf.c: Delete file.
437
438 2014-10-17  Pedro Alves  <palves@redhat.com>
439
440         * remote.c (clear_threads_listing_context): Move higher up, out of
441         the HAVE_LIBEXPAT guard.
442
443 2014-10-16  Tristan Gingold  <gingold@adacore.com>
444
445         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
446         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
447         on amd64.
448
449 2014-10-15  Pedro Alves  <palves@redhat.com>
450
451         * dec-thread.c (dec_thread_count_gdb_threads)
452         (dec_thread_add_gdb_thread): Delete.
453         (dec_thread_update_thread_list): Delete.
454         (dec_thread_find_new_threads): Rename to ...
455         (dec_thread_update_thread_list): ... this.  Delete GDB-size
456         threads that are no longer found in dec_thread_list.
457         (resync_thread_list): Delete.
458         (dec_thread_wait): Call dec_thread_update_thread_list instead of
459         resync_thread_list.
460
461 2014-10-15  Pedro Alves  <palves@redhat.com>
462
463         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
464         * remote.c (remote_update_thread_list): Skip calling prune_threads
465         if any thread listing method is supported, and instead walk over
466         the set of remote threads listed, deleting those that are not
467         found in GDB's thread list.
468
469 2014-10-15  Pedro Alves  <palves@redhat.com>
470
471         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
472         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
473         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
474         (bsd_uthread_target): Adjust.
475         * corelow.c (core_open): Adjust.
476         * dec-thread.c (dec_thread_find_new_threads): Update comment.
477         (dec_thread_update_thread_list): New function.
478         (init_dec_thread_ops): Adjust.
479         * gdbthread.h (prune_threads): New declaration.
480         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
481         (thread_db_update_thread_list): ... this.  Call prune_threads.
482         (init_thread_db_ops): Adjust.
483         * nto-procfs.c (procfs_find_new_threads): Rename to ...
484         (procfs_update_thread_list): ... this.  Call prune_threads.
485         (procfs_attach, procfs_create_inferior, init_procfs_targets):
486         Adjust.
487         * obsd-nat.c (obsd_find_new_threads): Rename to ...
488         (obsd_update_thread_list): ... this.  Call prune_threads.
489         (obsd_add_target): Adjust.
490         * procfs.c (procfs_target): Adjust.
491         (procfs_notice_thread): Update comment.
492         (procfs_find_new_threads): Rename to ...
493         (procfs_update_thread_list): ... this.  Call prune_threads.
494         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
495         comment.
496         (ravenscar_wait): Adjust.
497         (ravenscar_find_new_threads): Rename to ...
498         (ravenscar_update_thread_list): ... this.  Call prune_threads.
499         (init_ravenscar_thread_ops): Adjust.
500         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
501         (record_btrace_update_thread_list): ... this.  Adjust comment.
502         (init_record_btrace_ops): Adjust.
503         * remote.c (remote_threads_info): Rename to ...
504         (remote_update_thread_list): ... this.  Call prune_threads.
505         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
506         Adjust.
507         * sol-thread.c (check_for_thread_db): Adjust.
508         (sol_find_new_threads_callback): Rename to ...
509         (sol_update_thread_list_callback): ... this.
510         (sol_find_new_threads): Rename to ...
511         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
512         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
513         * target-delegates.c: Regenerate.
514         * target.c (target_find_new_threads): Rename to ...
515         (target_update_thread_list): ... this.
516         * target.h (struct target_ops): Rename to_find_new_threads field
517         to to_update_thread_list.
518         (target_find_new_threads): Rename to ...
519         (target_update_thread_list): ... this.
520         * thread.c (prune_threads): Make extern.
521         (update_thread_list): Adjust.
522
523 2014-10-15  Pedro Alves  <palves@redhat.com>
524
525         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
526         Add describing comment.  Return -1 if the qL packet is not
527         supported.
528         (struct thread_item, thread_item_t): Move higher up in
529         the file.  Add comments.
530         (struct threads_parsing_context): Move higher up in
531         the file, add comments, and remote to ...
532         (struct threads_listing_context): ... this.
533         (remote_newthread_step): Don't add the thread to GDB's thread
534         database here.  Instead push it to the thread_listing_context
535         list.
536         (remote_find_new_threads): Rename to ...
537         (remote_get_threads_with_ql): ... this.  Add target_ops and
538         targets_listing_context parameters.  Pass down context.
539         (start_thread): Adjust.
540         (clear_threads_parsing_context): Rename to ...
541         (clear_threads_listing_context): ... this.
542         (remote_get_threads_with_qxfer): New, with parts salvaged from old
543         remote_threads_info.
544         (remote_get_threads_with_qthreadinfo): Ditto.
545         (remote_threads_info): Reimplement.
546
547 2014-10-15  Pedro Alves  <palves@redhat.com>
548
549         * infrun.c (resume): Don't force displaced-stepping for all
550         single-steps on software single-stepping archs.
551
552 2014-10-15  Pedro Alves  <palves@redhat.com>
553
554         * breakpoint.c (single_step_breakpoints): Delete global.
555         (insert_single_step_breakpoint): Adjust to store the breakpoint
556         pointer in the current thread.
557         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
558         (cancel_single_step_breakpoints): Delete functions.
559         (breakpoint_has_location_inserted_here): Make extern.
560         (single_step_breakpoint_inserted_here_p): Adjust to walk the
561         breakpoint list.
562         * breakpoint.h (breakpoint_has_location_inserted_here): New
563         declaration.
564         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
565         (cancel_single_step_breakpoints): Remove declarations.
566         * gdbthread.h (struct thread_control_state)
567         <single_step_breakpoints>: New field.
568         (delete_single_step_breakpoints)
569         (thread_has_single_step_breakpoints_set)
570         (thread_has_single_step_breakpoint_here): New declarations.
571         * infrun.c (follow_exec): Also clear the single-step breakpoints.
572         (singlestep_breakpoints_inserted_p, singlestep_ptid)
573         (singlestep_pc): Delete globals.
574         (infrun_thread_ptid_changed): Remove references to removed
575         globals.
576         (resume_cleanups): Delete the current thread's single-step
577         breakpoints.
578         (maybe_software_singlestep): Remove references to removed globals.
579         (resume): Adjust to use thread_has_single_step_breakpoints_set and
580         delete_single_step_breakpoints.
581         (init_wait_for_inferior): Remove references to removed globals.
582         (delete_thread_infrun_breakpoints): Delete the thread's
583         single-step breakpoints too.
584         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
585         single-step breakpoints here.
586         (delete_stopped_threads_single_step_breakpoints): New function.
587         (adjust_pc_after_break): Adjust to use
588         thread_has_single_step_breakpoints_set.
589         (handle_inferior_event): Remove references to removed globals.
590         Use delete_stopped_threads_single_step_breakpoints.
591         (handle_signal_stop): Adjust to per-thread single-step
592         breakpoints.  Swap test order to do cheaper tests first.
593         (switch_back_to_stepped_thread): Extend debug output.  Remove
594         references to removed globals.
595         * record-full.c (record_full_wait_1): Adjust to per-thread
596         single-step breakpoints.
597         * thread.c (delete_single_step_breakpoints)
598         (thread_has_single_step_breakpoints_set)
599         (thread_has_single_step_breakpoint_here): New functions.
600         (clear_thread_inferior_resources): Also delete the thread's
601         single-step breakpoints.
602
603 2014-10-15  Pedro Alves  <palves@redhat.com>
604
605         * thread.c (delete_thread_breakpoint): New function.
606         (delete_step_resume_breakpoint)
607         (delete_exception_resume_breakpoint): Use it.
608         (delete_at_next_stop): New function.
609         (clear_thread_inferior_resources): Use delete_at_next_stop.
610
611 2014-10-15  Pedro Alves  <palves@redhat.com>
612
613         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
614         (breakpoint_inserted_here_p): ... here.  Remove special case for
615         software single-step breakpoints.
616         (find_non_raw_software_breakpoint_inserted_here): Inline ...
617         (software_breakpoint_inserted_here_p): ... here.  Remove special
618         case for software single-step breakpoints.
619         (bp_target_info_copy_insertion_state)
620         (deprecated_insert_raw_breakpoint)
621         (deprecated_remove_raw_breakpoint): Delete functions.
622         * breakpoint.h (deprecated_insert_raw_breakpoint)
623         (deprecated_remove_raw_breakpoint): Remove declarations.
624
625 2014-10-15  Pedro Alves  <palves@redhat.com>
626
627         PR breakpoints/9649
628         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
629         Delete array globals.
630         (single_step_breakpoints): New global.
631         (breakpoint_xfer_memory): Remove special handling for single-step
632         breakpoints.
633         (update_breakpoints_after_exec): Delete bp_single_step
634         breakpoints.
635         (detach_breakpoints): Remove special handling for single-step
636         breakpoints.
637         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
638         (bpstat_stop_status): Add comment.
639         (bpstat_what, bptype_string, print_one_breakpoint_location)
640         (adjust_breakpoint_address, init_bp_location): Handle
641         bp_single_step.
642         (new_single_step_breakpoint): New function.
643         (set_momentary_breakpoint, bkpt_remove_location): Remove special
644         handling for single-step breakpoints.
645         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
646         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
647         Rewrite.
648         (detach_single_step_breakpoints, find_single_step_breakpoint):
649         Delete functions.
650         (breakpoint_has_location_inserted_here): New function.
651         (single_step_breakpoint_inserted_here_p): Rewrite.
652         * breakpoint.h: Remove FIXME.
653         (enum bptype) <bp_single_step>: New enum value.
654         (insert_single_step_breakpoint): Update comment.
655         * infrun.c (resume_cleanups)
656         (delete_step_thread_step_resume_breakpoint): Remove single-step
657         breakpoints.
658         (fetch_inferior_event): Install a cleanup that removes infrun
659         breakpoints.
660         (switch_back_to_stepped_thread) <expect thread advanced also>:
661         Clear step-over info.
662
663 2014-10-15  Pedro Alves  <palves@redhat.com>
664
665         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
666         (delete_thread_infrun_breakpoints): New function, with parts
667         salvaged from delete_step_resume_breakpoint_callback.
668         (delete_step_thread_step_resume_breakpoint): Delete.
669         (for_each_just_stopped_thread_callback_func): New typedef.
670         (for_each_just_stopped_thread): New function.
671         (delete_just_stopped_threads_infrun_breakpoints): New function.
672         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
673         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
674         ... this.  Adjust.
675         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
676
677 2014-10-15  Pedro Alves  <palves@redhat.com>
678
679         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
680         trying to step past a non-steppable watchpoint.
681         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
682         field.
683         * infrun.c (struct step_over_info): Add new field
684         'nonsteppable_watchpoint_p' and adjust comments.
685         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
686         Adjust.
687         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
688         (stepping_past_nonsteppable_watchpoint): New function.
689         (step_over_info_valid_p): Also return true if stepping past a
690         nonsteppable watchpoint.
691         (proceed): Adjust call to set_step_over_info.  Remove reference to
692         init_infwait_state.
693         (init_wait_for_inferior): Remove reference to init_infwait_state.
694         (waiton_ptid): Delete global.
695         (struct execution_control_state)
696         <stepped_after_stopped_by_watchpoint>: Delete field.
697         (wait_for_inferior, fetch_inferior_event): Always pass
698         minus_one_ptid to target_wait.
699         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
700         field.
701         (init_infwait_state): Delete function.
702         (handle_inferior_event): Remove infwait_state handling.
703         (handle_signal_stop) <watchpoints handling>: Adjust after
704         stepped_after_stopped_by_watchpoint removal.  Don't remove
705         breakpoints here nor set infwait_state.  Set the thread's
706         stepping_over_watchpoint flag, and call keep_going instead.
707         (keep_going): Handle stepping_over_watchpoint.  Adjust
708         set_step_over_info calls.
709         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
710         function.
711
712 2014-10-15  Pedro Alves  <palves@redhat.com>
713
714         * infrun.c (step_over_info_valid_p): New function.
715         (resume): Use step_over_info_valid_p instead of checking the
716         threads's trap_expected flag.
717
718 2014-10-15  Doug Evans  <dje@google.com>
719             Walfred Tedeschi  <walfred.tedeschi@intel.com>
720
721         PR python/17364
722         * python/lib/gdb/__init__.py (packages): Add "printer".
723         * python/lib/gdb/command/bound_registers.py: Moved to ...
724         * python/lib/gdb/printer/bound_registers.py: ... here.
725         Add printer to global set of builtin printers.  Rename printer from
726         "bound" to "mpx_bound128".
727         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
728         registered as global "builtin" printer.
729         (add_builtin_pretty_printer): New function.
730         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
731         gdb/printer/__init__.py.
732
733 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
734
735         * Makefile.in (SFILES): Remove d-support.c.
736         (COMMON_OBS): Remove d-support.o.
737         * d-lang.h (d_parse_symbol): Remove declaration.
738         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
739         * d-support.c: Remove file.
740
741 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
742
743         * gdb/infrun.c (process_event_stop_test): Apply
744         gdbarch_addr_bits_remove to longjmp resume address.
745
746 2014-10-15  Pedro Alves  <palves@redhat.com>
747
748         * regformats/microblaze.dat: Delete file.
749
750 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
751
752         * features/Makefile (microblaze-expedite): Replace pc with rpc.
753         * regformats/microblaze-with-stack-protect.dat: Regenerate.
754
755 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
756
757         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
758         as non-trivial.
759
760 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
761
762         PR c++/13403
763         PR c++/15154
764         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
765         with qualified args.
766
767 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
768
769         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
770         of the case where the second operand is a pointer.
771         <BINOP_SUB>: Likewise.
772
773 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
774
775         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
776         only if it is not NULL.
777         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
778         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
779         (struct probe_ops) <clear_semaphore>: Likewise.
780         * tracepoint.c (start_tracing): Call set_semaphore only if it is
781         not NULL.
782         (stop_tracing): Likewise, for clear_semaphore.
783
784 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
785
786         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
787         using language_c, instead of current_language.
788
789 2014-10-13  Doug Evans  <dje@google.com>
790
791         * python/py-objfile.c (objfpy_initialize): New function.
792         (objfpy_new, objfile_to_objfile_object): Call it.
793         * python/py-progspace.c (pspy_initialize): New function.
794         (pspy_new, pspace_to_pspace_object): Call it.
795
796 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
797             Jan Kratochvil  <jan.kratochvil@redhat.com>
798
799         Fix "save breakpoints" for "catch" command.
800         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
801         newline.
802
803 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
804
805         Fix "save breakpoints" for "disable $bpnum" command.
806         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
807
808 2014-10-10  Pedro Alves  <palves@redhat.com>
809
810         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
811         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
812         (HFILES_NO_SRCDIR): Remove solib-irix.h.
813         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
814         and been removed.
815         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
816         * configure.ac: Remove references to IRIX.
817         * configure.host: Add *-*-irix* to the obsolete hosts section.
818         Remove all other references to irix.
819         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
820         Delete files.
821
822 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
823
824         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
825         isn't valid, release the tdesc arch data and return NULL.
826
827 2014-10-10  Pedro Alves  <palves@redhat.com>
828
829         * linux-tdep.c: Include observer.h.
830         (linux_inferior_data): New global.
831         (struct linux_info): New structure.
832         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
833         (get_linux_inferior_data): New functions.
834         (linux_vsyscall_range): Rename to ...
835         (linux_vsyscall_range_raw): ... this.
836         (linux_vsyscall_range): New function; handles caching.
837         (_initialize_linux_tdep): Register linux_inferior_data.  Install
838         inferior_exit and inferior_appeared observers.
839
840 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
841             Pedro Alves  <palves@redhat.com>
842
843         PR symtab/14466
844         * solib-svr4.c (svr4_read_so_list): Rename to ...
845         (svr4_current_sos_1): ... this and change the function comment.
846         (svr4_current_sos): New function.
847
848 2014-10-10  Pedro Alves  <palves@redhat.com>
849
850         * arch-utils.c (default_vsyscall_range): New function.
851         * arch-utils.h (default_vsyscall_range): New declaration.
852         * gdbarch.sh (vsyscall_range): New hook.
853         * gdbarch.h, gdbarch.c: Regenerate.
854         * linux-tdep.c (linux_vsyscall_range): New function.
855         (linux_init_abi): Install linux_vsyscall_range as
856         vsyscall_range gdbarch hook.
857         * memrange.c (address_in_mem_range): New function.
858         * memrange.h (address_in_mem_range): New declaration.
859         * symfile-mem.c (find_vdso_size): Delete function.
860         (add_vsyscall_page): Use gdbarch_vsyscall_range.
861
862 2014-10-10  Pedro Alves  <palves@redhat.com>
863
864         * infrun.c (normal_stop): Fix typo in comment.
865
866 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
867
868         PR tdep/9390
869         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
870         typo when using logical AND to determine instruction type.
871
872 2014-10-09  Yao Qi  <yao@codesourcery.com>
873
874         * infrun.c (handle_signal_stop): Remove local variable
875         'printed'.
876
877 2014-10-08  Stan Shebs  <stan@codesourcery.com>
878
879         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
880
881 2014-10-08  Gary Benson  <gbenson@redhat.com>
882
883         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
884
885 2014-10-08  Gary Benson  <gbenson@redhat.com>
886
887         * common/common-defs.h: Include common-exceptions.h.
888         * exceptions.h: Do not include common-exceptions.h.
889
890 2014-10-08  Gary Benson  <gbenson@redhat.com>
891
892         * common/common-defs.h: Include cleanups.h.
893         * common/common-exceptions.c: Do not include cleanups.h.
894         * utils.h: Likewise.
895
896 2014-10-08  Gary Benson  <gbenson@redhat.com>
897
898         * ada-lang.c: Do not include exceptions.h.
899         * ada-valprint.c: Likewise.
900         * amd64-tdep.c: Likewise.
901         * auto-load.c: Likewise.
902         * block.c: Likewise.
903         * break-catch-throw.c: Likewise.
904         * breakpoint.c: Likewise.
905         * btrace.c: Likewise.
906         * c-lang.c: Likewise.
907         * cli/cli-cmds.c: Likewise.
908         * cli/cli-interp.c: Likewise.
909         * cli/cli-script.c: Likewise.
910         * completer.c: Likewise.
911         * corefile.c: Likewise.
912         * corelow.c: Likewise.
913         * cp-abi.c: Likewise.
914         * cp-support.c: Likewise.
915         * cp-valprint.c: Likewise.
916         * darwin-nat.c: Likewise.
917         * dwarf2-frame-tailcall.c: Likewise.
918         * dwarf2-frame.c: Likewise.
919         * dwarf2loc.c: Likewise.
920         * dwarf2read.c: Likewise.
921         * eval.c: Likewise.
922         * event-loop.c: Likewise.
923         * event-top.c: Likewise.
924         * f-valprint.c: Likewise.
925         * frame-unwind.c: Likewise.
926         * frame.c: Likewise.
927         * gdbtypes.c: Likewise.
928         * gnu-v2-abi.c: Likewise.
929         * gnu-v3-abi.c: Likewise.
930         * guile/scm-auto-load.c: Likewise.
931         * guile/scm-breakpoint.c: Likewise.
932         * guile/scm-cmd.c: Likewise.
933         * guile/scm-frame.c: Likewise.
934         * guile/scm-lazy-string.c: Likewise.
935         * guile/scm-param.c: Likewise.
936         * guile/scm-symbol.c: Likewise.
937         * guile/scm-type.c: Likewise.
938         * hppa-hpux-tdep.c: Likewise.
939         * i386-tdep.c: Likewise.
940         * inf-loop.c: Likewise.
941         * infcall.c: Likewise.
942         * infcmd.c: Likewise.
943         * infrun.c: Likewise.
944         * interps.c: Likewise.
945         * interps.h: Likewise.
946         * jit.c: Likewise.
947         * linespec.c: Likewise.
948         * linux-nat.c: Likewise.
949         * linux-thread-db.c: Likewise.
950         * m32r-rom.c: Likewise.
951         * main.c: Likewise.
952         * memory-map.c: Likewise.
953         * mi/mi-cmd-break.c: Likewise.
954         * mi/mi-cmd-stack.c: Likewise.
955         * mi/mi-interp.c: Likewise.
956         * mi/mi-main.c: Likewise.
957         * monitor.c: Likewise.
958         * nto-procfs.c: Likewise.
959         * objc-lang.c: Likewise.
960         * p-valprint.c: Likewise.
961         * parse.c: Likewise.
962         * ppc-linux-tdep.c: Likewise.
963         * printcmd.c: Likewise.
964         * probe.c: Likewise.
965         * python/py-auto-load.c: Likewise.
966         * python/py-breakpoint.c: Likewise.
967         * python/py-cmd.c: Likewise.
968         * python/py-finishbreakpoint.c: Likewise.
969         * python/py-frame.c: Likewise.
970         * python/py-framefilter.c: Likewise.
971         * python/py-function.c: Likewise.
972         * python/py-gdb-readline.c: Likewise.
973         * python/py-inferior.c: Likewise.
974         * python/py-infthread.c: Likewise.
975         * python/py-lazy-string.c: Likewise.
976         * python/py-linetable.c: Likewise.
977         * python/py-param.c: Likewise.
978         * python/py-prettyprint.c: Likewise.
979         * python/py-symbol.c: Likewise.
980         * python/py-type.c: Likewise.
981         * python/py-value.c: Likewise.
982         * python/python-internal.h: Likewise.
983         * python/python.c: Likewise.
984         * record-btrace.c: Likewise.
985         * record-full.c: Likewise.
986         * regcache.c: Likewise.
987         * remote-fileio.c: Likewise.
988         * remote-mips.c: Likewise.
989         * remote.c: Likewise.
990         * rs6000-aix-tdep.c: Likewise.
991         * rs6000-nat.c: Likewise.
992         * skip.c: Likewise.
993         * solib-darwin.c: Likewise.
994         * solib-dsbt.c: Likewise.
995         * solib-frv.c: Likewise.
996         * solib-ia64-hpux.c: Likewise.
997         * solib-spu.c: Likewise.
998         * solib-svr4.c: Likewise.
999         * solib.c: Likewise.
1000         * spu-tdep.c: Likewise.
1001         * stack.c: Likewise.
1002         * stap-probe.c: Likewise.
1003         * symfile-mem.c: Likewise.
1004         * symmisc.c: Likewise.
1005         * target.c: Likewise.
1006         * thread.c: Likewise.
1007         * top.c: Likewise.
1008         * tracepoint.c: Likewise.
1009         * tui/tui-interp.c: Likewise.
1010         * typeprint.c: Likewise.
1011         * utils.c: Likewise.
1012         * valarith.c: Likewise.
1013         * valops.c: Likewise.
1014         * valprint.c: Likewise.
1015         * value.c: Likewise.
1016         * varobj.c: Likewise.
1017         * windows-nat.c: Likewise.
1018         * xml-support.c: Likewise.
1019
1020 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1021
1022         * mips-tdep.c (add_offset_16): Rewrite to implement what the
1023         name implies.
1024         (extended_mips16_next_pc): Update accordingly.
1025
1026 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1027
1028         * mips-tdep.c (mips16_instruction_is_compact_branch): New
1029         function.
1030         (micromips_instruction_is_compact_branch): Likewise.
1031         (mips16_scan_prologue): Terminate scanning upon seeing a branch
1032         or a compact jump, reaching a jump delay slot, or seeing a
1033         second non-prologue instruction.
1034         (micromips_scan_prologue): Also terminate scanning upon seeing a
1035         compact branch or jump, or reaching a branch or jump delay slot.
1036         (mips32_scan_prologue): Terminate scanning upon reaching a branch
1037         or jump delay slot, or seeing a second non-prologue instruction.
1038         (mips32_instruction_has_delay_slot): Retain instruction
1039         examination code only, update arguments accordingly and move
1040         instruction fetch pieces to...
1041         (mips32_insn_at_pc_has_delay_slot): ... this new function.
1042         (micromips_instruction_has_delay_slot): Likewise and to...
1043         (micromips_insn_at_pc_has_delay_slot): ... this new function.
1044         (mips16_instruction_has_delay_slot): Likewise and to...
1045         (mips16_insn_at_pc_has_delay_slot): ... this new function.
1046         (mips_single_step_through_delay): Update accordingly.
1047         (mips_adjust_breakpoint_address): Likewise.
1048
1049 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1050
1051         * mips-tdep.c (micromips_instruction_has_delay_slot): When
1052         !mustbe32 also return 1 for 32-bit instructions.
1053         (mips16_instruction_has_delay_slot): Likewise.  Add an
1054         explanatory comment.
1055
1056 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1057
1058         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1059         symbols special.
1060
1061 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1062
1063         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1064         update comments.
1065         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1066         for the breakpoint's address.  Don't preinitialize `placed_size'.
1067         (insert_bp_location): Set `reqstd_address' rather than
1068         `placed_address'.
1069         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1070         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1071         address.
1072         (bkpt_remove_location): Likewise.
1073         (deprecated_insert_raw_breakpoint): Likewise.
1074         (deprecated_remove_raw_breakpoint): Likewise.
1075         (find_single_step_breakpoint): Likewise.
1076         * mem-break.c (default_memory_insert_breakpoint): Use
1077         `reqstd_address' for the breakpoint's address.  Don't set
1078         `placed_address' or `placed_size' if breakpoint contents couldn't
1079         have been determined.
1080         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1081         the breakpoint's address.
1082         (remote_insert_hw_breakpoint): Likewise.  Don't set
1083         `placed_address' or `placed_size' if breakpoint couldn't have been
1084         set.
1085         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1086         `reqstd_address' for the breakpoint's address.
1087         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1088         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1089         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1090         * microblaze-linux-tdep.c
1091         (microblaze_linux_memory_remove_breakpoint): Likewise.
1092         * monitor.c (monitor_insert_breakpoint): Likewise.
1093         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1094         (procfs_insert_hw_breakpoint): Likewise.
1095         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1096         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1097         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1098         * remote-mips.c (mips_insert_breakpoint): Likewise.
1099         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1100
1101 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
1102
1103         * valops.c (value_assign): Check for bit field assignments
1104         before calling architecture-specific register value
1105         conversion functions.
1106
1107 2014-10-03  Pierre Muller  <muller@sourceware.org>
1108
1109         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1110
1111 2014-10-02  Pedro Alves  <palves@redhat.com>
1112
1113         * breakpoint.c (breakpoints_should_be_inserted_now): Use
1114         threads_are_executing.
1115         * breakpoint.h (breakpoints_should_be_inserted_now): Add
1116         describing comment.
1117         * gdbthread.h (threads_are_executing): Declare.
1118         (handle_signal_stop) <random signals>: Don't print about the
1119         signal here if stopping.
1120         (end_stepping_range): Don't notify observers here.
1121         (normal_stop): Update the thread list.  If stopped by a random
1122         signal or a stepping range ended, notify observers.
1123         * thread.c (threads_executing): New global.
1124         (init_thread_list): Clear 'threads_executing'.
1125         (set_executing): Set or clear 'threads_executing'.
1126         (threads_are_executing): New function.
1127         (update_threads_executing): New function.
1128         (update_thread_list): Use it.
1129
1130 2014-10-02  Pedro Alves  <palves@redhat.com>
1131
1132         PR breakpoints/17431
1133         * breakpoint.c (update_breakpoints_after_exec): Don't create
1134         overlay, longjmp, std terminate nor exception breakpoints here.
1135
1136 2014-10-02  Pedro Alves  <palves@redhat.com>
1137
1138         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1139         Adjust comments.
1140         * inferior.c (find_inferior_for_program_space): Give preference to
1141         the current inferior.
1142         * inferior.h (find_inferior_for_program_space): Update comment.
1143         * progspace.c (switch_to_program_space_and_thread): Prefer the
1144         current inferior if it's bound to the program space requested.  If
1145         the inferior found doesn't have a PID yet, don't bother looking up
1146         a thread.
1147         * progspace.h (switch_to_program_space_and_thread): Adjust
1148         comment.
1149         * thread.c (any_thread_of_process, any_live_thread_of_process):
1150         Give preference to the current thread.
1151
1152 2014-10-01  Pedro Alves  <palves@redhat.com>
1153
1154         * breakpoint.c (insert_bp_location): Error out if inserting a
1155         software breakpoint at a read-only address.
1156         * target.c (memory_xfer_check_region): New function, factored out
1157         from ...
1158         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
1159         ULONGEST.
1160         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1161         against the memory region attributes.
1162
1163 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
1164
1165         * NEWS: Announce new exit-code field in -list-thread-groups
1166         output.
1167         * inferior.c (exit_inferior_1): Don't clear exit code.
1168         (inferior_appeared): Clear exit code.
1169         * mi/mi-main.c (print_one_inferior): Add printing of the exit
1170         code.
1171
1172 2014-10-01  Pedro Alves  <palves@redhat.com>
1173
1174         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1175         GENERATED" along with emacs/vi read-only markers.
1176         * regformats/aarch64.dat: Regenerate.
1177         * regformats/arm-with-iwmmxt.dat: Regenerate.
1178         * regformats/arm-with-neon.dat: Regenerate.
1179         * regformats/arm-with-vfpv2.dat: Regenerate.
1180         * regformats/arm-with-vfpv3.dat: Regenerate.
1181         * regformats/i386/amd64-avx-linux.dat: Regenerate.
1182         * regformats/i386/amd64-avx.dat: Regenerate.
1183         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1184         * regformats/i386/amd64-avx512.dat: Regenerate.
1185         * regformats/i386/amd64-linux.dat: Regenerate.
1186         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1187         * regformats/i386/amd64-mpx.dat: Regenerate.
1188         * regformats/i386/amd64.dat: Regenerate.
1189         * regformats/i386/i386-avx-linux.dat: Regenerate.
1190         * regformats/i386/i386-avx.dat: Regenerate.
1191         * regformats/i386/i386-avx512-linux.dat: Regenerate.
1192         * regformats/i386/i386-avx512.dat: Regenerate.
1193         * regformats/i386/i386-linux.dat: Regenerate.
1194         * regformats/i386/i386-mmx-linux.dat: Regenerate.
1195         * regformats/i386/i386-mmx.dat: Regenerate.
1196         * regformats/i386/i386-mpx-linux.dat: Regenerate.
1197         * regformats/i386/i386-mpx.dat: Regenerate.
1198         * regformats/i386/i386.dat: Regenerate.
1199         * regformats/i386/x32-avx-linux.dat: Regenerate.
1200         * regformats/i386/x32-avx.dat: Regenerate.
1201         * regformats/i386/x32-avx512-linux.dat: Regenerate.
1202         * regformats/i386/x32-avx512.dat: Regenerate.
1203         * regformats/i386/x32-linux.dat: Regenerate.
1204         * regformats/i386/x32.dat: Regenerate.
1205         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1206         * regformats/mips-dsp-linux.dat: Regenerate.
1207         * regformats/mips-linux.dat: Regenerate.
1208         * regformats/mips64-dsp-linux.dat: Regenerate.
1209         * regformats/mips64-linux.dat: Regenerate.
1210         * regformats/nios2-linux.dat: Regenerate.
1211         * regformats/rs6000/powerpc-32.dat: Regenerate.
1212         * regformats/rs6000/powerpc-32l.dat: Regenerate.
1213         * regformats/rs6000/powerpc-64l.dat: Regenerate.
1214         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1215         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1216         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1217         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1218         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1219         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1220         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1221         * regformats/s390-linux32.dat: Regenerate.
1222         * regformats/s390-linux32v1.dat: Regenerate.
1223         * regformats/s390-linux32v2.dat: Regenerate.
1224         * regformats/s390-linux64.dat: Regenerate.
1225         * regformats/s390-linux64v1.dat: Regenerate.
1226         * regformats/s390-linux64v2.dat: Regenerate.
1227         * regformats/s390-te-linux64.dat: Regenerate.
1228         * regformats/s390x-linux64.dat: Regenerate.
1229         * regformats/s390x-linux64v1.dat: Regenerate.
1230         * regformats/s390x-linux64v2.dat: Regenerate.
1231         * regformats/s390x-te-linux64.dat: Regenerate.
1232         * regformats/tic6x-c62x-linux.dat: Regenerate.
1233         * regformats/tic6x-c62x.dat: Regenerate.
1234         * regformats/tic6x-c64x-linux.dat: Regenerate.
1235         * regformats/tic6x-c64x.dat: Regenerate.
1236         * regformats/tic6x-c64xp-linux.dat: Regenerate.
1237         * regformats/tic6x-c64xp.dat: Regenerate.
1238
1239 2014-10-01  Pedro Alves  <palves@redhat.com>
1240
1241         * features/Makefile: Update comments.
1242         (XMLTOC): List all xml files we build C files from.
1243         (clean-cfiles): New rule.
1244
1245 2014-10-01  Pedro Alves  <palves@redhat.com>
1246
1247         * features/i386/amd64-avx512-linux.c: Regenerate.
1248         * features/i386/amd64-avx512.c: Regenerate.
1249         * features/i386/x32-avx512-linux.c: Regenerate.
1250         * features/i386/x32-avx512.c: Regenerate.
1251
1252 2014-10-01  Pedro Alves  <palves@redhat.com>
1253
1254         * features/Makefile (WHICH): Remove arm-with-m,
1255         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1256
1257 2014-10-01  Pedro Alves  <palves@redhat.com>
1258
1259         * features/Makefile (clean): New rule.
1260
1261 2014-10-01  Pedro Alves  <palves@redhat.com>
1262
1263         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1264         (zmm14h): Add missing end quotes.
1265
1266 2014-10-01  Pedro Alves  <palves@redhat.com>
1267
1268         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1269         * features/aarch64.c: Regenerate.
1270
1271 2014-09-30  Don Breazeal  <donb@codesourcery.com>
1272
1273         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1274         code so as to work with follow_fork_inferior.
1275         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1276         (inf_ttrace_create_inferior): Remove reference to
1277         inf_ttrace_vfork_ppid.
1278         (inf_ttrace_attach): Ditto.
1279         (inf_ttrace_detach): Ditto.
1280         (inf_ttrace_kill): Use current_inferior instead of
1281         inf_ttrace_vfork_ppid.
1282         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1283         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1284         inferior away from the parent.
1285         * infrun.c (follow_fork): Call follow_fork_inferior instead of
1286         target_follow_fork.
1287         (follow_fork_inferior): New function.
1288         (follow_inferior_reset_breakpoints): Make function static.
1289         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1290         * linux-nat.c (linux_child_follow_fork): Move target-independent
1291         code to infrun.c:follow_fork_inferior.
1292
1293 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1294
1295         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1296         * gdbarch.c: Regenerate.
1297         * gdbarch.h: Likewise.
1298         * corelow.c (sniff_core_bfd): Drop presence check for deleted
1299         gdbarch method 'regset_from_core_section'.
1300         (get_core_register_section): Remove handling for the case that
1301         regset == NULL and regset_from_core_section is defined.
1302         (get_core_registers): Drop check for deleted method.
1303         * procfs.c (procfs_do_thread_registers): Adjust comment.
1304
1305 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1306
1307         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1308         (linux_nat_make_corefile_notes): Remove.
1309         (linux_target_install_ops): Do not set target method
1310         'make_corefile_notes'.
1311         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1312         Remove field.
1313         (linux_corefile_thread_callback): Instead of args->collect, call
1314         linux_collect_thread_registers.
1315         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
1316         NULL unless there is a regset iterator.
1317         (linux_make_corefile_notes_1): Remove.
1318         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1319         by linux_make_corefile_notes.
1320         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1321
1322 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1323
1324         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1325         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1326         Remove.
1327         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1328
1329 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1330
1331         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1332         (xtensa_iterate_over_regset_sections): New.
1333         (xtensa_gdbarch_init): Adjust gdbarch initialization.
1334
1335 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1336
1337         * vax-tdep.c (vax_regset_from_core_section): Remove.
1338         (vax_iterate_over_regset_sections): New.
1339         (vax_gdbarch_init): Adjust gdbarch initialization.
1340
1341 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1342
1343         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1344         (tilegx_regset_from_core_section): Remove.
1345         (tilegx_iterate_over_regset_sections): New.
1346         (tilegx_linux_init_abi): Adjust gdbarch initialization.
1347
1348 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1349
1350         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1351         (sparc_iterate_over_regset_sections): New.
1352         (sparc32_gdbarch_init): Adjust gdbarch initialization.
1353         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1354         targets.
1355         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1356         (sparc64fbsd_init_abi): Call fbsd_init_abi.
1357         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1358         target method 'make_corefile_notes'.
1359
1360 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1361
1362         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1363         'sizeof_gregset' and 'sizeof_fpregset'.
1364         * sh-tdep.c (sh_regset_from_core_section): Remove.
1365         (sh_iterate_over_regset_sections): New.
1366         (sh_gdbarch_init): Adjust gdbarch initialization.
1367         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1368         sizeof_fpregset.
1369         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1370         'sizeof_gregset'.
1371
1372 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1373
1374         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1375         (score7_linux_iterate_over_regset_sections): New.
1376         (score_gdbarch_init): Adjust gdbarch initialization.
1377
1378 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1379
1380         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1381         FreeBSD targets.
1382         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1383         method 'make_corefile_notes'.
1384         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1385         (ppcfbsd_regset_from_core_section): Remove.
1386         (ppcfbsd_iterate_over_regset_sections): New.
1387         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
1388         initialization.
1389         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1390         (ppcnbsd_iterate_over_regset_sections): New.
1391         (ppcnbsd_init_abi): Adjust.
1392         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1393         (ppcobsd_iterate_over_regset_sections): New.
1394         (ppcobsd_init_abi): Adjust.
1395         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1396         (rs6000_aix_iterate_over_regset_sections): New.
1397         (rs6000_aix_init_osabi): Adjust.
1398
1399 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1400
1401         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1402         (nios2_regset_from_core_section): Remove.
1403         (nios2_iterate_over_regset_sections): New.
1404         (nios2_linux_init_abi): Adjust gdbarch initialization.
1405
1406 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1407
1408         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1409         (am33_iterate_over_regset_sections): New.
1410         (am33_linux_init_osabi): Adjust gdbarch initialization.
1411
1412 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1413
1414         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1415         (mips_linux_iterate_over_regset_sections): New.
1416         (mips_linux_init_abi): Adjust gdbarch initialization.
1417         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1418         (mips64obsd_iterate_over_regset_sections): New.
1419         (mips64obsd_init_abi): Adjust.
1420         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1421         (mipsnbsd_iterate_over_regset_sections): New.
1422         (mipsnbsd_init_abi): Adjust.
1423
1424 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1425
1426         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1427         (m88k_iterate_over_regset_sections): New.
1428         (m88k_gdbarch_init): Adjust gdbarch initialization.
1429
1430 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1431
1432         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1433         (ia64_linux_iterate_over_regset_sections): New.
1434         (ia64_linux_init_abi): Adjust gdbarch initialization.
1435
1436 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1437
1438         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1439         (m68kbsd_iterate_over_regset_sections): New.
1440         (m68kbsd_init_abi): Adjust gdbarch initialization.
1441         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1442         (m68k_linux_iterate_over_regset_sections): New.
1443         (m68k_linux_init_abi): Adjust gdbarch initialization.
1444
1445 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1446
1447         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1448         (m32r_linux_regset_from_core_section): Remove.
1449         (m32r_linux_iterate_over_regset_sections): New.
1450         (m32r_linux_init_abi): Adjust gdbarch initialization.
1451
1452 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1453
1454         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1455         (amd64obsd_iterate_over_regset_sections): New.
1456         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1457         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1458         Remove.
1459         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
1460         regset_from_core_section initialization.
1461         * i386-tdep.c (i386_regset_from_core_section): Remove.
1462         (i386_iterate_over_regset_sections): New.
1463         (i386_gdbarch_init): Adjust gdbarch initialization.
1464         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1465         (i386_iterate_over_regset_sections): New prototype.
1466         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1467         Remove.
1468         (i386obsd_aout_iterate_over_regset_sections): New.
1469         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1470         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1471         targets.
1472         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1473         (amd64fbsd_init_abi): Call fbsd_init_abi.
1474         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1475         (i386fbsd4_init_abi): Call fbsd_init_abi.
1476         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1477         target method 'make_corefile_notes'.
1478         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1479
1480 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1481
1482         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1483         (hppa_hpux_iterate_over_regset_sections): New.
1484         (hppa_hpux_init_abi): Adjust gdbarch initialization.
1485         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1486         (hppa_linux_iterate_over_regset_sections): New.
1487         (hppa_linux_init_abi): Adjust.
1488         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1489         (hppanbsd_iterate_over_regset_sections): New.
1490         (hppanbsd_init_abi): Adjust.
1491         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1492         (hppaobsd_iterate_over_regset_sections): New.
1493         (hppaobsd_init_abi): Adjust.
1494
1495 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1496
1497         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1498         (frv_linux_iterate_over_regset_sections): New.
1499         (frv_linux_init_abi): Adjust gdbarch initialization.
1500
1501 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1502
1503         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1504         (armbsd_iterate_over_regset_sections): New prototype.
1505         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1506         (armbsd_iterate_over_regset_sections): New.
1507         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1508         initialization.
1509
1510 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1511
1512         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1513         (alpha_linux_iterate_over_regset_sections): New.
1514         (alpha_linux_init_abi): Adjust gdbarch initialization.
1515         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1516         prototype.
1517         (alphanbsd_iterate_over_regset_sections): New prototype.
1518
1519 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1520
1521         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1522         Remove.
1523         (aarch64_linux_iterate_over_regset_sections): New.
1524         (aarch64_linux_init_abi): Adjust gdbarch initialization.
1525
1526 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1527
1528         * fbsd-tdep.c: New file.
1529         * fbsd-tdep.h: New file.
1530         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1531         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1532         (ALLDEPFILES): Add fbsd-tdep.c.
1533
1534 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1535
1536         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1537         parameter.
1538         * gdbarch.h: Regenerate.
1539         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1540         iterator.
1541         (get_core_register_section): Add parameter 'regset' and use it, if
1542         set.  Add parameter 'min_size' and verify the bfd section size
1543         against it.
1544         (get_core_registers_cb): Add parameter 'regset' and pass it to
1545         get_core_register section.  For the "standard" register sections
1546         ".reg" and ".reg2", set an appropriate default for human_name.
1547         (get_core_registers): Don't abort when the gdbarch has an iterator
1548         but no regset_from_core_section.  Add NULL/0 for parameters
1549         'regset'/'min_size' in calls to get_core_register_section.
1550         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1551         'regset' and use it instead of calling the
1552         regset_from_core_section gdbarch method.
1553         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1554         * i386-tdep.c (i386_supply_xstateregset)
1555         (i386_collect_xstateregset, i386_xstateregset): Moved to
1556         i386-linux-tdep.c.
1557         (i386_regset_from_core_section): Drop handling for .reg-xfp and
1558         .reg-xstate.
1559         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
1560         core file support only if the regset iterator hasn't been set.
1561         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1562         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1563         Moved from i386-tdep.c and renamed to *_linux*.
1564         (i386_linux_iterate_over_regset_sections): Add regset parameter to
1565         each callback invocation.  Allow any .reg-xstate size when reading
1566         from a core file.
1567         * amd64-tdep.c (amd64_supply_xstateregset)
1568         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1569         amd64-linux-tdep.c.
1570         (amd64_regset_from_core_section): Remove.
1571         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
1572         install an amd64-specific regset_from_core_section gdbarch method.
1573         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1574         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1575         Moved from amd64-tdep.c and renamed to *_linux*.
1576         (amd64_linux_iterate_over_regset_sections): Add regset parameter
1577         to each callback invocation.  Allow any .reg-xstate size when
1578         reading from a core file.
1579         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1580         (arm_linux_iterate_over_regset_sections): Add regset parameter to
1581         each callback invocation.
1582         (arm_linux_init_abi): No longer set the regset_from_core_section
1583         gdbarch method.
1584         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1585         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1586         each callback invocation.
1587         (ppc_linux_init_abi): No longer set the regset_from_core_section
1588         gdbarch method.
1589         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1590         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1591         (s390_regset_from_core_section): Remove.
1592         (s390_iterate_over_regset_sections): Add regset parameter to each
1593         callback invocation.
1594         (s390_gdbarch_init): No longer set the regset_from_core_section
1595         gdbarch method.  Drop initialization of deleted tdep fields.
1596
1597 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1598
1599         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1600         (amd64_linux_iterate_over_regset_sections): New.
1601         (amd64_linux_init_abi_common): Don't install the regset section
1602         list, but the new iterator in gdbarch.
1603         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1604         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
1605         (arm_linux_iterate_over_regset_sections): ...here.  New function.
1606         (arm_linux_init_abi): Set iterator instead of section list.
1607         * corelow.c (get_core_registers_cb): New function, logic moved
1608         from...
1609         (get_core_registers): ...loop body here.  Use new iterator method
1610         instead of walking through the regset section list.
1611         * gdbarch.sh: Remove 'core_regset_sections'.  New method
1612         'iterate_over_regset_sections'.  New typedef
1613         'iterate_over_regset_sections_cb'.
1614         * gdbarch.c: Regenerate.
1615         * gdbarch.h: Likewise.
1616         * i386-linux-tdep.c (i386_linux_regset_sections)
1617         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1618         Remove.
1619         (i386_linux_iterate_over_regset_sections): New.
1620         (i386_linux_init_abi): Don't choose a regset section list, but
1621         install new iterator in gdbarch.
1622         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1623         (linux_collect_regset_section_cb): New function, logic moved
1624         from...
1625         (linux_collect_thread_registers): ...loop body here.  Use iterator
1626         method instead of walking through list.
1627         (linux_make_corefile_notes_1): Check for presence of iterator
1628         method instead of regset section list.
1629         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1630         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1631         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1632         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
1633         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
1634         (ppc_linux_init_abi): Don't choose from above regset section
1635         lists, but install new iterator in gdbarch.
1636         * regset.h (struct core_regset_section): Remove.
1637         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1638         have_linux_v1, have_linux_v2, and have_tdb.
1639         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1640         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1641         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1642         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1643         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
1644         (s390_iterate_over_regset_sections): ...here.  New function.  Use
1645         new tdep fields.
1646         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
1647         regset section lists, but install new iterator.
1648
1649 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1650
1651         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1652
1653 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
1654
1655         * progspace.c (print_program_space): Don't prune program spaces
1656         before printing them.
1657
1658 2014-09-25  Pedro Alves  <palves@redhat.com>
1659
1660         * infrun.c (user_visible_resume_ptid): Don't check
1661         singlestep_breakpoints_inserted_p.
1662
1663 2014-09-25  Pedro Alves  <palves@redhat.com>
1664
1665         * breakpoint.c (should_be_inserted): Add debug output.
1666
1667 2014-09-25  Pedro Alves  <palves@redhat.com>
1668
1669         * infrun.c (stepping_past_instruction_at)
1670         (clear_exit_convenience_vars): Point at infrun.h instead of
1671         inferior.h.
1672         (handle_signal_stop): Fix typo.
1673
1674 2014-09-24  Yao Qi  <yao@codesourcery.com>
1675
1676         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1677         bitmask.
1678
1679 2014-09-22  Gary Benson  <gbenson@redhat.com>
1680
1681         * target.c (target_stop): Updated comment.
1682
1683 2014-09-22  Gary Benson  <gbenson@redhat.com>
1684
1685         * target/target.h (target_stop_ptid): Renamed as...
1686         (target_stop_and_wait): New function.  Updated comment.
1687         All uses updated.
1688         (target_continue_ptid): Renamed as...
1689         (target_continue_no_signal): New function.  Updated comment.
1690         All uses updated.
1691
1692 2014-09-22  Pedro Alves  <palves@redhat.com>
1693
1694         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1695         and "auto" merged.
1696         * breakpoint.c (enum ugll_insert_mode): New enum.
1697         (always_inserted_mode): Now a plain boolean.
1698         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1699         (breakpoints_always_inserted_mode): Delete.
1700         (breakpoints_should_be_inserted_now): New function.
1701         (insert_breakpoints): Pass UGLL_INSERT to
1702         update_global_location_list instead of calling
1703         insert_breakpoint_locations manually.
1704         (create_solib_event_breakpoint_1): New, factored out from ...
1705         (create_solib_event_breakpoint): ... this.
1706         (create_and_insert_solib_event_breakpoint): Use
1707         create_solib_event_breakpoint_1 instead of calling
1708         insert_breakpoint_locations manually.
1709         (update_global_location_list): Change parameter type from boolean
1710         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1711         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1712         (update_global_location_list_nothrow): Change parameter type from
1713         boolean to enum ugll_insert_mode.
1714         (_initialize_breakpoint): "breakpoint always-inserted" option is
1715         now a boolean command.  Update help text.
1716         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1717         (breakpoints_should_be_inserted_now): New declaration.
1718         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1719         Remove breakpoints_always_inserted_mode check.
1720         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1721         * remote.c (remote_start_remote): Likewise.
1722
1723 2014-09-22  Pedro Alves  <palves@redhat.com>
1724
1725         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1726         (insert_breakpoints): Don't call insert_breakpoint_locations here.
1727         Instead, pass UGLL_INSERT to update_global_location_list.
1728         (update_global_location_list): Change parameter type from boolean
1729         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1730         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1731         (create_solib_event_breakpoint_1): New, factored out from ...
1732         (create_solib_event_breakpoint): ... this.
1733         (create_and_insert_solib_event_breakpoint): Use
1734         create_solib_event_breakpoint_1 instead of calling
1735         insert_breakpoint_locations manually.
1736         (update_global_location_list): Handle UGLL_INSERT.
1737
1738 2014-09-22  Pedro Alves  <palves@redhat.com>
1739
1740         * breakpoint.c (enum ugll_insert_mode): New enum.
1741         (update_global_location_list)
1742         (update_global_location_list_nothrow): Change parameter type from
1743         boolean to enum ugll_insert_mode.  All callers adjusted.
1744
1745 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
1746
1747         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1748         SystemTap support in GDB.
1749
1750 2014-09-19  Don Breazeal  <donb@codesourcery.com>
1751
1752         * linux-nat.c (linux_handle_extended_wait): Call
1753         linux_ptrace_get_extended_event.
1754         (wait_lwp): Call linux_is_extended_waitstatus.
1755         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1756         and linux_is_extended_waitstatus.
1757         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1758         linux_ptrace_get_extended_event.
1759         (linux_ptrace_get_extended_event): New function.
1760         (linux_is_extended_waitstatus): New function.
1761         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1762         (linux_is_extended_waitstatus): New declarations.
1763
1764 2014-09-19  Yao Qi  <yao@codesourcery.com>
1765
1766         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1767         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
1768         comments.  Callers update.
1769         (dwarf_decode_lines): Likewise.
1770         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
1771         comments.  Skip the line table if  'lowpc' is greater than
1772         'address'.  Don't check
1773         dwarf2_per_objfile->has_section_at_zero.
1774
1775 2014-09-18  Doug Evans  <dje@google.com>
1776
1777         * NEWS: Mention new "producer" attribute of gdb.Symtab.
1778         * python/py-symtab.c (stpy_get_producer): New function.
1779         (symtab_object_getset): Add "producer" attribute.
1780
1781 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
1782
1783         PR gdb/17384
1784         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1785         (do_captured_read_memory_integer): Remove.
1786         (safe_read_memory_integer): Use target_read_memory directly instead
1787         of catching errors in do_captured_read_memory_integer.
1788
1789 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
1790
1791         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1792         not gdb/doc.
1793
1794 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1795
1796         * objc-lang.c (find_implementation_from_class): Remove dead code.
1797
1798 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1799
1800         PR cli/7233
1801         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1802         "fprintf_unfiltered (gdb_stdlog...)".
1803
1804 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
1805
1806         PR breakpoints/12526
1807         * breakpoint.h (struct watchpoint): New fields val_bitpos and
1808         val_bitsize.
1809         * breakpoint.c (watch_command_1): Use these fields to retain
1810         bitfield information.
1811         (extract_bitfield_from_watchpoint_value): New function.
1812         (watchpoint_check): Use it.
1813         (update_watchpoint): Use it.  Optimize the address and length of a
1814         HW watchpoint pointing to a bitfield.
1815         * value.h (unpack_value_bitfield): New prototype.
1816         * value.c (unpack_value_bitfield): Make extern.
1817
1818 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1819
1820         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1821         x86-dregs.o.
1822         * gnu-nat.c (inf_threads): New function.
1823         * gnu-nat.h (inf_threads_ftype): New typedef.
1824         (inf_threads): New declaration.
1825         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1826         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1827         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1828         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1829         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1830         (i386_gnu_dr_get_control): New functions.
1831         (reg_addr): New structure.
1832         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1833         i386 debugging register hooks.
1834         * NEWS: Mention this.
1835
1836 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1837
1838         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1839         vector data transfer instructions.
1840         (arm_record_coproc_data_proc): Updated.
1841
1842 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1843
1844         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1845         arm_record_exreg_ld_st_insn.
1846         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1847         load/store insns.
1848
1849 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1850
1851         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1852         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1853         processing instructions.
1854
1855 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1856
1857         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1858         for advance SIMD struct ld/st insn.
1859         (thumb2_record_decode_insn_handler): Replace stub handler with
1860         thumb2_record_asimd_struct_ld_st.
1861
1862 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1863
1864         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1865         for asimd, vfp and coprocessor insns.
1866         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1867         and coprocessor insns.
1868         (thumb2_record_coproc_insn): New function.
1869         (thumb2_record_decode_insn_handler): Update coprocessor insns record
1870         handlers.
1871         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1872         opcode 110 insns.
1873
1874 2014-09-13  Doug Evans  <xdje42@gmail.com>
1875
1876         * NEWS: Mention new "queue-signal" command.
1877         * infcmd.c (queue_signal_command): New function.
1878         (_initialize_infcmd): Add new queue-signal command.
1879
1880 2014-09-13  Doug Evans  <xdje42@gmail.com>
1881
1882         * linux-nat.c (wait_lwp): Add debugging printf.
1883         (linux_nat_wait_1): Ditto.
1884
1885 2014-09-12  Pedro Alves  <palves@redhat.com>
1886
1887         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1888         (create_and_insert_solib_event_breakpoint): New functions.
1889         * breakpoint.h (create_and_insert_solib_event_breakpoint)
1890         (remove_solib_event_breakpoints_at_next_stop): New declarations.
1891         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1892         (remove_dbx_link_breakpoint): Delete function.
1893         (insert_dbx_link_bpt_in_file): Use
1894         create_and_insert_solib_event_breakpoint instead of
1895         deprecated_insert_raw_breakpoint.
1896         (procfs_wait): Don't check whether we hit __dbx_link here.
1897         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1898         here.
1899         * solib-irix.c (base_breakpoint): Delete global.
1900         (disable_break): Delete function.
1901         (enable_break): Use create_solib_event_breakpoint
1902         instead of deprecated_insert_raw_breakpoint.
1903         (irix_solib_handle_event): New function.
1904         (irix_solib_create_inferior_hook): Don't run the target or disable
1905         the mapping-complete breakpoint here.
1906         (_initialize_irix_solib): Install irix_solib_handle_event as
1907         so_ops->handle_event hook.
1908
1909 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1910             Ulrich Weigand  <uweigand@de.ibm.com>
1911
1912         PR tdep/17379
1913         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1914         instead of read_memory_unsigned_integer.
1915
1916 2014-09-12  Gary Benson  <gbenson@redhat.com>
1917
1918         * nat/linux-waitpid.c: Include common-defs.h.
1919         [GDBSERVER]: Add FIXME comment.
1920         [!GDBSERVER]: Don't include defs.h or signal.h.
1921         (linux_debug) [!GDBSERVER]: Remove empty block.
1922
1923 2014-09-12  Gary Benson  <gbenson@redhat.com>
1924
1925         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1926         Don't include defs.h or server.h.
1927
1928 2014-09-12  Gary Benson  <gbenson@redhat.com>
1929
1930         * nat/linux-btrace.c: Include common-defs.h.
1931         Don't include defs.h, server.h or gdbthread.h.
1932         * nat/linux-btrace.h (struct target_ops): New forward declaration.
1933
1934 2014-09-12  Gary Benson  <gbenson@redhat.com>
1935
1936         * common/agent.c: Include common-defs.h.
1937         Don't include defs.h or server.h.
1938         * common/buffer.c: Likewise.
1939         * common/common-debug.c: Likewise.
1940         * common/common-utils.c: Likewise.
1941         * common/errors.c: Likewise.
1942         * common/filestuff.c: Likewise.
1943         * common/format.c: Likewise.
1944         * common/gdb_vecs.c: Likewise.
1945         * common/print-utils.c: Likewise.
1946         * common/ptid.c: Likewise.
1947         * common/rsp-low.c: Likewise.
1948         * common/signals.c: Likewise.
1949         * common/vec.c: Likewise.
1950         * common/xml-utils.c: Likewise.
1951         * nat/linux-osdata.c: Likewise.
1952         * nat/linux-procfs.c: Likewise.
1953         * nat/linux-ptrace.c: Likewise.
1954         * nat/mips-linux-watch.c: Likewise.
1955         * target/waitstatus.c: Likewise.
1956
1957 2014-09-12  Tom Tromey  <tromey@redhat.com>
1958             Gary Benson  <gbenson@redhat.com>
1959
1960         * common/common-regcache.h: New file.
1961         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1962         * regcache.h: Include common-regcache.h.
1963         (regcache_read_pc): Don't declare.
1964         * regcache.c (get_thread_regcache_for_ptid): New function.
1965         * nat/linux-btrace.c: Don't include regcache.h.
1966         Include common-regcache.h.
1967         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1968
1969 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
1970
1971         * regcache.h (struct regset): Declare.
1972
1973 2014-09-11  Pedro Alves  <palves@redhat.com>
1974
1975         PR gdb/17347
1976         * main.c: Include "infrun.h".
1977         (catch_command_errors, catch_command_errors_const): Wait for the
1978         foreground command to complete.
1979         * top.c (maybe_wait_sync_command_done): New function, factored out
1980         from ...
1981         (maybe_wait_sync_command_done): ... here.
1982         * top.h (maybe_wait_sync_command_done): New declaration.
1983
1984 2014-09-11  Tom Tromey  <tromey@redhat.com>
1985             Gary Benson  <gbenson@redhat.com>
1986
1987         * common/symbol.h: New file.
1988         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1989         * minsyms.c (find_minimal_symbol_address): New function.
1990         * common/agent.c: Include common/symbol.h.
1991         [!GDBSERVER]: Don't include objfiles.h.
1992         (agent_look_up_symbols): Use find_minimal_symbol_address.
1993
1994 2014-09-11  Gary Benson  <gbenson@redhat.com>
1995
1996         * target/target.h (target_stop_ptid, target_continue_ptid):
1997         Declare.
1998         * target.c (target_stop_ptid, target_continue_ptid): New
1999         functions.
2000         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2001         (agent_run_command): Always use target_stop_ptid and
2002         target_continue_ptid.
2003
2004 2014-09-11  Tom Tromey  <tromey@redhat.com>
2005             Gary Benson  <gbenson@redhat.com>
2006
2007         * target/target.h: New file.
2008         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2009         * target.h: Include target/target.h.
2010         (target_read_memory, target_write_memory): Don't declare.
2011         * target.c (target_read_uint32): New function.
2012         * common/agent.c: Include target/target.h.
2013         [!GDBSERVER]: Don't include target.h.
2014         (helper_thread_id): Type changed to uint32_t.
2015         (agent_get_helper_thread_id): Use target_read_uint32.
2016         (agent_run_command): Always use target_read_memory and
2017         target_write_memory.
2018         (agent_capability): Type changed to uint32_t.
2019         (agent_capability_check): Use target_read_uint32.
2020
2021 2014-09-11  Gary Benson  <gbenson@redhat.com>
2022
2023         * common/common-debug.h (show_debug_regs): Declare.
2024         * common/common-debug.c (show_debug_regs): Define.
2025         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
2026         all uses with show_debug_regs.  Replace all uses that considered
2027         debug_hw_points as a multi-value integer with straight boolean
2028         uses.
2029         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
2030         with show_debug_regs.
2031         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
2032         all uses with show_debug_regs.
2033         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
2034         uses with show_debug_regs.
2035
2036 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2037
2038         * findvar.c (address_from_register): Handle targets requiring
2039         a special conversion routine even for plain pointer types.
2040
2041 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2042
2043         * rs6000-nat.c (exec_one_dummy_insn): Remove.
2044         (store_register): Do not call exec_one_dummy_insn.
2045
2046 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2047
2048         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2049         dereference it first.  Use value_enclosing_type instead of
2050         value_type.
2051         (ada_array_length): Likewise.
2052
2053 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2054
2055         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2056         Adjust function implementation and documentation accordingly.
2057         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2058         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2059         Update call to ada_value_ptr_subscript.
2060
2061 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2062
2063         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2064         instead of VAL's type.
2065
2066 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2067
2068         * amd64-linux-nat.c: Add <sys/uio.h> #include.
2069
2070 2014-09-09  Doug Evans  <xdje42@gmail.com>
2071
2072         PR guile/17367
2073         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2074         last parameter to pkg-config, not first.
2075         * configure.ac: Pass --with-guile provided pkg-config path to
2076         GDB_GUILE_PROGRAM_NAMES.
2077         * configure: Regenerate.
2078
2079 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2080
2081         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2082         Bertazi".
2083
2084 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
2085
2086         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2087         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2088         the list of sections determining GDB_OSABI_IRIX.
2089
2090 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2091
2092         * MAINTAINERS (Write After Approval): Add "James Hogan".
2093
2094 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2095
2096         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2097
2098 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
2099
2100         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2101
2102 2014-09-08  Doug Evans  <xdje42@gmail.com>
2103
2104         PR 17247
2105         * guile.c: #include <signal.h>.
2106         (_initialize_guile): Block SIGCHLD while initializing Guile.
2107
2108         Replaces the following, which is reverted.
2109
2110         2014-07-26  Doug Evans  <xdje42@gmail.com>
2111
2112         PR 17185
2113         * configure.ac: Add check for header gc/gc.h.
2114         Add check for function setenv.
2115         * configure: Regenerate.
2116         * config.in: Regenerate.
2117         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2118
2119 2014-09-08  Doug Evans  <xdje42@gmail.com>
2120
2121         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2122         with named constant.  Fix style of pointer comparison.
2123         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2124
2125 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2126
2127         PR gdb/17035
2128         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2129         decide whether we display the command on "show user".
2130         * cli/cli-script.c (show_user_1): Only verify cmdlines after
2131         printing command name.
2132         * cli/cli-decode.h (cli_user_command_p): Declare new function.
2133         * cli/cli-decode.c (cli_user_command_p): Create helper function
2134         to verify whether cmd_list_element is a user-defined command.
2135
2136 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2137
2138         PR python/17355
2139         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2140         Fix goto out of TRY_CATCH.
2141
2142 2014-09-06  Doug Evans  <xdje42@gmail.com>
2143             Tom Tromey  <tromey@redhat.com>
2144
2145         PR 15276
2146         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2147         $_any_caller_matches.
2148         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2149         * python/lib/gdb/function/caller_is.py: New file.
2150
2151 2014-09-06  Doug Evans  <xdje42@gmail.com>
2152
2153         * infcmd.c (program_info): Fix typo.
2154
2155 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
2156
2157         PR gdb/17235
2158         * stap-probe.c (stap_parse_single_operand): Delete unused variable
2159         'number'.  New variable 'has_digit'.  Rewrite code to deal with
2160         subexpressions on SDT probes.
2161
2162 2014-09-04  Pedro Alves  <palves@redhat.com>
2163
2164         * c-exp.y (parse_number): Skip handling base-switching prefixes if
2165         the input is only one character long.
2166
2167 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
2168
2169         PR fortran/17237
2170         * f-valprint.c (f_val_print): Specify the correct print option to
2171         use when printing integer values.
2172
2173 2014-09-04  Gary Benson  <gbenson@redhat.com>
2174
2175         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2176         Remove code to cope with LWPs wrapped as PIDs.
2177         Add assertions to ensure no wrapped LWPs are passed.
2178
2179 2014-09-04  Pedro Alves  <palves@redhat.com>
2180
2181         * value.c (value_ranges_copy_adjusted): New function, factored out
2182         from ...
2183         (value_contents_copy_raw): ... here.
2184         (unpack_value_bits_as_long_1): Rename back to ...
2185         (unpack_bits_as_long): ... this.  Remove 'original_value' and
2186         'result' parameters.  Change return type to LONGEST.
2187         (unpack_value_bits_as_long): Delete.
2188         (unpack_value_field_as_long_1): Delete.
2189         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2190         (unpack_value_bitfield): New function.
2191         (value_field_bitfield): Reimplement using unpack_value_bitfield.
2192         (value_fetch_lazy): Use unpack_value_bitfield.
2193         * value.h (unpack_value_bits_as_long): Delete declaration.
2194
2195 2014-09-03  Sasha Smundak  <asmundak@google.com>
2196
2197         * python/py-frame.c (frapy_read_register): New function.
2198
2199 2014-09-03  James Hogan  <james.hogan@imgtec.com>
2200
2201         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2202         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2203
2204 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
2205
2206         PR python/16699
2207         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2208         function.
2209         (add_cmd): Set "completer_handle_brkchars" to NULL.
2210         * cli/cli-decode.h (struct cmd_list_element)
2211         <completer_handle_brkchars>: New field.
2212         * command.h (completer_ftype_void): New typedef.
2213         (set_cmd_completer_handle_brkchars): New prototype.
2214         * completer.c (set_gdb_completion_word_break_characters): New
2215         function.
2216         (complete_line_internal): Call "completer_handle_brkchars"
2217         callback from command.
2218         * completer.h: Include "command.h".
2219         (set_gdb_completion_word_break_characters): New prototype.
2220         * python/py-cmd.c (cmdpy_completer_helper): New function.
2221         (cmdpy_completer_handle_brkchars): New function.
2222         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2223         (cmdpy_init): Set completer_handle_brkchars to
2224         cmdpy_completer_handle_brkchars.
2225
2226 2014-09-03  Gary Benson  <gbenson@redhat.com>
2227
2228         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2229         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
2230         Loop conditions changed to equivalent form.
2231         (struct x86_debug_reg_state): Updated dr_ref_count comment.
2232         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2233         ALL_DEBUG_ADDRESS_REGISTERS.
2234
2235 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
2236
2237         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2238         description fix.
2239
2240 2014-09-02  Doug Evans  <dje@google.com>
2241
2242         * typeprint.c (find_global_typedef): Fix comment.
2243
2244 2014-09-02  Gary Benson  <gbenson@redhat.com>
2245
2246         * i386-nat.h: Renamed as...
2247         * x86-nat.h: New file.  All type, function and variable name
2248         prefixes changed from "i386_" to "x86_".  All references updated.
2249         * i386-nat.c: Renamed as...
2250         * x86-nat.c: New file.  All type, function and variable name
2251         prefixes changed from "i386_" to "x86_".  All references updated.
2252         * common/i386-xstate.h: Renamed as...
2253         * common/x86-xstate.h: New file.  All type, function and variable
2254         name prefixes changed from "i386_" to "x86_".  All references
2255         updated.
2256         * nat/i386-cpuid.h: Renamed as...
2257         * nat/x86-cpuid.h: New file.  All type, function and variable name
2258         prefixes changed from "i386_" to "x86_".  All references updated.
2259         * nat/i386-gcc-cpuid.h: Renamed as...
2260         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
2261         name prefixes changed from "i386_" to "x86_".  All references
2262         updated.
2263         * nat/i386-dregs.h: Renamed as...
2264         * nat/x86-dregs.h: New file.  All type, function and variable name
2265         prefixes changed from "i386_" to "x86_".  All references updated.
2266         * nat/i386-dregs.c: Renamed as...
2267         * nat/x86-dregs.c: New file.  All type, function and variable name
2268         prefixes changed from "i386_" to "x86_".  All references updated.
2269
2270 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
2271
2272         * varobj.c (_initialize_varobj): Move to the end of file.
2273
2274 2014-08-29  Gary Benson  <gbenson@redhat.com>
2275
2276         * common/common-exceptions.h: New file.
2277         * common/common-exceptions.c: Likewise.
2278         * Makefile.in (SFILES): Add common/common-exceptions.c.
2279         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2280         (COMMON_OBS): Add common-exceptions.o.
2281         (common-exceptions.o): New rule.
2282         * exceptions.h (common-exceptions.h): Include.
2283         (gdb_setjmp.h): Do not include.
2284         (return_reason): Moved to common-exceptions.h.
2285         (enum return_reason): Likewise.
2286         (RETURN_MASK): Likewise.
2287         (typedef return_mask): Likewise.
2288         (enum errors): Likewise.
2289         (struct gdb_exception): Likewise.
2290         (exceptions_state_mc_init): Likewise.
2291         (exceptions_state_mc_action_iter): Likewise.
2292         (exceptions_state_mc_action_iter_1): Likewise.
2293         (TRY_CATCH): Likewise.
2294         (throw_exception): Likewise.
2295         (throw_verror): Likewise.
2296         (throw_vquit): Likewise.
2297         (throw_error): Likewise.
2298         (throw_quit): Likewise.
2299         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2300         (enum catcher_action): Likewise.
2301         (struct catcher): Likewise.
2302         (current_catcher): Likewise.
2303         (catcher_list_size): Likewise.
2304         (exceptions_state_mc_init): Likewise.
2305         (catcher_pop): Likewise.
2306         (exceptions_state_mc): Likewise.
2307         (exceptions_state_mc_action_iter): Likewise.
2308         (exceptions_state_mc_action_iter_1): Likewise.
2309         (throw_exception): Likewise.
2310         (exception_messages): Likewise.
2311         (exception_messages_size): Likewise.
2312         (throw_it): Likewise.
2313         (throw_verror): Likewise.
2314         (throw_vquit): Likewise.
2315         (throw_error): Likewise.
2316         (throw_quit): Likewise.
2317         (prepare_to_throw_exception): New function.
2318
2319 2014-08-29  Gary Benson  <gbenson@redhat.com>
2320
2321         * common/gdb_setjmp.h: New file.
2322         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2323         * configure.ac: Move sigsetjmp check...
2324         * common/common.m4: ...here.
2325         * configure: Regenerate.
2326         * cp-support.c (SIGJMP_BUF): Delete.
2327         (SIGSETJMP): Likewise.
2328         (SIGLONGJMP): Likewise.
2329         * exceptions.h (gdb_setjmp.h): Include.
2330         (setjmp.h): Do not include.
2331         (EXCEPTIONS_SIGJMP_BUF): Delete.
2332         (EXCEPTIONS_SIGSETJMP): Likewise.
2333         (EXCEPTIONS_SIGLONGJMP): Likewise.
2334         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2335         from gdb_setjmp.h.
2336         * exceptions.c: Likewise.
2337
2338 2014-08-29  Gary Benson  <gbenson@redhat.com>
2339
2340         * cleanups.h: Moved to...
2341         * common/cleanups.h: New file.
2342         * cleanups.c: Moved to...
2343         * common/cleanups.c: New file.  Include common-defs.h and
2344         cleanups.h.  Do not include defs.h.
2345         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2346         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2347         (cleanups.o): New rule.
2348
2349 2014-08-29  Gary Benson  <gbenson@redhat.com>
2350
2351         * common/errors.h (internal_warning): New declaration.
2352         (internal_vwarning): Likewise.
2353         * common/errors.c (internal_warning): New function.
2354         * utils.h (internal_warning): Don't declare.
2355         (internal_vwarning): Likewise.
2356         * utils.c (internal_warning): Removed.
2357
2358 2014-08-29  Gary Benson  <gbenson@redhat.com>
2359
2360         * main.c (captured_main): Use warning during startup.
2361         Prefix startup warning messages with command name.
2362
2363 2014-08-29  Gary Benson  <gbenson@redhat.com>
2364
2365         * main.c (captured_main): Handle usage errors with error.
2366
2367 2014-08-29  Gary Benson  <gbenson@redhat.com>
2368
2369         * go32-nat.c (go32_create_inferior): Replace a fprintf/
2370         exit pair with a call to error.  Wrap the message with _().
2371
2372 2014-08-29  Gary Benson  <gbenson@redhat.com>
2373
2374         * main.c (captured_main): Replace a fprintf/exit
2375         pair with a call to error.  Wrap the message with _().
2376
2377 2014-08-29  Gary Benson  <gbenson@redhat.com>
2378
2379         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2380         pairs with calls to error.  Wrap the message with _().
2381
2382 2014-08-29  Gary Benson  <gbenson@redhat.com>
2383
2384         * utils.c (vwarning): Protect calls to target_terminal_ours
2385         and wrap_here.
2386
2387 2014-08-29  Gary Benson  <gbenson@redhat.com>
2388
2389         * exceptions.c (print_flush): Protect calls to
2390         target_terminal_ours and wrap_here.
2391
2392 2014-08-29  Gary Benson  <gbenson@redhat.com>
2393
2394         * utils.h (filtered_printing_initialized): New declaration.
2395         * utils.c (abort_with_message): New function.
2396         (internal_vproblem): Use abort_with_message for first level
2397         recursive internal problems, and if gdb_stderr is not set up.
2398         Protect calls to target_terminal_ours, begin_line and query.
2399
2400 2014-08-28  Doug Evans  <dje@google.com>
2401
2402         * symtab.c (in_prologue): Move definition to better spot.
2403         (skip_prologue_using_sal): Ditto.
2404
2405 2014-08-28  Doug Evans  <dje@google.com>
2406
2407         * symtab.c (find_function_start_sal): Move definition to better spot.
2408
2409 2014-08-28  Yao Qi  <yao@codesourcery.com>
2410
2411         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2412         found_stack_adjust in forward scan.  Remove condition check
2413         on found_stack_adjust which is always true.  Indent the code.
2414
2415 2014-08-28  Yao Qi  <yao@codesourcery.com>
2416
2417         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2418         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2419         (dwarf_decode_lines): Remove argument
2420         want_line_info.  Remove condition check on want_line_info.
2421         Callers update.
2422
2423 2014-08-27  Doug Evans  <dje@google.com>
2424
2425         * dwarf2read.c (dwarf_record_line): Fix typo.
2426
2427 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
2428
2429         * target.h (struct target_ops::to_terminal_save_ours): Remove
2430         declaration.
2431         (target_terminal_save_ours): Remove macro.
2432         * target-delegates.c: Regenerate.
2433         * inf-child.c (inf_child_target): Don't set the nonexistent
2434         field to_terminal_save_ours.
2435         * inferior.h (child_terminal_save_ours): Remove declaration.
2436         * terminal.h (gdb_save_tty_state): New declaration.
2437         * inflow.c (child_terminal_save_ours): Rename to ...
2438         (gdb_save_tty_state): ... this.
2439         * tui/tui.c: Include terminal.h.
2440         (tui_enable): Use gdb_save_tty_state instead of
2441         target_terminal_save_ours.
2442         (tui_disable): Likewise.
2443
2444 2014-08-25  Doug Evans  <dje@google.com>
2445
2446         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2447         Pass NULL instead of 0 for context pointer.
2448
2449 2014-08-25  Yao Qi  <yao@codesourcery.com>
2450
2451         * dwarf2read.c: Fix grammatical error.
2452
2453 2014-08-24  Yao Qi  <yao@codesourcery.com>
2454
2455         * dwarf2read.c (scan_partial_symbols):  Update comments.
2456         Rename argument 'need_pc' with 'set_addrmap'.
2457         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
2458         'set_addrmap'.
2459         (add_partial_module): Likewise.
2460         (add_partial_subprogram): Likewise.  Update comments.
2461         (dwarf2_name): Fix typo.
2462
2463 2014-08-22  Doug Evans  <dje@google.com>
2464
2465         PR 17276
2466         * dwarf2read.c (dwarf_record_line_p): New function.
2467         (dwarf_decode_lines_1): Ignore subsequent line number entries
2468         for the same line if any entry had a non-zero discriminator.
2469
2470 2014-08-22  Doug Evans  <dje@google.com>
2471
2472         * buildsym.h (record_line_ftype): New typedef.
2473         (record_line): Use it.
2474         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2475         (dwarf_decode_lines_1): Call them.
2476
2477 2014-08-22  Yao Qi  <yao@codesourcery.com>
2478
2479         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2480         (ctf_end): Remove code.
2481
2482 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2483
2484         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2485         (linux_make_corefile_notes): call update_thread_list, protected against
2486         exceptions.
2487
2488 2014-08-21  Pedro Alves  <palves@redhat.com>
2489
2490         * infcmd.c (attach_command): Remove comment.
2491
2492 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
2493
2494         * aarch64-linux-nat.c (dr_changed_t): Change the type from
2495         unsigned LONGEST to ULONGEST.
2496
2497 2014-08-20  Pedro Alves  <palves@redhat.com>
2498
2499         * Makefile.in (check-read1): New rule.
2500
2501 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
2502
2503         * value.c (value_from_contents_and_address): Strip resolved_type's
2504         typedef layers before checking its TYPE_DATA_LOCATION.
2505
2506 2014-08-20  Pedro Alves  <palves@redhat.com>
2507
2508         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2509
2510 2014-08-20  Yao Qi  <yao@codesourcery.com>
2511
2512         * amd64-tdep.c (amd64_classify): Add a blank line after the
2513         example.  Move "*/" to a new line.
2514         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2515         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2516         * dwarf2read.c (psymtab_include_file_name): Likewise.
2517
2518 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
2519             Pedro Alves  <palves@redhat.com>
2520
2521         PR symtab/14604
2522         PR symtab/14605
2523         * ada-lang.c (coerce_unspec_val_to_type): Use
2524         value_contents_copy_raw.
2525         * ada-valprint.c (val_print_packed_array_elements): Adjust.
2526         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2527         * cp-valprint.c (cp_print_value_fields): Let the common printing
2528         code handle optimized out values.
2529         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2530         * d-valprint.c (dynamic_array_type): Use
2531         value_bits_any_optimized_out.
2532         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2533         check_any_valid fields.
2534         (check_pieced_value_bits): Delete and inline ...
2535         (check_pieced_synthetic_pointer): ... here.
2536         (check_pieced_value_validity): Delete.
2537         (check_pieced_value_invalid): Delete.
2538         (pieced_value_funcs): Remove check_validity and check_any_valid
2539         fields.
2540         (read_pieced_value): Use mark_value_bits_optimized_out.
2541         (write_pieced_value): Switch to use
2542         mark_value_bytes_optimized_out.
2543         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2544         of assuming the whole value is optimized out.
2545         * findvar.c (read_frame_register_value): Remove special handling
2546         of optimized out registers.
2547         (value_from_register): Use mark_value_bytes_optimized_out.
2548         * frame-unwind.c (frame_unwind_got_optimized): Use
2549         mark_value_bytes_optimized_out.
2550         * jv-valprint.c (java_value_print): Adjust.
2551         (java_print_value_fields): Let the common printing code handle
2552         optimized out values.
2553         * mips-tdep.c (mips_print_register): Remove special handling of
2554         optimized out registers.
2555         * opencl-lang.c (lval_func_check_validity): Delete.
2556         (lval_func_check_any_valid): Delete.
2557         (opencl_value_funcs): Remove check_validity and check_any_valid
2558         fields.
2559         * p-valprint.c (pascal_object_print_value_fields): Let the common
2560         printing code handle optimized out values.
2561         * stack.c (read_frame_arg): Remove special handling of optimized
2562         out values.  Fetch both VAL and ENTRYVAL before comparing
2563         contents.  Adjust to value_available_contents_eq rename.
2564         * valprint.c (valprint_check_validity)
2565         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2566         (val_print_array_elements): Adjust.
2567         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2568         (value_bits_any_optimized_out): New function.
2569         (value_entirely_covered_by_range_vector): New function, factored
2570         out from value_entirely_unavailable.
2571         (value_entirely_unavailable): Reimplement.
2572         (value_entirely_optimized_out): New function.
2573         (insert_into_bit_range_vector): New function, factored out from
2574         mark_value_bits_unavailable.
2575         (mark_value_bits_unavailable): Reimplement.
2576         (struct ranges_and_idx): New struct.
2577         (find_first_range_overlap_and_match): New function, factored out
2578         from value_available_contents_bits_eq.
2579         (value_available_contents_bits_eq): Rename to ...
2580         (value_contents_bits_eq): ... this.  Check both unavailable
2581         contents and optimized out contents.
2582         (value_available_contents_eq): Rename to ...
2583         (value_contents_eq): ... this.
2584         (allocate_value_lazy): Remove reference to the old optimized_out
2585         boolean.
2586         (allocate_optimized_out_value): Use
2587         mark_value_bytes_optimized_out.
2588         (require_not_optimized_out): Adjust to check whether the
2589         optimized_out vec is empty.
2590         (ranges_copy_adjusted): New function, factored out from
2591         value_contents_copy_raw.
2592         (value_contents_copy_raw): Also copy the optimized out ranges.
2593         Assert the destination ranges aren't optimized out.
2594         (value_contents_copy): Update comment, remove call to
2595         require_not_optimized_out.
2596         (value_contents_equal): Adjust to check whether the optimized_out
2597         vec is empty.
2598         (set_value_optimized_out, value_optimized_out_const): Delete.
2599         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2600         New functions.
2601         (value_entirely_optimized_out, value_bits_valid): Delete.
2602         (value_copy): Take a VEC copy of the 'optimized_out' field.
2603         (value_primitive_field): Remove special handling of optimized out.
2604         (value_fetch_lazy): Assert that lazy values have no unavailable
2605         regions.  Use value_bits_any_optimized_out.  Remove some special
2606         handling for optimized out values.
2607         * value.h: Add intro comment about <optimized out> and
2608         <unavailable>.
2609         (struct lval_funcs): Remove check_validity and check_any_valid
2610         fields.
2611         (set_value_optimized_out, value_optimized_out_const): Remove.
2612         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2613         New declarations.
2614         (value_bits_any_optimized_out): New declaration.
2615         (value_bits_valid): Delete declaration.
2616         (value_available_contents_eq): Rename to ...
2617         (value_contents_eq): ... this, and extend comments.
2618
2619 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2620
2621         Fix -fsanitize=address on unreadable inferior strings.
2622         * valprint.c (val_print_string): Fix access before BUFFER.
2623
2624 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
2625
2626         * target.c (target_struct_size): Remove.
2627         (target_struct_allocsize): Remove.
2628         (DEFAULT_ALLOCSIZE): Remove.
2629         (target_ops_p): New typedef.
2630         (DEF_VEC_P (target_ops_p)): New vector type.
2631         (target_structs): Change type to VEC (target_ops_p).
2632         (add_target_with_completer): Replace "push" code by VEC_safe_push.
2633         (find_default_run_target): Rewrite for loop following changes to
2634         target_structs.
2635
2636 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
2637
2638         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2639         Adjust code accordingly.  Adjust function description comment.
2640
2641 2014-08-19  Yao Qi  <yao@codesourcery.com>
2642
2643         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2644         types.
2645
2646 2014-08-19  Alan Modra  <amodra@gmail.com>
2647
2648         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2649         * config.in: Regenerate.
2650         * configure: Regenerate.
2651
2652 2014-08-19  Tom Tromey  <tromey@redhat.com>
2653             Gary Benson  <gbenson@redhat.com>
2654
2655         * common/common-debug.h: New file.
2656         * common/common-debug.c: Likewise.
2657         * debug.c: Likewise.
2658         * Makefile.in (SFILES): Add common/common-debug.c.
2659         (HFILES_NO_SRCDIR): Add common/common-debug.h.
2660         (COMMON_OBS): Add common-debug.o and debug.o.
2661         (common-debug.o): New rule.
2662         * common/common-defs.h: Include common-debug.h.
2663         * common/agent.c (debug_agent_printf): New function.
2664         (DEBUG_AGENT): Redefine.
2665         * nat/i386-dregs.c (debug_printf): Undefine.
2666
2667 2014-08-19  Gary Benson  <gbenson@redhat.com>
2668
2669         * common/common-defs.h: Include print-utils.h.
2670         * utils.h: Do not include print-utils.h.
2671
2672 2014-08-19  Tom Tromey  <tromey@redhat.com>
2673             Gary Benson  <gbenson@redhat.com>
2674
2675         * common/common-types.h: New file.
2676         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2677         * common/common-defs.h: Include common-types.h.
2678         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2679         (ULONGEST): Remove.
2680
2681 2014-08-19  Tom Tromey  <tromey@redhat.com>
2682             Gary Benson  <gbenson@redhat.com>
2683
2684         * common/errors.h: New file.
2685         * common/errors.c: Likewise.
2686         * Makefile.in (SFILES): Add common/errors.c.
2687         (HFILES_NO_SRCDIR): Add common/errors.h.
2688         (COMMON_OBS): Add errors.o.
2689         (errors.o): New rule.
2690         * common/common-defs.h: Include errors.h.
2691         * utils.h (perror_with_name, error, verror, warning, vwarning):
2692         Don't declare.
2693         * common/common-utils.h: (malloc_failure, internal_error):
2694         Likewise.
2695
2696 2014-08-19  Gary Benson  <gbenson@redhat.com>
2697
2698         * utils.c (internal_vproblem): Always print the message.
2699
2700 2014-08-18  Doug Evans  <dje@google.com>
2701
2702         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2703
2704 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2705
2706         * ada-typeprint.c (type_is_full_subrange_of_target_type):
2707         Return 0 if TYPE is dynamic.
2708         (print_range): Add handling of dynamic ranges.
2709
2710 2014-08-18  Keven Boell  <keven.boell@intel.com>
2711             Joel Brobecker  <brobecker@adacore.com>
2712
2713         * gdbtypes.h (struct main_type): Add field "data_location".
2714         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2715         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2716         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2717         a dynamic data location.
2718         (resolve_dynamic_type): Add DW_AT_data_location handling.
2719         (copy_recursive, copy_type): Copy the data_location information
2720         when present.
2721         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2722         * value.c (value_from_contents_and_address): Add
2723         DW_AT_data_location handling.
2724
2725 2014-08-18  Keven Boell  <keven.boell@intel.com>
2726             Joel Brobecker  <brobecker@adacore.com>
2727
2728         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2729         field "get_object_address".
2730         * dwarf2expr.c (execute_stack_op): Add handling for
2731         DW_OP_push_object_address.
2732         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2733         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2734         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2735         (dwarf_expr_get_obj_addr): New function.
2736         (dwarf_expr_ctx_funcs): Add get_object_address field.
2737         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2738         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
2739         (dwarf2_evaluate_property): Add parameter "address".  Use it.
2740         (needs_get_obj_addr): New function.
2741         (needs_frame_ctx_funcs): Add get_object_address field.
2742         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2743         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
2744         (resolve_dynamic_array): Likewise.
2745
2746 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2747
2748         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2749         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2750         fixed value for records and unions for which some GNAT encodings
2751         are present.
2752
2753 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2754
2755         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2756         rewrite to avoid "else if" and "else" constructs.  Should be
2757         a no-op in practice.
2758
2759 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2760
2761         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2762         of lexical block.
2763
2764 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2765
2766         PR c++/17132
2767         * eval.c: Update all calls to find_overload_match.
2768         * valarith.c: Likewise.
2769         (value_user_defined_cpp_op, value_user_defined_op): New
2770         argument NOSIDE.  Update all callers.
2771         * valops.c (find_overload_match): New argument NOSIDE.
2772         * value.h (find_overload_match): Update signature.
2773
2774 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2775
2776         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2777         'items' methods instead of 'iteritems' method on dictionaries.
2778
2779 2014-08-15  Doug Evans  <dje@google.com>
2780
2781         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2782         closer to use.
2783
2784 2014-08-15  Doug Evans  <dje@google.com>
2785
2786         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2787
2788 2014-08-15  Doug Evans  <dje@google.com>
2789
2790         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2791
2792 2014-08-15  Doug Evans  <dje@google.com>
2793
2794         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2795         unused.
2796
2797 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
2798
2799         * dcache.h: Include target.h, to avoid compile time warnings.
2800
2801 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
2802
2803         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
2804         frame_info" partial declaration.
2805         * gdbarch.h: Regenerate.
2806
2807 2014-08-15  Yao Qi  <yao@codesourcery.com>
2808
2809         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2810         Add parameter 'decode_for_pst_p'.  Callers update.
2811
2812 2014-08-13  Yao Qi  <yao@codesourcery.com>
2813
2814         PR build/17104
2815         * configure.ac: Use local variable 'pos'.
2816         * configure: Regenerated.
2817
2818 2014-08-11  Doug Evans  <dje@google.com>
2819
2820         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2821         message, it is redundant with "Reading symbols from ..." message.
2822
2823 2014-08-10  Doug Evans  <xdje42@gmail.com>
2824
2825         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2826
2827 2014-08-09  Yao Qi  <yao@codesourcery.com>
2828
2829         PR remote/9053
2830         * remote.c (remote_xfer_partial): Remove dead code.
2831
2832 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2833
2834         * ia64-linux-tdep.c: Include "regset.h".
2835         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2836         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2837         (ia64_linux_supply_fpregset): New function.
2838         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2839         (ia64_linux_regset_from_core_section): New function.
2840         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2841         method.
2842
2843 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2844
2845         * m68klinux-tdep.c: Include "regset.h".
2846         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2847         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2848         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2849         (m68k_linux_regset_from_core_section): New function.
2850         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2851         method.
2852
2853 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2854
2855         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2856         function.  Move logic to...
2857         (tilegx_linux_regmap): ... this new register map.
2858         (tilegx_linux_regset): Refer to register map, replace supply
2859         method by regcache_supply_regset, and add collect method.
2860         * tilegx-tdep.h (enum tilegx_regnum): New enum value
2861         TILEGX_FIRST_EASY_REGNUM.
2862
2863 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2864
2865         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2866         that calls regcache_supply_regset and handles the EPC register
2867         separately.  Move main logic to...
2868         (score7_linux_gregmap): ... this new register map.
2869         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2870         (score7_linux_gregset): Refer to register map.  Add collect method.
2871         (score7_linux_regset_from_core_section): Replace
2872         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2873         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2874         (struct regset): Delete unused forward declaraction.
2875         (struct pt_regs): Delete structure definition.
2876         (elf_gregset_t): Delete typedef.
2877
2878 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2879
2880         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2881         (nios2_core_regset): Add collect method.
2882
2883 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2884
2885         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2886         platform-independent and don't write to read-only input buffer.
2887         (m32r_linux_collect_gregset): New function.
2888         (m32r_linux_gregset): Add collect method.
2889
2890 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2891
2892         * hppa-linux-tdep.c (greg_map): Rename to...
2893         (hppa_linux_gregmap): ... this.  Also convert to
2894         regcache_map_entry format.
2895         (hppa_linux_supply_regset): Delete function.
2896         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
2897         (hppa_linux_fpregmap): ... this new register map.
2898         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2899         register map, replace supply method by regcache_supply_regset, and
2900         add collect method regcache_collect_regset.
2901
2902 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2903
2904         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2905         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2906         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2907         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2908         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2909         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2910         (frv_linux_supply_gregset): Replace main logic by call to
2911         regcache_supply_regset, but keep clearing gr32-gr63.
2912         (frv_linux_supply_fpregset): Delete function.
2913         (frv_linux_gregset): Refer to appropriate register map and add
2914         regcache_collect_regset as the collect method.
2915         (frv_linux_fpregset): Likewise.  Also exchange the supply method
2916         by regcache_supply_regset.
2917
2918 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2919
2920         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2921         by call to alpha_supply_int_regs.
2922         (alpha_linux_collect_gregset): New function.
2923         (alpha_linux_supply_fpregset): Replace logic by call to
2924         alpha_supply_fp_regs.
2925         (alpha_linux_collect_fpregset): New function.
2926         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2927
2928 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2929
2930         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2931         by call to regcache_collect_regset.
2932         (supply_gregset, supply_fpregset): Call regcache_supply_regset
2933         instead of aarch64_linux_supply_gregset/_fpregset.
2934         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2935         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2936         header file instead.
2937         (aarch64_linux_supply_gregset, supply_gregset_from_core)
2938         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2939         functions.  Move logic to ...
2940         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2941         register maps.
2942         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2943         refer to new register maps, replace *_regset_from_core by
2944         regcache_supply_regset, and also use regcache_collect_regset.
2945         * aarch64-linux-tdep.h: Include "regset.h".
2946         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2947         Delete prototypes.
2948         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2949         macros, moved from C source file.
2950         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2951         variable declarations.
2952
2953 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2954
2955         * s390-linux-nat.c: Include "regset.h".
2956         (regmap_gregset): Delete macro.
2957         (s390_64_regmap_gregset): New register map for
2958         regcache_supply/_collect_regset.
2959         (s390_64_gregset): New regset.
2960         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2961         (regmap_fpregset): Delete macro.
2962         (s390_native_supply, s390_native_collect): Delete functions.
2963         (supply_gregset, fill_gregset): Replace s390-specific regmap
2964         handling by a call to regcache_supply/_collect_regset.
2965         (supply_fpregset, fill_fpregset): Call regcache_supply/
2966         _collect_regset instead of s390_native_supply/_collect.
2967         (fetch_regset, store_regset): Likewise.  Also change the last
2968         parameter to a regset instead of a regmap.
2969         (s390_linux_fetch_inferior_registers)
2970         (390_linux_store_inferior_registers): Adjust last parameter in
2971         calls to fetch_regset and store_regset.
2972         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2973         (s390_gregmap): ... this.  Also make static const and convert to
2974         regcache_map_entry format.
2975         (s390x_regmap_gregset): Delete.
2976         (s390_regmap_fpregset): Rename to...
2977         (s390_fpregmap): ... this.  Make static const and convert to
2978         regcache_map_entry format.
2979         (s390_regmap_upper, s390_regmap_last_break)
2980         (s390x_regmap_last_break, s390_regmap_system_call)
2981         (s390_regmap_tdb): Likewise.
2982         (s390_supply_regset, s390_collect_regset): Remove functions.
2983         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2984         s390_supply_regset.
2985         (s390_gregset, s390_fpregset, s390_upper_regset)
2986         (s390_last_break_regset, s390x_last_break_regset)
2987         (s390_system_call_regset, s390_tdb_regset): Make global and
2988         replace s390_supply/_collect_regset by regcache_supply/
2989         _collect_regset.
2990         (s390x_gregset): Delete.
2991         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2992         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2993         (s390_regmap_fpregset, s390_regmap_last_break)
2994         (s390x_regmap_last_break, s390_regmap_system_call)
2995         (s390_regmap_tdb): Delete global variable declarations.
2996         (s390_gregset, s390_fpregset, s390_last_break_regset)
2997         (s390x_last_break_regset, s390_system_call_regset)
2998         (s390_tdb_regset): New global variable declarations.
2999
3000 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3001
3002         * regcache.c: Include "regset.h".
3003         (regcache_transfer_regset): New local function.
3004         (regcache_supply_regset, regcache_collect_regset): New functions.
3005         * regcache.h (struct regcache_map_entry): New structure.
3006         (REGCACHE_MAP_SKIP): New enum value.
3007         (regcache_supply_regset, regcache_collect_regset): New prototypes.
3008
3009 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3010
3011         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3012         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3013         (ppc_linux_collect_gregset ): Likewise.
3014         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3015         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3016         (ppc_collect_vrregset): Likewise.
3017         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3018         Likewise.
3019
3020 2014-08-07  Yao Qi  <yao@codesourcery.com>
3021
3022         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3023         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3024         * remote.c (remote_read_bytes): Likewise.
3025
3026 2014-08-07  Yao Qi  <yao@codesourcery.com>
3027
3028         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3029
3030 2014-08-07  Yao Qi  <yao@codesourcery.com>
3031
3032         PR remote/17230
3033         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3034         TARGET_XFER_OK instead of 0.
3035
3036 2014-08-07  Gary Benson  <gbenson@redhat.com>
3037
3038         * common/common-defs.h: Include errno.h.
3039         * defs.h: Do not include errno.h.
3040         * ada-typeprint.c: Likewise.
3041         * c-typeprint.c: Likewise.
3042         * core-regset.c: Likewise.
3043         * corefile.c: Likewise.
3044         * corelow.c: Likewise.
3045         * event-loop.c: Likewise.
3046         * f-typeprint.c: Likewise.
3047         * gnu-nat.c: Likewise.
3048         * go32-nat.c: Likewise.
3049         * i386gnu-nat.c: Likewise.
3050         * m2-typeprint.c: Likewise.
3051         * nat/linux-btrace.c: Likewise.
3052         * p-typeprint.c: Likewise.
3053         * procfs.c: Likewise.
3054         * remote-sim.c: Likewise.
3055         * rs6000-nat.c: Likewise.
3056         * target.c: Likewise.
3057         * typeprint.c: Likewise.
3058         * ui-file.c: Likewise.
3059         * valops.c: Likewise.
3060         * valprint.c: Likewise.
3061
3062 2014-08-07  Gary Benson  <gbenson@redhat.com>
3063
3064         * common/common-defs.h: Include string.h.
3065         * aarch64-tdep.c: Do not include string.h.
3066         * ada-exp.y: Likewise.
3067         * ada-lang.c: Likewise.
3068         * ada-lex.l: Likewise.
3069         * ada-typeprint.c: Likewise.
3070         * ada-valprint.c: Likewise.
3071         * aix-thread.c: Likewise.
3072         * alpha-linux-tdep.c: Likewise.
3073         * alpha-mdebug-tdep.c: Likewise.
3074         * alpha-nat.c: Likewise.
3075         * alpha-osf1-tdep.c: Likewise.
3076         * alpha-tdep.c: Likewise.
3077         * alphanbsd-tdep.c: Likewise.
3078         * amd64-dicos-tdep.c: Likewise.
3079         * amd64-linux-tdep.c: Likewise.
3080         * amd64-nat.c: Likewise.
3081         * amd64-sol2-tdep.c: Likewise.
3082         * amd64fbsd-tdep.c: Likewise.
3083         * amd64obsd-tdep.c: Likewise.
3084         * arch-utils.c: Likewise.
3085         * arm-linux-nat.c: Likewise.
3086         * arm-linux-tdep.c: Likewise.
3087         * arm-tdep.c: Likewise.
3088         * arm-wince-tdep.c: Likewise.
3089         * armbsd-tdep.c: Likewise.
3090         * armnbsd-nat.c: Likewise.
3091         * armnbsd-tdep.c: Likewise.
3092         * armobsd-tdep.c: Likewise.
3093         * avr-tdep.c: Likewise.
3094         * ax-gdb.c: Likewise.
3095         * ax-general.c: Likewise.
3096         * bcache.c: Likewise.
3097         * bfin-tdep.c: Likewise.
3098         * breakpoint.c: Likewise.
3099         * build-id.c: Likewise.
3100         * buildsym.c: Likewise.
3101         * c-exp.y: Likewise.
3102         * c-lang.c: Likewise.
3103         * c-typeprint.c: Likewise.
3104         * c-valprint.c: Likewise.
3105         * charset.c: Likewise.
3106         * cli-out.c: Likewise.
3107         * cli/cli-cmds.c: Likewise.
3108         * cli/cli-decode.c: Likewise.
3109         * cli/cli-dump.c: Likewise.
3110         * cli/cli-interp.c: Likewise.
3111         * cli/cli-logging.c: Likewise.
3112         * cli/cli-script.c: Likewise.
3113         * cli/cli-setshow.c: Likewise.
3114         * cli/cli-utils.c: Likewise.
3115         * coffread.c: Likewise.
3116         * common/agent.c: Likewise.
3117         * common/buffer.c: Likewise.
3118         * common/buffer.h: Likewise.
3119         * common/common-utils.c: Likewise.
3120         * common/filestuff.c: Likewise.
3121         * common/filestuff.c: Likewise.
3122         * common/format.c: Likewise.
3123         * common/print-utils.c: Likewise.
3124         * common/rsp-low.c: Likewise.
3125         * common/signals.c: Likewise.
3126         * common/vec.h: Likewise.
3127         * common/xml-utils.c: Likewise.
3128         * core-regset.c: Likewise.
3129         * corefile.c: Likewise.
3130         * corelow.c: Likewise.
3131         * cp-abi.c: Likewise.
3132         * cp-name-parser.y: Likewise.
3133         * cp-support.c: Likewise.
3134         * cp-valprint.c: Likewise.
3135         * cris-tdep.c: Likewise.
3136         * d-exp.y: Likewise.
3137         * darwin-nat.c: Likewise.
3138         * dbxread.c: Likewise.
3139         * dcache.c: Likewise.
3140         * demangle.c: Likewise.
3141         * dicos-tdep.c: Likewise.
3142         * disasm.c: Likewise.
3143         * doublest.c: Likewise.
3144         * dsrec.c: Likewise.
3145         * dummy-frame.c: Likewise.
3146         * dwarf2-frame.c: Likewise.
3147         * dwarf2loc.c: Likewise.
3148         * dwarf2read.c: Likewise.
3149         * elfread.c: Likewise.
3150         * environ.c: Likewise.
3151         * eval.c: Likewise.
3152         * event-loop.c: Likewise.
3153         * exceptions.c: Likewise.
3154         * exec.c: Likewise.
3155         * expprint.c: Likewise.
3156         * f-exp.y: Likewise.
3157         * f-lang.c: Likewise.
3158         * f-typeprint.c: Likewise.
3159         * f-valprint.c: Likewise.
3160         * fbsd-nat.c: Likewise.
3161         * findcmd.c: Likewise.
3162         * findvar.c: Likewise.
3163         * fork-child.c: Likewise.
3164         * frame.c: Likewise.
3165         * frv-linux-tdep.c: Likewise.
3166         * frv-tdep.c: Likewise.
3167         * gdb.c: Likewise.
3168         * gdb_bfd.c: Likewise.
3169         * gdbarch.c: Likewise.
3170         * gdbarch.sh: Likewise.
3171         * gdbtypes.c: Likewise.
3172         * gnu-nat.c: Likewise.
3173         * gnu-v2-abi.c: Likewise.
3174         * gnu-v3-abi.c: Likewise.
3175         * go-exp.y: Likewise.
3176         * go-lang.c: Likewise.
3177         * go32-nat.c: Likewise.
3178         * guile/guile.c: Likewise.
3179         * guile/scm-auto-load.c: Likewise.
3180         * hppa-hpux-tdep.c: Likewise.
3181         * hppa-linux-nat.c: Likewise.
3182         * hppanbsd-tdep.c: Likewise.
3183         * hppaobsd-tdep.c: Likewise.
3184         * i386-cygwin-tdep.c: Likewise.
3185         * i386-dicos-tdep.c: Likewise.
3186         * i386-linux-tdep.c: Likewise.
3187         * i386-nto-tdep.c: Likewise.
3188         * i386-sol2-tdep.c: Likewise.
3189         * i386-tdep.c: Likewise.
3190         * i386bsd-tdep.c: Likewise.
3191         * i386gnu-nat.c: Likewise.
3192         * i386nbsd-tdep.c: Likewise.
3193         * i386obsd-tdep.c: Likewise.
3194         * i387-tdep.c: Likewise.
3195         * ia64-libunwind-tdep.c: Likewise.
3196         * ia64-linux-nat.c: Likewise.
3197         * inf-child.c: Likewise.
3198         * inf-ptrace.c: Likewise.
3199         * inf-ttrace.c: Likewise.
3200         * infcall.c: Likewise.
3201         * infcmd.c: Likewise.
3202         * inflow.c: Likewise.
3203         * infrun.c: Likewise.
3204         * interps.c: Likewise.
3205         * iq2000-tdep.c: Likewise.
3206         * irix5-nat.c: Likewise.
3207         * jv-exp.y: Likewise.
3208         * jv-lang.c: Likewise.
3209         * jv-typeprint.c: Likewise.
3210         * jv-valprint.c: Likewise.
3211         * language.c: Likewise.
3212         * linux-fork.c: Likewise.
3213         * linux-nat.c: Likewise.
3214         * lm32-tdep.c: Likewise.
3215         * m2-exp.y: Likewise.
3216         * m2-typeprint.c: Likewise.
3217         * m32c-tdep.c: Likewise.
3218         * m32r-linux-nat.c: Likewise.
3219         * m32r-linux-tdep.c: Likewise.
3220         * m32r-rom.c: Likewise.
3221         * m32r-tdep.c: Likewise.
3222         * m68hc11-tdep.c: Likewise.
3223         * m68k-tdep.c: Likewise.
3224         * m68kbsd-tdep.c: Likewise.
3225         * m68klinux-nat.c: Likewise.
3226         * m68klinux-tdep.c: Likewise.
3227         * m88k-tdep.c: Likewise.
3228         * machoread.c: Likewise.
3229         * macrocmd.c: Likewise.
3230         * main.c: Likewise.
3231         * mdebugread.c: Likewise.
3232         * mem-break.c: Likewise.
3233         * memattr.c: Likewise.
3234         * memory-map.c: Likewise.
3235         * mep-tdep.c: Likewise.
3236         * mi/mi-cmd-break.c: Likewise.
3237         * mi/mi-cmd-disas.c: Likewise.
3238         * mi/mi-cmd-env.c: Likewise.
3239         * mi/mi-cmd-stack.c: Likewise.
3240         * mi/mi-cmd-var.c: Likewise.
3241         * mi/mi-cmds.c: Likewise.
3242         * mi/mi-console.c: Likewise.
3243         * mi/mi-getopt.c: Likewise.
3244         * mi/mi-interp.c: Likewise.
3245         * mi/mi-main.c: Likewise.
3246         * mi/mi-parse.c: Likewise.
3247         * microblaze-rom.c: Likewise.
3248         * microblaze-tdep.c: Likewise.
3249         * mingw-hdep.c: Likewise.
3250         * minidebug.c: Likewise.
3251         * minsyms.c: Likewise.
3252         * mips-irix-tdep.c: Likewise.
3253         * mips-linux-tdep.c: Likewise.
3254         * mips-tdep.c: Likewise.
3255         * mips64obsd-tdep.c: Likewise.
3256         * mipsnbsd-tdep.c: Likewise.
3257         * mipsread.c: Likewise.
3258         * mn10300-linux-tdep.c: Likewise.
3259         * mn10300-tdep.c: Likewise.
3260         * monitor.c: Likewise.
3261         * moxie-tdep.c: Likewise.
3262         * mt-tdep.c: Likewise.
3263         * nat/linux-btrace.c: Likewise.
3264         * nat/linux-osdata.c: Likewise.
3265         * nat/linux-procfs.c: Likewise.
3266         * nat/linux-ptrace.c: Likewise.
3267         * nat/linux-waitpid.c: Likewise.
3268         * nbsd-tdep.c: Likewise.
3269         * nios2-linux-tdep.c: Likewise.
3270         * nto-procfs.c: Likewise.
3271         * nto-tdep.c: Likewise.
3272         * objc-lang.c: Likewise.
3273         * objfiles.c: Likewise.
3274         * opencl-lang.c: Likewise.
3275         * osabi.c: Likewise.
3276         * osdata.c: Likewise.
3277         * p-exp.y: Likewise.
3278         * p-lang.c: Likewise.
3279         * p-typeprint.c: Likewise.
3280         * parse.c: Likewise.
3281         * posix-hdep.c: Likewise.
3282         * ppc-linux-nat.c: Likewise.
3283         * ppc-sysv-tdep.c: Likewise.
3284         * ppcfbsd-tdep.c: Likewise.
3285         * ppcnbsd-tdep.c: Likewise.
3286         * ppcobsd-tdep.c: Likewise.
3287         * printcmd.c: Likewise.
3288         * procfs.c: Likewise.
3289         * prologue-value.c: Likewise.
3290         * python/py-auto-load.c: Likewise.
3291         * python/py-gdb-readline.c: Likewise.
3292         * ravenscar-thread.c: Likewise.
3293         * regcache.c: Likewise.
3294         * registry.c: Likewise.
3295         * remote-fileio.c: Likewise.
3296         * remote-m32r-sdi.c: Likewise.
3297         * remote-mips.c: Likewise.
3298         * remote-notif.c: Likewise.
3299         * remote-sim.c: Likewise.
3300         * remote.c: Likewise.
3301         * reverse.c: Likewise.
3302         * rs6000-aix-tdep.c: Likewise.
3303         * ser-base.c: Likewise.
3304         * ser-go32.c: Likewise.
3305         * ser-mingw.c: Likewise.
3306         * ser-pipe.c: Likewise.
3307         * ser-tcp.c: Likewise.
3308         * ser-unix.c: Likewise.
3309         * serial.c: Likewise.
3310         * sh-tdep.c: Likewise.
3311         * sh64-tdep.c: Likewise.
3312         * shnbsd-tdep.c: Likewise.
3313         * skip.c: Likewise.
3314         * sol-thread.c: Likewise.
3315         * solib-dsbt.c: Likewise.
3316         * solib-frv.c: Likewise.
3317         * solib-osf.c: Likewise.
3318         * solib-som.c: Likewise.
3319         * solib-spu.c: Likewise.
3320         * solib-target.c: Likewise.
3321         * solib.c: Likewise.
3322         * somread.c: Likewise.
3323         * source.c: Likewise.
3324         * sparc-nat.c: Likewise.
3325         * sparc-sol2-tdep.c: Likewise.
3326         * sparc-tdep.c: Likewise.
3327         * sparc64-tdep.c: Likewise.
3328         * sparc64fbsd-tdep.c: Likewise.
3329         * sparc64nbsd-tdep.c: Likewise.
3330         * sparcnbsd-tdep.c: Likewise.
3331         * spu-linux-nat.c: Likewise.
3332         * spu-multiarch.c: Likewise.
3333         * spu-tdep.c: Likewise.
3334         * stabsread.c: Likewise.
3335         * stack.c: Likewise.
3336         * std-regs.c: Likewise.
3337         * symfile.c: Likewise.
3338         * symmisc.c: Likewise.
3339         * symtab.c: Likewise.
3340         * target.c: Likewise.
3341         * thread.c: Likewise.
3342         * tilegx-linux-nat.c: Likewise.
3343         * tilegx-tdep.c: Likewise.
3344         * top.c: Likewise.
3345         * tracepoint.c: Likewise.
3346         * tui/tui-command.c: Likewise.
3347         * tui/tui-data.c: Likewise.
3348         * tui/tui-disasm.c: Likewise.
3349         * tui/tui-file.c: Likewise.
3350         * tui/tui-layout.c: Likewise.
3351         * tui/tui-out.c: Likewise.
3352         * tui/tui-regs.c: Likewise.
3353         * tui/tui-source.c: Likewise.
3354         * tui/tui-stack.c: Likewise.
3355         * tui/tui-win.c: Likewise.
3356         * tui/tui-windata.c: Likewise.
3357         * tui/tui-winsource.c: Likewise.
3358         * typeprint.c: Likewise.
3359         * ui-file.c: Likewise.
3360         * ui-out.c: Likewise.
3361         * user-regs.c: Likewise.
3362         * utils.c: Likewise.
3363         * v850-tdep.c: Likewise.
3364         * valarith.c: Likewise.
3365         * valops.c: Likewise.
3366         * valprint.c: Likewise.
3367         * value.c: Likewise.
3368         * varobj.c: Likewise.
3369         * vax-tdep.c: Likewise.
3370         * vaxnbsd-tdep.c: Likewise.
3371         * vaxobsd-tdep.c: Likewise.
3372         * windows-nat.c: Likewise.
3373         * xcoffread.c: Likewise.
3374         * xml-support.c: Likewise.
3375         * xstormy16-tdep.c: Likewise.
3376         * xtensa-linux-nat.c: Likewise.
3377
3378 2014-08-07  Gary Benson  <gbenson@redhat.com>
3379
3380         * common/common-defs.h: Include gdb_assert.h.
3381         * aarch64-tdep.c: Do not include gdb_assert.h.
3382         * addrmap.c: Likewise.
3383         * aix-thread.c: Likewise.
3384         * alpha-linux-tdep.c: Likewise.
3385         * alpha-mdebug-tdep.c: Likewise.
3386         * alphanbsd-tdep.c: Likewise.
3387         * amd64-nat.c: Likewise.
3388         * amd64-tdep.c: Likewise.
3389         * amd64bsd-nat.c: Likewise.
3390         * amd64fbsd-nat.c: Likewise.
3391         * amd64fbsd-tdep.c: Likewise.
3392         * amd64nbsd-nat.c: Likewise.
3393         * amd64nbsd-tdep.c: Likewise.
3394         * amd64obsd-nat.c: Likewise.
3395         * amd64obsd-tdep.c: Likewise.
3396         * arch-utils.c: Likewise.
3397         * arm-tdep.c: Likewise.
3398         * armbsd-tdep.c: Likewise.
3399         * auxv.c: Likewise.
3400         * bcache.c: Likewise.
3401         * bfin-tdep.c: Likewise.
3402         * blockframe.c: Likewise.
3403         * breakpoint.c: Likewise.
3404         * bsd-kvm.c: Likewise.
3405         * bsd-uthread.c: Likewise.
3406         * buildsym.c: Likewise.
3407         * c-exp.y: Likewise.
3408         * c-lang.c: Likewise.
3409         * charset.c: Likewise.
3410         * cleanups.c: Likewise.
3411         * cli-out.c: Likewise.
3412         * cli/cli-decode.c: Likewise.
3413         * cli/cli-dump.c: Likewise.
3414         * cli/cli-logging.c: Likewise.
3415         * cli/cli-script.c: Likewise.
3416         * cli/cli-utils.c: Likewise.
3417         * coffread.c: Likewise.
3418         * common/common-utils.c: Likewise.
3419         * common/queue.h: Likewise.
3420         * common/signals.c: Likewise.
3421         * common/vec.h: Likewise.
3422         * complaints.c: Likewise.
3423         * completer.c: Likewise.
3424         * corelow.c: Likewise.
3425         * cp-abi.c: Likewise.
3426         * cp-name-parser.y: Likewise.
3427         * cp-namespace.c: Likewise.
3428         * cp-support.c: Likewise.
3429         * cris-tdep.c: Likewise.
3430         * dbxread.c: Likewise.
3431         * dictionary.c: Likewise.
3432         * doublest.c: Likewise.
3433         * dsrec.c: Likewise.
3434         * dummy-frame.c: Likewise.
3435         * dwarf2-frame-tailcall.c: Likewise.
3436         * dwarf2-frame.c: Likewise.
3437         * dwarf2expr.c: Likewise.
3438         * dwarf2loc.c: Likewise.
3439         * dwarf2read.c: Likewise.
3440         * eval.c: Likewise.
3441         * event-loop.c: Likewise.
3442         * exceptions.c: Likewise.
3443         * expprint.c: Likewise.
3444         * f-valprint.c: Likewise.
3445         * fbsd-nat.c: Likewise.
3446         * findvar.c: Likewise.
3447         * frame-unwind.c: Likewise.
3448         * frame.c: Likewise.
3449         * frv-tdep.c: Likewise.
3450         * gcore.c: Likewise.
3451         * gdb-dlfcn.c: Likewise.
3452         * gdb_bfd.c: Likewise.
3453         * gdbarch.c: Likewise.
3454         * gdbarch.sh: Likewise.
3455         * gdbtypes.c: Likewise.
3456         * gnu-nat.c: Likewise.
3457         * gnu-v3-abi.c: Likewise.
3458         * go-lang.c: Likewise.
3459         * guile/scm-exception.c: Likewise.
3460         * guile/scm-gsmob.c: Likewise.
3461         * guile/scm-lazy-string.c: Likewise.
3462         * guile/scm-math.c: Likewise.
3463         * guile/scm-pretty-print.c: Likewise.
3464         * guile/scm-safe-call.c: Likewise.
3465         * guile/scm-utils.c: Likewise.
3466         * guile/scm-value.c: Likewise.
3467         * h8300-tdep.c: Likewise.
3468         * hppa-hpux-nat.c: Likewise.
3469         * hppa-tdep.c: Likewise.
3470         * hppanbsd-tdep.c: Likewise.
3471         * hppaobsd-tdep.c: Likewise.
3472         * i386-darwin-nat.c: Likewise.
3473         * i386-darwin-tdep.c: Likewise.
3474         * i386-nto-tdep.c: Likewise.
3475         * i386-tdep.c: Likewise.
3476         * i386bsd-nat.c: Likewise.
3477         * i386fbsd-tdep.c: Likewise.
3478         * i386gnu-nat.c: Likewise.
3479         * i386nbsd-tdep.c: Likewise.
3480         * i386obsd-tdep.c: Likewise.
3481         * i387-tdep.c: Likewise.
3482         * ia64-libunwind-tdep.c: Likewise.
3483         * ia64-tdep.c: Likewise.
3484         * inf-ptrace.c: Likewise.
3485         * inf-ttrace.c: Likewise.
3486         * infcall.c: Likewise.
3487         * infcmd.c: Likewise.
3488         * infrun.c: Likewise.
3489         * inline-frame.c: Likewise.
3490         * interps.c: Likewise.
3491         * jv-lang.c: Likewise.
3492         * jv-typeprint.c: Likewise.
3493         * linux-fork.c: Likewise.
3494         * linux-nat.c: Likewise.
3495         * linux-thread-db.c: Likewise.
3496         * m32c-tdep.c: Likewise.
3497         * m32r-linux-nat.c: Likewise.
3498         * m32r-tdep.c: Likewise.
3499         * m68k-tdep.c: Likewise.
3500         * m68kbsd-nat.c: Likewise.
3501         * m68kbsd-tdep.c: Likewise.
3502         * m88k-tdep.c: Likewise.
3503         * machoread.c: Likewise.
3504         * macroexp.c: Likewise.
3505         * macrotab.c: Likewise.
3506         * maint.c: Likewise.
3507         * mdebugread.c: Likewise.
3508         * memory-map.c: Likewise.
3509         * mep-tdep.c: Likewise.
3510         * mi/mi-common.c: Likewise.
3511         * microblaze-tdep.c: Likewise.
3512         * mingw-hdep.c: Likewise.
3513         * mips-linux-nat.c: Likewise.
3514         * mips-linux-tdep.c: Likewise.
3515         * mips-tdep.c: Likewise.
3516         * mips64obsd-tdep.c: Likewise.
3517         * mipsnbsd-tdep.c: Likewise.
3518         * mn10300-linux-tdep.c: Likewise.
3519         * mn10300-tdep.c: Likewise.
3520         * moxie-tdep.c: Likewise.
3521         * mt-tdep.c: Likewise.
3522         * nat/linux-btrace.c: Likewise.
3523         * nat/linux-osdata.c: Likewise.
3524         * nat/linux-ptrace.c: Likewise.
3525         * nat/mips-linux-watch.c: Likewise.
3526         * nios2-linux-tdep.c: Likewise.
3527         * nios2-tdep.c: Likewise.
3528         * objc-lang.c: Likewise.
3529         * objfiles.c: Likewise.
3530         * obsd-nat.c: Likewise.
3531         * opencl-lang.c: Likewise.
3532         * osabi.c: Likewise.
3533         * parse.c: Likewise.
3534         * ppc-linux-nat.c: Likewise.
3535         * ppc-sysv-tdep.c: Likewise.
3536         * ppcfbsd-nat.c: Likewise.
3537         * ppcfbsd-tdep.c: Likewise.
3538         * ppcnbsd-nat.c: Likewise.
3539         * ppcnbsd-tdep.c: Likewise.
3540         * ppcobsd-nat.c: Likewise.
3541         * ppcobsd-tdep.c: Likewise.
3542         * printcmd.c: Likewise.
3543         * procfs.c: Likewise.
3544         * prologue-value.c: Likewise.
3545         * psymtab.c: Likewise.
3546         * python/py-lazy-string.c: Likewise.
3547         * python/py-value.c: Likewise.
3548         * regcache.c: Likewise.
3549         * reggroups.c: Likewise.
3550         * registry.c: Likewise.
3551         * remote-sim.c: Likewise.
3552         * remote.c: Likewise.
3553         * rs6000-aix-tdep.c: Likewise.
3554         * rs6000-tdep.c: Likewise.
3555         * s390-linux-tdep.c: Likewise.
3556         * score-tdep.c: Likewise.
3557         * ser-base.c: Likewise.
3558         * ser-mingw.c: Likewise.
3559         * sh-tdep.c: Likewise.
3560         * sh64-tdep.c: Likewise.
3561         * solib-darwin.c: Likewise.
3562         * solib-spu.c: Likewise.
3563         * solib-svr4.c: Likewise.
3564         * source.c: Likewise.
3565         * sparc-nat.c: Likewise.
3566         * sparc-sol2-tdep.c: Likewise.
3567         * sparc-tdep.c: Likewise.
3568         * sparc64-sol2-tdep.c: Likewise.
3569         * sparc64-tdep.c: Likewise.
3570         * sparc64fbsd-tdep.c: Likewise.
3571         * sparc64nbsd-tdep.c: Likewise.
3572         * sparc64obsd-tdep.c: Likewise.
3573         * sparcnbsd-tdep.c: Likewise.
3574         * sparcobsd-tdep.c: Likewise.
3575         * spu-multiarch.c: Likewise.
3576         * spu-tdep.c: Likewise.
3577         * stabsread.c: Likewise.
3578         * stack.c: Likewise.
3579         * symfile.c: Likewise.
3580         * symtab.c: Likewise.
3581         * target-descriptions.c: Likewise.
3582         * target-memory.c: Likewise.
3583         * target.c: Likewise.
3584         * tic6x-linux-tdep.c: Likewise.
3585         * tic6x-tdep.c: Likewise.
3586         * tilegx-linux-nat.c: Likewise.
3587         * tilegx-tdep.c: Likewise.
3588         * top.c: Likewise.
3589         * tramp-frame.c: Likewise.
3590         * tui/tui-out.c: Likewise.
3591         * tui/tui-winsource.c: Likewise.
3592         * ui-out.c: Likewise.
3593         * user-regs.c: Likewise.
3594         * utils.c: Likewise.
3595         * v850-tdep.c: Likewise.
3596         * valops.c: Likewise.
3597         * value.c: Likewise.
3598         * varobj.c: Likewise.
3599         * vax-nat.c: Likewise.
3600         * xml-syscall.c: Likewise.
3601         * xml-tdesc.c: Likewise.
3602         * xstormy16-tdep.c: Likewise.
3603         * xtensa-linux-nat.c: Likewise.
3604         * xtensa-tdep.c: Likewise.
3605
3606 2014-08-07  Gary Benson  <gbenson@redhat.com>
3607
3608         * common/common-defs.h: Include common-utils.h.
3609         * defs.h: Do not include common-utils.h.
3610         * common/gdb_assert.h: Likewise.
3611         * darwin-nat.h: Likewise.
3612         * nat/linux-btrace.c: Likewise.
3613         * target/waitstatus.h: Likewise.
3614
3615 2014-08-07  Gary Benson  <gbenson@redhat.com>
3616
3617         * common/common-defs.h: Include ptid.h.
3618         * defs.h: Do not include ptid.h.
3619         * inferior.h: Likewise.
3620         * infrun.h: Likewise.
3621         * nat/linux-btrace.h: Likewise.
3622         * nat/linux-osdata.h: Likewise.
3623         * target/waitstatus.h: Likewise.
3624
3625 2014-08-07  Gary Benson  <gbenson@redhat.com>
3626
3627         * common/common-defs.h: Include gdb_locale.h.
3628         * defs.h: Do not include gdb_locale.h.
3629
3630 2014-08-07  Gary Benson  <gbenson@redhat.com>
3631
3632         * common/common-defs.h: Include gdb/signals.h.
3633         * defs.h: Do not include gdb/signals.h.
3634
3635 2014-08-07  Gary Benson  <gbenson@redhat.com>
3636
3637         * common/common-defs.h: Include pathmax.h.
3638         * defs.h: Do not include pathmax.h.
3639
3640 2014-08-07  Gary Benson  <gbenson@redhat.com>
3641
3642         * common/common-defs.h: Include libiberty.h.
3643         * defs.h: Do not include libiberty.h.
3644         * common/queue.h: Likewise.
3645         * cp-name-parser.y: Likewise.
3646         * mi/mi-cmd-catch.c: Likewise.
3647         * python/python.c: Likewise.
3648
3649 2014-08-07  Gary Benson  <gbenson@redhat.com>
3650
3651         * common/common-defs.h: Include ansidecl.h.
3652         * defs.h: Do not include ansidecl.h.
3653         * common/buffer.h: Likewise.
3654         * common/common-utils.h: Likewise.
3655
3656 2014-08-07  Gary Benson  <gbenson@redhat.com>
3657
3658         * common/common-defs.h: Include stddef.h.
3659         * defs.h: Do not include stddef.h.
3660         * common/common-utils.h: Likewise.
3661         * amd64fbsd-nat.c: Likewise.
3662         * bcache.c: Likewise.
3663         * charset.c: Likewise.
3664         * common/buffer.h: Likewise.
3665         * common/vec.h: Likewise.
3666         * i386bsd-nat.c: Likewise.
3667         * nat/linux-btrace.h: Likewise.
3668         * ppcfbsd-nat.c: Likewise.
3669         * ppcnbsd-tdep.h: Likewise.
3670         * ppcobsd-nat.c: Likewise.
3671         * ppcobsd-tdep.h: Likewise.
3672         * python/py-gdb-readline.c: Likewise.
3673
3674 2014-08-07  Gary Benson  <gbenson@redhat.com>
3675
3676         * common/common-defs.h: Include stdarg.h.
3677         * defs.h: Do not include stdarg.h.
3678         * ada-lang.c: Likewise.
3679         * common/common-utils.h: Likewise.
3680         * guile/scm-string.c: Likewise.
3681         * guile/scm-utils.c: Likewise.
3682         * m32c-tdep.c: Likewise.
3683
3684 2014-08-07  Gary Benson  <gbenson@redhat.com>
3685
3686         * common/common-defs.h: Include stdlib.h.
3687         * defs.h: Do not include stdlib.h.
3688         * addrmap.c: Likewise.
3689         * bcache.c: Likewise.
3690         * common/buffer.c: Likewise.
3691         * common/common-utils.c: Likewise.
3692         * cp-name-parser.y: Likewise.
3693         * go32-nat.c: Likewise.
3694         * mn10300-linux-tdep.c: Likewise.
3695         * nat/linux-osdata.c: Likewise.
3696         * tui/tui.c: Likewise.
3697         * windows-nat.c: Likewise.
3698
3699 2014-08-07  Gary Benson  <gbenson@redhat.com>
3700
3701         * common/common-defs.h: Include stdio.h.
3702         * defs.h: Do not include stdio.h.
3703         * ada-lang.c: Likewise.
3704         * common/buffer.c: Likewise.
3705         * common/common-utils.c: Likewise.
3706         * cp-name-parser.y: Likewise.
3707         * gnu-nat.c: Likewise.
3708         * go32-nat.c: Likewise.
3709         * i386gnu-nat.c: Likewise.
3710         * proc-api.c: Likewise.
3711         * proc-events.c: Likewise.
3712         * proc-flags.c: Likewise.
3713         * proc-why.c: Likewise.
3714         * python/python-internal.h: Likewise.
3715         * target-memory.c: Likewise.
3716         * tui/tui-io.c: Likewise.
3717         * tui/tui.c: Likewise.
3718
3719 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
3720
3721         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3722         (scan_dyntag_auxv): Same.
3723
3724 2014-08-06  Yao Qi  <yao@codesourcery.com>
3725
3726         * amd64-linux-nat.c: Remove duplicated include
3727         "x86-linux-nat.h".
3728         * i386-linux-nat.c: Likewise.
3729
3730 2014-08-06  Yao Qi  <yao@codesourcery.com>
3731
3732         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3733         operand" with "Special opcode" in comments.
3734
3735 2014-08-05  Gary Benson  <gbenson@redhat.com>
3736
3737         * interps.c (initialize_interps): Remove prototype.
3738         (interpreter_initialized): Remove static global.
3739         (interp_add): Do not call initialize_interps.
3740         (initialize_interps): Remove function.
3741
3742 2014-08-05  Gary Benson  <gbenson@redhat.com>
3743
3744         * utils.c (vwarning): Remove spurious va_end.
3745
3746 2014-08-05  Alan Modra  <amodra@gmail.com>
3747
3748         * charset.c (convert_between_encodings): Cast result of obstack_base.
3749         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3750         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3751         (read_unwind_info): Use size_t for some locals.
3752         * jit.c (finalize_symtab): Likewise.
3753         * utils.c (hashtab_obstack_allocate): Likewise.
3754         * symmisc.c (print_objfile_statistics): Update format strings.
3755
3756 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3757
3758         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3759         (Changes in GDB 7.8): ... here.
3760
3761 2014-08-04  Tom Tromey  <tromey@redhat.com>
3762
3763         * target.c (set_targetdebug): New function.
3764         (initialize_targets): Pass set_targetdebug when creating "set
3765         debug target".
3766
3767 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3768
3769         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3770         if detecting a variable-sized field that is not the last field.
3771         Fix struct type length computation.
3772
3773 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3774
3775         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3776         Add debug trace.
3777
3778 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3779
3780         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3781         Remove "+ 8" offset in computation of CHAIN_VMA.
3782
3783 2014-07-31  Doug Evans  <dje@google.com>
3784
3785         * inflow.c (child_terminal_inferior): Add comment.
3786         (child_terminal_ours_for_output): Add comment.
3787         (child_terminal_ours): Add comment.
3788         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3789         (linux_nat_terminal_ours): Add comment.
3790
3791 2014-07-31  Gary Benson  <gbenson@redhat.com>
3792
3793         * common/btrace-common.h: Do not include defs.h or server.h.
3794         * nat/mips-linux-watch.h: Likewise.
3795         * gdb-dlfcn.h: Do not include defs.h.
3796         * tracefile.h: Likewise.
3797
3798 2014-07-30  Roland McGrath  <mcgrathr@google.com>
3799
3800         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3801
3802 2014-07-30  Tom Tromey  <tromey@redhat.com>
3803
3804         * bsd-kvm.c (bsd_kvm_open): Constify.
3805         * corelow.c (core_open): Constify.
3806         * ctf.c (ctf_open): Constify.
3807         * dbug-rom.c (dbug_open): Constify.
3808         * exec.c (exec_open): Constify.
3809         * m32r-rom.c (m32r_open, mon2000_open): Constify.
3810         * microblaze-rom.c (picobug_open): Constify.
3811         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3812         Constify.
3813         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3814         * record-btrace.c (record_btrace_open): Constify.
3815         * record-full.c (record_full_core_open_1, record_full_open_1)
3816         (record_full_open): Constify.
3817         * remote-m32r-sdi.c (m32r_open): Constify.
3818         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3819         (rockhopper_open, lsi_open): Constify.
3820         * remote-sim.c (gdbsim_open): Constify.
3821         * remote.c (remote_open, extended_remote_open, remote_open_1):
3822         Constify.
3823         * target.h (struct target_ops) <to_open>: Make "arg" const.
3824         * tracefile-tfile.c (tfile_open): Constify.
3825
3826 2014-07-30  Tom Tromey  <tromey@redhat.com>
3827
3828         * breakpoint.c (map_breakpoint_numbers): Update.
3829         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
3830         (get_number_const): New function.
3831         (get_number): Rewrite using get_number_const.
3832         (init_number_or_range): Make "string" const.
3833         (number_is_in_list): Make "list" const.
3834         * cli/cli-utils.h (get_number_const): Declare.
3835         (struct get_number_or_range_state) <string, end_ptr>: Now const.
3836         (init_number_or_range, number_is_in_list): Update.
3837         * printcmd.c (map_display_numbers): Update.
3838         * value.c (value_from_history_ref): Constify.
3839         * value.h (value_from_history_ref): Update.
3840
3841 2014-07-30  Tom Tromey  <tromey@redhat.com>
3842
3843         * corefile.c (hook_type, call_extra_exec_file_hooks)
3844         (specify_exec_file_hook): Constify.
3845         * exec.c (exec_file_attach): Make "filename" const.
3846         * gdbcore.h (deprecated_exec_file_display_hook)
3847         (specify_exec_file_hook, exec_file_attach): Constify.
3848         * main.c (captured_main): Use catch_command_errors_const.
3849
3850 2014-07-30  Tom Tromey  <tromey@redhat.com>
3851
3852         * target.c (open_target): New function.
3853         (add_target_with_completer, add_deprecated_target_alias): Use
3854         set_cmd_sfunc, set_cmd_context.
3855         (debug_to_open): Remove.
3856         (setup_target_debug): Update.
3857
3858 2014-07-30  Yao Qi  <yao@codesourcery.com>
3859
3860         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3861         comments.
3862         * parse.c (exp_iterate): Update comments.
3863
3864 2014-07-30  Gary Benson  <gbenson@redhat.com>
3865
3866         * common/common-defs.h: New file.
3867         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3868         * defs.h: Include common-defs.h.
3869         Do not include config.h or build-gnulib/config.h.
3870
3871 2014-07-30  Gary Benson  <gbenson@redhat.com>
3872
3873         * common/common-utils.h: Do not include config.h.
3874         * nat/linux-btrace.h: Likewise.
3875
3876 2014-07-30  Gary Benson  <gbenson@redhat.com>
3877
3878         * btrace.c: Include defs.h.
3879         * common/ptid.c: Include defs.h or server.h as appropriate.
3880         * nat/mips-linux-watch.c: Likewise.
3881
3882 2014-07-29  Tom Tromey  <tromey@redhat.com>
3883
3884         * target.c (target_is_pushed): Simplify.
3885
3886 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
3887
3888         GDB 7.8 released.
3889
3890 2014-07-29  Yao Qi  <yao@codesourcery.com>
3891
3892         PR gdb/17206
3893         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3894
3895 2014-07-28  Doug Evans  <xdje42@gmail.com>
3896
3897         PR guile/17203
3898         * guile/scm-param.c (pascm_parameter_defined_p): New function.
3899         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
3900         parameters.
3901
3902 2014-07-28  Will Newton  <will.newton@linaro.org>
3903
3904         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3905         (THUMB2_SET_R7_SIGRETURN2): Likewise.
3906         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3907         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3908         (THUMB2_EABI_SYSCALL): Likewise.
3909         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3910         struct tramp_frame.
3911         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3912         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3913
3914 2014-07-27  Doug Evans  <xdje42@gmail.com>
3915
3916         * guile/scm-param.c (pascm_print_param_smob): Fix output.
3917
3918 2014-07-27  Doug Evans  <xdje42@gmail.com>
3919
3920         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3921
3922 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3923             Doug Evans  <xdje42@gmail.com>
3924
3925         PR guile/17146
3926         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3927         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3928         * configure.ac: Try to use guild to compile an scm file, if it fails
3929         then disable guile support.
3930         * configure: Regenerate.
3931         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3932         GUILE_FILE_LIST.
3933         (GUILE_COMPILED_FILES): New variable.
3934         (GUILE_FILES) Update.
3935         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3936         (stamp-guile): Compile scm files.
3937         * guile/guile.c (boot_guile_support): New function.
3938         (standard_throw_args_p): New function.
3939         (print_standard_throw_error, print_throw_error): New functions.
3940         (handle_boot_error): New function.
3941         (initialize_scheme_side): Rewrite to call boot_guile_support.
3942         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
3943         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3944
3945 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3946             Doug Evans  <xdje42@gmail.com>
3947
3948         PR guile/17146
3949         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3950         * guile/lib/gdb/support.scm: New file.
3951         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3952         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3953         All uses updated.
3954         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3955         All uses updated.
3956         (%assert-type): Ditto, and renamed to assert-type.
3957         (%exception-print-style): Delete.
3958
3959 2014-07-26  Doug Evans  <xdje42@gmail.com>
3960
3961         PR build/17105
3962         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3963         * configure: Regenerate.
3964         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3965         PYTHON_FILES.
3966         (PYTHON_FILES): New variable.
3967         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3968         (GUILE_FILES): New variable.
3969         (stamp-python, install-python, uninstall-python): Handle empty
3970         file list.
3971         (stamp-guile, install-guile, uninstall-guile): Ditto.
3972
3973 2014-07-26  Doug Evans  <xdje42@gmail.com>
3974
3975         PR guile/17177
3976         * guile/lib/gdb.scm (pretty-printers): Export.
3977         (set-pretty-printers!): Export.
3978         * guile/lib/gdb/printing.scm (gdb module): Update.
3979         (prepend-pretty-printer!, append-pretty-printer!): Update.
3980         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3981         (pretty_printer_list_var): Delete.
3982         (pretty_printer_list): New static global.
3983         (gdbscm_pretty_printers): New function.
3984         (gdbscm_set_pretty_printers_x): New function.
3985         (ppscm_find_pretty_printer_from_gdb): Update.
3986         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3987         (gdbscm_initialize_pretty_printers): Update.
3988
3989 2014-07-26  Doug Evans  <xdje42@gmail.com>
3990
3991         PR 17185
3992         * configure.ac: Add check for header gc/gc.h.
3993         Add check for function setenv.
3994         * configure: Regenerate.
3995         * config.in: Regenerate.
3996         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3997
3998 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
3999
4000         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4001         variation in gdbarch matching.
4002
4003 2014-07-25  Tom Tromey  <tromey@redhat.com>
4004
4005         * exec.c (using_exec_ops): Remove.
4006         (exec_close_1): Update.  Remove extraneous block, reindent.
4007         (add_target_sections): Use target_is_pushed.
4008
4009 2014-07-25  Pedro Alves  <palves@redhat.com>
4010
4011         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4012         * monitor.c (monitor_create_inferior): Likewise.
4013         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4014         * remote-sim.c (gdbsim_create_inferior): Likewise.
4015         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4016         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4017         * windows-nat.c (do_initial_windows_stuff): Likewise.
4018
4019 2014-07-25  Pedro Alves  <palves@redhat.com>
4020
4021         * NEWS: Mention signal passing and "signal" command changes.
4022         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4023         comment.
4024         * breakpoint.c (until_break_command): Adjust clear_proceed_status
4025         call.
4026         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4027         * infcmd.c (proceed_thread_callback, continue_1, step_once)
4028         (jump_command): Adjust clear_proceed_status call.
4029         (signal_command): Warn if other thread that are resumed have
4030         signals that will be delivered.  Adjust clear_proceed_status call.
4031         (until_next_command, finish_command)
4032         (proceed_after_attach_callback, attach_command_post_wait)
4033         (attach_command): Adjust clear_proceed_status call.
4034         * infrun.c (proceed_after_vfork_done): Likewise.
4035         (proceed_after_attach_callback): Adjust comment.
4036         (clear_proceed_status_thread): Clear stop_signal if not in pass
4037         state.
4038         (clear_proceed_status_callback): Delete.
4039         (clear_proceed_status): New 'step' parameter.  Only clear the
4040         proceed status of threads the command being prepared is about to
4041         resume.
4042         (proceed): If passed in an explicit signal, override stop_signal
4043         with it.  Don't pass the last stop signal to the thread we're
4044         resuming.
4045         (init_wait_for_inferior): Adjust clear_proceed_status call.
4046         (switch_back_to_stepped_thread): Clear the signal if it should not
4047         be passed.
4048         * infrun.h (clear_proceed_status): New 'step' parameter.
4049         (user_visible_resume_ptid): Add comment.
4050         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4051         signal is in pass state.
4052         * remote.c (append_pending_thread_resumptions): Likewise.
4053         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4054
4055 2014-07-25  Tom Tromey  <tromey@redhat.com>
4056
4057         * target.h (target_stopped_data_address)
4058         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
4059         parentheses.
4060
4061 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
4062
4063         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4064         comments.
4065         (avr_pointer_to_address): Likewise.
4066
4067 2014-07-24  Tom Tromey  <tromey@redhat.com>
4068
4069         * monitor.c (compile_pattern): Update.
4070         * target.h (struct target_ops) <to_shortname, to_longname,
4071         to_doc>: Now const.
4072
4073 2014-07-24  Tom Tromey  <tromey@redhat.com>
4074
4075         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4076         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4077         (add_info_alias, add_com): Make "doc" const.
4078         (print_doc_line): Make "str" const.
4079         (delete_cmd): Update.
4080         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4081         (print_doc_line): Update.
4082         * cli/cli-script.c (document_command): Update.
4083         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4084         (add_com, add_info, add_info_alias): Update.
4085         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4086         * python/py-cmd.c (cmdpy_destroyer): Update.
4087
4088 2014-07-24  Tom Tromey  <tromey@redhat.com>
4089
4090         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4091         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4092         (help_cmd_list): Constify.
4093         (lookup_cmd): Update.
4094         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4095         const.
4096         (help_cmd_list, apropos_cmd): Update.
4097         * cli/cli-script.c (show_user): Update.
4098         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4099         * cli/cli-setshow.h (cmd_show_list): Update.
4100         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4101         (cmd_show_list): Update.
4102         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4103         * python/py-cmd.c (cmdpy_destroyer): Update.
4104
4105 2014-07-24  Tom Tromey  <tromey@redhat.com>
4106
4107         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4108         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4109         const.
4110         * command.h (deprecate_cmd): Update.
4111         * maint.c (maintenance_do_deprecate): Add casts.
4112
4113 2014-07-24  Tom Tromey  <tromey@redhat.com>
4114
4115         * cli/cli-decode.c (help_cmd): Make parameter "const".
4116         * cli/cli-decode.h (help_cmd): Update.
4117
4118 2014-07-24  Tom Tromey  <tromey@redhat.com>
4119
4120         * stack.c (up_silently_base, down_silently_base): Make argument
4121         const.
4122
4123 2014-07-24  Tom Tromey  <tromey@redhat.com>
4124
4125         * solib.c (solib_add): Make "pattern" const.
4126         * solib.h (solib_add): Update.
4127
4128 2014-07-24  Tom Tromey  <tromey@redhat.com>
4129
4130         * remote.c (remote_serial_open, print_packet, putpkt)
4131         (putpkt_binary): Constify.
4132         * remote.h (putpkt): Update.
4133
4134 2014-07-24  Tom Tromey  <tromey@redhat.com>
4135
4136         * monitor.c (monitor_open): Make "args" const.
4137         * monitor.h (monitor_open): Update.
4138
4139 2014-07-24  Tom Tromey  <tromey@redhat.com>
4140
4141         * maint.c (match_bfd_flags): Make "string" const.
4142         (print_bfd_section_info): Remove casts.
4143         (print_objfile_section_info): Make "string" const.
4144
4145 2014-07-24  Tom Tromey  <tromey@redhat.com>
4146
4147         * inf-child.c (inf_child_open_target): Make "arg" const.
4148         * inf-child.h (inf_child_open_target): Update.
4149
4150 2014-07-24  Tom Tromey  <tromey@redhat.com>
4151
4152         * environ.c (unset_in_environ): Make "var" const.
4153         * environ.h (unset_in_environ): Update.
4154
4155 2014-07-24  Tom Tromey  <tromey@redhat.com>
4156
4157         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4158         Make "cmd" const.
4159         (scan_filename_with_cleanup): Likewise.
4160         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4161         Make arguments const.
4162         (restore_command): Update.
4163
4164 2014-07-24  Pedro Alves  <palves@redhat.com>
4165
4166         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4167
4168 2014-07-24  Tom Tromey  <tromey@redhat.com>
4169             Gary Benson  <gbenson@redhat.com>
4170
4171         * nat/linux-ptrace.c (additional_flags): New global.
4172         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4173         additional_flags; don't check GDBSERVER.
4174         (linux_ptrace_set_additional_flags): New function.
4175         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4176         Declare.
4177         * linux-nat.c (_initialize_linux_nat): Call
4178         linux_ptrace_set_additional_flags.
4179
4180 2014-07-24  Tom Tromey  <tromey@redhat.com>
4181
4182         * make-target-delegates (munge_type, write_debugmethod): New
4183         functions.
4184         (debug_names): New global.
4185         ($TARGET_DEBUG_PRINTER): New global.
4186         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4187         name.
4188         Write debug methods.  Generate init_debug_target.
4189         * target-debug.h: New file.
4190         * target-delegates.c: Rebuild.
4191         * target.c: Include target-debug.h.
4192         (debug_target): Hoist definition.
4193         (target_kill, target_get_section_table, target_memory_map)
4194         (target_flash_erase, target_flash_done, target_detach)
4195         (target_disconnect, target_wait, target_resume)
4196         (target_pass_signals, target_program_signals, target_follow_fork)
4197         (target_mourn_inferior, target_search_memory)
4198         (target_thread_address_space, target_close)
4199         (target_find_new_threads, target_core_of_thread)
4200         (target_verify_memory, target_insert_mask_watchpoint)
4201         (target_remove_mask_watchpoint): Remove targetdebug code.
4202         (debug_to_post_attach, debug_to_prepare_to_store)
4203         (debug_to_files_info, debug_to_insert_breakpoint)
4204         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4205         (debug_to_region_ok_for_hw_watchpoint)
4206         (debug_to_can_accel_watchpoint_condition)
4207         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4208         (debug_to_watchpoint_addr_within_range)
4209         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4210         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4211         (debug_to_terminal_init, debug_to_terminal_inferior)
4212         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4213         (debug_to_terminal_save_ours, debug_to_terminal_info)
4214         (debug_to_load, debug_to_post_startup_inferior)
4215         (debug_to_insert_fork_catchpoint)
4216         (debug_to_remove_fork_catchpoint)
4217         (debug_to_insert_vfork_catchpoint)
4218         (debug_to_remove_vfork_catchpoint)
4219         (debug_to_insert_exec_catchpoint)
4220         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4221         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4222         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4223         (setup_target_debug): Call init_debug_target.
4224         * target.h (TARGET_DEBUG_PRINTER): New macro.
4225         (struct target_ops) <to_resume, to_wait, to_pass_signals,
4226         to_program_signals>: Use TARGET_DEBUG_PRINTER.
4227
4228 2014-07-24  Gary Benson  <gbenson@redhat.com>
4229
4230         * exceptions.h (throw_vfatal): Renamed to...
4231         (throw_vquit): New declaration.
4232         (throw_quit): Likewise.
4233         * exceptions.c (throw_vfatal): Renamed to...
4234         (throw_vquit): New function.
4235         (throw_quit): Likewise.
4236         (throw_error): Call throw_verror rather than throw_it.
4237         * utils.h (vfatal): Removed.
4238         (fatal): Likewise.
4239         * utils.c (vfatal): Removed.
4240         (fatal): Likewise.
4241         (internal_verror): Replaced call to fatal with call to throw_quit.
4242         (quit): Replaced calls to fatal with calls to throw_quit.
4243
4244 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
4245
4246         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4247         target_read_code.
4248
4249 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
4250
4251         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4252         less than zero in conditional expression.
4253
4254 2014-07-23  Tom Tromey  <tromey@redhat.com>
4255
4256         * make-target-delegates ($ARGS_PART): Match trailing close paren.
4257         ($INTRO_PART): Don't match whitespace.
4258         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
4259         argument matching.
4260         ($METHOD): Add $METHOD_TRAILER.
4261         (trim): Rewrite.
4262         (scan_target_h): New sub.
4263         Change main loop not to collect state.
4264         * target-delegates.c: Rebuild.
4265
4266 2014-07-23  Gary Benson  <gbenson@redhat.com>
4267
4268         * cp-support.c (gdb_demangle): Fix build on systems without
4269         sigaltstack.
4270
4271 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4272
4273         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4274         for reference entry value target data value.
4275
4276 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4277
4278         * stack.c (read_frame_arg): Verify value_optimized_out before calling
4279         value_available_contents_eq.
4280
4281 2014-07-22  Pedro Alves  <palves@redhat.com>
4282
4283         * value.c (allocate_optimized_out_value): Don't mark value as
4284         non-lazy.
4285
4286 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
4287
4288         * MAINTAINERS (Write After Approval): Update my email address.
4289
4290 2014-07-20  Doug Evans  <dje@google.com>
4291
4292         PR server/17147
4293         * remote.c (putpkt_binary): Add text to error message.
4294
4295 2014-07-20  Yao Qi  <yao@codesourcery.com>
4296
4297         * eval.c: Remove "Chill" from comments.
4298         * gdbtypes.h: Likewise.
4299         * symtab.h: Likewise.
4300
4301 2014-07-20  Yao Qi  <yao@codesourcery.com>
4302
4303         * std-operator.def: Update comments to TERNOP_SLICE.
4304
4305 2014-07-20  Yao Qi  <yao@codesourcery.com>
4306
4307         * std-operator.def: Remove BINOP_RANGE.
4308         * breakpoint.c (watchpoint_exp_is_const): Update.
4309         * expprint.c (dump_subexp_body_standard): Likewise.
4310         * eval.c (init_array_element): Remove dead code.
4311         (evaluate_subexp_standard): Likewise.
4312
4313 2014-07-20  Yao Qi  <yao@codesourcery.com>
4314
4315         * std-operator.def: Remove BINOP_IN.
4316         * breakpoint.c (watchpoint_exp_is_const): Update.
4317         * eval.c (evaluate_subexp_standard): Likewise.
4318         * expprint.c (dump_subexp_body_standard): Likewise.
4319
4320 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
4321
4322         * microblaze-tdep.c (microblaze_register_names): Add
4323         the rshr and rslr register names.
4324         (microblaze_gdbarch_init): Use of tdesc_has_registers.
4325         Use of tdesc_find_feature. Use of tdesc_data_alloc.
4326         Use of tdesc_numbered_register. Use of
4327         microblaze_register_g_packet_guesses. Use of
4328         tdesc_use_registers. Use of set_gdbarch_register_type.
4329         (microblaze_register_g_packet_guesses): New.
4330         * microblaze-tdep.h (microblaze_reg_num): Add
4331         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4332         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4333         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4334         * features/microblaze-core.xml: New file.
4335         * features/microblaze-stack-protect.xml: New file.
4336         * features/microblaze-with-stack-protect.c: New file.
4337         * features/microblaze-with-stack-protect.xml: New file.
4338         * features/microblaze.xml: New file.
4339         * features/microblaze.c: New file.
4340         * features/Makefile (microblaze-with-stack-protect): Add
4341         microblaze-with-stack-protect microblaze and microblaze-expedite.
4342         * regformats/microblaze-with-stack-protect.dat: New file.
4343         * regformats/microblaze.dat: New file.
4344         * doc/gdb.texinfo (MicroBlaze Features): Added.
4345
4346 2014-07-18  Tom Tromey  <tromey@redhat.com>
4347
4348         * exec.c (exec_ops): Now static.
4349         * exec.h (exec_ops): Don't declare.
4350
4351 2014-07-18  Tom Tromey  <tromey@redhat.com>
4352
4353         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4354         to find_target_beneath.
4355         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4356         find_target_beneath.
4357         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4358
4359 2014-07-18  Tom Tromey  <tromey@redhat.com>
4360
4361         PR gdb/17130:
4362         * utils.c (quit): Use target_supports_terminal_ours.
4363         * target.h (target_supports_terminal_ours): Declare.
4364         * target.c (target_supports_delete_record): Don't check
4365         to_delete_record against NULL.
4366         (target_supports_terminal_ours): New function.
4367
4368 2014-07-18  Tom Tromey  <tromey@redhat.com>
4369
4370         PR gdb/17130:
4371         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4372         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4373         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4374         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4375         * windows-nat.c (windows_xfer_partial): Always delegate.
4376         * record-btrace.c (record_btrace_xfer_partial): Simplify
4377         delegation.
4378         (record_btrace_fetch_registers, record_btrace_store_registers)
4379         (record_btrace_prepare_to_store, record_btrace_resume)
4380         (record_btrace_wait, record_btrace_find_new_threads)
4381         (record_btrace_thread_alive): Likewise.
4382         * procfs.c (procfs_xfer_partial): Always delegate.
4383         * corelow.c (core_xfer_partial): Always delegate.
4384         * sol-thread.c (sol_find_new_threads): Simplify delegation.
4385
4386 2014-07-18  Tom Tromey  <tromey@redhat.com>
4387
4388         * exec.c (exec_make_note_section): Move earlier.
4389
4390 2014-07-17  Doug Evans  <dje@google.com>
4391
4392         PR gdb/17170
4393         * maint.c (count_symtabs_and_blocks): Handle NULL
4394         current_program_space.
4395         (report_command_stats): Check global enabled flag in addition to
4396         recorded enabled flag.
4397         (make_command_stats_cleanup): Handle msg_type == 0, startup.
4398
4399 2014-07-16  Pedro Alves  <palves@redhat.com>
4400
4401         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4402
4403 2014-07-16  Tom Tromey  <tromey@redhat.com>
4404
4405         * target.h (struct target_ops) <to_delete_record>: Reformat
4406         comment.
4407
4408 2014-07-16  Tom Tromey  <tromey@redhat.com>
4409
4410         * target-delegates.c: Rebuild.
4411
4412 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
4413
4414         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4415         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4416         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4417         (avr_pointer_to_address): Likewise.
4418         (avr_address_class_type_flags): New function.
4419         (avr_address_class_type_flags_to_name): Likewise.
4420         (avr_address_class_name_to_type_flags): Likewise.
4421         (avr_gdbarch_init): Set address_class_type_flags,
4422         address_class_type_flags_to_name and
4423         address_class_name_to_type_flags.
4424
4425 2014-07-15  Pedro Alves  <palves@redhat.com>
4426
4427         * linux-nat.c (kill_callback): Save errno and work with saved
4428         copy.
4429
4430 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
4431
4432         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4433
4434 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4435
4436         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4437         breakpoint support correctly.
4438
4439 2014-07-14  Pedro Alves  <palves@redhat.com>
4440
4441         * utils.c (prompt_for_continue): Call target_terminal_ours.
4442
4443 2014-07-14  Pedro Alves  <palves@redhat.com>
4444
4445         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4446         catch_errors.  Don't re-enable stdin or notify observers where,
4447         and rethrow error.
4448         (fetch_inferior_event_wrapper): Delete.
4449
4450 2014-07-14  Pedro Alves  <palves@redhat.com>
4451
4452         PR gdb/17072
4453         * top.c: Include "inf-loop.h".
4454         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4455         field.
4456         (gdb_readline_wrapper_cleanup): Make the target async again, if it
4457         was async before.
4458         (gdb_readline_wrapper): Store whether the target is async, and
4459         make it sync.
4460
4461 2014-07-14  Pedro Alves  <palves@redhat.com>
4462
4463         PR gdb/17072
4464         * top.c (gdb_readline_wrapper_line): Tweak comment.
4465         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4466         the input handler callback.
4467
4468 2014-07-14  Pedro Alves  <palves@redhat.com>
4469
4470         PR gdb/17072
4471         * main.c: Include event-top.h.
4472         (handle_command_errors): New function.
4473         (catch_command_errors, catch_command_errors_const): Use it.
4474
4475 2014-07-14  Pedro Alves  <palves@redhat.com>
4476
4477         * exceptions.c (catch_command_errors, catch_command_errors_const):
4478         Moved to main.c.
4479         * exceptions.h (catch_command_errors_ftype)
4480         (catch_command_errors_const_ftype): Moved to main.c.
4481         (catch_command_errors, catch_command_errors_const): Delete
4482         declarations.
4483         * main.c (catch_command_errors_ftype)
4484         (catch_command_errors_const_ftype): Moved here from exceptions.h.
4485         (catch_command_errors, catch_command_errors_const)): Moved here
4486         from exceptions.c and make static.
4487
4488 2014-07-14  Pedro Alves  <palves@redhat.com>
4489
4490         * exceptions.c (print_any_exception): Delete.
4491         (catch_exceptions_with_msg): Use exception_print instead of
4492         print_any_exception.
4493         (catch_errors): Use exception_fprintf instead of
4494         print_any_exception.
4495         (catch_command_errors, catch_command_errors_const): Use
4496         exception_print instead of print_any_exception.
4497
4498 2014-07-14  Pedro Alves  <palves@redhat.com>
4499
4500         * infcall.c (run_inferior_call): Set 'sync_execution' while
4501         running the inferior call.
4502
4503 2014-07-14  Pedro Alves  <palves@redhat.com>
4504
4505         * value.c (value_contents_equal): Delete function.
4506         * value.h (value_contents_equal): Delete declaration.
4507
4508 2014-07-14  Tom Tromey  <tromey@redhat.com>
4509
4510         PR exp/17106:
4511         * gdbtypes.c (is_dynamic_type_internal): New function, from
4512         is_dynamic_type.
4513         (is_dynamic_type): Rewrite.
4514         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4515         (resolve_dynamic_struct): Likewise.
4516         (resolve_dynamic_type_internal): New function, from
4517         resolve_dynamic_type.
4518         (resolve_dynamic_type): Rewrite.
4519
4520 2014-07-14  Tom Tromey  <tromey@redhat.com>
4521
4522         * target.c (target_require_runnable): Also check record_stratum.
4523         Update comment.
4524
4525 2014-07-11  Yao Qi  <yao@codesourcery.com>
4526
4527         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4528         thumb_instruction_restores_sp return true.
4529
4530 2014-07-11  Yao Qi  <yao@codesourcery.com>
4531
4532         * arm-tdep.c (thumb_instruction_restores_sp): New function.
4533         (thumb_in_function_epilogue_p): Call
4534         thumb_instruction_restores_sp.
4535
4536 2014-07-11  Yao Qi  <yao@codesourcery.com>
4537
4538         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4539         'add sp, #imm'.
4540         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4541
4542 2014-07-11  Gary Benson  <gbenson@redhat.com>
4543
4544         * amd64-linux-nat.c (gdbcore.h): Remove include.
4545         (regset.h): Likewise.
4546         (nat/linux-btrace.h): Likewise.
4547         (btrace.h): Likewise.
4548         (gdb_assert.h): Likewise.
4549         (string.h): Likewise.
4550         (sys/uio.h): Likewise.
4551         (sys/debugreg.h): Likewise.
4552         (sys/syscall.h): Likewise.
4553         (sys/procfs.h): Likewise.
4554         (sys/user.h): Likewise.
4555         (asm/ptrace.h): Likewise.
4556         (i386-nat.h): Likewise.
4557         * i386-linux-nat.c (i386-nat.h): Likewise.
4558         (regset.h): Likewise.
4559         (target.h): Likewise.
4560         (linux-nat.h): Likewise.
4561         (nat/linux-btrace.h): Likewise.
4562         (btrace.h): Likewise.
4563         (gdb_assert.h): Likewise.
4564         (string.h): Likewise.
4565         (sys/uio.h): Likewise.
4566         (sys/user.h): Likewise.
4567         (sys/procfs.h): Likewise.
4568         (sys/reg.h): Likewise.
4569         (sys/debugreg.h): Likewise.
4570         (ORIG_EAX): Remove definition.
4571
4572 2014-07-11  Gary Benson  <gbenson@redhat.com>
4573
4574         * i386-linux-nat.h: New file.
4575         * x86-linux-nat.h: Likewise.
4576         * x86-linux-nat.c: Likewise.
4577         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4578         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4579         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4580         * amd64-linux-nat.c (x86-linux-nat.h): New include.
4581         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4582         (PTRACE_SETREGSET): Likewise.
4583         (arch_lwp_info): Now in x86-linux-nat.c.
4584         (have_ptrace_getregset): Now in x86-linux-nat.h.
4585         (x86_linux_dr_get): Now in x86-linux-nat.c.
4586         (x86_linux_dr_set): Likewise.
4587         (x86_linux_dr_get_addr): Likewise.
4588         (x86_linux_dr_get_control): Likewise.
4589         (x86_linux_dr_get_status): Likewise.
4590         (update_debug_registers_callback): Likewise.
4591         (x86_linux_dr_set_control): Likewise.
4592         (x86_linux_dr_set_addr): Likewise.
4593         (x86_linux_prepare_to_resume): Likewise.
4594         (x86_linux_new_thread): Likewise.
4595         (x86_linux_new_fork): Likewise.
4596         (x86_linux_get_thread_area): Likewise.
4597         (super_post_startup_inferior): Likewise.
4598         (x86_linux_child_post_startup_inferior): Likewise.
4599         (AMD64_LINUX_USER64_CS): Likewise.
4600         (AMD64_LINUX_X32_DS): Likewise.
4601         (x86_linux_read_description): Likewise.
4602         (x86_linux_enable_btrace): Likewise.
4603         (x86_linux_disable_btrace): Likewise.
4604         (x86_linux_teardown_btrace): Likewise.
4605         (x86_linux_read_btrace): Likewise.
4606         (x86_linux_create_target): Likewise.
4607         (x86_linux_add_target): Likewise.
4608         * i386-linux-nat.c (x86-linux-nat.h): New include.
4609         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4610         (PTRACE_SETREGSET): Likewise.
4611         (arch_lwp_info): Now in x86-linux-nat.c.
4612         (have_ptrace_getregset): Now in x86-linux-nat.h.
4613         (x86_linux_dr_get): Now in x86-linux-nat.c.
4614         (x86_linux_dr_set): Likewise.
4615         (x86_linux_dr_get_addr): Likewise.
4616         (x86_linux_dr_get_control): Likewise.
4617         (x86_linux_dr_get_status): Likewise.
4618         (update_debug_registers_callback): Likewise.
4619         (x86_linux_dr_set_control): Likewise.
4620         (x86_linux_dr_set_addr): Likewise.
4621         (x86_linux_prepare_to_resume): Likewise.
4622         (x86_linux_new_thread): Likewise.
4623         (x86_linux_new_fork): Likewise.
4624         (x86_linux_get_thread_area): Likewise.
4625         (super_post_startup_inferior): Likewise.
4626         (x86_linux_child_post_startup_inferior): Likewise.
4627         (AMD64_LINUX_USER64_CS): Likewise.
4628         (AMD64_LINUX_X32_DS): Likewise.
4629         (x86_linux_read_description): Likewise.
4630         (x86_linux_enable_btrace): Likewise.
4631         (x86_linux_disable_btrace): Likewise.
4632         (x86_linux_teardown_btrace): Likewise.
4633         (x86_linux_read_btrace): Likewise.
4634         (x86_linux_create_target): Likewise.
4635         (x86_linux_add_target): Likewise.
4636
4637 2014-07-11  Gary Benson  <gbenson@redhat.com>
4638
4639         * amd64-linux-nat.c: Comment and whitespace changes.
4640         * i386-linux-nat.c: Comment and whitespace changes.
4641
4642 2014-07-11  Gary Benson  <gbenson@redhat.com>
4643
4644         * amd64-linux-nat.c (x86_linux_create_target): New function.
4645         (x86_linux_add_target): Likewise.
4646         (_initialize_amd64_linux_nat): Delegate to the above new functions.
4647         * i386-linux-nat.c (x86_linux_create_target): New function.
4648         (x86_linux_add_target): Likewise.
4649         (_initialize_i386_linux_nat): Delegate to the above new functions.
4650
4651 2014-07-11  Gary Benson  <gbenson@redhat.com>
4652
4653         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4654         (ps_get_thread_area): Delegate to the above in 32-bit mode.
4655         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4656         (ps_get_thread_area): Delegate to the above.
4657
4658 2014-07-11  Gary Benson  <gbenson@redhat.com>
4659
4660         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4661         x86_linux_read_description.  All uses updated.  amd64-specific
4662         code conditionalized.  Conditionalized i386-specific code added.
4663         Redundant cast removed.
4664         * i386-linux-nat.c (i386_linux_read_description): Renamed to
4665         x86_linux_read_description.  All uses updated.  i386-specific
4666         code conditionalized.  Conditionalized amd64-specific code added.
4667         One sizeof replaced with the actual type it is describing.
4668
4669 2014-07-11  Gary Benson  <gbenson@redhat.com>
4670
4671         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4672         x86_linux_dr_get.  All uses updated.
4673         (amd64_linux_dr_set): Renamed to
4674         x86_linux_dr_set.  All uses updated.
4675         (amd64_linux_dr_get_addr): Renamed to
4676         x86_linux_dr_get_addr.  All uses updated.
4677         (amd64_linux_dr_get_control): Renamed to
4678         x86_linux_dr_get_control.  All uses updated.
4679         (amd64_linux_dr_get_status): Renamed to
4680         x86_linux_dr_get_status.  All uses updated.
4681         (amd64_linux_dr_set_control): Renamed to
4682         x86_linux_dr_set_control.  All uses updated.
4683         (amd64_linux_dr_set_addr): Renamed to
4684         x86_linux_dr_set_addr.  All uses updated.
4685         (amd64_linux_prepare_to_resume): Renamed to
4686         x86_linux_prepare_to_resume.  All uses updated.
4687         (amd64_linux_new_thread): Renamed to
4688         x86_linux_new_thread.  All uses updated.
4689         (amd64_linux_new_fork): Renamed to
4690         x86_linux_new_fork.  All uses updated.
4691         (amd64_linux_child_post_startup_inferior): Renamed to
4692         x86_linux_child_post_startup_inferior.  All uses updated.
4693         (amd64_linux_enable_btrace): Renamed to
4694         x86_linux_enable_btrace.  All uses updated.
4695         (amd64_linux_disable_btrace): Renamed to
4696         x86_linux_disable_btrace.  All uses updated.
4697         (amd64_linux_teardown_btrace): Renamed to
4698         x86_linux_teardown_btrace.  All uses updated.
4699         (amd64_linux_read_btrace): Renamed to
4700         x86_linux_read_btrace.  All uses updated.
4701         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4702         x86_linux_dr_get.  All uses updated.
4703         (i386_linux_dr_set): Renamed to
4704         x86_linux_dr_set.  All uses updated.
4705         (i386_linux_dr_get_addr): Renamed to
4706         x86_linux_dr_get_addr.  All uses updated.
4707         (i386_linux_dr_get_control): Renamed to
4708         x86_linux_dr_get_control.  All uses updated.
4709         (i386_linux_dr_get_status): Renamed to
4710         x86_linux_dr_get_status.  All uses updated.
4711         (i386_linux_dr_set_control): Renamed to
4712         x86_linux_dr_set_control.  All uses updated.
4713         (i386_linux_dr_set_addr): Renamed to
4714         x86_linux_dr_set_addr.  All uses updated.
4715         (i386_linux_prepare_to_resume): Renamed to
4716         x86_linux_prepare_to_resume.  All uses updated.
4717         (i386_linux_new_thread): Renamed to
4718         x86_linux_new_thread.  All uses updated.
4719         (i386_linux_new_fork): Renamed to
4720         x86_linux_new_fork.  All uses updated.
4721         (i386_linux_child_post_startup_inferior): Renamed to
4722         x86_linux_child_post_startup_inferior.  All uses updated.
4723         (i386_linux_enable_btrace): Renamed to
4724         x86_linux_enable_btrace.  All uses updated.
4725         (i386_linux_disable_btrace): Renamed to
4726         x86_linux_disable_btrace.  All uses updated.
4727         (i386_linux_teardown_btrace): Renamed to
4728         x86_linux_teardown_btrace.  All uses updated.
4729         (i386_linux_read_btrace): Renamed to
4730         x86_linux_read_btrace.  All uses updated.
4731
4732 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
4733
4734         * remote.c (extended_remote_post_attach): New function.
4735         (init_extended_remote_ops): Install it as to_post_attach method.
4736
4737 2014-07-09  Pedro Alves  <palves@redhat.com>
4738
4739         * infcmd.c (attach_command_post_wait): Don't call
4740         target_terminal_inferior here.
4741         (attach_command): Call it here instead.
4742
4743 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4744
4745         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4746         field.
4747         * c-varobj.c (c_is_path_expr_parent): New function, moved core
4748         from varobj.c, with additional checks.
4749         (c_varobj_ops): Fill in is_path_expr_parent field.
4750         (cplus_varobj_ops): Fill in is_path_expr_parent field.
4751         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4752         field.
4753         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4754         ops method.
4755         (varobj_default_is_path_expr_parent): New function.
4756         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4757         (varobj_default_is_path_expr_parent): Declare new function.
4758
4759 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
4760
4761         * infcmd.c (finish_backward): Turn internal error into normal error.
4762
4763 2014-07-07  Pedro Alves  <palves@redhat.com>
4764
4765         PR gdb/17096
4766         * remote.c (async_handle_remote_sigint)
4767         (async_handle_remote_sigint_twice): Call
4768         gdb_call_async_signal_handler instead of
4769         mark_async_signal_handler.
4770
4771 2014-07-07  Tom Tromey  <tromey@redhat.com>
4772
4773         * target-delegates.c: Rebuild.
4774         * target.c (target_info_record): Remove.
4775         * record.c (info_record_command): Unconditionally call
4776         to_info_record.
4777         * target.h (struct target_ops) <to_info_record>: Use
4778         TARGET_DEFAULT_IGNORE.
4779         (target_info_record): Remove.
4780
4781 2014-07-07  Tom Tromey  <tromey@redhat.com>
4782
4783         * target.h (struct target_ops) <to_get_thread_local_address>: Use
4784         TARGET_DEFAULT_NORETURN.
4785         * target.c (generic_tls_error): New function.
4786         (target_translate_tls_address): Don't search target stack.
4787         * target-delegates.c: Rebuild.
4788         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4789         stack.
4790         * linux-thread-db.c (thread_db_get_thread_local_address):
4791         Unconditionally call beneath target.
4792
4793 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
4794
4795         * cli/cli-logging.c (pop_output_files): Assign targerr to
4796         gdb_stdtargerr.
4797
4798 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
4799
4800         * MAINTAINERS (Write After Approval): Update my email address.
4801
4802 2014-07-02  Gary Benson  <gbenson@redhat.com>
4803
4804         * proc-service.c (ps_xfer_memory): Update comment.
4805         (ps_pstop): Remove unused function.
4806         (ps_pcontinue): Likewise.
4807         (ps_lstop): Likewise.
4808         (ps_lcontinue): Likewise.
4809         (ps_lgetxregsize): Likewise.
4810         (ps_lgetxregs): Likewise.
4811         (ps_lsetxregs): Likewise.
4812         (ps_plog): Likewise.
4813         (ps_ptread): Likewise.
4814         (ps_ptwrite): Likewise.
4815
4816 2014-07-01  Mark Wielaard  <mjw@redhat.com>
4817
4818         * dwarf2read.c (add_array_cv_type): New function.
4819         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4820         (read_tag_volatile_type): Likewise.
4821
4822 2014-07-01  Tom Tromey  <tromey@redhat.com>
4823
4824         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4825         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4826         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4827         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4828         * command.h (cmd_cfunc_ftype): Move earlier.
4829         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4830         (add_com, add_info): Use cmd_cfunc_ftype.
4831
4832 2014-06-30  Tom Tromey  <tromey@redhat.com>
4833
4834         * symtab.c (operator_chars): Make parameters and return type
4835         const.
4836         (file_matches): Make "files" const.
4837         (struct search_symbols_data) <files>: Now const.
4838         (search_symbols): Make "regexp" and "files" parameters const.
4839         Update.
4840         (symtab_symbol_info): Remove cast.
4841         (rbreak_command): Update.
4842         * symtab.h (search_symbols): Update.
4843
4844 2014-06-27  Yao Qi  <yao@codesourcery.com>
4845
4846         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4847         Change parameter type to 'struct thread_info *'.  Caller
4848         updated.
4849         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4850         Update declaration.
4851         * dummy-frame.c (struct dummy_frame_id): New.
4852         (dummy_frame_id_eq): New function.
4853         (struct dummy_frame) <id>: Change its type to 'struct
4854         dummy_frame_id'.
4855         (dummy_frame_push): Add parameter ptid and save it in
4856         dummy_frame_id.
4857         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4858         inferior_ptid.
4859         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4860         to inferior_ptid.
4861         (lookup_dummy_frame): Change parameter type to 'struct
4862         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
4863         instead of frame_id_eq.
4864         (dummy_frame_pop): Add parameter ptid.  Callers updated.
4865         Update comments.  Compose dummy_frame_id and pass it to
4866         lookup_dummy_frame.
4867         (dummy_frame_discard): Add parameter ptid.
4868         (dummy_frame_sniffer): Compose dummy_frame_id and call
4869         dummy_frame_id_eq instead of frame_id_eq.
4870         (fprint_dummy_frames): Print ptid.
4871         * dummy-frame.h: Remove comments.
4872         (dummy_frame_push): Add ptid in declaration.
4873         (dummy_frame_pop, dummy_frame_discard): Likewise.
4874
4875 2014-06-26  Tom Tromey  <tromey@redhat.com>
4876
4877         * cli/cli-cmds.c (error_no_arg): Make "why" const.
4878         * command.h (error_no_arg): Update.
4879
4880 2014-06-26  Tom Tromey  <tromey@redhat.com>
4881
4882         * cli/cli-setshow.c (do_set_command): Make "arg" const.
4883         (do_show_command): Make "arg" const.
4884         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4885
4886 2014-06-26  Tom Tromey  <tromey@redhat.com>
4887
4888         * record-full.c (record_full_get_bookmark): Make "args" const.
4889         (record_full_goto_bookmark): Make "raw_bookmark" const.
4890         * record.c (record_goto): New function.
4891         (cmd_record_goto): Use it.  Now static.
4892         * record.h (record_goto): Declare.
4893         (cmd_record_goto): Remove declaration.
4894         * target-delegates.c: Rebuild.
4895         * target.h (struct target_ops) <to_get_bookmark,
4896         to_goto_bookmark>: Make parameter const.
4897
4898 2014-06-26  Tom Tromey  <tromey@redhat.com>
4899
4900         * defs.h (generic_load): Update.
4901         * m32r-rom.c (m32r_load_gen): Make "filename" const.
4902         * monitor.c (monitor_load): Make "args" const.
4903         * remote-m32r-sdi.c (m32r_load): Make "args" const.
4904         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4905         const.
4906         (mips_load): Make "file" const.
4907         * remote-sim.c (gdbsim_load): Make "args" const.
4908         * remote.c (remote_load): Make "name" const.
4909         * symfile.c (generic_load): Make "args" const.
4910         * target-delegates.c: Rebuild.
4911         * target.c (target_load): Make "arg" const.
4912         (debug_to_load): Make "args" const.
4913         * target.h (struct target_ops) <to_load>: Make parameter const.
4914         (target_load): Update.
4915
4916 2014-06-26  Tom Tromey  <tromey@redhat.com>
4917
4918         PR symtab/16902:
4919         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4920         (dwarf2_physname, read_partial_die)
4921         (guess_partial_die_structure_name, fixup_partial_die)
4922         (guess_full_die_structure_name, anonymous_struct_prefix)
4923         (dwarf2_name): Use per-BFD obstack.
4924
4925 2014-06-26  Yao Qi  <yao@codesourcery.com>
4926
4927         * dummy-frame.c (dummy_frame_sniffer): Move local variables
4928         dummyframe and this_id into inner block below.
4929
4930 2014-06-26  Yao Qi  <yao@codesourcery.com>
4931
4932         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4933         with "signal_pass[0]" in the initialization of signal_pass.
4934
4935 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4936
4937         * record-btrace.c (record_btrace_generating_corefile)
4938         (record_btrace_prepare_to_generate_core)
4939         (record_btrace_done_generating_core): New.
4940         (record_btrace_xfer_partial, record_btrace_fetch_registers)
4941         (record_btrace_store_registers, record_btrace_prepare_to_store):
4942         Forward request when generating a core file.
4943         (record_btrace_open): Set record_btrace_generating_corefile to zero.
4944         (init_record_btrace_ops): Set to_prepare_to_generate_core and
4945         to_done_generating_core.
4946
4947 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4948
4949         * target.h (target_ops) <to_prepare_to_generate_core>
4950         <to_done_generating_core>: New.
4951         (target_prepare_to_generate_core, target_done_generating_core): New.
4952         * target.c (target_prepare_to_generate_core)
4953         (target_done_generating_core): New.
4954         * target-delegates.c: Regenerate.
4955         * gcore.c: (write_gcore_file): Rename to ...
4956         (write_gcore_file_1): ...this.
4957         (write_gcore_file): Call target_prepare_to_generate_core
4958         and target_done_generating_core.
4959
4960 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4961
4962         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4963         * gcore.c (write_gcore_file): Free memory returned from
4964         make_corefile_notes.
4965         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4966         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4967
4968 2014-06-24  Yao Qi  <yao@codesourcery.com>
4969
4970         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4971         (arm_linux_init_abi): Set skip_trampoline_code with
4972         gdbarch_skip_trampoline_code instead of
4973         find_solib_trampoline_target.
4974
4975 2014-06-24  Yao Qi  <yao@codesourcery.com>
4976
4977         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4978         arm_skip_bx_reg returns non-zero.
4979
4980 2014-06-24  Yao Qi  <yao@codesourcery.com>
4981
4982         * arm-tdep.c (arm_skip_bx_reg): New function.
4983         (arm_skip_stub): Call arm_skip_bx_reg.
4984
4985 2014-06-23  Don Breazeal  <donb@codesourcery.com>
4986
4987         * MAINTAINERS: Add myself as write-after-approval maintainer.
4988
4989 2014-06-23  Pedro Alves  <palves@redhat.com>
4990
4991         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4992         DR_CONTROL before setting DR0..DR3.
4993         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4994         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4995         bits of DR_CONTROL related to the debug register slot being
4996         disabled.  If all slots are vacant, clear local slowdown as well,
4997         and assert DR_CONTROL is 0.
4998
4999 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
5000
5001         * python/lib/gdb/command/xmethods.py
5002         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
5003         current progspace only if the string "progspace" matches LOCUS_RE.
5004
5005 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5006
5007         Fix --with-system-readline with readline-6.3 patch 5.
5008         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5009         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5010         types.
5011
5012 2014-06-20  Tom Tromey  <tromey@redhat.com>
5013
5014         * dwarf2read.c (dw2_get_real_path): Use correct type in
5015         OBSTACK_CALLOC.
5016         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5017
5018 2014-06-20  Gary Benson  <gbenson@redhat.com>
5019
5020         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
5021         * common/glibc_thread_db.h: Likewise.
5022         * common/i386-cpuid.h: Likewise.
5023         * common/i386-gcc-cpuid.h: Likewise.
5024         * common/linux-btrace.h: Likewise.
5025         * common/linux-osdata.h: Likewise.
5026         * common/linux-procfs.h: Likewise.
5027         * common/linux-ptrace.h: Likewise.
5028         * common/mips-linux-watch.h: Likewise.
5029         * common/linux-btrace.c: Moved to nat.
5030         * common/linux-osdata.c: Likewise.
5031         * common/linux-procfs.c: Likewise.
5032         * common/linux-ptrace.c: Likewise.
5033         * common/mips-linux-watch.c: Likewise.
5034         * nat/gdb_thread_db.h: Moved from common.
5035         * nat/glibc_thread_db.h: Likewise.
5036         * nat/i386-cpuid.h: Likewise.
5037         * nat/i386-gcc-cpuid.h: Likewise.
5038         * nat/linux-btrace.c: Likewise.
5039         * nat/linux-btrace.h: Likewise.
5040         * nat/linux-osdata.c: Likewise.
5041         * nat/linux-osdata.h: Likewise.
5042         * nat/linux-procfs.c: Likewise.
5043         * nat/linux-procfs.h: Likewise.
5044         * nat/linux-ptrace.c: Likewise.
5045         * nat/linux-ptrace.h: Likewise.
5046         * nat/mips-linux-watch.c: Likewise.
5047         * nat/mips-linux-watch.h: Likewise.
5048         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5049         (object file files): Reordered.
5050         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5051         of glibc_thread_db.h.
5052
5053 2014-06-20  Gary Benson  <gbenson@redhat.com>
5054
5055         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5056         (i386_dr_low_type): Moved to nat/i386-dregs.h.
5057         (i386_dr_low): Likewise.
5058         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5059         (i386_dr_low_set_addr): Likewise.
5060         (i386_dr_low_get_addr): Likewise.
5061         (i386_dr_low_can_set_control): Likewise.
5062         (i386_dr_low_set_control): Likewise.
5063         (i386_dr_low_get_control): Likewise.
5064         (i386_dr_low_get_status): Likewise.
5065         (i386_get_debug_register_length): Likewise.
5066         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5067         (i386_dr_low): Likewise.
5068         * nat/i386-dregs.c (i386-low.h): Remove include.
5069         (i386-nat.h): Likewise.
5070         (nat/i386-dregs.h): New include.
5071         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5072         (i386_dr_low_set_addr): Likewise.
5073         (i386_dr_low_get_addr): Likewise.
5074         (i386_dr_low_can_set_control): Likewise.
5075         (i386_dr_low_set_control): Likewise.
5076         (i386_dr_low_get_control): Likewise.
5077         (i386_dr_low_get_status): Likewise.
5078         (i386_get_debug_register_length): Likewise.
5079         (debug_hw_points): Likewise.
5080
5081 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
5082
5083         * Makefile.in (SFILES): Add d-exp.y.
5084         (YYFILES): Add d-exp.c.
5085         (YYOBJ): Add d-exp.o.
5086         (local-maintainer-clean): Delete d-exp.c.
5087         * d-exp.y: New file.
5088         * d-lang.h (d_parse): New declaration.
5089         (d_error): New declaration.
5090         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5091         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5092         PREC_ORDER operators.
5093         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5094
5095 2014-06-19  Yao Qi  <yao@codesourcery.com>
5096
5097         * gdbthread.h (any_running): Remove the declaration.
5098         * thread.c (any_running): Remove.
5099
5100 2014-06-19  Yao Qi  <yao@codesourcery.com>
5101
5102         * gdbthread.h (struct thread_info) <state>: Change its type to
5103         'enum thread_state'.  Update comments.
5104
5105 2014-06-19  Pedro Alves  <palves@redhat.com>
5106
5107         * gdbthread.h (ALL_THREADS): Delete.
5108         (ALL_NON_EXITED_THREADS): New macro.
5109         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5110         instead of ALL_THREADS.
5111         * infrun.c (find_thread_needs_step_over)
5112         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5113         instead of ALL_THREADS.
5114         * record-btrace.c (record_btrace_open)
5115         (record_btrace_stop_recording, record_btrace_close)
5116         (record_btrace_is_replaying, record_btrace_resume)
5117         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5118         * remote.c (append_pending_thread_resumptions): Likewise.
5119         * thread.c (thread_apply_all_command): Likewise.
5120
5121 2014-06-19  Gary Benson  <gbenson@redhat.com>
5122
5123         * i386-nat.c (i386_stopped_by_watchpoint):
5124         Use i386_dr_stopped_by_watchpoint.
5125         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5126         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5127
5128 2014-06-19  Gary Benson  <gbenson@redhat.com>
5129
5130         * nat/i386-dregs.c: New file.
5131         * Makefile.in (i386-dregs.o): New rule.
5132         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5133         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5134         * config/i386/darwin.mh (NATDEPFILES): Likewise.
5135         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5136         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5137         * config/i386/go32.mh (NATDEPFILES): Likewise.
5138         * config/i386/linux.mh (NATDEPFILES): Likewise.
5139         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5140         * config/i386/mingw.mh (NATDEPFILES): Likewise.
5141         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5142         * i386-nat.h (debug_hw_points): New declaration.
5143         * i386-nat.c (breakpoint.h): Remove include.
5144         (command.h): Likewise.
5145         (target.h): Likewise.
5146         (gdb_assert.h): Likewise.
5147         (debug_hw_points): Made nonstatic.
5148         (debug_printf): Now in i386-dregs.c.
5149         (TARGET_HAS_DR_LEN_8): Likewise.
5150         (DR_CONTROL_SHIFT): Likewise.
5151         (DR_CONTROL_SIZE): Likewise.
5152         (DR_RW_EXECUTE): Likewise.
5153         (DR_RW_WRITE): Likewise.
5154         (DR_RW_READ): Likewise.
5155         (DR_RW_IORW): Likewise.
5156         (DR_LEN_1): Likewise.
5157         (DR_LEN_2): Likewise.
5158         (DR_LEN_4): Likewise.
5159         (DR_LEN_8): Likewise.
5160         (DR_LOCAL_ENABLE_SHIFT): Likewise.
5161         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5162         (DR_ENABLE_SIZE): Likewise.
5163         (DR_LOCAL_SLOWDOWN): Likewise.
5164         (DR_GLOBAL_SLOWDOWN): Likewise.
5165         (DR_CONTROL_RESERVED): Likewise.
5166         (I386_DR_CONTROL_MASK): Likewise.
5167         (I386_DR_VACANT): Likewise.
5168         (I386_DR_LOCAL_ENABLE): Likewise.
5169         (I386_DR_GLOBAL_ENABLE): Likewise.
5170         (I386_DR_DISABLE): Likewise.
5171         (I386_DR_SET_RW_LEN): Likewise.
5172         (I386_DR_GET_RW_LEN): Likewise.
5173         (I386_DR_WATCH_HIT): Likewise.
5174         (i386_wp_op_t): Likewise.
5175         (i386_show_dr): Likewise.
5176         (i386_length_and_rw_bits): Likewise.
5177         (i386_insert_aligned_watchpoint): Likewise.
5178         (i386_remove_aligned_watchpoint): Likewise.
5179         (i386_handle_nonaligned_watchpoint): Likewise.
5180         (i386_update_inferior_debug_regs): Likewise.
5181         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5182         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5183         (i386_region_ok_for_watchpoint):
5184         Use i386_dr_region_ok_for_watchpoint.
5185         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5186
5187 2014-06-19  Gary Benson  <gbenson@redhat.com>
5188
5189         * i386-nat.c (i386_insert_hw_breakpoint): Use
5190         i386_insert_watchpoint.
5191         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5192
5193 2014-06-19  Gary Benson  <gbenson@redhat.com>
5194
5195         * i386-nat.c (i386_dr_show): Renamed to
5196         i386_show_dr and made static.  All uses updated.
5197         (i386_dr_length_and_rw_bits): Renamed to
5198         i386_length_and_rw_bits and made static.
5199         All uses updated.
5200         (i386_dr_insert_aligned_watchpoint): Renamed to
5201         i386_insert_aligned_watchpoint and made static.
5202         All uses updated.
5203         (i386_dr_remove_aligned_watchpoint): Renamed to
5204         i386_remove_aligned_watchpoint and made static.
5205         All uses updated.
5206         (i386_dr_update_inferior_debug_regs): Renamed to
5207         i386_update_inferior_debug_regs and made static.
5208         All uses updated.
5209         * nat/i386-dregs.h (i386_dr_show): Removed.
5210         (i386_dr_length_and_rw_bits): Likewise.
5211         (i386_dr_insert_aligned_watchpoint): Likewise.
5212         (i386_dr_remove_aligned_watchpoint): Likewise.
5213         (i386_dr_update_inferior_debug_regs): Likewise.
5214
5215 2014-06-19  Gary Benson  <gbenson@redhat.com>
5216
5217         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5218         * configure: Regenerate.
5219         * config.in: Likewise.
5220         * main.c (signal.h): New include.
5221         (setup_alternate_signal_stack): New function.
5222         (captured_main): Call the above.
5223         * cp-support.c (signal.h): New include.
5224         (catch_demangler_crashes): New flag.
5225         (SIGJMP_BUF): New define.
5226         (SIGSETJMP): Likewise.
5227         (SIGLONGJMP): Likewise.
5228         (gdb_demangle_jmp_buf): New static global.
5229         (gdb_demangle_attempt_core_dump): Likewise.
5230         (gdb_demangle_signal_handler): New function.
5231         (gdb_demangle): If catch_demangler_crashes is set, install the
5232         above signal handler before calling bfd_demangle, and restore
5233         the original signal handler afterwards.  Display the offending
5234         symbol and call demangler_warning the first time a segmentation
5235         fault is caught.
5236         (_initialize_cp_support): New maint set/show command.
5237
5238 2014-06-19  Gary Benson  <gbenson@redhat.com>
5239
5240         * utils.h (resource_limit_kind): New enum.
5241         (can_dump_core): New declaration.
5242         (warn_cant_dump_core): Likewise.
5243         (dump_core): Likewise.
5244         * utils.c (dump_core): Made nonstatic.  Added new
5245         parameter "limit_kind".
5246         (can_dump_core): Made nonstatic. Moved printing code to...
5247         (warn_cant_dump_core): New function.
5248         (can_dump_core_warn): Likewise.
5249         (internal_vproblem): Replace calls to can_dump_core with
5250         calls to can_dump_core_warn.  Supply new argument to each.
5251
5252 2014-06-19  Gary Benson  <gbenson@redhat.com>
5253
5254         * utils.h (demangler_vwarning): New declaration.
5255         (demangler_warning): Likewise.
5256         * utils.c (struct internal_problem)
5257         <user_settable_should_quit>: New field.
5258         <user_settable_should_dump_core>: Likewise
5259         (internal_error_problem): Add values for above new fields.
5260         (internal_warning_problem): Likewise.
5261         (demangler_warning_problem): New static global.
5262         (demangler_vwarning): New function.
5263         (demangler_warning): Likewise.
5264         (add_internal_problem_command): Selectively add commands.
5265         (_initialize_utils): New internal problem command.
5266         * maint.c (maintenance_demangler_warning): New function.
5267         (_initialize_maint_cmds): New command.
5268
5269 2014-06-18  Tom Tromey  <tromey@redhat.com>
5270
5271         * f-valprint.c (info_common_command_for_block): Update.
5272         * symtab.h (struct general_symbol_info) <common_block>: Now
5273         const.
5274
5275 2014-06-18  Tom Tromey  <tromey@redhat.com>
5276
5277         * symtab.h (struct symtab) <blockvector>: Now const.
5278         * ada-lang.c (ada_add_global_exceptions): Update.
5279         * buildsym.c (augment_type_symtab): Update.
5280         * dwarf2read.c (dw2_lookup_symbol): Update.
5281         * jit.c (finalize_symtab): Update.
5282         * jv-lang.c (add_class_symtab_symbol): Update.
5283         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5284         Update.
5285         * objfiles.c (objfile_relocate1): Update.
5286         * psymtab.c (lookup_symbol_aux_psymtabs)
5287         (maintenance_check_psymtabs): Update.
5288         * python/py-symtab.c (stpy_global_block, stpy_static_block):
5289         Update.
5290         * spu-tdep.c (spu_catch_start): Update.
5291         * symmisc.c (dump_symtab_1): Update.
5292         * symtab.c (lookup_global_symbol_from_objfile)
5293         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5294         (basic_lookup_transparent_type_quick)
5295         (basic_lookup_transparent_type, find_pc_sect_symtab)
5296         (find_pc_sect_line, search_symbols): Update.
5297         * block.c (find_block_in_blockvector): Make "bl" const.
5298         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5299         const.
5300         (blockvector_contains_pc): Make "bv" const.
5301         (block_for_pc_sect): Update.
5302         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5303         (blockvector_contains_pc): Update.
5304         * breakpoint.c (resolve_sal_pc): Update.
5305         * inline-frame.c (block_starting_point_at): Update.
5306
5307 2014-06-18  Tom Tromey  <tromey@redhat.com>
5308
5309         * completer.c (complete_line): Make "line_buffer" const.
5310         * completer.h (complete_line): Update.
5311
5312 2014-06-18  Tom Tromey  <tromey@redhat.com>
5313
5314         * symtab.c (add_macro_name): Remove unneeded cast.
5315
5316 2014-06-18  Tom Tromey  <tromey@redhat.com>
5317
5318         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5319         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5320
5321 2014-06-18  Tom Tromey  <tromey@redhat.com>
5322
5323         * probe.c (info_probes_for_ops): Make "arg" const.
5324         * probe.h (info_probes_for_ops): Update.
5325
5326 2014-06-18  Tom Tromey  <tromey@redhat.com>
5327
5328         * varobj.c (varobj_create): Update.
5329         * valops.c (value_of_this): Update.
5330         * tracepoint.c (add_local_symbols, scope_info): Update.
5331         * symtab.h (struct general_symbol_info) <block>: Now const.
5332         * symtab.c (skip_prologue_sal)
5333         (default_make_symbol_completion_list_break_on)
5334         (skip_prologue_using_sal): Update.
5335         * stack.h (iterate_over_block_locals)
5336         (iterate_over_block_local_vars): Update.
5337         * stack.c (print_frame_args): Update.
5338         (iterate_over_block_locals, iterate_over_block_local_vars): Make
5339         parameter const.
5340         (get_selected_block): Make return type const.
5341         * python/py-frame.c (frapy_block): Update.
5342         * python/py-block.c (gdbpy_block_for_pc): Update.
5343         * p-exp.y (%union) <bval>: Now const.
5344         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5345         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5346         * m2-exp.y (%union) <bval>: Now const.
5347         * linespec.c (get_current_search_block): Make return type const.
5348         (create_sals_line_offset, find_label_symbols): Update.
5349         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5350         Update.
5351         (block_starting_point_at): Make "block" const.
5352         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5353         (check_exception_resume): Update.
5354         * guile/scm-frame.c (gdbscm_frame_block): Update.
5355         * guile/scm-block.c (gdbscm_lookup_block): Update.
5356         * frame.h (get_frame_block): Update.
5357         (get_selected_block): Make return type const.
5358         * frame.c (frame_id_inner): Update.
5359         * f-valprint.c (info_common_command_for_block)
5360         (info_common_command): Update.
5361         * dwarf2loc.c (dwarf2_find_location_expression)
5362         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5363         (locexpr_describe_location_piece): Update.
5364         * c-exp.y (%union) <bval>: Now const.
5365         * breakpoint.c (resolve_sal_pc): Update.
5366         * blockframe.c (get_frame_block):Make return type const.
5367         (get_pc_function_start, get_frame_function, find_pc_sect_function)
5368         (block_innermost_frame): Update.
5369         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5370         (block_for_pc, block_for_pc_sect): Update.
5371         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5372         'pblock' const.
5373         (block_for_pc_sect, block_for_pc): Make return type const.
5374         * ax-gdb.c (gen_expr): Update.
5375         * alpha-mdebug-tdep.c (find_proc_desc): Update.
5376         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5377         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5378         (ada_read_var_value): Update.
5379         * ada-exp.y (struct name_info) <block>: Now const.
5380         (%union): Likewise.
5381         (block_lookup): Constify.
5382
5383 2014-06-18  Gary Benson  <gbenson@redhat.com>
5384
5385         * nat/i386-dregs.h: New file.
5386         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5387         * i386-nat.h (i386-dregs.h): New include.
5388         (DR_FIRSTADDR): Now in i386-dregs.h.
5389         (DR_LASTADDR): Likewise.
5390         (DR_NADDR): Likewise.
5391         (DR_STATUS): Likewise.
5392         (DR_CONTROL): Likewise.
5393         (i386_debug_reg_state): Likewise.
5394         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5395
5396 2014-06-18  Don Breazeal  <donb@codesourcery.com>
5397
5398         * breakpoint.c (set_longjmp_breakpoint): Call
5399         momentary_breakpoint_from_master with additional argument.
5400         (set_longjmp_breakpoint_for_call_dummy): Call
5401         momentary_breakpoint_from_master with additional argument.
5402         (set_std_terminate_breakpoint): Call
5403         momentary_breakpoint_from_master with additional argument.
5404         (momentary_breakpoint_from_master): Add argument to function
5405         definition and use it to initialize structure member flag.
5406         (clone_momentary_breakpoint): Call
5407         momentary_breakpoint_from_master with additional argument.
5408         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5409         member flags set in momentary_breakpoint_from_master.
5410
5411 2014-06-18  Gary Benson  <gbenson@redhat.com>
5412
5413         * i386-nat.c (i386_show_dr): Renamed to
5414         i386_dr_show and made nonstatic.  All uses updated.
5415         (i386_length_and_rw_bits): Renamed to
5416         i386_dr_length_and_rw_bits and made nonstatic.
5417         All uses updated.
5418         (i386_insert_aligned_watchpoint): Renamed to
5419         i386_dr_insert_aligned_watchpoint and made nonstatic.
5420         All uses updated.
5421         (i386_remove_aligned_watchpoint): Renamed to
5422         i386_dr_remove_aligned_watchpoint and made nonstatic.
5423         All uses updated.
5424         (i386_update_inferior_debug_regs): Renamed to
5425         i386_dr_update_inferior_debug_regs and made nonstatic.
5426         All uses updated.
5427
5428 2014-06-18  Gary Benson  <gbenson@redhat.com>
5429
5430         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5431         (i386_dr_low_can_set_control): Likewise.
5432         (i386_dr_low_set_addr): Likewise.
5433         (i386_dr_low_set_control): Likewise.
5434         (i386_dr_low_get_addr): Likewise.
5435         (i386_dr_low_get_status): Likewise.
5436         (i386_dr_low_get_control): Likewise.
5437         (i386_insert_aligned_watchpoint): Use new macros.
5438         (i386_update_inferior_debug_regs): Likewise.
5439         (i386_stopped_data_address): Likewise.
5440
5441 2014-06-18  Gary Benson  <gbenson@redhat.com>
5442
5443         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5444         New parameter.  All uses updated.
5445
5446 2014-06-18  Gary Benson  <gbenson@redhat.com>
5447
5448         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5449         All uses updated.
5450
5451 2014-06-18  Gary Benson  <gbenson@redhat.com>
5452
5453         * i386-nat.c (debug_printf): New macro.
5454         (i386_get_debug_register_length): Likewise.
5455         (TARGET_HAS_DR_LEN_8): Use above macro.
5456         (i386_show_dr): Use debug_printf instead of puts_unfiltered
5457         and printf_unfiltered.  Use phex to format values.
5458
5459 2014-06-18  Gary Benson  <gbenson@redhat.com>
5460
5461         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5462         Make const.
5463
5464 2014-06-18  Gary Benson  <gbenson@redhat.com>
5465
5466         * i386-nat.c: Comment changes.
5467
5468 2014-06-18  Gary Benson  <gbenson@redhat.com>
5469
5470         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5471
5472 2014-06-18  Gary Benson  <gbenson@redhat.com>
5473
5474         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5475         (i386_insert_aligned_watchpoint): Likewise.
5476         (i386_remove_aligned_watchpoint): Likewise.
5477         (i386_handle_nonaligned_watchpoint): Likewise.
5478
5479 2014-06-18  Gary Benson  <gbenson@redhat.com>
5480
5481         * i386-nat.c: Whitespace changes.
5482
5483 2014-06-17  Samuel Bronson  <naesten@gmail.com>
5484
5485         * MAINTAINERS: Update Roland McGrath's email address.
5486         Thanks to Sergio Durigan Junior for pointing out that he left
5487         Red Hat a while ago, and giving me a current address.
5488
5489 2014-06-17  Tom Tromey  <tromey@redhat.com>
5490
5491         * utils.h (savestring): Remove declaration.
5492
5493 2014-06-17  Tom Tromey  <tromey@redhat.com>
5494
5495         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5496
5497 2014-06-16  Keith Seitz  <keiths@redhat.com>
5498
5499         PR mi/15863
5500         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5501         to update the varobj if inferior_ptid is null_ptid.
5502
5503 2014-06-16  Tom Tromey  <tromey@redhat.com>
5504
5505         * target.h (struct target_ops) <to_info_proc>: Make parameter
5506         const.
5507         (target_info_proc): Update.
5508         * target.c (target_info_proc): Make "args" const.
5509         * procfs.c (procfs_info_proc): Update.
5510         * linux-tdep.c (linux_info_proc): Update.
5511         (linux_core_info_proc_mappings): Make "args" const.
5512         (linux_core_info_proc): Update.
5513         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5514         * gdbarch.c: Rebuild.
5515         * gdbarch.h: Rebuild.
5516         * corelow.c (core_info_proc): Update.
5517
5518 2014-06-16  Tom Tromey  <tromey@redhat.com>
5519
5520         * target.h (struct target_ops) <to_disconnect>: Make parameter
5521         const.
5522         (target_disconnect): Update.
5523         * target.c (target_disconnect): Make "args" const.
5524         * target-delegates.c: Rebuild.
5525         * remote.c (remote_disconnect): Update.
5526         * record.h (record_disconnect): Update.
5527         * record.c (record_disconnect): Update.
5528         * inf-child.c (inf_child_disconnect): Update.
5529
5530 2014-06-16  Tom Tromey  <tromey@redhat.com>
5531
5532         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5533         * target.c (debug_to_rcmd, default_rcmd): Update.
5534         * target-delegates.c: Rebuild.
5535         * remote.c (remote_rcmd): Update.
5536         * monitor.c (monitor_rcmd): Update.
5537
5538 2014-06-16  Pedro Alves  <palves@redhat.com>
5539
5540         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5541         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5542         have OBJF_SHARED set.
5543         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5544         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
5545         instead of OBJF_USERLOADED.
5546         * objfiles.h (OBJF_SHARED): Update comment.
5547         (userloaded_objfile_contains_address_p): Rename to ...
5548         (shared_objfile_contains_address_p): ... this, and update
5549         comments.
5550         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5551         new objfile.
5552         (remove_symbol_file_command): Skip objfiles that don't have
5553         OBJF_SHARED set.
5554
5555 2014-06-16  Tom Tromey  <tromey@redhat.com>
5556
5557         * minsyms.h (prim_record_minimal_symbol)
5558         (prim_record_minimal_symbol_and_info): Update comments.
5559
5560 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
5561
5562         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5563         or --without-guile, according to how GDB was built.
5564
5565 2014-06-13  Tom Tromey  <tromey@redhat.com>
5566
5567         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5568         to help_list.
5569         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5570         to help_list.
5571         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5572         help_list.
5573         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5574         help_list.Pass all_commands, not -1, to help_list.
5575         * cli/cli-dump.c (dump_command, append_command)
5576         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5577         (binary_dump_command, binary_append_command): Pass all_commands,
5578         not -1, to help_list.
5579         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5580         -1, to help_list.
5581         * valprint.c (set_print, set_print_raw): Pass all_commands, not
5582         -1, to help_list.
5583         * typeprint.c (set_print_type): Pass all_commands, not -1, to
5584         help_list.
5585         * top.c (set_history): Pass all_commands, not -1, to help_list.
5586         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5587         all_commands, not -1, to help_list.
5588         * symfile.c (overlay_command): Pass all_commands, not -1, to
5589         help_list.
5590         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5591         help_list.
5592         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5593         help_list.
5594         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5595         -1, to help_list.
5596         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5597         not -1, to help_list.
5598         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5599         not -1, to help_list.
5600         * maint.c (maintenance_command, maintenance_info_command)
5601         (maintenance_print_command, maintenance_set_cmd): Pass
5602         all_commands, not -1, to help_list.
5603         * macrocmd.c (macro_command): Pass all_commands, not -1, to
5604         help_list.
5605         * language.c (set_check): Pass all_commands, not -1, to help_list.
5606         * infcmd.c (unset_command): Pass all_commands, not -1, to
5607         help_list.
5608         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5609         help_list.
5610         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5611         help_list.
5612         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5613         help_list.
5614         * breakpoint.c (save_command): Pass all_commands, not -1, to
5615         help_list.
5616         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5617         all_commands, not -1, to help_list.
5618
5619 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
5620
5621         * regcache.c (struct register_to_invalidate): New structure.
5622         (do_register_invalidate, make_cleanup_regcache_invalidate): New
5623         functions.
5624         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5625
5626 2014-06-12  Yao Qi  <yao@codesourcery.com>
5627
5628         * varobj.c (varobj_get_num_children): Call
5629         varobj_is_dynamic_p.
5630         (varobj_list_children): Likewise.
5631         (varobj_update): Likewise.  Update comments.
5632
5633 2014-06-12  Yao Qi  <yao@codesourcery.com>
5634
5635         * varobj.c (varobj_pretty_printed_p): Rename to ...
5636         (varobj_is_dynamic_p): ... this.  New function.
5637         * varobj.h (varobj_pretty_printed_p): Remove declaration.
5638         (varobj_is_dynamic_p): Declare.
5639         * mi/mi-cmd-var.c (print_varobj): All callers updated.
5640         (mi_print_value_p, varobj_update_one): Likewise.
5641
5642 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5643             Yao Qi  <yao@codesourcery.com>
5644
5645         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5646         (varobj_get_iterator): Wrap up code for pretty-printer by
5647         "#if HAVE_PYTHON" and "#endif".
5648         (update_dynamic_varobj_children): Likewise.
5649
5650 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5651             Yao Qi  <yao@codesourcery.com>
5652
5653         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5654         gdb_python_initialized is false.  Move some code from varobj.c.
5655         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5656         * varobj.c: Move "varobj-iter.h" inclusion earlier.
5657         (struct varobj_item): Moved to varobj-iter.h".
5658         (varobj_clear_saved_item): New function.
5659         (update_dynamic_varobj_children): Move python-related code to
5660         py-varobj.c.
5661         (free_variable): Call varobj_clear_saved_item and
5662         varobj_iter_delete.
5663
5664 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5665             Yao Qi  <yao@codesourcery.com>
5666
5667         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5668         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5669         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5670         (py-varobj.o): New rule.
5671         * python/py-varobj.c: New file.
5672         * python/python-internal.h (py_varobj_get_iterator): Declare.
5673         * varobj-iter.h: New file.
5674         * varobj.c: Include "varobj-iter.h"
5675         (struct varobj) <child_iter>: Change its type from "PyObject *"
5676         to "struct varobj_iter *".
5677         <saved_item>: Likewise.
5678         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5679         [HAVE_PYTHON] (varobj_get_iterator): New function.
5680         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5681         python-specific code to python/py-varobj.c.
5682         (install_visualizer): Call varobj_iter_delete instead of
5683         Py_XDECREF.
5684         * varobj.h (varobj_ensure_python_env): Declare.
5685
5686 2014-06-12  Yao Qi  <yao@codesourcery.com>
5687
5688         * varobj.c (struct varobj_item): New structure.
5689         (create_child_with_value): Update declaration.
5690         (varobj_add_child): Replace arguments 'name' and 'value' with
5691         'item'.  All callers updated.
5692         (install_dynamic_child): Likewise.
5693         (update_dynamic_varobj_children): Likewise.
5694         (varobj_add_child): Likewise.
5695         (create_child_with_value): Likewise.
5696
5697 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5698
5699         * NEWS: Create a new section for the next release branch.
5700         Rename the section of the current branch, now that it has
5701         been cut.
5702
5703 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5704
5705         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5706         * version.in: Bump version to 7.8.50.DATE-cvs.
5707
5708 2014-06-11  Pedro Alves  <palves@redhat.com>
5709
5710         PR remote/17028
5711         * ser-mingw.c (net_windows_socket_check_pending): New function.
5712         (net_windows_select_thread): Ignore spurious wakeups.  Use
5713         net_windows_socket_check_pending.
5714         (net_windows_wait_handle): Check for pending events with
5715         ioctlsocket, through net_windows_socket_check_pending, instead of
5716         checking the socket's event.
5717
5718 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
5719
5720         * python/python-internal.h (gdb_PyObject_GetAttrString)
5721         (gdb_PyObject_HasAttrString): New inline function definitions.
5722         * py-value.c (get_field_flag): Remove the now unnecessary cast to
5723         char * of the second argument to PyObject_GetAttrString.
5724
5725 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5726
5727         * serial.c (serial_write): Fix index of character to be printed
5728         in call to serial_logchar when serial debug traces are enabled.
5729
5730 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5731
5732         * gdbtypes (resolve_dynamic_range): Add function description.
5733
5734 2014-06-09  Pedro Alves  <palves@redhat.com>
5735
5736         * linux-nat.c (linux_child_follow_fork): Initialize status with
5737         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
5738         inner block.  Only pass the signal to PTRACE_DETACH if in pass
5739         state.
5740
5741 2014-06-09  Gary Benson  <gbenson@redhat.com>
5742
5743         * common/signals.c (gdb_signal_from_host): Reorder to separate
5744         the always-available ANSI-standard signals from the signals that
5745         require checking.
5746         (do_gdb_signal_to_host): Likewise.
5747         * proc-events.c (signal_table): Likewise.
5748
5749 2014-06-08  Hui Zhu  <hui@codesourcery.com>
5750
5751         * common/linux-ptrace.c (linux_disable_event_reporting): New
5752         function.
5753         * common/linux-ptrace.h (linux_disable_event_reporting): New
5754         declaration.
5755         * linux-nat.c (linux_child_follow_fork): Do a single step before
5756         detach.
5757
5758 2014-06-07  Keith Seitz  <keiths@redhat.com>
5759
5760         Revert:
5761         PR c++/16253
5762         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5763         from symbol_matches_domain in symtab.c. All local callers
5764         of symbol_matches_domain updated.
5765         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5766         search STRUCT_DOMAIN.
5767         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5768         independently.  standard_lookup will do that automatically.
5769         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5770         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5771         (cp_lookup_symbol_in_namespace): Likewise.
5772         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5773         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5774         may return a STRUCT_DOMAIN match.
5775         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5776         * cp-support.c: Include language.h.
5777         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5778         VAR_DOMAIN.
5779         * psymtab.c (match_partial_symbol): Compare the requested
5780         domain with the symbol's domain directly.
5781         (lookup_partial_symbol): Likewise.
5782         * symtab.c (lookup_symbol_in_language): Explain when/why
5783         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5784         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5785         appropriate languages.
5786         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5787         and moved to ada-lang.c
5788         (lookup_block_symbol): Explain that this function only returns
5789         symbol matching the requested DOMAIN.
5790         Compare the requested domain with the symbol's domain directly.
5791         (iterate_over_symbols): Compare the requested domain with the
5792         symbol's domain directly.
5793         * symtab.h (symbol_matches_domain): Remove.
5794
5795 2014-06-06  Doug Evans  <xdje42@gmail.com>
5796
5797         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5798         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5799         (gdbscm_guile_version_is_at_least): Declare.
5800         (gdbscm_scm_string_to_int): Declare.
5801         * guile/guile.c (gdbscm_guile_major_version): New global.
5802         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5803         (guile_datadir): New static global.
5804         (gdbscm_guile_data_directory): New function.
5805         (initialize_scheme_side): Update.
5806         (misc_guile_functions): Add guile-data-directory.
5807         (initialize_gdb_module): Fetch guile version number.
5808         * guile/lib/gdb.scm: Remove call to add-to-load-path.
5809         * guile/lib/gdb/init.scm (%initialize!): Ditto.
5810         * guile/lib/gdb/boot.scm: Use guile-data-directory.
5811         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5812         comments.
5813         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5814         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5815         * guile/scm-value.c (gdbscm_value_to_string): Only call
5816         scm_port_conversion_strategy if Guile version >= 2.0.6.
5817
5818 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
5819
5820         * main.c (print_gdb_help): Add -q and --silent.
5821
5822 2014-06-06  Gary Benson  <gbenson@redhat.com>
5823
5824         * common/signals.c: Remove preprocessor conditionals for
5825         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5826         SIGSEGV and SIGTERM.
5827         * proc-events.c: Likewise.
5828
5829 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
5830
5831         * symfile.c (symfile_free_objfile): Remove restriction to
5832         OBJF_USERLOADED.
5833         * symfile-mem.c (symbol_file_add_from_memory): Call
5834         add_target_sections_of_objfile.
5835
5836 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
5837
5838         * guile/scm-value.c (gdbscm_history_append_x): Use
5839         'vlscm_get_value_smob_arg_unsafe' instead of
5840         'vlscm_scm_to_value'.
5841
5842 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
5843
5844         PR mi/15806
5845         * utils.c (printchar): Don't escape at all if quoter is NUL.
5846         Update function documentation to clarify effect of parameter
5847         QUOTER.
5848         * remote.c (escape_buffer): Pass '\\' as the quoter to
5849         fputstrn_unfiltered.
5850         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5851         generate the output.
5852         (mi_solib_unloaded): Same.
5853
5854 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
5855
5856         * development.sh: Delete.
5857         * Makefile.in (config.status): Adjust dependency on development.sh.
5858         * configure.ac: Adjust development.sh source call.
5859         * configure: Regenerate.
5860
5861 2014-06-04  Doug Evans  <xdje42@gmail.com>
5862
5863         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5864         is_scheme_bkpt, spec.
5865         (bpscm_make_breakpoint_smob): Initialize new members.
5866         (gdbscm_create_breakpoint_x): Split into two ...
5867         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5868         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5869         (scheme_function breakpoint_functions): Update.
5870         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
5871         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
5872         register-breakpoint!.
5873
5874 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
5875
5876         PR server/17023
5877         * mem-break.c (z_type_supported): Return zero if
5878         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5879
5880 2014-06-04  Tom Tromey  <tromey@redhat.com>
5881
5882         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5883         value_from_contents_and_address_unresolved.
5884         (ada_template_to_fixed_record_type_1): Likewise.
5885         (ada_which_variant_applies): Likewise.
5886         * value.h (value_from_contents_and_address_unresolved): Declare.
5887         * value.c (value_from_contents_and_address_unresolved): New
5888         function.
5889         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5890         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5891         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5892
5893 2014-06-04  Tom Tromey  <tromey@redhat.com>
5894
5895         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5896
5897 2014-06-04  Tom Tromey  <tromey@redhat.com>
5898
5899         * procfs.c (procfs_attach): Make "args" const.
5900         * windows-nat.c (windows_attach): Make "args" const.
5901         * nto-procfs.c (procfs_attach): Make "args" const.
5902         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5903         * go32-nat.c (go32_attach): Make "args" const.
5904         * gnu-nat.c (gnu_attach): Make "args" const.
5905         * darwin-nat.c (darwin_attach): Make "args" const.
5906         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5907         * linux-nat.c (linux_nat_attach): Make "args" const.
5908         * remote.c (extended_remote_attach_1, extended_remote_attach):
5909         Make "args" const.
5910         * target.h (struct target_ops) <to_attach>: Make "args" const.
5911         (find_default_attach): Likewise.
5912         * utils.c (parse_pid_to_attach): Make "args" const.
5913         * utils.h (parse_pid_to_attach): Update.
5914
5915 2014-06-04  Tom Tromey  <tromey@redhat.com>
5916
5917         * target-delegates.c: Rebuild.
5918         * target.c (default_thread_address_space): New function.
5919         (target_thread_address_space): Simplify.
5920         * target.h (struct target_ops) <to_thread_address_space>: Add
5921         TARGET_DEFAULT_FUNC.
5922
5923 2014-06-04  Doug Evans  <xdje42@gmail.com>
5924
5925         * guile/scm-type.c (type_smob): Remove duplicate typedef.
5926
5927 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
5928
5929         * record-btrace.c: Include event-loop.h and inf-loop.h.
5930         (record_btrace_resume_exec_dir)
5931         (record_btrace_async_inferior_event_handler)
5932         (record_btrace_handle_async_inferior_event): New.
5933         (record_btrace_open): Create async event handler.
5934         (record_btrace_close): Delete async event handler.
5935         (record_btrace_resume): Set record_btrace_resume_exec_dir,
5936         Mark async event handler.
5937         (record_btrace_execution_direction): New.
5938         (init_record_btrace_ops): Initialize to_execution_direction.
5939
5940 2014-06-03  Doug Evans  <xdje42@gmail.com>
5941
5942         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5943         (gdbscm_make_parameter): Ditto.
5944
5945 2014-06-03  Doug Evans  <dje@google.com>
5946
5947         * exec.c (exec_close_1): Call clear_section_table instead of
5948         resize_section_table.
5949         (clear_section_table): New function.
5950         (resize_section_table): Make static.  Rename arg num_added to
5951         adjustment.
5952         * exec.h (clear_section_table): Declare.
5953         (resize_section_table): Delete.
5954         * progspace.c (release_program_space): Call clear_section_table
5955         instead of resize_section_table.
5956
5957 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5958
5959         * NEWS (Python Scripting): Add entry about the new xmethods
5960         feature.
5961
5962 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5963
5964         * python/py-xmethods.c: New file.
5965         * python/py-objfile.c (objfile_object): New field 'xmethods'.
5966         (objfpy_dealloc): XDECREF on the new xmethods field.
5967         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5968         field.
5969         (objfpy_get_xmethods): New function.
5970         (objfile_getset): New entry 'xmethods'.
5971         * python/py-progspace.c (pspace_object): New field 'xmethods'.
5972         (pspy_dealloc): XDECREF on the new xmethods field.
5973         (pspy_new, pspace_to_pspace_object): Initialize xmethods
5974         field.
5975         (pspy_get_xmethods): New function.
5976         (pspace_getset): New entry 'xmethods'.
5977         * python/python-internal.h: Add declarations for new functions.
5978         * python/python.c (_initialize_python): Invoke
5979         gdbpy_initialize_xmethods.
5980         * python/lib/gdb/__init__.py (xmethods): New
5981         attribute.
5982         * python/lib/gdb/xmethod.py: New file.
5983         * python/lib/gdb/command/xmethods.py: New file.
5984
5985 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5986
5987         * eval.c (evaluate_subexp_standard): Call the xmethod if the
5988         best match method returned by find_overload_match is an xmethod.
5989         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5990         the best matching operator returned by find_overload_match is an
5991         xmethod.
5992         * valops.c: #include "extension.h".
5993         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5994         Return void.  The list of matching source methods is returned in
5995         "fn_list" and a vector of matching debug method workers is
5996         returned in "xm_worker_vec".  Update all callers.
5997         (value_find_oload_method_list): Likewise.
5998         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
5999         non-NULL, then the index of the best matching method in this
6000         vector is returned.  Update all callers.
6001         (find_overload_match): Include xmethods while performing overload
6002         resolution.
6003
6004 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6005
6006         * defs.h (enum lval_type): New enumerator "lval_xcallable".
6007         * extension-priv.h (struct extension_language_ops): Add the
6008         xmethod interface.
6009         * extension.c (new_xmethod_worker, clone_xmethod_worker,
6010         get_matching_xmethod_workers, get_xmethod_argtypes,
6011         invoke_xmethod, free_xmethod_worker,
6012         free_xmethod_worker_vec): New functions.
6013         * extension.h: #include "common/vec.h".
6014         New function declarations.
6015         (struct xmethod_worker): New struct.
6016         (VEC (xmethod_worker_ptr)): New vector type.
6017         (xmethod_worker_ptr): New typedef.
6018         (xmethod_worker_vec): Likewise.
6019         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6020         builtin_type.
6021         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6022         (struct builtin_type): New field "xmethod".
6023         * valarith.c (value_ptradd): Assert that the value argument is not
6024         lval_xcallable.
6025         * valops.c (value_must_coerce_to_target): Return 0 for
6026         lval_xcallable values.
6027         * value.c (struct value): New field XM_WORKER in the field
6028         LOCATION.
6029         (value_address, value_raw_address): Return 0 for lval_xcallable
6030         values.
6031         (set_value_address): Assert that the value is not an
6032         lval_xcallable.
6033         (value_free): Free the associated xmethod worker when freeing
6034         lval_xcallable values.
6035         (set_value_component_location): Assert that the WHOLE value is not
6036         lval_xcallable.
6037         (value_of_xmethod, call_xmethod): New functions.
6038         * value.h: Declare "struct xmethod_worker".
6039         Declare new functions value_of_xmethod, call_xmethod.
6040
6041 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
6042             Pedro Alves  <palves@redhat.com>
6043
6044         PR breakpoints/17000
6045         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6046         New function, extracted from software_breakpoint_inserted_here_p.
6047         (software_breakpoint_inserted_here_p): Replace factored out code
6048         by call to find_non_raw_software_breakpoint_inserted_here.
6049         (bp_target_info_copy_insertion_state): New function.
6050         (bkpt_insert_location): Handle the case of a single-step
6051         breakpoint already inserted at the same address.
6052         (bkpt_remove_location): Handle the case of a single-step
6053         breakpoint still inserted at the same address.
6054         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6055         breakpoint already inserted at the same address.
6056         (deprecated_remove_raw_breakpoint): Handle the case of a
6057         non-raw breakpoint still inserted at the same address.
6058         (find_single_step_breakpoint): New function, extracted from
6059         single_step_breakpoint_inserted_here_p.
6060         (find_single_step_breakpoint): New function,
6061         factored out from single_step_breakpoint_inserted_here_p.
6062         (single_step_breakpoint_inserted_here_p): Reimplement.
6063
6064 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
6065
6066         Pushed by Joel Brobecker  <brobecker@adacore.com>
6067         * source.c (show_substitute_path_command): Fix display of matching
6068         substitution rules.
6069
6070 2014-06-03  Gary Benson  <gbenson@redhat.com>
6071
6072         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6073
6074 2014-06-02  Doug Evans  <xdje42@gmail.com>
6075
6076         Add parameter support for Guile.
6077         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6078         (SUBDIR_GUILE_SRCS): Add scm-param.c.
6079         (scm-param.o): New rule.
6080         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6081         (gdbscm_misc_error): Declare.
6082         (gdbscm_canonicalize_command_name): Declare.
6083         (gdbscm_scm_to_host_string): Declare.
6084         (gdbscm_scm_from_host_string): Declare.
6085         (gdbscm_initialize_parameters): Declare.
6086         * guile/guile.c (initialize_gdb_module): Call
6087         gdbscm_initialize_parameters.
6088         * guile/lib/gdb.scm: Export parameter symbols.
6089         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6090         cmdscm_canonicalize_name and made public.  All callers updated.
6091         * guile/scm-exception.c (gdbscm_misc_error): New function.
6092         * guile/scm-param.c: New file.
6093         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6094         (gdbscm_scm_to_host_string): New function.
6095         (gdbscm_scm_from_host_string): New function.
6096         * scm-utils.c (gdbscm_gc_dup_argv): New function.
6097
6098 2014-06-02  Doug Evans  <xdje42@gmail.com>
6099
6100         Add command support for Guile.
6101         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6102         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6103         (scm-cmd.o): New rule.
6104         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6105         (gdbscm_user_error_p): Declare.
6106         (gdbscm_parse_command_name): Declare.
6107         (gdbscm_valid_command_class_p): Declare.
6108         (gdbscm_initialize_commands): Declare.
6109         * guile/guile.c (initialize_gdb_module): Call
6110         gdbscm_initialize_commands.
6111         * guile/lib/gdb.scm: Export command symbols.
6112         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6113         (throw-user-error): New function.
6114         * guile/scm-cmd.c: New file.
6115         * guile/scm-exception.c (user_error_symbol): New static global.
6116         (gdbscm_user_error_p): New function.
6117         (gdbscm_initialize_exceptions): Set user_error_symbol.
6118         * scm-utils.c (gdbscm_gc_xstrdup): New function.
6119
6120 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
6121
6122         * top.c (command_loop): Handle comments here...
6123         (command_line_input): ... not here.
6124
6125 2014-06-02  Doug Evans  <xdje42@gmail.com>
6126
6127         Add progspace support for Guile.
6128         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6129         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6130         (scm-progspace.o): New rule.
6131         * guile/guile-internal.h (pspace_smob): New typedef.
6132         (psscm_pspace_smob_pretty_printers): Declare.
6133         (psscm_pspace_smob_from_pspace): Declare.
6134         (psscm_scm_from_pspace): Declare.
6135         * guile/guile.c (initialize_gdb_module): Call
6136         gdbscm_initialize_pspaces.
6137         * guile/lib/gdb.scm: Export progspace symbols.
6138         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6139         support.
6140         (append-pretty-printer!): Ditto.
6141         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6142         Implement.
6143         * guile/scm-progspace.c: New file.
6144
6145 2014-06-03  Alan Modra  <amodra@gmail.com>
6146
6147         * ppc64-tdep.c (ppc64_standard_linkage8): New.
6148         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6149
6150 2014-06-02  Doug Evans  <dje@google.com>
6151
6152         Add support for skeletonless type units.
6153         * dwarf2read.c (struct dwarf2_per_objfile): New member
6154         n_allocated_type_units.
6155         (struct dwarf2_per_objfile) <tu_stats>: New member
6156         nr_all_type_units_reallocs.
6157         (create_signatured_type_table_from_index): Initialize
6158         n_allocated_type_units
6159         (create_all_type_units): Ditto.
6160         (add_type_unit): Move up in file.  New arg slot.
6161         All callers updated.  Increase space for all_type_units more
6162         efficiently.
6163         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6164         (lookup_dwo_signatured_type): Handle skeletonless TUs.
6165         (lookup_dwp_signatured_type): Ditto.
6166         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6167         All callers updated.
6168         (build_type_psymtabs_1): Leave type_unit_groups as
6169         NULL if no TUs present.
6170         (print_tu_stats): New function.
6171         (process_skeletonless_type_unit): New function.
6172         (process_dwo_file_for_skeletonless_type_units): New
6173         function.
6174         (process_skeletonless_type_units): New function.
6175         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6176         Call print tu_stats if debugging enabled.
6177
6178 2014-06-02  Pedro Alves  <palves@redhat.com>
6179
6180         * breakpoint.c (build_target_command_list): Don't build a command
6181         list if we have any duplicate location that isn't a dprintf.
6182
6183 2014-06-02  Pedro Alves  <palves@redhat.com>
6184
6185         * breakpoint.c (dprintf_breakpoint_hit): New function.
6186         (initialize_breakpoint_ops): Install it as dprintf's
6187         breakpoint_hit method.
6188
6189 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
6190
6191         * source.c (substitute_path_rule_matches): Simplify using
6192         filename_ncmp instead of FILENAME_CMP.
6193
6194 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
6195
6196         * source.c (substitute_path_rule_matches): Remove trailing spaces.
6197
6198 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
6199
6200         * configure.ac: When Guile is available, check for the
6201         availability of 'scm_new_smob'.
6202         * configure, config.h.in: Regenerate.
6203         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6204         function.
6205
6206 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6207
6208         * frame.c (struct frame_info): Add stop_string field.
6209         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6210         (get_prev_frame_always): Old content moved into
6211         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
6212         TRY_CATCH, handle MEMORY_ERROR exceptions.
6213         (frame_stop_reason_string): New function definition.
6214         * frame.h (unwind_stop_reason_to_string): Extend comment to
6215         mention frame_stop_reason_string.
6216         (frame_stop_reason_string): New function declaration.
6217         * stack.c (frame_info): Switch to frame_stop_reason_string.
6218         (backtrace_command_1): Switch to frame_stop_reason_string.
6219         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6220         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6221         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6222
6223 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6224
6225         * frame.c (frame_stop_reason_string): Rename to ...
6226         (unwind_stop_reason_to_string): this.
6227         * frame.h (frame_stop_reason_string): Rename to ...
6228         (unwind_stop_reason_to_string): this.
6229         * stack.c (frame_info): Update call to frame_stop_reason_string.
6230         (backtrace_command_1): Likewise.
6231         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6232         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6233
6234 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6235
6236         * frame.c (remove_prev_frame): New function.
6237         (get_prev_frame_if_no_cycle): Create / discard cleanup using
6238         remove_prev_frame.
6239
6240 2014-05-29  Pedro Alves  <palves@redhat.com>
6241
6242         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6243         and make it const.  When a single-step decays to a continue,
6244         clear 'step', not 'hw_step'.  Pass whether the caller wanted
6245         to step to user_visible_resume_ptid, not what we ask the
6246         target to do.
6247
6248 2014-05-29  Pedro Alves  <palves@redhat.com>
6249
6250         * infrun.c (process_event_stop_test, handle_step_into_function)
6251         (handle_step_into_function_backward): Adjust.
6252         Don't set the even thread's stop_step and call stop_waiting before
6253         calling end_stepping_range.  Instead do that ...
6254         (end_stepping_range): ... here.  Take an ecs pointer parameter.
6255
6256 2014-05-29  Pedro Alves  <palves@redhat.com>
6257
6258         * infrun.c (stop_stepping): Rename to ...
6259         (stop_waiting): ... this.
6260         (proceed): Update comment.
6261         (process_event_stop_test, handle_inferior_event)
6262         (handle_signal_stop, handle_step_into_function)
6263         (handle_step_into_function_backward): Update.
6264
6265 2014-05-29  Pedro Alves  <palves@redhat.com>
6266
6267         * infcall.c (run_inferior_call): Don't check whether the current
6268         thread is running after the proceed call.
6269
6270 2014-05-29  Pedro Alves  <palves@redhat.com>
6271             Tom Tromey  <tromey@redhat.com>
6272
6273         * NEWS: Mention "maint set target-async", "set mi-async", and that
6274         background execution commands are now always available.
6275         * target.h (target_async_permitted): Update comment.
6276         * target.c (target_async_permitted, target_async_permitted_1):
6277         Default to 1.
6278         (set_target_async_command): Rename to ...
6279         (maint_set_target_async_command): ... this.
6280         (show_target_async_command): Rename to ...
6281         (maint_show_target_async_command): ... this.
6282         (_initialize_target): Adjust.
6283         * infcmd.c (prepare_execution_command): Make extern.
6284         * inferior.h (prepare_execution_command): Declare.
6285         * infrun.c (set_observer_mode): Leave target async alone.
6286         * mi/mi-interp.c (mi_interpreter_init): Install
6287         mi_on_sync_execution_done as sync_execution_done observer.
6288         (mi_on_sync_execution_done): New function.
6289         (mi_execute_command_input_handler): Don't print the prompt if we
6290         just started a synchronous command with an async target.
6291         (mi_on_resume): Check sync_execution before printing prompt.
6292         * mi/mi-main.h (mi_async_p): Declare.
6293         * mi/mi-main.c: Include gdbcmd.h.
6294         (mi_async_p): New function.
6295         (mi_async, mi_async_1): New globals.
6296         (set_mi_async_command, show_mi_async_command, mi_async): New
6297         functions.
6298         (exec_continue): Call prepare_execution_command.
6299         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6300         (mi_execute_async_cli_command): Use mi_async_p.
6301         (_initialize_mi_main): Install "set mi-async".  Make
6302         "target-async" a deprecated alias.
6303
6304 2014-05-29  Pedro Alves  <palves@redhat.com>
6305
6306         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6307         (_initialize_cli_interp): Adjust.
6308         * event-loop.c: Include "observer.h".
6309         (start_event_loop): Notify 'command_error' observers instead of
6310         calling display_gdb_prompt.  Remove FIXME comment.
6311         * event-top.c (display_gdb_prompt): Remove call into the
6312         interpreters.
6313         * inf-loop.c: Include "observer.h".
6314         (inferior_event_handler): Notify 'command_error' observers instead
6315         of calling display_gdb_prompt.
6316         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6317         observers instead of calling display_gdb_prompt.
6318         * interps.c (interp_set): Don't call display_gdb_prompt.
6319         (current_interp_display_prompt_p): Delete.
6320         * interps.h (interp_prompt_p): Delete declaration.
6321         (interp_prompt_p_ftype): Delete.
6322         (struct interp_procs) <prompt_proc_p>: Delete field.
6323         (current_interp_display_prompt_p): Delete declaration.
6324         * mi-interp.c (mi_interpreter_prompt_p): Delete.
6325         (_initialize_mi_interp): Adjust.
6326         * tui-interp.c (tui_init): Install 'sync_execution_done' and
6327         'command_error' observers.
6328         (tui_on_sync_execution_done, tui_on_command_error): New
6329         functions.
6330         (tui_display_prompt_p): Delete.
6331         (_initialize_tui_interp): Adjust.
6332
6333 2014-05-29  Pedro Alves  <palves@redhat.com>
6334
6335         PR gdb/13860
6336         * cli/cli-interp.c: Include infrun.h and observer.h.
6337         (cli_uiout, cli_interp): New globals.
6338         (cli_on_signal_received, cli_on_end_stepping_range)
6339         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6340         functions.
6341         (cli_interpreter_init): Install them as 'end_stepping_range',
6342         'signal_received' 'signal_exited', 'exited' and 'no_history'
6343         observers.
6344         (_initialize_cli_interp): Remove cli_interp local.
6345         * infrun.c (handle_inferior_event): Call the several stop reason
6346         observers instead of printing the stop reason directly.
6347         (end_stepping_range): New function.
6348         (print_end_stepping_range_reason, print_signal_exited_reason)
6349         (print_exited_reason, print_signal_received_reason)
6350         (print_no_history_reason): Make static, and add an uiout
6351         parameter.  Print to that instead of to CURRENT_UIOUT.
6352         * infrun.h (print_end_stepping_range_reason)
6353         (print_signal_exited_reason, print_exited_reason)
6354         (print_signal_received_reason print_no_history_reason): New
6355         declarations.
6356         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6357         'mi_uiout'.
6358         <cli_uiout>: New field.
6359         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
6360         uiout for CLI output.  Install 'signal_received',
6361         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6362         observers.
6363         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6364         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6365         (mi_on_no_history): New functions.
6366         (ui_out_free_cleanup): Delete function.
6367         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6368         instead use the one already stored in the MI interpreter data.
6369         (mi_ui_out): Adjust.
6370         * tui/tui-interp.c: Include infrun.h and observer.h.
6371         (tui_interp): New global.
6372         (tui_on_signal_received, tui_on_end_stepping_range)
6373         (tui_on_signal_exited, tui_on_exited)
6374         (tui_on_no_history): New functions.
6375         (tui_init): Install them as 'end_stepping_range',
6376         'signal_received' 'signal_exited', 'exited' and 'no_history'
6377         observers.
6378         (_initialize_tui_interp): Delete tui_interp local.
6379
6380 2014-05-29  Pedro Alves  <palves@redhat.com>
6381
6382         PR gdb/15713
6383         * linux-nat.c (linux_nat_resume_callback): Rename the second
6384         parameter to 'except'.  Skip LP if it points to EXCEPT.
6385         (linux_nat_resume): Don't mark the event lwp as not stopped
6386         before resuming sibling lwps.  Instead ask
6387         linux_nat_resume_callback to skip the event lwp.  Mark it as not
6388         stopped after actually resuming it.
6389         (linux_handle_syscall_trap): Mark the lwp as not stopped after
6390         resuming it.
6391         (wait_lwp): Mark the lwp as stopped here.
6392         (stop_wait_callback): Mark the lwp as not stopped right after
6393         resuming it.  Don't mark lwps as stopped here.
6394         (linux_nat_filter_event): Mark the lwp as stopped earlier.
6395         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6396
6397 2014-05-29  Pedro Alves  <palves@redhat.com>
6398
6399         PR PR15693
6400         * infrun.c (resume): Determine how much to resume depending on
6401         whether the caller wanted a step, not whether we can hardware step
6402         the target.  Mark all threads that we intend to run as running,
6403         unless we're calling an inferior function.
6404         (normal_stop): If the thread is running an infcall, don't finish
6405         thread state.
6406         * target.c (target_resume): Don't mark threads as running here.
6407
6408 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
6409
6410         * serial.c (_initialize_serial): Remove support for
6411         the "set remotebaud" and "show remotebaud" commands.
6412         * NEWS: Add entry documenting the removal of that command.
6413
6414 2014-05-28  Yao Qi  <yao@codesourcery.com>
6415
6416         * charset.c: Fix typo in comments.
6417
6418 2014-05-27  Gary Benson  <gbenson@redhat.com>
6419
6420         * utils.c (internal_vproblem): Prompt for a bug report.
6421
6422 2014-05-26  Andy Wingo  <wingo@igalia.com>
6423
6424         * guile/scm-arch.c (arscm_mark_arch_smob):
6425         * guile/scm-block.c (bkscm_mark_block_smob)
6426         (bkscm_mark_block_syms_progress_smob):
6427         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6428         * guile/scm-exception.c (exscm_mark_exception_smob):
6429         * guile/scm-frame.c (frscm_mark_frame_smob):
6430         * guile/scm-iterator.c (itscm_mark_iterator_smob):
6431         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6432         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6433         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6434         (ppscm_mark_pretty_printer_worker_smob):
6435         * guile/scm-symbol.c (syscm_mark_symbol_smob):
6436         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6437         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6438         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6439         mark functions.
6440         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6441         function.
6442
6443 2014-05-26  Andy Wingo  <wingo@igalia.com>
6444             Doug Evans  <xdje42@gmail.com>
6445
6446         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6447         empty_base_class.  All uses updated.
6448         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6449         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6450         Adapt all callers.
6451         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6452         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6453         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6454         (gdbscm_gsmob_has_property_p, add_property_name)
6455         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6456         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6457         (gdb-object-has-property?, gdb-object-properties): Remove.
6458         (gdb-object-kind): Renamed from gsmob-kind.
6459
6460 2014-05-26  Andy Wingo  <wingo@igalia.com>
6461
6462         * configure.ac (try_guile_versions): Allow building with guile 2.2.
6463         * configure: Regenerate.
6464
6465 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6466
6467         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6468
6469 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6470
6471         * record-btrace.c (record_btrace_allow_memory_access): Remove.
6472         (replay_memory_access_read_only, replay_memory_access_read_write)
6473         (replay_memory_access_types, replay_memory_access)
6474         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6475         (cmd_set_record_btrace, cmd_show_record_btrace)
6476         (cmd_show_replay_memory_access): New.
6477         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6478         (record_btrace_remove_breakpoint): Replace
6479         record_btrace_allow_memory_access with replay_memory_access.
6480         (_initialize_record_btrace): Add commands.
6481         * NEWS: Announce it.
6482
6483 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6484
6485         * aarch64-linux-nat.c (asm/ptrace.h): Include.
6486
6487 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6488
6489         * MAINTAINERS (Write After Approval): Move self back from
6490         paper trail.
6491
6492 2014-05-22  Pedro Alves  <palves@redhat.com>
6493
6494         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6495         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6496         (disable_randomization, enum exec_direction_kind)
6497         (execution_direction, stop_registers, start_remote)
6498         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6499         (wait_for_inferior, normal_stop, get_last_target_status)
6500         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6501         (insert_step_resume_breakpoint_at_sal)
6502         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6503         (set_step_info, print_stop_event, signal_stop_state)
6504         (signal_print_state, signal_pass_state, signal_stop_update)
6505         (signal_print_update, signal_pass_update)
6506         (update_signals_program_target, clear_exit_convenience_vars)
6507         (displaced_step_dump_bytes, update_observer_mode)
6508         (signal_catch_update, gdb_signal_from_command): Move
6509         declarations ...
6510         * infrun.h: ... to this new file.
6511         * amd64-tdep.c: Include infrun.h.
6512         * annotate.c: Include infrun.h.
6513         * arch-utils.c: Include infrun.h.
6514         * arm-linux-tdep.c: Include infrun.h.
6515         * arm-tdep.c: Include infrun.h.
6516         * break-catch-sig.c: Include infrun.h.
6517         * breakpoint.c: Include infrun.h.
6518         * common/agent.c: Include infrun.h instead of inferior.h.
6519         * corelow.c: Include infrun.h.
6520         * event-top.c: Include infrun.h.
6521         * go32-nat.c: Include infrun.h.
6522         * i386-tdep.c: Include infrun.h.
6523         * inf-loop.c: Include infrun.h.
6524         * infcall.c: Include infrun.h.
6525         * infcmd.c: Include infrun.h.
6526         * infrun.c: Include infrun.h.
6527         * linux-fork.c: Include infrun.h.
6528         * linux-nat.c: Include infrun.h.
6529         * linux-thread-db.c: Include infrun.h.
6530         * monitor.c: Include infrun.h.
6531         * nto-tdep.c: Include infrun.h.
6532         * procfs.c: Include infrun.h.
6533         * record-btrace.c: Include infrun.h.
6534         * record-full.c: Include infrun.h.
6535         * remote-m32r-sdi.c: Include infrun.h.
6536         * remote-mips.c: Include infrun.h.
6537         * remote-notif.c: Include infrun.h.
6538         * remote-sim.c: Include infrun.h.
6539         * remote.c: Include infrun.h.
6540         * reverse.c: Include infrun.h.
6541         * rs6000-tdep.c: Include infrun.h.
6542         * s390-linux-tdep.c: Include infrun.h.
6543         * solib-irix.c: Include infrun.h.
6544         * solib-osf.c: Include infrun.h.
6545         * solib-svr4.c: Include infrun.h.
6546         * target.c: Include infrun.h.
6547         * top.c: Include infrun.h.
6548         * windows-nat.c: Include infrun.h.
6549         * mi/mi-interp.c: Include infrun.h.
6550         * mi/mi-main.c: Include infrun.h.
6551         * python/py-threadevent.c: Include infrun.h.
6552
6553 2014-05-22  Pedro Alves  <palves@redhat.com>
6554
6555         * infrun.c (handle_inferior_event): Store the exit code for
6556         --return-child-result here, instead of ...
6557         (print_exited_reason): ... here.
6558
6559 2014-05-21  Pedro Alves  <palves@redhat.com>
6560
6561         PR gdb/13860
6562         * gdbthread.h (struct thread_control_state): New field
6563         `command_interp'.
6564         * infrun.c (follow_fork): Copy the new thread control field to the
6565         child fork thread.
6566         (clear_proceed_status_thread): Clear the new thread control field.
6567         (proceed): Set the new thread control field.
6568         * interps.h (command_interp): Declare.
6569         * interps.c (command_interpreter): New global.
6570         (command_interp): New function.
6571         (interp_exec): Set `command_interpreter' while here.
6572         * cli-out.c (cli_uiout_dtor): New function.
6573         (cli_ui_out_impl): Install it.
6574         * mi/mi-interp.c: Include cli-out.h.
6575         (mi_cmd_interpreter_exec): Add comment.
6576         (restore_current_uiout_cleanup): New function.
6577         (ui_out_free_cleanup): New function.
6578         (mi_on_normal_stop): If finishing an execution command started by
6579         a CLI command, or any kind of breakpoint-like event triggered,
6580         print the stop event to the output (CLI) stream.
6581         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6582
6583 2014-05-21  Pedro Alves  <palves@redhat.com>
6584
6585         * cli/cli-cmds.c (list_command): Handle the first "list" after the
6586         current source line having changed.
6587         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6588         * infrun.c (normal_stop): Adjust call to
6589         set_current_sal_from_frame.
6590         * source.c (clear_lines_listed_range): New function.
6591         (set_current_source_symtab_and_line, identify_source_line): Clear
6592         the lines listed range.
6593         (line_info): Handle the first "info line" after the current source
6594         line having changed.
6595         * stack.c (print_stack_frame): Remove center handling.
6596         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
6597         center sal.line.
6598
6599 2014-05-21  Pedro Alves  <palves@redhat.com>
6600
6601         * inf-child.c (inf_child_mourn_inferior): New function.
6602         * inf-child.h (inf_child_mourn_inferior): New declaration.
6603         * darwin-nat.c (darwin_mourn_inferior): Use
6604         inf_child_mourn_inferior.
6605         * gnu-nat.c (gnu_mourn_inferior): Likewise.
6606         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6607         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6608         * nto-procfs.c (procfs_mourn_inferior): Likewise.
6609         * windows-nat.c (windows_mourn_inferior): Likewise.
6610
6611 2014-05-21  Doug Evans  <xdje42@gmail.com>
6612
6613         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6614
6615 2014-05-21  Doug Evans  <xdje42@gmail.com>
6616
6617         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6618         (gdbscm_out_of_range_error): Ditto.
6619         (gdbscm_memory_error): Ditto.
6620         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6621         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6622         (gdbscm_out_of_range_error): Update.
6623         (gdbscm_memory_error): Update.
6624         (gdbscm_scm_to_target_string_unsafe): Delete.
6625
6626 2014-05-21  Pedro Alves  <palves@redhat.com>
6627
6628         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6629         globals.
6630         (inf_child_open_target): New function.
6631         (inf_child_open): Use inf_child_open_target to push the target
6632         instead of erroring out.
6633         (inf_child_disconnect, inf_child_close)
6634         (inf_child_maybe_unpush_target): New functions.
6635         (inf_child_target): Install inf_child_disconnect and
6636         inf_child_close.  Store a pointer to the returned object.
6637         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6638         declarations.
6639         * target.c (auto_connect_native_target): New global.
6640         (show_default_run_target): New function.
6641         (find_default_run_target): Return NULL if automatically connecting
6642         to the native target is disabled.
6643         (_initialize_target): Install set/show auto-connect-native-target.
6644         * NEWS: Mention "set auto-connect-native-target", and "target
6645         native".
6646         * linux-nat.c (super_close): New global.
6647         (linux_nat_close): Call super_close.
6648         (linux_nat_add_target): Store a pointer to the base class's
6649         to_close method.
6650         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6651         inf_child_maybe_unpush.
6652         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6653         already pushed.
6654         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6655         the inferior.  Use inf_child_maybe_unpush_target.
6656         (inf_ttrace_attach): Don't push the target if it is already
6657         pushed.
6658         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6659         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6660         after mourning the inferior.  Use inf_child_maybe_unpush_target.
6661         (darwin_attach_pid): Don't push the target if it is already
6662         pushed.
6663         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6664         mourning the inferior.  Use inf_child_maybe_unpush_target.
6665         (gnu_detach): Use inf_child_maybe_unpush_target.
6666         * go32-nat.c (go32_create_inferior): Don't push the target if it
6667         is already pushed.
6668         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6669         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6670         (procfs_open): Rename to ...
6671         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
6672         comments.  Can target_preopen before changing node.  Call
6673         inf_child_open_target to push the target explicitly.
6674         (procfs_attach): Don't push the target if it is already pushed.
6675         (procfs_detach): Use inf_child_maybe_unpush_target.
6676         (procfs_create_inferior): Don't push the target if it is already
6677         pushed.
6678         (nto_native_ops): New global.
6679         (procfs_open): Reimplement.
6680         (procfs_native_open): New function.
6681         (init_procfs_targets): Install procfs_native_open as to_open of
6682         "target native".  Store a pointer to the "native" target in
6683         nto_native_ops.
6684         * procfs.c (procfs_attach): Don't push the target if it is already
6685         pushed.
6686         (procfs_detach): Use inf_child_maybe_unpush_target.
6687         (procfs_mourn_inferior): Only unpush the target after mourning the
6688         inferior.  Use inf_child_maybe_unpush_target.
6689         (procfs_init_inferior): Don't push the target if it is already
6690         pushed.
6691         * windows-nat.c (do_initial_windows_stuff): Don't push the target
6692         if it is already pushed.
6693
6694 2014-05-21  Pedro Alves  <palves@redhat.com>
6695
6696         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6697         and "procfs" targets are now called "native" instead.
6698
6699 2014-05-21  Pedro Alves  <palves@redhat.com>
6700
6701         * go32-nat.c (go32_open): Delete.
6702         (go32_target): Don't override the to_open method.
6703
6704 2014-05-21  Pedro Alves  <palves@redhat.com>
6705
6706         * nto-procfs.c (procfs_can_run): New function.
6707         (nto_procfs_ops): New global.
6708         (init_procfs_targets): New, based on procfs_target.  Install
6709         "target native" in addition to "target procfs".
6710         (_initialize_procfs): Call init_procfs_targets instead of adding
6711         the target here.
6712
6713 2014-05-21  Pedro Alves  <palves@redhat.com>
6714
6715         * windows-nat.c (windows_target): Don't override to_shortname,
6716         to_longname or to_doc.
6717
6718 2014-05-21  Pedro Alves  <palves@redhat.com>
6719
6720         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6721         to_doc.
6722
6723 2014-05-21  Pedro Alves  <palves@redhat.com>
6724
6725         * darwin-nat.c (_initialize_darwin_inferior): Don't override
6726         to_shortname, to_longname or to_doc.
6727
6728 2014-05-21  Pedro Alves  <palves@redhat.com>
6729
6730         * go32-nat.c (go32_target): Don't override to_shortname,
6731         to_longname or to_doc.
6732
6733 2014-05-21  Pedro Alves  <palves@redhat.com>
6734
6735         * inf-child.c (inf_child_open): Remove mention of "child".
6736         (inf_child_target): Rename target to "native" instead of "child".
6737
6738 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6739
6740         * Makefile.in (SFILES): Delete "regset.c".
6741         (COMMON_OBS): Delete "regset.o".
6742         * regset.c: Remove.
6743         * regset.h (regset_alloc): Delete prototype.
6744
6745 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6746
6747         * sparc-linux-tdep.c (sparc32_linux_gregset)
6748         (sparc32_linux_fpregset): New static regset structures.
6749         (sparc32_linux_init_abi): Drop dynamic regset allocations.
6750         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6751         'fpregset' fields.
6752         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6753         (sparc64_linux_fpregset): New static regset structures.
6754         (sparc64_linux_init_abi): Drop dynamic regset allocations.
6755         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6756         New static regset structures.
6757         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6758         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6759         New static regset structures.
6760         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6761         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6762         New static regset structures.
6763         (sparc64obsd_init_abi): Drop dynamic regset allocations.
6764         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6765         New static regset structures.
6766         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6767
6768 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6769
6770         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6771         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6772         register maps ("regmaps") from "*regset" to "*regmap".  Do this
6773         for all regmap types and variables.
6774         * sparc-linux-tdep.c (sparc32_linux_step_trap)
6775         (sparc32_linux_supply_core_gregset)
6776         (sparc32_linux_collect_core_gregset)
6777         (sparc32_linux_supply_core_fpregset)
6778         (sparc32_linux_collect_core_fpregset): Likewise.
6779         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6780         (sparc_gregmap, sparc_fpregmap): ... these.
6781         (sparc_supply_gregset, sparc_collect_gregset)
6782         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6783         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6784         (_initialize_sparc_nat): Rename regmaps.
6785         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6786         (sparc_gregmap, sparc_fpregmap): ... these.
6787         (sparc_supply_gregset, sparc_collect_gregset)
6788         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6789         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6790         Rename macros to...
6791         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6792         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6793         Likewise.
6794         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6795         Rename to...
6796         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6797         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6798         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6799         regmaps.
6800         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6801         (sparc32_bsd_fpregset): Rename to...
6802         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6803         (sparc32_bsd_fpregmap): ... these.
6804         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6805         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6806         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6807         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6808         (struct sparc_gregmap, struct sparc_fpregmap)
6809         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6810         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6811         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6812         (sparc32_supply_regset, sparc32_collect_gregset)
6813         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6814         prototypes.
6815         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6816         (sparc64_linux_ptrace_gregmap): ... this.
6817         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6818         (_initialize_sparc64_linux_nat): Rename regmaps.
6819         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6820         (sparc64_linux_core_gregmap): ... this.
6821         (sparc64_linux_supply_core_gregset)
6822         (sparc64_linux_collect_core_gregset)
6823         (sparc64_linux_supply_core_fpregset)
6824         (sparc64_linux_collect_core_fpregset): Rename regmaps.
6825         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6826         (sparc64_sol2_fpregset): Rename to...
6827         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6828         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6829         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6830         regmaps.
6831         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6832         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6833         (sparc64_bsd_fpregset): Rename to...
6834         (struct sparc_gregmap, sparc64_sol2_gregmap)
6835         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6836         (sparc64_bsd_fpregmap): ... these.
6837         (sparc64_supply_gregset, sparc64_collect_gregset)
6838         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6839         prototypes.
6840         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6841         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6842         (sparc64fbsd_gregmap): ... this.
6843         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6844         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6845         Rename regmaps.
6846         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6847         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6848         (sparc64nbsd_collect_fpregset): Likewise.
6849         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6850         (sparc64nbsd_gregmap): ... this.
6851         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6852         regmaps.
6853         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6854         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6855         (sparc64obsd_gregmap): ... this.
6856         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6857         regmaps.
6858         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6859         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6860         (sparc32nbsd_gregmap): ... this.
6861         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6862         regmaps.
6863
6864 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6865
6866         * score-tdep.c (score7_linux_gregset): New static regset
6867         structure.
6868         (score7_linux_regset_from_core_section): Remove dynamic regset
6869         allocation.
6870         (score_gdbarch_init): Drop allocation of tdep structure.
6871         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6872
6873 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6874
6875         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6876         regset structures.
6877         (am33_regset_from_core_section): Remove dynamic regset
6878         allocations.
6879
6880 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6881
6882         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6883         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6884         structures.
6885         (mips_linux_regset_from_core_section): Remove dynamic regset
6886         allocations.
6887         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6888         'gregset64', 'fpregset', and 'fpregset64'.
6889         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6890         deleted tdep fields.
6891
6892 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6893
6894         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6895         regset structures.
6896         (amd64_regset_from_core_section): Remove dynamic regset
6897         allocations.
6898         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6899         structure.
6900         (amd64obsd_regset_from_core_section): Remove dynamic regset
6901         allocation.
6902         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6903         Likewise.
6904         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6905         x86-common regset supply function.
6906         * i386-tdep.c (i386_collect_gregset): Make static.
6907         (i386_gregset): New global regset structure.
6908         (i386_fpregset, i386_xstateregset): New static regset structures.
6909         (i386_regset_from_core_section): Remove dynamic regset
6910         allocations.
6911         (i386_gdbarch_init): Remove initialization of tdep fields
6912         'gregset', 'fpregset', and 'xstateregset'.
6913         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6914         'fpregset', and 'xstateregset'.
6915         (i386_collect_gregset): Remove prototype.
6916         (i386_gregset): New declaration.
6917         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6918         structure.
6919         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6920         allocation.
6921
6922 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6923
6924         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6925         (arm_linux_vfpregset): New static regset structures.
6926         (arm_linux_regset_from_core_section): Remove dynamic allocation of
6927         regset structures.
6928         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6929         and 'vfpregset' fields.
6930
6931 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6932
6933         * aarch64-linux-tdep.c (aarch64_linux_gregset)
6934         (aarch64_linux_fpregset): New static regset structures.
6935         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6936         of regset structures.
6937         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6938         'fpregset' fields.
6939
6940 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6941
6942         * regset.h (struct regset): Remove gdbarch field.
6943         * regset.c (regset_alloc): Drop initialization of gdbarch field.
6944         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6945         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6946         Likewise.
6947         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6948         (ppc32_linux_fpregset, ppc32_linux_vrregset)
6949         (ppc32_linux_vsxregset): Likewise.
6950         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6951         via the regcache instead of the regset.
6952         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6953         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6954         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6955         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6956         Likewise.
6957
6958 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6959
6960         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6961         Constify structures.
6962         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6963         (alphanbsd_aout_gregset): Likewise.
6964         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6965         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6966         Likewise.
6967         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6968         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6969         Likewise.
6970         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6971         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6972         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6973         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6974         * m88k-tdep.c (m88k_gregset): Likewise.
6975         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6976         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6977         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6978         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6979         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6980         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6981         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6982         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6983         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6984         Likewise.
6985         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6986         * sh-tdep.h (sh_corefile_gregset): Likewise.
6987         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6988         * vax-tdep.c (vax_gregset): Likewise.
6989
6990 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6991
6992         Fix TLS access for -static -pthread.
6993         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6994         (try_thread_db_load_1): Initialize it.
6995         (thread_db_get_thread_local_address): Call it if LM is zero.
6996         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6997         * target.h (struct target_ops) (to_get_thread_local_address): Add
6998         load_module_addr comment.
6999
7000 2014-05-21  Pedro Alves  <palves@redhat.com>
7001
7002         * dcache.c (dcache_read_memory_partial): If reading the cache line
7003         fails, fallback to reading just the memory the caller wanted.
7004
7005 2014-05-20  Doug Evans  <dje@google.com>
7006
7007         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7008         instead of get_current_arch.
7009
7010 2014-05-20  Pedro Alves  <palves@redhat.com>
7011
7012         * NEWS: Mention that compare-sections now works with all targets.
7013
7014         * remote.c (PACKET_qCRC): New enum value.
7015         (remote_verify_memory): Don't send qCRC if the target has no
7016         execution.  Use packet_support/packet_ok.  If the target doesn't
7017         support the qCRC packet, fallback to a deep memory copy.
7018         (compare_sections_command): Say "target image" instead of "remote
7019         executable".
7020         (_initialize_remote): Add PACKET_qCRC to the list of config
7021         packets that have no associated command.  Extend comment.
7022         * target.c (simple_verify_memory, default_verify_memory): New
7023         function.
7024         * target.h (struct target_ops) <to_verify_memory>: Default to
7025         default_verify_memory.
7026         (simple_verify_memory): New declaration.
7027         * target-delegates.c: Regenerate.
7028
7029 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
7030
7031         * record-btrace.c (record_btrace_step_thread): Check for empty history.
7032
7033 2014-05-20  Hui Zhu  <hui@codesourcery.com>
7034             Yao Qi  <yao@codesourcery.com>
7035
7036         PR backtrace/16558
7037         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7038         and change address of sp and pc.
7039
7040 2014-05-19  Tom Tromey  <tromey@redhat.com>
7041
7042         * gdbtypes.c (rank_function): Use XNEWVEC.
7043         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7044
7045 2014-05-19  Doug Evans  <dje@google.com>
7046
7047         * dwarf2read.c (build_type_psymtabs_1): Renamed from
7048         build_type_unit_groups and moved closer to only caller.  Remove
7049         arguments.  All references updated.  Remove outdated .gdb_index
7050         comment.
7051         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7052         build_type_psymtabs_1.
7053
7054 2014-05-19  Doug Evans  <dje@google.com>
7055
7056         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7057         n_type_unit_groups, all_type_unit_groups.  All uses removed.
7058         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7059         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
7060         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
7061         (add_type_unit_group_to_table): Delete.
7062
7063 2014-05-19  Doug Evans  <dje@google.com>
7064
7065         * eval.c (evaluate_subexp_standard): Add some comments.
7066
7067 2014-05-17  Doug Evans  <xdje42@gmail.com>
7068
7069         * progspace.c (remove_program_space): Delete, unused.
7070         * progspace.h (remove_program_space): Ditto.
7071
7072 2014-05-17  Doug Evans  <xdje42@gmail.com>
7073
7074         * inferior.c (prune_inferiors): Fix comment.
7075         (remove_inferior_command): Call prune_program_spaces.
7076
7077 2014-05-16  Doug Evans  <dje@google.com>
7078
7079         New command line option -D.
7080         * NEWS: Mention it.
7081         * main.c (set_gdb_data_directory): New function.
7082         (captured_main): Recognize -D.  Flag error for --data-directory "".
7083         Call set_gdb_data_directory.
7084         (print_gdb_help): Print --data-directory, -D.
7085         * main.h (set_gdb_data_directory): Declare.
7086         * top.c (staged_gdb_datadir): New static global.
7087         (set_gdb_datadir): Call set_gdb_data_directory
7088         (show_gdb_datadir): New function.
7089         (init_main): Update init of data-directory parameter.
7090
7091 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
7092
7093         Import the "dirfd" gnulib module.
7094         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7095         * gnulib/aclocal.m4: Update.
7096         * gnulib/config.in: Update.
7097         * gnulib/configure: Update.
7098         * gnulib/import/Makefile.am: Update.
7099         * gnulib/import/Makefile.in: Update.
7100         * gnulib/import/dirfd.c: New.
7101         * gnulib/import/m4/dirfd.m4: New.
7102         * gnulib/import/m4/gnulib-cache.m4: Update.
7103         * gnulib/import/m4/gnulib-comp.m4: Update.
7104
7105 2014-05-16  Pierre Muller  <muller@sourceware.org>
7106             Yao Qi  <yao@codesourcery.com>
7107
7108         * valprint.c (print_wchar): Move the code on checking whether
7109         W is a printable wide char to the default branch of switch
7110         statement below.  Call wchar_printable instead of gdb_iswprint.
7111
7112 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
7113
7114         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7115         ldr.w and ldrd instructions.
7116
7117 2014-05-15  Doug Evans  <dje@google.com>
7118
7119         * dwarf2read.c (read_structure_type): Delete outdated comments.
7120
7121 2014-05-14  Tom Tromey  <tromey@redhat.com>
7122
7123         * macrocmd.c (print_macro_definition): Reindent.
7124
7125 2014-05-13  Doug Evans  <xdje42@gmail.com>
7126
7127         * python/py-cmd.c (cmdpy_completer): Add comment.
7128         (completers): Make const.
7129
7130 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
7131
7132         * infrun.c (resume): Remove should_resume (unused).  Move up
7133         declaration of resume_ptid.
7134
7135 2014-05-13  Tom Tromey  <tromey@redhat.com>
7136
7137         * language.h (unop_type_check): Remove.
7138         (binop_type_check): Don't declare.
7139
7140 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7141
7142         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7143         call to regcache_raw_collect.
7144
7145 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7146
7147         * mi/mi-console.c (mi_console_raw_packet): Use the value from
7148         mi_console->quote as the quoting character.
7149
7150 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7151
7152         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7153
7154 2014-04-29  Tom Tromey  <tromey@redhat.com>
7155
7156         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7157         "show debug varobj".
7158
7159 2014-05-07  Kyle McMartin  <kyle@redhat.com>
7160
7161         Pushed by Joel Brobecker  <brobecker@adacore.com>.
7162         * aarch64-tdep.c (aarch64_software_single_step): New function.
7163         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7164         with aarch64_software_single_step.
7165
7166 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
7167
7168         GDB 7.7.1 released.
7169
7170 2014-05-05  Keith Seitz  <keiths@redhat.com>
7171
7172         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7173         variable or history value is successfully parsed.
7174
7175 2014-05-05  Yao Qi  <yao@codesourcery.com>
7176             Pedro Alves  <palves@redhat.com>
7177
7178         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7179         address of blocks that intersects the requested range.  Trim
7180         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7181         sections.
7182         * ctf.c (ctf_xfer_partial): Likewise.
7183
7184 2014-05-05  Yao Qi  <yao@codesourcery.com>
7185
7186         * printcmd.c (display_command): Remove the check to
7187         target_has_execution.
7188
7189 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
7190
7191         * ppcobsd-nat.c: Include "obsd-nat.h".
7192         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7193         add_target.
7194         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7195
7196 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
7197
7198         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7199         and 16-bit signed and unsigned arguments.  Update comment.
7200         (stap_parse_probe_arguments): Extend code to handle such
7201         arguments.  Use warning instead of complaint to notify about
7202         unrecognized bitness.
7203
7204 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
7205
7206         PR breakpoints/16889
7207         * stap-probe.c (stap_parse_probe_arguments): Simplify
7208         check for non-prefixed probes (i.e., probes whose
7209         arguments do not start with "N@").  Always set the
7210         argument type to a sane value.
7211
7212 2014-05-01  David Taylor  <dtaylor@emc.com>
7213
7214         * remote.c (compare_sections_command): Add -r option to compare
7215         all loadable read-only sections.
7216
7217 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
7218
7219         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7220         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7221         Update all callers.
7222         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7223         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7224         Remove unused CORE_ADDR argument.  Update all callers.
7225
7226 2014-04-29  Pedro Alves  <palves@redhat.com>
7227
7228         * remote.c (struct packet_config) <detect>: Extend comment.
7229         (add_packet_config_cmd): Don't set the config's detect or support
7230         fields here.
7231         (init_all_packet_configs): Also initialize the config's 'detect'
7232         field.
7233         (reset_all_packet_configs_support): New function.
7234         (remote_open_1): Call reset_all_packet_configs_support instead of
7235         init_all_packet_configs.
7236         (_initialize_remote): Initialize all packet configs.  Assert that
7237         all packets have an associated command, except a few known
7238         outliers.
7239
7240 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7241
7242         * dwarf2read.c (read_subrange_type): Handle dynamic
7243         DW_AT_lower_bound attributes.
7244
7245 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7246
7247         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7248         dynamic bounds before computing its upper bound.
7249         (ada_discrete_type_low_bound): Same as above with the lower bound.
7250
7251 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7252
7253         * dwarf2read.c (is_dynamic_type): Return true for dynamic
7254         range types.  Adjust the array handling implementation to
7255         take advantage of this change.
7256         (resolve_dynamic_range): New function, mostly extracted from
7257         resolve_dynamic_bounds.
7258         (resolve_dynamic_array): New function, mostly extracted from
7259         resolve_dynamic_bounds.
7260         (resolve_dynamic_bounds): Delete.
7261         (resolve_dynamic_type): Reimplement.  Add handling of
7262         TYPE_CODE_RANGE types.
7263
7264 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7265
7266         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7267         handling of parallel ___XA types.
7268
7269 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7270
7271         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7272         unnecessary second call to static_unwrap_type.
7273
7274 2014-04-27  Hui Zhu  <hui@codesourcery.com>
7275
7276         * stack.c (print_frame_info): Call do_gdb_disassembly with
7277         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7278
7279 2014-04-26  Doug Evans  <xdje42@gmail.com>
7280
7281         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7282
7283 2014-04-25  Pedro Alves  <palves@redhat.com>
7284
7285         PR server/16255
7286         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7287         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
7288         and newline from built string.
7289         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7290         (linux_ptrace_attach_fail_reason): ... this.
7291         * linux-nat.c (linux_nat_attach): Adjust to use
7292         linux_ptrace_attach_fail_reason.
7293
7294 2014-04-25  Pedro Alves  <palves@redhat.com>
7295
7296         * remote.c (struct remote_state): Remove multi_process_aware,
7297         non_stop_aware, cond_tracepoints, cond_breakpoints,
7298         breakpoint_commands, fast_tracepoints, static_tracepoints,
7299         install_in_trace, disconnected_tracing,
7300         enable_disable_tracepoints, string_tracing, and
7301         augmented_libraries_svr4_read fields.
7302         (remote_multi_process_p): Move further below in the file.
7303         (struct packet_config): Add comments.
7304         (update_packet_config): Delete function.
7305         (show_packet_config_cmd): Use packet_config_support.
7306         (add_packet_config_cmd): Use NULL as set callback.
7307         (packet_ok): "set remote foo-packet"-style commands no longer
7308         change config->supported -- adjust.
7309         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7310         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7311         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7312         (PACKET_QNonStop, PACKET_multiprocess_feature)
7313         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7314         (PACKET_DisconnectedTracing_feature)
7315         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7316         (set_remote_protocol_packet_cmd): Delete function.
7317         (packet_config_support, packet_support): New functions.
7318         (set_remote_protocol_Z_packet_cmd): Don't call
7319         update_packet_config.
7320         (remote_query_attached, remote_pass_signals)
7321         (remote_program_signals, remote_threads_info)
7322         (remote_threads_extra_info, remote_start_remote): Use
7323         packet_support.
7324         (remote_start_remote): Use packet_config_support and
7325         packet_support.
7326         (init_all_packet_configs): Set all packets to unknown support,
7327         instead of calling update_packet_config.
7328         (remote_check_symbols): Use packet_support.
7329         (remote_supported_packet): Unconditionally set the packet config's
7330         support status.
7331         (remote_multi_process_feature, remote_non_stop_feature)
7332         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7333         (remote_breakpoint_commands_feature)
7334         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7335         (remote_install_in_trace_feature)
7336         (remote_disconnected_tracing_feature)
7337         (remote_enable_disable_tracepoint_feature)
7338         (remote_string_tracing_feature)
7339         (remote_augmented_libraries_svr4_read_feature): Delete functions.
7340         (remote_protocol_features): Adjust to use remote_supported_packet
7341         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7342         "ConditionalTracepoints", "ConditionalBreakpoints",
7343         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7344         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7345         "EnableDisableTracepoints", and "tracenz".
7346         (remote_query_supported): Use packet_support.
7347         (remote_open_1): Adjust.
7348         (extended_remote_attach_1): Use packet_support.  Switch on the
7349         result of packet_ok instead of checking whether the packet ended
7350         up disabled.
7351         (remote_vcont_resume): Use packet_support.
7352         (remote_resume, remote_stop_ns, fetch_register_using_p)
7353         (remote_prepare_to_store, store_register_using_P)
7354         (check_binary_download, remote_write_bytes): Use packet_support.
7355         (remote_vkill): Use packet_support.  Switch on the result of
7356         packet_ok instead of checking whether the packet ended up
7357         disabled.
7358         (extended_remote_supports_disable_randomization): Use
7359         packet_support.
7360         (extended_remote_run): Switch on the result of packet_ok instead
7361         of checking whether the packet ended up disabled.
7362         (remote_insert_breakpoint, remote_remove_breakpoint)
7363         (remote_insert_watchpoint, remote_remove_watchpoint)
7364         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7365         packet_support.
7366         (remote_search_memory): Use packet_config_support.
7367         (remote_get_thread_local_address, remote_get_tib_address)
7368         (remote_hostio_send_command, remote_can_execute_reverse): Use
7369         packet_support.
7370         (remote_supports_cond_tracepoints)
7371         (remote_supports_cond_breakpoints)
7372         (remote_supports_fast_tracepoints)
7373         (remote_supports_static_tracepoints)
7374         (remote_supports_install_in_trace)
7375         (remote_supports_enable_disable_tracepoint)
7376         (remote_supports_string_tracing)
7377         (remote_can_run_breakpoint_commands): Rewrite, checking whether
7378         the packet config says the feature is enabled or disabled.
7379         (remote_download_tracepoint, remote_trace_set_readonly_regions)
7380         (remote_get_trace_status): Use packet_support.
7381         (remote_set_disconnected_tracing): Adjust to check whether the
7382         feature is enabled with packet_support.
7383         (remote_set_trace_buffer_size, remote_use_agent)
7384         (remote_can_use_agent, remote_supports_btrace): Use
7385         packet_support.
7386         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7387         Use packet_config_support.
7388         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7389         the packet config says the feature is enabled or disabled.
7390         (set_range_stepping): Use packet_support.
7391
7392 2014-04-25  Tom Tromey  <tromey@redhat.com>
7393
7394         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7395         argument.
7396
7397 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
7398
7399         * NEWS: Mention support for C99 variable length arrays.
7400
7401 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
7402
7403         * ada-lang.c (standard_exc): Expand introductory comment.
7404
7405 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
7406             Walfred Tedeschi  <walfred.tedeschi@intel.com>
7407
7408         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7409         AVX512 registers.
7410         (amd64_linux_read_description): Add code to handle AVX512 xstate
7411         mask and return respective tdesc.
7412         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7413         and features/i386/x32-avx512-linux.c.
7414         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7415         (amd64_linux_core_read_description): Add code to handle AVX512
7416         xstate mask and return respective tdesc.
7417         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7418         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7419         calculation.
7420         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7421         (tdesc_amd64_avx512_linux): New prototype.
7422         (tdesc_x32_avx512_linux): Likewise.
7423         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7424         features/i386/x32-avx512.c.
7425         (amd64_ymm_avx512_names): New register names for pseudo
7426         registers YMM16-31.
7427         (amd64_ymmh_avx512_names): New register names for raw registers
7428         YMMH16-31.
7429         (amd64_k_names): New register names for K registers.
7430         (amd64_zmmh_names): New register names for ZMM raw registers.
7431         (amd64_zmm_names): New registers names for ZMM pseudo registers.
7432         (amd64_xmm_avx512_names): New register names for XMM16-31
7433         registers.
7434         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7435         registers.
7436         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7437         if feature is present.
7438         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7439         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7440         (AMD64_NUM_REGS): Adjust to new number of registers.
7441         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7442         registers supplied via XSTATE by AVX512 registers.
7443         (i386_linux_read_description): Add case for AVX512.
7444         * i386-linux-tdep.c: Include i386-avx512-linux.c.
7445         (i386_linux_gregset_reg_offset): Add AVX512 registers.
7446         (i386_linux_core_read_description): Add case for AVX512.
7447         (i386_linux_init_abi): Install supported register note section
7448         for AVX512.
7449         (_initialize_i386_linux_tdep): Add call to tdesc init function for
7450         AVX512.
7451         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7452         registers to be number of zmm7h + 1.
7453         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7454         * i386-tdep.c: Include features/i386/i386-avx512.c.
7455         (i386_zmm_names): Add ZMM pseudo register names array.
7456         (i386_zmmh_names): Add ZMM raw register names array.
7457         (i386_k_names): Add K raw register names array.
7458         (num_lower_zmm_regs): Add constant for the number of lower ZMM
7459         registers. AVX512 has 16 more ZMM registers than there are YMM
7460         registers.
7461         (i386_zmmh_regnum_p): Add function to look up register number of
7462         ZMM raw registers.
7463         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7464         (i386_k_regnum_p): Likewise for K raw registers.
7465         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7466         registers added by AVX512.
7467         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7468         registers added by AVX512.
7469         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7470         added by AVX512.
7471         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7472         (i386_pseudo_register_name): Add ZMM pseudo registers.
7473         (i386_zmm_type): Construct and return vector registers type for ZMM
7474         registers.
7475         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7476         ZMM0-31 pseudo registers and K registers.
7477         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7478         and YMM16-31 registers from register cache.
7479         (i386_pseudo_register_write): Add code to write  K, ZMM and
7480         YMM16-31 registers.
7481         (i386_register_reggroup_p): Add code to include/exclude AVX512
7482         registers in/from respective register groups.
7483         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7484         registers if feature is present in xcr0.
7485         (i386_gdbarch_init): Add code to initialize AVX512 feature
7486         variables in tdep structure, wire in pseudo registers and call
7487         initialize_tdesc_i386_avx512.
7488         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7489         variables.
7490         (i386_regnum): Add AVX512 registers.
7491         (I386_SSE_NUM_REGS): New define for number of SSE registers.
7492         (I386_AVX_NUM_REGS): Likewise for AVX registers.
7493         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7494         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7495         512 bits wide.
7496         (i386_xmm_avx512_regnum_p): New prototype for register look up.
7497         (i386_ymm_avx512_regnum_p): Likewise.
7498         (i386_k_regnum_p): Likewise.
7499         (i386_zmm_regnum_p): Likewise.
7500         (i386_zmmh_regnum_p): Likewise.
7501         * i387-tdep.c : Update year in copyright notice.
7502         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7503         XSAVE buffer.
7504         (XSAVE_YMM_AVX512_ADDR): New macro.
7505         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7506         XSAVE buffer.
7507         (XSAVE_XMM_AVX512_ADDR): New macro.
7508         (xsave_avx512_k_offset): New table for K register offsets in
7509         XSAVE buffer.
7510         (XSAVE_AVX512_K_ADDR): New macro.
7511         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7512         in XSAVE buffer.
7513         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7514         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7515         buffer.
7516         (i387_collect_xsave): Add code to collect AVX512 registers from
7517         XSAVE buffer.
7518         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7519         of XMM16-31 registers.
7520         (I387_NUM_K_REGS): New define for number of K registers.
7521         (I387_K0_REGNUM): New define for K0 register number.
7522         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7523         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7524         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7525         registers.
7526         (I387_YMM16H_REGNUM): New define for YMM16H register number.
7527         (I387_XMM16_REGNUM): New define for XMM16 register number.
7528         (I387_YMM0_REGNUM): New define for YMM0 register number.
7529         (I387_KEND_REGNUM): New define for last K register number.
7530         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7531         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7532         number.
7533         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7534         number.
7535         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7536         size.
7537         * features/Makefile: Add AVX512 related files.
7538         * features/i386/32bit-avx512.xml: New file.
7539         * features/i386/64bit-avx512.xml: Likewise.
7540         * features/i386/amd64-avx512-linux.c: Likewise.
7541         * features/i386/amd64-avx512-linux.xml: Likewise.
7542         * features/i386/amd64-avx512.c: Likewise.
7543         * features/i386/amd64-avx512.xml: Likewise.
7544         * features/i386/i386-avx512-linux.c: Likewise.
7545         * features/i386/i386-avx512-linux.xml: Likewise.
7546         * features/i386/i386-avx512.c: Likewise.
7547         * features/i386/i386-avx512.xml: Likewise.
7548         * features/i386/x32-avx512-linux.c: Likewise.
7549         * features/i386/x32-avx512-linux.xml: Likewise.
7550         * features/i386/x32-avx512.c: Likewise.
7551         * features/i386/x32-avx512.xml: Likewise.
7552         * regformats/i386/amd64-avx512-linux.dat: New file.
7553         * regformats/i386/amd64-avx512.dat: Likewise.
7554         * regformats/i386/i386-avx512-linux.dat: Likewise.
7555         * regformats/i386/i386-avx512.dat: Likewise.
7556         * regformats/i386/x32-avx512-linux.dat: Likewise.
7557         * regformats/i386/x32-avx512.dat: Likewise.
7558         * NEWS: Add note about new support for AVX512.
7559
7560
7561 2014-04-23  Pedro Alves  <palves@redhat.com>
7562
7563         * breakpoint.c (insert_bp_location): Tolerate errors if the
7564         breakpoint is set in a user-loaded objfile.
7565         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
7566         location is marked shlib_disabled.  If the breakpoint is set in a
7567         user-loaded objfile is a GDB-side memory breakpoint, validate it
7568         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
7569         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
7570         flag.
7571         * mem-break.c (memory_validate_breakpoint): New function.
7572         * objfiles.c (userloaded_objfile_contains_address_p): New
7573         function.
7574         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7575         * target.h (memory_validate_breakpoint): New declaration.
7576
7577 2014-04-23  Pedro Alves  <palves@redhat.com>
7578
7579         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7580         the breakpoint is set in a shared library, only suppress
7581         errors for software breakpoints, not hardware breakpoints.
7582
7583 2014-04-22  Pedro Alves  <palves@redhat.com>
7584
7585         * infrun.c (schedlock_applies): New function, factored out from
7586         find_thread_needs_step_over.
7587         (find_thread_needs_step_over): Use it.
7588         (switch_back_to_stepped_thread): Always clear trap_expected if the
7589         step over is finished.  Return early if scheduler locking applies.
7590         Look for the stepping thread and a potential step-over thread with
7591         a single loop.
7592         (currently_stepping_or_nexting_callback): Delete.
7593
7594 2014-04-22  Nick Clifton  <nickc@redhat.com>
7595
7596         * NEWS: Mention that ARM sim now supports tracing.
7597
7598 2014-04-22  Yao Qi  <yao@codesourcery.com>
7599
7600         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7601         to ...
7602         * tracefile.c (tracefile_fetch_registers): ... it.  New
7603         function.
7604         * tracefile.h (tracefile_fetch_registers): Declare.
7605         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
7606         tracefile_fetch_registers.
7607
7608 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
7609
7610         PR gdb/14018
7611         * windows-nat.c (thread_rec): Don't display a warning when
7612         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
7613         fails for any reason, set th->suspended to -1, so that we don't
7614         try to resume such a thread.  Also, don't return NULL in these
7615         cases, to avoid completely ruin the session due to "PC register is
7616         not available" error.
7617         (do_windows_fetch_inferior_registers): Check errors in
7618         GetThreadContext call.
7619         (windows_continue): Accept an additional argument KILLED; if not
7620         zero, ignore errors in the SetThreadContext call, since the
7621         inferior was killed and is shutting down.
7622         (windows_resume, get_windows_debug_event)
7623         (windows_create_inferior, windows_mourn_inferior)
7624         (windows_kill_inferior): All callers of windows_continue changed
7625         to adjust to its new calling sequence.
7626
7627 2014-04-19  Yao Qi  <yao@codesourcery.com>
7628
7629         * ctf.c (ctf_open): Call post_create_inferior.
7630
7631 2014-04-19  Yao Qi  <yao@codesourcery.com>
7632
7633         * ctf.c (handle_id): New static variable.
7634         (ctf_open_dir): Get handle_id from bt_context_add_trace return
7635         value.  Get the declaration of event "register" and get length
7636         of field "contents".
7637
7638 2014-04-19  Yao Qi  <yao@codesourcery.com>
7639
7640         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7641
7642 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
7643
7644         * valops.c (oload_method_static): Remove unnecessary argument
7645         METHOD.  Update all callers.
7646
7647 2014-04-18  Pedro alves  <palves@redhat.com>
7648             Tom Tromey  <tromey@redhat.com>
7649
7650         PR backtrace/15558
7651         * frame.c (get_prev_frame_1): Rename to ...
7652         (get_prev_frame_always): ... this, and make extern.  Adjust.
7653         (skip_artificial_frames): Use get_prev_frame_always.
7654         (frame_unwind_caller_id, frame_pop, get_prev_frame)
7655         (get_frame_unwind_stop_reason): Adjust to rename.
7656         * frame.h (get_prev_frame_always): Declare.
7657         * inline-frame.c: Include frame.h.
7658         (inline_frame_this_id): Use get_prev_frame_always.
7659
7660 2014-04-18  Tristan Gingold  <gingold@adacore.com>
7661
7662         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7663         code by using bfd_mach_o_get_base_address.
7664
7665 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7666
7667         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7668         (spu_ax_pseudo_register_collect): New function.
7669         (spu_ax_pseudo_register_push_stack): Likewise.
7670         (spu_dwarf_reg_to_regnum): Likewise.
7671         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
7672
7673 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7674
7675         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7676         Replace FRAME argument with FRAME_ID.
7677         * gdbarch.c, gdbarch.h: Regenerate.
7678         * findvar.c (default_value_from_register): Add GDBARCH argument;
7679         replace FRAME by FRAME_ID.  No longer call get_frame_id.
7680         (value_from_register): Update call to gdbarch_value_from_register.
7681         * value.h (default_value_from_register): Update prototype.
7682         * s390-linux-tdep.c (s390_value_from_register): Update interface
7683         and call to default_value_from_register.
7684         * spu-tdep.c (spu_value_from_register): Likewise.
7685
7686         * findvar.c (address_from_register): Remove TYPE argument.
7687         Do not call value_from_register; use gdbarch_value_from_register
7688         with null_frame_id instead.
7689         * value.h (address_from_register): Update prototype.
7690         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7691         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7692         address_from_register interface change.
7693
7694 2014-04-17  Yao Qi  <yao@codesourcery.com>
7695
7696         * gdbtypes.h: Update comments to link to types and macros'
7697         definitions.
7698
7699 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
7700
7701         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7702
7703 2014-04-16  Keith Seitz  <keiths@redhat.com>
7704
7705         PR gdb/15827
7706         * dwarf2read.c (skip_one_die): Check that all relative-offset
7707         sibling DIEs fall within range of the current reader's buffer.
7708         (read_partial_die): Likewise.
7709
7710 2014-04-16  Keith Seitz  <keiths@redhat.com>
7711
7712         PR c++/16597
7713         * cp-namespace.c (lookup_symbol_file): If the type name of
7714         `this' is NULL, return immediately.
7715
7716 2014-04-14  Keith Seitz  <keiths@redhat.com>
7717
7718         PR c++/16253
7719         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7720         from symbol_matches_domain in symtab.c. All local callers
7721         of symbol_matches_domain updated.
7722         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7723         search STRUCT_DOMAIN.
7724         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7725         independently.  standard_lookup will do that automatically.
7726         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7727         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7728         (cp_lookup_symbol_in_namespace): Likewise.
7729         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7730         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7731         may return a STRUCT_DOMAIN match.
7732         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7733         * cp-support.c: Include language.h.
7734         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7735         VAR_DOMAIN.
7736         * psymtab.c (match_partial_symbol): Compare the requested
7737         domain with the symbol's domain directly.
7738         (lookup_partial_symbol): Likewise.
7739         * symtab.c (lookup_symbol_in_language): Explain when/why
7740         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7741         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7742         appropriate languages.
7743         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7744         and moved to ada-lang.c
7745         (lookup_block_symbol): Explain that this function only returns
7746         symbol matching the requested DOMAIN.
7747         Compare the requested domain with the symbol's domain directly.
7748         (iterate_over_symbols): Compare the requested domain with the
7749         symbol's domain directly.
7750         * symtab.h (symbol_matches_domain): Remove.
7751
7752 2014-04-14  Tom Tromey  <tromey@redhat.com>
7753
7754         PR c++/15246:
7755         * c-exp.y (type_aggregate_p): New function.
7756         (qualified_name, classify_inner_name): Use it.
7757         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7758         and TYPE_TARGET_TYPE of an enum type.
7759         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7760         an enum type.
7761         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7762         handle TYPE_DECLARED_CLASS.
7763         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7764         types.
7765         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7766         * valops.c (enum_constant_from_type): New function.
7767         (value_aggregate_elt): Use it.
7768         * cp-namespace.c (cp_lookup_nested_symbol): Handle
7769         TYPE_CODE_ENUM.
7770
7771 2014-04-14  Tom Tromey  <tromey@redhat.com>
7772
7773         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7774         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7775         const.
7776         * value.h (value_aggregate_elt): Update.
7777
7778 2014-04-14  Tom Tromey  <tromey@redhat.com>
7779
7780         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7781
7782 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7783
7784         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7785         (evaluate_subexp_standard): Pass noside argument.
7786         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7787         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7788         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7789         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7790         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7791
7792 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7793
7794         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7795         points to a constant blob.
7796
7797 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7798
7799         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7800         property and store it as the high bound and flag the range accordingly.
7801         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7802         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7803         * gdbtypes.h (enum range_flags): New enum.
7804         (struct range_bounds): Add flags member.
7805
7806 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7807
7808         * c-typeprint.c (c_type_print_varspec_suffix): Added
7809         check for not yet resolved high bound. If unresolved, print
7810         "variable length" string to the console instead of random
7811         length.
7812
7813 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7814
7815         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7816         value.
7817         (ada_template_to_fixed_record_type_1): Likewise.
7818         (ada_to_fixed_type_1): Likewise.
7819         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7820         (cp_print_value): Likewise.
7821         * d-valprint.c (dynamic_array_type): Likewise.
7822         * findvar.c (address_of_variable): Likewise.
7823         * jv-valprint.c (java_value_print): Likewise.
7824         * valops.c (value_ind): Likewise.
7825         * value.c (coerce_ref): Likewise.
7826
7827 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7828
7829         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7830         value and retrieve the dynamic type size.
7831
7832 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7833
7834         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7835         passed to sizeof is dynamic evaluate the argument to compute the length.
7836
7837 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7838             Joel Brobecker  <brobecker@adacore.com>
7839
7840         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7841         (dwarf2_evaluate_property): New function.
7842         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7843         * dwarf2read.c (attr_to_dynamic_prop): New function.
7844         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7845         attribute.
7846         * gdbtypes.c: Include dwarf2loc.h.
7847         (is_dynamic_type): New function.
7848         (resolve_dynamic_type): New function.
7849         (resolve_dynamic_bounds): New function.
7850         (get_type_length): New function.
7851         (check_typedef): Use get_type_length to compute type length.
7852         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7853         (TYPE_LOW_BOUND_KIND): New macro.
7854         (is_dynamic_type): New function prototype.
7855         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7856         to resolve dynamic properties of the type. Update comment.
7857         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7858
7859 2014-04-14  Richard Henderson  <rth@redhat.com>
7860
7861         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7862
7863 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
7864             Doug Evans  <xdje42@gmail.com>
7865
7866         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7867         dereference TYPE_CODE_REF values.
7868
7869 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
7870
7871         Revert the following changes due to regressions:
7872
7873         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7874         (dwarf2_evaluate_property): New function.
7875         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7876         * dwarf2read.c (attr_to_dynamic_prop): New function.
7877         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7878         attribute.
7879         * gdbtypes.c: Include dwarf2loc.h.
7880         (is_dynamic_type): New function.
7881         (resolve_dynamic_type): New function.
7882         (resolve_dynamic_bounds): New function.
7883         (get_type_length): New function.
7884         (check_typedef): Use get_type_length to compute type length.
7885         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7886         (TYPE_LOW_BOUND_KIND): New macro.
7887         (is_dynamic_type): New function prototype.
7888         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7889         to resolve dynamic properties of the type. Update comment.
7890         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7891
7892         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7893         passed to sizeof is dynamic evaluate the argument to compute the length.
7894
7895         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7896         value and retrieve the dynamic type size.
7897
7898         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7899         (ada_template_to_fixed_record_type_1): Likewise.
7900         (ada_to_fixed_type_1): Likewise.
7901         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7902         (cp_print_value): Likewise.
7903         * d-valprint.c (dynamic_array_type): Likewise.
7904         * eval.c (evaluate_subexp_with_coercion): Likewise.
7905         * findvar.c (address_of_variable): Likewise.
7906         * jv-valprint.c (java_value_print): Likewise.
7907         * valops.c (value_ind): Likewise.
7908         * value.c (coerce_ref): Likewise.
7909
7910         * c-typeprint.c (c_type_print_varspec_suffix): Added
7911         check for not yet resolved high bound. If unresolved, print
7912         "variable length" string to the console instead of random
7913         length.
7914
7915         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7916         property and store it as the high bound and flag the range accordingly.
7917         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7918         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7919         * gdbtypes.h (enum range_flags): New enum.
7920         (struct range_bounds): Add flags member.
7921
7922         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7923         points to a constant blob.
7924
7925         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7926         (evaluate_subexp_standard): Pass noside argument.
7927         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7928         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7929         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7930         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7931         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7932
7933 2014-04-11  Keith Seitz  <keiths@redhat.com>
7934
7935         PR c++/16675
7936         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7937         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7938         reference types.
7939
7940 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7941
7942         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7943         (evaluate_subexp_standard): Pass noside argument.
7944         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7945         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7946         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7947         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7948         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7949
7950 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7951
7952         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7953         points to a constant blob.
7954
7955 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7956
7957         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7958         property and store it as the high bound and flag the range accordingly.
7959         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7960         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7961         * gdbtypes.h (enum range_flags): New enum.
7962         (struct range_bounds): Add flags member.
7963
7964 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7965
7966         * c-typeprint.c (c_type_print_varspec_suffix): Added
7967         check for not yet resolved high bound. If unresolved, print
7968         "variable length" string to the console instead of random
7969         length.
7970
7971 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7972
7973         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7974         (ada_template_to_fixed_record_type_1): Likewise.
7975         (ada_to_fixed_type_1): Likewise.
7976         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7977         (cp_print_value): Likewise.
7978         * d-valprint.c (dynamic_array_type): Likewise.
7979         * eval.c (evaluate_subexp_with_coercion): Likewise.
7980         * findvar.c (address_of_variable): Likewise.
7981         * jv-valprint.c (java_value_print): Likewise.
7982         * valops.c (value_ind): Likewise.
7983         * value.c (coerce_ref): Likewise.
7984
7985 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7986
7987         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7988         value and retrieve the dynamic type size.
7989
7990 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7991
7992         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7993         passed to sizeof is dynamic evaluate the argument to compute the length.
7994
7995 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7996
7997         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7998         (dwarf2_evaluate_property): New function.
7999         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8000         * dwarf2read.c (attr_to_dynamic_prop): New function.
8001         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8002         attribute.
8003         * gdbtypes.c: Include dwarf2loc.h.
8004         (is_dynamic_type): New function.
8005         (resolve_dynamic_type): New function.
8006         (resolve_dynamic_bounds): New function.
8007         (get_type_length): New function.
8008         (check_typedef): Use get_type_length to compute type length.
8009         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8010         (TYPE_LOW_BOUND_KIND): New macro.
8011         (is_dynamic_type): New function prototype.
8012         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8013         to resolve dynamic properties of the type. Update comment.
8014         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8015
8016 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8017
8018         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8019         declaring high/low bounds and change uses accordingly. Call
8020         create_range_type instead of create_static_range_type.
8021         * gdbtypes.c (create_range_type): New function.
8022         (create_range_type): Convert bounds into struct bound_prop and pass
8023         them to create_range_type.
8024         * gdbtypes.h (struct bound_prop): New struct.
8025         (create_range_type): New function prototype.
8026         (struct range_bounds): Use struct bound_prop instead of LONGEST for
8027         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8028         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8029         part of the bound.
8030         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8031
8032 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8033
8034         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8035         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8036         * ada-lang.c: All uses of create_range_type updated.
8037         * coffread.c: All uses of create_range_type updated.
8038         * dwarf2read.c: All uses of create_range_type updated.
8039         * f-exp.y: All uses of create_range_type updated.
8040         * m2-valprint.c: All uses of create_range_type updated.
8041         * mdebugread.c: All uses of create_range_type updated.
8042         * stabsread.c: All uses of create_range_type updated.
8043         * valops.c: All uses of create_range_type updated.
8044         * valprint.c: All uses of create_range_type updated.
8045
8046 2014-04-10  Pedro Alves  <palves@redhat.com>
8047
8048         * breakpoint.c (single_step_breakpoints)
8049         (single_step_gdbarch): Move up in the file.
8050         (one_breakpoint_xfer_memory): New function, factored out from ...
8051         (breakpoint_xfer_memory): ... here.  Also process single-step
8052         breakpoints.
8053
8054 2014-04-09  Tristan Gingold  <gingold@adacore.com>
8055
8056         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8057         comments.
8058         (darwin_decode_exception_message): Free port only after use.
8059
8060 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
8061
8062         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8063         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8064         when setting the size of call_length.
8065
8066 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
8067
8068         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8069         dereference TYPE_CODE_REF values.
8070
8071 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
8072
8073         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8074         end of warning message.
8075
8076 2014-04-03  Doug Evans  <dje@google.com>
8077
8078         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8079         of stub_comp_unit_die, stub_comp_dir is non-NULL.
8080
8081 2014-04-02  Alan Modra  <amodra@gmail.com>
8082
8083         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8084         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
8085         (struct symbol_file_add_from_memory_args): Add size field.
8086         (find_vdso_size): New function.
8087         (add_vsyscall_page): Attempt to find vdso size.
8088
8089 2014-04-01  Doug Evans  <dje@google.com>
8090
8091         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8092
8093 2014-04-01  Tristan Gingold  <gingold@adacore.com>
8094
8095         * darwin-nat.c (darwin_encode_reply): Add prototype.
8096         (darwin_decode_exception_message): Reply to unknown inferiors.
8097         (darwin_decode_message): Handle message by id.  Ignore message
8098         to unknown inferior.
8099         (darwin_wait): Discard unknown messages, add debug trace.
8100
8101 2014-03-31  Doug Evans  <dje@google.com>
8102
8103         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8104         comp_dir_string.
8105
8106 2014-03-31  Doug Evans  <dje@google.com>
8107
8108         New option "set print symbol-loading".
8109         * NEWS: Mention it.
8110         * solib.c (solib_read_symbols): Only print symbol loading messages
8111         if requested.
8112         (solib_add): If symbol loading is in "brief" mode, notify user
8113         symbols are being loaded.
8114         (reload_shared_libraries_1): Ditto.
8115         * symfile.c (print_symbol_loading_off): New static global.
8116         (print_symbol_loading_brief): New static global.
8117         (print_symbol_loading_full): New static global.
8118         (print_symbol_loading_enums): New static global.
8119         (print_symbol_loading): New static global.
8120         (print_symbol_loading_p): New function.
8121         (symbol_file_add_with_addrs): Only print symbol loading messages
8122         if requested.
8123         (_initialize_symfile): Register "print symbol-loading" set/show
8124         command.
8125         * symfile.h (print_symbol_loading_p): Declare.
8126
8127 2014-03-30  Doug Evans  <xdje42@gmail.com>
8128
8129         * infrun.c (set_last_target_status): New function.
8130         (handle_inferior_event): Call it.
8131
8132 2014-03-30  Doug Evans  <xdje42@gmail.com>
8133
8134         * inferior.h (enum stop_kind): Improve comment.
8135
8136 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
8137
8138         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8139         a reference, strip the reference layer before calling
8140         the lang_ops value_has_mutated callback.
8141
8142 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8143
8144         Remove some globals from our parser.
8145         * language.c (unk_lang_parser): Add "struct parser_state"
8146         argument.
8147         * language.h (struct language_defn) <la_parser>: Likewise.
8148         * parse.c (expout, expout_size, expout_ptr): Remove variables.
8149         (initialize_expout): Add "struct parser_state" argument.
8150         Rewrite function to use the parser state.
8151         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8152         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8153         write_exp_elt_longcst, write_exp_elt_dblcst,
8154         write_exp_elt_decfloatcst, write_exp_elt_type,
8155         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8156         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8157         write_dollar_variable): Likewise.
8158         (parse_exp_in_context_1): Use parser state.
8159         (insert_type_address_space): Add "struct parser_state" argument.
8160         Use parser state.
8161         (increase_expout_size): New function.
8162         * parser-defs.h: Forward declare "struct language_defn" and
8163         "struct parser_state".
8164         (expout, expout_size, expout_ptr): Remove extern declarations.
8165         (parse_gdbarch, parse_language): Rewrite macro declarations to
8166         accept the parser state.
8167         (struct parser_state): New struct.
8168         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8169         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8170         write_exp_elt_decfloatcst, write_exp_elt_type,
8171         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8172         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8173         write_exp_msymbol, write_dollar_variable,
8174         mark_struct_expression, insert_type_address_space): Add "struct
8175         parser_state" argument.
8176         (increase_expout_size): New function.
8177         * utils.c (do_clear_parser_state): New function.
8178         (make_cleanup_clear_parser_state): Likewise.
8179         * utils.h (make_cleanup_clear_parser_state): New function
8180         prototype.
8181         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8182         Update calls to write_exp* in order to pass the parser state.
8183         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8184         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8185         (i386_stap_parse_special_token_three_arg_disp): Likewise.
8186         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8187         * stap-probe.c (stap_parse_register_operand): Likewise.
8188         (stap_parse_single_operand): Likewise.
8189         (stap_parse_argument_1): Likewise.
8190         (stap_parse_argument): Use parser state.
8191         * stap-probe.h: Include "parser-defs.h".
8192         (struct stap_parse_info) <pstate>: New field.
8193         * c-exp.y (parse_type): Rewrite to use parser state.
8194         (yyparse): Redefine to c_parse_internal.
8195         (pstate): New global variable.
8196         (parse_number): Add "struct parser_state" argument.
8197         (write_destructor_name): Likewise.
8198         (type_exp): Update calls to write_exp* and similars in order to
8199         use parser state.
8200         (exp1, exp, variable, qualified_name, space_identifier,
8201         typename, typebase): Likewise.
8202         (write_destructor_name, parse_number, lex_one_token,
8203         classify_name, classify_inner_name, c_parse): Add "struct
8204         parser_state" argument.  Update function to use parser state.
8205         * c-lang.h: Forward declare "struct parser_state".
8206         (c_parse): Add "struct parser_state" argument.
8207         * ada-exp.y (parse_type): Rewrite macro to use parser state.
8208         (yyparse): Redefine macro to ada_parse_internal.
8209         (pstate): New variable.
8210         (write_int, write_object_renaming, write_var_or_type,
8211         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8212         type_int, type_long, type_long_long, type_float, type_double,
8213         type_long_double, type_char, type_boolean, type_system_address):
8214         Add "struct parser_state" argument.
8215         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8216         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8217         var_or_type, aggregate, aggregate_component_list,
8218         positional_list, others, component_group,
8219         component_associations): Update calls to write_exp* and similar
8220         functions in order to use parser state.
8221         (ada_parse, write_var_from_sym, write_int,
8222         write_exp_op_with_string, write_object_renaming,
8223         find_primitive_type, write_selectors, write_ambiguous_var,
8224         write_var_or_type, write_name_assoc, type_int, type_long,
8225         type_long_long, type_float, type_double, type_long_double,
8226         type_char, type_boolean, type_system_address): Add "struct
8227         parser_state" argument.  Adjust function to use parser state.
8228         * ada-lang.c (parse): Likewise.
8229         * ada-lang.h: Forward declare "struct parser_state".
8230         (ada_parse): Add "struct parser_state" argument.
8231         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
8232         calls to both functions.
8233         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8234         parser state.
8235         (yyparse): Redefine macro to f_parse_internal.
8236         (pstate): New variable.
8237         (parse_number): Add "struct parser_state" argument.
8238         (type_exp, exp, subrange, typebase): Update calls to write_exp*
8239         and similars in order to use parser state.
8240         (parse_number): Adjust code to use parser state.
8241         (yylex): Likewise.
8242         (f_parse): New function.
8243         * f-lang.h: Forward declare "struct parser_state".
8244         (f_parse): Add "struct parser_state" argument.
8245         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8246         parser state.
8247         (yyparse): Redefine macro for java_parse_internal.
8248         (pstate): New variable.
8249         (push_expression_name, push_expression_name, insert_exp): Add
8250         "struct parser_state" argument.
8251         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8252         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8253         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8254         PostIncrementExpression, PostDecrementExpression,
8255         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8256         UnaryExpressionNotPlusMinus, CastExpression,
8257         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8258         RelationalExpression, EqualityExpression, AndExpression,
8259         ExclusiveOrExpression, InclusiveOrExpression,
8260         ConditionalAndExpression, ConditionalOrExpression,
8261         ConditionalExpression, Assignment, LeftHandSide): Update
8262         calls to write_exp* and similars in order to use parser state.
8263         (parse_number): Ajust code to use parser state.
8264         (yylex): Likewise.
8265         (java_parse): New function.
8266         (push_variable): Add "struct parser_state" argument.  Adjust
8267         code to user parser state.
8268         (push_fieldnames, push_qualified_expression_name,
8269         push_expression_name, insert_exp): Likewise.
8270         * jv-lang.h: Forward declare "struct parser_state".
8271         (java_parse): Add "struct parser_state" argument.
8272         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8273         parser state.
8274         (yyparse): Redefine macro to m2_parse_internal.
8275         (pstate): New variable.
8276         (type_exp, exp, fblock, variable, type): Update calls to
8277         write_exp* and similars to use parser state.
8278         (yylex): Likewise.
8279         (m2_parse): New function.
8280         * m2-lang.h: Forward declare "struct parser_state".
8281         (m2_parse): Add "struct parser_state" argument.
8282         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8283         * objc-lang.h: Forward declare "struct parser_state".
8284         (end_msglist): Add "struct parser_state" argument.
8285         * p-exp.y (parse_type): Rewrite macro to use parser state.
8286         (yyparse): Redefine macro to pascal_parse_internal.
8287         (pstate): New variable.
8288         (parse_number): Add "struct parser_state" argument.
8289         (type_exp, exp1, exp, qualified_name, variable): Update calls to
8290         write_exp* and similars in order to use parser state.
8291         (parse_number, yylex): Adjust code to use parser state.
8292         (pascal_parse): New function.
8293         * p-lang.h: Forward declare "struct parser_state".
8294         (pascal_parse): Add "struct parser_state" argument.
8295         * go-exp.y (parse_type): Rewrite macro to use parser state.
8296         (yyparse): Redefine macro to go_parse_internal.
8297         (pstate): New variable.
8298         (parse_number): Add "struct parser_state" argument.
8299         (type_exp, exp1, exp, variable, type): Update calls to
8300         write_exp* and similars in order to use parser state.
8301         (parse_number, lex_one_token, classify_name, yylex): Adjust code
8302         to use parser state.
8303         (go_parse): Likewise.
8304         * go-lang.h: Forward declare "struct parser_state".
8305         (go_parse): Add "struct parser_state" argument.
8306
8307 2014-03-27  Doug Evans  <dje@google.com>
8308
8309         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
8310
8311 2014-03-27  Doug Evans  <dje@google.com>
8312
8313         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8314         Remove argument abbrev_section.  All callers updated.
8315
8316 2014-03-27  Doug Evans  <dje@google.com>
8317
8318         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8319         addr_base, ranges_base.
8320
8321 2014-03-26  Keith Seitz  <keiths@redhat.com>
8322
8323         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8324         types, not VAR_DOMAIN.
8325
8326 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
8327
8328         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8329         "ra" registers.
8330         * features/nios2-linux.c: Regenerated.
8331         * features/nios2.c: Regenerated.
8332
8333 2014-03-25  Pedro Alves  <palves@redhat.com>
8334
8335         * cli/cli-script.c (script_from_file): Force the interpreter to
8336         sync mode.
8337
8338 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8339
8340         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8341         small stack allocation.
8342
8343 2014-03-24  Tristan Gingold  <gingold@adacore.com>
8344
8345         * darwin-nat.c (exc_server): Remove unused prototype.
8346         (darwin_dump_message): Correctly display data on x86_64.
8347         (darwin_encode_reply): Fix style.
8348         Add comments and fix indentation.
8349
8350 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8351
8352         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8353
8354 2014-03-22  Doug Evans  <xdje42@gmail.com>
8355
8356         * infcmd.c: Whitespace fixes.
8357         (interrupt_command): Merge two function comments into one.
8358
8359 2014-03-22  Doug Evans  <xdje42@gmail.com>
8360
8361         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8362         All uses updated.
8363
8364 2014-03-22  Yao Qi  <yao@codesourcery.com>
8365
8366         * remote.c (target_read_live_memory): Remove.
8367         (memory_xfer_live_readonly_partial): Rename it to
8368         remote_xfer_live_readonly_partial.  Remove argument 'object'.
8369         All callers updated.  Call remote_read_bytes_1
8370         instead of target_read_live_memory.
8371         * tracepoint.c (set_traceframe_number): Remove.
8372         (make_cleanup_restore_traceframe_number): Likewise .
8373         * tracepoint.h (set_traceframe_number): Remove declaration.
8374         (make_cleanup_restore_traceframe_number): Likewise.
8375
8376 2014-03-22  Yao Qi  <yao@codesourcery.com>
8377
8378         * remote.c (remote_read_bytes): Move code on reading from the
8379         remote stub to ...
8380         (remote_read_bytes_1): ... here.  New function.
8381
8382 2014-03-22  Yao Qi  <yao@codesourcery.com>
8383
8384         * ctf.c (ctf_xfer_partial): Check the return value of
8385         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8386         return TARGET_XFER_UNAVAILABLE.
8387         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8388         * target.c (target_read_live_memory): Move it to remote.c.
8389         (memory_xfer_live_readonly_partial): Likewise.
8390         (memory_xfer_partial_1): Move some code to remote_read_bytes.
8391         * remote.c (target_read_live_memory): Moved from target.c.
8392         (memory_xfer_live_readonly_partial): Likewise.
8393         (remote_read_bytes): Factored out from
8394         memory_xfer_partial_1.
8395
8396 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
8397
8398         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8399         NULL pointer.
8400
8401 2014-03-21  Pedro Alves  <palves@redhat.com>
8402
8403         * infrun.c (normal_stop): Extend comment.
8404
8405 2014-03-21  Hui Zhu  <hui@codesourcery.com>
8406             Pedro Alves  <palves@redhat.com>
8407
8408         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8409         static buffer.
8410         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8411         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8412         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8413
8414 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
8415
8416         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8417         `z' formatted output modifier.
8418
8419 2014-03-20  Tom Tromey  <tromey@redhat.com>
8420             Sergio Durigan Junior  <sergiodj@redhat.com>
8421
8422         * probe.c (parse_probes): Turn assert into an ordinary error.
8423         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8424         exceptions when parsing probes.  Rearrange the code for clarity.
8425
8426 2014-03-20  Tom Tromey  <tromey@redhat.com>
8427
8428         PR gdb/14135
8429         * top.c (execute_command): Only dispatch events if the command
8430         started the target.
8431
8432 2014-03-20  Tom Tromey  <tromey@redhat.com>
8433
8434         PR cli/15718
8435         * infcall.c: Include event-top.h.
8436         (run_inferior_call): Call async_disable_stdin if needed.
8437
8438 2014-03-20  Pedro Alves  <palves@redhat.com>
8439
8440         * infrun.c (prepare_to_proceed): Delete.
8441         (thread_still_needs_step_over): New function.
8442         (find_thread_needs_step_over): New function.
8443         (proceed): If the current thread needs a step-over, set its
8444         steping_over_breakpoint flag.  Adjust to use
8445         find_thread_needs_step_over instead of prepare_to_proceed.
8446         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8447         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8448         breakpoint.
8449         (switch_back_to_stepped_thread): Step over breakpoints of all
8450         threads not the stepping thread, before switching back to the
8451         stepping thread.
8452
8453 2014-03-20  Pedro Alves  <palves@redhat.com>
8454
8455         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8456         extern.
8457         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8458         * infrun.c (saved_singlestep_ptid)
8459         (stepping_past_singlestep_breakpoint): Delete.
8460         (resume): Remove stepping_past_singlestep_breakpoint handling.
8461         (proceed): Store the prev_pc of the stepping thread too.
8462         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
8463         singlestep_pc.
8464         (enum infwait_states): Delete infwait_thread_hop_state.
8465         (struct execution_control_state) <hit_singlestep_breakpoint>: New
8466         field.
8467         (handle_inferior_event): Adjust.
8468         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8469         handling and the thread-hop code.  Before removing single-step
8470         breakpoints, check whether the thread hit a single-step breakpoint
8471         of another thread.  If it did, the trap is not a random signal.
8472         (switch_back_to_stepped_thread): If the event thread hit a
8473         single-step breakpoint, unblock it before switching to the
8474         stepping thread.  Handle the case of the stepped thread having
8475         advanced already.
8476         (keep_going): Handle the case of the current thread moving past a
8477         single-step breakpoint.
8478
8479 2014-03-20  Pedro Alves  <palves@redhat.com>
8480
8481         PR breakpoints/7143
8482         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8483         are being stepped over.
8484         (breakpoint_address_match): Make extern.
8485         * breakpoint.h (breakpoint_address_match): New declaration.
8486         * inferior.h (stepping_past_instruction_at): New declaration.
8487         * infrun.c (struct step_over_info): New type.
8488         (step_over_info): New global.
8489         (set_step_over_info, clear_step_over_info)
8490         (stepping_past_instruction_at): New functions.
8491         (handle_inferior_event): Clear the step-over info when
8492         trap_expected is cleared.
8493         (resume): Remove now stale comment.
8494         (clear_proceed_status): Clear step-over info.
8495         (proceed): Adjust step-over handling to set or clear the step-over
8496         info instead of removing all breakpoints.
8497         (handle_signal_stop): When setting up a thread-hop, don't remove
8498         breakpoints here.
8499         (stop_stepping): Clear step-over info.
8500         (keep_going): Adjust step-over handling to set or clear step-over
8501         info and then always inserting breakpoints, instead of removing
8502         all breakpoints when stepping over one.
8503
8504 2014-03-20  Pedro Alves  <palves@redhat.com>
8505
8506         * infrun.c (previous_inferior_ptid): Adjust comment.
8507         (deferred_step_ptid): Delete.
8508         (infrun_thread_ptid_changed, prepare_to_proceed)
8509         (init_wait_for_inferior): Adjust.
8510         (handle_signal_stop): Delete deferred_step_ptid handling.
8511
8512 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
8513
8514         PR gdb/15358
8515         * defs.h (sync_quit_force_run): New declaration.
8516         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8517         * event-top.c (async_sigterm_handler): New declaration.
8518         (async_sigterm_token): New variable.
8519         (async_init_signals): Create also async_sigterm_token.
8520         (async_sigterm_handler): New function.
8521         (sync_quit_force_run): New variable.
8522         (handle_sigterm): Replace quit_force call by other calls.
8523         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8524
8525 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
8526
8527         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8528         offset into SPE pseudo registers.
8529
8530 2014-03-18  Pedro Alves  <palves@redhat.com>
8531
8532         PR gdb/13860
8533         * inferior.h (print_stop_event): Declare.
8534         * infrun.c (print_stop_event): New, factored out from ...
8535         (normal_stop): ... this.
8536         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8537         of bpstat_print/print_stack_frame.
8538
8539 2014-03-17  Tom Tromey  <tromey@redhat.com>
8540
8541         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8542
8543 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
8544
8545         * ada-lang.c (decode_constrained_packed_array): Perform a
8546         minimal coercion for reference with coerce_ref instead of
8547         ada_coerce_ref.
8548
8549 2014-03-17  Tristan Gingold  <gingold@adacore.com>
8550
8551         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8552         (darwin_solib_create_inferior_hook): Emit a warning if version
8553         is unhandled.
8554
8555 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
8556
8557         * python/py-value.c (get_field_flag): Cast flag_name argument to
8558         PyObject_GetAttrString to support Python 2.4.
8559
8560 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8561
8562         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8563         (Global Maintainers): Remove Jan Kratochvil.
8564
8565 2014-03-14  Pedro Alves  <palves@redhat.com>
8566
8567         * inferior.h (terminal_ours_for_output): Rename to ...
8568         (child_terminal_ours_for_output): ... this.
8569         (terminal_save_ours): Rename to ...
8570         (child_terminal_save_ours): ... this.
8571         (terminal_ours): Rename to ...
8572         (child_terminal_ours): ... this.
8573         (terminal_inferior): Rename to ...
8574         (child_terminal_inferior): ... this.
8575         (terminal_init_inferior): Rename to ...
8576         (child_terminal_init_inferior): ... this.
8577         (terminal_init_inferior_with_pgrp): Rename to ...
8578         (child_terminal_init_inferior_with_pgrp): ... this.
8579         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8580         (child_terminal_init_with_pgrp): ... this.
8581         (terminal_save_ours): Rename to ...
8582         (child_terminal_save_ours): ... this.
8583         (terminal_init_inferior): Rename to ...
8584         (child_terminal_init): ... this.  Adjust.
8585         (terminal_inferior): Rename to ...
8586         (child_terminal_inferior): ... this.
8587         (terminal_ours_for_output): Rename to ...
8588         (child_terminal_ours_for_output): ... this.  Adjust.
8589         (terminal_ours): Rename to ...
8590         (child_terminal_ours): ... this.
8591         (terminal_ours_1): Rename to ...
8592         (child_terminal_ours_1): ... this.  Adjust.
8593         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8594         * windows-nat.c (do_initial_windows_stuff): Adjust.
8595         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8596         (gnu_terminal_init): ... this.  Adjust.
8597         (gnu_target): Adjust.
8598         * inf-child.c (inf_child_target): Adjust.
8599
8600 2014-03-13  Doug Evans  <xdje42@gmail.com>
8601
8602         PR guile/16612
8603         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8604         new eq?-hashtab.
8605
8606 2014-03-13  Doug Evans  <xdje42@gmail.com>
8607
8608         * value.c (record_latest_value): Call release_value_or_incref
8609         instead of release_value.
8610
8611 2014-03-13  Pedro Alves  <palves@redhat.com>
8612
8613         * procfs.c (procfs_target): Don't override to_shortname,
8614         to_longname or to_doc.
8615
8616 2014-03-13  Pedro Alves  <palves@redhat.com>
8617
8618         * inf-child.c (inf_child_open, inf_child_target): Don't mention
8619         Unix in user visible strings.
8620
8621 2014-03-12  Stan Shebs  <stan@codesourcery.com>
8622
8623         * gdbtypes.h: Annotate comments for Doxygen, add a page
8624         block comment with some general info.
8625
8626 2014-03-12  Pedro Alves  <palves@redhat.com>
8627
8628         * infcmd.c (prepare_execution_command): New function, factored out
8629         from several execution commands.
8630         (run_command_1, continue_command, step_1, jump_command)
8631         (signal_command, until_command, advance_command, finish_command)
8632         (attach_command): Use prepare_execution_command.
8633
8634 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
8635
8636         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8637         (MAX_BPTS): Define.
8638         (MAX_WPTS): Define.
8639         (struct arm_linux_thread_points): Removed.
8640         (struct arm_linux_process_info): New.
8641         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8642         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8643         (arm_linux_find_breakpoints_by_tid): Removed.
8644         (struct arch_lwp_info): New.
8645         (arm_linux_find_process_pid): New functions.
8646         (arm_linux_add_process): New functions.
8647         (arm_linux_process_info_get): New functions.
8648         (arm_linux_forget_process): New function.
8649         (arm_linux_get_debug_reg_state): New function.
8650         (struct update_registers_data): New.
8651         (update_registers_callback): New function.
8652         (arm_linux_insert_hw_breakpoint1): Updated.
8653         (arm_linux_remove_hw_breakpoint1): Updated.
8654         (arm_linux_insert_hw_breakpoint): Updated.
8655         (arm_linux_remove_hw_breakpoint): Updated.
8656         (arm_linux_insert_watchpoint): Updated.
8657         (arm_linux_remove_watchpoint): Updated.
8658         (arm_linux_new_thread): Updated.
8659         (arm_linux_prepare_to_resume): New function.
8660         (arm_linux_new_fork): New function.
8661         (_initialize_arm_linux_nat): Updated.
8662
8663 2014-03-12  Pedro Alves  <palves@redhat.com>
8664
8665         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8666
8667 2014-03-12  Tom Tromey  <tromey@redhat.com>
8668
8669         * inf-child.c (return_zero): New function.
8670         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8671         * aix-thread.c (aix_thread_inferior_created): New function.
8672         (aix_thread_attach): Remove.
8673         (init_aix_thread_ops): Don't set to_attach.
8674         (_initialize_aix_thread): Register inferior_created observer.
8675         * corelow.c (init_core_ops): Don't set to_attach or
8676         to_create_inferior.
8677         * exec.c (init_exec_ops): Don't set to_attach or
8678         to_create_inferior.
8679         * infcmd.c (run_command_1): Use find_run_target.  Make direct
8680         target calls.
8681         (attach_command): Use find_attach_target.  Make direct target
8682         calls.
8683         * record-btrace.c (init_record_btrace_ops): Don't set
8684         to_create_inferior.
8685         * record-full.c (record_full_can_async_p, record_full_is_async_p):
8686         Remove.
8687         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
8688         set to_create_inferior.
8689         * target.c (complete_target_initialization): Add assertion.
8690         (target_create_inferior): Remove.
8691         (find_default_attach, find_default_create_inferior): Remove.
8692         (find_attach_target, find_run_target): New functions.
8693         (find_default_is_async_p, find_default_can_async_p)
8694         (target_supports_non_stop, target_attach): Remove.
8695         (init_dummy_target): Don't set to_create_inferior or
8696         to_supports_non_stop.
8697         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
8698         TARGET_DEFAULT_FUNC.
8699         <to_create_inferior>: Add comment.
8700         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8701         TARGET_DEFAULT_RETURN.
8702         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8703         (find_attach_target, find_run_target): Declare.
8704         (target_create_inferior): Remove.
8705         (target_has_execution_1): Update comment.
8706         (target_supports_non_stop): Remove.
8707         * target-delegates.c: Rebuild.
8708
8709 2014-03-12  Pedro Alves  <palves@redhat.com>
8710
8711         * inf-child.h: Update comment to not mention Unix.
8712
8713 2014-03-12  Pedro Alves  <palves@redhat.com>
8714
8715         * inf-child.c: Update top comment to not mention Unix.  Add
8716         generic comment describing how this target is meant to be used.
8717         (inf_child_post_attach, inf_child_post_startup_inferior)
8718         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8719         Unix in comment.
8720
8721 2014-03-12  Pedro Alves  <palves@redhat.com>
8722
8723         * nto-procfs.c: Include inf-child.h.
8724         (procfs_ops): Delete global.
8725         (procfs_can_run): Delete method.
8726         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8727         target pointer instead of referencing procfs_ops.
8728         (procfs_prepare_to_store): Delete.
8729         (init_procfs_ops): Delete function.
8730         (procfs_target): New function, based on init_procfs_ops, but
8731         inherit inf_child_target.
8732         (_initialize_procfs): Use procfs_target.
8733
8734 2014-03-12  Pedro Alves  <palves@redhat.com>
8735
8736         * windows-nat.c: Include inf-child.h.
8737         (windows_ops): Delete global.
8738         (windows_open, windows_prepare_to_store, windows_can_run): Delete
8739         methods.
8740         (init_windows_ops): Delete function.
8741         (windows_target): New function, based on init_windows_ops, but
8742         inherit inf_child_target.
8743         (_initialize_windows_nat): Use windows_target.  Install x86
8744         specific target methods here.
8745
8746 2014-03-10  Doug Evans  <xdje42@gmail.com>
8747
8748         * guile/guile.c (call_initialize_gdb_module): New function.
8749         (initialize_guile): Replace call to scm_init_guile with call to
8750         scm_with_guile.
8751
8752 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
8753
8754         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8755         in call to TYPE_CODE macro.
8756
8757 2014-03-10  Jerome Guitton  <guitton@adacore.com>
8758
8759         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8760         Resolve tagged types to full view.
8761
8762 2014-03-10  Hui Zhu  <hui@codesourcery.com>
8763
8764         * target.h (target_insert_breakpoint): Remove "hardware" from its
8765         comments.
8766
8767 2014-03-07  Doug Evans  <dje@google.com>
8768
8769         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8770
8771 2014-03-07  Doug Evans  <dje@google.com>
8772
8773         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8774         Remove unused local comp_dir_attr.  Assert exactly one of
8775         stub_comp_unit_die, stub_comp_dir is non-NULL.
8776
8777 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
8778
8779         * target.h (complete_target_initialization, add_target):
8780         Add comment.
8781
8782 2014-03-07  Pedro Alves  <palves@redhat.com>
8783
8784         * go32-nat.c: Include inf-child.h.
8785         (go32_ops): Delete global.
8786         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8787         Delete methods.
8788         (go32_create_inferior): Push the passed in target pointer instead
8789         of referencing go32_ops.
8790         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
8791         (go32_target): New function, based on init_go32_ops, but inherit
8792         inf_child_target.
8793         (_initialize_go32_nat): Use go32_target.  Move parts of
8794         init_go32_ops here.
8795
8796 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
8797
8798         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8799         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8800         SYMBOL_VALUE_ADDRESS.
8801         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8802
8803 2014-03-06  Yao Qi  <yao@codesourcery.com>
8804
8805         * breakpoint.c (get_tracepoint_by_number): Remove argument
8806         optional_p.  All callers updated.  Adjust comments.  Update
8807         output message.
8808         * breakpoint.h (get_tracepoint_by_number): Update declaration.
8809
8810 2014-03-06  Yao Qi  <yao@codesourcery.com>
8811
8812         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
8813         early if get_number returns zero.  Use 'p' instead of 'args'.
8814
8815 2014-03-06  Yao Qi  <yao@codesourcery.com>
8816
8817         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8818         message.
8819
8820 2014-03-06  Yao Qi  <yao@codesourcery.com>
8821
8822         PR breakpoints/16508
8823         * tracepoint.c (check_trace_running): New function.
8824         (trace_find_command): Move code to check_trace_running and
8825         call check_trace_running.
8826         (trace_find_pc_command): Likewise.
8827         (trace_find_tracepoint_command): Likewise.
8828         (trace_find_line_command): Likewise.
8829         (trace_find_range_command): Likewise.
8830         * tracepoint.h (check_trace_running): Likewise.
8831         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8832
8833 2014-03-06  Yao Qi  <yao@codesourcery.com>
8834
8835         * target.h (struct target_ops) <to_traceframe_info>: Use
8836         TARGET_DEFAULT_NORETURN (tcomplain ()).
8837         * target-delegates.c: Regenerated.
8838
8839 2014-03-05  Pedro Alves  <palves@redhat.com>
8840
8841         PR gdb/16575
8842         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
8843         void.  Update comment.
8844         (dcache_xfer_memory): Delete.
8845         (dcache_read_memory_partial): New, based on the read bits of
8846         dcache_xfer_memory.
8847         (dcache_update): Add status parameter.  Use ULONGEST for len, and
8848         adjust.  Discard cache lines if the reason for the update was
8849         error.
8850         * dcache.h (dcache_xfer_memory): Delete declaration.
8851         (dcache_read_memory_partial): New declaration.
8852         (dcache_update): Update prototype.
8853         * target.c (raw_memory_xfer_partial): Update the dcache here.
8854         (memory_xfer_partial_1): Don't handle dcache writes here.
8855
8856 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
8857
8858         * remote-sim.c (gdbsim_load): Add const to prog.
8859
8860 2014-03-03  Tom Tromey  <tromey@redhat.com>
8861
8862         * elfread.c (probe_key): Change to bfd_data.
8863         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8864         now per-BFD, not per-objfile.
8865         * stap-probe.c (stap_probe_destroy): Update comment.
8866         (handle_stap_probe): Allocate on the per-BFD obstack.
8867
8868 2014-03-03  Tom Tromey  <tromey@redhat.com>
8869
8870         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8871         * breakpoint.c (create_longjmp_master_breakpoint): Use
8872         get_probe_address.
8873         (add_location_to_breakpoint, bkpt_probe_insert_location)
8874         (bkpt_probe_remove_location): Update.
8875         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8876         * elfread.c (elf_symfile_relocate_probe): Remove.
8877         (elf_probe_fns): Update.
8878         (insert_exception_resume_breakpoint): Change type of "probe"
8879         parameter to bound_probe.
8880         (check_exception_resume): Update.
8881         * objfiles.c (objfile_relocate1): Don't relocate probes.
8882         * probe.c (bound_probe_s): New typedef.
8883         (parse_probes): Use get_probe_address.  Set sal's objfile.
8884         (find_probe_by_pc): Return a bound_probe.
8885         (collect_probes): Return a VEC(bound_probe_s).
8886         (compare_probes): Update.
8887         (gen_ui_out_table_header_info): Change type of "probes"
8888         parameter.  Update.
8889         (info_probes_for_ops): Update.
8890         (get_probe_address): New function.
8891         (probe_safe_evaluate_at_pc): Update.
8892         * probe.h (struct probe_ops) <get_probe_address>: New field.
8893         <set_semaphore, clear_semaphore>: Add objfile parameter.
8894         (struct probe) <objfile>: Remove field.
8895         <arch>: New field.
8896         <address>: Update comment.
8897         (struct bound_probe): New.
8898         (find_probe_by_pc): Return a bound_probe.
8899         (get_probe_address): Declare.
8900         * solib-svr4.c (struct probe_and_action) <address>: New field.
8901         (hash_probe_and_action, equal_probe_and_action): Update.
8902         (register_solib_event_probe): Add address parameter.
8903         (solib_event_probe_at): Update.
8904         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
8905         get_probe_address.
8906         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8907         (stap_get_probe_address): New function.
8908         (stap_can_evaluate_probe_arguments, compute_probe_arg)
8909         (compile_probe_arg): Update.
8910         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8911         address.
8912         (handle_stap_probe): Don't relocate the probe.
8913         (stap_relocate): Remove.
8914         (stap_gen_info_probes_table_values): Update.
8915         (stap_probe_ops): Remove stap_relocate.
8916         * symfile-debug.c (debug_sym_relocate_probe): Remove.
8917         (debug_sym_probe_fns): Update.
8918         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8919         * symtab.c (init_sal): Use memset.
8920         * symtab.h (struct symtab_and_line) <objfile>: New field.
8921         * tracepoint.c (start_tracing, stop_tracing): Update.
8922
8923 2014-03-03  Tom Tromey  <tromey@redhat.com>
8924
8925         * probe.h (parse_probes, find_probe_by_pc)
8926         (find_probes_in_objfile): Fix comments.
8927
8928 2014-03-02  Doug Evans  <xdje42@gmail.com>
8929
8930         * infrun.c (handle_signal_stop): Replace test for
8931         TARGET_WAITKIND_STOPPED with an assert.
8932
8933 2014-03-02  Doug Evans  <xdje42@gmail.com>
8934
8935         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8936
8937 2014-03-02  Doug Evans  <xdje42@gmail.com>
8938
8939         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8940
8941 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8942
8943         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8944
8945 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8946
8947         * i386obsd-nat.c: Include "obsd-nat.h".
8948         (_initialize_i386obsd_nat): Call obsd_add_target instead of
8949         add_target.
8950         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8951
8952 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8953
8954         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8955
8956 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8957
8958         * mips64obsd-nat.c: Include "obsd-nath".
8959         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8960         add_target
8961         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8962
8963 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8964
8965         * amd64obsd-nat.c: Include "obsd-nat,h.
8966         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8967         add_target.
8968         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8969
8970 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
8971
8972         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8973         (find_overload_match): Update call to find_oload_champ.
8974         (find_oload_champ_namespace_loop): Likewise
8975
8976 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
8977
8978         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8979
8980         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8981         * config/sparc/obsd64.mh: New file.
8982         * sparc64obsd-nat.c: New file.
8983
8984         * obsd-nat.h: New file.
8985         * obsd-nat.c: New file.
8986         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8987         (ALLDEPFILES): Add obsd-nat.c.
8988
8989 2014-02-28  Tom Tromey  <tromey@redhat.com>
8990
8991         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
8992         * cli-out.h (cli_ui_out_impl): Now const.
8993         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
8994         * ui-out.c (struct ui_out) <impl>: Now const.
8995         (default_ui_out_impl): Now const.
8996         (ui_out_new): Make 'impl' parameter const.
8997         * ui-out.h (ui_out_new): Update.
8998
8999 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9000
9001         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9002
9003 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9004
9005         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9006
9007 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9008
9009         Additional PR 8882 fix.
9010         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9011
9012 2014-02-27  Pedro Alves  <palves@redhat.com>
9013
9014         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9015         isn't set.
9016
9017 2014-02-27  Pedro Alves  <palves@redhat.com>
9018
9019         PR 12702
9020         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9021         * nat/linux-waitpid.c: Include string.h.
9022         (status_to_str): Moved here and made extern.
9023         * nat/linux-waitpid.h (status_to_str): New declaration.
9024
9025 2014-02-27  Hui Zhu  <hui@codesourcery.com>
9026
9027         PR 12702
9028         * infrun.c (ptid_match): Move ...
9029         * common/ptid.c (ptid_match): ... here.
9030         * inferior.h (ptid_match): Move ...
9031         * common/ptid.h (ptid_match): ... here.
9032
9033 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9034
9035         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9036         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9037         gdb_target_obs.
9038
9039 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9040
9041         * obsd-tdep.c (obsd_auxv_parse): New function.
9042         (obsd_init_abi): Set auxv_parse.
9043
9044         * gdbarch.sh (auxv_parse): New.
9045         * gdbarch.h: Regenerated.
9046         * gdbarch.c: Regenerated.
9047         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9048
9049 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
9050
9051         * guile/scm-value.c (gdbscm_history_append_x): New function.
9052         (value_functions): Add it.
9053
9054 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9055
9056         * dwarf2read.c (attr_value_as_address): New function.
9057         (dwarf2_find_base_address, read_call_site_scope): Use
9058         attr_value_as_address in place of DW_ADDR.
9059         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9060         the low and high addresses.  Slight rework of the handling
9061         of the high pc being a constant form, and limit it to
9062         DWARF verson 4 or higher.
9063         (dwarf2_record_block_ranges): Likewise.
9064         (read_partial_die): Likewise.
9065         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9066
9067 2014-02-26  Tom Tromey  <tromey@redhat.com>
9068
9069         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9070
9071 2014-02-26  Tom Tromey  <tromey@redhat.com>
9072
9073         * elfread.c (elf_read_minimal_symbols): Return early if
9074         minimal symbols have already been read.  Add "ei" parameter.
9075         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9076         * minsyms.c (prim_record_minimal_symbol_full): Update.
9077         * objfiles.h (struct objstats) <n_minsyms>: Move...
9078         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9079         * symmisc.c (print_objfile_statistics): Update.
9080
9081 2014-02-26  Tom Tromey  <tromey@redhat.com>
9082
9083         * elfread.c (elf_read_minimal_symbols): New function, from
9084         elf_symfile_read.
9085         (elf_symfile_read): Call it.
9086
9087 2014-02-26  Tom Tromey  <tromey@redhat.com>
9088
9089         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9090         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9091         (lookup_minimal_symbol_solib_trampoline)
9092         (lookup_minimal_symbol_by_pc_section_1)
9093         (lookup_minimal_symbol_and_objfile): Update.
9094         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9095         Don't allocate a minimal symbol if minsyms have already been read.
9096         (build_minimal_symbol_hash_tables): Update.
9097         (install_minimal_symbols): Do nothing if minsyms already read.
9098         Use the per-BFD obstack.
9099         (terminate_minimal_symbol_table): Use the per-BFD obstack.
9100         * objfiles.c (allocate_objfile): Call
9101         terminate_minimal_symbol_table later.
9102         (have_minimal_symbols): Update.
9103         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9104         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9105         Move from struct objfile.
9106         <minsyms_read>: New field.
9107         (struct objfile) <msymbols, minimal_symbol_count,
9108         msymbol_hash, msymbol_demangled_hash>: Move.
9109         (ALL_OBJFILE_MSYMBOLS): Update.
9110         * symfile.c (read_symbols): Set minsyms_read.
9111         (reread_symbols): Update.
9112         * symmisc.c (dump_objfile, dump_msymbols): Update.
9113
9114 2014-02-26  Tom Tromey  <tromey@redhat.com>
9115
9116         * minsyms.c (msymbols_sort): Remove.
9117         * minsyms.h (msymbols_sort): Remove.
9118         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9119         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9120         * elfread.c (elf_symtab_read): Don't add section offsets.
9121         * xcoffread.c (record_minimal_symbol): Don't add section offset
9122         to minimal symbol address.
9123         * somread.c (text_offset, data_offset): Remove.
9124         (som_symtab_read): Don't add section offsets to minimal symbol
9125         addresses.
9126         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9127         Don't add section offsets to minimal symbols.
9128         * coffread.c (coff_symtab_read): Don't add section offsets
9129         to minimal symbol addresses.
9130         * machoread.c (macho_symtab_add_minsym): Don't add section offset
9131         to minimal symbol addresses.
9132         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9133         section offset to minimal symbol addresses.
9134         * mdebugread.c (parse_partial_symbols): Don't add section
9135         offset to minimal symbol addresses.
9136         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9137         offset to minimal symbol addresses.
9138
9139 2014-02-26  Tom Tromey  <tromey@redhat.com>
9140
9141         * ada-lang.c (ada_main_name): Update.
9142         (ada_add_standard_exceptions): Update.
9143         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9144         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9145         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9146         * auxv.c (ld_so_xfer_auxv): Update.
9147         * avr-tdep.c (avr_scan_prologue): Update.
9148         * ax-gdb.c (gen_var_ref): Update.
9149         * blockframe.c (get_pc_function_start)
9150         (find_pc_partial_function_gnu_ifunc): Update.
9151         * breakpoint.c (create_overlay_event_breakpoint)
9152         (create_longjmp_master_breakpoint)
9153         (create_std_terminate_master_breakpoint)
9154         (create_exception_master_breakpoint): Update.
9155         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9156         * c-valprint.c (c_val_print): Update.
9157         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9158         * common/agent.c (agent_look_up_symbols): Update.
9159         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9160         * dwarf2loc.c (call_site_to_target_addr): Update.
9161         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9162         * elfread.c (elf_gnu_ifunc_record_cache)
9163         (elf_gnu_ifunc_resolve_by_got): Update.
9164         * findvar.c (default_read_var_value): Update.
9165         * frame.c (inside_main_func): Update.
9166         * frv-tdep.c (frv_frame_this_id): Update.
9167         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9168         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9169         Update.
9170         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9171         (hppa_hpux_find_dummy_bpaddr): Update.
9172         * hppa-tdep.c (hppa_symbol_address): Update.
9173         * infcmd.c (until_next_command): Update.
9174         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9175         Update.
9176         * linespec.c (minsym_found, add_minsym): Update.
9177         * linux-nat.c (get_signo): Update.
9178         * linux-thread-db.c (inferior_has_bug): Update.
9179         * m32c-tdep.c (m32c_return_value)
9180         (m32c_m16c_address_to_pointer): Update.
9181         * m32r-tdep.c (m32r_frame_this_id): Update.
9182         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9183         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9184         * maint.c (maintenance_translate_address): Update.
9185         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9186         (frob_address): New function.
9187         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9188         frob_address.  Rename parameter to "pc_in".
9189         (compare_minimal_symbols, compact_minimal_symbols): Use raw
9190         addresses.
9191         (find_solib_trampoline_target, minimal_symbol_upper_bound):
9192         Update.
9193         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9194         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9195         * objc-lang.c (find_objc_msgsend): Update.
9196         * objfiles.c (objfile_relocate1): Update.
9197         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9198         * p-valprint.c (pascal_val_print): Update.
9199         * parse.c (write_exp_msymbol): Update.
9200         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9201         (ppc_elfv2_skip_entrypoint): Update.
9202         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9203         * printcmd.c (build_address_symbolic, msym_info)
9204         (address_info): Update.
9205         * proc-service.c (ps_pglobal_lookup): Update.
9206         * psymtab.c (find_pc_sect_psymtab_closer)
9207         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9208         Change msymbol parameter to bound_minimal_symbol.
9209         * ravenscar-thread.c (get_running_thread_id): Update.
9210         * remote.c (remote_check_symbols): Update.
9211         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9212         address.
9213         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9214         * solib-dsbt.c (lm_base): Update.
9215         * solib-frv.c (lm_base, main_got): Update.
9216         * solib-irix.c (locate_base): Update.
9217         * solib-som.c (som_solib_create_inferior_hook)
9218         (link_map_start): Update.
9219         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9220         * solib-svr4.c (elf_locate_base, enable_break): Update.
9221         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9222         (flush_ea_cache): Update.
9223         * stabsread.c (define_symbol, scan_file_globals): Update.
9224         * stack.c (find_frame_funname): Update.
9225         * symfile-debug.c (debug_qf_expand_symtabs_matching)
9226         (debug_qf_find_pc_sect_symtab): Update.
9227         * symfile.c (simple_read_overlay_table)
9228         (simple_overlay_update): Update.
9229         * symfile.h (struct quick_symbol_functions)
9230         <find_pc_sect_symtab>: Change type of msymbol to
9231         bound_minimal_symbol.
9232         * symmisc.c (dump_msymbols): Update.
9233         * symtab.c (find_pc_sect_symtab_via_partial)
9234         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9235         (search_symbols, print_msymbol_info): Update.
9236         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9237         (MSYMBOL_VALUE_ADDRESS): Redefine.
9238         (BMSYMBOL_VALUE_ADDRESS): New macro.
9239         * tracepoint.c (scope_info): Update.
9240         * tui/tui-disasm.c (tui_find_disassembly_address)
9241         (tui_get_begin_asm_address): Update.
9242         * valops.c (find_function_in_inferior): Update.
9243         * value.c (value_static_field, value_fn_field): Update.
9244
9245 2014-02-26  Tom Tromey  <tromey@redhat.com>
9246
9247         * ada-lang.c (ada_update_initial_language): Update.
9248         (ada_main_name, ada_has_this_exception_support): Update.
9249         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9250         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9251         * arm-tdep.c (arm_skip_stub): Update.
9252         * auxv.c (ld_so_xfer_auxv): Update.
9253         * avr-tdep.c (avr_scan_prologue): Update.
9254         * ax-gdb.c (gen_var_ref): Update.
9255         * breakpoint.c (struct breakpoint_objfile_data)
9256         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9257         type to bound_minimal_symbol.
9258         (create_overlay_event_breakpoint)
9259         (create_longjmp_master_breakpoint)
9260         (create_std_terminate_master_breakpoint)
9261         (create_exception_master_breakpoint): Update.
9262         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9263         * c-exp.y (classify_name): Update.
9264         * coffread.c (coff_symfile_read): Update.
9265         * common/agent.c (agent_look_up_symbols): Update.
9266         * d-lang.c (d_main_name): Update.
9267         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9268         * dec-thread.c (enable_dec_thread): Update.
9269         * dwarf2loc.c (call_site_to_target_addr): Update.
9270         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9271         * eval.c (evaluate_subexp_standard): Update.
9272         * findvar.c (struct minsym_lookup_data) <result>: Change type
9273         to bound_minimal_symbol.
9274         <objfile>: Remove.
9275         (minsym_lookup_iterator_cb, default_read_var_value): Update.
9276         * frame.c (inside_main_func): Update.
9277         * frv-tdep.c (frv_frame_this_id): Update.
9278         * gcore.c (call_target_sbrk): Update.
9279         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9280         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9281         Update.
9282         * go-lang.c (go_main_name): Update.
9283         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9284         (hppa_hpux_find_import_stub_for_addr): Update.
9285         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9286         Update.  Change return type.
9287         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9288         type.
9289         * jit.c (jit_breakpoint_re_set_internal): Update.
9290         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9291         Update.
9292         * linux-nat.c (get_signo): Update.
9293         * linux-thread-db.c (inferior_has_bug): Update
9294         * m32c-tdep.c (m32c_return_value)
9295         (m32c_m16c_address_to_pointer): Update.
9296         * m32r-tdep.c (m32r_frame_this_id): Update.
9297         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9298         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9299         * minsyms.c (lookup_minimal_symbol_internal): Rename to
9300         lookup_minimal_symbol.  Change return type.
9301         (lookup_minimal_symbol): Remove.
9302         (lookup_bound_minimal_symbol): Update.
9303         (lookup_minimal_symbol_text): Change return type.
9304         (lookup_minimal_symbol_solib_trampoline): Change return type.
9305         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9306         (lookup_minimal_symbol_solib_trampoline): Change return type.
9307         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9308         * objc-lang.c (lookup_objc_class, lookup_child_selector)
9309         (value_nsstring, find_imps): Update.
9310         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9311         * p-lang.c (pascal_main_name): Update.
9312         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9313         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9314         * proc-service.c (ps_pglobal_lookup): Update.
9315         * ravenscar-thread.c (get_running_thread_msymbol): Change
9316         return type.
9317         (has_ravenscar_runtime, get_running_thread_id): Update.
9318         * remote.c (remote_check_symbols): Update.
9319         * sol-thread.c (ps_pglobal_lookup): Update.
9320         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9321         * solib-dsbt.c (lm_base): Update.
9322         * solib-frv.c (lm_base, frv_relocate_section_addresses):
9323         Update.
9324         * solib-irix.c (locate_base): Update.
9325         * solib-som.c (som_solib_create_inferior_hook)
9326         (som_solib_desire_dynamic_linker_symbols, link_map_start):
9327         Update.
9328         * solib-spu.c (spu_enable_break): Update.
9329         * solib-svr4.c (elf_locate_base, enable_break): Update.
9330         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9331         (flush_ea_cache): Update.
9332         * stabsread.c (define_symbol): Update.
9333         * symfile.c (simple_read_overlay_table): Update.
9334         * symtab.c (find_pc_sect_line): Update.
9335         * tracepoint.c (scope_info): Update.
9336         * tui-disasm.c (tui_get_begin_asm_address): Update.
9337         * value.c (value_static_field): Update.
9338
9339 2014-02-26  Tom Tromey  <tromey@redhat.com>
9340
9341         * minsyms.c (prim_record_minimal_symbol_full): Use
9342         SET_MSYMBOL_VALUE_ADDRESS.
9343         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9344         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9345         SET_MSYMBOL_VALUE_ADDRESS.
9346         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9347         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9348
9349 2014-02-26  Tom Tromey  <tromey@redhat.com>
9350
9351         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9352         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9353         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9354         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9355         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9356         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9357         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9358         * ada-lang.c (ada_main_name): Update.
9359         (ada_lookup_simple_minsym): Update.
9360         (ada_make_symbol_completion_list): Update.
9361         (ada_add_standard_exceptions): Update.
9362         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9363         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9364         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9365         * arm-tdep.c (skip_prologue_function): Update.
9366         (arm_skip_stack_protector, arm_skip_stub): Update.
9367         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9368         (arm_wince_skip_main_prologue): Update.
9369         * auxv.c (ld_so_xfer_auxv): Update.
9370         * avr-tdep.c (avr_scan_prologue): Update.
9371         * ax-gdb.c (gen_var_ref): Update.
9372         * block.c (call_site_for_pc): Update.
9373         * blockframe.c (get_pc_function_start): Update.
9374         (find_pc_partial_function_gnu_ifunc): Update.
9375         * breakpoint.c (create_overlay_event_breakpoint): Update.
9376         (create_longjmp_master_breakpoint): Update.
9377         (create_std_terminate_master_breakpoint): Update.
9378         (create_exception_master_breakpoint): Update.
9379         (resolve_sal_pc): Update.
9380         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9381         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9382         Update.
9383         * c-valprint.c (c_val_print): Update.
9384         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9385         * coffread.c (coff_symfile_read): Update.
9386         * common/agent.c (agent_look_up_symbols): Update.
9387         * dbxread.c (find_stab_function_addr): Update.
9388         (end_psymtab): Update.
9389         * dwarf2loc.c (call_site_to_target_addr): Update.
9390         (func_verify_no_selftailcall): Update.
9391         (tailcall_dump): Update.
9392         (call_site_find_chain_1): Update.
9393         (dwarf_expr_reg_to_entry_parameter): Update.
9394         * elfread.c (elf_gnu_ifunc_record_cache): Update.
9395         (elf_gnu_ifunc_resolve_by_got): Update.
9396         * f-valprint.c (info_common_command): Update.
9397         * findvar.c (read_var_value): Update.
9398         * frame.c (get_prev_frame_1): Update.
9399         (inside_main_func): Update.
9400         * frv-tdep.c (frv_skip_main_prologue): Update.
9401         (frv_frame_this_id): Update.
9402         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9403         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9404         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9405         (gnuv3_skip_trampoline): Update.
9406         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9407         (hppa64_hpux_in_solib_call_trampoline): Update.
9408         (hppa_hpux_skip_trampoline_code): Update.
9409         (hppa64_hpux_search_dummy_call_sequence): Update.
9410         (hppa_hpux_find_import_stub_for_addr): Update.
9411         (hppa_hpux_find_dummy_bpaddr): Update.
9412         * hppa-tdep.c (hppa_symbol_address)
9413         (hppa_lookup_stub_minimal_symbol): Update.
9414         * i386-tdep.c (i386_skip_main_prologue): Update.
9415         (i386_pe_skip_trampoline_code): Update.
9416         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9417         * infcall.c (get_function_name): Update.
9418         * infcmd.c (until_next_command): Update.
9419         * jit.c (jit_breakpoint_re_set_internal): Update.
9420         (jit_inferior_init): Update.
9421         * linespec.c (minsym_found): Update.
9422         (add_minsym): Update.
9423         * linux-fork.c (info_checkpoints_command): Update.
9424         * linux-nat.c (get_signo): Update.
9425         * linux-thread-db.c (inferior_has_bug): Update.
9426         * m32c-tdep.c (m32c_return_value): Update.
9427         (m32c_m16c_address_to_pointer): Update.
9428         (m32c_m16c_pointer_to_address): Update.
9429         * m32r-tdep.c (m32r_frame_this_id): Update.
9430         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9431         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9432         * maint.c (maintenance_translate_address): Update.
9433         * minsyms.c (add_minsym_to_hash_table): Update.
9434         (add_minsym_to_demangled_hash_table): Update.
9435         (msymbol_objfile): Update.
9436         (lookup_minimal_symbol): Update.
9437         (iterate_over_minimal_symbols): Update.
9438         (lookup_minimal_symbol_text): Update.
9439         (lookup_minimal_symbol_by_pc_name): Update.
9440         (lookup_minimal_symbol_solib_trampoline): Update.
9441         (lookup_minimal_symbol_by_pc_section_1): Update.
9442         (lookup_minimal_symbol_and_objfile): Update.
9443         (prim_record_minimal_symbol_full): Update.
9444         (compare_minimal_symbols): Update.
9445         (compact_minimal_symbols): Update.
9446         (build_minimal_symbol_hash_tables): Update.
9447         (install_minimal_symbols): Update.
9448         (terminate_minimal_symbol_table): Update.
9449         (find_solib_trampoline_target): Update.
9450         (minimal_symbol_upper_bound): Update.
9451         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9452         * mips-tdep.c (mips_stub_frame_sniffer): Update.
9453         (mips_skip_pic_trampoline_code): Update.
9454         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9455         * objc-lang.c (selectors_info): Update.
9456         (classes_info): Update.
9457         (find_methods): Update.
9458         (find_imps): Update.
9459         (find_objc_msgsend): Update.
9460         * objfiles.c (objfile_relocate1): Update.
9461         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9462         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9463         * p-valprint.c (pascal_val_print): Update.
9464         * parse.c (write_exp_msymbol): Update.
9465         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9466         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9467         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9468         * printcmd.c (build_address_symbolic): Update.
9469         (sym_info): Update.
9470         (address_info): Update.
9471         * proc-service.c (ps_pglobal_lookup): Update.
9472         * psymtab.c (find_pc_sect_psymtab_closer): Update.
9473         (find_pc_sect_psymtab): Update.
9474         * python/py-framefilter.c (py_print_frame): Update.
9475         * ravenscar-thread.c (get_running_thread_id): Update.
9476         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9477         Update.
9478         * remote.c (remote_check_symbols): Update.
9479         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9480         (rs6000_skip_trampoline_code): Update.
9481         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9482         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9483         * solib-dsbt.c (lm_base): Update.
9484         * solib-frv.c (lm_base): Update.
9485         (main_got): Update.
9486         * solib-irix.c (locate_base): Update.
9487         * solib-som.c (som_solib_create_inferior_hook): Update.
9488         (som_solib_desire_dynamic_linker_symbols): Update.
9489         (link_map_start): Update.
9490         * solib-spu.c (spu_enable_break): Update.
9491         (ocl_enable_break): Update.
9492         * solib-svr4.c (elf_locate_base): Update.
9493         (enable_break): Update.
9494         * spu-tdep.c (spu_get_overlay_table): Update.
9495         (spu_catch_start): Update.
9496         (flush_ea_cache): Update.
9497         * stabsread.c (define_symbol): Update.
9498         (scan_file_globals): Update.
9499         * stack.c (find_frame_funname): Update.
9500         (frame_info): Update.
9501         * symfile.c (simple_read_overlay_table): Update.
9502         (simple_overlay_update): Update.
9503         * symmisc.c (dump_msymbols): Update.
9504         * symtab.c (fixup_section): Update.
9505         (find_pc_sect_line): Update.
9506         (skip_prologue_sal): Update.
9507         (search_symbols): Update.
9508         (print_msymbol_info): Update.
9509         (rbreak_command): Update.
9510         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9511         (completion_list_objc_symbol): Update.
9512         (default_make_symbol_completion_list_break_on): Update.
9513         * tracepoint.c (scope_info): Update.
9514         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9515         (tui_get_begin_asm_address): Update.
9516         * valops.c (find_function_in_inferior): Update.
9517         * value.c (value_static_field): Update.
9518         (value_fn_field): Update.
9519
9520 2014-02-26  Tom Tromey  <tromey@redhat.com>
9521
9522         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9523         bound minimal symbols.  Move code that knows about minsym
9524         table layout...
9525         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
9526         function.
9527         * minsyms.h (minimal_symbol_upper_bound): Declare.
9528         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9529         minimal_symbol_upper_bound.
9530
9531 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9532
9533         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9534         Use the type's name if its basic type does not have a tag.
9535
9536 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9537
9538         * dwarf2read.c (read_subrange_type): Add comment.
9539
9540 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9541
9542         * dwarf2read.c (update_enumeration_type_from_children): New
9543         function, mostly extracted from process_structure_scope.
9544         (read_enumeration_type): Call update_enumeration_type_from_children.
9545         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9546         and flag_flag_enum fields.
9547
9548 2014-02-26  Pedro Alves  <palves@redhat.com>
9549
9550         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9551         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9552         to_xfer_partial method.
9553
9554 2014-02-26  Pedro Alves  <palves@redhat.com>
9555
9556         * target.c (complete_target_initialization): Don't install
9557         default_xfer_partial as to_xfer_partial hook.
9558         (nomemory): Delete.
9559         (update_current_target): Don't INHERIT nor de_fault
9560         deprecated_xfer_memory.  Delete de_fault macro.
9561         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9562         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9563         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9564         field.
9565
9566 2014-02-26  Pedro Alves  <palves@redhat.com>
9567
9568         * go32-nat.c (my_write_child): New function.
9569         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9570         (go32_xfer_partial): New function.
9571         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9572         Instead install a to_xfer_partial hook.
9573
9574 2014-02-26  Pedro Alves  <palves@redhat.com>
9575
9576         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9577         to_xfer_partial helper.  Rewrite.
9578         (procfs_xfer_partial): New function.
9579         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9580         Install a to_xfer_partial hook.
9581
9582 2014-02-26  Pedro Alves  <palves@redhat.com>
9583
9584         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9585         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9586         (m32r_xfer_partial): New function.
9587         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9588         Install a to_xfer_partial hook.
9589
9590 2014-02-26  Pedro Alves  <palves@redhat.com>
9591
9592         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9593         helper.
9594         (mips_xfer_partial): New function.
9595         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9596         hook.  Install a to_xfer_partial hook.
9597
9598 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
9599
9600         * gdbtypes.h (create_array_type_with_stride): Add declaration.
9601         * gdbtypes.c (create_array_type_with_stride): New function,
9602         renaming create_array_type, but with an added parameter
9603         called "bit_stride".
9604         (create_array_type): Re-implement using
9605         create_array_type_with_stride.
9606         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9607         and DW_AT_bit_stride attributes.
9608
9609 2014-02-26  Pedro Alves  <palves@redhat.com>
9610
9611         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9612         task-specific breakpoints.
9613
9614 2014-02-25  Pedro Alves  <palves@redhat.com>
9615
9616         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9617         handling of object == TARGET_OBJECT_UNWIND_TABLE.
9618
9619 2014-02-25  Stan Shebs  <stan@codesourcery.com>
9620
9621         * defs.h: Annotate comments for Doxygen.
9622
9623 2014-02-25  Tom Tromey  <tromey@redhat.com>
9624
9625         * target.h (target_ignore): Don't declare.
9626         * target.c (target_ignore): Remove.
9627
9628 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9629
9630         PR gdb/16626
9631         * auto-load.c (auto_load_objfile_script_1): Change filename to
9632         debugfile.
9633
9634 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
9635
9636         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9637         documentation.  Adjust prototype to match the target_ops
9638         to_xfer_partial method.  Adjust implementation accordingly.
9639
9640 2014-02-25  Hui Zhu  <hui@codesourcery.com>
9641
9642         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9643         to_traceframe_info.
9644
9645 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
9646
9647         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9648         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9649         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9650         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9651         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9652         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9653         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9654         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9655         New constants.
9656         (rl78_register_type): Use a data pointer type for SP and
9657         new pseudo registers mentioned above.  Use a 16 bit integer
9658         type for all other register pairs.
9659         (rl78_register_name, rl78_g10_register_name): Update for
9660         new pseudo registers.
9661         (rl78_pseudo_register_read): Likewise.
9662         (rl78_pseudo_register_write): Likewise.
9663         (rl78_dwarf_reg_to_regnum): Return register numbers representing
9664         to the newly added pseudo registers.
9665
9666 2014-02-24  Doug Evans  <dje@google.com>
9667
9668         * value.c (record_latest_value): Fix comment.
9669         * printcmd.c (print_command_1): Remove code to handle -1 return from
9670         record_latest_value.
9671
9672 2014-02-24  Pedro Alves  <palves@redhat.com>
9673
9674         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9675         deprecated_xfer_memory hook.
9676         (procfs_xfer_partial): Call procfs_xfer_memory instead
9677         of the deprecated_xfer_memory target hook.
9678         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9679         helper.
9680
9681 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
9682
9683         * windows-nat.c (windows_xfer_shared_libraries): Return
9684         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9685         requested object is TARGET_OBJECT_LIBRARIES.
9686
9687 2014-02-24  Yao Qi  <yao@codesourcery.com>
9688
9689         * target.h (enum target_xfer_status)
9690         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9691         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9692         explicitly.  New.
9693         * corefile.c (memory_error_message): User updated.
9694         * exec.c (section_table_read_available_memory): Likewise.
9695         * record-btrace.c (record_btrace_xfer_partial): Likewise.
9696         * target.c (target_xfer_status_to_string): Likewise.
9697         (raw_memory_xfer_partial): Likewise.
9698         (memory_xfer_partial_1, target_xfer_partial): Likewise.
9699         * valops.c (read_value_memory): Likewise.
9700         * exec.h: Update comments.
9701
9702 2014-02-24  Yao Qi  <yao@codesourcery.com>
9703
9704         * target.c (target_xfer_status_to_string): Rename argument err
9705         to status.
9706         * target.h (target_xfer_status_to_string): Update declaration.
9707         Replace target_xfer_error_to_string with
9708         target_xfer_status_to_string in comment.
9709
9710 2014-02-24  Yao Qi  <yao@codesourcery.com>
9711
9712         * mips-linux-nat.c (super_close): Update its type.
9713         (mips_linux_close): Pass 'self' to super_close.
9714
9715 2014-02-24  Yao Qi  <yao@codesourcery.com>
9716
9717         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9718         * corefile.c (read_memory): Adjusted.
9719         * target.c (target_write_with_progress): Adjusted.
9720
9721 2014-02-23  Yao Qi  <yao@codesourcery.com>
9722
9723         Revert two patches:
9724
9725         2013-10-25  Yao Qi  <yao@codesourcery.com>
9726
9727         * remote.c (remote_traceframe_info): Return early if
9728         traceframe is not selected.
9729
9730         2013-07-19  Yao Qi  <yao@codesourcery.com>
9731
9732         * target.c (update_current_target): Change the default action
9733         of 'to_traceframe_info' from tcomplain to return_zero.
9734         * target.h (struct target_ops) <to_traceframe_info>: Add more
9735         comments.
9736
9737 2014-02-23  Yao Qi  <yao@codesourcery.com>
9738
9739         * valops.c (read_value_memory): Rewrite it.  Call
9740         target_xfer_partial in a loop.
9741         * exec.h (section_table_available_memory): Remove declaration.
9742         Move comments to ...
9743         * exec.c (section_table_available_memory): ... here.  Make it
9744         static.
9745
9746 2014-02-23  Yao Qi  <yao@codesourcery.com>
9747
9748         * exec.c (section_table_read_available_memory): New function.
9749         * exec.h (section_table_read_available_memory): Declare.
9750         * ctf.c (ctf_xfer_partial): Call
9751         section_table_read_available_memory.
9752         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9753
9754 2014-02-23  Yao Qi  <yao@codesourcery.com>
9755
9756         * ctf.c (ctf_xfer_partial): Move code to ...
9757         * exec.c (exec_read_partial_read_only): ... it.  New function.
9758         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9759         * tracefile.c: Include "exec.h".
9760         * exec.h (exec_read_partial_read_only): Declare.
9761
9762 2014-02-23  Yao Qi  <yao@codesourcery.com>
9763
9764         * tracefile-tfile.c (tfile_has_all_memory): Remove.
9765         (tfile_has_memory): Remove.
9766         (init_tfile_ops): Don't set fields to_has_all_memory and
9767         to_has_memory of tfile_ops.
9768         * tracefile.c (tracefile_has_all_memory): New function.
9769         (tracefile_has_memory): New function.
9770         (init_tracefile_ops): Initialize fields to_has_all_memory and
9771         to_has_memory of 'ops'.
9772
9773 2014-02-23  Yao Qi  <yao@codesourcery.com>
9774
9775         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9776         (ctf_thread_alive, ctf_get_trace_status): Remove.
9777         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
9778         init_tracefile_ops.
9779         * tracefile-tfile.c (tfile_get_trace_status): Remove.
9780         (tfile_has_stack, tfile_has_registers): Remove.
9781         (tfile_thread_alive): Remove.
9782         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
9783         init_tracefile_ops.
9784         * tracefile.c (tracefile_has_stack): New function.
9785         (tracefile_has_registers): New function.
9786         (tracefile_thread_alive): New function.
9787         (tracefile_get_trace_status): New function.
9788         (init_tracefile_ops): New function.
9789         * tracefile.h (init_tracefile_ops): Declare.
9790
9791 2014-02-23  Yao Qi  <yao@codesourcery.com>
9792
9793         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9794         (O_LARGEFILE): Likewise.
9795         (tfile_ops): Likewise.
9796         (TRACE_HEADER_SIZE): Likewise.
9797         (trace_fd, trace_frames_offset, cur_offset): Likewise.
9798         (cur_data_size): Likewise.
9799         (tfile_read, tfile_open, tfile_interp_line): Likewise.
9800         (tfile_close, tfile_files_info): Likewise.
9801         (tfile_get_trace_status): Likewise.
9802         (tfile_get_tracepoint_status): Likewise.
9803         (tfile_get_traceframe_address): Likewise.
9804         (tfile_trace_find, match_blocktype): Likewise.
9805         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9806         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9807         (tfile_get_trace_state_variable_value): Likewise.
9808         (tfile_has_all_memory, tfile_has_memory): Likewise.
9809         (tfile_has_stack, tfile_has_registers): Likewise.
9810         (tfile_thread_alive, build_traceframe_info): Likewise.
9811         (tfile_traceframe_info, init_tfile_ops): Likewise.
9812         (_initialize_tracepoint): Don't call init_tfile_ops
9813         and add_target_with_completer.
9814         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9815         exec.h, completer.h and filenames.h.
9816         (_initialize_tracefile_tfile): New function.
9817
9818 2014-02-23  Yao Qi  <yao@codesourcery.com>
9819
9820         * Makefile.in (REMOTE_OBS): Append tracefile.o and
9821         tracefile-tfile.o.
9822         (HFILES_NO_SRCDIR): Add tracefile.h.
9823         * ctf.c: Include "tracefile.h".
9824         * tracefile.h: New file.
9825         * tracefile.c: New file
9826         * tracefile-tfile.c: New file.
9827         * tracepoint.c: Include "tracefile.h".
9828         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9829         (stop_reason_names): Add const.
9830         (trace_file_writer_xfree): Move it to tracefile.c.
9831         (trace_save, trace_save_command, trace_save_tfile): Likewise.
9832         (trace_save_ctf): Likewise.
9833         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9834         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9835         (tfile_write_header, tfile_write_regblock_type): Likewise.
9836         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9837         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9838         (tfile_write_raw_data, tfile_end): Likewise.
9839         (tfile_trace_file_writer_new): Likewise.
9840         (free_uploaded_tp): Make it extern.
9841         (free_uploaded_tsv): Make it extern.
9842         (_initialize_tracepoint): Move code to register command 'tsave'
9843         to tracefile.c.
9844         * tracepoint.h (stop_reason_names): Declare.
9845         (struct trace_frame_write_ops): Move it to tracefile.h.
9846         (struct trace_file_write_ops): Likewise.
9847         (struct trace_file_writer): Likewise.
9848         (free_uploaded_tsvs, free_uploaded_tps): Declare.
9849
9850 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9851
9852         PR gdb/16594
9853         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9854         process name.
9855         (get_cores_used_by_process): New parameter num_cores, use it.
9856         (linux_xfer_osdata_processes): Pass num_cores to it.
9857         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9858         process name.
9859
9860 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
9861
9862         * target.c (memory_xfer_partial): Fix length arg in call to
9863         breakpoint_xfer_memory.
9864
9865 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
9866
9867         PR tdep/16397
9868         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9869         number comes after the + or - signs.  Adjust length of register
9870         name to be extracted.
9871
9872 2014-02-20  Tom Tromey  <tromey@redhat.com>
9873
9874         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9875         (ada_varobj_ops): Mark "extern".
9876
9877 2014-02-20  Tom Tromey  <tromey@redhat.com>
9878
9879         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9880
9881 2014-02-20  Doug Evans  <xdje42@gmail.com>
9882
9883         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9884         All callers updated.
9885         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9886         All callers updated.
9887         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9888         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9889
9890 2014-02-20  lin zuojian  <manjian2006@gmail.com>
9891             Joel Brobecker  <brobecker@adacore.com>
9892             Doug Evans  <xdje42@gmail.com>
9893
9894         PR symtab/16581
9895         * dwarf2read.c (struct die_info): New member in_process.
9896         (reset_die_in_process): New function.
9897         (process_die): Set it at the start, reset when returning.
9898         (inherit_abstract_dies): Only call process_die if origin_child_die
9899         not already being processed.
9900
9901 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9902
9903         * windows-nat.c (handle_unload_dll): Add function documentation.
9904         (do_initial_windows_stuff): Add comment explaining why we wait
9905         until after inferior initialization has finished before
9906         processing all DLLs.
9907
9908 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9909
9910         * windows-nat.c (get_module_name): Delete.
9911         (windows_get_exec_module_filename): New function, mostly
9912         inspired from get_module_name.
9913         (windows_pid_to_exec_file): Replace call to get_module_name
9914         by call to windows_get_exec_module_filename.
9915
9916 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9917
9918         * windows-nat.c (handle_load_dll): Rewrite this function's
9919         introductory comment.  Remove code using get_module_name
9920         to get the DLL's name.
9921
9922 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9923
9924         * windows-nat.c (get_windows_debug_event): Ignore
9925         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9926         if windows_initialization_done == 0.
9927         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9928         Adjust implementation to always load all DLLs.
9929         (do_initial_windows_stuff): Replace call to
9930         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9931
9932 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9933
9934         * windows-nat.c (_initialize_windows_nat): Deprecate the
9935         "dll-symbols" command.  Turn the "add-shared-symbol-files"
9936         and "assf" aliases into commands, and deprecate them as well.
9937         * NEWS: Add entry explaining that "dll-symbols" and its two
9938         aliases are now deprecated.
9939
9940 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9941
9942         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9943         new-line in debug string.  Remove trailing spaces.
9944
9945 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9946
9947         * darwin-nat.c (darwin_xfer_partial): Fix return type.
9948
9949 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
9950
9951         * NEWS: Add entry for the new feature
9952         * python/py-value.c (valpy_binop): Call value_x_binop for struct
9953         and class values.
9954
9955 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9956
9957         * MAINTAINERS: List Yao Qi as nios2 maintainer.
9958
9959 2014-02-19  Pedro Alves  <palves@redhat.com>
9960
9961         * common/ptid.h (struct ptid): Mention that process_stratum
9962         targets should prefer ptid.lwp.
9963
9964 2014-02-19  Pedro Alves  <palves@redhat.com>
9965
9966         * remote.c (remote_thread_alive, write_ptid, read_ptid)
9967         (read_ptid, remote_newthread_step, remote_threads_extra_info)
9968         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9969         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9970         store remote thread ids rather than ptid.tid.
9971         (_initialize_remote): Adjust.
9972
9973 2014-02-19  Tom Tromey  <tromey@redhat.com>
9974
9975         * target.c (target_get_unwinder): Rewrite.
9976         (target_get_tailcall_unwinder): Rewrite.
9977         * record-btrace.c (record_btrace_to_get_unwinder): New function.
9978         (record_btrace_to_get_tailcall_unwinder): New function.
9979         (init_record_btrace_ops): Update.
9980         * target.h (struct target_ops) <to_get_unwinder,
9981         to_get_tailcall_unwinder>: Now function pointers.  Use
9982         TARGET_DEFAULT_RETURN.
9983
9984 2014-02-19  Tom Tromey  <tromey@redhat.com>
9985
9986         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9987         argument.
9988         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9989
9990 2014-02-19  Tom Tromey  <tromey@redhat.com>
9991
9992         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9993         directly.
9994         * target-delegates.c: Rebuild.
9995         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9996         TARGET_DEFAULT_FUNC.
9997         * target.c (default_target_decr_pc_after_break): Rename from
9998         forward_target_decr_pc_after_break.  Simplify.
9999         (target_decr_pc_after_break): Rely on delegation.
10000
10001 2014-02-19  Tom Tromey  <tromey@redhat.com>
10002
10003         * target.c (update_current_target): Do not INHERIT to_doc or
10004         to_magic.  Do not de_fault to_open or to_close.
10005
10006 2014-02-19  Tom Tromey  <tromey@redhat.com>
10007
10008         * gcore.h (objfile_find_memory_regions): Declare.
10009         * gcore.c (objfile_find_memory_regions): No longer static.  Add
10010         "self" argument.
10011         (_initialize_gcore): Don't call exec_set_find_memory_regions.
10012         * exec.c: Include gcore.h.
10013         (exec_set_find_memory_regions): Remove.
10014         (exec_find_memory_regions): Remove.
10015         (exec_do_find_memory_regions): Remove.
10016         (init_exec_ops): Update.
10017         * defs.h (exec_set_find_memory_regions): Remove.
10018
10019 2014-02-19  Tom Tromey  <tromey@redhat.com>
10020
10021         * target-delegates.c: Rebuild.
10022         * target.h (struct target_ops) <to_extra_thread_info,
10023         to_thread_name, to_pid_to_exec_file, to_get_section_table,
10024         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10025         not 0, in TARGET_DEFAULT_RETURN.
10026
10027 2014-02-19  Tom Tromey  <tromey@redhat.com>
10028
10029         * target.c (complete_target_initialization): Remove casts.  Use
10030         return_zero_has_execution.
10031         (return_zero): Add "ignore" argument.
10032         (return_zero_has_execution): New function.
10033         (init_dummy_target): Remove casts.  Use
10034         return_zero_has_execution.
10035
10036 2014-02-19  Tom Tromey  <tromey@redhat.com>
10037
10038         * target.c (update_current_target): Update comments.  Do not
10039         INHERIT to_stratum.
10040
10041 2014-02-19  Tom Tromey  <tromey@redhat.com>
10042
10043         * arm-linux-nat.c (arm_linux_read_description): Delegate when
10044         needed.
10045         * corelow.c (core_read_description): Delegate when needed.
10046         * remote.c (remote_read_description): Delegate when needed.
10047         * target-delegates.c: Rebuild.
10048         * target.c (target_read_description): Rewrite.
10049         * target.h (struct target_ops) <to_read_description>: Update
10050         comment.  Use TARGET_DEFAULT_RETURN.
10051
10052 2014-02-19  Tom Tromey  <tromey@redhat.com>
10053
10054         * target-delegates.c: Rebuild.
10055         * target.c (update_current_target): Don't inherit or default
10056         to_can_run.
10057         (find_default_run_target): Check against delegate_can_run.
10058         * target.h (struct target_ops) <to_can_run>: Use
10059         TARGET_DEFAULT_RETURN.
10060
10061 2014-02-19  Tom Tromey  <tromey@redhat.com>
10062
10063         * target-delegates.c: Rebuild.
10064         * target.c (target_disconnect): Unconditionally delegate.
10065         * target.h (struct target_ops) <to_disconnect>: Use
10066         TARGET_DEFAULT_NORETURN.
10067
10068 2014-02-19  Tom Tromey  <tromey@redhat.com>
10069
10070         * record.c (record_stop): Unconditionally delegate.
10071         * target-delegates.c: Rebuild.
10072         * target.c (target_stop_recording): Unconditionally delegate.
10073         * target.h (struct target_ops) <to_stop_recording>: Use
10074         TARGET_DEFAULT_IGNORE.
10075
10076 2014-02-19  Tom Tromey  <tromey@redhat.com>
10077
10078         * target-delegates.c: Rebuild.
10079         * target.c (target_enable_btrace): Unconditionally delegate.
10080         * target.h (struct target_ops) <to_enable_btrace>: Use
10081         TARGET_DEFAULT_NORETURN.
10082
10083 2014-02-19  Tom Tromey  <tromey@redhat.com>
10084
10085         * target-delegates.c: Rebuild.
10086         * target.c (target_read_btrace): Unconditionally delegate.
10087         * target.h (struct target_ops) <to_read_btrace>: Use
10088         TARGET_DEFAULT_NORETURN.
10089
10090 2014-02-19  Tom Tromey  <tromey@redhat.com>
10091
10092         * target-delegates.c: Rebuild.
10093         * target.c (target_teardown_btrace): Unconditionally delegate.
10094         * target.h (struct target_ops) <to_teardown_btrace>: Use
10095         TARGET_DEFAULT_NORETURN.
10096
10097 2014-02-19  Tom Tromey  <tromey@redhat.com>
10098
10099         * target-delegates.c: Rebuild.
10100         * target.c (target_disable_btrace): Unconditionally delegate.
10101         * target.h (struct target_ops) <to_disable_btrace>: Use
10102         TARGET_DEFAULT_NORETURN.
10103
10104 2014-02-19  Tom Tromey  <tromey@redhat.com>
10105
10106         * target-delegates.c: Rebuild.
10107         * target.c (default_search_memory): New function.
10108         (simple_search_memory): Update comment.
10109         (target_search_memory): Unconditionally delegate.
10110         * target.h (struct target_ops) <to_search_memory>: Use
10111         TARGET_DEFAULT_FUNC.
10112
10113 2014-02-19  Tom Tromey  <tromey@redhat.com>
10114
10115         * auxv.c (default_auxv_parse): No longer static.
10116         (target_auxv_parse): Unconditionally delegate.
10117         * auxv.h (default_auxv_parse): Declare.
10118         * target-delegates.c: Rebuild.
10119         * target.c: Include auxv.h.
10120         * target.h (struct target_ops) <to_auxv_parse>: Use
10121         TARGET_DEFAULT_FUNC.
10122
10123 2014-02-19  Tom Tromey  <tromey@redhat.com>
10124
10125         * target-delegates.c: Rebuild.
10126         * target.c (target_memory_map): Unconditionally delegate.
10127         * target.h (struct target_ops) <to_memory_map>: Use
10128         TARGET_DEFAULT_RETURN.
10129
10130 2014-02-19  Tom Tromey  <tromey@redhat.com>
10131
10132         * target-delegates.c: Rebuild.
10133         * target.c (target_thread_alive): Unconditionally delegate.
10134         * target.h (struct target_ops) <to_thread_alive>: Use
10135         TARGET_DEFAULT_RETURN.
10136
10137 2014-02-19  Tom Tromey  <tromey@redhat.com>
10138
10139         * target-delegates.c: Rebuild.
10140         * target.c (target_save_record): Unconditionally delegate.
10141         * target.h (struct target_ops) <to_save_record>: Use
10142         TARGET_DEFAULT_NORETURN.
10143
10144 2014-02-19  Tom Tromey  <tromey@redhat.com>
10145
10146         * target-delegates.c: Rebuild.
10147         * target.c (target_delete_record): Unconditionally delegate.
10148         * target.h (struct target_ops) <to_delete_record>: Use
10149         TARGET_DEFAULT_NORETURN.
10150
10151 2014-02-19  Tom Tromey  <tromey@redhat.com>
10152
10153         * target-delegates.c: Rebuild.
10154         * target.c (target_record_is_replaying): Unconditionally
10155         delegate.
10156         * target.h (struct target_ops) <to_record_is_replaying>: Use
10157         TARGET_DEFAULT_RETURN.
10158
10159 2014-02-19  Tom Tromey  <tromey@redhat.com>
10160
10161         * target-delegates.c: Rebuild.
10162         * target.c (target_goto_record_begin): Unconditionally delegate.
10163         * target.h (struct target_ops) <to_goto_record_begin>: Use
10164         TARGET_DEFAULT_NORETURN.
10165
10166 2014-02-19  Tom Tromey  <tromey@redhat.com>
10167
10168         * target-delegates.c: Rebuild.
10169         * target.c (target_goto_record_end): Unconditionally delegate.
10170         * target.h (struct target_ops) <to_goto_record_end>: Use
10171         TARGET_DEFAULT_NORETURN.
10172
10173 2014-02-19  Tom Tromey  <tromey@redhat.com>
10174
10175         * target-delegates.c: Rebuild.
10176         * target.c (target_goto_record): Unconditionally delegate.
10177         * target.h (struct target_ops) <to_goto_record>: Use
10178         TARGET_DEFAULT_NORETURN.
10179
10180 2014-02-19  Tom Tromey  <tromey@redhat.com>
10181
10182         * target-delegates.c: Rebuild.
10183         * target.c (target_insn_history): Unconditionally delegate.
10184         * target.h (struct target_ops) <to_insn_history>: Use
10185         TARGET_DEFAULT_NORETURN.
10186
10187 2014-02-19  Tom Tromey  <tromey@redhat.com>
10188
10189         * target-delegates.c: Rebuild.
10190         * target.c (target_insn_history_from): Unconditionally delegate.
10191         * target.h (struct target_ops) <to_insn_history_from>: Use
10192         TARGET_DEFAULT_NORETURN.
10193
10194 2014-02-19  Tom Tromey  <tromey@redhat.com>
10195
10196         * target-delegates.c: Rebuild.
10197         * target.c (target_insn_history_range): Unconditionally delegate.
10198         * target.h (struct target_ops) <to_insn_history_range>: Use
10199         TARGET_DEFAULT_NORETURN.
10200
10201 2014-02-19  Tom Tromey  <tromey@redhat.com>
10202
10203         * target-delegates.c: Rebuild.
10204         * target.c (target_call_history): Unconditionally delegate.
10205         * target.h (struct target_ops) <to_call_history>: Use
10206         TARGET_DEFAULT_NORETURN.
10207
10208 2014-02-19  Tom Tromey  <tromey@redhat.com>
10209
10210         * target-delegates.c: Rebuild.
10211         * target.c (target_call_history_from): Unconditionally delegate.
10212         * target.h (struct target_ops) <to_call_history_from>: Use
10213         TARGET_DEFAULT_NORETURN.
10214
10215 2014-02-19  Tom Tromey  <tromey@redhat.com>
10216
10217         * target-delegates.c: Rebuild.
10218         * target.c (target_call_history_range): Unconditionally delegate.
10219         * target.h (struct target_ops) <to_call_history_range>: Use
10220         TARGET_DEFAULT_NORETURN.
10221
10222 2014-02-19  Tom Tromey  <tromey@redhat.com>
10223
10224         * target-delegates.c: Rebuild.
10225         * target.c (target_verify_memory): Unconditionally delegate.
10226         * target.h (struct target_ops) <to_verify_memory>: Use
10227         TARGET_DEFAULT_NORETURN.
10228
10229 2014-02-19  Tom Tromey  <tromey@redhat.com>
10230
10231         * target-delegates.c: Rebuild.
10232         * target.c (target_core_of_thread): Unconditionally delegate.
10233         * target.h (struct target_ops) <to_core_of_thread>: Use
10234         TARGET_DEFAULT_RETURN.
10235
10236 2014-02-19  Tom Tromey  <tromey@redhat.com>
10237
10238         * target-delegates.c: Rebuild.
10239         * target.c (target_flash_done): Unconditionally delegate.
10240         * target.h (struct target_ops) <to_flash_done>: Use
10241         TARGET_DEFAULT_NORETURN.
10242
10243 2014-02-19  Tom Tromey  <tromey@redhat.com>
10244
10245         * target-delegates.c: Rebuild.
10246         * target.c (target_flash_erase): Unconditionally delegate.
10247         * target.h (struct target_ops) <to_flash_erase>: Use
10248         TARGET_DEFAULT_NORETURN.
10249
10250 2014-02-19  Tom Tromey  <tromey@redhat.com>
10251
10252         * target-delegates.c: Rebuild.
10253         * target.c (target_get_section_table): Unconditionally delegate.
10254         * target.h (struct target_ops) <to_get_section_table>: Use
10255         TARGET_DEFAULT_RETURN.
10256
10257 2014-02-19  Tom Tromey  <tromey@redhat.com>
10258
10259         * target-delegates.c: Rebuild.
10260         * target.c (target_pid_to_str): Unconditionally delegate.
10261         (init_dummy_target): Don't initialize to_pid_to_str.
10262         (default_pid_to_str): Rename from dummy_pid_to_str.
10263         * target.h (struct target_ops) <to_pid_to_str>: Use
10264         TARGET_DEFAULT_FUNC.
10265
10266 2014-02-19  Tom Tromey  <tromey@redhat.com>
10267
10268         * target-delegates.c: Rebuild.
10269         * target.c (target_find_new_threads): Unconditionally delegate.
10270         * target.h (struct target_ops) <to_find_new_threads>: Use
10271         TARGET_DEFAULT_RETURN.
10272
10273 2014-02-19  Tom Tromey  <tromey@redhat.com>
10274
10275         * target-delegates.c: Rebuild.
10276         * target.c (target_program_signals): Unconditionally delegate.
10277         * target.h (struct target_ops) <to_program_signals>: Use
10278         TARGET_DEFAULT_IGNORE.
10279
10280 2014-02-19  Tom Tromey  <tromey@redhat.com>
10281
10282         * target-delegates.c: Rebuild.
10283         * target.c (target_pass_signals): Unconditionally delegate.
10284         * target.h (struct target_ops) <to_pass_signals>: Use
10285         TARGET_DEFAULT_IGNORE.
10286
10287 2014-02-19  Tom Tromey  <tromey@redhat.com>
10288
10289         * target-delegates.c: Rebuild.
10290         * target.c (default_mourn_inferior): New function.
10291         (target_mourn_inferior): Unconditionally delegate.
10292         * target.h (struct target_ops) <to_mourn_inferior>: Use
10293         TARGET_DEFAULT_FUNC.
10294
10295 2014-02-19  Tom Tromey  <tromey@redhat.com>
10296
10297         * target-delegates.c: Rebuild.
10298         * target.c (default_follow_fork): New function.
10299         (target_follow_fork): Unconditionally delegate.
10300         * target.h (struct target_ops) <to_follow_fork>: Use
10301         TARGET_DEFAULT_FUNC.
10302
10303 2014-02-19  Tom Tromey  <tromey@redhat.com>
10304
10305         * target-delegates.c: Rebuild.
10306         * target.c (target_kill): Unconditionally delegate.
10307         * target.h (struct target_ops) <to_kill>: Use
10308         TARGET_DEFAULT_NORETURN.
10309
10310 2014-02-19  Tom Tromey  <tromey@redhat.com>
10311
10312         * target-delegates.c: Rebuild.
10313         * target.c (target_masked_watch_num_registers): Unconditionally
10314         delegate.
10315         * target.h (struct target_ops) <to_masked_watch_num_registers>:
10316         Use TARGET_DEFAULT_RETURN.
10317
10318 2014-02-19  Tom Tromey  <tromey@redhat.com>
10319
10320         * target-delegates.c: Rebuild.
10321         * target.c (target_remove_mask_watchpoint): Unconditionally
10322         delegate.
10323         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10324         TARGET_DEFAULT_RETURN.
10325
10326 2014-02-19  Tom Tromey  <tromey@redhat.com>
10327
10328         * target-delegates.c: Rebuild.
10329         * target.c (target_insert_mask_watchpoint): Unconditionally
10330         delegate.
10331         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10332         TARGET_DEFAULT_RETURN.
10333
10334 2014-02-19  Tom Tromey  <tromey@redhat.com>
10335
10336         * target-delegates.c: Rebuild.
10337         * target.c (target_ranged_break_num_registers): Unconditionally
10338         delegate.
10339         * target.h (struct target_ops) <to_ranged_break_num_registers>:
10340         Use TARGET_DEFAULT_RETURN.
10341
10342 2014-02-19  Tom Tromey  <tromey@redhat.com>
10343
10344         * target-delegates.c: Rebuild.
10345         * target.c (target_fetch_registers): Unconditionally delegate.
10346         * target.h (struct target_ops) <to_fetch_registers>: Use
10347         TARGET_DEFAULT_NORETURN.
10348
10349 2014-02-19  Tom Tromey  <tromey@redhat.com>
10350
10351         * target-delegates.c: Rebuild.
10352         * target.c (update_current_target): Don't inherit or default
10353         to_stop.
10354         * target.h (struct target_ops) <to_stop>: Use
10355         TARGET_DEFAULT_IGNORE.
10356
10357 2014-02-19  Tom Tromey  <tromey@redhat.com>
10358
10359         * target-delegates.c: Rebuild.
10360         * target.c (update_current_target): Don't inherit or default
10361         to_can_run_breakpoint_commands.
10362         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10363         Use TARGET_DEFAULT_RETURN.
10364
10365 2014-02-19  Tom Tromey  <tromey@redhat.com>
10366
10367         * target-delegates.c: Rebuild.
10368         * target.c (update_current_target): Don't inherit or default
10369         to_supports_evaluation_of_breakpoint_conditions.
10370         * target.h (struct target_ops)
10371         <to_supports_evaluation_of_breakpoint_conditions>: Use
10372         TARGET_DEFAULT_RETURN.
10373
10374 2014-02-19  Tom Tromey  <tromey@redhat.com>
10375
10376         * target-delegates.c: Rebuild.
10377         * target.c (update_current_target): Don't inherit or default
10378         to_augmented_libraries_svr4_read.
10379         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10380         Use TARGET_DEFAULT_RETURN.
10381
10382 2014-02-19  Tom Tromey  <tromey@redhat.com>
10383
10384         * target-delegates.c: Rebuild.
10385         * target.c (update_current_target): Don't inherit or default
10386         to_can_use_agent.
10387         * target.h (struct target_ops) <to_can_use_agent>: Use
10388         TARGET_DEFAULT_RETURN.
10389
10390 2014-02-19  Tom Tromey  <tromey@redhat.com>
10391
10392         * target-delegates.c: Rebuild.
10393         * target.c (update_current_target): Don't inherit or default
10394         to_use_agent.
10395         * target.h (struct target_ops) <to_use_agent>: Use
10396         TARGET_DEFAULT_NORETURN.
10397
10398 2014-02-19  Tom Tromey  <tromey@redhat.com>
10399
10400         * target-delegates.c: Rebuild.
10401         * target.c (update_current_target): Don't inherit or default
10402         to_traceframe_info.
10403         (return_null): Remove.
10404         * target.h (struct target_ops) <to_traceframe_info>: Use
10405         TARGET_DEFAULT_RETURN.
10406
10407 2014-02-19  Tom Tromey  <tromey@redhat.com>
10408
10409         * target-delegates.c: Rebuild.
10410         * target.c (update_current_target): Don't inherit or default
10411         to_static_tracepoint_markers_by_strid.
10412         * target.h (struct target_ops)
10413         <to_static_tracepoint_markers_by_strid>: Use
10414         TARGET_DEFAULT_NORETURN.
10415
10416 2014-02-19  Tom Tromey  <tromey@redhat.com>
10417
10418         * target-delegates.c: Rebuild.
10419         * target.c (update_current_target): Don't inherit or default
10420         to_static_tracepoint_marker_at.
10421         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10422         Use TARGET_DEFAULT_RETURN.
10423
10424 2014-02-19  Tom Tromey  <tromey@redhat.com>
10425
10426         * target-delegates.c: Rebuild.
10427         * target.c (update_current_target): Don't inherit or default
10428         to_set_permissions.
10429         * target.h (struct target_ops) <to_set_permissions>: Use
10430         TARGET_DEFAULT_IGNORE.
10431
10432 2014-02-19  Tom Tromey  <tromey@redhat.com>
10433
10434         * target-delegates.c: Rebuild.
10435         * target.c (update_current_target): Don't inherit or default
10436         to_get_tib_address.
10437         * target.h (struct target_ops) <to_get_tib_address>: Use
10438         TARGET_DEFAULT_NORETURN.
10439
10440 2014-02-19  Tom Tromey  <tromey@redhat.com>
10441
10442         * target-delegates.c: Rebuild.
10443         * target.c (update_current_target): Don't inherit or default
10444         to_set_trace_notes.
10445         * target.h (struct target_ops) <to_set_trace_notes>: Use
10446         TARGET_DEFAULT_RETURN.
10447
10448 2014-02-19  Tom Tromey  <tromey@redhat.com>
10449
10450         * target-delegates.c: Rebuild.
10451         * target.c (update_current_target): Don't initialize
10452         to_set_trace_buffer_size.
10453         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10454         TARGET_DEFAULT_IGNORE.
10455
10456 2014-02-19  Tom Tromey  <tromey@redhat.com>
10457
10458         * target-delegates.c: Rebuild.
10459         * target.c (update_current_target): Don't inherit or default
10460         to_set_circular_trace_buffer.
10461         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10462         TARGET_DEFAULT_IGNORE.
10463
10464 2014-02-19  Tom Tromey  <tromey@redhat.com>
10465
10466         * target-delegates.c: Rebuild.
10467         * target.c (update_current_target): Don't inherit or default
10468         to_set_disconnected_tracing.
10469         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10470         TARGET_DEFAULT_IGNORE.
10471
10472 2014-02-19  Tom Tromey  <tromey@redhat.com>
10473
10474         * target-delegates.c: Rebuild.
10475         * target.c (update_current_target): Don't inherit or default
10476         to_get_min_fast_tracepoint_insn_len.
10477         (return_minus_one): Remove.
10478         * target.h (struct target_ops)
10479         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10480
10481 2014-02-19  Tom Tromey  <tromey@redhat.com>
10482
10483         * target-delegates.c: Rebuild.
10484         * target.c (update_current_target): Don't inherit or default
10485         to_get_raw_trace_data.
10486         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10487         TARGET_DEFAULT_NORETURN.
10488
10489 2014-02-19  Tom Tromey  <tromey@redhat.com>
10490
10491         * target-delegates.c: Rebuild.
10492         * target.c (update_current_target): Don't inherit or default
10493         to_upload_trace_state_variables.
10494         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10495         Use TARGET_DEFAULT_RETURN.
10496
10497 2014-02-19  Tom Tromey  <tromey@redhat.com>
10498
10499         * target-delegates.c: Rebuild.
10500         * target.c (update_current_target): Don't inherit or default
10501         to_upload_tracepoints.
10502         * target.h (struct target_ops) <to_upload_tracepoints>: Use
10503         TARGET_DEFAULT_RETURN.
10504
10505 2014-02-19  Tom Tromey  <tromey@redhat.com>
10506
10507         * target-delegates.c: Rebuild.
10508         * target.c (update_current_target): Don't inherit or default
10509         to_save_trace_data.
10510         * target.h (struct target_ops) <to_save_trace_data>: Use
10511         TARGET_DEFAULT_NORETURN.
10512
10513 2014-02-19  Tom Tromey  <tromey@redhat.com>
10514
10515         * target-delegates.c: Rebuild.
10516         * target.c (update_current_target): Don't inherit or default
10517         to_get_trace_state_variable_value.
10518         * target.h (struct target_ops)
10519         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10520
10521 2014-02-19  Tom Tromey  <tromey@redhat.com>
10522
10523         * target-delegates.c: Rebuild.
10524         * target.c (update_current_target): Don't inherit or default
10525         to_trace_find.
10526         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10527
10528 2014-02-19  Tom Tromey  <tromey@redhat.com>
10529
10530         * target-delegates.c: Rebuild.
10531         * target.c (update_current_target): Don't inherit or default
10532         to_trace_stop.
10533         * target.h (struct target_ops) <to_trace_stop>: Use
10534         TARGET_DEFAULT_NORETURN.
10535
10536 2014-02-19  Tom Tromey  <tromey@redhat.com>
10537
10538         * target-delegates.c: Rebuild.
10539         * target.c (update_current_target): Don't inherit or default
10540         to_get_tracepoint_status.
10541         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10542         TARGET_DEFAULT_NORETURN.
10543
10544 2014-02-19  Tom Tromey  <tromey@redhat.com>
10545
10546         * target-delegates.c: Rebuild.
10547         * target.c (update_current_target): Don't inherit or default
10548         to_get_trace_status.
10549         * target.h (struct target_ops) <to_get_trace_status>: Use
10550         TARGET_DEFAULT_RETURN.
10551
10552 2014-02-19  Tom Tromey  <tromey@redhat.com>
10553
10554         * target-delegates.c: Rebuild.
10555         * target.c (update_current_target): Don't inherit or default
10556         to_trace_start.
10557         * target.h (struct target_ops) <to_trace_start>: Use
10558         TARGET_DEFAULT_NORETURN.
10559
10560 2014-02-19  Tom Tromey  <tromey@redhat.com>
10561
10562         * target-delegates.c: Rebuild.
10563         * target.c (update_current_target): Don't inherit or default
10564         to_trace_set_readonly_regions.
10565         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10566         Use TARGET_DEFAULT_NORETURN.
10567
10568 2014-02-19  Tom Tromey  <tromey@redhat.com>
10569
10570         * target-delegates.c: Rebuild.
10571         * target.c (update_current_target): Don't inherit or default
10572         to_disable_tracepoint.
10573         * target.h (struct target_ops) <to_disable_tracepoint>: Use
10574         TARGET_DEFAULT_NORETURN.
10575
10576 2014-02-19  Tom Tromey  <tromey@redhat.com>
10577
10578         * target-delegates.c: Rebuild.
10579         * target.c (update_current_target): Don't inherit or default
10580         to_enable_tracepoint.
10581         * target.h (struct target_ops) <to_enable_tracepoint>: Use
10582         TARGET_DEFAULT_NORETURN.
10583
10584 2014-02-19  Tom Tromey  <tromey@redhat.com>
10585
10586         * target-delegates.c: Rebuild.
10587         * target.c (update_current_target): Don't inherit or default
10588         to_download_trace_state_variable.
10589         * target.h (struct target_ops) <to_download_trace_state_variable>:
10590         Use TARGET_DEFAULT_NORETURN.
10591
10592 2014-02-19  Tom Tromey  <tromey@redhat.com>
10593
10594         * target-delegates.c: Rebuild.
10595         * target.c (update_current_target): Don't inherit or default
10596         to_can_download_tracepoint.
10597         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10598         TARGET_DEFAULT_RETURN.
10599
10600 2014-02-19  Tom Tromey  <tromey@redhat.com>
10601
10602         * target-delegates.c: Rebuild.
10603         * target.c (update_current_target): Don't inherit or default
10604         to_download_tracepoint.
10605         * target.h (struct target_ops) <to_download_tracepoint>: Use
10606         TARGET_DEFAULT_NORETURN.
10607
10608 2014-02-19  Tom Tromey  <tromey@redhat.com>
10609
10610         * target-delegates.c: Rebuild.
10611         * target.c (update_current_target): Don't inherit or default
10612         to_trace_init.
10613         * target.h (struct target_ops) <to_trace_init>: Use
10614         TARGET_DEFAULT_RETURN.
10615
10616 2014-02-19  Tom Tromey  <tromey@redhat.com>
10617
10618         * target-delegates.c: Rebuild.
10619         * target.c (update_current_target): Don't inherit or default
10620         to_supports_string_tracing.
10621         * target.h (struct target_ops) <to_supports_string_tracing>: Use
10622         TARGET_DEFAULT_RETURN.
10623
10624 2014-02-19  Tom Tromey  <tromey@redhat.com>
10625
10626         * target-delegates.c: Rebuild.
10627         * target.c (update_current_target): Don't inherit or default
10628         to_supports_enable_disable_tracepoint.
10629         * target.h (struct target_ops)
10630         <to_supports_enable_disable_tracepoint>: Use
10631         TARGET_DEFAULT_RETURN.
10632
10633 2014-02-19  Tom Tromey  <tromey@redhat.com>
10634
10635         * target-delegates.c: Rebuild.
10636         * target.c (update_current_target): Don't inherit or default
10637         to_supports_multi_process.
10638         * target.h (struct target_ops) <to_supports_multi_process>: Use
10639         TARGET_DEFAULT_RETURN.
10640
10641 2014-02-19  Tom Tromey  <tromey@redhat.com>
10642
10643         * target-delegates.c: Rebuild.
10644         * target.c (update_current_target): Don't inherit or default
10645         to_get_ada_task_ptid.
10646         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10647         TARGET_DEFAULT_FUNC.
10648
10649 2014-02-19  Tom Tromey  <tromey@redhat.com>
10650
10651         * target-delegates.c: Rebuild.
10652         * target.c (update_current_target): Don't inherit or default
10653         to_thread_architecture.
10654         * target.h (struct target_ops) <to_thread_architecture>: Use
10655         TARGET_DEFAULT_FUNC.
10656
10657 2014-02-19  Tom Tromey  <tromey@redhat.com>
10658
10659         * target-delegates.c: Rebuild.
10660         * target.c (update_current_target): Don't inherit or default
10661         to_execution_direction.
10662         * target.h (struct target_ops) <to_execution_direction>: Use
10663         TARGET_DEFAULT_FUNC.
10664
10665 2014-02-19  Tom Tromey  <tromey@redhat.com>
10666
10667         * target-delegates.c: Rebuild.
10668         * target.c (update_current_target): Don't inherit or default
10669         to_can_execute_reverse.
10670         * target.h (struct target_ops) <to_can_execute_reverse>: Use
10671         TARGET_DEFAULT_RETURN.
10672         (target_can_execute_reverse): Unconditionally delegate.
10673
10674 2014-02-19  Tom Tromey  <tromey@redhat.com>
10675
10676         * target-delegates.c: Rebuild.
10677         * target.c (update_current_target): Don't inherit or default
10678         to_goto_bookmark.
10679         (dummy_goto_bookmark): Remove.
10680         (init_dummy_target): Don't inherit or default to_goto_bookmark.
10681         * target.h (struct target_ops) <to_goto_bookmark>: Use
10682         TARGET_DEFAULT_NORETURN.
10683
10684 2014-02-19  Tom Tromey  <tromey@redhat.com>
10685
10686         * target-delegates.c: Rebuild.
10687         * target.c (update_current_target): Don't inherit or default
10688         to_get_bookmark.
10689         (dummy_get_bookmark): Remove.
10690         (init_dummy_target): Don't inherit or default to_get_bookmark.
10691         * target.h (struct target_ops) <to_get_bookmark>: Use
10692         TARGET_DEFAULT_NORETURN
10693
10694 2014-02-19  Tom Tromey  <tromey@redhat.com>
10695
10696         * target-delegates.c: Rebuild.
10697         * target.c (update_current_target): Don't inherit or default
10698         to_make_corefile_notes.
10699         (init_dummy_target): Don't initialize to_make_corefile_notes.
10700         * target.h (struct target_ops) <to_make_corefile_notes>: Use
10701         TARGET_DEFAULT_FUNC.
10702
10703 2014-02-19  Tom Tromey  <tromey@redhat.com>
10704
10705         * target-delegates.c: Rebuild.
10706         * target.c (update_current_target): Don't inherit or default
10707         to_find_memory_regions.
10708         (init_dummy_target): Don't initialize to_find_memory_regions.
10709         * target.h (struct target_ops) <to_find_memory_regions>: Use
10710         TARGET_DEFAULT_FUNC.
10711
10712 2014-02-19  Tom Tromey  <tromey@redhat.com>
10713
10714         * target-delegates.c: Rebuild.
10715         * target.c (update_current_target): Don't inherit or default
10716         to_log_command.
10717         * target.h (struct target_ops) <to_log_command>: Use
10718         TARGET_DEFAULT_IGNORE.
10719         (target_log_command): Unconditionally delegate.
10720
10721 2014-02-19  Tom Tromey  <tromey@redhat.com>
10722
10723         * target-delegates.c: Rebuild.
10724         * target.c (update_current_target): Don't inherit or default
10725         to_pid_to_exec_file.
10726         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10727         TARGET_DEFAULT_RETURN.
10728
10729 2014-02-19  Tom Tromey  <tromey@redhat.com>
10730
10731         * target-delegates.c: Rebuild.
10732         * target.c (update_current_target): Don't inherit or default
10733         to_thread_name.
10734         (target_thread_name): Unconditionally delegate.
10735         * target.h (struct target_ops) <to_thread_name>: Use
10736         TARGET_DEFAULT_RETURN.
10737
10738 2014-02-19  Tom Tromey  <tromey@redhat.com>
10739
10740         * target-delegates.c: Rebuild.
10741         * target.c (update_current_target): Don't inherit or default
10742         to_extra_thread_info.
10743         * target.h (struct target_ops) <to_extra_thread_info>: Use
10744         TARGET_DEFAULT_RETURN.
10745
10746 2014-02-19  Tom Tromey  <tromey@redhat.com>
10747
10748         * target-delegates.c: Rebuild.
10749         * target.c (update_current_target): Don't inherit or default
10750         to_has_exited.
10751         * target.h (struct target_ops) <to_has_exited>: Use
10752         TARGET_DEFAULT_RETURN..
10753
10754 2014-02-19  Tom Tromey  <tromey@redhat.com>
10755
10756         * target-delegates.c: Rebuild.
10757         * target.c (update_current_target): Don't inherit or default
10758         to_set_syscall_catchpoint.
10759         (return_one): Remove.
10760         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10761         TARGET_DEFAULT_RETURN.
10762
10763 2014-02-19  Tom Tromey  <tromey@redhat.com>
10764
10765         * target-delegates.c: Rebuild.
10766         * target.c (update_current_target): Don't inherit or default
10767         to_insert_exec_catchpoint.
10768         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10769         TARGET_DEFAULT_RETURN.
10770
10771 2014-01-08  Tom Tromey  <tromey@redhat.com>
10772
10773         * target-delegates.c: Rebuild.
10774         * target.c (update_current_target): Don't inherit or default
10775         to_insert_exec_catchpoint.
10776         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10777         TARGET_DEFAULT_RETURN.
10778
10779 2014-02-19  Tom Tromey  <tromey@redhat.com>
10780
10781         * target-delegates.c: Rebuild.
10782         * target.c (update_current_target): Don't inherit or default
10783         to_remove_vfork_catchpoint.
10784         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10785         TARGET_DEFAULT_RETURN.
10786
10787 2014-02-19  Tom Tromey  <tromey@redhat.com>
10788
10789         * target-delegates.c: Rebuild.
10790         * target.c (update_current_target): Don't inherit or default
10791         to_insert_vfork_catchpoint.
10792         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10793         TARGET_DEFAULT_RETURN.
10794
10795 2014-02-19  Tom Tromey  <tromey@redhat.com>
10796
10797         * target-delegates.c: Rebuild.
10798         * target.c (update_current_target): Don't inherit or default
10799         to_remove_fork_catchpoint.
10800         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10801         TARGET_DEFAULT_RETURN.
10802
10803 2014-02-19  Tom Tromey  <tromey@redhat.com>
10804
10805         * target-delegates.c: Rebuild.
10806         * target.c (update_current_target): Don't inherit or default
10807         to_insert_fork_catchpoint.
10808         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10809         TARGET_DEFAULT_RETURN.
10810
10811 2014-02-19  Tom Tromey  <tromey@redhat.com>
10812
10813         * target-delegates.c: Rebuild.
10814         * target.c (update_current_target): Don't inherit or default
10815         to_post_startup_inferior.
10816         * target.h (struct target_ops) <to_post_startup_inferior>: Use
10817         TARGET_DEFAULT_IGNORE.
10818
10819 2014-02-19  Tom Tromey  <tromey@redhat.com>
10820
10821         * target-delegates.c: Rebuild.
10822         * target.c (update_current_target): Don't inherit or default
10823         to_load.
10824         * target.h (struct target_ops) <to_load>: Use
10825         TARGET_DEFAULT_NORETURN.
10826
10827 2014-02-19  Tom Tromey  <tromey@redhat.com>
10828
10829         * target-delegates.c: Rebuild.
10830         * target.c (update_current_target): Don't inherit or default
10831         to_terminal_info.
10832         * target.h (struct target_ops) <to_terminal_info>: Use
10833         TARGET_DEFAULT_FUNC.
10834
10835 2014-02-19  Tom Tromey  <tromey@redhat.com>
10836
10837         * target-delegates.c: Rebuild.
10838         * target.c (update_current_target): Don't inherit or default
10839         to_terminal_save_ours.
10840         * target.h (struct target_ops) <to_terminal_save_ours>: Use
10841         TARGET_DEFAULT_IGNORE.
10842
10843 2014-02-19  Tom Tromey  <tromey@redhat.com>
10844
10845         * target-delegates.c: Rebuild.
10846         * target.c (update_current_target): Don't inherit or default
10847         to_terminal_ours.
10848         * target.h (struct target_ops) <to_terminal_ours>: Use
10849         TARGET_DEFAULT_IGNORE.
10850
10851 2014-02-19  Tom Tromey  <tromey@redhat.com>
10852
10853         * target-delegates.c: Rebuild.
10854         * target.c (update_current_target): Don't inherit or default
10855         to_terminal_ours_for_output.
10856         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10857         TARGET_DEFAULT_IGNORE.
10858
10859 2014-02-19  Tom Tromey  <tromey@redhat.com>
10860
10861         * target-delegates.c: Rebuild.
10862         * target.c (update_current_target): Don't inherit or default
10863         to_terminal_inferior.
10864         * target.h (struct target_ops) <to_terminal_inferior>: Use
10865         TARGET_DEFAULT_IGNORE.
10866
10867 2014-02-19  Tom Tromey  <tromey@redhat.com>
10868
10869         * target-delegates.c: Rebuild.
10870         * target.c (update_current_target): Don't inherit or default
10871         to_terminal_init.
10872         * target.h (struct target_ops) <to_terminal_init>: Use
10873         TARGET_DEFAULT_IGNORE.
10874
10875 2014-02-19  Tom Tromey  <tromey@redhat.com>
10876
10877         * target-delegates.c: Rebuild.
10878         * target.c (update_current_target): Don't inherit or default
10879         to_can_accel_watchpoint_condition.
10880         * target.h (struct target_ops)
10881         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10882
10883 2014-02-19  Tom Tromey  <tromey@redhat.com>
10884
10885         * target-delegates.c: Rebuild.
10886         * target.c (update_current_target): Don't inherit or default
10887         to_region_ok_for_hw_watchpoint.
10888         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10889         Use TARGET_DEFAULT_FUNC.
10890
10891 2014-02-19  Tom Tromey  <tromey@redhat.com>
10892
10893         * target-delegates.c: Rebuild.
10894         * target.c (update_current_target): Don't inherit or default
10895         to_watchpoint_addr_within_range.
10896         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10897         Use TARGET_DEFAULT_FUNC.
10898
10899 2014-02-19  Tom Tromey  <tromey@redhat.com>
10900
10901         * target-delegates.c: Rebuild.
10902         * target.c (update_current_target): Don't inherit or default
10903         to_remove_watchpoint.
10904         * target.h (struct target_ops) <to_remove_watchpoint>: Use
10905         TARGET_DEFAULT_NORETURN.
10906
10907 2014-02-19  Tom Tromey  <tromey@redhat.com>
10908
10909         * target-delegates.c: Rebuild.
10910         * target.c (update_current_target): Don't inherit or default
10911         to_insert_watchpoint.
10912         * target.h (struct target_ops) <to_insert_watchpoint>: Use
10913         TARGET_DEFAULT_RETURN.
10914
10915 2014-02-19  Tom Tromey  <tromey@redhat.com>
10916
10917         * target-delegates.c: Rebuild.
10918         * target.c (update_current_target): Don't inherit or default
10919         to_remove_hw_breakpoint.
10920         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10921         TARGET_DEFAULT_RETURN.
10922
10923 2014-02-19  Tom Tromey  <tromey@redhat.com>
10924
10925         * target-delegates.c: Rebuild.
10926         * target.c (update_current_target): Don't inherit or default
10927         to_insert_hw_breakpoint.
10928         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10929         TARGET_DEFAULT_RETURN.
10930
10931 2014-02-19  Tom Tromey  <tromey@redhat.com>
10932
10933         * target-delegates.c: Rebuild.
10934         * target.c (update_current_target): Don't inherit or default
10935         to_can_use_hw_breakpoint.
10936         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10937         TARGET_DEFAULT_RETURN.
10938
10939 2014-02-19  Tom Tromey  <tromey@redhat.com>
10940
10941         * target-delegates.c: Rebuild.
10942         * target.c (update_current_target): Don't inherit or default
10943         to_files_info.
10944         * target.h (struct target_ops) <to_files_info>: Use
10945         TARGET_DEFAULT_IGNORE.
10946
10947 2014-02-19  Tom Tromey  <tromey@redhat.com>
10948
10949         * target-delegates.c: Rebuild.
10950         * target.c (update_current_target): Don't inherit or default
10951         to_store.
10952         * target.h (struct target_ops) <to_store>: Use
10953         TARGET_DEFAULT_NORETURN.
10954
10955 2014-02-19  Tom Tromey  <tromey@redhat.com>
10956
10957         * target-delegates.c: Rebuild.
10958         * target.c (update_current_target): Don't inherit or default
10959         to_post_attach.
10960         * target.h (struct target_ops) <to_post_attach>: Use
10961         TARGET_DEFAULT_IGNORE.
10962
10963 2014-02-19  Tom Tromey  <tromey@redhat.com>
10964
10965         * target-delegates.c: Rebuild.
10966         * target.c (update_current_target): Don't inherit or default
10967         to_rcmd.
10968         (default_rcmd): New function.
10969         (do_monitor_command): Unconditionally delegate.
10970         * target.h (struct target_ops) <to_rmcd>: Use
10971         TARGET_DEFAULT_FUNC.
10972
10973 2014-02-19  Tom Tromey  <tromey@redhat.com>
10974
10975         * target-delegates.c: Rebuild.
10976         * target.c (init_dummy_target): Don't initialize to_attach.
10977         (target_attach): Unconditionally delegate.
10978         * target.h (struct target_ops) <to_attach>: Use
10979         TARGET_DEFAULT_FUNC.
10980
10981 2014-02-19  Tom Tromey  <tromey@redhat.com>
10982
10983         * target-delegates.c: Rebuild.
10984         * target.c (target_detach): Unconditionally delegate.
10985         (init_dummy_target): Don't initialize to_detach.
10986         * target.h (struct target_ops) <to_detach>: Use
10987         TARGET_DEFAULT_IGNORE.
10988
10989 2014-02-19  Tom Tromey  <tromey@redhat.com>
10990
10991         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10992         Add argument.
10993         (target_augmented_libraries_svr4_read): Add argument.
10994         * target.c (update_current_target): Update.
10995         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10996         argument.
10997
10998 2014-02-19  Tom Tromey  <tromey@redhat.com>
10999
11000         * target.h (struct target_ops) <to_call_history_range>: Add
11001         argument.
11002         * target.c (target_call_history_range): Add argument.
11003         * record-btrace.c (record_btrace_call_history_range): Add 'self'
11004         argument.
11005         (record_btrace_call_history_from): Update.
11006
11007 2014-02-19  Tom Tromey  <tromey@redhat.com>
11008
11009         * target.h (struct target_ops) <to_call_history_from>: Add
11010         argument.
11011         * target.c (target_call_history_from): Add argument.
11012         * record-btrace.c (record_btrace_call_history_from): Add 'self'
11013         argument.
11014
11015 2014-02-19  Tom Tromey  <tromey@redhat.com>
11016
11017         * target.h (struct target_ops) <to_call_history>: Add argument.
11018         * target.c (target_call_history): Add argument.
11019         * record-btrace.c (record_btrace_call_history): Add 'self'
11020         argument.
11021
11022 2014-02-19  Tom Tromey  <tromey@redhat.com>
11023
11024         * target.h (struct target_ops) <to_insn_history_range>: Add
11025         argument.
11026         * target.c (target_insn_history_range): Add argument.
11027         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11028         argument.
11029         (record_btrace_insn_history_from): Update.
11030
11031 2014-02-19  Tom Tromey  <tromey@redhat.com>
11032
11033         * target.h (struct target_ops) <to_insn_history_from>: Add
11034         argument.
11035         * target.c (target_insn_history_from): Add argument.
11036         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11037         argument.
11038
11039 2014-02-19  Tom Tromey  <tromey@redhat.com>
11040
11041         * target.h (struct target_ops) <to_insn_history>: Add argument.
11042         * target.c (target_insn_history): Add argument.
11043         * record-btrace.c (record_btrace_insn_history): Add 'self'
11044         argument.
11045
11046 2014-02-19  Tom Tromey  <tromey@redhat.com>
11047
11048         * target.h (struct target_ops) <to_goto_record>: Add argument.
11049         * target.c (target_goto_record): Add argument.
11050         * record-full.c (record_full_goto): Add 'self' argument.
11051         * record-btrace.c (record_btrace_goto): Add 'self' argument.
11052
11053 2014-02-19  Tom Tromey  <tromey@redhat.com>
11054
11055         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11056         * target.c (target_goto_record_end): Add argument.
11057         * record-full.c (record_full_goto_end): Add 'self' argument.
11058         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11059
11060 2014-02-19  Tom Tromey  <tromey@redhat.com>
11061
11062         * target.h (struct target_ops) <to_goto_record_begin>: Add
11063         argument.
11064         * target.c (target_goto_record_begin): Add argument.
11065         * record-full.c (record_full_goto_begin): Add 'self' argument.
11066         * record-btrace.c (record_btrace_goto_begin): Add 'self'
11067         argument.
11068
11069 2014-02-19  Tom Tromey  <tromey@redhat.com>
11070
11071         * target.h (struct target_ops) <to_record_is_replaying>: Add
11072         argument.
11073         * target.c (target_record_is_replaying): Add argument.
11074         * record-full.c (record_full_is_replaying): Add 'self' argument.
11075         * record-btrace.c (record_btrace_is_replaying): Add 'self'
11076         argument.
11077         (record_btrace_xfer_partial, record_btrace_store_registers)
11078         (record_btrace_prepare_to_store, record_btrace_resume)
11079         (record_btrace_wait, record_btrace_decr_pc_after_break)
11080         (record_btrace_find_new_threads, record_btrace_thread_alive):
11081         Update.
11082
11083 2014-02-19  Tom Tromey  <tromey@redhat.com>
11084
11085         * target.h (struct target_ops) <to_delete_record>: Add argument.
11086         * target.c (target_delete_record): Add argument.
11087         * record-full.c (record_full_delete): Add 'self' argument.
11088
11089 2014-02-19  Tom Tromey  <tromey@redhat.com>
11090
11091         * target.h (struct target_ops) <to_save_record>: Add argument.
11092         * target.c (target_save_record): Add argument.
11093         * record-full.c (record_full_save): Add 'self' argument.
11094         (record_full_save): Add 'self' argument.
11095
11096 2014-02-19  Tom Tromey  <tromey@redhat.com>
11097
11098         * target.h (struct target_ops) <to_info_record>: Add argument.
11099         * target.c (target_info_record): Add argument.
11100         * record.c (info_record_command): Add argument.
11101         * record-full.c (record_full_info): Add 'self' argument.
11102         * record-btrace.c (record_btrace_info): Add 'self' argument.
11103
11104 2014-02-19  Tom Tromey  <tromey@redhat.com>
11105
11106         * target.h (struct target_ops) <to_stop_recording>: Add argument.
11107         * target.c (target_stop_recording): Add argument.
11108         * record.c (record_stop): Add argument.
11109         * record-btrace.c (record_btrace_stop_recording): Add 'self'
11110         argument.
11111
11112 2014-02-19  Tom Tromey  <tromey@redhat.com>
11113
11114         * target.h (struct target_ops) <to_read_btrace>: Add argument.
11115         * target.c (struct target_ops) <to_read_btrace>: Add argument.
11116         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11117         argument.
11118         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11119         (_initialize_amd64_linux_nat): Use it.
11120         * i386-linux-nat.c (i386_linux_read_btrace): New function.
11121         (_initialize_i386_linux_nat): Use it.
11122
11123 2014-02-19  Tom Tromey  <tromey@redhat.com>
11124
11125         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11126         * target.c (target_teardown_btrace): Add argument.
11127         * remote.c (remote_teardown_btrace): Add 'self' argument.
11128         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11129         argument.
11130         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11131         argument.
11132
11133 2014-02-19  Tom Tromey  <tromey@redhat.com>
11134
11135         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11136         * target.c (target_disable_btrace): Add argument.
11137         * remote.c (remote_disable_btrace): Add 'self' argument.
11138         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11139         argument.
11140         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11141         argument.
11142
11143 2014-02-19  Tom Tromey  <tromey@redhat.com>
11144
11145         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11146         * target.c (target_enable_btrace): Add argument.
11147         * remote.c (remote_enable_btrace): Add 'self' argument.
11148         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11149         argument.
11150         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11151         argument.
11152
11153 2014-02-19  Tom Tromey  <tromey@redhat.com>
11154
11155         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11156         (target_can_use_agent): Add argument.
11157         * target.c (update_current_target): Update.
11158         * remote.c (remote_can_use_agent): Add 'self' argument.
11159         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11160
11161 2014-02-19  Tom Tromey  <tromey@redhat.com>
11162
11163         * target.h (struct target_ops) <to_use_agent>: Add argument.
11164         (target_use_agent): Add argument.
11165         * target.c (update_current_target): Update.
11166         * remote.c (remote_use_agent): Add 'self' argument.
11167         * inf-child.c (inf_child_use_agent): Add 'self' argument.
11168
11169 2014-02-19  Tom Tromey  <tromey@redhat.com>
11170
11171         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11172         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11173         (target_traceframe_info): Add argument.
11174         * target.c (update_current_target): Update.
11175         * remote.c (remote_traceframe_info): Add 'self' argument.
11176         * ctf.c (ctf_traceframe_info): Add 'self' argument.
11177
11178 2014-02-19  Tom Tromey  <tromey@redhat.com>
11179
11180         * target.h (target_static_tracepoint_markers_by_strid): Add
11181         argument.
11182         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11183         'self' argument.
11184         * target.c (update_current_target): Update.
11185         * remote.c (struct target_ops)
11186         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11187         * linux-nat.c (struct target_ops)
11188         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11189
11190 2014-02-19  Tom Tromey  <tromey@redhat.com>
11191
11192         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11193         Add argument.
11194         (target_static_tracepoint_marker_at): Add argument.
11195         * target.c (update_current_target): Update.
11196         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11197         argument.
11198
11199 2014-02-19  Tom Tromey  <tromey@redhat.com>
11200
11201         * target.h (struct target_ops) <to_set_permissions>: Add argument.
11202         (target_set_permissions): Add argument.
11203         * target.c (update_current_target): Update.
11204         * remote.c (remote_set_permissions): Add 'self' argument.
11205         (remote_start_remote): Update.
11206
11207 2014-02-19  Tom Tromey  <tromey@redhat.com>
11208
11209         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11210         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11211         (target_get_tib_address): Add argument.
11212         * target.c (update_current_target): Update.
11213         * remote.c (remote_get_tib_address): Add 'self' argument.
11214
11215 2014-02-19  Tom Tromey  <tromey@redhat.com>
11216
11217         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11218         (target_set_trace_notes): Add argument.
11219         * target.c (update_current_target): Update.
11220         * remote.c (remote_set_trace_notes): Add 'self' argument.
11221
11222 2014-02-19  Tom Tromey  <tromey@redhat.com>
11223
11224         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11225         argument.
11226         (target_set_trace_buffer_size): Add argument.
11227         * target.c (update_current_target): Update.
11228         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11229
11230 2014-02-19  Tom Tromey  <tromey@redhat.com>
11231
11232         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11233         argument.
11234         (target_set_circular_trace_buffer): Add argument.
11235         * target.c (update_current_target): Update.
11236         * remote.c (remote_set_circular_trace_buffer): Add 'self'
11237         argument.
11238
11239 2014-02-19  Tom Tromey  <tromey@redhat.com>
11240
11241         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11242         argument.
11243         (target_set_disconnected_tracing): Add argument.
11244         * target.c (update_current_target): Update.
11245         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11246
11247 2014-02-19  Tom Tromey  <tromey@redhat.com>
11248
11249         * target.h (struct target_ops)
11250         <to_get_min_fast_tracepoint_insn_len>: Add argument.
11251         (target_get_min_fast_tracepoint_insn_len): Add argument.
11252         * target.c (update_current_target): Update.
11253         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11254         argument.
11255
11256 2014-02-19  Tom Tromey  <tromey@redhat.com>
11257
11258         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11259         argument.
11260         (target_get_raw_trace_data): Add argument.
11261         * target.c (update_current_target): Update.
11262         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11263
11264 2014-02-19  Tom Tromey  <tromey@redhat.com>
11265
11266         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11267         Add argument.
11268         (target_upload_trace_state_variables): Add argument.
11269         * target.c (update_current_target): Update.
11270         * remote.c (remote_upload_trace_state_variables): Add 'self'
11271         argument.
11272         (remote_start_remote): Update.
11273
11274 2014-02-19  Tom Tromey  <tromey@redhat.com>
11275
11276         * target.h (struct target_ops) <to_upload_tracepoints>: Add
11277         argument.
11278         (target_upload_tracepoints): Add argument.
11279         * target.c (update_current_target): Update.
11280         * remote.c (remote_upload_tracepoints): Add 'self' argument.
11281         (remote_start_remote): Update.
11282
11283 2014-02-19  Tom Tromey  <tromey@redhat.com>
11284
11285         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11286         (target_save_trace_data): Add argument.
11287         * target.c (update_current_target): Update.
11288         * remote.c (remote_save_trace_data): Add 'self' argument.
11289
11290 2014-02-19  Tom Tromey  <tromey@redhat.com>
11291
11292         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11293         argument.
11294         * target.h (struct target_ops)
11295         <to_get_trace_state_variable_value>: Add argument.
11296         (target_get_trace_state_variable_value): Add argument.
11297         * target.c (update_current_target): Update.
11298         * remote.c (remote_get_trace_state_variable_value): Add 'self'
11299         argument.
11300         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11301
11302 2014-02-19  Tom Tromey  <tromey@redhat.com>
11303
11304         * tracepoint.c (tfile_trace_find): Add 'self' argument.
11305         * target.h (struct target_ops) <to_trace_find>: Add argument.
11306         (target_trace_find): Add argument.
11307         * target.c (update_current_target): Update.
11308         * remote.c (remote_trace_find): Add 'self' argument.
11309         * ctf.c (ctf_trace_find): Add 'self' argument.
11310
11311 2014-02-19  Tom Tromey  <tromey@redhat.com>
11312
11313         * target.h (struct target_ops) <to_trace_stop>: Add argument.
11314         (target_trace_stop): Add argument.
11315         * target.c (update_current_target): Update.
11316         * remote.c (remote_trace_stop): Add 'self' argument.
11317
11318 2014-02-19  Tom Tromey  <tromey@redhat.com>
11319
11320         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11321         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11322         argument.
11323         (target_get_tracepoint_status): Add argument.
11324         * target.c (update_current_target): Update.
11325         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11326
11327 2014-02-19  Tom Tromey  <tromey@redhat.com>
11328
11329         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11330         * target.h (struct target_ops) <to_get_trace_status>: Add
11331         argument.
11332         (target_get_trace_status): Add argument.
11333         * target.c (update_current_target): Update.
11334         * remote.c (remote_get_trace_status): Add 'self' argument.
11335         (remote_start_remote, remote_can_download_tracepoint): Update.
11336         * ctf.c (ctf_get_trace_status): Add 'self' argument.
11337
11338 2014-02-19  Tom Tromey  <tromey@redhat.com>
11339
11340         * target.h (struct target_ops) <to_trace_start>: Add argument.
11341         (target_trace_start): Add argument.
11342         * target.c (update_current_target): Update.
11343         * remote.c (remote_trace_start): Add 'self' argument.
11344
11345 2014-02-19  Tom Tromey  <tromey@redhat.com>
11346
11347         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11348         Add argument.
11349         (target_trace_set_readonly_regions): Add argument.
11350         * target.c (update_current_target): Update.
11351         * remote.c (remote_trace_set_readonly_regions): Add 'self'
11352         argument.
11353
11354 2014-02-19  Tom Tromey  <tromey@redhat.com>
11355
11356         * target.h (struct target_ops) <to_disable_tracepoint>: Add
11357         argument.
11358         (target_disable_tracepoint): Add argument.
11359         * target.c (update_current_target): Update.
11360         * remote.c (remote_disable_tracepoint): Add 'self' argument.
11361
11362 2014-02-19  Tom Tromey  <tromey@redhat.com>
11363
11364         * target.h (struct target_ops) <to_enable_tracepoint>: Add
11365         argument.
11366         (target_enable_tracepoint): Add argument.
11367         * target.c (update_current_target): Update.
11368         * remote.c (remote_enable_tracepoint): Add 'self' argument.
11369
11370 2014-02-19  Tom Tromey  <tromey@redhat.com>
11371
11372         * target.h (struct target_ops) <to_download_trace_state_variable>:
11373         Add argument.
11374         (target_download_trace_state_variable): Add argument.
11375         * target.c (update_current_target): Update.
11376         * remote.c (remote_download_trace_state_variable): Add 'self'
11377         argument.
11378
11379 2014-02-19  Tom Tromey  <tromey@redhat.com>
11380
11381         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11382         argument.
11383         (target_can_download_tracepoint): Add argument.
11384         * target.c (update_current_target): Update.
11385         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11386
11387 2014-02-19  Tom Tromey  <tromey@redhat.com>
11388
11389         * target.h (struct target_ops) <to_download_tracepoint>: Add
11390         argument.
11391         (target_download_tracepoint): Add argument.
11392         * target.c (update_current_target): Update.
11393         * remote.c (remote_download_tracepoint): Add 'self' argument.
11394
11395 2014-02-19  Tom Tromey  <tromey@redhat.com>
11396
11397         * target.h (struct target_ops) <to_trace_init>: Add argument.
11398         (target_trace_init): Add argument.
11399         * target.c (update_current_target): Update.
11400         * remote.c (remote_trace_init): Add 'self' argument.
11401
11402 2014-02-19  Tom Tromey  <tromey@redhat.com>
11403
11404         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11405         * target.c (target_fileio_readlink): Add argument.
11406         * remote.c (remote_hostio_readlink): Add 'self' argument.
11407         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11408
11409 2014-02-19  Tom Tromey  <tromey@redhat.com>
11410
11411         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11412         * target.c (target_fileio_unlink): Add argument.
11413         * remote.c (remote_hostio_unlink): Add 'self' argument.
11414         (remote_file_delete): Update.
11415         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11416
11417 2014-02-19  Tom Tromey  <tromey@redhat.com>
11418
11419         * target.h (struct target_ops) <to_fileio_close>: Add argument.
11420         * target.c (target_fileio_close): Add argument.
11421         * remote.c (remote_hostio_close): Add 'self' argument.
11422         (remote_hostio_close_cleanup): Update.
11423         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11424         Update.
11425         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11426
11427 2014-02-19  Tom Tromey  <tromey@redhat.com>
11428
11429         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11430         * target.c (target_fileio_pread): Add argument.
11431         * remote.c (remote_hostio_pread): Add 'self' argument.
11432         (remote_bfd_iovec_pread, remote_file_get): Update.
11433         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11434
11435 2014-02-19  Tom Tromey  <tromey@redhat.com>
11436
11437         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11438         * target.c (target_fileio_pwrite): Add argument.
11439         * remote.c (remote_hostio_pwrite): Add 'self' argument.
11440         (remote_file_put): Update.
11441         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11442
11443 2014-02-19  Tom Tromey  <tromey@redhat.com>
11444
11445         * target.h (struct target_ops) <to_fileio_open>: Add argument.
11446         * target.c (target_fileio_open): Add argument.
11447         * remote.c (remote_hostio_open): Add 'self' argument.
11448         (remote_bfd_iovec_open): Add 'self' argument.
11449         (remote_file_put): Add 'self' argument.
11450         (remote_file_get): Add 'self' argument.
11451         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11452
11453 2014-02-19  Tom Tromey  <tromey@redhat.com>
11454
11455         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11456         Add argument.
11457         (target_can_run_breakpoint_commands): Add argument.
11458         * target.c (update_current_target): Update.
11459         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11460         argument.
11461         (remote_insert_breakpoint): Add 'self' argument.
11462         (remote_insert_hw_breakpoint): Add 'self' argument.
11463         (remote_can_run_breakpoint_commands): Add 'self' argument.
11464
11465 2014-02-19  Tom Tromey  <tromey@redhat.com>
11466
11467         * target.h (struct target_ops)
11468         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11469         (target_supports_evaluation_of_breakpoint_conditions): Add
11470         argument.
11471         * target.c (update_current_target): Update.
11472         * remote.c (remote_supports_cond_breakpoints): Add 'self'
11473         argument.
11474         (remote_insert_breakpoint): Add 'self' argument.
11475         (remote_insert_hw_breakpoint): Add 'self' argument.
11476         (remote_supports_cond_breakpoints): Add 'self' argument.
11477
11478 2014-02-19  Tom Tromey  <tromey@redhat.com>
11479
11480         * target.h (struct target_ops) <to_supports_string_tracing>: Add
11481         argument.
11482         (target_supports_string_tracing): Add argument.
11483         * target.c (update_current_target): Update.
11484         * remote.c (remote_supports_string_tracing): Add 'self' argument.
11485
11486 2014-02-19  Tom Tromey  <tromey@redhat.com>
11487
11488         * target.h (struct target_ops)
11489         <to_supports_disable_randomization>: Add argument.
11490         * target.c (find_default_supports_disable_randomization): Add
11491         argument.
11492         (target_supports_disable_randomization): Add argument.
11493         (find_default_supports_disable_randomization): Add 'self'
11494         argument.
11495         * remote.c (extended_remote_supports_disable_randomization): Add
11496         'self' argument.
11497         (remote_supports_disable_randomization): Add 'self' argument.
11498         (extended_remote_create_inferior): Update.
11499         * linux-nat.c (linux_nat_supports_disable_randomization): Add
11500         'self' argument.
11501
11502 2014-02-19  Tom Tromey  <tromey@redhat.com>
11503
11504         * target.h (struct target_ops)
11505         <to_supports_enable_disable_tracepoint>: Add argument.
11506         (target_supports_enable_disable_tracepoint): Add argument.
11507         * target.c (update_current_target): Update.
11508         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11509         argument.
11510
11511 2014-02-19  Tom Tromey  <tromey@redhat.com>
11512
11513         * target.h (struct target_ops) <to_supports_multi_process>: Add
11514         argument.
11515         (target_supports_multi_process): Add argument.
11516         * target.c (update_current_target): Update.
11517         * remote.c (remote_supports_multi_process): Add 'self' argument.
11518         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11519         argument.
11520         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11521         argument.
11522
11523 2014-02-19  Tom Tromey  <tromey@redhat.com>
11524
11525         * target.h (struct target_ops) <to_execution_direction>: Add
11526         argument.
11527         (target_execution_direction): Add argument.
11528         * target.c (default_execution_direction): Add 'self' argument.
11529         * record-full.c (record_full_execution_direction): Add 'self'
11530         argument.
11531
11532 2014-02-19  Tom Tromey  <tromey@redhat.com>
11533
11534         * target.h (struct target_ops) <to_can_execute_reverse>: Add
11535         argument.
11536         (target_can_execute_reverse): Add argument.
11537         * remote.c (remote_can_execute_reverse): Add 'self' argument.
11538         * record-full.c (record_full_can_execute_reverse): Add 'self'
11539         argument.
11540         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11541         argument.
11542
11543 2014-02-19  Tom Tromey  <tromey@redhat.com>
11544
11545         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11546         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11547         argument.
11548         (target_get_ada_task_ptid): Add argument.
11549         * target.c (update_current_target): Update.
11550         (default_get_ada_task_ptid): Add 'self' argument.
11551         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11552         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11553         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11554         argument.
11555         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11556         argument.
11557         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11558         argument.
11559         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11560         argument.
11561         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11562         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11563         argument.
11564
11565 2014-02-19  Tom Tromey  <tromey@redhat.com>
11566
11567         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11568         (target_goto_bookmark): Add argument.
11569         * target.c (dummy_goto_bookmark): Add 'self' argument.
11570         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11571
11572 2014-02-19  Tom Tromey  <tromey@redhat.com>
11573
11574         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11575         (target_get_bookmark): Add argument.
11576         * target.c (dummy_get_bookmark): Add 'self' argument.
11577         * record-full.c (record_full_get_bookmark): Add 'self' argument.
11578
11579 2014-02-19  Tom Tromey  <tromey@redhat.com>
11580
11581         * target.h (struct target_ops) <to_make_corefile_notes>: Add
11582         argument.
11583         (target_make_corefile_notes): Add argument.
11584         * target.c (dummy_make_corefile_notes): Add 'self' argument.
11585         * procfs.c (procfs_make_note_section): Add 'self' argument.
11586         (procfs_make_note_section): Add 'self' argument.
11587         (procfs_make_note_section): Add 'self' argument.
11588         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11589         argument.
11590         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11591         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11592         * exec.c (exec_make_note_section): Add 'self' argument.
11593         (exec_make_note_section): Add 'self' argument.
11594
11595 2014-02-19  Tom Tromey  <tromey@redhat.com>
11596
11597         * target.h (struct target_ops) <to_find_memory_regions>: Add
11598         argument.
11599         (target_find_memory_regions): Add argument.
11600         * target.c (dummy_find_memory_regions): Add 'self' argument.
11601         * procfs.c (proc_find_memory_regions): Add 'self' argument.
11602         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11603         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11604         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11605         * exec. (exec_do_find_memory_regions): New global.
11606         (exec_set_find_memory_regions): Rewrite.
11607         (exec_find_memory_regions): New function.
11608         (init_exec_ops): Use exec_find_memory_regions.
11609
11610 2014-02-19  Tom Tromey  <tromey@redhat.com>
11611
11612         * target.h (struct target_ops) <to_supports_non_stop>: Add
11613         argument.
11614         * target.c (find_default_supports_non_stop): Add argument.
11615         (target_supports_non_stop): Add argument.
11616         (find_default_supports_non_stop): Add 'self' argument.
11617         * remote.c (remote_supports_non_stop): Add 'self' argument.
11618         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11619
11620 2014-02-19  Tom Tromey  <tromey@redhat.com>
11621
11622         * target.h (struct target_ops) <to_log_command>: Add argument.
11623         (target_log_command): Add argument.
11624         * serial.h (serial_log_command): Add 'self' argument.
11625         * serial.c (serial_log_command): Add 'self' argument.
11626
11627 2014-02-19  Tom Tromey  <tromey@redhat.com>
11628
11629         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11630         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11631         argument.
11632         (target_pid_to_exec_file): Add argument.
11633         * target.c (debug_to_pid_to_exec_file): Add argument.
11634         (update_current_target): Update.
11635         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11636         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11637         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11638         (linux_handle_extended_wait): Update.
11639         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11640         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11641         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11642         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11643
11644 2014-02-19  Tom Tromey  <tromey@redhat.com>
11645
11646         * target.h (struct target_ops) <to_rcmd>: Add argument.
11647         (target_rcmd): Add argument.
11648         * target.c (debug_to_rcmd): Add argument.
11649         (update_current_target, do_monitor_command): Update.
11650         * remote.c (remote_rcmd): Add 'self' argument.
11651         * monitor.c (monitor_rcmd): Add 'self' argument.
11652
11653 2014-02-19  Tom Tromey  <tromey@redhat.com>
11654
11655         * windows-nat.c (windows_stop): Add 'self' argument.
11656         * target.h (struct target_ops) <to_stop>: Add argument.
11657         * target.c (target_stop): Add argument.
11658         (debug_to_stop): Add argument.
11659         (update_current_target): Update.
11660         * remote.c (remote_stop): Add 'self' argument.
11661         * remote-sim.c (gdbsim_stop): Add 'self' argument.
11662         (gdbsim_cntrl_c): Update.
11663         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11664         * procfs.c (procfs_stop): Add 'self' argument.
11665         * nto-procfs.c (procfs_stop): Add 'self' argument.
11666         * monitor.c (monitor_stop): Add 'self' argument.
11667         (monitor_open): Update.
11668         * linux-nat.c (linux_nat_stop): Add argument.
11669         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11670         * gnu-nat.c (gnu_stop): Add 'self' argument.
11671         * darwin-nat.c (darwin_stop): Add 'self' argument.
11672
11673 2014-02-19  Tom Tromey  <tromey@redhat.com>
11674
11675         * target.h (struct target_ops) <to_thread_name>: Add argument.
11676         * target.c (target_thread_name): Add argument.
11677         (update_current_target): Update.
11678         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11679
11680 2014-02-19  Tom Tromey  <tromey@redhat.com>
11681
11682         * target.h (struct target_ops) <to_extra_thread_info>: Add
11683         argument.
11684         (target_extra_thread_info): Add argument.
11685         * target.c (update_current_target): Update.
11686         * remote.c (remote_threads_extra_info): Add 'self' argument.
11687         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11688         argument.
11689         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11690         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11691         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11692         argument.
11693         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11694         argument.
11695         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11696         argument.
11697         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11698         argument.
11699
11700 2014-02-19  Tom Tromey  <tromey@redhat.com>
11701
11702         * target.h (struct target_ops) <to_program_signals>: Add argument.
11703         * target.c (target_program_signals): Add argument.
11704         * remote.c (remote_program_signals): Add 'self' argument.
11705
11706 2014-02-19  Tom Tromey  <tromey@redhat.com>
11707
11708         * target.h (struct target_ops) <to_pass_signals>: Add argument.
11709         * target.c (target_pass_signals): Add argument.
11710         * remote.c (remote_pass_signals): Add 'self' argument.
11711         (remote_start_remote): Update.
11712         * procfs.c (procfs_pass_signals): Add 'self' argument.
11713         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11714         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11715         (linux_nat_create_inferior, linux_nat_attach): Update.
11716
11717 2014-02-19  Tom Tromey  <tromey@redhat.com>
11718
11719         * windows-nat.c (windows_can_run): Add 'self' argument.
11720         * target.h (struct target_ops) <to_can_run>: Add argument.
11721         (target_can_run): Add argument.
11722         * target.c (debug_to_can_run): Add argument.
11723         (update_current_target): Update.
11724         * nto-procfs.c (procfs_can_run): Add 'self' argument.
11725         * inf-child.c (inf_child_can_run): Add 'self' argument.
11726         * go32-nat.c (go32_can_run): Add 'self' argument.
11727
11728 2014-02-19  Tom Tromey  <tromey@redhat.com>
11729
11730         * target.h (struct target_ops) <to_has_exited>: Add argument.
11731         (target_has_exited): Add argument.
11732         * target.c (debug_to_has_exited): Add argument.
11733         (update_current_target): Update.
11734
11735 2014-02-19  Tom Tromey  <tromey@redhat.com>
11736
11737         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11738         argument.
11739         (target_set_syscall_catchpoint): Add argument.
11740         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11741         argument.
11742         * target.c (update_current_target): Update.
11743
11744 2014-02-19  Tom Tromey  <tromey@redhat.com>
11745
11746         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11747         argument.
11748         (target_remove_exec_catchpoint): Add argument.
11749         * target.c (debug_to_remove_exec_catchpoint): Add argument.
11750         (update_current_target): Update.
11751         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11752         argument.
11753
11754 2014-02-19  Tom Tromey  <tromey@redhat.com>
11755
11756         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11757         argument.
11758         (target_insert_exec_catchpoint): Add argument.
11759         * target.c (debug_to_insert_exec_catchpoint): Add argument.
11760         (update_current_target): Update.
11761         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11762         argument.
11763
11764 2014-02-19  Tom Tromey  <tromey@redhat.com>
11765
11766         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11767         argument.
11768         (target_remove_vfork_catchpoint): Add argument.
11769         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11770         (update_current_target): Update.
11771         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11772         argument.
11773
11774 2014-02-19  Tom Tromey  <tromey@redhat.com>
11775
11776         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11777         argument.
11778         (target_insert_vfork_catchpoint): Add argument.
11779         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11780         (update_current_target): Update.
11781         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11782         argument.
11783
11784 2014-02-19  Tom Tromey  <tromey@redhat.com>
11785
11786         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11787         argument.
11788         (target_remove_fork_catchpoint): Add argument.
11789         * target.c (debug_to_remove_fork_catchpoint): Add argument.
11790         (update_current_target): Update.
11791         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11792         argument.
11793
11794 2014-02-19  Tom Tromey  <tromey@redhat.com>
11795
11796         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11797         argument.
11798         (target_insert_fork_catchpoint): Add argument.
11799         * target.c (debug_to_insert_fork_catchpoint): Add argument.
11800         (update_current_target): Update.
11801         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11802         argument.
11803
11804 2014-02-19  Tom Tromey  <tromey@redhat.com>
11805
11806         * target.h (struct target_ops) <to_post_startup_inferior>: Add
11807         argument.
11808         (target_post_startup_inferior): Add argument.
11809         * target.c (debug_to_post_startup_inferior): Add argument.
11810         (update_current_target): Update.
11811         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11812         argument.
11813         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11814         argument.
11815         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11816         argument.
11817         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11818         argument.
11819         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11820         'self' argument.
11821         (super_post_startup_inferior): Likewise.
11822         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11823         'self' argument.
11824         (super_post_startup_inferior): Likewise.
11825         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11826         Add 'self' argument.
11827         (super_post_startup_inferior): Likewise.
11828
11829 2014-02-19  Tom Tromey  <tromey@redhat.com>
11830
11831         * target.h (struct target_ops) <to_load>: Add argument.
11832         * target.c (target_load): Add argument.
11833         (debug_to_load): Add argument.
11834         (update_current_target): Update.
11835         * remote.c (remote_load): Add 'self' argument.
11836         * remote-sim.c (gdbsim_load): Add 'self' argument.
11837         * remote-mips.c (mips_load): Add 'self' argument.
11838         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11839         * monitor.c (monitor_load): Add 'self' argument.
11840         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11841
11842 2014-02-19  Tom Tromey  <tromey@redhat.com>
11843
11844         * target.h (struct target_ops) <to_terminal_info>: Add argument.
11845         (target_terminal_info): Add argument.
11846         * target.c (debug_to_terminal_info): Add argument.
11847         (default_terminal_info): Likewise.
11848         * inflow.c (child_terminal_info): Add 'self' argument.
11849         * inferior.h (child_terminal_info): Add 'self' argument.
11850         * go32-nat.c (go32_terminal_info): Add 'self' argument.
11851
11852 2014-02-19  Tom Tromey  <tromey@redhat.com>
11853
11854         * target.h (struct target_ops) <to_terminal_save_ours>: Add
11855         argument.
11856         (target_terminal_save_ours): Add argument.
11857         * target.c (debug_to_terminal_save_ours): Add argument.
11858         (update_current_target): Update.
11859         * inflow.c (terminal_save_ours): Add 'self' argument.
11860         * inferior.h (terminal_save_ours): Add 'self' argument.
11861
11862 2014-02-19  Tom Tromey  <tromey@redhat.com>
11863
11864         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11865         (target_terminal_ours): Add argument.
11866         * target.c (debug_to_terminal_ours): Add argument.
11867         (update_current_target): Update.
11868         * remote.c (remote_terminal_ours): Add 'self' argument.
11869         (remote_close): Update.
11870         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11871         * inflow.c (terminal_ours): Add 'self' argument.
11872         * inferior.h (terminal_ours): Add 'self' argument.
11873         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11874
11875 2014-02-19  Pedro Alves  <palves@redhat.com>
11876             Tom Tromey  <tromey@redhat.com>
11877
11878         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11879         argument.
11880         (target_terminal_ours_for_output): Add argument.
11881         * target.c (debug_to_terminal_ours_for_output): Add argument.
11882         (update_current_target): Update.
11883         * inflow.c (terminal_ours_for_output): Add 'self' argument.
11884         * inferior.h (terminal_ours_for_output): Add 'self' argument.
11885         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11886
11887 2014-02-19  Tom Tromey  <tromey@redhat.com>
11888
11889         * target.h (struct target_ops) <to_terminal_inferior>: Add
11890         argument.
11891         * target.c (target_terminal_inferior): Add argument.
11892         (update_current_target): Update.
11893         * remote.c (remote_terminal_inferior): Add 'self' argument.
11894         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11895         * inflow.c (terminal_inferior): Add 'self' argument.
11896         * inferior.h (terminal_inferior): Add 'self' argument.
11897         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11898         (go32_terminal_inferior): Add 'self' argument.
11899
11900 2014-02-19  Tom Tromey  <tromey@redhat.com>
11901
11902         * target.h (struct target_ops) <to_terminal_init>: Add argument.
11903         (target_terminal_init): Add argument.
11904         * target.c (debug_to_terminal_init): Add argument.
11905         (update_current_target): Update.
11906         * inflow.c (terminal_init_inferior): Add 'self' argument.
11907         * inferior.h (terminal_init_inferior): Add 'self' argument.
11908         * go32-nat.c (go32_terminal_init): Add 'self' argument.
11909         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11910
11911 2014-02-19  Tom Tromey  <tromey@redhat.com>
11912
11913         * target.h (struct target_ops)
11914         <to_can_accel_watchpoint_condition>: Add argument.
11915         (target_can_accel_watchpoint_condition): Add argument.
11916         * target.c (debug_to_can_accel_watchpoint_condition): Add
11917         argument.
11918         (update_current_target): Update.
11919         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11920         'self' argument.
11921
11922 2014-02-19  Tom Tromey  <tromey@redhat.com>
11923
11924         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11925         Add argument.
11926         (target_region_ok_for_hw_watchpoint): Add argument.
11927         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11928         (default_region_ok_for_hw_watchpoint): Add argument.
11929         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11930         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11931         argument.
11932         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11933         argument.
11934         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11935         argument.
11936         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11937         'self' argument.
11938         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11939         'self' argument.
11940         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11941         'self' argument.
11942         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11943         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11944         'self' argument.
11945         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11946         Add 'self' argument.
11947
11948 2014-02-19  Tom Tromey  <tromey@redhat.com>
11949
11950         * target.h (struct target_ops) <to_insert_watchpoint>: Add
11951         argument.
11952         (target_insert_watchpoint): Add argument.
11953         * target.c (debug_to_insert_watchpoint): Add argument.
11954         (update_current_target): Update.
11955         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11956         * remote.c (remote_insert_watchpoint): Add 'self' argument.
11957         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11958         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11959         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11960         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11961         argument.
11962         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11963         (procfs_insert_hw_watchpoint): Add 'self' argument.
11964         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11965         argument.
11966         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11967         argument.
11968         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11969         argument.
11970         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11971         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11972         argument.
11973         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11974         'self' argument.
11975
11976 2014-02-19  Tom Tromey  <tromey@redhat.com>
11977
11978         * target.h (struct target_ops) <to_remove_watchpoint>: Add
11979         argument.
11980         (target_remove_watchpoint): Add argument.
11981         * target.c (debug_to_remove_watchpoint): Add argument.
11982         (update_current_target): Update.
11983         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11984         * remote.c (remote_remove_watchpoint): Add 'self' argument.
11985         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11986         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11987         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11988         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11989         argument.
11990         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11991         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11992         argument.
11993         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11994         argument.
11995         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11996         argument.
11997         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11998         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11999         argument.
12000         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12001         'self' argument.
12002
12003 2014-02-19  Tom Tromey  <tromey@redhat.com>
12004
12005         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12006         argument.
12007         (target_remove_hw_breakpoint): Add argument.
12008         * target.c (debug_to_remove_hw_breakpoint): Add argument.
12009         (update_current_target): Update.
12010         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12011         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12012         argument.
12013         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12014         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12015         argument.
12016         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12017         'self' argument.
12018
12019 2014-02-19  Tom Tromey  <tromey@redhat.com>
12020
12021         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12022         argument.
12023         (target_insert_hw_breakpoint): Add argument.
12024         * target.c (debug_to_insert_hw_breakpoint): Add argument.
12025         (update_current_target): Update.
12026         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12027         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12028         argument.
12029         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12030         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12031         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12032         argument.
12033         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12034         'self' argument.
12035
12036 2014-02-19  Tom Tromey  <tromey@redhat.com>
12037
12038         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12039         argument.
12040         (target_can_use_hardware_watchpoint): Add argument.
12041         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12042         (update_current_target): Update.
12043         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12044         argument.
12045         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12046         argument.
12047         * remote.c (remote_check_watch_resources): Add 'self' argument.
12048         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12049         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12050         argument.
12051         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12052         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12053         argument.
12054         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12055         argument.
12056         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12057         argument.
12058         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12059         argument.
12060         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12061         argument.
12062         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12063         argument.
12064         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12065         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12066         argument.
12067         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12068         'self' argument.
12069
12070 2014-02-19  Tom Tromey  <tromey@redhat.com>
12071
12072         * target.h (struct target_ops) <to_post_attach>: Add argument.
12073         (target_post_attach): Add argument.
12074         * target.c (debug_to_post_attach): Add argument.
12075         (update_current_target): Update.
12076         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12077         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12078         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12079         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12080         * inf-child.c (inf_child_post_attach): Add 'self' argument.
12081
12082 2014-02-19  Tom Tromey  <tromey@redhat.com>
12083
12084         * windows-nat.c (windows_close): Add 'self' argument.
12085         * tracepoint.c (tfile_close): Add 'self' argument.
12086         * target.h (struct target_ops) <to_close>: Add argument.
12087         * target.c (target_close): Add argument.
12088         (update_current_target): Update.
12089         * remote.c (remote_close): Add 'self' argument.
12090         * remote-sim.c (gdbsim_close): Add 'self' argument.
12091         * remote-mips.c (mips_close): Add 'self' argument.
12092         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12093         * record-full.c (record_full_close): Add 'self' argument.
12094         * record-btrace.c (record_btrace_close): Add 'self' argument.
12095         * monitor.h (monitor_close): Add 'self' argument.
12096         * monitor.c (monitor_close): Add 'self' argument.
12097         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12098         * linux-nat.c (linux_nat_close): Add argument.
12099         * go32-nat.c (go32_close): Add 'self' argument.
12100         * exec.c (exec_close_1): Add 'self' argument.
12101         * ctf.c (ctf_close): Add 'self' argument.
12102         * corelow.c (core_close): Add 'self' argument.
12103         (core_close_cleanup): Update.
12104         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12105         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12106
12107 2014-02-19  Tom Tromey  <tromey@redhat.com>
12108
12109         * remote.c (remote_load): New function.
12110         (init_remote_ops): Use it.
12111
12112 2014-02-19  Tom Tromey  <tromey@redhat.com>
12113
12114         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12115         argument.
12116         * common/linux-btrace.h (linux_supports_btrace): Update.
12117         * remote.c (remote_supports_btrace): Add "self" argument.
12118         * target-delegates.c: Rebuild.
12119         * target.c (target_supports_btrace): Remove.
12120         * target.h (struct target_ops) <to_supports_btrace>: Add
12121         target_ops argument.
12122         (target_supports_btrace): New define.
12123
12124 2014-02-19  Tom Tromey  <tromey@redhat.com>
12125
12126         * record-full.c (record_full_beneath_to_resume_ops)
12127         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12128         (record_full_beneath_to_wait)
12129         (record_full_beneath_to_store_registers_ops)
12130         (record_full_beneath_to_store_registers)
12131         (record_full_beneath_to_xfer_partial_ops)
12132         (record_full_beneath_to_xfer_partial)
12133         (record_full_beneath_to_insert_breakpoint_ops)
12134         (record_full_beneath_to_insert_breakpoint)
12135         (record_full_beneath_to_remove_breakpoint_ops)
12136         (record_full_beneath_to_remove_breakpoint)
12137         (record_full_beneath_to_stopped_by_watchpoint)
12138         (record_full_beneath_to_stopped_data_address)
12139         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12140         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12141         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12142         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12143         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12144         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12145         (tmp_to_stopped_data_address, tmp_to_async): Remove.
12146         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
12147         (record_full_resume, record_full_wait_1)
12148         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12149         (record_full_store_registers, record_full_xfer_partial)
12150         (record_full_insert_breakpoint, record_full_remove_breakpoint)
12151         (record_full_async, record_full_core_xfer_partial): Use target
12152         delegation.
12153         * target-delegates.c: Rebuild.
12154         * target.c (current_xfer_partial): Remove.
12155         (update_current_target): Do not INHERIT or de_fault
12156         to_insert_breakpoint, to_remove_breakpoint,
12157         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12158         to_is_async_p, to_async.  Do not set to_xfer_partial field.
12159         (default_xfer_partial): Simplify.
12160         (current_xfer_partial): Remove.
12161         (target_wait, target_resume): Simplify.
12162         (find_default_can_async_p, find_default_is_async_p): Update.
12163         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12164         to_xfer_partial, to_stopped_by_watchpoint,
12165         to_stopped_data_address.
12166         (target_store_registers): Simplify.
12167         (forward_target_remove_breakpoint)
12168         (forward_target_insert_breakpoint): Remove.
12169         (target_remove_breakpoint, target_insert_breakpoint)
12170         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12171         * target.h (struct target_ops) <to_resume, to_wait,
12172         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12173         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12174         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12175         markup.
12176         (forward_target_remove_breakpoint)
12177         (forward_target_insert_breakpoint): Remove.
12178         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12179         directly.
12180         (record_btrace_insert_breakpoint): Delegate directly.
12181
12182 2014-02-19  Tom Tromey  <tromey@redhat.com>
12183
12184         PR build/7701:
12185         * target-delegates.c: New file.
12186         * target.c: Include target-delegates.c.
12187         (init_dummy_target): Call install_dummy_methods.
12188         (complete_target_initialization): Call install_delegators.
12189         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12190         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12191         * make-target-delegates: New file.
12192
12193 2014-02-19  Tom Tromey  <tromey@redhat.com>
12194
12195         * record.c (find_record_target): Use find_target_at.
12196         * target.c (find_target_at): New function.
12197         * target.h (find_target_at): Declare.
12198
12199 2014-02-19  Tom Tromey  <tromey@redhat.com>
12200
12201         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12202         Add 'ops' argument.
12203         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12204         'ops' argument.
12205         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12206         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12207         'ops' argument.
12208         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12209         argument.
12210         * linux-nat.c (save_sigtrap): Update.
12211         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12212         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12213         (linux_nat_close): Update.
12214         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12215         argument.
12216         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12217         argument.
12218         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12219         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12220         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12221         (tmp_to_async): Add 'ops' argument.
12222         (record_full_stopped_by_watchpoint, record_full_async)
12223         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12224         argument.
12225         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12226         (m32r_stopped_by_watchpoint): Add 'ops' argument.
12227         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12228         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12229         (remote_is_async_p, remote_async): Add 'ops' argument.
12230         (remote_stopped_data_address): Update.
12231         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12232         * target.c (update_current_target)
12233         (find_default_can_async_p, find_default_is_async_p): Update.
12234         (init_dummy_target): Update.
12235         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12236         * target.h (struct target_ops) <to_stopped_by_watchpoint,
12237         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12238         (target_can_async_p, target_is_async_p, target_async)
12239         (target_stopped_by_watchpoint): Update.
12240
12241 2014-02-19  Yao Qi  <yao@codesourcery.com>
12242
12243         PR gdb/16220
12244         * gdbarch.sh: Remove startup_gdbarch.
12245         * gdbarch.c: Regenerated.
12246         * gdbarch.h: Likewise.
12247
12248 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
12249
12250         * rl78-tdep.c (rl78_g10_register_name): New function.
12251         (rl78_return_value): Add g10 support.
12252         (rl78_gdbarch_init): Register rl78_g10_register_name for the
12253         g10.
12254
12255 2014-02-17  Doug Evans  <xdje42@gmail.com>
12256
12257         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12258         (SUBDIR_GUILE_SRCS): Ditto.
12259         (scm-gsmob.o): Ditto.
12260
12261 2014-02-17  Yao Qi  <yao@codesourcery.com>
12262
12263         * gnu-nat.c (ILL_RPC): Declare defined function.
12264
12265 2014-02-17  Yao Qi  <yao@codesourcery.com>
12266
12267         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12268         mach_msg_type_number_t.
12269         (gnu_write_inferior): Likewise.
12270
12271 2014-02-17  Yao Qi  <yao@codesourcery.com>
12272
12273         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12274         in format string.
12275         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12276         (inf_validate_procs, inf_signal): Likewise.
12277         (S_exception_raise_request): Likewise.
12278         (do_mach_notify_dead_name): Likewise.
12279         (steal_exc_port): Likewise.
12280         (gnu_read_inferior): Change 'copy_count''s type to
12281         mach_msg_type_number_t.
12282         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
12283         format string.
12284
12285 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
12286
12287         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12288         flag.  Adjust all users; in particular...
12289         (gnu_wait): ..., don't decrement its value in here...
12290         (gnu_create_inferior): ..., and instead set the flag in here,
12291         around the startup_inferior call, and call that one with
12292         START_INFERIOR_TRAPS_EXPECTED.
12293
12294         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12295         (ILL_RPC): ... new macro.
12296         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12297         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12298         (do_mach_notify_send_once, S_proc_setmsgport_reply)
12299         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12300         functions with ILL_RPC macro.
12301         (S_proc_pid2task_reply, S_proc_task2pid_reply)
12302         (S_proc_task2proc_reply, S_proc_proc2task_reply)
12303         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12304         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12305         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12306         (S_proc_getlogin_reply, S_proc_getsid_reply)
12307         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12308         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12309         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12310         (S_proc_getnports_reply, S_proc_is_important_reply)
12311         (S_proc_get_code_reply): New stub functions, generated with
12312         ILL_RPC macro.
12313
12314         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12315         collected the type check structures.
12316
12317         * reply_mig_hack.awk: Don't expect to see the auto keyword.
12318
12319 2014-02-14  Doug Evans  <dje@google.com>
12320
12321         * target.c (target_write_partial): Fix result type.
12322
12323 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
12324
12325         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12326         the proper offsets to access fpregset_t.
12327
12328 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
12329
12330         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12331         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12332         * h8300-tdep.c (setmachinelist): Remove global.
12333         * hppa-tdep.c (hppa_sigtramp): Remove global.
12334         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12335         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12336         * ravenscar-thread.c (update_target_observer): Remove global.
12337         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12338
12339 2014-02-12  Tom Tromey  <tromey@redhat.com>
12340
12341         * common/rsp-low.c: Update comments.
12342         * common/rsp-low.h: Update comments.
12343
12344 2014-02-12  Tom Tromey  <tromey@redhat.com>
12345
12346         * common/rsp-low.c (convert_ascii_to_int): Remove.
12347         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12348
12349 2014-02-12  Tom Tromey  <tromey@redhat.com>
12350
12351         * common/rsp-low.h (unhexify): Don't declare.
12352         * common/rsp-low.c (unhexify): Remove.
12353
12354 2014-02-12  Tom Tromey  <tromey@redhat.com>
12355
12356         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12357         * common/rsp-low.c (convert_int_to_ascii): Remove.
12358
12359 2014-02-12  Tom Tromey  <tromey@redhat.com>
12360
12361         * common/rsp-low.h (hexify): Don't declare.
12362         * common/rsp-low.c (hexify): Remove.
12363
12364 2014-02-12  Tom Tromey  <tromey@redhat.com>
12365
12366         * common/rsp-low.c (hexify): Never take strlen of argument.
12367
12368 2014-02-12  Tom Tromey  <tromey@redhat.com>
12369
12370         * common/rsp-low.c (bin2hex): Never take strlen of argument.
12371         * remote.c (extended_remote_run, remote_rcmd)
12372         (remote_download_trace_state_variable, remote_save_trace_data)
12373         (remote_set_trace_notes): Update.
12374         * tracepoint.c (encode_source_string, tfile_write_status)
12375         (tfile_write_uploaded_tsv): Update.
12376
12377 2014-02-12  Tom Tromey  <tromey@redhat.com>
12378
12379         * tracepoint.c: Include rsp-low.h.
12380         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12381         * remote.c: Include rsp-low.h.
12382         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12383         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12384         (remote_unescape_input): Move to common/rsp-low.c.
12385         * common/rsp-low.h: New file.
12386         * common/rsp-low.c: New file.
12387         * Makefile.in (SFILES): Add common/rsp-low.c.
12388         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12389         (COMMON_OBS): Add rsp-low.o.
12390         (rsp-low.o): New target.
12391
12392 2014-02-12  Tom Tromey  <tromey@redhat.com>
12393
12394         * utils.h: Include print-utils.h.
12395         (host_address_to_string, plongest, pulongest, phex, phex_nz)
12396         (int_string, core_addr_to_string, core_addr_to_string_nz)
12397         (hex_string, hex_string_custom): Don't declare.
12398         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12399         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12400         (hex_string_custom, int_string, core_addr_to_string)
12401         (core_addr_to_string_nz, host_address_to_string): Move to
12402         common/print-utils.c.
12403         * common/print-utils.h: New file.
12404         * common/print-utils.c: New file
12405         * Makefile.in (SFILES): Add common/print-utils.c.
12406         (HFILES_NO_SRCDIR): Add common/print-utils.h.
12407         (COMMON_OBS): Add print-utils.o.
12408         (print-utils.o): New target.
12409
12410 2014-02-12  Tom Tromey  <tromey@redhat.com>
12411
12412         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12413
12414 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12415
12416         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12417
12418 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12419
12420         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12421         if a PT_IO ptrace request returns sucessfully but indicates that 0
12422         bytes were transferred.
12423
12424 2014-02-12  Pedro Alves  <palves@redhat.com>
12425             Kevin Buettner <kevinb@redhat.com>
12426
12427         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12428         TYPE_INSTANCE_FLAG_CODE_SPACE.
12429
12430 2014-02-12  Pedro Alves  <palves@redhat.com>
12431
12432         * h8300-tdep.c (pseudo_from_raw_register)
12433         (raw_from_pseudo_register): New functions.
12434         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12435         them.
12436
12437 2014-02-12  Pedro Alves  <palves@redhat.com>
12438
12439         * h8300-tdep.c (h8300_register_sim_regno): New function.
12440         (h8300_gdbarch_init): Install h8300_register_sim_regno as
12441         gdbarch_register_sim_regno hook.
12442
12443 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12444
12445         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12446
12447 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12448
12449         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12450
12451 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12452
12453         * obsd-tdep.h (obsd_init_abi): New prototype.
12454         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12455         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12456         (obsd_init_abi): New functions.
12457         * i386obsd-tdep.c: Include "obsd-tdep.h".
12458         (i386obsd_init_abi): Call obsd_init_abi.
12459         * amd64obsd-tdep.c: Include "obsd-tdep.h".
12460         (amd64obsd_init_abi): Call obsd_init_abi.
12461         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12462         obsd-tdep.c to gdb_target_obs.
12463
12464 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
12465
12466         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12467         double float arguments to 16-byte in the argument slots.
12468
12469 2014-02-11  Doug Evans  <xdje42@gmail.com>
12470
12471         * configure.ac: Don't crash if pkg-config is not found and guile
12472         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
12473         in guile checks.
12474         * configure: Regenerate.
12475
12476 2014-02-11  Yao Qi  <yao@codesourcery.com>
12477
12478         * aix-thread.c (aix_thread_xfer_partial): Update comments.
12479         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12480         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12481         * gnu-nat.c (gnu_xfer_memory): Likewise.
12482         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
12483         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12484         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12485         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12486
12487 2014-02-11  Yao Qi  <yao@codesourcery.com>
12488
12489         * target.h (enum target_xfer_error): Rename to ...
12490         (enum target_xfer_status): ... it.  New.  All users updated.
12491         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12492         New.
12493         (TARGET_XFER_STATUS_ERROR_P): New macro.
12494         (target_xfer_error_to_string): Remove declaration.
12495         (target_xfer_status_to_string): Declare.
12496         (target_xfer_partial_ftype): Adjust it.
12497         (struct target_ops) <to_xfer_partial>: Return
12498         target_xfer_status.  Add argument xfered_len.  Update
12499         comments.
12500         * target.c (target_xfer_error_to_string): Rename to ...
12501         (target_xfer_status_to_string): ... it.  New.  All callers
12502         updated.
12503         (target_read_live_memory): Likewise.  Call target_xfer_partial
12504         instead of target_read.
12505         (memory_xfer_live_readonly_partial): Return
12506         target_xfer_status.  Add argument xfered_len.
12507         (raw_memory_xfer_partial): Likewise.
12508         (memory_xfer_partial_1): Likewise.
12509         (memory_xfer_partial): Likewise.
12510         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
12511         properly.  Update debug message.
12512         (default_xfer_partial, current_xfer_partial): Likewise.
12513         (target_write_partial): Likewise.
12514         (target_read_partial): Likewise.  All callers updated.
12515         (read_whatever_is_readable): Likewise.
12516         (target_write_with_progress): Likewise.
12517         (target_read_alloc_1): Likewise.
12518
12519         * aix-thread.c (aix_thread_xfer_partial): Likewise.
12520         * auxv.c (procfs_xfer_auxv): Likewise.
12521         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12522         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12523         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12524         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12525         * corefile.c (read_memory): Adjust.
12526         * corelow.c (core_xfer_partial): Likewise.
12527         * ctf.c (ctf_xfer_partial): Likewise.
12528         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
12529         updated.
12530         (darwin_xfer_partial): Likewise.
12531         * exec.c (section_table_xfer_memory_partial): Likewise.  All
12532         callers updated.
12533         (exec_xfer_partial): Likewise.
12534         * exec.h (section_table_xfer_memory_partial): Update
12535         declaration.
12536         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
12537         negative.
12538         (gnu_xfer_partial): Likewise.
12539         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12540         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12541         (ia64_hpux_xfer_solib_got): Likewise.
12542         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
12543         type of 'partial_len' to ULONGEST.
12544         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12545         * linux-nat.c (linux_xfer_siginfo ): Likewise.
12546         (linux_nat_xfer_partial): Likewise.
12547         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12548         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12549         * monitor.c (monitor_xfer_memory): Likewise.
12550         (monitor_xfer_partial): Likewise.
12551         * procfs.c (procfs_xfer_partial): Likewise.
12552         * record-btrace.c (record_btrace_xfer_partial): Likewise.
12553         * record-full.c (record_full_xfer_partial): Likewise.
12554         (record_full_core_xfer_partial): Likewise.
12555         * remote-sim.c (gdbsim_xfer_memory): Likewise.
12556         (gdbsim_xfer_partial): Likewise.
12557         * remote.c (remote_write_bytes_aux): Likewise.  All callers
12558         updated.
12559         (remote_write_bytes, remote_read_bytes): Likewise.  All
12560         callers updated.
12561         (remote_flash_erase): Likewise.  All callers updated.
12562         (remote_write_qxfer): Likewise.  All callers updated.
12563         (remote_read_qxfer): Likewise.  All callers updated.
12564         (remote_xfer_partial): Likewise.
12565         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12566         (rs6000_xfer_shared_libraries): Likewise.
12567         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12568         (sol_thread_xfer_partial): Likewise.
12569         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12570         (sparc_xfer_partial): Likewise.
12571         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
12572         updated.
12573         (spu_xfer_partial): Likewise.
12574         * spu-multiarch.c (spu_xfer_partial): Likewise.
12575         * tracepoint.c (tfile_xfer_partial): Likewise.
12576         * windows-nat.c (windows_xfer_memory): Likewise.
12577         (windows_xfer_shared_libraries): Likewise.
12578         (windows_xfer_partial): Likewise.
12579         * valprint.c: Replace 'target_xfer_error' with
12580         'target_xfer_status' in comments.
12581
12582 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
12583
12584         Checked in by Joel Brobecker <brobecker@adacore.com>.
12585         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12586
12587 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
12588
12589         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12590         function parameters.
12591
12592 2014-02-10  Will Newton  <will.newton@linaro.org>
12593
12594         * elfread.c (elf_rel_plt_read): Look for a .got section if
12595         looking up .got.plt fails.
12596         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12597         on address passed to elf_gnu_ifunc_record_cache.
12598         (elf_gnu_ifunc_resolve_addr): Likewise.
12599         (elf_gnu_ifunc_resolver_return_stop): Likewise.
12600
12601 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
12602
12603         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12604         (X_RETTURN): New macro.
12605         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12606
12607         * sparc64-tdep.c (sparc64_init_abi): Hook
12608         sparc_in_function_epilogue_p.
12609
12610 2014-02-10  Gary Benson  <gbenson@redhat.com>
12611
12612         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12613         Rename name_matcher to symbol_matcher.
12614
12615 2014-02-10  Gary Benson  <gbenson@redhat.com>
12616
12617         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12618         Use expand_symtabs_file_matcher_ftype and
12619         expand_symtabs_symbol_matcher_ftype.
12620
12621 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12622
12623         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12624         (struct ada_symbol_cache): New.
12625         (ada_free_symbol_cache): Forward declare.
12626         (struct ada_pspace_data): New.
12627         (ada_pspace_data_handle): New static global.
12628         (get_ada_pspace_data, ada_pspace_data_cleanup)
12629         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12630         (cache_space, cache): Delete, now folded inside struct
12631         ada_pspace_data.
12632         (ada_get_symbol_cache): New function.
12633         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12634         implementation.
12635         (_initialize_ada_language): Remove initialization of cache_space.
12636         Move call to observer_attach_inferior_exit up, grouping it
12637         with the other observer registrations inside this function.
12638         Rename command to be more general.  Add call to
12639         register_program_space_data_with_cleanup.
12640
12641 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12642
12643         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12644         ada_new_objfile_observer.
12645         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12646         (_initialize_tasks): Update uses of ada_new_objfile_observer
12647         and ada_tasks_normal_stop_observer.
12648
12649 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12650
12651         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12652         returned by the 'Length attribute to integer.
12653
12654 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12655
12656         * ada-lang.c (_initialize_ada_language): Initialize
12657         cache_space obstack.
12658
12659 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12660
12661         * ada-lang.c (HASH_SIZE): New macro.
12662         (struct cache_entry): New type.
12663         (cache_space, cache): New static globals.
12664         (ada_clear_symbol_cache, find_entry): New functions.
12665         (lookup_cached_symbol, cache_symbol): Implement.
12666         (ada_new_objfile_observer, ada_free_objfile_observer): New.
12667         (_initialize_ada_language): Attach ada_new_objfile_observer
12668         and ada_free_objfile_observer.
12669
12670 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12671
12672         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12673         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12674         struct block * parameter.
12675         (ada_lookup_symbol_list_worker): Constify local variable "block".
12676         Remove cast which is no longer necessary.
12677
12678 2014-02-10  Doug Evans  <xdje42@gmail.com>
12679
12680         Add Guile as an extension language.
12681         * NEWS: Mention Guile scripting.
12682         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12683         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12684         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12685         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12686         (CLIBS): Add GUILE_LIBS.
12687         (install-guile): New rule.
12688         (guile.o): New rule.
12689         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12690         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12691         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12692         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12693         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12694         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12695         (scm-type.o, scm-utils.o, scm-value.o): New rules.
12696         * configure.ac: New option --with-guile.
12697         * configure: Regenerate.
12698         * config.in: Regenerate.
12699         * auto-load.c: Remove #include "python/python.h".  Add #include
12700         "gdb/section-scripts.h".
12701         (source_section_scripts): Handle Guile scripts.
12702         (_initialize_auto_load): Add name of Guile objfile script to
12703         scripts-directory help text.
12704         * breakpoint.c (condition_command): Tweak comment to include Scheme.
12705         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12706         (struct breakpoint): New member scm_bp_object.
12707         * defs.h (enum command_control_type): New value guile_control.
12708         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
12709         "extension.h".
12710         (show_user): Update comment.
12711         (_initialize_cli_cmds): Update help text for "show user".  Update help
12712         text for max-user-call-depth.
12713         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
12714         "extension.h".
12715         (multi_line_command_p): Add guile_control.
12716         (print_command_lines): Handle guile_control.
12717         (execute_control_command, recurse_read_control_structure): Ditto.
12718         (process_next_line): Recognize "guile" commands.
12719         * disasm.c (gdb_disassemble_info): Make non-static.
12720         * disasm.h: #include "dis-asm.h".
12721         (struct gdbarch): Add forward decl.
12722         (gdb_disassemble_info): Declare.
12723         * extension.c: #include "guile/guile.h".
12724         (extension_languages): Add guile.
12725         (get_ext_lang_defn): Handle EXT_LANG_GDB.
12726         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12727         * gdbtypes.c (get_unsigned_type_max): New function.
12728         (get_signed_type_minmax): New function.
12729         * gdbtypes.h (get_unsigned_type_max): Declare.
12730         (get_signed_type_minmax): Declare.
12731         * guile/README: New file.
12732         * guile/guile-internal.h: New file.
12733         * guile/guile.c: New file.
12734         * guile/guile.h: New file.
12735         * guile/scm-arch.c: New file.
12736         * guile/scm-auto-load.c: New file.
12737         * guile/scm-block.c: New file.
12738         * guile/scm-breakpoint.c: New file.
12739         * guile/scm-disasm.c: New file.
12740         * guile/scm-exception.c: New file.
12741         * guile/scm-frame.c: New file.
12742         * guile/scm-gsmob.c: New file.
12743         * guile/scm-iterator.c: New file.
12744         * guile/scm-lazy-string.c: New file.
12745         * guile/scm-math.c: New file.
12746         * guile/scm-objfile.c: New file.
12747         * guile/scm-ports.c: New file.
12748         * guile/scm-pretty-print.c: New file.
12749         * guile/scm-safe-call.c: New file.
12750         * guile/scm-string.c: New file.
12751         * guile/scm-symbol.c: New file.
12752         * guile/scm-symtab.c: New file.
12753         * guile/scm-type.c: New file.
12754         * guile/scm-utils.c: New file.
12755         * guile/scm-value.c: New file.
12756         * guile/lib/gdb.scm: New file.
12757         * guile/lib/gdb/boot.scm: New file.
12758         * guile/lib/gdb/experimental.scm: New file.
12759         * guile/lib/gdb/init.scm: New file.
12760         * guile/lib/gdb/iterator.scm: New file.
12761         * guile/lib/gdb/printing.scm: New file.
12762         * guile/lib/gdb/types.scm: New file.
12763         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12764         (VPATH): Add $(GUILE_SRCDIR).
12765         (GUILE_DIR): New variable.
12766         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12767         (all): Add stamp-guile dependency.
12768         (stamp-guile): New rule.
12769         (clean-guile, install-guile, uninstall-guile): New rules.
12770         (install-only): Add install-guile dependency.
12771         (uninstall): Add uninstall-guile dependency.
12772         (clean): Add clean-guile dependency.
12773
12774 2014-02-09  Doug Evans  <xdje42@gmail.com>
12775
12776         Revert this patch (which I approved, mea culpa).
12777
12778         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12779
12780         * Makefile.in (all-lib): Remove.
12781         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12782
12783 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
12784
12785         Fix Python stack corruption.
12786         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12787         gdb_py_longest.
12788
12789 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12790
12791         * Makefile.in (all-lib): Remove.
12792         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12793
12794 2014-02-07  Doug Evans  <dje@google.com>
12795
12796         * extension-priv.h (extension_language_script_ops): Add comment.
12797         (extension_language_ops): Add comment.
12798         (active_ext_lang_state): Fix typo in comment.
12799
12800 2014-02-07  Pedro Alves  <palves@redhat.com>
12801
12802         PR breakpoints/16292
12803         * infrun.c (handle_signal_stop) <signal arrives while stepping
12804         over a breakpoint>: Switch back to the stepping thread.
12805
12806 2014-02-07  Yao Qi  <yao@codesourcery.com>
12807
12808         * target.c (target_xfer_partial): Return zero if LEN is zero.
12809
12810 2014-02-07  Yao Qi  <yao@codesourcery.com>
12811
12812         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12813         (ld_so_xfer_auxv): Likewise.
12814         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12815         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12816         * corelow.c (core_xfer_partial): Likewise.
12817         * ctf.c (ctf_xfer_partial): Likewise.
12818         * darwin-nat.c (darwin_read_dyld_info): Likewise.
12819         (darwin_xfer_partial): Likewise.
12820         * exec.c (exec_xfer_partial): Likewise.
12821         * gnu-nat.c (gnu_xfer_partial): Likewise.
12822         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12823         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12824         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12825         * linux-nat.c (linux_xfer_siginfo): Likewise.
12826         (linux_proc_xfer_spu): Likewise.
12827         * procfs.c (procfs_xfer_partial): Likewise.
12828         * record-full.c (record_full_xfer_partial): Likewise.
12829         (record_full_core_xfer_partial): Likewise.
12830         * remote-sim.c (gdbsim_xfer_partial): Likewise.
12831         * remote.c (remote_write_qxfer): Likewise.
12832         (remote_write_qxfer, remote_read_qxfer): Likewise.
12833         (remote_xfer_partial): Likewise.
12834         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12835         (rs6000_xfer_shared_libraries): Likewise.
12836         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12837         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12838         (spu_xfer_partial): Likewise.
12839         * target.c (memory_xfer_partial_1): Likewise.
12840         * tracepoint.c (tfile_xfer_partial): Likewise.
12841         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12842         (windows_xfer_partial): Likewise.
12843
12844 2014-02-07  Yao Qi  <yao@codesourcery.com>
12845
12846         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
12847         comments.
12848         (core_xfer_shared_libraries_aix): Likewise.
12849         * gdbarch.c, gdbarch.h: Regenerated.
12850         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12851         ULONGEST.  Change 'len_avail' type to ULONGEST.
12852         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12853         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12854         declaration.
12855         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12856
12857 2014-02-07  Yao Qi  <yao@codesourcery.com>
12858
12859         * corefile.c (memory_error): Get 'exception' from ERR and pass
12860         'exception' to throw_error.
12861
12862 2014-02-06  Doug Evans  <xdje42@gmail.com>
12863
12864         * configure.ac (libpython checking): Remove all but python.o from
12865         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
12866         * configure: Regenerate.
12867
12868         * Makefile.in (SFILES): Add extension.c.
12869         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12870         (COMMON_OBS): Add extension.o.
12871         * extension.h: New file.
12872         * extension-priv.h: New file.
12873         * extension.c: New file.
12874
12875         * python/python-internal.h: #include "extension.h".
12876         (gdbpy_auto_load_enabled): Declare.
12877         (gdbpy_apply_val_pretty_printer): Declare.
12878         (gdbpy_apply_frame_filter): Declare.
12879         (gdbpy_preserve_values): Declare.
12880         (gdbpy_breakpoint_cond_says_stop): Declare.
12881         (gdbpy_breakpoint_has_cond): Declare.
12882         (void source_python_script_for_objfile): Delete.
12883         * python/python.c: #include "extension-priv.h".
12884         Delete inclusion of "observer.h".
12885         (extension_language_python): Moved here and renamed from
12886         script_language_python in py-auto-load.c.
12887         Redefined to be of type extension_language_defn.
12888         (python_extension_script_ops): New global.
12889         (python_extension_ops): New global.
12890         (struct python_env): New member previous_active.
12891         (restore_python_env): Call restore_active_ext_lang.
12892         (ensure_python_env): Call set_active_ext_lang.
12893         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12894         New arg extlang.
12895         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12896         New arg extlang.
12897         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12898         New arg extlang.
12899         (gdbpy_eval_from_control_command): Renamed from
12900         eval_python_from_control_command, made static.  New arg extlang.
12901         (gdbpy_source_script) Renamed from source_python_script, made static.
12902         New arg extlang.
12903         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
12904         result to int.  New arg extlang.
12905         (gdbpy_source_objfile_script): Renamed from
12906         source_python_script_for_objfile, made static.  New arg extlang.
12907         (gdbpy_start_type_printers): Renamed from start_type_printers, made
12908         static.  New args extlang, extlang_printers.  Change result type to
12909         "void".
12910         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12911         static.  New arg extlang.  Rename arg printers to extlang_printers
12912         and change type to ext_lang_type_printers *.
12913         (gdbpy_free_type_printers): Renamed from free_type_printers, made
12914         static.  Replace argument arg with extlang, extlang_printers.
12915         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12916         (!HAVE_PYTHON, source_python_script): Delete.
12917         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12918         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12919         (!HAVE_PYTHON, start_type_printers): Delete.
12920         (!HAVE_PYTHON, apply_type_printers): Delete.
12921         (!HAVE_PYTHON, free_type_printers): Delete.
12922         (_initialize_python): Delete call to observer_attach_before_prompt.
12923         (finalize_python): Set/restore active extension language.
12924         (gdbpy_finish_initialization) Renamed from
12925         finish_python_initialization, made static.  New arg extlang.
12926         (gdbpy_initialized): New function.
12927         * python/python.h: #include "extension.h".  Delete #include
12928         "value.h", "mi/mi-cmds.h".
12929         (extension_language_python): Declare.
12930         (GDBPY_AUTO_FILE_NAME): Delete.
12931         (enum py_bt_status): Moved to extension.h and renamed to
12932         ext_lang_bt_status.
12933         (enum frame_filter_flags): Moved to extension.h.
12934         (enum py_frame_args): Moved to extension.h and renamed to
12935         ext_lang_frame_args.
12936         (finish_python_initialization): Delete.
12937         (eval_python_from_control_command): Delete.
12938         (source_python_script): Delete.
12939         (apply_val_pretty_printer): Delete.
12940         (apply_frame_filter): Delete.
12941         (preserve_python_values): Delete.
12942         (gdbpy_script_language_defn): Delete.
12943         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12944         (start_type_printers, apply_type_printers, free_type_printers): Delete.
12945
12946         * auto-load.c: #include "extension.h".
12947         (GDB_AUTO_FILE_NAME): Delete.
12948         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
12949         (script_language_gdb): Delete, moved to extension.c and renamed to
12950         extension_language_gdb.
12951         (source_gdb_script_for_objfile): Delete.
12952         (auto_load_pspace_info): New member unsupported_script_warning_printed.
12953         (loaded_script): Change type of language member to
12954         struct extension_language_defn *.
12955         (init_loaded_scripts_info): Initialize
12956         unsupported_script_warning_printed.
12957         (maybe_add_script): Make static.  Change type of language arg to
12958         struct extension_language_defn *.
12959         (clear_section_scripts): Reset unsupported_script_warning_printed.
12960         (auto_load_objfile_script_1): Rewrite to use extension language API.
12961         (auto_load_objfile_script): Make public.  Remove support-compiled-in
12962         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12963         (source_section_scripts): Rewrite to use extension language API.
12964         (load_auto_scripts_for_objfile): Rewrite to use
12965         auto_load_scripts_for_objfile.
12966         (collect_matching_scripts_data): Change type of language member to
12967         struct extension_language_defn *.
12968         (auto_load_info_scripts): Change type of language arg to
12969         struct extension_language_defn *.
12970         (unsupported_script_warning_print): New function.
12971         (script_not_found_warning_print): Make static.
12972         (_initialize_auto_load): Rewrite construction of scripts-directory
12973         help.
12974         * auto-load.h (struct objfile): Add forward decl.
12975         (struct script_language): Delete.
12976         (struct auto_load_pspace_info): Add forward decl.
12977         (struct extension_language_defn): Add forward decl.
12978         (maybe_add_script): Delete.
12979         (auto_load_objfile_script): Declare.
12980         (script_not_found_warning_print): Delete.
12981         (auto_load_info_scripts): Update prototype.
12982         (auto_load_gdb_scripts_enabled): Declare.
12983         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12984         auto_load_python_scripts_enabled and made public.
12985         (script_language_python): Delete, moved to python.c.
12986         (gdbpy_script_language_defn): Delete.
12987         (info_auto_load_python_scripts): Update to use
12988         extension_language_python.
12989
12990         * breakpoint.c (condition_command): Replace call to
12991         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12992         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12993         with call to breakpoint_ext_lang_cond_says_stop.
12994         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12995         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
12996         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12997         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12998         New arg slang.
12999         (local_setattro): Print name of extension language with existing
13000         stop condition.
13001
13002         * valprint.c (val_print, value_print): Update to call
13003         apply_ext_lang_val_pretty_printer.
13004         * cp-valprint.c (cp_print_value): Update call to
13005         apply_ext_lang_val_pretty_printer.
13006         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13007         (gdbpy_apply_val_pretty_printer): Renamed from
13008         apply_val_pretty_printer.  New arg extlang.
13009         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13010
13011         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13012         extension language API.
13013         * cli/cli-script.c (execute_control_command): Update to call
13014         eval_ext_lang_from_control_command.
13015
13016         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13017         enum ext_lang_bt_status values.  Update call to
13018         apply_ext_lang_frame_filter.
13019         (mi_cmd_stack_list_locals): Ditto.
13020         (mi_cmd_stack_list_args): Ditto.
13021         (mi_cmd_stack_list_variables): Ditto.
13022         * mi/mi-main.c: Delete #include "python/python-internal.h".
13023         Add #include "extension.h".
13024         (mi_cmd_list_features): Replace reference to python internal variable
13025         gdb_python_initialized with call to ext_lang_initialized_p.
13026
13027         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13028         Update to use enum ext_lang_frame_args.  Update to call
13029         apply_ext_lang_frame_filter.
13030         * python/py-framefilter.c (extract_sym): Update to use enum
13031         ext_lang_bt_status.
13032         (extract_value, py_print_type, py_print_value): Ditto.
13033         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13034         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13035         (py_print_frame): Ditto.
13036         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13037         New arg extlang.  Update to use enum ext_lang_bt_status.
13038
13039         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13040         finish_python_initialization.  Replace with call to
13041         finish_ext_lang_initialization.
13042
13043         * typeprint.c (do_free_global_table): Update to call
13044         free_ext_lang_type_printers.
13045         (create_global_typedef_table): Update to call
13046         start_ext_lang_type_printers.
13047         (find_global_typedef): Update to call apply_ext_lang_type_printers.
13048         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13049         (type_print_options): Change type of global_printers from "void *"
13050         to "struct ext_lang_type_printers *".
13051
13052         * value.c (preserve_values): Update to call preserve_ext_lang_values.
13053         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13054         (gdbpy_preserve_values): Renamed from preserve_python_values.
13055         New arg extlang.
13056         (!HAVE_PYTHON, preserve_python_values): Delete.
13057
13058         * utils.c (quit_flag): Delete, moved to extension.c.
13059         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13060         extension.c.
13061
13062         * eval.c: Delete #include "python/python.h".
13063         * main.c: Delete #include "python/python.h".
13064
13065         * defs.h: Update comment.
13066
13067 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
13068
13069         GDB 7.7 released.
13070
13071 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
13072
13073         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13074         defined.
13075
13076 2014-02-05  Yao Qi  <yao@codesourcery.com>
13077
13078         * remote.c (remote_pass_signals): Remove local 'buf' and use
13079         rs->buf.
13080         (remote_program_signals): Likewise.
13081
13082 2014-02-05  Yao Qi  <yao@codesourcery.com>
13083
13084         * ctf.c: Include "inferior.h" and "gdbthread.h".
13085         (CTF_PID): A new macro.
13086         (ctf_open): Call inferior_appeared and add_thread_silent.
13087         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13088         (ctf_thread_alive): New function.
13089         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13090
13091 2014-02-05  Yao Qi  <yao@codesourcery.com>
13092
13093         Revert this patch:
13094
13095         2013-05-24  Yao Qi  <yao@codesourcery.com>
13096
13097         * tracepoint.c (TFILE_PID): Remove.
13098         (tfile_open): Don't add thread and inferior.
13099         (tfile_close): Don't set 'inferior_ptid'.  Don't call
13100         exit_inferior_silent.
13101         (tfile_thread_alive): Remove.
13102         (init_tfile_ops): Don't set field 'to_thread_alive' of
13103         tfile_ops.
13104
13105 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
13106
13107         * remote.c (remote_start_remote): Call remote_check_symbols even
13108         if only symbol-file (not file) has been given.
13109
13110 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13111
13112         * gdbarch.sh (skip_entrypoint): New callback.
13113         * gdbarch.c, gdbarch.h: Regenerate.
13114         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13115         * infrun.c (fill_in_stop_func): Likewise.
13116         * ppc-linux-tdep.c: Include "elf/ppc64.h".
13117         (ppc_elfv2_elf_make_msymbol_special): New function.
13118         (ppc_elfv2_skip_entrypoint): Likewise.
13119         (ppc_linux_init_abi): Install them for ELFv2.
13120
13121 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13122
13123         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13124         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13125         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13126         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
13127         structures returned in GPRs.
13128
13129 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13130
13131         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13132         offset to the stack parameter list for the ELFv2 ABI.
13133
13134 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13135
13136         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13137         set_gdbarch_convert_from_func_ptr_addr and
13138         set_gdbarch_elf_make_msymbol_special for ELFv1.
13139         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13140         function descriptors on ELFv1.
13141         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
13142         set up r12 at function entry.
13143
13144 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13145
13146         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13147         (struct gdbarch_tdep): New member elf_abi.
13148
13149         * rs6000-tdep.c: Include "elf/ppc64.h".
13150         (rs6000_gdbarch_init): Detect ELF ABI version.
13151
13152 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13153
13154         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13155         within a register pair holding a DFP 128-bit value on little-endian.
13156         (ppc64_sysv_abi_return_value_base): Likewise.
13157         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13158         (dfp_pseudo_register_write): Likewise.
13159
13160 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13161
13162         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13163         offset on little-endian when passing _Decimal32.
13164         (ppc64_sysv_abi_return_value_base): Likewise for return values.
13165
13166 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13167
13168         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13169         of the overlapped FP register within the VSX register on little-
13170         endian platforms.
13171         (efpr_pseudo_register_write): Likewise.
13172
13173 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13174
13175         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13176         offset on little-endian when passing small structures.
13177
13178 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13179
13180         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13181         (struct ppc64_sysv_argpos): New data structure.
13182         (ppc64_sysv_abi_push_float): Remove.
13183         (ppc64_sysv_abi_push_val): New function.
13184         (ppc64_sysv_abi_push_integer): Likewise.
13185         (ppc64_sysv_abi_push_freg): Likewise.
13186         (ppc64_sysv_abi_push_vreg): Likewise.
13187         (ppc64_sysv_abi_push_param): Likewise.
13188         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13189         (ppc64_sysv_abi_return_value_base): New function.
13190         (ppc64_sysv_abi_return_value): Refactor to use it.
13191
13192 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13193
13194         * NEWS: Document new target powerpc64le-*-linux*.
13195
13196 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
13197
13198         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13199         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13200         core dumps.
13201         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13202         register set used in ELF core dumps.  Add floating-point register set.
13203
13204 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
13205
13206         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13207         dwarf2_to_gdb[] table using symbolic constants.  Adjust
13208         penultimate entry from number representing the PC register
13209         to symbolic constant representing the MDR register.  Add
13210         constant for the PC register to the end of the table.
13211
13212 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
13213
13214         * bsd-kvm.c: Include <sys/param.h>
13215
13216 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
13217
13218         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13219
13220 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
13221
13222         * ada-lang.h (clear_ada_sym_cache): Delete.
13223
13224 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
13225
13226         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13227
13228 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
13229
13230         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13231           the sigreturn register save area only if the syscall is
13232           sigreturn.
13233
13234 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
13235
13236         * valops.c (value_slice): Minor reformatting.
13237
13238 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
13239
13240         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13241
13242 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
13243
13244         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13245         New static globals.
13246         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13247         (ada_ignore_descriptive_types_p): New static global.
13248         (find_parallel_type_by_descriptive_type): Return immediately
13249         if ada_ignore_descriptive_types_p is set.
13250         (_initialize_ada_language): Register new commands "maintenance
13251         set ada", "maintenance show ada", "maintenance set ada
13252         ignore-descriptive-types" and "maintenance show ada
13253         ignore-descriptive-types".
13254         * NEWS: Add entry for new "maint ada set/show
13255         ignore-descriptive-types" commands.
13256
13257 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
13258
13259         * record-btrace.c (record_btrace_close): Call btrace_teardown
13260         for all threads.
13261
13262 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13263
13264         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13265         "ui-out.h".
13266
13267 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13268
13269         * ada-typeprint (type_is_full_subrange_of_target_type):
13270         New function.
13271         (print_range): Add parameter bounds_prefered_p.  If not set,
13272         try printing range types using the name of their base type.
13273         (print_range_type): Add parameter bounds_prefered_p.
13274         Use it in call to print_range.
13275         (print_array_type, ada_print_type): Update calls to print_range
13276         and print_range_type.
13277
13278 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13279
13280         * ada-typeprint.c (print_array_type, print_choices, print_range)
13281         (print_range_bound, print_dynamic_range_bound, print_range_type):
13282         Remove declaration.
13283
13284 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13285
13286         * ada-typeprint.c (print_range): Add missing empty line
13287         after local declaration.
13288
13289 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13290
13291         * ada-valprint.c (print_optional_low_bound): Get index_type's
13292         target type for as long as it is a TYPE_CODE_RANGE.
13293
13294 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13295
13296         * procfs.c (procfs_make_note_section): Remove assertion and
13297         associated comment.
13298
13299 2014-01-24  Yao Qi  <yao@codesourcery.com>
13300
13301         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13302         * corelow.c (get_core_siginfo): Likewise.
13303
13304 2014-01-24  Yao Qi  <yao@codesourcery.com>
13305
13306         * remote.c (remote_write_bytes_aux): Change type of 'len' to
13307         ULONGEST.  Don't check 'len' is negative.
13308         (remote_write_bytes):  Change type of 'len' to ULONGEST.
13309
13310 2014-01-23  Tom Tromey  <tromey@redhat.com>
13311
13312         PR python/16485:
13313         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13314         Handle exception from frame.block.
13315         (FrameVars.fetch_frame_locals): Likewise.
13316
13317 2014-01-23  Tom Tromey  <tromey@redhat.com>
13318
13319         PR python/16487:
13320         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13321         on a NULL pointer.  Move "goto error" to correct place.
13322
13323 2014-01-23  Tom Tromey  <tromey@redhat.com>
13324
13325         PR python/16491:
13326         * python/py-framefilter.c (apply_frame_filter): Call
13327         ensure_python_env after computing gdbarch.
13328
13329 2014-01-23  Yao Qi  <yao@codesourcery.com>
13330
13331         * target.c (raw_memory_xfer_partial): Change argument type
13332         from void * to gdb_byte *.
13333         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13334
13335 2014-01-22  Doug Evans  <dje@google.com>
13336
13337         New gdbserver option --debug-format=timestamp.
13338         * NEWS: Mention it.
13339
13340 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
13341
13342         * syscalls/s390x-linux.xml: New file.
13343         * syscalls/s390-linux.xml: New file.
13344         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13345         (XML_SYSCALL_FILENAME_S390X): Likewise.
13346         (op_svc): New enum value for SVC opcode.
13347         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13348         (s390_linux_get_syscall_number): New function.
13349         (s390_gdbarch_init): Register '*get_syscall_number' and the
13350         syscall xml file name.
13351         * data-directory/Makefile.in (SYSCALLS_FILES): Add
13352         "s390-linux.xml" and "s390x-linux.xml".
13353         * NEWS: Announce new feature.
13354
13355 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
13356
13357         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13358
13359 2014-01-22  Pedro Alves  <palves@redhat.com>
13360
13361         * xtensa-config.c: Include defs.h.
13362
13363 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13364
13365         * common/common-utils.h: Add "ARI:" comment beside __func__
13366         reference.
13367
13368 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13369
13370         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13371         documentation a bit.
13372
13373 2014-01-21  Roland McGrath  <mcgrathr@google.com>
13374
13375         * configure.ac: Call AM_PROG_INSTALL_STRIP.
13376         * configure: Regenerate.
13377         * aclocal.m4: Regenerate.
13378         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13379         New substituted variables.
13380         (install-strip): New target.
13381         (INSTALL_SCRIPT): New substituted variable.
13382         (FLAGS_TO_PASS): Add it.
13383         (install-only): Use $(INSTALL_SCRIPT) rather than
13384         $(INSTALL_PROGRAM) for gcore.
13385
13386 2014-01-20  Tom Tromey  <tromey@redhat.com>
13387
13388         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13389         together.
13390
13391 2014-01-20  Tom Tromey  <tromey@redhat.com>
13392
13393         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13394         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13395         (deprecated_cmd_warning, complete_on_cmdlist): Update.
13396         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13397         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13398         (struct cmd_list_element) <flags>: Remove.
13399         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13400         doc_allocated>: New fields.
13401         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13402         bitfields.
13403         * maint.c (maintenance_do_deprecate): Update.
13404         * top.c (execute_command): Update.
13405
13406 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
13407
13408         * xtensa-linux-nat.c: Include asm/ptrace.h.
13409
13410 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13411
13412         * Makefile.in (SFILES): Add d-support.c.
13413         (COMMON_OBS): Add d-support.o.
13414         * d-lang.h (d_parse_symbol): Add comment, now defined in
13415         d-support.c.
13416         * d-lang.c (parse_call_convention)
13417         (parse_attributes, parse_function_types)
13418         (parse_function_args, parse_type, parse_identifier)
13419         (call_convention_p, d_parse_symbol): Move functions to ...
13420         * d-support.c: ... New file.
13421
13422 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13423
13424         * d-lang.h (d_parse_symbol): Add declaration.
13425         * d-lang.c (extract_identifiers)
13426         (extract_type_info): Remove functions.
13427         (parse_call_convention, parse_attributes)
13428         (parse_function_types, parse_function_args)
13429         (parse_type, parse_identifier, call_convention_p)
13430         (d_parse_symbol): New functions.
13431         (d_demangle): Use d_parse_symbol to demangle D symbols.
13432
13433 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13434
13435         * d-lang.h (struct builtin_d_type): New data type.
13436         (builtin_d_type): Add declaration.
13437         * d-lang.c (d_language_arch_info, build_d_types)
13438         (builtin_d_type): New functions.
13439         (enum d_primitive_types): New data type.
13440         (d_language_defn): Change c_language_arch_info to
13441         d_language_arch_info.
13442         (d_type_data): New static variable.
13443         (_initialize_d_language): Initialize d_type_data.
13444
13445 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13446
13447         * d-lang.h (d_main_name): Add declaration.
13448         * d-lang.c (d_main_name): New function.
13449         * symtab.c (find_main_name): Add call to d_main_name.
13450
13451 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13452
13453         * d-lang.c (d_language_defn): Change macro_expansion_c to
13454         macro_expansion_no.
13455
13456 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13457
13458         * MAINTAINERS: Add myself as a write-after-approval maintainer.
13459
13460 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
13461
13462         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13463         gdb_exception" declaration.
13464         * remote.c (getpkt_or_notif_sane): Likewise.
13465
13466 2014-01-17  Doug Evans  <dje@google.com>
13467
13468         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13469         function, contents of dirnames_to_char_ptr_vec_append moved here.
13470         (delim_string_to_char_ptr_vec): New function.
13471         (dirnames_to_char_ptr_vec_append): Rewrite.
13472         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13473
13474 2014-01-17  Doug Evans  <dje@google.com>
13475
13476         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13477         and moved here ...
13478         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13479         #include "common-utils.h".
13480         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13481         * common/vec.h (VEC_ASSERT_PASS): Update.
13482         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13483         (MACH_CHECK_ERROR): Update.
13484
13485 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
13486
13487         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13488         comments.
13489         * gdbarch.h: Regenerate.
13490
13491 2014-01-16  Tom Tromey  <tromey@redhat.com>
13492
13493         * value.c (struct value) <regnum>: Move earlier.
13494
13495 2014-01-16  Tom Tromey  <tromey@redhat.com>
13496
13497         * remote.c (extended_remote_create_inferior): Rename from
13498         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
13499         old implementation.
13500
13501 2014-01-16  Pedro Alves  <palves@redhat.com>
13502
13503         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13504         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13505         the backchain.
13506
13507 2014-01-16  Doug Evans  <dje@google.com>
13508
13509         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13510
13511 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13512
13513         * btrace.h (btrace_thread_flag): New.
13514         (struct btrace_thread_info) <flags>: New.
13515         * record-btrace.c (record_btrace_resume_thread)
13516         (record_btrace_find_thread_to_move, btrace_step_no_history)
13517         (btrace_step_stopped, record_btrace_start_replaying)
13518         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13519         (record_btrace_find_resume_thread): New.
13520         (record_btrace_resume, record_btrace_wait): Extend.
13521         (record_btrace_can_execute_reverse): New.
13522         (record_btrace_open): Fail in non-stop mode.
13523         (record_btrace_set_replay): Split into this, ...
13524         (record_btrace_stop_replaying): ... this, ...
13525         (record_btrace_clear_histories): ... and this.
13526         (init_record_btrace_ops): Init to_can_execute_reverse.
13527         * NEWS: Announce it.
13528
13529 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13530
13531         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13532         (forward_target_decr_pc_after_break)
13533         (target_decr_pc_after_break): New.
13534         * target.c (forward_target_decr_pc_after_break)
13535         (target_decr_pc_after_break): New.
13536         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13537         instead of gdbarch_decr_pc_after_break.
13538         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13539         instead of gdbarch_decr_pc_after_break.
13540         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13541         instead of gdbarch_decr_pc_after_break.
13542         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13543         instead of gdbarch_decr_pc_after_break.
13544         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13545         instead of gdbarch_decr_pc_after_break.
13546         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13547         instead of gdbarch_decr_pc_after_break.
13548
13549 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13550
13551         * btrace.c: Include regcache.h.
13552         (btrace_add_pc): New.
13553         (btrace_enable): Call btrace_add_pc.
13554         (btrace_is_empty): New.
13555         * btrace.h (btrace_is_empty): New.
13556         * record-btrace.c (require_btrace, record_btrace_info): Call
13557         btrace_is_empty.
13558
13559 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13560
13561         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13562         Support delta reads.
13563         (linux_disable_btrace): Change return type.
13564         * common/linux-btrace.h (linux_read_btrace): Change parameters
13565         and return type to allow error reporting.  Update users.
13566         (linux_disable_btrace): Change return type.  Update users.
13567         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13568         New.
13569         (btrace_error): New.
13570         (btrace_block) <begin>: Comment on BEGIN == 0.
13571         * btrace.c (btrace_compute_ftrace): Start from the end of
13572         the current trace.
13573         (btrace_stitch_trace, btrace_clear_history): New.
13574         (btrace_fetch): Read delta trace, return if replaying.
13575         (btrace_clear): Move clear history code to btrace_clear_history.
13576         (parse_xml_btrace): Throw an error if parsing failed.
13577         * target.h (struct target_ops) <to_read_btrace>: Change parameters
13578         and return type to allow error reporting.
13579         (target_read_btrace): Change parameters and return type to allow
13580         error reporting.
13581         * target.c (target_read_btrace): Update.
13582         * remote.c (remote_read_btrace): Support delta reads.  Pass
13583         errors on.
13584         * NEWS: Announce it.
13585
13586 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13587
13588         * record.h (record_btrace_frame_unwind)
13589         (record_btrace_tailcall_frame_unwind): New declarations.
13590         * dwarf2-frame: Include record.h
13591         (dwarf2_frame_cfa): Throw an error for btrace frames.
13592         * record-btrace.c: Include hashtab.h.
13593         (btrace_get_bfun_name): New.
13594         (btrace_call_history): Call btrace_get_bfun_name.
13595         (struct btrace_frame_cache): New.
13596         (bfcache): New.
13597         (bfcache_hash, bfcache_eq, bfcache_new): New.
13598         (btrace_get_frame_function): New.
13599         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13600         (record_btrace_frame_this_id): Compute own id.
13601         (record_btrace_frame_prev_register): Provide PC, throw_error
13602         for all other registers.
13603         (record_btrace_frame_sniffer): Detect btrace frames.
13604         (record_btrace_tailcall_frame_sniffer): New.
13605         (record_btrace_frame_dealloc_cache): New.
13606         (record_btrace_frame_unwind): Add new functions.
13607         (record_btrace_tailcall_frame_unwind): New.
13608         (_initialize_record_btrace): Allocate cache.
13609         * btrace.c (btrace_clear): Call reinit_frame_cache.
13610         * NEWS: Announce it.
13611
13612 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13613
13614         * record-btrace.c (record_btrace_set_replay)
13615         (record_btrace_goto_begin, record_btrace_goto_end)
13616         (record_btrace_goto): New.
13617         (init_record_btrace_ops): Initialize them.
13618         * NEWS: Announce it.
13619
13620 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13621
13622         * record-btrace.c (record_btrace_find_new_threads)
13623         (record_btrace_thread_alive): New.
13624         (init_record_btrace_ops): Initialize to_find_new_threads and
13625         to_thread_alive.
13626
13627 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13628
13629         * record-btrace.c (record_btrace_resume): New.
13630         (record_btrace_wait): New.
13631         (init_record_btrace_ops): Initialize to_wait and to_resume.
13632
13633 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13634
13635         * record-btrace.c (record_btrace_xfer_partial)
13636         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13637         (record_btrace_allow_memory_access): New.
13638         (init_record_btrace_ops): Initialize new methods.
13639         * target.c (raw_memory_xfer_partial): Bail out if target reports
13640         that this memory is not available.
13641
13642 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13643
13644         * target.h (target_ops) <to_insert_breakpoint>
13645         <to_remove_breakpoint>: Add target_ops parameter.
13646         (forward_target_insert_breakpoint): New.
13647         (forward_target_remove_breakpoint): New.
13648         (memory_remove_breakpoint, memory_insert_breakpoint):
13649         Add target_ops parameter.
13650         * target.c (target_insert_breakpoint): Split into this and ...
13651         (forward_target_insert_breakpoint): ... this.
13652         (target_remove_breakpoint): Split into this and ...
13653         (forward_target_remove_breakpoint): ... this.
13654         (debug_to_insert_breakpoint): Add target_ops parameter.
13655         Call forward_target_insert_breakpoint.
13656         (debug_to_remove_breakpoint): Add target_ops parameter.
13657         Call forward_target_remove_breakpoint.
13658         (update_current_target): Do not inherit or default to_insert_breakpoint
13659         and to_remove_breakpoint.
13660         * corelow.c (ignore): Add target_ops parameter.
13661         * exec.c (ignore): Add target_ops parameter.
13662         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13663         Add target_ops parameter.
13664         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13665         Add target_ops parameter.
13666         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13667         Add target_ops parameter.
13668         * record-full.c (record_full_beneath_to_insert_breakpoint)
13669         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13670         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13671         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13672         (record_full_core_remove_breakpoint): Add target_ops parameter.
13673         Update users.
13674         (record_full_beneath_to_insert_breakpoint_ops)
13675         (record_full_beneath_to_remove_breakpoint_ops)
13676         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13677         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13678         tmp_to_remove_breakpoint_ops,
13679         record_full_beneath_to_insert_breakpoint_ops, and
13680         record_full_beneath_to_remove_breakpoint_ops.
13681         * remote-m32r-sdi.c (m32r_insert_breakpoint)
13682         (m32r_remove_breakpoint): Add target_ops parameter.
13683         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13684         Add target_ops parameter.
13685         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13686         Add target_ops parameter.
13687
13688 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13689             Markus Metzger  <markus.t.metzger@intel.com>
13690
13691         * record-btrace.c: Include frame-unwind.h.
13692         (record_btrace_frame_unwind_stop_reason)
13693         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13694         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13695         New.
13696         (init_record_btrace_ops): Install it.
13697
13698 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13699
13700         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13701         get_prev_frame_1.
13702
13703 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13704
13705         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13706         earlier.
13707
13708 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13709
13710         * frame-unwind.c: Include target.h.
13711         (frame_unwind_try_unwinder): New function with code from ...
13712         (frame_unwind_find_by_frame): ... here.  New variable
13713         unwinder_from_target, call also target_get_unwinder)
13714         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13715         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13716         * target.h (struct target_ops): New fields to_get_unwinder and
13717         to_get_tailcall_unwinder.
13718         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13719
13720 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13721
13722         * record-btrace.c (record_btrace_fetch_registers)
13723         (record_btrace_store_registers)
13724         (record_btrace_to_prepare_to_store): New.
13725         (init_record_btrace_ops): Add the above.
13726
13727 2014-01-16  Tom Tromey  <tromey@redhat.com>
13728
13729         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13730         * target.h (struct target_ops) <to_prepare_to_store>: Add
13731         argument.
13732         (target_prepare_to_store): Add argument.
13733         * target.c (debug_to_prepare_to_store): Add argument.
13734         (update_current_target): Update.
13735         * remote.c (remote_prepare_to_store): Add 'self' argument.
13736         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13737         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13738         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13739         * record-full.c (record_full_core_prepare_to_store): Add 'self'
13740         argument.
13741         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13742         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13743         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13744         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13745         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13746
13747 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13748
13749         * btrace.h (replay) <replay>: New.
13750         (btrace_is_replaying): New.
13751         * btrace.c (btrace_clear): Free replay iterator.
13752         (btrace_is_replaying): New.
13753         * record-btrace.c (record_btrace_is_replaying): New.
13754         (record_btrace_info): Print insn number if replaying.
13755         (record_btrace_insn_history): Start at replay position.
13756         (record_btrace_call_history): Start at replay position.
13757         (init_record_btrace_ops): Init to_record_is_replaying.
13758
13759 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13760
13761         * record-btrace.c (record_btrace_insn_history_range): Include
13762         end.
13763         (record_btrace_insn_history_from): Adjust range.
13764         (record_btrace_call_history_range): Include
13765         end.
13766         (record_btrace_call_history_from): Adjust range.
13767         * NEWS: Announce changes.
13768
13769 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13770
13771         * record.h (enum record_print_flag)
13772         <record_print_indent_calls>: New.
13773         * record.c (get_call_history_modifiers): Recognize /c modifier.
13774         (_initialize_record): Document /c modifier.
13775         * record-btrace.c (btrace_call_history): Add btinfo parameter.
13776         Reorder fields.  Optionally indent the function name.  Update
13777         all users.
13778         * NEWS: Announce changes.
13779
13780 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13781
13782         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13783
13784 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13785
13786         * btrace.c (ftrace_new_function): Start counting at one.
13787         * record-btrace.c (record_btrace_info): Adjust number of calls
13788         and insns.
13789         * NEWS: Announce it.
13790
13791 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13792
13793         * record-btrace.c (btrace_call_history_insn_range): Print
13794         insn range as [begin, end].
13795
13796 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13797
13798         * btrace.h (struct btrace_func_link): New.
13799         (enum btrace_function_flag): New.
13800         (struct btrace_inst): Rename to ...
13801         (struct btrace_insn): ...this. Update all users.
13802         (struct btrace_func) <ibegin, iend>: Remove.
13803         (struct btrace_func_link): New.
13804         (struct btrace_func): Rename to ...
13805         (struct btrace_function): ...this. Update all users.
13806         (struct btrace_function) <segment, flow, up, insn, insn_offset)
13807         (number, level, flags>: New.
13808         (struct btrace_insn_iterator): Rename to ...
13809         (struct btrace_insn_history): ...this.
13810         Update all users.
13811         (struct btrace_insn_iterator, btrace_call_iterator): New.
13812         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13813         (struct btrace_target_info) <begin, end, level>
13814         <insn_history, call_history>: New.
13815         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13816         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13817         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13818         (btrace_call_number, btrace_call_begin, btrace_call_end)
13819         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13820         (btrace_find_function_by_number, btrace_set_insn_history)
13821         (btrace_set_call_history): New.
13822         * btrace.c (btrace_init_insn_iterator)
13823         (btrace_init_func_iterator, compute_itrace): Remove.
13824         (ftrace_print_function_name, ftrace_print_filename)
13825         (ftrace_skip_file): Change
13826         parameter to const.
13827         (ftrace_init_func): Remove.
13828         (ftrace_debug): Use new btrace_function fields.
13829         (ftrace_function_switched): Also consider gaining and
13830         losing symbol information).
13831         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13832         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13833         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13834         New.
13835         (ftrace_new_function): Move. Remove debug print.
13836         (ftrace_update_lines, ftrace_update_insns): New.
13837         (ftrace_update_function): Check for call, ret, and jump.
13838         (compute_ftrace): Renamed to ...
13839         (btrace_compute_ftrace): ...this. Rewritten to compute call
13840         stack.
13841         (btrace_fetch, btrace_clear): Updated.
13842         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13843         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13844         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13845         (btrace_call_number, btrace_call_begin, btrace_call_end)
13846         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13847         (btrace_find_function_by_number, btrace_set_insn_history)
13848         (btrace_set_call_history): New.
13849         * record-btrace.c (require_btrace): Use new btrace thread
13850         info fields.
13851         (record_btrace_info, btrace_insn_history)
13852         (record_btrace_insn_history, record_btrace_insn_history_range):
13853         Use new btrace thread info fields and new iterator.
13854         (btrace_func_history_src_line): Rename to ...
13855         (btrace_call_history_src_line): ...this. Use new btrace
13856         thread info fields.
13857         (btrace_func_history): Rename to ...
13858         (btrace_call_history): ...this. Use new btrace thread info
13859         fields and new iterator.
13860         (record_btrace_call_history, record_btrace_call_history_range):
13861         Use new btrace thread info fields and new iterator.
13862
13863 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13864
13865         * frame.h (frame_id_build_unavailable_stack_special): New.
13866         * frame.c (frame_id_build_unavailable_stack_special): New.
13867
13868 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13869
13870         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13871         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13872         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13873         to gdbarch.
13874         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13875         (i386_insn_is_jump, i386_jmp_p): New.
13876         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13877         insn_is_jump to gdbarch.
13878         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13879         * gdbarch.h: Regenerated.
13880         * gdbarch.c: Regenerated.
13881         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13882         (default_insn_is_jump): New.
13883         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13884         (default_insn_is_jump): New.
13885
13886 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13887
13888         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13889         Change to ...
13890         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
13891         (btrace_read_type) <btrace_read_new>: Change to ...
13892         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
13893
13894 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13895
13896         * common/linux-btrace.c (linux_read_btrace): Free trace from
13897         previous iteration.
13898
13899 2014-01-15  Doug Evans  <dje@google.com>
13900
13901         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13902         uint32_t.
13903
13904 2014-01-15  Tom Tromey  <tromey@redhat.com>
13905
13906         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13907         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13908         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13909         (set_objfile_main_name): New function.
13910         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13911         language_of_main>: New fields.
13912         (set_objfile_main_name): Declare.
13913         * symtab.c (find_main_name): Loop over objfiles to find the main
13914         name and language.
13915         (set_main_name): Now static.
13916         (get_main_info): Add comment.
13917         * symtab.h (set_main_name): Don't declare.
13918
13919 2014-01-15  Tom Tromey  <tromey@redhat.com>
13920
13921         * symtab.c (main_progspace_key): New global.
13922         (struct main_info): New.
13923         (name_of_main, language_of_main): Remove.
13924         (get_main_info, main_info_cleanup): New function.
13925         (set_main_name, main_name, main_language): Use get_main_info.
13926         (_initialize_symtab): Initialize main_progspace_key.
13927
13928 2014-01-15  Tom Tromey  <tromey@redhat.com>
13929
13930         * dbxread.c (process_one_symbol): Update.
13931         * dwarf2read.c (read_partial_die): Update.
13932         * symfile.c (set_initial_language): Call main_language.
13933         * symtab.c (language_of_main): Now static.
13934         (set_main_name): Add 'lang' parameter.
13935         (find_main_name): Update.
13936         (main_language): New function.
13937         (symtab_observer_executable_changed): Update.
13938         * symtab.h (set_main_name): Update.
13939         (language_of_main): Remove.
13940         (main_language): Declare.
13941
13942 2014-01-15  Tom Tromey  <tromey@redhat.com>
13943
13944         * symfile.c (init_entry_point_info): Use new "initialized" field.
13945         Update.
13946         * objfiles.h (struct entry_point) <initialized>: New field.
13947         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13948         (struct objfile) <ei>: ...here.  Remove.
13949         * objfiles.c (entry_point_address_query): Update.
13950
13951 2014-01-15  Tom Tromey  <tromey@redhat.com>
13952
13953         * objfiles.c (entry_point_address_query): Relocate entry point
13954         address.
13955         (objfile_relocate1): Do not relocate entry point address.
13956         * objfiles.h (struct entry_info) <entry_point>: Update comment.
13957         <the_bfd_section_index>: New field.
13958         * symfile.c (init_entry_point_info): Find the entry point's
13959         section.
13960
13961 2014-01-15  Tom Tromey  <tromey@redhat.com>
13962
13963         * solib-frv.c (enable_break): Use entry_point_address_query.
13964
13965 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13966
13967         * NEWS: Add note on improved process record-replay on
13968         arm*-linux* targets.
13969
13970 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13971
13972         * arm-tdep.c (enum arm_record_result): New enum.
13973         (arm_record_unsupported_insn): New function.
13974         (arm_record_coproc_data_proc): Removed.
13975         (thumb2_record_ld_st_multiple): New function.
13976         (thumb2_record_ld_st_dual_ex_tbb): New function.
13977         (thumb2_record_data_proc_sreg_mimm): New function.
13978         (thumb2_record_ps_dest_generic): New function.
13979         (thumb2_record_branch_misc_cntrl): New function.
13980         (thumb2_record_str_single_data): New function.
13981         (thumb2_record_ld_mem_hints): New function.
13982         (thumb2_record_ld_word): New function.
13983         (thumb2_record_lmul_lmla_div): New function.
13984         (thumb2_record_decode_insn_handler): New function.
13985         (decode_insn): Add thumb32 instruction handlers.
13986
13987 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13988
13989         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13990         (struct arm_linux_record_tdep): Declare.
13991         (arm_canonicalize_syscall): New function.
13992         (arm_all_but_pc_registers_record): New function.
13993         (arm_linux_syscall_record): New function.
13994         (arm_linux_init_abi): Add syscall recording constructs.
13995         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13996         decoding.  (arm_record_coproc_data_proc): Update arm syscall
13997         decoding.
13998         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13999         <arm_syscall_record>: New field.
14000         * configure.tgt (arm*-*-linux*): Add linux-record.o to
14001         gdb_target_obs.
14002
14003 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14004
14005         * arm-tdep.c (thumb_record_misc): Update to use sp as base
14006         register for push instruction recording.
14007
14008 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14009
14010         * arm-tdep.c (thumb_record_misc): Update to correct logical
14011         error while recording ldm, ldmia and pop instructions.
14012
14013 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14014
14015         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14016
14017 2014-01-15  Pedro Alves  <palves@redhat.com>
14018
14019         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14020         (go32_resume, go32_fetch_registers, store_register)
14021         (go32_store_registers, go32_prepare_to_store)
14022         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14023         (go32_create_inferior, go32_can_run, go32_terminal_init)
14024         (go32_terminal_inferior, go32_terminal_ours): Delete forward
14025         declarations.
14026
14027 2014-01-15  Tom Tromey  <tromey@redhat.com>
14028
14029         * target.h (async_callback_ftype): New typedef.
14030         (struct target_ops) <to_async>: Use it.
14031
14032 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14033
14034         * python/py-value.c (get_field_type): Remove unnecessary curly
14035         braces for single-statement if block.
14036
14037 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14038
14039         * python/py-type.c (convert_field): Add missing empty line
14040         after declarations.
14041
14042 2014-01-14  Doug Evans  <dje@google.com>
14043
14044         * symfile.h (expand_symtabs_matching): Renamed from
14045         expand_partial_symbol_names.  Update prototype.
14046         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14047         * symfile.c (expand_symtabs_matching): Renamed from
14048         expand_partial_symbol_names.  New args file_matcher, kind.
14049         Rename arg fun to symbol_matcher.
14050         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14051         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14052         ada_expand_partial_symbol_name.
14053         (ada_make_symbol_completion_list): Update to call
14054         expand_symtabs_matching.
14055         (ada_add_global_exceptions): Call expand_symtabs_matching.
14056         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14057         call map_symbol_filenames.
14058         * symtab.c (sources_info): Update to call map_symbol_filenames.
14059         (search_symbols): Call expand_symtabs_matching.
14060         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14061         (default_make_symbol_completion_list_break_on): Update to call
14062         expand_symtabs_matching.
14063         (make_source_files_completion_list): Update to call
14064         map_symbol_filenames.
14065
14066 2014-01-14  Doug Evans  <dje@google.com>
14067
14068         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14069         (expand_symtabs_symbol_matcher_ftype): New typedef.
14070         (quick_symbol_functions.expand_symtabs_matching): Update to use.
14071         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14072         * symfile.c (expand_partial_symbol_names): Update to use
14073         expand_symtabs_symbol_matcher_ftype.
14074         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14075         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14076         Arg name_matcher renamed to symbol_matcher.
14077         * psymtab.c (recursively_search_psymtabs): Update to use
14078         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
14079         sym_matcher.
14080         (expand_symtabs_matching_via_partial): Update to use
14081         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14082         Arg name_matcher renamed to symbol_matcher.
14083
14084 2014-01-14  Doug Evans  <dje@google.com>
14085
14086         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14087         (map_partial_symbol_filenames): Ditto.
14088         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14089         (map_partial_symbol_filenames): Ditto.
14090         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14091         (map_partial_symbol_filenames): Ditto.
14092         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14093         (map_partial_symbol_filenames): Ditto.
14094         * symtab.c: Delete #include "psymtab.h".
14095
14096 2014-01-14  Pedro Alves  <palves@redhat.com>
14097             Tom Tromey  <tromey@redhat.com>
14098
14099         * infrun.c (use_displaced_stepping): Use find_record_target
14100         instead of RECORD_IS_USED.
14101         (adjust_pc_after_break): Use record_full_is_used instead of
14102         RECORD_IS_USED.
14103         * record-btrace.c (record_btrace_open): Call record_preopen
14104         instead of checking RECORD_IS_USED.
14105         * record-full.c (record_full_shortname)
14106         (record_full_core_shortname): New globals.
14107         (record_full_is_used): New function.
14108         (find_full_open): Call record_preopen instead of checking
14109         RECORD_IS_USED.
14110         (init_record_full_ops): Set the target's shortname to
14111         record_full_shortname.
14112         (init_record_full_core_ops): Set the target's shortname to
14113         record_full_core_shortname.
14114         * record-full.h (record_full_is_used): Declare.
14115         * record.c (find_record_target): Make extern.
14116         (record_preopen): New function.
14117         * record.h (RECORD_IS_USED): Delete macro.
14118         (find_record_target, record_preopen): Declare functions.
14119
14120 2014-01-14  Yao Qi  <yao@codesourcery.com>
14121
14122         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14123         'len''s type to ULONGEST.
14124         (core_xfer_shared_libraries_aix): Likewise.
14125         * gdbarch.c, gdbarch.h: Regenerated.
14126         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14127         Change type of 'len' to ULONGEST.
14128         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14129         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14130
14131 2014-01-14  Yao Qi  <yao@codesourcery.com>
14132
14133         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14134         type of 'len' to ULONGEST.
14135         (linux_xfer_osdata_processgroups): Likewise.
14136         (linux_xfer_osdata_threads): Likewise.
14137         (linux_xfer_osdata_fds): Likewise.
14138         (linux_xfer_osdata_isockets): Likewise.
14139         (linux_xfer_osdata_shm): Likewise.
14140         (linux_xfer_osdata_sem): Likewise.
14141         (linux_xfer_osdata_msg): Likewise.
14142         (linux_common_xfer_osdata): Likewise.
14143         (struct osdata_type) <getter>: Likewise.
14144         * common/linux-osdata.h (linux_common_xfer_osdata): Update
14145         the declaration.
14146
14147 2014-01-14  Yao Qi  <yao@codesourcery.com>
14148
14149         * target.h (target_xfer_partial_ftype): Update.
14150         (struct target_ops) <to_xfer_partial>: Change 'len' type to
14151         ULONGEST.
14152         * aix-thread.c (aix_thread_xfer_partial): Change type of
14153         argument 'len' to ULONGEST.
14154         * auxv.c (procfs_xfer_auxv): Likewise.
14155         (ld_so_xfer_auxv): Likewise.
14156         (memory_xfer_auxv): Likewise.
14157         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14158         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14159         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14160         * corelow.c (core_xfer_partial): Likewise.
14161         * ctf.c (ctf_xfer_partial): Likewise.
14162         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
14163         '%u'.
14164         (darwin_read_dyld_info): Likewise.
14165         (darwin_xfer_partial): Likewise.
14166         * exec.c (section_table_xfer_memory_partial): Likewise.
14167         (exec_xfer_partial): Likewise.
14168         * exec.h (section_table_xfer_memory_partial): Update
14169         declaration.
14170         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
14171         instead of plongest.
14172         (gnu_xfer_partial): Likewise.
14173         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14174         (ia64_hpux_xfer_solib_got): Likewise.
14175         (ia64_hpux_xfer_partial): Likewise.
14176         * ia64-linux-nat.c (ia64_linux_xfer_partial):
14177         * inf-ptrace.c (inf_ptrace_xfer_partial):
14178         * inf-ttrace.c (inf_ttrace_xfer_partial):
14179         * linux-nat.c (linux_xfer_siginfo): Likewise.
14180         (linux_nat_xfer_partial): Likewise.
14181         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14182         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14183         * monitor.c (monitor_xfer_memory): Likewise.
14184         (monitor_xfer_partial): Likewise.
14185         * procfs.c (procfs_xfer_partial): Likewise.
14186         * record-full.c (record_full_xfer_partial): Likewise.
14187         (record_full_core_xfer_partial): Likewise.
14188         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
14189         instead of plongest.
14190         (gdbsim_xfer_partial): Likewise.
14191         * remote.c (remote_xfer_partial): Likewise.
14192         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14193         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14194         declaration.
14195         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14196         (rs6000_xfer_shared_libraries): Likewise.
14197         * sol-thread.c (sol_thread_xfer_partial): Likewise.
14198         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14199         (sparc_xfer_partial): Likewise.
14200         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14201         (spu_xfer_partial): Likewise.
14202         * spu-multiarch.c (spu_xfer_partial): Likewise.
14203         * target.c (target_read_live_memory): Likewise.
14204         (memory_xfer_live_readonly_partial): Likewise.
14205         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14206         (target_xfer_partial, default_xfer_partial): Likewise.
14207         (current_xfer_partial): Likewise.
14208         * tracepoint.c (tfile_xfer_partial): Likewise.
14209         * windows-nat.c (windows_xfer_memory): Likewise.  Call
14210         pulongest instead of plongest.
14211         (windows_xfer_partial): Likewise.
14212         (windows_xfer_shared_libraries): Likewise.
14213
14214 2014-01-14  Yao Qi  <yao@codesourcery.com>
14215
14216         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14217         target_xfer_partial_ftype.
14218
14219 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
14220
14221         PR python/15464
14222         PR python/16113
14223         * valops.c (value_struct_elt_bitpos): New function
14224         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14225         object to 'None' if the field name is an empty string ("").
14226         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14227         attribute to look for a field when 'name' is 'None'.
14228         (get_field_type): New function
14229
14230 2014-01-13  Doug Evans  <dje@google.com>
14231
14232         PR symtab/16426
14233         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14234         (try_open_dwop_file): Ditto.
14235         * gdb_bfd.c: #include "vec.h".
14236         (bfdp): New typedef.
14237         (struct gdb_bfd_data): New member included_bfds.
14238         (gdb_bfd_unref): Unref all included bfds.
14239         (gdb_bfd_record_inclusion): New function.
14240         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14241
14242 2014-01-13  Tom Tromey  <tromey@redhat.com>
14243
14244         * gdbcore.h (deprecated_core_resize_section_table): Remove.
14245
14246 2014-01-13  Tom Tromey  <tromey@redhat.com>
14247
14248         * defs.h (use_windows): Remove.
14249         * gdb.c (main): Update.
14250         * main.c (captured_main, gdb_main): Update.
14251         * main.h (struct captured_main_args) <use_windows>: Remove.
14252         * top.c (use_windows): Remove.
14253
14254 2014-01-13  Tom Tromey  <tromey@redhat.com>
14255
14256         * defs.h (deprecated_flush_hook): Remove.
14257
14258 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
14259
14260         PR threads/16216
14261         * linux-thread-db.c (try_thread_db_load): Add parameter
14262         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
14263         (try_thread_db_load_from_pdir_1): Move it there from here.
14264         (try_thread_db_load_from_sdir): Update caller.
14265         (try_thread_db_load_from_dir): Move it there from here.
14266
14267 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
14268
14269         * regformats/regdat.sh: Always rewrite the register file.
14270
14271 2014-01-13  Pedro Alves  <palves@redhat.com>
14272
14273         * Makefile.in (CHECK_HEADERS): New variable.
14274         (check-headers:): New rule.
14275
14276 2014-01-13  Tom Tromey  <tromey@redhat.com>
14277
14278         * cli/cli-setshow.c (do_set_command): Update.
14279         * defs.h (deprecated_set_hook): Remove.
14280         * top.c (deprecated_set_hook): Remove.
14281
14282 2014-01-13  Pedro Alves  <palves@redhat.com>
14283
14284         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14285         the tracepoint if the PC is a pseudo-register.
14286
14287 2014-01-13  Tom Tromey  <tromey@redhat.com>
14288
14289         * defs.h (XCALLOC): Remove.
14290         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14291         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14292         * dwarf2loc.c (allocate_piece_closure): Likewise.
14293         * elfread.c (elf_symfile_segments): Likewise.
14294         (elf_symfile_segments): Likewise.
14295         * gdbtypes.c (copy_type_recursive): Likewise.
14296         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14297         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14298         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14299         XCALLOC.
14300         * mt-tdep.c (mt_gdbarch_init): Likewise.
14301         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14302         XCALLOC.
14303         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14304         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14305         * registry.c (registry_alloc_data): Likewise.
14306         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14307         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14308         * serial.c (serial_fdopen_ops): Likewise.
14309         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14310         XCALLOC.
14311         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14312         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14313         not XCALLOC.
14314
14315 2014-01-13  Tom Tromey  <tromey@redhat.com>
14316
14317         * defs.h (XMALLOC): Remove.
14318         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14319         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14320         * cli-out.c (struct ui_out *): Likewise.
14321         * cli/cli-dump.c (add_dump_command): Likewise.
14322         (add_dump_command): Likewise.
14323         * complaints.c (get_complaints): Likewise.
14324         (find_complaint): Likewise.
14325         * dwarf2-frame.c (execute_cfa_program): Likewise.
14326         * dwarf2read.c (abbrev_table_read_table): Likewise.
14327         * gdbarch.sh: Likewise.
14328         * gdbarch.c: Rebuild.
14329         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14330         * interps.c (interp_new): Likewise.
14331         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14332         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14333         * mi/mi-console.c (mi_console_file_new): Likewise.
14334         * mi/mi-interp.c (mi_interpreter_init): Likewise.
14335         * mi/mi-out.c (mi_out_new): Likewise.
14336         * mi/mi-parse.c (mi_parse): Likewise.
14337         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14338         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14339         * observer.c (xalloc_observer_list_node): Likewise.
14340         * regcache.c (regcache_xmalloc_1): Likewise.
14341         * reggroups.c (reggroup_new): Likewise.
14342         (_initialize_reggroup): Likewise.
14343         * registry.c (register_data_with_cleanup): Likewise.
14344         * remote.c (remote_notif_stop_alloc_reply): Likewise.
14345         * ser-base.c (serial_ttystate): Likewise.
14346         * ser-mingw.c (make_pipe_state): Likewise.
14347         * ser-pipe.c (pipe_open): Likewise.
14348         * serial.c (serial_open): Likewise.
14349         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14350         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14351         (tui_alloc_win_info): Likewise.
14352         (tui_add_content_elements): Likewise.
14353         * tui/tui-file.c (tui_file_new): Likewise.
14354         * tui/tui-out.c (tui_out_new): Likewise.
14355         * ui-file.c (mem_file_new): Likewise.
14356         * ui-out.c (push_level): Likewise.
14357         (make_cleanup_ui_out_end): Likewise.
14358         (append_header_to_list): Likewise.
14359         (ui_out_new): Likewise.
14360         * user-regs.c (user_reg_add_builtin): Likewise.
14361
14362 2014-01-13  Tom Tromey  <tromey@redhat.com>
14363
14364         * defs.h (XZALLOC): Remove.
14365         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14366         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14367         (get_ada_tasks_inferior_data): Likewise.
14368         * auto-load.c (get_auto_load_pspace_data): Likewise.
14369         * auxv.c (get_auxv_inferior_data): Likewise.
14370         * bfd-target.c (target_bfd_reopen): Likewise.
14371         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14372         (deprecated_insert_raw_breakpoint): Likewise.
14373         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14374         * corelow.c (core_open): Likewise.
14375         * darwin-nat.c (darwin_check_new_threads): Likewise.
14376         (darwin_attach_pid): Likewise.
14377         * dummy-frame.c (dummy_frame_push): Likewise.
14378         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14379         * dwarf2loc.c (allocate_piece_closure): Likewise.
14380         * elfread.c (elf_symfile_segments): Likewise.
14381         * eval.c (ptrmath_type_p): Likewise.
14382         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14383         * gdbtypes.c (alloc_type_arch): Likewise.
14384         (alloc_type_instance): Likewise.
14385         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14386         * inf-child.c (inf_child_can_use_agent): Likewise.
14387         * inflow.c (get_inflow_inferior_data): Likewise.
14388         * infrun.c (save_infcall_suspend_state): Likewise.
14389         * jit.c (jit_reader_load): Likewise.
14390         (get_jit_objfile_data): Likewise.
14391         (get_jit_program_space_data): Likewise.
14392         (jit_object_open_impl): Likewise.
14393         (jit_symtab_open_impl): Likewise.
14394         (jit_block_open_impl): Likewise.
14395         (jit_frame_sniffer): Likewise.
14396         * linux-fork.c (add_fork): Likewise.
14397         * maint.c (make_command_stats_cleanup): Likewise.
14398         * objfiles.c (get_objfile_pspace_data): Likewise.
14399         * opencl-lang.c (struct lval_closure): Likewise.
14400         * osdata.c (osdata_start_osdata): Likewise.
14401         * progspace.c (new_address_space): Likewise.
14402         (add_program_space): Likewise.
14403         * remote-sim.c (get_sim_inferior_data): Likewise.
14404         * sh-tdep.c (sh_gdbarch_init): Likewise.
14405         * skip.c (Ignore): Likewise.
14406         (skip_delete_command): Likewise.
14407         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14408         (library_list_start_library): Likewise.
14409         (solib_aix_current_sos): Likewise.
14410         * solib-darwin.c (get_darwin_info): Likewise.
14411         (darwin_current_sos): Likewise.
14412         * solib-dsbt.c (get_dsbt_info): Likewise.
14413         * solib-ia64-hpux.c (new_so_list): Likewise.
14414         (ia64_hpux_get_solib_linkage_addr): Likewise.
14415         * solib-spu.c (append_ocl_sos): Likewise.
14416         (spu_current_sos): Likewise.
14417         * solib-svr4.c (get_svr4_info): Likewise.
14418         (svr4_keep_data_in_core): Likewise.
14419         (library_list_start_library): Likewise.
14420         (svr4_default_sos): Likewise.
14421         (svr4_read_so_list): Likewise.
14422         * solib-target.c (library_list_start_library): Likewise.
14423         (solib_target_current_sos): Likewise.
14424         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14425         * symfile-debug.c (install_symfile_debug_logging): Likewise.
14426         * symfile.c (default_symfile_segments): Likewise.
14427         * target-descriptions.c (tdesc_data_init): Likewise.
14428         (tdesc_create_reg): Likewise.
14429         (struct tdesc_type *): Likewise.
14430         (tdesc_create_vector): Likewise.
14431         (tdesc_set_struct_size): Likewise.
14432         (struct tdesc_type *): Likewise.
14433         (tdesc_free_feature): Likewise.
14434         (tdesc_create_feature): Likewise.
14435         * windows-nat.c (windows_add_thread): Likewise.
14436         (windows_make_so): Likewise.
14437         * xml-support.c (gdb_xml_body_text): Likewise.
14438         (gdb_xml_create_parser_and_cleanup): Likewise.
14439         (xml_process_xincludes): Likewise.
14440         * xml-syscall.c (allocate_syscalls_info): Likewise.
14441         (syscall_create_syscall_desc): Likewise.
14442
14443 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
14444
14445         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14446         function, with code from i386_stap_parse_special_token.
14447         (i386_stap_parse_special_token_three_arg_disp): Likewise.
14448         (i386_stap_parse_special_token): Move code to the two functions
14449         above; simplify it.
14450
14451 2014-01-09  Pedro Alves  <palves@redhat.com>
14452             Hui Zhu  <hui@codesourcery.com>
14453
14454         PR gdb/16101
14455         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14456         bp_err_string.  Don't mark the location shlib_disabled if the
14457         error thrown wasn't a generic or memory error.  Catch errors
14458         thrown while inserting breakpoints in overlayed code.  Output
14459         error message of software breakpoints.
14460         * remote.c (remote_insert_breakpoint): If this breakpoint has
14461         target-side commands but this stub doesn't support Z0 packets,
14462         throw NOT_SUPPORTED_ERROR error.
14463         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14464         * target.h (target_insert_breakpoint): Extend comment.
14465         (target_insert_hw_breakpoint): Add comment.
14466
14467 2014-01-08  Pedro Alves  <palves@redhat.com>
14468
14469         * remote.c (remote_add_thread): Add threads silently if starting
14470         up.
14471         (remote_notice_new_inferior): If in all-stop, and starting up,
14472         don't call notice_new_inferior.
14473         (get_current_thread): New function, factored out from ...
14474         (add_current_inferior_and_thread): ... this.  Adjust.
14475         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
14476         found any thread, then select the remote's current thread as GDB's
14477         current thread too.
14478
14479 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14480
14481         * NEWS: Create a new section for the next release branch.
14482         Rename the section of the current branch, now that it has
14483         been cut.
14484
14485 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14486
14487         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14488         * version.in: Bump version to 7.7.50.DATE-cvs.
14489
14490 2014-01-08  Yao Qi  <yao@codesourcery.com>
14491
14492         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14493         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
14494         (spu_xfer_partial): Cast 'buf' to 'const char *'.
14495
14496 2014-01-08  Yao Qi  <yao@codesourcery.com>
14497
14498         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14499         return value of bfd_get_filename to symbol_file_add_from_bfd.
14500
14501 2014-01-08  Pierre Muller  <muller@sourceware.org>
14502
14503         Fix PR16201.
14504         * coff-pe-read.c (struct read_pe_section_data): Add index field.
14505         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14506         to prim_record_mininal_symbol_and_info.
14507         (add_pe_forwarded_sym): Use known section number of forwarded symbol
14508         in call to prim_record_minimal_symbol_and_info.
14509         (read_pe_exported_syms): Set index field of section_data.
14510
14511 2014-01-07  Andrew Pinski  <apinski@cavium.com>
14512
14513         * features/aarch64-core.xml (cpsr): Change to be 64bit.
14514         * features/aarch64.c: Regenerate.
14515
14516 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
14517
14518         * target.c (return_null): Define.
14519         (update_current_target): Use it instead of return_zero for
14520         functions that return a pointer.
14521
14522 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
14523
14524         * source.c (add_path): Fix check for duplicated paths in the previously
14525         included paths.
14526
14527 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
14528
14529         * ada-lang.c: Remove duplicated include statements.
14530         * alphabsd-nat.c: Ditto.
14531         * amd64-darwin-tdep.c: Ditto.
14532         * amd64fbsd-nat.c: Ditto.
14533         * auto-load.c: Ditto.
14534         * ax-gdb.c: Ditto.
14535         * breakpoint.c: Ditto.
14536         * dbxread.c: Ditto.
14537         * fork-child.c: Ditto.
14538         * gdb_usleep.c: Ditto.
14539         * i386-darwin-tdep.c: Ditto.
14540         * i386fbsd-nat.c: Ditto.
14541         * infcmd.c: Ditto.
14542         * inferior.c: Ditto.
14543         * jv-lang.c: Ditto.
14544         * linux-nat.c: Ditto.
14545         * linux-tdep.c: Ditto.
14546         * m68kbsd-nat.c: Ditto.
14547         * m68klinux-nat.c: Ditto.
14548         * microblaze-tdep.c: Ditto.
14549         * mips-linux-tdep.c: Ditto.
14550         * mn10300-tdep.c: Ditto.
14551         * nto-tdep.c: Ditto.
14552         * opencl-lang.c: Ditto.
14553         * osdata.c: Ditto.
14554         * printcmd.c: Ditto.
14555         * regcache.c: Ditto.
14556         * remote-m32r-sdi.c: Ditto.
14557         * remote.c: Ditto.
14558         * symfile.c: Ditto.
14559         * symtab.c: Ditto.
14560         * tilegx-linux-nat.c: Ditto.
14561         * tilegx-tdep.c: Ditto.
14562         * tracepoint.c: Ditto.
14563         * valops.c: Ditto.
14564         * vaxbsd-nat.c: Ditto.
14565         * windows-nat.c: Ditto.
14566         * xtensa-tdep.c: Ditto.
14567
14568 2014-01-07  Yao Qi  <yao@codesourcery.com>
14569
14570         * spu-linux-nat.c (_initialize_spu_nat): Declare.
14571
14572 2014-01-07  Yao Qi  <yao@codesourcery.com>
14573             Joel Brobecker  <brobecker@adacore.com>
14574
14575         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14576         (pdc_write_regs): Likewise.
14577         (fetch_regs_kernel_thread): Likewise.
14578         (store_regs_kernel_thread): Likewise.
14579
14580 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14581
14582         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14583         tagged type objects to their actual type.
14584
14585 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14586
14587         * ada-valprint.c (print_field_values): Add "language" parameter.
14588         Update calls to print_field_values and print_variant_part.
14589         Pass new parameter "language" in call to val_print instead
14590         of "current_language".  Replace call to ada_val_print by call
14591         to val_print.
14592         (print_variant_part): Add "language" parameter.
14593         (ada_val_print_struct_union): Update call to print_field_values.
14594
14595 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14596
14597         * ada-valprint.c (ui_memcpy): Delete.
14598         (ada_print_floating): Update documentation.  Add empty line
14599         between between function documentation and implementation.
14600         Delete variable "buffer".  Use ui_file_xstrdup in place of
14601         ui_file_put.  Minor adjustments following this change.
14602
14603 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14604
14605         * ada-valprint.c (ada_val_print_string): New function,
14606         extracted from ada_val_print_array.
14607         (ada_val_print_array): Replace extracted code by call
14608         to ada_val_print_string followed by a return.  Move
14609         "else" branch to the function's top block.
14610
14611 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14612
14613         * ada-valprint.c (ada_val_print_array): Move implementation
14614         down.  Rename parameter "offset" and "val" into "offset_aligned"
14615         and "original_value" respectively.  Add parameter "offset".
14616
14617 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14618
14619         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14620         re-organizing the code. Change the "???" message printed
14621         when target type is a TYPE_CODE_UNDEF into
14622         "<ref to undefined type>".
14623
14624 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14625
14626         * ada-valprint.c (print_record): Delete, implementation inlined...
14627         (ada_val_print_struct_union): ... here.  Remove call to
14628         ada_check_typedef in inlined implementation.
14629
14630 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14631
14632         * ada-valprint.c (ada_val_print_gnat_array): New function,
14633         extracted from ada_val_print_1;
14634         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14635         (ada_val_print_flt, ada_val_print_struct_union)
14636         (ada_val_print_ref): Likewise.
14637         (ada_val_print_1): Delete variables i and elttype.
14638         Replace extracted-out code by call to corresponding
14639         new functions.
14640
14641 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14642
14643         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14644
14645 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14646
14647         * ada-valprint.c (ada_val_print_1): Replace calls to
14648         ada_val_print_1 by calls to val_print.
14649
14650 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14651
14652         * ada-valprint.c (ada_val_print_1): Add parameter "language".
14653         Update calls to self accordingly.  Replace calls to c_val_print
14654         by calls to val_print.
14655
14656 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14657
14658         * ada-valprint.c (print_record): Delete declaration.
14659         (adjust_type_signedness, ada_val_print_1): Likewise.
14660         (ada_val_print): Move function implementation down.
14661         (print_variant_part, print_field_values, print_record):
14662         Move function implementation up.
14663
14664 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14665
14666         * python/py-type.c (typy_get_name): New function.
14667         (type_object_getset): Add entry for attribute "name".
14668         * NEWS: Add entry mentioning this new attribute.
14669
14670 2014-01-07  Yao Qi  <yao@codesourcery.com>
14671
14672         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14673         statement.
14674
14675 2014-01-07  Yao Qi  <yao@codesourcery.com>
14676
14677         * gnu-nat.c (info_port_rights): Add qualifier const to
14678         argument args.
14679
14680 2014-01-07  Yao Qi  <yao@codesourcery.com>
14681
14682         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14683
14684 2014-01-07  Yao Qi  <yao@codesourcery.com>
14685
14686         * gnu-nat.c (make_inf) Update declaration.
14687         (make_inf): Make it static.
14688         (inf_set_traced): Likewise.
14689         (inf_port_to_thread, inf_task_died_status): Likewise.
14690
14691 2014-01-07  Yao Qi  <yao@codesourcery.com>
14692
14693         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14694
14695 2014-01-07  Yao Qi  <yao@codesourcery.com>
14696
14697         * gnu-nat.c (_initialize_gnu_nat): Declare.
14698
14699 2014-01-07  Yao Qi  <yao@codesourcery.com>
14700
14701         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14702         'enum bfd_endian'.
14703         (struct gdbarch_info) <byte_order>: Change type to
14704         'enum bfd_endian'.
14705         <byte_order_for_code>: Likewise.
14706         * gdbarch.c, gdbarch.h: Regenerated.
14707
14708 2014-01-06  Sasha Smundak  <asmundak@google.com>
14709
14710         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14711
14712 2014-01-06  Tom Tromey  <tromey@redhat.com>
14713
14714         * doublest.c (convert_doublest_to_floatformat): Use const, not
14715         CONST.
14716         * somread.c (som_symtab_read): Likewise.
14717
14718 2014-01-07  Hui Zhu  <hui@codesourcery.com>
14719
14720         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14721         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14722         (gdb_bfd_fopen): Ditto.
14723         (gdb_bfd_openr): Ditto.
14724         (gdb_bfd_openw): Ditto.
14725         (gdb_bfd_openr_iovec): Ditto.
14726         (gdb_bfd_fdopenr): Ditto.
14727         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14728         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14729         with xstrdup.
14730         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14731         with xstrdup.
14732         * symfile-mem.c (symbol_file_add_from_memory): Removed
14733         gdb_bfd_stash_filename.
14734
14735 2014-01-03  Doug Evans  <dje@google.com>
14736
14737         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14738         output.
14739
14740 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14741
14742         Update year range in copyright notice of all files.
14743
14744 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14745
14746         * top.c (print_gdb_version): Set copyright year to 2014.
14747
14748 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14749
14750         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14751
14752 For older changes see ChangeLog-2013.
14753 \f
14754 Local Variables:
14755 mode: change-log
14756 left-margin: 8
14757 fill-column: 74
14758 version-control: never
14759 coding: utf-8
14760 End: